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	// See, edit, configure, and delete your Google Cloud data and see the
83	// email address for your Google Account.
84	CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
85)
86
87// NewService creates a new Service.
88func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
89	scopesOption := option.WithScopes(
90		"https://www.googleapis.com/auth/cloud-platform",
91	)
92	// NOTE: prepend, so we don't override user-specified scopes.
93	opts = append([]option.ClientOption{scopesOption}, opts...)
94	opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
95	opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath))
96	client, endpoint, err := htransport.NewClient(ctx, opts...)
97	if err != nil {
98		return nil, err
99	}
100	s, err := New(client)
101	if err != nil {
102		return nil, err
103	}
104	if endpoint != "" {
105		s.BasePath = endpoint
106	}
107	return s, nil
108}
109
110// New creates a new Service. It uses the provided http.Client for requests.
111//
112// Deprecated: please use NewService instead.
113// To provide a custom HTTP client, use option.WithHTTPClient.
114// If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
115func New(client *http.Client) (*Service, error) {
116	if client == nil {
117		return nil, errors.New("client is nil")
118	}
119	s := &Service{client: client, BasePath: basePath}
120	s.Hybrid = NewHybridService(s)
121	s.Organizations = NewOrganizationsService(s)
122	s.Projects = NewProjectsService(s)
123	return s, nil
124}
125
126type Service struct {
127	client    *http.Client
128	BasePath  string // API endpoint base URL
129	UserAgent string // optional additional User-Agent fragment
130
131	Hybrid *HybridService
132
133	Organizations *OrganizationsService
134
135	Projects *ProjectsService
136}
137
138func (s *Service) userAgent() string {
139	if s.UserAgent == "" {
140		return googleapi.UserAgent
141	}
142	return googleapi.UserAgent + " " + s.UserAgent
143}
144
145func NewHybridService(s *Service) *HybridService {
146	rs := &HybridService{s: s}
147	rs.Issuers = NewHybridIssuersService(s)
148	return rs
149}
150
151type HybridService struct {
152	s *Service
153
154	Issuers *HybridIssuersService
155}
156
157func NewHybridIssuersService(s *Service) *HybridIssuersService {
158	rs := &HybridIssuersService{s: s}
159	return rs
160}
161
162type HybridIssuersService struct {
163	s *Service
164}
165
166func NewOrganizationsService(s *Service) *OrganizationsService {
167	rs := &OrganizationsService{s: s}
168	rs.Analytics = NewOrganizationsAnalyticsService(s)
169	rs.Apiproducts = NewOrganizationsApiproductsService(s)
170	rs.Apis = NewOrganizationsApisService(s)
171	rs.Apps = NewOrganizationsAppsService(s)
172	rs.Datacollectors = NewOrganizationsDatacollectorsService(s)
173	rs.Deployments = NewOrganizationsDeploymentsService(s)
174	rs.Developers = NewOrganizationsDevelopersService(s)
175	rs.Envgroups = NewOrganizationsEnvgroupsService(s)
176	rs.Environments = NewOrganizationsEnvironmentsService(s)
177	rs.HostQueries = NewOrganizationsHostQueriesService(s)
178	rs.HostStats = NewOrganizationsHostStatsService(s)
179	rs.Instances = NewOrganizationsInstancesService(s)
180	rs.Keyvaluemaps = NewOrganizationsKeyvaluemapsService(s)
181	rs.Operations = NewOrganizationsOperationsService(s)
182	rs.OptimizedHostStats = NewOrganizationsOptimizedHostStatsService(s)
183	rs.Reports = NewOrganizationsReportsService(s)
184	rs.Sharedflows = NewOrganizationsSharedflowsService(s)
185	rs.Sites = NewOrganizationsSitesService(s)
186	return rs
187}
188
189type OrganizationsService struct {
190	s *Service
191
192	Analytics *OrganizationsAnalyticsService
193
194	Apiproducts *OrganizationsApiproductsService
195
196	Apis *OrganizationsApisService
197
198	Apps *OrganizationsAppsService
199
200	Datacollectors *OrganizationsDatacollectorsService
201
202	Deployments *OrganizationsDeploymentsService
203
204	Developers *OrganizationsDevelopersService
205
206	Envgroups *OrganizationsEnvgroupsService
207
208	Environments *OrganizationsEnvironmentsService
209
210	HostQueries *OrganizationsHostQueriesService
211
212	HostStats *OrganizationsHostStatsService
213
214	Instances *OrganizationsInstancesService
215
216	Keyvaluemaps *OrganizationsKeyvaluemapsService
217
218	Operations *OrganizationsOperationsService
219
220	OptimizedHostStats *OrganizationsOptimizedHostStatsService
221
222	Reports *OrganizationsReportsService
223
224	Sharedflows *OrganizationsSharedflowsService
225
226	Sites *OrganizationsSitesService
227}
228
229func NewOrganizationsAnalyticsService(s *Service) *OrganizationsAnalyticsService {
230	rs := &OrganizationsAnalyticsService{s: s}
231	rs.Datastores = NewOrganizationsAnalyticsDatastoresService(s)
232	return rs
233}
234
235type OrganizationsAnalyticsService struct {
236	s *Service
237
238	Datastores *OrganizationsAnalyticsDatastoresService
239}
240
241func NewOrganizationsAnalyticsDatastoresService(s *Service) *OrganizationsAnalyticsDatastoresService {
242	rs := &OrganizationsAnalyticsDatastoresService{s: s}
243	return rs
244}
245
246type OrganizationsAnalyticsDatastoresService struct {
247	s *Service
248}
249
250func NewOrganizationsApiproductsService(s *Service) *OrganizationsApiproductsService {
251	rs := &OrganizationsApiproductsService{s: s}
252	rs.Attributes_ = NewOrganizationsApiproductsAttributesService(s)
253	rs.Rateplans = NewOrganizationsApiproductsRateplansService(s)
254	return rs
255}
256
257type OrganizationsApiproductsService struct {
258	s *Service
259
260	Attributes_ *OrganizationsApiproductsAttributesService
261
262	Rateplans *OrganizationsApiproductsRateplansService
263}
264
265func NewOrganizationsApiproductsAttributesService(s *Service) *OrganizationsApiproductsAttributesService {
266	rs := &OrganizationsApiproductsAttributesService{s: s}
267	return rs
268}
269
270type OrganizationsApiproductsAttributesService struct {
271	s *Service
272}
273
274func NewOrganizationsApiproductsRateplansService(s *Service) *OrganizationsApiproductsRateplansService {
275	rs := &OrganizationsApiproductsRateplansService{s: s}
276	return rs
277}
278
279type OrganizationsApiproductsRateplansService struct {
280	s *Service
281}
282
283func NewOrganizationsApisService(s *Service) *OrganizationsApisService {
284	rs := &OrganizationsApisService{s: s}
285	rs.Deployments = NewOrganizationsApisDeploymentsService(s)
286	rs.Keyvaluemaps = NewOrganizationsApisKeyvaluemapsService(s)
287	rs.Revisions = NewOrganizationsApisRevisionsService(s)
288	return rs
289}
290
291type OrganizationsApisService struct {
292	s *Service
293
294	Deployments *OrganizationsApisDeploymentsService
295
296	Keyvaluemaps *OrganizationsApisKeyvaluemapsService
297
298	Revisions *OrganizationsApisRevisionsService
299}
300
301func NewOrganizationsApisDeploymentsService(s *Service) *OrganizationsApisDeploymentsService {
302	rs := &OrganizationsApisDeploymentsService{s: s}
303	return rs
304}
305
306type OrganizationsApisDeploymentsService struct {
307	s *Service
308}
309
310func NewOrganizationsApisKeyvaluemapsService(s *Service) *OrganizationsApisKeyvaluemapsService {
311	rs := &OrganizationsApisKeyvaluemapsService{s: s}
312	return rs
313}
314
315type OrganizationsApisKeyvaluemapsService struct {
316	s *Service
317}
318
319func NewOrganizationsApisRevisionsService(s *Service) *OrganizationsApisRevisionsService {
320	rs := &OrganizationsApisRevisionsService{s: s}
321	rs.Deployments = NewOrganizationsApisRevisionsDeploymentsService(s)
322	return rs
323}
324
325type OrganizationsApisRevisionsService struct {
326	s *Service
327
328	Deployments *OrganizationsApisRevisionsDeploymentsService
329}
330
331func NewOrganizationsApisRevisionsDeploymentsService(s *Service) *OrganizationsApisRevisionsDeploymentsService {
332	rs := &OrganizationsApisRevisionsDeploymentsService{s: s}
333	return rs
334}
335
336type OrganizationsApisRevisionsDeploymentsService struct {
337	s *Service
338}
339
340func NewOrganizationsAppsService(s *Service) *OrganizationsAppsService {
341	rs := &OrganizationsAppsService{s: s}
342	return rs
343}
344
345type OrganizationsAppsService struct {
346	s *Service
347}
348
349func NewOrganizationsDatacollectorsService(s *Service) *OrganizationsDatacollectorsService {
350	rs := &OrganizationsDatacollectorsService{s: s}
351	return rs
352}
353
354type OrganizationsDatacollectorsService struct {
355	s *Service
356}
357
358func NewOrganizationsDeploymentsService(s *Service) *OrganizationsDeploymentsService {
359	rs := &OrganizationsDeploymentsService{s: s}
360	return rs
361}
362
363type OrganizationsDeploymentsService struct {
364	s *Service
365}
366
367func NewOrganizationsDevelopersService(s *Service) *OrganizationsDevelopersService {
368	rs := &OrganizationsDevelopersService{s: s}
369	rs.Apps = NewOrganizationsDevelopersAppsService(s)
370	rs.Attributes_ = NewOrganizationsDevelopersAttributesService(s)
371	rs.Balance = NewOrganizationsDevelopersBalanceService(s)
372	rs.Subscriptions = NewOrganizationsDevelopersSubscriptionsService(s)
373	return rs
374}
375
376type OrganizationsDevelopersService struct {
377	s *Service
378
379	Apps *OrganizationsDevelopersAppsService
380
381	Attributes_ *OrganizationsDevelopersAttributesService
382
383	Balance *OrganizationsDevelopersBalanceService
384
385	Subscriptions *OrganizationsDevelopersSubscriptionsService
386}
387
388func NewOrganizationsDevelopersAppsService(s *Service) *OrganizationsDevelopersAppsService {
389	rs := &OrganizationsDevelopersAppsService{s: s}
390	rs.Attributes_ = NewOrganizationsDevelopersAppsAttributesService(s)
391	rs.Keys = NewOrganizationsDevelopersAppsKeysService(s)
392	return rs
393}
394
395type OrganizationsDevelopersAppsService struct {
396	s *Service
397
398	Attributes_ *OrganizationsDevelopersAppsAttributesService
399
400	Keys *OrganizationsDevelopersAppsKeysService
401}
402
403func NewOrganizationsDevelopersAppsAttributesService(s *Service) *OrganizationsDevelopersAppsAttributesService {
404	rs := &OrganizationsDevelopersAppsAttributesService{s: s}
405	return rs
406}
407
408type OrganizationsDevelopersAppsAttributesService struct {
409	s *Service
410}
411
412func NewOrganizationsDevelopersAppsKeysService(s *Service) *OrganizationsDevelopersAppsKeysService {
413	rs := &OrganizationsDevelopersAppsKeysService{s: s}
414	rs.Apiproducts = NewOrganizationsDevelopersAppsKeysApiproductsService(s)
415	rs.Create_ = NewOrganizationsDevelopersAppsKeysCreateService(s)
416	return rs
417}
418
419type OrganizationsDevelopersAppsKeysService struct {
420	s *Service
421
422	Apiproducts *OrganizationsDevelopersAppsKeysApiproductsService
423
424	Create_ *OrganizationsDevelopersAppsKeysCreateService
425}
426
427func NewOrganizationsDevelopersAppsKeysApiproductsService(s *Service) *OrganizationsDevelopersAppsKeysApiproductsService {
428	rs := &OrganizationsDevelopersAppsKeysApiproductsService{s: s}
429	return rs
430}
431
432type OrganizationsDevelopersAppsKeysApiproductsService struct {
433	s *Service
434}
435
436func NewOrganizationsDevelopersAppsKeysCreateService(s *Service) *OrganizationsDevelopersAppsKeysCreateService {
437	rs := &OrganizationsDevelopersAppsKeysCreateService{s: s}
438	return rs
439}
440
441type OrganizationsDevelopersAppsKeysCreateService struct {
442	s *Service
443}
444
445func NewOrganizationsDevelopersAttributesService(s *Service) *OrganizationsDevelopersAttributesService {
446	rs := &OrganizationsDevelopersAttributesService{s: s}
447	return rs
448}
449
450type OrganizationsDevelopersAttributesService struct {
451	s *Service
452}
453
454func NewOrganizationsDevelopersBalanceService(s *Service) *OrganizationsDevelopersBalanceService {
455	rs := &OrganizationsDevelopersBalanceService{s: s}
456	return rs
457}
458
459type OrganizationsDevelopersBalanceService struct {
460	s *Service
461}
462
463func NewOrganizationsDevelopersSubscriptionsService(s *Service) *OrganizationsDevelopersSubscriptionsService {
464	rs := &OrganizationsDevelopersSubscriptionsService{s: s}
465	return rs
466}
467
468type OrganizationsDevelopersSubscriptionsService struct {
469	s *Service
470}
471
472func NewOrganizationsEnvgroupsService(s *Service) *OrganizationsEnvgroupsService {
473	rs := &OrganizationsEnvgroupsService{s: s}
474	rs.Attachments = NewOrganizationsEnvgroupsAttachmentsService(s)
475	return rs
476}
477
478type OrganizationsEnvgroupsService struct {
479	s *Service
480
481	Attachments *OrganizationsEnvgroupsAttachmentsService
482}
483
484func NewOrganizationsEnvgroupsAttachmentsService(s *Service) *OrganizationsEnvgroupsAttachmentsService {
485	rs := &OrganizationsEnvgroupsAttachmentsService{s: s}
486	return rs
487}
488
489type OrganizationsEnvgroupsAttachmentsService struct {
490	s *Service
491}
492
493func NewOrganizationsEnvironmentsService(s *Service) *OrganizationsEnvironmentsService {
494	rs := &OrganizationsEnvironmentsService{s: s}
495	rs.Analytics = NewOrganizationsEnvironmentsAnalyticsService(s)
496	rs.Apis = NewOrganizationsEnvironmentsApisService(s)
497	rs.ArchiveDeployments = NewOrganizationsEnvironmentsArchiveDeploymentsService(s)
498	rs.Caches = NewOrganizationsEnvironmentsCachesService(s)
499	rs.Deployments = NewOrganizationsEnvironmentsDeploymentsService(s)
500	rs.Flowhooks = NewOrganizationsEnvironmentsFlowhooksService(s)
501	rs.Keystores = NewOrganizationsEnvironmentsKeystoresService(s)
502	rs.Keyvaluemaps = NewOrganizationsEnvironmentsKeyvaluemapsService(s)
503	rs.OptimizedStats = NewOrganizationsEnvironmentsOptimizedStatsService(s)
504	rs.Queries = NewOrganizationsEnvironmentsQueriesService(s)
505	rs.References = NewOrganizationsEnvironmentsReferencesService(s)
506	rs.Resourcefiles = NewOrganizationsEnvironmentsResourcefilesService(s)
507	rs.Sharedflows = NewOrganizationsEnvironmentsSharedflowsService(s)
508	rs.Stats = NewOrganizationsEnvironmentsStatsService(s)
509	rs.Targetservers = NewOrganizationsEnvironmentsTargetserversService(s)
510	rs.TraceConfig = NewOrganizationsEnvironmentsTraceConfigService(s)
511	return rs
512}
513
514type OrganizationsEnvironmentsService struct {
515	s *Service
516
517	Analytics *OrganizationsEnvironmentsAnalyticsService
518
519	Apis *OrganizationsEnvironmentsApisService
520
521	ArchiveDeployments *OrganizationsEnvironmentsArchiveDeploymentsService
522
523	Caches *OrganizationsEnvironmentsCachesService
524
525	Deployments *OrganizationsEnvironmentsDeploymentsService
526
527	Flowhooks *OrganizationsEnvironmentsFlowhooksService
528
529	Keystores *OrganizationsEnvironmentsKeystoresService
530
531	Keyvaluemaps *OrganizationsEnvironmentsKeyvaluemapsService
532
533	OptimizedStats *OrganizationsEnvironmentsOptimizedStatsService
534
535	Queries *OrganizationsEnvironmentsQueriesService
536
537	References *OrganizationsEnvironmentsReferencesService
538
539	Resourcefiles *OrganizationsEnvironmentsResourcefilesService
540
541	Sharedflows *OrganizationsEnvironmentsSharedflowsService
542
543	Stats *OrganizationsEnvironmentsStatsService
544
545	Targetservers *OrganizationsEnvironmentsTargetserversService
546
547	TraceConfig *OrganizationsEnvironmentsTraceConfigService
548}
549
550func NewOrganizationsEnvironmentsAnalyticsService(s *Service) *OrganizationsEnvironmentsAnalyticsService {
551	rs := &OrganizationsEnvironmentsAnalyticsService{s: s}
552	rs.Admin = NewOrganizationsEnvironmentsAnalyticsAdminService(s)
553	rs.Exports = NewOrganizationsEnvironmentsAnalyticsExportsService(s)
554	return rs
555}
556
557type OrganizationsEnvironmentsAnalyticsService struct {
558	s *Service
559
560	Admin *OrganizationsEnvironmentsAnalyticsAdminService
561
562	Exports *OrganizationsEnvironmentsAnalyticsExportsService
563}
564
565func NewOrganizationsEnvironmentsAnalyticsAdminService(s *Service) *OrganizationsEnvironmentsAnalyticsAdminService {
566	rs := &OrganizationsEnvironmentsAnalyticsAdminService{s: s}
567	return rs
568}
569
570type OrganizationsEnvironmentsAnalyticsAdminService struct {
571	s *Service
572}
573
574func NewOrganizationsEnvironmentsAnalyticsExportsService(s *Service) *OrganizationsEnvironmentsAnalyticsExportsService {
575	rs := &OrganizationsEnvironmentsAnalyticsExportsService{s: s}
576	return rs
577}
578
579type OrganizationsEnvironmentsAnalyticsExportsService struct {
580	s *Service
581}
582
583func NewOrganizationsEnvironmentsApisService(s *Service) *OrganizationsEnvironmentsApisService {
584	rs := &OrganizationsEnvironmentsApisService{s: s}
585	rs.Deployments = NewOrganizationsEnvironmentsApisDeploymentsService(s)
586	rs.Revisions = NewOrganizationsEnvironmentsApisRevisionsService(s)
587	return rs
588}
589
590type OrganizationsEnvironmentsApisService struct {
591	s *Service
592
593	Deployments *OrganizationsEnvironmentsApisDeploymentsService
594
595	Revisions *OrganizationsEnvironmentsApisRevisionsService
596}
597
598func NewOrganizationsEnvironmentsApisDeploymentsService(s *Service) *OrganizationsEnvironmentsApisDeploymentsService {
599	rs := &OrganizationsEnvironmentsApisDeploymentsService{s: s}
600	return rs
601}
602
603type OrganizationsEnvironmentsApisDeploymentsService struct {
604	s *Service
605}
606
607func NewOrganizationsEnvironmentsApisRevisionsService(s *Service) *OrganizationsEnvironmentsApisRevisionsService {
608	rs := &OrganizationsEnvironmentsApisRevisionsService{s: s}
609	rs.Debugsessions = NewOrganizationsEnvironmentsApisRevisionsDebugsessionsService(s)
610	rs.Deployments = NewOrganizationsEnvironmentsApisRevisionsDeploymentsService(s)
611	return rs
612}
613
614type OrganizationsEnvironmentsApisRevisionsService struct {
615	s *Service
616
617	Debugsessions *OrganizationsEnvironmentsApisRevisionsDebugsessionsService
618
619	Deployments *OrganizationsEnvironmentsApisRevisionsDeploymentsService
620}
621
622func NewOrganizationsEnvironmentsApisRevisionsDebugsessionsService(s *Service) *OrganizationsEnvironmentsApisRevisionsDebugsessionsService {
623	rs := &OrganizationsEnvironmentsApisRevisionsDebugsessionsService{s: s}
624	rs.Data = NewOrganizationsEnvironmentsApisRevisionsDebugsessionsDataService(s)
625	return rs
626}
627
628type OrganizationsEnvironmentsApisRevisionsDebugsessionsService struct {
629	s *Service
630
631	Data *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataService
632}
633
634func NewOrganizationsEnvironmentsApisRevisionsDebugsessionsDataService(s *Service) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataService {
635	rs := &OrganizationsEnvironmentsApisRevisionsDebugsessionsDataService{s: s}
636	return rs
637}
638
639type OrganizationsEnvironmentsApisRevisionsDebugsessionsDataService struct {
640	s *Service
641}
642
643func NewOrganizationsEnvironmentsApisRevisionsDeploymentsService(s *Service) *OrganizationsEnvironmentsApisRevisionsDeploymentsService {
644	rs := &OrganizationsEnvironmentsApisRevisionsDeploymentsService{s: s}
645	return rs
646}
647
648type OrganizationsEnvironmentsApisRevisionsDeploymentsService struct {
649	s *Service
650}
651
652func NewOrganizationsEnvironmentsArchiveDeploymentsService(s *Service) *OrganizationsEnvironmentsArchiveDeploymentsService {
653	rs := &OrganizationsEnvironmentsArchiveDeploymentsService{s: s}
654	return rs
655}
656
657type OrganizationsEnvironmentsArchiveDeploymentsService struct {
658	s *Service
659}
660
661func NewOrganizationsEnvironmentsCachesService(s *Service) *OrganizationsEnvironmentsCachesService {
662	rs := &OrganizationsEnvironmentsCachesService{s: s}
663	return rs
664}
665
666type OrganizationsEnvironmentsCachesService struct {
667	s *Service
668}
669
670func NewOrganizationsEnvironmentsDeploymentsService(s *Service) *OrganizationsEnvironmentsDeploymentsService {
671	rs := &OrganizationsEnvironmentsDeploymentsService{s: s}
672	return rs
673}
674
675type OrganizationsEnvironmentsDeploymentsService struct {
676	s *Service
677}
678
679func NewOrganizationsEnvironmentsFlowhooksService(s *Service) *OrganizationsEnvironmentsFlowhooksService {
680	rs := &OrganizationsEnvironmentsFlowhooksService{s: s}
681	return rs
682}
683
684type OrganizationsEnvironmentsFlowhooksService struct {
685	s *Service
686}
687
688func NewOrganizationsEnvironmentsKeystoresService(s *Service) *OrganizationsEnvironmentsKeystoresService {
689	rs := &OrganizationsEnvironmentsKeystoresService{s: s}
690	rs.Aliases = NewOrganizationsEnvironmentsKeystoresAliasesService(s)
691	return rs
692}
693
694type OrganizationsEnvironmentsKeystoresService struct {
695	s *Service
696
697	Aliases *OrganizationsEnvironmentsKeystoresAliasesService
698}
699
700func NewOrganizationsEnvironmentsKeystoresAliasesService(s *Service) *OrganizationsEnvironmentsKeystoresAliasesService {
701	rs := &OrganizationsEnvironmentsKeystoresAliasesService{s: s}
702	return rs
703}
704
705type OrganizationsEnvironmentsKeystoresAliasesService struct {
706	s *Service
707}
708
709func NewOrganizationsEnvironmentsKeyvaluemapsService(s *Service) *OrganizationsEnvironmentsKeyvaluemapsService {
710	rs := &OrganizationsEnvironmentsKeyvaluemapsService{s: s}
711	return rs
712}
713
714type OrganizationsEnvironmentsKeyvaluemapsService struct {
715	s *Service
716}
717
718func NewOrganizationsEnvironmentsOptimizedStatsService(s *Service) *OrganizationsEnvironmentsOptimizedStatsService {
719	rs := &OrganizationsEnvironmentsOptimizedStatsService{s: s}
720	return rs
721}
722
723type OrganizationsEnvironmentsOptimizedStatsService struct {
724	s *Service
725}
726
727func NewOrganizationsEnvironmentsQueriesService(s *Service) *OrganizationsEnvironmentsQueriesService {
728	rs := &OrganizationsEnvironmentsQueriesService{s: s}
729	return rs
730}
731
732type OrganizationsEnvironmentsQueriesService struct {
733	s *Service
734}
735
736func NewOrganizationsEnvironmentsReferencesService(s *Service) *OrganizationsEnvironmentsReferencesService {
737	rs := &OrganizationsEnvironmentsReferencesService{s: s}
738	return rs
739}
740
741type OrganizationsEnvironmentsReferencesService struct {
742	s *Service
743}
744
745func NewOrganizationsEnvironmentsResourcefilesService(s *Service) *OrganizationsEnvironmentsResourcefilesService {
746	rs := &OrganizationsEnvironmentsResourcefilesService{s: s}
747	return rs
748}
749
750type OrganizationsEnvironmentsResourcefilesService struct {
751	s *Service
752}
753
754func NewOrganizationsEnvironmentsSharedflowsService(s *Service) *OrganizationsEnvironmentsSharedflowsService {
755	rs := &OrganizationsEnvironmentsSharedflowsService{s: s}
756	rs.Deployments = NewOrganizationsEnvironmentsSharedflowsDeploymentsService(s)
757	rs.Revisions = NewOrganizationsEnvironmentsSharedflowsRevisionsService(s)
758	return rs
759}
760
761type OrganizationsEnvironmentsSharedflowsService struct {
762	s *Service
763
764	Deployments *OrganizationsEnvironmentsSharedflowsDeploymentsService
765
766	Revisions *OrganizationsEnvironmentsSharedflowsRevisionsService
767}
768
769func NewOrganizationsEnvironmentsSharedflowsDeploymentsService(s *Service) *OrganizationsEnvironmentsSharedflowsDeploymentsService {
770	rs := &OrganizationsEnvironmentsSharedflowsDeploymentsService{s: s}
771	return rs
772}
773
774type OrganizationsEnvironmentsSharedflowsDeploymentsService struct {
775	s *Service
776}
777
778func NewOrganizationsEnvironmentsSharedflowsRevisionsService(s *Service) *OrganizationsEnvironmentsSharedflowsRevisionsService {
779	rs := &OrganizationsEnvironmentsSharedflowsRevisionsService{s: s}
780	return rs
781}
782
783type OrganizationsEnvironmentsSharedflowsRevisionsService struct {
784	s *Service
785}
786
787func NewOrganizationsEnvironmentsStatsService(s *Service) *OrganizationsEnvironmentsStatsService {
788	rs := &OrganizationsEnvironmentsStatsService{s: s}
789	return rs
790}
791
792type OrganizationsEnvironmentsStatsService struct {
793	s *Service
794}
795
796func NewOrganizationsEnvironmentsTargetserversService(s *Service) *OrganizationsEnvironmentsTargetserversService {
797	rs := &OrganizationsEnvironmentsTargetserversService{s: s}
798	return rs
799}
800
801type OrganizationsEnvironmentsTargetserversService struct {
802	s *Service
803}
804
805func NewOrganizationsEnvironmentsTraceConfigService(s *Service) *OrganizationsEnvironmentsTraceConfigService {
806	rs := &OrganizationsEnvironmentsTraceConfigService{s: s}
807	rs.Overrides = NewOrganizationsEnvironmentsTraceConfigOverridesService(s)
808	return rs
809}
810
811type OrganizationsEnvironmentsTraceConfigService struct {
812	s *Service
813
814	Overrides *OrganizationsEnvironmentsTraceConfigOverridesService
815}
816
817func NewOrganizationsEnvironmentsTraceConfigOverridesService(s *Service) *OrganizationsEnvironmentsTraceConfigOverridesService {
818	rs := &OrganizationsEnvironmentsTraceConfigOverridesService{s: s}
819	return rs
820}
821
822type OrganizationsEnvironmentsTraceConfigOverridesService struct {
823	s *Service
824}
825
826func NewOrganizationsHostQueriesService(s *Service) *OrganizationsHostQueriesService {
827	rs := &OrganizationsHostQueriesService{s: s}
828	return rs
829}
830
831type OrganizationsHostQueriesService struct {
832	s *Service
833}
834
835func NewOrganizationsHostStatsService(s *Service) *OrganizationsHostStatsService {
836	rs := &OrganizationsHostStatsService{s: s}
837	return rs
838}
839
840type OrganizationsHostStatsService struct {
841	s *Service
842}
843
844func NewOrganizationsInstancesService(s *Service) *OrganizationsInstancesService {
845	rs := &OrganizationsInstancesService{s: s}
846	rs.Attachments = NewOrganizationsInstancesAttachmentsService(s)
847	rs.Canaryevaluations = NewOrganizationsInstancesCanaryevaluationsService(s)
848	rs.NatAddresses = NewOrganizationsInstancesNatAddressesService(s)
849	return rs
850}
851
852type OrganizationsInstancesService struct {
853	s *Service
854
855	Attachments *OrganizationsInstancesAttachmentsService
856
857	Canaryevaluations *OrganizationsInstancesCanaryevaluationsService
858
859	NatAddresses *OrganizationsInstancesNatAddressesService
860}
861
862func NewOrganizationsInstancesAttachmentsService(s *Service) *OrganizationsInstancesAttachmentsService {
863	rs := &OrganizationsInstancesAttachmentsService{s: s}
864	return rs
865}
866
867type OrganizationsInstancesAttachmentsService struct {
868	s *Service
869}
870
871func NewOrganizationsInstancesCanaryevaluationsService(s *Service) *OrganizationsInstancesCanaryevaluationsService {
872	rs := &OrganizationsInstancesCanaryevaluationsService{s: s}
873	return rs
874}
875
876type OrganizationsInstancesCanaryevaluationsService struct {
877	s *Service
878}
879
880func NewOrganizationsInstancesNatAddressesService(s *Service) *OrganizationsInstancesNatAddressesService {
881	rs := &OrganizationsInstancesNatAddressesService{s: s}
882	return rs
883}
884
885type OrganizationsInstancesNatAddressesService struct {
886	s *Service
887}
888
889func NewOrganizationsKeyvaluemapsService(s *Service) *OrganizationsKeyvaluemapsService {
890	rs := &OrganizationsKeyvaluemapsService{s: s}
891	return rs
892}
893
894type OrganizationsKeyvaluemapsService struct {
895	s *Service
896}
897
898func NewOrganizationsOperationsService(s *Service) *OrganizationsOperationsService {
899	rs := &OrganizationsOperationsService{s: s}
900	return rs
901}
902
903type OrganizationsOperationsService struct {
904	s *Service
905}
906
907func NewOrganizationsOptimizedHostStatsService(s *Service) *OrganizationsOptimizedHostStatsService {
908	rs := &OrganizationsOptimizedHostStatsService{s: s}
909	return rs
910}
911
912type OrganizationsOptimizedHostStatsService struct {
913	s *Service
914}
915
916func NewOrganizationsReportsService(s *Service) *OrganizationsReportsService {
917	rs := &OrganizationsReportsService{s: s}
918	return rs
919}
920
921type OrganizationsReportsService struct {
922	s *Service
923}
924
925func NewOrganizationsSharedflowsService(s *Service) *OrganizationsSharedflowsService {
926	rs := &OrganizationsSharedflowsService{s: s}
927	rs.Deployments = NewOrganizationsSharedflowsDeploymentsService(s)
928	rs.Revisions = NewOrganizationsSharedflowsRevisionsService(s)
929	return rs
930}
931
932type OrganizationsSharedflowsService struct {
933	s *Service
934
935	Deployments *OrganizationsSharedflowsDeploymentsService
936
937	Revisions *OrganizationsSharedflowsRevisionsService
938}
939
940func NewOrganizationsSharedflowsDeploymentsService(s *Service) *OrganizationsSharedflowsDeploymentsService {
941	rs := &OrganizationsSharedflowsDeploymentsService{s: s}
942	return rs
943}
944
945type OrganizationsSharedflowsDeploymentsService struct {
946	s *Service
947}
948
949func NewOrganizationsSharedflowsRevisionsService(s *Service) *OrganizationsSharedflowsRevisionsService {
950	rs := &OrganizationsSharedflowsRevisionsService{s: s}
951	rs.Deployments = NewOrganizationsSharedflowsRevisionsDeploymentsService(s)
952	return rs
953}
954
955type OrganizationsSharedflowsRevisionsService struct {
956	s *Service
957
958	Deployments *OrganizationsSharedflowsRevisionsDeploymentsService
959}
960
961func NewOrganizationsSharedflowsRevisionsDeploymentsService(s *Service) *OrganizationsSharedflowsRevisionsDeploymentsService {
962	rs := &OrganizationsSharedflowsRevisionsDeploymentsService{s: s}
963	return rs
964}
965
966type OrganizationsSharedflowsRevisionsDeploymentsService struct {
967	s *Service
968}
969
970func NewOrganizationsSitesService(s *Service) *OrganizationsSitesService {
971	rs := &OrganizationsSitesService{s: s}
972	rs.Apicategories = NewOrganizationsSitesApicategoriesService(s)
973	return rs
974}
975
976type OrganizationsSitesService struct {
977	s *Service
978
979	Apicategories *OrganizationsSitesApicategoriesService
980}
981
982func NewOrganizationsSitesApicategoriesService(s *Service) *OrganizationsSitesApicategoriesService {
983	rs := &OrganizationsSitesApicategoriesService{s: s}
984	return rs
985}
986
987type OrganizationsSitesApicategoriesService struct {
988	s *Service
989}
990
991func NewProjectsService(s *Service) *ProjectsService {
992	rs := &ProjectsService{s: s}
993	return rs
994}
995
996type ProjectsService struct {
997	s *Service
998}
999
1000// EdgeConfigstoreBundleBadBundle: Describes why a bundle is invalid.
1001// Intended for use in error details.
1002type EdgeConfigstoreBundleBadBundle struct {
1003	// Violations: Describes all precondition violations.
1004	Violations []*EdgeConfigstoreBundleBadBundleViolation `json:"violations,omitempty"`
1005
1006	// ForceSendFields is a list of field names (e.g. "Violations") to
1007	// unconditionally include in API requests. By default, fields with
1008	// empty or default values are omitted from API requests. However, any
1009	// non-pointer, non-interface field appearing in ForceSendFields will be
1010	// sent to the server regardless of whether the field is empty or not.
1011	// This may be used to include empty fields in Patch requests.
1012	ForceSendFields []string `json:"-"`
1013
1014	// NullFields is a list of field names (e.g. "Violations") to include in
1015	// API requests with the JSON null value. By default, fields with empty
1016	// values are omitted from API requests. However, any field with an
1017	// empty value appearing in NullFields will be sent to the server as
1018	// null. It is an error if a field in this list has a non-empty value.
1019	// This may be used to include null fields in Patch requests.
1020	NullFields []string `json:"-"`
1021}
1022
1023func (s *EdgeConfigstoreBundleBadBundle) MarshalJSON() ([]byte, error) {
1024	type NoMethod EdgeConfigstoreBundleBadBundle
1025	raw := NoMethod(*s)
1026	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1027}
1028
1029// EdgeConfigstoreBundleBadBundleViolation: A message type used to
1030// describe a single bundle validation error.
1031type EdgeConfigstoreBundleBadBundleViolation struct {
1032	// Description: A description of why the bundle is invalid and how to
1033	// fix it.
1034	Description string `json:"description,omitempty"`
1035
1036	// Filename: The filename (including relative path from the bundle root)
1037	// in which the error occurred.
1038	Filename string `json:"filename,omitempty"`
1039
1040	// ForceSendFields is a list of field names (e.g. "Description") to
1041	// unconditionally include in API requests. By default, fields with
1042	// empty or default values are omitted from API requests. However, any
1043	// non-pointer, non-interface field appearing in ForceSendFields will be
1044	// sent to the server regardless of whether the field is empty or not.
1045	// This may be used to include empty fields in Patch requests.
1046	ForceSendFields []string `json:"-"`
1047
1048	// NullFields is a list of field names (e.g. "Description") to include
1049	// in API requests with the JSON null value. By default, fields with
1050	// empty values are omitted from API requests. However, any field with
1051	// an empty value appearing in NullFields will be sent to the server as
1052	// null. It is an error if a field in this list has a non-empty value.
1053	// This may be used to include null fields in Patch requests.
1054	NullFields []string `json:"-"`
1055}
1056
1057func (s *EdgeConfigstoreBundleBadBundleViolation) MarshalJSON() ([]byte, error) {
1058	type NoMethod EdgeConfigstoreBundleBadBundleViolation
1059	raw := NoMethod(*s)
1060	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1061}
1062
1063// GoogleApiHttpBody: Message that represents an arbitrary HTTP body. It
1064// should only be used for payload formats that can't be represented as
1065// JSON, such as raw binary or an HTML page. This message can be used
1066// both in streaming and non-streaming API methods in the request as
1067// well as the response. It can be used as a top-level request field,
1068// which is convenient if one wants to extract parameters from either
1069// the URL or HTTP template into the request fields and also want access
1070// to the raw HTTP body. Example: message GetResourceRequest { // A
1071// unique request id. string request_id = 1; // The raw HTTP body is
1072// bound to this field. google.api.HttpBody http_body = 2; } service
1073// ResourceService { rpc GetResource(GetResourceRequest) returns
1074// (google.api.HttpBody); rpc UpdateResource(google.api.HttpBody)
1075// returns (google.protobuf.Empty); } Example with streaming methods:
1076// service CaldavService { rpc GetCalendar(stream google.api.HttpBody)
1077// returns (stream google.api.HttpBody); rpc UpdateCalendar(stream
1078// google.api.HttpBody) returns (stream google.api.HttpBody); } Use of
1079// this type only changes how the request and response bodies are
1080// handled, all other features will continue to work unchanged.
1081type GoogleApiHttpBody struct {
1082	// ContentType: The HTTP Content-Type header value specifying the
1083	// content type of the body.
1084	ContentType string `json:"contentType,omitempty"`
1085
1086	// Data: The HTTP request/response body as raw binary.
1087	Data string `json:"data,omitempty"`
1088
1089	// Extensions: Application specific response metadata. Must be set in
1090	// the first response for streaming APIs.
1091	Extensions []googleapi.RawMessage `json:"extensions,omitempty"`
1092
1093	// ServerResponse contains the HTTP response code and headers from the
1094	// server.
1095	googleapi.ServerResponse `json:"-"`
1096
1097	// ForceSendFields is a list of field names (e.g. "ContentType") to
1098	// unconditionally include in API requests. By default, fields with
1099	// empty or default values are omitted from API requests. However, any
1100	// non-pointer, non-interface field appearing in ForceSendFields will be
1101	// sent to the server regardless of whether the field is empty or not.
1102	// This may be used to include empty fields in Patch requests.
1103	ForceSendFields []string `json:"-"`
1104
1105	// NullFields is a list of field names (e.g. "ContentType") to include
1106	// in API requests with the JSON null value. By default, fields with
1107	// empty values are omitted from API requests. However, any field with
1108	// an empty value appearing in NullFields will be sent to the server as
1109	// null. It is an error if a field in this list has a non-empty value.
1110	// This may be used to include null fields in Patch requests.
1111	NullFields []string `json:"-"`
1112}
1113
1114func (s *GoogleApiHttpBody) MarshalJSON() ([]byte, error) {
1115	type NoMethod GoogleApiHttpBody
1116	raw := NoMethod(*s)
1117	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1118}
1119
1120type GoogleCloudApigeeV1Access struct {
1121	Get *GoogleCloudApigeeV1AccessGet `json:"Get,omitempty"`
1122
1123	Remove *GoogleCloudApigeeV1AccessRemove `json:"Remove,omitempty"`
1124
1125	Set *GoogleCloudApigeeV1AccessSet `json:"Set,omitempty"`
1126
1127	// ForceSendFields is a list of field names (e.g. "Get") to
1128	// unconditionally include in API requests. By default, fields with
1129	// empty or default values are omitted from API requests. However, any
1130	// non-pointer, non-interface field appearing in ForceSendFields will be
1131	// sent to the server regardless of whether the field is empty or not.
1132	// This may be used to include empty fields in Patch requests.
1133	ForceSendFields []string `json:"-"`
1134
1135	// NullFields is a list of field names (e.g. "Get") to include in API
1136	// requests with the JSON null value. By default, fields with empty
1137	// values are omitted from API requests. However, any field with an
1138	// empty value appearing in NullFields will be sent to the server as
1139	// null. It is an error if a field in this list has a non-empty value.
1140	// This may be used to include null fields in Patch requests.
1141	NullFields []string `json:"-"`
1142}
1143
1144func (s *GoogleCloudApigeeV1Access) MarshalJSON() ([]byte, error) {
1145	type NoMethod GoogleCloudApigeeV1Access
1146	raw := NoMethod(*s)
1147	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1148}
1149
1150// GoogleCloudApigeeV1AccessGet: Get action. For example, "Get" : {
1151// "name" : "target.name", "value" : "default" }
1152type GoogleCloudApigeeV1AccessGet struct {
1153	Name string `json:"name,omitempty"`
1154
1155	Value string `json:"value,omitempty"`
1156
1157	// ForceSendFields is a list of field names (e.g. "Name") to
1158	// unconditionally include in API requests. By default, fields with
1159	// empty or default values are omitted from API requests. However, any
1160	// non-pointer, non-interface field appearing in ForceSendFields will be
1161	// sent to the server regardless of whether the field is empty or not.
1162	// This may be used to include empty fields in Patch requests.
1163	ForceSendFields []string `json:"-"`
1164
1165	// NullFields is a list of field names (e.g. "Name") 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 *GoogleCloudApigeeV1AccessGet) MarshalJSON() ([]byte, error) {
1175	type NoMethod GoogleCloudApigeeV1AccessGet
1176	raw := NoMethod(*s)
1177	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1178}
1179
1180// GoogleCloudApigeeV1AccessRemove: Remove action. For example, "Remove"
1181// : { "name" : "target.name", "success" : true }
1182type GoogleCloudApigeeV1AccessRemove struct {
1183	Name string `json:"name,omitempty"`
1184
1185	Success bool `json:"success,omitempty"`
1186
1187	// ForceSendFields is a list of field names (e.g. "Name") to
1188	// unconditionally include in API requests. By default, fields with
1189	// empty or default values are omitted from API requests. However, any
1190	// non-pointer, non-interface field appearing in ForceSendFields will be
1191	// sent to the server regardless of whether the field is empty or not.
1192	// This may be used to include empty fields in Patch requests.
1193	ForceSendFields []string `json:"-"`
1194
1195	// NullFields is a list of field names (e.g. "Name") to include in API
1196	// requests with the JSON null value. By default, fields with empty
1197	// values are omitted from API requests. However, any field with an
1198	// empty value appearing in NullFields will be sent to the server as
1199	// null. It is an error if a field in this list has a non-empty value.
1200	// This may be used to include null fields in Patch requests.
1201	NullFields []string `json:"-"`
1202}
1203
1204func (s *GoogleCloudApigeeV1AccessRemove) MarshalJSON() ([]byte, error) {
1205	type NoMethod GoogleCloudApigeeV1AccessRemove
1206	raw := NoMethod(*s)
1207	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1208}
1209
1210// GoogleCloudApigeeV1AccessSet: Set action. For example, "Set" : {
1211// "name" : "target.name", "success" : true, "value" : "default" }
1212type GoogleCloudApigeeV1AccessSet struct {
1213	Name string `json:"name,omitempty"`
1214
1215	Success bool `json:"success,omitempty"`
1216
1217	Value string `json:"value,omitempty"`
1218
1219	// ForceSendFields is a list of field names (e.g. "Name") to
1220	// unconditionally include in API requests. By default, fields with
1221	// empty or default values are omitted from API requests. However, any
1222	// non-pointer, non-interface field appearing in ForceSendFields will be
1223	// sent to the server regardless of whether the field is empty or not.
1224	// This may be used to include empty fields in Patch requests.
1225	ForceSendFields []string `json:"-"`
1226
1227	// NullFields is a list of field names (e.g. "Name") to include in API
1228	// requests with the JSON null value. By default, fields with empty
1229	// values are omitted from API requests. However, any field with an
1230	// empty value appearing in NullFields will be sent to the server as
1231	// null. It is an error if a field in this list has a non-empty value.
1232	// This may be used to include null fields in Patch requests.
1233	NullFields []string `json:"-"`
1234}
1235
1236func (s *GoogleCloudApigeeV1AccessSet) MarshalJSON() ([]byte, error) {
1237	type NoMethod GoogleCloudApigeeV1AccessSet
1238	raw := NoMethod(*s)
1239	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1240}
1241
1242// GoogleCloudApigeeV1ActivateNatAddressRequest: Request for
1243// ActivateNatAddressRequest. Activate the nat address request.
1244type GoogleCloudApigeeV1ActivateNatAddressRequest struct {
1245}
1246
1247// GoogleCloudApigeeV1AddonsConfig: Add-on configurations for the Apigee
1248// organization.
1249type GoogleCloudApigeeV1AddonsConfig struct {
1250	// AdvancedApiOpsConfig: Configuration for the Advanced API Ops add-on.
1251	AdvancedApiOpsConfig *GoogleCloudApigeeV1AdvancedApiOpsConfig `json:"advancedApiOpsConfig,omitempty"`
1252
1253	// MonetizationConfig: Configuration for the Monetization add-on.
1254	MonetizationConfig *GoogleCloudApigeeV1MonetizationConfig `json:"monetizationConfig,omitempty"`
1255
1256	// ForceSendFields is a list of field names (e.g.
1257	// "AdvancedApiOpsConfig") to unconditionally include in API requests.
1258	// By default, fields with empty or default values are omitted from API
1259	// requests. However, any non-pointer, non-interface field appearing in
1260	// ForceSendFields will be sent to the server regardless of whether the
1261	// field is empty or not. This may be used to include empty fields in
1262	// Patch requests.
1263	ForceSendFields []string `json:"-"`
1264
1265	// NullFields is a list of field names (e.g. "AdvancedApiOpsConfig") to
1266	// include in API requests with the JSON null value. By default, fields
1267	// with empty values are omitted from API requests. However, any field
1268	// with an empty value appearing in NullFields will be sent to the
1269	// server as null. It is an error if a field in this list has a
1270	// non-empty value. This may be used to include null fields in Patch
1271	// requests.
1272	NullFields []string `json:"-"`
1273}
1274
1275func (s *GoogleCloudApigeeV1AddonsConfig) MarshalJSON() ([]byte, error) {
1276	type NoMethod GoogleCloudApigeeV1AddonsConfig
1277	raw := NoMethod(*s)
1278	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1279}
1280
1281// GoogleCloudApigeeV1AdvancedApiOpsConfig: Configuration for the
1282// Advanced API Ops add-on.
1283type GoogleCloudApigeeV1AdvancedApiOpsConfig struct {
1284	// Enabled: Flag that specifies whether the Advanced API Ops add-on is
1285	// enabled.
1286	Enabled bool `json:"enabled,omitempty"`
1287
1288	// ForceSendFields is a list of field names (e.g. "Enabled") to
1289	// unconditionally include in API requests. By default, fields with
1290	// empty or default values are omitted from API requests. However, any
1291	// non-pointer, non-interface field appearing in ForceSendFields will be
1292	// sent to the server regardless of whether the field is empty or not.
1293	// This may be used to include empty fields in Patch requests.
1294	ForceSendFields []string `json:"-"`
1295
1296	// NullFields is a list of field names (e.g. "Enabled") to include in
1297	// API requests with the JSON null value. By default, fields with empty
1298	// values are omitted from API requests. However, any field with an
1299	// empty value appearing in NullFields will be sent to the server as
1300	// null. It is an error if a field in this list has a non-empty value.
1301	// This may be used to include null fields in Patch requests.
1302	NullFields []string `json:"-"`
1303}
1304
1305func (s *GoogleCloudApigeeV1AdvancedApiOpsConfig) MarshalJSON() ([]byte, error) {
1306	type NoMethod GoogleCloudApigeeV1AdvancedApiOpsConfig
1307	raw := NoMethod(*s)
1308	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1309}
1310
1311// GoogleCloudApigeeV1Alias: Reference to a certificate or
1312// key/certificate pair.
1313type GoogleCloudApigeeV1Alias struct {
1314	// Alias: Resource ID for this alias. Values must match the regular
1315	// expression `[^/]{1,255}`.
1316	Alias string `json:"alias,omitempty"`
1317
1318	// CertsInfo: Chain of certificates under this alias.
1319	CertsInfo *GoogleCloudApigeeV1Certificate `json:"certsInfo,omitempty"`
1320
1321	// Type: Type of alias.
1322	//
1323	// Possible values:
1324	//   "ALIAS_TYPE_UNSPECIFIED" - Alias type is not specified.
1325	//   "CERT" - Certificate.
1326	//   "KEY_CERT" - Key/certificate pair.
1327	Type string `json:"type,omitempty"`
1328
1329	// ServerResponse contains the HTTP response code and headers from the
1330	// server.
1331	googleapi.ServerResponse `json:"-"`
1332
1333	// ForceSendFields is a list of field names (e.g. "Alias") to
1334	// unconditionally include in API requests. By default, fields with
1335	// empty or default values are omitted from API requests. However, any
1336	// non-pointer, non-interface field appearing in ForceSendFields will be
1337	// sent to the server regardless of whether the field is empty or not.
1338	// This may be used to include empty fields in Patch requests.
1339	ForceSendFields []string `json:"-"`
1340
1341	// NullFields is a list of field names (e.g. "Alias") to include in API
1342	// requests with the JSON null value. By default, fields with empty
1343	// values are omitted from API requests. However, any field with an
1344	// empty value appearing in NullFields will be sent to the server as
1345	// null. It is an error if a field in this list has a non-empty value.
1346	// This may be used to include null fields in Patch requests.
1347	NullFields []string `json:"-"`
1348}
1349
1350func (s *GoogleCloudApigeeV1Alias) MarshalJSON() ([]byte, error) {
1351	type NoMethod GoogleCloudApigeeV1Alias
1352	raw := NoMethod(*s)
1353	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1354}
1355
1356type GoogleCloudApigeeV1AliasRevisionConfig struct {
1357	// Location: Location of the alias file. For example, a Google Cloud
1358	// Storage URI.
1359	Location string `json:"location,omitempty"`
1360
1361	// Name: Name of the alias revision included in the keystore in the
1362	// following format:
1363	// `organizations/{org}/environments/{env}/keystores/{keystore}/aliases/{
1364	// alias}/revisions/{rev}`
1365	Name string `json:"name,omitempty"`
1366
1367	// Possible values:
1368	//   "ALIAS_TYPE_UNSPECIFIED" - Alias type is not specified.
1369	//   "CERT" - Certificate.
1370	//   "KEY_CERT" - Key/certificate pair.
1371	Type string `json:"type,omitempty"`
1372
1373	// ForceSendFields is a list of field names (e.g. "Location") to
1374	// unconditionally include in API requests. By default, fields with
1375	// empty or default values are omitted from API requests. However, any
1376	// non-pointer, non-interface field appearing in ForceSendFields will be
1377	// sent to the server regardless of whether the field is empty or not.
1378	// This may be used to include empty fields in Patch requests.
1379	ForceSendFields []string `json:"-"`
1380
1381	// NullFields is a list of field names (e.g. "Location") to include in
1382	// API requests with the JSON null value. By default, fields with empty
1383	// values are omitted from API requests. However, any field with an
1384	// empty value appearing in NullFields will be sent to the server as
1385	// null. It is an error if a field in this list has a non-empty value.
1386	// This may be used to include null fields in Patch requests.
1387	NullFields []string `json:"-"`
1388}
1389
1390func (s *GoogleCloudApigeeV1AliasRevisionConfig) MarshalJSON() ([]byte, error) {
1391	type NoMethod GoogleCloudApigeeV1AliasRevisionConfig
1392	raw := NoMethod(*s)
1393	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1394}
1395
1396// GoogleCloudApigeeV1ApiCategory: the Api category resource wrapped
1397// with response status, error_code etc.
1398type GoogleCloudApigeeV1ApiCategory struct {
1399	// Data: Details of category.
1400	Data *GoogleCloudApigeeV1ApiCategoryData `json:"data,omitempty"`
1401
1402	// ErrorCode: ID that can be used to find errors in the log files.
1403	ErrorCode string `json:"errorCode,omitempty"`
1404
1405	// Message: Description of the operation.
1406	Message string `json:"message,omitempty"`
1407
1408	// RequestId: ID that can be used to find request details in the log
1409	// files.
1410	RequestId string `json:"requestId,omitempty"`
1411
1412	// Status: Status of the operation.
1413	Status string `json:"status,omitempty"`
1414
1415	// ServerResponse contains the HTTP response code and headers from the
1416	// server.
1417	googleapi.ServerResponse `json:"-"`
1418
1419	// ForceSendFields is a list of field names (e.g. "Data") to
1420	// unconditionally include in API requests. By default, fields with
1421	// empty or default values are omitted from API requests. However, any
1422	// non-pointer, non-interface field appearing in ForceSendFields will be
1423	// sent to the server regardless of whether the field is empty or not.
1424	// This may be used to include empty fields in Patch requests.
1425	ForceSendFields []string `json:"-"`
1426
1427	// NullFields is a list of field names (e.g. "Data") to include in API
1428	// requests with the JSON null value. By default, fields with empty
1429	// values are omitted from API requests. However, any field with an
1430	// empty value appearing in NullFields will be sent to the server as
1431	// null. It is an error if a field in this list has a non-empty value.
1432	// This may be used to include null fields in Patch requests.
1433	NullFields []string `json:"-"`
1434}
1435
1436func (s *GoogleCloudApigeeV1ApiCategory) MarshalJSON() ([]byte, error) {
1437	type NoMethod GoogleCloudApigeeV1ApiCategory
1438	raw := NoMethod(*s)
1439	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1440}
1441
1442// GoogleCloudApigeeV1ApiCategoryData: the Api category resource.
1443type GoogleCloudApigeeV1ApiCategoryData struct {
1444	// Id: ID of the category (a UUID).
1445	Id string `json:"id,omitempty"`
1446
1447	// Name: Name of the category.
1448	Name string `json:"name,omitempty"`
1449
1450	// SiteId: Name of the portal.
1451	SiteId string `json:"siteId,omitempty"`
1452
1453	// UpdateTime: Time the category was last modified in milliseconds since
1454	// epoch.
1455	UpdateTime int64 `json:"updateTime,omitempty,string"`
1456
1457	// ForceSendFields is a list of field names (e.g. "Id") to
1458	// unconditionally include in API requests. By default, fields with
1459	// empty or default values are omitted from API requests. However, any
1460	// non-pointer, non-interface field appearing in ForceSendFields will be
1461	// sent to the server regardless of whether the field is empty or not.
1462	// This may be used to include empty fields in Patch requests.
1463	ForceSendFields []string `json:"-"`
1464
1465	// NullFields is a list of field names (e.g. "Id") to include in API
1466	// requests with the JSON null value. By default, fields with empty
1467	// values are omitted from API requests. However, any field with an
1468	// empty value appearing in NullFields will be sent to the server as
1469	// null. It is an error if a field in this list has a non-empty value.
1470	// This may be used to include null fields in Patch requests.
1471	NullFields []string `json:"-"`
1472}
1473
1474func (s *GoogleCloudApigeeV1ApiCategoryData) MarshalJSON() ([]byte, error) {
1475	type NoMethod GoogleCloudApigeeV1ApiCategoryData
1476	raw := NoMethod(*s)
1477	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1478}
1479
1480type GoogleCloudApigeeV1ApiProduct struct {
1481	ApiResources []string `json:"apiResources,omitempty"`
1482
1483	// ApprovalType: Flag that specifies how API keys are approved to access
1484	// the APIs defined by the API product. If set to `manual`, the consumer
1485	// key is generated and returned in "pending" state. In this case, the
1486	// API keys won't work until they have been explicitly approved. If set
1487	// to `auto`, the consumer key is generated and returned in "approved"
1488	// state and can be used immediately. **Note:** Typically, `auto` is
1489	// used to provide access to free or trial API products that provide
1490	// limited quota or capabilities.
1491	ApprovalType string `json:"approvalType,omitempty"`
1492
1493	// Attributes: Array of attributes that may be used to extend the
1494	// default API product profile with customer-specific metadata. You can
1495	// specify a maximum of 18 attributes. Use this property to specify the
1496	// access level of the API product as either `public`, `private`, or
1497	// `internal`. Only products marked `public` are available to developers
1498	// in the Apigee developer portal. For example, you can set a product to
1499	// `internal` while it is in development and then change access to
1500	// `public` when it is ready to release on the portal. API products
1501	// marked as `private` do not appear on the portal, but can be accessed
1502	// by external developers.
1503	Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
1504
1505	// CreatedAt: Response only. Creation time of this environment as
1506	// milliseconds since epoch.
1507	CreatedAt int64 `json:"createdAt,omitempty,string"`
1508
1509	// Description: Description of the API product. Include key information
1510	// about the API product that is not captured by other fields.
1511	// Comma-separated list of API resources to be bundled in the API
1512	// product. By default, the resource paths are mapped from the
1513	// `proxy.pathsuffix` variable. The proxy path suffix is defined as the
1514	// URI fragment following the ProxyEndpoint base path. For example, if
1515	// the `apiResources` element is defined to be `/forecastrss` and the
1516	// base path defined for the API proxy is `/weather`, then only requests
1517	// to `/weather/forecastrss` are permitted by the API product. You can
1518	// select a specific path, or you can select all subpaths with the
1519	// following wildcard: - `/**`: Indicates that all sub-URIs are
1520	// included. - `/*` : Indicates that only URIs one level down are
1521	// included. By default, / supports the same resources as /** as well as
1522	// the base path defined by the API proxy. For example, if the base path
1523	// of the API proxy is `/v1/weatherapikey`, then the API product
1524	// supports requests to `/v1/weatherapikey` and to any sub-URIs, such as
1525	// `/v1/weatherapikey/forecastrss`, `/v1/weatherapikey/region/CA`, and
1526	// so on. For more information, see Managing API products.
1527	Description string `json:"description,omitempty"`
1528
1529	// DisplayName: Name displayed in the UI or developer portal to
1530	// developers registering for API access.
1531	DisplayName string `json:"displayName,omitempty"`
1532
1533	// Environments: Comma-separated list of environment names to which the
1534	// API product is bound. Requests to environments that are not listed
1535	// are rejected. By specifying one or more environments, you can bind
1536	// the resources listed in the API product to a specific environment,
1537	// preventing developers from accessing those resources through API
1538	// proxies deployed in another environment. This setting is used, for
1539	// example, to prevent resources associated with API proxies in `prod`
1540	// from being accessed by API proxies deployed in `test`.
1541	Environments []string `json:"environments,omitempty"`
1542
1543	// GraphqlOperationGroup: Configuration used to group Apigee proxies or
1544	// remote services with graphQL operation name, graphQL operation type
1545	// and quotas. This grouping allows us to precisely set quota for a
1546	// particular combination of graphQL name and operation type for a
1547	// particular proxy request. If graphQL name is not set, this would
1548	// imply quota will be applied on all graphQL requests matching the
1549	// operation type.
1550	GraphqlOperationGroup *GoogleCloudApigeeV1GraphQLOperationGroup `json:"graphqlOperationGroup,omitempty"`
1551
1552	// LastModifiedAt: Response only. Modified time of this environment as
1553	// milliseconds since epoch.
1554	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
1555
1556	// Name: Internal name of the API product. Characters you can use in the
1557	// name are restricted to: `A-Z0-9._\-$ %`. **Note:** The internal name
1558	// cannot be edited when updating the API product.
1559	Name string `json:"name,omitempty"`
1560
1561	// OperationGroup: Configuration used to group Apigee proxies or remote
1562	// services with resources, method types, and quotas. The resource
1563	// refers to the resource URI (excluding the base path). With this
1564	// grouping, the API product creator is able to fine-tune and give
1565	// precise control over which REST methods have access to specific
1566	// resources and how many calls can be made (using the `quota` setting).
1567	// **Note:** The `api_resources` setting cannot be specified for both
1568	// the API product and operation group; otherwise the call will fail.
1569	OperationGroup *GoogleCloudApigeeV1OperationGroup `json:"operationGroup,omitempty"`
1570
1571	// Proxies: Comma-separated list of API proxy names to which this API
1572	// product is bound. By specifying API proxies, you can associate
1573	// resources in the API product with specific API proxies, preventing
1574	// developers from accessing those resources through other API proxies.
1575	// Apigee rejects requests to API proxies that are not listed. **Note:**
1576	// The API proxy names must already exist in the specified environment
1577	// as they will be validated upon creation.
1578	Proxies []string `json:"proxies,omitempty"`
1579
1580	// Quota: Number of request messages permitted per app by this API
1581	// product for the specified `quotaInterval` and `quotaTimeUnit`. For
1582	// example, a `quota` of 50, for a `quotaInterval` of 12 and a
1583	// `quotaTimeUnit` of hours means 50 requests are allowed every 12
1584	// hours.
1585	Quota string `json:"quota,omitempty"`
1586
1587	// QuotaInterval: Time interval over which the number of request
1588	// messages is calculated.
1589	QuotaInterval string `json:"quotaInterval,omitempty"`
1590
1591	// QuotaTimeUnit: Time unit defined for the `quotaInterval`. Valid
1592	// values include `minute`, `hour`, `day`, or `month`.
1593	QuotaTimeUnit string `json:"quotaTimeUnit,omitempty"`
1594
1595	// Scopes: Comma-separated list of OAuth scopes that are validated at
1596	// runtime. Apigee validates that the scopes in any access token
1597	// presented match the scopes defined in the OAuth policy associated
1598	// with the API product.
1599	Scopes []string `json:"scopes,omitempty"`
1600
1601	// ServerResponse contains the HTTP response code and headers from the
1602	// server.
1603	googleapi.ServerResponse `json:"-"`
1604
1605	// ForceSendFields is a list of field names (e.g. "ApiResources") to
1606	// unconditionally include in API requests. By default, fields with
1607	// empty or default values are omitted from API requests. However, any
1608	// non-pointer, non-interface field appearing in ForceSendFields will be
1609	// sent to the server regardless of whether the field is empty or not.
1610	// This may be used to include empty fields in Patch requests.
1611	ForceSendFields []string `json:"-"`
1612
1613	// NullFields is a list of field names (e.g. "ApiResources") to include
1614	// in API requests with the JSON null value. By default, fields with
1615	// empty values are omitted from API requests. However, any field with
1616	// an empty value appearing in NullFields will be sent to the server as
1617	// null. It is an error if a field in this list has a non-empty value.
1618	// This may be used to include null fields in Patch requests.
1619	NullFields []string `json:"-"`
1620}
1621
1622func (s *GoogleCloudApigeeV1ApiProduct) MarshalJSON() ([]byte, error) {
1623	type NoMethod GoogleCloudApigeeV1ApiProduct
1624	raw := NoMethod(*s)
1625	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1626}
1627
1628type GoogleCloudApigeeV1ApiProductRef struct {
1629	// Apiproduct: Name of the API product.
1630	Apiproduct string `json:"apiproduct,omitempty"`
1631
1632	// Status: Status of the API product.
1633	Status string `json:"status,omitempty"`
1634
1635	// ForceSendFields is a list of field names (e.g. "Apiproduct") to
1636	// unconditionally include in API requests. By default, fields with
1637	// empty or default values are omitted from API requests. However, any
1638	// non-pointer, non-interface field appearing in ForceSendFields will be
1639	// sent to the server regardless of whether the field is empty or not.
1640	// This may be used to include empty fields in Patch requests.
1641	ForceSendFields []string `json:"-"`
1642
1643	// NullFields is a list of field names (e.g. "Apiproduct") to include in
1644	// API requests with the JSON null value. By default, fields with empty
1645	// values are omitted from API requests. However, any field with an
1646	// empty value appearing in NullFields will be sent to the server as
1647	// null. It is an error if a field in this list has a non-empty value.
1648	// This may be used to include null fields in Patch requests.
1649	NullFields []string `json:"-"`
1650}
1651
1652func (s *GoogleCloudApigeeV1ApiProductRef) MarshalJSON() ([]byte, error) {
1653	type NoMethod GoogleCloudApigeeV1ApiProductRef
1654	raw := NoMethod(*s)
1655	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1656}
1657
1658// GoogleCloudApigeeV1ApiProxy: Metadata describing the API proxy
1659type GoogleCloudApigeeV1ApiProxy struct {
1660	// Labels: User labels applied to this API Proxy.
1661	Labels map[string]string `json:"labels,omitempty"`
1662
1663	// LatestRevisionId: Output only. The id of the most recently created
1664	// revision for this api proxy.
1665	LatestRevisionId string `json:"latestRevisionId,omitempty"`
1666
1667	// MetaData: Output only. Metadata describing the API proxy.
1668	MetaData *GoogleCloudApigeeV1EntityMetadata `json:"metaData,omitempty"`
1669
1670	// Name: Output only. Name of the API proxy.
1671	Name string `json:"name,omitempty"`
1672
1673	// Revision: Output only. List of revisons defined for the API proxy.
1674	Revision []string `json:"revision,omitempty"`
1675
1676	// ServerResponse contains the HTTP response code and headers from the
1677	// server.
1678	googleapi.ServerResponse `json:"-"`
1679
1680	// ForceSendFields is a list of field names (e.g. "Labels") to
1681	// unconditionally include in API requests. By default, fields with
1682	// empty or default values are omitted from API requests. However, any
1683	// non-pointer, non-interface field appearing in ForceSendFields will be
1684	// sent to the server regardless of whether the field is empty or not.
1685	// This may be used to include empty fields in Patch requests.
1686	ForceSendFields []string `json:"-"`
1687
1688	// NullFields is a list of field names (e.g. "Labels") to include in API
1689	// requests with the JSON null value. By default, fields with empty
1690	// values are omitted from API requests. However, any field with an
1691	// empty value appearing in NullFields will be sent to the server as
1692	// null. It is an error if a field in this list has a non-empty value.
1693	// This may be used to include null fields in Patch requests.
1694	NullFields []string `json:"-"`
1695}
1696
1697func (s *GoogleCloudApigeeV1ApiProxy) MarshalJSON() ([]byte, error) {
1698	type NoMethod GoogleCloudApigeeV1ApiProxy
1699	raw := NoMethod(*s)
1700	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1701}
1702
1703// GoogleCloudApigeeV1ApiProxyRevision: API proxy revision.
1704type GoogleCloudApigeeV1ApiProxyRevision struct {
1705	// Basepaths: Base URL of the API proxy.
1706	Basepaths []string `json:"basepaths,omitempty"`
1707
1708	// ConfigurationVersion: Version of the API proxy configuration schema
1709	// to which the API proxy conforms. Currently, the only supported value
1710	// is 4.0 (`majorVersion.minorVersion`). This setting may be used in the
1711	// future to track the evolution of the API proxy format.
1712	ConfigurationVersion *GoogleCloudApigeeV1ConfigVersion `json:"configurationVersion,omitempty"`
1713
1714	// ContextInfo: Revision number, app name, and organization for the API
1715	// proxy.
1716	ContextInfo string `json:"contextInfo,omitempty"`
1717
1718	// CreatedAt: Time that the API proxy revision was created in
1719	// milliseconds since epoch.
1720	CreatedAt int64 `json:"createdAt,omitempty,string"`
1721
1722	// Description: Description of the API proxy revision.
1723	Description string `json:"description,omitempty"`
1724
1725	// DisplayName: Human-readable name of the API proxy.
1726	DisplayName string `json:"displayName,omitempty"`
1727
1728	// EntityMetaDataAsProperties: Metadata describing the API proxy
1729	// revision as a key-value map.
1730	EntityMetaDataAsProperties map[string]string `json:"entityMetaDataAsProperties,omitempty"`
1731
1732	// LastModifiedAt: Time that the API proxy revision was last modified in
1733	// milliseconds since epoch.
1734	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
1735
1736	// Name: Name of the API proxy.
1737	Name string `json:"name,omitempty"`
1738
1739	// Policies: List of policy names included in the API proxy revision..
1740	Policies []string `json:"policies,omitempty"`
1741
1742	// Proxies: List of proxy names included in the API proxy revision.
1743	Proxies []string `json:"proxies,omitempty"`
1744
1745	// ProxyEndpoints: List of ProxyEndpoints in the `/proxies` directory of
1746	// the API proxy. Typically, this element is included only when the API
1747	// proxy was created using the Edge UI. This is a 'manifest' setting
1748	// designed to provide visibility into the contents of the API proxy.
1749	ProxyEndpoints []string `json:"proxyEndpoints,omitempty"`
1750
1751	// ResourceFiles: List of resource files included in the API proxy
1752	// revision.
1753	ResourceFiles *GoogleCloudApigeeV1ResourceFiles `json:"resourceFiles,omitempty"`
1754
1755	// Resources: List of the resources included in the API proxy revision
1756	// formatted as "{type}://{name}".
1757	Resources []string `json:"resources,omitempty"`
1758
1759	// Revision: API proxy revision.
1760	Revision string `json:"revision,omitempty"`
1761
1762	// SharedFlows: List of the shared flows included in the API proxy
1763	// revision.
1764	SharedFlows []string `json:"sharedFlows,omitempty"`
1765
1766	// Spec: OpenAPI Specification that is associated with the API proxy.
1767	// The value is set to a URL or to a path in the specification store.
1768	Spec string `json:"spec,omitempty"`
1769
1770	// TargetEndpoints: List of TargetEndpoints in the `/targets` directory
1771	// of the API proxy. Typically, this element is included only when the
1772	// API proxy was created using the Edge UI. This is a 'manifest' setting
1773	// designed to provide visibility into the contents of the API proxy.
1774	TargetEndpoints []string `json:"targetEndpoints,omitempty"`
1775
1776	// TargetServers: List of TargetServers referenced in any TargetEndpoint
1777	// in the API proxy. Typically, you will see this element only when the
1778	// API proxy was created using the Edge UI. This is a 'manifest' setting
1779	// designed to provide visibility into the contents of the API proxy.
1780	TargetServers []string `json:"targetServers,omitempty"`
1781
1782	// Targets: List of the targets included in the API proxy revision.
1783	Targets []string `json:"targets,omitempty"`
1784
1785	// Teams: List of the teams included in the API proxy revision.
1786	Teams []string `json:"teams,omitempty"`
1787
1788	// Type: Type. Set to `Application`. Maintained for compatibility with
1789	// the Apigee Edge API.
1790	Type string `json:"type,omitempty"`
1791
1792	// ServerResponse contains the HTTP response code and headers from the
1793	// server.
1794	googleapi.ServerResponse `json:"-"`
1795
1796	// ForceSendFields is a list of field names (e.g. "Basepaths") to
1797	// unconditionally include in API requests. By default, fields with
1798	// empty or default values are omitted from API requests. However, any
1799	// non-pointer, non-interface field appearing in ForceSendFields will be
1800	// sent to the server regardless of whether the field is empty or not.
1801	// This may be used to include empty fields in Patch requests.
1802	ForceSendFields []string `json:"-"`
1803
1804	// NullFields is a list of field names (e.g. "Basepaths") to include in
1805	// API requests with the JSON null value. By default, fields with empty
1806	// values are omitted from API requests. However, any field with an
1807	// empty value appearing in NullFields will be sent to the server as
1808	// null. It is an error if a field in this list has a non-empty value.
1809	// This may be used to include null fields in Patch requests.
1810	NullFields []string `json:"-"`
1811}
1812
1813func (s *GoogleCloudApigeeV1ApiProxyRevision) MarshalJSON() ([]byte, error) {
1814	type NoMethod GoogleCloudApigeeV1ApiProxyRevision
1815	raw := NoMethod(*s)
1816	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1817}
1818
1819type GoogleCloudApigeeV1ApiResponseWrapper struct {
1820	// ErrorCode: ID that can be used to find errors in the log files.
1821	ErrorCode string `json:"errorCode,omitempty"`
1822
1823	// Message: Description of the operation.
1824	Message string `json:"message,omitempty"`
1825
1826	// RequestId: ID that can be used to find request details in the log
1827	// files.
1828	RequestId string `json:"requestId,omitempty"`
1829
1830	// Status: Status of the operation.
1831	Status string `json:"status,omitempty"`
1832
1833	// ServerResponse contains the HTTP response code and headers from the
1834	// server.
1835	googleapi.ServerResponse `json:"-"`
1836
1837	// ForceSendFields is a list of field names (e.g. "ErrorCode") to
1838	// unconditionally include in API requests. By default, fields with
1839	// empty or default values are omitted from API requests. However, any
1840	// non-pointer, non-interface field appearing in ForceSendFields will be
1841	// sent to the server regardless of whether the field is empty or not.
1842	// This may be used to include empty fields in Patch requests.
1843	ForceSendFields []string `json:"-"`
1844
1845	// NullFields is a list of field names (e.g. "ErrorCode") to include in
1846	// API requests with the JSON null value. By default, fields with empty
1847	// values are omitted from API requests. However, any field with an
1848	// empty value appearing in NullFields will be sent to the server as
1849	// null. It is an error if a field in this list has a non-empty value.
1850	// This may be used to include null fields in Patch requests.
1851	NullFields []string `json:"-"`
1852}
1853
1854func (s *GoogleCloudApigeeV1ApiResponseWrapper) MarshalJSON() ([]byte, error) {
1855	type NoMethod GoogleCloudApigeeV1ApiResponseWrapper
1856	raw := NoMethod(*s)
1857	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1858}
1859
1860type GoogleCloudApigeeV1App struct {
1861	// ApiProducts: List of API products associated with the app.
1862	ApiProducts []*GoogleCloudApigeeV1ApiProductRef `json:"apiProducts,omitempty"`
1863
1864	// AppId: ID of the app.
1865	AppId string `json:"appId,omitempty"`
1866
1867	// Attributes: List of attributes.
1868	Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
1869
1870	// CallbackUrl: Callback URL used by OAuth 2.0 authorization servers to
1871	// communicate authorization codes back to apps.
1872	CallbackUrl string `json:"callbackUrl,omitempty"`
1873
1874	// CompanyName: Name of the company that owns the app.
1875	CompanyName string `json:"companyName,omitempty"`
1876
1877	// CreatedAt: Output only. Unix time when the app was created.
1878	CreatedAt int64 `json:"createdAt,omitempty,string"`
1879
1880	// Credentials: Output only. Set of credentials for the app. Credentials
1881	// are API key/secret pairs associated with API products.
1882	Credentials []*GoogleCloudApigeeV1Credential `json:"credentials,omitempty"`
1883
1884	// DeveloperId: ID of the developer.
1885	DeveloperId string `json:"developerId,omitempty"`
1886
1887	// KeyExpiresIn: Duration, in milliseconds, of the consumer key that
1888	// will be generated for the app. The default value, -1, indicates an
1889	// infinite validity period. Once set, the expiration can't be updated.
1890	// json key: keyExpiresIn
1891	KeyExpiresIn int64 `json:"keyExpiresIn,omitempty,string"`
1892
1893	// LastModifiedAt: Output only. Last modified time as milliseconds since
1894	// epoch.
1895	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
1896
1897	// Name: Name of the app.
1898	Name string `json:"name,omitempty"`
1899
1900	// Scopes: Scopes to apply to the app. The specified scope names must
1901	// already exist on the API product that you associate with the app.
1902	Scopes []string `json:"scopes,omitempty"`
1903
1904	// Status: Status of the credential.
1905	Status string `json:"status,omitempty"`
1906
1907	// ServerResponse contains the HTTP response code and headers from the
1908	// server.
1909	googleapi.ServerResponse `json:"-"`
1910
1911	// ForceSendFields is a list of field names (e.g. "ApiProducts") to
1912	// unconditionally include in API requests. By default, fields with
1913	// empty or default values are omitted from API requests. However, any
1914	// non-pointer, non-interface field appearing in ForceSendFields will be
1915	// sent to the server regardless of whether the field is empty or not.
1916	// This may be used to include empty fields in Patch requests.
1917	ForceSendFields []string `json:"-"`
1918
1919	// NullFields is a list of field names (e.g. "ApiProducts") to include
1920	// in API requests with the JSON null value. By default, fields with
1921	// empty values are omitted from API requests. However, any field with
1922	// an empty value appearing in NullFields will be sent to the server as
1923	// null. It is an error if a field in this list has a non-empty value.
1924	// This may be used to include null fields in Patch requests.
1925	NullFields []string `json:"-"`
1926}
1927
1928func (s *GoogleCloudApigeeV1App) MarshalJSON() ([]byte, error) {
1929	type NoMethod GoogleCloudApigeeV1App
1930	raw := NoMethod(*s)
1931	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1932}
1933
1934// GoogleCloudApigeeV1ArchiveDeployment: Archive Deployment information.
1935type GoogleCloudApigeeV1ArchiveDeployment struct {
1936	// CreatedAt: Output only. The time at which the Archive Deployment was
1937	// created in milliseconds since the epoch.
1938	CreatedAt int64 `json:"createdAt,omitempty,string"`
1939
1940	// GcsUri: Input only. The Google Cloud Storage signed URL returned from
1941	// GenerateUploadUrl and used to upload the Archive zip file.
1942	GcsUri string `json:"gcsUri,omitempty"`
1943
1944	// Labels: User-supplied key-value pairs used to organize
1945	// ArchiveDeployments. Label keys must be between 1 and 63 characters
1946	// long, have a UTF-8 encoding of maximum 128 bytes, and must conform to
1947	// the following PCRE regular expression: \p{Ll}\p{Lo}{0,62} Label
1948	// values must be between 1 and 63 characters long, have a UTF-8
1949	// encoding of maximum 128 bytes, and must conform to the following PCRE
1950	// regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63} No more than 64
1951	// labels can be associated with a given store.
1952	Labels map[string]string `json:"labels,omitempty"`
1953
1954	// Name: Name of the Archive Deployment in the following format:
1955	// `organizations/{org}/environments/{env}/archiveDeployments/{id}`.
1956	Name string `json:"name,omitempty"`
1957
1958	// Operation: Output only. A reference to the LRO that created this
1959	// Archive Deployment in the following format:
1960	// `organizations/{org}/operations/{id}`
1961	Operation string `json:"operation,omitempty"`
1962
1963	// UpdatedAt: Output only. The time at which the Archive Deployment was
1964	// updated in milliseconds since the epoch.
1965	UpdatedAt int64 `json:"updatedAt,omitempty,string"`
1966
1967	// ServerResponse contains the HTTP response code and headers from the
1968	// server.
1969	googleapi.ServerResponse `json:"-"`
1970
1971	// ForceSendFields is a list of field names (e.g. "CreatedAt") to
1972	// unconditionally include in API requests. By default, fields with
1973	// empty or default values are omitted from API requests. However, any
1974	// non-pointer, non-interface field appearing in ForceSendFields will be
1975	// sent to the server regardless of whether the field is empty or not.
1976	// This may be used to include empty fields in Patch requests.
1977	ForceSendFields []string `json:"-"`
1978
1979	// NullFields is a list of field names (e.g. "CreatedAt") to include in
1980	// API requests with the JSON null value. By default, fields with empty
1981	// values are omitted from API requests. However, any field with an
1982	// empty value appearing in NullFields will be sent to the server as
1983	// null. It is an error if a field in this list has a non-empty value.
1984	// This may be used to include null fields in Patch requests.
1985	NullFields []string `json:"-"`
1986}
1987
1988func (s *GoogleCloudApigeeV1ArchiveDeployment) MarshalJSON() ([]byte, error) {
1989	type NoMethod GoogleCloudApigeeV1ArchiveDeployment
1990	raw := NoMethod(*s)
1991	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1992}
1993
1994type GoogleCloudApigeeV1AsyncQuery struct {
1995	// Created: Creation time of the query.
1996	Created string `json:"created,omitempty"`
1997
1998	// EnvgroupHostname: Hostname is available only when query is executed
1999	// at host level.
2000	EnvgroupHostname string `json:"envgroupHostname,omitempty"`
2001
2002	// Error: Error is set when query fails.
2003	Error string `json:"error,omitempty"`
2004
2005	// ExecutionTime: ExecutionTime is available only after the query is
2006	// completed.
2007	ExecutionTime string `json:"executionTime,omitempty"`
2008
2009	// Name: Asynchronous Query Name.
2010	Name string `json:"name,omitempty"`
2011
2012	// QueryParams: Contains information like metrics, dimenstions etc of
2013	// the AsyncQuery.
2014	QueryParams *GoogleCloudApigeeV1QueryMetadata `json:"queryParams,omitempty"`
2015
2016	// ReportDefinitionId: Asynchronous Report ID.
2017	ReportDefinitionId string `json:"reportDefinitionId,omitempty"`
2018
2019	// Result: Result is available only after the query is completed.
2020	Result *GoogleCloudApigeeV1AsyncQueryResult `json:"result,omitempty"`
2021
2022	// ResultFileSize: ResultFileSize is available only after the query is
2023	// completed.
2024	ResultFileSize string `json:"resultFileSize,omitempty"`
2025
2026	// ResultRows: ResultRows is available only after the query is
2027	// completed.
2028	ResultRows int64 `json:"resultRows,omitempty,string"`
2029
2030	// Self: Self link of the query. Example:
2031	// `/organizations/myorg/environments/myenv/queries/9cfc0d85-0f30-46d6-ae
2032	// 6f-318d0cb961bd` or following format if query is running at host
2033	// level:
2034	// `/organizations/myorg/hostQueries/9cfc0d85-0f30-46d6-ae6f-318d0cb961bd
2035	// `
2036	Self string `json:"self,omitempty"`
2037
2038	// State: Query state could be "enqueued", "running", "completed",
2039	// "failed".
2040	State string `json:"state,omitempty"`
2041
2042	// Updated: Last updated timestamp for the query.
2043	Updated string `json:"updated,omitempty"`
2044
2045	// ServerResponse contains the HTTP response code and headers from the
2046	// server.
2047	googleapi.ServerResponse `json:"-"`
2048
2049	// ForceSendFields is a list of field names (e.g. "Created") to
2050	// unconditionally include in API requests. By default, fields with
2051	// empty or default values are omitted from API requests. However, any
2052	// non-pointer, non-interface field appearing in ForceSendFields will be
2053	// sent to the server regardless of whether the field is empty or not.
2054	// This may be used to include empty fields in Patch requests.
2055	ForceSendFields []string `json:"-"`
2056
2057	// NullFields is a list of field names (e.g. "Created") to include in
2058	// API requests with the JSON null value. By default, fields with empty
2059	// values are omitted from API requests. However, any field with an
2060	// empty value appearing in NullFields will be sent to the server as
2061	// null. It is an error if a field in this list has a non-empty value.
2062	// This may be used to include null fields in Patch requests.
2063	NullFields []string `json:"-"`
2064}
2065
2066func (s *GoogleCloudApigeeV1AsyncQuery) MarshalJSON() ([]byte, error) {
2067	type NoMethod GoogleCloudApigeeV1AsyncQuery
2068	raw := NoMethod(*s)
2069	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2070}
2071
2072type GoogleCloudApigeeV1AsyncQueryResult struct {
2073	// Expires: Query result will be unaccessable after this time.
2074	Expires string `json:"expires,omitempty"`
2075
2076	// Self: Self link of the query results. Example:
2077	// `/organizations/myorg/environments/myenv/queries/9cfc0d85-0f30-46d6-ae
2078	// 6f-318d0cb961bd/result` or following format if query is running at
2079	// host level:
2080	// `/organizations/myorg/hostQueries/9cfc0d85-0f30-46d6-ae6f-318d0cb961bd
2081	// /result`
2082	Self string `json:"self,omitempty"`
2083
2084	// ForceSendFields is a list of field names (e.g. "Expires") to
2085	// unconditionally include in API requests. By default, fields with
2086	// empty or default values are omitted from API requests. However, any
2087	// non-pointer, non-interface field appearing in ForceSendFields will be
2088	// sent to the server regardless of whether the field is empty or not.
2089	// This may be used to include empty fields in Patch requests.
2090	ForceSendFields []string `json:"-"`
2091
2092	// NullFields is a list of field names (e.g. "Expires") to include in
2093	// API requests with the JSON null value. By default, fields with empty
2094	// values are omitted from API requests. However, any field with an
2095	// empty value appearing in NullFields will be sent to the server as
2096	// null. It is an error if a field in this list has a non-empty value.
2097	// This may be used to include null fields in Patch requests.
2098	NullFields []string `json:"-"`
2099}
2100
2101func (s *GoogleCloudApigeeV1AsyncQueryResult) MarshalJSON() ([]byte, error) {
2102	type NoMethod GoogleCloudApigeeV1AsyncQueryResult
2103	raw := NoMethod(*s)
2104	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2105}
2106
2107type GoogleCloudApigeeV1AsyncQueryResultView struct {
2108	// Code: Error code when there is a failure.
2109	Code int64 `json:"code,omitempty"`
2110
2111	// Error: Error message when there is a failure.
2112	Error string `json:"error,omitempty"`
2113
2114	// Metadata: Metadata contains information like metrics, dimenstions etc
2115	// of the AsyncQuery.
2116	Metadata *GoogleCloudApigeeV1QueryMetadata `json:"metadata,omitempty"`
2117
2118	// Rows: Rows of query result. Each row is a JSON object. Example:
2119	// {sum(message_count): 1, developer_app: "(not set)",…}
2120	Rows []interface{} `json:"rows,omitempty"`
2121
2122	// State: State of retrieving ResultView.
2123	State string `json:"state,omitempty"`
2124
2125	// ServerResponse contains the HTTP response code and headers from the
2126	// server.
2127	googleapi.ServerResponse `json:"-"`
2128
2129	// ForceSendFields is a list of field names (e.g. "Code") to
2130	// unconditionally include in API requests. By default, fields with
2131	// empty or default values are omitted from API requests. However, any
2132	// non-pointer, non-interface field appearing in ForceSendFields will be
2133	// sent to the server regardless of whether the field is empty or not.
2134	// This may be used to include empty fields in Patch requests.
2135	ForceSendFields []string `json:"-"`
2136
2137	// NullFields is a list of field names (e.g. "Code") to include in API
2138	// requests with the JSON null value. By default, fields with empty
2139	// values are omitted from API requests. However, any field with an
2140	// empty value appearing in NullFields will be sent to the server as
2141	// null. It is an error if a field in this list has a non-empty value.
2142	// This may be used to include null fields in Patch requests.
2143	NullFields []string `json:"-"`
2144}
2145
2146func (s *GoogleCloudApigeeV1AsyncQueryResultView) MarshalJSON() ([]byte, error) {
2147	type NoMethod GoogleCloudApigeeV1AsyncQueryResultView
2148	raw := NoMethod(*s)
2149	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2150}
2151
2152// GoogleCloudApigeeV1Attribute: Key-value pair to store extra metadata.
2153type GoogleCloudApigeeV1Attribute struct {
2154	// Name: API key of the attribute.
2155	Name string `json:"name,omitempty"`
2156
2157	// Value: Value of the attribute.
2158	Value string `json:"value,omitempty"`
2159
2160	// ServerResponse contains the HTTP response code and headers from the
2161	// server.
2162	googleapi.ServerResponse `json:"-"`
2163
2164	// ForceSendFields is a list of field names (e.g. "Name") to
2165	// unconditionally include in API requests. By default, fields with
2166	// empty or default values are omitted from API requests. However, any
2167	// non-pointer, non-interface field appearing in ForceSendFields will be
2168	// sent to the server regardless of whether the field is empty or not.
2169	// This may be used to include empty fields in Patch requests.
2170	ForceSendFields []string `json:"-"`
2171
2172	// NullFields is a list of field names (e.g. "Name") to include in API
2173	// requests with the JSON null value. By default, fields with empty
2174	// values are omitted from API requests. However, any field with an
2175	// empty value appearing in NullFields will be sent to the server as
2176	// null. It is an error if a field in this list has a non-empty value.
2177	// This may be used to include null fields in Patch requests.
2178	NullFields []string `json:"-"`
2179}
2180
2181func (s *GoogleCloudApigeeV1Attribute) MarshalJSON() ([]byte, error) {
2182	type NoMethod GoogleCloudApigeeV1Attribute
2183	raw := NoMethod(*s)
2184	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2185}
2186
2187type GoogleCloudApigeeV1Attributes struct {
2188	// Attribute: List of attributes.
2189	Attribute []*GoogleCloudApigeeV1Attribute `json:"attribute,omitempty"`
2190
2191	// ServerResponse contains the HTTP response code and headers from the
2192	// server.
2193	googleapi.ServerResponse `json:"-"`
2194
2195	// ForceSendFields is a list of field names (e.g. "Attribute") to
2196	// unconditionally include in API requests. By default, fields with
2197	// empty or default values are omitted from API requests. However, any
2198	// non-pointer, non-interface field appearing in ForceSendFields will be
2199	// sent to the server regardless of whether the field is empty or not.
2200	// This may be used to include empty fields in Patch requests.
2201	ForceSendFields []string `json:"-"`
2202
2203	// NullFields is a list of field names (e.g. "Attribute") to include in
2204	// API requests with the JSON null value. By default, fields with empty
2205	// values are omitted from API requests. However, any field with an
2206	// empty value appearing in NullFields will be sent to the server as
2207	// null. It is an error if a field in this list has a non-empty value.
2208	// This may be used to include null fields in Patch requests.
2209	NullFields []string `json:"-"`
2210}
2211
2212func (s *GoogleCloudApigeeV1Attributes) MarshalJSON() ([]byte, error) {
2213	type NoMethod GoogleCloudApigeeV1Attributes
2214	raw := NoMethod(*s)
2215	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2216}
2217
2218// GoogleCloudApigeeV1CanaryEvaluation: CanaryEvaluation represents the
2219// canary analysis between two versions of the runtime that is serving
2220// requests.
2221type GoogleCloudApigeeV1CanaryEvaluation struct {
2222	// Control: Required. The stable version that is serving requests.
2223	Control string `json:"control,omitempty"`
2224
2225	// CreateTime: Output only. Create time of the canary evaluation.
2226	CreateTime string `json:"createTime,omitempty"`
2227
2228	// EndTime: Required. End time for the evaluation's analysis.
2229	EndTime string `json:"endTime,omitempty"`
2230
2231	// MetricLabels: Required. Labels used to filter the metrics used for a
2232	// canary evaluation.
2233	MetricLabels *GoogleCloudApigeeV1CanaryEvaluationMetricLabels `json:"metricLabels,omitempty"`
2234
2235	// Name: Output only. Name of the canary evalution.
2236	Name string `json:"name,omitempty"`
2237
2238	// StartTime: Required. Start time for the canary evaluation's analysis.
2239	StartTime string `json:"startTime,omitempty"`
2240
2241	// State: Output only. The current state of the canary evaluation.
2242	//
2243	// Possible values:
2244	//   "STATE_UNSPECIFIED" - No state has been specified.
2245	//   "RUNNING" - The canary evaluation is still in progress.
2246	//   "SUCCEEDED" - The canary evaluation has finished.
2247	State string `json:"state,omitempty"`
2248
2249	// Treatment: Required. The newer version that is serving requests.
2250	Treatment string `json:"treatment,omitempty"`
2251
2252	// Verdict: Output only. The resulting verdict of the canary
2253	// evaluations: NONE, PASS, or FAIL.
2254	//
2255	// Possible values:
2256	//   "VERDICT_UNSPECIFIED" - Verdict is not available yet.
2257	//   "NONE" - No verdict reached.
2258	//   "FAIL" - Evaluation is not good.
2259	//   "PASS" - Evaluation is good.
2260	Verdict string `json:"verdict,omitempty"`
2261
2262	// ServerResponse contains the HTTP response code and headers from the
2263	// server.
2264	googleapi.ServerResponse `json:"-"`
2265
2266	// ForceSendFields is a list of field names (e.g. "Control") to
2267	// unconditionally include in API requests. By default, fields with
2268	// empty or default values are omitted from API requests. However, any
2269	// non-pointer, non-interface field appearing in ForceSendFields will be
2270	// sent to the server regardless of whether the field is empty or not.
2271	// This may be used to include empty fields in Patch requests.
2272	ForceSendFields []string `json:"-"`
2273
2274	// NullFields is a list of field names (e.g. "Control") to include in
2275	// API requests with the JSON null value. By default, fields with empty
2276	// values are omitted from API requests. However, any field with an
2277	// empty value appearing in NullFields will be sent to the server as
2278	// null. It is an error if a field in this list has a non-empty value.
2279	// This may be used to include null fields in Patch requests.
2280	NullFields []string `json:"-"`
2281}
2282
2283func (s *GoogleCloudApigeeV1CanaryEvaluation) MarshalJSON() ([]byte, error) {
2284	type NoMethod GoogleCloudApigeeV1CanaryEvaluation
2285	raw := NoMethod(*s)
2286	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2287}
2288
2289// GoogleCloudApigeeV1CanaryEvaluationMetricLabels: Labels that can be
2290// used to filter Apigee metrics.
2291type GoogleCloudApigeeV1CanaryEvaluationMetricLabels struct {
2292	// Env: The environment ID associated with the metrics.
2293	Env string `json:"env,omitempty"`
2294
2295	// InstanceId: Required. The instance ID associated with the metrics. In
2296	// Apigee Hybrid, the value is configured during installation.
2297	InstanceId string `json:"instance_id,omitempty"`
2298
2299	// Location: Required. The location associated with the metrics.
2300	Location string `json:"location,omitempty"`
2301
2302	// ForceSendFields is a list of field names (e.g. "Env") to
2303	// unconditionally include in API requests. By default, fields with
2304	// empty or default values are omitted from API requests. However, any
2305	// non-pointer, non-interface field appearing in ForceSendFields will be
2306	// sent to the server regardless of whether the field is empty or not.
2307	// This may be used to include empty fields in Patch requests.
2308	ForceSendFields []string `json:"-"`
2309
2310	// NullFields is a list of field names (e.g. "Env") to include in API
2311	// requests with the JSON null value. By default, fields with empty
2312	// values are omitted from API requests. However, any field with an
2313	// empty value appearing in NullFields will be sent to the server as
2314	// null. It is an error if a field in this list has a non-empty value.
2315	// This may be used to include null fields in Patch requests.
2316	NullFields []string `json:"-"`
2317}
2318
2319func (s *GoogleCloudApigeeV1CanaryEvaluationMetricLabels) MarshalJSON() ([]byte, error) {
2320	type NoMethod GoogleCloudApigeeV1CanaryEvaluationMetricLabels
2321	raw := NoMethod(*s)
2322	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2323}
2324
2325// GoogleCloudApigeeV1CertInfo: X.509 certificate as defined in RFC
2326// 5280.
2327type GoogleCloudApigeeV1CertInfo struct {
2328	// BasicConstraints: X.509 basic constraints extension.
2329	BasicConstraints string `json:"basicConstraints,omitempty"`
2330
2331	// ExpiryDate: X.509 `notAfter` validity period in milliseconds since
2332	// epoch.
2333	ExpiryDate int64 `json:"expiryDate,omitempty,string"`
2334
2335	// IsValid: Flag that specifies whether the certificate is valid. Flag
2336	// is set to `Yes` if the certificate is valid, `No` if expired, or `Not
2337	// yet` if not yet valid.
2338	IsValid string `json:"isValid,omitempty"`
2339
2340	// Issuer: X.509 issuer.
2341	Issuer string `json:"issuer,omitempty"`
2342
2343	// PublicKey: Public key component of the X.509 subject public key info.
2344	PublicKey string `json:"publicKey,omitempty"`
2345
2346	// SerialNumber: X.509 serial number.
2347	SerialNumber string `json:"serialNumber,omitempty"`
2348
2349	// SigAlgName: X.509 signatureAlgorithm.
2350	SigAlgName string `json:"sigAlgName,omitempty"`
2351
2352	// Subject: X.509 subject.
2353	Subject string `json:"subject,omitempty"`
2354
2355	// SubjectAlternativeNames: X.509 subject alternative names (SANs)
2356	// extension.
2357	SubjectAlternativeNames []string `json:"subjectAlternativeNames,omitempty"`
2358
2359	// ValidFrom: X.509 `notBefore` validity period in milliseconds since
2360	// epoch.
2361	ValidFrom int64 `json:"validFrom,omitempty,string"`
2362
2363	// Version: X.509 version.
2364	Version int64 `json:"version,omitempty"`
2365
2366	// ForceSendFields is a list of field names (e.g. "BasicConstraints") to
2367	// unconditionally include in API requests. By default, fields with
2368	// empty or default values are omitted from API requests. However, any
2369	// non-pointer, non-interface field appearing in ForceSendFields will be
2370	// sent to the server regardless of whether the field is empty or not.
2371	// This may be used to include empty fields in Patch requests.
2372	ForceSendFields []string `json:"-"`
2373
2374	// NullFields is a list of field names (e.g. "BasicConstraints") to
2375	// include in API requests with the JSON null value. By default, fields
2376	// with empty values are omitted from API requests. However, any field
2377	// with an empty value appearing in NullFields will be sent to the
2378	// server as null. It is an error if a field in this list has a
2379	// non-empty value. This may be used to include null fields in Patch
2380	// requests.
2381	NullFields []string `json:"-"`
2382}
2383
2384func (s *GoogleCloudApigeeV1CertInfo) MarshalJSON() ([]byte, error) {
2385	type NoMethod GoogleCloudApigeeV1CertInfo
2386	raw := NoMethod(*s)
2387	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2388}
2389
2390type GoogleCloudApigeeV1Certificate struct {
2391	// CertInfo: Chain of certificates under this name.
2392	CertInfo []*GoogleCloudApigeeV1CertInfo `json:"certInfo,omitempty"`
2393
2394	// ForceSendFields is a list of field names (e.g. "CertInfo") to
2395	// unconditionally include in API requests. By default, fields with
2396	// empty or default values are omitted from API requests. However, any
2397	// non-pointer, non-interface field appearing in ForceSendFields will be
2398	// sent to the server regardless of whether the field is empty or not.
2399	// This may be used to include empty fields in Patch requests.
2400	ForceSendFields []string `json:"-"`
2401
2402	// NullFields is a list of field names (e.g. "CertInfo") to include in
2403	// API requests with the JSON null value. By default, fields with empty
2404	// values are omitted from API requests. However, any field with an
2405	// empty value appearing in NullFields will be sent to the server as
2406	// null. It is an error if a field in this list has a non-empty value.
2407	// This may be used to include null fields in Patch requests.
2408	NullFields []string `json:"-"`
2409}
2410
2411func (s *GoogleCloudApigeeV1Certificate) MarshalJSON() ([]byte, error) {
2412	type NoMethod GoogleCloudApigeeV1Certificate
2413	raw := NoMethod(*s)
2414	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2415}
2416
2417type GoogleCloudApigeeV1CommonNameConfig struct {
2418	MatchWildCards bool `json:"matchWildCards,omitempty"`
2419
2420	Name string `json:"name,omitempty"`
2421
2422	// ForceSendFields is a list of field names (e.g. "MatchWildCards") to
2423	// unconditionally include in API requests. By default, fields with
2424	// empty or default values are omitted from API requests. However, any
2425	// non-pointer, non-interface field appearing in ForceSendFields will be
2426	// sent to the server regardless of whether the field is empty or not.
2427	// This may be used to include empty fields in Patch requests.
2428	ForceSendFields []string `json:"-"`
2429
2430	// NullFields is a list of field names (e.g. "MatchWildCards") to
2431	// include in API requests with the JSON null value. By default, fields
2432	// with empty values are omitted from API requests. However, any field
2433	// with an empty value appearing in NullFields will be sent to the
2434	// server as null. It is an error if a field in this list has a
2435	// non-empty value. This may be used to include null fields in Patch
2436	// requests.
2437	NullFields []string `json:"-"`
2438}
2439
2440func (s *GoogleCloudApigeeV1CommonNameConfig) MarshalJSON() ([]byte, error) {
2441	type NoMethod GoogleCloudApigeeV1CommonNameConfig
2442	raw := NoMethod(*s)
2443	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2444}
2445
2446// GoogleCloudApigeeV1ConfigVersion: Version of the API proxy
2447// configuration schema. Currently, only 4.0 is supported.
2448type GoogleCloudApigeeV1ConfigVersion struct {
2449	// MajorVersion: Major version of the API proxy configuration schema.
2450	MajorVersion int64 `json:"majorVersion,omitempty"`
2451
2452	// MinorVersion: Minor version of the API proxy configuration schema.
2453	MinorVersion int64 `json:"minorVersion,omitempty"`
2454
2455	// ForceSendFields is a list of field names (e.g. "MajorVersion") to
2456	// unconditionally include in API requests. By default, fields with
2457	// empty or default values are omitted from API requests. However, any
2458	// non-pointer, non-interface field appearing in ForceSendFields will be
2459	// sent to the server regardless of whether the field is empty or not.
2460	// This may be used to include empty fields in Patch requests.
2461	ForceSendFields []string `json:"-"`
2462
2463	// NullFields is a list of field names (e.g. "MajorVersion") to include
2464	// in API requests with the JSON null value. By default, fields with
2465	// empty values are omitted from API requests. However, any field with
2466	// an empty value appearing in NullFields will be sent to the server as
2467	// null. It is an error if a field in this list has a non-empty value.
2468	// This may be used to include null fields in Patch requests.
2469	NullFields []string `json:"-"`
2470}
2471
2472func (s *GoogleCloudApigeeV1ConfigVersion) MarshalJSON() ([]byte, error) {
2473	type NoMethod GoogleCloudApigeeV1ConfigVersion
2474	raw := NoMethod(*s)
2475	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2476}
2477
2478type GoogleCloudApigeeV1Credential struct {
2479	// ApiProducts: List of API products this credential can be used for.
2480	ApiProducts []*GoogleCloudApigeeV1ApiProductRef `json:"apiProducts,omitempty"`
2481
2482	// Attributes: List of attributes associated with this credential.
2483	Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
2484
2485	// ConsumerKey: Consumer key.
2486	ConsumerKey string `json:"consumerKey,omitempty"`
2487
2488	// ConsumerSecret: Secret key.
2489	ConsumerSecret string `json:"consumerSecret,omitempty"`
2490
2491	// ExpiresAt: Time the credential will expire in milliseconds since
2492	// epoch.
2493	ExpiresAt int64 `json:"expiresAt,omitempty,string"`
2494
2495	// IssuedAt: Time the credential was issued in milliseconds since epoch.
2496	IssuedAt int64 `json:"issuedAt,omitempty,string"`
2497
2498	// Scopes: List of scopes to apply to the app. Specified scopes must
2499	// already exist on the API product that you associate with the app.
2500	Scopes []string `json:"scopes,omitempty"`
2501
2502	// Status: Status of the credential.
2503	Status string `json:"status,omitempty"`
2504
2505	// ForceSendFields is a list of field names (e.g. "ApiProducts") to
2506	// unconditionally include in API requests. By default, fields with
2507	// empty or default values are omitted from API requests. However, any
2508	// non-pointer, non-interface field appearing in ForceSendFields will be
2509	// sent to the server regardless of whether the field is empty or not.
2510	// This may be used to include empty fields in Patch requests.
2511	ForceSendFields []string `json:"-"`
2512
2513	// NullFields is a list of field names (e.g. "ApiProducts") to include
2514	// in API requests with the JSON null value. By default, fields with
2515	// empty values are omitted from API requests. However, any field with
2516	// an empty value appearing in NullFields will be sent to the server as
2517	// null. It is an error if a field in this list has a non-empty value.
2518	// This may be used to include null fields in Patch requests.
2519	NullFields []string `json:"-"`
2520}
2521
2522func (s *GoogleCloudApigeeV1Credential) MarshalJSON() ([]byte, error) {
2523	type NoMethod GoogleCloudApigeeV1Credential
2524	raw := NoMethod(*s)
2525	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2526}
2527
2528// GoogleCloudApigeeV1CreditDeveloperBalanceRequest: Request for
2529// CreditDeveloperBalance.
2530type GoogleCloudApigeeV1CreditDeveloperBalanceRequest struct {
2531	// TransactionAmount: The amount of money to be credited. The wallet
2532	// corresponding to the currency specified within `transaction_amount`
2533	// will be updated. For example, if you specified `currency_code` within
2534	// `transaction_amount` as "USD", then the amount would be added to the
2535	// wallet which has the "USD" currency or if no such wallet exists, a
2536	// new wallet will be created with the "USD" currency.
2537	TransactionAmount *GoogleTypeMoney `json:"transactionAmount,omitempty"`
2538
2539	// TransactionId: Each transaction_id uniquely identifies a credit
2540	// balance request. If multiple requests are received with the same
2541	// transaction_id, only one of them will be considered.
2542	TransactionId string `json:"transactionId,omitempty"`
2543
2544	// ForceSendFields is a list of field names (e.g. "TransactionAmount")
2545	// to unconditionally include in API requests. By default, fields with
2546	// empty or default values are omitted from API requests. However, any
2547	// non-pointer, non-interface field appearing in ForceSendFields will be
2548	// sent to the server regardless of whether the field is empty or not.
2549	// This may be used to include empty fields in Patch requests.
2550	ForceSendFields []string `json:"-"`
2551
2552	// NullFields is a list of field names (e.g. "TransactionAmount") to
2553	// include in API requests with the JSON null value. By default, fields
2554	// with empty values are omitted from API requests. However, any field
2555	// with an empty value appearing in NullFields will be sent to the
2556	// server as null. It is an error if a field in this list has a
2557	// non-empty value. This may be used to include null fields in Patch
2558	// requests.
2559	NullFields []string `json:"-"`
2560}
2561
2562func (s *GoogleCloudApigeeV1CreditDeveloperBalanceRequest) MarshalJSON() ([]byte, error) {
2563	type NoMethod GoogleCloudApigeeV1CreditDeveloperBalanceRequest
2564	raw := NoMethod(*s)
2565	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2566}
2567
2568type GoogleCloudApigeeV1CustomReport struct {
2569	// ChartType: This field contains the chart type for the report
2570	ChartType string `json:"chartType,omitempty"`
2571
2572	// Comments: Legacy field: not used. This field contains a list of
2573	// comments associated with custom report
2574	Comments []string `json:"comments,omitempty"`
2575
2576	// CreatedAt: Output only. Unix time when the app was created json key:
2577	// createdAt
2578	CreatedAt int64 `json:"createdAt,omitempty,string"`
2579
2580	// Dimensions: This contains the list of dimensions for the report
2581	Dimensions []string `json:"dimensions,omitempty"`
2582
2583	// DisplayName: This is the display name for the report
2584	DisplayName string `json:"displayName,omitempty"`
2585
2586	// Environment: Output only. Environment name
2587	Environment string `json:"environment,omitempty"`
2588
2589	// Filter: This field contains the filter expression
2590	Filter string `json:"filter,omitempty"`
2591
2592	// FromTime: Legacy field: not used. Contains the from time for the
2593	// report
2594	FromTime string `json:"fromTime,omitempty"`
2595
2596	// LastModifiedAt: Output only. Modified time of this entity as
2597	// milliseconds since epoch. json key: lastModifiedAt
2598	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
2599
2600	// LastViewedAt: Output only. Last viewed time of this entity as
2601	// milliseconds since epoch
2602	LastViewedAt int64 `json:"lastViewedAt,omitempty,string"`
2603
2604	// Limit: Legacy field: not used This field contains the limit for the
2605	// result retrieved
2606	Limit string `json:"limit,omitempty"`
2607
2608	// Metrics: Required. This contains the list of metrics
2609	Metrics []*GoogleCloudApigeeV1CustomReportMetric `json:"metrics,omitempty"`
2610
2611	// Name: Required. Unique identifier for the report T his is a legacy
2612	// field used to encode custom report unique id
2613	Name string `json:"name,omitempty"`
2614
2615	// Offset: Legacy field: not used. This field contains the offset for
2616	// the data
2617	Offset string `json:"offset,omitempty"`
2618
2619	// Organization: Output only. Organization name
2620	Organization string `json:"organization,omitempty"`
2621
2622	// Properties: This field contains report properties such as ui metadata
2623	// etc.
2624	Properties []*GoogleCloudApigeeV1ReportProperty `json:"properties,omitempty"`
2625
2626	// SortByCols: Legacy field: not used much. Contains the list of sort by
2627	// columns
2628	SortByCols []string `json:"sortByCols,omitempty"`
2629
2630	// SortOrder: Legacy field: not used much. Contains the sort order for
2631	// the sort columns
2632	SortOrder string `json:"sortOrder,omitempty"`
2633
2634	// Tags: Legacy field: not used. This field contains a list of tags
2635	// associated with custom report
2636	Tags []string `json:"tags,omitempty"`
2637
2638	// TimeUnit: This field contains the time unit of aggregation for the
2639	// report
2640	TimeUnit string `json:"timeUnit,omitempty"`
2641
2642	// ToTime: Legacy field: not used. Contains the end time for the report
2643	ToTime string `json:"toTime,omitempty"`
2644
2645	// Topk: Legacy field: not used. This field contains the top k parameter
2646	// value for restricting the result
2647	Topk string `json:"topk,omitempty"`
2648
2649	// ServerResponse contains the HTTP response code and headers from the
2650	// server.
2651	googleapi.ServerResponse `json:"-"`
2652
2653	// ForceSendFields is a list of field names (e.g. "ChartType") to
2654	// unconditionally include in API requests. By default, fields with
2655	// empty or default values are omitted from API requests. However, any
2656	// non-pointer, non-interface field appearing in ForceSendFields will be
2657	// sent to the server regardless of whether the field is empty or not.
2658	// This may be used to include empty fields in Patch requests.
2659	ForceSendFields []string `json:"-"`
2660
2661	// NullFields is a list of field names (e.g. "ChartType") to include in
2662	// API requests with the JSON null value. By default, fields with empty
2663	// values are omitted from API requests. However, any field with an
2664	// empty value appearing in NullFields will be sent to the server as
2665	// null. It is an error if a field in this list has a non-empty value.
2666	// This may be used to include null fields in Patch requests.
2667	NullFields []string `json:"-"`
2668}
2669
2670func (s *GoogleCloudApigeeV1CustomReport) MarshalJSON() ([]byte, error) {
2671	type NoMethod GoogleCloudApigeeV1CustomReport
2672	raw := NoMethod(*s)
2673	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2674}
2675
2676// GoogleCloudApigeeV1CustomReportMetric: This encapsulates a metric
2677// property of the form sum(message_count) where name is message_count
2678// and function is sum
2679type GoogleCloudApigeeV1CustomReportMetric struct {
2680	// Function: aggregate function
2681	Function string `json:"function,omitempty"`
2682
2683	// Name: name of the metric
2684	Name string `json:"name,omitempty"`
2685
2686	// ForceSendFields is a list of field names (e.g. "Function") to
2687	// unconditionally include in API requests. By default, fields with
2688	// empty or default values are omitted from API requests. However, any
2689	// non-pointer, non-interface field appearing in ForceSendFields will be
2690	// sent to the server regardless of whether the field is empty or not.
2691	// This may be used to include empty fields in Patch requests.
2692	ForceSendFields []string `json:"-"`
2693
2694	// NullFields is a list of field names (e.g. "Function") to include in
2695	// API requests with the JSON null value. By default, fields with empty
2696	// values are omitted from API requests. However, any field with an
2697	// empty value appearing in NullFields will be sent to the server as
2698	// null. It is an error if a field in this list has a non-empty value.
2699	// This may be used to include null fields in Patch requests.
2700	NullFields []string `json:"-"`
2701}
2702
2703func (s *GoogleCloudApigeeV1CustomReportMetric) MarshalJSON() ([]byte, error) {
2704	type NoMethod GoogleCloudApigeeV1CustomReportMetric
2705	raw := NoMethod(*s)
2706	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2707}
2708
2709// GoogleCloudApigeeV1DataCollector: Data collector configuration.
2710type GoogleCloudApigeeV1DataCollector struct {
2711	// CreatedAt: Output only. The time at which the data collector was
2712	// created in milliseconds since the epoch.
2713	CreatedAt int64 `json:"createdAt,omitempty,string"`
2714
2715	// Description: A description of the data collector.
2716	Description string `json:"description,omitempty"`
2717
2718	// LastModifiedAt: Output only. The time at which the Data Collector was
2719	// last updated in milliseconds since the epoch.
2720	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
2721
2722	// Name: ID of the data collector. Must begin with `dc_`.
2723	Name string `json:"name,omitempty"`
2724
2725	// Type: Immutable. The type of data this data collector will collect.
2726	//
2727	// Possible values:
2728	//   "TYPE_UNSPECIFIED" - For future compatibility.
2729	//   "INTEGER" - For integer values.
2730	//   "FLOAT" - For float values.
2731	//   "STRING" - For string values.
2732	//   "BOOLEAN" - For boolean values.
2733	//   "DATETIME" - For datetime values.
2734	Type string `json:"type,omitempty"`
2735
2736	// ServerResponse contains the HTTP response code and headers from the
2737	// server.
2738	googleapi.ServerResponse `json:"-"`
2739
2740	// ForceSendFields is a list of field names (e.g. "CreatedAt") to
2741	// unconditionally include in API requests. By default, fields with
2742	// empty or default values are omitted from API requests. However, any
2743	// non-pointer, non-interface field appearing in ForceSendFields will be
2744	// sent to the server regardless of whether the field is empty or not.
2745	// This may be used to include empty fields in Patch requests.
2746	ForceSendFields []string `json:"-"`
2747
2748	// NullFields is a list of field names (e.g. "CreatedAt") to include in
2749	// API requests with the JSON null value. By default, fields with empty
2750	// values are omitted from API requests. However, any field with an
2751	// empty value appearing in NullFields will be sent to the server as
2752	// null. It is an error if a field in this list has a non-empty value.
2753	// This may be used to include null fields in Patch requests.
2754	NullFields []string `json:"-"`
2755}
2756
2757func (s *GoogleCloudApigeeV1DataCollector) MarshalJSON() ([]byte, error) {
2758	type NoMethod GoogleCloudApigeeV1DataCollector
2759	raw := NoMethod(*s)
2760	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2761}
2762
2763// GoogleCloudApigeeV1DataCollectorConfig: Data collector and its
2764// configuration.
2765type GoogleCloudApigeeV1DataCollectorConfig struct {
2766	// Name: Name of the data collector in the following format:
2767	// `organizations/{org}/datacollectors/{datacollector}`
2768	Name string `json:"name,omitempty"`
2769
2770	// Type: Data type accepted by the data collector.
2771	//
2772	// Possible values:
2773	//   "TYPE_UNSPECIFIED" - For future compatibility.
2774	//   "INTEGER" - For integer values.
2775	//   "FLOAT" - For float values.
2776	//   "STRING" - For string values.
2777	//   "BOOLEAN" - For boolean values.
2778	//   "DATETIME" - For datetime values.
2779	Type string `json:"type,omitempty"`
2780
2781	// ForceSendFields is a list of field names (e.g. "Name") to
2782	// unconditionally include in API requests. By default, fields with
2783	// empty or default values are omitted from API requests. However, any
2784	// non-pointer, non-interface field appearing in ForceSendFields will be
2785	// sent to the server regardless of whether the field is empty or not.
2786	// This may be used to include empty fields in Patch requests.
2787	ForceSendFields []string `json:"-"`
2788
2789	// NullFields is a list of field names (e.g. "Name") to include in API
2790	// requests with the JSON null value. By default, fields with empty
2791	// values are omitted from API requests. However, any field with an
2792	// empty value appearing in NullFields will be sent to the server as
2793	// null. It is an error if a field in this list has a non-empty value.
2794	// This may be used to include null fields in Patch requests.
2795	NullFields []string `json:"-"`
2796}
2797
2798func (s *GoogleCloudApigeeV1DataCollectorConfig) MarshalJSON() ([]byte, error) {
2799	type NoMethod GoogleCloudApigeeV1DataCollectorConfig
2800	raw := NoMethod(*s)
2801	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2802}
2803
2804// GoogleCloudApigeeV1Datastore: The data store defines the connection
2805// to export data repository (Cloud Storage, BigQuery), including the
2806// credentials used to access the data repository.
2807type GoogleCloudApigeeV1Datastore struct {
2808	// CreateTime: Output only. Datastore create time, in milliseconds since
2809	// the epoch of 1970-01-01T00:00:00Z
2810	CreateTime int64 `json:"createTime,omitempty,string"`
2811
2812	// DatastoreConfig: Datastore Configurations.
2813	DatastoreConfig *GoogleCloudApigeeV1DatastoreConfig `json:"datastoreConfig,omitempty"`
2814
2815	// DisplayName: Required. Display name in UI
2816	DisplayName string `json:"displayName,omitempty"`
2817
2818	// LastUpdateTime: Output only. Datastore last update time, in
2819	// milliseconds since the epoch of 1970-01-01T00:00:00Z
2820	LastUpdateTime int64 `json:"lastUpdateTime,omitempty,string"`
2821
2822	// Org: Output only. Organization that the datastore belongs to
2823	Org string `json:"org,omitempty"`
2824
2825	// Self: Output only. Resource link of Datastore. Example:
2826	// `/organizations/{org}/analytics/datastores/{uuid}`
2827	Self string `json:"self,omitempty"`
2828
2829	// TargetType: Destination storage type. Supported types `gcs` or
2830	// `bigquery`.
2831	TargetType string `json:"targetType,omitempty"`
2832
2833	// ServerResponse contains the HTTP response code and headers from the
2834	// server.
2835	googleapi.ServerResponse `json:"-"`
2836
2837	// ForceSendFields is a list of field names (e.g. "CreateTime") to
2838	// unconditionally include in API requests. By default, fields with
2839	// empty or default values are omitted from API requests. However, any
2840	// non-pointer, non-interface field appearing in ForceSendFields will be
2841	// sent to the server regardless of whether the field is empty or not.
2842	// This may be used to include empty fields in Patch requests.
2843	ForceSendFields []string `json:"-"`
2844
2845	// NullFields is a list of field names (e.g. "CreateTime") to include in
2846	// API requests with the JSON null value. By default, fields with empty
2847	// values are omitted from API requests. However, any field with an
2848	// empty value appearing in NullFields will be sent to the server as
2849	// null. It is an error if a field in this list has a non-empty value.
2850	// This may be used to include null fields in Patch requests.
2851	NullFields []string `json:"-"`
2852}
2853
2854func (s *GoogleCloudApigeeV1Datastore) MarshalJSON() ([]byte, error) {
2855	type NoMethod GoogleCloudApigeeV1Datastore
2856	raw := NoMethod(*s)
2857	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2858}
2859
2860// GoogleCloudApigeeV1DatastoreConfig: Configuration detail for
2861// datastore
2862type GoogleCloudApigeeV1DatastoreConfig struct {
2863	// BucketName: Name of the Cloud Storage bucket. Required for `gcs`
2864	// target_type.
2865	BucketName string `json:"bucketName,omitempty"`
2866
2867	// DatasetName: BigQuery dataset name Required for `bigquery`
2868	// target_type.
2869	DatasetName string `json:"datasetName,omitempty"`
2870
2871	// Path: Path of Cloud Storage bucket Required for `gcs` target_type.
2872	Path string `json:"path,omitempty"`
2873
2874	// ProjectId: Required. GCP project in which the datastore exists
2875	ProjectId string `json:"projectId,omitempty"`
2876
2877	// TablePrefix: Prefix of BigQuery table Required for `bigquery`
2878	// target_type.
2879	TablePrefix string `json:"tablePrefix,omitempty"`
2880
2881	// ForceSendFields is a list of field names (e.g. "BucketName") to
2882	// unconditionally include in API requests. By default, fields with
2883	// empty or default values are omitted from API requests. However, any
2884	// non-pointer, non-interface field appearing in ForceSendFields will be
2885	// sent to the server regardless of whether the field is empty or not.
2886	// This may be used to include empty fields in Patch requests.
2887	ForceSendFields []string `json:"-"`
2888
2889	// NullFields is a list of field names (e.g. "BucketName") to include in
2890	// API requests with the JSON null value. By default, fields with empty
2891	// values are omitted from API requests. However, any field with an
2892	// empty value appearing in NullFields will be sent to the server as
2893	// null. It is an error if a field in this list has a non-empty value.
2894	// This may be used to include null fields in Patch requests.
2895	NullFields []string `json:"-"`
2896}
2897
2898func (s *GoogleCloudApigeeV1DatastoreConfig) MarshalJSON() ([]byte, error) {
2899	type NoMethod GoogleCloudApigeeV1DatastoreConfig
2900	raw := NoMethod(*s)
2901	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2902}
2903
2904// GoogleCloudApigeeV1DateRange: Date range of the data to export.
2905type GoogleCloudApigeeV1DateRange struct {
2906	// End: Required. End date (exclusive) of the data to export in the
2907	// format `yyyy-mm-dd`. The date range ends at 00:00:00 UTC on the end
2908	// date- which will not be in the output.
2909	End string `json:"end,omitempty"`
2910
2911	// Start: Required. Start date of the data to export in the format
2912	// `yyyy-mm-dd`. The date range begins at 00:00:00 UTC on the start
2913	// date.
2914	Start string `json:"start,omitempty"`
2915
2916	// ForceSendFields is a list of field names (e.g. "End") to
2917	// unconditionally include in API requests. By default, fields with
2918	// empty or default values are omitted from API requests. However, any
2919	// non-pointer, non-interface field appearing in ForceSendFields will be
2920	// sent to the server regardless of whether the field is empty or not.
2921	// This may be used to include empty fields in Patch requests.
2922	ForceSendFields []string `json:"-"`
2923
2924	// NullFields is a list of field names (e.g. "End") to include in API
2925	// requests with the JSON null value. By default, fields with empty
2926	// values are omitted from API requests. However, any field with an
2927	// empty value appearing in NullFields will be sent to the server as
2928	// null. It is an error if a field in this list has a non-empty value.
2929	// This may be used to include null fields in Patch requests.
2930	NullFields []string `json:"-"`
2931}
2932
2933func (s *GoogleCloudApigeeV1DateRange) MarshalJSON() ([]byte, error) {
2934	type NoMethod GoogleCloudApigeeV1DateRange
2935	raw := NoMethod(*s)
2936	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2937}
2938
2939type GoogleCloudApigeeV1DebugMask struct {
2940	// FaultJSONPaths: List of JSON paths that specify the JSON elements to
2941	// be filtered from JSON payloads in error flows.
2942	FaultJSONPaths []string `json:"faultJSONPaths,omitempty"`
2943
2944	// FaultXPaths: List of XPaths that specify the XML elements to be
2945	// filtered from XML payloads in error flows.
2946	FaultXPaths []string `json:"faultXPaths,omitempty"`
2947
2948	// Name: Name of the debug mask.
2949	Name string `json:"name,omitempty"`
2950
2951	// Namespaces: Map of namespaces to URIs.
2952	Namespaces map[string]string `json:"namespaces,omitempty"`
2953
2954	// RequestJSONPaths: List of JSON paths that specify the JSON elements
2955	// to be filtered from JSON request message payloads.
2956	RequestJSONPaths []string `json:"requestJSONPaths,omitempty"`
2957
2958	// RequestXPaths: List of XPaths that specify the XML elements to be
2959	// filtered from XML request message payloads.
2960	RequestXPaths []string `json:"requestXPaths,omitempty"`
2961
2962	// ResponseJSONPaths: List of JSON paths that specify the JSON elements
2963	// to be filtered from JSON response message payloads.
2964	ResponseJSONPaths []string `json:"responseJSONPaths,omitempty"`
2965
2966	// ResponseXPaths: List of XPaths that specify the XML elements to be
2967	// filtered from XML response message payloads.
2968	ResponseXPaths []string `json:"responseXPaths,omitempty"`
2969
2970	// Variables: List of variables that should be masked from the debug
2971	// output.
2972	Variables []string `json:"variables,omitempty"`
2973
2974	// ServerResponse contains the HTTP response code and headers from the
2975	// server.
2976	googleapi.ServerResponse `json:"-"`
2977
2978	// ForceSendFields is a list of field names (e.g. "FaultJSONPaths") to
2979	// unconditionally include in API requests. By default, fields with
2980	// empty or default values are omitted from API requests. However, any
2981	// non-pointer, non-interface field appearing in ForceSendFields will be
2982	// sent to the server regardless of whether the field is empty or not.
2983	// This may be used to include empty fields in Patch requests.
2984	ForceSendFields []string `json:"-"`
2985
2986	// NullFields is a list of field names (e.g. "FaultJSONPaths") to
2987	// include in API requests with the JSON null value. By default, fields
2988	// with empty values are omitted from API requests. However, any field
2989	// with an empty value appearing in NullFields will be sent to the
2990	// server as null. It is an error if a field in this list has a
2991	// non-empty value. This may be used to include null fields in Patch
2992	// requests.
2993	NullFields []string `json:"-"`
2994}
2995
2996func (s *GoogleCloudApigeeV1DebugMask) MarshalJSON() ([]byte, error) {
2997	type NoMethod GoogleCloudApigeeV1DebugMask
2998	raw := NoMethod(*s)
2999	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3000}
3001
3002type GoogleCloudApigeeV1DebugSession struct {
3003	// Count: Optional. The number of request to be traced. Min = 1, Max =
3004	// 15, Default = 10.
3005	Count int64 `json:"count,omitempty"`
3006
3007	// Filter: Optional. A conditional statement which is evaluated against
3008	// the request message to determine if it should be traced. Syntax
3009	// matches that of on API Proxy bundle flow Condition.
3010	Filter string `json:"filter,omitempty"`
3011
3012	// Name: A unique ID for this DebugSession.
3013	Name string `json:"name,omitempty"`
3014
3015	// Timeout: Optional. The time in seconds after which this DebugSession
3016	// should end. This value will override the value in query param, if
3017	// both are provided.
3018	Timeout int64 `json:"timeout,omitempty,string"`
3019
3020	// Tracesize: Optional. The maximum number of bytes captured from the
3021	// response payload. Min = 0, Max = 5120, Default = 5120.
3022	Tracesize int64 `json:"tracesize,omitempty"`
3023
3024	// Validity: Optional. The length of time, in seconds, that this debug
3025	// session is valid, starting from when it's received in the control
3026	// plane. Min = 1, Max = 15, Default = 10.
3027	Validity int64 `json:"validity,omitempty"`
3028
3029	// ServerResponse contains the HTTP response code and headers from the
3030	// server.
3031	googleapi.ServerResponse `json:"-"`
3032
3033	// ForceSendFields is a list of field names (e.g. "Count") to
3034	// unconditionally include in API requests. By default, fields with
3035	// empty or default values are omitted from API requests. However, any
3036	// non-pointer, non-interface field appearing in ForceSendFields will be
3037	// sent to the server regardless of whether the field is empty or not.
3038	// This may be used to include empty fields in Patch requests.
3039	ForceSendFields []string `json:"-"`
3040
3041	// NullFields is a list of field names (e.g. "Count") to include in API
3042	// requests with the JSON null value. By default, fields with empty
3043	// values are omitted from API requests. However, any field with an
3044	// empty value appearing in NullFields will be sent to the server as
3045	// null. It is an error if a field in this list has a non-empty value.
3046	// This may be used to include null fields in Patch requests.
3047	NullFields []string `json:"-"`
3048}
3049
3050func (s *GoogleCloudApigeeV1DebugSession) MarshalJSON() ([]byte, error) {
3051	type NoMethod GoogleCloudApigeeV1DebugSession
3052	raw := NoMethod(*s)
3053	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3054}
3055
3056// GoogleCloudApigeeV1DebugSessionTransaction: A transaction contains
3057// all of the debug information of the entire message flow of an API
3058// call processed by the runtime plane. The information is collected and
3059// recorded at critical points of the message flow in the runtime
3060// apiproxy.
3061type GoogleCloudApigeeV1DebugSessionTransaction struct {
3062	// Completed: Flag indicating whether a transaction is completed or not
3063	Completed bool `json:"completed,omitempty"`
3064
3065	// Point: List of debug data collected by runtime plane at various
3066	// defined points in the flow.
3067	Point []*GoogleCloudApigeeV1Point `json:"point,omitempty"`
3068
3069	// ServerResponse contains the HTTP response code and headers from the
3070	// server.
3071	googleapi.ServerResponse `json:"-"`
3072
3073	// ForceSendFields is a list of field names (e.g. "Completed") to
3074	// unconditionally include in API requests. By default, fields with
3075	// empty or default values are omitted from API requests. However, any
3076	// non-pointer, non-interface field appearing in ForceSendFields will be
3077	// sent to the server regardless of whether the field is empty or not.
3078	// This may be used to include empty fields in Patch requests.
3079	ForceSendFields []string `json:"-"`
3080
3081	// NullFields is a list of field names (e.g. "Completed") to include in
3082	// API requests with the JSON null value. By default, fields with empty
3083	// values are omitted from API requests. However, any field with an
3084	// empty value appearing in NullFields will be sent to the server as
3085	// null. It is an error if a field in this list has a non-empty value.
3086	// This may be used to include null fields in Patch requests.
3087	NullFields []string `json:"-"`
3088}
3089
3090func (s *GoogleCloudApigeeV1DebugSessionTransaction) MarshalJSON() ([]byte, error) {
3091	type NoMethod GoogleCloudApigeeV1DebugSessionTransaction
3092	raw := NoMethod(*s)
3093	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3094}
3095
3096type GoogleCloudApigeeV1DeleteCustomReportResponse struct {
3097	// Message: The response contains only a message field.
3098	Message string `json:"message,omitempty"`
3099
3100	// ServerResponse contains the HTTP response code and headers from the
3101	// server.
3102	googleapi.ServerResponse `json:"-"`
3103
3104	// ForceSendFields is a list of field names (e.g. "Message") to
3105	// unconditionally include in API requests. By default, fields with
3106	// empty or default values are omitted from API requests. However, any
3107	// non-pointer, non-interface field appearing in ForceSendFields will be
3108	// sent to the server regardless of whether the field is empty or not.
3109	// This may be used to include empty fields in Patch requests.
3110	ForceSendFields []string `json:"-"`
3111
3112	// NullFields is a list of field names (e.g. "Message") to include in
3113	// API requests with the JSON null value. By default, fields with empty
3114	// values are omitted from API requests. However, any field with an
3115	// empty value appearing in NullFields will be sent to the server as
3116	// null. It is an error if a field in this list has a non-empty value.
3117	// This may be used to include null fields in Patch requests.
3118	NullFields []string `json:"-"`
3119}
3120
3121func (s *GoogleCloudApigeeV1DeleteCustomReportResponse) MarshalJSON() ([]byte, error) {
3122	type NoMethod GoogleCloudApigeeV1DeleteCustomReportResponse
3123	raw := NoMethod(*s)
3124	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3125}
3126
3127type GoogleCloudApigeeV1Deployment struct {
3128	// ApiProxy: API proxy.
3129	ApiProxy string `json:"apiProxy,omitempty"`
3130
3131	// DeployStartTime: Time the API proxy was marked `deployed` in the
3132	// control plane in millisconds since epoch.
3133	DeployStartTime int64 `json:"deployStartTime,omitempty,string"`
3134
3135	// Environment: Environment.
3136	Environment string `json:"environment,omitempty"`
3137
3138	// Errors: Errors reported for this deployment. Populated only when
3139	// state == ERROR. This field is not populated in List APIs.
3140	Errors []*GoogleRpcStatus `json:"errors,omitempty"`
3141
3142	// Instances: Status reported by each runtime instance. This field is
3143	// not populated in List APIs.
3144	Instances []*GoogleCloudApigeeV1InstanceDeploymentStatus `json:"instances,omitempty"`
3145
3146	// Pods: Status reported by runtime pods. This field is not populated
3147	// for List APIs. **Note**: **This field is deprecated**. Runtime
3148	// versions 1.3 and above report instance level status rather than pod
3149	// status.
3150	Pods []*GoogleCloudApigeeV1PodStatus `json:"pods,omitempty"`
3151
3152	// Revision: API proxy revision.
3153	Revision string `json:"revision,omitempty"`
3154
3155	// RouteConflicts: Conflicts in the desired state routing configuration.
3156	// The presence of conflicts does not cause the state to be `ERROR`, but
3157	// it will mean that some of the deployment's base paths are not routed
3158	// to its environment. If the conflicts change, the state will
3159	// transition to `PROGRESSING` until the latest configuration is rolled
3160	// out to all instances. This field is not populated in List APIs.
3161	RouteConflicts []*GoogleCloudApigeeV1DeploymentChangeReportRoutingConflict `json:"routeConflicts,omitempty"`
3162
3163	// ServiceAccount: The full resource name of Cloud IAM Service Account
3164	// that this deployment is using, eg,
3165	// `projects/-/serviceAccounts/{email}`.
3166	ServiceAccount string `json:"serviceAccount,omitempty"`
3167
3168	// State: Current state of the deployment. This field is not populated
3169	// in List APIs.
3170	//
3171	// Possible values:
3172	//   "RUNTIME_STATE_UNSPECIFIED" - This value should never be returned.
3173	//   "READY" - Runtime has loaded the deployment.
3174	//   "PROGRESSING" - Deployment is not fully ready in the runtime.
3175	//   "ERROR" - Encountered an error with the deployment that requires
3176	// intervention.
3177	State string `json:"state,omitempty"`
3178
3179	// ServerResponse contains the HTTP response code and headers from the
3180	// server.
3181	googleapi.ServerResponse `json:"-"`
3182
3183	// ForceSendFields is a list of field names (e.g. "ApiProxy") to
3184	// unconditionally include in API requests. By default, fields with
3185	// empty or default values are omitted from API requests. However, any
3186	// non-pointer, non-interface field appearing in ForceSendFields will be
3187	// sent to the server regardless of whether the field is empty or not.
3188	// This may be used to include empty fields in Patch requests.
3189	ForceSendFields []string `json:"-"`
3190
3191	// NullFields is a list of field names (e.g. "ApiProxy") to include in
3192	// API requests with the JSON null value. By default, fields with empty
3193	// values are omitted from API requests. However, any field with an
3194	// empty value appearing in NullFields will be sent to the server as
3195	// null. It is an error if a field in this list has a non-empty value.
3196	// This may be used to include null fields in Patch requests.
3197	NullFields []string `json:"-"`
3198}
3199
3200func (s *GoogleCloudApigeeV1Deployment) MarshalJSON() ([]byte, error) {
3201	type NoMethod GoogleCloudApigeeV1Deployment
3202	raw := NoMethod(*s)
3203	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3204}
3205
3206// GoogleCloudApigeeV1DeploymentChangeReport: Response for
3207// GenerateDeployChangeReport and GenerateUndeployChangeReport. This
3208// report contains any validation failures that would cause the
3209// deployment to be rejected, as well changes and conflicts in routing
3210// that may occur due to the new deployment. The existence of a routing
3211// warning does not necessarily imply that the deployment request is
3212// bad, if the desired state of the deployment request is to effect a
3213// routing change. The primary purposes of the routing messages are: 1)
3214// To inform users of routing changes that may have an effect on traffic
3215// currently being routed to other existing deployments. 2) To warn
3216// users if some base path in the proxy will not receive traffic due to
3217// an existing deployment having already claimed that base path. The
3218// presence of routing conflicts/changes will not cause non-dry-run
3219// DeployApiProxy/UndeployApiProxy requests to be rejected.
3220type GoogleCloudApigeeV1DeploymentChangeReport struct {
3221	// RoutingChanges: All routing changes that may result from a deployment
3222	// request.
3223	RoutingChanges []*GoogleCloudApigeeV1DeploymentChangeReportRoutingChange `json:"routingChanges,omitempty"`
3224
3225	// RoutingConflicts: All base path conflicts detected for a deployment
3226	// request.
3227	RoutingConflicts []*GoogleCloudApigeeV1DeploymentChangeReportRoutingConflict `json:"routingConflicts,omitempty"`
3228
3229	// ValidationErrors: Validation errors that would cause the deployment
3230	// change request to be rejected.
3231	ValidationErrors *GoogleRpcPreconditionFailure `json:"validationErrors,omitempty"`
3232
3233	// ServerResponse contains the HTTP response code and headers from the
3234	// server.
3235	googleapi.ServerResponse `json:"-"`
3236
3237	// ForceSendFields is a list of field names (e.g. "RoutingChanges") to
3238	// unconditionally include in API requests. By default, fields with
3239	// empty or default values are omitted from API requests. However, any
3240	// non-pointer, non-interface field appearing in ForceSendFields will be
3241	// sent to the server regardless of whether the field is empty or not.
3242	// This may be used to include empty fields in Patch requests.
3243	ForceSendFields []string `json:"-"`
3244
3245	// NullFields is a list of field names (e.g. "RoutingChanges") to
3246	// include in API requests with the JSON null value. By default, fields
3247	// with empty values are omitted from API requests. However, any field
3248	// with an empty value appearing in NullFields will be sent to the
3249	// server as null. It is an error if a field in this list has a
3250	// non-empty value. This may be used to include null fields in Patch
3251	// requests.
3252	NullFields []string `json:"-"`
3253}
3254
3255func (s *GoogleCloudApigeeV1DeploymentChangeReport) MarshalJSON() ([]byte, error) {
3256	type NoMethod GoogleCloudApigeeV1DeploymentChangeReport
3257	raw := NoMethod(*s)
3258	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3259}
3260
3261// GoogleCloudApigeeV1DeploymentChangeReportRoutingChange: Describes a
3262// potential routing change that may occur as a result of some
3263// deployment operation.
3264type GoogleCloudApigeeV1DeploymentChangeReportRoutingChange struct {
3265	// Description: Human-readable description of this routing change.
3266	Description string `json:"description,omitempty"`
3267
3268	// EnvironmentGroup: Name of the environment group affected by this
3269	// routing change.
3270	EnvironmentGroup string `json:"environmentGroup,omitempty"`
3271
3272	// FromDeployment: Base path/deployment that may stop receiving some
3273	// traffic.
3274	FromDeployment *GoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment `json:"fromDeployment,omitempty"`
3275
3276	// ShouldSequenceRollout: Set to `true` if using sequenced rollout would
3277	// make this routing change safer. **Note**: This does not necessarily
3278	// imply that automated sequenced rollout mode is supported for the
3279	// operation.
3280	ShouldSequenceRollout bool `json:"shouldSequenceRollout,omitempty"`
3281
3282	// ToDeployment: Base path/deployment that may start receiving that
3283	// traffic. May be null if no deployment is able to receive the traffic.
3284	ToDeployment *GoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment `json:"toDeployment,omitempty"`
3285
3286	// ForceSendFields is a list of field names (e.g. "Description") to
3287	// unconditionally include in API requests. By default, fields with
3288	// empty or default values are omitted from API requests. However, any
3289	// non-pointer, non-interface field appearing in ForceSendFields will be
3290	// sent to the server regardless of whether the field is empty or not.
3291	// This may be used to include empty fields in Patch requests.
3292	ForceSendFields []string `json:"-"`
3293
3294	// NullFields is a list of field names (e.g. "Description") to include
3295	// in API requests with the JSON null value. By default, fields with
3296	// empty values are omitted from API requests. However, any field with
3297	// an empty value appearing in NullFields will be sent to the server as
3298	// null. It is an error if a field in this list has a non-empty value.
3299	// This may be used to include null fields in Patch requests.
3300	NullFields []string `json:"-"`
3301}
3302
3303func (s *GoogleCloudApigeeV1DeploymentChangeReportRoutingChange) MarshalJSON() ([]byte, error) {
3304	type NoMethod GoogleCloudApigeeV1DeploymentChangeReportRoutingChange
3305	raw := NoMethod(*s)
3306	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3307}
3308
3309// GoogleCloudApigeeV1DeploymentChangeReportRoutingConflict: Describes a
3310// routing conflict that may cause a deployment not to receive traffic
3311// at some base path.
3312type GoogleCloudApigeeV1DeploymentChangeReportRoutingConflict struct {
3313	// ConflictingDeployment: Existing base path/deployment causing the
3314	// conflict.
3315	ConflictingDeployment *GoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment `json:"conflictingDeployment,omitempty"`
3316
3317	// Description: Human-readable description of this conflict.
3318	Description string `json:"description,omitempty"`
3319
3320	// EnvironmentGroup: Name of the environment group in which this
3321	// conflict exists.
3322	EnvironmentGroup string `json:"environmentGroup,omitempty"`
3323
3324	// ForceSendFields is a list of field names (e.g.
3325	// "ConflictingDeployment") to unconditionally include in API requests.
3326	// By default, fields with empty or default values are omitted from API
3327	// requests. However, any non-pointer, non-interface field appearing in
3328	// ForceSendFields will be sent to the server regardless of whether the
3329	// field is empty or not. This may be used to include empty fields in
3330	// Patch requests.
3331	ForceSendFields []string `json:"-"`
3332
3333	// NullFields is a list of field names (e.g. "ConflictingDeployment") to
3334	// include in API requests with the JSON null value. By default, fields
3335	// with empty values are omitted from API requests. However, any field
3336	// with an empty value appearing in NullFields will be sent to the
3337	// server as null. It is an error if a field in this list has a
3338	// non-empty value. This may be used to include null fields in Patch
3339	// requests.
3340	NullFields []string `json:"-"`
3341}
3342
3343func (s *GoogleCloudApigeeV1DeploymentChangeReportRoutingConflict) MarshalJSON() ([]byte, error) {
3344	type NoMethod GoogleCloudApigeeV1DeploymentChangeReportRoutingConflict
3345	raw := NoMethod(*s)
3346	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3347}
3348
3349// GoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment: Tuple
3350// representing a base path and the deployment containing it.
3351type GoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment struct {
3352	// ApiProxy: Name of the deployed API proxy revision containing the base
3353	// path.
3354	ApiProxy string `json:"apiProxy,omitempty"`
3355
3356	// Basepath: Base path receiving traffic.
3357	Basepath string `json:"basepath,omitempty"`
3358
3359	// Environment: Name of the environment in which the proxy is deployed.
3360	Environment string `json:"environment,omitempty"`
3361
3362	// Revision: Name of the deployed API proxy revision containing the base
3363	// path.
3364	Revision string `json:"revision,omitempty"`
3365
3366	// ForceSendFields is a list of field names (e.g. "ApiProxy") to
3367	// unconditionally include in API requests. By default, fields with
3368	// empty or default values are omitted from API requests. However, any
3369	// non-pointer, non-interface field appearing in ForceSendFields will be
3370	// sent to the server regardless of whether the field is empty or not.
3371	// This may be used to include empty fields in Patch requests.
3372	ForceSendFields []string `json:"-"`
3373
3374	// NullFields is a list of field names (e.g. "ApiProxy") to include in
3375	// API requests with the JSON null value. By default, fields with empty
3376	// values are omitted from API requests. However, any field with an
3377	// empty value appearing in NullFields will be sent to the server as
3378	// null. It is an error if a field in this list has a non-empty value.
3379	// This may be used to include null fields in Patch requests.
3380	NullFields []string `json:"-"`
3381}
3382
3383func (s *GoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment) MarshalJSON() ([]byte, error) {
3384	type NoMethod GoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment
3385	raw := NoMethod(*s)
3386	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3387}
3388
3389// GoogleCloudApigeeV1DeploymentConfig: NEXT ID: 9
3390type GoogleCloudApigeeV1DeploymentConfig struct {
3391	// Attributes: Additional key-value metadata for the deployment.
3392	Attributes map[string]string `json:"attributes,omitempty"`
3393
3394	// BasePath: Base path where the application will be hosted. Defaults to
3395	// "/".
3396	BasePath string `json:"basePath,omitempty"`
3397
3398	// Location: Location of the API proxy bundle as a URI.
3399	Location string `json:"location,omitempty"`
3400
3401	// Name: Name of the API or shared flow revision to be deployed in the
3402	// following format: `organizations/{org}/apis/{api}/revisions/{rev}` or
3403	// `organizations/{org}/sharedflows/{sharedflow}/revisions/{rev}`
3404	Name string `json:"name,omitempty"`
3405
3406	// ProxyUid: Unique ID of the API proxy revision.
3407	ProxyUid string `json:"proxyUid,omitempty"`
3408
3409	// ServiceAccount: The service account identity associated with this
3410	// deployment. If non-empty, will be in the following format:
3411	// `projects/-/serviceAccounts/{account_email}`
3412	ServiceAccount string `json:"serviceAccount,omitempty"`
3413
3414	// Uid: Unique ID. The ID will only change if the deployment is deleted
3415	// and recreated.
3416	Uid string `json:"uid,omitempty"`
3417
3418	// ForceSendFields is a list of field names (e.g. "Attributes") to
3419	// unconditionally include in API requests. By default, fields with
3420	// empty or default values are omitted from API requests. However, any
3421	// non-pointer, non-interface field appearing in ForceSendFields will be
3422	// sent to the server regardless of whether the field is empty or not.
3423	// This may be used to include empty fields in Patch requests.
3424	ForceSendFields []string `json:"-"`
3425
3426	// NullFields is a list of field names (e.g. "Attributes") to include in
3427	// API requests with the JSON null value. By default, fields with empty
3428	// values are omitted from API requests. However, any field with an
3429	// empty value appearing in NullFields will be sent to the server as
3430	// null. It is an error if a field in this list has a non-empty value.
3431	// This may be used to include null fields in Patch requests.
3432	NullFields []string `json:"-"`
3433}
3434
3435func (s *GoogleCloudApigeeV1DeploymentConfig) MarshalJSON() ([]byte, error) {
3436	type NoMethod GoogleCloudApigeeV1DeploymentConfig
3437	raw := NoMethod(*s)
3438	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3439}
3440
3441type GoogleCloudApigeeV1Developer struct {
3442	// AccessType: Access type.
3443	AccessType string `json:"accessType,omitempty"`
3444
3445	// AppFamily: Developer app family.
3446	AppFamily string `json:"appFamily,omitempty"`
3447
3448	// Apps: List of apps associated with the developer.
3449	Apps []string `json:"apps,omitempty"`
3450
3451	// Attributes: Optional. Developer attributes (name/value pairs). The
3452	// custom attribute limit is 18.
3453	Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
3454
3455	// Companies: List of companies associated with the developer.
3456	Companies []string `json:"companies,omitempty"`
3457
3458	// CreatedAt: Output only. Time at which the developer was created in
3459	// milliseconds since epoch.
3460	CreatedAt int64 `json:"createdAt,omitempty,string"`
3461
3462	// DeveloperId: ID of the developer. **Note**: IDs are generated
3463	// internally by Apigee and are not guaranteed to stay the same over
3464	// time.
3465	DeveloperId string `json:"developerId,omitempty"`
3466
3467	// Email: Required. Email address of the developer. This value is used
3468	// to uniquely identify the developer in Apigee hybrid. Note that the
3469	// email address has to be in lowercase only.
3470	Email string `json:"email,omitempty"`
3471
3472	// FirstName: Required. First name of the developer.
3473	FirstName string `json:"firstName,omitempty"`
3474
3475	// LastModifiedAt: Output only. Time at which the developer was last
3476	// modified in milliseconds since epoch.
3477	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
3478
3479	// LastName: Required. Last name of the developer.
3480	LastName string `json:"lastName,omitempty"`
3481
3482	// OrganizationName: Output only. Name of the Apigee organization in
3483	// which the developer resides.
3484	OrganizationName string `json:"organizationName,omitempty"`
3485
3486	// Status: Output only. Status of the developer. Valid values are
3487	// `active` and `inactive`.
3488	Status string `json:"status,omitempty"`
3489
3490	// UserName: Required. User name of the developer. Not used by Apigee
3491	// hybrid.
3492	UserName string `json:"userName,omitempty"`
3493
3494	// ServerResponse contains the HTTP response code and headers from the
3495	// server.
3496	googleapi.ServerResponse `json:"-"`
3497
3498	// ForceSendFields is a list of field names (e.g. "AccessType") to
3499	// unconditionally include in API requests. By default, fields with
3500	// empty or default values are omitted from API requests. However, any
3501	// non-pointer, non-interface field appearing in ForceSendFields will be
3502	// sent to the server regardless of whether the field is empty or not.
3503	// This may be used to include empty fields in Patch requests.
3504	ForceSendFields []string `json:"-"`
3505
3506	// NullFields is a list of field names (e.g. "AccessType") to include in
3507	// API requests with the JSON null value. By default, fields with empty
3508	// values are omitted from API requests. However, any field with an
3509	// empty value appearing in NullFields will be sent to the server as
3510	// null. It is an error if a field in this list has a non-empty value.
3511	// This may be used to include null fields in Patch requests.
3512	NullFields []string `json:"-"`
3513}
3514
3515func (s *GoogleCloudApigeeV1Developer) MarshalJSON() ([]byte, error) {
3516	type NoMethod GoogleCloudApigeeV1Developer
3517	raw := NoMethod(*s)
3518	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3519}
3520
3521type GoogleCloudApigeeV1DeveloperApp struct {
3522	// ApiProducts: List of API products associated with the developer app.
3523	ApiProducts []string `json:"apiProducts,omitempty"`
3524
3525	// AppFamily: Developer app family.
3526	AppFamily string `json:"appFamily,omitempty"`
3527
3528	// AppId: ID of the developer app.
3529	AppId string `json:"appId,omitempty"`
3530
3531	// Attributes: List of attributes for the developer app.
3532	Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
3533
3534	// CallbackUrl: Callback URL used by OAuth 2.0 authorization servers to
3535	// communicate authorization codes back to developer apps.
3536	CallbackUrl string `json:"callbackUrl,omitempty"`
3537
3538	// CreatedAt: Output only. Time the developer app was created in
3539	// milliseconds since epoch.
3540	CreatedAt int64 `json:"createdAt,omitempty,string"`
3541
3542	// Credentials: Output only. Set of credentials for the developer app
3543	// consisting of the consumer key/secret pairs associated with the API
3544	// products.
3545	Credentials []*GoogleCloudApigeeV1Credential `json:"credentials,omitempty"`
3546
3547	// DeveloperId: ID of the developer.
3548	DeveloperId string `json:"developerId,omitempty"`
3549
3550	// KeyExpiresIn: Expiration time, in milliseconds, for the consumer key
3551	// that is generated for the developer app. If not set or left to the
3552	// default value of `-1`, the API key never expires. The expiration time
3553	// can't be updated after it is set.
3554	KeyExpiresIn int64 `json:"keyExpiresIn,omitempty,string"`
3555
3556	// LastModifiedAt: Output only. Time the developer app was modified in
3557	// milliseconds since epoch.
3558	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
3559
3560	// Name: Name of the developer app.
3561	Name string `json:"name,omitempty"`
3562
3563	// Scopes: Scopes to apply to the developer app. The specified scopes
3564	// must already exist for the API product that you associate with the
3565	// developer app.
3566	Scopes []string `json:"scopes,omitempty"`
3567
3568	// Status: Status of the credential. Valid values include `approved` or
3569	// `revoked`.
3570	Status string `json:"status,omitempty"`
3571
3572	// ServerResponse contains the HTTP response code and headers from the
3573	// server.
3574	googleapi.ServerResponse `json:"-"`
3575
3576	// ForceSendFields is a list of field names (e.g. "ApiProducts") to
3577	// unconditionally include in API requests. By default, fields with
3578	// empty or default values are omitted from API requests. However, any
3579	// non-pointer, non-interface field appearing in ForceSendFields will be
3580	// sent to the server regardless of whether the field is empty or not.
3581	// This may be used to include empty fields in Patch requests.
3582	ForceSendFields []string `json:"-"`
3583
3584	// NullFields is a list of field names (e.g. "ApiProducts") to include
3585	// in API requests with the JSON null value. By default, fields with
3586	// empty values are omitted from API requests. However, any field with
3587	// an empty value appearing in NullFields will be sent to the server as
3588	// null. It is an error if a field in this list has a non-empty value.
3589	// This may be used to include null fields in Patch requests.
3590	NullFields []string `json:"-"`
3591}
3592
3593func (s *GoogleCloudApigeeV1DeveloperApp) MarshalJSON() ([]byte, error) {
3594	type NoMethod GoogleCloudApigeeV1DeveloperApp
3595	raw := NoMethod(*s)
3596	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3597}
3598
3599type GoogleCloudApigeeV1DeveloperAppKey struct {
3600	// ApiProducts: List of API products for which the credential can be
3601	// used. **Note**: Do not specify the list of API products when creating
3602	// a consumer key and secret for a developer app. Instead, use the
3603	// UpdateDeveloperAppKey API to make the association after the consumer
3604	// key and secret are created.
3605	ApiProducts []interface{} `json:"apiProducts,omitempty"`
3606
3607	// Attributes: List of attributes associated with the credential.
3608	Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
3609
3610	// ConsumerKey: Consumer key.
3611	ConsumerKey string `json:"consumerKey,omitempty"`
3612
3613	// ConsumerSecret: Secret key.
3614	ConsumerSecret string `json:"consumerSecret,omitempty"`
3615
3616	// ExpiresAt: Time the developer app expires in milliseconds since
3617	// epoch.
3618	ExpiresAt int64 `json:"expiresAt,omitempty,string"`
3619
3620	// ExpiresInSeconds: Input only. Expiration time, in seconds, for the
3621	// consumer key. If not set or left to the default value of `-1`, the
3622	// API key never expires. The expiration time can't be updated after it
3623	// is set.
3624	ExpiresInSeconds int64 `json:"expiresInSeconds,omitempty,string"`
3625
3626	// IssuedAt: Time the developer app was created in milliseconds since
3627	// epoch.
3628	IssuedAt int64 `json:"issuedAt,omitempty,string"`
3629
3630	// Scopes: Scopes to apply to the app. The specified scope names must
3631	// already be defined for the API product that you associate with the
3632	// app.
3633	Scopes []string `json:"scopes,omitempty"`
3634
3635	// Status: Status of the credential. Valid values include `approved` or
3636	// `revoked`.
3637	Status string `json:"status,omitempty"`
3638
3639	// ServerResponse contains the HTTP response code and headers from the
3640	// server.
3641	googleapi.ServerResponse `json:"-"`
3642
3643	// ForceSendFields is a list of field names (e.g. "ApiProducts") to
3644	// unconditionally include in API requests. By default, fields with
3645	// empty or default values are omitted from API requests. However, any
3646	// non-pointer, non-interface field appearing in ForceSendFields will be
3647	// sent to the server regardless of whether the field is empty or not.
3648	// This may be used to include empty fields in Patch requests.
3649	ForceSendFields []string `json:"-"`
3650
3651	// NullFields is a list of field names (e.g. "ApiProducts") to include
3652	// in API requests with the JSON null value. By default, fields with
3653	// empty values are omitted from API requests. However, any field with
3654	// an empty value appearing in NullFields will be sent to the server as
3655	// null. It is an error if a field in this list has a non-empty value.
3656	// This may be used to include null fields in Patch requests.
3657	NullFields []string `json:"-"`
3658}
3659
3660func (s *GoogleCloudApigeeV1DeveloperAppKey) MarshalJSON() ([]byte, error) {
3661	type NoMethod GoogleCloudApigeeV1DeveloperAppKey
3662	raw := NoMethod(*s)
3663	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3664}
3665
3666// GoogleCloudApigeeV1DeveloperBalance: Account balance for the
3667// developer.
3668type GoogleCloudApigeeV1DeveloperBalance struct {
3669	// Wallets: Output only. List of all wallets. Each individual wallet
3670	// stores the account balance for a particular currency.
3671	Wallets []*GoogleCloudApigeeV1DeveloperBalanceWallet `json:"wallets,omitempty"`
3672
3673	// ServerResponse contains the HTTP response code and headers from the
3674	// server.
3675	googleapi.ServerResponse `json:"-"`
3676
3677	// ForceSendFields is a list of field names (e.g. "Wallets") to
3678	// unconditionally include in API requests. By default, fields with
3679	// empty or default values are omitted from API requests. However, any
3680	// non-pointer, non-interface field appearing in ForceSendFields will be
3681	// sent to the server regardless of whether the field is empty or not.
3682	// This may be used to include empty fields in Patch requests.
3683	ForceSendFields []string `json:"-"`
3684
3685	// NullFields is a list of field names (e.g. "Wallets") to include in
3686	// API requests with the JSON null value. By default, fields with empty
3687	// values are omitted from API requests. However, any field with an
3688	// empty value appearing in NullFields will be sent to the server as
3689	// null. It is an error if a field in this list has a non-empty value.
3690	// This may be used to include null fields in Patch requests.
3691	NullFields []string `json:"-"`
3692}
3693
3694func (s *GoogleCloudApigeeV1DeveloperBalance) MarshalJSON() ([]byte, error) {
3695	type NoMethod GoogleCloudApigeeV1DeveloperBalance
3696	raw := NoMethod(*s)
3697	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3698}
3699
3700// GoogleCloudApigeeV1DeveloperBalanceWallet: Wallet used to manage an
3701// account balance for a particular currency.
3702type GoogleCloudApigeeV1DeveloperBalanceWallet struct {
3703	// Balance: Current remaining balance of the developer for a particular
3704	// currency.
3705	Balance *GoogleTypeMoney `json:"balance,omitempty"`
3706
3707	// LastCreditTime: Output only. Time at which the developer last added
3708	// credit to the account in milliseconds since epoch.
3709	LastCreditTime int64 `json:"lastCreditTime,omitempty,string"`
3710
3711	// ForceSendFields is a list of field names (e.g. "Balance") to
3712	// unconditionally include in API requests. By default, fields with
3713	// empty or default values are omitted from API requests. However, any
3714	// non-pointer, non-interface field appearing in ForceSendFields will be
3715	// sent to the server regardless of whether the field is empty or not.
3716	// This may be used to include empty fields in Patch requests.
3717	ForceSendFields []string `json:"-"`
3718
3719	// NullFields is a list of field names (e.g. "Balance") to include in
3720	// API requests with the JSON null value. By default, fields with empty
3721	// values are omitted from API requests. However, any field with an
3722	// empty value appearing in NullFields will be sent to the server as
3723	// null. It is an error if a field in this list has a non-empty value.
3724	// This may be used to include null fields in Patch requests.
3725	NullFields []string `json:"-"`
3726}
3727
3728func (s *GoogleCloudApigeeV1DeveloperBalanceWallet) MarshalJSON() ([]byte, error) {
3729	type NoMethod GoogleCloudApigeeV1DeveloperBalanceWallet
3730	raw := NoMethod(*s)
3731	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3732}
3733
3734// GoogleCloudApigeeV1DeveloperMonetizationConfig: Monetization
3735// configuration for the developer.
3736type GoogleCloudApigeeV1DeveloperMonetizationConfig struct {
3737	// BillingType: Billing type.
3738	//
3739	// Possible values:
3740	//   "BILLING_TYPE_UNSPECIFIED" - The default/unset value.
3741	//   "PREPAID" - Developer pays in advance for the use of APIs and the
3742	// charged amount is deducted from their account balance.
3743	//   "POSTPAID" - Developer does not maintain an account balance. The
3744	// API provider bills the developer for API usage.
3745	BillingType string `json:"billingType,omitempty"`
3746
3747	// ServerResponse contains the HTTP response code and headers from the
3748	// server.
3749	googleapi.ServerResponse `json:"-"`
3750
3751	// ForceSendFields is a list of field names (e.g. "BillingType") to
3752	// unconditionally include in API requests. By default, fields with
3753	// empty or default values are omitted from API requests. However, any
3754	// non-pointer, non-interface field appearing in ForceSendFields will be
3755	// sent to the server regardless of whether the field is empty or not.
3756	// This may be used to include empty fields in Patch requests.
3757	ForceSendFields []string `json:"-"`
3758
3759	// NullFields is a list of field names (e.g. "BillingType") to include
3760	// in API requests with the JSON null value. By default, fields with
3761	// empty values are omitted from API requests. However, any field with
3762	// an empty value appearing in NullFields will be sent to the server as
3763	// null. It is an error if a field in this list has a non-empty value.
3764	// This may be used to include null fields in Patch requests.
3765	NullFields []string `json:"-"`
3766}
3767
3768func (s *GoogleCloudApigeeV1DeveloperMonetizationConfig) MarshalJSON() ([]byte, error) {
3769	type NoMethod GoogleCloudApigeeV1DeveloperMonetizationConfig
3770	raw := NoMethod(*s)
3771	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3772}
3773
3774// GoogleCloudApigeeV1DeveloperSubscription: Structure of a
3775// DeveloperSubscription.
3776type GoogleCloudApigeeV1DeveloperSubscription struct {
3777	// Apiproduct: Name of the API product for which the developer is
3778	// purchasing a subscription.
3779	Apiproduct string `json:"apiproduct,omitempty"`
3780
3781	// CreatedAt: Output only. Time when the API product subscription was
3782	// created in milliseconds since epoch.
3783	CreatedAt int64 `json:"createdAt,omitempty,string"`
3784
3785	// EndTime: Time when the API product subscription ends in milliseconds
3786	// since epoch.
3787	EndTime int64 `json:"endTime,omitempty,string"`
3788
3789	// LastModifiedAt: Output only. Time when the API product subscription
3790	// was last modified in milliseconds since epoch.
3791	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
3792
3793	// Name: Output only. Name of the API product subscription.
3794	Name string `json:"name,omitempty"`
3795
3796	// StartTime: Time when the API product subscription starts in
3797	// milliseconds since epoch.
3798	StartTime int64 `json:"startTime,omitempty,string"`
3799
3800	// ServerResponse contains the HTTP response code and headers from the
3801	// server.
3802	googleapi.ServerResponse `json:"-"`
3803
3804	// ForceSendFields is a list of field names (e.g. "Apiproduct") to
3805	// unconditionally include in API requests. By default, fields with
3806	// empty or default values are omitted from API requests. However, any
3807	// non-pointer, non-interface field appearing in ForceSendFields will be
3808	// sent to the server regardless of whether the field is empty or not.
3809	// This may be used to include empty fields in Patch requests.
3810	ForceSendFields []string `json:"-"`
3811
3812	// NullFields is a list of field names (e.g. "Apiproduct") to include in
3813	// API requests with the JSON null value. By default, fields with empty
3814	// values are omitted from API requests. However, any field with an
3815	// empty value appearing in NullFields will be sent to the server as
3816	// null. It is an error if a field in this list has a non-empty value.
3817	// This may be used to include null fields in Patch requests.
3818	NullFields []string `json:"-"`
3819}
3820
3821func (s *GoogleCloudApigeeV1DeveloperSubscription) MarshalJSON() ([]byte, error) {
3822	type NoMethod GoogleCloudApigeeV1DeveloperSubscription
3823	raw := NoMethod(*s)
3824	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3825}
3826
3827// GoogleCloudApigeeV1DimensionMetric: This message type encapsulates a
3828// metric grouped by dimension.
3829type GoogleCloudApigeeV1DimensionMetric struct {
3830	// Metrics: This field contains a list of metrics.
3831	Metrics []*GoogleCloudApigeeV1Metric `json:"metrics,omitempty"`
3832
3833	// Name: This field contains the name of the dimension.
3834	Name string `json:"name,omitempty"`
3835
3836	// ForceSendFields is a list of field names (e.g. "Metrics") to
3837	// unconditionally include in API requests. By default, fields with
3838	// empty or default values are omitted from API requests. However, any
3839	// non-pointer, non-interface field appearing in ForceSendFields will be
3840	// sent to the server regardless of whether the field is empty or not.
3841	// This may be used to include empty fields in Patch requests.
3842	ForceSendFields []string `json:"-"`
3843
3844	// NullFields is a list of field names (e.g. "Metrics") to include in
3845	// API requests with the JSON null value. By default, fields with empty
3846	// values are omitted from API requests. However, any field with an
3847	// empty value appearing in NullFields will be sent to the server as
3848	// null. It is an error if a field in this list has a non-empty value.
3849	// This may be used to include null fields in Patch requests.
3850	NullFields []string `json:"-"`
3851}
3852
3853func (s *GoogleCloudApigeeV1DimensionMetric) MarshalJSON() ([]byte, error) {
3854	type NoMethod GoogleCloudApigeeV1DimensionMetric
3855	raw := NoMethod(*s)
3856	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3857}
3858
3859// GoogleCloudApigeeV1EntityMetadata: Metadata common to many entities
3860// in this API.
3861type GoogleCloudApigeeV1EntityMetadata struct {
3862	// CreatedAt: Time at which the API proxy was created, in milliseconds
3863	// since epoch.
3864	CreatedAt int64 `json:"createdAt,omitempty,string"`
3865
3866	// LastModifiedAt: Time at which the API proxy was most recently
3867	// modified, in milliseconds since epoch.
3868	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
3869
3870	// SubType: The type of entity described
3871	SubType string `json:"subType,omitempty"`
3872
3873	// ForceSendFields is a list of field names (e.g. "CreatedAt") to
3874	// unconditionally include in API requests. By default, fields with
3875	// empty or default values are omitted from API requests. However, any
3876	// non-pointer, non-interface field appearing in ForceSendFields will be
3877	// sent to the server regardless of whether the field is empty or not.
3878	// This may be used to include empty fields in Patch requests.
3879	ForceSendFields []string `json:"-"`
3880
3881	// NullFields is a list of field names (e.g. "CreatedAt") to include in
3882	// API requests with the JSON null value. By default, fields with empty
3883	// values are omitted from API requests. However, any field with an
3884	// empty value appearing in NullFields will be sent to the server as
3885	// null. It is an error if a field in this list has a non-empty value.
3886	// This may be used to include null fields in Patch requests.
3887	NullFields []string `json:"-"`
3888}
3889
3890func (s *GoogleCloudApigeeV1EntityMetadata) MarshalJSON() ([]byte, error) {
3891	type NoMethod GoogleCloudApigeeV1EntityMetadata
3892	raw := NoMethod(*s)
3893	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3894}
3895
3896type GoogleCloudApigeeV1Environment struct {
3897	// ApiProxyType: Optional. API Proxy type supported by the environment.
3898	// The type can be set when creating the Environment and cannot be
3899	// changed.
3900	//
3901	// Possible values:
3902	//   "API_PROXY_TYPE_UNSPECIFIED" - API proxy type not specified.
3903	//   "PROGRAMMABLE" - Programmable API Proxies enable you to develop
3904	// APIs with highly flexible behavior using bundled policy configuration
3905	// and one or more programming languages to describe complex sequential
3906	// and/or conditional flows of logic.
3907	//   "CONFIGURABLE" - Configurable API Proxies enable you to develop
3908	// efficient APIs using simple configuration while complex execution
3909	// control flow logic is handled by Apigee. This type only works with
3910	// the ARCHIVE deployment type and cannot be combined with the PROXY
3911	// deployment type.
3912	ApiProxyType string `json:"apiProxyType,omitempty"`
3913
3914	// CreatedAt: Output only. Creation time of this environment as
3915	// milliseconds since epoch.
3916	CreatedAt int64 `json:"createdAt,omitempty,string"`
3917
3918	// DeploymentType: Optional. Deployment type supported by the
3919	// environment. The deployment type can be set when creating the
3920	// environment and cannot be changed. When you enable archive
3921	// deployment, you will be **prevented from performing** a subset of
3922	// actions
3923	// (/apigee/docs/api-platform/local-development/overview#prevented-action
3924	// s) within the environment, including: * Managing the deployment of
3925	// API proxy or shared flow revisions * Creating, updating, or deleting
3926	// resource files * Creating, updating, or deleting target servers
3927	//
3928	// Possible values:
3929	//   "DEPLOYMENT_TYPE_UNSPECIFIED" - Deployment type not specified.
3930	//   "PROXY" - Proxy deployment enables you to develop and deploy API
3931	// proxies using Apigee on Google Cloud. This cannot currently be
3932	// combined with the CONFIGURABLE API proxy type.
3933	//   "ARCHIVE" - Archive deployment enables you to develop API proxies
3934	// locally then deploy an archive of your API proxy configuration to an
3935	// environment in Apigee on Google Cloud. You will be prevented from
3936	// performing a [subset of
3937	// actions](/apigee/docs/api-platform/local-development/overview#prevente
3938	// d-actions) within the environment.
3939	DeploymentType string `json:"deploymentType,omitempty"`
3940
3941	// Description: Optional. Description of the environment.
3942	Description string `json:"description,omitempty"`
3943
3944	// DisplayName: Optional. Display name for this environment.
3945	DisplayName string `json:"displayName,omitempty"`
3946
3947	// LastModifiedAt: Output only. Last modification time of this
3948	// environment as milliseconds since epoch.
3949	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
3950
3951	// Name: Required. Name of the environment. Values must match the
3952	// regular expression `^[.\\p{Alnum}-_]{1,255}$`
3953	Name string `json:"name,omitempty"`
3954
3955	// Properties: Optional. Key-value pairs that may be used for
3956	// customizing the environment.
3957	Properties *GoogleCloudApigeeV1Properties `json:"properties,omitempty"`
3958
3959	// State: Output only. State of the environment. Values other than
3960	// ACTIVE means the resource is not ready to use.
3961	//
3962	// Possible values:
3963	//   "STATE_UNSPECIFIED" - Resource is in an unspecified state.
3964	//   "CREATING" - Resource is being created.
3965	//   "ACTIVE" - Resource is provisioned and ready to use.
3966	//   "DELETING" - The resource is being deleted.
3967	//   "UPDATING" - The resource is being updated.
3968	State string `json:"state,omitempty"`
3969
3970	// ServerResponse contains the HTTP response code and headers from the
3971	// server.
3972	googleapi.ServerResponse `json:"-"`
3973
3974	// ForceSendFields is a list of field names (e.g. "ApiProxyType") to
3975	// unconditionally include in API requests. By default, fields with
3976	// empty or default values are omitted from API requests. However, any
3977	// non-pointer, non-interface field appearing in ForceSendFields will be
3978	// sent to the server regardless of whether the field is empty or not.
3979	// This may be used to include empty fields in Patch requests.
3980	ForceSendFields []string `json:"-"`
3981
3982	// NullFields is a list of field names (e.g. "ApiProxyType") to include
3983	// in API requests with the JSON null value. By default, fields with
3984	// empty values are omitted from API requests. However, any field with
3985	// an empty value appearing in NullFields will be sent to the server as
3986	// null. It is an error if a field in this list has a non-empty value.
3987	// This may be used to include null fields in Patch requests.
3988	NullFields []string `json:"-"`
3989}
3990
3991func (s *GoogleCloudApigeeV1Environment) MarshalJSON() ([]byte, error) {
3992	type NoMethod GoogleCloudApigeeV1Environment
3993	raw := NoMethod(*s)
3994	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3995}
3996
3997type GoogleCloudApigeeV1EnvironmentConfig struct {
3998	// ArcConfigLocation: The location for the config blob of API Runtime
3999	// Control, aka Envoy Adapter, for op-based authentication as a URI,
4000	// e.g. a Cloud Storage URI. This is only used by Envoy-based gateways.
4001	ArcConfigLocation string `json:"arcConfigLocation,omitempty"`
4002
4003	// CreateTime: Time that the environment configuration was created.
4004	CreateTime string `json:"createTime,omitempty"`
4005
4006	// DataCollectors: List of data collectors used by the deployments in
4007	// the environment.
4008	DataCollectors []*GoogleCloudApigeeV1DataCollectorConfig `json:"dataCollectors,omitempty"`
4009
4010	// DebugMask: Debug mask that applies to all deployments in the
4011	// environment.
4012	DebugMask *GoogleCloudApigeeV1DebugMask `json:"debugMask,omitempty"`
4013
4014	// Deployments: List of deployments in the environment.
4015	Deployments []*GoogleCloudApigeeV1DeploymentConfig `json:"deployments,omitempty"`
4016
4017	// FeatureFlags: Feature flags inherited from the organization and
4018	// environment.
4019	FeatureFlags map[string]string `json:"featureFlags,omitempty"`
4020
4021	// Flowhooks: List of flow hooks in the environment.
4022	Flowhooks []*GoogleCloudApigeeV1FlowHookConfig `json:"flowhooks,omitempty"`
4023
4024	// GatewayConfigLocation: The location for the gateway config blob as a
4025	// URI, e.g. a Cloud Storage URI. This is only used by Envoy-based
4026	// gateways.
4027	GatewayConfigLocation string `json:"gatewayConfigLocation,omitempty"`
4028
4029	// Keystores: List of keystores in the environment.
4030	Keystores []*GoogleCloudApigeeV1KeystoreConfig `json:"keystores,omitempty"`
4031
4032	// Name: Name of the environment configuration in the following format:
4033	// `organizations/{org}/environments/{env}/configs/{config}`
4034	Name string `json:"name,omitempty"`
4035
4036	// Provider: Used by the Control plane to add context information to
4037	// help detect the source of the document during diagnostics and
4038	// debugging.
4039	Provider string `json:"provider,omitempty"`
4040
4041	// PubsubTopic: Name of the PubSub topic for the environment.
4042	PubsubTopic string `json:"pubsubTopic,omitempty"`
4043
4044	// ResourceReferences: List of resource references in the environment.
4045	ResourceReferences []*GoogleCloudApigeeV1ReferenceConfig `json:"resourceReferences,omitempty"`
4046
4047	// Resources: List of resource versions in the environment.
4048	Resources []*GoogleCloudApigeeV1ResourceConfig `json:"resources,omitempty"`
4049
4050	// RevisionId: Revision ID of the environment configuration. The higher
4051	// the value, the more recently the configuration was deployed.
4052	RevisionId int64 `json:"revisionId,omitempty,string"`
4053
4054	// SequenceNumber: DEPRECATED: Use revision_id.
4055	SequenceNumber int64 `json:"sequenceNumber,omitempty,string"`
4056
4057	// Targets: List of target servers in the environment. Disabled target
4058	// servers are not displayed.
4059	Targets []*GoogleCloudApigeeV1TargetServerConfig `json:"targets,omitempty"`
4060
4061	// TraceConfig: Trace configurations. Contains config for the
4062	// environment and config overrides for specific API proxies.
4063	TraceConfig *GoogleCloudApigeeV1RuntimeTraceConfig `json:"traceConfig,omitempty"`
4064
4065	// Uid: Unique ID for the environment configuration. The ID will only
4066	// change if the environment is deleted and recreated.
4067	Uid string `json:"uid,omitempty"`
4068
4069	// ServerResponse contains the HTTP response code and headers from the
4070	// server.
4071	googleapi.ServerResponse `json:"-"`
4072
4073	// ForceSendFields is a list of field names (e.g. "ArcConfigLocation")
4074	// to unconditionally include in API requests. By default, fields with
4075	// empty or default values are omitted from API requests. However, any
4076	// non-pointer, non-interface field appearing in ForceSendFields will be
4077	// sent to the server regardless of whether the field is empty or not.
4078	// This may be used to include empty fields in Patch requests.
4079	ForceSendFields []string `json:"-"`
4080
4081	// NullFields is a list of field names (e.g. "ArcConfigLocation") to
4082	// include in API requests with the JSON null value. By default, fields
4083	// with empty values are omitted from API requests. However, any field
4084	// with an empty value appearing in NullFields will be sent to the
4085	// server as null. It is an error if a field in this list has a
4086	// non-empty value. This may be used to include null fields in Patch
4087	// requests.
4088	NullFields []string `json:"-"`
4089}
4090
4091func (s *GoogleCloudApigeeV1EnvironmentConfig) MarshalJSON() ([]byte, error) {
4092	type NoMethod GoogleCloudApigeeV1EnvironmentConfig
4093	raw := NoMethod(*s)
4094	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4095}
4096
4097// GoogleCloudApigeeV1EnvironmentGroup: EnvironmentGroup configuration.
4098// An environment group is used to group one or more Apigee environments
4099// under a single host name.
4100type GoogleCloudApigeeV1EnvironmentGroup struct {
4101	// CreatedAt: Output only. The time at which the environment group was
4102	// created as milliseconds since epoch.
4103	CreatedAt int64 `json:"createdAt,omitempty,string"`
4104
4105	// Hostnames: Required. Host names for this environment group.
4106	Hostnames []string `json:"hostnames,omitempty"`
4107
4108	// LastModifiedAt: Output only. The time at which the environment group
4109	// was last updated as milliseconds since epoch.
4110	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
4111
4112	// Name: ID of the environment group.
4113	Name string `json:"name,omitempty"`
4114
4115	// State: Output only. State of the environment group. Values other than
4116	// ACTIVE means the resource is not ready to use.
4117	//
4118	// Possible values:
4119	//   "STATE_UNSPECIFIED" - Resource is in an unspecified state.
4120	//   "CREATING" - Resource is being created.
4121	//   "ACTIVE" - Resource is provisioned and ready to use.
4122	//   "DELETING" - The resource is being deleted.
4123	//   "UPDATING" - The resource is being updated.
4124	State string `json:"state,omitempty"`
4125
4126	// ServerResponse contains the HTTP response code and headers from the
4127	// server.
4128	googleapi.ServerResponse `json:"-"`
4129
4130	// ForceSendFields is a list of field names (e.g. "CreatedAt") to
4131	// unconditionally include in API requests. By default, fields with
4132	// empty or default values are omitted from API requests. However, any
4133	// non-pointer, non-interface field appearing in ForceSendFields will be
4134	// sent to the server regardless of whether the field is empty or not.
4135	// This may be used to include empty fields in Patch requests.
4136	ForceSendFields []string `json:"-"`
4137
4138	// NullFields is a list of field names (e.g. "CreatedAt") to include in
4139	// API requests with the JSON null value. By default, fields with empty
4140	// values are omitted from API requests. However, any field with an
4141	// empty value appearing in NullFields will be sent to the server as
4142	// null. It is an error if a field in this list has a non-empty value.
4143	// This may be used to include null fields in Patch requests.
4144	NullFields []string `json:"-"`
4145}
4146
4147func (s *GoogleCloudApigeeV1EnvironmentGroup) MarshalJSON() ([]byte, error) {
4148	type NoMethod GoogleCloudApigeeV1EnvironmentGroup
4149	raw := NoMethod(*s)
4150	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4151}
4152
4153// GoogleCloudApigeeV1EnvironmentGroupAttachment:
4154// EnvironmentGroupAttachment is a resource which defines an attachment
4155// of an environment to an environment group.
4156type GoogleCloudApigeeV1EnvironmentGroupAttachment struct {
4157	// CreatedAt: Output only. The time at which the environment group
4158	// attachment was created as milliseconds since epoch.
4159	CreatedAt int64 `json:"createdAt,omitempty,string"`
4160
4161	// Environment: Required. ID of the attached environment.
4162	Environment string `json:"environment,omitempty"`
4163
4164	// Name: ID of the environment group attachment.
4165	Name string `json:"name,omitempty"`
4166
4167	// ServerResponse contains the HTTP response code and headers from the
4168	// server.
4169	googleapi.ServerResponse `json:"-"`
4170
4171	// ForceSendFields is a list of field names (e.g. "CreatedAt") to
4172	// unconditionally include in API requests. By default, fields with
4173	// empty or default values are omitted from API requests. However, any
4174	// non-pointer, non-interface field appearing in ForceSendFields will be
4175	// sent to the server regardless of whether the field is empty or not.
4176	// This may be used to include empty fields in Patch requests.
4177	ForceSendFields []string `json:"-"`
4178
4179	// NullFields is a list of field names (e.g. "CreatedAt") to include in
4180	// API requests with the JSON null value. By default, fields with empty
4181	// values are omitted from API requests. However, any field with an
4182	// empty value appearing in NullFields will be sent to the server as
4183	// null. It is an error if a field in this list has a non-empty value.
4184	// This may be used to include null fields in Patch requests.
4185	NullFields []string `json:"-"`
4186}
4187
4188func (s *GoogleCloudApigeeV1EnvironmentGroupAttachment) MarshalJSON() ([]byte, error) {
4189	type NoMethod GoogleCloudApigeeV1EnvironmentGroupAttachment
4190	raw := NoMethod(*s)
4191	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4192}
4193
4194// GoogleCloudApigeeV1EnvironmentGroupConfig: EnvironmentGroupConfig is
4195// a revisioned snapshot of an EnvironmentGroup and its associated
4196// routing rules.
4197type GoogleCloudApigeeV1EnvironmentGroupConfig struct {
4198	// Hostnames: Host names for the environment group.
4199	Hostnames []string `json:"hostnames,omitempty"`
4200
4201	// Name: Name of the environment group in the following format:
4202	// `organizations/{org}/envgroups/{envgroup}`.
4203	Name string `json:"name,omitempty"`
4204
4205	// RevisionId: Revision id that defines the ordering of the
4206	// EnvironmentGroupConfig resource. The higher the revision, the more
4207	// recently the configuration was deployed.
4208	RevisionId int64 `json:"revisionId,omitempty,string"`
4209
4210	// RoutingRules: Ordered list of routing rules defining how traffic to
4211	// this environment group's hostnames should be routed to different
4212	// environments.
4213	RoutingRules []*GoogleCloudApigeeV1RoutingRule `json:"routingRules,omitempty"`
4214
4215	// Uid: A unique id for the environment group config that will only
4216	// change if the environment group is deleted and recreated.
4217	Uid string `json:"uid,omitempty"`
4218
4219	// ForceSendFields is a list of field names (e.g. "Hostnames") to
4220	// unconditionally include in API requests. By default, fields with
4221	// empty or default values are omitted from API requests. However, any
4222	// non-pointer, non-interface field appearing in ForceSendFields will be
4223	// sent to the server regardless of whether the field is empty or not.
4224	// This may be used to include empty fields in Patch requests.
4225	ForceSendFields []string `json:"-"`
4226
4227	// NullFields is a list of field names (e.g. "Hostnames") to include in
4228	// API requests with the JSON null value. By default, fields with empty
4229	// values are omitted from API requests. However, any field with an
4230	// empty value appearing in NullFields will be sent to the server as
4231	// null. It is an error if a field in this list has a non-empty value.
4232	// This may be used to include null fields in Patch requests.
4233	NullFields []string `json:"-"`
4234}
4235
4236func (s *GoogleCloudApigeeV1EnvironmentGroupConfig) MarshalJSON() ([]byte, error) {
4237	type NoMethod GoogleCloudApigeeV1EnvironmentGroupConfig
4238	raw := NoMethod(*s)
4239	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4240}
4241
4242// GoogleCloudApigeeV1ExpireDeveloperSubscriptionRequest: Request for
4243// ExpireDeveloperSubscription.
4244type GoogleCloudApigeeV1ExpireDeveloperSubscriptionRequest struct {
4245}
4246
4247// GoogleCloudApigeeV1Export: Details of an export job.
4248type GoogleCloudApigeeV1Export struct {
4249	// Created: Output only. Time the export job was created.
4250	Created string `json:"created,omitempty"`
4251
4252	// DatastoreName: Name of the datastore that is the destination of the
4253	// export job [datastore]
4254	DatastoreName string `json:"datastoreName,omitempty"`
4255
4256	// Description: Description of the export job.
4257	Description string `json:"description,omitempty"`
4258
4259	// Error: Output only. Error is set when export fails
4260	Error string `json:"error,omitempty"`
4261
4262	// ExecutionTime: Output only. Execution time for this export job. If
4263	// the job is still in progress, it will be set to the amount of time
4264	// that has elapsed since`created`, in seconds. Else, it will set to
4265	// (`updated` - `created`), in seconds.
4266	ExecutionTime string `json:"executionTime,omitempty"`
4267
4268	// Name: Display name of the export job.
4269	Name string `json:"name,omitempty"`
4270
4271	// Self: Output only. Self link of the export job. A URI that can be
4272	// used to retrieve the status of an export job. Example:
4273	// `/organizations/myorg/environments/myenv/analytics/exports/9cfc0d85-0f
4274	// 30-46d6-ae6f-318d0cb961bd`
4275	Self string `json:"self,omitempty"`
4276
4277	// State: Output only. Status of the export job. Valid values include
4278	// `enqueued`, `running`, `completed`, and `failed`.
4279	State string `json:"state,omitempty"`
4280
4281	// Updated: Output only. Time the export job was last updated.
4282	Updated string `json:"updated,omitempty"`
4283
4284	// ServerResponse contains the HTTP response code and headers from the
4285	// server.
4286	googleapi.ServerResponse `json:"-"`
4287
4288	// ForceSendFields is a list of field names (e.g. "Created") to
4289	// unconditionally include in API requests. By default, fields with
4290	// empty or default values are omitted from API requests. However, any
4291	// non-pointer, non-interface field appearing in ForceSendFields will be
4292	// sent to the server regardless of whether the field is empty or not.
4293	// This may be used to include empty fields in Patch requests.
4294	ForceSendFields []string `json:"-"`
4295
4296	// NullFields is a list of field names (e.g. "Created") to include in
4297	// API requests with the JSON null value. By default, fields with empty
4298	// values are omitted from API requests. However, any field with an
4299	// empty value appearing in NullFields will be sent to the server as
4300	// null. It is an error if a field in this list has a non-empty value.
4301	// This may be used to include null fields in Patch requests.
4302	NullFields []string `json:"-"`
4303}
4304
4305func (s *GoogleCloudApigeeV1Export) MarshalJSON() ([]byte, error) {
4306	type NoMethod GoogleCloudApigeeV1Export
4307	raw := NoMethod(*s)
4308	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4309}
4310
4311// GoogleCloudApigeeV1ExportRequest: Request body for
4312// [CreateExportRequest]
4313type GoogleCloudApigeeV1ExportRequest struct {
4314	// CsvDelimiter: Optional. Delimiter used in the CSV file, if
4315	// `outputFormat` is set to `csv`. Defaults to the `,` (comma)
4316	// character. Supported delimiter characters include comma (`,`), pipe
4317	// (`|`), and tab (`\t`).
4318	CsvDelimiter string `json:"csvDelimiter,omitempty"`
4319
4320	// DatastoreName: Required. Name of the preconfigured datastore.
4321	DatastoreName string `json:"datastoreName,omitempty"`
4322
4323	// DateRange: Required. Date range of the data to export.
4324	DateRange *GoogleCloudApigeeV1DateRange `json:"dateRange,omitempty"`
4325
4326	// Description: Optional. Description of the export job.
4327	Description string `json:"description,omitempty"`
4328
4329	// Name: Required. Display name of the export job.
4330	Name string `json:"name,omitempty"`
4331
4332	// OutputFormat: Optional. Output format of the export. Valid values
4333	// include: `csv` or `json`. Defaults to `json`. Note: Configure the
4334	// delimiter for CSV output using the `csvDelimiter` property.
4335	OutputFormat string `json:"outputFormat,omitempty"`
4336
4337	// ForceSendFields is a list of field names (e.g. "CsvDelimiter") to
4338	// unconditionally include in API requests. By default, fields with
4339	// empty or default values are omitted from API requests. However, any
4340	// non-pointer, non-interface field appearing in ForceSendFields will be
4341	// sent to the server regardless of whether the field is empty or not.
4342	// This may be used to include empty fields in Patch requests.
4343	ForceSendFields []string `json:"-"`
4344
4345	// NullFields is a list of field names (e.g. "CsvDelimiter") to include
4346	// in API requests with the JSON null value. By default, fields with
4347	// empty values are omitted from API requests. However, any field with
4348	// an empty value appearing in NullFields will be sent to the server as
4349	// null. It is an error if a field in this list has a non-empty value.
4350	// This may be used to include null fields in Patch requests.
4351	NullFields []string `json:"-"`
4352}
4353
4354func (s *GoogleCloudApigeeV1ExportRequest) MarshalJSON() ([]byte, error) {
4355	type NoMethod GoogleCloudApigeeV1ExportRequest
4356	raw := NoMethod(*s)
4357	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4358}
4359
4360type GoogleCloudApigeeV1FlowHook struct {
4361	// ContinueOnError: Optional. Flag that specifies whether execution
4362	// should continue if the flow hook throws an exception. Set to `true`
4363	// to continue execution. Set to `false` to stop execution if the flow
4364	// hook throws an exception. Defaults to `true`.
4365	ContinueOnError bool `json:"continueOnError,omitempty"`
4366
4367	// Description: Description of the flow hook.
4368	Description string `json:"description,omitempty"`
4369
4370	// FlowHookPoint: Output only. Where in the API call flow the flow hook
4371	// is invoked. Must be one of `PreProxyFlowHook`, `PostProxyFlowHook`,
4372	// `PreTargetFlowHook`, or `PostTargetFlowHook`.
4373	FlowHookPoint string `json:"flowHookPoint,omitempty"`
4374
4375	// SharedFlow: Shared flow attached to this flow hook, or empty if there
4376	// is none attached.
4377	SharedFlow string `json:"sharedFlow,omitempty"`
4378
4379	// ServerResponse contains the HTTP response code and headers from the
4380	// server.
4381	googleapi.ServerResponse `json:"-"`
4382
4383	// ForceSendFields is a list of field names (e.g. "ContinueOnError") to
4384	// unconditionally include in API requests. By default, fields with
4385	// empty or default values are omitted from API requests. However, any
4386	// non-pointer, non-interface field appearing in ForceSendFields will be
4387	// sent to the server regardless of whether the field is empty or not.
4388	// This may be used to include empty fields in Patch requests.
4389	ForceSendFields []string `json:"-"`
4390
4391	// NullFields is a list of field names (e.g. "ContinueOnError") to
4392	// include in API requests with the JSON null value. By default, fields
4393	// with empty values are omitted from API requests. However, any field
4394	// with an empty value appearing in NullFields will be sent to the
4395	// server as null. It is an error if a field in this list has a
4396	// non-empty value. This may be used to include null fields in Patch
4397	// requests.
4398	NullFields []string `json:"-"`
4399}
4400
4401func (s *GoogleCloudApigeeV1FlowHook) MarshalJSON() ([]byte, error) {
4402	type NoMethod GoogleCloudApigeeV1FlowHook
4403	raw := NoMethod(*s)
4404	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4405}
4406
4407type GoogleCloudApigeeV1FlowHookConfig struct {
4408	// ContinueOnError: Flag that specifies whether the flow should abort
4409	// after an error in the flow hook. Defaults to `true` (continue on
4410	// error).
4411	ContinueOnError bool `json:"continueOnError,omitempty"`
4412
4413	// Name: Name of the flow hook in the following format:
4414	// `organizations/{org}/environments/{env}/flowhooks/{point}`. Valid
4415	// `point` values include: `PreProxyFlowHook`, `PostProxyFlowHook`,
4416	// `PreTargetFlowHook`, and `PostTargetFlowHook`
4417	Name string `json:"name,omitempty"`
4418
4419	// SharedFlowName: Name of the shared flow to invoke in the following
4420	// format: `organizations/{org}/sharedflows/{sharedflow}`
4421	SharedFlowName string `json:"sharedFlowName,omitempty"`
4422
4423	// ForceSendFields is a list of field names (e.g. "ContinueOnError") to
4424	// unconditionally include in API requests. By default, fields with
4425	// empty or default values are omitted from API requests. However, any
4426	// non-pointer, non-interface field appearing in ForceSendFields will be
4427	// sent to the server regardless of whether the field is empty or not.
4428	// This may be used to include empty fields in Patch requests.
4429	ForceSendFields []string `json:"-"`
4430
4431	// NullFields is a list of field names (e.g. "ContinueOnError") to
4432	// include in API requests with the JSON null value. By default, fields
4433	// with empty values are omitted from API requests. However, any field
4434	// with an empty value appearing in NullFields will be sent to the
4435	// server as null. It is an error if a field in this list has a
4436	// non-empty value. This may be used to include null fields in Patch
4437	// requests.
4438	NullFields []string `json:"-"`
4439}
4440
4441func (s *GoogleCloudApigeeV1FlowHookConfig) MarshalJSON() ([]byte, error) {
4442	type NoMethod GoogleCloudApigeeV1FlowHookConfig
4443	raw := NoMethod(*s)
4444	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4445}
4446
4447// GoogleCloudApigeeV1GenerateDownloadUrlRequest: Request for
4448// GenerateDownloadUrl method.
4449type GoogleCloudApigeeV1GenerateDownloadUrlRequest struct {
4450}
4451
4452// GoogleCloudApigeeV1GenerateDownloadUrlResponse: Response for
4453// GenerateDownloadUrl method.
4454type GoogleCloudApigeeV1GenerateDownloadUrlResponse struct {
4455	// DownloadUri: The Google Cloud Storage signed URL that can be used to
4456	// download the Archive zip file.
4457	DownloadUri string `json:"downloadUri,omitempty"`
4458
4459	// ServerResponse contains the HTTP response code and headers from the
4460	// server.
4461	googleapi.ServerResponse `json:"-"`
4462
4463	// ForceSendFields is a list of field names (e.g. "DownloadUri") to
4464	// unconditionally include in API requests. By default, fields with
4465	// empty or default values are omitted from API requests. However, any
4466	// non-pointer, non-interface field appearing in ForceSendFields will be
4467	// sent to the server regardless of whether the field is empty or not.
4468	// This may be used to include empty fields in Patch requests.
4469	ForceSendFields []string `json:"-"`
4470
4471	// NullFields is a list of field names (e.g. "DownloadUri") to include
4472	// in API requests with the JSON null value. By default, fields with
4473	// empty values are omitted from API requests. However, any field with
4474	// an empty value appearing in NullFields will be sent to the server as
4475	// null. It is an error if a field in this list has a non-empty value.
4476	// This may be used to include null fields in Patch requests.
4477	NullFields []string `json:"-"`
4478}
4479
4480func (s *GoogleCloudApigeeV1GenerateDownloadUrlResponse) MarshalJSON() ([]byte, error) {
4481	type NoMethod GoogleCloudApigeeV1GenerateDownloadUrlResponse
4482	raw := NoMethod(*s)
4483	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4484}
4485
4486// GoogleCloudApigeeV1GenerateUploadUrlRequest: Request for
4487// GenerateUploadUrl method.
4488type GoogleCloudApigeeV1GenerateUploadUrlRequest struct {
4489}
4490
4491// GoogleCloudApigeeV1GenerateUploadUrlResponse: Response for
4492// GenerateUploadUrl method.
4493type GoogleCloudApigeeV1GenerateUploadUrlResponse struct {
4494	// UploadUri: The Google Cloud Storage signed URL that can be used to
4495	// upload a new Archive zip file.
4496	UploadUri string `json:"uploadUri,omitempty"`
4497
4498	// ServerResponse contains the HTTP response code and headers from the
4499	// server.
4500	googleapi.ServerResponse `json:"-"`
4501
4502	// ForceSendFields is a list of field names (e.g. "UploadUri") to
4503	// unconditionally include in API requests. By default, fields with
4504	// empty or default values are omitted from API requests. However, any
4505	// non-pointer, non-interface field appearing in ForceSendFields will be
4506	// sent to the server regardless of whether the field is empty or not.
4507	// This may be used to include empty fields in Patch requests.
4508	ForceSendFields []string `json:"-"`
4509
4510	// NullFields is a list of field names (e.g. "UploadUri") to include in
4511	// API requests with the JSON null value. By default, fields with empty
4512	// values are omitted from API requests. However, any field with an
4513	// empty value appearing in NullFields will be sent to the server as
4514	// null. It is an error if a field in this list has a non-empty value.
4515	// This may be used to include null fields in Patch requests.
4516	NullFields []string `json:"-"`
4517}
4518
4519func (s *GoogleCloudApigeeV1GenerateUploadUrlResponse) MarshalJSON() ([]byte, error) {
4520	type NoMethod GoogleCloudApigeeV1GenerateUploadUrlResponse
4521	raw := NoMethod(*s)
4522	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4523}
4524
4525// GoogleCloudApigeeV1GetSyncAuthorizationRequest: Request for
4526// GetSyncAuthorization.
4527type GoogleCloudApigeeV1GetSyncAuthorizationRequest struct {
4528}
4529
4530// GoogleCloudApigeeV1GraphQLOperation: Represents the pairing of
4531// GraphQL operation types and the GraphQL operation name.
4532type GoogleCloudApigeeV1GraphQLOperation struct {
4533	// Operation: GraphQL operation name. The name and operation type will
4534	// be used to apply quotas. If no name is specified, the quota will be
4535	// applied to all GraphQL operations irrespective of their operation
4536	// names in the payload.
4537	Operation string `json:"operation,omitempty"`
4538
4539	// OperationTypes: Required. GraphQL operation types. Valid values
4540	// include `query` or `mutation`. **Note**: Apigee does not currently
4541	// support `subscription` types.
4542	OperationTypes []string `json:"operationTypes,omitempty"`
4543
4544	// ForceSendFields is a list of field names (e.g. "Operation") to
4545	// unconditionally include in API requests. By default, fields with
4546	// empty or default values are omitted from API requests. However, any
4547	// non-pointer, non-interface field appearing in ForceSendFields will be
4548	// sent to the server regardless of whether the field is empty or not.
4549	// This may be used to include empty fields in Patch requests.
4550	ForceSendFields []string `json:"-"`
4551
4552	// NullFields is a list of field names (e.g. "Operation") to include in
4553	// API requests with the JSON null value. By default, fields with empty
4554	// values are omitted from API requests. However, any field with an
4555	// empty value appearing in NullFields will be sent to the server as
4556	// null. It is an error if a field in this list has a non-empty value.
4557	// This may be used to include null fields in Patch requests.
4558	NullFields []string `json:"-"`
4559}
4560
4561func (s *GoogleCloudApigeeV1GraphQLOperation) MarshalJSON() ([]byte, error) {
4562	type NoMethod GoogleCloudApigeeV1GraphQLOperation
4563	raw := NoMethod(*s)
4564	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4565}
4566
4567// GoogleCloudApigeeV1GraphQLOperationConfig: Binds the resources in a
4568// proxy or remote service with the GraphQL operation and its associated
4569// quota enforcement.
4570type GoogleCloudApigeeV1GraphQLOperationConfig struct {
4571	// ApiSource: Required. Name of the API proxy endpoint or remote service
4572	// with which the GraphQL operation and quota are associated.
4573	ApiSource string `json:"apiSource,omitempty"`
4574
4575	// Attributes: Custom attributes associated with the operation.
4576	Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
4577
4578	// Operations: Required. List of GraphQL name/operation type pairs for
4579	// the proxy or remote service to which quota will be applied. If only
4580	// operation types are specified, the quota will be applied to all
4581	// GraphQL requests irrespective of the GraphQL name. **Note**:
4582	// Currently, you can specify only a single GraphQLOperation. Specifying
4583	// more than one will cause the operation to fail.
4584	Operations []*GoogleCloudApigeeV1GraphQLOperation `json:"operations,omitempty"`
4585
4586	// Quota: Quota parameters to be enforced for the resources, methods,
4587	// and API source combination. If none are specified, quota enforcement
4588	// will not be done.
4589	Quota *GoogleCloudApigeeV1Quota `json:"quota,omitempty"`
4590
4591	// ForceSendFields is a list of field names (e.g. "ApiSource") to
4592	// unconditionally include in API requests. By default, fields with
4593	// empty or default values are omitted from API requests. However, any
4594	// non-pointer, non-interface field appearing in ForceSendFields will be
4595	// sent to the server regardless of whether the field is empty or not.
4596	// This may be used to include empty fields in Patch requests.
4597	ForceSendFields []string `json:"-"`
4598
4599	// NullFields is a list of field names (e.g. "ApiSource") to include in
4600	// API requests with the JSON null value. By default, fields with empty
4601	// values are omitted from API requests. However, any field with an
4602	// empty value appearing in NullFields will be sent to the server as
4603	// null. It is an error if a field in this list has a non-empty value.
4604	// This may be used to include null fields in Patch requests.
4605	NullFields []string `json:"-"`
4606}
4607
4608func (s *GoogleCloudApigeeV1GraphQLOperationConfig) MarshalJSON() ([]byte, error) {
4609	type NoMethod GoogleCloudApigeeV1GraphQLOperationConfig
4610	raw := NoMethod(*s)
4611	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4612}
4613
4614// GoogleCloudApigeeV1GraphQLOperationGroup: List of graphQL operation
4615// configuration details associated with Apigee API proxies or remote
4616// services. Remote services are non-Apigee proxies, such as
4617// Istio-Envoy.
4618type GoogleCloudApigeeV1GraphQLOperationGroup struct {
4619	// OperationConfigType: Flag that specifies whether the configuration is
4620	// for Apigee API proxy or a remote service. Valid values include
4621	// `proxy` or `remoteservice`. Defaults to `proxy`. Set to `proxy` when
4622	// Apigee API proxies are associated with the API product. Set to
4623	// `remoteservice` when non-Apigee proxies like Istio-Envoy are
4624	// associated with the API product.
4625	OperationConfigType string `json:"operationConfigType,omitempty"`
4626
4627	// OperationConfigs: Required. List of operation configurations for
4628	// either Apigee API proxies or other remote services that are
4629	// associated with this API product.
4630	OperationConfigs []*GoogleCloudApigeeV1GraphQLOperationConfig `json:"operationConfigs,omitempty"`
4631
4632	// ForceSendFields is a list of field names (e.g. "OperationConfigType")
4633	// to unconditionally include in API requests. By default, fields with
4634	// empty or default values are omitted from API requests. However, any
4635	// non-pointer, non-interface field appearing in ForceSendFields will be
4636	// sent to the server regardless of whether the field is empty or not.
4637	// This may be used to include empty fields in Patch requests.
4638	ForceSendFields []string `json:"-"`
4639
4640	// NullFields is a list of field names (e.g. "OperationConfigType") to
4641	// include in API requests with the JSON null value. By default, fields
4642	// with empty values are omitted from API requests. However, any field
4643	// with an empty value appearing in NullFields will be sent to the
4644	// server as null. It is an error if a field in this list has a
4645	// non-empty value. This may be used to include null fields in Patch
4646	// requests.
4647	NullFields []string `json:"-"`
4648}
4649
4650func (s *GoogleCloudApigeeV1GraphQLOperationGroup) MarshalJSON() ([]byte, error) {
4651	type NoMethod GoogleCloudApigeeV1GraphQLOperationGroup
4652	raw := NoMethod(*s)
4653	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4654}
4655
4656type GoogleCloudApigeeV1IngressConfig struct {
4657	// EnvironmentGroups: List of environment groups in the organization.
4658	EnvironmentGroups []*GoogleCloudApigeeV1EnvironmentGroupConfig `json:"environmentGroups,omitempty"`
4659
4660	// Name: Name of the resource in the following format:
4661	// `organizations/{org}/deployedIngressConfig`.
4662	Name string `json:"name,omitempty"`
4663
4664	// RevisionCreateTime: Time at which the IngressConfig revision was
4665	// created.
4666	RevisionCreateTime string `json:"revisionCreateTime,omitempty"`
4667
4668	// RevisionId: Revision id that defines the ordering on IngressConfig
4669	// resources. The higher the revision, the more recently the
4670	// configuration was deployed.
4671	RevisionId int64 `json:"revisionId,omitempty,string"`
4672
4673	// Uid: A unique id for the ingress config that will only change if the
4674	// organization is deleted and recreated.
4675	Uid string `json:"uid,omitempty"`
4676
4677	// ServerResponse contains the HTTP response code and headers from the
4678	// server.
4679	googleapi.ServerResponse `json:"-"`
4680
4681	// ForceSendFields is a list of field names (e.g. "EnvironmentGroups")
4682	// to unconditionally include in API requests. By default, fields with
4683	// empty or default values are omitted from API requests. However, any
4684	// non-pointer, non-interface field appearing in ForceSendFields will be
4685	// sent to the server regardless of whether the field is empty or not.
4686	// This may be used to include empty fields in Patch requests.
4687	ForceSendFields []string `json:"-"`
4688
4689	// NullFields is a list of field names (e.g. "EnvironmentGroups") to
4690	// include in API requests with the JSON null value. By default, fields
4691	// with empty values are omitted from API requests. However, any field
4692	// with an empty value appearing in NullFields will be sent to the
4693	// server as null. It is an error if a field in this list has a
4694	// non-empty value. This may be used to include null fields in Patch
4695	// requests.
4696	NullFields []string `json:"-"`
4697}
4698
4699func (s *GoogleCloudApigeeV1IngressConfig) MarshalJSON() ([]byte, error) {
4700	type NoMethod GoogleCloudApigeeV1IngressConfig
4701	raw := NoMethod(*s)
4702	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4703}
4704
4705// GoogleCloudApigeeV1Instance: Apigee runtime instance.
4706type GoogleCloudApigeeV1Instance struct {
4707	// CreatedAt: Output only. Time the instance was created in milliseconds
4708	// since epoch.
4709	CreatedAt int64 `json:"createdAt,omitempty,string"`
4710
4711	// Description: Optional. Description of the instance.
4712	Description string `json:"description,omitempty"`
4713
4714	// DiskEncryptionKeyName: Customer Managed Encryption Key (CMEK) used
4715	// for disk and volume encryption. Required for Apigee paid
4716	// subscriptions only. Use the following format:
4717	// `projects/([^/]+)/locations/([^/]+)/keyRings/([^/]+)/cryptoKeys/([^/]+
4718	// )`
4719	DiskEncryptionKeyName string `json:"diskEncryptionKeyName,omitempty"`
4720
4721	// DisplayName: Optional. Display name for the instance.
4722	DisplayName string `json:"displayName,omitempty"`
4723
4724	// Host: Output only. Internal hostname or IP address of the Apigee
4725	// endpoint used by clients to connect to the service.
4726	Host string `json:"host,omitempty"`
4727
4728	// LastModifiedAt: Output only. Time the instance was last modified in
4729	// milliseconds since epoch.
4730	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
4731
4732	// Location: Required. Compute Engine location where the instance
4733	// resides.
4734	Location string `json:"location,omitempty"`
4735
4736	// Name: Required. Resource ID of the instance. Values must match the
4737	// regular expression `^a-z{0,30}[a-z\d]$`.
4738	Name string `json:"name,omitempty"`
4739
4740	// PeeringCidrRange: Optional. Size of the CIDR block range that will be
4741	// reserved by the instance. PAID organizations support `SLASH_16` to
4742	// `SLASH_20` and defaults to `SLASH_16`. Evaluation organizations
4743	// support only `SLASH_23`.
4744	//
4745	// Possible values:
4746	//   "CIDR_RANGE_UNSPECIFIED" - Range not specified.
4747	//   "SLASH_16" - `/16` CIDR range.
4748	//   "SLASH_17" - `/17` CIDR range.
4749	//   "SLASH_18" - `/18` CIDR range.
4750	//   "SLASH_19" - `/19` CIDR range.
4751	//   "SLASH_20" - `/20` CIDR range.
4752	//   "SLASH_22" - `/22` CIDR range. Supported for evaluation only.
4753	//   "SLASH_23" - `/23` CIDR range. Supported for evaluation only.
4754	PeeringCidrRange string `json:"peeringCidrRange,omitempty"`
4755
4756	// Port: Output only. Port number of the exposed Apigee endpoint.
4757	Port string `json:"port,omitempty"`
4758
4759	// RuntimeVersion: Output only. Version of the runtime system running in
4760	// the instance. The runtime system is the set of components that serve
4761	// the API Proxy traffic in your Environments.
4762	RuntimeVersion string `json:"runtimeVersion,omitempty"`
4763
4764	// State: Output only. State of the instance. Values other than `ACTIVE`
4765	// means the resource is not ready to use.
4766	//
4767	// Possible values:
4768	//   "STATE_UNSPECIFIED" - Resource is in an unspecified state.
4769	//   "CREATING" - Resource is being created.
4770	//   "ACTIVE" - Resource is provisioned and ready to use.
4771	//   "DELETING" - The resource is being deleted.
4772	//   "UPDATING" - The resource is being updated.
4773	State string `json:"state,omitempty"`
4774
4775	// ServerResponse contains the HTTP response code and headers from the
4776	// server.
4777	googleapi.ServerResponse `json:"-"`
4778
4779	// ForceSendFields is a list of field names (e.g. "CreatedAt") to
4780	// unconditionally include in API requests. By default, fields with
4781	// empty or default values are omitted from API requests. However, any
4782	// non-pointer, non-interface field appearing in ForceSendFields will be
4783	// sent to the server regardless of whether the field is empty or not.
4784	// This may be used to include empty fields in Patch requests.
4785	ForceSendFields []string `json:"-"`
4786
4787	// NullFields is a list of field names (e.g. "CreatedAt") to include in
4788	// API requests with the JSON null value. By default, fields with empty
4789	// values are omitted from API requests. However, any field with an
4790	// empty value appearing in NullFields will be sent to the server as
4791	// null. It is an error if a field in this list has a non-empty value.
4792	// This may be used to include null fields in Patch requests.
4793	NullFields []string `json:"-"`
4794}
4795
4796func (s *GoogleCloudApigeeV1Instance) MarshalJSON() ([]byte, error) {
4797	type NoMethod GoogleCloudApigeeV1Instance
4798	raw := NoMethod(*s)
4799	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4800}
4801
4802// GoogleCloudApigeeV1InstanceAttachment: InstanceAttachment represents
4803// the installation of an environment onto an instance.
4804type GoogleCloudApigeeV1InstanceAttachment struct {
4805	// CreatedAt: Output only. Time the attachment was created in
4806	// milliseconds since epoch.
4807	CreatedAt int64 `json:"createdAt,omitempty,string"`
4808
4809	// Environment: ID of the attached environment.
4810	Environment string `json:"environment,omitempty"`
4811
4812	// Name: Output only. ID of the attachment.
4813	Name string `json:"name,omitempty"`
4814
4815	// ServerResponse contains the HTTP response code and headers from the
4816	// server.
4817	googleapi.ServerResponse `json:"-"`
4818
4819	// ForceSendFields is a list of field names (e.g. "CreatedAt") to
4820	// unconditionally include in API requests. By default, fields with
4821	// empty or default values are omitted from API requests. However, any
4822	// non-pointer, non-interface field appearing in ForceSendFields will be
4823	// sent to the server regardless of whether the field is empty or not.
4824	// This may be used to include empty fields in Patch requests.
4825	ForceSendFields []string `json:"-"`
4826
4827	// NullFields is a list of field names (e.g. "CreatedAt") to include in
4828	// API requests with the JSON null value. By default, fields with empty
4829	// values are omitted from API requests. However, any field with an
4830	// empty value appearing in NullFields will be sent to the server as
4831	// null. It is an error if a field in this list has a non-empty value.
4832	// This may be used to include null fields in Patch requests.
4833	NullFields []string `json:"-"`
4834}
4835
4836func (s *GoogleCloudApigeeV1InstanceAttachment) MarshalJSON() ([]byte, error) {
4837	type NoMethod GoogleCloudApigeeV1InstanceAttachment
4838	raw := NoMethod(*s)
4839	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4840}
4841
4842// GoogleCloudApigeeV1InstanceDeploymentStatus: The status of a
4843// deployment as reported by a single instance.
4844type GoogleCloudApigeeV1InstanceDeploymentStatus struct {
4845	// DeployedRevisions: Revisions currently deployed in MPs.
4846	DeployedRevisions []*GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRevision `json:"deployedRevisions,omitempty"`
4847
4848	// DeployedRoutes: Current routes deployed in the ingress routing table.
4849	// A route which is missing will appear in `missing_routes`.
4850	DeployedRoutes []*GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRoute `json:"deployedRoutes,omitempty"`
4851
4852	// Instance: ID of the instance reporting the status.
4853	Instance string `json:"instance,omitempty"`
4854
4855	// ForceSendFields is a list of field names (e.g. "DeployedRevisions")
4856	// to unconditionally include in API requests. By default, fields with
4857	// empty or default values are omitted from API requests. However, any
4858	// non-pointer, non-interface field appearing in ForceSendFields will be
4859	// sent to the server regardless of whether the field is empty or not.
4860	// This may be used to include empty fields in Patch requests.
4861	ForceSendFields []string `json:"-"`
4862
4863	// NullFields is a list of field names (e.g. "DeployedRevisions") to
4864	// include in API requests with the JSON null value. By default, fields
4865	// with empty values are omitted from API requests. However, any field
4866	// with an empty value appearing in NullFields will be sent to the
4867	// server as null. It is an error if a field in this list has a
4868	// non-empty value. This may be used to include null fields in Patch
4869	// requests.
4870	NullFields []string `json:"-"`
4871}
4872
4873func (s *GoogleCloudApigeeV1InstanceDeploymentStatus) MarshalJSON() ([]byte, error) {
4874	type NoMethod GoogleCloudApigeeV1InstanceDeploymentStatus
4875	raw := NoMethod(*s)
4876	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4877}
4878
4879// GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRevision:
4880// Revisions deployed in the MPs.
4881type GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRevision struct {
4882	// Percentage: Percentage of MP replicas reporting this revision.
4883	Percentage int64 `json:"percentage,omitempty"`
4884
4885	// Revision: API proxy revision reported as deployed.
4886	Revision string `json:"revision,omitempty"`
4887
4888	// ForceSendFields is a list of field names (e.g. "Percentage") to
4889	// unconditionally include in API requests. By default, fields with
4890	// empty or default values are omitted from API requests. However, any
4891	// non-pointer, non-interface field appearing in ForceSendFields will be
4892	// sent to the server regardless of whether the field is empty or not.
4893	// This may be used to include empty fields in Patch requests.
4894	ForceSendFields []string `json:"-"`
4895
4896	// NullFields is a list of field names (e.g. "Percentage") to include in
4897	// API requests with the JSON null value. By default, fields with empty
4898	// values are omitted from API requests. However, any field with an
4899	// empty value appearing in NullFields will be sent to the server as
4900	// null. It is an error if a field in this list has a non-empty value.
4901	// This may be used to include null fields in Patch requests.
4902	NullFields []string `json:"-"`
4903}
4904
4905func (s *GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRevision) MarshalJSON() ([]byte, error) {
4906	type NoMethod GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRevision
4907	raw := NoMethod(*s)
4908	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4909}
4910
4911// GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRoute: Route
4912// deployed in the ingress routing table.
4913type GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRoute struct {
4914	// Basepath: Base path in the routing table.
4915	Basepath string `json:"basepath,omitempty"`
4916
4917	// Envgroup: Environment group where this route is installed.
4918	Envgroup string `json:"envgroup,omitempty"`
4919
4920	// Environment: Destination environment. This will be empty if the route
4921	// is not yet reported.
4922	Environment string `json:"environment,omitempty"`
4923
4924	// Percentage: Percentage of ingress replicas reporting this route.
4925	Percentage int64 `json:"percentage,omitempty"`
4926
4927	// ForceSendFields is a list of field names (e.g. "Basepath") to
4928	// unconditionally include in API requests. By default, fields with
4929	// empty or default values are omitted from API requests. However, any
4930	// non-pointer, non-interface field appearing in ForceSendFields will be
4931	// sent to the server regardless of whether the field is empty or not.
4932	// This may be used to include empty fields in Patch requests.
4933	ForceSendFields []string `json:"-"`
4934
4935	// NullFields is a list of field names (e.g. "Basepath") to include in
4936	// API requests with the JSON null value. By default, fields with empty
4937	// values are omitted from API requests. However, any field with an
4938	// empty value appearing in NullFields will be sent to the server as
4939	// null. It is an error if a field in this list has a non-empty value.
4940	// This may be used to include null fields in Patch requests.
4941	NullFields []string `json:"-"`
4942}
4943
4944func (s *GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRoute) MarshalJSON() ([]byte, error) {
4945	type NoMethod GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRoute
4946	raw := NoMethod(*s)
4947	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4948}
4949
4950type GoogleCloudApigeeV1KeyAliasReference struct {
4951	// AliasId: Alias ID. Must exist in the keystore referred to by the
4952	// reference.
4953	AliasId string `json:"aliasId,omitempty"`
4954
4955	// Reference: Reference name in the following format:
4956	// `organizations/{org}/environments/{env}/references/{reference}`
4957	Reference string `json:"reference,omitempty"`
4958
4959	// ForceSendFields is a list of field names (e.g. "AliasId") to
4960	// unconditionally include in API requests. By default, fields with
4961	// empty or default values are omitted from API requests. However, any
4962	// non-pointer, non-interface field appearing in ForceSendFields will be
4963	// sent to the server regardless of whether the field is empty or not.
4964	// This may be used to include empty fields in Patch requests.
4965	ForceSendFields []string `json:"-"`
4966
4967	// NullFields is a list of field names (e.g. "AliasId") to include in
4968	// API requests with the JSON null value. By default, fields with empty
4969	// values are omitted from API requests. However, any field with an
4970	// empty value appearing in NullFields will be sent to the server as
4971	// null. It is an error if a field in this list has a non-empty value.
4972	// This may be used to include null fields in Patch requests.
4973	NullFields []string `json:"-"`
4974}
4975
4976func (s *GoogleCloudApigeeV1KeyAliasReference) MarshalJSON() ([]byte, error) {
4977	type NoMethod GoogleCloudApigeeV1KeyAliasReference
4978	raw := NoMethod(*s)
4979	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4980}
4981
4982// GoogleCloudApigeeV1KeyValueMap: A collection of key, value string
4983// pairs
4984type GoogleCloudApigeeV1KeyValueMap struct {
4985	// Encrypted: Optional. If `true` entry values will be encrypted.
4986	Encrypted bool `json:"encrypted,omitempty"`
4987
4988	// Name: Required. The id of the key value map.
4989	Name string `json:"name,omitempty"`
4990
4991	// ServerResponse contains the HTTP response code and headers from the
4992	// server.
4993	googleapi.ServerResponse `json:"-"`
4994
4995	// ForceSendFields is a list of field names (e.g. "Encrypted") to
4996	// unconditionally include in API requests. By default, fields with
4997	// empty or default values are omitted from API requests. However, any
4998	// non-pointer, non-interface field appearing in ForceSendFields will be
4999	// sent to the server regardless of whether the field is empty or not.
5000	// This may be used to include empty fields in Patch requests.
5001	ForceSendFields []string `json:"-"`
5002
5003	// NullFields is a list of field names (e.g. "Encrypted") to include in
5004	// API requests with the JSON null value. By default, fields with empty
5005	// values are omitted from API requests. However, any field with an
5006	// empty value appearing in NullFields will be sent to the server as
5007	// null. It is an error if a field in this list has a non-empty value.
5008	// This may be used to include null fields in Patch requests.
5009	NullFields []string `json:"-"`
5010}
5011
5012func (s *GoogleCloudApigeeV1KeyValueMap) MarshalJSON() ([]byte, error) {
5013	type NoMethod GoogleCloudApigeeV1KeyValueMap
5014	raw := NoMethod(*s)
5015	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5016}
5017
5018// GoogleCloudApigeeV1Keystore: Datastore for Certificates and Aliases.
5019type GoogleCloudApigeeV1Keystore struct {
5020	// Aliases: Output only. Aliases in this keystore.
5021	Aliases []string `json:"aliases,omitempty"`
5022
5023	// Name: Required. Resource ID for this keystore. Values must match the
5024	// regular expression `[\w[:space:]-.]{1,255}`.
5025	Name string `json:"name,omitempty"`
5026
5027	// ServerResponse contains the HTTP response code and headers from the
5028	// server.
5029	googleapi.ServerResponse `json:"-"`
5030
5031	// ForceSendFields is a list of field names (e.g. "Aliases") to
5032	// unconditionally include in API requests. By default, fields with
5033	// empty or default values are omitted from API requests. However, any
5034	// non-pointer, non-interface field appearing in ForceSendFields will be
5035	// sent to the server regardless of whether the field is empty or not.
5036	// This may be used to include empty fields in Patch requests.
5037	ForceSendFields []string `json:"-"`
5038
5039	// NullFields is a list of field names (e.g. "Aliases") to include in
5040	// API requests with the JSON null value. By default, fields with empty
5041	// values are omitted from API requests. However, any field with an
5042	// empty value appearing in NullFields will be sent to the server as
5043	// null. It is an error if a field in this list has a non-empty value.
5044	// This may be used to include null fields in Patch requests.
5045	NullFields []string `json:"-"`
5046}
5047
5048func (s *GoogleCloudApigeeV1Keystore) MarshalJSON() ([]byte, error) {
5049	type NoMethod GoogleCloudApigeeV1Keystore
5050	raw := NoMethod(*s)
5051	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5052}
5053
5054type GoogleCloudApigeeV1KeystoreConfig struct {
5055	// Aliases: Aliases in the keystore.
5056	Aliases []*GoogleCloudApigeeV1AliasRevisionConfig `json:"aliases,omitempty"`
5057
5058	// Name: Resource name in the following format:
5059	// `organizations/{org}/environments/{env}/keystores/{keystore}`
5060	Name string `json:"name,omitempty"`
5061
5062	// ForceSendFields is a list of field names (e.g. "Aliases") to
5063	// unconditionally include in API requests. By default, fields with
5064	// empty or default values are omitted from API requests. However, any
5065	// non-pointer, non-interface field appearing in ForceSendFields will be
5066	// sent to the server regardless of whether the field is empty or not.
5067	// This may be used to include empty fields in Patch requests.
5068	ForceSendFields []string `json:"-"`
5069
5070	// NullFields is a list of field names (e.g. "Aliases") to include in
5071	// API requests with the JSON null value. By default, fields with empty
5072	// values are omitted from API requests. However, any field with an
5073	// empty value appearing in NullFields will be sent to the server as
5074	// null. It is an error if a field in this list has a non-empty value.
5075	// This may be used to include null fields in Patch requests.
5076	NullFields []string `json:"-"`
5077}
5078
5079func (s *GoogleCloudApigeeV1KeystoreConfig) MarshalJSON() ([]byte, error) {
5080	type NoMethod GoogleCloudApigeeV1KeystoreConfig
5081	raw := NoMethod(*s)
5082	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5083}
5084
5085// GoogleCloudApigeeV1ListApiCategoriesResponse: the response for
5086// ListApiCategoriesRequest.
5087type GoogleCloudApigeeV1ListApiCategoriesResponse struct {
5088	// Data: Details of categories.
5089	Data []*GoogleCloudApigeeV1ApiCategoryData `json:"data,omitempty"`
5090
5091	// ErrorCode: ID that can be used to find errors in the log files.
5092	ErrorCode string `json:"errorCode,omitempty"`
5093
5094	// Message: Description of the operation.
5095	Message string `json:"message,omitempty"`
5096
5097	// RequestId: ID that can be used to find request details in the log
5098	// files.
5099	RequestId string `json:"requestId,omitempty"`
5100
5101	// Status: Status of the operation.
5102	Status string `json:"status,omitempty"`
5103
5104	// ServerResponse contains the HTTP response code and headers from the
5105	// server.
5106	googleapi.ServerResponse `json:"-"`
5107
5108	// ForceSendFields is a list of field names (e.g. "Data") to
5109	// unconditionally include in API requests. By default, fields with
5110	// empty or default values are omitted from API requests. However, any
5111	// non-pointer, non-interface field appearing in ForceSendFields will be
5112	// sent to the server regardless of whether the field is empty or not.
5113	// This may be used to include empty fields in Patch requests.
5114	ForceSendFields []string `json:"-"`
5115
5116	// NullFields is a list of field names (e.g. "Data") to include in API
5117	// requests with the JSON null value. By default, fields with empty
5118	// values are omitted from API requests. However, any field with an
5119	// empty value appearing in NullFields will be sent to the server as
5120	// null. It is an error if a field in this list has a non-empty value.
5121	// This may be used to include null fields in Patch requests.
5122	NullFields []string `json:"-"`
5123}
5124
5125func (s *GoogleCloudApigeeV1ListApiCategoriesResponse) MarshalJSON() ([]byte, error) {
5126	type NoMethod GoogleCloudApigeeV1ListApiCategoriesResponse
5127	raw := NoMethod(*s)
5128	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5129}
5130
5131type GoogleCloudApigeeV1ListApiProductsResponse struct {
5132	// ApiProduct: Lists all API product names defined for an organization.
5133	ApiProduct []*GoogleCloudApigeeV1ApiProduct `json:"apiProduct,omitempty"`
5134
5135	// ServerResponse contains the HTTP response code and headers from the
5136	// server.
5137	googleapi.ServerResponse `json:"-"`
5138
5139	// ForceSendFields is a list of field names (e.g. "ApiProduct") to
5140	// unconditionally include in API requests. By default, fields with
5141	// empty or default values are omitted from API requests. However, any
5142	// non-pointer, non-interface field appearing in ForceSendFields will be
5143	// sent to the server regardless of whether the field is empty or not.
5144	// This may be used to include empty fields in Patch requests.
5145	ForceSendFields []string `json:"-"`
5146
5147	// NullFields is a list of field names (e.g. "ApiProduct") to include in
5148	// API requests with the JSON null value. By default, fields with empty
5149	// values are omitted from API requests. However, any field with an
5150	// empty value appearing in NullFields will be sent to the server as
5151	// null. It is an error if a field in this list has a non-empty value.
5152	// This may be used to include null fields in Patch requests.
5153	NullFields []string `json:"-"`
5154}
5155
5156func (s *GoogleCloudApigeeV1ListApiProductsResponse) MarshalJSON() ([]byte, error) {
5157	type NoMethod GoogleCloudApigeeV1ListApiProductsResponse
5158	raw := NoMethod(*s)
5159	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5160}
5161
5162type GoogleCloudApigeeV1ListApiProxiesResponse struct {
5163	Proxies []*GoogleCloudApigeeV1ApiProxy `json:"proxies,omitempty"`
5164
5165	// ServerResponse contains the HTTP response code and headers from the
5166	// server.
5167	googleapi.ServerResponse `json:"-"`
5168
5169	// ForceSendFields is a list of field names (e.g. "Proxies") to
5170	// unconditionally include in API requests. By default, fields with
5171	// empty or default values are omitted from API requests. However, any
5172	// non-pointer, non-interface field appearing in ForceSendFields will be
5173	// sent to the server regardless of whether the field is empty or not.
5174	// This may be used to include empty fields in Patch requests.
5175	ForceSendFields []string `json:"-"`
5176
5177	// NullFields is a list of field names (e.g. "Proxies") to include in
5178	// API requests with the JSON null value. By default, fields with empty
5179	// values are omitted from API requests. However, any field with an
5180	// empty value appearing in NullFields will be sent to the server as
5181	// null. It is an error if a field in this list has a non-empty value.
5182	// This may be used to include null fields in Patch requests.
5183	NullFields []string `json:"-"`
5184}
5185
5186func (s *GoogleCloudApigeeV1ListApiProxiesResponse) MarshalJSON() ([]byte, error) {
5187	type NoMethod GoogleCloudApigeeV1ListApiProxiesResponse
5188	raw := NoMethod(*s)
5189	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5190}
5191
5192type GoogleCloudApigeeV1ListAppsResponse struct {
5193	App []*GoogleCloudApigeeV1App `json:"app,omitempty"`
5194
5195	// ServerResponse contains the HTTP response code and headers from the
5196	// server.
5197	googleapi.ServerResponse `json:"-"`
5198
5199	// ForceSendFields is a list of field names (e.g. "App") to
5200	// unconditionally include in API requests. By default, fields with
5201	// empty or default values are omitted from API requests. However, any
5202	// non-pointer, non-interface field appearing in ForceSendFields will be
5203	// sent to the server regardless of whether the field is empty or not.
5204	// This may be used to include empty fields in Patch requests.
5205	ForceSendFields []string `json:"-"`
5206
5207	// NullFields is a list of field names (e.g. "App") to include in API
5208	// requests with the JSON null value. By default, fields with empty
5209	// values are omitted from API requests. However, any field with an
5210	// empty value appearing in NullFields will be sent to the server as
5211	// null. It is an error if a field in this list has a non-empty value.
5212	// This may be used to include null fields in Patch requests.
5213	NullFields []string `json:"-"`
5214}
5215
5216func (s *GoogleCloudApigeeV1ListAppsResponse) MarshalJSON() ([]byte, error) {
5217	type NoMethod GoogleCloudApigeeV1ListAppsResponse
5218	raw := NoMethod(*s)
5219	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5220}
5221
5222// GoogleCloudApigeeV1ListArchiveDeploymentsResponse: Response for
5223// ListArchiveDeployments method.
5224type GoogleCloudApigeeV1ListArchiveDeploymentsResponse struct {
5225	// ArchiveDeployments: Archive Deployments in the specified environment.
5226	ArchiveDeployments []*GoogleCloudApigeeV1ArchiveDeployment `json:"archiveDeployments,omitempty"`
5227
5228	// NextPageToken: Page token that you can include in a
5229	// ListArchiveDeployments request to retrieve the next page. If omitted,
5230	// no subsequent pages exist.
5231	NextPageToken string `json:"nextPageToken,omitempty"`
5232
5233	// ServerResponse contains the HTTP response code and headers from the
5234	// server.
5235	googleapi.ServerResponse `json:"-"`
5236
5237	// ForceSendFields is a list of field names (e.g. "ArchiveDeployments")
5238	// to unconditionally include in API requests. By default, fields with
5239	// empty or default values are omitted from API requests. However, any
5240	// non-pointer, non-interface field appearing in ForceSendFields will be
5241	// sent to the server regardless of whether the field is empty or not.
5242	// This may be used to include empty fields in Patch requests.
5243	ForceSendFields []string `json:"-"`
5244
5245	// NullFields is a list of field names (e.g. "ArchiveDeployments") to
5246	// include in API requests with the JSON null value. By default, fields
5247	// with empty values are omitted from API requests. However, any field
5248	// with an empty value appearing in NullFields will be sent to the
5249	// server as null. It is an error if a field in this list has a
5250	// non-empty value. This may be used to include null fields in Patch
5251	// requests.
5252	NullFields []string `json:"-"`
5253}
5254
5255func (s *GoogleCloudApigeeV1ListArchiveDeploymentsResponse) MarshalJSON() ([]byte, error) {
5256	type NoMethod GoogleCloudApigeeV1ListArchiveDeploymentsResponse
5257	raw := NoMethod(*s)
5258	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5259}
5260
5261// GoogleCloudApigeeV1ListAsyncQueriesResponse: The response for
5262// ListAsyncQueries.
5263type GoogleCloudApigeeV1ListAsyncQueriesResponse struct {
5264	// Queries: The asynchronous queries belong to requested resource name.
5265	Queries []*GoogleCloudApigeeV1AsyncQuery `json:"queries,omitempty"`
5266
5267	// ServerResponse contains the HTTP response code and headers from the
5268	// server.
5269	googleapi.ServerResponse `json:"-"`
5270
5271	// ForceSendFields is a list of field names (e.g. "Queries") to
5272	// unconditionally include in API requests. By default, fields with
5273	// empty or default values are omitted from API requests. However, any
5274	// non-pointer, non-interface field appearing in ForceSendFields will be
5275	// sent to the server regardless of whether the field is empty or not.
5276	// This may be used to include empty fields in Patch requests.
5277	ForceSendFields []string `json:"-"`
5278
5279	// NullFields is a list of field names (e.g. "Queries") to include in
5280	// API requests with the JSON null value. By default, fields with empty
5281	// values are omitted from API requests. However, any field with an
5282	// empty value appearing in NullFields will be sent to the server as
5283	// null. It is an error if a field in this list has a non-empty value.
5284	// This may be used to include null fields in Patch requests.
5285	NullFields []string `json:"-"`
5286}
5287
5288func (s *GoogleCloudApigeeV1ListAsyncQueriesResponse) MarshalJSON() ([]byte, error) {
5289	type NoMethod GoogleCloudApigeeV1ListAsyncQueriesResponse
5290	raw := NoMethod(*s)
5291	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5292}
5293
5294// GoogleCloudApigeeV1ListCustomReportsResponse: This message
5295// encapsulates a list of custom report definitions
5296type GoogleCloudApigeeV1ListCustomReportsResponse struct {
5297	Qualifier []*GoogleCloudApigeeV1CustomReport `json:"qualifier,omitempty"`
5298
5299	// ServerResponse contains the HTTP response code and headers from the
5300	// server.
5301	googleapi.ServerResponse `json:"-"`
5302
5303	// ForceSendFields is a list of field names (e.g. "Qualifier") to
5304	// unconditionally include in API requests. By default, fields with
5305	// empty or default values are omitted from API requests. However, any
5306	// non-pointer, non-interface field appearing in ForceSendFields will be
5307	// sent to the server regardless of whether the field is empty or not.
5308	// This may be used to include empty fields in Patch requests.
5309	ForceSendFields []string `json:"-"`
5310
5311	// NullFields is a list of field names (e.g. "Qualifier") to include in
5312	// API requests with the JSON null value. By default, fields with empty
5313	// values are omitted from API requests. However, any field with an
5314	// empty value appearing in NullFields will be sent to the server as
5315	// null. It is an error if a field in this list has a non-empty value.
5316	// This may be used to include null fields in Patch requests.
5317	NullFields []string `json:"-"`
5318}
5319
5320func (s *GoogleCloudApigeeV1ListCustomReportsResponse) MarshalJSON() ([]byte, error) {
5321	type NoMethod GoogleCloudApigeeV1ListCustomReportsResponse
5322	raw := NoMethod(*s)
5323	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5324}
5325
5326// GoogleCloudApigeeV1ListDataCollectorsResponse: Response for
5327// ListDataCollectors.
5328type GoogleCloudApigeeV1ListDataCollectorsResponse struct {
5329	// DataCollectors: Data collectors in the specified organization.
5330	DataCollectors []*GoogleCloudApigeeV1DataCollector `json:"dataCollectors,omitempty"`
5331
5332	// NextPageToken: Page token that you can include in a
5333	// ListDataCollectors request to retrieve the next page. If omitted, no
5334	// subsequent pages exist.
5335	NextPageToken string `json:"nextPageToken,omitempty"`
5336
5337	// ServerResponse contains the HTTP response code and headers from the
5338	// server.
5339	googleapi.ServerResponse `json:"-"`
5340
5341	// ForceSendFields is a list of field names (e.g. "DataCollectors") to
5342	// unconditionally include in API requests. By default, fields with
5343	// empty or default values are omitted from API requests. However, any
5344	// non-pointer, non-interface field appearing in ForceSendFields will be
5345	// sent to the server regardless of whether the field is empty or not.
5346	// This may be used to include empty fields in Patch requests.
5347	ForceSendFields []string `json:"-"`
5348
5349	// NullFields is a list of field names (e.g. "DataCollectors") to
5350	// include in API requests with the JSON null value. By default, fields
5351	// with empty values are omitted from API requests. However, any field
5352	// with an empty value appearing in NullFields will be sent to the
5353	// server as null. It is an error if a field in this list has a
5354	// non-empty value. This may be used to include null fields in Patch
5355	// requests.
5356	NullFields []string `json:"-"`
5357}
5358
5359func (s *GoogleCloudApigeeV1ListDataCollectorsResponse) MarshalJSON() ([]byte, error) {
5360	type NoMethod GoogleCloudApigeeV1ListDataCollectorsResponse
5361	raw := NoMethod(*s)
5362	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5363}
5364
5365// GoogleCloudApigeeV1ListDatastoresResponse: The response for
5366// ListDatastores
5367type GoogleCloudApigeeV1ListDatastoresResponse struct {
5368	// Datastores: A list of datastores
5369	Datastores []*GoogleCloudApigeeV1Datastore `json:"datastores,omitempty"`
5370
5371	// ServerResponse contains the HTTP response code and headers from the
5372	// server.
5373	googleapi.ServerResponse `json:"-"`
5374
5375	// ForceSendFields is a list of field names (e.g. "Datastores") to
5376	// unconditionally include in API requests. By default, fields with
5377	// empty or default values are omitted from API requests. However, any
5378	// non-pointer, non-interface field appearing in ForceSendFields will be
5379	// sent to the server regardless of whether the field is empty or not.
5380	// This may be used to include empty fields in Patch requests.
5381	ForceSendFields []string `json:"-"`
5382
5383	// NullFields is a list of field names (e.g. "Datastores") to include in
5384	// API requests with the JSON null value. By default, fields with empty
5385	// values are omitted from API requests. However, any field with an
5386	// empty value appearing in NullFields will be sent to the server as
5387	// null. It is an error if a field in this list has a non-empty value.
5388	// This may be used to include null fields in Patch requests.
5389	NullFields []string `json:"-"`
5390}
5391
5392func (s *GoogleCloudApigeeV1ListDatastoresResponse) MarshalJSON() ([]byte, error) {
5393	type NoMethod GoogleCloudApigeeV1ListDatastoresResponse
5394	raw := NoMethod(*s)
5395	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5396}
5397
5398type GoogleCloudApigeeV1ListDebugSessionsResponse struct {
5399	// NextPageToken: Page token that you can include in a
5400	// ListDebugSessionsRequest to retrieve the next page. If omitted, no
5401	// subsequent pages exist.
5402	NextPageToken string `json:"nextPageToken,omitempty"`
5403
5404	// Sessions: Session info that includes debug session ID and the first
5405	// transaction creation timestamp.
5406	Sessions []*GoogleCloudApigeeV1Session `json:"sessions,omitempty"`
5407
5408	// ServerResponse contains the HTTP response code and headers from the
5409	// server.
5410	googleapi.ServerResponse `json:"-"`
5411
5412	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
5413	// unconditionally include in API requests. By default, fields with
5414	// empty or default values are omitted from API requests. However, any
5415	// non-pointer, non-interface field appearing in ForceSendFields will be
5416	// sent to the server regardless of whether the field is empty or not.
5417	// This may be used to include empty fields in Patch requests.
5418	ForceSendFields []string `json:"-"`
5419
5420	// NullFields is a list of field names (e.g. "NextPageToken") to include
5421	// in API requests with the JSON null value. By default, fields with
5422	// empty values are omitted from API requests. However, any field with
5423	// an empty value appearing in NullFields will be sent to the server as
5424	// null. It is an error if a field in this list has a non-empty value.
5425	// This may be used to include null fields in Patch requests.
5426	NullFields []string `json:"-"`
5427}
5428
5429func (s *GoogleCloudApigeeV1ListDebugSessionsResponse) MarshalJSON() ([]byte, error) {
5430	type NoMethod GoogleCloudApigeeV1ListDebugSessionsResponse
5431	raw := NoMethod(*s)
5432	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5433}
5434
5435type GoogleCloudApigeeV1ListDeploymentsResponse struct {
5436	// Deployments: List of deployments.
5437	Deployments []*GoogleCloudApigeeV1Deployment `json:"deployments,omitempty"`
5438
5439	// ServerResponse contains the HTTP response code and headers from the
5440	// server.
5441	googleapi.ServerResponse `json:"-"`
5442
5443	// ForceSendFields is a list of field names (e.g. "Deployments") to
5444	// unconditionally include in API requests. By default, fields with
5445	// empty or default values are omitted from API requests. However, any
5446	// non-pointer, non-interface field appearing in ForceSendFields will be
5447	// sent to the server regardless of whether the field is empty or not.
5448	// This may be used to include empty fields in Patch requests.
5449	ForceSendFields []string `json:"-"`
5450
5451	// NullFields is a list of field names (e.g. "Deployments") to include
5452	// in API requests with the JSON null value. By default, fields with
5453	// empty values are omitted from API requests. However, any field with
5454	// an empty value appearing in NullFields will be sent to the server as
5455	// null. It is an error if a field in this list has a non-empty value.
5456	// This may be used to include null fields in Patch requests.
5457	NullFields []string `json:"-"`
5458}
5459
5460func (s *GoogleCloudApigeeV1ListDeploymentsResponse) MarshalJSON() ([]byte, error) {
5461	type NoMethod GoogleCloudApigeeV1ListDeploymentsResponse
5462	raw := NoMethod(*s)
5463	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5464}
5465
5466type GoogleCloudApigeeV1ListDeveloperAppsResponse struct {
5467	// App: List of developer apps and their credentials.
5468	App []*GoogleCloudApigeeV1DeveloperApp `json:"app,omitempty"`
5469
5470	// ServerResponse contains the HTTP response code and headers from the
5471	// server.
5472	googleapi.ServerResponse `json:"-"`
5473
5474	// ForceSendFields is a list of field names (e.g. "App") to
5475	// unconditionally include in API requests. By default, fields with
5476	// empty or default values are omitted from API requests. However, any
5477	// non-pointer, non-interface field appearing in ForceSendFields will be
5478	// sent to the server regardless of whether the field is empty or not.
5479	// This may be used to include empty fields in Patch requests.
5480	ForceSendFields []string `json:"-"`
5481
5482	// NullFields is a list of field names (e.g. "App") to include in API
5483	// requests with the JSON null value. By default, fields with empty
5484	// values are omitted from API requests. However, any field with an
5485	// empty value appearing in NullFields will be sent to the server as
5486	// null. It is an error if a field in this list has a non-empty value.
5487	// This may be used to include null fields in Patch requests.
5488	NullFields []string `json:"-"`
5489}
5490
5491func (s *GoogleCloudApigeeV1ListDeveloperAppsResponse) MarshalJSON() ([]byte, error) {
5492	type NoMethod GoogleCloudApigeeV1ListDeveloperAppsResponse
5493	raw := NoMethod(*s)
5494	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5495}
5496
5497// GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse: Response for
5498// ListDeveloperSubscriptions.
5499type GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse struct {
5500	// DeveloperSubscriptions: List of all subscriptions.
5501	DeveloperSubscriptions []*GoogleCloudApigeeV1DeveloperSubscription `json:"developerSubscriptions,omitempty"`
5502
5503	// NextStartKey: Value that can be sent as `startKey` to retrieve the
5504	// next page of content. If this field is omitted, there are no
5505	// subsequent pages.
5506	NextStartKey string `json:"nextStartKey,omitempty"`
5507
5508	// ServerResponse contains the HTTP response code and headers from the
5509	// server.
5510	googleapi.ServerResponse `json:"-"`
5511
5512	// ForceSendFields is a list of field names (e.g.
5513	// "DeveloperSubscriptions") to unconditionally include in API requests.
5514	// By default, fields with empty or default values are omitted from API
5515	// requests. However, any non-pointer, non-interface field appearing in
5516	// ForceSendFields will be sent to the server regardless of whether the
5517	// field is empty or not. This may be used to include empty fields in
5518	// Patch requests.
5519	ForceSendFields []string `json:"-"`
5520
5521	// NullFields is a list of field names (e.g. "DeveloperSubscriptions")
5522	// to include in API requests with the JSON null value. By default,
5523	// fields with empty values are omitted from API requests. However, any
5524	// field with an empty value appearing in NullFields will be sent to the
5525	// server as null. It is an error if a field in this list has a
5526	// non-empty value. This may be used to include null fields in Patch
5527	// requests.
5528	NullFields []string `json:"-"`
5529}
5530
5531func (s *GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse) MarshalJSON() ([]byte, error) {
5532	type NoMethod GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse
5533	raw := NoMethod(*s)
5534	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5535}
5536
5537// GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse: Response
5538// for ListEnvironmentGroupAttachments.
5539type GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse struct {
5540	// EnvironmentGroupAttachments: EnvironmentGroupAttachments for the
5541	// specified environment group.
5542	EnvironmentGroupAttachments []*GoogleCloudApigeeV1EnvironmentGroupAttachment `json:"environmentGroupAttachments,omitempty"`
5543
5544	// NextPageToken: Page token that you can include in a
5545	// ListEnvironmentGroupAttachments request to retrieve the next page. If
5546	// omitted, no subsequent pages exist.
5547	NextPageToken string `json:"nextPageToken,omitempty"`
5548
5549	// ServerResponse contains the HTTP response code and headers from the
5550	// server.
5551	googleapi.ServerResponse `json:"-"`
5552
5553	// ForceSendFields is a list of field names (e.g.
5554	// "EnvironmentGroupAttachments") to unconditionally include in API
5555	// requests. By default, fields with empty or default values are omitted
5556	// from API requests. However, any non-pointer, non-interface field
5557	// appearing in ForceSendFields will be sent to the server regardless of
5558	// whether the field is empty or not. This may be used to include empty
5559	// fields in Patch requests.
5560	ForceSendFields []string `json:"-"`
5561
5562	// NullFields is a list of field names (e.g.
5563	// "EnvironmentGroupAttachments") to include in API requests with the
5564	// JSON null value. By default, fields with empty values are omitted
5565	// from API requests. However, any field with an empty value appearing
5566	// in NullFields will be sent to the server as null. It is an error if a
5567	// field in this list has a non-empty value. This may be used to include
5568	// null fields in Patch requests.
5569	NullFields []string `json:"-"`
5570}
5571
5572func (s *GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse) MarshalJSON() ([]byte, error) {
5573	type NoMethod GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse
5574	raw := NoMethod(*s)
5575	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5576}
5577
5578// GoogleCloudApigeeV1ListEnvironmentGroupsResponse: Response for
5579// ListEnvironmentGroups.
5580type GoogleCloudApigeeV1ListEnvironmentGroupsResponse struct {
5581	// EnvironmentGroups: EnvironmentGroups in the specified organization.
5582	EnvironmentGroups []*GoogleCloudApigeeV1EnvironmentGroup `json:"environmentGroups,omitempty"`
5583
5584	// NextPageToken: Page token that you can include in a
5585	// ListEnvironmentGroups request to retrieve the next page. If omitted,
5586	// no subsequent pages exist.
5587	NextPageToken string `json:"nextPageToken,omitempty"`
5588
5589	// ServerResponse contains the HTTP response code and headers from the
5590	// server.
5591	googleapi.ServerResponse `json:"-"`
5592
5593	// ForceSendFields is a list of field names (e.g. "EnvironmentGroups")
5594	// to unconditionally include in API requests. By default, fields with
5595	// empty or default values are omitted from API requests. However, any
5596	// non-pointer, non-interface field appearing in ForceSendFields will be
5597	// sent to the server regardless of whether the field is empty or not.
5598	// This may be used to include empty fields in Patch requests.
5599	ForceSendFields []string `json:"-"`
5600
5601	// NullFields is a list of field names (e.g. "EnvironmentGroups") to
5602	// include in API requests with the JSON null value. By default, fields
5603	// with empty values are omitted from API requests. However, any field
5604	// with an empty value appearing in NullFields will be sent to the
5605	// server as null. It is an error if a field in this list has a
5606	// non-empty value. This may be used to include null fields in Patch
5607	// requests.
5608	NullFields []string `json:"-"`
5609}
5610
5611func (s *GoogleCloudApigeeV1ListEnvironmentGroupsResponse) MarshalJSON() ([]byte, error) {
5612	type NoMethod GoogleCloudApigeeV1ListEnvironmentGroupsResponse
5613	raw := NoMethod(*s)
5614	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5615}
5616
5617// GoogleCloudApigeeV1ListEnvironmentResourcesResponse: Response for
5618// ListEnvironmentResources
5619type GoogleCloudApigeeV1ListEnvironmentResourcesResponse struct {
5620	// ResourceFile: List of resources files.
5621	ResourceFile []*GoogleCloudApigeeV1ResourceFile `json:"resourceFile,omitempty"`
5622
5623	// ServerResponse contains the HTTP response code and headers from the
5624	// server.
5625	googleapi.ServerResponse `json:"-"`
5626
5627	// ForceSendFields is a list of field names (e.g. "ResourceFile") to
5628	// unconditionally include in API requests. By default, fields with
5629	// empty or default values are omitted from API requests. However, any
5630	// non-pointer, non-interface field appearing in ForceSendFields will be
5631	// sent to the server regardless of whether the field is empty or not.
5632	// This may be used to include empty fields in Patch requests.
5633	ForceSendFields []string `json:"-"`
5634
5635	// NullFields is a list of field names (e.g. "ResourceFile") to include
5636	// in API requests with the JSON null value. By default, fields with
5637	// empty values are omitted from API requests. However, any field with
5638	// an empty value appearing in NullFields will be sent to the server as
5639	// null. It is an error if a field in this list has a non-empty value.
5640	// This may be used to include null fields in Patch requests.
5641	NullFields []string `json:"-"`
5642}
5643
5644func (s *GoogleCloudApigeeV1ListEnvironmentResourcesResponse) MarshalJSON() ([]byte, error) {
5645	type NoMethod GoogleCloudApigeeV1ListEnvironmentResourcesResponse
5646	raw := NoMethod(*s)
5647	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5648}
5649
5650// GoogleCloudApigeeV1ListExportsResponse: The response for ListExports
5651type GoogleCloudApigeeV1ListExportsResponse struct {
5652	// Exports: Details of the export jobs.
5653	Exports []*GoogleCloudApigeeV1Export `json:"exports,omitempty"`
5654
5655	// ServerResponse contains the HTTP response code and headers from the
5656	// server.
5657	googleapi.ServerResponse `json:"-"`
5658
5659	// ForceSendFields is a list of field names (e.g. "Exports") to
5660	// unconditionally include in API requests. By default, fields with
5661	// empty or default values are omitted from API requests. However, any
5662	// non-pointer, non-interface field appearing in ForceSendFields will be
5663	// sent to the server regardless of whether the field is empty or not.
5664	// This may be used to include empty fields in Patch requests.
5665	ForceSendFields []string `json:"-"`
5666
5667	// NullFields is a list of field names (e.g. "Exports") to include in
5668	// API requests with the JSON null value. By default, fields with empty
5669	// values are omitted from API requests. However, any field with an
5670	// empty value appearing in NullFields will be sent to the server as
5671	// null. It is an error if a field in this list has a non-empty value.
5672	// This may be used to include null fields in Patch requests.
5673	NullFields []string `json:"-"`
5674}
5675
5676func (s *GoogleCloudApigeeV1ListExportsResponse) MarshalJSON() ([]byte, error) {
5677	type NoMethod GoogleCloudApigeeV1ListExportsResponse
5678	raw := NoMethod(*s)
5679	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5680}
5681
5682type GoogleCloudApigeeV1ListHybridIssuersResponse struct {
5683	// Issuers: Lists of hybrid services and its trusted issuer email ids.
5684	Issuers []*GoogleCloudApigeeV1ServiceIssuersMapping `json:"issuers,omitempty"`
5685
5686	// ServerResponse contains the HTTP response code and headers from the
5687	// server.
5688	googleapi.ServerResponse `json:"-"`
5689
5690	// ForceSendFields is a list of field names (e.g. "Issuers") to
5691	// unconditionally include in API requests. By default, fields with
5692	// empty or default values are omitted from API requests. However, any
5693	// non-pointer, non-interface field appearing in ForceSendFields will be
5694	// sent to the server regardless of whether the field is empty or not.
5695	// This may be used to include empty fields in Patch requests.
5696	ForceSendFields []string `json:"-"`
5697
5698	// NullFields is a list of field names (e.g. "Issuers") to include in
5699	// API requests with the JSON null value. By default, fields with empty
5700	// values are omitted from API requests. However, any field with an
5701	// empty value appearing in NullFields will be sent to the server as
5702	// null. It is an error if a field in this list has a non-empty value.
5703	// This may be used to include null fields in Patch requests.
5704	NullFields []string `json:"-"`
5705}
5706
5707func (s *GoogleCloudApigeeV1ListHybridIssuersResponse) MarshalJSON() ([]byte, error) {
5708	type NoMethod GoogleCloudApigeeV1ListHybridIssuersResponse
5709	raw := NoMethod(*s)
5710	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5711}
5712
5713// GoogleCloudApigeeV1ListInstanceAttachmentsResponse: Response for
5714// ListInstanceAttachments.
5715type GoogleCloudApigeeV1ListInstanceAttachmentsResponse struct {
5716	// Attachments: Attachments for the instance.
5717	Attachments []*GoogleCloudApigeeV1InstanceAttachment `json:"attachments,omitempty"`
5718
5719	// NextPageToken: Page token that you can include in a
5720	// ListInstanceAttachments request to retrieve the next page of content.
5721	// If omitted, no subsequent pages exist.
5722	NextPageToken string `json:"nextPageToken,omitempty"`
5723
5724	// ServerResponse contains the HTTP response code and headers from the
5725	// server.
5726	googleapi.ServerResponse `json:"-"`
5727
5728	// ForceSendFields is a list of field names (e.g. "Attachments") to
5729	// unconditionally include in API requests. By default, fields with
5730	// empty or default values are omitted from API requests. However, any
5731	// non-pointer, non-interface field appearing in ForceSendFields will be
5732	// sent to the server regardless of whether the field is empty or not.
5733	// This may be used to include empty fields in Patch requests.
5734	ForceSendFields []string `json:"-"`
5735
5736	// NullFields is a list of field names (e.g. "Attachments") to include
5737	// in API requests with the JSON null value. By default, fields with
5738	// empty values are omitted from API requests. However, any field with
5739	// an empty value appearing in NullFields will be sent to the server as
5740	// null. It is an error if a field in this list has a non-empty value.
5741	// This may be used to include null fields in Patch requests.
5742	NullFields []string `json:"-"`
5743}
5744
5745func (s *GoogleCloudApigeeV1ListInstanceAttachmentsResponse) MarshalJSON() ([]byte, error) {
5746	type NoMethod GoogleCloudApigeeV1ListInstanceAttachmentsResponse
5747	raw := NoMethod(*s)
5748	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5749}
5750
5751// GoogleCloudApigeeV1ListInstancesResponse: Response for ListInstances.
5752type GoogleCloudApigeeV1ListInstancesResponse struct {
5753	// Instances: Instances in the specified organization.
5754	Instances []*GoogleCloudApigeeV1Instance `json:"instances,omitempty"`
5755
5756	// NextPageToken: Page token that you can include in a ListInstance
5757	// request to retrieve the next page of content. If omitted, no
5758	// subsequent pages exist.
5759	NextPageToken string `json:"nextPageToken,omitempty"`
5760
5761	// ServerResponse contains the HTTP response code and headers from the
5762	// server.
5763	googleapi.ServerResponse `json:"-"`
5764
5765	// ForceSendFields is a list of field names (e.g. "Instances") to
5766	// unconditionally include in API requests. By default, fields with
5767	// empty or default values are omitted from API requests. However, any
5768	// non-pointer, non-interface field appearing in ForceSendFields will be
5769	// sent to the server regardless of whether the field is empty or not.
5770	// This may be used to include empty fields in Patch requests.
5771	ForceSendFields []string `json:"-"`
5772
5773	// NullFields is a list of field names (e.g. "Instances") to include in
5774	// API requests with the JSON null value. By default, fields with empty
5775	// values are omitted from API requests. However, any field with an
5776	// empty value appearing in NullFields will be sent to the server as
5777	// null. It is an error if a field in this list has a non-empty value.
5778	// This may be used to include null fields in Patch requests.
5779	NullFields []string `json:"-"`
5780}
5781
5782func (s *GoogleCloudApigeeV1ListInstancesResponse) MarshalJSON() ([]byte, error) {
5783	type NoMethod GoogleCloudApigeeV1ListInstancesResponse
5784	raw := NoMethod(*s)
5785	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5786}
5787
5788// GoogleCloudApigeeV1ListNatAddressesResponse: Response for
5789// ListNatAddresses.
5790type GoogleCloudApigeeV1ListNatAddressesResponse struct {
5791	// NatAddresses: List of NAT Addresses for the instance.
5792	NatAddresses []*GoogleCloudApigeeV1NatAddress `json:"natAddresses,omitempty"`
5793
5794	// NextPageToken: Page token that you can include in a ListNatAddresses
5795	// request to retrieve the next page of content. If omitted, no
5796	// subsequent pages exist.
5797	NextPageToken string `json:"nextPageToken,omitempty"`
5798
5799	// ServerResponse contains the HTTP response code and headers from the
5800	// server.
5801	googleapi.ServerResponse `json:"-"`
5802
5803	// ForceSendFields is a list of field names (e.g. "NatAddresses") to
5804	// unconditionally include in API requests. By default, fields with
5805	// empty or default values are omitted from API requests. However, any
5806	// non-pointer, non-interface field appearing in ForceSendFields will be
5807	// sent to the server regardless of whether the field is empty or not.
5808	// This may be used to include empty fields in Patch requests.
5809	ForceSendFields []string `json:"-"`
5810
5811	// NullFields is a list of field names (e.g. "NatAddresses") to include
5812	// in API requests with the JSON null value. By default, fields with
5813	// empty values are omitted from API requests. However, any field with
5814	// an empty value appearing in NullFields will be sent to the server as
5815	// null. It is an error if a field in this list has a non-empty value.
5816	// This may be used to include null fields in Patch requests.
5817	NullFields []string `json:"-"`
5818}
5819
5820func (s *GoogleCloudApigeeV1ListNatAddressesResponse) MarshalJSON() ([]byte, error) {
5821	type NoMethod GoogleCloudApigeeV1ListNatAddressesResponse
5822	raw := NoMethod(*s)
5823	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5824}
5825
5826type GoogleCloudApigeeV1ListOfDevelopersResponse struct {
5827	// Developer: List of developers.
5828	Developer []*GoogleCloudApigeeV1Developer `json:"developer,omitempty"`
5829
5830	// ServerResponse contains the HTTP response code and headers from the
5831	// server.
5832	googleapi.ServerResponse `json:"-"`
5833
5834	// ForceSendFields is a list of field names (e.g. "Developer") to
5835	// unconditionally include in API requests. By default, fields with
5836	// empty or default values are omitted from API requests. However, any
5837	// non-pointer, non-interface field appearing in ForceSendFields will be
5838	// sent to the server regardless of whether the field is empty or not.
5839	// This may be used to include empty fields in Patch requests.
5840	ForceSendFields []string `json:"-"`
5841
5842	// NullFields is a list of field names (e.g. "Developer") to include in
5843	// API requests with the JSON null value. By default, fields with empty
5844	// values are omitted from API requests. However, any field with an
5845	// empty value appearing in NullFields will be sent to the server as
5846	// null. It is an error if a field in this list has a non-empty value.
5847	// This may be used to include null fields in Patch requests.
5848	NullFields []string `json:"-"`
5849}
5850
5851func (s *GoogleCloudApigeeV1ListOfDevelopersResponse) MarshalJSON() ([]byte, error) {
5852	type NoMethod GoogleCloudApigeeV1ListOfDevelopersResponse
5853	raw := NoMethod(*s)
5854	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5855}
5856
5857type GoogleCloudApigeeV1ListOrganizationsResponse struct {
5858	// Organizations: List of Apigee organizations and associated GCP
5859	// projects.
5860	Organizations []*GoogleCloudApigeeV1OrganizationProjectMapping `json:"organizations,omitempty"`
5861
5862	// ServerResponse contains the HTTP response code and headers from the
5863	// server.
5864	googleapi.ServerResponse `json:"-"`
5865
5866	// ForceSendFields is a list of field names (e.g. "Organizations") to
5867	// unconditionally include in API requests. By default, fields with
5868	// empty or default values are omitted from API requests. However, any
5869	// non-pointer, non-interface field appearing in ForceSendFields will be
5870	// sent to the server regardless of whether the field is empty or not.
5871	// This may be used to include empty fields in Patch requests.
5872	ForceSendFields []string `json:"-"`
5873
5874	// NullFields is a list of field names (e.g. "Organizations") to include
5875	// in API requests with the JSON null value. By default, fields with
5876	// empty values are omitted from API requests. However, any field with
5877	// an empty value appearing in NullFields will be sent to the server as
5878	// null. It is an error if a field in this list has a non-empty value.
5879	// This may be used to include null fields in Patch requests.
5880	NullFields []string `json:"-"`
5881}
5882
5883func (s *GoogleCloudApigeeV1ListOrganizationsResponse) MarshalJSON() ([]byte, error) {
5884	type NoMethod GoogleCloudApigeeV1ListOrganizationsResponse
5885	raw := NoMethod(*s)
5886	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5887}
5888
5889// GoogleCloudApigeeV1ListRatePlansResponse: Response for ListRatePlans.
5890type GoogleCloudApigeeV1ListRatePlansResponse struct {
5891	// NextStartKey: Value that can be sent as `startKey` to retrieve the
5892	// next page of content. If this field is omitted, there are no
5893	// subsequent pages.
5894	NextStartKey string `json:"nextStartKey,omitempty"`
5895
5896	// RatePlans: List of rate plans in an organization.
5897	RatePlans []*GoogleCloudApigeeV1RatePlan `json:"ratePlans,omitempty"`
5898
5899	// ServerResponse contains the HTTP response code and headers from the
5900	// server.
5901	googleapi.ServerResponse `json:"-"`
5902
5903	// ForceSendFields is a list of field names (e.g. "NextStartKey") to
5904	// unconditionally include in API requests. By default, fields with
5905	// empty or default values are omitted from API requests. However, any
5906	// non-pointer, non-interface field appearing in ForceSendFields will be
5907	// sent to the server regardless of whether the field is empty or not.
5908	// This may be used to include empty fields in Patch requests.
5909	ForceSendFields []string `json:"-"`
5910
5911	// NullFields is a list of field names (e.g. "NextStartKey") to include
5912	// in API requests with the JSON null value. By default, fields with
5913	// empty values are omitted from API requests. However, any field with
5914	// an empty value appearing in NullFields will be sent to the server as
5915	// null. It is an error if a field in this list has a non-empty value.
5916	// This may be used to include null fields in Patch requests.
5917	NullFields []string `json:"-"`
5918}
5919
5920func (s *GoogleCloudApigeeV1ListRatePlansResponse) MarshalJSON() ([]byte, error) {
5921	type NoMethod GoogleCloudApigeeV1ListRatePlansResponse
5922	raw := NoMethod(*s)
5923	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5924}
5925
5926type GoogleCloudApigeeV1ListSharedFlowsResponse struct {
5927	SharedFlows []*GoogleCloudApigeeV1SharedFlow `json:"sharedFlows,omitempty"`
5928
5929	// ServerResponse contains the HTTP response code and headers from the
5930	// server.
5931	googleapi.ServerResponse `json:"-"`
5932
5933	// ForceSendFields is a list of field names (e.g. "SharedFlows") to
5934	// unconditionally include in API requests. By default, fields with
5935	// empty or default values are omitted from API requests. However, any
5936	// non-pointer, non-interface field appearing in ForceSendFields will be
5937	// sent to the server regardless of whether the field is empty or not.
5938	// This may be used to include empty fields in Patch requests.
5939	ForceSendFields []string `json:"-"`
5940
5941	// NullFields is a list of field names (e.g. "SharedFlows") to include
5942	// in API requests with the JSON null value. By default, fields with
5943	// empty values are omitted from API requests. However, any field with
5944	// an empty value appearing in NullFields will be sent to the server as
5945	// null. It is an error if a field in this list has a non-empty value.
5946	// This may be used to include null fields in Patch requests.
5947	NullFields []string `json:"-"`
5948}
5949
5950func (s *GoogleCloudApigeeV1ListSharedFlowsResponse) MarshalJSON() ([]byte, error) {
5951	type NoMethod GoogleCloudApigeeV1ListSharedFlowsResponse
5952	raw := NoMethod(*s)
5953	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5954}
5955
5956// GoogleCloudApigeeV1ListTraceConfigOverridesResponse: Response for
5957// ListTraceConfigOverrides.
5958type GoogleCloudApigeeV1ListTraceConfigOverridesResponse struct {
5959	// NextPageToken: Token value that can be passed as `page_token` to
5960	// retrieve the next page of content.
5961	NextPageToken string `json:"nextPageToken,omitempty"`
5962
5963	// TraceConfigOverrides: List all trace configuration overrides in an
5964	// environment.
5965	TraceConfigOverrides []*GoogleCloudApigeeV1TraceConfigOverride `json:"traceConfigOverrides,omitempty"`
5966
5967	// ServerResponse contains the HTTP response code and headers from the
5968	// server.
5969	googleapi.ServerResponse `json:"-"`
5970
5971	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
5972	// unconditionally include in API requests. By default, fields with
5973	// empty or default values are omitted from API requests. However, any
5974	// non-pointer, non-interface field appearing in ForceSendFields will be
5975	// sent to the server regardless of whether the field is empty or not.
5976	// This may be used to include empty fields in Patch requests.
5977	ForceSendFields []string `json:"-"`
5978
5979	// NullFields is a list of field names (e.g. "NextPageToken") to include
5980	// in API requests with the JSON null value. By default, fields with
5981	// empty values are omitted from API requests. However, any field with
5982	// an empty value appearing in NullFields will be sent to the server as
5983	// null. It is an error if a field in this list has a non-empty value.
5984	// This may be used to include null fields in Patch requests.
5985	NullFields []string `json:"-"`
5986}
5987
5988func (s *GoogleCloudApigeeV1ListTraceConfigOverridesResponse) MarshalJSON() ([]byte, error) {
5989	type NoMethod GoogleCloudApigeeV1ListTraceConfigOverridesResponse
5990	raw := NoMethod(*s)
5991	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5992}
5993
5994// GoogleCloudApigeeV1Metadata: This message type encapsulates
5995// additional information about query execution.
5996type GoogleCloudApigeeV1Metadata struct {
5997	// Errors: List of error messages as strings.
5998	Errors []string `json:"errors,omitempty"`
5999
6000	// Notices: List of additional information such as data source, if
6001	// result was truncated etc. E.g "notices": [ "Source:Postgres", "PG
6002	// Host:uappg0rw.e2e.apigeeks.net", "query served
6003	// by:4b64601e-40de-4eb1-bfb9-eeee7ac929ed", "Table used:
6004	// edge.api.uapgroup2.agg_api" ]
6005	Notices []string `json:"notices,omitempty"`
6006
6007	// ForceSendFields is a list of field names (e.g. "Errors") to
6008	// unconditionally include in API requests. By default, fields with
6009	// empty or default values are omitted from API requests. However, any
6010	// non-pointer, non-interface field appearing in ForceSendFields will be
6011	// sent to the server regardless of whether the field is empty or not.
6012	// This may be used to include empty fields in Patch requests.
6013	ForceSendFields []string `json:"-"`
6014
6015	// NullFields is a list of field names (e.g. "Errors") to include in API
6016	// requests with the JSON null value. By default, fields with empty
6017	// values are omitted from API requests. However, any field with an
6018	// empty value appearing in NullFields will be sent to the server as
6019	// null. It is an error if a field in this list has a non-empty value.
6020	// This may be used to include null fields in Patch requests.
6021	NullFields []string `json:"-"`
6022}
6023
6024func (s *GoogleCloudApigeeV1Metadata) MarshalJSON() ([]byte, error) {
6025	type NoMethod GoogleCloudApigeeV1Metadata
6026	raw := NoMethod(*s)
6027	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6028}
6029
6030// GoogleCloudApigeeV1Metric: This message type encapsulates the metric
6031// data point. Example: { "name": "sum(message_count)", "values" : [ {
6032// "timestamp": 1549004400000, "value": "39.0" }, { "timestamp" :
6033// 1548997200000, "value" : "0.0" } ] } or { "name":
6034// "sum(message_count)", "values" : ["39.0"] }
6035type GoogleCloudApigeeV1Metric struct {
6036	// Name: This field contains the metric name.
6037	Name string `json:"name,omitempty"`
6038
6039	// Values: List of metric values. Possible value format:
6040	// "values":["39.0"] or "values":[ { "value": "39.0", "timestamp":
6041	// 1232434354} ]
6042	Values []interface{} `json:"values,omitempty"`
6043
6044	// ForceSendFields is a list of field names (e.g. "Name") to
6045	// unconditionally include in API requests. By default, fields with
6046	// empty or default values are omitted from API requests. However, any
6047	// non-pointer, non-interface field appearing in ForceSendFields will be
6048	// sent to the server regardless of whether the field is empty or not.
6049	// This may be used to include empty fields in Patch requests.
6050	ForceSendFields []string `json:"-"`
6051
6052	// NullFields is a list of field names (e.g. "Name") to include in API
6053	// requests with the JSON null value. By default, fields with empty
6054	// values are omitted from API requests. However, any field with an
6055	// empty value appearing in NullFields will be sent to the server as
6056	// null. It is an error if a field in this list has a non-empty value.
6057	// This may be used to include null fields in Patch requests.
6058	NullFields []string `json:"-"`
6059}
6060
6061func (s *GoogleCloudApigeeV1Metric) MarshalJSON() ([]byte, error) {
6062	type NoMethod GoogleCloudApigeeV1Metric
6063	raw := NoMethod(*s)
6064	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6065}
6066
6067// GoogleCloudApigeeV1MonetizationConfig: Configuration for the
6068// Monetization add-on.
6069type GoogleCloudApigeeV1MonetizationConfig struct {
6070	// Enabled: Flag that specifies whether the Monetization add-on is
6071	// enabled.
6072	Enabled bool `json:"enabled,omitempty"`
6073
6074	// ForceSendFields is a list of field names (e.g. "Enabled") to
6075	// unconditionally include in API requests. By default, fields with
6076	// empty or default values are omitted from API requests. However, any
6077	// non-pointer, non-interface field appearing in ForceSendFields will be
6078	// sent to the server regardless of whether the field is empty or not.
6079	// This may be used to include empty fields in Patch requests.
6080	ForceSendFields []string `json:"-"`
6081
6082	// NullFields is a list of field names (e.g. "Enabled") to include in
6083	// API requests with the JSON null value. By default, fields with empty
6084	// values are omitted from API requests. However, any field with an
6085	// empty value appearing in NullFields will be sent to the server as
6086	// null. It is an error if a field in this list has a non-empty value.
6087	// This may be used to include null fields in Patch requests.
6088	NullFields []string `json:"-"`
6089}
6090
6091func (s *GoogleCloudApigeeV1MonetizationConfig) MarshalJSON() ([]byte, error) {
6092	type NoMethod GoogleCloudApigeeV1MonetizationConfig
6093	raw := NoMethod(*s)
6094	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6095}
6096
6097// GoogleCloudApigeeV1NatAddress: Apigee NAT(network address
6098// translation) address. A NAT address is a static external IP address
6099// used for Internet egress traffic.
6100type GoogleCloudApigeeV1NatAddress struct {
6101	// IpAddress: Output only. The static IPV4 address.
6102	IpAddress string `json:"ipAddress,omitempty"`
6103
6104	// Name: Required. Resource ID of the NAT address.
6105	Name string `json:"name,omitempty"`
6106
6107	// State: Output only. State of the nat address.
6108	//
6109	// Possible values:
6110	//   "STATE_UNSPECIFIED" - The resource is in an unspecified state.
6111	//   "CREATING" - The NAT address is being created.
6112	//   "RESERVED" - The NAT address is reserved but not yet used for
6113	// Internet egress.
6114	//   "ACTIVE" - The NAT address is active and used for Internet egress.
6115	//   "DELETING" - The NAT address is being deleted.
6116	State string `json:"state,omitempty"`
6117
6118	// ServerResponse contains the HTTP response code and headers from the
6119	// server.
6120	googleapi.ServerResponse `json:"-"`
6121
6122	// ForceSendFields is a list of field names (e.g. "IpAddress") to
6123	// unconditionally include in API requests. By default, fields with
6124	// empty or default values are omitted from API requests. However, any
6125	// non-pointer, non-interface field appearing in ForceSendFields will be
6126	// sent to the server regardless of whether the field is empty or not.
6127	// This may be used to include empty fields in Patch requests.
6128	ForceSendFields []string `json:"-"`
6129
6130	// NullFields is a list of field names (e.g. "IpAddress") to include in
6131	// API requests with the JSON null value. By default, fields with empty
6132	// values are omitted from API requests. However, any field with an
6133	// empty value appearing in NullFields will be sent to the server as
6134	// null. It is an error if a field in this list has a non-empty value.
6135	// This may be used to include null fields in Patch requests.
6136	NullFields []string `json:"-"`
6137}
6138
6139func (s *GoogleCloudApigeeV1NatAddress) MarshalJSON() ([]byte, error) {
6140	type NoMethod GoogleCloudApigeeV1NatAddress
6141	raw := NoMethod(*s)
6142	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6143}
6144
6145// GoogleCloudApigeeV1Operation: Represents the pairing of REST resource
6146// path and the actions (verbs) allowed on the resource path.
6147type GoogleCloudApigeeV1Operation struct {
6148	// Methods: methods refers to the REST verbs as in
6149	// https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html. When none
6150	// specified, all verb types are allowed.
6151	Methods []string `json:"methods,omitempty"`
6152
6153	// Resource: Required. REST resource path associated with the API proxy
6154	// or remote service.
6155	Resource string `json:"resource,omitempty"`
6156
6157	// ForceSendFields is a list of field names (e.g. "Methods") to
6158	// unconditionally include in API requests. By default, fields with
6159	// empty or default values are omitted from API requests. However, any
6160	// non-pointer, non-interface field appearing in ForceSendFields will be
6161	// sent to the server regardless of whether the field is empty or not.
6162	// This may be used to include empty fields in Patch requests.
6163	ForceSendFields []string `json:"-"`
6164
6165	// NullFields is a list of field names (e.g. "Methods") to include in
6166	// API requests with the JSON null value. By default, fields with empty
6167	// values are omitted from API requests. However, any field with an
6168	// empty value appearing in NullFields will be sent to the server as
6169	// null. It is an error if a field in this list has a non-empty value.
6170	// This may be used to include null fields in Patch requests.
6171	NullFields []string `json:"-"`
6172}
6173
6174func (s *GoogleCloudApigeeV1Operation) MarshalJSON() ([]byte, error) {
6175	type NoMethod GoogleCloudApigeeV1Operation
6176	raw := NoMethod(*s)
6177	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6178}
6179
6180// GoogleCloudApigeeV1OperationConfig: Binds the resources in an API
6181// proxy or remote service with the allowed REST methods and associated
6182// quota enforcement.
6183type GoogleCloudApigeeV1OperationConfig struct {
6184	// ApiSource: Required. Name of the API proxy or remote service with
6185	// which the resources, methods, and quota are associated.
6186	ApiSource string `json:"apiSource,omitempty"`
6187
6188	// Attributes: Custom attributes associated with the operation.
6189	Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
6190
6191	// Operations: List of resource/method pairs for the API proxy or remote
6192	// service to which quota will applied. **Note**: Currently, you can
6193	// specify only a single resource/method pair. The call will fail if
6194	// more than one resource/method pair is provided.
6195	Operations []*GoogleCloudApigeeV1Operation `json:"operations,omitempty"`
6196
6197	// Quota: Quota parameters to be enforced for the resources, methods,
6198	// and API source combination. If none are specified, quota enforcement
6199	// will not be done.
6200	Quota *GoogleCloudApigeeV1Quota `json:"quota,omitempty"`
6201
6202	// ForceSendFields is a list of field names (e.g. "ApiSource") to
6203	// unconditionally include in API requests. By default, fields with
6204	// empty or default values are omitted from API requests. However, any
6205	// non-pointer, non-interface field appearing in ForceSendFields will be
6206	// sent to the server regardless of whether the field is empty or not.
6207	// This may be used to include empty fields in Patch requests.
6208	ForceSendFields []string `json:"-"`
6209
6210	// NullFields is a list of field names (e.g. "ApiSource") to include in
6211	// API requests with the JSON null value. By default, fields with empty
6212	// values are omitted from API requests. However, any field with an
6213	// empty value appearing in NullFields will be sent to the server as
6214	// null. It is an error if a field in this list has a non-empty value.
6215	// This may be used to include null fields in Patch requests.
6216	NullFields []string `json:"-"`
6217}
6218
6219func (s *GoogleCloudApigeeV1OperationConfig) MarshalJSON() ([]byte, error) {
6220	type NoMethod GoogleCloudApigeeV1OperationConfig
6221	raw := NoMethod(*s)
6222	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6223}
6224
6225// GoogleCloudApigeeV1OperationGroup: List of operation configuration
6226// details associated with Apigee API proxies or remote services. Remote
6227// services are non-Apigee proxies, such as Istio-Envoy.
6228type GoogleCloudApigeeV1OperationGroup struct {
6229	// OperationConfigType: Flag that specifes whether the configuration is
6230	// for Apigee API proxy or a remote service. Valid values include
6231	// `proxy` or `remoteservice`. Defaults to `proxy`. Set to `proxy` when
6232	// Apigee API proxies are associated with the API product. Set to
6233	// `remoteservice` when non-Apigee proxies like Istio-Envoy are
6234	// associated with the API product.
6235	OperationConfigType string `json:"operationConfigType,omitempty"`
6236
6237	// OperationConfigs: Required. List of operation configurations for
6238	// either Apigee API proxies or other remote services that are
6239	// associated with this API product.
6240	OperationConfigs []*GoogleCloudApigeeV1OperationConfig `json:"operationConfigs,omitempty"`
6241
6242	// ForceSendFields is a list of field names (e.g. "OperationConfigType")
6243	// to unconditionally include in API requests. By default, fields with
6244	// empty or default values are omitted from API requests. However, any
6245	// non-pointer, non-interface field appearing in ForceSendFields will be
6246	// sent to the server regardless of whether the field is empty or not.
6247	// This may be used to include empty fields in Patch requests.
6248	ForceSendFields []string `json:"-"`
6249
6250	// NullFields is a list of field names (e.g. "OperationConfigType") to
6251	// include in API requests with the JSON null value. By default, fields
6252	// with empty values are omitted from API requests. However, any field
6253	// with an empty value appearing in NullFields will be sent to the
6254	// server as null. It is an error if a field in this list has a
6255	// non-empty value. This may be used to include null fields in Patch
6256	// requests.
6257	NullFields []string `json:"-"`
6258}
6259
6260func (s *GoogleCloudApigeeV1OperationGroup) MarshalJSON() ([]byte, error) {
6261	type NoMethod GoogleCloudApigeeV1OperationGroup
6262	raw := NoMethod(*s)
6263	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6264}
6265
6266// GoogleCloudApigeeV1OperationMetadata: Metadata describing an
6267// Operation.
6268type GoogleCloudApigeeV1OperationMetadata struct {
6269	// Possible values:
6270	//   "OPERATION_TYPE_UNSPECIFIED"
6271	//   "INSERT"
6272	//   "DELETE"
6273	//   "UPDATE"
6274	OperationType string `json:"operationType,omitempty"`
6275
6276	// Progress: Progress of the operation.
6277	Progress *GoogleCloudApigeeV1OperationMetadataProgress `json:"progress,omitempty"`
6278
6279	// Possible values:
6280	//   "STATE_UNSPECIFIED"
6281	//   "NOT_STARTED"
6282	//   "IN_PROGRESS"
6283	//   "FINISHED"
6284	State string `json:"state,omitempty"`
6285
6286	// TargetResourceName: Name of the resource for which the operation is
6287	// operating on.
6288	TargetResourceName string `json:"targetResourceName,omitempty"`
6289
6290	// ForceSendFields is a list of field names (e.g. "OperationType") to
6291	// unconditionally include in API requests. By default, fields with
6292	// empty or default values are omitted from API requests. However, any
6293	// non-pointer, non-interface field appearing in ForceSendFields will be
6294	// sent to the server regardless of whether the field is empty or not.
6295	// This may be used to include empty fields in Patch requests.
6296	ForceSendFields []string `json:"-"`
6297
6298	// NullFields is a list of field names (e.g. "OperationType") to include
6299	// in API requests with the JSON null value. By default, fields with
6300	// empty values are omitted from API requests. However, any field with
6301	// an empty value appearing in NullFields will be sent to the server as
6302	// null. It is an error if a field in this list has a non-empty value.
6303	// This may be used to include null fields in Patch requests.
6304	NullFields []string `json:"-"`
6305}
6306
6307func (s *GoogleCloudApigeeV1OperationMetadata) MarshalJSON() ([]byte, error) {
6308	type NoMethod GoogleCloudApigeeV1OperationMetadata
6309	raw := NoMethod(*s)
6310	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6311}
6312
6313// GoogleCloudApigeeV1OperationMetadataProgress: Information about
6314// operation progress.
6315type GoogleCloudApigeeV1OperationMetadataProgress struct {
6316	// Description: Description of the operation's progress.
6317	Description string `json:"description,omitempty"`
6318
6319	// Details: The additional details of the progress.
6320	Details googleapi.RawMessage `json:"details,omitempty"`
6321
6322	// PercentDone: The percentage of the operation progress.
6323	PercentDone int64 `json:"percentDone,omitempty"`
6324
6325	// State: State of the operation.
6326	//
6327	// Possible values:
6328	//   "STATE_UNSPECIFIED"
6329	//   "NOT_STARTED"
6330	//   "IN_PROGRESS"
6331	//   "FINISHED"
6332	State string `json:"state,omitempty"`
6333
6334	// ForceSendFields is a list of field names (e.g. "Description") to
6335	// unconditionally include in API requests. By default, fields with
6336	// empty or default values are omitted from API requests. However, any
6337	// non-pointer, non-interface field appearing in ForceSendFields will be
6338	// sent to the server regardless of whether the field is empty or not.
6339	// This may be used to include empty fields in Patch requests.
6340	ForceSendFields []string `json:"-"`
6341
6342	// NullFields is a list of field names (e.g. "Description") to include
6343	// in API requests with the JSON null value. By default, fields with
6344	// empty values are omitted from API requests. However, any field with
6345	// an empty value appearing in NullFields will be sent to the server as
6346	// null. It is an error if a field in this list has a non-empty value.
6347	// This may be used to include null fields in Patch requests.
6348	NullFields []string `json:"-"`
6349}
6350
6351func (s *GoogleCloudApigeeV1OperationMetadataProgress) MarshalJSON() ([]byte, error) {
6352	type NoMethod GoogleCloudApigeeV1OperationMetadataProgress
6353	raw := NoMethod(*s)
6354	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6355}
6356
6357type GoogleCloudApigeeV1OptimizedStats struct {
6358	// Response: This field wraps the stats response for Js Optimized
6359	// Scenario with a Response key. E.g. { "Response": { "TimeUnit": [],
6360	// "metaData": { "errors": [], "notices": [ "Source:Postgres", "Table
6361	// used: edge.api.aaxgroup001.agg_api", "PG
6362	// Host:ruappg08-ro.production.apigeeks.net", "query served
6363	// by:80c4ebca-6a10-4a2e-8faf-c60c1ee306ca" ] }, "resultTruncated":
6364	// false, "stats": { "data": [ { "identifier": { "names": [ "apiproxy"
6365	// ], "values": [ "sirjee" ] }, "metric": [ { "env": "prod", "name":
6366	// "sum(message_count)", "values": [ 36.0 ] }, { "env": "prod", "name":
6367	// "sum(is_error)", "values": [ 36.0 ] } ] } ] } } }
6368	Response *GoogleCloudApigeeV1OptimizedStatsResponse `json:"Response,omitempty"`
6369
6370	// ServerResponse contains the HTTP response code and headers from the
6371	// server.
6372	googleapi.ServerResponse `json:"-"`
6373
6374	// ForceSendFields is a list of field names (e.g. "Response") to
6375	// unconditionally include in API requests. By default, fields with
6376	// empty or default values are omitted from API requests. However, any
6377	// non-pointer, non-interface field appearing in ForceSendFields will be
6378	// sent to the server regardless of whether the field is empty or not.
6379	// This may be used to include empty fields in Patch requests.
6380	ForceSendFields []string `json:"-"`
6381
6382	// NullFields is a list of field names (e.g. "Response") to include in
6383	// API requests with the JSON null value. By default, fields with empty
6384	// values are omitted from API requests. However, any field with an
6385	// empty value appearing in NullFields will be sent to the server as
6386	// null. It is an error if a field in this list has a non-empty value.
6387	// This may be used to include null fields in Patch requests.
6388	NullFields []string `json:"-"`
6389}
6390
6391func (s *GoogleCloudApigeeV1OptimizedStats) MarshalJSON() ([]byte, error) {
6392	type NoMethod GoogleCloudApigeeV1OptimizedStats
6393	raw := NoMethod(*s)
6394	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6395}
6396
6397// GoogleCloudApigeeV1OptimizedStatsNode: This message type encapsulates
6398// a data node as represented below: { "identifier": { "names": [
6399// "apiproxy" ], "values": [ "sirjee" ] }, "metric": [ { "env": "prod",
6400// "name": "sum(message_count)", "values": [ 36.0 ] } ] } OR { "env":
6401// "prod", "name": "sum(message_count)", "values": [ 36.0 ] } Depending
6402// on whether a dimension is present in the query or not the data node
6403// type can be a simple metric value or dimension identifier with list
6404// of metrics.
6405type GoogleCloudApigeeV1OptimizedStatsNode struct {
6406	Data []interface{} `json:"data,omitempty"`
6407
6408	// ForceSendFields is a list of field names (e.g. "Data") to
6409	// unconditionally include in API requests. By default, fields with
6410	// empty or default values are omitted from API requests. However, any
6411	// non-pointer, non-interface field appearing in ForceSendFields will be
6412	// sent to the server regardless of whether the field is empty or not.
6413	// This may be used to include empty fields in Patch requests.
6414	ForceSendFields []string `json:"-"`
6415
6416	// NullFields is a list of field names (e.g. "Data") to include in API
6417	// requests with the JSON null value. By default, fields with empty
6418	// values are omitted from API requests. However, any field with an
6419	// empty value appearing in NullFields will be sent to the server as
6420	// null. It is an error if a field in this list has a non-empty value.
6421	// This may be used to include null fields in Patch requests.
6422	NullFields []string `json:"-"`
6423}
6424
6425func (s *GoogleCloudApigeeV1OptimizedStatsNode) MarshalJSON() ([]byte, error) {
6426	type NoMethod GoogleCloudApigeeV1OptimizedStatsNode
6427	raw := NoMethod(*s)
6428	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6429}
6430
6431// GoogleCloudApigeeV1OptimizedStatsResponse: This message type
6432// encapsulates a response format for Js Optimized Scenario.
6433type GoogleCloudApigeeV1OptimizedStatsResponse struct {
6434	// TimeUnit: This field contains a list of time unit values. Time unit
6435	// refers to an epoch timestamp value.
6436	TimeUnit googleapi.Int64s `json:"TimeUnit,omitempty"`
6437
6438	// MetaData: This field contains metadata information about the query
6439	// executed
6440	MetaData *GoogleCloudApigeeV1Metadata `json:"metaData,omitempty"`
6441
6442	// ResultTruncated: This ia a boolean field to indicate if the results
6443	// were truncated based on the limit parameter.
6444	ResultTruncated bool `json:"resultTruncated,omitempty"`
6445
6446	// Stats: This field contains a stats results.
6447	Stats *GoogleCloudApigeeV1OptimizedStatsNode `json:"stats,omitempty"`
6448
6449	// ForceSendFields is a list of field names (e.g. "TimeUnit") to
6450	// unconditionally include in API requests. By default, fields with
6451	// empty or default values are omitted from API requests. However, any
6452	// non-pointer, non-interface field appearing in ForceSendFields will be
6453	// sent to the server regardless of whether the field is empty or not.
6454	// This may be used to include empty fields in Patch requests.
6455	ForceSendFields []string `json:"-"`
6456
6457	// NullFields is a list of field names (e.g. "TimeUnit") to include in
6458	// API requests with the JSON null value. By default, fields with empty
6459	// values are omitted from API requests. However, any field with an
6460	// empty value appearing in NullFields will be sent to the server as
6461	// null. It is an error if a field in this list has a non-empty value.
6462	// This may be used to include null fields in Patch requests.
6463	NullFields []string `json:"-"`
6464}
6465
6466func (s *GoogleCloudApigeeV1OptimizedStatsResponse) MarshalJSON() ([]byte, error) {
6467	type NoMethod GoogleCloudApigeeV1OptimizedStatsResponse
6468	raw := NoMethod(*s)
6469	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6470}
6471
6472type GoogleCloudApigeeV1Organization struct {
6473	// AddonsConfig: Addon configurations of the Apigee organization.
6474	AddonsConfig *GoogleCloudApigeeV1AddonsConfig `json:"addonsConfig,omitempty"`
6475
6476	// AnalyticsRegion: Required. Primary GCP region for analytics data
6477	// storage. For valid values, see Create an Apigee organization
6478	// (https://cloud.google.com/apigee/docs/api-platform/get-started/create-org).
6479	AnalyticsRegion string `json:"analyticsRegion,omitempty"`
6480
6481	// Attributes: Not used by Apigee.
6482	Attributes []string `json:"attributes,omitempty"`
6483
6484	// AuthorizedNetwork: Compute Engine network used for Service Networking
6485	// to be peered with Apigee runtime instances. See Getting started with
6486	// the Service Networking API
6487	// (https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started).
6488	// Valid only when RuntimeType (#RuntimeType) is set to `CLOUD`. The
6489	// value must be set before the creation of a runtime instance and can
6490	// be updated only when there are no runtime instances. For example:
6491	// `default`. Apigee also supports shared VPC (that is, the host network
6492	// project is not the same as the one that is peering with Apigee). See
6493	// Shared VPC overview (https://cloud.google.com/vpc/docs/shared-vpc).
6494	// To use a shared VPC network, use the following format:
6495	// `projects/{host-project-id}/{region}/networks/{network-name}`. For
6496	// example: `projects/my-sharedvpc-host/global/networks/mynetwork`
6497	// **Note:** Not supported for Apigee hybrid.
6498	AuthorizedNetwork string `json:"authorizedNetwork,omitempty"`
6499
6500	// BillingType: Billing type of the Apigee organization. See Apigee
6501	// pricing (https://cloud.google.com/apigee/pricing).
6502	//
6503	// Possible values:
6504	//   "BILLING_TYPE_UNSPECIFIED" - Billing type not specified.
6505	//   "SUBSCRIPTION" - A pre-paid subscription to Apigee.
6506	//   "EVALUATION" - Free and limited access to Apigee for evaluation
6507	// purposes only. only.
6508	BillingType string `json:"billingType,omitempty"`
6509
6510	// CaCertificate: Output only. Base64-encoded public certificate for the
6511	// root CA of the Apigee organization. Valid only when RuntimeType
6512	// (#RuntimeType) is `CLOUD`.
6513	CaCertificate string `json:"caCertificate,omitempty"`
6514
6515	// CreatedAt: Output only. Time that the Apigee organization was created
6516	// in milliseconds since epoch.
6517	CreatedAt int64 `json:"createdAt,omitempty,string"`
6518
6519	// CustomerName: Not used by Apigee.
6520	CustomerName string `json:"customerName,omitempty"`
6521
6522	// Description: Description of the Apigee organization.
6523	Description string `json:"description,omitempty"`
6524
6525	DisplayName string `json:"displayName,omitempty"`
6526
6527	// Environments: Output only. List of environments in the Apigee
6528	// organization.
6529	Environments []string `json:"environments,omitempty"`
6530
6531	// ExpiresAt: Output only. Time that the Apigee organization is
6532	// scheduled for deletion.
6533	ExpiresAt int64 `json:"expiresAt,omitempty,string"`
6534
6535	// LastModifiedAt: Output only. Time that the Apigee organization was
6536	// last modified in milliseconds since epoch.
6537	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
6538
6539	// Name: Output only. Name of the Apigee organization.
6540	Name string `json:"name,omitempty"`
6541
6542	// ProjectId: Output only. Project ID associated with the Apigee
6543	// organization.
6544	ProjectId string `json:"projectId,omitempty"`
6545
6546	// Properties: Properties defined in the Apigee organization profile.
6547	Properties *GoogleCloudApigeeV1Properties `json:"properties,omitempty"`
6548
6549	// RuntimeDatabaseEncryptionKeyName: Cloud KMS key name used for
6550	// encrypting the data that is stored and replicated across runtime
6551	// instances. Update is not allowed after the organization is created.
6552	// Required when RuntimeType (#RuntimeType) is `CLOUD`. If not specified
6553	// when RuntimeType (#RuntimeType) is `TRIAL`, a Google-Managed
6554	// encryption key will be used. For example:
6555	// "projects/foo/locations/us/keyRings/bar/cryptoKeys/baz". **Note:**
6556	// Not supported for Apigee hybrid.
6557	RuntimeDatabaseEncryptionKeyName string `json:"runtimeDatabaseEncryptionKeyName,omitempty"`
6558
6559	// RuntimeType: Required. Runtime type of the Apigee organization based
6560	// on the Apigee subscription purchased.
6561	//
6562	// Possible values:
6563	//   "RUNTIME_TYPE_UNSPECIFIED" - Runtime type not specified.
6564	//   "CLOUD" - Google-managed Apigee runtime.
6565	//   "HYBRID" - User-managed Apigee hybrid runtime.
6566	RuntimeType string `json:"runtimeType,omitempty"`
6567
6568	// State: Output only. State of the organization. Values other than
6569	// ACTIVE means the resource is not ready to use.
6570	//
6571	// Possible values:
6572	//   "STATE_UNSPECIFIED" - Resource is in an unspecified state.
6573	//   "CREATING" - Resource is being created.
6574	//   "ACTIVE" - Resource is provisioned and ready to use.
6575	//   "DELETING" - The resource is being deleted.
6576	//   "UPDATING" - The resource is being updated.
6577	State string `json:"state,omitempty"`
6578
6579	// SubscriptionType: Output only. DEPRECATED: This will eventually be
6580	// replaced by BillingType. Subscription type of the Apigee
6581	// organization. Valid values include trial (free, limited, and for
6582	// evaluation purposes only) or paid (full subscription has been
6583	// purchased). See Apigee pricing
6584	// (https://cloud.google.com/apigee/pricing/).
6585	//
6586	// Possible values:
6587	//   "SUBSCRIPTION_TYPE_UNSPECIFIED" - Subscription type not specified.
6588	//   "PAID" - Full subscription to Apigee has been purchased.
6589	//   "TRIAL" - Subscription to Apigee is free, limited, and used for
6590	// evaluation purposes only.
6591	SubscriptionType string `json:"subscriptionType,omitempty"`
6592
6593	// Type: Not used by Apigee.
6594	//
6595	// Possible values:
6596	//   "TYPE_UNSPECIFIED" - Subscription type not specified.
6597	//   "TYPE_TRIAL" - Subscription to Apigee is free, limited, and used
6598	// for evaluation purposes only.
6599	//   "TYPE_PAID" - Full subscription to Apigee has been purchased. See
6600	// [Apigee pricing](https://cloud.google.com/apigee/pricing/).
6601	//   "TYPE_INTERNAL" - For internal users only.
6602	Type string `json:"type,omitempty"`
6603
6604	// ServerResponse contains the HTTP response code and headers from the
6605	// server.
6606	googleapi.ServerResponse `json:"-"`
6607
6608	// ForceSendFields is a list of field names (e.g. "AddonsConfig") to
6609	// unconditionally include in API requests. By default, fields with
6610	// empty or default values are omitted from API requests. However, any
6611	// non-pointer, non-interface field appearing in ForceSendFields will be
6612	// sent to the server regardless of whether the field is empty or not.
6613	// This may be used to include empty fields in Patch requests.
6614	ForceSendFields []string `json:"-"`
6615
6616	// NullFields is a list of field names (e.g. "AddonsConfig") to include
6617	// in API requests with the JSON null value. By default, fields with
6618	// empty values are omitted from API requests. However, any field with
6619	// an empty value appearing in NullFields will be sent to the server as
6620	// null. It is an error if a field in this list has a non-empty value.
6621	// This may be used to include null fields in Patch requests.
6622	NullFields []string `json:"-"`
6623}
6624
6625func (s *GoogleCloudApigeeV1Organization) MarshalJSON() ([]byte, error) {
6626	type NoMethod GoogleCloudApigeeV1Organization
6627	raw := NoMethod(*s)
6628	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6629}
6630
6631type GoogleCloudApigeeV1OrganizationProjectMapping struct {
6632	// Organization: Name of the Apigee organization.
6633	Organization string `json:"organization,omitempty"`
6634
6635	// ProjectIds: List of GCP projects associated with the Apigee
6636	// organization.
6637	ProjectIds []string `json:"projectIds,omitempty"`
6638
6639	// ForceSendFields is a list of field names (e.g. "Organization") to
6640	// unconditionally include in API requests. By default, fields with
6641	// empty or default values are omitted from API requests. However, any
6642	// non-pointer, non-interface field appearing in ForceSendFields will be
6643	// sent to the server regardless of whether the field is empty or not.
6644	// This may be used to include empty fields in Patch requests.
6645	ForceSendFields []string `json:"-"`
6646
6647	// NullFields is a list of field names (e.g. "Organization") to include
6648	// in API requests with the JSON null value. By default, fields with
6649	// empty values are omitted from API requests. However, any field with
6650	// an empty value appearing in NullFields will be sent to the server as
6651	// null. It is an error if a field in this list has a non-empty value.
6652	// This may be used to include null fields in Patch requests.
6653	NullFields []string `json:"-"`
6654}
6655
6656func (s *GoogleCloudApigeeV1OrganizationProjectMapping) MarshalJSON() ([]byte, error) {
6657	type NoMethod GoogleCloudApigeeV1OrganizationProjectMapping
6658	raw := NoMethod(*s)
6659	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6660}
6661
6662type GoogleCloudApigeeV1PodStatus struct {
6663	// AppVersion: Version of the application running in the pod.
6664	AppVersion string `json:"appVersion,omitempty"`
6665
6666	// DeploymentStatus: Status of the deployment. Valid values include: -
6667	// `deployed`: Successful. - `error` : Failed. - `pending` : Pod has not
6668	// yet reported on the deployment.
6669	DeploymentStatus string `json:"deploymentStatus,omitempty"`
6670
6671	// DeploymentStatusTime: Time the deployment status was reported in
6672	// milliseconds since epoch.
6673	DeploymentStatusTime int64 `json:"deploymentStatusTime,omitempty,string"`
6674
6675	// DeploymentTime: Time the proxy was deployed in milliseconds since
6676	// epoch.
6677	DeploymentTime int64 `json:"deploymentTime,omitempty,string"`
6678
6679	// PodName: Name of the pod which is reporting the status.
6680	PodName string `json:"podName,omitempty"`
6681
6682	// PodStatus: Overall status of the pod (not this specific deployment).
6683	// Valid values include: - `active`: Up to date. - `stale` : Recently
6684	// out of date. Pods that have not reported status in a long time are
6685	// excluded from the output.
6686	PodStatus string `json:"podStatus,omitempty"`
6687
6688	// PodStatusTime: Time the pod status was reported in milliseconds since
6689	// epoch.
6690	PodStatusTime int64 `json:"podStatusTime,omitempty,string"`
6691
6692	// StatusCode: Code associated with the deployment status.
6693	StatusCode string `json:"statusCode,omitempty"`
6694
6695	// StatusCodeDetails: Human-readable message associated with the status
6696	// code.
6697	StatusCodeDetails string `json:"statusCodeDetails,omitempty"`
6698
6699	// ForceSendFields is a list of field names (e.g. "AppVersion") to
6700	// unconditionally include in API requests. By default, fields with
6701	// empty or default values are omitted from API requests. However, any
6702	// non-pointer, non-interface field appearing in ForceSendFields will be
6703	// sent to the server regardless of whether the field is empty or not.
6704	// This may be used to include empty fields in Patch requests.
6705	ForceSendFields []string `json:"-"`
6706
6707	// NullFields is a list of field names (e.g. "AppVersion") to include in
6708	// API requests with the JSON null value. By default, fields with empty
6709	// values are omitted from API requests. However, any field with an
6710	// empty value appearing in NullFields will be sent to the server as
6711	// null. It is an error if a field in this list has a non-empty value.
6712	// This may be used to include null fields in Patch requests.
6713	NullFields []string `json:"-"`
6714}
6715
6716func (s *GoogleCloudApigeeV1PodStatus) MarshalJSON() ([]byte, error) {
6717	type NoMethod GoogleCloudApigeeV1PodStatus
6718	raw := NoMethod(*s)
6719	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6720}
6721
6722// GoogleCloudApigeeV1Point: Point is a group of information collected
6723// by runtime plane at critical points of the message flow of the
6724// processed API request. This is a list of supported point IDs,
6725// categorized to three major buckets. For each category, debug points
6726// that we are currently supporting are listed below: - Flow status
6727// debug points: StateChange FlowInfo Condition Execution DebugMask
6728// Error - Flow control debug points: FlowCallout Paused Resumed
6729// FlowReturn BreakFlow Error - Runtime debug points: ScriptExecutor
6730// FlowCalloutStepDefinition CustomTarget StepDefinition
6731// Oauth2ServicePoint RaiseFault NodeJS The detail information of the
6732// given debug point is stored in a list of results.
6733type GoogleCloudApigeeV1Point struct {
6734	// Id: Name of a step in the transaction.
6735	Id string `json:"id,omitempty"`
6736
6737	// Results: List of results extracted from a given debug point.
6738	Results []*GoogleCloudApigeeV1Result `json:"results,omitempty"`
6739
6740	// ForceSendFields is a list of field names (e.g. "Id") to
6741	// unconditionally include in API requests. By default, fields with
6742	// empty or default values are omitted from API requests. However, any
6743	// non-pointer, non-interface field appearing in ForceSendFields will be
6744	// sent to the server regardless of whether the field is empty or not.
6745	// This may be used to include empty fields in Patch requests.
6746	ForceSendFields []string `json:"-"`
6747
6748	// NullFields is a list of field names (e.g. "Id") to include in API
6749	// requests with the JSON null value. By default, fields with empty
6750	// values are omitted from API requests. However, any field with an
6751	// empty value appearing in NullFields will be sent to the server as
6752	// null. It is an error if a field in this list has a non-empty value.
6753	// This may be used to include null fields in Patch requests.
6754	NullFields []string `json:"-"`
6755}
6756
6757func (s *GoogleCloudApigeeV1Point) MarshalJSON() ([]byte, error) {
6758	type NoMethod GoogleCloudApigeeV1Point
6759	raw := NoMethod(*s)
6760	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6761}
6762
6763// GoogleCloudApigeeV1Properties: Message for compatibility with legacy
6764// Edge specification for Java Properties object in JSON.
6765type GoogleCloudApigeeV1Properties struct {
6766	// Property: List of all properties in the object
6767	Property []*GoogleCloudApigeeV1Property `json:"property,omitempty"`
6768
6769	// ForceSendFields is a list of field names (e.g. "Property") to
6770	// unconditionally include in API requests. By default, fields with
6771	// empty or default values are omitted from API requests. However, any
6772	// non-pointer, non-interface field appearing in ForceSendFields will be
6773	// sent to the server regardless of whether the field is empty or not.
6774	// This may be used to include empty fields in Patch requests.
6775	ForceSendFields []string `json:"-"`
6776
6777	// NullFields is a list of field names (e.g. "Property") to include in
6778	// API requests with the JSON null value. By default, fields with empty
6779	// values are omitted from API requests. However, any field with an
6780	// empty value appearing in NullFields will be sent to the server as
6781	// null. It is an error if a field in this list has a non-empty value.
6782	// This may be used to include null fields in Patch requests.
6783	NullFields []string `json:"-"`
6784}
6785
6786func (s *GoogleCloudApigeeV1Properties) MarshalJSON() ([]byte, error) {
6787	type NoMethod GoogleCloudApigeeV1Properties
6788	raw := NoMethod(*s)
6789	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6790}
6791
6792// GoogleCloudApigeeV1Property: A single property entry in the
6793// Properties message.
6794type GoogleCloudApigeeV1Property struct {
6795	// Name: The property key
6796	Name string `json:"name,omitempty"`
6797
6798	// Value: The property value
6799	Value string `json:"value,omitempty"`
6800
6801	// ForceSendFields is a list of field names (e.g. "Name") to
6802	// unconditionally include in API requests. By default, fields with
6803	// empty or default values are omitted from API requests. However, any
6804	// non-pointer, non-interface field appearing in ForceSendFields will be
6805	// sent to the server regardless of whether the field is empty or not.
6806	// This may be used to include empty fields in Patch requests.
6807	ForceSendFields []string `json:"-"`
6808
6809	// NullFields is a list of field names (e.g. "Name") to include in API
6810	// requests with the JSON null value. By default, fields with empty
6811	// values are omitted from API requests. However, any field with an
6812	// empty value appearing in NullFields will be sent to the server as
6813	// null. It is an error if a field in this list has a non-empty value.
6814	// This may be used to include null fields in Patch requests.
6815	NullFields []string `json:"-"`
6816}
6817
6818func (s *GoogleCloudApigeeV1Property) MarshalJSON() ([]byte, error) {
6819	type NoMethod GoogleCloudApigeeV1Property
6820	raw := NoMethod(*s)
6821	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6822}
6823
6824// GoogleCloudApigeeV1ProvisionOrganizationRequest: Request for
6825// ProvisionOrganization.
6826type GoogleCloudApigeeV1ProvisionOrganizationRequest struct {
6827	// AnalyticsRegion: Primary Cloud Platform region for analytics data
6828	// storage. For valid values, see Create an organization
6829	// (https://cloud.google.com/apigee/docs/hybrid/latest/precog-provision).
6830	// Defaults to `us-west1`.
6831	AnalyticsRegion string `json:"analyticsRegion,omitempty"`
6832
6833	// AuthorizedNetwork: Name of the customer project's VPC network. If
6834	// provided, the network needs to be peered through Service Networking.
6835	// If none is provided, the organization will have access only to the
6836	// public internet.
6837	AuthorizedNetwork string `json:"authorizedNetwork,omitempty"`
6838
6839	// RuntimeLocation: Cloud Platform location for the runtime instance.
6840	// Defaults to zone `us-west1-a`. If a region is provided, `EVAL`
6841	// organizations will use the region for automatically selecting a zone
6842	// for the runtime instance.
6843	RuntimeLocation string `json:"runtimeLocation,omitempty"`
6844
6845	// ForceSendFields is a list of field names (e.g. "AnalyticsRegion") to
6846	// unconditionally include in API requests. By default, fields with
6847	// empty or default values are omitted from API requests. However, any
6848	// non-pointer, non-interface field appearing in ForceSendFields will be
6849	// sent to the server regardless of whether the field is empty or not.
6850	// This may be used to include empty fields in Patch requests.
6851	ForceSendFields []string `json:"-"`
6852
6853	// NullFields is a list of field names (e.g. "AnalyticsRegion") to
6854	// include in API requests with the JSON null value. By default, fields
6855	// with empty values are omitted from API requests. However, any field
6856	// with an empty value appearing in NullFields will be sent to the
6857	// server as null. It is an error if a field in this list has a
6858	// non-empty value. This may be used to include null fields in Patch
6859	// requests.
6860	NullFields []string `json:"-"`
6861}
6862
6863func (s *GoogleCloudApigeeV1ProvisionOrganizationRequest) MarshalJSON() ([]byte, error) {
6864	type NoMethod GoogleCloudApigeeV1ProvisionOrganizationRequest
6865	raw := NoMethod(*s)
6866	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6867}
6868
6869type GoogleCloudApigeeV1Query struct {
6870	// CsvDelimiter: Delimiter used in the CSV file, if `outputFormat` is
6871	// set to `csv`. Defaults to the `,` (comma) character. Supported
6872	// delimiter characters include comma (`,`), pipe (`|`), and tab (`\t`).
6873	CsvDelimiter string `json:"csvDelimiter,omitempty"`
6874
6875	// Dimensions: A list of dimensions.
6876	// https://docs.apigee.com/api-platform/analytics/analytics-reference#dimensions
6877	Dimensions []string `json:"dimensions,omitempty"`
6878
6879	// EnvgroupHostname: Hostname needs to be specified if query intends to
6880	// run at host level. This field is only allowed when query is submitted
6881	// by CreateHostAsyncQuery where analytics data will be grouped by
6882	// organization and hostname.
6883	EnvgroupHostname string `json:"envgroupHostname,omitempty"`
6884
6885	// Filter: Boolean expression that can be used to filter data. Filter
6886	// expressions can be combined using AND/OR terms and should be fully
6887	// parenthesized to avoid ambiguity. See Analytics metrics, dimensions,
6888	// and filters reference
6889	// https://docs.apigee.com/api-platform/analytics/analytics-reference
6890	// for more information on the fields available to filter on. For more
6891	// information on the tokens that you use to build filter expressions,
6892	// see Filter expression syntax.
6893	// https://docs.apigee.com/api-platform/analytics/asynch-reports-api#filter-expression-syntax
6894	Filter string `json:"filter,omitempty"`
6895
6896	// GroupByTimeUnit: Time unit used to group the result set. Valid values
6897	// include: second, minute, hour, day, week, or month. If a query
6898	// includes groupByTimeUnit, then the result is an aggregation based on
6899	// the specified time unit and the resultant timestamp does not include
6900	// milliseconds precision. If a query omits groupByTimeUnit, then the
6901	// resultant timestamp includes milliseconds precision.
6902	GroupByTimeUnit string `json:"groupByTimeUnit,omitempty"`
6903
6904	// Limit: Maximum number of rows that can be returned in the result.
6905	Limit int64 `json:"limit,omitempty"`
6906
6907	// Metrics: A list of Metrics.
6908	Metrics []*GoogleCloudApigeeV1QueryMetric `json:"metrics,omitempty"`
6909
6910	// Name: Asynchronous Query Name.
6911	Name string `json:"name,omitempty"`
6912
6913	// OutputFormat: Valid values include: `csv` or `json`. Defaults to
6914	// `json`. Note: Configure the delimiter for CSV output using the
6915	// csvDelimiter property.
6916	OutputFormat string `json:"outputFormat,omitempty"`
6917
6918	// ReportDefinitionId: Asynchronous Report ID.
6919	ReportDefinitionId string `json:"reportDefinitionId,omitempty"`
6920
6921	// TimeRange: Required. Time range for the query. Can use the following
6922	// predefined strings to specify the time range: `last60minutes`
6923	// `last24hours` `last7days` Or, specify the timeRange as a structure
6924	// describing start and end timestamps in the ISO format:
6925	// yyyy-mm-ddThh:mm:ssZ. Example: "timeRange": { "start":
6926	// "2018-07-29T00:13:00Z", "end": "2018-08-01T00:18:00Z" }
6927	TimeRange interface{} `json:"timeRange,omitempty"`
6928
6929	// ForceSendFields is a list of field names (e.g. "CsvDelimiter") to
6930	// unconditionally include in API requests. By default, fields with
6931	// empty or default values are omitted from API requests. However, any
6932	// non-pointer, non-interface field appearing in ForceSendFields will be
6933	// sent to the server regardless of whether the field is empty or not.
6934	// This may be used to include empty fields in Patch requests.
6935	ForceSendFields []string `json:"-"`
6936
6937	// NullFields is a list of field names (e.g. "CsvDelimiter") to include
6938	// in API requests with the JSON null value. By default, fields with
6939	// empty values are omitted from API requests. However, any field with
6940	// an empty value appearing in NullFields will be sent to the server as
6941	// null. It is an error if a field in this list has a non-empty value.
6942	// This may be used to include null fields in Patch requests.
6943	NullFields []string `json:"-"`
6944}
6945
6946func (s *GoogleCloudApigeeV1Query) MarshalJSON() ([]byte, error) {
6947	type NoMethod GoogleCloudApigeeV1Query
6948	raw := NoMethod(*s)
6949	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6950}
6951
6952type GoogleCloudApigeeV1QueryMetadata struct {
6953	// Dimensions: Dimensions of the AsyncQuery.
6954	Dimensions []string `json:"dimensions,omitempty"`
6955
6956	// EndTimestamp: End timestamp of the query range.
6957	EndTimestamp string `json:"endTimestamp,omitempty"`
6958
6959	// Metrics: Metrics of the AsyncQuery. Example:
6960	// ["name:message_count,func:sum,alias:sum_message_count"]
6961	Metrics []string `json:"metrics,omitempty"`
6962
6963	// OutputFormat: Output format.
6964	OutputFormat string `json:"outputFormat,omitempty"`
6965
6966	// StartTimestamp: Start timestamp of the query range.
6967	StartTimestamp string `json:"startTimestamp,omitempty"`
6968
6969	// TimeUnit: Query GroupBy time unit.
6970	TimeUnit string `json:"timeUnit,omitempty"`
6971
6972	// ForceSendFields is a list of field names (e.g. "Dimensions") to
6973	// unconditionally include in API requests. By default, fields with
6974	// empty or default values are omitted from API requests. However, any
6975	// non-pointer, non-interface field appearing in ForceSendFields will be
6976	// sent to the server regardless of whether the field is empty or not.
6977	// This may be used to include empty fields in Patch requests.
6978	ForceSendFields []string `json:"-"`
6979
6980	// NullFields is a list of field names (e.g. "Dimensions") to include in
6981	// API requests with the JSON null value. By default, fields with empty
6982	// values are omitted from API requests. However, any field with an
6983	// empty value appearing in NullFields will be sent to the server as
6984	// null. It is an error if a field in this list has a non-empty value.
6985	// This may be used to include null fields in Patch requests.
6986	NullFields []string `json:"-"`
6987}
6988
6989func (s *GoogleCloudApigeeV1QueryMetadata) MarshalJSON() ([]byte, error) {
6990	type NoMethod GoogleCloudApigeeV1QueryMetadata
6991	raw := NoMethod(*s)
6992	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6993}
6994
6995// GoogleCloudApigeeV1QueryMetric: More info about Metric:
6996// https://docs.apigee.com/api-platform/analytics/analytics-reference#metrics
6997type GoogleCloudApigeeV1QueryMetric struct {
6998	// Alias: Alias for the metric. Alias will be used to replace metric
6999	// name in query results.
7000	Alias string `json:"alias,omitempty"`
7001
7002	// Function: Aggregation function: avg, min, max, or sum.
7003	Function string `json:"function,omitempty"`
7004
7005	// Name: Required. Metric name.
7006	Name string `json:"name,omitempty"`
7007
7008	// Operator: One of `+`, `-`, `/`, `%`, `*`.
7009	Operator string `json:"operator,omitempty"`
7010
7011	// Value: Operand value should be provided when operator is set.
7012	Value string `json:"value,omitempty"`
7013
7014	// ForceSendFields is a list of field names (e.g. "Alias") to
7015	// unconditionally include in API requests. By default, fields with
7016	// empty or default values are omitted from API requests. However, any
7017	// non-pointer, non-interface field appearing in ForceSendFields will be
7018	// sent to the server regardless of whether the field is empty or not.
7019	// This may be used to include empty fields in Patch requests.
7020	ForceSendFields []string `json:"-"`
7021
7022	// NullFields is a list of field names (e.g. "Alias") to include in API
7023	// requests with the JSON null value. By default, fields with empty
7024	// values are omitted from API requests. However, any field with an
7025	// empty value appearing in NullFields will be sent to the server as
7026	// null. It is an error if a field in this list has a non-empty value.
7027	// This may be used to include null fields in Patch requests.
7028	NullFields []string `json:"-"`
7029}
7030
7031func (s *GoogleCloudApigeeV1QueryMetric) MarshalJSON() ([]byte, error) {
7032	type NoMethod GoogleCloudApigeeV1QueryMetric
7033	raw := NoMethod(*s)
7034	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7035}
7036
7037// GoogleCloudApigeeV1Quota: Quota contains the essential parameters
7038// needed that can be applied on the resources, methods, API source
7039// combination associated with this API product. While Quota is
7040// optional, setting it prevents requests from exceeding the provisioned
7041// parameters.
7042type GoogleCloudApigeeV1Quota struct {
7043	// Interval: Required. Time interval over which the number of request
7044	// messages is calculated.
7045	Interval string `json:"interval,omitempty"`
7046
7047	// Limit: Required. Upper limit allowed for the time interval and time
7048	// unit specified. Requests exceeding this limit will be rejected.
7049	Limit string `json:"limit,omitempty"`
7050
7051	// TimeUnit: Time unit defined for the `interval`. Valid values include
7052	// `minute`, `hour`, `day`, or `month`. If `limit` and `interval` are
7053	// valid, the default value is `hour`; otherwise, the default is null.
7054	TimeUnit string `json:"timeUnit,omitempty"`
7055
7056	// ForceSendFields is a list of field names (e.g. "Interval") to
7057	// unconditionally include in API requests. By default, fields with
7058	// empty or default values are omitted from API requests. However, any
7059	// non-pointer, non-interface field appearing in ForceSendFields will be
7060	// sent to the server regardless of whether the field is empty or not.
7061	// This may be used to include empty fields in Patch requests.
7062	ForceSendFields []string `json:"-"`
7063
7064	// NullFields is a list of field names (e.g. "Interval") to include in
7065	// API requests with the JSON null value. By default, fields with empty
7066	// values are omitted from API requests. However, any field with an
7067	// empty value appearing in NullFields will be sent to the server as
7068	// null. It is an error if a field in this list has a non-empty value.
7069	// This may be used to include null fields in Patch requests.
7070	NullFields []string `json:"-"`
7071}
7072
7073func (s *GoogleCloudApigeeV1Quota) MarshalJSON() ([]byte, error) {
7074	type NoMethod GoogleCloudApigeeV1Quota
7075	raw := NoMethod(*s)
7076	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7077}
7078
7079// GoogleCloudApigeeV1RatePlan: Rate plan details.
7080type GoogleCloudApigeeV1RatePlan struct {
7081	// Apiproduct: Name of the API product that the rate plan is associated
7082	// with.
7083	Apiproduct string `json:"apiproduct,omitempty"`
7084
7085	// BillingPeriod: Frequency at which the customer will be billed.
7086	//
7087	// Possible values:
7088	//   "BILLING_PERIOD_UNSPECIFIED" - Billing period not specified.
7089	//   "WEEKLY" - Weekly billing period. **Note**: Not supported by Apigee
7090	// at this time.
7091	//   "MONTHLY" - Monthly billing period.
7092	BillingPeriod string `json:"billingPeriod,omitempty"`
7093
7094	// ConsumptionPricingRates: API call volume ranges and the fees charged
7095	// when the total number of API calls is within a given range. The
7096	// method used to calculate the final fee depends on the selected
7097	// pricing model. For example, if the pricing model is `STAIRSTEP` and
7098	// the ranges are defined as follows: ``` { "start": 1, "end": 100,
7099	// "fee": 75 }, { "start": 101, "end": 200, "fee": 100 }, } ``` Then the
7100	// following fees would be charged based on the total number of API
7101	// calls (assuming the currency selected is `USD`): * 1 call costs $75 *
7102	// 50 calls cost $75 * 150 calls cost $100 The number of API calls
7103	// cannot exceed 200.
7104	ConsumptionPricingRates []*GoogleCloudApigeeV1RateRange `json:"consumptionPricingRates,omitempty"`
7105
7106	// ConsumptionPricingType: Pricing model used for consumption-based
7107	// charges.
7108	//
7109	// Possible values:
7110	//   "CONSUMPTION_PRICING_TYPE_UNSPECIFIED" - Pricing model not
7111	// specified. This is the default.
7112	//   "FIXED_PER_UNIT" - Fixed rate charged for each API call.
7113	//   "BANDED" - Variable rate charged based on the total volume of API
7114	// calls. Example: * 1-100 calls cost $2 per call * 101-200 calls cost
7115	// $1.50 per call * 201-300 calls cost $1 per call * Total price for 50
7116	// calls: 50 x $2 = $100 * Total price for 150 calls: 150 x $1.5 = $225
7117	// * Total price for 250 calls: 250 x $1 = $250. **Note**: Not supported
7118	// by Apigee at this time.
7119	//   "TIERED" - Variable rate charged for each API call based on price
7120	// tiers. Example: * 1-100 calls cost $2 per call * 101-200 calls cost
7121	// $1.50 per call * 201-300 calls cost $1 per call * Total price for 50
7122	// calls: 50 x $2 = $100 * Total price for 150 calls: 100 x $2 + 50 x
7123	// $1.5 = $275 * Total price for 250 calls: 100 x $2 + 100 x $1.5 + 50 x
7124	// $1 = $400. **Note**: Not supported by Apigee at this time.
7125	//   "STAIRSTEP" - Flat rate charged for a bundle of API calls whether
7126	// or not the entire bundle is used. Example: * 1-100 calls cost $75
7127	// flat fee * 101-200 calls cost $100 flat free * 201-300 calls cost
7128	// $150 flat fee * Total price for 1 call: $75 * Total price for 50
7129	// calls: $75 * Total price for 150 calls: $100 * Total price for 250
7130	// calls: $150. **Note**: Not supported by Apigee at this time.
7131	ConsumptionPricingType string `json:"consumptionPricingType,omitempty"`
7132
7133	// CreatedAt: Output only. Time that the rate plan was created in
7134	// milliseconds since epoch.
7135	CreatedAt int64 `json:"createdAt,omitempty,string"`
7136
7137	// CurrencyCode: Currency to be used for billing. Consists of a
7138	// three-letter code as defined by the ISO 4217
7139	// (https://en.wikipedia.org/wiki/ISO_4217) standard.
7140	CurrencyCode string `json:"currencyCode,omitempty"`
7141
7142	// Description: Description of the rate plan.
7143	Description string `json:"description,omitempty"`
7144
7145	// DisplayName: Display name of the rate plan.
7146	DisplayName string `json:"displayName,omitempty"`
7147
7148	// EndTime: Time when the rate plan will expire in milliseconds since
7149	// epoch. Set to 0 or `null` to indicate that the rate plan should never
7150	// expire.
7151	EndTime int64 `json:"endTime,omitempty,string"`
7152
7153	// FixedFeeFrequency: Frequency at which the fixed fee is charged.
7154	FixedFeeFrequency int64 `json:"fixedFeeFrequency,omitempty"`
7155
7156	// FixedRecurringFee: Fixed amount that is charged at a defined interval
7157	// and billed in advance of use of the API product. The fee will be
7158	// prorated for the first billing period.
7159	FixedRecurringFee *GoogleTypeMoney `json:"fixedRecurringFee,omitempty"`
7160
7161	// LastModifiedAt: Output only. Time the rate plan was last modified in
7162	// milliseconds since epoch.
7163	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
7164
7165	// Name: Output only. Name of the rate plan.
7166	Name string `json:"name,omitempty"`
7167
7168	// PaymentFundingModel: Flag that specifies the billing account type,
7169	// prepaid or postpaid.
7170	//
7171	// Possible values:
7172	//   "PAYMENT_FUNDING_MODEL_UNSPECIFIED" - Billing account type not
7173	// specified.
7174	//   "PREPAID" - Prepaid billing account type. Developer pays in advance
7175	// for the use of your API products. Funds are deducted from their
7176	// prepaid account balance. **Note**: Not supported by Apigee at this
7177	// time.
7178	//   "POSTPAID" - Postpaid billing account type. Developer is billed
7179	// through an invoice after using your API products.
7180	PaymentFundingModel string `json:"paymentFundingModel,omitempty"`
7181
7182	// RevenueShareRates: Details of the revenue sharing model.
7183	RevenueShareRates []*GoogleCloudApigeeV1RevenueShareRange `json:"revenueShareRates,omitempty"`
7184
7185	// RevenueShareType: Method used to calculate the revenue that is shared
7186	// with developers.
7187	//
7188	// Possible values:
7189	//   "REVENUE_SHARE_TYPE_UNSPECIFIED" - Revenue share type is not
7190	// specified.
7191	//   "FIXED" - Fixed percentage of the total revenue will be shared. The
7192	// percentage to be shared can be configured by the API provider.
7193	//   "VOLUME_BANDED" - Amount of revenue shared depends on the number of
7194	// API calls. The API call volume ranges and the revenue share
7195	// percentage for each volume can be configured by the API provider.
7196	// **Note**: Not supported by Apigee at this time.
7197	RevenueShareType string `json:"revenueShareType,omitempty"`
7198
7199	// SetupFee: Initial, one-time fee paid when purchasing the API product.
7200	SetupFee *GoogleTypeMoney `json:"setupFee,omitempty"`
7201
7202	// StartTime: Time when the rate plan becomes active in milliseconds
7203	// since epoch.
7204	StartTime int64 `json:"startTime,omitempty,string"`
7205
7206	// State: Current state of the rate plan (draft or published).
7207	//
7208	// Possible values:
7209	//   "STATE_UNSPECIFIED" - State of the rate plan is not specified.
7210	//   "DRAFT" - Rate plan is in draft mode and only visible to API
7211	// providers.
7212	//   "PUBLISHED" - Rate plan is published and will become visible to
7213	// developers for the configured duration (between `startTime` and
7214	// `endTime`).
7215	State string `json:"state,omitempty"`
7216
7217	// ServerResponse contains the HTTP response code and headers from the
7218	// server.
7219	googleapi.ServerResponse `json:"-"`
7220
7221	// ForceSendFields is a list of field names (e.g. "Apiproduct") to
7222	// unconditionally include in API requests. By default, fields with
7223	// empty or default values are omitted from API requests. However, any
7224	// non-pointer, non-interface field appearing in ForceSendFields will be
7225	// sent to the server regardless of whether the field is empty or not.
7226	// This may be used to include empty fields in Patch requests.
7227	ForceSendFields []string `json:"-"`
7228
7229	// NullFields is a list of field names (e.g. "Apiproduct") to include in
7230	// API requests with the JSON null value. By default, fields with empty
7231	// values are omitted from API requests. However, any field with an
7232	// empty value appearing in NullFields will be sent to the server as
7233	// null. It is an error if a field in this list has a non-empty value.
7234	// This may be used to include null fields in Patch requests.
7235	NullFields []string `json:"-"`
7236}
7237
7238func (s *GoogleCloudApigeeV1RatePlan) MarshalJSON() ([]byte, error) {
7239	type NoMethod GoogleCloudApigeeV1RatePlan
7240	raw := NoMethod(*s)
7241	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7242}
7243
7244// GoogleCloudApigeeV1RateRange: API call volume range and the fees
7245// charged when the total number of API calls is within the range.
7246type GoogleCloudApigeeV1RateRange struct {
7247	// End: Ending value of the range. Set to 0 or `null` for the last range
7248	// of values.
7249	End int64 `json:"end,omitempty,string"`
7250
7251	// Fee: Fee to charge when total number of API calls falls within this
7252	// range.
7253	Fee *GoogleTypeMoney `json:"fee,omitempty"`
7254
7255	// Start: Starting value of the range. Set to 0 or `null` for the
7256	// initial range of values.
7257	Start int64 `json:"start,omitempty,string"`
7258
7259	// ForceSendFields is a list of field names (e.g. "End") to
7260	// unconditionally include in API requests. By default, fields with
7261	// empty or default values are omitted from API requests. However, any
7262	// non-pointer, non-interface field appearing in ForceSendFields will be
7263	// sent to the server regardless of whether the field is empty or not.
7264	// This may be used to include empty fields in Patch requests.
7265	ForceSendFields []string `json:"-"`
7266
7267	// NullFields is a list of field names (e.g. "End") to include in API
7268	// requests with the JSON null value. By default, fields with empty
7269	// values are omitted from API requests. However, any field with an
7270	// empty value appearing in NullFields will be sent to the server as
7271	// null. It is an error if a field in this list has a non-empty value.
7272	// This may be used to include null fields in Patch requests.
7273	NullFields []string `json:"-"`
7274}
7275
7276func (s *GoogleCloudApigeeV1RateRange) MarshalJSON() ([]byte, error) {
7277	type NoMethod GoogleCloudApigeeV1RateRange
7278	raw := NoMethod(*s)
7279	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7280}
7281
7282// GoogleCloudApigeeV1Reference: A Reference configuration. References
7283// must refer to a keystore that also exists in the parent environment.
7284type GoogleCloudApigeeV1Reference struct {
7285	// Description: Optional. A human-readable description of this
7286	// reference.
7287	Description string `json:"description,omitempty"`
7288
7289	// Name: Required. The resource id of this reference. Values must match
7290	// the regular expression [\w\s\-.]+.
7291	Name string `json:"name,omitempty"`
7292
7293	// Refers: Required. The id of the resource to which this reference
7294	// refers. Must be the id of a resource that exists in the parent
7295	// environment and is of the given resource_type.
7296	Refers string `json:"refers,omitempty"`
7297
7298	// ResourceType: The type of resource referred to by this reference.
7299	// Valid values are 'KeyStore' or 'TrustStore'.
7300	ResourceType string `json:"resourceType,omitempty"`
7301
7302	// ServerResponse contains the HTTP response code and headers from the
7303	// server.
7304	googleapi.ServerResponse `json:"-"`
7305
7306	// ForceSendFields is a list of field names (e.g. "Description") to
7307	// unconditionally include in API requests. By default, fields with
7308	// empty or default values are omitted from API requests. However, any
7309	// non-pointer, non-interface field appearing in ForceSendFields will be
7310	// sent to the server regardless of whether the field is empty or not.
7311	// This may be used to include empty fields in Patch requests.
7312	ForceSendFields []string `json:"-"`
7313
7314	// NullFields is a list of field names (e.g. "Description") to include
7315	// in API requests with the JSON null value. By default, fields with
7316	// empty values are omitted from API requests. However, any field with
7317	// an empty value appearing in NullFields will be sent to the server as
7318	// null. It is an error if a field in this list has a non-empty value.
7319	// This may be used to include null fields in Patch requests.
7320	NullFields []string `json:"-"`
7321}
7322
7323func (s *GoogleCloudApigeeV1Reference) MarshalJSON() ([]byte, error) {
7324	type NoMethod GoogleCloudApigeeV1Reference
7325	raw := NoMethod(*s)
7326	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7327}
7328
7329type GoogleCloudApigeeV1ReferenceConfig struct {
7330	// Name: Name of the reference in the following format:
7331	// `organizations/{org}/environments/{env}/references/{reference}`
7332	Name string `json:"name,omitempty"`
7333
7334	// ResourceName: Name of the referenced resource in the following
7335	// format: `organizations/{org}/environments/{env}/keystores/{keystore}`
7336	// Only references to keystore resources are supported.
7337	ResourceName string `json:"resourceName,omitempty"`
7338
7339	// ForceSendFields is a list of field names (e.g. "Name") to
7340	// unconditionally include in API requests. By default, fields with
7341	// empty or default values are omitted from API requests. However, any
7342	// non-pointer, non-interface field appearing in ForceSendFields will be
7343	// sent to the server regardless of whether the field is empty or not.
7344	// This may be used to include empty fields in Patch requests.
7345	ForceSendFields []string `json:"-"`
7346
7347	// NullFields is a list of field names (e.g. "Name") to include in API
7348	// requests with the JSON null value. By default, fields with empty
7349	// values are omitted from API requests. However, any field with an
7350	// empty value appearing in NullFields will be sent to the server as
7351	// null. It is an error if a field in this list has a non-empty value.
7352	// This may be used to include null fields in Patch requests.
7353	NullFields []string `json:"-"`
7354}
7355
7356func (s *GoogleCloudApigeeV1ReferenceConfig) MarshalJSON() ([]byte, error) {
7357	type NoMethod GoogleCloudApigeeV1ReferenceConfig
7358	raw := NoMethod(*s)
7359	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7360}
7361
7362// GoogleCloudApigeeV1ReportInstanceStatusRequest: Request for
7363// ReportInstanceStatus.
7364type GoogleCloudApigeeV1ReportInstanceStatusRequest struct {
7365	// InstanceUid: A unique ID for the instance which is guaranteed to be
7366	// unique in case the user installs multiple hybrid runtimes with the
7367	// same instance ID.
7368	InstanceUid string `json:"instanceUid,omitempty"`
7369
7370	// ReportTime: The time the report was generated in the runtime. Used to
7371	// prevent an old status from overwriting a newer one. An instance
7372	// should space out it's status reports so that clock skew does not play
7373	// a factor.
7374	ReportTime string `json:"reportTime,omitempty"`
7375
7376	// Resources: Status for config resources
7377	Resources []*GoogleCloudApigeeV1ResourceStatus `json:"resources,omitempty"`
7378
7379	// ForceSendFields is a list of field names (e.g. "InstanceUid") to
7380	// unconditionally include in API requests. By default, fields with
7381	// empty or default values are omitted from API requests. However, any
7382	// non-pointer, non-interface field appearing in ForceSendFields will be
7383	// sent to the server regardless of whether the field is empty or not.
7384	// This may be used to include empty fields in Patch requests.
7385	ForceSendFields []string `json:"-"`
7386
7387	// NullFields is a list of field names (e.g. "InstanceUid") to include
7388	// in API requests with the JSON null value. By default, fields with
7389	// empty values are omitted from API requests. However, any field with
7390	// an empty value appearing in NullFields will be sent to the server as
7391	// null. It is an error if a field in this list has a non-empty value.
7392	// This may be used to include null fields in Patch requests.
7393	NullFields []string `json:"-"`
7394}
7395
7396func (s *GoogleCloudApigeeV1ReportInstanceStatusRequest) MarshalJSON() ([]byte, error) {
7397	type NoMethod GoogleCloudApigeeV1ReportInstanceStatusRequest
7398	raw := NoMethod(*s)
7399	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7400}
7401
7402// GoogleCloudApigeeV1ReportInstanceStatusResponse: Placeholder for
7403// future enhancements to status reporting protocol
7404type GoogleCloudApigeeV1ReportInstanceStatusResponse struct {
7405	// ServerResponse contains the HTTP response code and headers from the
7406	// server.
7407	googleapi.ServerResponse `json:"-"`
7408}
7409
7410type GoogleCloudApigeeV1ReportProperty struct {
7411	// Property: name of the property
7412	Property string `json:"property,omitempty"`
7413
7414	// Value: property values
7415	Value []*GoogleCloudApigeeV1Attribute `json:"value,omitempty"`
7416
7417	// ForceSendFields is a list of field names (e.g. "Property") to
7418	// unconditionally include in API requests. By default, fields with
7419	// empty or default values are omitted from API requests. However, any
7420	// non-pointer, non-interface field appearing in ForceSendFields will be
7421	// sent to the server regardless of whether the field is empty or not.
7422	// This may be used to include empty fields in Patch requests.
7423	ForceSendFields []string `json:"-"`
7424
7425	// NullFields is a list of field names (e.g. "Property") to include in
7426	// API requests with the JSON null value. By default, fields with empty
7427	// values are omitted from API requests. However, any field with an
7428	// empty value appearing in NullFields will be sent to the server as
7429	// null. It is an error if a field in this list has a non-empty value.
7430	// This may be used to include null fields in Patch requests.
7431	NullFields []string `json:"-"`
7432}
7433
7434func (s *GoogleCloudApigeeV1ReportProperty) MarshalJSON() ([]byte, error) {
7435	type NoMethod GoogleCloudApigeeV1ReportProperty
7436	raw := NoMethod(*s)
7437	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7438}
7439
7440type GoogleCloudApigeeV1ResourceConfig struct {
7441	// Location: Location of the resource as a URI.
7442	Location string `json:"location,omitempty"`
7443
7444	// Name: Resource name in the following format:
7445	// `organizations/{org}/environments/{env}/resourcefiles/{type}/{file}/re
7446	// visions/{rev}` Only environment-scoped resource files are supported.
7447	Name string `json:"name,omitempty"`
7448
7449	// ForceSendFields is a list of field names (e.g. "Location") to
7450	// unconditionally include in API requests. By default, fields with
7451	// empty or default values are omitted from API requests. However, any
7452	// non-pointer, non-interface field appearing in ForceSendFields will be
7453	// sent to the server regardless of whether the field is empty or not.
7454	// This may be used to include empty fields in Patch requests.
7455	ForceSendFields []string `json:"-"`
7456
7457	// NullFields is a list of field names (e.g. "Location") to include in
7458	// API requests with the JSON null value. By default, fields with empty
7459	// values are omitted from API requests. However, any field with an
7460	// empty value appearing in NullFields will be sent to the server as
7461	// null. It is an error if a field in this list has a non-empty value.
7462	// This may be used to include null fields in Patch requests.
7463	NullFields []string `json:"-"`
7464}
7465
7466func (s *GoogleCloudApigeeV1ResourceConfig) MarshalJSON() ([]byte, error) {
7467	type NoMethod GoogleCloudApigeeV1ResourceConfig
7468	raw := NoMethod(*s)
7469	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7470}
7471
7472// GoogleCloudApigeeV1ResourceFile: Metadata about a resource file.
7473type GoogleCloudApigeeV1ResourceFile struct {
7474	// Name: ID of the resource file.
7475	Name string `json:"name,omitempty"`
7476
7477	// Type: Resource file type. {{ resource_file_type }}
7478	Type string `json:"type,omitempty"`
7479
7480	// ServerResponse contains the HTTP response code and headers from the
7481	// server.
7482	googleapi.ServerResponse `json:"-"`
7483
7484	// ForceSendFields is a list of field names (e.g. "Name") to
7485	// unconditionally include in API requests. By default, fields with
7486	// empty or default values are omitted from API requests. However, any
7487	// non-pointer, non-interface field appearing in ForceSendFields will be
7488	// sent to the server regardless of whether the field is empty or not.
7489	// This may be used to include empty fields in Patch requests.
7490	ForceSendFields []string `json:"-"`
7491
7492	// NullFields is a list of field names (e.g. "Name") to include in API
7493	// requests with the JSON null value. By default, fields with empty
7494	// values are omitted from API requests. However, any field with an
7495	// empty value appearing in NullFields will be sent to the server as
7496	// null. It is an error if a field in this list has a non-empty value.
7497	// This may be used to include null fields in Patch requests.
7498	NullFields []string `json:"-"`
7499}
7500
7501func (s *GoogleCloudApigeeV1ResourceFile) MarshalJSON() ([]byte, error) {
7502	type NoMethod GoogleCloudApigeeV1ResourceFile
7503	raw := NoMethod(*s)
7504	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7505}
7506
7507// GoogleCloudApigeeV1ResourceFiles: List of resource files.
7508type GoogleCloudApigeeV1ResourceFiles struct {
7509	// ResourceFile: List of resource files.
7510	ResourceFile []*GoogleCloudApigeeV1ResourceFile `json:"resourceFile,omitempty"`
7511
7512	// ForceSendFields is a list of field names (e.g. "ResourceFile") to
7513	// unconditionally include in API requests. By default, fields with
7514	// empty or default values are omitted from API requests. However, any
7515	// non-pointer, non-interface field appearing in ForceSendFields will be
7516	// sent to the server regardless of whether the field is empty or not.
7517	// This may be used to include empty fields in Patch requests.
7518	ForceSendFields []string `json:"-"`
7519
7520	// NullFields is a list of field names (e.g. "ResourceFile") to include
7521	// in API requests with the JSON null value. By default, fields with
7522	// empty values are omitted from API requests. However, any field with
7523	// an empty value appearing in NullFields will be sent to the server as
7524	// null. It is an error if a field in this list has a non-empty value.
7525	// This may be used to include null fields in Patch requests.
7526	NullFields []string `json:"-"`
7527}
7528
7529func (s *GoogleCloudApigeeV1ResourceFiles) MarshalJSON() ([]byte, error) {
7530	type NoMethod GoogleCloudApigeeV1ResourceFiles
7531	raw := NoMethod(*s)
7532	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7533}
7534
7535// GoogleCloudApigeeV1ResourceStatus: The status of a resource loaded in
7536// the runtime.
7537type GoogleCloudApigeeV1ResourceStatus struct {
7538	// Resource: The resource name. Currently only two resources are
7539	// supported: EnvironmentGroup -
7540	// organizations/{org}/envgroups/{envgroup} EnvironmentConfig -
7541	// organizations/{org}/environments/{environment}/deployedConfig
7542	Resource string `json:"resource,omitempty"`
7543
7544	// Revisions: Revisions of the resource currently deployed in the
7545	// instance.
7546	Revisions []*GoogleCloudApigeeV1RevisionStatus `json:"revisions,omitempty"`
7547
7548	// TotalReplicas: The total number of replicas that should have this
7549	// resource.
7550	TotalReplicas int64 `json:"totalReplicas,omitempty"`
7551
7552	// Uid: The uid of the resource. In the unexpected case that the
7553	// instance has multiple uids for the same name, they should be reported
7554	// under separate ResourceStatuses.
7555	Uid string `json:"uid,omitempty"`
7556
7557	// ForceSendFields is a list of field names (e.g. "Resource") to
7558	// unconditionally include in API requests. By default, fields with
7559	// empty or default values are omitted from API requests. However, any
7560	// non-pointer, non-interface field appearing in ForceSendFields will be
7561	// sent to the server regardless of whether the field is empty or not.
7562	// This may be used to include empty fields in Patch requests.
7563	ForceSendFields []string `json:"-"`
7564
7565	// NullFields is a list of field names (e.g. "Resource") to include in
7566	// API requests with the JSON null value. By default, fields with empty
7567	// values are omitted from API requests. However, any field with an
7568	// empty value appearing in NullFields will be sent to the server as
7569	// null. It is an error if a field in this list has a non-empty value.
7570	// This may be used to include null fields in Patch requests.
7571	NullFields []string `json:"-"`
7572}
7573
7574func (s *GoogleCloudApigeeV1ResourceStatus) MarshalJSON() ([]byte, error) {
7575	type NoMethod GoogleCloudApigeeV1ResourceStatus
7576	raw := NoMethod(*s)
7577	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7578}
7579
7580// GoogleCloudApigeeV1Result: Result is short for "action result", could
7581// be different types identified by "action_result" field. Supported
7582// types: 1. DebugInfo : generic debug info collected by runtime
7583// recorded as a list of properties. For example, the contents could be
7584// virtual host info, state change result, or execution metadata.
7585// Required fields : properties, timestamp 2. RequestMessage:
7586// information of a http request. Contains headers, request URI and http
7587// methods type.Required fields : headers, uri, verb 3. ResponseMessage:
7588// information of a http response. Contains headers, reason phrase and
7589// http status code. Required fields : headers, reasonPhrase, statusCode
7590// 4. ErrorMessage: information of a http error message. Contains detail
7591// error message, reason phrase and status code. Required fields :
7592// content, headers, reasonPhrase, statusCode 5. VariableAccess: a list
7593// of variable access actions, can be Get, Set and Remove. Required
7594// fields : accessList
7595type GoogleCloudApigeeV1Result struct {
7596	// ActionResult: Type of the action result. Can be one of the five:
7597	// DebugInfo, RequestMessage, ResponseMessage, ErrorMessage,
7598	// VariableAccess
7599	ActionResult string `json:"ActionResult,omitempty"`
7600
7601	// AccessList: A list of variable access actions agaist the api proxy.
7602	// Supported values: Get, Set, Remove.
7603	AccessList []*GoogleCloudApigeeV1Access `json:"accessList,omitempty"`
7604
7605	// Content: Error message content. for example, "content" :
7606	// "{\"fault\":{\"faultstring\":\"API timed
7607	// out\",\"detail\":{\"errorcode\":\"flow.APITimedOut\"}}}"
7608	Content string `json:"content,omitempty"`
7609
7610	// Headers: A list of HTTP headers. for example, '"headers" : [ { "name"
7611	// : "Content-Length", "value" : "83" }, { "name" : "Content-Type",
7612	// "value" : "application/json" } ]'
7613	Headers []*GoogleCloudApigeeV1Property `json:"headers,omitempty"`
7614
7615	// Properties: Name value pairs used for DebugInfo ActionResult.
7616	Properties *GoogleCloudApigeeV1Properties `json:"properties,omitempty"`
7617
7618	// ReasonPhrase: HTTP response phrase
7619	ReasonPhrase string `json:"reasonPhrase,omitempty"`
7620
7621	// StatusCode: HTTP response code
7622	StatusCode string `json:"statusCode,omitempty"`
7623
7624	// Timestamp: Timestamp of when the result is recorded. Its format is
7625	// dd-mm-yy hh:mm:ss:xxx. For example, "timestamp" : "12-08-19
7626	// 00:31:59:960"
7627	Timestamp string `json:"timestamp,omitempty"`
7628
7629	// URI: The relative path of the api proxy. for example, "uRI" :
7630	// "/iloveapis"
7631	URI string `json:"uRI,omitempty"`
7632
7633	// Verb: HTTP method verb
7634	Verb string `json:"verb,omitempty"`
7635
7636	// ForceSendFields is a list of field names (e.g. "ActionResult") to
7637	// unconditionally include in API requests. By default, fields with
7638	// empty or default values are omitted from API requests. However, any
7639	// non-pointer, non-interface field appearing in ForceSendFields will be
7640	// sent to the server regardless of whether the field is empty or not.
7641	// This may be used to include empty fields in Patch requests.
7642	ForceSendFields []string `json:"-"`
7643
7644	// NullFields is a list of field names (e.g. "ActionResult") to include
7645	// in API requests with the JSON null value. By default, fields with
7646	// empty values are omitted from API requests. However, any field with
7647	// an empty value appearing in NullFields will be sent to the server as
7648	// null. It is an error if a field in this list has a non-empty value.
7649	// This may be used to include null fields in Patch requests.
7650	NullFields []string `json:"-"`
7651}
7652
7653func (s *GoogleCloudApigeeV1Result) MarshalJSON() ([]byte, error) {
7654	type NoMethod GoogleCloudApigeeV1Result
7655	raw := NoMethod(*s)
7656	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7657}
7658
7659// GoogleCloudApigeeV1RevenueShareRange: API call volume range and the
7660// percentage of revenue to share with the developer when the total
7661// number of API calls is within the range.
7662type GoogleCloudApigeeV1RevenueShareRange struct {
7663	// End: Ending value of the range. Set to 0 or `null` for the last range
7664	// of values.
7665	End int64 `json:"end,omitempty,string"`
7666
7667	// SharePercentage: Percentage of the revenue to be shared with the
7668	// developer. For example, to share 21 percent of the total revenue with
7669	// the developer, set this value to 21. Specify a decimal number with a
7670	// maximum of two digits following the decimal point.
7671	SharePercentage float64 `json:"sharePercentage,omitempty"`
7672
7673	// Start: Starting value of the range. Set to 0 or `null` for the
7674	// initial range of values.
7675	Start int64 `json:"start,omitempty,string"`
7676
7677	// ForceSendFields is a list of field names (e.g. "End") to
7678	// unconditionally include in API requests. By default, fields with
7679	// empty or default values are omitted from API requests. However, any
7680	// non-pointer, non-interface field appearing in ForceSendFields will be
7681	// sent to the server regardless of whether the field is empty or not.
7682	// This may be used to include empty fields in Patch requests.
7683	ForceSendFields []string `json:"-"`
7684
7685	// NullFields is a list of field names (e.g. "End") to include in API
7686	// requests with the JSON null value. By default, fields with empty
7687	// values are omitted from API requests. However, any field with an
7688	// empty value appearing in NullFields will be sent to the server as
7689	// null. It is an error if a field in this list has a non-empty value.
7690	// This may be used to include null fields in Patch requests.
7691	NullFields []string `json:"-"`
7692}
7693
7694func (s *GoogleCloudApigeeV1RevenueShareRange) MarshalJSON() ([]byte, error) {
7695	type NoMethod GoogleCloudApigeeV1RevenueShareRange
7696	raw := NoMethod(*s)
7697	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7698}
7699
7700func (s *GoogleCloudApigeeV1RevenueShareRange) UnmarshalJSON(data []byte) error {
7701	type NoMethod GoogleCloudApigeeV1RevenueShareRange
7702	var s1 struct {
7703		SharePercentage gensupport.JSONFloat64 `json:"sharePercentage"`
7704		*NoMethod
7705	}
7706	s1.NoMethod = (*NoMethod)(s)
7707	if err := json.Unmarshal(data, &s1); err != nil {
7708		return err
7709	}
7710	s.SharePercentage = float64(s1.SharePercentage)
7711	return nil
7712}
7713
7714// GoogleCloudApigeeV1RevisionStatus: The status of a specific resource
7715// revision.
7716type GoogleCloudApigeeV1RevisionStatus struct {
7717	// Errors: Errors reported when attempting to load this revision.
7718	Errors []*GoogleCloudApigeeV1UpdateError `json:"errors,omitempty"`
7719
7720	// JsonSpec: The json content of the resource revision. Large specs
7721	// should be sent individually via the spec field to avoid hitting
7722	// request size limits.
7723	JsonSpec string `json:"jsonSpec,omitempty"`
7724
7725	// Replicas: The number of replicas that have successfully loaded this
7726	// revision.
7727	Replicas int64 `json:"replicas,omitempty"`
7728
7729	// RevisionId: The revision of the resource.
7730	RevisionId string `json:"revisionId,omitempty"`
7731
7732	// ForceSendFields is a list of field names (e.g. "Errors") to
7733	// unconditionally include in API requests. By default, fields with
7734	// empty or default values are omitted from API requests. However, any
7735	// non-pointer, non-interface field appearing in ForceSendFields will be
7736	// sent to the server regardless of whether the field is empty or not.
7737	// This may be used to include empty fields in Patch requests.
7738	ForceSendFields []string `json:"-"`
7739
7740	// NullFields is a list of field names (e.g. "Errors") to include in API
7741	// requests with the JSON null value. By default, fields with empty
7742	// values are omitted from API requests. However, any field with an
7743	// empty value appearing in NullFields will be sent to the server as
7744	// null. It is an error if a field in this list has a non-empty value.
7745	// This may be used to include null fields in Patch requests.
7746	NullFields []string `json:"-"`
7747}
7748
7749func (s *GoogleCloudApigeeV1RevisionStatus) MarshalJSON() ([]byte, error) {
7750	type NoMethod GoogleCloudApigeeV1RevisionStatus
7751	raw := NoMethod(*s)
7752	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7753}
7754
7755type GoogleCloudApigeeV1RoutingRule struct {
7756	// Basepath: URI path prefix used to route to the specified environment.
7757	// May contain one or more wildcards. For example, path segments
7758	// consisting of a single `*` character will match any string.
7759	Basepath string `json:"basepath,omitempty"`
7760
7761	// EnvGroupRevision: The env group config revision_id when this rule was
7762	// added or last updated. This value is set when the rule is created and
7763	// will only update if the the environment_id changes. It is used to
7764	// determine if the runtime is up to date with respect to this rule.
7765	// This field is omitted from the IngressConfig unless the
7766	// GetDeployedIngressConfig API is called with view=FULL.
7767	EnvGroupRevision int64 `json:"envGroupRevision,omitempty,string"`
7768
7769	// Environment: Name of an environment bound to the environment group in
7770	// the following format: `organizations/{org}/environments/{env}`.
7771	Environment string `json:"environment,omitempty"`
7772
7773	// Receiver: The resource name of the proxy revision that is receiving
7774	// this basepath in the following format:
7775	// `organizations/{org}/apis/{api}/revisions/{rev}`. This field is
7776	// omitted from the IngressConfig unless the GetDeployedIngressConfig
7777	// API is called with view=FULL.
7778	Receiver string `json:"receiver,omitempty"`
7779
7780	// UpdateTime: The unix timestamp when this rule was updated. This is
7781	// updated whenever env_group_revision is updated. This field is omitted
7782	// from the IngressConfig unless the GetDeployedIngressConfig API is
7783	// called with view=FULL.
7784	UpdateTime string `json:"updateTime,omitempty"`
7785
7786	// ForceSendFields is a list of field names (e.g. "Basepath") to
7787	// unconditionally include in API requests. By default, fields with
7788	// empty or default values are omitted from API requests. However, any
7789	// non-pointer, non-interface field appearing in ForceSendFields will be
7790	// sent to the server regardless of whether the field is empty or not.
7791	// This may be used to include empty fields in Patch requests.
7792	ForceSendFields []string `json:"-"`
7793
7794	// NullFields is a list of field names (e.g. "Basepath") to include in
7795	// API requests with the JSON null value. By default, fields with empty
7796	// values are omitted from API requests. However, any field with an
7797	// empty value appearing in NullFields will be sent to the server as
7798	// null. It is an error if a field in this list has a non-empty value.
7799	// This may be used to include null fields in Patch requests.
7800	NullFields []string `json:"-"`
7801}
7802
7803func (s *GoogleCloudApigeeV1RoutingRule) MarshalJSON() ([]byte, error) {
7804	type NoMethod GoogleCloudApigeeV1RoutingRule
7805	raw := NoMethod(*s)
7806	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7807}
7808
7809// GoogleCloudApigeeV1RuntimeConfig: Runtime configuration for the
7810// organization. Response for GetRuntimeConfig.
7811type GoogleCloudApigeeV1RuntimeConfig struct {
7812	// AnalyticsBucket: Cloud Storage bucket used for uploading Analytics
7813	// records.
7814	AnalyticsBucket string `json:"analyticsBucket,omitempty"`
7815
7816	// Name: Name of the resource in the following format:
7817	// `organizations/{org}/runtimeConfig`.
7818	Name string `json:"name,omitempty"`
7819
7820	// TenantProjectId: Output only. Tenant project ID associated with the
7821	// Apigee organization. The tenant project is used to host
7822	// Google-managed resources that are dedicated to this Apigee
7823	// organization. Clients have limited access to resources within the
7824	// tenant project used to support Apigee runtime instances. Access to
7825	// the tenant project is managed using SetSyncAuthorization. It can be
7826	// empty if the tenant project hasn't been created yet.
7827	TenantProjectId string `json:"tenantProjectId,omitempty"`
7828
7829	// TraceBucket: Cloud Storage bucket used for uploading Trace records.
7830	TraceBucket string `json:"traceBucket,omitempty"`
7831
7832	// ServerResponse contains the HTTP response code and headers from the
7833	// server.
7834	googleapi.ServerResponse `json:"-"`
7835
7836	// ForceSendFields is a list of field names (e.g. "AnalyticsBucket") to
7837	// unconditionally include in API requests. By default, fields with
7838	// empty or default values are omitted from API requests. However, any
7839	// non-pointer, non-interface field appearing in ForceSendFields will be
7840	// sent to the server regardless of whether the field is empty or not.
7841	// This may be used to include empty fields in Patch requests.
7842	ForceSendFields []string `json:"-"`
7843
7844	// NullFields is a list of field names (e.g. "AnalyticsBucket") to
7845	// include in API requests with the JSON null value. By default, fields
7846	// with empty values are omitted from API requests. However, any field
7847	// with an empty value appearing in NullFields will be sent to the
7848	// server as null. It is an error if a field in this list has a
7849	// non-empty value. This may be used to include null fields in Patch
7850	// requests.
7851	NullFields []string `json:"-"`
7852}
7853
7854func (s *GoogleCloudApigeeV1RuntimeConfig) MarshalJSON() ([]byte, error) {
7855	type NoMethod GoogleCloudApigeeV1RuntimeConfig
7856	raw := NoMethod(*s)
7857	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7858}
7859
7860// GoogleCloudApigeeV1RuntimeTraceConfig: NEXT ID: 8 RuntimeTraceConfig
7861// defines the configurations for distributed trace in an environment.
7862type GoogleCloudApigeeV1RuntimeTraceConfig struct {
7863	// Endpoint: Endpoint of the exporter.
7864	Endpoint string `json:"endpoint,omitempty"`
7865
7866	// Exporter: Exporter that is used to view the distributed trace
7867	// captured using OpenCensus. An exporter sends traces to any backend
7868	// that is capable of consuming them. Recorded spans can be exported by
7869	// registered exporters.
7870	//
7871	// Possible values:
7872	//   "EXPORTER_UNSPECIFIED" - Exporter unspecified
7873	//   "JAEGER" - Jaeger exporter
7874	//   "CLOUD_TRACE" - Cloudtrace exporter
7875	Exporter string `json:"exporter,omitempty"`
7876
7877	// Name: Name of the trace config in the following format:
7878	// `organizations/{org}/environment/{env}/traceConfig`
7879	Name string `json:"name,omitempty"`
7880
7881	// Overrides: List of trace configuration overrides for spicific API
7882	// proxies.
7883	Overrides []*GoogleCloudApigeeV1RuntimeTraceConfigOverride `json:"overrides,omitempty"`
7884
7885	// RevisionCreateTime: The timestamp that the revision was created or
7886	// updated.
7887	RevisionCreateTime string `json:"revisionCreateTime,omitempty"`
7888
7889	// RevisionId: Revision number which can be used by the runtime to
7890	// detect if the trace config has changed between two versions.
7891	RevisionId string `json:"revisionId,omitempty"`
7892
7893	// SamplingConfig: Trace configuration for all API proxies in an
7894	// environment.
7895	SamplingConfig *GoogleCloudApigeeV1RuntimeTraceSamplingConfig `json:"samplingConfig,omitempty"`
7896
7897	// ForceSendFields is a list of field names (e.g. "Endpoint") to
7898	// unconditionally include in API requests. By default, fields with
7899	// empty or default values are omitted from API requests. However, any
7900	// non-pointer, non-interface field appearing in ForceSendFields will be
7901	// sent to the server regardless of whether the field is empty or not.
7902	// This may be used to include empty fields in Patch requests.
7903	ForceSendFields []string `json:"-"`
7904
7905	// NullFields is a list of field names (e.g. "Endpoint") to include in
7906	// API requests with the JSON null value. By default, fields with empty
7907	// values are omitted from API requests. However, any field with an
7908	// empty value appearing in NullFields will be sent to the server as
7909	// null. It is an error if a field in this list has a non-empty value.
7910	// This may be used to include null fields in Patch requests.
7911	NullFields []string `json:"-"`
7912}
7913
7914func (s *GoogleCloudApigeeV1RuntimeTraceConfig) MarshalJSON() ([]byte, error) {
7915	type NoMethod GoogleCloudApigeeV1RuntimeTraceConfig
7916	raw := NoMethod(*s)
7917	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7918}
7919
7920// GoogleCloudApigeeV1RuntimeTraceConfigOverride: NEXT ID: 7 Trace
7921// configuration override for a specific API proxy in an environment.
7922type GoogleCloudApigeeV1RuntimeTraceConfigOverride struct {
7923	// ApiProxy: Name of the API proxy that will have its trace
7924	// configuration overridden following format:
7925	// `organizations/{org}/apis/{api}`
7926	ApiProxy string `json:"apiProxy,omitempty"`
7927
7928	// Name: Name of the trace config override in the following format:
7929	// `organizations/{org}/environment/{env}/traceConfig/overrides/{override
7930	// }`
7931	Name string `json:"name,omitempty"`
7932
7933	// RevisionCreateTime: The timestamp that the revision was created or
7934	// updated.
7935	RevisionCreateTime string `json:"revisionCreateTime,omitempty"`
7936
7937	// RevisionId: Revision number which can be used by the runtime to
7938	// detect if the trace config override has changed between two versions.
7939	RevisionId string `json:"revisionId,omitempty"`
7940
7941	// SamplingConfig: Trace configuration override for a specific API proxy
7942	// in an environment.
7943	SamplingConfig *GoogleCloudApigeeV1RuntimeTraceSamplingConfig `json:"samplingConfig,omitempty"`
7944
7945	// Uid: Unique ID for the configuration override. The ID will only
7946	// change if the override is deleted and recreated. Corresponds to
7947	// name's "override" field.
7948	Uid string `json:"uid,omitempty"`
7949
7950	// ForceSendFields is a list of field names (e.g. "ApiProxy") to
7951	// unconditionally include in API requests. By default, fields with
7952	// empty or default values are omitted from API requests. However, any
7953	// non-pointer, non-interface field appearing in ForceSendFields will be
7954	// sent to the server regardless of whether the field is empty or not.
7955	// This may be used to include empty fields in Patch requests.
7956	ForceSendFields []string `json:"-"`
7957
7958	// NullFields is a list of field names (e.g. "ApiProxy") to include in
7959	// API requests with the JSON null value. By default, fields with empty
7960	// values are omitted from API requests. However, any field with an
7961	// empty value appearing in NullFields will be sent to the server as
7962	// null. It is an error if a field in this list has a non-empty value.
7963	// This may be used to include null fields in Patch requests.
7964	NullFields []string `json:"-"`
7965}
7966
7967func (s *GoogleCloudApigeeV1RuntimeTraceConfigOverride) MarshalJSON() ([]byte, error) {
7968	type NoMethod GoogleCloudApigeeV1RuntimeTraceConfigOverride
7969	raw := NoMethod(*s)
7970	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7971}
7972
7973// GoogleCloudApigeeV1RuntimeTraceSamplingConfig: NEXT ID: 3
7974// RuntimeTraceSamplingConfig represents the detail settings of
7975// distributed tracing. Only the fields that are defined in the
7976// distributed trace configuration can be overridden using the
7977// distribute trace configuration override APIs.
7978type GoogleCloudApigeeV1RuntimeTraceSamplingConfig struct {
7979	// Sampler: Sampler of distributed tracing. OFF is the default value.
7980	//
7981	// Possible values:
7982	//   "SAMPLER_UNSPECIFIED" - Sampler unspecified.
7983	//   "OFF" - OFF means distributed trace is disabled, or the sampling
7984	// probability is 0.
7985	//   "PROBABILITY" - PROBABILITY means traces are captured on a
7986	// probability that defined by sampling_rate. The sampling rate is
7987	// limited to 0 to 0.5 when this is set.
7988	Sampler string `json:"sampler,omitempty"`
7989
7990	// SamplingRate: Field sampling rate. This value is only applicable when
7991	// using the PROBABILITY sampler. The supported values are > 0 and <=
7992	// 0.5.
7993	SamplingRate float64 `json:"samplingRate,omitempty"`
7994
7995	// ForceSendFields is a list of field names (e.g. "Sampler") to
7996	// unconditionally include in API requests. By default, fields with
7997	// empty or default values are omitted from API requests. However, any
7998	// non-pointer, non-interface field appearing in ForceSendFields will be
7999	// sent to the server regardless of whether the field is empty or not.
8000	// This may be used to include empty fields in Patch requests.
8001	ForceSendFields []string `json:"-"`
8002
8003	// NullFields is a list of field names (e.g. "Sampler") to include in
8004	// API requests with the JSON null value. By default, fields with empty
8005	// values are omitted from API requests. However, any field with an
8006	// empty value appearing in NullFields will be sent to the server as
8007	// null. It is an error if a field in this list has a non-empty value.
8008	// This may be used to include null fields in Patch requests.
8009	NullFields []string `json:"-"`
8010}
8011
8012func (s *GoogleCloudApigeeV1RuntimeTraceSamplingConfig) MarshalJSON() ([]byte, error) {
8013	type NoMethod GoogleCloudApigeeV1RuntimeTraceSamplingConfig
8014	raw := NoMethod(*s)
8015	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8016}
8017
8018func (s *GoogleCloudApigeeV1RuntimeTraceSamplingConfig) UnmarshalJSON(data []byte) error {
8019	type NoMethod GoogleCloudApigeeV1RuntimeTraceSamplingConfig
8020	var s1 struct {
8021		SamplingRate gensupport.JSONFloat64 `json:"samplingRate"`
8022		*NoMethod
8023	}
8024	s1.NoMethod = (*NoMethod)(s)
8025	if err := json.Unmarshal(data, &s1); err != nil {
8026		return err
8027	}
8028	s.SamplingRate = float64(s1.SamplingRate)
8029	return nil
8030}
8031
8032// GoogleCloudApigeeV1Schema: Response for Schema call
8033type GoogleCloudApigeeV1Schema struct {
8034	// Dimensions: List of schema fields grouped as dimensions.
8035	Dimensions []*GoogleCloudApigeeV1SchemaSchemaElement `json:"dimensions,omitempty"`
8036
8037	// Meta: Additional metadata associated with schema. This is a legacy
8038	// field and usually consists of an empty array of strings.
8039	Meta []string `json:"meta,omitempty"`
8040
8041	// Metrics: List of schema fields grouped as dimensions that can be used
8042	// with an aggregate function such as `sum`, `avg`, `min`, and `max`.
8043	Metrics []*GoogleCloudApigeeV1SchemaSchemaElement `json:"metrics,omitempty"`
8044
8045	// ServerResponse contains the HTTP response code and headers from the
8046	// server.
8047	googleapi.ServerResponse `json:"-"`
8048
8049	// ForceSendFields is a list of field names (e.g. "Dimensions") to
8050	// unconditionally include in API requests. By default, fields with
8051	// empty or default values are omitted from API requests. However, any
8052	// non-pointer, non-interface field appearing in ForceSendFields will be
8053	// sent to the server regardless of whether the field is empty or not.
8054	// This may be used to include empty fields in Patch requests.
8055	ForceSendFields []string `json:"-"`
8056
8057	// NullFields is a list of field names (e.g. "Dimensions") to include in
8058	// API requests with the JSON null value. By default, fields with empty
8059	// values are omitted from API requests. However, any field with an
8060	// empty value appearing in NullFields will be sent to the server as
8061	// null. It is an error if a field in this list has a non-empty value.
8062	// This may be used to include null fields in Patch requests.
8063	NullFields []string `json:"-"`
8064}
8065
8066func (s *GoogleCloudApigeeV1Schema) MarshalJSON() ([]byte, error) {
8067	type NoMethod GoogleCloudApigeeV1Schema
8068	raw := NoMethod(*s)
8069	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8070}
8071
8072// GoogleCloudApigeeV1SchemaSchemaElement: Message type for the schema
8073// element
8074type GoogleCloudApigeeV1SchemaSchemaElement struct {
8075	// Name: Name of the field.
8076	Name string `json:"name,omitempty"`
8077
8078	// Properties: Properties for the schema field. For example: {
8079	// "createTime": "2016-02-26T10:23:09.592Z", "custom": "false", "type":
8080	// "string" }
8081	Properties *GoogleCloudApigeeV1SchemaSchemaProperty `json:"properties,omitempty"`
8082
8083	// ForceSendFields is a list of field names (e.g. "Name") to
8084	// unconditionally include in API requests. By default, fields with
8085	// empty or default values are omitted from API requests. However, any
8086	// non-pointer, non-interface field appearing in ForceSendFields will be
8087	// sent to the server regardless of whether the field is empty or not.
8088	// This may be used to include empty fields in Patch requests.
8089	ForceSendFields []string `json:"-"`
8090
8091	// NullFields is a list of field names (e.g. "Name") to include in API
8092	// requests with the JSON null value. By default, fields with empty
8093	// values are omitted from API requests. However, any field with an
8094	// empty value appearing in NullFields will be sent to the server as
8095	// null. It is an error if a field in this list has a non-empty value.
8096	// This may be used to include null fields in Patch requests.
8097	NullFields []string `json:"-"`
8098}
8099
8100func (s *GoogleCloudApigeeV1SchemaSchemaElement) MarshalJSON() ([]byte, error) {
8101	type NoMethod GoogleCloudApigeeV1SchemaSchemaElement
8102	raw := NoMethod(*s)
8103	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8104}
8105
8106// GoogleCloudApigeeV1SchemaSchemaProperty: Properties for the schema
8107// field.
8108type GoogleCloudApigeeV1SchemaSchemaProperty struct {
8109	// CreateTime: Time the field was created in RFC3339 string form. For
8110	// example: `2016-02-26T10:23:09.592Z`.
8111	CreateTime string `json:"createTime,omitempty"`
8112
8113	// Custom: Flag that specifies whether the field is standard in the
8114	// dataset or a custom field created by the customer. `true` indicates
8115	// that it is a custom field.
8116	Custom string `json:"custom,omitempty"`
8117
8118	// Type: Data type of the field.
8119	Type string `json:"type,omitempty"`
8120
8121	// ForceSendFields is a list of field names (e.g. "CreateTime") to
8122	// unconditionally include in API requests. By default, fields with
8123	// empty or default values are omitted from API requests. However, any
8124	// non-pointer, non-interface field appearing in ForceSendFields will be
8125	// sent to the server regardless of whether the field is empty or not.
8126	// This may be used to include empty fields in Patch requests.
8127	ForceSendFields []string `json:"-"`
8128
8129	// NullFields is a list of field names (e.g. "CreateTime") to include in
8130	// API requests with the JSON null value. By default, fields with empty
8131	// values are omitted from API requests. However, any field with an
8132	// empty value appearing in NullFields will be sent to the server as
8133	// null. It is an error if a field in this list has a non-empty value.
8134	// This may be used to include null fields in Patch requests.
8135	NullFields []string `json:"-"`
8136}
8137
8138func (s *GoogleCloudApigeeV1SchemaSchemaProperty) MarshalJSON() ([]byte, error) {
8139	type NoMethod GoogleCloudApigeeV1SchemaSchemaProperty
8140	raw := NoMethod(*s)
8141	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8142}
8143
8144type GoogleCloudApigeeV1ServiceIssuersMapping struct {
8145	// EmailIds: List of trusted issuer email ids.
8146	EmailIds []string `json:"emailIds,omitempty"`
8147
8148	// Service: String indicating the Apigee service name.
8149	Service string `json:"service,omitempty"`
8150
8151	// ForceSendFields is a list of field names (e.g. "EmailIds") to
8152	// unconditionally include in API requests. By default, fields with
8153	// empty or default values are omitted from API requests. However, any
8154	// non-pointer, non-interface field appearing in ForceSendFields will be
8155	// sent to the server regardless of whether the field is empty or not.
8156	// This may be used to include empty fields in Patch requests.
8157	ForceSendFields []string `json:"-"`
8158
8159	// NullFields is a list of field names (e.g. "EmailIds") to include in
8160	// API requests with the JSON null value. By default, fields with empty
8161	// values are omitted from API requests. However, any field with an
8162	// empty value appearing in NullFields will be sent to the server as
8163	// null. It is an error if a field in this list has a non-empty value.
8164	// This may be used to include null fields in Patch requests.
8165	NullFields []string `json:"-"`
8166}
8167
8168func (s *GoogleCloudApigeeV1ServiceIssuersMapping) MarshalJSON() ([]byte, error) {
8169	type NoMethod GoogleCloudApigeeV1ServiceIssuersMapping
8170	raw := NoMethod(*s)
8171	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8172}
8173
8174// GoogleCloudApigeeV1Session: Session carries the debug session id and
8175// its creation time.
8176type GoogleCloudApigeeV1Session struct {
8177	// Id: The debug session ID.
8178	Id string `json:"id,omitempty"`
8179
8180	// TimestampMs: The first transaction creation timestamp in millisecond,
8181	// recoreded by UAP.
8182	TimestampMs int64 `json:"timestampMs,omitempty,string"`
8183
8184	// ForceSendFields is a list of field names (e.g. "Id") to
8185	// unconditionally include in API requests. By default, fields with
8186	// empty or default values are omitted from API requests. However, any
8187	// non-pointer, non-interface field appearing in ForceSendFields will be
8188	// sent to the server regardless of whether the field is empty or not.
8189	// This may be used to include empty fields in Patch requests.
8190	ForceSendFields []string `json:"-"`
8191
8192	// NullFields is a list of field names (e.g. "Id") to include in API
8193	// requests with the JSON null value. By default, fields with empty
8194	// values are omitted from API requests. However, any field with an
8195	// empty value appearing in NullFields will be sent to the server as
8196	// null. It is an error if a field in this list has a non-empty value.
8197	// This may be used to include null fields in Patch requests.
8198	NullFields []string `json:"-"`
8199}
8200
8201func (s *GoogleCloudApigeeV1Session) MarshalJSON() ([]byte, error) {
8202	type NoMethod GoogleCloudApigeeV1Session
8203	raw := NoMethod(*s)
8204	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8205}
8206
8207// GoogleCloudApigeeV1SetAddonsRequest: Request for SetAddons.
8208type GoogleCloudApigeeV1SetAddonsRequest struct {
8209	// AddonsConfig: Required. Add-on configurations.
8210	AddonsConfig *GoogleCloudApigeeV1AddonsConfig `json:"addonsConfig,omitempty"`
8211
8212	// ForceSendFields is a list of field names (e.g. "AddonsConfig") to
8213	// unconditionally include in API requests. By default, fields with
8214	// empty or default values are omitted from API requests. However, any
8215	// non-pointer, non-interface field appearing in ForceSendFields will be
8216	// sent to the server regardless of whether the field is empty or not.
8217	// This may be used to include empty fields in Patch requests.
8218	ForceSendFields []string `json:"-"`
8219
8220	// NullFields is a list of field names (e.g. "AddonsConfig") to include
8221	// in API requests with the JSON null value. By default, fields with
8222	// empty values are omitted from API requests. However, any field with
8223	// an empty value appearing in NullFields will be sent to the server as
8224	// null. It is an error if a field in this list has a non-empty value.
8225	// This may be used to include null fields in Patch requests.
8226	NullFields []string `json:"-"`
8227}
8228
8229func (s *GoogleCloudApigeeV1SetAddonsRequest) MarshalJSON() ([]byte, error) {
8230	type NoMethod GoogleCloudApigeeV1SetAddonsRequest
8231	raw := NoMethod(*s)
8232	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8233}
8234
8235// GoogleCloudApigeeV1SharedFlow: The metadata describing a shared flow
8236type GoogleCloudApigeeV1SharedFlow struct {
8237	// LatestRevisionId: The id of the most recently created revision for
8238	// this shared flow.
8239	LatestRevisionId string `json:"latestRevisionId,omitempty"`
8240
8241	// MetaData: Metadata describing the shared flow.
8242	MetaData *GoogleCloudApigeeV1EntityMetadata `json:"metaData,omitempty"`
8243
8244	// Name: The ID of the shared flow.
8245	Name string `json:"name,omitempty"`
8246
8247	// Revision: A list of revisions of this shared flow.
8248	Revision []string `json:"revision,omitempty"`
8249
8250	// ServerResponse contains the HTTP response code and headers from the
8251	// server.
8252	googleapi.ServerResponse `json:"-"`
8253
8254	// ForceSendFields is a list of field names (e.g. "LatestRevisionId") to
8255	// unconditionally include in API requests. By default, fields with
8256	// empty or default values are omitted from API requests. However, any
8257	// non-pointer, non-interface field appearing in ForceSendFields will be
8258	// sent to the server regardless of whether the field is empty or not.
8259	// This may be used to include empty fields in Patch requests.
8260	ForceSendFields []string `json:"-"`
8261
8262	// NullFields is a list of field names (e.g. "LatestRevisionId") to
8263	// include in API requests with the JSON null value. By default, fields
8264	// with empty values are omitted from API requests. However, any field
8265	// with an empty value appearing in NullFields will be sent to the
8266	// server as null. It is an error if a field in this list has a
8267	// non-empty value. This may be used to include null fields in Patch
8268	// requests.
8269	NullFields []string `json:"-"`
8270}
8271
8272func (s *GoogleCloudApigeeV1SharedFlow) MarshalJSON() ([]byte, error) {
8273	type NoMethod GoogleCloudApigeeV1SharedFlow
8274	raw := NoMethod(*s)
8275	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8276}
8277
8278// GoogleCloudApigeeV1SharedFlowRevision: The metadata describing a
8279// shared flow revision.
8280type GoogleCloudApigeeV1SharedFlowRevision struct {
8281	// ConfigurationVersion: The version of the configuration schema to
8282	// which this shared flow conforms. The only supported value currently
8283	// is majorVersion 4 and minorVersion 0. This setting may be used in the
8284	// future to enable evolution of the shared flow format.
8285	ConfigurationVersion *GoogleCloudApigeeV1ConfigVersion `json:"configurationVersion,omitempty"`
8286
8287	// ContextInfo: A textual description of the shared flow revision.
8288	ContextInfo string `json:"contextInfo,omitempty"`
8289
8290	// CreatedAt: Time at which this shared flow revision was created, in
8291	// milliseconds since epoch.
8292	CreatedAt int64 `json:"createdAt,omitempty,string"`
8293
8294	// Description: Description of the shared flow revision.
8295	Description string `json:"description,omitempty"`
8296
8297	// DisplayName: The human readable name of this shared flow.
8298	DisplayName string `json:"displayName,omitempty"`
8299
8300	// EntityMetaDataAsProperties: A Key-Value map of metadata about this
8301	// shared flow revision.
8302	EntityMetaDataAsProperties map[string]string `json:"entityMetaDataAsProperties,omitempty"`
8303
8304	// LastModifiedAt: Time at which this shared flow revision was most
8305	// recently modified, in milliseconds since epoch.
8306	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
8307
8308	// Name: The resource ID of the parent shared flow.
8309	Name string `json:"name,omitempty"`
8310
8311	// Policies: A list of policy names included in this shared flow
8312	// revision.
8313	Policies []string `json:"policies,omitempty"`
8314
8315	// ResourceFiles: The resource files included in this shared flow
8316	// revision.
8317	ResourceFiles *GoogleCloudApigeeV1ResourceFiles `json:"resourceFiles,omitempty"`
8318
8319	// Resources: A list of the resources included in this shared flow
8320	// revision formatted as "{type}://{name}".
8321	Resources []string `json:"resources,omitempty"`
8322
8323	// Revision: The resource ID of this revision.
8324	Revision string `json:"revision,omitempty"`
8325
8326	// SharedFlows: A list of the shared flow names included in this shared
8327	// flow revision.
8328	SharedFlows []string `json:"sharedFlows,omitempty"`
8329
8330	// Type: The string "Application"
8331	Type string `json:"type,omitempty"`
8332
8333	// ServerResponse contains the HTTP response code and headers from the
8334	// server.
8335	googleapi.ServerResponse `json:"-"`
8336
8337	// ForceSendFields is a list of field names (e.g.
8338	// "ConfigurationVersion") to unconditionally include in API requests.
8339	// By default, fields with empty or default values are omitted from API
8340	// requests. However, any non-pointer, non-interface field appearing in
8341	// ForceSendFields will be sent to the server regardless of whether the
8342	// field is empty or not. This may be used to include empty fields in
8343	// Patch requests.
8344	ForceSendFields []string `json:"-"`
8345
8346	// NullFields is a list of field names (e.g. "ConfigurationVersion") to
8347	// include in API requests with the JSON null value. By default, fields
8348	// with empty values are omitted from API requests. However, any field
8349	// with an empty value appearing in NullFields will be sent to the
8350	// server as null. It is an error if a field in this list has a
8351	// non-empty value. This may be used to include null fields in Patch
8352	// requests.
8353	NullFields []string `json:"-"`
8354}
8355
8356func (s *GoogleCloudApigeeV1SharedFlowRevision) MarshalJSON() ([]byte, error) {
8357	type NoMethod GoogleCloudApigeeV1SharedFlowRevision
8358	raw := NoMethod(*s)
8359	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8360}
8361
8362// GoogleCloudApigeeV1Stats: This message type encapsulates a stats
8363// response.
8364type GoogleCloudApigeeV1Stats struct {
8365	// Environments: This field contains a list of query results on
8366	// environment level.
8367	Environments []*GoogleCloudApigeeV1StatsEnvironmentStats `json:"environments,omitempty"`
8368
8369	// Hosts: This field contains a list of query results grouped by host.
8370	Hosts []*GoogleCloudApigeeV1StatsHostStats `json:"hosts,omitempty"`
8371
8372	// MetaData: This field contains the metadata information.
8373	MetaData *GoogleCloudApigeeV1Metadata `json:"metaData,omitempty"`
8374
8375	// ServerResponse contains the HTTP response code and headers from the
8376	// server.
8377	googleapi.ServerResponse `json:"-"`
8378
8379	// ForceSendFields is a list of field names (e.g. "Environments") to
8380	// unconditionally include in API requests. By default, fields with
8381	// empty or default values are omitted from API requests. However, any
8382	// non-pointer, non-interface field appearing in ForceSendFields will be
8383	// sent to the server regardless of whether the field is empty or not.
8384	// This may be used to include empty fields in Patch requests.
8385	ForceSendFields []string `json:"-"`
8386
8387	// NullFields is a list of field names (e.g. "Environments") to include
8388	// in API requests with the JSON null value. By default, fields with
8389	// empty values are omitted from API requests. However, any field with
8390	// an empty value appearing in NullFields will be sent to the server as
8391	// null. It is an error if a field in this list has a non-empty value.
8392	// This may be used to include null fields in Patch requests.
8393	NullFields []string `json:"-"`
8394}
8395
8396func (s *GoogleCloudApigeeV1Stats) MarshalJSON() ([]byte, error) {
8397	type NoMethod GoogleCloudApigeeV1Stats
8398	raw := NoMethod(*s)
8399	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8400}
8401
8402// GoogleCloudApigeeV1StatsEnvironmentStats: This message type
8403// encapsulates the environment wrapper: "environments": [ { "metrics":
8404// [ { "name": "sum(message_count)", "values": [ "2.52056245E8" ] } ],
8405// "name": "prod" } ]
8406type GoogleCloudApigeeV1StatsEnvironmentStats struct {
8407	// Dimensions: This field contains the list of metrics grouped under
8408	// dimensions.
8409	Dimensions []*GoogleCloudApigeeV1DimensionMetric `json:"dimensions,omitempty"`
8410
8411	// Metrics: In the final response, only one of the following fields will
8412	// be present based on the dimensions provided. If no dimensions are
8413	// provided, then only a top level metrics is provided. If dimensions
8414	// are included, then there will be a top level dimensions field under
8415	// environments which will contain metrics values and the dimension
8416	// name. Example: "environments": [ { "dimensions": [ { "metrics": [ {
8417	// "name": "sum(message_count)", "values": [ "2.14049521E8" ] } ],
8418	// "name": "nit_proxy" } ], "name": "prod" } ] OR "environments": [ {
8419	// "metrics": [ { "name": "sum(message_count)", "values": [
8420	// "2.19026331E8" ] } ], "name": "prod" } ] This field contains the list
8421	// of metric values.
8422	Metrics []*GoogleCloudApigeeV1Metric `json:"metrics,omitempty"`
8423
8424	Name string `json:"name,omitempty"`
8425
8426	// ForceSendFields is a list of field names (e.g. "Dimensions") to
8427	// unconditionally include in API requests. By default, fields with
8428	// empty or default values are omitted from API requests. However, any
8429	// non-pointer, non-interface field appearing in ForceSendFields will be
8430	// sent to the server regardless of whether the field is empty or not.
8431	// This may be used to include empty fields in Patch requests.
8432	ForceSendFields []string `json:"-"`
8433
8434	// NullFields is a list of field names (e.g. "Dimensions") to include in
8435	// API requests with the JSON null value. By default, fields with empty
8436	// values are omitted from API requests. However, any field with an
8437	// empty value appearing in NullFields will be sent to the server as
8438	// null. It is an error if a field in this list has a non-empty value.
8439	// This may be used to include null fields in Patch requests.
8440	NullFields []string `json:"-"`
8441}
8442
8443func (s *GoogleCloudApigeeV1StatsEnvironmentStats) MarshalJSON() ([]byte, error) {
8444	type NoMethod GoogleCloudApigeeV1StatsEnvironmentStats
8445	raw := NoMethod(*s)
8446	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8447}
8448
8449// GoogleCloudApigeeV1StatsHostStats: This message type encapsulates the
8450// hostname wrapper: "hosts": [ { "metrics": [ { "name":
8451// "sum(message_count)", "values": [ "2.52056245E8" ] } ], "name":
8452// "example.com" } ]
8453type GoogleCloudApigeeV1StatsHostStats struct {
8454	// Dimensions: This field contains the list of metrics grouped under
8455	// dimensions.
8456	Dimensions []*GoogleCloudApigeeV1DimensionMetric `json:"dimensions,omitempty"`
8457
8458	// Metrics: In the final response, only one of the following fields will
8459	// be present based on the dimensions provided. If no dimensions are
8460	// provided, then only a top level metrics is provided. If dimensions
8461	// are included, then there will be a top level dimensions field under
8462	// hostnames which will contain metrics values and the dimension name.
8463	// Example: "hosts": [ { "dimensions": [ { "metrics": [ { "name":
8464	// "sum(message_count)", "values": [ "2.14049521E8" ] } ], "name":
8465	// "nit_proxy" } ], "name": "example.com" } ] OR "hosts": [ { "metrics":
8466	// [ { "name": "sum(message_count)", "values": [ "2.19026331E8" ] } ],
8467	// "name": "example.com" } ] This field contains the list of metric
8468	// values.
8469	Metrics []*GoogleCloudApigeeV1Metric `json:"metrics,omitempty"`
8470
8471	// Name: This field contains the hostname used in query.
8472	Name string `json:"name,omitempty"`
8473
8474	// ForceSendFields is a list of field names (e.g. "Dimensions") to
8475	// unconditionally include in API requests. By default, fields with
8476	// empty or default values are omitted from API requests. However, any
8477	// non-pointer, non-interface field appearing in ForceSendFields will be
8478	// sent to the server regardless of whether the field is empty or not.
8479	// This may be used to include empty fields in Patch requests.
8480	ForceSendFields []string `json:"-"`
8481
8482	// NullFields is a list of field names (e.g. "Dimensions") to include in
8483	// API requests with the JSON null value. By default, fields with empty
8484	// values are omitted from API requests. However, any field with an
8485	// empty value appearing in NullFields will be sent to the server as
8486	// null. It is an error if a field in this list has a non-empty value.
8487	// This may be used to include null fields in Patch requests.
8488	NullFields []string `json:"-"`
8489}
8490
8491func (s *GoogleCloudApigeeV1StatsHostStats) MarshalJSON() ([]byte, error) {
8492	type NoMethod GoogleCloudApigeeV1StatsHostStats
8493	raw := NoMethod(*s)
8494	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8495}
8496
8497// GoogleCloudApigeeV1Subscription: Pub/Sub subscription of an
8498// environment.
8499type GoogleCloudApigeeV1Subscription struct {
8500	// Name: Full name of the Pub/Sub subcription. Use the following
8501	// structure in your request: `subscription
8502	// "projects/foo/subscription/bar"
8503	Name string `json:"name,omitempty"`
8504
8505	// ServerResponse contains the HTTP response code and headers from the
8506	// server.
8507	googleapi.ServerResponse `json:"-"`
8508
8509	// ForceSendFields is a list of field names (e.g. "Name") to
8510	// unconditionally include in API requests. By default, fields with
8511	// empty or default values are omitted from API requests. However, any
8512	// non-pointer, non-interface field appearing in ForceSendFields will be
8513	// sent to the server regardless of whether the field is empty or not.
8514	// This may be used to include empty fields in Patch requests.
8515	ForceSendFields []string `json:"-"`
8516
8517	// NullFields is a list of field names (e.g. "Name") to include in API
8518	// requests with the JSON null value. By default, fields with empty
8519	// values are omitted from API requests. However, any field with an
8520	// empty value appearing in NullFields will be sent to the server as
8521	// null. It is an error if a field in this list has a non-empty value.
8522	// This may be used to include null fields in Patch requests.
8523	NullFields []string `json:"-"`
8524}
8525
8526func (s *GoogleCloudApigeeV1Subscription) MarshalJSON() ([]byte, error) {
8527	type NoMethod GoogleCloudApigeeV1Subscription
8528	raw := NoMethod(*s)
8529	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8530}
8531
8532type GoogleCloudApigeeV1SyncAuthorization struct {
8533	// Etag: Entity tag (ETag) used for optimistic concurrency control as a
8534	// way to help prevent simultaneous updates from overwriting each other.
8535	// For example, when you call getSyncAuthorization
8536	// (organizations/getSyncAuthorization) an ETag is returned in the
8537	// response. Pass that ETag when calling the setSyncAuthorization
8538	// (organizations/setSyncAuthorization) to ensure that you are updating
8539	// the correct version. If you don't pass the ETag in the call to
8540	// `setSyncAuthorization`, then the existing authorization is
8541	// overwritten indiscriminately. **Note**: We strongly recommend that
8542	// you use the ETag in the read-modify-write cycle to avoid race
8543	// conditions.
8544	Etag string `json:"etag,omitempty"`
8545
8546	// Identities: Required. Array of service accounts to grant access to
8547	// control plane resources, each specified using the following format:
8548	// `serviceAccount:` service-account-name. The service-account-name is
8549	// formatted like an email address. For example:
8550	// `my-synchronizer-manager-service_account@my_project_id.iam.gserviceacc
8551	// ount.com` You might specify multiple service accounts, for example,
8552	// if you have multiple environments and wish to assign a unique service
8553	// account to each one. The service accounts must have **Apigee
8554	// Synchronizer Manager** role. See also Create service accounts
8555	// (https://cloud.google.com/apigee/docs/hybrid/latest/sa-about#create-the-service-accounts).
8556	Identities []string `json:"identities,omitempty"`
8557
8558	// ServerResponse contains the HTTP response code and headers from the
8559	// server.
8560	googleapi.ServerResponse `json:"-"`
8561
8562	// ForceSendFields is a list of field names (e.g. "Etag") to
8563	// unconditionally include in API requests. By default, fields with
8564	// empty or default values are omitted from API requests. However, any
8565	// non-pointer, non-interface field appearing in ForceSendFields will be
8566	// sent to the server regardless of whether the field is empty or not.
8567	// This may be used to include empty fields in Patch requests.
8568	ForceSendFields []string `json:"-"`
8569
8570	// NullFields is a list of field names (e.g. "Etag") to include in API
8571	// requests with the JSON null value. By default, fields with empty
8572	// values are omitted from API requests. However, any field with an
8573	// empty value appearing in NullFields will be sent to the server as
8574	// null. It is an error if a field in this list has a non-empty value.
8575	// This may be used to include null fields in Patch requests.
8576	NullFields []string `json:"-"`
8577}
8578
8579func (s *GoogleCloudApigeeV1SyncAuthorization) MarshalJSON() ([]byte, error) {
8580	type NoMethod GoogleCloudApigeeV1SyncAuthorization
8581	raw := NoMethod(*s)
8582	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8583}
8584
8585// GoogleCloudApigeeV1TargetServer: TargetServer configuration.
8586// TargetServers are used to decouple a proxy's TargetEndpoint
8587// HTTPTargetConnections from concrete URLs for backend services.
8588type GoogleCloudApigeeV1TargetServer struct {
8589	// Description: Optional. A human-readable description of this
8590	// TargetServer.
8591	Description string `json:"description,omitempty"`
8592
8593	// Host: Required. The host name this target connects to. Value must be
8594	// a valid hostname as described by RFC-1123.
8595	Host string `json:"host,omitempty"`
8596
8597	// IsEnabled: Optional. Enabling/disabling a TargetServer is useful when
8598	// TargetServers are used in load balancing configurations, and one or
8599	// more TargetServers need to taken out of rotation periodically.
8600	// Defaults to true.
8601	IsEnabled bool `json:"isEnabled,omitempty"`
8602
8603	// Name: Required. The resource id of this target server. Values must
8604	// match the regular expression
8605	Name string `json:"name,omitempty"`
8606
8607	// Port: Required. The port number this target connects to on the given
8608	// host. Value must be between 1 and 65535, inclusive.
8609	Port int64 `json:"port,omitempty"`
8610
8611	// Protocol: Immutable. The protocol used by this TargetServer.
8612	//
8613	// Possible values:
8614	//   "PROTOCOL_UNSPECIFIED" - UNSPECIFIED defaults to HTTP for backwards
8615	// compatibility.
8616	//   "HTTP" - The TargetServer uses HTTP.
8617	//   "GRPC" - The TargetServer uses GRPC.
8618	Protocol string `json:"protocol,omitempty"`
8619
8620	// SSLInfo: Optional. Specifies TLS configuration info for this
8621	// TargetServer. The JSON name is `sSLInfo` for legacy/backwards
8622	// compatibility reasons -- Edge originally supported SSL, and the name
8623	// is still used for TLS configuration.
8624	SSLInfo *GoogleCloudApigeeV1TlsInfo `json:"sSLInfo,omitempty"`
8625
8626	// ServerResponse contains the HTTP response code and headers from the
8627	// server.
8628	googleapi.ServerResponse `json:"-"`
8629
8630	// ForceSendFields is a list of field names (e.g. "Description") to
8631	// unconditionally include in API requests. By default, fields with
8632	// empty or default values are omitted from API requests. However, any
8633	// non-pointer, non-interface field appearing in ForceSendFields will be
8634	// sent to the server regardless of whether the field is empty or not.
8635	// This may be used to include empty fields in Patch requests.
8636	ForceSendFields []string `json:"-"`
8637
8638	// NullFields is a list of field names (e.g. "Description") to include
8639	// in API requests with the JSON null value. By default, fields with
8640	// empty values are omitted from API requests. However, any field with
8641	// an empty value appearing in NullFields will be sent to the server as
8642	// null. It is an error if a field in this list has a non-empty value.
8643	// This may be used to include null fields in Patch requests.
8644	NullFields []string `json:"-"`
8645}
8646
8647func (s *GoogleCloudApigeeV1TargetServer) MarshalJSON() ([]byte, error) {
8648	type NoMethod GoogleCloudApigeeV1TargetServer
8649	raw := NoMethod(*s)
8650	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8651}
8652
8653type GoogleCloudApigeeV1TargetServerConfig struct {
8654	// Enabled: Whether the target server is enabled. An empty/omitted value
8655	// for this field should be interpreted as true.
8656	Enabled bool `json:"enabled,omitempty"`
8657
8658	// Host: Host name of the target server.
8659	Host string `json:"host,omitempty"`
8660
8661	// Name: Target server revision name in the following format:
8662	// `organizations/{org}/environments/{env}/targetservers/{targetserver}/r
8663	// evisions/{rev}`
8664	Name string `json:"name,omitempty"`
8665
8666	// Port: Port number for the target server.
8667	Port int64 `json:"port,omitempty"`
8668
8669	// Protocol: The protocol used by this target server.
8670	//
8671	// Possible values:
8672	//   "PROTOCOL_UNSPECIFIED" - UNSPECIFIED defaults to HTTP for backwards
8673	// compatibility.
8674	//   "HTTP" - The TargetServer uses HTTP.
8675	//   "GRPC" - The TargetServer uses GRPC.
8676	Protocol string `json:"protocol,omitempty"`
8677
8678	// TlsInfo: TLS settings for the target server.
8679	TlsInfo *GoogleCloudApigeeV1TlsInfoConfig `json:"tlsInfo,omitempty"`
8680
8681	// ForceSendFields is a list of field names (e.g. "Enabled") to
8682	// unconditionally include in API requests. By default, fields with
8683	// empty or default values are omitted from API requests. However, any
8684	// non-pointer, non-interface field appearing in ForceSendFields will be
8685	// sent to the server regardless of whether the field is empty or not.
8686	// This may be used to include empty fields in Patch requests.
8687	ForceSendFields []string `json:"-"`
8688
8689	// NullFields is a list of field names (e.g. "Enabled") to include in
8690	// API requests with the JSON null value. By default, fields with empty
8691	// values are omitted from API requests. However, any field with an
8692	// empty value appearing in NullFields will be sent to the server as
8693	// null. It is an error if a field in this list has a non-empty value.
8694	// This may be used to include null fields in Patch requests.
8695	NullFields []string `json:"-"`
8696}
8697
8698func (s *GoogleCloudApigeeV1TargetServerConfig) MarshalJSON() ([]byte, error) {
8699	type NoMethod GoogleCloudApigeeV1TargetServerConfig
8700	raw := NoMethod(*s)
8701	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8702}
8703
8704// GoogleCloudApigeeV1TestDatastoreResponse: The response for
8705// TestDatastore
8706type GoogleCloudApigeeV1TestDatastoreResponse struct {
8707	// Error: Output only. Error message of test connection failure
8708	Error string `json:"error,omitempty"`
8709
8710	// State: Output only. It could be `completed` or `failed`
8711	State string `json:"state,omitempty"`
8712
8713	// ServerResponse contains the HTTP response code and headers from the
8714	// server.
8715	googleapi.ServerResponse `json:"-"`
8716
8717	// ForceSendFields is a list of field names (e.g. "Error") to
8718	// unconditionally include in API requests. By default, fields with
8719	// empty or default values are omitted from API requests. However, any
8720	// non-pointer, non-interface field appearing in ForceSendFields will be
8721	// sent to the server regardless of whether the field is empty or not.
8722	// This may be used to include empty fields in Patch requests.
8723	ForceSendFields []string `json:"-"`
8724
8725	// NullFields is a list of field names (e.g. "Error") to include in API
8726	// requests with the JSON null value. By default, fields with empty
8727	// values are omitted from API requests. However, any field with an
8728	// empty value appearing in NullFields will be sent to the server as
8729	// null. It is an error if a field in this list has a non-empty value.
8730	// This may be used to include null fields in Patch requests.
8731	NullFields []string `json:"-"`
8732}
8733
8734func (s *GoogleCloudApigeeV1TestDatastoreResponse) MarshalJSON() ([]byte, error) {
8735	type NoMethod GoogleCloudApigeeV1TestDatastoreResponse
8736	raw := NoMethod(*s)
8737	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8738}
8739
8740// GoogleCloudApigeeV1TlsInfo: TLS configuration information for
8741// VirtualHosts and TargetServers.
8742type GoogleCloudApigeeV1TlsInfo struct {
8743	// Ciphers: The SSL/TLS cipher suites to be used. Must be one of the
8744	// cipher suite names listed in:
8745	// http://docs.oracle.com/javase/8/docs/technotes/guides/security/StandardNames.html#ciphersuites
8746	Ciphers []string `json:"ciphers,omitempty"`
8747
8748	// ClientAuthEnabled: Optional. Enables two-way TLS.
8749	ClientAuthEnabled bool `json:"clientAuthEnabled,omitempty"`
8750
8751	// CommonName: The TLS Common Name of the certificate.
8752	CommonName *GoogleCloudApigeeV1TlsInfoCommonName `json:"commonName,omitempty"`
8753
8754	// Enabled: Required. Enables TLS. If false, neither one-way nor two-way
8755	// TLS will be enabled.
8756	Enabled bool `json:"enabled,omitempty"`
8757
8758	// IgnoreValidationErrors: If true, Edge ignores TLS certificate errors.
8759	// Valid when configuring TLS for target servers and target endpoints,
8760	// and when configuring virtual hosts that use 2-way TLS. When used with
8761	// a target endpoint/target server, if the backend system uses SNI and
8762	// returns a cert with a subject Distinguished Name (DN) that does not
8763	// match the hostname, there is no way to ignore the error and the
8764	// connection fails.
8765	IgnoreValidationErrors bool `json:"ignoreValidationErrors,omitempty"`
8766
8767	// KeyAlias: Required if `client_auth_enabled` is true. The resource ID
8768	// for the alias containing the private key and cert.
8769	KeyAlias string `json:"keyAlias,omitempty"`
8770
8771	// KeyStore: Required if `client_auth_enabled` is true. The resource ID
8772	// of the keystore. References not yet supported.
8773	KeyStore string `json:"keyStore,omitempty"`
8774
8775	// Protocols: The TLS versioins to be used.
8776	Protocols []string `json:"protocols,omitempty"`
8777
8778	// TrustStore: The resource ID of the truststore. References not yet
8779	// supported.
8780	TrustStore string `json:"trustStore,omitempty"`
8781
8782	// ForceSendFields is a list of field names (e.g. "Ciphers") to
8783	// unconditionally include in API requests. By default, fields with
8784	// empty or default values are omitted from API requests. However, any
8785	// non-pointer, non-interface field appearing in ForceSendFields will be
8786	// sent to the server regardless of whether the field is empty or not.
8787	// This may be used to include empty fields in Patch requests.
8788	ForceSendFields []string `json:"-"`
8789
8790	// NullFields is a list of field names (e.g. "Ciphers") to include in
8791	// API requests with the JSON null value. By default, fields with empty
8792	// values are omitted from API requests. However, any field with an
8793	// empty value appearing in NullFields will be sent to the server as
8794	// null. It is an error if a field in this list has a non-empty value.
8795	// This may be used to include null fields in Patch requests.
8796	NullFields []string `json:"-"`
8797}
8798
8799func (s *GoogleCloudApigeeV1TlsInfo) MarshalJSON() ([]byte, error) {
8800	type NoMethod GoogleCloudApigeeV1TlsInfo
8801	raw := NoMethod(*s)
8802	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8803}
8804
8805type GoogleCloudApigeeV1TlsInfoCommonName struct {
8806	// Value: The TLS Common Name string of the certificate.
8807	Value string `json:"value,omitempty"`
8808
8809	// WildcardMatch: Indicates whether the cert should be matched against
8810	// as a wildcard cert.
8811	WildcardMatch bool `json:"wildcardMatch,omitempty"`
8812
8813	// ForceSendFields is a list of field names (e.g. "Value") to
8814	// unconditionally include in API requests. By default, fields with
8815	// empty or default values are omitted from API requests. However, any
8816	// non-pointer, non-interface field appearing in ForceSendFields will be
8817	// sent to the server regardless of whether the field is empty or not.
8818	// This may be used to include empty fields in Patch requests.
8819	ForceSendFields []string `json:"-"`
8820
8821	// NullFields is a list of field names (e.g. "Value") to include in API
8822	// requests with the JSON null value. By default, fields with empty
8823	// values are omitted from API requests. However, any field with an
8824	// empty value appearing in NullFields will be sent to the server as
8825	// null. It is an error if a field in this list has a non-empty value.
8826	// This may be used to include null fields in Patch requests.
8827	NullFields []string `json:"-"`
8828}
8829
8830func (s *GoogleCloudApigeeV1TlsInfoCommonName) MarshalJSON() ([]byte, error) {
8831	type NoMethod GoogleCloudApigeeV1TlsInfoCommonName
8832	raw := NoMethod(*s)
8833	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8834}
8835
8836type GoogleCloudApigeeV1TlsInfoConfig struct {
8837	// Ciphers: List of ciphers that are granted access.
8838	Ciphers []string `json:"ciphers,omitempty"`
8839
8840	// ClientAuthEnabled: Flag that specifies whether client-side
8841	// authentication is enabled for the target server. Enables two-way TLS.
8842	ClientAuthEnabled bool `json:"clientAuthEnabled,omitempty"`
8843
8844	// CommonName: Common name to validate the target server against.
8845	CommonName *GoogleCloudApigeeV1CommonNameConfig `json:"commonName,omitempty"`
8846
8847	// Enabled: Flag that specifies whether one-way TLS is enabled. Set to
8848	// `true` to enable one-way TLS.
8849	Enabled bool `json:"enabled,omitempty"`
8850
8851	// IgnoreValidationErrors: Flag that specifies whether to ignore TLS
8852	// certificate validation errors. Set to `true` to ignore errors.
8853	IgnoreValidationErrors bool `json:"ignoreValidationErrors,omitempty"`
8854
8855	// KeyAlias: Name of the alias used for client-side authentication in
8856	// the following format:
8857	// `organizations/{org}/environments/{env}/keystores/{keystore}/aliases/{
8858	// alias}`
8859	KeyAlias string `json:"keyAlias,omitempty"`
8860
8861	// KeyAliasReference: Reference name and alias pair to use for
8862	// client-side authentication.
8863	KeyAliasReference *GoogleCloudApigeeV1KeyAliasReference `json:"keyAliasReference,omitempty"`
8864
8865	// Protocols: List of TLS protocols that are granted access.
8866	Protocols []string `json:"protocols,omitempty"`
8867
8868	// TrustStore: Name of the keystore or keystore reference containing
8869	// trusted certificates for the server in the following format:
8870	// `organizations/{org}/environments/{env}/keystores/{keystore}` or
8871	// `organizations/{org}/environments/{env}/references/{reference}`
8872	TrustStore string `json:"trustStore,omitempty"`
8873
8874	// ForceSendFields is a list of field names (e.g. "Ciphers") to
8875	// unconditionally include in API requests. By default, fields with
8876	// empty or default values are omitted from API requests. However, any
8877	// non-pointer, non-interface field appearing in ForceSendFields will be
8878	// sent to the server regardless of whether the field is empty or not.
8879	// This may be used to include empty fields in Patch requests.
8880	ForceSendFields []string `json:"-"`
8881
8882	// NullFields is a list of field names (e.g. "Ciphers") to include in
8883	// API requests with the JSON null value. By default, fields with empty
8884	// values are omitted from API requests. However, any field with an
8885	// empty value appearing in NullFields will be sent to the server as
8886	// null. It is an error if a field in this list has a non-empty value.
8887	// This may be used to include null fields in Patch requests.
8888	NullFields []string `json:"-"`
8889}
8890
8891func (s *GoogleCloudApigeeV1TlsInfoConfig) MarshalJSON() ([]byte, error) {
8892	type NoMethod GoogleCloudApigeeV1TlsInfoConfig
8893	raw := NoMethod(*s)
8894	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8895}
8896
8897// GoogleCloudApigeeV1TraceConfig: TraceConfig defines the
8898// configurations in an environment of distributed trace.
8899type GoogleCloudApigeeV1TraceConfig struct {
8900	// Endpoint: Required. Endpoint of the exporter.
8901	Endpoint string `json:"endpoint,omitempty"`
8902
8903	// Exporter: Required. Exporter that is used to view the distributed
8904	// trace captured using OpenCensus. An exporter sends traces to any
8905	// backend that is capable of consuming them. Recorded spans can be
8906	// exported by registered exporters.
8907	//
8908	// Possible values:
8909	//   "EXPORTER_UNSPECIFIED" - Exporter unspecified
8910	//   "JAEGER" - Jaeger exporter
8911	//   "CLOUD_TRACE" - Cloudtrace exporter
8912	Exporter string `json:"exporter,omitempty"`
8913
8914	// SamplingConfig: Distributed trace configuration for all API proxies
8915	// in an environment. You can also override the configuration for a
8916	// specific API proxy using the distributed trace configuration
8917	// overrides API.
8918	SamplingConfig *GoogleCloudApigeeV1TraceSamplingConfig `json:"samplingConfig,omitempty"`
8919
8920	// ServerResponse contains the HTTP response code and headers from the
8921	// server.
8922	googleapi.ServerResponse `json:"-"`
8923
8924	// ForceSendFields is a list of field names (e.g. "Endpoint") to
8925	// unconditionally include in API requests. By default, fields with
8926	// empty or default values are omitted from API requests. However, any
8927	// non-pointer, non-interface field appearing in ForceSendFields will be
8928	// sent to the server regardless of whether the field is empty or not.
8929	// This may be used to include empty fields in Patch requests.
8930	ForceSendFields []string `json:"-"`
8931
8932	// NullFields is a list of field names (e.g. "Endpoint") to include in
8933	// API requests with the JSON null value. By default, fields with empty
8934	// values are omitted from API requests. However, any field with an
8935	// empty value appearing in NullFields will be sent to the server as
8936	// null. It is an error if a field in this list has a non-empty value.
8937	// This may be used to include null fields in Patch requests.
8938	NullFields []string `json:"-"`
8939}
8940
8941func (s *GoogleCloudApigeeV1TraceConfig) MarshalJSON() ([]byte, error) {
8942	type NoMethod GoogleCloudApigeeV1TraceConfig
8943	raw := NoMethod(*s)
8944	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8945}
8946
8947// GoogleCloudApigeeV1TraceConfigOverride: A representation of a
8948// configuration override.
8949type GoogleCloudApigeeV1TraceConfigOverride struct {
8950	// ApiProxy: ID of the API proxy that will have its trace configuration
8951	// overridden.
8952	ApiProxy string `json:"apiProxy,omitempty"`
8953
8954	// Name: ID of the trace configuration override specified as a
8955	// system-generated UUID.
8956	Name string `json:"name,omitempty"`
8957
8958	// SamplingConfig: Trace configuration to override.
8959	SamplingConfig *GoogleCloudApigeeV1TraceSamplingConfig `json:"samplingConfig,omitempty"`
8960
8961	// ServerResponse contains the HTTP response code and headers from the
8962	// server.
8963	googleapi.ServerResponse `json:"-"`
8964
8965	// ForceSendFields is a list of field names (e.g. "ApiProxy") to
8966	// unconditionally include in API requests. By default, fields with
8967	// empty or default values are omitted from API requests. However, any
8968	// non-pointer, non-interface field appearing in ForceSendFields will be
8969	// sent to the server regardless of whether the field is empty or not.
8970	// This may be used to include empty fields in Patch requests.
8971	ForceSendFields []string `json:"-"`
8972
8973	// NullFields is a list of field names (e.g. "ApiProxy") to include in
8974	// API requests with the JSON null value. By default, fields with empty
8975	// values are omitted from API requests. However, any field with an
8976	// empty value appearing in NullFields will be sent to the server as
8977	// null. It is an error if a field in this list has a non-empty value.
8978	// This may be used to include null fields in Patch requests.
8979	NullFields []string `json:"-"`
8980}
8981
8982func (s *GoogleCloudApigeeV1TraceConfigOverride) MarshalJSON() ([]byte, error) {
8983	type NoMethod GoogleCloudApigeeV1TraceConfigOverride
8984	raw := NoMethod(*s)
8985	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8986}
8987
8988// GoogleCloudApigeeV1TraceSamplingConfig: TraceSamplingConfig
8989// represents the detail settings of distributed tracing. Only the
8990// fields that are defined in the distributed trace configuration can be
8991// overridden using the distribute trace configuration override APIs.
8992type GoogleCloudApigeeV1TraceSamplingConfig struct {
8993	// Sampler: Sampler of distributed tracing. OFF is the default value.
8994	//
8995	// Possible values:
8996	//   "SAMPLER_UNSPECIFIED" - Sampler unspecified.
8997	//   "OFF" - OFF means distributed trace is disabled, or the sampling
8998	// probability is 0.
8999	//   "PROBABILITY" - PROBABILITY means traces are captured on a
9000	// probability that defined by sampling_rate. The sampling rate is
9001	// limited to 0 to 0.5 when this is set.
9002	Sampler string `json:"sampler,omitempty"`
9003
9004	// SamplingRate: Field sampling rate. This value is only applicable when
9005	// using the PROBABILITY sampler. The supported values are > 0 and <=
9006	// 0.5.
9007	SamplingRate float64 `json:"samplingRate,omitempty"`
9008
9009	// ForceSendFields is a list of field names (e.g. "Sampler") to
9010	// unconditionally include in API requests. By default, fields with
9011	// empty or default values are omitted from API requests. However, any
9012	// non-pointer, non-interface field appearing in ForceSendFields will be
9013	// sent to the server regardless of whether the field is empty or not.
9014	// This may be used to include empty fields in Patch requests.
9015	ForceSendFields []string `json:"-"`
9016
9017	// NullFields is a list of field names (e.g. "Sampler") to include in
9018	// API requests with the JSON null value. By default, fields with empty
9019	// values are omitted from API requests. However, any field with an
9020	// empty value appearing in NullFields will be sent to the server as
9021	// null. It is an error if a field in this list has a non-empty value.
9022	// This may be used to include null fields in Patch requests.
9023	NullFields []string `json:"-"`
9024}
9025
9026func (s *GoogleCloudApigeeV1TraceSamplingConfig) MarshalJSON() ([]byte, error) {
9027	type NoMethod GoogleCloudApigeeV1TraceSamplingConfig
9028	raw := NoMethod(*s)
9029	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9030}
9031
9032func (s *GoogleCloudApigeeV1TraceSamplingConfig) UnmarshalJSON(data []byte) error {
9033	type NoMethod GoogleCloudApigeeV1TraceSamplingConfig
9034	var s1 struct {
9035		SamplingRate gensupport.JSONFloat64 `json:"samplingRate"`
9036		*NoMethod
9037	}
9038	s1.NoMethod = (*NoMethod)(s)
9039	if err := json.Unmarshal(data, &s1); err != nil {
9040		return err
9041	}
9042	s.SamplingRate = float64(s1.SamplingRate)
9043	return nil
9044}
9045
9046// GoogleCloudApigeeV1UpdateError: Details on why a resource update
9047// failed in the runtime.
9048type GoogleCloudApigeeV1UpdateError struct {
9049	// Code: Status code.
9050	//
9051	// Possible values:
9052	//   "OK" - Not an error; returned on success HTTP Mapping: 200 OK
9053	//   "CANCELLED" - The operation was cancelled, typically by the caller.
9054	// HTTP Mapping: 499 Client Closed Request
9055	//   "UNKNOWN" - Unknown error. For example, this error may be returned
9056	// when a `Status` value received from another address space belongs to
9057	// an error space that is not known in this address space. Also errors
9058	// raised by APIs that do not return enough error information may be
9059	// converted to this error. HTTP Mapping: 500 Internal Server Error
9060	//   "INVALID_ARGUMENT" - The client specified an invalid argument. Note
9061	// that this differs from `FAILED_PRECONDITION`. `INVALID_ARGUMENT`
9062	// indicates arguments that are problematic regardless of the state of
9063	// the system (e.g., a malformed file name). HTTP Mapping: 400 Bad
9064	// Request
9065	//   "DEADLINE_EXCEEDED" - The deadline expired before the operation
9066	// could complete. For operations that change the state of the system,
9067	// this error may be returned even if the operation has completed
9068	// successfully. For example, a successful response from a server could
9069	// have been delayed long enough for the deadline to expire. HTTP
9070	// Mapping: 504 Gateway Timeout
9071	//   "NOT_FOUND" - Some requested entity (e.g., file or directory) was
9072	// not found. Note to server developers: if a request is denied for an
9073	// entire class of users, such as gradual feature rollout or
9074	// undocumented allowlist, `NOT_FOUND` may be used. If a request is
9075	// denied for some users within a class of users, such as user-based
9076	// access control, `PERMISSION_DENIED` must be used. HTTP Mapping: 404
9077	// Not Found
9078	//   "ALREADY_EXISTS" - The entity that a client attempted to create
9079	// (e.g., file or directory) already exists. HTTP Mapping: 409 Conflict
9080	//   "PERMISSION_DENIED" - The caller does not have permission to
9081	// execute the specified operation. `PERMISSION_DENIED` must not be used
9082	// for rejections caused by exhausting some resource (use
9083	// `RESOURCE_EXHAUSTED` instead for those errors). `PERMISSION_DENIED`
9084	// must not be used if the caller can not be identified (use
9085	// `UNAUTHENTICATED` instead for those errors). This error code does not
9086	// imply the request is valid or the requested entity exists or
9087	// satisfies other pre-conditions. HTTP Mapping: 403 Forbidden
9088	//   "UNAUTHENTICATED" - The request does not have valid authentication
9089	// credentials for the operation. HTTP Mapping: 401 Unauthorized
9090	//   "RESOURCE_EXHAUSTED" - Some resource has been exhausted, perhaps a
9091	// per-user quota, or perhaps the entire file system is out of space.
9092	// HTTP Mapping: 429 Too Many Requests
9093	//   "FAILED_PRECONDITION" - The operation was rejected because the
9094	// system is not in a state required for the operation's execution. For
9095	// example, the directory to be deleted is non-empty, an rmdir operation
9096	// is applied to a non-directory, etc. Service implementors can use the
9097	// following guidelines to decide between `FAILED_PRECONDITION`,
9098	// `ABORTED`, and `UNAVAILABLE`: (a) Use `UNAVAILABLE` if the client can
9099	// retry just the failing call. (b) Use `ABORTED` if the client should
9100	// retry at a higher level. For example, when a client-specified
9101	// test-and-set fails, indicating the client should restart a
9102	// read-modify-write sequence. (c) Use `FAILED_PRECONDITION` if the
9103	// client should not retry until the system state has been explicitly
9104	// fixed. For example, if an "rmdir" fails because the directory is
9105	// non-empty, `FAILED_PRECONDITION` should be returned since the client
9106	// should not retry unless the files are deleted from the directory.
9107	// HTTP Mapping: 400 Bad Request
9108	//   "ABORTED" - The operation was aborted, typically due to a
9109	// concurrency issue such as a sequencer check failure or transaction
9110	// abort. See the guidelines above for deciding between
9111	// `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`. HTTP Mapping:
9112	// 409 Conflict
9113	//   "OUT_OF_RANGE" - The operation was attempted past the valid range.
9114	// E.g., seeking or reading past end-of-file. Unlike `INVALID_ARGUMENT`,
9115	// this error indicates a problem that may be fixed if the system state
9116	// changes. For example, a 32-bit file system will generate
9117	// `INVALID_ARGUMENT` if asked to read at an offset that is not in the
9118	// range [0,2^32-1], but it will generate `OUT_OF_RANGE` if asked to
9119	// read from an offset past the current file size. There is a fair bit
9120	// of overlap between `FAILED_PRECONDITION` and `OUT_OF_RANGE`. We
9121	// recommend using `OUT_OF_RANGE` (the more specific error) when it
9122	// applies so that callers who are iterating through a space can easily
9123	// look for an `OUT_OF_RANGE` error to detect when they are done. HTTP
9124	// Mapping: 400 Bad Request
9125	//   "UNIMPLEMENTED" - The operation is not implemented or is not
9126	// supported/enabled in this service. HTTP Mapping: 501 Not Implemented
9127	//   "INTERNAL" - Internal errors. This means that some invariants
9128	// expected by the underlying system have been broken. This error code
9129	// is reserved for serious errors. HTTP Mapping: 500 Internal Server
9130	// Error
9131	//   "UNAVAILABLE" - The service is currently unavailable. This is most
9132	// likely a transient condition, which can be corrected by retrying with
9133	// a backoff. Note that it is not always safe to retry non-idempotent
9134	// operations. See the guidelines above for deciding between
9135	// `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`. HTTP Mapping:
9136	// 503 Service Unavailable
9137	//   "DATA_LOSS" - Unrecoverable data loss or corruption. HTTP Mapping:
9138	// 500 Internal Server Error
9139	Code string `json:"code,omitempty"`
9140
9141	// Message: User-friendly error message.
9142	Message string `json:"message,omitempty"`
9143
9144	// Resource: The sub resource specific to this error (e.g. a proxy
9145	// deployed within the EnvironmentConfig). If empty the error refers to
9146	// the top level resource.
9147	Resource string `json:"resource,omitempty"`
9148
9149	// Type: A string that uniquely identifies the type of error. This
9150	// provides a more reliable means to deduplicate errors across revisions
9151	// and instances.
9152	Type string `json:"type,omitempty"`
9153
9154	// ForceSendFields is a list of field names (e.g. "Code") to
9155	// unconditionally include in API requests. By default, fields with
9156	// empty or default values are omitted from API requests. However, any
9157	// non-pointer, non-interface field appearing in ForceSendFields will be
9158	// sent to the server regardless of whether the field is empty or not.
9159	// This may be used to include empty fields in Patch requests.
9160	ForceSendFields []string `json:"-"`
9161
9162	// NullFields is a list of field names (e.g. "Code") to include in API
9163	// requests with the JSON null value. By default, fields with empty
9164	// values are omitted from API requests. However, any field with an
9165	// empty value appearing in NullFields will be sent to the server as
9166	// null. It is an error if a field in this list has a non-empty value.
9167	// This may be used to include null fields in Patch requests.
9168	NullFields []string `json:"-"`
9169}
9170
9171func (s *GoogleCloudApigeeV1UpdateError) MarshalJSON() ([]byte, error) {
9172	type NoMethod GoogleCloudApigeeV1UpdateError
9173	raw := NoMethod(*s)
9174	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9175}
9176
9177// GoogleIamV1AuditConfig: Specifies the audit configuration for a
9178// service. The configuration determines which permission types are
9179// logged, and what identities, if any, are exempted from logging. An
9180// AuditConfig must have one or more AuditLogConfigs. If there are
9181// AuditConfigs for both `allServices` and a specific service, the union
9182// of the two AuditConfigs is used for that service: the log_types
9183// specified in each AuditConfig are enabled, and the exempted_members
9184// in each AuditLogConfig are exempted. Example Policy with multiple
9185// AuditConfigs: { "audit_configs": [ { "service": "allServices",
9186// "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members":
9187// [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, {
9188// "log_type": "ADMIN_READ" } ] }, { "service":
9189// "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type":
9190// "DATA_READ" }, { "log_type": "DATA_WRITE", "exempted_members": [
9191// "user:aliya@example.com" ] } ] } ] } For sampleservice, this policy
9192// enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts
9193// jose@example.com from DATA_READ logging, and aliya@example.com from
9194// DATA_WRITE logging.
9195type GoogleIamV1AuditConfig struct {
9196	// AuditLogConfigs: The configuration for logging of each type of
9197	// permission.
9198	AuditLogConfigs []*GoogleIamV1AuditLogConfig `json:"auditLogConfigs,omitempty"`
9199
9200	// Service: Specifies a service that will be enabled for audit logging.
9201	// For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
9202	// `allServices` is a special value that covers all services.
9203	Service string `json:"service,omitempty"`
9204
9205	// ForceSendFields is a list of field names (e.g. "AuditLogConfigs") to
9206	// unconditionally include in API requests. By default, fields with
9207	// empty or default values are omitted from API requests. However, any
9208	// non-pointer, non-interface field appearing in ForceSendFields will be
9209	// sent to the server regardless of whether the field is empty or not.
9210	// This may be used to include empty fields in Patch requests.
9211	ForceSendFields []string `json:"-"`
9212
9213	// NullFields is a list of field names (e.g. "AuditLogConfigs") to
9214	// include in API requests with the JSON null value. By default, fields
9215	// with empty values are omitted from API requests. However, any field
9216	// with an empty value appearing in NullFields will be sent to the
9217	// server as null. It is an error if a field in this list has a
9218	// non-empty value. This may be used to include null fields in Patch
9219	// requests.
9220	NullFields []string `json:"-"`
9221}
9222
9223func (s *GoogleIamV1AuditConfig) MarshalJSON() ([]byte, error) {
9224	type NoMethod GoogleIamV1AuditConfig
9225	raw := NoMethod(*s)
9226	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9227}
9228
9229// GoogleIamV1AuditLogConfig: Provides the configuration for logging a
9230// type of permissions. Example: { "audit_log_configs": [ { "log_type":
9231// "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, {
9232// "log_type": "DATA_WRITE" } ] } This enables 'DATA_READ' and
9233// 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ
9234// logging.
9235type GoogleIamV1AuditLogConfig struct {
9236	// ExemptedMembers: Specifies the identities that do not cause logging
9237	// for this type of permission. Follows the same format of
9238	// Binding.members.
9239	ExemptedMembers []string `json:"exemptedMembers,omitempty"`
9240
9241	// LogType: The log type that this config enables.
9242	//
9243	// Possible values:
9244	//   "LOG_TYPE_UNSPECIFIED" - Default case. Should never be this.
9245	//   "ADMIN_READ" - Admin reads. Example: CloudIAM getIamPolicy
9246	//   "DATA_WRITE" - Data writes. Example: CloudSQL Users create
9247	//   "DATA_READ" - Data reads. Example: CloudSQL Users list
9248	LogType string `json:"logType,omitempty"`
9249
9250	// ForceSendFields is a list of field names (e.g. "ExemptedMembers") to
9251	// unconditionally include in API requests. By default, fields with
9252	// empty or default values are omitted from API requests. However, any
9253	// non-pointer, non-interface field appearing in ForceSendFields will be
9254	// sent to the server regardless of whether the field is empty or not.
9255	// This may be used to include empty fields in Patch requests.
9256	ForceSendFields []string `json:"-"`
9257
9258	// NullFields is a list of field names (e.g. "ExemptedMembers") to
9259	// include in API requests with the JSON null value. By default, fields
9260	// with empty values are omitted from API requests. However, any field
9261	// with an empty value appearing in NullFields will be sent to the
9262	// server as null. It is an error if a field in this list has a
9263	// non-empty value. This may be used to include null fields in Patch
9264	// requests.
9265	NullFields []string `json:"-"`
9266}
9267
9268func (s *GoogleIamV1AuditLogConfig) MarshalJSON() ([]byte, error) {
9269	type NoMethod GoogleIamV1AuditLogConfig
9270	raw := NoMethod(*s)
9271	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9272}
9273
9274// GoogleIamV1Binding: Associates `members` with a `role`.
9275type GoogleIamV1Binding struct {
9276	// Condition: The condition that is associated with this binding. If the
9277	// condition evaluates to `true`, then this binding applies to the
9278	// current request. If the condition evaluates to `false`, then this
9279	// binding does not apply to the current request. However, a different
9280	// role binding might grant the same role to one or more of the members
9281	// in this binding. To learn which resources support conditions in their
9282	// IAM policies, see the IAM documentation
9283	// (https://cloud.google.com/iam/help/conditions/resource-policies).
9284	Condition *GoogleTypeExpr `json:"condition,omitempty"`
9285
9286	// Members: Specifies the identities requesting access for a Cloud
9287	// Platform resource. `members` can have the following values: *
9288	// `allUsers`: A special identifier that represents anyone who is on the
9289	// internet; with or without a Google account. *
9290	// `allAuthenticatedUsers`: A special identifier that represents anyone
9291	// who is authenticated with a Google account or a service account. *
9292	// `user:{emailid}`: An email address that represents a specific Google
9293	// account. For example, `alice@example.com` . *
9294	// `serviceAccount:{emailid}`: An email address that represents a
9295	// service account. For example,
9296	// `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An
9297	// email address that represents a Google group. For example,
9298	// `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An
9299	// email address (plus unique identifier) representing a user that has
9300	// been recently deleted. For example,
9301	// `alice@example.com?uid=123456789012345678901`. If the user is
9302	// recovered, this value reverts to `user:{emailid}` and the recovered
9303	// user retains the role in the binding. *
9304	// `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address
9305	// (plus unique identifier) representing a service account that has been
9306	// recently deleted. For example,
9307	// `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
9308	// If the service account is undeleted, this value reverts to
9309	// `serviceAccount:{emailid}` and the undeleted service account retains
9310	// the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`:
9311	// An email address (plus unique identifier) representing a Google group
9312	// that has been recently deleted. For example,
9313	// `admins@example.com?uid=123456789012345678901`. If the group is
9314	// recovered, this value reverts to `group:{emailid}` and the recovered
9315	// group retains the role in the binding. * `domain:{domain}`: The G
9316	// Suite domain (primary) that represents all the users of that domain.
9317	// For example, `google.com` or `example.com`.
9318	Members []string `json:"members,omitempty"`
9319
9320	// Role: Role that is assigned to `members`. For example,
9321	// `roles/viewer`, `roles/editor`, or `roles/owner`.
9322	Role string `json:"role,omitempty"`
9323
9324	// ForceSendFields is a list of field names (e.g. "Condition") to
9325	// unconditionally include in API requests. By default, fields with
9326	// empty or default values are omitted from API requests. However, any
9327	// non-pointer, non-interface field appearing in ForceSendFields will be
9328	// sent to the server regardless of whether the field is empty or not.
9329	// This may be used to include empty fields in Patch requests.
9330	ForceSendFields []string `json:"-"`
9331
9332	// NullFields is a list of field names (e.g. "Condition") to include in
9333	// API requests with the JSON null value. By default, fields with empty
9334	// values are omitted from API requests. However, any field with an
9335	// empty value appearing in NullFields will be sent to the server as
9336	// null. It is an error if a field in this list has a non-empty value.
9337	// This may be used to include null fields in Patch requests.
9338	NullFields []string `json:"-"`
9339}
9340
9341func (s *GoogleIamV1Binding) MarshalJSON() ([]byte, error) {
9342	type NoMethod GoogleIamV1Binding
9343	raw := NoMethod(*s)
9344	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9345}
9346
9347// GoogleIamV1Policy: An Identity and Access Management (IAM) policy,
9348// which specifies access controls for Google Cloud resources. A
9349// `Policy` is a collection of `bindings`. A `binding` binds one or more
9350// `members` to a single `role`. Members can be user accounts, service
9351// accounts, Google groups, and domains (such as G Suite). A `role` is a
9352// named list of permissions; each `role` can be an IAM predefined role
9353// or a user-created custom role. For some types of Google Cloud
9354// resources, a `binding` can also specify a `condition`, which is a
9355// logical expression that allows access to a resource only if the
9356// expression evaluates to `true`. A condition can add constraints based
9357// on attributes of the request, the resource, or both. To learn which
9358// resources support conditions in their IAM policies, see the IAM
9359// documentation
9360// (https://cloud.google.com/iam/help/conditions/resource-policies).
9361// **JSON example:** { "bindings": [ { "role":
9362// "roles/resourcemanager.organizationAdmin", "members": [
9363// "user:mike@example.com", "group:admins@example.com",
9364// "domain:google.com",
9365// "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, {
9366// "role": "roles/resourcemanager.organizationViewer", "members": [
9367// "user:eve@example.com" ], "condition": { "title": "expirable access",
9368// "description": "Does not grant access after Sep 2020", "expression":
9369// "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ],
9370// "etag": "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: -
9371// members: - user:mike@example.com - group:admins@example.com -
9372// domain:google.com -
9373// serviceAccount:my-project-id@appspot.gserviceaccount.com role:
9374// roles/resourcemanager.organizationAdmin - members: -
9375// user:eve@example.com role: roles/resourcemanager.organizationViewer
9376// condition: title: expirable access description: Does not grant access
9377// after Sep 2020 expression: request.time <
9378// timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3
9379// For a description of IAM and its features, see the IAM documentation
9380// (https://cloud.google.com/iam/docs/).
9381type GoogleIamV1Policy struct {
9382	// AuditConfigs: Specifies cloud audit logging configuration for this
9383	// policy.
9384	AuditConfigs []*GoogleIamV1AuditConfig `json:"auditConfigs,omitempty"`
9385
9386	// Bindings: Associates a list of `members` to a `role`. Optionally, may
9387	// specify a `condition` that determines how and when the `bindings` are
9388	// applied. Each of the `bindings` must contain at least one member.
9389	Bindings []*GoogleIamV1Binding `json:"bindings,omitempty"`
9390
9391	// Etag: `etag` is used for optimistic concurrency control as a way to
9392	// help prevent simultaneous updates of a policy from overwriting each
9393	// other. It is strongly suggested that systems make use of the `etag`
9394	// in the read-modify-write cycle to perform policy updates in order to
9395	// avoid race conditions: An `etag` is returned in the response to
9396	// `getIamPolicy`, and systems are expected to put that etag in the
9397	// request to `setIamPolicy` to ensure that their change will be applied
9398	// to the same version of the policy. **Important:** If you use IAM
9399	// Conditions, you must include the `etag` field whenever you call
9400	// `setIamPolicy`. If you omit this field, then IAM allows you to
9401	// overwrite a version `3` policy with a version `1` policy, and all of
9402	// the conditions in the version `3` policy are lost.
9403	Etag string `json:"etag,omitempty"`
9404
9405	// Version: Specifies the format of the policy. Valid values are `0`,
9406	// `1`, and `3`. Requests that specify an invalid value are rejected.
9407	// Any operation that affects conditional role bindings must specify
9408	// version `3`. This requirement applies to the following operations: *
9409	// Getting a policy that includes a conditional role binding * Adding a
9410	// conditional role binding to a policy * Changing a conditional role
9411	// binding in a policy * Removing any role binding, with or without a
9412	// condition, from a policy that includes conditions **Important:** If
9413	// you use IAM Conditions, you must include the `etag` field whenever
9414	// you call `setIamPolicy`. If you omit this field, then IAM allows you
9415	// to overwrite a version `3` policy with a version `1` policy, and all
9416	// of the conditions in the version `3` policy are lost. If a policy
9417	// does not include any conditions, operations on that policy may
9418	// specify any valid version or leave the field unset. To learn which
9419	// resources support conditions in their IAM policies, see the IAM
9420	// documentation
9421	// (https://cloud.google.com/iam/help/conditions/resource-policies).
9422	Version int64 `json:"version,omitempty"`
9423
9424	// ServerResponse contains the HTTP response code and headers from the
9425	// server.
9426	googleapi.ServerResponse `json:"-"`
9427
9428	// ForceSendFields is a list of field names (e.g. "AuditConfigs") to
9429	// unconditionally include in API requests. By default, fields with
9430	// empty or default values are omitted from API requests. However, any
9431	// non-pointer, non-interface field appearing in ForceSendFields will be
9432	// sent to the server regardless of whether the field is empty or not.
9433	// This may be used to include empty fields in Patch requests.
9434	ForceSendFields []string `json:"-"`
9435
9436	// NullFields is a list of field names (e.g. "AuditConfigs") to include
9437	// in API requests with the JSON null value. By default, fields with
9438	// empty values are omitted from API requests. However, any field with
9439	// an empty value appearing in NullFields will be sent to the server as
9440	// null. It is an error if a field in this list has a non-empty value.
9441	// This may be used to include null fields in Patch requests.
9442	NullFields []string `json:"-"`
9443}
9444
9445func (s *GoogleIamV1Policy) MarshalJSON() ([]byte, error) {
9446	type NoMethod GoogleIamV1Policy
9447	raw := NoMethod(*s)
9448	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9449}
9450
9451// GoogleIamV1SetIamPolicyRequest: Request message for `SetIamPolicy`
9452// method.
9453type GoogleIamV1SetIamPolicyRequest struct {
9454	// Policy: REQUIRED: The complete policy to be applied to the
9455	// `resource`. The size of the policy is limited to a few 10s of KB. An
9456	// empty policy is a valid policy but certain Cloud Platform services
9457	// (such as Projects) might reject them.
9458	Policy *GoogleIamV1Policy `json:"policy,omitempty"`
9459
9460	// UpdateMask: OPTIONAL: A FieldMask specifying which fields of the
9461	// policy to modify. Only the fields in the mask will be modified. If no
9462	// mask is provided, the following default mask is used: `paths:
9463	// "bindings, etag"
9464	UpdateMask string `json:"updateMask,omitempty"`
9465
9466	// ForceSendFields is a list of field names (e.g. "Policy") to
9467	// unconditionally include in API requests. By default, fields with
9468	// empty or default values are omitted from API requests. However, any
9469	// non-pointer, non-interface field appearing in ForceSendFields will be
9470	// sent to the server regardless of whether the field is empty or not.
9471	// This may be used to include empty fields in Patch requests.
9472	ForceSendFields []string `json:"-"`
9473
9474	// NullFields is a list of field names (e.g. "Policy") to include in API
9475	// requests with the JSON null value. By default, fields with empty
9476	// values are omitted from API requests. However, any field with an
9477	// empty value appearing in NullFields will be sent to the server as
9478	// null. It is an error if a field in this list has a non-empty value.
9479	// This may be used to include null fields in Patch requests.
9480	NullFields []string `json:"-"`
9481}
9482
9483func (s *GoogleIamV1SetIamPolicyRequest) MarshalJSON() ([]byte, error) {
9484	type NoMethod GoogleIamV1SetIamPolicyRequest
9485	raw := NoMethod(*s)
9486	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9487}
9488
9489// GoogleIamV1TestIamPermissionsRequest: Request message for
9490// `TestIamPermissions` method.
9491type GoogleIamV1TestIamPermissionsRequest struct {
9492	// Permissions: The set of permissions to check for the `resource`.
9493	// Permissions with wildcards (such as '*' or 'storage.*') are not
9494	// allowed. For more information see IAM Overview
9495	// (https://cloud.google.com/iam/docs/overview#permissions).
9496	Permissions []string `json:"permissions,omitempty"`
9497
9498	// ForceSendFields is a list of field names (e.g. "Permissions") to
9499	// unconditionally include in API requests. By default, fields with
9500	// empty or default values are omitted from API requests. However, any
9501	// non-pointer, non-interface field appearing in ForceSendFields will be
9502	// sent to the server regardless of whether the field is empty or not.
9503	// This may be used to include empty fields in Patch requests.
9504	ForceSendFields []string `json:"-"`
9505
9506	// NullFields is a list of field names (e.g. "Permissions") to include
9507	// in API requests with the JSON null value. By default, fields with
9508	// empty values are omitted from API requests. However, any field with
9509	// an empty value appearing in NullFields will be sent to the server as
9510	// null. It is an error if a field in this list has a non-empty value.
9511	// This may be used to include null fields in Patch requests.
9512	NullFields []string `json:"-"`
9513}
9514
9515func (s *GoogleIamV1TestIamPermissionsRequest) MarshalJSON() ([]byte, error) {
9516	type NoMethod GoogleIamV1TestIamPermissionsRequest
9517	raw := NoMethod(*s)
9518	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9519}
9520
9521// GoogleIamV1TestIamPermissionsResponse: Response message for
9522// `TestIamPermissions` method.
9523type GoogleIamV1TestIamPermissionsResponse struct {
9524	// Permissions: A subset of `TestPermissionsRequest.permissions` that
9525	// the caller is allowed.
9526	Permissions []string `json:"permissions,omitempty"`
9527
9528	// ServerResponse contains the HTTP response code and headers from the
9529	// server.
9530	googleapi.ServerResponse `json:"-"`
9531
9532	// ForceSendFields is a list of field names (e.g. "Permissions") to
9533	// unconditionally include in API requests. By default, fields with
9534	// empty or default values are omitted from API requests. However, any
9535	// non-pointer, non-interface field appearing in ForceSendFields will be
9536	// sent to the server regardless of whether the field is empty or not.
9537	// This may be used to include empty fields in Patch requests.
9538	ForceSendFields []string `json:"-"`
9539
9540	// NullFields is a list of field names (e.g. "Permissions") to include
9541	// in API requests with the JSON null value. By default, fields with
9542	// empty values are omitted from API requests. However, any field with
9543	// an empty value appearing in NullFields will be sent to the server as
9544	// null. It is an error if a field in this list has a non-empty value.
9545	// This may be used to include null fields in Patch requests.
9546	NullFields []string `json:"-"`
9547}
9548
9549func (s *GoogleIamV1TestIamPermissionsResponse) MarshalJSON() ([]byte, error) {
9550	type NoMethod GoogleIamV1TestIamPermissionsResponse
9551	raw := NoMethod(*s)
9552	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9553}
9554
9555// GoogleLongrunningListOperationsResponse: The response message for
9556// Operations.ListOperations.
9557type GoogleLongrunningListOperationsResponse struct {
9558	// NextPageToken: The standard List next-page token.
9559	NextPageToken string `json:"nextPageToken,omitempty"`
9560
9561	// Operations: A list of operations that matches the specified filter in
9562	// the request.
9563	Operations []*GoogleLongrunningOperation `json:"operations,omitempty"`
9564
9565	// ServerResponse contains the HTTP response code and headers from the
9566	// server.
9567	googleapi.ServerResponse `json:"-"`
9568
9569	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
9570	// unconditionally include in API requests. By default, fields with
9571	// empty or default values are omitted from API requests. However, any
9572	// non-pointer, non-interface field appearing in ForceSendFields will be
9573	// sent to the server regardless of whether the field is empty or not.
9574	// This may be used to include empty fields in Patch requests.
9575	ForceSendFields []string `json:"-"`
9576
9577	// NullFields is a list of field names (e.g. "NextPageToken") to include
9578	// in API requests with the JSON null value. By default, fields with
9579	// empty values are omitted from API requests. However, any field with
9580	// an empty value appearing in NullFields will be sent to the server as
9581	// null. It is an error if a field in this list has a non-empty value.
9582	// This may be used to include null fields in Patch requests.
9583	NullFields []string `json:"-"`
9584}
9585
9586func (s *GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) {
9587	type NoMethod GoogleLongrunningListOperationsResponse
9588	raw := NoMethod(*s)
9589	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9590}
9591
9592// GoogleLongrunningOperation: This resource represents a long-running
9593// operation that is the result of a network API call.
9594type GoogleLongrunningOperation struct {
9595	// Done: If the value is `false`, it means the operation is still in
9596	// progress. If `true`, the operation is completed, and either `error`
9597	// or `response` is available.
9598	Done bool `json:"done,omitempty"`
9599
9600	// Error: The error result of the operation in case of failure or
9601	// cancellation.
9602	Error *GoogleRpcStatus `json:"error,omitempty"`
9603
9604	// Metadata: Service-specific metadata associated with the operation. It
9605	// typically contains progress information and common metadata such as
9606	// create time. Some services might not provide such metadata. Any
9607	// method that returns a long-running operation should document the
9608	// metadata type, if any.
9609	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
9610
9611	// Name: The server-assigned name, which is only unique within the same
9612	// service that originally returns it. If you use the default HTTP
9613	// mapping, the `name` should be a resource name ending with
9614	// `operations/{unique_id}`.
9615	Name string `json:"name,omitempty"`
9616
9617	// Response: The normal response of the operation in case of success. If
9618	// the original method returns no data on success, such as `Delete`, the
9619	// response is `google.protobuf.Empty`. If the original method is
9620	// standard `Get`/`Create`/`Update`, the response should be the
9621	// resource. For other methods, the response should have the type
9622	// `XxxResponse`, where `Xxx` is the original method name. For example,
9623	// if the original method name is `TakeSnapshot()`, the inferred
9624	// response type is `TakeSnapshotResponse`.
9625	Response googleapi.RawMessage `json:"response,omitempty"`
9626
9627	// ServerResponse contains the HTTP response code and headers from the
9628	// server.
9629	googleapi.ServerResponse `json:"-"`
9630
9631	// ForceSendFields is a list of field names (e.g. "Done") to
9632	// unconditionally include in API requests. By default, fields with
9633	// empty or default values are omitted from API requests. However, any
9634	// non-pointer, non-interface field appearing in ForceSendFields will be
9635	// sent to the server regardless of whether the field is empty or not.
9636	// This may be used to include empty fields in Patch requests.
9637	ForceSendFields []string `json:"-"`
9638
9639	// NullFields is a list of field names (e.g. "Done") to include in API
9640	// requests with the JSON null value. By default, fields with empty
9641	// values are omitted from API requests. However, any field with an
9642	// empty value appearing in NullFields will be sent to the server as
9643	// null. It is an error if a field in this list has a non-empty value.
9644	// This may be used to include null fields in Patch requests.
9645	NullFields []string `json:"-"`
9646}
9647
9648func (s *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) {
9649	type NoMethod GoogleLongrunningOperation
9650	raw := NoMethod(*s)
9651	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9652}
9653
9654// GoogleProtobufEmpty: A generic empty message that you can re-use to
9655// avoid defining duplicated empty messages in your APIs. A typical
9656// example is to use it as the request or the response type of an API
9657// method. For instance: service Foo { rpc Bar(google.protobuf.Empty)
9658// returns (google.protobuf.Empty); } The JSON representation for
9659// `Empty` is empty JSON object `{}`.
9660type GoogleProtobufEmpty struct {
9661	// ServerResponse contains the HTTP response code and headers from the
9662	// server.
9663	googleapi.ServerResponse `json:"-"`
9664}
9665
9666// GoogleRpcPreconditionFailure: Describes what preconditions have
9667// failed. For example, if an RPC failed because it required the Terms
9668// of Service to be acknowledged, it could list the terms of service
9669// violation in the PreconditionFailure message.
9670type GoogleRpcPreconditionFailure struct {
9671	// Violations: Describes all precondition violations.
9672	Violations []*GoogleRpcPreconditionFailureViolation `json:"violations,omitempty"`
9673
9674	// ForceSendFields is a list of field names (e.g. "Violations") to
9675	// unconditionally include in API requests. By default, fields with
9676	// empty or default values are omitted from API requests. However, any
9677	// non-pointer, non-interface field appearing in ForceSendFields will be
9678	// sent to the server regardless of whether the field is empty or not.
9679	// This may be used to include empty fields in Patch requests.
9680	ForceSendFields []string `json:"-"`
9681
9682	// NullFields is a list of field names (e.g. "Violations") to include in
9683	// API requests with the JSON null value. By default, fields with empty
9684	// values are omitted from API requests. However, any field with an
9685	// empty value appearing in NullFields will be sent to the server as
9686	// null. It is an error if a field in this list has a non-empty value.
9687	// This may be used to include null fields in Patch requests.
9688	NullFields []string `json:"-"`
9689}
9690
9691func (s *GoogleRpcPreconditionFailure) MarshalJSON() ([]byte, error) {
9692	type NoMethod GoogleRpcPreconditionFailure
9693	raw := NoMethod(*s)
9694	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9695}
9696
9697// GoogleRpcPreconditionFailureViolation: A message type used to
9698// describe a single precondition failure.
9699type GoogleRpcPreconditionFailureViolation struct {
9700	// Description: A description of how the precondition failed. Developers
9701	// can use this description to understand how to fix the failure. For
9702	// example: "Terms of service not accepted".
9703	Description string `json:"description,omitempty"`
9704
9705	// Subject: The subject, relative to the type, that failed. For example,
9706	// "google.com/cloud" relative to the "TOS" type would indicate which
9707	// terms of service is being referenced.
9708	Subject string `json:"subject,omitempty"`
9709
9710	// Type: The type of PreconditionFailure. We recommend using a
9711	// service-specific enum type to define the supported precondition
9712	// violation subjects. For example, "TOS" for "Terms of Service
9713	// violation".
9714	Type string `json:"type,omitempty"`
9715
9716	// ForceSendFields is a list of field names (e.g. "Description") to
9717	// unconditionally include in API requests. By default, fields with
9718	// empty or default values are omitted from API requests. However, any
9719	// non-pointer, non-interface field appearing in ForceSendFields will be
9720	// sent to the server regardless of whether the field is empty or not.
9721	// This may be used to include empty fields in Patch requests.
9722	ForceSendFields []string `json:"-"`
9723
9724	// NullFields is a list of field names (e.g. "Description") to include
9725	// in API requests with the JSON null value. By default, fields with
9726	// empty values are omitted from API requests. However, any field with
9727	// an empty value appearing in NullFields will be sent to the server as
9728	// null. It is an error if a field in this list has a non-empty value.
9729	// This may be used to include null fields in Patch requests.
9730	NullFields []string `json:"-"`
9731}
9732
9733func (s *GoogleRpcPreconditionFailureViolation) MarshalJSON() ([]byte, error) {
9734	type NoMethod GoogleRpcPreconditionFailureViolation
9735	raw := NoMethod(*s)
9736	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9737}
9738
9739// GoogleRpcStatus: The `Status` type defines a logical error model that
9740// is suitable for different programming environments, including REST
9741// APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each
9742// `Status` message contains three pieces of data: error code, error
9743// message, and error details. You can find out more about this error
9744// model and how to work with it in the API Design Guide
9745// (https://cloud.google.com/apis/design/errors).
9746type GoogleRpcStatus struct {
9747	// Code: The status code, which should be an enum value of
9748	// google.rpc.Code.
9749	Code int64 `json:"code,omitempty"`
9750
9751	// Details: A list of messages that carry the error details. There is a
9752	// common set of message types for APIs to use.
9753	Details []googleapi.RawMessage `json:"details,omitempty"`
9754
9755	// Message: A developer-facing error message, which should be in
9756	// English. Any user-facing error message should be localized and sent
9757	// in the google.rpc.Status.details field, or localized by the client.
9758	Message string `json:"message,omitempty"`
9759
9760	// ForceSendFields is a list of field names (e.g. "Code") to
9761	// unconditionally include in API requests. By default, fields with
9762	// empty or default values are omitted from API requests. However, any
9763	// non-pointer, non-interface field appearing in ForceSendFields will be
9764	// sent to the server regardless of whether the field is empty or not.
9765	// This may be used to include empty fields in Patch requests.
9766	ForceSendFields []string `json:"-"`
9767
9768	// NullFields is a list of field names (e.g. "Code") to include in API
9769	// requests with the JSON null value. By default, fields with empty
9770	// values are omitted from API requests. However, any field with an
9771	// empty value appearing in NullFields will be sent to the server as
9772	// null. It is an error if a field in this list has a non-empty value.
9773	// This may be used to include null fields in Patch requests.
9774	NullFields []string `json:"-"`
9775}
9776
9777func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) {
9778	type NoMethod GoogleRpcStatus
9779	raw := NoMethod(*s)
9780	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9781}
9782
9783// GoogleTypeExpr: Represents a textual expression in the Common
9784// Expression Language (CEL) syntax. CEL is a C-like expression
9785// language. The syntax and semantics of CEL are documented at
9786// https://github.com/google/cel-spec. Example (Comparison): title:
9787// "Summary size limit" description: "Determines if a summary is less
9788// than 100 chars" expression: "document.summary.size() < 100" Example
9789// (Equality): title: "Requestor is owner" description: "Determines if
9790// requestor is the document owner" expression: "document.owner ==
9791// request.auth.claims.email" Example (Logic): title: "Public documents"
9792// description: "Determine whether the document should be publicly
9793// visible" expression: "document.type != 'private' && document.type !=
9794// 'internal'" Example (Data Manipulation): title: "Notification string"
9795// description: "Create a notification string with a timestamp."
9796// expression: "'New message received at ' +
9797// string(document.create_time)" The exact variables and functions that
9798// may be referenced within an expression are determined by the service
9799// that evaluates it. See the service documentation for additional
9800// information.
9801type GoogleTypeExpr struct {
9802	// Description: Optional. Description of the expression. This is a
9803	// longer text which describes the expression, e.g. when hovered over it
9804	// in a UI.
9805	Description string `json:"description,omitempty"`
9806
9807	// Expression: Textual representation of an expression in Common
9808	// Expression Language syntax.
9809	Expression string `json:"expression,omitempty"`
9810
9811	// Location: Optional. String indicating the location of the expression
9812	// for error reporting, e.g. a file name and a position in the file.
9813	Location string `json:"location,omitempty"`
9814
9815	// Title: Optional. Title for the expression, i.e. a short string
9816	// describing its purpose. This can be used e.g. in UIs which allow to
9817	// enter the expression.
9818	Title string `json:"title,omitempty"`
9819
9820	// ForceSendFields is a list of field names (e.g. "Description") to
9821	// unconditionally include in API requests. By default, fields with
9822	// empty or default values are omitted from API requests. However, any
9823	// non-pointer, non-interface field appearing in ForceSendFields will be
9824	// sent to the server regardless of whether the field is empty or not.
9825	// This may be used to include empty fields in Patch requests.
9826	ForceSendFields []string `json:"-"`
9827
9828	// NullFields is a list of field names (e.g. "Description") to include
9829	// in API requests with the JSON null value. By default, fields with
9830	// empty values are omitted from API requests. However, any field with
9831	// an empty value appearing in NullFields will be sent to the server as
9832	// null. It is an error if a field in this list has a non-empty value.
9833	// This may be used to include null fields in Patch requests.
9834	NullFields []string `json:"-"`
9835}
9836
9837func (s *GoogleTypeExpr) MarshalJSON() ([]byte, error) {
9838	type NoMethod GoogleTypeExpr
9839	raw := NoMethod(*s)
9840	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9841}
9842
9843// GoogleTypeMoney: Represents an amount of money with its currency
9844// type.
9845type GoogleTypeMoney struct {
9846	// CurrencyCode: The three-letter currency code defined in ISO 4217.
9847	CurrencyCode string `json:"currencyCode,omitempty"`
9848
9849	// Nanos: Number of nano (10^-9) units of the amount. The value must be
9850	// between -999,999,999 and +999,999,999 inclusive. If `units` is
9851	// positive, `nanos` must be positive or zero. If `units` is zero,
9852	// `nanos` can be positive, zero, or negative. If `units` is negative,
9853	// `nanos` must be negative or zero. For example $-1.75 is represented
9854	// as `units`=-1 and `nanos`=-750,000,000.
9855	Nanos int64 `json:"nanos,omitempty"`
9856
9857	// Units: The whole units of the amount. For example if `currencyCode`
9858	// is "USD", then 1 unit is one US dollar.
9859	Units int64 `json:"units,omitempty,string"`
9860
9861	// ForceSendFields is a list of field names (e.g. "CurrencyCode") to
9862	// unconditionally include in API requests. By default, fields with
9863	// empty or default values are omitted from API requests. However, any
9864	// non-pointer, non-interface field appearing in ForceSendFields will be
9865	// sent to the server regardless of whether the field is empty or not.
9866	// This may be used to include empty fields in Patch requests.
9867	ForceSendFields []string `json:"-"`
9868
9869	// NullFields is a list of field names (e.g. "CurrencyCode") to include
9870	// in API requests with the JSON null value. By default, fields with
9871	// empty values are omitted from API requests. However, any field with
9872	// an empty value appearing in NullFields will be sent to the server as
9873	// null. It is an error if a field in this list has a non-empty value.
9874	// This may be used to include null fields in Patch requests.
9875	NullFields []string `json:"-"`
9876}
9877
9878func (s *GoogleTypeMoney) MarshalJSON() ([]byte, error) {
9879	type NoMethod GoogleTypeMoney
9880	raw := NoMethod(*s)
9881	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9882}
9883
9884// method id "apigee.hybrid.issuers.list":
9885
9886type HybridIssuersListCall struct {
9887	s            *Service
9888	name         string
9889	urlParams_   gensupport.URLParams
9890	ifNoneMatch_ string
9891	ctx_         context.Context
9892	header_      http.Header
9893}
9894
9895// List: Lists hybrid services and its trusted issuers service account
9896// ids. This api is authenticated and unauthorized(allow all the users)
9897// and used by runtime authn-authz service to query control plane's
9898// issuer service account ids.
9899//
9900// - name: Must be of the form `hybrid/issuers`.
9901func (r *HybridIssuersService) List(name string) *HybridIssuersListCall {
9902	c := &HybridIssuersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9903	c.name = name
9904	return c
9905}
9906
9907// Fields allows partial responses to be retrieved. See
9908// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9909// for more information.
9910func (c *HybridIssuersListCall) Fields(s ...googleapi.Field) *HybridIssuersListCall {
9911	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9912	return c
9913}
9914
9915// IfNoneMatch sets the optional parameter which makes the operation
9916// fail if the object's ETag matches the given value. This is useful for
9917// getting updates only after the object has changed since the last
9918// request. Use googleapi.IsNotModified to check whether the response
9919// error from Do is the result of In-None-Match.
9920func (c *HybridIssuersListCall) IfNoneMatch(entityTag string) *HybridIssuersListCall {
9921	c.ifNoneMatch_ = entityTag
9922	return c
9923}
9924
9925// Context sets the context to be used in this call's Do method. Any
9926// pending HTTP request will be aborted if the provided context is
9927// canceled.
9928func (c *HybridIssuersListCall) Context(ctx context.Context) *HybridIssuersListCall {
9929	c.ctx_ = ctx
9930	return c
9931}
9932
9933// Header returns an http.Header that can be modified by the caller to
9934// add HTTP headers to the request.
9935func (c *HybridIssuersListCall) Header() http.Header {
9936	if c.header_ == nil {
9937		c.header_ = make(http.Header)
9938	}
9939	return c.header_
9940}
9941
9942func (c *HybridIssuersListCall) doRequest(alt string) (*http.Response, error) {
9943	reqHeaders := make(http.Header)
9944	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
9945	for k, v := range c.header_ {
9946		reqHeaders[k] = v
9947	}
9948	reqHeaders.Set("User-Agent", c.s.userAgent())
9949	if c.ifNoneMatch_ != "" {
9950		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9951	}
9952	var body io.Reader = nil
9953	c.urlParams_.Set("alt", alt)
9954	c.urlParams_.Set("prettyPrint", "false")
9955	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
9956	urls += "?" + c.urlParams_.Encode()
9957	req, err := http.NewRequest("GET", urls, body)
9958	if err != nil {
9959		return nil, err
9960	}
9961	req.Header = reqHeaders
9962	googleapi.Expand(req.URL, map[string]string{
9963		"name": c.name,
9964	})
9965	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9966}
9967
9968// Do executes the "apigee.hybrid.issuers.list" call.
9969// Exactly one of *GoogleCloudApigeeV1ListHybridIssuersResponse or error
9970// will be non-nil. Any non-2xx status code is an error. Response
9971// headers are in either
9972// *GoogleCloudApigeeV1ListHybridIssuersResponse.ServerResponse.Header
9973// or (if a response was returned at all) in
9974// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
9975// whether the returned error was because http.StatusNotModified was
9976// returned.
9977func (c *HybridIssuersListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListHybridIssuersResponse, error) {
9978	gensupport.SetOptions(c.urlParams_, opts...)
9979	res, err := c.doRequest("json")
9980	if res != nil && res.StatusCode == http.StatusNotModified {
9981		if res.Body != nil {
9982			res.Body.Close()
9983		}
9984		return nil, &googleapi.Error{
9985			Code:   res.StatusCode,
9986			Header: res.Header,
9987		}
9988	}
9989	if err != nil {
9990		return nil, err
9991	}
9992	defer googleapi.CloseBody(res)
9993	if err := googleapi.CheckResponse(res); err != nil {
9994		return nil, err
9995	}
9996	ret := &GoogleCloudApigeeV1ListHybridIssuersResponse{
9997		ServerResponse: googleapi.ServerResponse{
9998			Header:         res.Header,
9999			HTTPStatusCode: res.StatusCode,
10000		},
10001	}
10002	target := &ret
10003	if err := gensupport.DecodeResponse(target, res); err != nil {
10004		return nil, err
10005	}
10006	return ret, nil
10007	// {
10008	//   "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.",
10009	//   "flatPath": "v1/hybrid/issuers",
10010	//   "httpMethod": "GET",
10011	//   "id": "apigee.hybrid.issuers.list",
10012	//   "parameterOrder": [
10013	//     "name"
10014	//   ],
10015	//   "parameters": {
10016	//     "name": {
10017	//       "description": "Required. Must be of the form `hybrid/issuers`.",
10018	//       "location": "path",
10019	//       "pattern": "^hybrid/issuers$",
10020	//       "required": true,
10021	//       "type": "string"
10022	//     }
10023	//   },
10024	//   "path": "v1/{+name}",
10025	//   "response": {
10026	//     "$ref": "GoogleCloudApigeeV1ListHybridIssuersResponse"
10027	//   },
10028	//   "scopes": [
10029	//     "https://www.googleapis.com/auth/cloud-platform"
10030	//   ]
10031	// }
10032
10033}
10034
10035// method id "apigee.organizations.create":
10036
10037type OrganizationsCreateCall struct {
10038	s                               *Service
10039	googlecloudapigeev1organization *GoogleCloudApigeeV1Organization
10040	urlParams_                      gensupport.URLParams
10041	ctx_                            context.Context
10042	header_                         http.Header
10043}
10044
10045// Create: Creates an Apigee organization. See Create an Apigee
10046// organization
10047// (https://cloud.google.com/apigee/docs/api-platform/get-started/create-org).
10048func (r *OrganizationsService) Create(googlecloudapigeev1organization *GoogleCloudApigeeV1Organization) *OrganizationsCreateCall {
10049	c := &OrganizationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10050	c.googlecloudapigeev1organization = googlecloudapigeev1organization
10051	return c
10052}
10053
10054// Parent sets the optional parameter "parent": Required. Name of the
10055// GCP project in which to associate the Apigee organization. Pass the
10056// information as a query parameter using the following structure in
10057// your request: `projects/`
10058func (c *OrganizationsCreateCall) Parent(parent string) *OrganizationsCreateCall {
10059	c.urlParams_.Set("parent", parent)
10060	return c
10061}
10062
10063// Fields allows partial responses to be retrieved. See
10064// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10065// for more information.
10066func (c *OrganizationsCreateCall) Fields(s ...googleapi.Field) *OrganizationsCreateCall {
10067	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10068	return c
10069}
10070
10071// Context sets the context to be used in this call's Do method. Any
10072// pending HTTP request will be aborted if the provided context is
10073// canceled.
10074func (c *OrganizationsCreateCall) Context(ctx context.Context) *OrganizationsCreateCall {
10075	c.ctx_ = ctx
10076	return c
10077}
10078
10079// Header returns an http.Header that can be modified by the caller to
10080// add HTTP headers to the request.
10081func (c *OrganizationsCreateCall) Header() http.Header {
10082	if c.header_ == nil {
10083		c.header_ = make(http.Header)
10084	}
10085	return c.header_
10086}
10087
10088func (c *OrganizationsCreateCall) doRequest(alt string) (*http.Response, error) {
10089	reqHeaders := make(http.Header)
10090	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
10091	for k, v := range c.header_ {
10092		reqHeaders[k] = v
10093	}
10094	reqHeaders.Set("User-Agent", c.s.userAgent())
10095	var body io.Reader = nil
10096	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1organization)
10097	if err != nil {
10098		return nil, err
10099	}
10100	reqHeaders.Set("Content-Type", "application/json")
10101	c.urlParams_.Set("alt", alt)
10102	c.urlParams_.Set("prettyPrint", "false")
10103	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/organizations")
10104	urls += "?" + c.urlParams_.Encode()
10105	req, err := http.NewRequest("POST", urls, body)
10106	if err != nil {
10107		return nil, err
10108	}
10109	req.Header = reqHeaders
10110	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10111}
10112
10113// Do executes the "apigee.organizations.create" call.
10114// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
10115// Any non-2xx status code is an error. Response headers are in either
10116// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
10117// was returned at all) in error.(*googleapi.Error).Header. Use
10118// googleapi.IsNotModified to check whether the returned error was
10119// because http.StatusNotModified was returned.
10120func (c *OrganizationsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
10121	gensupport.SetOptions(c.urlParams_, opts...)
10122	res, err := c.doRequest("json")
10123	if res != nil && res.StatusCode == http.StatusNotModified {
10124		if res.Body != nil {
10125			res.Body.Close()
10126		}
10127		return nil, &googleapi.Error{
10128			Code:   res.StatusCode,
10129			Header: res.Header,
10130		}
10131	}
10132	if err != nil {
10133		return nil, err
10134	}
10135	defer googleapi.CloseBody(res)
10136	if err := googleapi.CheckResponse(res); err != nil {
10137		return nil, err
10138	}
10139	ret := &GoogleLongrunningOperation{
10140		ServerResponse: googleapi.ServerResponse{
10141			Header:         res.Header,
10142			HTTPStatusCode: res.StatusCode,
10143		},
10144	}
10145	target := &ret
10146	if err := gensupport.DecodeResponse(target, res); err != nil {
10147		return nil, err
10148	}
10149	return ret, nil
10150	// {
10151	//   "description": "Creates an Apigee organization. See [Create an Apigee organization](https://cloud.google.com/apigee/docs/api-platform/get-started/create-org).",
10152	//   "flatPath": "v1/organizations",
10153	//   "httpMethod": "POST",
10154	//   "id": "apigee.organizations.create",
10155	//   "parameterOrder": [],
10156	//   "parameters": {
10157	//     "parent": {
10158	//       "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/`",
10159	//       "location": "query",
10160	//       "type": "string"
10161	//     }
10162	//   },
10163	//   "path": "v1/organizations",
10164	//   "request": {
10165	//     "$ref": "GoogleCloudApigeeV1Organization"
10166	//   },
10167	//   "response": {
10168	//     "$ref": "GoogleLongrunningOperation"
10169	//   },
10170	//   "scopes": [
10171	//     "https://www.googleapis.com/auth/cloud-platform"
10172	//   ]
10173	// }
10174
10175}
10176
10177// method id "apigee.organizations.delete":
10178
10179type OrganizationsDeleteCall struct {
10180	s          *Service
10181	name       string
10182	urlParams_ gensupport.URLParams
10183	ctx_       context.Context
10184	header_    http.Header
10185}
10186
10187// Delete: Delete an Apigee organization. Only supported for
10188// SubscriptionType TRIAL.
10189//
10190// - name: Name of the organization. Use the following structure in your
10191//   request: `organizations/{org}`.
10192func (r *OrganizationsService) Delete(name string) *OrganizationsDeleteCall {
10193	c := &OrganizationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10194	c.name = name
10195	return c
10196}
10197
10198// Fields allows partial responses to be retrieved. See
10199// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10200// for more information.
10201func (c *OrganizationsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDeleteCall {
10202	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10203	return c
10204}
10205
10206// Context sets the context to be used in this call's Do method. Any
10207// pending HTTP request will be aborted if the provided context is
10208// canceled.
10209func (c *OrganizationsDeleteCall) Context(ctx context.Context) *OrganizationsDeleteCall {
10210	c.ctx_ = ctx
10211	return c
10212}
10213
10214// Header returns an http.Header that can be modified by the caller to
10215// add HTTP headers to the request.
10216func (c *OrganizationsDeleteCall) Header() http.Header {
10217	if c.header_ == nil {
10218		c.header_ = make(http.Header)
10219	}
10220	return c.header_
10221}
10222
10223func (c *OrganizationsDeleteCall) doRequest(alt string) (*http.Response, error) {
10224	reqHeaders := make(http.Header)
10225	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
10226	for k, v := range c.header_ {
10227		reqHeaders[k] = v
10228	}
10229	reqHeaders.Set("User-Agent", c.s.userAgent())
10230	var body io.Reader = nil
10231	c.urlParams_.Set("alt", alt)
10232	c.urlParams_.Set("prettyPrint", "false")
10233	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
10234	urls += "?" + c.urlParams_.Encode()
10235	req, err := http.NewRequest("DELETE", urls, body)
10236	if err != nil {
10237		return nil, err
10238	}
10239	req.Header = reqHeaders
10240	googleapi.Expand(req.URL, map[string]string{
10241		"name": c.name,
10242	})
10243	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10244}
10245
10246// Do executes the "apigee.organizations.delete" call.
10247// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
10248// Any non-2xx status code is an error. Response headers are in either
10249// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
10250// was returned at all) in error.(*googleapi.Error).Header. Use
10251// googleapi.IsNotModified to check whether the returned error was
10252// because http.StatusNotModified was returned.
10253func (c *OrganizationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
10254	gensupport.SetOptions(c.urlParams_, opts...)
10255	res, err := c.doRequest("json")
10256	if res != nil && res.StatusCode == http.StatusNotModified {
10257		if res.Body != nil {
10258			res.Body.Close()
10259		}
10260		return nil, &googleapi.Error{
10261			Code:   res.StatusCode,
10262			Header: res.Header,
10263		}
10264	}
10265	if err != nil {
10266		return nil, err
10267	}
10268	defer googleapi.CloseBody(res)
10269	if err := googleapi.CheckResponse(res); err != nil {
10270		return nil, err
10271	}
10272	ret := &GoogleLongrunningOperation{
10273		ServerResponse: googleapi.ServerResponse{
10274			Header:         res.Header,
10275			HTTPStatusCode: res.StatusCode,
10276		},
10277	}
10278	target := &ret
10279	if err := gensupport.DecodeResponse(target, res); err != nil {
10280		return nil, err
10281	}
10282	return ret, nil
10283	// {
10284	//   "description": "Delete an Apigee organization. Only supported for SubscriptionType TRIAL.",
10285	//   "flatPath": "v1/organizations/{organizationsId}",
10286	//   "httpMethod": "DELETE",
10287	//   "id": "apigee.organizations.delete",
10288	//   "parameterOrder": [
10289	//     "name"
10290	//   ],
10291	//   "parameters": {
10292	//     "name": {
10293	//       "description": "Required. Name of the organization. Use the following structure in your request: `organizations/{org}`",
10294	//       "location": "path",
10295	//       "pattern": "^organizations/[^/]+$",
10296	//       "required": true,
10297	//       "type": "string"
10298	//     }
10299	//   },
10300	//   "path": "v1/{+name}",
10301	//   "response": {
10302	//     "$ref": "GoogleLongrunningOperation"
10303	//   },
10304	//   "scopes": [
10305	//     "https://www.googleapis.com/auth/cloud-platform"
10306	//   ]
10307	// }
10308
10309}
10310
10311// method id "apigee.organizations.get":
10312
10313type OrganizationsGetCall struct {
10314	s            *Service
10315	name         string
10316	urlParams_   gensupport.URLParams
10317	ifNoneMatch_ string
10318	ctx_         context.Context
10319	header_      http.Header
10320}
10321
10322// Get: Gets the profile for an Apigee organization. See Understanding
10323// organizations
10324// (https://cloud.google.com/apigee/docs/api-platform/fundamentals/organization-structure).
10325//
10326// - name: Apigee organization name in the following format:
10327//   `organizations/{org}`.
10328func (r *OrganizationsService) Get(name string) *OrganizationsGetCall {
10329	c := &OrganizationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10330	c.name = name
10331	return c
10332}
10333
10334// Fields allows partial responses to be retrieved. See
10335// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10336// for more information.
10337func (c *OrganizationsGetCall) Fields(s ...googleapi.Field) *OrganizationsGetCall {
10338	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10339	return c
10340}
10341
10342// IfNoneMatch sets the optional parameter which makes the operation
10343// fail if the object's ETag matches the given value. This is useful for
10344// getting updates only after the object has changed since the last
10345// request. Use googleapi.IsNotModified to check whether the response
10346// error from Do is the result of In-None-Match.
10347func (c *OrganizationsGetCall) IfNoneMatch(entityTag string) *OrganizationsGetCall {
10348	c.ifNoneMatch_ = entityTag
10349	return c
10350}
10351
10352// Context sets the context to be used in this call's Do method. Any
10353// pending HTTP request will be aborted if the provided context is
10354// canceled.
10355func (c *OrganizationsGetCall) Context(ctx context.Context) *OrganizationsGetCall {
10356	c.ctx_ = ctx
10357	return c
10358}
10359
10360// Header returns an http.Header that can be modified by the caller to
10361// add HTTP headers to the request.
10362func (c *OrganizationsGetCall) Header() http.Header {
10363	if c.header_ == nil {
10364		c.header_ = make(http.Header)
10365	}
10366	return c.header_
10367}
10368
10369func (c *OrganizationsGetCall) doRequest(alt string) (*http.Response, error) {
10370	reqHeaders := make(http.Header)
10371	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
10372	for k, v := range c.header_ {
10373		reqHeaders[k] = v
10374	}
10375	reqHeaders.Set("User-Agent", c.s.userAgent())
10376	if c.ifNoneMatch_ != "" {
10377		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10378	}
10379	var body io.Reader = nil
10380	c.urlParams_.Set("alt", alt)
10381	c.urlParams_.Set("prettyPrint", "false")
10382	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
10383	urls += "?" + c.urlParams_.Encode()
10384	req, err := http.NewRequest("GET", urls, body)
10385	if err != nil {
10386		return nil, err
10387	}
10388	req.Header = reqHeaders
10389	googleapi.Expand(req.URL, map[string]string{
10390		"name": c.name,
10391	})
10392	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10393}
10394
10395// Do executes the "apigee.organizations.get" call.
10396// Exactly one of *GoogleCloudApigeeV1Organization or error will be
10397// non-nil. Any non-2xx status code is an error. Response headers are in
10398// either *GoogleCloudApigeeV1Organization.ServerResponse.Header or (if
10399// a response was returned at all) in error.(*googleapi.Error).Header.
10400// Use googleapi.IsNotModified to check whether the returned error was
10401// because http.StatusNotModified was returned.
10402func (c *OrganizationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Organization, error) {
10403	gensupport.SetOptions(c.urlParams_, opts...)
10404	res, err := c.doRequest("json")
10405	if res != nil && res.StatusCode == http.StatusNotModified {
10406		if res.Body != nil {
10407			res.Body.Close()
10408		}
10409		return nil, &googleapi.Error{
10410			Code:   res.StatusCode,
10411			Header: res.Header,
10412		}
10413	}
10414	if err != nil {
10415		return nil, err
10416	}
10417	defer googleapi.CloseBody(res)
10418	if err := googleapi.CheckResponse(res); err != nil {
10419		return nil, err
10420	}
10421	ret := &GoogleCloudApigeeV1Organization{
10422		ServerResponse: googleapi.ServerResponse{
10423			Header:         res.Header,
10424			HTTPStatusCode: res.StatusCode,
10425		},
10426	}
10427	target := &ret
10428	if err := gensupport.DecodeResponse(target, res); err != nil {
10429		return nil, err
10430	}
10431	return ret, nil
10432	// {
10433	//   "description": "Gets the profile for an Apigee organization. See [Understanding organizations](https://cloud.google.com/apigee/docs/api-platform/fundamentals/organization-structure).",
10434	//   "flatPath": "v1/organizations/{organizationsId}",
10435	//   "httpMethod": "GET",
10436	//   "id": "apigee.organizations.get",
10437	//   "parameterOrder": [
10438	//     "name"
10439	//   ],
10440	//   "parameters": {
10441	//     "name": {
10442	//       "description": "Required. Apigee organization name in the following format: `organizations/{org}`",
10443	//       "location": "path",
10444	//       "pattern": "^organizations/[^/]+$",
10445	//       "required": true,
10446	//       "type": "string"
10447	//     }
10448	//   },
10449	//   "path": "v1/{+name}",
10450	//   "response": {
10451	//     "$ref": "GoogleCloudApigeeV1Organization"
10452	//   },
10453	//   "scopes": [
10454	//     "https://www.googleapis.com/auth/cloud-platform"
10455	//   ]
10456	// }
10457
10458}
10459
10460// method id "apigee.organizations.getDeployedIngressConfig":
10461
10462type OrganizationsGetDeployedIngressConfigCall struct {
10463	s            *Service
10464	name         string
10465	urlParams_   gensupport.URLParams
10466	ifNoneMatch_ string
10467	ctx_         context.Context
10468	header_      http.Header
10469}
10470
10471// GetDeployedIngressConfig: Gets the deployed ingress configuration for
10472// an organization.
10473//
10474// - name: Name of the deployed configuration for the organization in
10475//   the following format: 'organizations/{org}/deployedIngressConfig'.
10476func (r *OrganizationsService) GetDeployedIngressConfig(name string) *OrganizationsGetDeployedIngressConfigCall {
10477	c := &OrganizationsGetDeployedIngressConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10478	c.name = name
10479	return c
10480}
10481
10482// View sets the optional parameter "view": When set to FULL, additional
10483// details about the specific deployments receiving traffic will be
10484// included in the IngressConfig response's RoutingRules.
10485//
10486// Possible values:
10487//   "INGRESS_CONFIG_VIEW_UNSPECIFIED" - The default/unset value. The
10488// API will default to the BASIC view.
10489//   "BASIC" - Include all ingress config data necessary for the runtime
10490// to configure ingress, but no more. Routing rules will include only
10491// basepath and destination environment. This the default value.
10492//   "FULL" - Include all ingress config data, including internal debug
10493// info for each routing rule such as the proxy claiming a particular
10494// basepath and when the routing rule first appeared in the env group.
10495func (c *OrganizationsGetDeployedIngressConfigCall) View(view string) *OrganizationsGetDeployedIngressConfigCall {
10496	c.urlParams_.Set("view", view)
10497	return c
10498}
10499
10500// Fields allows partial responses to be retrieved. See
10501// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10502// for more information.
10503func (c *OrganizationsGetDeployedIngressConfigCall) Fields(s ...googleapi.Field) *OrganizationsGetDeployedIngressConfigCall {
10504	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10505	return c
10506}
10507
10508// IfNoneMatch sets the optional parameter which makes the operation
10509// fail if the object's ETag matches the given value. This is useful for
10510// getting updates only after the object has changed since the last
10511// request. Use googleapi.IsNotModified to check whether the response
10512// error from Do is the result of In-None-Match.
10513func (c *OrganizationsGetDeployedIngressConfigCall) IfNoneMatch(entityTag string) *OrganizationsGetDeployedIngressConfigCall {
10514	c.ifNoneMatch_ = entityTag
10515	return c
10516}
10517
10518// Context sets the context to be used in this call's Do method. Any
10519// pending HTTP request will be aborted if the provided context is
10520// canceled.
10521func (c *OrganizationsGetDeployedIngressConfigCall) Context(ctx context.Context) *OrganizationsGetDeployedIngressConfigCall {
10522	c.ctx_ = ctx
10523	return c
10524}
10525
10526// Header returns an http.Header that can be modified by the caller to
10527// add HTTP headers to the request.
10528func (c *OrganizationsGetDeployedIngressConfigCall) Header() http.Header {
10529	if c.header_ == nil {
10530		c.header_ = make(http.Header)
10531	}
10532	return c.header_
10533}
10534
10535func (c *OrganizationsGetDeployedIngressConfigCall) doRequest(alt string) (*http.Response, error) {
10536	reqHeaders := make(http.Header)
10537	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
10538	for k, v := range c.header_ {
10539		reqHeaders[k] = v
10540	}
10541	reqHeaders.Set("User-Agent", c.s.userAgent())
10542	if c.ifNoneMatch_ != "" {
10543		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10544	}
10545	var body io.Reader = nil
10546	c.urlParams_.Set("alt", alt)
10547	c.urlParams_.Set("prettyPrint", "false")
10548	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
10549	urls += "?" + c.urlParams_.Encode()
10550	req, err := http.NewRequest("GET", urls, body)
10551	if err != nil {
10552		return nil, err
10553	}
10554	req.Header = reqHeaders
10555	googleapi.Expand(req.URL, map[string]string{
10556		"name": c.name,
10557	})
10558	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10559}
10560
10561// Do executes the "apigee.organizations.getDeployedIngressConfig" call.
10562// Exactly one of *GoogleCloudApigeeV1IngressConfig or error will be
10563// non-nil. Any non-2xx status code is an error. Response headers are in
10564// either *GoogleCloudApigeeV1IngressConfig.ServerResponse.Header or (if
10565// a response was returned at all) in error.(*googleapi.Error).Header.
10566// Use googleapi.IsNotModified to check whether the returned error was
10567// because http.StatusNotModified was returned.
10568func (c *OrganizationsGetDeployedIngressConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1IngressConfig, error) {
10569	gensupport.SetOptions(c.urlParams_, opts...)
10570	res, err := c.doRequest("json")
10571	if res != nil && res.StatusCode == http.StatusNotModified {
10572		if res.Body != nil {
10573			res.Body.Close()
10574		}
10575		return nil, &googleapi.Error{
10576			Code:   res.StatusCode,
10577			Header: res.Header,
10578		}
10579	}
10580	if err != nil {
10581		return nil, err
10582	}
10583	defer googleapi.CloseBody(res)
10584	if err := googleapi.CheckResponse(res); err != nil {
10585		return nil, err
10586	}
10587	ret := &GoogleCloudApigeeV1IngressConfig{
10588		ServerResponse: googleapi.ServerResponse{
10589			Header:         res.Header,
10590			HTTPStatusCode: res.StatusCode,
10591		},
10592	}
10593	target := &ret
10594	if err := gensupport.DecodeResponse(target, res); err != nil {
10595		return nil, err
10596	}
10597	return ret, nil
10598	// {
10599	//   "description": "Gets the deployed ingress configuration for an organization.",
10600	//   "flatPath": "v1/organizations/{organizationsId}/deployedIngressConfig",
10601	//   "httpMethod": "GET",
10602	//   "id": "apigee.organizations.getDeployedIngressConfig",
10603	//   "parameterOrder": [
10604	//     "name"
10605	//   ],
10606	//   "parameters": {
10607	//     "name": {
10608	//       "description": "Required. Name of the deployed configuration for the organization in the following format: 'organizations/{org}/deployedIngressConfig'.",
10609	//       "location": "path",
10610	//       "pattern": "^organizations/[^/]+/deployedIngressConfig$",
10611	//       "required": true,
10612	//       "type": "string"
10613	//     },
10614	//     "view": {
10615	//       "description": "When set to FULL, additional details about the specific deployments receiving traffic will be included in the IngressConfig response's RoutingRules.",
10616	//       "enum": [
10617	//         "INGRESS_CONFIG_VIEW_UNSPECIFIED",
10618	//         "BASIC",
10619	//         "FULL"
10620	//       ],
10621	//       "enumDescriptions": [
10622	//         "The default/unset value. The API will default to the BASIC view.",
10623	//         "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.",
10624	//         "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."
10625	//       ],
10626	//       "location": "query",
10627	//       "type": "string"
10628	//     }
10629	//   },
10630	//   "path": "v1/{+name}",
10631	//   "response": {
10632	//     "$ref": "GoogleCloudApigeeV1IngressConfig"
10633	//   },
10634	//   "scopes": [
10635	//     "https://www.googleapis.com/auth/cloud-platform"
10636	//   ]
10637	// }
10638
10639}
10640
10641// method id "apigee.organizations.getRuntimeConfig":
10642
10643type OrganizationsGetRuntimeConfigCall struct {
10644	s            *Service
10645	name         string
10646	urlParams_   gensupport.URLParams
10647	ifNoneMatch_ string
10648	ctx_         context.Context
10649	header_      http.Header
10650}
10651
10652// GetRuntimeConfig: Get runtime config for an organization.
10653//
10654// - name: Name of the runtime config for the organization in the
10655//   following format: 'organizations/{org}/runtimeConfig'.
10656func (r *OrganizationsService) GetRuntimeConfig(name string) *OrganizationsGetRuntimeConfigCall {
10657	c := &OrganizationsGetRuntimeConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10658	c.name = name
10659	return c
10660}
10661
10662// Fields allows partial responses to be retrieved. See
10663// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10664// for more information.
10665func (c *OrganizationsGetRuntimeConfigCall) Fields(s ...googleapi.Field) *OrganizationsGetRuntimeConfigCall {
10666	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10667	return c
10668}
10669
10670// IfNoneMatch sets the optional parameter which makes the operation
10671// fail if the object's ETag matches the given value. This is useful for
10672// getting updates only after the object has changed since the last
10673// request. Use googleapi.IsNotModified to check whether the response
10674// error from Do is the result of In-None-Match.
10675func (c *OrganizationsGetRuntimeConfigCall) IfNoneMatch(entityTag string) *OrganizationsGetRuntimeConfigCall {
10676	c.ifNoneMatch_ = entityTag
10677	return c
10678}
10679
10680// Context sets the context to be used in this call's Do method. Any
10681// pending HTTP request will be aborted if the provided context is
10682// canceled.
10683func (c *OrganizationsGetRuntimeConfigCall) Context(ctx context.Context) *OrganizationsGetRuntimeConfigCall {
10684	c.ctx_ = ctx
10685	return c
10686}
10687
10688// Header returns an http.Header that can be modified by the caller to
10689// add HTTP headers to the request.
10690func (c *OrganizationsGetRuntimeConfigCall) Header() http.Header {
10691	if c.header_ == nil {
10692		c.header_ = make(http.Header)
10693	}
10694	return c.header_
10695}
10696
10697func (c *OrganizationsGetRuntimeConfigCall) doRequest(alt string) (*http.Response, error) {
10698	reqHeaders := make(http.Header)
10699	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
10700	for k, v := range c.header_ {
10701		reqHeaders[k] = v
10702	}
10703	reqHeaders.Set("User-Agent", c.s.userAgent())
10704	if c.ifNoneMatch_ != "" {
10705		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10706	}
10707	var body io.Reader = nil
10708	c.urlParams_.Set("alt", alt)
10709	c.urlParams_.Set("prettyPrint", "false")
10710	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
10711	urls += "?" + c.urlParams_.Encode()
10712	req, err := http.NewRequest("GET", urls, body)
10713	if err != nil {
10714		return nil, err
10715	}
10716	req.Header = reqHeaders
10717	googleapi.Expand(req.URL, map[string]string{
10718		"name": c.name,
10719	})
10720	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10721}
10722
10723// Do executes the "apigee.organizations.getRuntimeConfig" call.
10724// Exactly one of *GoogleCloudApigeeV1RuntimeConfig or error will be
10725// non-nil. Any non-2xx status code is an error. Response headers are in
10726// either *GoogleCloudApigeeV1RuntimeConfig.ServerResponse.Header or (if
10727// a response was returned at all) in error.(*googleapi.Error).Header.
10728// Use googleapi.IsNotModified to check whether the returned error was
10729// because http.StatusNotModified was returned.
10730func (c *OrganizationsGetRuntimeConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1RuntimeConfig, error) {
10731	gensupport.SetOptions(c.urlParams_, opts...)
10732	res, err := c.doRequest("json")
10733	if res != nil && res.StatusCode == http.StatusNotModified {
10734		if res.Body != nil {
10735			res.Body.Close()
10736		}
10737		return nil, &googleapi.Error{
10738			Code:   res.StatusCode,
10739			Header: res.Header,
10740		}
10741	}
10742	if err != nil {
10743		return nil, err
10744	}
10745	defer googleapi.CloseBody(res)
10746	if err := googleapi.CheckResponse(res); err != nil {
10747		return nil, err
10748	}
10749	ret := &GoogleCloudApigeeV1RuntimeConfig{
10750		ServerResponse: googleapi.ServerResponse{
10751			Header:         res.Header,
10752			HTTPStatusCode: res.StatusCode,
10753		},
10754	}
10755	target := &ret
10756	if err := gensupport.DecodeResponse(target, res); err != nil {
10757		return nil, err
10758	}
10759	return ret, nil
10760	// {
10761	//   "description": "Get runtime config for an organization.",
10762	//   "flatPath": "v1/organizations/{organizationsId}/runtimeConfig",
10763	//   "httpMethod": "GET",
10764	//   "id": "apigee.organizations.getRuntimeConfig",
10765	//   "parameterOrder": [
10766	//     "name"
10767	//   ],
10768	//   "parameters": {
10769	//     "name": {
10770	//       "description": "Required. Name of the runtime config for the organization in the following format: 'organizations/{org}/runtimeConfig'.",
10771	//       "location": "path",
10772	//       "pattern": "^organizations/[^/]+/runtimeConfig$",
10773	//       "required": true,
10774	//       "type": "string"
10775	//     }
10776	//   },
10777	//   "path": "v1/{+name}",
10778	//   "response": {
10779	//     "$ref": "GoogleCloudApigeeV1RuntimeConfig"
10780	//   },
10781	//   "scopes": [
10782	//     "https://www.googleapis.com/auth/cloud-platform"
10783	//   ]
10784	// }
10785
10786}
10787
10788// method id "apigee.organizations.getSyncAuthorization":
10789
10790type OrganizationsGetSyncAuthorizationCall struct {
10791	s                                              *Service
10792	name                                           string
10793	googlecloudapigeev1getsyncauthorizationrequest *GoogleCloudApigeeV1GetSyncAuthorizationRequest
10794	urlParams_                                     gensupport.URLParams
10795	ctx_                                           context.Context
10796	header_                                        http.Header
10797}
10798
10799// GetSyncAuthorization: Lists the service accounts with the permissions
10800// required to allow the Synchronizer to download environment data from
10801// the control plane. An ETag is returned in the response to
10802// `getSyncAuthorization`. Pass that ETag when calling
10803// setSyncAuthorization (setSyncAuthorization) to ensure that you are
10804// updating the correct version. If you don't pass the ETag in the call
10805// to `setSyncAuthorization`, then the existing authorization is
10806// overwritten indiscriminately. For more information, see Configure the
10807// Synchronizer
10808// (https://cloud.google.com/apigee/docs/hybrid/latest/synchronizer-access).
10809// **Note**: Available to Apigee hybrid only.
10810//
10811// - name: Name of the Apigee organization. Use the following structure
10812//   in your request: `organizations/{org}`.
10813func (r *OrganizationsService) GetSyncAuthorization(name string, googlecloudapigeev1getsyncauthorizationrequest *GoogleCloudApigeeV1GetSyncAuthorizationRequest) *OrganizationsGetSyncAuthorizationCall {
10814	c := &OrganizationsGetSyncAuthorizationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10815	c.name = name
10816	c.googlecloudapigeev1getsyncauthorizationrequest = googlecloudapigeev1getsyncauthorizationrequest
10817	return c
10818}
10819
10820// Fields allows partial responses to be retrieved. See
10821// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10822// for more information.
10823func (c *OrganizationsGetSyncAuthorizationCall) Fields(s ...googleapi.Field) *OrganizationsGetSyncAuthorizationCall {
10824	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10825	return c
10826}
10827
10828// Context sets the context to be used in this call's Do method. Any
10829// pending HTTP request will be aborted if the provided context is
10830// canceled.
10831func (c *OrganizationsGetSyncAuthorizationCall) Context(ctx context.Context) *OrganizationsGetSyncAuthorizationCall {
10832	c.ctx_ = ctx
10833	return c
10834}
10835
10836// Header returns an http.Header that can be modified by the caller to
10837// add HTTP headers to the request.
10838func (c *OrganizationsGetSyncAuthorizationCall) Header() http.Header {
10839	if c.header_ == nil {
10840		c.header_ = make(http.Header)
10841	}
10842	return c.header_
10843}
10844
10845func (c *OrganizationsGetSyncAuthorizationCall) doRequest(alt string) (*http.Response, error) {
10846	reqHeaders := make(http.Header)
10847	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
10848	for k, v := range c.header_ {
10849		reqHeaders[k] = v
10850	}
10851	reqHeaders.Set("User-Agent", c.s.userAgent())
10852	var body io.Reader = nil
10853	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1getsyncauthorizationrequest)
10854	if err != nil {
10855		return nil, err
10856	}
10857	reqHeaders.Set("Content-Type", "application/json")
10858	c.urlParams_.Set("alt", alt)
10859	c.urlParams_.Set("prettyPrint", "false")
10860	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:getSyncAuthorization")
10861	urls += "?" + c.urlParams_.Encode()
10862	req, err := http.NewRequest("POST", urls, body)
10863	if err != nil {
10864		return nil, err
10865	}
10866	req.Header = reqHeaders
10867	googleapi.Expand(req.URL, map[string]string{
10868		"name": c.name,
10869	})
10870	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10871}
10872
10873// Do executes the "apigee.organizations.getSyncAuthorization" call.
10874// Exactly one of *GoogleCloudApigeeV1SyncAuthorization or error will be
10875// non-nil. Any non-2xx status code is an error. Response headers are in
10876// either *GoogleCloudApigeeV1SyncAuthorization.ServerResponse.Header or
10877// (if a response was returned at all) in
10878// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
10879// whether the returned error was because http.StatusNotModified was
10880// returned.
10881func (c *OrganizationsGetSyncAuthorizationCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SyncAuthorization, error) {
10882	gensupport.SetOptions(c.urlParams_, opts...)
10883	res, err := c.doRequest("json")
10884	if res != nil && res.StatusCode == http.StatusNotModified {
10885		if res.Body != nil {
10886			res.Body.Close()
10887		}
10888		return nil, &googleapi.Error{
10889			Code:   res.StatusCode,
10890			Header: res.Header,
10891		}
10892	}
10893	if err != nil {
10894		return nil, err
10895	}
10896	defer googleapi.CloseBody(res)
10897	if err := googleapi.CheckResponse(res); err != nil {
10898		return nil, err
10899	}
10900	ret := &GoogleCloudApigeeV1SyncAuthorization{
10901		ServerResponse: googleapi.ServerResponse{
10902			Header:         res.Header,
10903			HTTPStatusCode: res.StatusCode,
10904		},
10905	}
10906	target := &ret
10907	if err := gensupport.DecodeResponse(target, res); err != nil {
10908		return nil, err
10909	}
10910	return ret, nil
10911	// {
10912	//   "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.",
10913	//   "flatPath": "v1/organizations/{organizationsId}:getSyncAuthorization",
10914	//   "httpMethod": "POST",
10915	//   "id": "apigee.organizations.getSyncAuthorization",
10916	//   "parameterOrder": [
10917	//     "name"
10918	//   ],
10919	//   "parameters": {
10920	//     "name": {
10921	//       "description": "Required. Name of the Apigee organization. Use the following structure in your request: `organizations/{org}`",
10922	//       "location": "path",
10923	//       "pattern": "^organizations/[^/]+$",
10924	//       "required": true,
10925	//       "type": "string"
10926	//     }
10927	//   },
10928	//   "path": "v1/{+name}:getSyncAuthorization",
10929	//   "request": {
10930	//     "$ref": "GoogleCloudApigeeV1GetSyncAuthorizationRequest"
10931	//   },
10932	//   "response": {
10933	//     "$ref": "GoogleCloudApigeeV1SyncAuthorization"
10934	//   },
10935	//   "scopes": [
10936	//     "https://www.googleapis.com/auth/cloud-platform"
10937	//   ]
10938	// }
10939
10940}
10941
10942// method id "apigee.organizations.list":
10943
10944type OrganizationsListCall struct {
10945	s            *Service
10946	parent       string
10947	urlParams_   gensupport.URLParams
10948	ifNoneMatch_ string
10949	ctx_         context.Context
10950	header_      http.Header
10951}
10952
10953// List: Lists the Apigee organizations and associated GCP projects that
10954// you have permission to access. See Understanding organizations
10955// (https://cloud.google.com/apigee/docs/api-platform/fundamentals/organization-structure).
10956//
10957// - parent: Use the following structure in your request:
10958//   `organizations`.
10959func (r *OrganizationsService) List(parent string) *OrganizationsListCall {
10960	c := &OrganizationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10961	c.parent = parent
10962	return c
10963}
10964
10965// Fields allows partial responses to be retrieved. See
10966// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10967// for more information.
10968func (c *OrganizationsListCall) Fields(s ...googleapi.Field) *OrganizationsListCall {
10969	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10970	return c
10971}
10972
10973// IfNoneMatch sets the optional parameter which makes the operation
10974// fail if the object's ETag matches the given value. This is useful for
10975// getting updates only after the object has changed since the last
10976// request. Use googleapi.IsNotModified to check whether the response
10977// error from Do is the result of In-None-Match.
10978func (c *OrganizationsListCall) IfNoneMatch(entityTag string) *OrganizationsListCall {
10979	c.ifNoneMatch_ = entityTag
10980	return c
10981}
10982
10983// Context sets the context to be used in this call's Do method. Any
10984// pending HTTP request will be aborted if the provided context is
10985// canceled.
10986func (c *OrganizationsListCall) Context(ctx context.Context) *OrganizationsListCall {
10987	c.ctx_ = ctx
10988	return c
10989}
10990
10991// Header returns an http.Header that can be modified by the caller to
10992// add HTTP headers to the request.
10993func (c *OrganizationsListCall) Header() http.Header {
10994	if c.header_ == nil {
10995		c.header_ = make(http.Header)
10996	}
10997	return c.header_
10998}
10999
11000func (c *OrganizationsListCall) doRequest(alt string) (*http.Response, error) {
11001	reqHeaders := make(http.Header)
11002	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
11003	for k, v := range c.header_ {
11004		reqHeaders[k] = v
11005	}
11006	reqHeaders.Set("User-Agent", c.s.userAgent())
11007	if c.ifNoneMatch_ != "" {
11008		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11009	}
11010	var body io.Reader = nil
11011	c.urlParams_.Set("alt", alt)
11012	c.urlParams_.Set("prettyPrint", "false")
11013	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}")
11014	urls += "?" + c.urlParams_.Encode()
11015	req, err := http.NewRequest("GET", urls, body)
11016	if err != nil {
11017		return nil, err
11018	}
11019	req.Header = reqHeaders
11020	googleapi.Expand(req.URL, map[string]string{
11021		"parent": c.parent,
11022	})
11023	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11024}
11025
11026// Do executes the "apigee.organizations.list" call.
11027// Exactly one of *GoogleCloudApigeeV1ListOrganizationsResponse or error
11028// will be non-nil. Any non-2xx status code is an error. Response
11029// headers are in either
11030// *GoogleCloudApigeeV1ListOrganizationsResponse.ServerResponse.Header
11031// or (if a response was returned at all) in
11032// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
11033// whether the returned error was because http.StatusNotModified was
11034// returned.
11035func (c *OrganizationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListOrganizationsResponse, error) {
11036	gensupport.SetOptions(c.urlParams_, opts...)
11037	res, err := c.doRequest("json")
11038	if res != nil && res.StatusCode == http.StatusNotModified {
11039		if res.Body != nil {
11040			res.Body.Close()
11041		}
11042		return nil, &googleapi.Error{
11043			Code:   res.StatusCode,
11044			Header: res.Header,
11045		}
11046	}
11047	if err != nil {
11048		return nil, err
11049	}
11050	defer googleapi.CloseBody(res)
11051	if err := googleapi.CheckResponse(res); err != nil {
11052		return nil, err
11053	}
11054	ret := &GoogleCloudApigeeV1ListOrganizationsResponse{
11055		ServerResponse: googleapi.ServerResponse{
11056			Header:         res.Header,
11057			HTTPStatusCode: res.StatusCode,
11058		},
11059	}
11060	target := &ret
11061	if err := gensupport.DecodeResponse(target, res); err != nil {
11062		return nil, err
11063	}
11064	return ret, nil
11065	// {
11066	//   "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).",
11067	//   "flatPath": "v1/organizations",
11068	//   "httpMethod": "GET",
11069	//   "id": "apigee.organizations.list",
11070	//   "parameterOrder": [
11071	//     "parent"
11072	//   ],
11073	//   "parameters": {
11074	//     "parent": {
11075	//       "description": "Required. Use the following structure in your request: `organizations`",
11076	//       "location": "path",
11077	//       "pattern": "^organizations$",
11078	//       "required": true,
11079	//       "type": "string"
11080	//     }
11081	//   },
11082	//   "path": "v1/{+parent}",
11083	//   "response": {
11084	//     "$ref": "GoogleCloudApigeeV1ListOrganizationsResponse"
11085	//   },
11086	//   "scopes": [
11087	//     "https://www.googleapis.com/auth/cloud-platform"
11088	//   ]
11089	// }
11090
11091}
11092
11093// method id "apigee.organizations.setAddons":
11094
11095type OrganizationsSetAddonsCall struct {
11096	s                                   *Service
11097	org                                 string
11098	googlecloudapigeev1setaddonsrequest *GoogleCloudApigeeV1SetAddonsRequest
11099	urlParams_                          gensupport.URLParams
11100	ctx_                                context.Context
11101	header_                             http.Header
11102}
11103
11104// SetAddons: Configures the add-ons for the Apigee organization. The
11105// existing add-on configuration will be fully replaced.
11106//
11107// - org: Name of the organization. Use the following structure in your
11108//   request: `organizations/{org}`.
11109func (r *OrganizationsService) SetAddons(org string, googlecloudapigeev1setaddonsrequest *GoogleCloudApigeeV1SetAddonsRequest) *OrganizationsSetAddonsCall {
11110	c := &OrganizationsSetAddonsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11111	c.org = org
11112	c.googlecloudapigeev1setaddonsrequest = googlecloudapigeev1setaddonsrequest
11113	return c
11114}
11115
11116// Fields allows partial responses to be retrieved. See
11117// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11118// for more information.
11119func (c *OrganizationsSetAddonsCall) Fields(s ...googleapi.Field) *OrganizationsSetAddonsCall {
11120	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11121	return c
11122}
11123
11124// Context sets the context to be used in this call's Do method. Any
11125// pending HTTP request will be aborted if the provided context is
11126// canceled.
11127func (c *OrganizationsSetAddonsCall) Context(ctx context.Context) *OrganizationsSetAddonsCall {
11128	c.ctx_ = ctx
11129	return c
11130}
11131
11132// Header returns an http.Header that can be modified by the caller to
11133// add HTTP headers to the request.
11134func (c *OrganizationsSetAddonsCall) Header() http.Header {
11135	if c.header_ == nil {
11136		c.header_ = make(http.Header)
11137	}
11138	return c.header_
11139}
11140
11141func (c *OrganizationsSetAddonsCall) doRequest(alt string) (*http.Response, error) {
11142	reqHeaders := make(http.Header)
11143	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
11144	for k, v := range c.header_ {
11145		reqHeaders[k] = v
11146	}
11147	reqHeaders.Set("User-Agent", c.s.userAgent())
11148	var body io.Reader = nil
11149	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1setaddonsrequest)
11150	if err != nil {
11151		return nil, err
11152	}
11153	reqHeaders.Set("Content-Type", "application/json")
11154	c.urlParams_.Set("alt", alt)
11155	c.urlParams_.Set("prettyPrint", "false")
11156	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+org}:setAddons")
11157	urls += "?" + c.urlParams_.Encode()
11158	req, err := http.NewRequest("POST", urls, body)
11159	if err != nil {
11160		return nil, err
11161	}
11162	req.Header = reqHeaders
11163	googleapi.Expand(req.URL, map[string]string{
11164		"org": c.org,
11165	})
11166	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11167}
11168
11169// Do executes the "apigee.organizations.setAddons" call.
11170// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
11171// Any non-2xx status code is an error. Response headers are in either
11172// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
11173// was returned at all) in error.(*googleapi.Error).Header. Use
11174// googleapi.IsNotModified to check whether the returned error was
11175// because http.StatusNotModified was returned.
11176func (c *OrganizationsSetAddonsCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
11177	gensupport.SetOptions(c.urlParams_, opts...)
11178	res, err := c.doRequest("json")
11179	if res != nil && res.StatusCode == http.StatusNotModified {
11180		if res.Body != nil {
11181			res.Body.Close()
11182		}
11183		return nil, &googleapi.Error{
11184			Code:   res.StatusCode,
11185			Header: res.Header,
11186		}
11187	}
11188	if err != nil {
11189		return nil, err
11190	}
11191	defer googleapi.CloseBody(res)
11192	if err := googleapi.CheckResponse(res); err != nil {
11193		return nil, err
11194	}
11195	ret := &GoogleLongrunningOperation{
11196		ServerResponse: googleapi.ServerResponse{
11197			Header:         res.Header,
11198			HTTPStatusCode: res.StatusCode,
11199		},
11200	}
11201	target := &ret
11202	if err := gensupport.DecodeResponse(target, res); err != nil {
11203		return nil, err
11204	}
11205	return ret, nil
11206	// {
11207	//   "description": "Configures the add-ons for the Apigee organization. The existing add-on configuration will be fully replaced.",
11208	//   "flatPath": "v1/organizations/{organizationsId}:setAddons",
11209	//   "httpMethod": "POST",
11210	//   "id": "apigee.organizations.setAddons",
11211	//   "parameterOrder": [
11212	//     "org"
11213	//   ],
11214	//   "parameters": {
11215	//     "org": {
11216	//       "description": "Required. Name of the organization. Use the following structure in your request: `organizations/{org}`",
11217	//       "location": "path",
11218	//       "pattern": "^organizations/[^/]+$",
11219	//       "required": true,
11220	//       "type": "string"
11221	//     }
11222	//   },
11223	//   "path": "v1/{+org}:setAddons",
11224	//   "request": {
11225	//     "$ref": "GoogleCloudApigeeV1SetAddonsRequest"
11226	//   },
11227	//   "response": {
11228	//     "$ref": "GoogleLongrunningOperation"
11229	//   },
11230	//   "scopes": [
11231	//     "https://www.googleapis.com/auth/cloud-platform"
11232	//   ]
11233	// }
11234
11235}
11236
11237// method id "apigee.organizations.setSyncAuthorization":
11238
11239type OrganizationsSetSyncAuthorizationCall struct {
11240	s                                    *Service
11241	name                                 string
11242	googlecloudapigeev1syncauthorization *GoogleCloudApigeeV1SyncAuthorization
11243	urlParams_                           gensupport.URLParams
11244	ctx_                                 context.Context
11245	header_                              http.Header
11246}
11247
11248// SetSyncAuthorization: Sets the permissions required to allow the
11249// Synchronizer to download environment data from the control plane. You
11250// must call this API to enable proper functioning of hybrid. Pass the
11251// ETag when calling `setSyncAuthorization` to ensure that you are
11252// updating the correct version. To get an ETag, call
11253// getSyncAuthorization (getSyncAuthorization). If you don't pass the
11254// ETag in the call to `setSyncAuthorization`, then the existing
11255// authorization is overwritten indiscriminately. For more information,
11256// see Configure the Synchronizer
11257// (https://cloud.google.com/apigee/docs/hybrid/latest/synchronizer-access).
11258// **Note**: Available to Apigee hybrid only.
11259//
11260// - name: Name of the Apigee organization. Use the following structure
11261//   in your request: `organizations/{org}`.
11262func (r *OrganizationsService) SetSyncAuthorization(name string, googlecloudapigeev1syncauthorization *GoogleCloudApigeeV1SyncAuthorization) *OrganizationsSetSyncAuthorizationCall {
11263	c := &OrganizationsSetSyncAuthorizationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11264	c.name = name
11265	c.googlecloudapigeev1syncauthorization = googlecloudapigeev1syncauthorization
11266	return c
11267}
11268
11269// Fields allows partial responses to be retrieved. See
11270// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11271// for more information.
11272func (c *OrganizationsSetSyncAuthorizationCall) Fields(s ...googleapi.Field) *OrganizationsSetSyncAuthorizationCall {
11273	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11274	return c
11275}
11276
11277// Context sets the context to be used in this call's Do method. Any
11278// pending HTTP request will be aborted if the provided context is
11279// canceled.
11280func (c *OrganizationsSetSyncAuthorizationCall) Context(ctx context.Context) *OrganizationsSetSyncAuthorizationCall {
11281	c.ctx_ = ctx
11282	return c
11283}
11284
11285// Header returns an http.Header that can be modified by the caller to
11286// add HTTP headers to the request.
11287func (c *OrganizationsSetSyncAuthorizationCall) Header() http.Header {
11288	if c.header_ == nil {
11289		c.header_ = make(http.Header)
11290	}
11291	return c.header_
11292}
11293
11294func (c *OrganizationsSetSyncAuthorizationCall) doRequest(alt string) (*http.Response, error) {
11295	reqHeaders := make(http.Header)
11296	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
11297	for k, v := range c.header_ {
11298		reqHeaders[k] = v
11299	}
11300	reqHeaders.Set("User-Agent", c.s.userAgent())
11301	var body io.Reader = nil
11302	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1syncauthorization)
11303	if err != nil {
11304		return nil, err
11305	}
11306	reqHeaders.Set("Content-Type", "application/json")
11307	c.urlParams_.Set("alt", alt)
11308	c.urlParams_.Set("prettyPrint", "false")
11309	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:setSyncAuthorization")
11310	urls += "?" + c.urlParams_.Encode()
11311	req, err := http.NewRequest("POST", urls, body)
11312	if err != nil {
11313		return nil, err
11314	}
11315	req.Header = reqHeaders
11316	googleapi.Expand(req.URL, map[string]string{
11317		"name": c.name,
11318	})
11319	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11320}
11321
11322// Do executes the "apigee.organizations.setSyncAuthorization" call.
11323// Exactly one of *GoogleCloudApigeeV1SyncAuthorization or error will be
11324// non-nil. Any non-2xx status code is an error. Response headers are in
11325// either *GoogleCloudApigeeV1SyncAuthorization.ServerResponse.Header or
11326// (if a response was returned at all) in
11327// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
11328// whether the returned error was because http.StatusNotModified was
11329// returned.
11330func (c *OrganizationsSetSyncAuthorizationCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SyncAuthorization, error) {
11331	gensupport.SetOptions(c.urlParams_, opts...)
11332	res, err := c.doRequest("json")
11333	if res != nil && res.StatusCode == http.StatusNotModified {
11334		if res.Body != nil {
11335			res.Body.Close()
11336		}
11337		return nil, &googleapi.Error{
11338			Code:   res.StatusCode,
11339			Header: res.Header,
11340		}
11341	}
11342	if err != nil {
11343		return nil, err
11344	}
11345	defer googleapi.CloseBody(res)
11346	if err := googleapi.CheckResponse(res); err != nil {
11347		return nil, err
11348	}
11349	ret := &GoogleCloudApigeeV1SyncAuthorization{
11350		ServerResponse: googleapi.ServerResponse{
11351			Header:         res.Header,
11352			HTTPStatusCode: res.StatusCode,
11353		},
11354	}
11355	target := &ret
11356	if err := gensupport.DecodeResponse(target, res); err != nil {
11357		return nil, err
11358	}
11359	return ret, nil
11360	// {
11361	//   "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.",
11362	//   "flatPath": "v1/organizations/{organizationsId}:setSyncAuthorization",
11363	//   "httpMethod": "POST",
11364	//   "id": "apigee.organizations.setSyncAuthorization",
11365	//   "parameterOrder": [
11366	//     "name"
11367	//   ],
11368	//   "parameters": {
11369	//     "name": {
11370	//       "description": "Required. Name of the Apigee organization. Use the following structure in your request: `organizations/{org}`",
11371	//       "location": "path",
11372	//       "pattern": "^organizations/[^/]+$",
11373	//       "required": true,
11374	//       "type": "string"
11375	//     }
11376	//   },
11377	//   "path": "v1/{+name}:setSyncAuthorization",
11378	//   "request": {
11379	//     "$ref": "GoogleCloudApigeeV1SyncAuthorization"
11380	//   },
11381	//   "response": {
11382	//     "$ref": "GoogleCloudApigeeV1SyncAuthorization"
11383	//   },
11384	//   "scopes": [
11385	//     "https://www.googleapis.com/auth/cloud-platform"
11386	//   ]
11387	// }
11388
11389}
11390
11391// method id "apigee.organizations.update":
11392
11393type OrganizationsUpdateCall struct {
11394	s                               *Service
11395	name                            string
11396	googlecloudapigeev1organization *GoogleCloudApigeeV1Organization
11397	urlParams_                      gensupport.URLParams
11398	ctx_                            context.Context
11399	header_                         http.Header
11400}
11401
11402// Update: Updates the properties for an Apigee organization. No other
11403// fields in the organization profile will be updated.
11404//
11405// - name: Apigee organization name in the following format:
11406//   `organizations/{org}`.
11407func (r *OrganizationsService) Update(name string, googlecloudapigeev1organization *GoogleCloudApigeeV1Organization) *OrganizationsUpdateCall {
11408	c := &OrganizationsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11409	c.name = name
11410	c.googlecloudapigeev1organization = googlecloudapigeev1organization
11411	return c
11412}
11413
11414// Fields allows partial responses to be retrieved. See
11415// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11416// for more information.
11417func (c *OrganizationsUpdateCall) Fields(s ...googleapi.Field) *OrganizationsUpdateCall {
11418	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11419	return c
11420}
11421
11422// Context sets the context to be used in this call's Do method. Any
11423// pending HTTP request will be aborted if the provided context is
11424// canceled.
11425func (c *OrganizationsUpdateCall) Context(ctx context.Context) *OrganizationsUpdateCall {
11426	c.ctx_ = ctx
11427	return c
11428}
11429
11430// Header returns an http.Header that can be modified by the caller to
11431// add HTTP headers to the request.
11432func (c *OrganizationsUpdateCall) Header() http.Header {
11433	if c.header_ == nil {
11434		c.header_ = make(http.Header)
11435	}
11436	return c.header_
11437}
11438
11439func (c *OrganizationsUpdateCall) doRequest(alt string) (*http.Response, error) {
11440	reqHeaders := make(http.Header)
11441	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
11442	for k, v := range c.header_ {
11443		reqHeaders[k] = v
11444	}
11445	reqHeaders.Set("User-Agent", c.s.userAgent())
11446	var body io.Reader = nil
11447	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1organization)
11448	if err != nil {
11449		return nil, err
11450	}
11451	reqHeaders.Set("Content-Type", "application/json")
11452	c.urlParams_.Set("alt", alt)
11453	c.urlParams_.Set("prettyPrint", "false")
11454	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
11455	urls += "?" + c.urlParams_.Encode()
11456	req, err := http.NewRequest("PUT", urls, body)
11457	if err != nil {
11458		return nil, err
11459	}
11460	req.Header = reqHeaders
11461	googleapi.Expand(req.URL, map[string]string{
11462		"name": c.name,
11463	})
11464	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11465}
11466
11467// Do executes the "apigee.organizations.update" call.
11468// Exactly one of *GoogleCloudApigeeV1Organization or error will be
11469// non-nil. Any non-2xx status code is an error. Response headers are in
11470// either *GoogleCloudApigeeV1Organization.ServerResponse.Header or (if
11471// a response was returned at all) in error.(*googleapi.Error).Header.
11472// Use googleapi.IsNotModified to check whether the returned error was
11473// because http.StatusNotModified was returned.
11474func (c *OrganizationsUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Organization, error) {
11475	gensupport.SetOptions(c.urlParams_, opts...)
11476	res, err := c.doRequest("json")
11477	if res != nil && res.StatusCode == http.StatusNotModified {
11478		if res.Body != nil {
11479			res.Body.Close()
11480		}
11481		return nil, &googleapi.Error{
11482			Code:   res.StatusCode,
11483			Header: res.Header,
11484		}
11485	}
11486	if err != nil {
11487		return nil, err
11488	}
11489	defer googleapi.CloseBody(res)
11490	if err := googleapi.CheckResponse(res); err != nil {
11491		return nil, err
11492	}
11493	ret := &GoogleCloudApigeeV1Organization{
11494		ServerResponse: googleapi.ServerResponse{
11495			Header:         res.Header,
11496			HTTPStatusCode: res.StatusCode,
11497		},
11498	}
11499	target := &ret
11500	if err := gensupport.DecodeResponse(target, res); err != nil {
11501		return nil, err
11502	}
11503	return ret, nil
11504	// {
11505	//   "description": "Updates the properties for an Apigee organization. No other fields in the organization profile will be updated.",
11506	//   "flatPath": "v1/organizations/{organizationsId}",
11507	//   "httpMethod": "PUT",
11508	//   "id": "apigee.organizations.update",
11509	//   "parameterOrder": [
11510	//     "name"
11511	//   ],
11512	//   "parameters": {
11513	//     "name": {
11514	//       "description": "Required. Apigee organization name in the following format: `organizations/{org}`",
11515	//       "location": "path",
11516	//       "pattern": "^organizations/[^/]+$",
11517	//       "required": true,
11518	//       "type": "string"
11519	//     }
11520	//   },
11521	//   "path": "v1/{+name}",
11522	//   "request": {
11523	//     "$ref": "GoogleCloudApigeeV1Organization"
11524	//   },
11525	//   "response": {
11526	//     "$ref": "GoogleCloudApigeeV1Organization"
11527	//   },
11528	//   "scopes": [
11529	//     "https://www.googleapis.com/auth/cloud-platform"
11530	//   ]
11531	// }
11532
11533}
11534
11535// method id "apigee.organizations.analytics.datastores.create":
11536
11537type OrganizationsAnalyticsDatastoresCreateCall struct {
11538	s                            *Service
11539	parent                       string
11540	googlecloudapigeev1datastore *GoogleCloudApigeeV1Datastore
11541	urlParams_                   gensupport.URLParams
11542	ctx_                         context.Context
11543	header_                      http.Header
11544}
11545
11546// Create: Create a Datastore for an org
11547//
11548// - parent: The parent organization name. Must be of the form
11549//   `organizations/{org}`.
11550func (r *OrganizationsAnalyticsDatastoresService) Create(parent string, googlecloudapigeev1datastore *GoogleCloudApigeeV1Datastore) *OrganizationsAnalyticsDatastoresCreateCall {
11551	c := &OrganizationsAnalyticsDatastoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11552	c.parent = parent
11553	c.googlecloudapigeev1datastore = googlecloudapigeev1datastore
11554	return c
11555}
11556
11557// Fields allows partial responses to be retrieved. See
11558// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11559// for more information.
11560func (c *OrganizationsAnalyticsDatastoresCreateCall) Fields(s ...googleapi.Field) *OrganizationsAnalyticsDatastoresCreateCall {
11561	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11562	return c
11563}
11564
11565// Context sets the context to be used in this call's Do method. Any
11566// pending HTTP request will be aborted if the provided context is
11567// canceled.
11568func (c *OrganizationsAnalyticsDatastoresCreateCall) Context(ctx context.Context) *OrganizationsAnalyticsDatastoresCreateCall {
11569	c.ctx_ = ctx
11570	return c
11571}
11572
11573// Header returns an http.Header that can be modified by the caller to
11574// add HTTP headers to the request.
11575func (c *OrganizationsAnalyticsDatastoresCreateCall) Header() http.Header {
11576	if c.header_ == nil {
11577		c.header_ = make(http.Header)
11578	}
11579	return c.header_
11580}
11581
11582func (c *OrganizationsAnalyticsDatastoresCreateCall) doRequest(alt string) (*http.Response, error) {
11583	reqHeaders := make(http.Header)
11584	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
11585	for k, v := range c.header_ {
11586		reqHeaders[k] = v
11587	}
11588	reqHeaders.Set("User-Agent", c.s.userAgent())
11589	var body io.Reader = nil
11590	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1datastore)
11591	if err != nil {
11592		return nil, err
11593	}
11594	reqHeaders.Set("Content-Type", "application/json")
11595	c.urlParams_.Set("alt", alt)
11596	c.urlParams_.Set("prettyPrint", "false")
11597	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/analytics/datastores")
11598	urls += "?" + c.urlParams_.Encode()
11599	req, err := http.NewRequest("POST", urls, body)
11600	if err != nil {
11601		return nil, err
11602	}
11603	req.Header = reqHeaders
11604	googleapi.Expand(req.URL, map[string]string{
11605		"parent": c.parent,
11606	})
11607	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11608}
11609
11610// Do executes the "apigee.organizations.analytics.datastores.create" call.
11611// Exactly one of *GoogleCloudApigeeV1Datastore or error will be
11612// non-nil. Any non-2xx status code is an error. Response headers are in
11613// either *GoogleCloudApigeeV1Datastore.ServerResponse.Header or (if a
11614// response was returned at all) in error.(*googleapi.Error).Header. Use
11615// googleapi.IsNotModified to check whether the returned error was
11616// because http.StatusNotModified was returned.
11617func (c *OrganizationsAnalyticsDatastoresCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Datastore, error) {
11618	gensupport.SetOptions(c.urlParams_, opts...)
11619	res, err := c.doRequest("json")
11620	if res != nil && res.StatusCode == http.StatusNotModified {
11621		if res.Body != nil {
11622			res.Body.Close()
11623		}
11624		return nil, &googleapi.Error{
11625			Code:   res.StatusCode,
11626			Header: res.Header,
11627		}
11628	}
11629	if err != nil {
11630		return nil, err
11631	}
11632	defer googleapi.CloseBody(res)
11633	if err := googleapi.CheckResponse(res); err != nil {
11634		return nil, err
11635	}
11636	ret := &GoogleCloudApigeeV1Datastore{
11637		ServerResponse: googleapi.ServerResponse{
11638			Header:         res.Header,
11639			HTTPStatusCode: res.StatusCode,
11640		},
11641	}
11642	target := &ret
11643	if err := gensupport.DecodeResponse(target, res); err != nil {
11644		return nil, err
11645	}
11646	return ret, nil
11647	// {
11648	//   "description": "Create a Datastore for an org",
11649	//   "flatPath": "v1/organizations/{organizationsId}/analytics/datastores",
11650	//   "httpMethod": "POST",
11651	//   "id": "apigee.organizations.analytics.datastores.create",
11652	//   "parameterOrder": [
11653	//     "parent"
11654	//   ],
11655	//   "parameters": {
11656	//     "parent": {
11657	//       "description": "Required. The parent organization name. Must be of the form `organizations/{org}`.",
11658	//       "location": "path",
11659	//       "pattern": "^organizations/[^/]+$",
11660	//       "required": true,
11661	//       "type": "string"
11662	//     }
11663	//   },
11664	//   "path": "v1/{+parent}/analytics/datastores",
11665	//   "request": {
11666	//     "$ref": "GoogleCloudApigeeV1Datastore"
11667	//   },
11668	//   "response": {
11669	//     "$ref": "GoogleCloudApigeeV1Datastore"
11670	//   },
11671	//   "scopes": [
11672	//     "https://www.googleapis.com/auth/cloud-platform"
11673	//   ]
11674	// }
11675
11676}
11677
11678// method id "apigee.organizations.analytics.datastores.delete":
11679
11680type OrganizationsAnalyticsDatastoresDeleteCall struct {
11681	s          *Service
11682	name       string
11683	urlParams_ gensupport.URLParams
11684	ctx_       context.Context
11685	header_    http.Header
11686}
11687
11688// Delete: Delete a Datastore from an org.
11689//
11690// - name: Resource name of the Datastore to be deleted. Must be of the
11691//   form `organizations/{org}/analytics/datastores/{datastoreId}`.
11692func (r *OrganizationsAnalyticsDatastoresService) Delete(name string) *OrganizationsAnalyticsDatastoresDeleteCall {
11693	c := &OrganizationsAnalyticsDatastoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11694	c.name = name
11695	return c
11696}
11697
11698// Fields allows partial responses to be retrieved. See
11699// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11700// for more information.
11701func (c *OrganizationsAnalyticsDatastoresDeleteCall) Fields(s ...googleapi.Field) *OrganizationsAnalyticsDatastoresDeleteCall {
11702	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11703	return c
11704}
11705
11706// Context sets the context to be used in this call's Do method. Any
11707// pending HTTP request will be aborted if the provided context is
11708// canceled.
11709func (c *OrganizationsAnalyticsDatastoresDeleteCall) Context(ctx context.Context) *OrganizationsAnalyticsDatastoresDeleteCall {
11710	c.ctx_ = ctx
11711	return c
11712}
11713
11714// Header returns an http.Header that can be modified by the caller to
11715// add HTTP headers to the request.
11716func (c *OrganizationsAnalyticsDatastoresDeleteCall) Header() http.Header {
11717	if c.header_ == nil {
11718		c.header_ = make(http.Header)
11719	}
11720	return c.header_
11721}
11722
11723func (c *OrganizationsAnalyticsDatastoresDeleteCall) doRequest(alt string) (*http.Response, error) {
11724	reqHeaders := make(http.Header)
11725	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
11726	for k, v := range c.header_ {
11727		reqHeaders[k] = v
11728	}
11729	reqHeaders.Set("User-Agent", c.s.userAgent())
11730	var body io.Reader = nil
11731	c.urlParams_.Set("alt", alt)
11732	c.urlParams_.Set("prettyPrint", "false")
11733	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
11734	urls += "?" + c.urlParams_.Encode()
11735	req, err := http.NewRequest("DELETE", urls, body)
11736	if err != nil {
11737		return nil, err
11738	}
11739	req.Header = reqHeaders
11740	googleapi.Expand(req.URL, map[string]string{
11741		"name": c.name,
11742	})
11743	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11744}
11745
11746// Do executes the "apigee.organizations.analytics.datastores.delete" call.
11747// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
11748// non-2xx status code is an error. Response headers are in either
11749// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
11750// returned at all) in error.(*googleapi.Error).Header. Use
11751// googleapi.IsNotModified to check whether the returned error was
11752// because http.StatusNotModified was returned.
11753func (c *OrganizationsAnalyticsDatastoresDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
11754	gensupport.SetOptions(c.urlParams_, opts...)
11755	res, err := c.doRequest("json")
11756	if res != nil && res.StatusCode == http.StatusNotModified {
11757		if res.Body != nil {
11758			res.Body.Close()
11759		}
11760		return nil, &googleapi.Error{
11761			Code:   res.StatusCode,
11762			Header: res.Header,
11763		}
11764	}
11765	if err != nil {
11766		return nil, err
11767	}
11768	defer googleapi.CloseBody(res)
11769	if err := googleapi.CheckResponse(res); err != nil {
11770		return nil, err
11771	}
11772	ret := &GoogleProtobufEmpty{
11773		ServerResponse: googleapi.ServerResponse{
11774			Header:         res.Header,
11775			HTTPStatusCode: res.StatusCode,
11776		},
11777	}
11778	target := &ret
11779	if err := gensupport.DecodeResponse(target, res); err != nil {
11780		return nil, err
11781	}
11782	return ret, nil
11783	// {
11784	//   "description": "Delete a Datastore from an org.",
11785	//   "flatPath": "v1/organizations/{organizationsId}/analytics/datastores/{datastoresId}",
11786	//   "httpMethod": "DELETE",
11787	//   "id": "apigee.organizations.analytics.datastores.delete",
11788	//   "parameterOrder": [
11789	//     "name"
11790	//   ],
11791	//   "parameters": {
11792	//     "name": {
11793	//       "description": "Required. Resource name of the Datastore to be deleted. Must be of the form `organizations/{org}/analytics/datastores/{datastoreId}`",
11794	//       "location": "path",
11795	//       "pattern": "^organizations/[^/]+/analytics/datastores/[^/]+$",
11796	//       "required": true,
11797	//       "type": "string"
11798	//     }
11799	//   },
11800	//   "path": "v1/{+name}",
11801	//   "response": {
11802	//     "$ref": "GoogleProtobufEmpty"
11803	//   },
11804	//   "scopes": [
11805	//     "https://www.googleapis.com/auth/cloud-platform"
11806	//   ]
11807	// }
11808
11809}
11810
11811// method id "apigee.organizations.analytics.datastores.get":
11812
11813type OrganizationsAnalyticsDatastoresGetCall struct {
11814	s            *Service
11815	name         string
11816	urlParams_   gensupport.URLParams
11817	ifNoneMatch_ string
11818	ctx_         context.Context
11819	header_      http.Header
11820}
11821
11822// Get: Get a Datastore
11823//
11824// - name: Resource name of the Datastore to be get. Must be of the form
11825//   `organizations/{org}/analytics/datastores/{datastoreId}`.
11826func (r *OrganizationsAnalyticsDatastoresService) Get(name string) *OrganizationsAnalyticsDatastoresGetCall {
11827	c := &OrganizationsAnalyticsDatastoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11828	c.name = name
11829	return c
11830}
11831
11832// Fields allows partial responses to be retrieved. See
11833// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11834// for more information.
11835func (c *OrganizationsAnalyticsDatastoresGetCall) Fields(s ...googleapi.Field) *OrganizationsAnalyticsDatastoresGetCall {
11836	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11837	return c
11838}
11839
11840// IfNoneMatch sets the optional parameter which makes the operation
11841// fail if the object's ETag matches the given value. This is useful for
11842// getting updates only after the object has changed since the last
11843// request. Use googleapi.IsNotModified to check whether the response
11844// error from Do is the result of In-None-Match.
11845func (c *OrganizationsAnalyticsDatastoresGetCall) IfNoneMatch(entityTag string) *OrganizationsAnalyticsDatastoresGetCall {
11846	c.ifNoneMatch_ = entityTag
11847	return c
11848}
11849
11850// Context sets the context to be used in this call's Do method. Any
11851// pending HTTP request will be aborted if the provided context is
11852// canceled.
11853func (c *OrganizationsAnalyticsDatastoresGetCall) Context(ctx context.Context) *OrganizationsAnalyticsDatastoresGetCall {
11854	c.ctx_ = ctx
11855	return c
11856}
11857
11858// Header returns an http.Header that can be modified by the caller to
11859// add HTTP headers to the request.
11860func (c *OrganizationsAnalyticsDatastoresGetCall) Header() http.Header {
11861	if c.header_ == nil {
11862		c.header_ = make(http.Header)
11863	}
11864	return c.header_
11865}
11866
11867func (c *OrganizationsAnalyticsDatastoresGetCall) doRequest(alt string) (*http.Response, error) {
11868	reqHeaders := make(http.Header)
11869	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
11870	for k, v := range c.header_ {
11871		reqHeaders[k] = v
11872	}
11873	reqHeaders.Set("User-Agent", c.s.userAgent())
11874	if c.ifNoneMatch_ != "" {
11875		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11876	}
11877	var body io.Reader = nil
11878	c.urlParams_.Set("alt", alt)
11879	c.urlParams_.Set("prettyPrint", "false")
11880	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
11881	urls += "?" + c.urlParams_.Encode()
11882	req, err := http.NewRequest("GET", urls, body)
11883	if err != nil {
11884		return nil, err
11885	}
11886	req.Header = reqHeaders
11887	googleapi.Expand(req.URL, map[string]string{
11888		"name": c.name,
11889	})
11890	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11891}
11892
11893// Do executes the "apigee.organizations.analytics.datastores.get" call.
11894// Exactly one of *GoogleCloudApigeeV1Datastore or error will be
11895// non-nil. Any non-2xx status code is an error. Response headers are in
11896// either *GoogleCloudApigeeV1Datastore.ServerResponse.Header or (if a
11897// response was returned at all) in error.(*googleapi.Error).Header. Use
11898// googleapi.IsNotModified to check whether the returned error was
11899// because http.StatusNotModified was returned.
11900func (c *OrganizationsAnalyticsDatastoresGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Datastore, error) {
11901	gensupport.SetOptions(c.urlParams_, opts...)
11902	res, err := c.doRequest("json")
11903	if res != nil && res.StatusCode == http.StatusNotModified {
11904		if res.Body != nil {
11905			res.Body.Close()
11906		}
11907		return nil, &googleapi.Error{
11908			Code:   res.StatusCode,
11909			Header: res.Header,
11910		}
11911	}
11912	if err != nil {
11913		return nil, err
11914	}
11915	defer googleapi.CloseBody(res)
11916	if err := googleapi.CheckResponse(res); err != nil {
11917		return nil, err
11918	}
11919	ret := &GoogleCloudApigeeV1Datastore{
11920		ServerResponse: googleapi.ServerResponse{
11921			Header:         res.Header,
11922			HTTPStatusCode: res.StatusCode,
11923		},
11924	}
11925	target := &ret
11926	if err := gensupport.DecodeResponse(target, res); err != nil {
11927		return nil, err
11928	}
11929	return ret, nil
11930	// {
11931	//   "description": "Get a Datastore",
11932	//   "flatPath": "v1/organizations/{organizationsId}/analytics/datastores/{datastoresId}",
11933	//   "httpMethod": "GET",
11934	//   "id": "apigee.organizations.analytics.datastores.get",
11935	//   "parameterOrder": [
11936	//     "name"
11937	//   ],
11938	//   "parameters": {
11939	//     "name": {
11940	//       "description": "Required. Resource name of the Datastore to be get. Must be of the form `organizations/{org}/analytics/datastores/{datastoreId}`",
11941	//       "location": "path",
11942	//       "pattern": "^organizations/[^/]+/analytics/datastores/[^/]+$",
11943	//       "required": true,
11944	//       "type": "string"
11945	//     }
11946	//   },
11947	//   "path": "v1/{+name}",
11948	//   "response": {
11949	//     "$ref": "GoogleCloudApigeeV1Datastore"
11950	//   },
11951	//   "scopes": [
11952	//     "https://www.googleapis.com/auth/cloud-platform"
11953	//   ]
11954	// }
11955
11956}
11957
11958// method id "apigee.organizations.analytics.datastores.list":
11959
11960type OrganizationsAnalyticsDatastoresListCall struct {
11961	s            *Service
11962	parent       string
11963	urlParams_   gensupport.URLParams
11964	ifNoneMatch_ string
11965	ctx_         context.Context
11966	header_      http.Header
11967}
11968
11969// List: List Datastores
11970//
11971// - parent: The parent organization name. Must be of the form
11972//   `organizations/{org}`.
11973func (r *OrganizationsAnalyticsDatastoresService) List(parent string) *OrganizationsAnalyticsDatastoresListCall {
11974	c := &OrganizationsAnalyticsDatastoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11975	c.parent = parent
11976	return c
11977}
11978
11979// TargetType sets the optional parameter "targetType": TargetType is
11980// used to fetch all Datastores that match the type
11981func (c *OrganizationsAnalyticsDatastoresListCall) TargetType(targetType string) *OrganizationsAnalyticsDatastoresListCall {
11982	c.urlParams_.Set("targetType", targetType)
11983	return c
11984}
11985
11986// Fields allows partial responses to be retrieved. See
11987// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11988// for more information.
11989func (c *OrganizationsAnalyticsDatastoresListCall) Fields(s ...googleapi.Field) *OrganizationsAnalyticsDatastoresListCall {
11990	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11991	return c
11992}
11993
11994// IfNoneMatch sets the optional parameter which makes the operation
11995// fail if the object's ETag matches the given value. This is useful for
11996// getting updates only after the object has changed since the last
11997// request. Use googleapi.IsNotModified to check whether the response
11998// error from Do is the result of In-None-Match.
11999func (c *OrganizationsAnalyticsDatastoresListCall) IfNoneMatch(entityTag string) *OrganizationsAnalyticsDatastoresListCall {
12000	c.ifNoneMatch_ = entityTag
12001	return c
12002}
12003
12004// Context sets the context to be used in this call's Do method. Any
12005// pending HTTP request will be aborted if the provided context is
12006// canceled.
12007func (c *OrganizationsAnalyticsDatastoresListCall) Context(ctx context.Context) *OrganizationsAnalyticsDatastoresListCall {
12008	c.ctx_ = ctx
12009	return c
12010}
12011
12012// Header returns an http.Header that can be modified by the caller to
12013// add HTTP headers to the request.
12014func (c *OrganizationsAnalyticsDatastoresListCall) Header() http.Header {
12015	if c.header_ == nil {
12016		c.header_ = make(http.Header)
12017	}
12018	return c.header_
12019}
12020
12021func (c *OrganizationsAnalyticsDatastoresListCall) doRequest(alt string) (*http.Response, error) {
12022	reqHeaders := make(http.Header)
12023	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
12024	for k, v := range c.header_ {
12025		reqHeaders[k] = v
12026	}
12027	reqHeaders.Set("User-Agent", c.s.userAgent())
12028	if c.ifNoneMatch_ != "" {
12029		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12030	}
12031	var body io.Reader = nil
12032	c.urlParams_.Set("alt", alt)
12033	c.urlParams_.Set("prettyPrint", "false")
12034	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/analytics/datastores")
12035	urls += "?" + c.urlParams_.Encode()
12036	req, err := http.NewRequest("GET", urls, body)
12037	if err != nil {
12038		return nil, err
12039	}
12040	req.Header = reqHeaders
12041	googleapi.Expand(req.URL, map[string]string{
12042		"parent": c.parent,
12043	})
12044	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12045}
12046
12047// Do executes the "apigee.organizations.analytics.datastores.list" call.
12048// Exactly one of *GoogleCloudApigeeV1ListDatastoresResponse or error
12049// will be non-nil. Any non-2xx status code is an error. Response
12050// headers are in either
12051// *GoogleCloudApigeeV1ListDatastoresResponse.ServerResponse.Header or
12052// (if a response was returned at all) in
12053// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
12054// whether the returned error was because http.StatusNotModified was
12055// returned.
12056func (c *OrganizationsAnalyticsDatastoresListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDatastoresResponse, error) {
12057	gensupport.SetOptions(c.urlParams_, opts...)
12058	res, err := c.doRequest("json")
12059	if res != nil && res.StatusCode == http.StatusNotModified {
12060		if res.Body != nil {
12061			res.Body.Close()
12062		}
12063		return nil, &googleapi.Error{
12064			Code:   res.StatusCode,
12065			Header: res.Header,
12066		}
12067	}
12068	if err != nil {
12069		return nil, err
12070	}
12071	defer googleapi.CloseBody(res)
12072	if err := googleapi.CheckResponse(res); err != nil {
12073		return nil, err
12074	}
12075	ret := &GoogleCloudApigeeV1ListDatastoresResponse{
12076		ServerResponse: googleapi.ServerResponse{
12077			Header:         res.Header,
12078			HTTPStatusCode: res.StatusCode,
12079		},
12080	}
12081	target := &ret
12082	if err := gensupport.DecodeResponse(target, res); err != nil {
12083		return nil, err
12084	}
12085	return ret, nil
12086	// {
12087	//   "description": "List Datastores",
12088	//   "flatPath": "v1/organizations/{organizationsId}/analytics/datastores",
12089	//   "httpMethod": "GET",
12090	//   "id": "apigee.organizations.analytics.datastores.list",
12091	//   "parameterOrder": [
12092	//     "parent"
12093	//   ],
12094	//   "parameters": {
12095	//     "parent": {
12096	//       "description": "Required. The parent organization name. Must be of the form `organizations/{org}`.",
12097	//       "location": "path",
12098	//       "pattern": "^organizations/[^/]+$",
12099	//       "required": true,
12100	//       "type": "string"
12101	//     },
12102	//     "targetType": {
12103	//       "description": "Optional. TargetType is used to fetch all Datastores that match the type",
12104	//       "location": "query",
12105	//       "type": "string"
12106	//     }
12107	//   },
12108	//   "path": "v1/{+parent}/analytics/datastores",
12109	//   "response": {
12110	//     "$ref": "GoogleCloudApigeeV1ListDatastoresResponse"
12111	//   },
12112	//   "scopes": [
12113	//     "https://www.googleapis.com/auth/cloud-platform"
12114	//   ]
12115	// }
12116
12117}
12118
12119// method id "apigee.organizations.analytics.datastores.test":
12120
12121type OrganizationsAnalyticsDatastoresTestCall struct {
12122	s                            *Service
12123	parent                       string
12124	googlecloudapigeev1datastore *GoogleCloudApigeeV1Datastore
12125	urlParams_                   gensupport.URLParams
12126	ctx_                         context.Context
12127	header_                      http.Header
12128}
12129
12130// Test: Test if Datastore configuration is correct. This includes
12131// checking if credentials provided by customer have required
12132// permissions in target destination storage
12133//
12134// - parent: The parent organization name Must be of the form
12135//   `organizations/{org}`.
12136func (r *OrganizationsAnalyticsDatastoresService) Test(parent string, googlecloudapigeev1datastore *GoogleCloudApigeeV1Datastore) *OrganizationsAnalyticsDatastoresTestCall {
12137	c := &OrganizationsAnalyticsDatastoresTestCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12138	c.parent = parent
12139	c.googlecloudapigeev1datastore = googlecloudapigeev1datastore
12140	return c
12141}
12142
12143// Fields allows partial responses to be retrieved. See
12144// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12145// for more information.
12146func (c *OrganizationsAnalyticsDatastoresTestCall) Fields(s ...googleapi.Field) *OrganizationsAnalyticsDatastoresTestCall {
12147	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12148	return c
12149}
12150
12151// Context sets the context to be used in this call's Do method. Any
12152// pending HTTP request will be aborted if the provided context is
12153// canceled.
12154func (c *OrganizationsAnalyticsDatastoresTestCall) Context(ctx context.Context) *OrganizationsAnalyticsDatastoresTestCall {
12155	c.ctx_ = ctx
12156	return c
12157}
12158
12159// Header returns an http.Header that can be modified by the caller to
12160// add HTTP headers to the request.
12161func (c *OrganizationsAnalyticsDatastoresTestCall) Header() http.Header {
12162	if c.header_ == nil {
12163		c.header_ = make(http.Header)
12164	}
12165	return c.header_
12166}
12167
12168func (c *OrganizationsAnalyticsDatastoresTestCall) doRequest(alt string) (*http.Response, error) {
12169	reqHeaders := make(http.Header)
12170	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
12171	for k, v := range c.header_ {
12172		reqHeaders[k] = v
12173	}
12174	reqHeaders.Set("User-Agent", c.s.userAgent())
12175	var body io.Reader = nil
12176	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1datastore)
12177	if err != nil {
12178		return nil, err
12179	}
12180	reqHeaders.Set("Content-Type", "application/json")
12181	c.urlParams_.Set("alt", alt)
12182	c.urlParams_.Set("prettyPrint", "false")
12183	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/analytics/datastores:test")
12184	urls += "?" + c.urlParams_.Encode()
12185	req, err := http.NewRequest("POST", urls, body)
12186	if err != nil {
12187		return nil, err
12188	}
12189	req.Header = reqHeaders
12190	googleapi.Expand(req.URL, map[string]string{
12191		"parent": c.parent,
12192	})
12193	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12194}
12195
12196// Do executes the "apigee.organizations.analytics.datastores.test" call.
12197// Exactly one of *GoogleCloudApigeeV1TestDatastoreResponse or error
12198// will be non-nil. Any non-2xx status code is an error. Response
12199// headers are in either
12200// *GoogleCloudApigeeV1TestDatastoreResponse.ServerResponse.Header or
12201// (if a response was returned at all) in
12202// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
12203// whether the returned error was because http.StatusNotModified was
12204// returned.
12205func (c *OrganizationsAnalyticsDatastoresTestCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TestDatastoreResponse, error) {
12206	gensupport.SetOptions(c.urlParams_, opts...)
12207	res, err := c.doRequest("json")
12208	if res != nil && res.StatusCode == http.StatusNotModified {
12209		if res.Body != nil {
12210			res.Body.Close()
12211		}
12212		return nil, &googleapi.Error{
12213			Code:   res.StatusCode,
12214			Header: res.Header,
12215		}
12216	}
12217	if err != nil {
12218		return nil, err
12219	}
12220	defer googleapi.CloseBody(res)
12221	if err := googleapi.CheckResponse(res); err != nil {
12222		return nil, err
12223	}
12224	ret := &GoogleCloudApigeeV1TestDatastoreResponse{
12225		ServerResponse: googleapi.ServerResponse{
12226			Header:         res.Header,
12227			HTTPStatusCode: res.StatusCode,
12228		},
12229	}
12230	target := &ret
12231	if err := gensupport.DecodeResponse(target, res); err != nil {
12232		return nil, err
12233	}
12234	return ret, nil
12235	// {
12236	//   "description": "Test if Datastore configuration is correct. This includes checking if credentials provided by customer have required permissions in target destination storage",
12237	//   "flatPath": "v1/organizations/{organizationsId}/analytics/datastores:test",
12238	//   "httpMethod": "POST",
12239	//   "id": "apigee.organizations.analytics.datastores.test",
12240	//   "parameterOrder": [
12241	//     "parent"
12242	//   ],
12243	//   "parameters": {
12244	//     "parent": {
12245	//       "description": "Required. The parent organization name Must be of the form `organizations/{org}`",
12246	//       "location": "path",
12247	//       "pattern": "^organizations/[^/]+$",
12248	//       "required": true,
12249	//       "type": "string"
12250	//     }
12251	//   },
12252	//   "path": "v1/{+parent}/analytics/datastores:test",
12253	//   "request": {
12254	//     "$ref": "GoogleCloudApigeeV1Datastore"
12255	//   },
12256	//   "response": {
12257	//     "$ref": "GoogleCloudApigeeV1TestDatastoreResponse"
12258	//   },
12259	//   "scopes": [
12260	//     "https://www.googleapis.com/auth/cloud-platform"
12261	//   ]
12262	// }
12263
12264}
12265
12266// method id "apigee.organizations.analytics.datastores.update":
12267
12268type OrganizationsAnalyticsDatastoresUpdateCall struct {
12269	s                            *Service
12270	name                         string
12271	googlecloudapigeev1datastore *GoogleCloudApigeeV1Datastore
12272	urlParams_                   gensupport.URLParams
12273	ctx_                         context.Context
12274	header_                      http.Header
12275}
12276
12277// Update: Update a Datastore
12278//
12279// - name: The resource name of datastore to be updated. Must be of the
12280//   form `organizations/{org}/analytics/datastores/{datastoreId}`.
12281func (r *OrganizationsAnalyticsDatastoresService) Update(name string, googlecloudapigeev1datastore *GoogleCloudApigeeV1Datastore) *OrganizationsAnalyticsDatastoresUpdateCall {
12282	c := &OrganizationsAnalyticsDatastoresUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12283	c.name = name
12284	c.googlecloudapigeev1datastore = googlecloudapigeev1datastore
12285	return c
12286}
12287
12288// Fields allows partial responses to be retrieved. See
12289// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12290// for more information.
12291func (c *OrganizationsAnalyticsDatastoresUpdateCall) Fields(s ...googleapi.Field) *OrganizationsAnalyticsDatastoresUpdateCall {
12292	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12293	return c
12294}
12295
12296// Context sets the context to be used in this call's Do method. Any
12297// pending HTTP request will be aborted if the provided context is
12298// canceled.
12299func (c *OrganizationsAnalyticsDatastoresUpdateCall) Context(ctx context.Context) *OrganizationsAnalyticsDatastoresUpdateCall {
12300	c.ctx_ = ctx
12301	return c
12302}
12303
12304// Header returns an http.Header that can be modified by the caller to
12305// add HTTP headers to the request.
12306func (c *OrganizationsAnalyticsDatastoresUpdateCall) Header() http.Header {
12307	if c.header_ == nil {
12308		c.header_ = make(http.Header)
12309	}
12310	return c.header_
12311}
12312
12313func (c *OrganizationsAnalyticsDatastoresUpdateCall) doRequest(alt string) (*http.Response, error) {
12314	reqHeaders := make(http.Header)
12315	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
12316	for k, v := range c.header_ {
12317		reqHeaders[k] = v
12318	}
12319	reqHeaders.Set("User-Agent", c.s.userAgent())
12320	var body io.Reader = nil
12321	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1datastore)
12322	if err != nil {
12323		return nil, err
12324	}
12325	reqHeaders.Set("Content-Type", "application/json")
12326	c.urlParams_.Set("alt", alt)
12327	c.urlParams_.Set("prettyPrint", "false")
12328	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
12329	urls += "?" + c.urlParams_.Encode()
12330	req, err := http.NewRequest("PUT", urls, body)
12331	if err != nil {
12332		return nil, err
12333	}
12334	req.Header = reqHeaders
12335	googleapi.Expand(req.URL, map[string]string{
12336		"name": c.name,
12337	})
12338	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12339}
12340
12341// Do executes the "apigee.organizations.analytics.datastores.update" call.
12342// Exactly one of *GoogleCloudApigeeV1Datastore or error will be
12343// non-nil. Any non-2xx status code is an error. Response headers are in
12344// either *GoogleCloudApigeeV1Datastore.ServerResponse.Header or (if a
12345// response was returned at all) in error.(*googleapi.Error).Header. Use
12346// googleapi.IsNotModified to check whether the returned error was
12347// because http.StatusNotModified was returned.
12348func (c *OrganizationsAnalyticsDatastoresUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Datastore, error) {
12349	gensupport.SetOptions(c.urlParams_, opts...)
12350	res, err := c.doRequest("json")
12351	if res != nil && res.StatusCode == http.StatusNotModified {
12352		if res.Body != nil {
12353			res.Body.Close()
12354		}
12355		return nil, &googleapi.Error{
12356			Code:   res.StatusCode,
12357			Header: res.Header,
12358		}
12359	}
12360	if err != nil {
12361		return nil, err
12362	}
12363	defer googleapi.CloseBody(res)
12364	if err := googleapi.CheckResponse(res); err != nil {
12365		return nil, err
12366	}
12367	ret := &GoogleCloudApigeeV1Datastore{
12368		ServerResponse: googleapi.ServerResponse{
12369			Header:         res.Header,
12370			HTTPStatusCode: res.StatusCode,
12371		},
12372	}
12373	target := &ret
12374	if err := gensupport.DecodeResponse(target, res); err != nil {
12375		return nil, err
12376	}
12377	return ret, nil
12378	// {
12379	//   "description": "Update a Datastore",
12380	//   "flatPath": "v1/organizations/{organizationsId}/analytics/datastores/{datastoresId}",
12381	//   "httpMethod": "PUT",
12382	//   "id": "apigee.organizations.analytics.datastores.update",
12383	//   "parameterOrder": [
12384	//     "name"
12385	//   ],
12386	//   "parameters": {
12387	//     "name": {
12388	//       "description": "Required. The resource name of datastore to be updated. Must be of the form `organizations/{org}/analytics/datastores/{datastoreId}`",
12389	//       "location": "path",
12390	//       "pattern": "^organizations/[^/]+/analytics/datastores/[^/]+$",
12391	//       "required": true,
12392	//       "type": "string"
12393	//     }
12394	//   },
12395	//   "path": "v1/{+name}",
12396	//   "request": {
12397	//     "$ref": "GoogleCloudApigeeV1Datastore"
12398	//   },
12399	//   "response": {
12400	//     "$ref": "GoogleCloudApigeeV1Datastore"
12401	//   },
12402	//   "scopes": [
12403	//     "https://www.googleapis.com/auth/cloud-platform"
12404	//   ]
12405	// }
12406
12407}
12408
12409// method id "apigee.organizations.apiproducts.attributes":
12410
12411type OrganizationsApiproductsAttributesCall struct {
12412	s                             *Service
12413	name                          string
12414	googlecloudapigeev1attributes *GoogleCloudApigeeV1Attributes
12415	urlParams_                    gensupport.URLParams
12416	ctx_                          context.Context
12417	header_                       http.Header
12418}
12419
12420// Attributes: Updates or creates API product attributes. This API
12421// **replaces** the current list of attributes with the attributes
12422// specified in the request body. In this way, you can update existing
12423// attributes, add new attributes, or delete existing attributes by
12424// omitting them from the request body. **Note**: OAuth access tokens
12425// and Key Management Service (KMS) entities (apps, developers, and API
12426// products) are cached for 180 seconds (current default). Any custom
12427// attributes associated with entities also get cached for at least 180
12428// seconds after entity is accessed during runtime. In this case, the
12429// `ExpiresIn` element on the OAuthV2 policy won't be able to expire an
12430// access token in less than 180 seconds.
12431//
12432// - name: Name of the API product. Use the following structure in your
12433//   request: `organizations/{org}/apiproducts/{apiproduct}`.
12434func (r *OrganizationsApiproductsService) Attributes(name string, googlecloudapigeev1attributes *GoogleCloudApigeeV1Attributes) *OrganizationsApiproductsAttributesCall {
12435	c := &OrganizationsApiproductsAttributesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12436	c.name = name
12437	c.googlecloudapigeev1attributes = googlecloudapigeev1attributes
12438	return c
12439}
12440
12441// Fields allows partial responses to be retrieved. See
12442// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12443// for more information.
12444func (c *OrganizationsApiproductsAttributesCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsAttributesCall {
12445	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12446	return c
12447}
12448
12449// Context sets the context to be used in this call's Do method. Any
12450// pending HTTP request will be aborted if the provided context is
12451// canceled.
12452func (c *OrganizationsApiproductsAttributesCall) Context(ctx context.Context) *OrganizationsApiproductsAttributesCall {
12453	c.ctx_ = ctx
12454	return c
12455}
12456
12457// Header returns an http.Header that can be modified by the caller to
12458// add HTTP headers to the request.
12459func (c *OrganizationsApiproductsAttributesCall) Header() http.Header {
12460	if c.header_ == nil {
12461		c.header_ = make(http.Header)
12462	}
12463	return c.header_
12464}
12465
12466func (c *OrganizationsApiproductsAttributesCall) doRequest(alt string) (*http.Response, error) {
12467	reqHeaders := make(http.Header)
12468	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
12469	for k, v := range c.header_ {
12470		reqHeaders[k] = v
12471	}
12472	reqHeaders.Set("User-Agent", c.s.userAgent())
12473	var body io.Reader = nil
12474	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1attributes)
12475	if err != nil {
12476		return nil, err
12477	}
12478	reqHeaders.Set("Content-Type", "application/json")
12479	c.urlParams_.Set("alt", alt)
12480	c.urlParams_.Set("prettyPrint", "false")
12481	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/attributes")
12482	urls += "?" + c.urlParams_.Encode()
12483	req, err := http.NewRequest("POST", urls, body)
12484	if err != nil {
12485		return nil, err
12486	}
12487	req.Header = reqHeaders
12488	googleapi.Expand(req.URL, map[string]string{
12489		"name": c.name,
12490	})
12491	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12492}
12493
12494// Do executes the "apigee.organizations.apiproducts.attributes" call.
12495// Exactly one of *GoogleCloudApigeeV1Attributes or error will be
12496// non-nil. Any non-2xx status code is an error. Response headers are in
12497// either *GoogleCloudApigeeV1Attributes.ServerResponse.Header or (if a
12498// response was returned at all) in error.(*googleapi.Error).Header. Use
12499// googleapi.IsNotModified to check whether the returned error was
12500// because http.StatusNotModified was returned.
12501func (c *OrganizationsApiproductsAttributesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attributes, error) {
12502	gensupport.SetOptions(c.urlParams_, opts...)
12503	res, err := c.doRequest("json")
12504	if res != nil && res.StatusCode == http.StatusNotModified {
12505		if res.Body != nil {
12506			res.Body.Close()
12507		}
12508		return nil, &googleapi.Error{
12509			Code:   res.StatusCode,
12510			Header: res.Header,
12511		}
12512	}
12513	if err != nil {
12514		return nil, err
12515	}
12516	defer googleapi.CloseBody(res)
12517	if err := googleapi.CheckResponse(res); err != nil {
12518		return nil, err
12519	}
12520	ret := &GoogleCloudApigeeV1Attributes{
12521		ServerResponse: googleapi.ServerResponse{
12522			Header:         res.Header,
12523			HTTPStatusCode: res.StatusCode,
12524		},
12525	}
12526	target := &ret
12527	if err := gensupport.DecodeResponse(target, res); err != nil {
12528		return nil, err
12529	}
12530	return ret, nil
12531	// {
12532	//   "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.",
12533	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}/attributes",
12534	//   "httpMethod": "POST",
12535	//   "id": "apigee.organizations.apiproducts.attributes",
12536	//   "parameterOrder": [
12537	//     "name"
12538	//   ],
12539	//   "parameters": {
12540	//     "name": {
12541	//       "description": "Required. Name of the API product. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}`",
12542	//       "location": "path",
12543	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+$",
12544	//       "required": true,
12545	//       "type": "string"
12546	//     }
12547	//   },
12548	//   "path": "v1/{+name}/attributes",
12549	//   "request": {
12550	//     "$ref": "GoogleCloudApigeeV1Attributes"
12551	//   },
12552	//   "response": {
12553	//     "$ref": "GoogleCloudApigeeV1Attributes"
12554	//   },
12555	//   "scopes": [
12556	//     "https://www.googleapis.com/auth/cloud-platform"
12557	//   ]
12558	// }
12559
12560}
12561
12562// method id "apigee.organizations.apiproducts.create":
12563
12564type OrganizationsApiproductsCreateCall struct {
12565	s                             *Service
12566	parent                        string
12567	googlecloudapigeev1apiproduct *GoogleCloudApigeeV1ApiProduct
12568	urlParams_                    gensupport.URLParams
12569	ctx_                          context.Context
12570	header_                       http.Header
12571}
12572
12573// Create: Creates an API product in an organization. You create API
12574// products after you have proxied backend services using API proxies.
12575// An API product is a collection of API resources combined with quota
12576// settings and metadata that you can use to deliver customized and
12577// productized API bundles to your developer community. This metadata
12578// can include: - Scope - Environments - API proxies - Extensible
12579// profile API products enable you repackage APIs on the fly, without
12580// having to do any additional coding or configuration. Apigee
12581// recommends that you start with a simple API product including only
12582// required elements. You then provision credentials to apps to enable
12583// them to start testing your APIs. After you have authentication and
12584// authorization working against a simple API product, you can iterate
12585// to create finer-grained API products, defining different sets of API
12586// resources for each API product. **WARNING:** - If you don't specify
12587// an API proxy in the request body, *any* app associated with the
12588// product can make calls to *any* API in your entire organization. - If
12589// you don't specify an environment in the request body, the product
12590// allows access to all environments. For more information, see What is
12591// an API product?
12592//
12593// - parent: Name of the organization in which the API product will be
12594//   created. Use the following structure in your request:
12595//   `organizations/{org}`.
12596func (r *OrganizationsApiproductsService) Create(parent string, googlecloudapigeev1apiproduct *GoogleCloudApigeeV1ApiProduct) *OrganizationsApiproductsCreateCall {
12597	c := &OrganizationsApiproductsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12598	c.parent = parent
12599	c.googlecloudapigeev1apiproduct = googlecloudapigeev1apiproduct
12600	return c
12601}
12602
12603// Fields allows partial responses to be retrieved. See
12604// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12605// for more information.
12606func (c *OrganizationsApiproductsCreateCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsCreateCall {
12607	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12608	return c
12609}
12610
12611// Context sets the context to be used in this call's Do method. Any
12612// pending HTTP request will be aborted if the provided context is
12613// canceled.
12614func (c *OrganizationsApiproductsCreateCall) Context(ctx context.Context) *OrganizationsApiproductsCreateCall {
12615	c.ctx_ = ctx
12616	return c
12617}
12618
12619// Header returns an http.Header that can be modified by the caller to
12620// add HTTP headers to the request.
12621func (c *OrganizationsApiproductsCreateCall) Header() http.Header {
12622	if c.header_ == nil {
12623		c.header_ = make(http.Header)
12624	}
12625	return c.header_
12626}
12627
12628func (c *OrganizationsApiproductsCreateCall) doRequest(alt string) (*http.Response, error) {
12629	reqHeaders := make(http.Header)
12630	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
12631	for k, v := range c.header_ {
12632		reqHeaders[k] = v
12633	}
12634	reqHeaders.Set("User-Agent", c.s.userAgent())
12635	var body io.Reader = nil
12636	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1apiproduct)
12637	if err != nil {
12638		return nil, err
12639	}
12640	reqHeaders.Set("Content-Type", "application/json")
12641	c.urlParams_.Set("alt", alt)
12642	c.urlParams_.Set("prettyPrint", "false")
12643	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apiproducts")
12644	urls += "?" + c.urlParams_.Encode()
12645	req, err := http.NewRequest("POST", urls, body)
12646	if err != nil {
12647		return nil, err
12648	}
12649	req.Header = reqHeaders
12650	googleapi.Expand(req.URL, map[string]string{
12651		"parent": c.parent,
12652	})
12653	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12654}
12655
12656// Do executes the "apigee.organizations.apiproducts.create" call.
12657// Exactly one of *GoogleCloudApigeeV1ApiProduct or error will be
12658// non-nil. Any non-2xx status code is an error. Response headers are in
12659// either *GoogleCloudApigeeV1ApiProduct.ServerResponse.Header or (if a
12660// response was returned at all) in error.(*googleapi.Error).Header. Use
12661// googleapi.IsNotModified to check whether the returned error was
12662// because http.StatusNotModified was returned.
12663func (c *OrganizationsApiproductsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProduct, error) {
12664	gensupport.SetOptions(c.urlParams_, opts...)
12665	res, err := c.doRequest("json")
12666	if res != nil && res.StatusCode == http.StatusNotModified {
12667		if res.Body != nil {
12668			res.Body.Close()
12669		}
12670		return nil, &googleapi.Error{
12671			Code:   res.StatusCode,
12672			Header: res.Header,
12673		}
12674	}
12675	if err != nil {
12676		return nil, err
12677	}
12678	defer googleapi.CloseBody(res)
12679	if err := googleapi.CheckResponse(res); err != nil {
12680		return nil, err
12681	}
12682	ret := &GoogleCloudApigeeV1ApiProduct{
12683		ServerResponse: googleapi.ServerResponse{
12684			Header:         res.Header,
12685			HTTPStatusCode: res.StatusCode,
12686		},
12687	}
12688	target := &ret
12689	if err := gensupport.DecodeResponse(target, res); err != nil {
12690		return nil, err
12691	}
12692	return ret, nil
12693	// {
12694	//   "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?",
12695	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts",
12696	//   "httpMethod": "POST",
12697	//   "id": "apigee.organizations.apiproducts.create",
12698	//   "parameterOrder": [
12699	//     "parent"
12700	//   ],
12701	//   "parameters": {
12702	//     "parent": {
12703	//       "description": "Required. Name of the organization in which the API product will be created. Use the following structure in your request: `organizations/{org}`",
12704	//       "location": "path",
12705	//       "pattern": "^organizations/[^/]+$",
12706	//       "required": true,
12707	//       "type": "string"
12708	//     }
12709	//   },
12710	//   "path": "v1/{+parent}/apiproducts",
12711	//   "request": {
12712	//     "$ref": "GoogleCloudApigeeV1ApiProduct"
12713	//   },
12714	//   "response": {
12715	//     "$ref": "GoogleCloudApigeeV1ApiProduct"
12716	//   },
12717	//   "scopes": [
12718	//     "https://www.googleapis.com/auth/cloud-platform"
12719	//   ]
12720	// }
12721
12722}
12723
12724// method id "apigee.organizations.apiproducts.delete":
12725
12726type OrganizationsApiproductsDeleteCall struct {
12727	s          *Service
12728	name       string
12729	urlParams_ gensupport.URLParams
12730	ctx_       context.Context
12731	header_    http.Header
12732}
12733
12734// Delete: Deletes an API product from an organization. Deleting an API
12735// product causes app requests to the resource URIs defined in the API
12736// product to fail. Ensure that you create a new API product to serve
12737// existing apps, unless your intention is to disable access to the
12738// resources defined in the API product. The API product name required
12739// in the request URL is the internal name of the product, not the
12740// display name. While they may be the same, it depends on whether the
12741// API product was created via the UI or the API. View the list of API
12742// products to verify the internal name.
12743//
12744// - name: Name of the API product. Use the following structure in your
12745//   request: `organizations/{org}/apiproducts/{apiproduct}`.
12746func (r *OrganizationsApiproductsService) Delete(name string) *OrganizationsApiproductsDeleteCall {
12747	c := &OrganizationsApiproductsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12748	c.name = name
12749	return c
12750}
12751
12752// Fields allows partial responses to be retrieved. See
12753// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12754// for more information.
12755func (c *OrganizationsApiproductsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsDeleteCall {
12756	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12757	return c
12758}
12759
12760// Context sets the context to be used in this call's Do method. Any
12761// pending HTTP request will be aborted if the provided context is
12762// canceled.
12763func (c *OrganizationsApiproductsDeleteCall) Context(ctx context.Context) *OrganizationsApiproductsDeleteCall {
12764	c.ctx_ = ctx
12765	return c
12766}
12767
12768// Header returns an http.Header that can be modified by the caller to
12769// add HTTP headers to the request.
12770func (c *OrganizationsApiproductsDeleteCall) Header() http.Header {
12771	if c.header_ == nil {
12772		c.header_ = make(http.Header)
12773	}
12774	return c.header_
12775}
12776
12777func (c *OrganizationsApiproductsDeleteCall) doRequest(alt string) (*http.Response, error) {
12778	reqHeaders := make(http.Header)
12779	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
12780	for k, v := range c.header_ {
12781		reqHeaders[k] = v
12782	}
12783	reqHeaders.Set("User-Agent", c.s.userAgent())
12784	var body io.Reader = nil
12785	c.urlParams_.Set("alt", alt)
12786	c.urlParams_.Set("prettyPrint", "false")
12787	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
12788	urls += "?" + c.urlParams_.Encode()
12789	req, err := http.NewRequest("DELETE", urls, body)
12790	if err != nil {
12791		return nil, err
12792	}
12793	req.Header = reqHeaders
12794	googleapi.Expand(req.URL, map[string]string{
12795		"name": c.name,
12796	})
12797	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12798}
12799
12800// Do executes the "apigee.organizations.apiproducts.delete" call.
12801// Exactly one of *GoogleCloudApigeeV1ApiProduct or error will be
12802// non-nil. Any non-2xx status code is an error. Response headers are in
12803// either *GoogleCloudApigeeV1ApiProduct.ServerResponse.Header or (if a
12804// response was returned at all) in error.(*googleapi.Error).Header. Use
12805// googleapi.IsNotModified to check whether the returned error was
12806// because http.StatusNotModified was returned.
12807func (c *OrganizationsApiproductsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProduct, error) {
12808	gensupport.SetOptions(c.urlParams_, opts...)
12809	res, err := c.doRequest("json")
12810	if res != nil && res.StatusCode == http.StatusNotModified {
12811		if res.Body != nil {
12812			res.Body.Close()
12813		}
12814		return nil, &googleapi.Error{
12815			Code:   res.StatusCode,
12816			Header: res.Header,
12817		}
12818	}
12819	if err != nil {
12820		return nil, err
12821	}
12822	defer googleapi.CloseBody(res)
12823	if err := googleapi.CheckResponse(res); err != nil {
12824		return nil, err
12825	}
12826	ret := &GoogleCloudApigeeV1ApiProduct{
12827		ServerResponse: googleapi.ServerResponse{
12828			Header:         res.Header,
12829			HTTPStatusCode: res.StatusCode,
12830		},
12831	}
12832	target := &ret
12833	if err := gensupport.DecodeResponse(target, res); err != nil {
12834		return nil, err
12835	}
12836	return ret, nil
12837	// {
12838	//   "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.",
12839	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}",
12840	//   "httpMethod": "DELETE",
12841	//   "id": "apigee.organizations.apiproducts.delete",
12842	//   "parameterOrder": [
12843	//     "name"
12844	//   ],
12845	//   "parameters": {
12846	//     "name": {
12847	//       "description": "Required. Name of the API product. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}`",
12848	//       "location": "path",
12849	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+$",
12850	//       "required": true,
12851	//       "type": "string"
12852	//     }
12853	//   },
12854	//   "path": "v1/{+name}",
12855	//   "response": {
12856	//     "$ref": "GoogleCloudApigeeV1ApiProduct"
12857	//   },
12858	//   "scopes": [
12859	//     "https://www.googleapis.com/auth/cloud-platform"
12860	//   ]
12861	// }
12862
12863}
12864
12865// method id "apigee.organizations.apiproducts.get":
12866
12867type OrganizationsApiproductsGetCall struct {
12868	s            *Service
12869	name         string
12870	urlParams_   gensupport.URLParams
12871	ifNoneMatch_ string
12872	ctx_         context.Context
12873	header_      http.Header
12874}
12875
12876// Get: Gets configuration details for an API product. The API product
12877// name required in the request URL is the internal name of the product,
12878// not the display name. While they may be the same, it depends on
12879// whether the API product was created via the UI or the API. View the
12880// list of API products to verify the internal name.
12881//
12882// - name: Name of the API product. Use the following structure in your
12883//   request: `organizations/{org}/apiproducts/{apiproduct}`.
12884func (r *OrganizationsApiproductsService) Get(name string) *OrganizationsApiproductsGetCall {
12885	c := &OrganizationsApiproductsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12886	c.name = name
12887	return c
12888}
12889
12890// Fields allows partial responses to be retrieved. See
12891// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12892// for more information.
12893func (c *OrganizationsApiproductsGetCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsGetCall {
12894	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12895	return c
12896}
12897
12898// IfNoneMatch sets the optional parameter which makes the operation
12899// fail if the object's ETag matches the given value. This is useful for
12900// getting updates only after the object has changed since the last
12901// request. Use googleapi.IsNotModified to check whether the response
12902// error from Do is the result of In-None-Match.
12903func (c *OrganizationsApiproductsGetCall) IfNoneMatch(entityTag string) *OrganizationsApiproductsGetCall {
12904	c.ifNoneMatch_ = entityTag
12905	return c
12906}
12907
12908// Context sets the context to be used in this call's Do method. Any
12909// pending HTTP request will be aborted if the provided context is
12910// canceled.
12911func (c *OrganizationsApiproductsGetCall) Context(ctx context.Context) *OrganizationsApiproductsGetCall {
12912	c.ctx_ = ctx
12913	return c
12914}
12915
12916// Header returns an http.Header that can be modified by the caller to
12917// add HTTP headers to the request.
12918func (c *OrganizationsApiproductsGetCall) Header() http.Header {
12919	if c.header_ == nil {
12920		c.header_ = make(http.Header)
12921	}
12922	return c.header_
12923}
12924
12925func (c *OrganizationsApiproductsGetCall) doRequest(alt string) (*http.Response, error) {
12926	reqHeaders := make(http.Header)
12927	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
12928	for k, v := range c.header_ {
12929		reqHeaders[k] = v
12930	}
12931	reqHeaders.Set("User-Agent", c.s.userAgent())
12932	if c.ifNoneMatch_ != "" {
12933		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12934	}
12935	var body io.Reader = nil
12936	c.urlParams_.Set("alt", alt)
12937	c.urlParams_.Set("prettyPrint", "false")
12938	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
12939	urls += "?" + c.urlParams_.Encode()
12940	req, err := http.NewRequest("GET", urls, body)
12941	if err != nil {
12942		return nil, err
12943	}
12944	req.Header = reqHeaders
12945	googleapi.Expand(req.URL, map[string]string{
12946		"name": c.name,
12947	})
12948	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12949}
12950
12951// Do executes the "apigee.organizations.apiproducts.get" call.
12952// Exactly one of *GoogleCloudApigeeV1ApiProduct or error will be
12953// non-nil. Any non-2xx status code is an error. Response headers are in
12954// either *GoogleCloudApigeeV1ApiProduct.ServerResponse.Header or (if a
12955// response was returned at all) in error.(*googleapi.Error).Header. Use
12956// googleapi.IsNotModified to check whether the returned error was
12957// because http.StatusNotModified was returned.
12958func (c *OrganizationsApiproductsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProduct, error) {
12959	gensupport.SetOptions(c.urlParams_, opts...)
12960	res, err := c.doRequest("json")
12961	if res != nil && res.StatusCode == http.StatusNotModified {
12962		if res.Body != nil {
12963			res.Body.Close()
12964		}
12965		return nil, &googleapi.Error{
12966			Code:   res.StatusCode,
12967			Header: res.Header,
12968		}
12969	}
12970	if err != nil {
12971		return nil, err
12972	}
12973	defer googleapi.CloseBody(res)
12974	if err := googleapi.CheckResponse(res); err != nil {
12975		return nil, err
12976	}
12977	ret := &GoogleCloudApigeeV1ApiProduct{
12978		ServerResponse: googleapi.ServerResponse{
12979			Header:         res.Header,
12980			HTTPStatusCode: res.StatusCode,
12981		},
12982	}
12983	target := &ret
12984	if err := gensupport.DecodeResponse(target, res); err != nil {
12985		return nil, err
12986	}
12987	return ret, nil
12988	// {
12989	//   "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.",
12990	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}",
12991	//   "httpMethod": "GET",
12992	//   "id": "apigee.organizations.apiproducts.get",
12993	//   "parameterOrder": [
12994	//     "name"
12995	//   ],
12996	//   "parameters": {
12997	//     "name": {
12998	//       "description": "Required. Name of the API product. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}`",
12999	//       "location": "path",
13000	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+$",
13001	//       "required": true,
13002	//       "type": "string"
13003	//     }
13004	//   },
13005	//   "path": "v1/{+name}",
13006	//   "response": {
13007	//     "$ref": "GoogleCloudApigeeV1ApiProduct"
13008	//   },
13009	//   "scopes": [
13010	//     "https://www.googleapis.com/auth/cloud-platform"
13011	//   ]
13012	// }
13013
13014}
13015
13016// method id "apigee.organizations.apiproducts.list":
13017
13018type OrganizationsApiproductsListCall struct {
13019	s            *Service
13020	parent       string
13021	urlParams_   gensupport.URLParams
13022	ifNoneMatch_ string
13023	ctx_         context.Context
13024	header_      http.Header
13025}
13026
13027// List: Lists all API product names for an organization. Filter the
13028// list by passing an `attributename` and `attibutevalue`. The maximum
13029// number of API products returned is 1000. You can paginate the list of
13030// API products returned using the `startKey` and `count` query
13031// parameters.
13032//
13033// - parent: Name of the organization. Use the following structure in
13034//   your request: `organizations/{org}`.
13035func (r *OrganizationsApiproductsService) List(parent string) *OrganizationsApiproductsListCall {
13036	c := &OrganizationsApiproductsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13037	c.parent = parent
13038	return c
13039}
13040
13041// Attributename sets the optional parameter "attributename": Name of
13042// the attribute used to filter the search.
13043func (c *OrganizationsApiproductsListCall) Attributename(attributename string) *OrganizationsApiproductsListCall {
13044	c.urlParams_.Set("attributename", attributename)
13045	return c
13046}
13047
13048// Attributevalue sets the optional parameter "attributevalue": Value of
13049// the attribute used to filter the search.
13050func (c *OrganizationsApiproductsListCall) Attributevalue(attributevalue string) *OrganizationsApiproductsListCall {
13051	c.urlParams_.Set("attributevalue", attributevalue)
13052	return c
13053}
13054
13055// Count sets the optional parameter "count": Enter the number of API
13056// products you want returned in the API call. The limit is 1000.
13057func (c *OrganizationsApiproductsListCall) Count(count int64) *OrganizationsApiproductsListCall {
13058	c.urlParams_.Set("count", fmt.Sprint(count))
13059	return c
13060}
13061
13062// Expand sets the optional parameter "expand": Flag that specifies
13063// whether to expand the results. Set to `true` to get expanded details
13064// about each API.
13065func (c *OrganizationsApiproductsListCall) Expand(expand bool) *OrganizationsApiproductsListCall {
13066	c.urlParams_.Set("expand", fmt.Sprint(expand))
13067	return c
13068}
13069
13070// StartKey sets the optional parameter "startKey": Gets a list of API
13071// products starting with a specific API product in the list. For
13072// example, if you're returning 50 API products at a time (using the
13073// `count` query parameter), you can view products 50-99 by entering the
13074// name of the 50th API product in the first API (without using
13075// `startKey`). Product name is case sensitive.
13076func (c *OrganizationsApiproductsListCall) StartKey(startKey string) *OrganizationsApiproductsListCall {
13077	c.urlParams_.Set("startKey", startKey)
13078	return c
13079}
13080
13081// Fields allows partial responses to be retrieved. See
13082// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13083// for more information.
13084func (c *OrganizationsApiproductsListCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsListCall {
13085	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13086	return c
13087}
13088
13089// IfNoneMatch sets the optional parameter which makes the operation
13090// fail if the object's ETag matches the given value. This is useful for
13091// getting updates only after the object has changed since the last
13092// request. Use googleapi.IsNotModified to check whether the response
13093// error from Do is the result of In-None-Match.
13094func (c *OrganizationsApiproductsListCall) IfNoneMatch(entityTag string) *OrganizationsApiproductsListCall {
13095	c.ifNoneMatch_ = entityTag
13096	return c
13097}
13098
13099// Context sets the context to be used in this call's Do method. Any
13100// pending HTTP request will be aborted if the provided context is
13101// canceled.
13102func (c *OrganizationsApiproductsListCall) Context(ctx context.Context) *OrganizationsApiproductsListCall {
13103	c.ctx_ = ctx
13104	return c
13105}
13106
13107// Header returns an http.Header that can be modified by the caller to
13108// add HTTP headers to the request.
13109func (c *OrganizationsApiproductsListCall) Header() http.Header {
13110	if c.header_ == nil {
13111		c.header_ = make(http.Header)
13112	}
13113	return c.header_
13114}
13115
13116func (c *OrganizationsApiproductsListCall) doRequest(alt string) (*http.Response, error) {
13117	reqHeaders := make(http.Header)
13118	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
13119	for k, v := range c.header_ {
13120		reqHeaders[k] = v
13121	}
13122	reqHeaders.Set("User-Agent", c.s.userAgent())
13123	if c.ifNoneMatch_ != "" {
13124		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13125	}
13126	var body io.Reader = nil
13127	c.urlParams_.Set("alt", alt)
13128	c.urlParams_.Set("prettyPrint", "false")
13129	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apiproducts")
13130	urls += "?" + c.urlParams_.Encode()
13131	req, err := http.NewRequest("GET", urls, body)
13132	if err != nil {
13133		return nil, err
13134	}
13135	req.Header = reqHeaders
13136	googleapi.Expand(req.URL, map[string]string{
13137		"parent": c.parent,
13138	})
13139	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13140}
13141
13142// Do executes the "apigee.organizations.apiproducts.list" call.
13143// Exactly one of *GoogleCloudApigeeV1ListApiProductsResponse or error
13144// will be non-nil. Any non-2xx status code is an error. Response
13145// headers are in either
13146// *GoogleCloudApigeeV1ListApiProductsResponse.ServerResponse.Header or
13147// (if a response was returned at all) in
13148// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
13149// whether the returned error was because http.StatusNotModified was
13150// returned.
13151func (c *OrganizationsApiproductsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListApiProductsResponse, error) {
13152	gensupport.SetOptions(c.urlParams_, opts...)
13153	res, err := c.doRequest("json")
13154	if res != nil && res.StatusCode == http.StatusNotModified {
13155		if res.Body != nil {
13156			res.Body.Close()
13157		}
13158		return nil, &googleapi.Error{
13159			Code:   res.StatusCode,
13160			Header: res.Header,
13161		}
13162	}
13163	if err != nil {
13164		return nil, err
13165	}
13166	defer googleapi.CloseBody(res)
13167	if err := googleapi.CheckResponse(res); err != nil {
13168		return nil, err
13169	}
13170	ret := &GoogleCloudApigeeV1ListApiProductsResponse{
13171		ServerResponse: googleapi.ServerResponse{
13172			Header:         res.Header,
13173			HTTPStatusCode: res.StatusCode,
13174		},
13175	}
13176	target := &ret
13177	if err := gensupport.DecodeResponse(target, res); err != nil {
13178		return nil, err
13179	}
13180	return ret, nil
13181	// {
13182	//   "description": "Lists all API product names for an organization. Filter the list by passing an `attributename` and `attibutevalue`. The maximum number of API products returned is 1000. You can paginate the list of API products returned using the `startKey` and `count` query parameters.",
13183	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts",
13184	//   "httpMethod": "GET",
13185	//   "id": "apigee.organizations.apiproducts.list",
13186	//   "parameterOrder": [
13187	//     "parent"
13188	//   ],
13189	//   "parameters": {
13190	//     "attributename": {
13191	//       "description": "Name of the attribute used to filter the search.",
13192	//       "location": "query",
13193	//       "type": "string"
13194	//     },
13195	//     "attributevalue": {
13196	//       "description": "Value of the attribute used to filter the search.",
13197	//       "location": "query",
13198	//       "type": "string"
13199	//     },
13200	//     "count": {
13201	//       "description": "Enter the number of API products you want returned in the API call. The limit is 1000.",
13202	//       "format": "int64",
13203	//       "location": "query",
13204	//       "type": "string"
13205	//     },
13206	//     "expand": {
13207	//       "description": "Flag that specifies whether to expand the results. Set to `true` to get expanded details about each API.",
13208	//       "location": "query",
13209	//       "type": "boolean"
13210	//     },
13211	//     "parent": {
13212	//       "description": "Required. Name of the organization. Use the following structure in your request: `organizations/{org}`",
13213	//       "location": "path",
13214	//       "pattern": "^organizations/[^/]+$",
13215	//       "required": true,
13216	//       "type": "string"
13217	//     },
13218	//     "startKey": {
13219	//       "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.",
13220	//       "location": "query",
13221	//       "type": "string"
13222	//     }
13223	//   },
13224	//   "path": "v1/{+parent}/apiproducts",
13225	//   "response": {
13226	//     "$ref": "GoogleCloudApigeeV1ListApiProductsResponse"
13227	//   },
13228	//   "scopes": [
13229	//     "https://www.googleapis.com/auth/cloud-platform"
13230	//   ]
13231	// }
13232
13233}
13234
13235// method id "apigee.organizations.apiproducts.update":
13236
13237type OrganizationsApiproductsUpdateCall struct {
13238	s                             *Service
13239	name                          string
13240	googlecloudapigeev1apiproduct *GoogleCloudApigeeV1ApiProduct
13241	urlParams_                    gensupport.URLParams
13242	ctx_                          context.Context
13243	header_                       http.Header
13244}
13245
13246// Update: Updates an existing API product. You must include all
13247// required values, whether or not you are updating them, as well as any
13248// optional values that you are updating. The API product name required
13249// in the request URL is the internal name of the product, not the
13250// display name. While they may be the same, it depends on whether the
13251// API product was created via UI or API. View the list of API products
13252// to identify their internal names.
13253//
13254// - name: Name of the API product. Use the following structure in your
13255//   request: `organizations/{org}/apiproducts/{apiproduct}`.
13256func (r *OrganizationsApiproductsService) Update(name string, googlecloudapigeev1apiproduct *GoogleCloudApigeeV1ApiProduct) *OrganizationsApiproductsUpdateCall {
13257	c := &OrganizationsApiproductsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13258	c.name = name
13259	c.googlecloudapigeev1apiproduct = googlecloudapigeev1apiproduct
13260	return c
13261}
13262
13263// Fields allows partial responses to be retrieved. See
13264// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13265// for more information.
13266func (c *OrganizationsApiproductsUpdateCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsUpdateCall {
13267	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13268	return c
13269}
13270
13271// Context sets the context to be used in this call's Do method. Any
13272// pending HTTP request will be aborted if the provided context is
13273// canceled.
13274func (c *OrganizationsApiproductsUpdateCall) Context(ctx context.Context) *OrganizationsApiproductsUpdateCall {
13275	c.ctx_ = ctx
13276	return c
13277}
13278
13279// Header returns an http.Header that can be modified by the caller to
13280// add HTTP headers to the request.
13281func (c *OrganizationsApiproductsUpdateCall) Header() http.Header {
13282	if c.header_ == nil {
13283		c.header_ = make(http.Header)
13284	}
13285	return c.header_
13286}
13287
13288func (c *OrganizationsApiproductsUpdateCall) doRequest(alt string) (*http.Response, error) {
13289	reqHeaders := make(http.Header)
13290	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
13291	for k, v := range c.header_ {
13292		reqHeaders[k] = v
13293	}
13294	reqHeaders.Set("User-Agent", c.s.userAgent())
13295	var body io.Reader = nil
13296	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1apiproduct)
13297	if err != nil {
13298		return nil, err
13299	}
13300	reqHeaders.Set("Content-Type", "application/json")
13301	c.urlParams_.Set("alt", alt)
13302	c.urlParams_.Set("prettyPrint", "false")
13303	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
13304	urls += "?" + c.urlParams_.Encode()
13305	req, err := http.NewRequest("PUT", urls, body)
13306	if err != nil {
13307		return nil, err
13308	}
13309	req.Header = reqHeaders
13310	googleapi.Expand(req.URL, map[string]string{
13311		"name": c.name,
13312	})
13313	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13314}
13315
13316// Do executes the "apigee.organizations.apiproducts.update" call.
13317// Exactly one of *GoogleCloudApigeeV1ApiProduct or error will be
13318// non-nil. Any non-2xx status code is an error. Response headers are in
13319// either *GoogleCloudApigeeV1ApiProduct.ServerResponse.Header or (if a
13320// response was returned at all) in error.(*googleapi.Error).Header. Use
13321// googleapi.IsNotModified to check whether the returned error was
13322// because http.StatusNotModified was returned.
13323func (c *OrganizationsApiproductsUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProduct, error) {
13324	gensupport.SetOptions(c.urlParams_, opts...)
13325	res, err := c.doRequest("json")
13326	if res != nil && res.StatusCode == http.StatusNotModified {
13327		if res.Body != nil {
13328			res.Body.Close()
13329		}
13330		return nil, &googleapi.Error{
13331			Code:   res.StatusCode,
13332			Header: res.Header,
13333		}
13334	}
13335	if err != nil {
13336		return nil, err
13337	}
13338	defer googleapi.CloseBody(res)
13339	if err := googleapi.CheckResponse(res); err != nil {
13340		return nil, err
13341	}
13342	ret := &GoogleCloudApigeeV1ApiProduct{
13343		ServerResponse: googleapi.ServerResponse{
13344			Header:         res.Header,
13345			HTTPStatusCode: res.StatusCode,
13346		},
13347	}
13348	target := &ret
13349	if err := gensupport.DecodeResponse(target, res); err != nil {
13350		return nil, err
13351	}
13352	return ret, nil
13353	// {
13354	//   "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.",
13355	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}",
13356	//   "httpMethod": "PUT",
13357	//   "id": "apigee.organizations.apiproducts.update",
13358	//   "parameterOrder": [
13359	//     "name"
13360	//   ],
13361	//   "parameters": {
13362	//     "name": {
13363	//       "description": "Required. Name of the API product. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}`",
13364	//       "location": "path",
13365	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+$",
13366	//       "required": true,
13367	//       "type": "string"
13368	//     }
13369	//   },
13370	//   "path": "v1/{+name}",
13371	//   "request": {
13372	//     "$ref": "GoogleCloudApigeeV1ApiProduct"
13373	//   },
13374	//   "response": {
13375	//     "$ref": "GoogleCloudApigeeV1ApiProduct"
13376	//   },
13377	//   "scopes": [
13378	//     "https://www.googleapis.com/auth/cloud-platform"
13379	//   ]
13380	// }
13381
13382}
13383
13384// method id "apigee.organizations.apiproducts.attributes.delete":
13385
13386type OrganizationsApiproductsAttributesDeleteCall struct {
13387	s          *Service
13388	name       string
13389	urlParams_ gensupport.URLParams
13390	ctx_       context.Context
13391	header_    http.Header
13392}
13393
13394// Delete: Deletes an API product attribute.
13395//
13396// - name: Name of the API product attribute. Use the following
13397//   structure in your request:
13398//   `organizations/{org}/apiproducts/{apiproduct}/attributes/{attribute}
13399//   `.
13400func (r *OrganizationsApiproductsAttributesService) Delete(name string) *OrganizationsApiproductsAttributesDeleteCall {
13401	c := &OrganizationsApiproductsAttributesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13402	c.name = name
13403	return c
13404}
13405
13406// Fields allows partial responses to be retrieved. See
13407// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13408// for more information.
13409func (c *OrganizationsApiproductsAttributesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsAttributesDeleteCall {
13410	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13411	return c
13412}
13413
13414// Context sets the context to be used in this call's Do method. Any
13415// pending HTTP request will be aborted if the provided context is
13416// canceled.
13417func (c *OrganizationsApiproductsAttributesDeleteCall) Context(ctx context.Context) *OrganizationsApiproductsAttributesDeleteCall {
13418	c.ctx_ = ctx
13419	return c
13420}
13421
13422// Header returns an http.Header that can be modified by the caller to
13423// add HTTP headers to the request.
13424func (c *OrganizationsApiproductsAttributesDeleteCall) Header() http.Header {
13425	if c.header_ == nil {
13426		c.header_ = make(http.Header)
13427	}
13428	return c.header_
13429}
13430
13431func (c *OrganizationsApiproductsAttributesDeleteCall) doRequest(alt string) (*http.Response, error) {
13432	reqHeaders := make(http.Header)
13433	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
13434	for k, v := range c.header_ {
13435		reqHeaders[k] = v
13436	}
13437	reqHeaders.Set("User-Agent", c.s.userAgent())
13438	var body io.Reader = nil
13439	c.urlParams_.Set("alt", alt)
13440	c.urlParams_.Set("prettyPrint", "false")
13441	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
13442	urls += "?" + c.urlParams_.Encode()
13443	req, err := http.NewRequest("DELETE", urls, body)
13444	if err != nil {
13445		return nil, err
13446	}
13447	req.Header = reqHeaders
13448	googleapi.Expand(req.URL, map[string]string{
13449		"name": c.name,
13450	})
13451	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13452}
13453
13454// Do executes the "apigee.organizations.apiproducts.attributes.delete" call.
13455// Exactly one of *GoogleCloudApigeeV1Attribute or error will be
13456// non-nil. Any non-2xx status code is an error. Response headers are in
13457// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a
13458// response was returned at all) in error.(*googleapi.Error).Header. Use
13459// googleapi.IsNotModified to check whether the returned error was
13460// because http.StatusNotModified was returned.
13461func (c *OrganizationsApiproductsAttributesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
13462	gensupport.SetOptions(c.urlParams_, opts...)
13463	res, err := c.doRequest("json")
13464	if res != nil && res.StatusCode == http.StatusNotModified {
13465		if res.Body != nil {
13466			res.Body.Close()
13467		}
13468		return nil, &googleapi.Error{
13469			Code:   res.StatusCode,
13470			Header: res.Header,
13471		}
13472	}
13473	if err != nil {
13474		return nil, err
13475	}
13476	defer googleapi.CloseBody(res)
13477	if err := googleapi.CheckResponse(res); err != nil {
13478		return nil, err
13479	}
13480	ret := &GoogleCloudApigeeV1Attribute{
13481		ServerResponse: googleapi.ServerResponse{
13482			Header:         res.Header,
13483			HTTPStatusCode: res.StatusCode,
13484		},
13485	}
13486	target := &ret
13487	if err := gensupport.DecodeResponse(target, res); err != nil {
13488		return nil, err
13489	}
13490	return ret, nil
13491	// {
13492	//   "description": "Deletes an API product attribute.",
13493	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}/attributes/{attributesId}",
13494	//   "httpMethod": "DELETE",
13495	//   "id": "apigee.organizations.apiproducts.attributes.delete",
13496	//   "parameterOrder": [
13497	//     "name"
13498	//   ],
13499	//   "parameters": {
13500	//     "name": {
13501	//       "description": "Required. Name of the API product attribute. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}/attributes/{attribute}`",
13502	//       "location": "path",
13503	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+/attributes/[^/]+$",
13504	//       "required": true,
13505	//       "type": "string"
13506	//     }
13507	//   },
13508	//   "path": "v1/{+name}",
13509	//   "response": {
13510	//     "$ref": "GoogleCloudApigeeV1Attribute"
13511	//   },
13512	//   "scopes": [
13513	//     "https://www.googleapis.com/auth/cloud-platform"
13514	//   ]
13515	// }
13516
13517}
13518
13519// method id "apigee.organizations.apiproducts.attributes.get":
13520
13521type OrganizationsApiproductsAttributesGetCall struct {
13522	s            *Service
13523	name         string
13524	urlParams_   gensupport.URLParams
13525	ifNoneMatch_ string
13526	ctx_         context.Context
13527	header_      http.Header
13528}
13529
13530// Get: Gets the value of an API product attribute.
13531//
13532// - name: Name of the API product attribute. Use the following
13533//   structure in your request:
13534//   `organizations/{org}/apiproducts/{apiproduct}/attributes/{attribute}
13535//   `.
13536func (r *OrganizationsApiproductsAttributesService) Get(name string) *OrganizationsApiproductsAttributesGetCall {
13537	c := &OrganizationsApiproductsAttributesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13538	c.name = name
13539	return c
13540}
13541
13542// Fields allows partial responses to be retrieved. See
13543// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13544// for more information.
13545func (c *OrganizationsApiproductsAttributesGetCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsAttributesGetCall {
13546	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13547	return c
13548}
13549
13550// IfNoneMatch sets the optional parameter which makes the operation
13551// fail if the object's ETag matches the given value. This is useful for
13552// getting updates only after the object has changed since the last
13553// request. Use googleapi.IsNotModified to check whether the response
13554// error from Do is the result of In-None-Match.
13555func (c *OrganizationsApiproductsAttributesGetCall) IfNoneMatch(entityTag string) *OrganizationsApiproductsAttributesGetCall {
13556	c.ifNoneMatch_ = entityTag
13557	return c
13558}
13559
13560// Context sets the context to be used in this call's Do method. Any
13561// pending HTTP request will be aborted if the provided context is
13562// canceled.
13563func (c *OrganizationsApiproductsAttributesGetCall) Context(ctx context.Context) *OrganizationsApiproductsAttributesGetCall {
13564	c.ctx_ = ctx
13565	return c
13566}
13567
13568// Header returns an http.Header that can be modified by the caller to
13569// add HTTP headers to the request.
13570func (c *OrganizationsApiproductsAttributesGetCall) Header() http.Header {
13571	if c.header_ == nil {
13572		c.header_ = make(http.Header)
13573	}
13574	return c.header_
13575}
13576
13577func (c *OrganizationsApiproductsAttributesGetCall) doRequest(alt string) (*http.Response, error) {
13578	reqHeaders := make(http.Header)
13579	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
13580	for k, v := range c.header_ {
13581		reqHeaders[k] = v
13582	}
13583	reqHeaders.Set("User-Agent", c.s.userAgent())
13584	if c.ifNoneMatch_ != "" {
13585		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13586	}
13587	var body io.Reader = nil
13588	c.urlParams_.Set("alt", alt)
13589	c.urlParams_.Set("prettyPrint", "false")
13590	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
13591	urls += "?" + c.urlParams_.Encode()
13592	req, err := http.NewRequest("GET", urls, body)
13593	if err != nil {
13594		return nil, err
13595	}
13596	req.Header = reqHeaders
13597	googleapi.Expand(req.URL, map[string]string{
13598		"name": c.name,
13599	})
13600	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13601}
13602
13603// Do executes the "apigee.organizations.apiproducts.attributes.get" call.
13604// Exactly one of *GoogleCloudApigeeV1Attribute or error will be
13605// non-nil. Any non-2xx status code is an error. Response headers are in
13606// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a
13607// response was returned at all) in error.(*googleapi.Error).Header. Use
13608// googleapi.IsNotModified to check whether the returned error was
13609// because http.StatusNotModified was returned.
13610func (c *OrganizationsApiproductsAttributesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
13611	gensupport.SetOptions(c.urlParams_, opts...)
13612	res, err := c.doRequest("json")
13613	if res != nil && res.StatusCode == http.StatusNotModified {
13614		if res.Body != nil {
13615			res.Body.Close()
13616		}
13617		return nil, &googleapi.Error{
13618			Code:   res.StatusCode,
13619			Header: res.Header,
13620		}
13621	}
13622	if err != nil {
13623		return nil, err
13624	}
13625	defer googleapi.CloseBody(res)
13626	if err := googleapi.CheckResponse(res); err != nil {
13627		return nil, err
13628	}
13629	ret := &GoogleCloudApigeeV1Attribute{
13630		ServerResponse: googleapi.ServerResponse{
13631			Header:         res.Header,
13632			HTTPStatusCode: res.StatusCode,
13633		},
13634	}
13635	target := &ret
13636	if err := gensupport.DecodeResponse(target, res); err != nil {
13637		return nil, err
13638	}
13639	return ret, nil
13640	// {
13641	//   "description": "Gets the value of an API product attribute.",
13642	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}/attributes/{attributesId}",
13643	//   "httpMethod": "GET",
13644	//   "id": "apigee.organizations.apiproducts.attributes.get",
13645	//   "parameterOrder": [
13646	//     "name"
13647	//   ],
13648	//   "parameters": {
13649	//     "name": {
13650	//       "description": "Required. Name of the API product attribute. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}/attributes/{attribute}`",
13651	//       "location": "path",
13652	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+/attributes/[^/]+$",
13653	//       "required": true,
13654	//       "type": "string"
13655	//     }
13656	//   },
13657	//   "path": "v1/{+name}",
13658	//   "response": {
13659	//     "$ref": "GoogleCloudApigeeV1Attribute"
13660	//   },
13661	//   "scopes": [
13662	//     "https://www.googleapis.com/auth/cloud-platform"
13663	//   ]
13664	// }
13665
13666}
13667
13668// method id "apigee.organizations.apiproducts.attributes.list":
13669
13670type OrganizationsApiproductsAttributesListCall struct {
13671	s            *Service
13672	parent       string
13673	urlParams_   gensupport.URLParams
13674	ifNoneMatch_ string
13675	ctx_         context.Context
13676	header_      http.Header
13677}
13678
13679// List: Lists all API product attributes.
13680//
13681// - parent: Name of the API product. Use the following structure in
13682//   your request: `organizations/{org}/apiproducts/{apiproduct}`.
13683func (r *OrganizationsApiproductsAttributesService) List(parent string) *OrganizationsApiproductsAttributesListCall {
13684	c := &OrganizationsApiproductsAttributesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13685	c.parent = parent
13686	return c
13687}
13688
13689// Fields allows partial responses to be retrieved. See
13690// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13691// for more information.
13692func (c *OrganizationsApiproductsAttributesListCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsAttributesListCall {
13693	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13694	return c
13695}
13696
13697// IfNoneMatch sets the optional parameter which makes the operation
13698// fail if the object's ETag matches the given value. This is useful for
13699// getting updates only after the object has changed since the last
13700// request. Use googleapi.IsNotModified to check whether the response
13701// error from Do is the result of In-None-Match.
13702func (c *OrganizationsApiproductsAttributesListCall) IfNoneMatch(entityTag string) *OrganizationsApiproductsAttributesListCall {
13703	c.ifNoneMatch_ = entityTag
13704	return c
13705}
13706
13707// Context sets the context to be used in this call's Do method. Any
13708// pending HTTP request will be aborted if the provided context is
13709// canceled.
13710func (c *OrganizationsApiproductsAttributesListCall) Context(ctx context.Context) *OrganizationsApiproductsAttributesListCall {
13711	c.ctx_ = ctx
13712	return c
13713}
13714
13715// Header returns an http.Header that can be modified by the caller to
13716// add HTTP headers to the request.
13717func (c *OrganizationsApiproductsAttributesListCall) Header() http.Header {
13718	if c.header_ == nil {
13719		c.header_ = make(http.Header)
13720	}
13721	return c.header_
13722}
13723
13724func (c *OrganizationsApiproductsAttributesListCall) doRequest(alt string) (*http.Response, error) {
13725	reqHeaders := make(http.Header)
13726	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
13727	for k, v := range c.header_ {
13728		reqHeaders[k] = v
13729	}
13730	reqHeaders.Set("User-Agent", c.s.userAgent())
13731	if c.ifNoneMatch_ != "" {
13732		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13733	}
13734	var body io.Reader = nil
13735	c.urlParams_.Set("alt", alt)
13736	c.urlParams_.Set("prettyPrint", "false")
13737	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attributes")
13738	urls += "?" + c.urlParams_.Encode()
13739	req, err := http.NewRequest("GET", urls, body)
13740	if err != nil {
13741		return nil, err
13742	}
13743	req.Header = reqHeaders
13744	googleapi.Expand(req.URL, map[string]string{
13745		"parent": c.parent,
13746	})
13747	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13748}
13749
13750// Do executes the "apigee.organizations.apiproducts.attributes.list" call.
13751// Exactly one of *GoogleCloudApigeeV1Attributes or error will be
13752// non-nil. Any non-2xx status code is an error. Response headers are in
13753// either *GoogleCloudApigeeV1Attributes.ServerResponse.Header or (if a
13754// response was returned at all) in error.(*googleapi.Error).Header. Use
13755// googleapi.IsNotModified to check whether the returned error was
13756// because http.StatusNotModified was returned.
13757func (c *OrganizationsApiproductsAttributesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attributes, error) {
13758	gensupport.SetOptions(c.urlParams_, opts...)
13759	res, err := c.doRequest("json")
13760	if res != nil && res.StatusCode == http.StatusNotModified {
13761		if res.Body != nil {
13762			res.Body.Close()
13763		}
13764		return nil, &googleapi.Error{
13765			Code:   res.StatusCode,
13766			Header: res.Header,
13767		}
13768	}
13769	if err != nil {
13770		return nil, err
13771	}
13772	defer googleapi.CloseBody(res)
13773	if err := googleapi.CheckResponse(res); err != nil {
13774		return nil, err
13775	}
13776	ret := &GoogleCloudApigeeV1Attributes{
13777		ServerResponse: googleapi.ServerResponse{
13778			Header:         res.Header,
13779			HTTPStatusCode: res.StatusCode,
13780		},
13781	}
13782	target := &ret
13783	if err := gensupport.DecodeResponse(target, res); err != nil {
13784		return nil, err
13785	}
13786	return ret, nil
13787	// {
13788	//   "description": "Lists all API product attributes.",
13789	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}/attributes",
13790	//   "httpMethod": "GET",
13791	//   "id": "apigee.organizations.apiproducts.attributes.list",
13792	//   "parameterOrder": [
13793	//     "parent"
13794	//   ],
13795	//   "parameters": {
13796	//     "parent": {
13797	//       "description": "Required. Name of the API product. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}`",
13798	//       "location": "path",
13799	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+$",
13800	//       "required": true,
13801	//       "type": "string"
13802	//     }
13803	//   },
13804	//   "path": "v1/{+parent}/attributes",
13805	//   "response": {
13806	//     "$ref": "GoogleCloudApigeeV1Attributes"
13807	//   },
13808	//   "scopes": [
13809	//     "https://www.googleapis.com/auth/cloud-platform"
13810	//   ]
13811	// }
13812
13813}
13814
13815// method id "apigee.organizations.apiproducts.attributes.updateApiProductAttribute":
13816
13817type OrganizationsApiproductsAttributesUpdateApiProductAttributeCall struct {
13818	s                            *Service
13819	name                         string
13820	googlecloudapigeev1attribute *GoogleCloudApigeeV1Attribute
13821	urlParams_                   gensupport.URLParams
13822	ctx_                         context.Context
13823	header_                      http.Header
13824}
13825
13826// UpdateApiProductAttribute: Updates the value of an API product
13827// attribute. **Note**: OAuth access tokens and Key Management Service
13828// (KMS) entities (apps, developers, and API products) are cached for
13829// 180 seconds (current default). Any custom attributes associated with
13830// entities also get cached for at least 180 seconds after entity is
13831// accessed during runtime. In this case, the `ExpiresIn` element on the
13832// OAuthV2 policy won't be able to expire an access token in less than
13833// 180 seconds.
13834//
13835// - name: Name of the API product. Use the following structure in your
13836//   request: `organizations/{org}/apiproducts/{apiproduct}`.
13837func (r *OrganizationsApiproductsAttributesService) UpdateApiProductAttribute(name string, googlecloudapigeev1attribute *GoogleCloudApigeeV1Attribute) *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall {
13838	c := &OrganizationsApiproductsAttributesUpdateApiProductAttributeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13839	c.name = name
13840	c.googlecloudapigeev1attribute = googlecloudapigeev1attribute
13841	return c
13842}
13843
13844// Fields allows partial responses to be retrieved. See
13845// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13846// for more information.
13847func (c *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall {
13848	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13849	return c
13850}
13851
13852// Context sets the context to be used in this call's Do method. Any
13853// pending HTTP request will be aborted if the provided context is
13854// canceled.
13855func (c *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall) Context(ctx context.Context) *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall {
13856	c.ctx_ = ctx
13857	return c
13858}
13859
13860// Header returns an http.Header that can be modified by the caller to
13861// add HTTP headers to the request.
13862func (c *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall) Header() http.Header {
13863	if c.header_ == nil {
13864		c.header_ = make(http.Header)
13865	}
13866	return c.header_
13867}
13868
13869func (c *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall) doRequest(alt string) (*http.Response, error) {
13870	reqHeaders := make(http.Header)
13871	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
13872	for k, v := range c.header_ {
13873		reqHeaders[k] = v
13874	}
13875	reqHeaders.Set("User-Agent", c.s.userAgent())
13876	var body io.Reader = nil
13877	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1attribute)
13878	if err != nil {
13879		return nil, err
13880	}
13881	reqHeaders.Set("Content-Type", "application/json")
13882	c.urlParams_.Set("alt", alt)
13883	c.urlParams_.Set("prettyPrint", "false")
13884	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
13885	urls += "?" + c.urlParams_.Encode()
13886	req, err := http.NewRequest("POST", urls, body)
13887	if err != nil {
13888		return nil, err
13889	}
13890	req.Header = reqHeaders
13891	googleapi.Expand(req.URL, map[string]string{
13892		"name": c.name,
13893	})
13894	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13895}
13896
13897// Do executes the "apigee.organizations.apiproducts.attributes.updateApiProductAttribute" call.
13898// Exactly one of *GoogleCloudApigeeV1Attribute or error will be
13899// non-nil. Any non-2xx status code is an error. Response headers are in
13900// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a
13901// response was returned at all) in error.(*googleapi.Error).Header. Use
13902// googleapi.IsNotModified to check whether the returned error was
13903// because http.StatusNotModified was returned.
13904func (c *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
13905	gensupport.SetOptions(c.urlParams_, opts...)
13906	res, err := c.doRequest("json")
13907	if res != nil && res.StatusCode == http.StatusNotModified {
13908		if res.Body != nil {
13909			res.Body.Close()
13910		}
13911		return nil, &googleapi.Error{
13912			Code:   res.StatusCode,
13913			Header: res.Header,
13914		}
13915	}
13916	if err != nil {
13917		return nil, err
13918	}
13919	defer googleapi.CloseBody(res)
13920	if err := googleapi.CheckResponse(res); err != nil {
13921		return nil, err
13922	}
13923	ret := &GoogleCloudApigeeV1Attribute{
13924		ServerResponse: googleapi.ServerResponse{
13925			Header:         res.Header,
13926			HTTPStatusCode: res.StatusCode,
13927		},
13928	}
13929	target := &ret
13930	if err := gensupport.DecodeResponse(target, res); err != nil {
13931		return nil, err
13932	}
13933	return ret, nil
13934	// {
13935	//   "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.",
13936	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}/attributes/{attributesId}",
13937	//   "httpMethod": "POST",
13938	//   "id": "apigee.organizations.apiproducts.attributes.updateApiProductAttribute",
13939	//   "parameterOrder": [
13940	//     "name"
13941	//   ],
13942	//   "parameters": {
13943	//     "name": {
13944	//       "description": "Required. Name of the API product. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}`",
13945	//       "location": "path",
13946	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+/attributes/[^/]+$",
13947	//       "required": true,
13948	//       "type": "string"
13949	//     }
13950	//   },
13951	//   "path": "v1/{+name}",
13952	//   "request": {
13953	//     "$ref": "GoogleCloudApigeeV1Attribute"
13954	//   },
13955	//   "response": {
13956	//     "$ref": "GoogleCloudApigeeV1Attribute"
13957	//   },
13958	//   "scopes": [
13959	//     "https://www.googleapis.com/auth/cloud-platform"
13960	//   ]
13961	// }
13962
13963}
13964
13965// method id "apigee.organizations.apiproducts.rateplans.create":
13966
13967type OrganizationsApiproductsRateplansCreateCall struct {
13968	s                           *Service
13969	parent                      string
13970	googlecloudapigeev1rateplan *GoogleCloudApigeeV1RatePlan
13971	urlParams_                  gensupport.URLParams
13972	ctx_                        context.Context
13973	header_                     http.Header
13974}
13975
13976// Create: Create a rate plan that is associated with an API product in
13977// an organization. Using rate plans, API product owners can monetize
13978// their API products by configuring one or more of the following: -
13979// Billing frequency - Initial setup fees for using an API product -
13980// Payment funding model (postpaid only) - Fixed recurring or
13981// consumption-based charges for using an API product - Revenue sharing
13982// with developer partners An API product can have multiple rate plans
13983// associated with it but *only one* rate plan can be active at any
13984// point of time. **Note: From the developer's perspective, they
13985// purchase API products not rate plans.
13986//
13987// - parent: Name of the API product that is associated with the rate
13988//   plan. Use the following structure in your request:
13989//   `organizations/{org}/apiproducts/{apiproduct}`.
13990func (r *OrganizationsApiproductsRateplansService) Create(parent string, googlecloudapigeev1rateplan *GoogleCloudApigeeV1RatePlan) *OrganizationsApiproductsRateplansCreateCall {
13991	c := &OrganizationsApiproductsRateplansCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13992	c.parent = parent
13993	c.googlecloudapigeev1rateplan = googlecloudapigeev1rateplan
13994	return c
13995}
13996
13997// Fields allows partial responses to be retrieved. See
13998// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13999// for more information.
14000func (c *OrganizationsApiproductsRateplansCreateCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsRateplansCreateCall {
14001	c.urlParams_.Set("fields", googleapi.CombineFields(s))
14002	return c
14003}
14004
14005// Context sets the context to be used in this call's Do method. Any
14006// pending HTTP request will be aborted if the provided context is
14007// canceled.
14008func (c *OrganizationsApiproductsRateplansCreateCall) Context(ctx context.Context) *OrganizationsApiproductsRateplansCreateCall {
14009	c.ctx_ = ctx
14010	return c
14011}
14012
14013// Header returns an http.Header that can be modified by the caller to
14014// add HTTP headers to the request.
14015func (c *OrganizationsApiproductsRateplansCreateCall) Header() http.Header {
14016	if c.header_ == nil {
14017		c.header_ = make(http.Header)
14018	}
14019	return c.header_
14020}
14021
14022func (c *OrganizationsApiproductsRateplansCreateCall) doRequest(alt string) (*http.Response, error) {
14023	reqHeaders := make(http.Header)
14024	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
14025	for k, v := range c.header_ {
14026		reqHeaders[k] = v
14027	}
14028	reqHeaders.Set("User-Agent", c.s.userAgent())
14029	var body io.Reader = nil
14030	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1rateplan)
14031	if err != nil {
14032		return nil, err
14033	}
14034	reqHeaders.Set("Content-Type", "application/json")
14035	c.urlParams_.Set("alt", alt)
14036	c.urlParams_.Set("prettyPrint", "false")
14037	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/rateplans")
14038	urls += "?" + c.urlParams_.Encode()
14039	req, err := http.NewRequest("POST", urls, body)
14040	if err != nil {
14041		return nil, err
14042	}
14043	req.Header = reqHeaders
14044	googleapi.Expand(req.URL, map[string]string{
14045		"parent": c.parent,
14046	})
14047	return gensupport.SendRequest(c.ctx_, c.s.client, req)
14048}
14049
14050// Do executes the "apigee.organizations.apiproducts.rateplans.create" call.
14051// Exactly one of *GoogleCloudApigeeV1RatePlan or error will be non-nil.
14052// Any non-2xx status code is an error. Response headers are in either
14053// *GoogleCloudApigeeV1RatePlan.ServerResponse.Header or (if a response
14054// was returned at all) in error.(*googleapi.Error).Header. Use
14055// googleapi.IsNotModified to check whether the returned error was
14056// because http.StatusNotModified was returned.
14057func (c *OrganizationsApiproductsRateplansCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1RatePlan, error) {
14058	gensupport.SetOptions(c.urlParams_, opts...)
14059	res, err := c.doRequest("json")
14060	if res != nil && res.StatusCode == http.StatusNotModified {
14061		if res.Body != nil {
14062			res.Body.Close()
14063		}
14064		return nil, &googleapi.Error{
14065			Code:   res.StatusCode,
14066			Header: res.Header,
14067		}
14068	}
14069	if err != nil {
14070		return nil, err
14071	}
14072	defer googleapi.CloseBody(res)
14073	if err := googleapi.CheckResponse(res); err != nil {
14074		return nil, err
14075	}
14076	ret := &GoogleCloudApigeeV1RatePlan{
14077		ServerResponse: googleapi.ServerResponse{
14078			Header:         res.Header,
14079			HTTPStatusCode: res.StatusCode,
14080		},
14081	}
14082	target := &ret
14083	if err := gensupport.DecodeResponse(target, res); err != nil {
14084		return nil, err
14085	}
14086	return ret, nil
14087	// {
14088	//   "description": "Create a rate plan that is associated with an API product in an organization. Using rate plans, API product owners can monetize their API products by configuring one or more of the following: - Billing frequency - Initial setup fees for using an API product - Payment funding model (postpaid only) - Fixed recurring or consumption-based charges for using an API product - Revenue sharing with developer partners An API product can have multiple rate plans associated with it but *only one* rate plan can be active at any point of time. **Note: From the developer's perspective, they purchase API products not rate plans.",
14089	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}/rateplans",
14090	//   "httpMethod": "POST",
14091	//   "id": "apigee.organizations.apiproducts.rateplans.create",
14092	//   "parameterOrder": [
14093	//     "parent"
14094	//   ],
14095	//   "parameters": {
14096	//     "parent": {
14097	//       "description": "Required. Name of the API product that is associated with the rate plan. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}`",
14098	//       "location": "path",
14099	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+$",
14100	//       "required": true,
14101	//       "type": "string"
14102	//     }
14103	//   },
14104	//   "path": "v1/{+parent}/rateplans",
14105	//   "request": {
14106	//     "$ref": "GoogleCloudApigeeV1RatePlan"
14107	//   },
14108	//   "response": {
14109	//     "$ref": "GoogleCloudApigeeV1RatePlan"
14110	//   },
14111	//   "scopes": [
14112	//     "https://www.googleapis.com/auth/cloud-platform"
14113	//   ]
14114	// }
14115
14116}
14117
14118// method id "apigee.organizations.apiproducts.rateplans.delete":
14119
14120type OrganizationsApiproductsRateplansDeleteCall struct {
14121	s          *Service
14122	name       string
14123	urlParams_ gensupport.URLParams
14124	ctx_       context.Context
14125	header_    http.Header
14126}
14127
14128// Delete: Deletes a rate plan.
14129//
14130// - name: ID of the rate plan. Use the following structure in your
14131//   request:
14132//   `organizations/{org}/apiproducts/{apiproduct}/rateplans/{rateplan}`.
14133func (r *OrganizationsApiproductsRateplansService) Delete(name string) *OrganizationsApiproductsRateplansDeleteCall {
14134	c := &OrganizationsApiproductsRateplansDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14135	c.name = name
14136	return c
14137}
14138
14139// Fields allows partial responses to be retrieved. See
14140// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
14141// for more information.
14142func (c *OrganizationsApiproductsRateplansDeleteCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsRateplansDeleteCall {
14143	c.urlParams_.Set("fields", googleapi.CombineFields(s))
14144	return c
14145}
14146
14147// Context sets the context to be used in this call's Do method. Any
14148// pending HTTP request will be aborted if the provided context is
14149// canceled.
14150func (c *OrganizationsApiproductsRateplansDeleteCall) Context(ctx context.Context) *OrganizationsApiproductsRateplansDeleteCall {
14151	c.ctx_ = ctx
14152	return c
14153}
14154
14155// Header returns an http.Header that can be modified by the caller to
14156// add HTTP headers to the request.
14157func (c *OrganizationsApiproductsRateplansDeleteCall) Header() http.Header {
14158	if c.header_ == nil {
14159		c.header_ = make(http.Header)
14160	}
14161	return c.header_
14162}
14163
14164func (c *OrganizationsApiproductsRateplansDeleteCall) doRequest(alt string) (*http.Response, error) {
14165	reqHeaders := make(http.Header)
14166	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
14167	for k, v := range c.header_ {
14168		reqHeaders[k] = v
14169	}
14170	reqHeaders.Set("User-Agent", c.s.userAgent())
14171	var body io.Reader = nil
14172	c.urlParams_.Set("alt", alt)
14173	c.urlParams_.Set("prettyPrint", "false")
14174	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
14175	urls += "?" + c.urlParams_.Encode()
14176	req, err := http.NewRequest("DELETE", urls, body)
14177	if err != nil {
14178		return nil, err
14179	}
14180	req.Header = reqHeaders
14181	googleapi.Expand(req.URL, map[string]string{
14182		"name": c.name,
14183	})
14184	return gensupport.SendRequest(c.ctx_, c.s.client, req)
14185}
14186
14187// Do executes the "apigee.organizations.apiproducts.rateplans.delete" call.
14188// Exactly one of *GoogleCloudApigeeV1RatePlan or error will be non-nil.
14189// Any non-2xx status code is an error. Response headers are in either
14190// *GoogleCloudApigeeV1RatePlan.ServerResponse.Header or (if a response
14191// was returned at all) in error.(*googleapi.Error).Header. Use
14192// googleapi.IsNotModified to check whether the returned error was
14193// because http.StatusNotModified was returned.
14194func (c *OrganizationsApiproductsRateplansDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1RatePlan, error) {
14195	gensupport.SetOptions(c.urlParams_, opts...)
14196	res, err := c.doRequest("json")
14197	if res != nil && res.StatusCode == http.StatusNotModified {
14198		if res.Body != nil {
14199			res.Body.Close()
14200		}
14201		return nil, &googleapi.Error{
14202			Code:   res.StatusCode,
14203			Header: res.Header,
14204		}
14205	}
14206	if err != nil {
14207		return nil, err
14208	}
14209	defer googleapi.CloseBody(res)
14210	if err := googleapi.CheckResponse(res); err != nil {
14211		return nil, err
14212	}
14213	ret := &GoogleCloudApigeeV1RatePlan{
14214		ServerResponse: googleapi.ServerResponse{
14215			Header:         res.Header,
14216			HTTPStatusCode: res.StatusCode,
14217		},
14218	}
14219	target := &ret
14220	if err := gensupport.DecodeResponse(target, res); err != nil {
14221		return nil, err
14222	}
14223	return ret, nil
14224	// {
14225	//   "description": "Deletes a rate plan.",
14226	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}/rateplans/{rateplansId}",
14227	//   "httpMethod": "DELETE",
14228	//   "id": "apigee.organizations.apiproducts.rateplans.delete",
14229	//   "parameterOrder": [
14230	//     "name"
14231	//   ],
14232	//   "parameters": {
14233	//     "name": {
14234	//       "description": "Required. ID of the rate plan. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}/rateplans/{rateplan}`",
14235	//       "location": "path",
14236	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+/rateplans/[^/]+$",
14237	//       "required": true,
14238	//       "type": "string"
14239	//     }
14240	//   },
14241	//   "path": "v1/{+name}",
14242	//   "response": {
14243	//     "$ref": "GoogleCloudApigeeV1RatePlan"
14244	//   },
14245	//   "scopes": [
14246	//     "https://www.googleapis.com/auth/cloud-platform"
14247	//   ]
14248	// }
14249
14250}
14251
14252// method id "apigee.organizations.apiproducts.rateplans.get":
14253
14254type OrganizationsApiproductsRateplansGetCall struct {
14255	s            *Service
14256	name         string
14257	urlParams_   gensupport.URLParams
14258	ifNoneMatch_ string
14259	ctx_         context.Context
14260	header_      http.Header
14261}
14262
14263// Get: Gets the details of a rate plan.
14264//
14265// - name: Name of the rate plan. Use the following structure in your
14266//   request:
14267//   `organizations/{org}/apiproducts/{apiproduct}/rateplans/{rateplan}`.
14268func (r *OrganizationsApiproductsRateplansService) Get(name string) *OrganizationsApiproductsRateplansGetCall {
14269	c := &OrganizationsApiproductsRateplansGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14270	c.name = name
14271	return c
14272}
14273
14274// Fields allows partial responses to be retrieved. See
14275// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
14276// for more information.
14277func (c *OrganizationsApiproductsRateplansGetCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsRateplansGetCall {
14278	c.urlParams_.Set("fields", googleapi.CombineFields(s))
14279	return c
14280}
14281
14282// IfNoneMatch sets the optional parameter which makes the operation
14283// fail if the object's ETag matches the given value. This is useful for
14284// getting updates only after the object has changed since the last
14285// request. Use googleapi.IsNotModified to check whether the response
14286// error from Do is the result of In-None-Match.
14287func (c *OrganizationsApiproductsRateplansGetCall) IfNoneMatch(entityTag string) *OrganizationsApiproductsRateplansGetCall {
14288	c.ifNoneMatch_ = entityTag
14289	return c
14290}
14291
14292// Context sets the context to be used in this call's Do method. Any
14293// pending HTTP request will be aborted if the provided context is
14294// canceled.
14295func (c *OrganizationsApiproductsRateplansGetCall) Context(ctx context.Context) *OrganizationsApiproductsRateplansGetCall {
14296	c.ctx_ = ctx
14297	return c
14298}
14299
14300// Header returns an http.Header that can be modified by the caller to
14301// add HTTP headers to the request.
14302func (c *OrganizationsApiproductsRateplansGetCall) Header() http.Header {
14303	if c.header_ == nil {
14304		c.header_ = make(http.Header)
14305	}
14306	return c.header_
14307}
14308
14309func (c *OrganizationsApiproductsRateplansGetCall) doRequest(alt string) (*http.Response, error) {
14310	reqHeaders := make(http.Header)
14311	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
14312	for k, v := range c.header_ {
14313		reqHeaders[k] = v
14314	}
14315	reqHeaders.Set("User-Agent", c.s.userAgent())
14316	if c.ifNoneMatch_ != "" {
14317		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14318	}
14319	var body io.Reader = nil
14320	c.urlParams_.Set("alt", alt)
14321	c.urlParams_.Set("prettyPrint", "false")
14322	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
14323	urls += "?" + c.urlParams_.Encode()
14324	req, err := http.NewRequest("GET", urls, body)
14325	if err != nil {
14326		return nil, err
14327	}
14328	req.Header = reqHeaders
14329	googleapi.Expand(req.URL, map[string]string{
14330		"name": c.name,
14331	})
14332	return gensupport.SendRequest(c.ctx_, c.s.client, req)
14333}
14334
14335// Do executes the "apigee.organizations.apiproducts.rateplans.get" call.
14336// Exactly one of *GoogleCloudApigeeV1RatePlan or error will be non-nil.
14337// Any non-2xx status code is an error. Response headers are in either
14338// *GoogleCloudApigeeV1RatePlan.ServerResponse.Header or (if a response
14339// was returned at all) in error.(*googleapi.Error).Header. Use
14340// googleapi.IsNotModified to check whether the returned error was
14341// because http.StatusNotModified was returned.
14342func (c *OrganizationsApiproductsRateplansGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1RatePlan, error) {
14343	gensupport.SetOptions(c.urlParams_, opts...)
14344	res, err := c.doRequest("json")
14345	if res != nil && res.StatusCode == http.StatusNotModified {
14346		if res.Body != nil {
14347			res.Body.Close()
14348		}
14349		return nil, &googleapi.Error{
14350			Code:   res.StatusCode,
14351			Header: res.Header,
14352		}
14353	}
14354	if err != nil {
14355		return nil, err
14356	}
14357	defer googleapi.CloseBody(res)
14358	if err := googleapi.CheckResponse(res); err != nil {
14359		return nil, err
14360	}
14361	ret := &GoogleCloudApigeeV1RatePlan{
14362		ServerResponse: googleapi.ServerResponse{
14363			Header:         res.Header,
14364			HTTPStatusCode: res.StatusCode,
14365		},
14366	}
14367	target := &ret
14368	if err := gensupport.DecodeResponse(target, res); err != nil {
14369		return nil, err
14370	}
14371	return ret, nil
14372	// {
14373	//   "description": "Gets the details of a rate plan.",
14374	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}/rateplans/{rateplansId}",
14375	//   "httpMethod": "GET",
14376	//   "id": "apigee.organizations.apiproducts.rateplans.get",
14377	//   "parameterOrder": [
14378	//     "name"
14379	//   ],
14380	//   "parameters": {
14381	//     "name": {
14382	//       "description": "Required. Name of the rate plan. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}/rateplans/{rateplan}`",
14383	//       "location": "path",
14384	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+/rateplans/[^/]+$",
14385	//       "required": true,
14386	//       "type": "string"
14387	//     }
14388	//   },
14389	//   "path": "v1/{+name}",
14390	//   "response": {
14391	//     "$ref": "GoogleCloudApigeeV1RatePlan"
14392	//   },
14393	//   "scopes": [
14394	//     "https://www.googleapis.com/auth/cloud-platform"
14395	//   ]
14396	// }
14397
14398}
14399
14400// method id "apigee.organizations.apiproducts.rateplans.list":
14401
14402type OrganizationsApiproductsRateplansListCall struct {
14403	s            *Service
14404	parent       string
14405	urlParams_   gensupport.URLParams
14406	ifNoneMatch_ string
14407	ctx_         context.Context
14408	header_      http.Header
14409}
14410
14411// List: Lists all the rate plans for an API product.
14412//
14413// - parent: Name of the API product. Use the following structure in
14414//   your request: `organizations/{org}/apiproducts/{apiproduct}` Use
14415//   `organizations/{org}/apiproducts/-` to return rate plans for all
14416//   API products within the organization.
14417func (r *OrganizationsApiproductsRateplansService) List(parent string) *OrganizationsApiproductsRateplansListCall {
14418	c := &OrganizationsApiproductsRateplansListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14419	c.parent = parent
14420	return c
14421}
14422
14423// Count sets the optional parameter "count": Number of rate plans to
14424// return in the API call. Use with the `startKey` parameter to provide
14425// more targeted filtering. The maximum limit is 1000. Defaults to 100.
14426func (c *OrganizationsApiproductsRateplansListCall) Count(count int64) *OrganizationsApiproductsRateplansListCall {
14427	c.urlParams_.Set("count", fmt.Sprint(count))
14428	return c
14429}
14430
14431// Expand sets the optional parameter "expand": Flag that specifies
14432// whether to expand the results. Set to `true` to get expanded details
14433// about each API. Defaults to `false`.
14434func (c *OrganizationsApiproductsRateplansListCall) Expand(expand bool) *OrganizationsApiproductsRateplansListCall {
14435	c.urlParams_.Set("expand", fmt.Sprint(expand))
14436	return c
14437}
14438
14439// OrderBy sets the optional parameter "orderBy": Name of the attribute
14440// used for sorting. Valid values include: * `name`: Name of the rate
14441// plan. * `state`: State of the rate plan (`DRAFT`, `PUBLISHED`). *
14442// `startTime`: Time when the rate plan becomes active. * `endTime`:
14443// Time when the rate plan expires. **Note**: Not supported by Apigee at
14444// this time.
14445func (c *OrganizationsApiproductsRateplansListCall) OrderBy(orderBy string) *OrganizationsApiproductsRateplansListCall {
14446	c.urlParams_.Set("orderBy", orderBy)
14447	return c
14448}
14449
14450// StartKey sets the optional parameter "startKey": Name of the rate
14451// plan from which to start displaying the list of rate plans. If
14452// omitted, the list starts from the first item. For example, to view
14453// the rate plans from 51-150, set the value of `startKey` to the name
14454// of the 51st rate plan and set the value of `count` to 100.
14455func (c *OrganizationsApiproductsRateplansListCall) StartKey(startKey string) *OrganizationsApiproductsRateplansListCall {
14456	c.urlParams_.Set("startKey", startKey)
14457	return c
14458}
14459
14460// State sets the optional parameter "state": State of the rate plans
14461// (`DRAFT`, `PUBLISHED`) that you want to display.
14462//
14463// Possible values:
14464//   "STATE_UNSPECIFIED" - State of the rate plan is not specified.
14465//   "DRAFT" - Rate plan is in draft mode and only visible to API
14466// providers.
14467//   "PUBLISHED" - Rate plan is published and will become visible to
14468// developers for the configured duration (between `startTime` and
14469// `endTime`).
14470func (c *OrganizationsApiproductsRateplansListCall) State(state string) *OrganizationsApiproductsRateplansListCall {
14471	c.urlParams_.Set("state", state)
14472	return c
14473}
14474
14475// Fields allows partial responses to be retrieved. See
14476// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
14477// for more information.
14478func (c *OrganizationsApiproductsRateplansListCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsRateplansListCall {
14479	c.urlParams_.Set("fields", googleapi.CombineFields(s))
14480	return c
14481}
14482
14483// IfNoneMatch sets the optional parameter which makes the operation
14484// fail if the object's ETag matches the given value. This is useful for
14485// getting updates only after the object has changed since the last
14486// request. Use googleapi.IsNotModified to check whether the response
14487// error from Do is the result of In-None-Match.
14488func (c *OrganizationsApiproductsRateplansListCall) IfNoneMatch(entityTag string) *OrganizationsApiproductsRateplansListCall {
14489	c.ifNoneMatch_ = entityTag
14490	return c
14491}
14492
14493// Context sets the context to be used in this call's Do method. Any
14494// pending HTTP request will be aborted if the provided context is
14495// canceled.
14496func (c *OrganizationsApiproductsRateplansListCall) Context(ctx context.Context) *OrganizationsApiproductsRateplansListCall {
14497	c.ctx_ = ctx
14498	return c
14499}
14500
14501// Header returns an http.Header that can be modified by the caller to
14502// add HTTP headers to the request.
14503func (c *OrganizationsApiproductsRateplansListCall) Header() http.Header {
14504	if c.header_ == nil {
14505		c.header_ = make(http.Header)
14506	}
14507	return c.header_
14508}
14509
14510func (c *OrganizationsApiproductsRateplansListCall) doRequest(alt string) (*http.Response, error) {
14511	reqHeaders := make(http.Header)
14512	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
14513	for k, v := range c.header_ {
14514		reqHeaders[k] = v
14515	}
14516	reqHeaders.Set("User-Agent", c.s.userAgent())
14517	if c.ifNoneMatch_ != "" {
14518		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14519	}
14520	var body io.Reader = nil
14521	c.urlParams_.Set("alt", alt)
14522	c.urlParams_.Set("prettyPrint", "false")
14523	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/rateplans")
14524	urls += "?" + c.urlParams_.Encode()
14525	req, err := http.NewRequest("GET", urls, body)
14526	if err != nil {
14527		return nil, err
14528	}
14529	req.Header = reqHeaders
14530	googleapi.Expand(req.URL, map[string]string{
14531		"parent": c.parent,
14532	})
14533	return gensupport.SendRequest(c.ctx_, c.s.client, req)
14534}
14535
14536// Do executes the "apigee.organizations.apiproducts.rateplans.list" call.
14537// Exactly one of *GoogleCloudApigeeV1ListRatePlansResponse or error
14538// will be non-nil. Any non-2xx status code is an error. Response
14539// headers are in either
14540// *GoogleCloudApigeeV1ListRatePlansResponse.ServerResponse.Header or
14541// (if a response was returned at all) in
14542// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
14543// whether the returned error was because http.StatusNotModified was
14544// returned.
14545func (c *OrganizationsApiproductsRateplansListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListRatePlansResponse, error) {
14546	gensupport.SetOptions(c.urlParams_, opts...)
14547	res, err := c.doRequest("json")
14548	if res != nil && res.StatusCode == http.StatusNotModified {
14549		if res.Body != nil {
14550			res.Body.Close()
14551		}
14552		return nil, &googleapi.Error{
14553			Code:   res.StatusCode,
14554			Header: res.Header,
14555		}
14556	}
14557	if err != nil {
14558		return nil, err
14559	}
14560	defer googleapi.CloseBody(res)
14561	if err := googleapi.CheckResponse(res); err != nil {
14562		return nil, err
14563	}
14564	ret := &GoogleCloudApigeeV1ListRatePlansResponse{
14565		ServerResponse: googleapi.ServerResponse{
14566			Header:         res.Header,
14567			HTTPStatusCode: res.StatusCode,
14568		},
14569	}
14570	target := &ret
14571	if err := gensupport.DecodeResponse(target, res); err != nil {
14572		return nil, err
14573	}
14574	return ret, nil
14575	// {
14576	//   "description": "Lists all the rate plans for an API product.",
14577	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}/rateplans",
14578	//   "httpMethod": "GET",
14579	//   "id": "apigee.organizations.apiproducts.rateplans.list",
14580	//   "parameterOrder": [
14581	//     "parent"
14582	//   ],
14583	//   "parameters": {
14584	//     "count": {
14585	//       "description": "Number of rate plans to return in the API call. Use with the `startKey` parameter to provide more targeted filtering. The maximum limit is 1000. Defaults to 100.",
14586	//       "format": "int32",
14587	//       "location": "query",
14588	//       "type": "integer"
14589	//     },
14590	//     "expand": {
14591	//       "description": "Flag that specifies whether to expand the results. Set to `true` to get expanded details about each API. Defaults to `false`.",
14592	//       "location": "query",
14593	//       "type": "boolean"
14594	//     },
14595	//     "orderBy": {
14596	//       "description": "Name of the attribute used for sorting. Valid values include: * `name`: Name of the rate plan. * `state`: State of the rate plan (`DRAFT`, `PUBLISHED`). * `startTime`: Time when the rate plan becomes active. * `endTime`: Time when the rate plan expires. **Note**: Not supported by Apigee at this time.",
14597	//       "location": "query",
14598	//       "type": "string"
14599	//     },
14600	//     "parent": {
14601	//       "description": "Required. Name of the API product. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}` Use `organizations/{org}/apiproducts/-` to return rate plans for all API products within the organization.",
14602	//       "location": "path",
14603	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+$",
14604	//       "required": true,
14605	//       "type": "string"
14606	//     },
14607	//     "startKey": {
14608	//       "description": "Name of the rate plan from which to start displaying the list of rate plans. If omitted, the list starts from the first item. For example, to view the rate plans from 51-150, set the value of `startKey` to the name of the 51st rate plan and set the value of `count` to 100.",
14609	//       "location": "query",
14610	//       "type": "string"
14611	//     },
14612	//     "state": {
14613	//       "description": "State of the rate plans (`DRAFT`, `PUBLISHED`) that you want to display.",
14614	//       "enum": [
14615	//         "STATE_UNSPECIFIED",
14616	//         "DRAFT",
14617	//         "PUBLISHED"
14618	//       ],
14619	//       "enumDescriptions": [
14620	//         "State of the rate plan is not specified.",
14621	//         "Rate plan is in draft mode and only visible to API providers.",
14622	//         "Rate plan is published and will become visible to developers for the configured duration (between `startTime` and `endTime`)."
14623	//       ],
14624	//       "location": "query",
14625	//       "type": "string"
14626	//     }
14627	//   },
14628	//   "path": "v1/{+parent}/rateplans",
14629	//   "response": {
14630	//     "$ref": "GoogleCloudApigeeV1ListRatePlansResponse"
14631	//   },
14632	//   "scopes": [
14633	//     "https://www.googleapis.com/auth/cloud-platform"
14634	//   ]
14635	// }
14636
14637}
14638
14639// method id "apigee.organizations.apiproducts.rateplans.update":
14640
14641type OrganizationsApiproductsRateplansUpdateCall struct {
14642	s                           *Service
14643	name                        string
14644	googlecloudapigeev1rateplan *GoogleCloudApigeeV1RatePlan
14645	urlParams_                  gensupport.URLParams
14646	ctx_                        context.Context
14647	header_                     http.Header
14648}
14649
14650// Update: Updates an existing rate plan.
14651//
14652// - name: Name of the rate plan. Use the following structure in your
14653//   request:
14654//   `organizations/{org}/apiproducts/{apiproduct}/rateplans/{rateplan}`.
14655func (r *OrganizationsApiproductsRateplansService) Update(name string, googlecloudapigeev1rateplan *GoogleCloudApigeeV1RatePlan) *OrganizationsApiproductsRateplansUpdateCall {
14656	c := &OrganizationsApiproductsRateplansUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14657	c.name = name
14658	c.googlecloudapigeev1rateplan = googlecloudapigeev1rateplan
14659	return c
14660}
14661
14662// Fields allows partial responses to be retrieved. See
14663// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
14664// for more information.
14665func (c *OrganizationsApiproductsRateplansUpdateCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsRateplansUpdateCall {
14666	c.urlParams_.Set("fields", googleapi.CombineFields(s))
14667	return c
14668}
14669
14670// Context sets the context to be used in this call's Do method. Any
14671// pending HTTP request will be aborted if the provided context is
14672// canceled.
14673func (c *OrganizationsApiproductsRateplansUpdateCall) Context(ctx context.Context) *OrganizationsApiproductsRateplansUpdateCall {
14674	c.ctx_ = ctx
14675	return c
14676}
14677
14678// Header returns an http.Header that can be modified by the caller to
14679// add HTTP headers to the request.
14680func (c *OrganizationsApiproductsRateplansUpdateCall) Header() http.Header {
14681	if c.header_ == nil {
14682		c.header_ = make(http.Header)
14683	}
14684	return c.header_
14685}
14686
14687func (c *OrganizationsApiproductsRateplansUpdateCall) doRequest(alt string) (*http.Response, error) {
14688	reqHeaders := make(http.Header)
14689	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
14690	for k, v := range c.header_ {
14691		reqHeaders[k] = v
14692	}
14693	reqHeaders.Set("User-Agent", c.s.userAgent())
14694	var body io.Reader = nil
14695	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1rateplan)
14696	if err != nil {
14697		return nil, err
14698	}
14699	reqHeaders.Set("Content-Type", "application/json")
14700	c.urlParams_.Set("alt", alt)
14701	c.urlParams_.Set("prettyPrint", "false")
14702	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
14703	urls += "?" + c.urlParams_.Encode()
14704	req, err := http.NewRequest("PUT", urls, body)
14705	if err != nil {
14706		return nil, err
14707	}
14708	req.Header = reqHeaders
14709	googleapi.Expand(req.URL, map[string]string{
14710		"name": c.name,
14711	})
14712	return gensupport.SendRequest(c.ctx_, c.s.client, req)
14713}
14714
14715// Do executes the "apigee.organizations.apiproducts.rateplans.update" call.
14716// Exactly one of *GoogleCloudApigeeV1RatePlan or error will be non-nil.
14717// Any non-2xx status code is an error. Response headers are in either
14718// *GoogleCloudApigeeV1RatePlan.ServerResponse.Header or (if a response
14719// was returned at all) in error.(*googleapi.Error).Header. Use
14720// googleapi.IsNotModified to check whether the returned error was
14721// because http.StatusNotModified was returned.
14722func (c *OrganizationsApiproductsRateplansUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1RatePlan, error) {
14723	gensupport.SetOptions(c.urlParams_, opts...)
14724	res, err := c.doRequest("json")
14725	if res != nil && res.StatusCode == http.StatusNotModified {
14726		if res.Body != nil {
14727			res.Body.Close()
14728		}
14729		return nil, &googleapi.Error{
14730			Code:   res.StatusCode,
14731			Header: res.Header,
14732		}
14733	}
14734	if err != nil {
14735		return nil, err
14736	}
14737	defer googleapi.CloseBody(res)
14738	if err := googleapi.CheckResponse(res); err != nil {
14739		return nil, err
14740	}
14741	ret := &GoogleCloudApigeeV1RatePlan{
14742		ServerResponse: googleapi.ServerResponse{
14743			Header:         res.Header,
14744			HTTPStatusCode: res.StatusCode,
14745		},
14746	}
14747	target := &ret
14748	if err := gensupport.DecodeResponse(target, res); err != nil {
14749		return nil, err
14750	}
14751	return ret, nil
14752	// {
14753	//   "description": "Updates an existing rate plan.",
14754	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}/rateplans/{rateplansId}",
14755	//   "httpMethod": "PUT",
14756	//   "id": "apigee.organizations.apiproducts.rateplans.update",
14757	//   "parameterOrder": [
14758	//     "name"
14759	//   ],
14760	//   "parameters": {
14761	//     "name": {
14762	//       "description": "Required. Name of the rate plan. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}/rateplans/{rateplan}`",
14763	//       "location": "path",
14764	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+/rateplans/[^/]+$",
14765	//       "required": true,
14766	//       "type": "string"
14767	//     }
14768	//   },
14769	//   "path": "v1/{+name}",
14770	//   "request": {
14771	//     "$ref": "GoogleCloudApigeeV1RatePlan"
14772	//   },
14773	//   "response": {
14774	//     "$ref": "GoogleCloudApigeeV1RatePlan"
14775	//   },
14776	//   "scopes": [
14777	//     "https://www.googleapis.com/auth/cloud-platform"
14778	//   ]
14779	// }
14780
14781}
14782
14783// method id "apigee.organizations.apis.create":
14784
14785type OrganizationsApisCreateCall struct {
14786	s                 *Service
14787	parent            string
14788	googleapihttpbody *GoogleApiHttpBody
14789	urlParams_        gensupport.URLParams
14790	ctx_              context.Context
14791	header_           http.Header
14792}
14793
14794// Create: Creates an API proxy. The API proxy created will not be
14795// accessible at runtime until it is deployed to an environment. Create
14796// a new API proxy by setting the `name` query parameter to the name of
14797// the API proxy. Import an API proxy configuration bundle stored in zip
14798// format on your local machine to your organization by doing the
14799// following: * Set the `name` query parameter to the name of the API
14800// proxy. * Set the `action` query parameter to `import`. * Set the
14801// `Content-Type` header to `multipart/form-data`. * Pass as a file the
14802// name of API proxy configuration bundle stored in zip format on your
14803// local machine using the `file` form field. **Note**: To validate the
14804// API proxy configuration bundle only without importing it, set the
14805// `action` query parameter to `validate`. When importing an API proxy
14806// configuration bundle, if the API proxy does not exist, it will be
14807// created. If the API proxy exists, then a new revision is created.
14808// Invalid API proxy configurations are rejected, and a list of
14809// validation errors is returned to the client.
14810//
14811// - parent: Name of the organization in the following format:
14812//   `organizations/{org}`.
14813func (r *OrganizationsApisService) Create(parent string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsApisCreateCall {
14814	c := &OrganizationsApisCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14815	c.parent = parent
14816	c.googleapihttpbody = googleapihttpbody
14817	return c
14818}
14819
14820// Action sets the optional parameter "action": Action to perform when
14821// importing an API proxy configuration bundle. Set this parameter to
14822// one of the following values: * `import` to import the API proxy
14823// configuration bundle. * `validate` to validate the API proxy
14824// configuration bundle without importing it.
14825func (c *OrganizationsApisCreateCall) Action(action string) *OrganizationsApisCreateCall {
14826	c.urlParams_.Set("action", action)
14827	return c
14828}
14829
14830// Name sets the optional parameter "name": Name of the API proxy.
14831// Restrict the characters used to: A-Za-z0-9._-
14832func (c *OrganizationsApisCreateCall) Name(name string) *OrganizationsApisCreateCall {
14833	c.urlParams_.Set("name", name)
14834	return c
14835}
14836
14837// Validate sets the optional parameter "validate": Ignored. All uploads
14838// are validated regardless of the value of this field. Maintained for
14839// compatibility with Apigee Edge API.
14840func (c *OrganizationsApisCreateCall) Validate(validate bool) *OrganizationsApisCreateCall {
14841	c.urlParams_.Set("validate", fmt.Sprint(validate))
14842	return c
14843}
14844
14845// Fields allows partial responses to be retrieved. See
14846// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
14847// for more information.
14848func (c *OrganizationsApisCreateCall) Fields(s ...googleapi.Field) *OrganizationsApisCreateCall {
14849	c.urlParams_.Set("fields", googleapi.CombineFields(s))
14850	return c
14851}
14852
14853// Context sets the context to be used in this call's Do method. Any
14854// pending HTTP request will be aborted if the provided context is
14855// canceled.
14856func (c *OrganizationsApisCreateCall) Context(ctx context.Context) *OrganizationsApisCreateCall {
14857	c.ctx_ = ctx
14858	return c
14859}
14860
14861// Header returns an http.Header that can be modified by the caller to
14862// add HTTP headers to the request.
14863func (c *OrganizationsApisCreateCall) Header() http.Header {
14864	if c.header_ == nil {
14865		c.header_ = make(http.Header)
14866	}
14867	return c.header_
14868}
14869
14870func (c *OrganizationsApisCreateCall) doRequest(alt string) (*http.Response, error) {
14871	reqHeaders := make(http.Header)
14872	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
14873	for k, v := range c.header_ {
14874		reqHeaders[k] = v
14875	}
14876	reqHeaders.Set("User-Agent", c.s.userAgent())
14877	var body io.Reader = nil
14878	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
14879	if err != nil {
14880		return nil, err
14881	}
14882	reqHeaders.Set("Content-Type", "application/json")
14883	c.urlParams_.Set("alt", alt)
14884	c.urlParams_.Set("prettyPrint", "false")
14885	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apis")
14886	urls += "?" + c.urlParams_.Encode()
14887	req, err := http.NewRequest("POST", urls, body)
14888	if err != nil {
14889		return nil, err
14890	}
14891	req.Header = reqHeaders
14892	googleapi.Expand(req.URL, map[string]string{
14893		"parent": c.parent,
14894	})
14895	return gensupport.SendRequest(c.ctx_, c.s.client, req)
14896}
14897
14898// Do executes the "apigee.organizations.apis.create" call.
14899// Exactly one of *GoogleCloudApigeeV1ApiProxyRevision or error will be
14900// non-nil. Any non-2xx status code is an error. Response headers are in
14901// either *GoogleCloudApigeeV1ApiProxyRevision.ServerResponse.Header or
14902// (if a response was returned at all) in
14903// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
14904// whether the returned error was because http.StatusNotModified was
14905// returned.
14906func (c *OrganizationsApisCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProxyRevision, error) {
14907	gensupport.SetOptions(c.urlParams_, opts...)
14908	res, err := c.doRequest("json")
14909	if res != nil && res.StatusCode == http.StatusNotModified {
14910		if res.Body != nil {
14911			res.Body.Close()
14912		}
14913		return nil, &googleapi.Error{
14914			Code:   res.StatusCode,
14915			Header: res.Header,
14916		}
14917	}
14918	if err != nil {
14919		return nil, err
14920	}
14921	defer googleapi.CloseBody(res)
14922	if err := googleapi.CheckResponse(res); err != nil {
14923		return nil, err
14924	}
14925	ret := &GoogleCloudApigeeV1ApiProxyRevision{
14926		ServerResponse: googleapi.ServerResponse{
14927			Header:         res.Header,
14928			HTTPStatusCode: res.StatusCode,
14929		},
14930	}
14931	target := &ret
14932	if err := gensupport.DecodeResponse(target, res); err != nil {
14933		return nil, err
14934	}
14935	return ret, nil
14936	// {
14937	//   "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.",
14938	//   "flatPath": "v1/organizations/{organizationsId}/apis",
14939	//   "httpMethod": "POST",
14940	//   "id": "apigee.organizations.apis.create",
14941	//   "parameterOrder": [
14942	//     "parent"
14943	//   ],
14944	//   "parameters": {
14945	//     "action": {
14946	//       "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.",
14947	//       "location": "query",
14948	//       "type": "string"
14949	//     },
14950	//     "name": {
14951	//       "description": "Name of the API proxy. Restrict the characters used to: A-Za-z0-9._-",
14952	//       "location": "query",
14953	//       "type": "string"
14954	//     },
14955	//     "parent": {
14956	//       "description": "Required. Name of the organization in the following format: `organizations/{org}`",
14957	//       "location": "path",
14958	//       "pattern": "^organizations/[^/]+$",
14959	//       "required": true,
14960	//       "type": "string"
14961	//     },
14962	//     "validate": {
14963	//       "description": "Ignored. All uploads are validated regardless of the value of this field. Maintained for compatibility with Apigee Edge API.",
14964	//       "location": "query",
14965	//       "type": "boolean"
14966	//     }
14967	//   },
14968	//   "path": "v1/{+parent}/apis",
14969	//   "request": {
14970	//     "$ref": "GoogleApiHttpBody"
14971	//   },
14972	//   "response": {
14973	//     "$ref": "GoogleCloudApigeeV1ApiProxyRevision"
14974	//   },
14975	//   "scopes": [
14976	//     "https://www.googleapis.com/auth/cloud-platform"
14977	//   ]
14978	// }
14979
14980}
14981
14982// method id "apigee.organizations.apis.delete":
14983
14984type OrganizationsApisDeleteCall struct {
14985	s          *Service
14986	name       string
14987	urlParams_ gensupport.URLParams
14988	ctx_       context.Context
14989	header_    http.Header
14990}
14991
14992// Delete: Deletes an API proxy and all associated endpoints, policies,
14993// resources, and revisions. The API proxy must be undeployed before you
14994// can delete it.
14995//
14996// - name: Name of the API proxy in the following format:
14997//   `organizations/{org}/apis/{api}`.
14998func (r *OrganizationsApisService) Delete(name string) *OrganizationsApisDeleteCall {
14999	c := &OrganizationsApisDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15000	c.name = name
15001	return c
15002}
15003
15004// Fields allows partial responses to be retrieved. See
15005// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
15006// for more information.
15007func (c *OrganizationsApisDeleteCall) Fields(s ...googleapi.Field) *OrganizationsApisDeleteCall {
15008	c.urlParams_.Set("fields", googleapi.CombineFields(s))
15009	return c
15010}
15011
15012// Context sets the context to be used in this call's Do method. Any
15013// pending HTTP request will be aborted if the provided context is
15014// canceled.
15015func (c *OrganizationsApisDeleteCall) Context(ctx context.Context) *OrganizationsApisDeleteCall {
15016	c.ctx_ = ctx
15017	return c
15018}
15019
15020// Header returns an http.Header that can be modified by the caller to
15021// add HTTP headers to the request.
15022func (c *OrganizationsApisDeleteCall) Header() http.Header {
15023	if c.header_ == nil {
15024		c.header_ = make(http.Header)
15025	}
15026	return c.header_
15027}
15028
15029func (c *OrganizationsApisDeleteCall) doRequest(alt string) (*http.Response, error) {
15030	reqHeaders := make(http.Header)
15031	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
15032	for k, v := range c.header_ {
15033		reqHeaders[k] = v
15034	}
15035	reqHeaders.Set("User-Agent", c.s.userAgent())
15036	var body io.Reader = nil
15037	c.urlParams_.Set("alt", alt)
15038	c.urlParams_.Set("prettyPrint", "false")
15039	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
15040	urls += "?" + c.urlParams_.Encode()
15041	req, err := http.NewRequest("DELETE", urls, body)
15042	if err != nil {
15043		return nil, err
15044	}
15045	req.Header = reqHeaders
15046	googleapi.Expand(req.URL, map[string]string{
15047		"name": c.name,
15048	})
15049	return gensupport.SendRequest(c.ctx_, c.s.client, req)
15050}
15051
15052// Do executes the "apigee.organizations.apis.delete" call.
15053// Exactly one of *GoogleCloudApigeeV1ApiProxy or error will be non-nil.
15054// Any non-2xx status code is an error. Response headers are in either
15055// *GoogleCloudApigeeV1ApiProxy.ServerResponse.Header or (if a response
15056// was returned at all) in error.(*googleapi.Error).Header. Use
15057// googleapi.IsNotModified to check whether the returned error was
15058// because http.StatusNotModified was returned.
15059func (c *OrganizationsApisDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProxy, error) {
15060	gensupport.SetOptions(c.urlParams_, opts...)
15061	res, err := c.doRequest("json")
15062	if res != nil && res.StatusCode == http.StatusNotModified {
15063		if res.Body != nil {
15064			res.Body.Close()
15065		}
15066		return nil, &googleapi.Error{
15067			Code:   res.StatusCode,
15068			Header: res.Header,
15069		}
15070	}
15071	if err != nil {
15072		return nil, err
15073	}
15074	defer googleapi.CloseBody(res)
15075	if err := googleapi.CheckResponse(res); err != nil {
15076		return nil, err
15077	}
15078	ret := &GoogleCloudApigeeV1ApiProxy{
15079		ServerResponse: googleapi.ServerResponse{
15080			Header:         res.Header,
15081			HTTPStatusCode: res.StatusCode,
15082		},
15083	}
15084	target := &ret
15085	if err := gensupport.DecodeResponse(target, res); err != nil {
15086		return nil, err
15087	}
15088	return ret, nil
15089	// {
15090	//   "description": "Deletes an API proxy and all associated endpoints, policies, resources, and revisions. The API proxy must be undeployed before you can delete it.",
15091	//   "flatPath": "v1/organizations/{organizationsId}/apis/{apisId}",
15092	//   "httpMethod": "DELETE",
15093	//   "id": "apigee.organizations.apis.delete",
15094	//   "parameterOrder": [
15095	//     "name"
15096	//   ],
15097	//   "parameters": {
15098	//     "name": {
15099	//       "description": "Required. Name of the API proxy in the following format: `organizations/{org}/apis/{api}`",
15100	//       "location": "path",
15101	//       "pattern": "^organizations/[^/]+/apis/[^/]+$",
15102	//       "required": true,
15103	//       "type": "string"
15104	//     }
15105	//   },
15106	//   "path": "v1/{+name}",
15107	//   "response": {
15108	//     "$ref": "GoogleCloudApigeeV1ApiProxy"
15109	//   },
15110	//   "scopes": [
15111	//     "https://www.googleapis.com/auth/cloud-platform"
15112	//   ]
15113	// }
15114
15115}
15116
15117// method id "apigee.organizations.apis.get":
15118
15119type OrganizationsApisGetCall struct {
15120	s            *Service
15121	name         string
15122	urlParams_   gensupport.URLParams
15123	ifNoneMatch_ string
15124	ctx_         context.Context
15125	header_      http.Header
15126}
15127
15128// Get: Gets an API proxy including a list of existing revisions.
15129//
15130// - name: Name of the API proxy in the following format:
15131//   `organizations/{org}/apis/{api}`.
15132func (r *OrganizationsApisService) Get(name string) *OrganizationsApisGetCall {
15133	c := &OrganizationsApisGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15134	c.name = name
15135	return c
15136}
15137
15138// Fields allows partial responses to be retrieved. See
15139// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
15140// for more information.
15141func (c *OrganizationsApisGetCall) Fields(s ...googleapi.Field) *OrganizationsApisGetCall {
15142	c.urlParams_.Set("fields", googleapi.CombineFields(s))
15143	return c
15144}
15145
15146// IfNoneMatch sets the optional parameter which makes the operation
15147// fail if the object's ETag matches the given value. This is useful for
15148// getting updates only after the object has changed since the last
15149// request. Use googleapi.IsNotModified to check whether the response
15150// error from Do is the result of In-None-Match.
15151func (c *OrganizationsApisGetCall) IfNoneMatch(entityTag string) *OrganizationsApisGetCall {
15152	c.ifNoneMatch_ = entityTag
15153	return c
15154}
15155
15156// Context sets the context to be used in this call's Do method. Any
15157// pending HTTP request will be aborted if the provided context is
15158// canceled.
15159func (c *OrganizationsApisGetCall) Context(ctx context.Context) *OrganizationsApisGetCall {
15160	c.ctx_ = ctx
15161	return c
15162}
15163
15164// Header returns an http.Header that can be modified by the caller to
15165// add HTTP headers to the request.
15166func (c *OrganizationsApisGetCall) Header() http.Header {
15167	if c.header_ == nil {
15168		c.header_ = make(http.Header)
15169	}
15170	return c.header_
15171}
15172
15173func (c *OrganizationsApisGetCall) doRequest(alt string) (*http.Response, error) {
15174	reqHeaders := make(http.Header)
15175	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
15176	for k, v := range c.header_ {
15177		reqHeaders[k] = v
15178	}
15179	reqHeaders.Set("User-Agent", c.s.userAgent())
15180	if c.ifNoneMatch_ != "" {
15181		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
15182	}
15183	var body io.Reader = nil
15184	c.urlParams_.Set("alt", alt)
15185	c.urlParams_.Set("prettyPrint", "false")
15186	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
15187	urls += "?" + c.urlParams_.Encode()
15188	req, err := http.NewRequest("GET", urls, body)
15189	if err != nil {
15190		return nil, err
15191	}
15192	req.Header = reqHeaders
15193	googleapi.Expand(req.URL, map[string]string{
15194		"name": c.name,
15195	})
15196	return gensupport.SendRequest(c.ctx_, c.s.client, req)
15197}
15198
15199// Do executes the "apigee.organizations.apis.get" call.
15200// Exactly one of *GoogleCloudApigeeV1ApiProxy or error will be non-nil.
15201// Any non-2xx status code is an error. Response headers are in either
15202// *GoogleCloudApigeeV1ApiProxy.ServerResponse.Header or (if a response
15203// was returned at all) in error.(*googleapi.Error).Header. Use
15204// googleapi.IsNotModified to check whether the returned error was
15205// because http.StatusNotModified was returned.
15206func (c *OrganizationsApisGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProxy, error) {
15207	gensupport.SetOptions(c.urlParams_, opts...)
15208	res, err := c.doRequest("json")
15209	if res != nil && res.StatusCode == http.StatusNotModified {
15210		if res.Body != nil {
15211			res.Body.Close()
15212		}
15213		return nil, &googleapi.Error{
15214			Code:   res.StatusCode,
15215			Header: res.Header,
15216		}
15217	}
15218	if err != nil {
15219		return nil, err
15220	}
15221	defer googleapi.CloseBody(res)
15222	if err := googleapi.CheckResponse(res); err != nil {
15223		return nil, err
15224	}
15225	ret := &GoogleCloudApigeeV1ApiProxy{
15226		ServerResponse: googleapi.ServerResponse{
15227			Header:         res.Header,
15228			HTTPStatusCode: res.StatusCode,
15229		},
15230	}
15231	target := &ret
15232	if err := gensupport.DecodeResponse(target, res); err != nil {
15233		return nil, err
15234	}
15235	return ret, nil
15236	// {
15237	//   "description": "Gets an API proxy including a list of existing revisions.",
15238	//   "flatPath": "v1/organizations/{organizationsId}/apis/{apisId}",
15239	//   "httpMethod": "GET",
15240	//   "id": "apigee.organizations.apis.get",
15241	//   "parameterOrder": [
15242	//     "name"
15243	//   ],
15244	//   "parameters": {
15245	//     "name": {
15246	//       "description": "Required. Name of the API proxy in the following format: `organizations/{org}/apis/{api}`",
15247	//       "location": "path",
15248	//       "pattern": "^organizations/[^/]+/apis/[^/]+$",
15249	//       "required": true,
15250	//       "type": "string"
15251	//     }
15252	//   },
15253	//   "path": "v1/{+name}",
15254	//   "response": {
15255	//     "$ref": "GoogleCloudApigeeV1ApiProxy"
15256	//   },
15257	//   "scopes": [
15258	//     "https://www.googleapis.com/auth/cloud-platform"
15259	//   ]
15260	// }
15261
15262}
15263
15264// method id "apigee.organizations.apis.list":
15265
15266type OrganizationsApisListCall struct {
15267	s            *Service
15268	parent       string
15269	urlParams_   gensupport.URLParams
15270	ifNoneMatch_ string
15271	ctx_         context.Context
15272	header_      http.Header
15273}
15274
15275// List: Lists the names of all API proxies in an organization. The
15276// names returned correspond to the names defined in the configuration
15277// files for each API proxy.
15278//
15279// - parent: Name of the organization in the following format:
15280//   `organizations/{org}`.
15281func (r *OrganizationsApisService) List(parent string) *OrganizationsApisListCall {
15282	c := &OrganizationsApisListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15283	c.parent = parent
15284	return c
15285}
15286
15287// IncludeMetaData sets the optional parameter "includeMetaData": Flag
15288// that specifies whether to include API proxy metadata in the response.
15289func (c *OrganizationsApisListCall) IncludeMetaData(includeMetaData bool) *OrganizationsApisListCall {
15290	c.urlParams_.Set("includeMetaData", fmt.Sprint(includeMetaData))
15291	return c
15292}
15293
15294// IncludeRevisions sets the optional parameter "includeRevisions": Flag
15295// that specifies whether to include a list of revisions in the
15296// response.
15297func (c *OrganizationsApisListCall) IncludeRevisions(includeRevisions bool) *OrganizationsApisListCall {
15298	c.urlParams_.Set("includeRevisions", fmt.Sprint(includeRevisions))
15299	return c
15300}
15301
15302// Fields allows partial responses to be retrieved. See
15303// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
15304// for more information.
15305func (c *OrganizationsApisListCall) Fields(s ...googleapi.Field) *OrganizationsApisListCall {
15306	c.urlParams_.Set("fields", googleapi.CombineFields(s))
15307	return c
15308}
15309
15310// IfNoneMatch sets the optional parameter which makes the operation
15311// fail if the object's ETag matches the given value. This is useful for
15312// getting updates only after the object has changed since the last
15313// request. Use googleapi.IsNotModified to check whether the response
15314// error from Do is the result of In-None-Match.
15315func (c *OrganizationsApisListCall) IfNoneMatch(entityTag string) *OrganizationsApisListCall {
15316	c.ifNoneMatch_ = entityTag
15317	return c
15318}
15319
15320// Context sets the context to be used in this call's Do method. Any
15321// pending HTTP request will be aborted if the provided context is
15322// canceled.
15323func (c *OrganizationsApisListCall) Context(ctx context.Context) *OrganizationsApisListCall {
15324	c.ctx_ = ctx
15325	return c
15326}
15327
15328// Header returns an http.Header that can be modified by the caller to
15329// add HTTP headers to the request.
15330func (c *OrganizationsApisListCall) Header() http.Header {
15331	if c.header_ == nil {
15332		c.header_ = make(http.Header)
15333	}
15334	return c.header_
15335}
15336
15337func (c *OrganizationsApisListCall) doRequest(alt string) (*http.Response, error) {
15338	reqHeaders := make(http.Header)
15339	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
15340	for k, v := range c.header_ {
15341		reqHeaders[k] = v
15342	}
15343	reqHeaders.Set("User-Agent", c.s.userAgent())
15344	if c.ifNoneMatch_ != "" {
15345		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
15346	}
15347	var body io.Reader = nil
15348	c.urlParams_.Set("alt", alt)
15349	c.urlParams_.Set("prettyPrint", "false")
15350	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apis")
15351	urls += "?" + c.urlParams_.Encode()
15352	req, err := http.NewRequest("GET", urls, body)
15353	if err != nil {
15354		return nil, err
15355	}
15356	req.Header = reqHeaders
15357	googleapi.Expand(req.URL, map[string]string{
15358		"parent": c.parent,
15359	})
15360	return gensupport.SendRequest(c.ctx_, c.s.client, req)
15361}
15362
15363// Do executes the "apigee.organizations.apis.list" call.
15364// Exactly one of *GoogleCloudApigeeV1ListApiProxiesResponse or error
15365// will be non-nil. Any non-2xx status code is an error. Response
15366// headers are in either
15367// *GoogleCloudApigeeV1ListApiProxiesResponse.ServerResponse.Header or
15368// (if a response was returned at all) in
15369// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
15370// whether the returned error was because http.StatusNotModified was
15371// returned.
15372func (c *OrganizationsApisListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListApiProxiesResponse, error) {
15373	gensupport.SetOptions(c.urlParams_, opts...)
15374	res, err := c.doRequest("json")
15375	if res != nil && res.StatusCode == http.StatusNotModified {
15376		if res.Body != nil {
15377			res.Body.Close()
15378		}
15379		return nil, &googleapi.Error{
15380			Code:   res.StatusCode,
15381			Header: res.Header,
15382		}
15383	}
15384	if err != nil {
15385		return nil, err
15386	}
15387	defer googleapi.CloseBody(res)
15388	if err := googleapi.CheckResponse(res); err != nil {
15389		return nil, err
15390	}
15391	ret := &GoogleCloudApigeeV1ListApiProxiesResponse{
15392		ServerResponse: googleapi.ServerResponse{
15393			Header:         res.Header,
15394			HTTPStatusCode: res.StatusCode,
15395		},
15396	}
15397	target := &ret
15398	if err := gensupport.DecodeResponse(target, res); err != nil {
15399		return nil, err
15400	}
15401	return ret, nil
15402	// {
15403	//   "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.",
15404	//   "flatPath": "v1/organizations/{organizationsId}/apis",
15405	//   "httpMethod": "GET",
15406	//   "id": "apigee.organizations.apis.list",
15407	//   "parameterOrder": [
15408	//     "parent"
15409	//   ],
15410	//   "parameters": {
15411	//     "includeMetaData": {
15412	//       "description": "Flag that specifies whether to include API proxy metadata in the response.",
15413	//       "location": "query",
15414	//       "type": "boolean"
15415	//     },
15416	//     "includeRevisions": {
15417	//       "description": "Flag that specifies whether to include a list of revisions in the response.",
15418	//       "location": "query",
15419	//       "type": "boolean"
15420	//     },
15421	//     "parent": {
15422	//       "description": "Required. Name of the organization in the following format: `organizations/{org}`",
15423	//       "location": "path",
15424	//       "pattern": "^organizations/[^/]+$",
15425	//       "required": true,
15426	//       "type": "string"
15427	//     }
15428	//   },
15429	//   "path": "v1/{+parent}/apis",
15430	//   "response": {
15431	//     "$ref": "GoogleCloudApigeeV1ListApiProxiesResponse"
15432	//   },
15433	//   "scopes": [
15434	//     "https://www.googleapis.com/auth/cloud-platform"
15435	//   ]
15436	// }
15437
15438}
15439
15440// method id "apigee.organizations.apis.patch":
15441
15442type OrganizationsApisPatchCall struct {
15443	s                           *Service
15444	name                        string
15445	googlecloudapigeev1apiproxy *GoogleCloudApigeeV1ApiProxy
15446	urlParams_                  gensupport.URLParams
15447	ctx_                        context.Context
15448	header_                     http.Header
15449}
15450
15451// Patch: Updates an existing API proxy.
15452//
15453// - name: API proxy to update in the following format:
15454//   `organizations/{org}/apis/{api}`.
15455func (r *OrganizationsApisService) Patch(name string, googlecloudapigeev1apiproxy *GoogleCloudApigeeV1ApiProxy) *OrganizationsApisPatchCall {
15456	c := &OrganizationsApisPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15457	c.name = name
15458	c.googlecloudapigeev1apiproxy = googlecloudapigeev1apiproxy
15459	return c
15460}
15461
15462// UpdateMask sets the optional parameter "updateMask": Required. The
15463// list of fields to update.
15464func (c *OrganizationsApisPatchCall) UpdateMask(updateMask string) *OrganizationsApisPatchCall {
15465	c.urlParams_.Set("updateMask", updateMask)
15466	return c
15467}
15468
15469// Fields allows partial responses to be retrieved. See
15470// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
15471// for more information.
15472func (c *OrganizationsApisPatchCall) Fields(s ...googleapi.Field) *OrganizationsApisPatchCall {
15473	c.urlParams_.Set("fields", googleapi.CombineFields(s))
15474	return c
15475}
15476
15477// Context sets the context to be used in this call's Do method. Any
15478// pending HTTP request will be aborted if the provided context is
15479// canceled.
15480func (c *OrganizationsApisPatchCall) Context(ctx context.Context) *OrganizationsApisPatchCall {
15481	c.ctx_ = ctx
15482	return c
15483}
15484
15485// Header returns an http.Header that can be modified by the caller to
15486// add HTTP headers to the request.
15487func (c *OrganizationsApisPatchCall) Header() http.Header {
15488	if c.header_ == nil {
15489		c.header_ = make(http.Header)
15490	}
15491	return c.header_
15492}
15493
15494func (c *OrganizationsApisPatchCall) doRequest(alt string) (*http.Response, error) {
15495	reqHeaders := make(http.Header)
15496	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
15497	for k, v := range c.header_ {
15498		reqHeaders[k] = v
15499	}
15500	reqHeaders.Set("User-Agent", c.s.userAgent())
15501	var body io.Reader = nil
15502	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1apiproxy)
15503	if err != nil {
15504		return nil, err
15505	}
15506	reqHeaders.Set("Content-Type", "application/json")
15507	c.urlParams_.Set("alt", alt)
15508	c.urlParams_.Set("prettyPrint", "false")
15509	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
15510	urls += "?" + c.urlParams_.Encode()
15511	req, err := http.NewRequest("PATCH", urls, body)
15512	if err != nil {
15513		return nil, err
15514	}
15515	req.Header = reqHeaders
15516	googleapi.Expand(req.URL, map[string]string{
15517		"name": c.name,
15518	})
15519	return gensupport.SendRequest(c.ctx_, c.s.client, req)
15520}
15521
15522// Do executes the "apigee.organizations.apis.patch" call.
15523// Exactly one of *GoogleCloudApigeeV1ApiProxy or error will be non-nil.
15524// Any non-2xx status code is an error. Response headers are in either
15525// *GoogleCloudApigeeV1ApiProxy.ServerResponse.Header or (if a response
15526// was returned at all) in error.(*googleapi.Error).Header. Use
15527// googleapi.IsNotModified to check whether the returned error was
15528// because http.StatusNotModified was returned.
15529func (c *OrganizationsApisPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProxy, error) {
15530	gensupport.SetOptions(c.urlParams_, opts...)
15531	res, err := c.doRequest("json")
15532	if res != nil && res.StatusCode == http.StatusNotModified {
15533		if res.Body != nil {
15534			res.Body.Close()
15535		}
15536		return nil, &googleapi.Error{
15537			Code:   res.StatusCode,
15538			Header: res.Header,
15539		}
15540	}
15541	if err != nil {
15542		return nil, err
15543	}
15544	defer googleapi.CloseBody(res)
15545	if err := googleapi.CheckResponse(res); err != nil {
15546		return nil, err
15547	}
15548	ret := &GoogleCloudApigeeV1ApiProxy{
15549		ServerResponse: googleapi.ServerResponse{
15550			Header:         res.Header,
15551			HTTPStatusCode: res.StatusCode,
15552		},
15553	}
15554	target := &ret
15555	if err := gensupport.DecodeResponse(target, res); err != nil {
15556		return nil, err
15557	}
15558	return ret, nil
15559	// {
15560	//   "description": "Updates an existing API proxy.",
15561	//   "flatPath": "v1/organizations/{organizationsId}/apis/{apisId}",
15562	//   "httpMethod": "PATCH",
15563	//   "id": "apigee.organizations.apis.patch",
15564	//   "parameterOrder": [
15565	//     "name"
15566	//   ],
15567	//   "parameters": {
15568	//     "name": {
15569	//       "description": "Required. API proxy to update in the following format: `organizations/{org}/apis/{api}`",
15570	//       "location": "path",
15571	//       "pattern": "^organizations/[^/]+/apis/[^/]+$",
15572	//       "required": true,
15573	//       "type": "string"
15574	//     },
15575	//     "updateMask": {
15576	//       "description": "Required. The list of fields to update.",
15577	//       "format": "google-fieldmask",
15578	//       "location": "query",
15579	//       "type": "string"
15580	//     }
15581	//   },
15582	//   "path": "v1/{+name}",
15583	//   "request": {
15584	//     "$ref": "GoogleCloudApigeeV1ApiProxy"
15585	//   },
15586	//   "response": {
15587	//     "$ref": "GoogleCloudApigeeV1ApiProxy"
15588	//   },
15589	//   "scopes": [
15590	//     "https://www.googleapis.com/auth/cloud-platform"
15591	//   ]
15592	// }
15593
15594}
15595
15596// method id "apigee.organizations.apis.deployments.list":
15597
15598type OrganizationsApisDeploymentsListCall struct {
15599	s            *Service
15600	parent       string
15601	urlParams_   gensupport.URLParams
15602	ifNoneMatch_ string
15603	ctx_         context.Context
15604	header_      http.Header
15605}
15606
15607// List: Lists all deployments of an API proxy.
15608//
15609// - parent: Name of the API proxy for which to return deployment
15610//   information in the following format:
15611//   `organizations/{org}/apis/{api}`.
15612func (r *OrganizationsApisDeploymentsService) List(parent string) *OrganizationsApisDeploymentsListCall {
15613	c := &OrganizationsApisDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15614	c.parent = parent
15615	return c
15616}
15617
15618// Fields allows partial responses to be retrieved. See
15619// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
15620// for more information.
15621func (c *OrganizationsApisDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsApisDeploymentsListCall {
15622	c.urlParams_.Set("fields", googleapi.CombineFields(s))
15623	return c
15624}
15625
15626// IfNoneMatch sets the optional parameter which makes the operation
15627// fail if the object's ETag matches the given value. This is useful for
15628// getting updates only after the object has changed since the last
15629// request. Use googleapi.IsNotModified to check whether the response
15630// error from Do is the result of In-None-Match.
15631func (c *OrganizationsApisDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsApisDeploymentsListCall {
15632	c.ifNoneMatch_ = entityTag
15633	return c
15634}
15635
15636// Context sets the context to be used in this call's Do method. Any
15637// pending HTTP request will be aborted if the provided context is
15638// canceled.
15639func (c *OrganizationsApisDeploymentsListCall) Context(ctx context.Context) *OrganizationsApisDeploymentsListCall {
15640	c.ctx_ = ctx
15641	return c
15642}
15643
15644// Header returns an http.Header that can be modified by the caller to
15645// add HTTP headers to the request.
15646func (c *OrganizationsApisDeploymentsListCall) Header() http.Header {
15647	if c.header_ == nil {
15648		c.header_ = make(http.Header)
15649	}
15650	return c.header_
15651}
15652
15653func (c *OrganizationsApisDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
15654	reqHeaders := make(http.Header)
15655	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
15656	for k, v := range c.header_ {
15657		reqHeaders[k] = v
15658	}
15659	reqHeaders.Set("User-Agent", c.s.userAgent())
15660	if c.ifNoneMatch_ != "" {
15661		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
15662	}
15663	var body io.Reader = nil
15664	c.urlParams_.Set("alt", alt)
15665	c.urlParams_.Set("prettyPrint", "false")
15666	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
15667	urls += "?" + c.urlParams_.Encode()
15668	req, err := http.NewRequest("GET", urls, body)
15669	if err != nil {
15670		return nil, err
15671	}
15672	req.Header = reqHeaders
15673	googleapi.Expand(req.URL, map[string]string{
15674		"parent": c.parent,
15675	})
15676	return gensupport.SendRequest(c.ctx_, c.s.client, req)
15677}
15678
15679// Do executes the "apigee.organizations.apis.deployments.list" call.
15680// Exactly one of *GoogleCloudApigeeV1ListDeploymentsResponse or error
15681// will be non-nil. Any non-2xx status code is an error. Response
15682// headers are in either
15683// *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or
15684// (if a response was returned at all) in
15685// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
15686// whether the returned error was because http.StatusNotModified was
15687// returned.
15688func (c *OrganizationsApisDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
15689	gensupport.SetOptions(c.urlParams_, opts...)
15690	res, err := c.doRequest("json")
15691	if res != nil && res.StatusCode == http.StatusNotModified {
15692		if res.Body != nil {
15693			res.Body.Close()
15694		}
15695		return nil, &googleapi.Error{
15696			Code:   res.StatusCode,
15697			Header: res.Header,
15698		}
15699	}
15700	if err != nil {
15701		return nil, err
15702	}
15703	defer googleapi.CloseBody(res)
15704	if err := googleapi.CheckResponse(res); err != nil {
15705		return nil, err
15706	}
15707	ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
15708		ServerResponse: googleapi.ServerResponse{
15709			Header:         res.Header,
15710			HTTPStatusCode: res.StatusCode,
15711		},
15712	}
15713	target := &ret
15714	if err := gensupport.DecodeResponse(target, res); err != nil {
15715		return nil, err
15716	}
15717	return ret, nil
15718	// {
15719	//   "description": "Lists all deployments of an API proxy.",
15720	//   "flatPath": "v1/organizations/{organizationsId}/apis/{apisId}/deployments",
15721	//   "httpMethod": "GET",
15722	//   "id": "apigee.organizations.apis.deployments.list",
15723	//   "parameterOrder": [
15724	//     "parent"
15725	//   ],
15726	//   "parameters": {
15727	//     "parent": {
15728	//       "description": "Required. Name of the API proxy for which to return deployment information in the following format: `organizations/{org}/apis/{api}`",
15729	//       "location": "path",
15730	//       "pattern": "^organizations/[^/]+/apis/[^/]+$",
15731	//       "required": true,
15732	//       "type": "string"
15733	//     }
15734	//   },
15735	//   "path": "v1/{+parent}/deployments",
15736	//   "response": {
15737	//     "$ref": "GoogleCloudApigeeV1ListDeploymentsResponse"
15738	//   },
15739	//   "scopes": [
15740	//     "https://www.googleapis.com/auth/cloud-platform"
15741	//   ]
15742	// }
15743
15744}
15745
15746// method id "apigee.organizations.apis.keyvaluemaps.create":
15747
15748type OrganizationsApisKeyvaluemapsCreateCall struct {
15749	s                              *Service
15750	parent                         string
15751	googlecloudapigeev1keyvaluemap *GoogleCloudApigeeV1KeyValueMap
15752	urlParams_                     gensupport.URLParams
15753	ctx_                           context.Context
15754	header_                        http.Header
15755}
15756
15757// Create: Creates a key value map in an api proxy.
15758//
15759// - parent: The name of the environment in which to create the key
15760//   value map. Must be of the form
15761//   `organizations/{organization}/apis/{api}`.
15762func (r *OrganizationsApisKeyvaluemapsService) Create(parent string, googlecloudapigeev1keyvaluemap *GoogleCloudApigeeV1KeyValueMap) *OrganizationsApisKeyvaluemapsCreateCall {
15763	c := &OrganizationsApisKeyvaluemapsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15764	c.parent = parent
15765	c.googlecloudapigeev1keyvaluemap = googlecloudapigeev1keyvaluemap
15766	return c
15767}
15768
15769// Fields allows partial responses to be retrieved. See
15770// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
15771// for more information.
15772func (c *OrganizationsApisKeyvaluemapsCreateCall) Fields(s ...googleapi.Field) *OrganizationsApisKeyvaluemapsCreateCall {
15773	c.urlParams_.Set("fields", googleapi.CombineFields(s))
15774	return c
15775}
15776
15777// Context sets the context to be used in this call's Do method. Any
15778// pending HTTP request will be aborted if the provided context is
15779// canceled.
15780func (c *OrganizationsApisKeyvaluemapsCreateCall) Context(ctx context.Context) *OrganizationsApisKeyvaluemapsCreateCall {
15781	c.ctx_ = ctx
15782	return c
15783}
15784
15785// Header returns an http.Header that can be modified by the caller to
15786// add HTTP headers to the request.
15787func (c *OrganizationsApisKeyvaluemapsCreateCall) Header() http.Header {
15788	if c.header_ == nil {
15789		c.header_ = make(http.Header)
15790	}
15791	return c.header_
15792}
15793
15794func (c *OrganizationsApisKeyvaluemapsCreateCall) doRequest(alt string) (*http.Response, error) {
15795	reqHeaders := make(http.Header)
15796	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
15797	for k, v := range c.header_ {
15798		reqHeaders[k] = v
15799	}
15800	reqHeaders.Set("User-Agent", c.s.userAgent())
15801	var body io.Reader = nil
15802	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1keyvaluemap)
15803	if err != nil {
15804		return nil, err
15805	}
15806	reqHeaders.Set("Content-Type", "application/json")
15807	c.urlParams_.Set("alt", alt)
15808	c.urlParams_.Set("prettyPrint", "false")
15809	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keyvaluemaps")
15810	urls += "?" + c.urlParams_.Encode()
15811	req, err := http.NewRequest("POST", urls, body)
15812	if err != nil {
15813		return nil, err
15814	}
15815	req.Header = reqHeaders
15816	googleapi.Expand(req.URL, map[string]string{
15817		"parent": c.parent,
15818	})
15819	return gensupport.SendRequest(c.ctx_, c.s.client, req)
15820}
15821
15822// Do executes the "apigee.organizations.apis.keyvaluemaps.create" call.
15823// Exactly one of *GoogleCloudApigeeV1KeyValueMap or error will be
15824// non-nil. Any non-2xx status code is an error. Response headers are in
15825// either *GoogleCloudApigeeV1KeyValueMap.ServerResponse.Header or (if a
15826// response was returned at all) in error.(*googleapi.Error).Header. Use
15827// googleapi.IsNotModified to check whether the returned error was
15828// because http.StatusNotModified was returned.
15829func (c *OrganizationsApisKeyvaluemapsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueMap, error) {
15830	gensupport.SetOptions(c.urlParams_, opts...)
15831	res, err := c.doRequest("json")
15832	if res != nil && res.StatusCode == http.StatusNotModified {
15833		if res.Body != nil {
15834			res.Body.Close()
15835		}
15836		return nil, &googleapi.Error{
15837			Code:   res.StatusCode,
15838			Header: res.Header,
15839		}
15840	}
15841	if err != nil {
15842		return nil, err
15843	}
15844	defer googleapi.CloseBody(res)
15845	if err := googleapi.CheckResponse(res); err != nil {
15846		return nil, err
15847	}
15848	ret := &GoogleCloudApigeeV1KeyValueMap{
15849		ServerResponse: googleapi.ServerResponse{
15850			Header:         res.Header,
15851			HTTPStatusCode: res.StatusCode,
15852		},
15853	}
15854	target := &ret
15855	if err := gensupport.DecodeResponse(target, res); err != nil {
15856		return nil, err
15857	}
15858	return ret, nil
15859	// {
15860	//   "description": "Creates a key value map in an api proxy.",
15861	//   "flatPath": "v1/organizations/{organizationsId}/apis/{apisId}/keyvaluemaps",
15862	//   "httpMethod": "POST",
15863	//   "id": "apigee.organizations.apis.keyvaluemaps.create",
15864	//   "parameterOrder": [
15865	//     "parent"
15866	//   ],
15867	//   "parameters": {
15868	//     "parent": {
15869	//       "description": "Required. The name of the environment in which to create the key value map. Must be of the form `organizations/{organization}/apis/{api}`.",
15870	//       "location": "path",
15871	//       "pattern": "^organizations/[^/]+/apis/[^/]+$",
15872	//       "required": true,
15873	//       "type": "string"
15874	//     }
15875	//   },
15876	//   "path": "v1/{+parent}/keyvaluemaps",
15877	//   "request": {
15878	//     "$ref": "GoogleCloudApigeeV1KeyValueMap"
15879	//   },
15880	//   "response": {
15881	//     "$ref": "GoogleCloudApigeeV1KeyValueMap"
15882	//   },
15883	//   "scopes": [
15884	//     "https://www.googleapis.com/auth/cloud-platform"
15885	//   ]
15886	// }
15887
15888}
15889
15890// method id "apigee.organizations.apis.keyvaluemaps.delete":
15891
15892type OrganizationsApisKeyvaluemapsDeleteCall struct {
15893	s          *Service
15894	name       string
15895	urlParams_ gensupport.URLParams
15896	ctx_       context.Context
15897	header_    http.Header
15898}
15899
15900// Delete: Delete a key value map in an api proxy.
15901//
15902// - name: The name of the key value map. Must be of the form
15903//   `organizations/{organization}/apis/{api}/keyvaluemaps/{keyvaluemap}`
15904//   .
15905func (r *OrganizationsApisKeyvaluemapsService) Delete(name string) *OrganizationsApisKeyvaluemapsDeleteCall {
15906	c := &OrganizationsApisKeyvaluemapsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15907	c.name = name
15908	return c
15909}
15910
15911// Fields allows partial responses to be retrieved. See
15912// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
15913// for more information.
15914func (c *OrganizationsApisKeyvaluemapsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsApisKeyvaluemapsDeleteCall {
15915	c.urlParams_.Set("fields", googleapi.CombineFields(s))
15916	return c
15917}
15918
15919// Context sets the context to be used in this call's Do method. Any
15920// pending HTTP request will be aborted if the provided context is
15921// canceled.
15922func (c *OrganizationsApisKeyvaluemapsDeleteCall) Context(ctx context.Context) *OrganizationsApisKeyvaluemapsDeleteCall {
15923	c.ctx_ = ctx
15924	return c
15925}
15926
15927// Header returns an http.Header that can be modified by the caller to
15928// add HTTP headers to the request.
15929func (c *OrganizationsApisKeyvaluemapsDeleteCall) Header() http.Header {
15930	if c.header_ == nil {
15931		c.header_ = make(http.Header)
15932	}
15933	return c.header_
15934}
15935
15936func (c *OrganizationsApisKeyvaluemapsDeleteCall) doRequest(alt string) (*http.Response, error) {
15937	reqHeaders := make(http.Header)
15938	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
15939	for k, v := range c.header_ {
15940		reqHeaders[k] = v
15941	}
15942	reqHeaders.Set("User-Agent", c.s.userAgent())
15943	var body io.Reader = nil
15944	c.urlParams_.Set("alt", alt)
15945	c.urlParams_.Set("prettyPrint", "false")
15946	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
15947	urls += "?" + c.urlParams_.Encode()
15948	req, err := http.NewRequest("DELETE", urls, body)
15949	if err != nil {
15950		return nil, err
15951	}
15952	req.Header = reqHeaders
15953	googleapi.Expand(req.URL, map[string]string{
15954		"name": c.name,
15955	})
15956	return gensupport.SendRequest(c.ctx_, c.s.client, req)
15957}
15958
15959// Do executes the "apigee.organizations.apis.keyvaluemaps.delete" call.
15960// Exactly one of *GoogleCloudApigeeV1KeyValueMap or error will be
15961// non-nil. Any non-2xx status code is an error. Response headers are in
15962// either *GoogleCloudApigeeV1KeyValueMap.ServerResponse.Header or (if a
15963// response was returned at all) in error.(*googleapi.Error).Header. Use
15964// googleapi.IsNotModified to check whether the returned error was
15965// because http.StatusNotModified was returned.
15966func (c *OrganizationsApisKeyvaluemapsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueMap, error) {
15967	gensupport.SetOptions(c.urlParams_, opts...)
15968	res, err := c.doRequest("json")
15969	if res != nil && res.StatusCode == http.StatusNotModified {
15970		if res.Body != nil {
15971			res.Body.Close()
15972		}
15973		return nil, &googleapi.Error{
15974			Code:   res.StatusCode,
15975			Header: res.Header,
15976		}
15977	}
15978	if err != nil {
15979		return nil, err
15980	}
15981	defer googleapi.CloseBody(res)
15982	if err := googleapi.CheckResponse(res); err != nil {
15983		return nil, err
15984	}
15985	ret := &GoogleCloudApigeeV1KeyValueMap{
15986		ServerResponse: googleapi.ServerResponse{
15987			Header:         res.Header,
15988			HTTPStatusCode: res.StatusCode,
15989		},
15990	}
15991	target := &ret
15992	if err := gensupport.DecodeResponse(target, res); err != nil {
15993		return nil, err
15994	}
15995	return ret, nil
15996	// {
15997	//   "description": "Delete a key value map in an api proxy.",
15998	//   "flatPath": "v1/organizations/{organizationsId}/apis/{apisId}/keyvaluemaps/{keyvaluemapsId}",
15999	//   "httpMethod": "DELETE",
16000	//   "id": "apigee.organizations.apis.keyvaluemaps.delete",
16001	//   "parameterOrder": [
16002	//     "name"
16003	//   ],
16004	//   "parameters": {
16005	//     "name": {
16006	//       "description": "Required. The name of the key value map. Must be of the form `organizations/{organization}/apis/{api}/keyvaluemaps/{keyvaluemap}`.",
16007	//       "location": "path",
16008	//       "pattern": "^organizations/[^/]+/apis/[^/]+/keyvaluemaps/[^/]+$",
16009	//       "required": true,
16010	//       "type": "string"
16011	//     }
16012	//   },
16013	//   "path": "v1/{+name}",
16014	//   "response": {
16015	//     "$ref": "GoogleCloudApigeeV1KeyValueMap"
16016	//   },
16017	//   "scopes": [
16018	//     "https://www.googleapis.com/auth/cloud-platform"
16019	//   ]
16020	// }
16021
16022}
16023
16024// method id "apigee.organizations.apis.revisions.delete":
16025
16026type OrganizationsApisRevisionsDeleteCall struct {
16027	s          *Service
16028	name       string
16029	urlParams_ gensupport.URLParams
16030	ctx_       context.Context
16031	header_    http.Header
16032}
16033
16034// Delete: Deletes an API proxy revision and all policies, resources,
16035// endpoints, and revisions associated with it. The API proxy revision
16036// must be undeployed before you can delete it.
16037//
16038// - name: API proxy revision in the following format:
16039//   `organizations/{org}/apis/{api}/revisions/{rev}`.
16040func (r *OrganizationsApisRevisionsService) Delete(name string) *OrganizationsApisRevisionsDeleteCall {
16041	c := &OrganizationsApisRevisionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16042	c.name = name
16043	return c
16044}
16045
16046// Fields allows partial responses to be retrieved. See
16047// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
16048// for more information.
16049func (c *OrganizationsApisRevisionsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsApisRevisionsDeleteCall {
16050	c.urlParams_.Set("fields", googleapi.CombineFields(s))
16051	return c
16052}
16053
16054// Context sets the context to be used in this call's Do method. Any
16055// pending HTTP request will be aborted if the provided context is
16056// canceled.
16057func (c *OrganizationsApisRevisionsDeleteCall) Context(ctx context.Context) *OrganizationsApisRevisionsDeleteCall {
16058	c.ctx_ = ctx
16059	return c
16060}
16061
16062// Header returns an http.Header that can be modified by the caller to
16063// add HTTP headers to the request.
16064func (c *OrganizationsApisRevisionsDeleteCall) Header() http.Header {
16065	if c.header_ == nil {
16066		c.header_ = make(http.Header)
16067	}
16068	return c.header_
16069}
16070
16071func (c *OrganizationsApisRevisionsDeleteCall) doRequest(alt string) (*http.Response, error) {
16072	reqHeaders := make(http.Header)
16073	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
16074	for k, v := range c.header_ {
16075		reqHeaders[k] = v
16076	}
16077	reqHeaders.Set("User-Agent", c.s.userAgent())
16078	var body io.Reader = nil
16079	c.urlParams_.Set("alt", alt)
16080	c.urlParams_.Set("prettyPrint", "false")
16081	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
16082	urls += "?" + c.urlParams_.Encode()
16083	req, err := http.NewRequest("DELETE", urls, body)
16084	if err != nil {
16085		return nil, err
16086	}
16087	req.Header = reqHeaders
16088	googleapi.Expand(req.URL, map[string]string{
16089		"name": c.name,
16090	})
16091	return gensupport.SendRequest(c.ctx_, c.s.client, req)
16092}
16093
16094// Do executes the "apigee.organizations.apis.revisions.delete" call.
16095// Exactly one of *GoogleCloudApigeeV1ApiProxyRevision or error will be
16096// non-nil. Any non-2xx status code is an error. Response headers are in
16097// either *GoogleCloudApigeeV1ApiProxyRevision.ServerResponse.Header or
16098// (if a response was returned at all) in
16099// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
16100// whether the returned error was because http.StatusNotModified was
16101// returned.
16102func (c *OrganizationsApisRevisionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProxyRevision, error) {
16103	gensupport.SetOptions(c.urlParams_, opts...)
16104	res, err := c.doRequest("json")
16105	if res != nil && res.StatusCode == http.StatusNotModified {
16106		if res.Body != nil {
16107			res.Body.Close()
16108		}
16109		return nil, &googleapi.Error{
16110			Code:   res.StatusCode,
16111			Header: res.Header,
16112		}
16113	}
16114	if err != nil {
16115		return nil, err
16116	}
16117	defer googleapi.CloseBody(res)
16118	if err := googleapi.CheckResponse(res); err != nil {
16119		return nil, err
16120	}
16121	ret := &GoogleCloudApigeeV1ApiProxyRevision{
16122		ServerResponse: googleapi.ServerResponse{
16123			Header:         res.Header,
16124			HTTPStatusCode: res.StatusCode,
16125		},
16126	}
16127	target := &ret
16128	if err := gensupport.DecodeResponse(target, res); err != nil {
16129		return nil, err
16130	}
16131	return ret, nil
16132	// {
16133	//   "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.",
16134	//   "flatPath": "v1/organizations/{organizationsId}/apis/{apisId}/revisions/{revisionsId}",
16135	//   "httpMethod": "DELETE",
16136	//   "id": "apigee.organizations.apis.revisions.delete",
16137	//   "parameterOrder": [
16138	//     "name"
16139	//   ],
16140	//   "parameters": {
16141	//     "name": {
16142	//       "description": "Required. API proxy revision in the following format: `organizations/{org}/apis/{api}/revisions/{rev}`",
16143	//       "location": "path",
16144	//       "pattern": "^organizations/[^/]+/apis/[^/]+/revisions/[^/]+$",
16145	//       "required": true,
16146	//       "type": "string"
16147	//     }
16148	//   },
16149	//   "path": "v1/{+name}",
16150	//   "response": {
16151	//     "$ref": "GoogleCloudApigeeV1ApiProxyRevision"
16152	//   },
16153	//   "scopes": [
16154	//     "https://www.googleapis.com/auth/cloud-platform"
16155	//   ]
16156	// }
16157
16158}
16159
16160// method id "apigee.organizations.apis.revisions.get":
16161
16162type OrganizationsApisRevisionsGetCall struct {
16163	s            *Service
16164	name         string
16165	urlParams_   gensupport.URLParams
16166	ifNoneMatch_ string
16167	ctx_         context.Context
16168	header_      http.Header
16169}
16170
16171// Get: Gets an API proxy revision. To download the API proxy
16172// configuration bundle for the specified revision as a zip file, set
16173// the `format` query parameter to `bundle`. If you are using curl,
16174// specify `-o filename.zip` to save the output to a file; otherwise, it
16175// displays to `stdout`. Then, develop the API proxy configuration
16176// locally and upload the updated API proxy configuration revision, as
16177// described in updateApiProxyRevision (updateApiProxyRevision).
16178//
16179// - name: API proxy revision in the following format:
16180//   `organizations/{org}/apis/{api}/revisions/{rev}`.
16181func (r *OrganizationsApisRevisionsService) Get(name string) *OrganizationsApisRevisionsGetCall {
16182	c := &OrganizationsApisRevisionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16183	c.name = name
16184	return c
16185}
16186
16187// Format sets the optional parameter "format": Format used when
16188// downloading the API proxy configuration revision. Set to `bundle` to
16189// download the API proxy configuration revision as a zip file.
16190func (c *OrganizationsApisRevisionsGetCall) Format(format string) *OrganizationsApisRevisionsGetCall {
16191	c.urlParams_.Set("format", format)
16192	return c
16193}
16194
16195// Fields allows partial responses to be retrieved. See
16196// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
16197// for more information.
16198func (c *OrganizationsApisRevisionsGetCall) Fields(s ...googleapi.Field) *OrganizationsApisRevisionsGetCall {
16199	c.urlParams_.Set("fields", googleapi.CombineFields(s))
16200	return c
16201}
16202
16203// IfNoneMatch sets the optional parameter which makes the operation
16204// fail if the object's ETag matches the given value. This is useful for
16205// getting updates only after the object has changed since the last
16206// request. Use googleapi.IsNotModified to check whether the response
16207// error from Do is the result of In-None-Match.
16208func (c *OrganizationsApisRevisionsGetCall) IfNoneMatch(entityTag string) *OrganizationsApisRevisionsGetCall {
16209	c.ifNoneMatch_ = entityTag
16210	return c
16211}
16212
16213// Context sets the context to be used in this call's Do method. Any
16214// pending HTTP request will be aborted if the provided context is
16215// canceled.
16216func (c *OrganizationsApisRevisionsGetCall) Context(ctx context.Context) *OrganizationsApisRevisionsGetCall {
16217	c.ctx_ = ctx
16218	return c
16219}
16220
16221// Header returns an http.Header that can be modified by the caller to
16222// add HTTP headers to the request.
16223func (c *OrganizationsApisRevisionsGetCall) Header() http.Header {
16224	if c.header_ == nil {
16225		c.header_ = make(http.Header)
16226	}
16227	return c.header_
16228}
16229
16230func (c *OrganizationsApisRevisionsGetCall) doRequest(alt string) (*http.Response, error) {
16231	reqHeaders := make(http.Header)
16232	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
16233	for k, v := range c.header_ {
16234		reqHeaders[k] = v
16235	}
16236	reqHeaders.Set("User-Agent", c.s.userAgent())
16237	if c.ifNoneMatch_ != "" {
16238		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16239	}
16240	var body io.Reader = nil
16241	c.urlParams_.Set("alt", alt)
16242	c.urlParams_.Set("prettyPrint", "false")
16243	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
16244	urls += "?" + c.urlParams_.Encode()
16245	req, err := http.NewRequest("GET", urls, body)
16246	if err != nil {
16247		return nil, err
16248	}
16249	req.Header = reqHeaders
16250	googleapi.Expand(req.URL, map[string]string{
16251		"name": c.name,
16252	})
16253	return gensupport.SendRequest(c.ctx_, c.s.client, req)
16254}
16255
16256// Do executes the "apigee.organizations.apis.revisions.get" call.
16257// Exactly one of *GoogleApiHttpBody or error will be non-nil. Any
16258// non-2xx status code is an error. Response headers are in either
16259// *GoogleApiHttpBody.ServerResponse.Header or (if a response was
16260// returned at all) in error.(*googleapi.Error).Header. Use
16261// googleapi.IsNotModified to check whether the returned error was
16262// because http.StatusNotModified was returned.
16263func (c *OrganizationsApisRevisionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
16264	gensupport.SetOptions(c.urlParams_, opts...)
16265	res, err := c.doRequest("json")
16266	if res != nil && res.StatusCode == http.StatusNotModified {
16267		if res.Body != nil {
16268			res.Body.Close()
16269		}
16270		return nil, &googleapi.Error{
16271			Code:   res.StatusCode,
16272			Header: res.Header,
16273		}
16274	}
16275	if err != nil {
16276		return nil, err
16277	}
16278	defer googleapi.CloseBody(res)
16279	if err := googleapi.CheckResponse(res); err != nil {
16280		return nil, err
16281	}
16282	ret := &GoogleApiHttpBody{
16283		ServerResponse: googleapi.ServerResponse{
16284			Header:         res.Header,
16285			HTTPStatusCode: res.StatusCode,
16286		},
16287	}
16288	target := &ret
16289	if err := gensupport.DecodeResponse(target, res); err != nil {
16290		return nil, err
16291	}
16292	return ret, nil
16293	// {
16294	//   "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).",
16295	//   "flatPath": "v1/organizations/{organizationsId}/apis/{apisId}/revisions/{revisionsId}",
16296	//   "httpMethod": "GET",
16297	//   "id": "apigee.organizations.apis.revisions.get",
16298	//   "parameterOrder": [
16299	//     "name"
16300	//   ],
16301	//   "parameters": {
16302	//     "format": {
16303	//       "description": "Format used when downloading the API proxy configuration revision. Set to `bundle` to download the API proxy configuration revision as a zip file.",
16304	//       "location": "query",
16305	//       "type": "string"
16306	//     },
16307	//     "name": {
16308	//       "description": "Required. API proxy revision in the following format: `organizations/{org}/apis/{api}/revisions/{rev}`",
16309	//       "location": "path",
16310	//       "pattern": "^organizations/[^/]+/apis/[^/]+/revisions/[^/]+$",
16311	//       "required": true,
16312	//       "type": "string"
16313	//     }
16314	//   },
16315	//   "path": "v1/{+name}",
16316	//   "response": {
16317	//     "$ref": "GoogleApiHttpBody"
16318	//   },
16319	//   "scopes": [
16320	//     "https://www.googleapis.com/auth/cloud-platform"
16321	//   ]
16322	// }
16323
16324}
16325
16326// method id "apigee.organizations.apis.revisions.updateApiProxyRevision":
16327
16328type OrganizationsApisRevisionsUpdateApiProxyRevisionCall struct {
16329	s                 *Service
16330	name              string
16331	googleapihttpbody *GoogleApiHttpBody
16332	urlParams_        gensupport.URLParams
16333	ctx_              context.Context
16334	header_           http.Header
16335}
16336
16337// UpdateApiProxyRevision: Updates an existing API proxy revision by
16338// uploading the API proxy configuration bundle as a zip file from your
16339// local machine. You can update only API proxy revisions that have
16340// never been deployed. After deployment, an API proxy revision becomes
16341// immutable, even if it is undeployed. Set the `Content-Type` header to
16342// either `multipart/form-data` or `application/octet-stream`.
16343//
16344// - name: API proxy revision to update in the following format:
16345//   `organizations/{org}/apis/{api}/revisions/{rev}`.
16346func (r *OrganizationsApisRevisionsService) UpdateApiProxyRevision(name string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsApisRevisionsUpdateApiProxyRevisionCall {
16347	c := &OrganizationsApisRevisionsUpdateApiProxyRevisionCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16348	c.name = name
16349	c.googleapihttpbody = googleapihttpbody
16350	return c
16351}
16352
16353// Validate sets the optional parameter "validate": Ignored. All uploads
16354// are validated regardless of the value of this field. Maintained for
16355// compatibility with Apigee Edge API.
16356func (c *OrganizationsApisRevisionsUpdateApiProxyRevisionCall) Validate(validate bool) *OrganizationsApisRevisionsUpdateApiProxyRevisionCall {
16357	c.urlParams_.Set("validate", fmt.Sprint(validate))
16358	return c
16359}
16360
16361// Fields allows partial responses to be retrieved. See
16362// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
16363// for more information.
16364func (c *OrganizationsApisRevisionsUpdateApiProxyRevisionCall) Fields(s ...googleapi.Field) *OrganizationsApisRevisionsUpdateApiProxyRevisionCall {
16365	c.urlParams_.Set("fields", googleapi.CombineFields(s))
16366	return c
16367}
16368
16369// Context sets the context to be used in this call's Do method. Any
16370// pending HTTP request will be aborted if the provided context is
16371// canceled.
16372func (c *OrganizationsApisRevisionsUpdateApiProxyRevisionCall) Context(ctx context.Context) *OrganizationsApisRevisionsUpdateApiProxyRevisionCall {
16373	c.ctx_ = ctx
16374	return c
16375}
16376
16377// Header returns an http.Header that can be modified by the caller to
16378// add HTTP headers to the request.
16379func (c *OrganizationsApisRevisionsUpdateApiProxyRevisionCall) Header() http.Header {
16380	if c.header_ == nil {
16381		c.header_ = make(http.Header)
16382	}
16383	return c.header_
16384}
16385
16386func (c *OrganizationsApisRevisionsUpdateApiProxyRevisionCall) doRequest(alt string) (*http.Response, error) {
16387	reqHeaders := make(http.Header)
16388	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
16389	for k, v := range c.header_ {
16390		reqHeaders[k] = v
16391	}
16392	reqHeaders.Set("User-Agent", c.s.userAgent())
16393	var body io.Reader = nil
16394	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
16395	if err != nil {
16396		return nil, err
16397	}
16398	reqHeaders.Set("Content-Type", "application/json")
16399	c.urlParams_.Set("alt", alt)
16400	c.urlParams_.Set("prettyPrint", "false")
16401	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
16402	urls += "?" + c.urlParams_.Encode()
16403	req, err := http.NewRequest("POST", urls, body)
16404	if err != nil {
16405		return nil, err
16406	}
16407	req.Header = reqHeaders
16408	googleapi.Expand(req.URL, map[string]string{
16409		"name": c.name,
16410	})
16411	return gensupport.SendRequest(c.ctx_, c.s.client, req)
16412}
16413
16414// Do executes the "apigee.organizations.apis.revisions.updateApiProxyRevision" call.
16415// Exactly one of *GoogleCloudApigeeV1ApiProxyRevision or error will be
16416// non-nil. Any non-2xx status code is an error. Response headers are in
16417// either *GoogleCloudApigeeV1ApiProxyRevision.ServerResponse.Header or
16418// (if a response was returned at all) in
16419// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
16420// whether the returned error was because http.StatusNotModified was
16421// returned.
16422func (c *OrganizationsApisRevisionsUpdateApiProxyRevisionCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProxyRevision, error) {
16423	gensupport.SetOptions(c.urlParams_, opts...)
16424	res, err := c.doRequest("json")
16425	if res != nil && res.StatusCode == http.StatusNotModified {
16426		if res.Body != nil {
16427			res.Body.Close()
16428		}
16429		return nil, &googleapi.Error{
16430			Code:   res.StatusCode,
16431			Header: res.Header,
16432		}
16433	}
16434	if err != nil {
16435		return nil, err
16436	}
16437	defer googleapi.CloseBody(res)
16438	if err := googleapi.CheckResponse(res); err != nil {
16439		return nil, err
16440	}
16441	ret := &GoogleCloudApigeeV1ApiProxyRevision{
16442		ServerResponse: googleapi.ServerResponse{
16443			Header:         res.Header,
16444			HTTPStatusCode: res.StatusCode,
16445		},
16446	}
16447	target := &ret
16448	if err := gensupport.DecodeResponse(target, res); err != nil {
16449		return nil, err
16450	}
16451	return ret, nil
16452	// {
16453	//   "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`.",
16454	//   "flatPath": "v1/organizations/{organizationsId}/apis/{apisId}/revisions/{revisionsId}",
16455	//   "httpMethod": "POST",
16456	//   "id": "apigee.organizations.apis.revisions.updateApiProxyRevision",
16457	//   "parameterOrder": [
16458	//     "name"
16459	//   ],
16460	//   "parameters": {
16461	//     "name": {
16462	//       "description": "Required. API proxy revision to update in the following format: `organizations/{org}/apis/{api}/revisions/{rev}`",
16463	//       "location": "path",
16464	//       "pattern": "^organizations/[^/]+/apis/[^/]+/revisions/[^/]+$",
16465	//       "required": true,
16466	//       "type": "string"
16467	//     },
16468	//     "validate": {
16469	//       "description": "Ignored. All uploads are validated regardless of the value of this field. Maintained for compatibility with Apigee Edge API.",
16470	//       "location": "query",
16471	//       "type": "boolean"
16472	//     }
16473	//   },
16474	//   "path": "v1/{+name}",
16475	//   "request": {
16476	//     "$ref": "GoogleApiHttpBody"
16477	//   },
16478	//   "response": {
16479	//     "$ref": "GoogleCloudApigeeV1ApiProxyRevision"
16480	//   },
16481	//   "scopes": [
16482	//     "https://www.googleapis.com/auth/cloud-platform"
16483	//   ]
16484	// }
16485
16486}
16487
16488// method id "apigee.organizations.apis.revisions.deployments.list":
16489
16490type OrganizationsApisRevisionsDeploymentsListCall struct {
16491	s            *Service
16492	parent       string
16493	urlParams_   gensupport.URLParams
16494	ifNoneMatch_ string
16495	ctx_         context.Context
16496	header_      http.Header
16497}
16498
16499// List: Lists all deployments of an API proxy revision.
16500//
16501// - parent: Name of the API proxy revision for which to return
16502//   deployment information in the following format:
16503//   `organizations/{org}/apis/{api}/revisions/{rev}`.
16504func (r *OrganizationsApisRevisionsDeploymentsService) List(parent string) *OrganizationsApisRevisionsDeploymentsListCall {
16505	c := &OrganizationsApisRevisionsDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16506	c.parent = parent
16507	return c
16508}
16509
16510// Fields allows partial responses to be retrieved. See
16511// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
16512// for more information.
16513func (c *OrganizationsApisRevisionsDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsApisRevisionsDeploymentsListCall {
16514	c.urlParams_.Set("fields", googleapi.CombineFields(s))
16515	return c
16516}
16517
16518// IfNoneMatch sets the optional parameter which makes the operation
16519// fail if the object's ETag matches the given value. This is useful for
16520// getting updates only after the object has changed since the last
16521// request. Use googleapi.IsNotModified to check whether the response
16522// error from Do is the result of In-None-Match.
16523func (c *OrganizationsApisRevisionsDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsApisRevisionsDeploymentsListCall {
16524	c.ifNoneMatch_ = entityTag
16525	return c
16526}
16527
16528// Context sets the context to be used in this call's Do method. Any
16529// pending HTTP request will be aborted if the provided context is
16530// canceled.
16531func (c *OrganizationsApisRevisionsDeploymentsListCall) Context(ctx context.Context) *OrganizationsApisRevisionsDeploymentsListCall {
16532	c.ctx_ = ctx
16533	return c
16534}
16535
16536// Header returns an http.Header that can be modified by the caller to
16537// add HTTP headers to the request.
16538func (c *OrganizationsApisRevisionsDeploymentsListCall) Header() http.Header {
16539	if c.header_ == nil {
16540		c.header_ = make(http.Header)
16541	}
16542	return c.header_
16543}
16544
16545func (c *OrganizationsApisRevisionsDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
16546	reqHeaders := make(http.Header)
16547	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
16548	for k, v := range c.header_ {
16549		reqHeaders[k] = v
16550	}
16551	reqHeaders.Set("User-Agent", c.s.userAgent())
16552	if c.ifNoneMatch_ != "" {
16553		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16554	}
16555	var body io.Reader = nil
16556	c.urlParams_.Set("alt", alt)
16557	c.urlParams_.Set("prettyPrint", "false")
16558	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
16559	urls += "?" + c.urlParams_.Encode()
16560	req, err := http.NewRequest("GET", urls, body)
16561	if err != nil {
16562		return nil, err
16563	}
16564	req.Header = reqHeaders
16565	googleapi.Expand(req.URL, map[string]string{
16566		"parent": c.parent,
16567	})
16568	return gensupport.SendRequest(c.ctx_, c.s.client, req)
16569}
16570
16571// Do executes the "apigee.organizations.apis.revisions.deployments.list" call.
16572// Exactly one of *GoogleCloudApigeeV1ListDeploymentsResponse or error
16573// will be non-nil. Any non-2xx status code is an error. Response
16574// headers are in either
16575// *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or
16576// (if a response was returned at all) in
16577// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
16578// whether the returned error was because http.StatusNotModified was
16579// returned.
16580func (c *OrganizationsApisRevisionsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
16581	gensupport.SetOptions(c.urlParams_, opts...)
16582	res, err := c.doRequest("json")
16583	if res != nil && res.StatusCode == http.StatusNotModified {
16584		if res.Body != nil {
16585			res.Body.Close()
16586		}
16587		return nil, &googleapi.Error{
16588			Code:   res.StatusCode,
16589			Header: res.Header,
16590		}
16591	}
16592	if err != nil {
16593		return nil, err
16594	}
16595	defer googleapi.CloseBody(res)
16596	if err := googleapi.CheckResponse(res); err != nil {
16597		return nil, err
16598	}
16599	ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
16600		ServerResponse: googleapi.ServerResponse{
16601			Header:         res.Header,
16602			HTTPStatusCode: res.StatusCode,
16603		},
16604	}
16605	target := &ret
16606	if err := gensupport.DecodeResponse(target, res); err != nil {
16607		return nil, err
16608	}
16609	return ret, nil
16610	// {
16611	//   "description": "Lists all deployments of an API proxy revision.",
16612	//   "flatPath": "v1/organizations/{organizationsId}/apis/{apisId}/revisions/{revisionsId}/deployments",
16613	//   "httpMethod": "GET",
16614	//   "id": "apigee.organizations.apis.revisions.deployments.list",
16615	//   "parameterOrder": [
16616	//     "parent"
16617	//   ],
16618	//   "parameters": {
16619	//     "parent": {
16620	//       "description": "Required. Name of the API proxy revision for which to return deployment information in the following format: `organizations/{org}/apis/{api}/revisions/{rev}`.",
16621	//       "location": "path",
16622	//       "pattern": "^organizations/[^/]+/apis/[^/]+/revisions/[^/]+$",
16623	//       "required": true,
16624	//       "type": "string"
16625	//     }
16626	//   },
16627	//   "path": "v1/{+parent}/deployments",
16628	//   "response": {
16629	//     "$ref": "GoogleCloudApigeeV1ListDeploymentsResponse"
16630	//   },
16631	//   "scopes": [
16632	//     "https://www.googleapis.com/auth/cloud-platform"
16633	//   ]
16634	// }
16635
16636}
16637
16638// method id "apigee.organizations.apps.get":
16639
16640type OrganizationsAppsGetCall struct {
16641	s            *Service
16642	name         string
16643	urlParams_   gensupport.URLParams
16644	ifNoneMatch_ string
16645	ctx_         context.Context
16646	header_      http.Header
16647}
16648
16649// Get: Gets the app profile for the specified app ID.
16650//
16651// - name: App ID in the following format:
16652//   `organizations/{org}/apps/{app}`.
16653func (r *OrganizationsAppsService) Get(name string) *OrganizationsAppsGetCall {
16654	c := &OrganizationsAppsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16655	c.name = name
16656	return c
16657}
16658
16659// Fields allows partial responses to be retrieved. See
16660// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
16661// for more information.
16662func (c *OrganizationsAppsGetCall) Fields(s ...googleapi.Field) *OrganizationsAppsGetCall {
16663	c.urlParams_.Set("fields", googleapi.CombineFields(s))
16664	return c
16665}
16666
16667// IfNoneMatch sets the optional parameter which makes the operation
16668// fail if the object's ETag matches the given value. This is useful for
16669// getting updates only after the object has changed since the last
16670// request. Use googleapi.IsNotModified to check whether the response
16671// error from Do is the result of In-None-Match.
16672func (c *OrganizationsAppsGetCall) IfNoneMatch(entityTag string) *OrganizationsAppsGetCall {
16673	c.ifNoneMatch_ = entityTag
16674	return c
16675}
16676
16677// Context sets the context to be used in this call's Do method. Any
16678// pending HTTP request will be aborted if the provided context is
16679// canceled.
16680func (c *OrganizationsAppsGetCall) Context(ctx context.Context) *OrganizationsAppsGetCall {
16681	c.ctx_ = ctx
16682	return c
16683}
16684
16685// Header returns an http.Header that can be modified by the caller to
16686// add HTTP headers to the request.
16687func (c *OrganizationsAppsGetCall) Header() http.Header {
16688	if c.header_ == nil {
16689		c.header_ = make(http.Header)
16690	}
16691	return c.header_
16692}
16693
16694func (c *OrganizationsAppsGetCall) doRequest(alt string) (*http.Response, error) {
16695	reqHeaders := make(http.Header)
16696	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
16697	for k, v := range c.header_ {
16698		reqHeaders[k] = v
16699	}
16700	reqHeaders.Set("User-Agent", c.s.userAgent())
16701	if c.ifNoneMatch_ != "" {
16702		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16703	}
16704	var body io.Reader = nil
16705	c.urlParams_.Set("alt", alt)
16706	c.urlParams_.Set("prettyPrint", "false")
16707	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
16708	urls += "?" + c.urlParams_.Encode()
16709	req, err := http.NewRequest("GET", urls, body)
16710	if err != nil {
16711		return nil, err
16712	}
16713	req.Header = reqHeaders
16714	googleapi.Expand(req.URL, map[string]string{
16715		"name": c.name,
16716	})
16717	return gensupport.SendRequest(c.ctx_, c.s.client, req)
16718}
16719
16720// Do executes the "apigee.organizations.apps.get" call.
16721// Exactly one of *GoogleCloudApigeeV1App or error will be non-nil. Any
16722// non-2xx status code is an error. Response headers are in either
16723// *GoogleCloudApigeeV1App.ServerResponse.Header or (if a response was
16724// returned at all) in error.(*googleapi.Error).Header. Use
16725// googleapi.IsNotModified to check whether the returned error was
16726// because http.StatusNotModified was returned.
16727func (c *OrganizationsAppsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1App, error) {
16728	gensupport.SetOptions(c.urlParams_, opts...)
16729	res, err := c.doRequest("json")
16730	if res != nil && res.StatusCode == http.StatusNotModified {
16731		if res.Body != nil {
16732			res.Body.Close()
16733		}
16734		return nil, &googleapi.Error{
16735			Code:   res.StatusCode,
16736			Header: res.Header,
16737		}
16738	}
16739	if err != nil {
16740		return nil, err
16741	}
16742	defer googleapi.CloseBody(res)
16743	if err := googleapi.CheckResponse(res); err != nil {
16744		return nil, err
16745	}
16746	ret := &GoogleCloudApigeeV1App{
16747		ServerResponse: googleapi.ServerResponse{
16748			Header:         res.Header,
16749			HTTPStatusCode: res.StatusCode,
16750		},
16751	}
16752	target := &ret
16753	if err := gensupport.DecodeResponse(target, res); err != nil {
16754		return nil, err
16755	}
16756	return ret, nil
16757	// {
16758	//   "description": "Gets the app profile for the specified app ID.",
16759	//   "flatPath": "v1/organizations/{organizationsId}/apps/{appsId}",
16760	//   "httpMethod": "GET",
16761	//   "id": "apigee.organizations.apps.get",
16762	//   "parameterOrder": [
16763	//     "name"
16764	//   ],
16765	//   "parameters": {
16766	//     "name": {
16767	//       "description": "Required. App ID in the following format: `organizations/{org}/apps/{app}`",
16768	//       "location": "path",
16769	//       "pattern": "^organizations/[^/]+/apps/[^/]+$",
16770	//       "required": true,
16771	//       "type": "string"
16772	//     }
16773	//   },
16774	//   "path": "v1/{+name}",
16775	//   "response": {
16776	//     "$ref": "GoogleCloudApigeeV1App"
16777	//   },
16778	//   "scopes": [
16779	//     "https://www.googleapis.com/auth/cloud-platform"
16780	//   ]
16781	// }
16782
16783}
16784
16785// method id "apigee.organizations.apps.list":
16786
16787type OrganizationsAppsListCall struct {
16788	s            *Service
16789	parent       string
16790	urlParams_   gensupport.URLParams
16791	ifNoneMatch_ string
16792	ctx_         context.Context
16793	header_      http.Header
16794}
16795
16796// List: Lists IDs of apps within an organization that have the
16797// specified app status (approved or revoked) or are of the specified
16798// app type (developer or company).
16799//
16800// - parent: Resource path of the parent in the following format:
16801//   `organizations/{org}`.
16802func (r *OrganizationsAppsService) List(parent string) *OrganizationsAppsListCall {
16803	c := &OrganizationsAppsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16804	c.parent = parent
16805	return c
16806}
16807
16808// ApiProduct sets the optional parameter "apiProduct": API product.
16809func (c *OrganizationsAppsListCall) ApiProduct(apiProduct string) *OrganizationsAppsListCall {
16810	c.urlParams_.Set("apiProduct", apiProduct)
16811	return c
16812}
16813
16814// Apptype sets the optional parameter "apptype": Filter by the type of
16815// the app. Valid values are `company` or `developer`. Defaults to
16816// `developer`.
16817func (c *OrganizationsAppsListCall) Apptype(apptype string) *OrganizationsAppsListCall {
16818	c.urlParams_.Set("apptype", apptype)
16819	return c
16820}
16821
16822// Expand sets the optional parameter "expand": Flag that specifies
16823// whether to return an expanded list of apps for the organization.
16824// Defaults to `false`.
16825func (c *OrganizationsAppsListCall) Expand(expand bool) *OrganizationsAppsListCall {
16826	c.urlParams_.Set("expand", fmt.Sprint(expand))
16827	return c
16828}
16829
16830// Ids sets the optional parameter "ids": Comma-separated list of app
16831// IDs on which to filter.
16832func (c *OrganizationsAppsListCall) Ids(ids string) *OrganizationsAppsListCall {
16833	c.urlParams_.Set("ids", ids)
16834	return c
16835}
16836
16837// IncludeCred sets the optional parameter "includeCred": Flag that
16838// specifies whether to include credentials in the response.
16839func (c *OrganizationsAppsListCall) IncludeCred(includeCred bool) *OrganizationsAppsListCall {
16840	c.urlParams_.Set("includeCred", fmt.Sprint(includeCred))
16841	return c
16842}
16843
16844// KeyStatus sets the optional parameter "keyStatus": Key status of the
16845// app. Valid values include `approved` or `revoked`. Defaults to
16846// `approved`.
16847func (c *OrganizationsAppsListCall) KeyStatus(keyStatus string) *OrganizationsAppsListCall {
16848	c.urlParams_.Set("keyStatus", keyStatus)
16849	return c
16850}
16851
16852// Rows sets the optional parameter "rows": Maximum number of app IDs to
16853// return. Defaults to 10000.
16854func (c *OrganizationsAppsListCall) Rows(rows int64) *OrganizationsAppsListCall {
16855	c.urlParams_.Set("rows", fmt.Sprint(rows))
16856	return c
16857}
16858
16859// StartKey sets the optional parameter "startKey": Returns the list of
16860// apps starting from the specified app ID.
16861func (c *OrganizationsAppsListCall) StartKey(startKey string) *OrganizationsAppsListCall {
16862	c.urlParams_.Set("startKey", startKey)
16863	return c
16864}
16865
16866// Status sets the optional parameter "status": Filter by the status of
16867// the app. Valid values are `approved` or `revoked`. Defaults to
16868// `approved`.
16869func (c *OrganizationsAppsListCall) Status(status string) *OrganizationsAppsListCall {
16870	c.urlParams_.Set("status", status)
16871	return c
16872}
16873
16874// Fields allows partial responses to be retrieved. See
16875// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
16876// for more information.
16877func (c *OrganizationsAppsListCall) Fields(s ...googleapi.Field) *OrganizationsAppsListCall {
16878	c.urlParams_.Set("fields", googleapi.CombineFields(s))
16879	return c
16880}
16881
16882// IfNoneMatch sets the optional parameter which makes the operation
16883// fail if the object's ETag matches the given value. This is useful for
16884// getting updates only after the object has changed since the last
16885// request. Use googleapi.IsNotModified to check whether the response
16886// error from Do is the result of In-None-Match.
16887func (c *OrganizationsAppsListCall) IfNoneMatch(entityTag string) *OrganizationsAppsListCall {
16888	c.ifNoneMatch_ = entityTag
16889	return c
16890}
16891
16892// Context sets the context to be used in this call's Do method. Any
16893// pending HTTP request will be aborted if the provided context is
16894// canceled.
16895func (c *OrganizationsAppsListCall) Context(ctx context.Context) *OrganizationsAppsListCall {
16896	c.ctx_ = ctx
16897	return c
16898}
16899
16900// Header returns an http.Header that can be modified by the caller to
16901// add HTTP headers to the request.
16902func (c *OrganizationsAppsListCall) Header() http.Header {
16903	if c.header_ == nil {
16904		c.header_ = make(http.Header)
16905	}
16906	return c.header_
16907}
16908
16909func (c *OrganizationsAppsListCall) doRequest(alt string) (*http.Response, error) {
16910	reqHeaders := make(http.Header)
16911	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
16912	for k, v := range c.header_ {
16913		reqHeaders[k] = v
16914	}
16915	reqHeaders.Set("User-Agent", c.s.userAgent())
16916	if c.ifNoneMatch_ != "" {
16917		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16918	}
16919	var body io.Reader = nil
16920	c.urlParams_.Set("alt", alt)
16921	c.urlParams_.Set("prettyPrint", "false")
16922	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apps")
16923	urls += "?" + c.urlParams_.Encode()
16924	req, err := http.NewRequest("GET", urls, body)
16925	if err != nil {
16926		return nil, err
16927	}
16928	req.Header = reqHeaders
16929	googleapi.Expand(req.URL, map[string]string{
16930		"parent": c.parent,
16931	})
16932	return gensupport.SendRequest(c.ctx_, c.s.client, req)
16933}
16934
16935// Do executes the "apigee.organizations.apps.list" call.
16936// Exactly one of *GoogleCloudApigeeV1ListAppsResponse or error will be
16937// non-nil. Any non-2xx status code is an error. Response headers are in
16938// either *GoogleCloudApigeeV1ListAppsResponse.ServerResponse.Header or
16939// (if a response was returned at all) in
16940// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
16941// whether the returned error was because http.StatusNotModified was
16942// returned.
16943func (c *OrganizationsAppsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListAppsResponse, error) {
16944	gensupport.SetOptions(c.urlParams_, opts...)
16945	res, err := c.doRequest("json")
16946	if res != nil && res.StatusCode == http.StatusNotModified {
16947		if res.Body != nil {
16948			res.Body.Close()
16949		}
16950		return nil, &googleapi.Error{
16951			Code:   res.StatusCode,
16952			Header: res.Header,
16953		}
16954	}
16955	if err != nil {
16956		return nil, err
16957	}
16958	defer googleapi.CloseBody(res)
16959	if err := googleapi.CheckResponse(res); err != nil {
16960		return nil, err
16961	}
16962	ret := &GoogleCloudApigeeV1ListAppsResponse{
16963		ServerResponse: googleapi.ServerResponse{
16964			Header:         res.Header,
16965			HTTPStatusCode: res.StatusCode,
16966		},
16967	}
16968	target := &ret
16969	if err := gensupport.DecodeResponse(target, res); err != nil {
16970		return nil, err
16971	}
16972	return ret, nil
16973	// {
16974	//   "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).",
16975	//   "flatPath": "v1/organizations/{organizationsId}/apps",
16976	//   "httpMethod": "GET",
16977	//   "id": "apigee.organizations.apps.list",
16978	//   "parameterOrder": [
16979	//     "parent"
16980	//   ],
16981	//   "parameters": {
16982	//     "apiProduct": {
16983	//       "description": "API product.",
16984	//       "location": "query",
16985	//       "type": "string"
16986	//     },
16987	//     "apptype": {
16988	//       "description": "Optional. Filter by the type of the app. Valid values are `company` or `developer`. Defaults to `developer`.",
16989	//       "location": "query",
16990	//       "type": "string"
16991	//     },
16992	//     "expand": {
16993	//       "description": "Optional. Flag that specifies whether to return an expanded list of apps for the organization. Defaults to `false`.",
16994	//       "location": "query",
16995	//       "type": "boolean"
16996	//     },
16997	//     "ids": {
16998	//       "description": "Optional. Comma-separated list of app IDs on which to filter.",
16999	//       "location": "query",
17000	//       "type": "string"
17001	//     },
17002	//     "includeCred": {
17003	//       "description": "Optional. Flag that specifies whether to include credentials in the response.",
17004	//       "location": "query",
17005	//       "type": "boolean"
17006	//     },
17007	//     "keyStatus": {
17008	//       "description": "Optional. Key status of the app. Valid values include `approved` or `revoked`. Defaults to `approved`.",
17009	//       "location": "query",
17010	//       "type": "string"
17011	//     },
17012	//     "parent": {
17013	//       "description": "Required. Resource path of the parent in the following format: `organizations/{org}`",
17014	//       "location": "path",
17015	//       "pattern": "^organizations/[^/]+$",
17016	//       "required": true,
17017	//       "type": "string"
17018	//     },
17019	//     "rows": {
17020	//       "description": "Optional. Maximum number of app IDs to return. Defaults to 10000.",
17021	//       "format": "int64",
17022	//       "location": "query",
17023	//       "type": "string"
17024	//     },
17025	//     "startKey": {
17026	//       "description": "Returns the list of apps starting from the specified app ID.",
17027	//       "location": "query",
17028	//       "type": "string"
17029	//     },
17030	//     "status": {
17031	//       "description": "Optional. Filter by the status of the app. Valid values are `approved` or `revoked`. Defaults to `approved`.",
17032	//       "location": "query",
17033	//       "type": "string"
17034	//     }
17035	//   },
17036	//   "path": "v1/{+parent}/apps",
17037	//   "response": {
17038	//     "$ref": "GoogleCloudApigeeV1ListAppsResponse"
17039	//   },
17040	//   "scopes": [
17041	//     "https://www.googleapis.com/auth/cloud-platform"
17042	//   ]
17043	// }
17044
17045}
17046
17047// method id "apigee.organizations.datacollectors.create":
17048
17049type OrganizationsDatacollectorsCreateCall struct {
17050	s                                *Service
17051	parent                           string
17052	googlecloudapigeev1datacollector *GoogleCloudApigeeV1DataCollector
17053	urlParams_                       gensupport.URLParams
17054	ctx_                             context.Context
17055	header_                          http.Header
17056}
17057
17058// Create: Creates a new data collector.
17059//
17060// - parent: Name of the organization in which to create the data
17061//   collector in the following format: `organizations/{org}`.
17062func (r *OrganizationsDatacollectorsService) Create(parent string, googlecloudapigeev1datacollector *GoogleCloudApigeeV1DataCollector) *OrganizationsDatacollectorsCreateCall {
17063	c := &OrganizationsDatacollectorsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17064	c.parent = parent
17065	c.googlecloudapigeev1datacollector = googlecloudapigeev1datacollector
17066	return c
17067}
17068
17069// DataCollectorId sets the optional parameter "dataCollectorId": ID of
17070// the data collector. Overrides any ID in the data collector resource.
17071// Must begin with `dc_`.
17072func (c *OrganizationsDatacollectorsCreateCall) DataCollectorId(dataCollectorId string) *OrganizationsDatacollectorsCreateCall {
17073	c.urlParams_.Set("dataCollectorId", dataCollectorId)
17074	return c
17075}
17076
17077// Fields allows partial responses to be retrieved. See
17078// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
17079// for more information.
17080func (c *OrganizationsDatacollectorsCreateCall) Fields(s ...googleapi.Field) *OrganizationsDatacollectorsCreateCall {
17081	c.urlParams_.Set("fields", googleapi.CombineFields(s))
17082	return c
17083}
17084
17085// Context sets the context to be used in this call's Do method. Any
17086// pending HTTP request will be aborted if the provided context is
17087// canceled.
17088func (c *OrganizationsDatacollectorsCreateCall) Context(ctx context.Context) *OrganizationsDatacollectorsCreateCall {
17089	c.ctx_ = ctx
17090	return c
17091}
17092
17093// Header returns an http.Header that can be modified by the caller to
17094// add HTTP headers to the request.
17095func (c *OrganizationsDatacollectorsCreateCall) Header() http.Header {
17096	if c.header_ == nil {
17097		c.header_ = make(http.Header)
17098	}
17099	return c.header_
17100}
17101
17102func (c *OrganizationsDatacollectorsCreateCall) doRequest(alt string) (*http.Response, error) {
17103	reqHeaders := make(http.Header)
17104	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
17105	for k, v := range c.header_ {
17106		reqHeaders[k] = v
17107	}
17108	reqHeaders.Set("User-Agent", c.s.userAgent())
17109	var body io.Reader = nil
17110	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1datacollector)
17111	if err != nil {
17112		return nil, err
17113	}
17114	reqHeaders.Set("Content-Type", "application/json")
17115	c.urlParams_.Set("alt", alt)
17116	c.urlParams_.Set("prettyPrint", "false")
17117	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/datacollectors")
17118	urls += "?" + c.urlParams_.Encode()
17119	req, err := http.NewRequest("POST", urls, body)
17120	if err != nil {
17121		return nil, err
17122	}
17123	req.Header = reqHeaders
17124	googleapi.Expand(req.URL, map[string]string{
17125		"parent": c.parent,
17126	})
17127	return gensupport.SendRequest(c.ctx_, c.s.client, req)
17128}
17129
17130// Do executes the "apigee.organizations.datacollectors.create" call.
17131// Exactly one of *GoogleCloudApigeeV1DataCollector or error will be
17132// non-nil. Any non-2xx status code is an error. Response headers are in
17133// either *GoogleCloudApigeeV1DataCollector.ServerResponse.Header or (if
17134// a response was returned at all) in error.(*googleapi.Error).Header.
17135// Use googleapi.IsNotModified to check whether the returned error was
17136// because http.StatusNotModified was returned.
17137func (c *OrganizationsDatacollectorsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DataCollector, error) {
17138	gensupport.SetOptions(c.urlParams_, opts...)
17139	res, err := c.doRequest("json")
17140	if res != nil && res.StatusCode == http.StatusNotModified {
17141		if res.Body != nil {
17142			res.Body.Close()
17143		}
17144		return nil, &googleapi.Error{
17145			Code:   res.StatusCode,
17146			Header: res.Header,
17147		}
17148	}
17149	if err != nil {
17150		return nil, err
17151	}
17152	defer googleapi.CloseBody(res)
17153	if err := googleapi.CheckResponse(res); err != nil {
17154		return nil, err
17155	}
17156	ret := &GoogleCloudApigeeV1DataCollector{
17157		ServerResponse: googleapi.ServerResponse{
17158			Header:         res.Header,
17159			HTTPStatusCode: res.StatusCode,
17160		},
17161	}
17162	target := &ret
17163	if err := gensupport.DecodeResponse(target, res); err != nil {
17164		return nil, err
17165	}
17166	return ret, nil
17167	// {
17168	//   "description": "Creates a new data collector.",
17169	//   "flatPath": "v1/organizations/{organizationsId}/datacollectors",
17170	//   "httpMethod": "POST",
17171	//   "id": "apigee.organizations.datacollectors.create",
17172	//   "parameterOrder": [
17173	//     "parent"
17174	//   ],
17175	//   "parameters": {
17176	//     "dataCollectorId": {
17177	//       "description": "ID of the data collector. Overrides any ID in the data collector resource. Must begin with `dc_`.",
17178	//       "location": "query",
17179	//       "type": "string"
17180	//     },
17181	//     "parent": {
17182	//       "description": "Required. Name of the organization in which to create the data collector in the following format: `organizations/{org}`.",
17183	//       "location": "path",
17184	//       "pattern": "^organizations/[^/]+$",
17185	//       "required": true,
17186	//       "type": "string"
17187	//     }
17188	//   },
17189	//   "path": "v1/{+parent}/datacollectors",
17190	//   "request": {
17191	//     "$ref": "GoogleCloudApigeeV1DataCollector"
17192	//   },
17193	//   "response": {
17194	//     "$ref": "GoogleCloudApigeeV1DataCollector"
17195	//   },
17196	//   "scopes": [
17197	//     "https://www.googleapis.com/auth/cloud-platform"
17198	//   ]
17199	// }
17200
17201}
17202
17203// method id "apigee.organizations.datacollectors.delete":
17204
17205type OrganizationsDatacollectorsDeleteCall struct {
17206	s          *Service
17207	name       string
17208	urlParams_ gensupport.URLParams
17209	ctx_       context.Context
17210	header_    http.Header
17211}
17212
17213// Delete: Deletes a data collector.
17214//
17215// - name: Name of the data collector in the following format:
17216//   `organizations/{org}/datacollectors/{data_collector_id}`.
17217func (r *OrganizationsDatacollectorsService) Delete(name string) *OrganizationsDatacollectorsDeleteCall {
17218	c := &OrganizationsDatacollectorsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17219	c.name = name
17220	return c
17221}
17222
17223// Fields allows partial responses to be retrieved. See
17224// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
17225// for more information.
17226func (c *OrganizationsDatacollectorsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDatacollectorsDeleteCall {
17227	c.urlParams_.Set("fields", googleapi.CombineFields(s))
17228	return c
17229}
17230
17231// Context sets the context to be used in this call's Do method. Any
17232// pending HTTP request will be aborted if the provided context is
17233// canceled.
17234func (c *OrganizationsDatacollectorsDeleteCall) Context(ctx context.Context) *OrganizationsDatacollectorsDeleteCall {
17235	c.ctx_ = ctx
17236	return c
17237}
17238
17239// Header returns an http.Header that can be modified by the caller to
17240// add HTTP headers to the request.
17241func (c *OrganizationsDatacollectorsDeleteCall) Header() http.Header {
17242	if c.header_ == nil {
17243		c.header_ = make(http.Header)
17244	}
17245	return c.header_
17246}
17247
17248func (c *OrganizationsDatacollectorsDeleteCall) doRequest(alt string) (*http.Response, error) {
17249	reqHeaders := make(http.Header)
17250	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
17251	for k, v := range c.header_ {
17252		reqHeaders[k] = v
17253	}
17254	reqHeaders.Set("User-Agent", c.s.userAgent())
17255	var body io.Reader = nil
17256	c.urlParams_.Set("alt", alt)
17257	c.urlParams_.Set("prettyPrint", "false")
17258	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
17259	urls += "?" + c.urlParams_.Encode()
17260	req, err := http.NewRequest("DELETE", urls, body)
17261	if err != nil {
17262		return nil, err
17263	}
17264	req.Header = reqHeaders
17265	googleapi.Expand(req.URL, map[string]string{
17266		"name": c.name,
17267	})
17268	return gensupport.SendRequest(c.ctx_, c.s.client, req)
17269}
17270
17271// Do executes the "apigee.organizations.datacollectors.delete" call.
17272// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
17273// non-2xx status code is an error. Response headers are in either
17274// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
17275// returned at all) in error.(*googleapi.Error).Header. Use
17276// googleapi.IsNotModified to check whether the returned error was
17277// because http.StatusNotModified was returned.
17278func (c *OrganizationsDatacollectorsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
17279	gensupport.SetOptions(c.urlParams_, opts...)
17280	res, err := c.doRequest("json")
17281	if res != nil && res.StatusCode == http.StatusNotModified {
17282		if res.Body != nil {
17283			res.Body.Close()
17284		}
17285		return nil, &googleapi.Error{
17286			Code:   res.StatusCode,
17287			Header: res.Header,
17288		}
17289	}
17290	if err != nil {
17291		return nil, err
17292	}
17293	defer googleapi.CloseBody(res)
17294	if err := googleapi.CheckResponse(res); err != nil {
17295		return nil, err
17296	}
17297	ret := &GoogleProtobufEmpty{
17298		ServerResponse: googleapi.ServerResponse{
17299			Header:         res.Header,
17300			HTTPStatusCode: res.StatusCode,
17301		},
17302	}
17303	target := &ret
17304	if err := gensupport.DecodeResponse(target, res); err != nil {
17305		return nil, err
17306	}
17307	return ret, nil
17308	// {
17309	//   "description": "Deletes a data collector.",
17310	//   "flatPath": "v1/organizations/{organizationsId}/datacollectors/{datacollectorsId}",
17311	//   "httpMethod": "DELETE",
17312	//   "id": "apigee.organizations.datacollectors.delete",
17313	//   "parameterOrder": [
17314	//     "name"
17315	//   ],
17316	//   "parameters": {
17317	//     "name": {
17318	//       "description": "Required. Name of the data collector in the following format: `organizations/{org}/datacollectors/{data_collector_id}`.",
17319	//       "location": "path",
17320	//       "pattern": "^organizations/[^/]+/datacollectors/[^/]+$",
17321	//       "required": true,
17322	//       "type": "string"
17323	//     }
17324	//   },
17325	//   "path": "v1/{+name}",
17326	//   "response": {
17327	//     "$ref": "GoogleProtobufEmpty"
17328	//   },
17329	//   "scopes": [
17330	//     "https://www.googleapis.com/auth/cloud-platform"
17331	//   ]
17332	// }
17333
17334}
17335
17336// method id "apigee.organizations.datacollectors.get":
17337
17338type OrganizationsDatacollectorsGetCall struct {
17339	s            *Service
17340	name         string
17341	urlParams_   gensupport.URLParams
17342	ifNoneMatch_ string
17343	ctx_         context.Context
17344	header_      http.Header
17345}
17346
17347// Get: Gets a data collector.
17348//
17349// - name: Name of the data collector in the following format:
17350//   `organizations/{org}/datacollectors/{data_collector_id}`.
17351func (r *OrganizationsDatacollectorsService) Get(name string) *OrganizationsDatacollectorsGetCall {
17352	c := &OrganizationsDatacollectorsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17353	c.name = name
17354	return c
17355}
17356
17357// Fields allows partial responses to be retrieved. See
17358// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
17359// for more information.
17360func (c *OrganizationsDatacollectorsGetCall) Fields(s ...googleapi.Field) *OrganizationsDatacollectorsGetCall {
17361	c.urlParams_.Set("fields", googleapi.CombineFields(s))
17362	return c
17363}
17364
17365// IfNoneMatch sets the optional parameter which makes the operation
17366// fail if the object's ETag matches the given value. This is useful for
17367// getting updates only after the object has changed since the last
17368// request. Use googleapi.IsNotModified to check whether the response
17369// error from Do is the result of In-None-Match.
17370func (c *OrganizationsDatacollectorsGetCall) IfNoneMatch(entityTag string) *OrganizationsDatacollectorsGetCall {
17371	c.ifNoneMatch_ = entityTag
17372	return c
17373}
17374
17375// Context sets the context to be used in this call's Do method. Any
17376// pending HTTP request will be aborted if the provided context is
17377// canceled.
17378func (c *OrganizationsDatacollectorsGetCall) Context(ctx context.Context) *OrganizationsDatacollectorsGetCall {
17379	c.ctx_ = ctx
17380	return c
17381}
17382
17383// Header returns an http.Header that can be modified by the caller to
17384// add HTTP headers to the request.
17385func (c *OrganizationsDatacollectorsGetCall) Header() http.Header {
17386	if c.header_ == nil {
17387		c.header_ = make(http.Header)
17388	}
17389	return c.header_
17390}
17391
17392func (c *OrganizationsDatacollectorsGetCall) doRequest(alt string) (*http.Response, error) {
17393	reqHeaders := make(http.Header)
17394	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
17395	for k, v := range c.header_ {
17396		reqHeaders[k] = v
17397	}
17398	reqHeaders.Set("User-Agent", c.s.userAgent())
17399	if c.ifNoneMatch_ != "" {
17400		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
17401	}
17402	var body io.Reader = nil
17403	c.urlParams_.Set("alt", alt)
17404	c.urlParams_.Set("prettyPrint", "false")
17405	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
17406	urls += "?" + c.urlParams_.Encode()
17407	req, err := http.NewRequest("GET", urls, body)
17408	if err != nil {
17409		return nil, err
17410	}
17411	req.Header = reqHeaders
17412	googleapi.Expand(req.URL, map[string]string{
17413		"name": c.name,
17414	})
17415	return gensupport.SendRequest(c.ctx_, c.s.client, req)
17416}
17417
17418// Do executes the "apigee.organizations.datacollectors.get" call.
17419// Exactly one of *GoogleCloudApigeeV1DataCollector or error will be
17420// non-nil. Any non-2xx status code is an error. Response headers are in
17421// either *GoogleCloudApigeeV1DataCollector.ServerResponse.Header or (if
17422// a response was returned at all) in error.(*googleapi.Error).Header.
17423// Use googleapi.IsNotModified to check whether the returned error was
17424// because http.StatusNotModified was returned.
17425func (c *OrganizationsDatacollectorsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DataCollector, error) {
17426	gensupport.SetOptions(c.urlParams_, opts...)
17427	res, err := c.doRequest("json")
17428	if res != nil && res.StatusCode == http.StatusNotModified {
17429		if res.Body != nil {
17430			res.Body.Close()
17431		}
17432		return nil, &googleapi.Error{
17433			Code:   res.StatusCode,
17434			Header: res.Header,
17435		}
17436	}
17437	if err != nil {
17438		return nil, err
17439	}
17440	defer googleapi.CloseBody(res)
17441	if err := googleapi.CheckResponse(res); err != nil {
17442		return nil, err
17443	}
17444	ret := &GoogleCloudApigeeV1DataCollector{
17445		ServerResponse: googleapi.ServerResponse{
17446			Header:         res.Header,
17447			HTTPStatusCode: res.StatusCode,
17448		},
17449	}
17450	target := &ret
17451	if err := gensupport.DecodeResponse(target, res); err != nil {
17452		return nil, err
17453	}
17454	return ret, nil
17455	// {
17456	//   "description": "Gets a data collector.",
17457	//   "flatPath": "v1/organizations/{organizationsId}/datacollectors/{datacollectorsId}",
17458	//   "httpMethod": "GET",
17459	//   "id": "apigee.organizations.datacollectors.get",
17460	//   "parameterOrder": [
17461	//     "name"
17462	//   ],
17463	//   "parameters": {
17464	//     "name": {
17465	//       "description": "Required. Name of the data collector in the following format: `organizations/{org}/datacollectors/{data_collector_id}`.",
17466	//       "location": "path",
17467	//       "pattern": "^organizations/[^/]+/datacollectors/[^/]+$",
17468	//       "required": true,
17469	//       "type": "string"
17470	//     }
17471	//   },
17472	//   "path": "v1/{+name}",
17473	//   "response": {
17474	//     "$ref": "GoogleCloudApigeeV1DataCollector"
17475	//   },
17476	//   "scopes": [
17477	//     "https://www.googleapis.com/auth/cloud-platform"
17478	//   ]
17479	// }
17480
17481}
17482
17483// method id "apigee.organizations.datacollectors.list":
17484
17485type OrganizationsDatacollectorsListCall struct {
17486	s            *Service
17487	parent       string
17488	urlParams_   gensupport.URLParams
17489	ifNoneMatch_ string
17490	ctx_         context.Context
17491	header_      http.Header
17492}
17493
17494// List: Lists all data collectors.
17495//
17496// - parent: Name of the organization for which to list data collectors
17497//   in the following format: `organizations/{org}`.
17498func (r *OrganizationsDatacollectorsService) List(parent string) *OrganizationsDatacollectorsListCall {
17499	c := &OrganizationsDatacollectorsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17500	c.parent = parent
17501	return c
17502}
17503
17504// PageSize sets the optional parameter "pageSize": Maximum number of
17505// data collectors to return. The page size defaults to 25.
17506func (c *OrganizationsDatacollectorsListCall) PageSize(pageSize int64) *OrganizationsDatacollectorsListCall {
17507	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
17508	return c
17509}
17510
17511// PageToken sets the optional parameter "pageToken": Page token,
17512// returned from a previous ListDataCollectors call, that you can use to
17513// retrieve the next page.
17514func (c *OrganizationsDatacollectorsListCall) PageToken(pageToken string) *OrganizationsDatacollectorsListCall {
17515	c.urlParams_.Set("pageToken", pageToken)
17516	return c
17517}
17518
17519// Fields allows partial responses to be retrieved. See
17520// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
17521// for more information.
17522func (c *OrganizationsDatacollectorsListCall) Fields(s ...googleapi.Field) *OrganizationsDatacollectorsListCall {
17523	c.urlParams_.Set("fields", googleapi.CombineFields(s))
17524	return c
17525}
17526
17527// IfNoneMatch sets the optional parameter which makes the operation
17528// fail if the object's ETag matches the given value. This is useful for
17529// getting updates only after the object has changed since the last
17530// request. Use googleapi.IsNotModified to check whether the response
17531// error from Do is the result of In-None-Match.
17532func (c *OrganizationsDatacollectorsListCall) IfNoneMatch(entityTag string) *OrganizationsDatacollectorsListCall {
17533	c.ifNoneMatch_ = entityTag
17534	return c
17535}
17536
17537// Context sets the context to be used in this call's Do method. Any
17538// pending HTTP request will be aborted if the provided context is
17539// canceled.
17540func (c *OrganizationsDatacollectorsListCall) Context(ctx context.Context) *OrganizationsDatacollectorsListCall {
17541	c.ctx_ = ctx
17542	return c
17543}
17544
17545// Header returns an http.Header that can be modified by the caller to
17546// add HTTP headers to the request.
17547func (c *OrganizationsDatacollectorsListCall) Header() http.Header {
17548	if c.header_ == nil {
17549		c.header_ = make(http.Header)
17550	}
17551	return c.header_
17552}
17553
17554func (c *OrganizationsDatacollectorsListCall) doRequest(alt string) (*http.Response, error) {
17555	reqHeaders := make(http.Header)
17556	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
17557	for k, v := range c.header_ {
17558		reqHeaders[k] = v
17559	}
17560	reqHeaders.Set("User-Agent", c.s.userAgent())
17561	if c.ifNoneMatch_ != "" {
17562		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
17563	}
17564	var body io.Reader = nil
17565	c.urlParams_.Set("alt", alt)
17566	c.urlParams_.Set("prettyPrint", "false")
17567	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/datacollectors")
17568	urls += "?" + c.urlParams_.Encode()
17569	req, err := http.NewRequest("GET", urls, body)
17570	if err != nil {
17571		return nil, err
17572	}
17573	req.Header = reqHeaders
17574	googleapi.Expand(req.URL, map[string]string{
17575		"parent": c.parent,
17576	})
17577	return gensupport.SendRequest(c.ctx_, c.s.client, req)
17578}
17579
17580// Do executes the "apigee.organizations.datacollectors.list" call.
17581// Exactly one of *GoogleCloudApigeeV1ListDataCollectorsResponse or
17582// error will be non-nil. Any non-2xx status code is an error. Response
17583// headers are in either
17584// *GoogleCloudApigeeV1ListDataCollectorsResponse.ServerResponse.Header
17585// or (if a response was returned at all) in
17586// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
17587// whether the returned error was because http.StatusNotModified was
17588// returned.
17589func (c *OrganizationsDatacollectorsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDataCollectorsResponse, error) {
17590	gensupport.SetOptions(c.urlParams_, opts...)
17591	res, err := c.doRequest("json")
17592	if res != nil && res.StatusCode == http.StatusNotModified {
17593		if res.Body != nil {
17594			res.Body.Close()
17595		}
17596		return nil, &googleapi.Error{
17597			Code:   res.StatusCode,
17598			Header: res.Header,
17599		}
17600	}
17601	if err != nil {
17602		return nil, err
17603	}
17604	defer googleapi.CloseBody(res)
17605	if err := googleapi.CheckResponse(res); err != nil {
17606		return nil, err
17607	}
17608	ret := &GoogleCloudApigeeV1ListDataCollectorsResponse{
17609		ServerResponse: googleapi.ServerResponse{
17610			Header:         res.Header,
17611			HTTPStatusCode: res.StatusCode,
17612		},
17613	}
17614	target := &ret
17615	if err := gensupport.DecodeResponse(target, res); err != nil {
17616		return nil, err
17617	}
17618	return ret, nil
17619	// {
17620	//   "description": "Lists all data collectors.",
17621	//   "flatPath": "v1/organizations/{organizationsId}/datacollectors",
17622	//   "httpMethod": "GET",
17623	//   "id": "apigee.organizations.datacollectors.list",
17624	//   "parameterOrder": [
17625	//     "parent"
17626	//   ],
17627	//   "parameters": {
17628	//     "pageSize": {
17629	//       "description": "Maximum number of data collectors to return. The page size defaults to 25.",
17630	//       "format": "int32",
17631	//       "location": "query",
17632	//       "type": "integer"
17633	//     },
17634	//     "pageToken": {
17635	//       "description": "Page token, returned from a previous ListDataCollectors call, that you can use to retrieve the next page.",
17636	//       "location": "query",
17637	//       "type": "string"
17638	//     },
17639	//     "parent": {
17640	//       "description": "Required. Name of the organization for which to list data collectors in the following format: `organizations/{org}`.",
17641	//       "location": "path",
17642	//       "pattern": "^organizations/[^/]+$",
17643	//       "required": true,
17644	//       "type": "string"
17645	//     }
17646	//   },
17647	//   "path": "v1/{+parent}/datacollectors",
17648	//   "response": {
17649	//     "$ref": "GoogleCloudApigeeV1ListDataCollectorsResponse"
17650	//   },
17651	//   "scopes": [
17652	//     "https://www.googleapis.com/auth/cloud-platform"
17653	//   ]
17654	// }
17655
17656}
17657
17658// Pages invokes f for each page of results.
17659// A non-nil error returned from f will halt the iteration.
17660// The provided context supersedes any context provided to the Context method.
17661func (c *OrganizationsDatacollectorsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListDataCollectorsResponse) error) error {
17662	c.ctx_ = ctx
17663	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
17664	for {
17665		x, err := c.Do()
17666		if err != nil {
17667			return err
17668		}
17669		if err := f(x); err != nil {
17670			return err
17671		}
17672		if x.NextPageToken == "" {
17673			return nil
17674		}
17675		c.PageToken(x.NextPageToken)
17676	}
17677}
17678
17679// method id "apigee.organizations.datacollectors.patch":
17680
17681type OrganizationsDatacollectorsPatchCall struct {
17682	s                                *Service
17683	name                             string
17684	googlecloudapigeev1datacollector *GoogleCloudApigeeV1DataCollector
17685	urlParams_                       gensupport.URLParams
17686	ctx_                             context.Context
17687	header_                          http.Header
17688}
17689
17690// Patch: Updates a data collector.
17691//
17692// - name: Name of the data collector in the following format:
17693//   `organizations/{org}/datacollectors/{data_collector_id}`.
17694func (r *OrganizationsDatacollectorsService) Patch(name string, googlecloudapigeev1datacollector *GoogleCloudApigeeV1DataCollector) *OrganizationsDatacollectorsPatchCall {
17695	c := &OrganizationsDatacollectorsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17696	c.name = name
17697	c.googlecloudapigeev1datacollector = googlecloudapigeev1datacollector
17698	return c
17699}
17700
17701// UpdateMask sets the optional parameter "updateMask": List of fields
17702// to be updated.
17703func (c *OrganizationsDatacollectorsPatchCall) UpdateMask(updateMask string) *OrganizationsDatacollectorsPatchCall {
17704	c.urlParams_.Set("updateMask", updateMask)
17705	return c
17706}
17707
17708// Fields allows partial responses to be retrieved. See
17709// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
17710// for more information.
17711func (c *OrganizationsDatacollectorsPatchCall) Fields(s ...googleapi.Field) *OrganizationsDatacollectorsPatchCall {
17712	c.urlParams_.Set("fields", googleapi.CombineFields(s))
17713	return c
17714}
17715
17716// Context sets the context to be used in this call's Do method. Any
17717// pending HTTP request will be aborted if the provided context is
17718// canceled.
17719func (c *OrganizationsDatacollectorsPatchCall) Context(ctx context.Context) *OrganizationsDatacollectorsPatchCall {
17720	c.ctx_ = ctx
17721	return c
17722}
17723
17724// Header returns an http.Header that can be modified by the caller to
17725// add HTTP headers to the request.
17726func (c *OrganizationsDatacollectorsPatchCall) Header() http.Header {
17727	if c.header_ == nil {
17728		c.header_ = make(http.Header)
17729	}
17730	return c.header_
17731}
17732
17733func (c *OrganizationsDatacollectorsPatchCall) doRequest(alt string) (*http.Response, error) {
17734	reqHeaders := make(http.Header)
17735	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
17736	for k, v := range c.header_ {
17737		reqHeaders[k] = v
17738	}
17739	reqHeaders.Set("User-Agent", c.s.userAgent())
17740	var body io.Reader = nil
17741	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1datacollector)
17742	if err != nil {
17743		return nil, err
17744	}
17745	reqHeaders.Set("Content-Type", "application/json")
17746	c.urlParams_.Set("alt", alt)
17747	c.urlParams_.Set("prettyPrint", "false")
17748	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
17749	urls += "?" + c.urlParams_.Encode()
17750	req, err := http.NewRequest("PATCH", urls, body)
17751	if err != nil {
17752		return nil, err
17753	}
17754	req.Header = reqHeaders
17755	googleapi.Expand(req.URL, map[string]string{
17756		"name": c.name,
17757	})
17758	return gensupport.SendRequest(c.ctx_, c.s.client, req)
17759}
17760
17761// Do executes the "apigee.organizations.datacollectors.patch" call.
17762// Exactly one of *GoogleCloudApigeeV1DataCollector or error will be
17763// non-nil. Any non-2xx status code is an error. Response headers are in
17764// either *GoogleCloudApigeeV1DataCollector.ServerResponse.Header or (if
17765// a response was returned at all) in error.(*googleapi.Error).Header.
17766// Use googleapi.IsNotModified to check whether the returned error was
17767// because http.StatusNotModified was returned.
17768func (c *OrganizationsDatacollectorsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DataCollector, error) {
17769	gensupport.SetOptions(c.urlParams_, opts...)
17770	res, err := c.doRequest("json")
17771	if res != nil && res.StatusCode == http.StatusNotModified {
17772		if res.Body != nil {
17773			res.Body.Close()
17774		}
17775		return nil, &googleapi.Error{
17776			Code:   res.StatusCode,
17777			Header: res.Header,
17778		}
17779	}
17780	if err != nil {
17781		return nil, err
17782	}
17783	defer googleapi.CloseBody(res)
17784	if err := googleapi.CheckResponse(res); err != nil {
17785		return nil, err
17786	}
17787	ret := &GoogleCloudApigeeV1DataCollector{
17788		ServerResponse: googleapi.ServerResponse{
17789			Header:         res.Header,
17790			HTTPStatusCode: res.StatusCode,
17791		},
17792	}
17793	target := &ret
17794	if err := gensupport.DecodeResponse(target, res); err != nil {
17795		return nil, err
17796	}
17797	return ret, nil
17798	// {
17799	//   "description": "Updates a data collector.",
17800	//   "flatPath": "v1/organizations/{organizationsId}/datacollectors/{datacollectorsId}",
17801	//   "httpMethod": "PATCH",
17802	//   "id": "apigee.organizations.datacollectors.patch",
17803	//   "parameterOrder": [
17804	//     "name"
17805	//   ],
17806	//   "parameters": {
17807	//     "name": {
17808	//       "description": "Required. Name of the data collector in the following format: `organizations/{org}/datacollectors/{data_collector_id}`.",
17809	//       "location": "path",
17810	//       "pattern": "^organizations/[^/]+/datacollectors/[^/]+$",
17811	//       "required": true,
17812	//       "type": "string"
17813	//     },
17814	//     "updateMask": {
17815	//       "description": "List of fields to be updated.",
17816	//       "format": "google-fieldmask",
17817	//       "location": "query",
17818	//       "type": "string"
17819	//     }
17820	//   },
17821	//   "path": "v1/{+name}",
17822	//   "request": {
17823	//     "$ref": "GoogleCloudApigeeV1DataCollector"
17824	//   },
17825	//   "response": {
17826	//     "$ref": "GoogleCloudApigeeV1DataCollector"
17827	//   },
17828	//   "scopes": [
17829	//     "https://www.googleapis.com/auth/cloud-platform"
17830	//   ]
17831	// }
17832
17833}
17834
17835// method id "apigee.organizations.deployments.list":
17836
17837type OrganizationsDeploymentsListCall struct {
17838	s            *Service
17839	parent       string
17840	urlParams_   gensupport.URLParams
17841	ifNoneMatch_ string
17842	ctx_         context.Context
17843	header_      http.Header
17844}
17845
17846// List: Lists all deployments of API proxies or shared flows.
17847//
17848// - parent: Name of the organization for which to return deployment
17849//   information in the following format: `organizations/{org}`.
17850func (r *OrganizationsDeploymentsService) List(parent string) *OrganizationsDeploymentsListCall {
17851	c := &OrganizationsDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17852	c.parent = parent
17853	return c
17854}
17855
17856// SharedFlows sets the optional parameter "sharedFlows": Flag that
17857// specifies whether to return shared flow or API proxy deployments. Set
17858// to `true` to return shared flow deployments; set to `false` to return
17859// API proxy deployments. Defaults to `false`.
17860func (c *OrganizationsDeploymentsListCall) SharedFlows(sharedFlows bool) *OrganizationsDeploymentsListCall {
17861	c.urlParams_.Set("sharedFlows", fmt.Sprint(sharedFlows))
17862	return c
17863}
17864
17865// Fields allows partial responses to be retrieved. See
17866// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
17867// for more information.
17868func (c *OrganizationsDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsDeploymentsListCall {
17869	c.urlParams_.Set("fields", googleapi.CombineFields(s))
17870	return c
17871}
17872
17873// IfNoneMatch sets the optional parameter which makes the operation
17874// fail if the object's ETag matches the given value. This is useful for
17875// getting updates only after the object has changed since the last
17876// request. Use googleapi.IsNotModified to check whether the response
17877// error from Do is the result of In-None-Match.
17878func (c *OrganizationsDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsDeploymentsListCall {
17879	c.ifNoneMatch_ = entityTag
17880	return c
17881}
17882
17883// Context sets the context to be used in this call's Do method. Any
17884// pending HTTP request will be aborted if the provided context is
17885// canceled.
17886func (c *OrganizationsDeploymentsListCall) Context(ctx context.Context) *OrganizationsDeploymentsListCall {
17887	c.ctx_ = ctx
17888	return c
17889}
17890
17891// Header returns an http.Header that can be modified by the caller to
17892// add HTTP headers to the request.
17893func (c *OrganizationsDeploymentsListCall) Header() http.Header {
17894	if c.header_ == nil {
17895		c.header_ = make(http.Header)
17896	}
17897	return c.header_
17898}
17899
17900func (c *OrganizationsDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
17901	reqHeaders := make(http.Header)
17902	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
17903	for k, v := range c.header_ {
17904		reqHeaders[k] = v
17905	}
17906	reqHeaders.Set("User-Agent", c.s.userAgent())
17907	if c.ifNoneMatch_ != "" {
17908		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
17909	}
17910	var body io.Reader = nil
17911	c.urlParams_.Set("alt", alt)
17912	c.urlParams_.Set("prettyPrint", "false")
17913	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
17914	urls += "?" + c.urlParams_.Encode()
17915	req, err := http.NewRequest("GET", urls, body)
17916	if err != nil {
17917		return nil, err
17918	}
17919	req.Header = reqHeaders
17920	googleapi.Expand(req.URL, map[string]string{
17921		"parent": c.parent,
17922	})
17923	return gensupport.SendRequest(c.ctx_, c.s.client, req)
17924}
17925
17926// Do executes the "apigee.organizations.deployments.list" call.
17927// Exactly one of *GoogleCloudApigeeV1ListDeploymentsResponse or error
17928// will be non-nil. Any non-2xx status code is an error. Response
17929// headers are in either
17930// *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or
17931// (if a response was returned at all) in
17932// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
17933// whether the returned error was because http.StatusNotModified was
17934// returned.
17935func (c *OrganizationsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
17936	gensupport.SetOptions(c.urlParams_, opts...)
17937	res, err := c.doRequest("json")
17938	if res != nil && res.StatusCode == http.StatusNotModified {
17939		if res.Body != nil {
17940			res.Body.Close()
17941		}
17942		return nil, &googleapi.Error{
17943			Code:   res.StatusCode,
17944			Header: res.Header,
17945		}
17946	}
17947	if err != nil {
17948		return nil, err
17949	}
17950	defer googleapi.CloseBody(res)
17951	if err := googleapi.CheckResponse(res); err != nil {
17952		return nil, err
17953	}
17954	ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
17955		ServerResponse: googleapi.ServerResponse{
17956			Header:         res.Header,
17957			HTTPStatusCode: res.StatusCode,
17958		},
17959	}
17960	target := &ret
17961	if err := gensupport.DecodeResponse(target, res); err != nil {
17962		return nil, err
17963	}
17964	return ret, nil
17965	// {
17966	//   "description": "Lists all deployments of API proxies or shared flows.",
17967	//   "flatPath": "v1/organizations/{organizationsId}/deployments",
17968	//   "httpMethod": "GET",
17969	//   "id": "apigee.organizations.deployments.list",
17970	//   "parameterOrder": [
17971	//     "parent"
17972	//   ],
17973	//   "parameters": {
17974	//     "parent": {
17975	//       "description": "Required. Name of the organization for which to return deployment information in the following format: `organizations/{org}`",
17976	//       "location": "path",
17977	//       "pattern": "^organizations/[^/]+$",
17978	//       "required": true,
17979	//       "type": "string"
17980	//     },
17981	//     "sharedFlows": {
17982	//       "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`.",
17983	//       "location": "query",
17984	//       "type": "boolean"
17985	//     }
17986	//   },
17987	//   "path": "v1/{+parent}/deployments",
17988	//   "response": {
17989	//     "$ref": "GoogleCloudApigeeV1ListDeploymentsResponse"
17990	//   },
17991	//   "scopes": [
17992	//     "https://www.googleapis.com/auth/cloud-platform"
17993	//   ]
17994	// }
17995
17996}
17997
17998// method id "apigee.organizations.developers.attributes":
17999
18000type OrganizationsDevelopersAttributesCall struct {
18001	s                             *Service
18002	parent                        string
18003	googlecloudapigeev1attributes *GoogleCloudApigeeV1Attributes
18004	urlParams_                    gensupport.URLParams
18005	ctx_                          context.Context
18006	header_                       http.Header
18007}
18008
18009// Attributes: Updates developer attributes. This API replaces the
18010// existing attributes with those specified in the request. Add new
18011// attributes, and include or exclude any existing attributes that you
18012// want to retain or remove, respectively. The custom attribute limit is
18013// 18. **Note**: OAuth access tokens and Key Management Service (KMS)
18014// entities (apps, developers, and API products) are cached for 180
18015// seconds (default). Any custom attributes associated with these
18016// entities are cached for at least 180 seconds after the entity is
18017// accessed at runtime. Therefore, an `ExpiresIn` element on the OAuthV2
18018// policy won't be able to expire an access token in less than 180
18019// seconds.
18020//
18021// - parent: Email address of the developer for which attributes are
18022//   being updated. Use the following structure in your request:
18023//   `organizations/{org}/developers/{developer_email}`.
18024func (r *OrganizationsDevelopersService) Attributes(parent string, googlecloudapigeev1attributes *GoogleCloudApigeeV1Attributes) *OrganizationsDevelopersAttributesCall {
18025	c := &OrganizationsDevelopersAttributesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18026	c.parent = parent
18027	c.googlecloudapigeev1attributes = googlecloudapigeev1attributes
18028	return c
18029}
18030
18031// Fields allows partial responses to be retrieved. See
18032// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18033// for more information.
18034func (c *OrganizationsDevelopersAttributesCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAttributesCall {
18035	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18036	return c
18037}
18038
18039// Context sets the context to be used in this call's Do method. Any
18040// pending HTTP request will be aborted if the provided context is
18041// canceled.
18042func (c *OrganizationsDevelopersAttributesCall) Context(ctx context.Context) *OrganizationsDevelopersAttributesCall {
18043	c.ctx_ = ctx
18044	return c
18045}
18046
18047// Header returns an http.Header that can be modified by the caller to
18048// add HTTP headers to the request.
18049func (c *OrganizationsDevelopersAttributesCall) Header() http.Header {
18050	if c.header_ == nil {
18051		c.header_ = make(http.Header)
18052	}
18053	return c.header_
18054}
18055
18056func (c *OrganizationsDevelopersAttributesCall) doRequest(alt string) (*http.Response, error) {
18057	reqHeaders := make(http.Header)
18058	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
18059	for k, v := range c.header_ {
18060		reqHeaders[k] = v
18061	}
18062	reqHeaders.Set("User-Agent", c.s.userAgent())
18063	var body io.Reader = nil
18064	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1attributes)
18065	if err != nil {
18066		return nil, err
18067	}
18068	reqHeaders.Set("Content-Type", "application/json")
18069	c.urlParams_.Set("alt", alt)
18070	c.urlParams_.Set("prettyPrint", "false")
18071	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attributes")
18072	urls += "?" + c.urlParams_.Encode()
18073	req, err := http.NewRequest("POST", urls, body)
18074	if err != nil {
18075		return nil, err
18076	}
18077	req.Header = reqHeaders
18078	googleapi.Expand(req.URL, map[string]string{
18079		"parent": c.parent,
18080	})
18081	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18082}
18083
18084// Do executes the "apigee.organizations.developers.attributes" call.
18085// Exactly one of *GoogleCloudApigeeV1Attributes or error will be
18086// non-nil. Any non-2xx status code is an error. Response headers are in
18087// either *GoogleCloudApigeeV1Attributes.ServerResponse.Header or (if a
18088// response was returned at all) in error.(*googleapi.Error).Header. Use
18089// googleapi.IsNotModified to check whether the returned error was
18090// because http.StatusNotModified was returned.
18091func (c *OrganizationsDevelopersAttributesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attributes, error) {
18092	gensupport.SetOptions(c.urlParams_, opts...)
18093	res, err := c.doRequest("json")
18094	if res != nil && res.StatusCode == http.StatusNotModified {
18095		if res.Body != nil {
18096			res.Body.Close()
18097		}
18098		return nil, &googleapi.Error{
18099			Code:   res.StatusCode,
18100			Header: res.Header,
18101		}
18102	}
18103	if err != nil {
18104		return nil, err
18105	}
18106	defer googleapi.CloseBody(res)
18107	if err := googleapi.CheckResponse(res); err != nil {
18108		return nil, err
18109	}
18110	ret := &GoogleCloudApigeeV1Attributes{
18111		ServerResponse: googleapi.ServerResponse{
18112			Header:         res.Header,
18113			HTTPStatusCode: res.StatusCode,
18114		},
18115	}
18116	target := &ret
18117	if err := gensupport.DecodeResponse(target, res); err != nil {
18118		return nil, err
18119	}
18120	return ret, nil
18121	// {
18122	//   "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.",
18123	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/attributes",
18124	//   "httpMethod": "POST",
18125	//   "id": "apigee.organizations.developers.attributes",
18126	//   "parameterOrder": [
18127	//     "parent"
18128	//   ],
18129	//   "parameters": {
18130	//     "parent": {
18131	//       "description": "Required. Email address of the developer for which attributes are being updated. Use the following structure in your request: `organizations/{org}/developers/{developer_email}`",
18132	//       "location": "path",
18133	//       "pattern": "^organizations/[^/]+/developers/[^/]+$",
18134	//       "required": true,
18135	//       "type": "string"
18136	//     }
18137	//   },
18138	//   "path": "v1/{+parent}/attributes",
18139	//   "request": {
18140	//     "$ref": "GoogleCloudApigeeV1Attributes"
18141	//   },
18142	//   "response": {
18143	//     "$ref": "GoogleCloudApigeeV1Attributes"
18144	//   },
18145	//   "scopes": [
18146	//     "https://www.googleapis.com/auth/cloud-platform"
18147	//   ]
18148	// }
18149
18150}
18151
18152// method id "apigee.organizations.developers.create":
18153
18154type OrganizationsDevelopersCreateCall struct {
18155	s                            *Service
18156	parent                       string
18157	googlecloudapigeev1developer *GoogleCloudApigeeV1Developer
18158	urlParams_                   gensupport.URLParams
18159	ctx_                         context.Context
18160	header_                      http.Header
18161}
18162
18163// Create: Creates a developer. Once created, the developer can register
18164// an app and obtain an API key. At creation time, a developer is set as
18165// `active`. To change the developer status, use the SetDeveloperStatus
18166// API.
18167//
18168// - parent: Name of the Apigee organization in which the developer is
18169//   created. Use the following structure in your request:
18170//   `organizations/{org}`.
18171func (r *OrganizationsDevelopersService) Create(parent string, googlecloudapigeev1developer *GoogleCloudApigeeV1Developer) *OrganizationsDevelopersCreateCall {
18172	c := &OrganizationsDevelopersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18173	c.parent = parent
18174	c.googlecloudapigeev1developer = googlecloudapigeev1developer
18175	return c
18176}
18177
18178// Fields allows partial responses to be retrieved. See
18179// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18180// for more information.
18181func (c *OrganizationsDevelopersCreateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersCreateCall {
18182	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18183	return c
18184}
18185
18186// Context sets the context to be used in this call's Do method. Any
18187// pending HTTP request will be aborted if the provided context is
18188// canceled.
18189func (c *OrganizationsDevelopersCreateCall) Context(ctx context.Context) *OrganizationsDevelopersCreateCall {
18190	c.ctx_ = ctx
18191	return c
18192}
18193
18194// Header returns an http.Header that can be modified by the caller to
18195// add HTTP headers to the request.
18196func (c *OrganizationsDevelopersCreateCall) Header() http.Header {
18197	if c.header_ == nil {
18198		c.header_ = make(http.Header)
18199	}
18200	return c.header_
18201}
18202
18203func (c *OrganizationsDevelopersCreateCall) doRequest(alt string) (*http.Response, error) {
18204	reqHeaders := make(http.Header)
18205	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
18206	for k, v := range c.header_ {
18207		reqHeaders[k] = v
18208	}
18209	reqHeaders.Set("User-Agent", c.s.userAgent())
18210	var body io.Reader = nil
18211	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developer)
18212	if err != nil {
18213		return nil, err
18214	}
18215	reqHeaders.Set("Content-Type", "application/json")
18216	c.urlParams_.Set("alt", alt)
18217	c.urlParams_.Set("prettyPrint", "false")
18218	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/developers")
18219	urls += "?" + c.urlParams_.Encode()
18220	req, err := http.NewRequest("POST", urls, body)
18221	if err != nil {
18222		return nil, err
18223	}
18224	req.Header = reqHeaders
18225	googleapi.Expand(req.URL, map[string]string{
18226		"parent": c.parent,
18227	})
18228	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18229}
18230
18231// Do executes the "apigee.organizations.developers.create" call.
18232// Exactly one of *GoogleCloudApigeeV1Developer or error will be
18233// non-nil. Any non-2xx status code is an error. Response headers are in
18234// either *GoogleCloudApigeeV1Developer.ServerResponse.Header or (if a
18235// response was returned at all) in error.(*googleapi.Error).Header. Use
18236// googleapi.IsNotModified to check whether the returned error was
18237// because http.StatusNotModified was returned.
18238func (c *OrganizationsDevelopersCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Developer, error) {
18239	gensupport.SetOptions(c.urlParams_, opts...)
18240	res, err := c.doRequest("json")
18241	if res != nil && res.StatusCode == http.StatusNotModified {
18242		if res.Body != nil {
18243			res.Body.Close()
18244		}
18245		return nil, &googleapi.Error{
18246			Code:   res.StatusCode,
18247			Header: res.Header,
18248		}
18249	}
18250	if err != nil {
18251		return nil, err
18252	}
18253	defer googleapi.CloseBody(res)
18254	if err := googleapi.CheckResponse(res); err != nil {
18255		return nil, err
18256	}
18257	ret := &GoogleCloudApigeeV1Developer{
18258		ServerResponse: googleapi.ServerResponse{
18259			Header:         res.Header,
18260			HTTPStatusCode: res.StatusCode,
18261		},
18262	}
18263	target := &ret
18264	if err := gensupport.DecodeResponse(target, res); err != nil {
18265		return nil, err
18266	}
18267	return ret, nil
18268	// {
18269	//   "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.",
18270	//   "flatPath": "v1/organizations/{organizationsId}/developers",
18271	//   "httpMethod": "POST",
18272	//   "id": "apigee.organizations.developers.create",
18273	//   "parameterOrder": [
18274	//     "parent"
18275	//   ],
18276	//   "parameters": {
18277	//     "parent": {
18278	//       "description": "Required. Name of the Apigee organization in which the developer is created. Use the following structure in your request: `organizations/{org}`.",
18279	//       "location": "path",
18280	//       "pattern": "^organizations/[^/]+$",
18281	//       "required": true,
18282	//       "type": "string"
18283	//     }
18284	//   },
18285	//   "path": "v1/{+parent}/developers",
18286	//   "request": {
18287	//     "$ref": "GoogleCloudApigeeV1Developer"
18288	//   },
18289	//   "response": {
18290	//     "$ref": "GoogleCloudApigeeV1Developer"
18291	//   },
18292	//   "scopes": [
18293	//     "https://www.googleapis.com/auth/cloud-platform"
18294	//   ]
18295	// }
18296
18297}
18298
18299// method id "apigee.organizations.developers.delete":
18300
18301type OrganizationsDevelopersDeleteCall struct {
18302	s          *Service
18303	name       string
18304	urlParams_ gensupport.URLParams
18305	ctx_       context.Context
18306	header_    http.Header
18307}
18308
18309// Delete: Deletes a developer. All apps and API keys associated with
18310// the developer are also removed. **Warning**: This API will
18311// permanently delete the developer and related artifacts. To avoid
18312// permanently deleting developers and their artifacts, set the
18313// developer status to `inactive` using the SetDeveloperStatus API.
18314// **Note**: The delete operation is asynchronous. The developer app is
18315// deleted immediately, but its associated resources, such as apps and
18316// API keys, may take anywhere from a few seconds to a few minutes to be
18317// deleted.
18318//
18319// - name: Email address of the developer. Use the following structure
18320//   in your request: `organizations/{org}/developers/{developer_email}`.
18321func (r *OrganizationsDevelopersService) Delete(name string) *OrganizationsDevelopersDeleteCall {
18322	c := &OrganizationsDevelopersDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18323	c.name = name
18324	return c
18325}
18326
18327// Fields allows partial responses to be retrieved. See
18328// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18329// for more information.
18330func (c *OrganizationsDevelopersDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersDeleteCall {
18331	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18332	return c
18333}
18334
18335// Context sets the context to be used in this call's Do method. Any
18336// pending HTTP request will be aborted if the provided context is
18337// canceled.
18338func (c *OrganizationsDevelopersDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersDeleteCall {
18339	c.ctx_ = ctx
18340	return c
18341}
18342
18343// Header returns an http.Header that can be modified by the caller to
18344// add HTTP headers to the request.
18345func (c *OrganizationsDevelopersDeleteCall) Header() http.Header {
18346	if c.header_ == nil {
18347		c.header_ = make(http.Header)
18348	}
18349	return c.header_
18350}
18351
18352func (c *OrganizationsDevelopersDeleteCall) doRequest(alt string) (*http.Response, error) {
18353	reqHeaders := make(http.Header)
18354	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
18355	for k, v := range c.header_ {
18356		reqHeaders[k] = v
18357	}
18358	reqHeaders.Set("User-Agent", c.s.userAgent())
18359	var body io.Reader = nil
18360	c.urlParams_.Set("alt", alt)
18361	c.urlParams_.Set("prettyPrint", "false")
18362	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
18363	urls += "?" + c.urlParams_.Encode()
18364	req, err := http.NewRequest("DELETE", urls, body)
18365	if err != nil {
18366		return nil, err
18367	}
18368	req.Header = reqHeaders
18369	googleapi.Expand(req.URL, map[string]string{
18370		"name": c.name,
18371	})
18372	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18373}
18374
18375// Do executes the "apigee.organizations.developers.delete" call.
18376// Exactly one of *GoogleCloudApigeeV1Developer or error will be
18377// non-nil. Any non-2xx status code is an error. Response headers are in
18378// either *GoogleCloudApigeeV1Developer.ServerResponse.Header or (if a
18379// response was returned at all) in error.(*googleapi.Error).Header. Use
18380// googleapi.IsNotModified to check whether the returned error was
18381// because http.StatusNotModified was returned.
18382func (c *OrganizationsDevelopersDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Developer, error) {
18383	gensupport.SetOptions(c.urlParams_, opts...)
18384	res, err := c.doRequest("json")
18385	if res != nil && res.StatusCode == http.StatusNotModified {
18386		if res.Body != nil {
18387			res.Body.Close()
18388		}
18389		return nil, &googleapi.Error{
18390			Code:   res.StatusCode,
18391			Header: res.Header,
18392		}
18393	}
18394	if err != nil {
18395		return nil, err
18396	}
18397	defer googleapi.CloseBody(res)
18398	if err := googleapi.CheckResponse(res); err != nil {
18399		return nil, err
18400	}
18401	ret := &GoogleCloudApigeeV1Developer{
18402		ServerResponse: googleapi.ServerResponse{
18403			Header:         res.Header,
18404			HTTPStatusCode: res.StatusCode,
18405		},
18406	}
18407	target := &ret
18408	if err := gensupport.DecodeResponse(target, res); err != nil {
18409		return nil, err
18410	}
18411	return ret, nil
18412	// {
18413	//   "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.",
18414	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}",
18415	//   "httpMethod": "DELETE",
18416	//   "id": "apigee.organizations.developers.delete",
18417	//   "parameterOrder": [
18418	//     "name"
18419	//   ],
18420	//   "parameters": {
18421	//     "name": {
18422	//       "description": "Required. Email address of the developer. Use the following structure in your request: `organizations/{org}/developers/{developer_email}`",
18423	//       "location": "path",
18424	//       "pattern": "^organizations/[^/]+/developers/[^/]+$",
18425	//       "required": true,
18426	//       "type": "string"
18427	//     }
18428	//   },
18429	//   "path": "v1/{+name}",
18430	//   "response": {
18431	//     "$ref": "GoogleCloudApigeeV1Developer"
18432	//   },
18433	//   "scopes": [
18434	//     "https://www.googleapis.com/auth/cloud-platform"
18435	//   ]
18436	// }
18437
18438}
18439
18440// method id "apigee.organizations.developers.get":
18441
18442type OrganizationsDevelopersGetCall struct {
18443	s            *Service
18444	name         string
18445	urlParams_   gensupport.URLParams
18446	ifNoneMatch_ string
18447	ctx_         context.Context
18448	header_      http.Header
18449}
18450
18451// Get: Returns the developer details, including the developer's name,
18452// email address, apps, and other information. **Note**: The response
18453// includes only the first 100 developer apps.
18454//
18455// - name: Email address of the developer. Use the following structure
18456//   in your request: `organizations/{org}/developers/{developer_email}`.
18457func (r *OrganizationsDevelopersService) Get(name string) *OrganizationsDevelopersGetCall {
18458	c := &OrganizationsDevelopersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18459	c.name = name
18460	return c
18461}
18462
18463// Action sets the optional parameter "action": Status of the developer.
18464// Valid values are `active` or `inactive`.
18465func (c *OrganizationsDevelopersGetCall) Action(action string) *OrganizationsDevelopersGetCall {
18466	c.urlParams_.Set("action", action)
18467	return c
18468}
18469
18470// Fields allows partial responses to be retrieved. See
18471// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18472// for more information.
18473func (c *OrganizationsDevelopersGetCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersGetCall {
18474	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18475	return c
18476}
18477
18478// IfNoneMatch sets the optional parameter which makes the operation
18479// fail if the object's ETag matches the given value. This is useful for
18480// getting updates only after the object has changed since the last
18481// request. Use googleapi.IsNotModified to check whether the response
18482// error from Do is the result of In-None-Match.
18483func (c *OrganizationsDevelopersGetCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersGetCall {
18484	c.ifNoneMatch_ = entityTag
18485	return c
18486}
18487
18488// Context sets the context to be used in this call's Do method. Any
18489// pending HTTP request will be aborted if the provided context is
18490// canceled.
18491func (c *OrganizationsDevelopersGetCall) Context(ctx context.Context) *OrganizationsDevelopersGetCall {
18492	c.ctx_ = ctx
18493	return c
18494}
18495
18496// Header returns an http.Header that can be modified by the caller to
18497// add HTTP headers to the request.
18498func (c *OrganizationsDevelopersGetCall) Header() http.Header {
18499	if c.header_ == nil {
18500		c.header_ = make(http.Header)
18501	}
18502	return c.header_
18503}
18504
18505func (c *OrganizationsDevelopersGetCall) doRequest(alt string) (*http.Response, error) {
18506	reqHeaders := make(http.Header)
18507	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
18508	for k, v := range c.header_ {
18509		reqHeaders[k] = v
18510	}
18511	reqHeaders.Set("User-Agent", c.s.userAgent())
18512	if c.ifNoneMatch_ != "" {
18513		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18514	}
18515	var body io.Reader = nil
18516	c.urlParams_.Set("alt", alt)
18517	c.urlParams_.Set("prettyPrint", "false")
18518	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
18519	urls += "?" + c.urlParams_.Encode()
18520	req, err := http.NewRequest("GET", urls, body)
18521	if err != nil {
18522		return nil, err
18523	}
18524	req.Header = reqHeaders
18525	googleapi.Expand(req.URL, map[string]string{
18526		"name": c.name,
18527	})
18528	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18529}
18530
18531// Do executes the "apigee.organizations.developers.get" call.
18532// Exactly one of *GoogleCloudApigeeV1Developer or error will be
18533// non-nil. Any non-2xx status code is an error. Response headers are in
18534// either *GoogleCloudApigeeV1Developer.ServerResponse.Header or (if a
18535// response was returned at all) in error.(*googleapi.Error).Header. Use
18536// googleapi.IsNotModified to check whether the returned error was
18537// because http.StatusNotModified was returned.
18538func (c *OrganizationsDevelopersGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Developer, error) {
18539	gensupport.SetOptions(c.urlParams_, opts...)
18540	res, err := c.doRequest("json")
18541	if res != nil && res.StatusCode == http.StatusNotModified {
18542		if res.Body != nil {
18543			res.Body.Close()
18544		}
18545		return nil, &googleapi.Error{
18546			Code:   res.StatusCode,
18547			Header: res.Header,
18548		}
18549	}
18550	if err != nil {
18551		return nil, err
18552	}
18553	defer googleapi.CloseBody(res)
18554	if err := googleapi.CheckResponse(res); err != nil {
18555		return nil, err
18556	}
18557	ret := &GoogleCloudApigeeV1Developer{
18558		ServerResponse: googleapi.ServerResponse{
18559			Header:         res.Header,
18560			HTTPStatusCode: res.StatusCode,
18561		},
18562	}
18563	target := &ret
18564	if err := gensupport.DecodeResponse(target, res); err != nil {
18565		return nil, err
18566	}
18567	return ret, nil
18568	// {
18569	//   "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.",
18570	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}",
18571	//   "httpMethod": "GET",
18572	//   "id": "apigee.organizations.developers.get",
18573	//   "parameterOrder": [
18574	//     "name"
18575	//   ],
18576	//   "parameters": {
18577	//     "action": {
18578	//       "description": "Status of the developer. Valid values are `active` or `inactive`.",
18579	//       "location": "query",
18580	//       "type": "string"
18581	//     },
18582	//     "name": {
18583	//       "description": "Required. Email address of the developer. Use the following structure in your request: `organizations/{org}/developers/{developer_email}`",
18584	//       "location": "path",
18585	//       "pattern": "^organizations/[^/]+/developers/[^/]+$",
18586	//       "required": true,
18587	//       "type": "string"
18588	//     }
18589	//   },
18590	//   "path": "v1/{+name}",
18591	//   "response": {
18592	//     "$ref": "GoogleCloudApigeeV1Developer"
18593	//   },
18594	//   "scopes": [
18595	//     "https://www.googleapis.com/auth/cloud-platform"
18596	//   ]
18597	// }
18598
18599}
18600
18601// method id "apigee.organizations.developers.getBalance":
18602
18603type OrganizationsDevelopersGetBalanceCall struct {
18604	s            *Service
18605	name         string
18606	urlParams_   gensupport.URLParams
18607	ifNoneMatch_ string
18608	ctx_         context.Context
18609	header_      http.Header
18610}
18611
18612// GetBalance: Gets the account balance for the developer.
18613//
18614// - name: Account balance for the developer. Use the following
18615//   structure in your request:
18616//   `organizations/{org}/developers/{developer}/balance`.
18617func (r *OrganizationsDevelopersService) GetBalance(name string) *OrganizationsDevelopersGetBalanceCall {
18618	c := &OrganizationsDevelopersGetBalanceCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18619	c.name = name
18620	return c
18621}
18622
18623// Fields allows partial responses to be retrieved. See
18624// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18625// for more information.
18626func (c *OrganizationsDevelopersGetBalanceCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersGetBalanceCall {
18627	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18628	return c
18629}
18630
18631// IfNoneMatch sets the optional parameter which makes the operation
18632// fail if the object's ETag matches the given value. This is useful for
18633// getting updates only after the object has changed since the last
18634// request. Use googleapi.IsNotModified to check whether the response
18635// error from Do is the result of In-None-Match.
18636func (c *OrganizationsDevelopersGetBalanceCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersGetBalanceCall {
18637	c.ifNoneMatch_ = entityTag
18638	return c
18639}
18640
18641// Context sets the context to be used in this call's Do method. Any
18642// pending HTTP request will be aborted if the provided context is
18643// canceled.
18644func (c *OrganizationsDevelopersGetBalanceCall) Context(ctx context.Context) *OrganizationsDevelopersGetBalanceCall {
18645	c.ctx_ = ctx
18646	return c
18647}
18648
18649// Header returns an http.Header that can be modified by the caller to
18650// add HTTP headers to the request.
18651func (c *OrganizationsDevelopersGetBalanceCall) Header() http.Header {
18652	if c.header_ == nil {
18653		c.header_ = make(http.Header)
18654	}
18655	return c.header_
18656}
18657
18658func (c *OrganizationsDevelopersGetBalanceCall) doRequest(alt string) (*http.Response, error) {
18659	reqHeaders := make(http.Header)
18660	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
18661	for k, v := range c.header_ {
18662		reqHeaders[k] = v
18663	}
18664	reqHeaders.Set("User-Agent", c.s.userAgent())
18665	if c.ifNoneMatch_ != "" {
18666		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18667	}
18668	var body io.Reader = nil
18669	c.urlParams_.Set("alt", alt)
18670	c.urlParams_.Set("prettyPrint", "false")
18671	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
18672	urls += "?" + c.urlParams_.Encode()
18673	req, err := http.NewRequest("GET", urls, body)
18674	if err != nil {
18675		return nil, err
18676	}
18677	req.Header = reqHeaders
18678	googleapi.Expand(req.URL, map[string]string{
18679		"name": c.name,
18680	})
18681	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18682}
18683
18684// Do executes the "apigee.organizations.developers.getBalance" call.
18685// Exactly one of *GoogleCloudApigeeV1DeveloperBalance or error will be
18686// non-nil. Any non-2xx status code is an error. Response headers are in
18687// either *GoogleCloudApigeeV1DeveloperBalance.ServerResponse.Header or
18688// (if a response was returned at all) in
18689// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
18690// whether the returned error was because http.StatusNotModified was
18691// returned.
18692func (c *OrganizationsDevelopersGetBalanceCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperBalance, error) {
18693	gensupport.SetOptions(c.urlParams_, opts...)
18694	res, err := c.doRequest("json")
18695	if res != nil && res.StatusCode == http.StatusNotModified {
18696		if res.Body != nil {
18697			res.Body.Close()
18698		}
18699		return nil, &googleapi.Error{
18700			Code:   res.StatusCode,
18701			Header: res.Header,
18702		}
18703	}
18704	if err != nil {
18705		return nil, err
18706	}
18707	defer googleapi.CloseBody(res)
18708	if err := googleapi.CheckResponse(res); err != nil {
18709		return nil, err
18710	}
18711	ret := &GoogleCloudApigeeV1DeveloperBalance{
18712		ServerResponse: googleapi.ServerResponse{
18713			Header:         res.Header,
18714			HTTPStatusCode: res.StatusCode,
18715		},
18716	}
18717	target := &ret
18718	if err := gensupport.DecodeResponse(target, res); err != nil {
18719		return nil, err
18720	}
18721	return ret, nil
18722	// {
18723	//   "description": "Gets the account balance for the developer.",
18724	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/balance",
18725	//   "httpMethod": "GET",
18726	//   "id": "apigee.organizations.developers.getBalance",
18727	//   "parameterOrder": [
18728	//     "name"
18729	//   ],
18730	//   "parameters": {
18731	//     "name": {
18732	//       "description": "Required. Account balance for the developer. Use the following structure in your request: `organizations/{org}/developers/{developer}/balance`",
18733	//       "location": "path",
18734	//       "pattern": "^organizations/[^/]+/developers/[^/]+/balance$",
18735	//       "required": true,
18736	//       "type": "string"
18737	//     }
18738	//   },
18739	//   "path": "v1/{+name}",
18740	//   "response": {
18741	//     "$ref": "GoogleCloudApigeeV1DeveloperBalance"
18742	//   },
18743	//   "scopes": [
18744	//     "https://www.googleapis.com/auth/cloud-platform"
18745	//   ]
18746	// }
18747
18748}
18749
18750// method id "apigee.organizations.developers.getMonetizationConfig":
18751
18752type OrganizationsDevelopersGetMonetizationConfigCall struct {
18753	s            *Service
18754	name         string
18755	urlParams_   gensupport.URLParams
18756	ifNoneMatch_ string
18757	ctx_         context.Context
18758	header_      http.Header
18759}
18760
18761// GetMonetizationConfig: Gets the monetization configuration for the
18762// developer.
18763//
18764// - name: Monetization configuration for the developer. Use the
18765//   following structure in your request:
18766//   `organizations/{org}/developers/{developer}/monetizationConfig`.
18767func (r *OrganizationsDevelopersService) GetMonetizationConfig(name string) *OrganizationsDevelopersGetMonetizationConfigCall {
18768	c := &OrganizationsDevelopersGetMonetizationConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18769	c.name = name
18770	return c
18771}
18772
18773// Fields allows partial responses to be retrieved. See
18774// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18775// for more information.
18776func (c *OrganizationsDevelopersGetMonetizationConfigCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersGetMonetizationConfigCall {
18777	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18778	return c
18779}
18780
18781// IfNoneMatch sets the optional parameter which makes the operation
18782// fail if the object's ETag matches the given value. This is useful for
18783// getting updates only after the object has changed since the last
18784// request. Use googleapi.IsNotModified to check whether the response
18785// error from Do is the result of In-None-Match.
18786func (c *OrganizationsDevelopersGetMonetizationConfigCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersGetMonetizationConfigCall {
18787	c.ifNoneMatch_ = entityTag
18788	return c
18789}
18790
18791// Context sets the context to be used in this call's Do method. Any
18792// pending HTTP request will be aborted if the provided context is
18793// canceled.
18794func (c *OrganizationsDevelopersGetMonetizationConfigCall) Context(ctx context.Context) *OrganizationsDevelopersGetMonetizationConfigCall {
18795	c.ctx_ = ctx
18796	return c
18797}
18798
18799// Header returns an http.Header that can be modified by the caller to
18800// add HTTP headers to the request.
18801func (c *OrganizationsDevelopersGetMonetizationConfigCall) Header() http.Header {
18802	if c.header_ == nil {
18803		c.header_ = make(http.Header)
18804	}
18805	return c.header_
18806}
18807
18808func (c *OrganizationsDevelopersGetMonetizationConfigCall) doRequest(alt string) (*http.Response, error) {
18809	reqHeaders := make(http.Header)
18810	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
18811	for k, v := range c.header_ {
18812		reqHeaders[k] = v
18813	}
18814	reqHeaders.Set("User-Agent", c.s.userAgent())
18815	if c.ifNoneMatch_ != "" {
18816		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18817	}
18818	var body io.Reader = nil
18819	c.urlParams_.Set("alt", alt)
18820	c.urlParams_.Set("prettyPrint", "false")
18821	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
18822	urls += "?" + c.urlParams_.Encode()
18823	req, err := http.NewRequest("GET", urls, body)
18824	if err != nil {
18825		return nil, err
18826	}
18827	req.Header = reqHeaders
18828	googleapi.Expand(req.URL, map[string]string{
18829		"name": c.name,
18830	})
18831	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18832}
18833
18834// Do executes the "apigee.organizations.developers.getMonetizationConfig" call.
18835// Exactly one of *GoogleCloudApigeeV1DeveloperMonetizationConfig or
18836// error will be non-nil. Any non-2xx status code is an error. Response
18837// headers are in either
18838// *GoogleCloudApigeeV1DeveloperMonetizationConfig.ServerResponse.Header
18839// or (if a response was returned at all) in
18840// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
18841// whether the returned error was because http.StatusNotModified was
18842// returned.
18843func (c *OrganizationsDevelopersGetMonetizationConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperMonetizationConfig, error) {
18844	gensupport.SetOptions(c.urlParams_, opts...)
18845	res, err := c.doRequest("json")
18846	if res != nil && res.StatusCode == http.StatusNotModified {
18847		if res.Body != nil {
18848			res.Body.Close()
18849		}
18850		return nil, &googleapi.Error{
18851			Code:   res.StatusCode,
18852			Header: res.Header,
18853		}
18854	}
18855	if err != nil {
18856		return nil, err
18857	}
18858	defer googleapi.CloseBody(res)
18859	if err := googleapi.CheckResponse(res); err != nil {
18860		return nil, err
18861	}
18862	ret := &GoogleCloudApigeeV1DeveloperMonetizationConfig{
18863		ServerResponse: googleapi.ServerResponse{
18864			Header:         res.Header,
18865			HTTPStatusCode: res.StatusCode,
18866		},
18867	}
18868	target := &ret
18869	if err := gensupport.DecodeResponse(target, res); err != nil {
18870		return nil, err
18871	}
18872	return ret, nil
18873	// {
18874	//   "description": "Gets the monetization configuration for the developer.",
18875	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/monetizationConfig",
18876	//   "httpMethod": "GET",
18877	//   "id": "apigee.organizations.developers.getMonetizationConfig",
18878	//   "parameterOrder": [
18879	//     "name"
18880	//   ],
18881	//   "parameters": {
18882	//     "name": {
18883	//       "description": "Required. Monetization configuration for the developer. Use the following structure in your request: `organizations/{org}/developers/{developer}/monetizationConfig`",
18884	//       "location": "path",
18885	//       "pattern": "^organizations/[^/]+/developers/[^/]+/monetizationConfig$",
18886	//       "required": true,
18887	//       "type": "string"
18888	//     }
18889	//   },
18890	//   "path": "v1/{+name}",
18891	//   "response": {
18892	//     "$ref": "GoogleCloudApigeeV1DeveloperMonetizationConfig"
18893	//   },
18894	//   "scopes": [
18895	//     "https://www.googleapis.com/auth/cloud-platform"
18896	//   ]
18897	// }
18898
18899}
18900
18901// method id "apigee.organizations.developers.list":
18902
18903type OrganizationsDevelopersListCall struct {
18904	s            *Service
18905	parent       string
18906	urlParams_   gensupport.URLParams
18907	ifNoneMatch_ string
18908	ctx_         context.Context
18909	header_      http.Header
18910}
18911
18912// List: Lists all developers in an organization by email address. By
18913// default, the response does not include company developers. Set the
18914// `includeCompany` query parameter to `true` to include company
18915// developers. **Note**: A maximum of 1000 developers are returned in
18916// the response. You paginate the list of developers returned using the
18917// `startKey` and `count` query parameters.
18918//
18919// - parent: Name of the Apigee organization. Use the following
18920//   structure in your request: `organizations/{org}`.
18921func (r *OrganizationsDevelopersService) List(parent string) *OrganizationsDevelopersListCall {
18922	c := &OrganizationsDevelopersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18923	c.parent = parent
18924	return c
18925}
18926
18927// App sets the optional parameter "app": List only Developers that are
18928// associated with the app. Note that start_key, count are not
18929// applicable for this filter criteria.
18930func (c *OrganizationsDevelopersListCall) App(app string) *OrganizationsDevelopersListCall {
18931	c.urlParams_.Set("app", app)
18932	return c
18933}
18934
18935// Count sets the optional parameter "count": Number of developers to
18936// return in the API call. Use with the `startKey` parameter to provide
18937// more targeted filtering. The limit is 1000.
18938func (c *OrganizationsDevelopersListCall) Count(count int64) *OrganizationsDevelopersListCall {
18939	c.urlParams_.Set("count", fmt.Sprint(count))
18940	return c
18941}
18942
18943// Expand sets the optional parameter "expand": Specifies whether to
18944// expand the results. Set to `true` to expand the results. This query
18945// parameter is not valid if you use the `count` or `startKey` query
18946// parameters.
18947func (c *OrganizationsDevelopersListCall) Expand(expand bool) *OrganizationsDevelopersListCall {
18948	c.urlParams_.Set("expand", fmt.Sprint(expand))
18949	return c
18950}
18951
18952// Ids sets the optional parameter "ids": List of IDs to include,
18953// separated by commas.
18954func (c *OrganizationsDevelopersListCall) Ids(ids string) *OrganizationsDevelopersListCall {
18955	c.urlParams_.Set("ids", ids)
18956	return c
18957}
18958
18959// IncludeCompany sets the optional parameter "includeCompany": Flag
18960// that specifies whether to include company details in the response.
18961func (c *OrganizationsDevelopersListCall) IncludeCompany(includeCompany bool) *OrganizationsDevelopersListCall {
18962	c.urlParams_.Set("includeCompany", fmt.Sprint(includeCompany))
18963	return c
18964}
18965
18966// StartKey sets the optional parameter "startKey": **Note**: Must be
18967// used in conjunction with the `count` parameter. Email address of the
18968// developer from which to start displaying the list of developers. For
18969// example, if the an unfiltered list returns: ``` westley@example.com
18970// fezzik@example.com buttercup@example.com ``` and your `startKey` is
18971// `fezzik@example.com`, the list returned will be ```
18972// fezzik@example.com buttercup@example.com ```
18973func (c *OrganizationsDevelopersListCall) StartKey(startKey string) *OrganizationsDevelopersListCall {
18974	c.urlParams_.Set("startKey", startKey)
18975	return c
18976}
18977
18978// Fields allows partial responses to be retrieved. See
18979// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18980// for more information.
18981func (c *OrganizationsDevelopersListCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersListCall {
18982	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18983	return c
18984}
18985
18986// IfNoneMatch sets the optional parameter which makes the operation
18987// fail if the object's ETag matches the given value. This is useful for
18988// getting updates only after the object has changed since the last
18989// request. Use googleapi.IsNotModified to check whether the response
18990// error from Do is the result of In-None-Match.
18991func (c *OrganizationsDevelopersListCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersListCall {
18992	c.ifNoneMatch_ = entityTag
18993	return c
18994}
18995
18996// Context sets the context to be used in this call's Do method. Any
18997// pending HTTP request will be aborted if the provided context is
18998// canceled.
18999func (c *OrganizationsDevelopersListCall) Context(ctx context.Context) *OrganizationsDevelopersListCall {
19000	c.ctx_ = ctx
19001	return c
19002}
19003
19004// Header returns an http.Header that can be modified by the caller to
19005// add HTTP headers to the request.
19006func (c *OrganizationsDevelopersListCall) Header() http.Header {
19007	if c.header_ == nil {
19008		c.header_ = make(http.Header)
19009	}
19010	return c.header_
19011}
19012
19013func (c *OrganizationsDevelopersListCall) doRequest(alt string) (*http.Response, error) {
19014	reqHeaders := make(http.Header)
19015	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
19016	for k, v := range c.header_ {
19017		reqHeaders[k] = v
19018	}
19019	reqHeaders.Set("User-Agent", c.s.userAgent())
19020	if c.ifNoneMatch_ != "" {
19021		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19022	}
19023	var body io.Reader = nil
19024	c.urlParams_.Set("alt", alt)
19025	c.urlParams_.Set("prettyPrint", "false")
19026	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/developers")
19027	urls += "?" + c.urlParams_.Encode()
19028	req, err := http.NewRequest("GET", urls, body)
19029	if err != nil {
19030		return nil, err
19031	}
19032	req.Header = reqHeaders
19033	googleapi.Expand(req.URL, map[string]string{
19034		"parent": c.parent,
19035	})
19036	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19037}
19038
19039// Do executes the "apigee.organizations.developers.list" call.
19040// Exactly one of *GoogleCloudApigeeV1ListOfDevelopersResponse or error
19041// will be non-nil. Any non-2xx status code is an error. Response
19042// headers are in either
19043// *GoogleCloudApigeeV1ListOfDevelopersResponse.ServerResponse.Header or
19044// (if a response was returned at all) in
19045// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
19046// whether the returned error was because http.StatusNotModified was
19047// returned.
19048func (c *OrganizationsDevelopersListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListOfDevelopersResponse, error) {
19049	gensupport.SetOptions(c.urlParams_, opts...)
19050	res, err := c.doRequest("json")
19051	if res != nil && res.StatusCode == http.StatusNotModified {
19052		if res.Body != nil {
19053			res.Body.Close()
19054		}
19055		return nil, &googleapi.Error{
19056			Code:   res.StatusCode,
19057			Header: res.Header,
19058		}
19059	}
19060	if err != nil {
19061		return nil, err
19062	}
19063	defer googleapi.CloseBody(res)
19064	if err := googleapi.CheckResponse(res); err != nil {
19065		return nil, err
19066	}
19067	ret := &GoogleCloudApigeeV1ListOfDevelopersResponse{
19068		ServerResponse: googleapi.ServerResponse{
19069			Header:         res.Header,
19070			HTTPStatusCode: res.StatusCode,
19071		},
19072	}
19073	target := &ret
19074	if err := gensupport.DecodeResponse(target, res); err != nil {
19075		return nil, err
19076	}
19077	return ret, nil
19078	// {
19079	//   "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.",
19080	//   "flatPath": "v1/organizations/{organizationsId}/developers",
19081	//   "httpMethod": "GET",
19082	//   "id": "apigee.organizations.developers.list",
19083	//   "parameterOrder": [
19084	//     "parent"
19085	//   ],
19086	//   "parameters": {
19087	//     "app": {
19088	//       "description": "Optional. List only Developers that are associated with the app. Note that start_key, count are not applicable for this filter criteria.",
19089	//       "location": "query",
19090	//       "type": "string"
19091	//     },
19092	//     "count": {
19093	//       "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.",
19094	//       "format": "int64",
19095	//       "location": "query",
19096	//       "type": "string"
19097	//     },
19098	//     "expand": {
19099	//       "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.",
19100	//       "location": "query",
19101	//       "type": "boolean"
19102	//     },
19103	//     "ids": {
19104	//       "description": "Optional. List of IDs to include, separated by commas.",
19105	//       "location": "query",
19106	//       "type": "string"
19107	//     },
19108	//     "includeCompany": {
19109	//       "description": "Flag that specifies whether to include company details in the response.",
19110	//       "location": "query",
19111	//       "type": "boolean"
19112	//     },
19113	//     "parent": {
19114	//       "description": "Required. Name of the Apigee organization. Use the following structure in your request: `organizations/{org}`.",
19115	//       "location": "path",
19116	//       "pattern": "^organizations/[^/]+$",
19117	//       "required": true,
19118	//       "type": "string"
19119	//     },
19120	//     "startKey": {
19121	//       "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 ```",
19122	//       "location": "query",
19123	//       "type": "string"
19124	//     }
19125	//   },
19126	//   "path": "v1/{+parent}/developers",
19127	//   "response": {
19128	//     "$ref": "GoogleCloudApigeeV1ListOfDevelopersResponse"
19129	//   },
19130	//   "scopes": [
19131	//     "https://www.googleapis.com/auth/cloud-platform"
19132	//   ]
19133	// }
19134
19135}
19136
19137// method id "apigee.organizations.developers.setDeveloperStatus":
19138
19139type OrganizationsDevelopersSetDeveloperStatusCall struct {
19140	s          *Service
19141	name       string
19142	urlParams_ gensupport.URLParams
19143	ctx_       context.Context
19144	header_    http.Header
19145}
19146
19147// SetDeveloperStatus: Sets the status of a developer. A developer is
19148// `active` by default. If you set a developer's status to `inactive`,
19149// the API keys assigned to the developer apps are no longer valid even
19150// though the API keys are set to `approved`. Inactive developers can
19151// still sign in to the developer portal and create apps; however, any
19152// new API keys generated during app creation won't work. To set the
19153// status of a developer, set the `action` query parameter to `active`
19154// or `inactive`, and the `Content-Type` header to
19155// `application/octet-stream`. If successful, the API call returns the
19156// following HTTP status code: `204 No Content`
19157//
19158// - name: Name of the developer. Use the following structure in your
19159//   request: `organizations/{org}/developers/{developer_id}`.
19160func (r *OrganizationsDevelopersService) SetDeveloperStatus(name string) *OrganizationsDevelopersSetDeveloperStatusCall {
19161	c := &OrganizationsDevelopersSetDeveloperStatusCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19162	c.name = name
19163	return c
19164}
19165
19166// Action sets the optional parameter "action": Status of the developer.
19167// Valid values are `active` and `inactive`.
19168func (c *OrganizationsDevelopersSetDeveloperStatusCall) Action(action string) *OrganizationsDevelopersSetDeveloperStatusCall {
19169	c.urlParams_.Set("action", action)
19170	return c
19171}
19172
19173// Fields allows partial responses to be retrieved. See
19174// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19175// for more information.
19176func (c *OrganizationsDevelopersSetDeveloperStatusCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersSetDeveloperStatusCall {
19177	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19178	return c
19179}
19180
19181// Context sets the context to be used in this call's Do method. Any
19182// pending HTTP request will be aborted if the provided context is
19183// canceled.
19184func (c *OrganizationsDevelopersSetDeveloperStatusCall) Context(ctx context.Context) *OrganizationsDevelopersSetDeveloperStatusCall {
19185	c.ctx_ = ctx
19186	return c
19187}
19188
19189// Header returns an http.Header that can be modified by the caller to
19190// add HTTP headers to the request.
19191func (c *OrganizationsDevelopersSetDeveloperStatusCall) Header() http.Header {
19192	if c.header_ == nil {
19193		c.header_ = make(http.Header)
19194	}
19195	return c.header_
19196}
19197
19198func (c *OrganizationsDevelopersSetDeveloperStatusCall) doRequest(alt string) (*http.Response, error) {
19199	reqHeaders := make(http.Header)
19200	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
19201	for k, v := range c.header_ {
19202		reqHeaders[k] = v
19203	}
19204	reqHeaders.Set("User-Agent", c.s.userAgent())
19205	var body io.Reader = nil
19206	c.urlParams_.Set("alt", alt)
19207	c.urlParams_.Set("prettyPrint", "false")
19208	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
19209	urls += "?" + c.urlParams_.Encode()
19210	req, err := http.NewRequest("POST", urls, body)
19211	if err != nil {
19212		return nil, err
19213	}
19214	req.Header = reqHeaders
19215	googleapi.Expand(req.URL, map[string]string{
19216		"name": c.name,
19217	})
19218	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19219}
19220
19221// Do executes the "apigee.organizations.developers.setDeveloperStatus" call.
19222// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
19223// non-2xx status code is an error. Response headers are in either
19224// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
19225// returned at all) in error.(*googleapi.Error).Header. Use
19226// googleapi.IsNotModified to check whether the returned error was
19227// because http.StatusNotModified was returned.
19228func (c *OrganizationsDevelopersSetDeveloperStatusCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
19229	gensupport.SetOptions(c.urlParams_, opts...)
19230	res, err := c.doRequest("json")
19231	if res != nil && res.StatusCode == http.StatusNotModified {
19232		if res.Body != nil {
19233			res.Body.Close()
19234		}
19235		return nil, &googleapi.Error{
19236			Code:   res.StatusCode,
19237			Header: res.Header,
19238		}
19239	}
19240	if err != nil {
19241		return nil, err
19242	}
19243	defer googleapi.CloseBody(res)
19244	if err := googleapi.CheckResponse(res); err != nil {
19245		return nil, err
19246	}
19247	ret := &GoogleProtobufEmpty{
19248		ServerResponse: googleapi.ServerResponse{
19249			Header:         res.Header,
19250			HTTPStatusCode: res.StatusCode,
19251		},
19252	}
19253	target := &ret
19254	if err := gensupport.DecodeResponse(target, res); err != nil {
19255		return nil, err
19256	}
19257	return ret, nil
19258	// {
19259	//   "description": "Sets the status of a developer. 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. To set the status of a developer, set the `action` query parameter to `active` or `inactive`, and the `Content-Type` header to `application/octet-stream`. If successful, the API call returns the following HTTP status code: `204 No Content`",
19260	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}",
19261	//   "httpMethod": "POST",
19262	//   "id": "apigee.organizations.developers.setDeveloperStatus",
19263	//   "parameterOrder": [
19264	//     "name"
19265	//   ],
19266	//   "parameters": {
19267	//     "action": {
19268	//       "description": "Status of the developer. Valid values are `active` and `inactive`.",
19269	//       "location": "query",
19270	//       "type": "string"
19271	//     },
19272	//     "name": {
19273	//       "description": "Required. Name of the developer. Use the following structure in your request: `organizations/{org}/developers/{developer_id}`",
19274	//       "location": "path",
19275	//       "pattern": "^organizations/[^/]+/developers/[^/]+$",
19276	//       "required": true,
19277	//       "type": "string"
19278	//     }
19279	//   },
19280	//   "path": "v1/{+name}",
19281	//   "response": {
19282	//     "$ref": "GoogleProtobufEmpty"
19283	//   },
19284	//   "scopes": [
19285	//     "https://www.googleapis.com/auth/cloud-platform"
19286	//   ]
19287	// }
19288
19289}
19290
19291// method id "apigee.organizations.developers.update":
19292
19293type OrganizationsDevelopersUpdateCall struct {
19294	s                            *Service
19295	name                         string
19296	googlecloudapigeev1developer *GoogleCloudApigeeV1Developer
19297	urlParams_                   gensupport.URLParams
19298	ctx_                         context.Context
19299	header_                      http.Header
19300}
19301
19302// Update: Updates a developer. This API replaces the existing developer
19303// details with those specified in the request. Include or exclude any
19304// existing details that you want to retain or delete, respectively. The
19305// custom attribute limit is 18. **Note**: OAuth access tokens and Key
19306// Management Service (KMS) entities (apps, developers, and API
19307// products) are cached for 180 seconds (current default). Any custom
19308// attributes associated with these entities are cached for at least 180
19309// seconds after the entity is accessed at runtime. Therefore, an
19310// `ExpiresIn` element on the OAuthV2 policy won't be able to expire an
19311// access token in less than 180 seconds.
19312//
19313// - name: Email address of the developer. Use the following structure
19314//   in your request: `organizations/{org}/developers/{developer_email}`.
19315func (r *OrganizationsDevelopersService) Update(name string, googlecloudapigeev1developer *GoogleCloudApigeeV1Developer) *OrganizationsDevelopersUpdateCall {
19316	c := &OrganizationsDevelopersUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19317	c.name = name
19318	c.googlecloudapigeev1developer = googlecloudapigeev1developer
19319	return c
19320}
19321
19322// Fields allows partial responses to be retrieved. See
19323// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19324// for more information.
19325func (c *OrganizationsDevelopersUpdateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersUpdateCall {
19326	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19327	return c
19328}
19329
19330// Context sets the context to be used in this call's Do method. Any
19331// pending HTTP request will be aborted if the provided context is
19332// canceled.
19333func (c *OrganizationsDevelopersUpdateCall) Context(ctx context.Context) *OrganizationsDevelopersUpdateCall {
19334	c.ctx_ = ctx
19335	return c
19336}
19337
19338// Header returns an http.Header that can be modified by the caller to
19339// add HTTP headers to the request.
19340func (c *OrganizationsDevelopersUpdateCall) Header() http.Header {
19341	if c.header_ == nil {
19342		c.header_ = make(http.Header)
19343	}
19344	return c.header_
19345}
19346
19347func (c *OrganizationsDevelopersUpdateCall) doRequest(alt string) (*http.Response, error) {
19348	reqHeaders := make(http.Header)
19349	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
19350	for k, v := range c.header_ {
19351		reqHeaders[k] = v
19352	}
19353	reqHeaders.Set("User-Agent", c.s.userAgent())
19354	var body io.Reader = nil
19355	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developer)
19356	if err != nil {
19357		return nil, err
19358	}
19359	reqHeaders.Set("Content-Type", "application/json")
19360	c.urlParams_.Set("alt", alt)
19361	c.urlParams_.Set("prettyPrint", "false")
19362	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
19363	urls += "?" + c.urlParams_.Encode()
19364	req, err := http.NewRequest("PUT", urls, body)
19365	if err != nil {
19366		return nil, err
19367	}
19368	req.Header = reqHeaders
19369	googleapi.Expand(req.URL, map[string]string{
19370		"name": c.name,
19371	})
19372	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19373}
19374
19375// Do executes the "apigee.organizations.developers.update" call.
19376// Exactly one of *GoogleCloudApigeeV1Developer or error will be
19377// non-nil. Any non-2xx status code is an error. Response headers are in
19378// either *GoogleCloudApigeeV1Developer.ServerResponse.Header or (if a
19379// response was returned at all) in error.(*googleapi.Error).Header. Use
19380// googleapi.IsNotModified to check whether the returned error was
19381// because http.StatusNotModified was returned.
19382func (c *OrganizationsDevelopersUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Developer, error) {
19383	gensupport.SetOptions(c.urlParams_, opts...)
19384	res, err := c.doRequest("json")
19385	if res != nil && res.StatusCode == http.StatusNotModified {
19386		if res.Body != nil {
19387			res.Body.Close()
19388		}
19389		return nil, &googleapi.Error{
19390			Code:   res.StatusCode,
19391			Header: res.Header,
19392		}
19393	}
19394	if err != nil {
19395		return nil, err
19396	}
19397	defer googleapi.CloseBody(res)
19398	if err := googleapi.CheckResponse(res); err != nil {
19399		return nil, err
19400	}
19401	ret := &GoogleCloudApigeeV1Developer{
19402		ServerResponse: googleapi.ServerResponse{
19403			Header:         res.Header,
19404			HTTPStatusCode: res.StatusCode,
19405		},
19406	}
19407	target := &ret
19408	if err := gensupport.DecodeResponse(target, res); err != nil {
19409		return nil, err
19410	}
19411	return ret, nil
19412	// {
19413	//   "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.",
19414	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}",
19415	//   "httpMethod": "PUT",
19416	//   "id": "apigee.organizations.developers.update",
19417	//   "parameterOrder": [
19418	//     "name"
19419	//   ],
19420	//   "parameters": {
19421	//     "name": {
19422	//       "description": "Required. Email address of the developer. Use the following structure in your request: `organizations/{org}/developers/{developer_email}`",
19423	//       "location": "path",
19424	//       "pattern": "^organizations/[^/]+/developers/[^/]+$",
19425	//       "required": true,
19426	//       "type": "string"
19427	//     }
19428	//   },
19429	//   "path": "v1/{+name}",
19430	//   "request": {
19431	//     "$ref": "GoogleCloudApigeeV1Developer"
19432	//   },
19433	//   "response": {
19434	//     "$ref": "GoogleCloudApigeeV1Developer"
19435	//   },
19436	//   "scopes": [
19437	//     "https://www.googleapis.com/auth/cloud-platform"
19438	//   ]
19439	// }
19440
19441}
19442
19443// method id "apigee.organizations.developers.updateMonetizationConfig":
19444
19445type OrganizationsDevelopersUpdateMonetizationConfigCall struct {
19446	s                                              *Service
19447	name                                           string
19448	googlecloudapigeev1developermonetizationconfig *GoogleCloudApigeeV1DeveloperMonetizationConfig
19449	urlParams_                                     gensupport.URLParams
19450	ctx_                                           context.Context
19451	header_                                        http.Header
19452}
19453
19454// UpdateMonetizationConfig: Updates the monetization configuration for
19455// the developer.
19456//
19457// - name: Monetization configuration for the developer. Use the
19458//   following structure in your request:
19459//   `organizations/{org}/developers/{developer}/monetizationConfig`.
19460func (r *OrganizationsDevelopersService) UpdateMonetizationConfig(name string, googlecloudapigeev1developermonetizationconfig *GoogleCloudApigeeV1DeveloperMonetizationConfig) *OrganizationsDevelopersUpdateMonetizationConfigCall {
19461	c := &OrganizationsDevelopersUpdateMonetizationConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19462	c.name = name
19463	c.googlecloudapigeev1developermonetizationconfig = googlecloudapigeev1developermonetizationconfig
19464	return c
19465}
19466
19467// Fields allows partial responses to be retrieved. See
19468// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19469// for more information.
19470func (c *OrganizationsDevelopersUpdateMonetizationConfigCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersUpdateMonetizationConfigCall {
19471	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19472	return c
19473}
19474
19475// Context sets the context to be used in this call's Do method. Any
19476// pending HTTP request will be aborted if the provided context is
19477// canceled.
19478func (c *OrganizationsDevelopersUpdateMonetizationConfigCall) Context(ctx context.Context) *OrganizationsDevelopersUpdateMonetizationConfigCall {
19479	c.ctx_ = ctx
19480	return c
19481}
19482
19483// Header returns an http.Header that can be modified by the caller to
19484// add HTTP headers to the request.
19485func (c *OrganizationsDevelopersUpdateMonetizationConfigCall) Header() http.Header {
19486	if c.header_ == nil {
19487		c.header_ = make(http.Header)
19488	}
19489	return c.header_
19490}
19491
19492func (c *OrganizationsDevelopersUpdateMonetizationConfigCall) doRequest(alt string) (*http.Response, error) {
19493	reqHeaders := make(http.Header)
19494	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
19495	for k, v := range c.header_ {
19496		reqHeaders[k] = v
19497	}
19498	reqHeaders.Set("User-Agent", c.s.userAgent())
19499	var body io.Reader = nil
19500	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developermonetizationconfig)
19501	if err != nil {
19502		return nil, err
19503	}
19504	reqHeaders.Set("Content-Type", "application/json")
19505	c.urlParams_.Set("alt", alt)
19506	c.urlParams_.Set("prettyPrint", "false")
19507	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
19508	urls += "?" + c.urlParams_.Encode()
19509	req, err := http.NewRequest("PUT", urls, body)
19510	if err != nil {
19511		return nil, err
19512	}
19513	req.Header = reqHeaders
19514	googleapi.Expand(req.URL, map[string]string{
19515		"name": c.name,
19516	})
19517	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19518}
19519
19520// Do executes the "apigee.organizations.developers.updateMonetizationConfig" call.
19521// Exactly one of *GoogleCloudApigeeV1DeveloperMonetizationConfig or
19522// error will be non-nil. Any non-2xx status code is an error. Response
19523// headers are in either
19524// *GoogleCloudApigeeV1DeveloperMonetizationConfig.ServerResponse.Header
19525// or (if a response was returned at all) in
19526// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
19527// whether the returned error was because http.StatusNotModified was
19528// returned.
19529func (c *OrganizationsDevelopersUpdateMonetizationConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperMonetizationConfig, error) {
19530	gensupport.SetOptions(c.urlParams_, opts...)
19531	res, err := c.doRequest("json")
19532	if res != nil && res.StatusCode == http.StatusNotModified {
19533		if res.Body != nil {
19534			res.Body.Close()
19535		}
19536		return nil, &googleapi.Error{
19537			Code:   res.StatusCode,
19538			Header: res.Header,
19539		}
19540	}
19541	if err != nil {
19542		return nil, err
19543	}
19544	defer googleapi.CloseBody(res)
19545	if err := googleapi.CheckResponse(res); err != nil {
19546		return nil, err
19547	}
19548	ret := &GoogleCloudApigeeV1DeveloperMonetizationConfig{
19549		ServerResponse: googleapi.ServerResponse{
19550			Header:         res.Header,
19551			HTTPStatusCode: res.StatusCode,
19552		},
19553	}
19554	target := &ret
19555	if err := gensupport.DecodeResponse(target, res); err != nil {
19556		return nil, err
19557	}
19558	return ret, nil
19559	// {
19560	//   "description": "Updates the monetization configuration for the developer.",
19561	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/monetizationConfig",
19562	//   "httpMethod": "PUT",
19563	//   "id": "apigee.organizations.developers.updateMonetizationConfig",
19564	//   "parameterOrder": [
19565	//     "name"
19566	//   ],
19567	//   "parameters": {
19568	//     "name": {
19569	//       "description": "Required. Monetization configuration for the developer. Use the following structure in your request: `organizations/{org}/developers/{developer}/monetizationConfig`",
19570	//       "location": "path",
19571	//       "pattern": "^organizations/[^/]+/developers/[^/]+/monetizationConfig$",
19572	//       "required": true,
19573	//       "type": "string"
19574	//     }
19575	//   },
19576	//   "path": "v1/{+name}",
19577	//   "request": {
19578	//     "$ref": "GoogleCloudApigeeV1DeveloperMonetizationConfig"
19579	//   },
19580	//   "response": {
19581	//     "$ref": "GoogleCloudApigeeV1DeveloperMonetizationConfig"
19582	//   },
19583	//   "scopes": [
19584	//     "https://www.googleapis.com/auth/cloud-platform"
19585	//   ]
19586	// }
19587
19588}
19589
19590// method id "apigee.organizations.developers.apps.attributes":
19591
19592type OrganizationsDevelopersAppsAttributesCall struct {
19593	s                             *Service
19594	name                          string
19595	googlecloudapigeev1attributes *GoogleCloudApigeeV1Attributes
19596	urlParams_                    gensupport.URLParams
19597	ctx_                          context.Context
19598	header_                       http.Header
19599}
19600
19601// Attributes: Updates attributes for a developer app. This API replaces
19602// the current attributes with those specified in the request.
19603//
19604// - name: Name of the developer app. Use the following structure in
19605//   your request:
19606//   `organizations/{org}/developers/{developer_email}/apps/{app}`.
19607func (r *OrganizationsDevelopersAppsService) Attributes(name string, googlecloudapigeev1attributes *GoogleCloudApigeeV1Attributes) *OrganizationsDevelopersAppsAttributesCall {
19608	c := &OrganizationsDevelopersAppsAttributesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19609	c.name = name
19610	c.googlecloudapigeev1attributes = googlecloudapigeev1attributes
19611	return c
19612}
19613
19614// Fields allows partial responses to be retrieved. See
19615// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19616// for more information.
19617func (c *OrganizationsDevelopersAppsAttributesCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsAttributesCall {
19618	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19619	return c
19620}
19621
19622// Context sets the context to be used in this call's Do method. Any
19623// pending HTTP request will be aborted if the provided context is
19624// canceled.
19625func (c *OrganizationsDevelopersAppsAttributesCall) Context(ctx context.Context) *OrganizationsDevelopersAppsAttributesCall {
19626	c.ctx_ = ctx
19627	return c
19628}
19629
19630// Header returns an http.Header that can be modified by the caller to
19631// add HTTP headers to the request.
19632func (c *OrganizationsDevelopersAppsAttributesCall) Header() http.Header {
19633	if c.header_ == nil {
19634		c.header_ = make(http.Header)
19635	}
19636	return c.header_
19637}
19638
19639func (c *OrganizationsDevelopersAppsAttributesCall) doRequest(alt string) (*http.Response, error) {
19640	reqHeaders := make(http.Header)
19641	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
19642	for k, v := range c.header_ {
19643		reqHeaders[k] = v
19644	}
19645	reqHeaders.Set("User-Agent", c.s.userAgent())
19646	var body io.Reader = nil
19647	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1attributes)
19648	if err != nil {
19649		return nil, err
19650	}
19651	reqHeaders.Set("Content-Type", "application/json")
19652	c.urlParams_.Set("alt", alt)
19653	c.urlParams_.Set("prettyPrint", "false")
19654	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/attributes")
19655	urls += "?" + c.urlParams_.Encode()
19656	req, err := http.NewRequest("POST", urls, body)
19657	if err != nil {
19658		return nil, err
19659	}
19660	req.Header = reqHeaders
19661	googleapi.Expand(req.URL, map[string]string{
19662		"name": c.name,
19663	})
19664	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19665}
19666
19667// Do executes the "apigee.organizations.developers.apps.attributes" call.
19668// Exactly one of *GoogleCloudApigeeV1Attributes or error will be
19669// non-nil. Any non-2xx status code is an error. Response headers are in
19670// either *GoogleCloudApigeeV1Attributes.ServerResponse.Header or (if a
19671// response was returned at all) in error.(*googleapi.Error).Header. Use
19672// googleapi.IsNotModified to check whether the returned error was
19673// because http.StatusNotModified was returned.
19674func (c *OrganizationsDevelopersAppsAttributesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attributes, error) {
19675	gensupport.SetOptions(c.urlParams_, opts...)
19676	res, err := c.doRequest("json")
19677	if res != nil && res.StatusCode == http.StatusNotModified {
19678		if res.Body != nil {
19679			res.Body.Close()
19680		}
19681		return nil, &googleapi.Error{
19682			Code:   res.StatusCode,
19683			Header: res.Header,
19684		}
19685	}
19686	if err != nil {
19687		return nil, err
19688	}
19689	defer googleapi.CloseBody(res)
19690	if err := googleapi.CheckResponse(res); err != nil {
19691		return nil, err
19692	}
19693	ret := &GoogleCloudApigeeV1Attributes{
19694		ServerResponse: googleapi.ServerResponse{
19695			Header:         res.Header,
19696			HTTPStatusCode: res.StatusCode,
19697		},
19698	}
19699	target := &ret
19700	if err := gensupport.DecodeResponse(target, res); err != nil {
19701		return nil, err
19702	}
19703	return ret, nil
19704	// {
19705	//   "description": "Updates attributes for a developer app. This API replaces the current attributes with those specified in the request.",
19706	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/attributes",
19707	//   "httpMethod": "POST",
19708	//   "id": "apigee.organizations.developers.apps.attributes",
19709	//   "parameterOrder": [
19710	//     "name"
19711	//   ],
19712	//   "parameters": {
19713	//     "name": {
19714	//       "description": "Required. Name of the developer app. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}`",
19715	//       "location": "path",
19716	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$",
19717	//       "required": true,
19718	//       "type": "string"
19719	//     }
19720	//   },
19721	//   "path": "v1/{+name}/attributes",
19722	//   "request": {
19723	//     "$ref": "GoogleCloudApigeeV1Attributes"
19724	//   },
19725	//   "response": {
19726	//     "$ref": "GoogleCloudApigeeV1Attributes"
19727	//   },
19728	//   "scopes": [
19729	//     "https://www.googleapis.com/auth/cloud-platform"
19730	//   ]
19731	// }
19732
19733}
19734
19735// method id "apigee.organizations.developers.apps.create":
19736
19737type OrganizationsDevelopersAppsCreateCall struct {
19738	s                               *Service
19739	parent                          string
19740	googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp
19741	urlParams_                      gensupport.URLParams
19742	ctx_                            context.Context
19743	header_                         http.Header
19744}
19745
19746// Create: Creates an app associated with a developer. This API
19747// associates the developer app with the specified API product and
19748// auto-generates an API key for the app to use in calls to API proxies
19749// inside that API product. The `name` is the unique ID of the app that
19750// you can use in API calls. The `DisplayName` (set as an attribute)
19751// appears in the UI. If you don't set the `DisplayName` attribute, the
19752// `name` appears in the UI.
19753//
19754// - parent: Name of the developer. Use the following structure in your
19755//   request: `organizations/{org}/developers/{developer_email}`.
19756func (r *OrganizationsDevelopersAppsService) Create(parent string, googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp) *OrganizationsDevelopersAppsCreateCall {
19757	c := &OrganizationsDevelopersAppsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19758	c.parent = parent
19759	c.googlecloudapigeev1developerapp = googlecloudapigeev1developerapp
19760	return c
19761}
19762
19763// Fields allows partial responses to be retrieved. See
19764// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19765// for more information.
19766func (c *OrganizationsDevelopersAppsCreateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsCreateCall {
19767	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19768	return c
19769}
19770
19771// Context sets the context to be used in this call's Do method. Any
19772// pending HTTP request will be aborted if the provided context is
19773// canceled.
19774func (c *OrganizationsDevelopersAppsCreateCall) Context(ctx context.Context) *OrganizationsDevelopersAppsCreateCall {
19775	c.ctx_ = ctx
19776	return c
19777}
19778
19779// Header returns an http.Header that can be modified by the caller to
19780// add HTTP headers to the request.
19781func (c *OrganizationsDevelopersAppsCreateCall) Header() http.Header {
19782	if c.header_ == nil {
19783		c.header_ = make(http.Header)
19784	}
19785	return c.header_
19786}
19787
19788func (c *OrganizationsDevelopersAppsCreateCall) doRequest(alt string) (*http.Response, error) {
19789	reqHeaders := make(http.Header)
19790	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
19791	for k, v := range c.header_ {
19792		reqHeaders[k] = v
19793	}
19794	reqHeaders.Set("User-Agent", c.s.userAgent())
19795	var body io.Reader = nil
19796	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerapp)
19797	if err != nil {
19798		return nil, err
19799	}
19800	reqHeaders.Set("Content-Type", "application/json")
19801	c.urlParams_.Set("alt", alt)
19802	c.urlParams_.Set("prettyPrint", "false")
19803	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apps")
19804	urls += "?" + c.urlParams_.Encode()
19805	req, err := http.NewRequest("POST", urls, body)
19806	if err != nil {
19807		return nil, err
19808	}
19809	req.Header = reqHeaders
19810	googleapi.Expand(req.URL, map[string]string{
19811		"parent": c.parent,
19812	})
19813	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19814}
19815
19816// Do executes the "apigee.organizations.developers.apps.create" call.
19817// Exactly one of *GoogleCloudApigeeV1DeveloperApp or error will be
19818// non-nil. Any non-2xx status code is an error. Response headers are in
19819// either *GoogleCloudApigeeV1DeveloperApp.ServerResponse.Header or (if
19820// a response was returned at all) in error.(*googleapi.Error).Header.
19821// Use googleapi.IsNotModified to check whether the returned error was
19822// because http.StatusNotModified was returned.
19823func (c *OrganizationsDevelopersAppsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperApp, error) {
19824	gensupport.SetOptions(c.urlParams_, opts...)
19825	res, err := c.doRequest("json")
19826	if res != nil && res.StatusCode == http.StatusNotModified {
19827		if res.Body != nil {
19828			res.Body.Close()
19829		}
19830		return nil, &googleapi.Error{
19831			Code:   res.StatusCode,
19832			Header: res.Header,
19833		}
19834	}
19835	if err != nil {
19836		return nil, err
19837	}
19838	defer googleapi.CloseBody(res)
19839	if err := googleapi.CheckResponse(res); err != nil {
19840		return nil, err
19841	}
19842	ret := &GoogleCloudApigeeV1DeveloperApp{
19843		ServerResponse: googleapi.ServerResponse{
19844			Header:         res.Header,
19845			HTTPStatusCode: res.StatusCode,
19846		},
19847	}
19848	target := &ret
19849	if err := gensupport.DecodeResponse(target, res); err != nil {
19850		return nil, err
19851	}
19852	return ret, nil
19853	// {
19854	//   "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.",
19855	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps",
19856	//   "httpMethod": "POST",
19857	//   "id": "apigee.organizations.developers.apps.create",
19858	//   "parameterOrder": [
19859	//     "parent"
19860	//   ],
19861	//   "parameters": {
19862	//     "parent": {
19863	//       "description": "Required. Name of the developer. Use the following structure in your request: `organizations/{org}/developers/{developer_email}`",
19864	//       "location": "path",
19865	//       "pattern": "^organizations/[^/]+/developers/[^/]+$",
19866	//       "required": true,
19867	//       "type": "string"
19868	//     }
19869	//   },
19870	//   "path": "v1/{+parent}/apps",
19871	//   "request": {
19872	//     "$ref": "GoogleCloudApigeeV1DeveloperApp"
19873	//   },
19874	//   "response": {
19875	//     "$ref": "GoogleCloudApigeeV1DeveloperApp"
19876	//   },
19877	//   "scopes": [
19878	//     "https://www.googleapis.com/auth/cloud-platform"
19879	//   ]
19880	// }
19881
19882}
19883
19884// method id "apigee.organizations.developers.apps.delete":
19885
19886type OrganizationsDevelopersAppsDeleteCall struct {
19887	s          *Service
19888	name       string
19889	urlParams_ gensupport.URLParams
19890	ctx_       context.Context
19891	header_    http.Header
19892}
19893
19894// Delete: Deletes a developer app. **Note**: The delete operation is
19895// asynchronous. The developer app is deleted immediately, but its
19896// associated resources, such as app keys or access tokens, may take
19897// anywhere from a few seconds to a few minutes to be deleted.
19898//
19899// - name: Name of the developer app. Use the following structure in
19900//   your request:
19901//   `organizations/{org}/developers/{developer_email}/apps/{app}`.
19902func (r *OrganizationsDevelopersAppsService) Delete(name string) *OrganizationsDevelopersAppsDeleteCall {
19903	c := &OrganizationsDevelopersAppsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19904	c.name = name
19905	return c
19906}
19907
19908// Fields allows partial responses to be retrieved. See
19909// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19910// for more information.
19911func (c *OrganizationsDevelopersAppsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsDeleteCall {
19912	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19913	return c
19914}
19915
19916// Context sets the context to be used in this call's Do method. Any
19917// pending HTTP request will be aborted if the provided context is
19918// canceled.
19919func (c *OrganizationsDevelopersAppsDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersAppsDeleteCall {
19920	c.ctx_ = ctx
19921	return c
19922}
19923
19924// Header returns an http.Header that can be modified by the caller to
19925// add HTTP headers to the request.
19926func (c *OrganizationsDevelopersAppsDeleteCall) Header() http.Header {
19927	if c.header_ == nil {
19928		c.header_ = make(http.Header)
19929	}
19930	return c.header_
19931}
19932
19933func (c *OrganizationsDevelopersAppsDeleteCall) doRequest(alt string) (*http.Response, error) {
19934	reqHeaders := make(http.Header)
19935	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
19936	for k, v := range c.header_ {
19937		reqHeaders[k] = v
19938	}
19939	reqHeaders.Set("User-Agent", c.s.userAgent())
19940	var body io.Reader = nil
19941	c.urlParams_.Set("alt", alt)
19942	c.urlParams_.Set("prettyPrint", "false")
19943	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
19944	urls += "?" + c.urlParams_.Encode()
19945	req, err := http.NewRequest("DELETE", urls, body)
19946	if err != nil {
19947		return nil, err
19948	}
19949	req.Header = reqHeaders
19950	googleapi.Expand(req.URL, map[string]string{
19951		"name": c.name,
19952	})
19953	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19954}
19955
19956// Do executes the "apigee.organizations.developers.apps.delete" call.
19957// Exactly one of *GoogleCloudApigeeV1DeveloperApp or error will be
19958// non-nil. Any non-2xx status code is an error. Response headers are in
19959// either *GoogleCloudApigeeV1DeveloperApp.ServerResponse.Header or (if
19960// a response was returned at all) in error.(*googleapi.Error).Header.
19961// Use googleapi.IsNotModified to check whether the returned error was
19962// because http.StatusNotModified was returned.
19963func (c *OrganizationsDevelopersAppsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperApp, error) {
19964	gensupport.SetOptions(c.urlParams_, opts...)
19965	res, err := c.doRequest("json")
19966	if res != nil && res.StatusCode == http.StatusNotModified {
19967		if res.Body != nil {
19968			res.Body.Close()
19969		}
19970		return nil, &googleapi.Error{
19971			Code:   res.StatusCode,
19972			Header: res.Header,
19973		}
19974	}
19975	if err != nil {
19976		return nil, err
19977	}
19978	defer googleapi.CloseBody(res)
19979	if err := googleapi.CheckResponse(res); err != nil {
19980		return nil, err
19981	}
19982	ret := &GoogleCloudApigeeV1DeveloperApp{
19983		ServerResponse: googleapi.ServerResponse{
19984			Header:         res.Header,
19985			HTTPStatusCode: res.StatusCode,
19986		},
19987	}
19988	target := &ret
19989	if err := gensupport.DecodeResponse(target, res); err != nil {
19990		return nil, err
19991	}
19992	return ret, nil
19993	// {
19994	//   "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.",
19995	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}",
19996	//   "httpMethod": "DELETE",
19997	//   "id": "apigee.organizations.developers.apps.delete",
19998	//   "parameterOrder": [
19999	//     "name"
20000	//   ],
20001	//   "parameters": {
20002	//     "name": {
20003	//       "description": "Required. Name of the developer app. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}`",
20004	//       "location": "path",
20005	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$",
20006	//       "required": true,
20007	//       "type": "string"
20008	//     }
20009	//   },
20010	//   "path": "v1/{+name}",
20011	//   "response": {
20012	//     "$ref": "GoogleCloudApigeeV1DeveloperApp"
20013	//   },
20014	//   "scopes": [
20015	//     "https://www.googleapis.com/auth/cloud-platform"
20016	//   ]
20017	// }
20018
20019}
20020
20021// method id "apigee.organizations.developers.apps.generateKeyPairOrUpdateDeveloperAppStatus":
20022
20023type OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall struct {
20024	s                               *Service
20025	name                            string
20026	googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp
20027	urlParams_                      gensupport.URLParams
20028	ctx_                            context.Context
20029	header_                         http.Header
20030}
20031
20032// GenerateKeyPairOrUpdateDeveloperAppStatus: Manages access to a
20033// developer app by enabling you to: * Approve or revoke a developer app
20034// * Generate a new consumer key and secret for a developer app To
20035// approve or revoke a developer app, set the `action` query parameter
20036// to `approved` or `revoked`, respectively, and the `Content-Type`
20037// header to `application/octet-stream`. If a developer app is revoked,
20038// none of its API keys are valid for API calls even though the keys are
20039// still `approved`. If successful, the API call returns the following
20040// HTTP status code: `204 No Content` To generate a new consumer key and
20041// secret for a developer app, pass the new key/secret details. Rather
20042// than replace an existing key, this API generates a new key. In this
20043// case, multiple key pairs may be associated with a single developer
20044// app. Each key pair has an independent status (`approved` or
20045// `revoked`) and expiration time. Any approved, non-expired key can be
20046// used in an API call. For example, if you're using API key rotation,
20047// you can generate new keys with expiration times that overlap keys
20048// that are going to expire. You might also generate a new consumer
20049// key/secret if the security of the original key/secret is compromised.
20050// The `keyExpiresIn` property defines the expiration time for the API
20051// key in milliseconds. If you don't set this property or set it to
20052// `-1`, the API key never expires. **Notes**: * When generating a new
20053// key/secret, this API replaces the existing attributes, notes, and
20054// callback URLs with those specified in the request. Include or exclude
20055// any existing information that you want to retain or delete,
20056// respectively. * To migrate existing consumer keys and secrets to
20057// hybrid from another system, see the CreateDeveloperAppKey API.
20058//
20059// - name: Name of the developer app. Use the following structure in
20060//   your request:
20061//   `organizations/{org}/developers/{developer_email}/apps/{app}`.
20062func (r *OrganizationsDevelopersAppsService) GenerateKeyPairOrUpdateDeveloperAppStatus(name string, googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp) *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall {
20063	c := &OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20064	c.name = name
20065	c.googlecloudapigeev1developerapp = googlecloudapigeev1developerapp
20066	return c
20067}
20068
20069// Action sets the optional parameter "action": Action. Valid values are
20070// `approve` or `revoke`.
20071func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) Action(action string) *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall {
20072	c.urlParams_.Set("action", action)
20073	return c
20074}
20075
20076// Fields allows partial responses to be retrieved. See
20077// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20078// for more information.
20079func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall {
20080	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20081	return c
20082}
20083
20084// Context sets the context to be used in this call's Do method. Any
20085// pending HTTP request will be aborted if the provided context is
20086// canceled.
20087func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) Context(ctx context.Context) *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall {
20088	c.ctx_ = ctx
20089	return c
20090}
20091
20092// Header returns an http.Header that can be modified by the caller to
20093// add HTTP headers to the request.
20094func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) Header() http.Header {
20095	if c.header_ == nil {
20096		c.header_ = make(http.Header)
20097	}
20098	return c.header_
20099}
20100
20101func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) doRequest(alt string) (*http.Response, error) {
20102	reqHeaders := make(http.Header)
20103	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
20104	for k, v := range c.header_ {
20105		reqHeaders[k] = v
20106	}
20107	reqHeaders.Set("User-Agent", c.s.userAgent())
20108	var body io.Reader = nil
20109	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerapp)
20110	if err != nil {
20111		return nil, err
20112	}
20113	reqHeaders.Set("Content-Type", "application/json")
20114	c.urlParams_.Set("alt", alt)
20115	c.urlParams_.Set("prettyPrint", "false")
20116	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
20117	urls += "?" + c.urlParams_.Encode()
20118	req, err := http.NewRequest("POST", urls, body)
20119	if err != nil {
20120		return nil, err
20121	}
20122	req.Header = reqHeaders
20123	googleapi.Expand(req.URL, map[string]string{
20124		"name": c.name,
20125	})
20126	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20127}
20128
20129// Do executes the "apigee.organizations.developers.apps.generateKeyPairOrUpdateDeveloperAppStatus" call.
20130// Exactly one of *GoogleCloudApigeeV1DeveloperApp or error will be
20131// non-nil. Any non-2xx status code is an error. Response headers are in
20132// either *GoogleCloudApigeeV1DeveloperApp.ServerResponse.Header or (if
20133// a response was returned at all) in error.(*googleapi.Error).Header.
20134// Use googleapi.IsNotModified to check whether the returned error was
20135// because http.StatusNotModified was returned.
20136func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperApp, error) {
20137	gensupport.SetOptions(c.urlParams_, opts...)
20138	res, err := c.doRequest("json")
20139	if res != nil && res.StatusCode == http.StatusNotModified {
20140		if res.Body != nil {
20141			res.Body.Close()
20142		}
20143		return nil, &googleapi.Error{
20144			Code:   res.StatusCode,
20145			Header: res.Header,
20146		}
20147	}
20148	if err != nil {
20149		return nil, err
20150	}
20151	defer googleapi.CloseBody(res)
20152	if err := googleapi.CheckResponse(res); err != nil {
20153		return nil, err
20154	}
20155	ret := &GoogleCloudApigeeV1DeveloperApp{
20156		ServerResponse: googleapi.ServerResponse{
20157			Header:         res.Header,
20158			HTTPStatusCode: res.StatusCode,
20159		},
20160	}
20161	target := &ret
20162	if err := gensupport.DecodeResponse(target, res); err != nil {
20163		return nil, err
20164	}
20165	return ret, nil
20166	// {
20167	//   "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.",
20168	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}",
20169	//   "httpMethod": "POST",
20170	//   "id": "apigee.organizations.developers.apps.generateKeyPairOrUpdateDeveloperAppStatus",
20171	//   "parameterOrder": [
20172	//     "name"
20173	//   ],
20174	//   "parameters": {
20175	//     "action": {
20176	//       "description": "Action. Valid values are `approve` or `revoke`.",
20177	//       "location": "query",
20178	//       "type": "string"
20179	//     },
20180	//     "name": {
20181	//       "description": "Required. Name of the developer app. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}`",
20182	//       "location": "path",
20183	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$",
20184	//       "required": true,
20185	//       "type": "string"
20186	//     }
20187	//   },
20188	//   "path": "v1/{+name}",
20189	//   "request": {
20190	//     "$ref": "GoogleCloudApigeeV1DeveloperApp"
20191	//   },
20192	//   "response": {
20193	//     "$ref": "GoogleCloudApigeeV1DeveloperApp"
20194	//   },
20195	//   "scopes": [
20196	//     "https://www.googleapis.com/auth/cloud-platform"
20197	//   ]
20198	// }
20199
20200}
20201
20202// method id "apigee.organizations.developers.apps.get":
20203
20204type OrganizationsDevelopersAppsGetCall struct {
20205	s            *Service
20206	name         string
20207	urlParams_   gensupport.URLParams
20208	ifNoneMatch_ string
20209	ctx_         context.Context
20210	header_      http.Header
20211}
20212
20213// Get: Returns the details for a developer app.
20214//
20215// - name: Name of the developer app. Use the following structure in
20216//   your request:
20217//   `organizations/{org}/developers/{developer_email}/apps/{app}`.
20218func (r *OrganizationsDevelopersAppsService) Get(name string) *OrganizationsDevelopersAppsGetCall {
20219	c := &OrganizationsDevelopersAppsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20220	c.name = name
20221	return c
20222}
20223
20224// Entity sets the optional parameter "entity": **Note**: Must be used
20225// in conjunction with the `query` parameter. Set to `apiresources` to
20226// return the number of API resources that have been approved for access
20227// by a developer app in the specified Apigee organization.
20228func (c *OrganizationsDevelopersAppsGetCall) Entity(entity string) *OrganizationsDevelopersAppsGetCall {
20229	c.urlParams_.Set("entity", entity)
20230	return c
20231}
20232
20233// Query sets the optional parameter "query": **Note**: Must be used in
20234// conjunction with the `entity` parameter. Set to `count` to return the
20235// number of API resources that have been approved for access by a
20236// developer app in the specified Apigee organization.
20237func (c *OrganizationsDevelopersAppsGetCall) Query(query string) *OrganizationsDevelopersAppsGetCall {
20238	c.urlParams_.Set("query", query)
20239	return c
20240}
20241
20242// Fields allows partial responses to be retrieved. See
20243// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20244// for more information.
20245func (c *OrganizationsDevelopersAppsGetCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsGetCall {
20246	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20247	return c
20248}
20249
20250// IfNoneMatch sets the optional parameter which makes the operation
20251// fail if the object's ETag matches the given value. This is useful for
20252// getting updates only after the object has changed since the last
20253// request. Use googleapi.IsNotModified to check whether the response
20254// error from Do is the result of In-None-Match.
20255func (c *OrganizationsDevelopersAppsGetCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAppsGetCall {
20256	c.ifNoneMatch_ = entityTag
20257	return c
20258}
20259
20260// Context sets the context to be used in this call's Do method. Any
20261// pending HTTP request will be aborted if the provided context is
20262// canceled.
20263func (c *OrganizationsDevelopersAppsGetCall) Context(ctx context.Context) *OrganizationsDevelopersAppsGetCall {
20264	c.ctx_ = ctx
20265	return c
20266}
20267
20268// Header returns an http.Header that can be modified by the caller to
20269// add HTTP headers to the request.
20270func (c *OrganizationsDevelopersAppsGetCall) Header() http.Header {
20271	if c.header_ == nil {
20272		c.header_ = make(http.Header)
20273	}
20274	return c.header_
20275}
20276
20277func (c *OrganizationsDevelopersAppsGetCall) doRequest(alt string) (*http.Response, error) {
20278	reqHeaders := make(http.Header)
20279	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
20280	for k, v := range c.header_ {
20281		reqHeaders[k] = v
20282	}
20283	reqHeaders.Set("User-Agent", c.s.userAgent())
20284	if c.ifNoneMatch_ != "" {
20285		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
20286	}
20287	var body io.Reader = nil
20288	c.urlParams_.Set("alt", alt)
20289	c.urlParams_.Set("prettyPrint", "false")
20290	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
20291	urls += "?" + c.urlParams_.Encode()
20292	req, err := http.NewRequest("GET", urls, body)
20293	if err != nil {
20294		return nil, err
20295	}
20296	req.Header = reqHeaders
20297	googleapi.Expand(req.URL, map[string]string{
20298		"name": c.name,
20299	})
20300	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20301}
20302
20303// Do executes the "apigee.organizations.developers.apps.get" call.
20304// Exactly one of *GoogleCloudApigeeV1DeveloperApp or error will be
20305// non-nil. Any non-2xx status code is an error. Response headers are in
20306// either *GoogleCloudApigeeV1DeveloperApp.ServerResponse.Header or (if
20307// a response was returned at all) in error.(*googleapi.Error).Header.
20308// Use googleapi.IsNotModified to check whether the returned error was
20309// because http.StatusNotModified was returned.
20310func (c *OrganizationsDevelopersAppsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperApp, error) {
20311	gensupport.SetOptions(c.urlParams_, opts...)
20312	res, err := c.doRequest("json")
20313	if res != nil && res.StatusCode == http.StatusNotModified {
20314		if res.Body != nil {
20315			res.Body.Close()
20316		}
20317		return nil, &googleapi.Error{
20318			Code:   res.StatusCode,
20319			Header: res.Header,
20320		}
20321	}
20322	if err != nil {
20323		return nil, err
20324	}
20325	defer googleapi.CloseBody(res)
20326	if err := googleapi.CheckResponse(res); err != nil {
20327		return nil, err
20328	}
20329	ret := &GoogleCloudApigeeV1DeveloperApp{
20330		ServerResponse: googleapi.ServerResponse{
20331			Header:         res.Header,
20332			HTTPStatusCode: res.StatusCode,
20333		},
20334	}
20335	target := &ret
20336	if err := gensupport.DecodeResponse(target, res); err != nil {
20337		return nil, err
20338	}
20339	return ret, nil
20340	// {
20341	//   "description": "Returns the details for a developer app.",
20342	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}",
20343	//   "httpMethod": "GET",
20344	//   "id": "apigee.organizations.developers.apps.get",
20345	//   "parameterOrder": [
20346	//     "name"
20347	//   ],
20348	//   "parameters": {
20349	//     "entity": {
20350	//       "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.",
20351	//       "location": "query",
20352	//       "type": "string"
20353	//     },
20354	//     "name": {
20355	//       "description": "Required. Name of the developer app. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}`",
20356	//       "location": "path",
20357	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$",
20358	//       "required": true,
20359	//       "type": "string"
20360	//     },
20361	//     "query": {
20362	//       "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.",
20363	//       "location": "query",
20364	//       "type": "string"
20365	//     }
20366	//   },
20367	//   "path": "v1/{+name}",
20368	//   "response": {
20369	//     "$ref": "GoogleCloudApigeeV1DeveloperApp"
20370	//   },
20371	//   "scopes": [
20372	//     "https://www.googleapis.com/auth/cloud-platform"
20373	//   ]
20374	// }
20375
20376}
20377
20378// method id "apigee.organizations.developers.apps.list":
20379
20380type OrganizationsDevelopersAppsListCall struct {
20381	s            *Service
20382	parent       string
20383	urlParams_   gensupport.URLParams
20384	ifNoneMatch_ string
20385	ctx_         context.Context
20386	header_      http.Header
20387}
20388
20389// List: Lists all apps created by a developer in an Apigee
20390// organization. Optionally, you can request an expanded view of the
20391// developer apps. A maximum of 100 developer apps are returned per API
20392// call. You can paginate the list of deveoper apps returned using the
20393// `startKey` and `count` query parameters.
20394//
20395// - parent: Name of the developer. Use the following structure in your
20396//   request: `organizations/{org}/developers/{developer_email}`.
20397func (r *OrganizationsDevelopersAppsService) List(parent string) *OrganizationsDevelopersAppsListCall {
20398	c := &OrganizationsDevelopersAppsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20399	c.parent = parent
20400	return c
20401}
20402
20403// Count sets the optional parameter "count": Number of developer apps
20404// to return in the API call. Use with the `startKey` parameter to
20405// provide more targeted filtering. The limit is 1000.
20406func (c *OrganizationsDevelopersAppsListCall) Count(count int64) *OrganizationsDevelopersAppsListCall {
20407	c.urlParams_.Set("count", fmt.Sprint(count))
20408	return c
20409}
20410
20411// Expand sets the optional parameter "expand": Specifies whether to
20412// expand the results. Set to `true` to expand the results. This query
20413// parameter is not valid if you use the `count` or `startKey` query
20414// parameters.
20415func (c *OrganizationsDevelopersAppsListCall) Expand(expand bool) *OrganizationsDevelopersAppsListCall {
20416	c.urlParams_.Set("expand", fmt.Sprint(expand))
20417	return c
20418}
20419
20420// ShallowExpand sets the optional parameter "shallowExpand": Specifies
20421// whether to expand the results in shallow mode. Set to `true` to
20422// expand the results in shallow mode.
20423func (c *OrganizationsDevelopersAppsListCall) ShallowExpand(shallowExpand bool) *OrganizationsDevelopersAppsListCall {
20424	c.urlParams_.Set("shallowExpand", fmt.Sprint(shallowExpand))
20425	return c
20426}
20427
20428// StartKey sets the optional parameter "startKey": **Note**: Must be
20429// used in conjunction with the `count` parameter. Name of the developer
20430// app from which to start displaying the list of developer apps. For
20431// example, if you're returning 50 developer apps at a time (using the
20432// `count` query parameter), you can view developer apps 50-99 by
20433// entering the name of the 50th developer app. The developer app name
20434// is case sensitive.
20435func (c *OrganizationsDevelopersAppsListCall) StartKey(startKey string) *OrganizationsDevelopersAppsListCall {
20436	c.urlParams_.Set("startKey", startKey)
20437	return c
20438}
20439
20440// Fields allows partial responses to be retrieved. See
20441// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20442// for more information.
20443func (c *OrganizationsDevelopersAppsListCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsListCall {
20444	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20445	return c
20446}
20447
20448// IfNoneMatch sets the optional parameter which makes the operation
20449// fail if the object's ETag matches the given value. This is useful for
20450// getting updates only after the object has changed since the last
20451// request. Use googleapi.IsNotModified to check whether the response
20452// error from Do is the result of In-None-Match.
20453func (c *OrganizationsDevelopersAppsListCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAppsListCall {
20454	c.ifNoneMatch_ = entityTag
20455	return c
20456}
20457
20458// Context sets the context to be used in this call's Do method. Any
20459// pending HTTP request will be aborted if the provided context is
20460// canceled.
20461func (c *OrganizationsDevelopersAppsListCall) Context(ctx context.Context) *OrganizationsDevelopersAppsListCall {
20462	c.ctx_ = ctx
20463	return c
20464}
20465
20466// Header returns an http.Header that can be modified by the caller to
20467// add HTTP headers to the request.
20468func (c *OrganizationsDevelopersAppsListCall) Header() http.Header {
20469	if c.header_ == nil {
20470		c.header_ = make(http.Header)
20471	}
20472	return c.header_
20473}
20474
20475func (c *OrganizationsDevelopersAppsListCall) doRequest(alt string) (*http.Response, error) {
20476	reqHeaders := make(http.Header)
20477	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
20478	for k, v := range c.header_ {
20479		reqHeaders[k] = v
20480	}
20481	reqHeaders.Set("User-Agent", c.s.userAgent())
20482	if c.ifNoneMatch_ != "" {
20483		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
20484	}
20485	var body io.Reader = nil
20486	c.urlParams_.Set("alt", alt)
20487	c.urlParams_.Set("prettyPrint", "false")
20488	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apps")
20489	urls += "?" + c.urlParams_.Encode()
20490	req, err := http.NewRequest("GET", urls, body)
20491	if err != nil {
20492		return nil, err
20493	}
20494	req.Header = reqHeaders
20495	googleapi.Expand(req.URL, map[string]string{
20496		"parent": c.parent,
20497	})
20498	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20499}
20500
20501// Do executes the "apigee.organizations.developers.apps.list" call.
20502// Exactly one of *GoogleCloudApigeeV1ListDeveloperAppsResponse or error
20503// will be non-nil. Any non-2xx status code is an error. Response
20504// headers are in either
20505// *GoogleCloudApigeeV1ListDeveloperAppsResponse.ServerResponse.Header
20506// or (if a response was returned at all) in
20507// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
20508// whether the returned error was because http.StatusNotModified was
20509// returned.
20510func (c *OrganizationsDevelopersAppsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeveloperAppsResponse, error) {
20511	gensupport.SetOptions(c.urlParams_, opts...)
20512	res, err := c.doRequest("json")
20513	if res != nil && res.StatusCode == http.StatusNotModified {
20514		if res.Body != nil {
20515			res.Body.Close()
20516		}
20517		return nil, &googleapi.Error{
20518			Code:   res.StatusCode,
20519			Header: res.Header,
20520		}
20521	}
20522	if err != nil {
20523		return nil, err
20524	}
20525	defer googleapi.CloseBody(res)
20526	if err := googleapi.CheckResponse(res); err != nil {
20527		return nil, err
20528	}
20529	ret := &GoogleCloudApigeeV1ListDeveloperAppsResponse{
20530		ServerResponse: googleapi.ServerResponse{
20531			Header:         res.Header,
20532			HTTPStatusCode: res.StatusCode,
20533		},
20534	}
20535	target := &ret
20536	if err := gensupport.DecodeResponse(target, res); err != nil {
20537		return nil, err
20538	}
20539	return ret, nil
20540	// {
20541	//   "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.",
20542	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps",
20543	//   "httpMethod": "GET",
20544	//   "id": "apigee.organizations.developers.apps.list",
20545	//   "parameterOrder": [
20546	//     "parent"
20547	//   ],
20548	//   "parameters": {
20549	//     "count": {
20550	//       "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.",
20551	//       "format": "int64",
20552	//       "location": "query",
20553	//       "type": "string"
20554	//     },
20555	//     "expand": {
20556	//       "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.",
20557	//       "location": "query",
20558	//       "type": "boolean"
20559	//     },
20560	//     "parent": {
20561	//       "description": "Required. Name of the developer. Use the following structure in your request: `organizations/{org}/developers/{developer_email}`",
20562	//       "location": "path",
20563	//       "pattern": "^organizations/[^/]+/developers/[^/]+$",
20564	//       "required": true,
20565	//       "type": "string"
20566	//     },
20567	//     "shallowExpand": {
20568	//       "description": "Optional. Specifies whether to expand the results in shallow mode. Set to `true` to expand the results in shallow mode.",
20569	//       "location": "query",
20570	//       "type": "boolean"
20571	//     },
20572	//     "startKey": {
20573	//       "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.",
20574	//       "location": "query",
20575	//       "type": "string"
20576	//     }
20577	//   },
20578	//   "path": "v1/{+parent}/apps",
20579	//   "response": {
20580	//     "$ref": "GoogleCloudApigeeV1ListDeveloperAppsResponse"
20581	//   },
20582	//   "scopes": [
20583	//     "https://www.googleapis.com/auth/cloud-platform"
20584	//   ]
20585	// }
20586
20587}
20588
20589// method id "apigee.organizations.developers.apps.update":
20590
20591type OrganizationsDevelopersAppsUpdateCall struct {
20592	s                               *Service
20593	name                            string
20594	googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp
20595	urlParams_                      gensupport.URLParams
20596	ctx_                            context.Context
20597	header_                         http.Header
20598}
20599
20600// Update: Updates the details for a developer app. In addition, you can
20601// add an API product to a developer app and automatically generate an
20602// API key for the app to use when calling APIs in the API product. If
20603// you want to use an existing API key for the API product, add the API
20604// product to the API key using the UpdateDeveloperAppKey API. Using
20605// this API, you cannot update the following: * App name as it is the
20606// primary key used to identify the app and cannot be changed. * Scopes
20607// associated with the app. Instead, use the ReplaceDeveloperAppKey API.
20608// This API replaces the existing attributes with those specified in the
20609// request. Include or exclude any existing attributes that you want to
20610// retain or delete, respectively.
20611//
20612// - name: Name of the developer app. Use the following structure in
20613//   your request:
20614//   `organizations/{org}/developers/{developer_email}/apps/{app}`.
20615func (r *OrganizationsDevelopersAppsService) Update(name string, googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp) *OrganizationsDevelopersAppsUpdateCall {
20616	c := &OrganizationsDevelopersAppsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20617	c.name = name
20618	c.googlecloudapigeev1developerapp = googlecloudapigeev1developerapp
20619	return c
20620}
20621
20622// Fields allows partial responses to be retrieved. See
20623// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20624// for more information.
20625func (c *OrganizationsDevelopersAppsUpdateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsUpdateCall {
20626	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20627	return c
20628}
20629
20630// Context sets the context to be used in this call's Do method. Any
20631// pending HTTP request will be aborted if the provided context is
20632// canceled.
20633func (c *OrganizationsDevelopersAppsUpdateCall) Context(ctx context.Context) *OrganizationsDevelopersAppsUpdateCall {
20634	c.ctx_ = ctx
20635	return c
20636}
20637
20638// Header returns an http.Header that can be modified by the caller to
20639// add HTTP headers to the request.
20640func (c *OrganizationsDevelopersAppsUpdateCall) Header() http.Header {
20641	if c.header_ == nil {
20642		c.header_ = make(http.Header)
20643	}
20644	return c.header_
20645}
20646
20647func (c *OrganizationsDevelopersAppsUpdateCall) doRequest(alt string) (*http.Response, error) {
20648	reqHeaders := make(http.Header)
20649	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
20650	for k, v := range c.header_ {
20651		reqHeaders[k] = v
20652	}
20653	reqHeaders.Set("User-Agent", c.s.userAgent())
20654	var body io.Reader = nil
20655	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerapp)
20656	if err != nil {
20657		return nil, err
20658	}
20659	reqHeaders.Set("Content-Type", "application/json")
20660	c.urlParams_.Set("alt", alt)
20661	c.urlParams_.Set("prettyPrint", "false")
20662	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
20663	urls += "?" + c.urlParams_.Encode()
20664	req, err := http.NewRequest("PUT", urls, body)
20665	if err != nil {
20666		return nil, err
20667	}
20668	req.Header = reqHeaders
20669	googleapi.Expand(req.URL, map[string]string{
20670		"name": c.name,
20671	})
20672	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20673}
20674
20675// Do executes the "apigee.organizations.developers.apps.update" call.
20676// Exactly one of *GoogleCloudApigeeV1DeveloperApp or error will be
20677// non-nil. Any non-2xx status code is an error. Response headers are in
20678// either *GoogleCloudApigeeV1DeveloperApp.ServerResponse.Header or (if
20679// a response was returned at all) in error.(*googleapi.Error).Header.
20680// Use googleapi.IsNotModified to check whether the returned error was
20681// because http.StatusNotModified was returned.
20682func (c *OrganizationsDevelopersAppsUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperApp, error) {
20683	gensupport.SetOptions(c.urlParams_, opts...)
20684	res, err := c.doRequest("json")
20685	if res != nil && res.StatusCode == http.StatusNotModified {
20686		if res.Body != nil {
20687			res.Body.Close()
20688		}
20689		return nil, &googleapi.Error{
20690			Code:   res.StatusCode,
20691			Header: res.Header,
20692		}
20693	}
20694	if err != nil {
20695		return nil, err
20696	}
20697	defer googleapi.CloseBody(res)
20698	if err := googleapi.CheckResponse(res); err != nil {
20699		return nil, err
20700	}
20701	ret := &GoogleCloudApigeeV1DeveloperApp{
20702		ServerResponse: googleapi.ServerResponse{
20703			Header:         res.Header,
20704			HTTPStatusCode: res.StatusCode,
20705		},
20706	}
20707	target := &ret
20708	if err := gensupport.DecodeResponse(target, res); err != nil {
20709		return nil, err
20710	}
20711	return ret, nil
20712	// {
20713	//   "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.",
20714	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}",
20715	//   "httpMethod": "PUT",
20716	//   "id": "apigee.organizations.developers.apps.update",
20717	//   "parameterOrder": [
20718	//     "name"
20719	//   ],
20720	//   "parameters": {
20721	//     "name": {
20722	//       "description": "Required. Name of the developer app. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}`",
20723	//       "location": "path",
20724	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$",
20725	//       "required": true,
20726	//       "type": "string"
20727	//     }
20728	//   },
20729	//   "path": "v1/{+name}",
20730	//   "request": {
20731	//     "$ref": "GoogleCloudApigeeV1DeveloperApp"
20732	//   },
20733	//   "response": {
20734	//     "$ref": "GoogleCloudApigeeV1DeveloperApp"
20735	//   },
20736	//   "scopes": [
20737	//     "https://www.googleapis.com/auth/cloud-platform"
20738	//   ]
20739	// }
20740
20741}
20742
20743// method id "apigee.organizations.developers.apps.attributes.delete":
20744
20745type OrganizationsDevelopersAppsAttributesDeleteCall struct {
20746	s          *Service
20747	name       string
20748	urlParams_ gensupport.URLParams
20749	ctx_       context.Context
20750	header_    http.Header
20751}
20752
20753// Delete: Deletes a developer app attribute.
20754//
20755// - name: Name of the developer app attribute. Use the following
20756//   structure in your request:
20757//   `organizations/{org}/developers/{developer_email}/apps/{app}/attribu
20758//   tes/{attribute}`.
20759func (r *OrganizationsDevelopersAppsAttributesService) Delete(name string) *OrganizationsDevelopersAppsAttributesDeleteCall {
20760	c := &OrganizationsDevelopersAppsAttributesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20761	c.name = name
20762	return c
20763}
20764
20765// Fields allows partial responses to be retrieved. See
20766// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20767// for more information.
20768func (c *OrganizationsDevelopersAppsAttributesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsAttributesDeleteCall {
20769	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20770	return c
20771}
20772
20773// Context sets the context to be used in this call's Do method. Any
20774// pending HTTP request will be aborted if the provided context is
20775// canceled.
20776func (c *OrganizationsDevelopersAppsAttributesDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersAppsAttributesDeleteCall {
20777	c.ctx_ = ctx
20778	return c
20779}
20780
20781// Header returns an http.Header that can be modified by the caller to
20782// add HTTP headers to the request.
20783func (c *OrganizationsDevelopersAppsAttributesDeleteCall) Header() http.Header {
20784	if c.header_ == nil {
20785		c.header_ = make(http.Header)
20786	}
20787	return c.header_
20788}
20789
20790func (c *OrganizationsDevelopersAppsAttributesDeleteCall) doRequest(alt string) (*http.Response, error) {
20791	reqHeaders := make(http.Header)
20792	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
20793	for k, v := range c.header_ {
20794		reqHeaders[k] = v
20795	}
20796	reqHeaders.Set("User-Agent", c.s.userAgent())
20797	var body io.Reader = nil
20798	c.urlParams_.Set("alt", alt)
20799	c.urlParams_.Set("prettyPrint", "false")
20800	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
20801	urls += "?" + c.urlParams_.Encode()
20802	req, err := http.NewRequest("DELETE", urls, body)
20803	if err != nil {
20804		return nil, err
20805	}
20806	req.Header = reqHeaders
20807	googleapi.Expand(req.URL, map[string]string{
20808		"name": c.name,
20809	})
20810	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20811}
20812
20813// Do executes the "apigee.organizations.developers.apps.attributes.delete" call.
20814// Exactly one of *GoogleCloudApigeeV1Attribute or error will be
20815// non-nil. Any non-2xx status code is an error. Response headers are in
20816// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a
20817// response was returned at all) in error.(*googleapi.Error).Header. Use
20818// googleapi.IsNotModified to check whether the returned error was
20819// because http.StatusNotModified was returned.
20820func (c *OrganizationsDevelopersAppsAttributesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
20821	gensupport.SetOptions(c.urlParams_, opts...)
20822	res, err := c.doRequest("json")
20823	if res != nil && res.StatusCode == http.StatusNotModified {
20824		if res.Body != nil {
20825			res.Body.Close()
20826		}
20827		return nil, &googleapi.Error{
20828			Code:   res.StatusCode,
20829			Header: res.Header,
20830		}
20831	}
20832	if err != nil {
20833		return nil, err
20834	}
20835	defer googleapi.CloseBody(res)
20836	if err := googleapi.CheckResponse(res); err != nil {
20837		return nil, err
20838	}
20839	ret := &GoogleCloudApigeeV1Attribute{
20840		ServerResponse: googleapi.ServerResponse{
20841			Header:         res.Header,
20842			HTTPStatusCode: res.StatusCode,
20843		},
20844	}
20845	target := &ret
20846	if err := gensupport.DecodeResponse(target, res); err != nil {
20847		return nil, err
20848	}
20849	return ret, nil
20850	// {
20851	//   "description": "Deletes a developer app attribute.",
20852	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/attributes/{attributesId}",
20853	//   "httpMethod": "DELETE",
20854	//   "id": "apigee.organizations.developers.apps.attributes.delete",
20855	//   "parameterOrder": [
20856	//     "name"
20857	//   ],
20858	//   "parameters": {
20859	//     "name": {
20860	//       "description": "Required. Name of the developer app attribute. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}/attributes/{attribute}`",
20861	//       "location": "path",
20862	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/attributes/[^/]+$",
20863	//       "required": true,
20864	//       "type": "string"
20865	//     }
20866	//   },
20867	//   "path": "v1/{+name}",
20868	//   "response": {
20869	//     "$ref": "GoogleCloudApigeeV1Attribute"
20870	//   },
20871	//   "scopes": [
20872	//     "https://www.googleapis.com/auth/cloud-platform"
20873	//   ]
20874	// }
20875
20876}
20877
20878// method id "apigee.organizations.developers.apps.attributes.get":
20879
20880type OrganizationsDevelopersAppsAttributesGetCall struct {
20881	s            *Service
20882	name         string
20883	urlParams_   gensupport.URLParams
20884	ifNoneMatch_ string
20885	ctx_         context.Context
20886	header_      http.Header
20887}
20888
20889// Get: Returns a developer app attribute.
20890//
20891// - name: Name of the developer app attribute. Use the following
20892//   structure in your request:
20893//   `organizations/{org}/developers/{developer_email}/apps/{app}/attribu
20894//   tes/{attribute}`.
20895func (r *OrganizationsDevelopersAppsAttributesService) Get(name string) *OrganizationsDevelopersAppsAttributesGetCall {
20896	c := &OrganizationsDevelopersAppsAttributesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20897	c.name = name
20898	return c
20899}
20900
20901// Fields allows partial responses to be retrieved. See
20902// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20903// for more information.
20904func (c *OrganizationsDevelopersAppsAttributesGetCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsAttributesGetCall {
20905	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20906	return c
20907}
20908
20909// IfNoneMatch sets the optional parameter which makes the operation
20910// fail if the object's ETag matches the given value. This is useful for
20911// getting updates only after the object has changed since the last
20912// request. Use googleapi.IsNotModified to check whether the response
20913// error from Do is the result of In-None-Match.
20914func (c *OrganizationsDevelopersAppsAttributesGetCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAppsAttributesGetCall {
20915	c.ifNoneMatch_ = entityTag
20916	return c
20917}
20918
20919// Context sets the context to be used in this call's Do method. Any
20920// pending HTTP request will be aborted if the provided context is
20921// canceled.
20922func (c *OrganizationsDevelopersAppsAttributesGetCall) Context(ctx context.Context) *OrganizationsDevelopersAppsAttributesGetCall {
20923	c.ctx_ = ctx
20924	return c
20925}
20926
20927// Header returns an http.Header that can be modified by the caller to
20928// add HTTP headers to the request.
20929func (c *OrganizationsDevelopersAppsAttributesGetCall) Header() http.Header {
20930	if c.header_ == nil {
20931		c.header_ = make(http.Header)
20932	}
20933	return c.header_
20934}
20935
20936func (c *OrganizationsDevelopersAppsAttributesGetCall) doRequest(alt string) (*http.Response, error) {
20937	reqHeaders := make(http.Header)
20938	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
20939	for k, v := range c.header_ {
20940		reqHeaders[k] = v
20941	}
20942	reqHeaders.Set("User-Agent", c.s.userAgent())
20943	if c.ifNoneMatch_ != "" {
20944		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
20945	}
20946	var body io.Reader = nil
20947	c.urlParams_.Set("alt", alt)
20948	c.urlParams_.Set("prettyPrint", "false")
20949	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
20950	urls += "?" + c.urlParams_.Encode()
20951	req, err := http.NewRequest("GET", urls, body)
20952	if err != nil {
20953		return nil, err
20954	}
20955	req.Header = reqHeaders
20956	googleapi.Expand(req.URL, map[string]string{
20957		"name": c.name,
20958	})
20959	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20960}
20961
20962// Do executes the "apigee.organizations.developers.apps.attributes.get" call.
20963// Exactly one of *GoogleCloudApigeeV1Attribute or error will be
20964// non-nil. Any non-2xx status code is an error. Response headers are in
20965// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a
20966// response was returned at all) in error.(*googleapi.Error).Header. Use
20967// googleapi.IsNotModified to check whether the returned error was
20968// because http.StatusNotModified was returned.
20969func (c *OrganizationsDevelopersAppsAttributesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
20970	gensupport.SetOptions(c.urlParams_, opts...)
20971	res, err := c.doRequest("json")
20972	if res != nil && res.StatusCode == http.StatusNotModified {
20973		if res.Body != nil {
20974			res.Body.Close()
20975		}
20976		return nil, &googleapi.Error{
20977			Code:   res.StatusCode,
20978			Header: res.Header,
20979		}
20980	}
20981	if err != nil {
20982		return nil, err
20983	}
20984	defer googleapi.CloseBody(res)
20985	if err := googleapi.CheckResponse(res); err != nil {
20986		return nil, err
20987	}
20988	ret := &GoogleCloudApigeeV1Attribute{
20989		ServerResponse: googleapi.ServerResponse{
20990			Header:         res.Header,
20991			HTTPStatusCode: res.StatusCode,
20992		},
20993	}
20994	target := &ret
20995	if err := gensupport.DecodeResponse(target, res); err != nil {
20996		return nil, err
20997	}
20998	return ret, nil
20999	// {
21000	//   "description": "Returns a developer app attribute.",
21001	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/attributes/{attributesId}",
21002	//   "httpMethod": "GET",
21003	//   "id": "apigee.organizations.developers.apps.attributes.get",
21004	//   "parameterOrder": [
21005	//     "name"
21006	//   ],
21007	//   "parameters": {
21008	//     "name": {
21009	//       "description": "Required. Name of the developer app attribute. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}/attributes/{attribute}`",
21010	//       "location": "path",
21011	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/attributes/[^/]+$",
21012	//       "required": true,
21013	//       "type": "string"
21014	//     }
21015	//   },
21016	//   "path": "v1/{+name}",
21017	//   "response": {
21018	//     "$ref": "GoogleCloudApigeeV1Attribute"
21019	//   },
21020	//   "scopes": [
21021	//     "https://www.googleapis.com/auth/cloud-platform"
21022	//   ]
21023	// }
21024
21025}
21026
21027// method id "apigee.organizations.developers.apps.attributes.list":
21028
21029type OrganizationsDevelopersAppsAttributesListCall struct {
21030	s            *Service
21031	parent       string
21032	urlParams_   gensupport.URLParams
21033	ifNoneMatch_ string
21034	ctx_         context.Context
21035	header_      http.Header
21036}
21037
21038// List: Returns a list of all developer app attributes.
21039//
21040// - parent: Name of the developer app. Use the following structure in
21041//   your request:
21042//   `organizations/{org}/developers/{developer_email}/apps/{app}`.
21043func (r *OrganizationsDevelopersAppsAttributesService) List(parent string) *OrganizationsDevelopersAppsAttributesListCall {
21044	c := &OrganizationsDevelopersAppsAttributesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21045	c.parent = parent
21046	return c
21047}
21048
21049// Fields allows partial responses to be retrieved. See
21050// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21051// for more information.
21052func (c *OrganizationsDevelopersAppsAttributesListCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsAttributesListCall {
21053	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21054	return c
21055}
21056
21057// IfNoneMatch sets the optional parameter which makes the operation
21058// fail if the object's ETag matches the given value. This is useful for
21059// getting updates only after the object has changed since the last
21060// request. Use googleapi.IsNotModified to check whether the response
21061// error from Do is the result of In-None-Match.
21062func (c *OrganizationsDevelopersAppsAttributesListCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAppsAttributesListCall {
21063	c.ifNoneMatch_ = entityTag
21064	return c
21065}
21066
21067// Context sets the context to be used in this call's Do method. Any
21068// pending HTTP request will be aborted if the provided context is
21069// canceled.
21070func (c *OrganizationsDevelopersAppsAttributesListCall) Context(ctx context.Context) *OrganizationsDevelopersAppsAttributesListCall {
21071	c.ctx_ = ctx
21072	return c
21073}
21074
21075// Header returns an http.Header that can be modified by the caller to
21076// add HTTP headers to the request.
21077func (c *OrganizationsDevelopersAppsAttributesListCall) Header() http.Header {
21078	if c.header_ == nil {
21079		c.header_ = make(http.Header)
21080	}
21081	return c.header_
21082}
21083
21084func (c *OrganizationsDevelopersAppsAttributesListCall) doRequest(alt string) (*http.Response, error) {
21085	reqHeaders := make(http.Header)
21086	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
21087	for k, v := range c.header_ {
21088		reqHeaders[k] = v
21089	}
21090	reqHeaders.Set("User-Agent", c.s.userAgent())
21091	if c.ifNoneMatch_ != "" {
21092		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21093	}
21094	var body io.Reader = nil
21095	c.urlParams_.Set("alt", alt)
21096	c.urlParams_.Set("prettyPrint", "false")
21097	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attributes")
21098	urls += "?" + c.urlParams_.Encode()
21099	req, err := http.NewRequest("GET", urls, body)
21100	if err != nil {
21101		return nil, err
21102	}
21103	req.Header = reqHeaders
21104	googleapi.Expand(req.URL, map[string]string{
21105		"parent": c.parent,
21106	})
21107	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21108}
21109
21110// Do executes the "apigee.organizations.developers.apps.attributes.list" call.
21111// Exactly one of *GoogleCloudApigeeV1Attributes or error will be
21112// non-nil. Any non-2xx status code is an error. Response headers are in
21113// either *GoogleCloudApigeeV1Attributes.ServerResponse.Header or (if a
21114// response was returned at all) in error.(*googleapi.Error).Header. Use
21115// googleapi.IsNotModified to check whether the returned error was
21116// because http.StatusNotModified was returned.
21117func (c *OrganizationsDevelopersAppsAttributesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attributes, error) {
21118	gensupport.SetOptions(c.urlParams_, opts...)
21119	res, err := c.doRequest("json")
21120	if res != nil && res.StatusCode == http.StatusNotModified {
21121		if res.Body != nil {
21122			res.Body.Close()
21123		}
21124		return nil, &googleapi.Error{
21125			Code:   res.StatusCode,
21126			Header: res.Header,
21127		}
21128	}
21129	if err != nil {
21130		return nil, err
21131	}
21132	defer googleapi.CloseBody(res)
21133	if err := googleapi.CheckResponse(res); err != nil {
21134		return nil, err
21135	}
21136	ret := &GoogleCloudApigeeV1Attributes{
21137		ServerResponse: googleapi.ServerResponse{
21138			Header:         res.Header,
21139			HTTPStatusCode: res.StatusCode,
21140		},
21141	}
21142	target := &ret
21143	if err := gensupport.DecodeResponse(target, res); err != nil {
21144		return nil, err
21145	}
21146	return ret, nil
21147	// {
21148	//   "description": "Returns a list of all developer app attributes.",
21149	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/attributes",
21150	//   "httpMethod": "GET",
21151	//   "id": "apigee.organizations.developers.apps.attributes.list",
21152	//   "parameterOrder": [
21153	//     "parent"
21154	//   ],
21155	//   "parameters": {
21156	//     "parent": {
21157	//       "description": "Required. Name of the developer app. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}`",
21158	//       "location": "path",
21159	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$",
21160	//       "required": true,
21161	//       "type": "string"
21162	//     }
21163	//   },
21164	//   "path": "v1/{+parent}/attributes",
21165	//   "response": {
21166	//     "$ref": "GoogleCloudApigeeV1Attributes"
21167	//   },
21168	//   "scopes": [
21169	//     "https://www.googleapis.com/auth/cloud-platform"
21170	//   ]
21171	// }
21172
21173}
21174
21175// method id "apigee.organizations.developers.apps.attributes.updateDeveloperAppAttribute":
21176
21177type OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall struct {
21178	s                            *Service
21179	name                         string
21180	googlecloudapigeev1attribute *GoogleCloudApigeeV1Attribute
21181	urlParams_                   gensupport.URLParams
21182	ctx_                         context.Context
21183	header_                      http.Header
21184}
21185
21186// UpdateDeveloperAppAttribute: Updates a developer app attribute.
21187// **Note**: OAuth access tokens and Key Management Service (KMS)
21188// entities (apps, developers, and API products) are cached for 180
21189// seconds (current default). Any custom attributes associated with
21190// these entities are cached for at least 180 seconds after the entity
21191// is accessed at runtime. Therefore, an `ExpiresIn` element on the
21192// OAuthV2 policy won't be able to expire an access token in less than
21193// 180 seconds.
21194//
21195// - name: Name of the developer app attribute. Use the following
21196//   structure in your request:
21197//   `organizations/{org}/developers/{developer_email}/apps/{app}/attribu
21198//   tes/{attribute}`.
21199func (r *OrganizationsDevelopersAppsAttributesService) UpdateDeveloperAppAttribute(name string, googlecloudapigeev1attribute *GoogleCloudApigeeV1Attribute) *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall {
21200	c := &OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21201	c.name = name
21202	c.googlecloudapigeev1attribute = googlecloudapigeev1attribute
21203	return c
21204}
21205
21206// Fields allows partial responses to be retrieved. See
21207// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21208// for more information.
21209func (c *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall {
21210	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21211	return c
21212}
21213
21214// Context sets the context to be used in this call's Do method. Any
21215// pending HTTP request will be aborted if the provided context is
21216// canceled.
21217func (c *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall) Context(ctx context.Context) *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall {
21218	c.ctx_ = ctx
21219	return c
21220}
21221
21222// Header returns an http.Header that can be modified by the caller to
21223// add HTTP headers to the request.
21224func (c *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall) Header() http.Header {
21225	if c.header_ == nil {
21226		c.header_ = make(http.Header)
21227	}
21228	return c.header_
21229}
21230
21231func (c *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall) doRequest(alt string) (*http.Response, error) {
21232	reqHeaders := make(http.Header)
21233	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
21234	for k, v := range c.header_ {
21235		reqHeaders[k] = v
21236	}
21237	reqHeaders.Set("User-Agent", c.s.userAgent())
21238	var body io.Reader = nil
21239	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1attribute)
21240	if err != nil {
21241		return nil, err
21242	}
21243	reqHeaders.Set("Content-Type", "application/json")
21244	c.urlParams_.Set("alt", alt)
21245	c.urlParams_.Set("prettyPrint", "false")
21246	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
21247	urls += "?" + c.urlParams_.Encode()
21248	req, err := http.NewRequest("POST", urls, body)
21249	if err != nil {
21250		return nil, err
21251	}
21252	req.Header = reqHeaders
21253	googleapi.Expand(req.URL, map[string]string{
21254		"name": c.name,
21255	})
21256	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21257}
21258
21259// Do executes the "apigee.organizations.developers.apps.attributes.updateDeveloperAppAttribute" call.
21260// Exactly one of *GoogleCloudApigeeV1Attribute or error will be
21261// non-nil. Any non-2xx status code is an error. Response headers are in
21262// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a
21263// response was returned at all) in error.(*googleapi.Error).Header. Use
21264// googleapi.IsNotModified to check whether the returned error was
21265// because http.StatusNotModified was returned.
21266func (c *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
21267	gensupport.SetOptions(c.urlParams_, opts...)
21268	res, err := c.doRequest("json")
21269	if res != nil && res.StatusCode == http.StatusNotModified {
21270		if res.Body != nil {
21271			res.Body.Close()
21272		}
21273		return nil, &googleapi.Error{
21274			Code:   res.StatusCode,
21275			Header: res.Header,
21276		}
21277	}
21278	if err != nil {
21279		return nil, err
21280	}
21281	defer googleapi.CloseBody(res)
21282	if err := googleapi.CheckResponse(res); err != nil {
21283		return nil, err
21284	}
21285	ret := &GoogleCloudApigeeV1Attribute{
21286		ServerResponse: googleapi.ServerResponse{
21287			Header:         res.Header,
21288			HTTPStatusCode: res.StatusCode,
21289		},
21290	}
21291	target := &ret
21292	if err := gensupport.DecodeResponse(target, res); err != nil {
21293		return nil, err
21294	}
21295	return ret, nil
21296	// {
21297	//   "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.",
21298	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/attributes/{attributesId}",
21299	//   "httpMethod": "POST",
21300	//   "id": "apigee.organizations.developers.apps.attributes.updateDeveloperAppAttribute",
21301	//   "parameterOrder": [
21302	//     "name"
21303	//   ],
21304	//   "parameters": {
21305	//     "name": {
21306	//       "description": "Required. Name of the developer app attribute. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}/attributes/{attribute}`",
21307	//       "location": "path",
21308	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/attributes/[^/]+$",
21309	//       "required": true,
21310	//       "type": "string"
21311	//     }
21312	//   },
21313	//   "path": "v1/{+name}",
21314	//   "request": {
21315	//     "$ref": "GoogleCloudApigeeV1Attribute"
21316	//   },
21317	//   "response": {
21318	//     "$ref": "GoogleCloudApigeeV1Attribute"
21319	//   },
21320	//   "scopes": [
21321	//     "https://www.googleapis.com/auth/cloud-platform"
21322	//   ]
21323	// }
21324
21325}
21326
21327// method id "apigee.organizations.developers.apps.keys.create":
21328
21329type OrganizationsDevelopersAppsKeysCreateCall struct {
21330	s                                  *Service
21331	parent                             string
21332	googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey
21333	urlParams_                         gensupport.URLParams
21334	ctx_                               context.Context
21335	header_                            http.Header
21336}
21337
21338// Create: Creates a custom consumer key and secret for a developer app.
21339// This is particularly useful if you want to migrate existing consumer
21340// keys and secrets to Apigee from another system. Consumer keys and
21341// secrets can contain letters, numbers, underscores, and hyphens. No
21342// other special characters are allowed. To avoid service disruptions, a
21343// consumer key and secret should not exceed 2 KBs each. **Note**: When
21344// creating the consumer key and secret, an association to API products
21345// will not be made. Therefore, you should not specify the associated
21346// API products in your request. Instead, use the UpdateDeveloperAppKey
21347// API to make the association after the consumer key and secret are
21348// created. If a consumer key and secret already exist, you can keep
21349// them or delete them using the DeleteDeveloperAppKey API.
21350//
21351// - parent: Parent of the developer app key. Use the following
21352//   structure in your request:
21353//   `organizations/{org}/developers/{developer_email}/apps`.
21354func (r *OrganizationsDevelopersAppsKeysService) Create(parent string, googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey) *OrganizationsDevelopersAppsKeysCreateCall {
21355	c := &OrganizationsDevelopersAppsKeysCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21356	c.parent = parent
21357	c.googlecloudapigeev1developerappkey = googlecloudapigeev1developerappkey
21358	return c
21359}
21360
21361// Fields allows partial responses to be retrieved. See
21362// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21363// for more information.
21364func (c *OrganizationsDevelopersAppsKeysCreateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysCreateCall {
21365	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21366	return c
21367}
21368
21369// Context sets the context to be used in this call's Do method. Any
21370// pending HTTP request will be aborted if the provided context is
21371// canceled.
21372func (c *OrganizationsDevelopersAppsKeysCreateCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysCreateCall {
21373	c.ctx_ = ctx
21374	return c
21375}
21376
21377// Header returns an http.Header that can be modified by the caller to
21378// add HTTP headers to the request.
21379func (c *OrganizationsDevelopersAppsKeysCreateCall) Header() http.Header {
21380	if c.header_ == nil {
21381		c.header_ = make(http.Header)
21382	}
21383	return c.header_
21384}
21385
21386func (c *OrganizationsDevelopersAppsKeysCreateCall) doRequest(alt string) (*http.Response, error) {
21387	reqHeaders := make(http.Header)
21388	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
21389	for k, v := range c.header_ {
21390		reqHeaders[k] = v
21391	}
21392	reqHeaders.Set("User-Agent", c.s.userAgent())
21393	var body io.Reader = nil
21394	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerappkey)
21395	if err != nil {
21396		return nil, err
21397	}
21398	reqHeaders.Set("Content-Type", "application/json")
21399	c.urlParams_.Set("alt", alt)
21400	c.urlParams_.Set("prettyPrint", "false")
21401	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keys")
21402	urls += "?" + c.urlParams_.Encode()
21403	req, err := http.NewRequest("POST", urls, body)
21404	if err != nil {
21405		return nil, err
21406	}
21407	req.Header = reqHeaders
21408	googleapi.Expand(req.URL, map[string]string{
21409		"parent": c.parent,
21410	})
21411	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21412}
21413
21414// Do executes the "apigee.organizations.developers.apps.keys.create" call.
21415// Exactly one of *GoogleCloudApigeeV1DeveloperAppKey or error will be
21416// non-nil. Any non-2xx status code is an error. Response headers are in
21417// either *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or
21418// (if a response was returned at all) in
21419// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
21420// whether the returned error was because http.StatusNotModified was
21421// returned.
21422func (c *OrganizationsDevelopersAppsKeysCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) {
21423	gensupport.SetOptions(c.urlParams_, opts...)
21424	res, err := c.doRequest("json")
21425	if res != nil && res.StatusCode == http.StatusNotModified {
21426		if res.Body != nil {
21427			res.Body.Close()
21428		}
21429		return nil, &googleapi.Error{
21430			Code:   res.StatusCode,
21431			Header: res.Header,
21432		}
21433	}
21434	if err != nil {
21435		return nil, err
21436	}
21437	defer googleapi.CloseBody(res)
21438	if err := googleapi.CheckResponse(res); err != nil {
21439		return nil, err
21440	}
21441	ret := &GoogleCloudApigeeV1DeveloperAppKey{
21442		ServerResponse: googleapi.ServerResponse{
21443			Header:         res.Header,
21444			HTTPStatusCode: res.StatusCode,
21445		},
21446	}
21447	target := &ret
21448	if err := gensupport.DecodeResponse(target, res); err != nil {
21449		return nil, err
21450	}
21451	return ret, nil
21452	// {
21453	//   "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 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.",
21454	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys",
21455	//   "httpMethod": "POST",
21456	//   "id": "apigee.organizations.developers.apps.keys.create",
21457	//   "parameterOrder": [
21458	//     "parent"
21459	//   ],
21460	//   "parameters": {
21461	//     "parent": {
21462	//       "description": "Parent of the developer app key. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps`",
21463	//       "location": "path",
21464	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$",
21465	//       "required": true,
21466	//       "type": "string"
21467	//     }
21468	//   },
21469	//   "path": "v1/{+parent}/keys",
21470	//   "request": {
21471	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
21472	//   },
21473	//   "response": {
21474	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
21475	//   },
21476	//   "scopes": [
21477	//     "https://www.googleapis.com/auth/cloud-platform"
21478	//   ]
21479	// }
21480
21481}
21482
21483// method id "apigee.organizations.developers.apps.keys.delete":
21484
21485type OrganizationsDevelopersAppsKeysDeleteCall struct {
21486	s          *Service
21487	name       string
21488	urlParams_ gensupport.URLParams
21489	ctx_       context.Context
21490	header_    http.Header
21491}
21492
21493// Delete: Deletes an app's consumer key and removes all API products
21494// associated with the app. After the consumer key is deleted, it cannot
21495// be used to access any APIs. **Note**: After you delete a consumer
21496// key, you may want to: 1. Create a new consumer key and secret for the
21497// developer app using the CreateDeveloperAppKey API, and subsequently
21498// add an API product to the key using the UpdateDeveloperAppKey API. 2.
21499// Delete the developer app, if it is no longer required.
21500//
21501// - name: Name of the developer app key. Use the following structure in
21502//   your request:
21503//   `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{k
21504//   ey}`.
21505func (r *OrganizationsDevelopersAppsKeysService) Delete(name string) *OrganizationsDevelopersAppsKeysDeleteCall {
21506	c := &OrganizationsDevelopersAppsKeysDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21507	c.name = name
21508	return c
21509}
21510
21511// Fields allows partial responses to be retrieved. See
21512// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21513// for more information.
21514func (c *OrganizationsDevelopersAppsKeysDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysDeleteCall {
21515	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21516	return c
21517}
21518
21519// Context sets the context to be used in this call's Do method. Any
21520// pending HTTP request will be aborted if the provided context is
21521// canceled.
21522func (c *OrganizationsDevelopersAppsKeysDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysDeleteCall {
21523	c.ctx_ = ctx
21524	return c
21525}
21526
21527// Header returns an http.Header that can be modified by the caller to
21528// add HTTP headers to the request.
21529func (c *OrganizationsDevelopersAppsKeysDeleteCall) Header() http.Header {
21530	if c.header_ == nil {
21531		c.header_ = make(http.Header)
21532	}
21533	return c.header_
21534}
21535
21536func (c *OrganizationsDevelopersAppsKeysDeleteCall) doRequest(alt string) (*http.Response, error) {
21537	reqHeaders := make(http.Header)
21538	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
21539	for k, v := range c.header_ {
21540		reqHeaders[k] = v
21541	}
21542	reqHeaders.Set("User-Agent", c.s.userAgent())
21543	var body io.Reader = nil
21544	c.urlParams_.Set("alt", alt)
21545	c.urlParams_.Set("prettyPrint", "false")
21546	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
21547	urls += "?" + c.urlParams_.Encode()
21548	req, err := http.NewRequest("DELETE", urls, body)
21549	if err != nil {
21550		return nil, err
21551	}
21552	req.Header = reqHeaders
21553	googleapi.Expand(req.URL, map[string]string{
21554		"name": c.name,
21555	})
21556	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21557}
21558
21559// Do executes the "apigee.organizations.developers.apps.keys.delete" call.
21560// Exactly one of *GoogleCloudApigeeV1DeveloperAppKey or error will be
21561// non-nil. Any non-2xx status code is an error. Response headers are in
21562// either *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or
21563// (if a response was returned at all) in
21564// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
21565// whether the returned error was because http.StatusNotModified was
21566// returned.
21567func (c *OrganizationsDevelopersAppsKeysDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) {
21568	gensupport.SetOptions(c.urlParams_, opts...)
21569	res, err := c.doRequest("json")
21570	if res != nil && res.StatusCode == http.StatusNotModified {
21571		if res.Body != nil {
21572			res.Body.Close()
21573		}
21574		return nil, &googleapi.Error{
21575			Code:   res.StatusCode,
21576			Header: res.Header,
21577		}
21578	}
21579	if err != nil {
21580		return nil, err
21581	}
21582	defer googleapi.CloseBody(res)
21583	if err := googleapi.CheckResponse(res); err != nil {
21584		return nil, err
21585	}
21586	ret := &GoogleCloudApigeeV1DeveloperAppKey{
21587		ServerResponse: googleapi.ServerResponse{
21588			Header:         res.Header,
21589			HTTPStatusCode: res.StatusCode,
21590		},
21591	}
21592	target := &ret
21593	if err := gensupport.DecodeResponse(target, res); err != nil {
21594		return nil, err
21595	}
21596	return ret, nil
21597	// {
21598	//   "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.",
21599	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys/{keysId}",
21600	//   "httpMethod": "DELETE",
21601	//   "id": "apigee.organizations.developers.apps.keys.delete",
21602	//   "parameterOrder": [
21603	//     "name"
21604	//   ],
21605	//   "parameters": {
21606	//     "name": {
21607	//       "description": "Name of the developer app key. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{key}`",
21608	//       "location": "path",
21609	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/keys/[^/]+$",
21610	//       "required": true,
21611	//       "type": "string"
21612	//     }
21613	//   },
21614	//   "path": "v1/{+name}",
21615	//   "response": {
21616	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
21617	//   },
21618	//   "scopes": [
21619	//     "https://www.googleapis.com/auth/cloud-platform"
21620	//   ]
21621	// }
21622
21623}
21624
21625// method id "apigee.organizations.developers.apps.keys.get":
21626
21627type OrganizationsDevelopersAppsKeysGetCall struct {
21628	s            *Service
21629	name         string
21630	urlParams_   gensupport.URLParams
21631	ifNoneMatch_ string
21632	ctx_         context.Context
21633	header_      http.Header
21634}
21635
21636// Get: Gets details for a consumer key for a developer app, including
21637// the key and secret value, associated API products, and other
21638// information.
21639//
21640// - name: Name of the developer app key. Use the following structure in
21641//   your request:
21642//   `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{k
21643//   ey}`.
21644func (r *OrganizationsDevelopersAppsKeysService) Get(name string) *OrganizationsDevelopersAppsKeysGetCall {
21645	c := &OrganizationsDevelopersAppsKeysGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21646	c.name = name
21647	return c
21648}
21649
21650// Fields allows partial responses to be retrieved. See
21651// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21652// for more information.
21653func (c *OrganizationsDevelopersAppsKeysGetCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysGetCall {
21654	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21655	return c
21656}
21657
21658// IfNoneMatch sets the optional parameter which makes the operation
21659// fail if the object's ETag matches the given value. This is useful for
21660// getting updates only after the object has changed since the last
21661// request. Use googleapi.IsNotModified to check whether the response
21662// error from Do is the result of In-None-Match.
21663func (c *OrganizationsDevelopersAppsKeysGetCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAppsKeysGetCall {
21664	c.ifNoneMatch_ = entityTag
21665	return c
21666}
21667
21668// Context sets the context to be used in this call's Do method. Any
21669// pending HTTP request will be aborted if the provided context is
21670// canceled.
21671func (c *OrganizationsDevelopersAppsKeysGetCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysGetCall {
21672	c.ctx_ = ctx
21673	return c
21674}
21675
21676// Header returns an http.Header that can be modified by the caller to
21677// add HTTP headers to the request.
21678func (c *OrganizationsDevelopersAppsKeysGetCall) Header() http.Header {
21679	if c.header_ == nil {
21680		c.header_ = make(http.Header)
21681	}
21682	return c.header_
21683}
21684
21685func (c *OrganizationsDevelopersAppsKeysGetCall) doRequest(alt string) (*http.Response, error) {
21686	reqHeaders := make(http.Header)
21687	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
21688	for k, v := range c.header_ {
21689		reqHeaders[k] = v
21690	}
21691	reqHeaders.Set("User-Agent", c.s.userAgent())
21692	if c.ifNoneMatch_ != "" {
21693		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21694	}
21695	var body io.Reader = nil
21696	c.urlParams_.Set("alt", alt)
21697	c.urlParams_.Set("prettyPrint", "false")
21698	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
21699	urls += "?" + c.urlParams_.Encode()
21700	req, err := http.NewRequest("GET", urls, body)
21701	if err != nil {
21702		return nil, err
21703	}
21704	req.Header = reqHeaders
21705	googleapi.Expand(req.URL, map[string]string{
21706		"name": c.name,
21707	})
21708	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21709}
21710
21711// Do executes the "apigee.organizations.developers.apps.keys.get" call.
21712// Exactly one of *GoogleCloudApigeeV1DeveloperAppKey or error will be
21713// non-nil. Any non-2xx status code is an error. Response headers are in
21714// either *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or
21715// (if a response was returned at all) in
21716// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
21717// whether the returned error was because http.StatusNotModified was
21718// returned.
21719func (c *OrganizationsDevelopersAppsKeysGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) {
21720	gensupport.SetOptions(c.urlParams_, opts...)
21721	res, err := c.doRequest("json")
21722	if res != nil && res.StatusCode == http.StatusNotModified {
21723		if res.Body != nil {
21724			res.Body.Close()
21725		}
21726		return nil, &googleapi.Error{
21727			Code:   res.StatusCode,
21728			Header: res.Header,
21729		}
21730	}
21731	if err != nil {
21732		return nil, err
21733	}
21734	defer googleapi.CloseBody(res)
21735	if err := googleapi.CheckResponse(res); err != nil {
21736		return nil, err
21737	}
21738	ret := &GoogleCloudApigeeV1DeveloperAppKey{
21739		ServerResponse: googleapi.ServerResponse{
21740			Header:         res.Header,
21741			HTTPStatusCode: res.StatusCode,
21742		},
21743	}
21744	target := &ret
21745	if err := gensupport.DecodeResponse(target, res); err != nil {
21746		return nil, err
21747	}
21748	return ret, nil
21749	// {
21750	//   "description": "Gets details for a consumer key for a developer app, including the key and secret value, associated API products, and other information.",
21751	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys/{keysId}",
21752	//   "httpMethod": "GET",
21753	//   "id": "apigee.organizations.developers.apps.keys.get",
21754	//   "parameterOrder": [
21755	//     "name"
21756	//   ],
21757	//   "parameters": {
21758	//     "name": {
21759	//       "description": "Name of the developer app key. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{key}`",
21760	//       "location": "path",
21761	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/keys/[^/]+$",
21762	//       "required": true,
21763	//       "type": "string"
21764	//     }
21765	//   },
21766	//   "path": "v1/{+name}",
21767	//   "response": {
21768	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
21769	//   },
21770	//   "scopes": [
21771	//     "https://www.googleapis.com/auth/cloud-platform"
21772	//   ]
21773	// }
21774
21775}
21776
21777// method id "apigee.organizations.developers.apps.keys.replaceDeveloperAppKey":
21778
21779type OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall struct {
21780	s                                  *Service
21781	name                               string
21782	googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey
21783	urlParams_                         gensupport.URLParams
21784	ctx_                               context.Context
21785	header_                            http.Header
21786}
21787
21788// ReplaceDeveloperAppKey: Updates the scope of an app. This API
21789// replaces the existing scopes with those specified in the request.
21790// Include or exclude any existing scopes that you want to retain or
21791// delete, respectively. The specified scopes must already be defined
21792// for the API products associated with the app. This API sets the
21793// `scopes` element under the `apiProducts` element in the attributes of
21794// the app.
21795//
21796// - name: Name of the developer app key. Use the following structure in
21797//   your request:
21798//   `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{k
21799//   ey}`.
21800func (r *OrganizationsDevelopersAppsKeysService) ReplaceDeveloperAppKey(name string, googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey) *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall {
21801	c := &OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21802	c.name = name
21803	c.googlecloudapigeev1developerappkey = googlecloudapigeev1developerappkey
21804	return c
21805}
21806
21807// Fields allows partial responses to be retrieved. See
21808// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21809// for more information.
21810func (c *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall {
21811	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21812	return c
21813}
21814
21815// Context sets the context to be used in this call's Do method. Any
21816// pending HTTP request will be aborted if the provided context is
21817// canceled.
21818func (c *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall {
21819	c.ctx_ = ctx
21820	return c
21821}
21822
21823// Header returns an http.Header that can be modified by the caller to
21824// add HTTP headers to the request.
21825func (c *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall) Header() http.Header {
21826	if c.header_ == nil {
21827		c.header_ = make(http.Header)
21828	}
21829	return c.header_
21830}
21831
21832func (c *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall) doRequest(alt string) (*http.Response, error) {
21833	reqHeaders := make(http.Header)
21834	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
21835	for k, v := range c.header_ {
21836		reqHeaders[k] = v
21837	}
21838	reqHeaders.Set("User-Agent", c.s.userAgent())
21839	var body io.Reader = nil
21840	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerappkey)
21841	if err != nil {
21842		return nil, err
21843	}
21844	reqHeaders.Set("Content-Type", "application/json")
21845	c.urlParams_.Set("alt", alt)
21846	c.urlParams_.Set("prettyPrint", "false")
21847	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
21848	urls += "?" + c.urlParams_.Encode()
21849	req, err := http.NewRequest("PUT", urls, body)
21850	if err != nil {
21851		return nil, err
21852	}
21853	req.Header = reqHeaders
21854	googleapi.Expand(req.URL, map[string]string{
21855		"name": c.name,
21856	})
21857	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21858}
21859
21860// Do executes the "apigee.organizations.developers.apps.keys.replaceDeveloperAppKey" call.
21861// Exactly one of *GoogleCloudApigeeV1DeveloperAppKey or error will be
21862// non-nil. Any non-2xx status code is an error. Response headers are in
21863// either *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or
21864// (if a response was returned at all) in
21865// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
21866// whether the returned error was because http.StatusNotModified was
21867// returned.
21868func (c *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) {
21869	gensupport.SetOptions(c.urlParams_, opts...)
21870	res, err := c.doRequest("json")
21871	if res != nil && res.StatusCode == http.StatusNotModified {
21872		if res.Body != nil {
21873			res.Body.Close()
21874		}
21875		return nil, &googleapi.Error{
21876			Code:   res.StatusCode,
21877			Header: res.Header,
21878		}
21879	}
21880	if err != nil {
21881		return nil, err
21882	}
21883	defer googleapi.CloseBody(res)
21884	if err := googleapi.CheckResponse(res); err != nil {
21885		return nil, err
21886	}
21887	ret := &GoogleCloudApigeeV1DeveloperAppKey{
21888		ServerResponse: googleapi.ServerResponse{
21889			Header:         res.Header,
21890			HTTPStatusCode: res.StatusCode,
21891		},
21892	}
21893	target := &ret
21894	if err := gensupport.DecodeResponse(target, res); err != nil {
21895		return nil, err
21896	}
21897	return ret, nil
21898	// {
21899	//   "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.",
21900	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys/{keysId}",
21901	//   "httpMethod": "PUT",
21902	//   "id": "apigee.organizations.developers.apps.keys.replaceDeveloperAppKey",
21903	//   "parameterOrder": [
21904	//     "name"
21905	//   ],
21906	//   "parameters": {
21907	//     "name": {
21908	//       "description": "Name of the developer app key. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{key}`",
21909	//       "location": "path",
21910	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/keys/[^/]+$",
21911	//       "required": true,
21912	//       "type": "string"
21913	//     }
21914	//   },
21915	//   "path": "v1/{+name}",
21916	//   "request": {
21917	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
21918	//   },
21919	//   "response": {
21920	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
21921	//   },
21922	//   "scopes": [
21923	//     "https://www.googleapis.com/auth/cloud-platform"
21924	//   ]
21925	// }
21926
21927}
21928
21929// method id "apigee.organizations.developers.apps.keys.updateDeveloperAppKey":
21930
21931type OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall struct {
21932	s                                  *Service
21933	name                               string
21934	googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey
21935	urlParams_                         gensupport.URLParams
21936	ctx_                               context.Context
21937	header_                            http.Header
21938}
21939
21940// UpdateDeveloperAppKey: Adds an API product to a developer app key,
21941// enabling the app that holds the key to access the API resources
21942// bundled in the API product. In addition, you can add attributes to a
21943// developer app key. This API replaces the existing attributes with
21944// those specified in the request. Include or exclude any existing
21945// attributes that you want to retain or delete, respectively. You can
21946// use the same key to access all API products associated with the app.
21947//
21948// - name: Name of the developer app key. Use the following structure in
21949//   your request:
21950//   `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{k
21951//   ey}`.
21952func (r *OrganizationsDevelopersAppsKeysService) UpdateDeveloperAppKey(name string, googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey) *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall {
21953	c := &OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21954	c.name = name
21955	c.googlecloudapigeev1developerappkey = googlecloudapigeev1developerappkey
21956	return c
21957}
21958
21959// Action sets the optional parameter "action": Approve or revoke the
21960// consumer key by setting this value to `approve` or `revoke`,
21961// respectively.
21962func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) Action(action string) *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall {
21963	c.urlParams_.Set("action", action)
21964	return c
21965}
21966
21967// Fields allows partial responses to be retrieved. See
21968// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21969// for more information.
21970func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall {
21971	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21972	return c
21973}
21974
21975// Context sets the context to be used in this call's Do method. Any
21976// pending HTTP request will be aborted if the provided context is
21977// canceled.
21978func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall {
21979	c.ctx_ = ctx
21980	return c
21981}
21982
21983// Header returns an http.Header that can be modified by the caller to
21984// add HTTP headers to the request.
21985func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) Header() http.Header {
21986	if c.header_ == nil {
21987		c.header_ = make(http.Header)
21988	}
21989	return c.header_
21990}
21991
21992func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) doRequest(alt string) (*http.Response, error) {
21993	reqHeaders := make(http.Header)
21994	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
21995	for k, v := range c.header_ {
21996		reqHeaders[k] = v
21997	}
21998	reqHeaders.Set("User-Agent", c.s.userAgent())
21999	var body io.Reader = nil
22000	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerappkey)
22001	if err != nil {
22002		return nil, err
22003	}
22004	reqHeaders.Set("Content-Type", "application/json")
22005	c.urlParams_.Set("alt", alt)
22006	c.urlParams_.Set("prettyPrint", "false")
22007	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
22008	urls += "?" + c.urlParams_.Encode()
22009	req, err := http.NewRequest("POST", urls, body)
22010	if err != nil {
22011		return nil, err
22012	}
22013	req.Header = reqHeaders
22014	googleapi.Expand(req.URL, map[string]string{
22015		"name": c.name,
22016	})
22017	return gensupport.SendRequest(c.ctx_, c.s.client, req)
22018}
22019
22020// Do executes the "apigee.organizations.developers.apps.keys.updateDeveloperAppKey" call.
22021// Exactly one of *GoogleCloudApigeeV1DeveloperAppKey or error will be
22022// non-nil. Any non-2xx status code is an error. Response headers are in
22023// either *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or
22024// (if a response was returned at all) in
22025// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
22026// whether the returned error was because http.StatusNotModified was
22027// returned.
22028func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) {
22029	gensupport.SetOptions(c.urlParams_, opts...)
22030	res, err := c.doRequest("json")
22031	if res != nil && res.StatusCode == http.StatusNotModified {
22032		if res.Body != nil {
22033			res.Body.Close()
22034		}
22035		return nil, &googleapi.Error{
22036			Code:   res.StatusCode,
22037			Header: res.Header,
22038		}
22039	}
22040	if err != nil {
22041		return nil, err
22042	}
22043	defer googleapi.CloseBody(res)
22044	if err := googleapi.CheckResponse(res); err != nil {
22045		return nil, err
22046	}
22047	ret := &GoogleCloudApigeeV1DeveloperAppKey{
22048		ServerResponse: googleapi.ServerResponse{
22049			Header:         res.Header,
22050			HTTPStatusCode: res.StatusCode,
22051		},
22052	}
22053	target := &ret
22054	if err := gensupport.DecodeResponse(target, res); err != nil {
22055		return nil, err
22056	}
22057	return ret, nil
22058	// {
22059	//   "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.",
22060	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys/{keysId}",
22061	//   "httpMethod": "POST",
22062	//   "id": "apigee.organizations.developers.apps.keys.updateDeveloperAppKey",
22063	//   "parameterOrder": [
22064	//     "name"
22065	//   ],
22066	//   "parameters": {
22067	//     "action": {
22068	//       "description": "Approve or revoke the consumer key by setting this value to `approve` or `revoke`, respectively.",
22069	//       "location": "query",
22070	//       "type": "string"
22071	//     },
22072	//     "name": {
22073	//       "description": "Name of the developer app key. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{key}`",
22074	//       "location": "path",
22075	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/keys/[^/]+$",
22076	//       "required": true,
22077	//       "type": "string"
22078	//     }
22079	//   },
22080	//   "path": "v1/{+name}",
22081	//   "request": {
22082	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
22083	//   },
22084	//   "response": {
22085	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
22086	//   },
22087	//   "scopes": [
22088	//     "https://www.googleapis.com/auth/cloud-platform"
22089	//   ]
22090	// }
22091
22092}
22093
22094// method id "apigee.organizations.developers.apps.keys.apiproducts.delete":
22095
22096type OrganizationsDevelopersAppsKeysApiproductsDeleteCall struct {
22097	s          *Service
22098	name       string
22099	urlParams_ gensupport.URLParams
22100	ctx_       context.Context
22101	header_    http.Header
22102}
22103
22104// Delete: Removes an API product from an app's consumer key. After the
22105// API product is removed, the app cannot access the API resources
22106// defined in that API product. **Note**: The consumer key is not
22107// removed, only its association with the API product.
22108//
22109// - name: Name of the API product in the developer app key in the
22110//   following format:
22111//   `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{k
22112//   ey}/apiproducts/{apiproduct}`.
22113func (r *OrganizationsDevelopersAppsKeysApiproductsService) Delete(name string) *OrganizationsDevelopersAppsKeysApiproductsDeleteCall {
22114	c := &OrganizationsDevelopersAppsKeysApiproductsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22115	c.name = name
22116	return c
22117}
22118
22119// Fields allows partial responses to be retrieved. See
22120// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
22121// for more information.
22122func (c *OrganizationsDevelopersAppsKeysApiproductsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysApiproductsDeleteCall {
22123	c.urlParams_.Set("fields", googleapi.CombineFields(s))
22124	return c
22125}
22126
22127// Context sets the context to be used in this call's Do method. Any
22128// pending HTTP request will be aborted if the provided context is
22129// canceled.
22130func (c *OrganizationsDevelopersAppsKeysApiproductsDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysApiproductsDeleteCall {
22131	c.ctx_ = ctx
22132	return c
22133}
22134
22135// Header returns an http.Header that can be modified by the caller to
22136// add HTTP headers to the request.
22137func (c *OrganizationsDevelopersAppsKeysApiproductsDeleteCall) Header() http.Header {
22138	if c.header_ == nil {
22139		c.header_ = make(http.Header)
22140	}
22141	return c.header_
22142}
22143
22144func (c *OrganizationsDevelopersAppsKeysApiproductsDeleteCall) doRequest(alt string) (*http.Response, error) {
22145	reqHeaders := make(http.Header)
22146	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
22147	for k, v := range c.header_ {
22148		reqHeaders[k] = v
22149	}
22150	reqHeaders.Set("User-Agent", c.s.userAgent())
22151	var body io.Reader = nil
22152	c.urlParams_.Set("alt", alt)
22153	c.urlParams_.Set("prettyPrint", "false")
22154	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
22155	urls += "?" + c.urlParams_.Encode()
22156	req, err := http.NewRequest("DELETE", urls, body)
22157	if err != nil {
22158		return nil, err
22159	}
22160	req.Header = reqHeaders
22161	googleapi.Expand(req.URL, map[string]string{
22162		"name": c.name,
22163	})
22164	return gensupport.SendRequest(c.ctx_, c.s.client, req)
22165}
22166
22167// Do executes the "apigee.organizations.developers.apps.keys.apiproducts.delete" call.
22168// Exactly one of *GoogleCloudApigeeV1DeveloperAppKey or error will be
22169// non-nil. Any non-2xx status code is an error. Response headers are in
22170// either *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or
22171// (if a response was returned at all) in
22172// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
22173// whether the returned error was because http.StatusNotModified was
22174// returned.
22175func (c *OrganizationsDevelopersAppsKeysApiproductsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) {
22176	gensupport.SetOptions(c.urlParams_, opts...)
22177	res, err := c.doRequest("json")
22178	if res != nil && res.StatusCode == http.StatusNotModified {
22179		if res.Body != nil {
22180			res.Body.Close()
22181		}
22182		return nil, &googleapi.Error{
22183			Code:   res.StatusCode,
22184			Header: res.Header,
22185		}
22186	}
22187	if err != nil {
22188		return nil, err
22189	}
22190	defer googleapi.CloseBody(res)
22191	if err := googleapi.CheckResponse(res); err != nil {
22192		return nil, err
22193	}
22194	ret := &GoogleCloudApigeeV1DeveloperAppKey{
22195		ServerResponse: googleapi.ServerResponse{
22196			Header:         res.Header,
22197			HTTPStatusCode: res.StatusCode,
22198		},
22199	}
22200	target := &ret
22201	if err := gensupport.DecodeResponse(target, res); err != nil {
22202		return nil, err
22203	}
22204	return ret, nil
22205	// {
22206	//   "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.",
22207	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys/{keysId}/apiproducts/{apiproductsId}",
22208	//   "httpMethod": "DELETE",
22209	//   "id": "apigee.organizations.developers.apps.keys.apiproducts.delete",
22210	//   "parameterOrder": [
22211	//     "name"
22212	//   ],
22213	//   "parameters": {
22214	//     "name": {
22215	//       "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}`",
22216	//       "location": "path",
22217	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/keys/[^/]+/apiproducts/[^/]+$",
22218	//       "required": true,
22219	//       "type": "string"
22220	//     }
22221	//   },
22222	//   "path": "v1/{+name}",
22223	//   "response": {
22224	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
22225	//   },
22226	//   "scopes": [
22227	//     "https://www.googleapis.com/auth/cloud-platform"
22228	//   ]
22229	// }
22230
22231}
22232
22233// method id "apigee.organizations.developers.apps.keys.apiproducts.updateDeveloperAppKeyApiProduct":
22234
22235type OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall struct {
22236	s          *Service
22237	name       string
22238	urlParams_ gensupport.URLParams
22239	ctx_       context.Context
22240	header_    http.Header
22241}
22242
22243// UpdateDeveloperAppKeyApiProduct: Approves or revokes the consumer key
22244// for an API product. After a consumer key is approved, the app can use
22245// it to access APIs. A consumer key that is revoked or pending cannot
22246// be used to access an API. Any access tokens associated with a revoked
22247// consumer key will remain active. However, Apigee checks the status of
22248// the consumer key and if set to `revoked` will not allow access to the
22249// API.
22250//
22251// - name: Name of the API product in the developer app key in the
22252//   following format:
22253//   `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{k
22254//   ey}/apiproducts/{apiproduct}`.
22255func (r *OrganizationsDevelopersAppsKeysApiproductsService) UpdateDeveloperAppKeyApiProduct(name string) *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall {
22256	c := &OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22257	c.name = name
22258	return c
22259}
22260
22261// Action sets the optional parameter "action": Approve or revoke the
22262// consumer key by setting this value to `approve` or `revoke`,
22263// respectively.
22264func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) Action(action string) *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall {
22265	c.urlParams_.Set("action", action)
22266	return c
22267}
22268
22269// Fields allows partial responses to be retrieved. See
22270// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
22271// for more information.
22272func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall {
22273	c.urlParams_.Set("fields", googleapi.CombineFields(s))
22274	return c
22275}
22276
22277// Context sets the context to be used in this call's Do method. Any
22278// pending HTTP request will be aborted if the provided context is
22279// canceled.
22280func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall {
22281	c.ctx_ = ctx
22282	return c
22283}
22284
22285// Header returns an http.Header that can be modified by the caller to
22286// add HTTP headers to the request.
22287func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) Header() http.Header {
22288	if c.header_ == nil {
22289		c.header_ = make(http.Header)
22290	}
22291	return c.header_
22292}
22293
22294func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) doRequest(alt string) (*http.Response, error) {
22295	reqHeaders := make(http.Header)
22296	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
22297	for k, v := range c.header_ {
22298		reqHeaders[k] = v
22299	}
22300	reqHeaders.Set("User-Agent", c.s.userAgent())
22301	var body io.Reader = nil
22302	c.urlParams_.Set("alt", alt)
22303	c.urlParams_.Set("prettyPrint", "false")
22304	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
22305	urls += "?" + c.urlParams_.Encode()
22306	req, err := http.NewRequest("POST", urls, body)
22307	if err != nil {
22308		return nil, err
22309	}
22310	req.Header = reqHeaders
22311	googleapi.Expand(req.URL, map[string]string{
22312		"name": c.name,
22313	})
22314	return gensupport.SendRequest(c.ctx_, c.s.client, req)
22315}
22316
22317// Do executes the "apigee.organizations.developers.apps.keys.apiproducts.updateDeveloperAppKeyApiProduct" call.
22318// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
22319// non-2xx status code is an error. Response headers are in either
22320// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
22321// returned at all) in error.(*googleapi.Error).Header. Use
22322// googleapi.IsNotModified to check whether the returned error was
22323// because http.StatusNotModified was returned.
22324func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
22325	gensupport.SetOptions(c.urlParams_, opts...)
22326	res, err := c.doRequest("json")
22327	if res != nil && res.StatusCode == http.StatusNotModified {
22328		if res.Body != nil {
22329			res.Body.Close()
22330		}
22331		return nil, &googleapi.Error{
22332			Code:   res.StatusCode,
22333			Header: res.Header,
22334		}
22335	}
22336	if err != nil {
22337		return nil, err
22338	}
22339	defer googleapi.CloseBody(res)
22340	if err := googleapi.CheckResponse(res); err != nil {
22341		return nil, err
22342	}
22343	ret := &GoogleProtobufEmpty{
22344		ServerResponse: googleapi.ServerResponse{
22345			Header:         res.Header,
22346			HTTPStatusCode: res.StatusCode,
22347		},
22348	}
22349	target := &ret
22350	if err := gensupport.DecodeResponse(target, res); err != nil {
22351		return nil, err
22352	}
22353	return ret, nil
22354	// {
22355	//   "description": "Approves or revokes the consumer key for an API product. 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 checks the status of the consumer key and if set to `revoked` will not allow access to the API.",
22356	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys/{keysId}/apiproducts/{apiproductsId}",
22357	//   "httpMethod": "POST",
22358	//   "id": "apigee.organizations.developers.apps.keys.apiproducts.updateDeveloperAppKeyApiProduct",
22359	//   "parameterOrder": [
22360	//     "name"
22361	//   ],
22362	//   "parameters": {
22363	//     "action": {
22364	//       "description": "Approve or revoke the consumer key by setting this value to `approve` or `revoke`, respectively.",
22365	//       "location": "query",
22366	//       "type": "string"
22367	//     },
22368	//     "name": {
22369	//       "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}`",
22370	//       "location": "path",
22371	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/keys/[^/]+/apiproducts/[^/]+$",
22372	//       "required": true,
22373	//       "type": "string"
22374	//     }
22375	//   },
22376	//   "path": "v1/{+name}",
22377	//   "response": {
22378	//     "$ref": "GoogleProtobufEmpty"
22379	//   },
22380	//   "scopes": [
22381	//     "https://www.googleapis.com/auth/cloud-platform"
22382	//   ]
22383	// }
22384
22385}
22386
22387// method id "apigee.organizations.developers.apps.keys.create.create":
22388
22389type OrganizationsDevelopersAppsKeysCreateCreateCall struct {
22390	s                                  *Service
22391	parent                             string
22392	googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey
22393	urlParams_                         gensupport.URLParams
22394	ctx_                               context.Context
22395	header_                            http.Header
22396}
22397
22398// Create: Creates a custom consumer key and secret for a developer app.
22399// This is particularly useful if you want to migrate existing consumer
22400// keys and secrets to Apigee from another system. Consumer keys and
22401// secrets can contain letters, numbers, underscores, and hyphens. No
22402// other special characters are allowed. To avoid service disruptions, a
22403// consumer key and secret should not exceed 2 KBs each. **Note**: When
22404// creating the consumer key and secret, an association to API products
22405// will not be made. Therefore, you should not specify the associated
22406// API products in your request. Instead, use the UpdateDeveloperAppKey
22407// API to make the association after the consumer key and secret are
22408// created. If a consumer key and secret already exist, you can keep
22409// them or delete them using the DeleteDeveloperAppKey API.
22410//
22411// - parent: Parent of the developer app key. Use the following
22412//   structure in your request:
22413//   `organizations/{org}/developers/{developer_email}/apps`.
22414func (r *OrganizationsDevelopersAppsKeysCreateService) Create(parent string, googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey) *OrganizationsDevelopersAppsKeysCreateCreateCall {
22415	c := &OrganizationsDevelopersAppsKeysCreateCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22416	c.parent = parent
22417	c.googlecloudapigeev1developerappkey = googlecloudapigeev1developerappkey
22418	return c
22419}
22420
22421// Fields allows partial responses to be retrieved. See
22422// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
22423// for more information.
22424func (c *OrganizationsDevelopersAppsKeysCreateCreateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysCreateCreateCall {
22425	c.urlParams_.Set("fields", googleapi.CombineFields(s))
22426	return c
22427}
22428
22429// Context sets the context to be used in this call's Do method. Any
22430// pending HTTP request will be aborted if the provided context is
22431// canceled.
22432func (c *OrganizationsDevelopersAppsKeysCreateCreateCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysCreateCreateCall {
22433	c.ctx_ = ctx
22434	return c
22435}
22436
22437// Header returns an http.Header that can be modified by the caller to
22438// add HTTP headers to the request.
22439func (c *OrganizationsDevelopersAppsKeysCreateCreateCall) Header() http.Header {
22440	if c.header_ == nil {
22441		c.header_ = make(http.Header)
22442	}
22443	return c.header_
22444}
22445
22446func (c *OrganizationsDevelopersAppsKeysCreateCreateCall) doRequest(alt string) (*http.Response, error) {
22447	reqHeaders := make(http.Header)
22448	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
22449	for k, v := range c.header_ {
22450		reqHeaders[k] = v
22451	}
22452	reqHeaders.Set("User-Agent", c.s.userAgent())
22453	var body io.Reader = nil
22454	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerappkey)
22455	if err != nil {
22456		return nil, err
22457	}
22458	reqHeaders.Set("Content-Type", "application/json")
22459	c.urlParams_.Set("alt", alt)
22460	c.urlParams_.Set("prettyPrint", "false")
22461	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keys/create")
22462	urls += "?" + c.urlParams_.Encode()
22463	req, err := http.NewRequest("POST", urls, body)
22464	if err != nil {
22465		return nil, err
22466	}
22467	req.Header = reqHeaders
22468	googleapi.Expand(req.URL, map[string]string{
22469		"parent": c.parent,
22470	})
22471	return gensupport.SendRequest(c.ctx_, c.s.client, req)
22472}
22473
22474// Do executes the "apigee.organizations.developers.apps.keys.create.create" call.
22475// Exactly one of *GoogleCloudApigeeV1DeveloperAppKey or error will be
22476// non-nil. Any non-2xx status code is an error. Response headers are in
22477// either *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or
22478// (if a response was returned at all) in
22479// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
22480// whether the returned error was because http.StatusNotModified was
22481// returned.
22482func (c *OrganizationsDevelopersAppsKeysCreateCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) {
22483	gensupport.SetOptions(c.urlParams_, opts...)
22484	res, err := c.doRequest("json")
22485	if res != nil && res.StatusCode == http.StatusNotModified {
22486		if res.Body != nil {
22487			res.Body.Close()
22488		}
22489		return nil, &googleapi.Error{
22490			Code:   res.StatusCode,
22491			Header: res.Header,
22492		}
22493	}
22494	if err != nil {
22495		return nil, err
22496	}
22497	defer googleapi.CloseBody(res)
22498	if err := googleapi.CheckResponse(res); err != nil {
22499		return nil, err
22500	}
22501	ret := &GoogleCloudApigeeV1DeveloperAppKey{
22502		ServerResponse: googleapi.ServerResponse{
22503			Header:         res.Header,
22504			HTTPStatusCode: res.StatusCode,
22505		},
22506	}
22507	target := &ret
22508	if err := gensupport.DecodeResponse(target, res); err != nil {
22509		return nil, err
22510	}
22511	return ret, nil
22512	// {
22513	//   "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 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.",
22514	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys/create",
22515	//   "httpMethod": "POST",
22516	//   "id": "apigee.organizations.developers.apps.keys.create.create",
22517	//   "parameterOrder": [
22518	//     "parent"
22519	//   ],
22520	//   "parameters": {
22521	//     "parent": {
22522	//       "description": "Parent of the developer app key. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps`",
22523	//       "location": "path",
22524	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$",
22525	//       "required": true,
22526	//       "type": "string"
22527	//     }
22528	//   },
22529	//   "path": "v1/{+parent}/keys/create",
22530	//   "request": {
22531	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
22532	//   },
22533	//   "response": {
22534	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
22535	//   },
22536	//   "scopes": [
22537	//     "https://www.googleapis.com/auth/cloud-platform"
22538	//   ]
22539	// }
22540
22541}
22542
22543// method id "apigee.organizations.developers.attributes.delete":
22544
22545type OrganizationsDevelopersAttributesDeleteCall struct {
22546	s          *Service
22547	name       string
22548	urlParams_ gensupport.URLParams
22549	ctx_       context.Context
22550	header_    http.Header
22551}
22552
22553// Delete: Deletes a developer attribute.
22554//
22555// - name: Name of the developer attribute. Use the following structure
22556//   in your request:
22557//   `organizations/{org}/developers/{developer_email}/attributes/{attrib
22558//   ute}`.
22559func (r *OrganizationsDevelopersAttributesService) Delete(name string) *OrganizationsDevelopersAttributesDeleteCall {
22560	c := &OrganizationsDevelopersAttributesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22561	c.name = name
22562	return c
22563}
22564
22565// Fields allows partial responses to be retrieved. See
22566// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
22567// for more information.
22568func (c *OrganizationsDevelopersAttributesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAttributesDeleteCall {
22569	c.urlParams_.Set("fields", googleapi.CombineFields(s))
22570	return c
22571}
22572
22573// Context sets the context to be used in this call's Do method. Any
22574// pending HTTP request will be aborted if the provided context is
22575// canceled.
22576func (c *OrganizationsDevelopersAttributesDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersAttributesDeleteCall {
22577	c.ctx_ = ctx
22578	return c
22579}
22580
22581// Header returns an http.Header that can be modified by the caller to
22582// add HTTP headers to the request.
22583func (c *OrganizationsDevelopersAttributesDeleteCall) Header() http.Header {
22584	if c.header_ == nil {
22585		c.header_ = make(http.Header)
22586	}
22587	return c.header_
22588}
22589
22590func (c *OrganizationsDevelopersAttributesDeleteCall) doRequest(alt string) (*http.Response, error) {
22591	reqHeaders := make(http.Header)
22592	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
22593	for k, v := range c.header_ {
22594		reqHeaders[k] = v
22595	}
22596	reqHeaders.Set("User-Agent", c.s.userAgent())
22597	var body io.Reader = nil
22598	c.urlParams_.Set("alt", alt)
22599	c.urlParams_.Set("prettyPrint", "false")
22600	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
22601	urls += "?" + c.urlParams_.Encode()
22602	req, err := http.NewRequest("DELETE", urls, body)
22603	if err != nil {
22604		return nil, err
22605	}
22606	req.Header = reqHeaders
22607	googleapi.Expand(req.URL, map[string]string{
22608		"name": c.name,
22609	})
22610	return gensupport.SendRequest(c.ctx_, c.s.client, req)
22611}
22612
22613// Do executes the "apigee.organizations.developers.attributes.delete" call.
22614// Exactly one of *GoogleCloudApigeeV1Attribute or error will be
22615// non-nil. Any non-2xx status code is an error. Response headers are in
22616// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a
22617// response was returned at all) in error.(*googleapi.Error).Header. Use
22618// googleapi.IsNotModified to check whether the returned error was
22619// because http.StatusNotModified was returned.
22620func (c *OrganizationsDevelopersAttributesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
22621	gensupport.SetOptions(c.urlParams_, opts...)
22622	res, err := c.doRequest("json")
22623	if res != nil && res.StatusCode == http.StatusNotModified {
22624		if res.Body != nil {
22625			res.Body.Close()
22626		}
22627		return nil, &googleapi.Error{
22628			Code:   res.StatusCode,
22629			Header: res.Header,
22630		}
22631	}
22632	if err != nil {
22633		return nil, err
22634	}
22635	defer googleapi.CloseBody(res)
22636	if err := googleapi.CheckResponse(res); err != nil {
22637		return nil, err
22638	}
22639	ret := &GoogleCloudApigeeV1Attribute{
22640		ServerResponse: googleapi.ServerResponse{
22641			Header:         res.Header,
22642			HTTPStatusCode: res.StatusCode,
22643		},
22644	}
22645	target := &ret
22646	if err := gensupport.DecodeResponse(target, res); err != nil {
22647		return nil, err
22648	}
22649	return ret, nil
22650	// {
22651	//   "description": "Deletes a developer attribute.",
22652	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/attributes/{attributesId}",
22653	//   "httpMethod": "DELETE",
22654	//   "id": "apigee.organizations.developers.attributes.delete",
22655	//   "parameterOrder": [
22656	//     "name"
22657	//   ],
22658	//   "parameters": {
22659	//     "name": {
22660	//       "description": "Required. Name of the developer attribute. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/attributes/{attribute}`",
22661	//       "location": "path",
22662	//       "pattern": "^organizations/[^/]+/developers/[^/]+/attributes/[^/]+$",
22663	//       "required": true,
22664	//       "type": "string"
22665	//     }
22666	//   },
22667	//   "path": "v1/{+name}",
22668	//   "response": {
22669	//     "$ref": "GoogleCloudApigeeV1Attribute"
22670	//   },
22671	//   "scopes": [
22672	//     "https://www.googleapis.com/auth/cloud-platform"
22673	//   ]
22674	// }
22675
22676}
22677
22678// method id "apigee.organizations.developers.attributes.get":
22679
22680type OrganizationsDevelopersAttributesGetCall struct {
22681	s            *Service
22682	name         string
22683	urlParams_   gensupport.URLParams
22684	ifNoneMatch_ string
22685	ctx_         context.Context
22686	header_      http.Header
22687}
22688
22689// Get: Returns the value of the specified developer attribute.
22690//
22691// - name: Name of the developer attribute. Use the following structure
22692//   in your request:
22693//   `organizations/{org}/developers/{developer_email}/attributes/{attrib
22694//   ute}`.
22695func (r *OrganizationsDevelopersAttributesService) Get(name string) *OrganizationsDevelopersAttributesGetCall {
22696	c := &OrganizationsDevelopersAttributesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22697	c.name = name
22698	return c
22699}
22700
22701// Fields allows partial responses to be retrieved. See
22702// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
22703// for more information.
22704func (c *OrganizationsDevelopersAttributesGetCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAttributesGetCall {
22705	c.urlParams_.Set("fields", googleapi.CombineFields(s))
22706	return c
22707}
22708
22709// IfNoneMatch sets the optional parameter which makes the operation
22710// fail if the object's ETag matches the given value. This is useful for
22711// getting updates only after the object has changed since the last
22712// request. Use googleapi.IsNotModified to check whether the response
22713// error from Do is the result of In-None-Match.
22714func (c *OrganizationsDevelopersAttributesGetCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAttributesGetCall {
22715	c.ifNoneMatch_ = entityTag
22716	return c
22717}
22718
22719// Context sets the context to be used in this call's Do method. Any
22720// pending HTTP request will be aborted if the provided context is
22721// canceled.
22722func (c *OrganizationsDevelopersAttributesGetCall) Context(ctx context.Context) *OrganizationsDevelopersAttributesGetCall {
22723	c.ctx_ = ctx
22724	return c
22725}
22726
22727// Header returns an http.Header that can be modified by the caller to
22728// add HTTP headers to the request.
22729func (c *OrganizationsDevelopersAttributesGetCall) Header() http.Header {
22730	if c.header_ == nil {
22731		c.header_ = make(http.Header)
22732	}
22733	return c.header_
22734}
22735
22736func (c *OrganizationsDevelopersAttributesGetCall) doRequest(alt string) (*http.Response, error) {
22737	reqHeaders := make(http.Header)
22738	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
22739	for k, v := range c.header_ {
22740		reqHeaders[k] = v
22741	}
22742	reqHeaders.Set("User-Agent", c.s.userAgent())
22743	if c.ifNoneMatch_ != "" {
22744		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22745	}
22746	var body io.Reader = nil
22747	c.urlParams_.Set("alt", alt)
22748	c.urlParams_.Set("prettyPrint", "false")
22749	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
22750	urls += "?" + c.urlParams_.Encode()
22751	req, err := http.NewRequest("GET", urls, body)
22752	if err != nil {
22753		return nil, err
22754	}
22755	req.Header = reqHeaders
22756	googleapi.Expand(req.URL, map[string]string{
22757		"name": c.name,
22758	})
22759	return gensupport.SendRequest(c.ctx_, c.s.client, req)
22760}
22761
22762// Do executes the "apigee.organizations.developers.attributes.get" call.
22763// Exactly one of *GoogleCloudApigeeV1Attribute or error will be
22764// non-nil. Any non-2xx status code is an error. Response headers are in
22765// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a
22766// response was returned at all) in error.(*googleapi.Error).Header. Use
22767// googleapi.IsNotModified to check whether the returned error was
22768// because http.StatusNotModified was returned.
22769func (c *OrganizationsDevelopersAttributesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
22770	gensupport.SetOptions(c.urlParams_, opts...)
22771	res, err := c.doRequest("json")
22772	if res != nil && res.StatusCode == http.StatusNotModified {
22773		if res.Body != nil {
22774			res.Body.Close()
22775		}
22776		return nil, &googleapi.Error{
22777			Code:   res.StatusCode,
22778			Header: res.Header,
22779		}
22780	}
22781	if err != nil {
22782		return nil, err
22783	}
22784	defer googleapi.CloseBody(res)
22785	if err := googleapi.CheckResponse(res); err != nil {
22786		return nil, err
22787	}
22788	ret := &GoogleCloudApigeeV1Attribute{
22789		ServerResponse: googleapi.ServerResponse{
22790			Header:         res.Header,
22791			HTTPStatusCode: res.StatusCode,
22792		},
22793	}
22794	target := &ret
22795	if err := gensupport.DecodeResponse(target, res); err != nil {
22796		return nil, err
22797	}
22798	return ret, nil
22799	// {
22800	//   "description": "Returns the value of the specified developer attribute.",
22801	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/attributes/{attributesId}",
22802	//   "httpMethod": "GET",
22803	//   "id": "apigee.organizations.developers.attributes.get",
22804	//   "parameterOrder": [
22805	//     "name"
22806	//   ],
22807	//   "parameters": {
22808	//     "name": {
22809	//       "description": "Required. Name of the developer attribute. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/attributes/{attribute}`",
22810	//       "location": "path",
22811	//       "pattern": "^organizations/[^/]+/developers/[^/]+/attributes/[^/]+$",
22812	//       "required": true,
22813	//       "type": "string"
22814	//     }
22815	//   },
22816	//   "path": "v1/{+name}",
22817	//   "response": {
22818	//     "$ref": "GoogleCloudApigeeV1Attribute"
22819	//   },
22820	//   "scopes": [
22821	//     "https://www.googleapis.com/auth/cloud-platform"
22822	//   ]
22823	// }
22824
22825}
22826
22827// method id "apigee.organizations.developers.attributes.list":
22828
22829type OrganizationsDevelopersAttributesListCall struct {
22830	s            *Service
22831	parent       string
22832	urlParams_   gensupport.URLParams
22833	ifNoneMatch_ string
22834	ctx_         context.Context
22835	header_      http.Header
22836}
22837
22838// List: Returns a list of all developer attributes.
22839//
22840// - parent: Email address of the developer for which attributes are
22841//   being listed. Use the following structure in your request:
22842//   `organizations/{org}/developers/{developer_email}`.
22843func (r *OrganizationsDevelopersAttributesService) List(parent string) *OrganizationsDevelopersAttributesListCall {
22844	c := &OrganizationsDevelopersAttributesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22845	c.parent = parent
22846	return c
22847}
22848
22849// Fields allows partial responses to be retrieved. See
22850// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
22851// for more information.
22852func (c *OrganizationsDevelopersAttributesListCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAttributesListCall {
22853	c.urlParams_.Set("fields", googleapi.CombineFields(s))
22854	return c
22855}
22856
22857// IfNoneMatch sets the optional parameter which makes the operation
22858// fail if the object's ETag matches the given value. This is useful for
22859// getting updates only after the object has changed since the last
22860// request. Use googleapi.IsNotModified to check whether the response
22861// error from Do is the result of In-None-Match.
22862func (c *OrganizationsDevelopersAttributesListCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAttributesListCall {
22863	c.ifNoneMatch_ = entityTag
22864	return c
22865}
22866
22867// Context sets the context to be used in this call's Do method. Any
22868// pending HTTP request will be aborted if the provided context is
22869// canceled.
22870func (c *OrganizationsDevelopersAttributesListCall) Context(ctx context.Context) *OrganizationsDevelopersAttributesListCall {
22871	c.ctx_ = ctx
22872	return c
22873}
22874
22875// Header returns an http.Header that can be modified by the caller to
22876// add HTTP headers to the request.
22877func (c *OrganizationsDevelopersAttributesListCall) Header() http.Header {
22878	if c.header_ == nil {
22879		c.header_ = make(http.Header)
22880	}
22881	return c.header_
22882}
22883
22884func (c *OrganizationsDevelopersAttributesListCall) doRequest(alt string) (*http.Response, error) {
22885	reqHeaders := make(http.Header)
22886	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
22887	for k, v := range c.header_ {
22888		reqHeaders[k] = v
22889	}
22890	reqHeaders.Set("User-Agent", c.s.userAgent())
22891	if c.ifNoneMatch_ != "" {
22892		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22893	}
22894	var body io.Reader = nil
22895	c.urlParams_.Set("alt", alt)
22896	c.urlParams_.Set("prettyPrint", "false")
22897	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attributes")
22898	urls += "?" + c.urlParams_.Encode()
22899	req, err := http.NewRequest("GET", urls, body)
22900	if err != nil {
22901		return nil, err
22902	}
22903	req.Header = reqHeaders
22904	googleapi.Expand(req.URL, map[string]string{
22905		"parent": c.parent,
22906	})
22907	return gensupport.SendRequest(c.ctx_, c.s.client, req)
22908}
22909
22910// Do executes the "apigee.organizations.developers.attributes.list" call.
22911// Exactly one of *GoogleCloudApigeeV1Attributes or error will be
22912// non-nil. Any non-2xx status code is an error. Response headers are in
22913// either *GoogleCloudApigeeV1Attributes.ServerResponse.Header or (if a
22914// response was returned at all) in error.(*googleapi.Error).Header. Use
22915// googleapi.IsNotModified to check whether the returned error was
22916// because http.StatusNotModified was returned.
22917func (c *OrganizationsDevelopersAttributesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attributes, error) {
22918	gensupport.SetOptions(c.urlParams_, opts...)
22919	res, err := c.doRequest("json")
22920	if res != nil && res.StatusCode == http.StatusNotModified {
22921		if res.Body != nil {
22922			res.Body.Close()
22923		}
22924		return nil, &googleapi.Error{
22925			Code:   res.StatusCode,
22926			Header: res.Header,
22927		}
22928	}
22929	if err != nil {
22930		return nil, err
22931	}
22932	defer googleapi.CloseBody(res)
22933	if err := googleapi.CheckResponse(res); err != nil {
22934		return nil, err
22935	}
22936	ret := &GoogleCloudApigeeV1Attributes{
22937		ServerResponse: googleapi.ServerResponse{
22938			Header:         res.Header,
22939			HTTPStatusCode: res.StatusCode,
22940		},
22941	}
22942	target := &ret
22943	if err := gensupport.DecodeResponse(target, res); err != nil {
22944		return nil, err
22945	}
22946	return ret, nil
22947	// {
22948	//   "description": "Returns a list of all developer attributes.",
22949	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/attributes",
22950	//   "httpMethod": "GET",
22951	//   "id": "apigee.organizations.developers.attributes.list",
22952	//   "parameterOrder": [
22953	//     "parent"
22954	//   ],
22955	//   "parameters": {
22956	//     "parent": {
22957	//       "description": "Required. Email address of the developer for which attributes are being listed. Use the following structure in your request: `organizations/{org}/developers/{developer_email}`",
22958	//       "location": "path",
22959	//       "pattern": "^organizations/[^/]+/developers/[^/]+$",
22960	//       "required": true,
22961	//       "type": "string"
22962	//     }
22963	//   },
22964	//   "path": "v1/{+parent}/attributes",
22965	//   "response": {
22966	//     "$ref": "GoogleCloudApigeeV1Attributes"
22967	//   },
22968	//   "scopes": [
22969	//     "https://www.googleapis.com/auth/cloud-platform"
22970	//   ]
22971	// }
22972
22973}
22974
22975// method id "apigee.organizations.developers.attributes.updateDeveloperAttribute":
22976
22977type OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall struct {
22978	s                            *Service
22979	name                         string
22980	googlecloudapigeev1attribute *GoogleCloudApigeeV1Attribute
22981	urlParams_                   gensupport.URLParams
22982	ctx_                         context.Context
22983	header_                      http.Header
22984}
22985
22986// UpdateDeveloperAttribute: Updates a developer attribute. **Note**:
22987// OAuth access tokens and Key Management Service (KMS) entities (apps,
22988// developers, and API products) are cached for 180 seconds (default).
22989// Any custom attributes associated with these entities are cached for
22990// at least 180 seconds after the entity is accessed at runtime.
22991// Therefore, an `ExpiresIn` element on the OAuthV2 policy won't be able
22992// to expire an access token in less than 180 seconds.
22993//
22994// - name: Name of the developer attribute. Use the following structure
22995//   in your request:
22996//   `organizations/{org}/developers/{developer_email}/attributes/{attrib
22997//   ute}`.
22998func (r *OrganizationsDevelopersAttributesService) UpdateDeveloperAttribute(name string, googlecloudapigeev1attribute *GoogleCloudApigeeV1Attribute) *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall {
22999	c := &OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23000	c.name = name
23001	c.googlecloudapigeev1attribute = googlecloudapigeev1attribute
23002	return c
23003}
23004
23005// Fields allows partial responses to be retrieved. See
23006// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
23007// for more information.
23008func (c *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall {
23009	c.urlParams_.Set("fields", googleapi.CombineFields(s))
23010	return c
23011}
23012
23013// Context sets the context to be used in this call's Do method. Any
23014// pending HTTP request will be aborted if the provided context is
23015// canceled.
23016func (c *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall) Context(ctx context.Context) *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall {
23017	c.ctx_ = ctx
23018	return c
23019}
23020
23021// Header returns an http.Header that can be modified by the caller to
23022// add HTTP headers to the request.
23023func (c *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall) Header() http.Header {
23024	if c.header_ == nil {
23025		c.header_ = make(http.Header)
23026	}
23027	return c.header_
23028}
23029
23030func (c *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall) doRequest(alt string) (*http.Response, error) {
23031	reqHeaders := make(http.Header)
23032	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
23033	for k, v := range c.header_ {
23034		reqHeaders[k] = v
23035	}
23036	reqHeaders.Set("User-Agent", c.s.userAgent())
23037	var body io.Reader = nil
23038	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1attribute)
23039	if err != nil {
23040		return nil, err
23041	}
23042	reqHeaders.Set("Content-Type", "application/json")
23043	c.urlParams_.Set("alt", alt)
23044	c.urlParams_.Set("prettyPrint", "false")
23045	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
23046	urls += "?" + c.urlParams_.Encode()
23047	req, err := http.NewRequest("POST", urls, body)
23048	if err != nil {
23049		return nil, err
23050	}
23051	req.Header = reqHeaders
23052	googleapi.Expand(req.URL, map[string]string{
23053		"name": c.name,
23054	})
23055	return gensupport.SendRequest(c.ctx_, c.s.client, req)
23056}
23057
23058// Do executes the "apigee.organizations.developers.attributes.updateDeveloperAttribute" call.
23059// Exactly one of *GoogleCloudApigeeV1Attribute or error will be
23060// non-nil. Any non-2xx status code is an error. Response headers are in
23061// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a
23062// response was returned at all) in error.(*googleapi.Error).Header. Use
23063// googleapi.IsNotModified to check whether the returned error was
23064// because http.StatusNotModified was returned.
23065func (c *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
23066	gensupport.SetOptions(c.urlParams_, opts...)
23067	res, err := c.doRequest("json")
23068	if res != nil && res.StatusCode == http.StatusNotModified {
23069		if res.Body != nil {
23070			res.Body.Close()
23071		}
23072		return nil, &googleapi.Error{
23073			Code:   res.StatusCode,
23074			Header: res.Header,
23075		}
23076	}
23077	if err != nil {
23078		return nil, err
23079	}
23080	defer googleapi.CloseBody(res)
23081	if err := googleapi.CheckResponse(res); err != nil {
23082		return nil, err
23083	}
23084	ret := &GoogleCloudApigeeV1Attribute{
23085		ServerResponse: googleapi.ServerResponse{
23086			Header:         res.Header,
23087			HTTPStatusCode: res.StatusCode,
23088		},
23089	}
23090	target := &ret
23091	if err := gensupport.DecodeResponse(target, res); err != nil {
23092		return nil, err
23093	}
23094	return ret, nil
23095	// {
23096	//   "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.",
23097	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/attributes/{attributesId}",
23098	//   "httpMethod": "POST",
23099	//   "id": "apigee.organizations.developers.attributes.updateDeveloperAttribute",
23100	//   "parameterOrder": [
23101	//     "name"
23102	//   ],
23103	//   "parameters": {
23104	//     "name": {
23105	//       "description": "Required. Name of the developer attribute. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/attributes/{attribute}`",
23106	//       "location": "path",
23107	//       "pattern": "^organizations/[^/]+/developers/[^/]+/attributes/[^/]+$",
23108	//       "required": true,
23109	//       "type": "string"
23110	//     }
23111	//   },
23112	//   "path": "v1/{+name}",
23113	//   "request": {
23114	//     "$ref": "GoogleCloudApigeeV1Attribute"
23115	//   },
23116	//   "response": {
23117	//     "$ref": "GoogleCloudApigeeV1Attribute"
23118	//   },
23119	//   "scopes": [
23120	//     "https://www.googleapis.com/auth/cloud-platform"
23121	//   ]
23122	// }
23123
23124}
23125
23126// method id "apigee.organizations.developers.balance.credit":
23127
23128type OrganizationsDevelopersBalanceCreditCall struct {
23129	s                                                *Service
23130	name                                             string
23131	googlecloudapigeev1creditdeveloperbalancerequest *GoogleCloudApigeeV1CreditDeveloperBalanceRequest
23132	urlParams_                                       gensupport.URLParams
23133	ctx_                                             context.Context
23134	header_                                          http.Header
23135}
23136
23137// Credit: Credits the account balance for the developer.
23138//
23139// - name: Account balance for the developer. Use the following
23140//   structure in your request:
23141//   `organizations/{org}/developers/{developer}/balance`.
23142func (r *OrganizationsDevelopersBalanceService) Credit(name string, googlecloudapigeev1creditdeveloperbalancerequest *GoogleCloudApigeeV1CreditDeveloperBalanceRequest) *OrganizationsDevelopersBalanceCreditCall {
23143	c := &OrganizationsDevelopersBalanceCreditCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23144	c.name = name
23145	c.googlecloudapigeev1creditdeveloperbalancerequest = googlecloudapigeev1creditdeveloperbalancerequest
23146	return c
23147}
23148
23149// Fields allows partial responses to be retrieved. See
23150// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
23151// for more information.
23152func (c *OrganizationsDevelopersBalanceCreditCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersBalanceCreditCall {
23153	c.urlParams_.Set("fields", googleapi.CombineFields(s))
23154	return c
23155}
23156
23157// Context sets the context to be used in this call's Do method. Any
23158// pending HTTP request will be aborted if the provided context is
23159// canceled.
23160func (c *OrganizationsDevelopersBalanceCreditCall) Context(ctx context.Context) *OrganizationsDevelopersBalanceCreditCall {
23161	c.ctx_ = ctx
23162	return c
23163}
23164
23165// Header returns an http.Header that can be modified by the caller to
23166// add HTTP headers to the request.
23167func (c *OrganizationsDevelopersBalanceCreditCall) Header() http.Header {
23168	if c.header_ == nil {
23169		c.header_ = make(http.Header)
23170	}
23171	return c.header_
23172}
23173
23174func (c *OrganizationsDevelopersBalanceCreditCall) doRequest(alt string) (*http.Response, error) {
23175	reqHeaders := make(http.Header)
23176	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
23177	for k, v := range c.header_ {
23178		reqHeaders[k] = v
23179	}
23180	reqHeaders.Set("User-Agent", c.s.userAgent())
23181	var body io.Reader = nil
23182	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1creditdeveloperbalancerequest)
23183	if err != nil {
23184		return nil, err
23185	}
23186	reqHeaders.Set("Content-Type", "application/json")
23187	c.urlParams_.Set("alt", alt)
23188	c.urlParams_.Set("prettyPrint", "false")
23189	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:credit")
23190	urls += "?" + c.urlParams_.Encode()
23191	req, err := http.NewRequest("POST", urls, body)
23192	if err != nil {
23193		return nil, err
23194	}
23195	req.Header = reqHeaders
23196	googleapi.Expand(req.URL, map[string]string{
23197		"name": c.name,
23198	})
23199	return gensupport.SendRequest(c.ctx_, c.s.client, req)
23200}
23201
23202// Do executes the "apigee.organizations.developers.balance.credit" call.
23203// Exactly one of *GoogleCloudApigeeV1DeveloperBalance or error will be
23204// non-nil. Any non-2xx status code is an error. Response headers are in
23205// either *GoogleCloudApigeeV1DeveloperBalance.ServerResponse.Header or
23206// (if a response was returned at all) in
23207// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
23208// whether the returned error was because http.StatusNotModified was
23209// returned.
23210func (c *OrganizationsDevelopersBalanceCreditCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperBalance, error) {
23211	gensupport.SetOptions(c.urlParams_, opts...)
23212	res, err := c.doRequest("json")
23213	if res != nil && res.StatusCode == http.StatusNotModified {
23214		if res.Body != nil {
23215			res.Body.Close()
23216		}
23217		return nil, &googleapi.Error{
23218			Code:   res.StatusCode,
23219			Header: res.Header,
23220		}
23221	}
23222	if err != nil {
23223		return nil, err
23224	}
23225	defer googleapi.CloseBody(res)
23226	if err := googleapi.CheckResponse(res); err != nil {
23227		return nil, err
23228	}
23229	ret := &GoogleCloudApigeeV1DeveloperBalance{
23230		ServerResponse: googleapi.ServerResponse{
23231			Header:         res.Header,
23232			HTTPStatusCode: res.StatusCode,
23233		},
23234	}
23235	target := &ret
23236	if err := gensupport.DecodeResponse(target, res); err != nil {
23237		return nil, err
23238	}
23239	return ret, nil
23240	// {
23241	//   "description": "Credits the account balance for the developer.",
23242	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/balance:credit",
23243	//   "httpMethod": "POST",
23244	//   "id": "apigee.organizations.developers.balance.credit",
23245	//   "parameterOrder": [
23246	//     "name"
23247	//   ],
23248	//   "parameters": {
23249	//     "name": {
23250	//       "description": "Required. Account balance for the developer. Use the following structure in your request: `organizations/{org}/developers/{developer}/balance`",
23251	//       "location": "path",
23252	//       "pattern": "^organizations/[^/]+/developers/[^/]+/balance$",
23253	//       "required": true,
23254	//       "type": "string"
23255	//     }
23256	//   },
23257	//   "path": "v1/{+name}:credit",
23258	//   "request": {
23259	//     "$ref": "GoogleCloudApigeeV1CreditDeveloperBalanceRequest"
23260	//   },
23261	//   "response": {
23262	//     "$ref": "GoogleCloudApigeeV1DeveloperBalance"
23263	//   },
23264	//   "scopes": [
23265	//     "https://www.googleapis.com/auth/cloud-platform"
23266	//   ]
23267	// }
23268
23269}
23270
23271// method id "apigee.organizations.developers.subscriptions.create":
23272
23273type OrganizationsDevelopersSubscriptionsCreateCall struct {
23274	s                                        *Service
23275	parent                                   string
23276	googlecloudapigeev1developersubscription *GoogleCloudApigeeV1DeveloperSubscription
23277	urlParams_                               gensupport.URLParams
23278	ctx_                                     context.Context
23279	header_                                  http.Header
23280}
23281
23282// Create: Creates a subscription to an API product.
23283//
23284// - parent: Email address of the developer that is purchasing a
23285//   subscription to the API product. Use the following structure in
23286//   your request: `organizations/{org}/developers/{developer_email}`.
23287func (r *OrganizationsDevelopersSubscriptionsService) Create(parent string, googlecloudapigeev1developersubscription *GoogleCloudApigeeV1DeveloperSubscription) *OrganizationsDevelopersSubscriptionsCreateCall {
23288	c := &OrganizationsDevelopersSubscriptionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23289	c.parent = parent
23290	c.googlecloudapigeev1developersubscription = googlecloudapigeev1developersubscription
23291	return c
23292}
23293
23294// Fields allows partial responses to be retrieved. See
23295// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
23296// for more information.
23297func (c *OrganizationsDevelopersSubscriptionsCreateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersSubscriptionsCreateCall {
23298	c.urlParams_.Set("fields", googleapi.CombineFields(s))
23299	return c
23300}
23301
23302// Context sets the context to be used in this call's Do method. Any
23303// pending HTTP request will be aborted if the provided context is
23304// canceled.
23305func (c *OrganizationsDevelopersSubscriptionsCreateCall) Context(ctx context.Context) *OrganizationsDevelopersSubscriptionsCreateCall {
23306	c.ctx_ = ctx
23307	return c
23308}
23309
23310// Header returns an http.Header that can be modified by the caller to
23311// add HTTP headers to the request.
23312func (c *OrganizationsDevelopersSubscriptionsCreateCall) Header() http.Header {
23313	if c.header_ == nil {
23314		c.header_ = make(http.Header)
23315	}
23316	return c.header_
23317}
23318
23319func (c *OrganizationsDevelopersSubscriptionsCreateCall) doRequest(alt string) (*http.Response, error) {
23320	reqHeaders := make(http.Header)
23321	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
23322	for k, v := range c.header_ {
23323		reqHeaders[k] = v
23324	}
23325	reqHeaders.Set("User-Agent", c.s.userAgent())
23326	var body io.Reader = nil
23327	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developersubscription)
23328	if err != nil {
23329		return nil, err
23330	}
23331	reqHeaders.Set("Content-Type", "application/json")
23332	c.urlParams_.Set("alt", alt)
23333	c.urlParams_.Set("prettyPrint", "false")
23334	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/subscriptions")
23335	urls += "?" + c.urlParams_.Encode()
23336	req, err := http.NewRequest("POST", urls, body)
23337	if err != nil {
23338		return nil, err
23339	}
23340	req.Header = reqHeaders
23341	googleapi.Expand(req.URL, map[string]string{
23342		"parent": c.parent,
23343	})
23344	return gensupport.SendRequest(c.ctx_, c.s.client, req)
23345}
23346
23347// Do executes the "apigee.organizations.developers.subscriptions.create" call.
23348// Exactly one of *GoogleCloudApigeeV1DeveloperSubscription or error
23349// will be non-nil. Any non-2xx status code is an error. Response
23350// headers are in either
23351// *GoogleCloudApigeeV1DeveloperSubscription.ServerResponse.Header or
23352// (if a response was returned at all) in
23353// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
23354// whether the returned error was because http.StatusNotModified was
23355// returned.
23356func (c *OrganizationsDevelopersSubscriptionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperSubscription, error) {
23357	gensupport.SetOptions(c.urlParams_, opts...)
23358	res, err := c.doRequest("json")
23359	if res != nil && res.StatusCode == http.StatusNotModified {
23360		if res.Body != nil {
23361			res.Body.Close()
23362		}
23363		return nil, &googleapi.Error{
23364			Code:   res.StatusCode,
23365			Header: res.Header,
23366		}
23367	}
23368	if err != nil {
23369		return nil, err
23370	}
23371	defer googleapi.CloseBody(res)
23372	if err := googleapi.CheckResponse(res); err != nil {
23373		return nil, err
23374	}
23375	ret := &GoogleCloudApigeeV1DeveloperSubscription{
23376		ServerResponse: googleapi.ServerResponse{
23377			Header:         res.Header,
23378			HTTPStatusCode: res.StatusCode,
23379		},
23380	}
23381	target := &ret
23382	if err := gensupport.DecodeResponse(target, res); err != nil {
23383		return nil, err
23384	}
23385	return ret, nil
23386	// {
23387	//   "description": "Creates a subscription to an API product. ",
23388	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/subscriptions",
23389	//   "httpMethod": "POST",
23390	//   "id": "apigee.organizations.developers.subscriptions.create",
23391	//   "parameterOrder": [
23392	//     "parent"
23393	//   ],
23394	//   "parameters": {
23395	//     "parent": {
23396	//       "description": "Required. Email address of the developer that is purchasing a subscription to the API product. Use the following structure in your request: `organizations/{org}/developers/{developer_email}`",
23397	//       "location": "path",
23398	//       "pattern": "^organizations/[^/]+/developers/[^/]+$",
23399	//       "required": true,
23400	//       "type": "string"
23401	//     }
23402	//   },
23403	//   "path": "v1/{+parent}/subscriptions",
23404	//   "request": {
23405	//     "$ref": "GoogleCloudApigeeV1DeveloperSubscription"
23406	//   },
23407	//   "response": {
23408	//     "$ref": "GoogleCloudApigeeV1DeveloperSubscription"
23409	//   },
23410	//   "scopes": [
23411	//     "https://www.googleapis.com/auth/cloud-platform"
23412	//   ]
23413	// }
23414
23415}
23416
23417// method id "apigee.organizations.developers.subscriptions.expire":
23418
23419type OrganizationsDevelopersSubscriptionsExpireCall struct {
23420	s                                                     *Service
23421	name                                                  string
23422	googlecloudapigeev1expiredevelopersubscriptionrequest *GoogleCloudApigeeV1ExpireDeveloperSubscriptionRequest
23423	urlParams_                                            gensupport.URLParams
23424	ctx_                                                  context.Context
23425	header_                                               http.Header
23426}
23427
23428// Expire: Expires an API product subscription immediately.
23429//
23430// - name: Name of the API product subscription. Use the following
23431//   structure in your request:
23432//   `organizations/{org}/developers/{developer_email}/subscriptions/{sub
23433//   scription}`.
23434func (r *OrganizationsDevelopersSubscriptionsService) Expire(name string, googlecloudapigeev1expiredevelopersubscriptionrequest *GoogleCloudApigeeV1ExpireDeveloperSubscriptionRequest) *OrganizationsDevelopersSubscriptionsExpireCall {
23435	c := &OrganizationsDevelopersSubscriptionsExpireCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23436	c.name = name
23437	c.googlecloudapigeev1expiredevelopersubscriptionrequest = googlecloudapigeev1expiredevelopersubscriptionrequest
23438	return c
23439}
23440
23441// Fields allows partial responses to be retrieved. See
23442// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
23443// for more information.
23444func (c *OrganizationsDevelopersSubscriptionsExpireCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersSubscriptionsExpireCall {
23445	c.urlParams_.Set("fields", googleapi.CombineFields(s))
23446	return c
23447}
23448
23449// Context sets the context to be used in this call's Do method. Any
23450// pending HTTP request will be aborted if the provided context is
23451// canceled.
23452func (c *OrganizationsDevelopersSubscriptionsExpireCall) Context(ctx context.Context) *OrganizationsDevelopersSubscriptionsExpireCall {
23453	c.ctx_ = ctx
23454	return c
23455}
23456
23457// Header returns an http.Header that can be modified by the caller to
23458// add HTTP headers to the request.
23459func (c *OrganizationsDevelopersSubscriptionsExpireCall) Header() http.Header {
23460	if c.header_ == nil {
23461		c.header_ = make(http.Header)
23462	}
23463	return c.header_
23464}
23465
23466func (c *OrganizationsDevelopersSubscriptionsExpireCall) doRequest(alt string) (*http.Response, error) {
23467	reqHeaders := make(http.Header)
23468	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
23469	for k, v := range c.header_ {
23470		reqHeaders[k] = v
23471	}
23472	reqHeaders.Set("User-Agent", c.s.userAgent())
23473	var body io.Reader = nil
23474	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1expiredevelopersubscriptionrequest)
23475	if err != nil {
23476		return nil, err
23477	}
23478	reqHeaders.Set("Content-Type", "application/json")
23479	c.urlParams_.Set("alt", alt)
23480	c.urlParams_.Set("prettyPrint", "false")
23481	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:expire")
23482	urls += "?" + c.urlParams_.Encode()
23483	req, err := http.NewRequest("POST", urls, body)
23484	if err != nil {
23485		return nil, err
23486	}
23487	req.Header = reqHeaders
23488	googleapi.Expand(req.URL, map[string]string{
23489		"name": c.name,
23490	})
23491	return gensupport.SendRequest(c.ctx_, c.s.client, req)
23492}
23493
23494// Do executes the "apigee.organizations.developers.subscriptions.expire" call.
23495// Exactly one of *GoogleCloudApigeeV1DeveloperSubscription or error
23496// will be non-nil. Any non-2xx status code is an error. Response
23497// headers are in either
23498// *GoogleCloudApigeeV1DeveloperSubscription.ServerResponse.Header or
23499// (if a response was returned at all) in
23500// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
23501// whether the returned error was because http.StatusNotModified was
23502// returned.
23503func (c *OrganizationsDevelopersSubscriptionsExpireCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperSubscription, error) {
23504	gensupport.SetOptions(c.urlParams_, opts...)
23505	res, err := c.doRequest("json")
23506	if res != nil && res.StatusCode == http.StatusNotModified {
23507		if res.Body != nil {
23508			res.Body.Close()
23509		}
23510		return nil, &googleapi.Error{
23511			Code:   res.StatusCode,
23512			Header: res.Header,
23513		}
23514	}
23515	if err != nil {
23516		return nil, err
23517	}
23518	defer googleapi.CloseBody(res)
23519	if err := googleapi.CheckResponse(res); err != nil {
23520		return nil, err
23521	}
23522	ret := &GoogleCloudApigeeV1DeveloperSubscription{
23523		ServerResponse: googleapi.ServerResponse{
23524			Header:         res.Header,
23525			HTTPStatusCode: res.StatusCode,
23526		},
23527	}
23528	target := &ret
23529	if err := gensupport.DecodeResponse(target, res); err != nil {
23530		return nil, err
23531	}
23532	return ret, nil
23533	// {
23534	//   "description": "Expires an API product subscription immediately.",
23535	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/subscriptions/{subscriptionsId}:expire",
23536	//   "httpMethod": "POST",
23537	//   "id": "apigee.organizations.developers.subscriptions.expire",
23538	//   "parameterOrder": [
23539	//     "name"
23540	//   ],
23541	//   "parameters": {
23542	//     "name": {
23543	//       "description": "Required. Name of the API product subscription. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/subscriptions/{subscription}`",
23544	//       "location": "path",
23545	//       "pattern": "^organizations/[^/]+/developers/[^/]+/subscriptions/[^/]+$",
23546	//       "required": true,
23547	//       "type": "string"
23548	//     }
23549	//   },
23550	//   "path": "v1/{+name}:expire",
23551	//   "request": {
23552	//     "$ref": "GoogleCloudApigeeV1ExpireDeveloperSubscriptionRequest"
23553	//   },
23554	//   "response": {
23555	//     "$ref": "GoogleCloudApigeeV1DeveloperSubscription"
23556	//   },
23557	//   "scopes": [
23558	//     "https://www.googleapis.com/auth/cloud-platform"
23559	//   ]
23560	// }
23561
23562}
23563
23564// method id "apigee.organizations.developers.subscriptions.get":
23565
23566type OrganizationsDevelopersSubscriptionsGetCall struct {
23567	s            *Service
23568	name         string
23569	urlParams_   gensupport.URLParams
23570	ifNoneMatch_ string
23571	ctx_         context.Context
23572	header_      http.Header
23573}
23574
23575// Get: Gets details for an API product subscription.
23576//
23577// - name: Name of the API product subscription. Use the following
23578//   structure in your request:
23579//   `organizations/{org}/developers/{developer_email}/subscriptions/{sub
23580//   scription}`.
23581func (r *OrganizationsDevelopersSubscriptionsService) Get(name string) *OrganizationsDevelopersSubscriptionsGetCall {
23582	c := &OrganizationsDevelopersSubscriptionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23583	c.name = name
23584	return c
23585}
23586
23587// Fields allows partial responses to be retrieved. See
23588// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
23589// for more information.
23590func (c *OrganizationsDevelopersSubscriptionsGetCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersSubscriptionsGetCall {
23591	c.urlParams_.Set("fields", googleapi.CombineFields(s))
23592	return c
23593}
23594
23595// IfNoneMatch sets the optional parameter which makes the operation
23596// fail if the object's ETag matches the given value. This is useful for
23597// getting updates only after the object has changed since the last
23598// request. Use googleapi.IsNotModified to check whether the response
23599// error from Do is the result of In-None-Match.
23600func (c *OrganizationsDevelopersSubscriptionsGetCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersSubscriptionsGetCall {
23601	c.ifNoneMatch_ = entityTag
23602	return c
23603}
23604
23605// Context sets the context to be used in this call's Do method. Any
23606// pending HTTP request will be aborted if the provided context is
23607// canceled.
23608func (c *OrganizationsDevelopersSubscriptionsGetCall) Context(ctx context.Context) *OrganizationsDevelopersSubscriptionsGetCall {
23609	c.ctx_ = ctx
23610	return c
23611}
23612
23613// Header returns an http.Header that can be modified by the caller to
23614// add HTTP headers to the request.
23615func (c *OrganizationsDevelopersSubscriptionsGetCall) Header() http.Header {
23616	if c.header_ == nil {
23617		c.header_ = make(http.Header)
23618	}
23619	return c.header_
23620}
23621
23622func (c *OrganizationsDevelopersSubscriptionsGetCall) doRequest(alt string) (*http.Response, error) {
23623	reqHeaders := make(http.Header)
23624	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
23625	for k, v := range c.header_ {
23626		reqHeaders[k] = v
23627	}
23628	reqHeaders.Set("User-Agent", c.s.userAgent())
23629	if c.ifNoneMatch_ != "" {
23630		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23631	}
23632	var body io.Reader = nil
23633	c.urlParams_.Set("alt", alt)
23634	c.urlParams_.Set("prettyPrint", "false")
23635	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
23636	urls += "?" + c.urlParams_.Encode()
23637	req, err := http.NewRequest("GET", urls, body)
23638	if err != nil {
23639		return nil, err
23640	}
23641	req.Header = reqHeaders
23642	googleapi.Expand(req.URL, map[string]string{
23643		"name": c.name,
23644	})
23645	return gensupport.SendRequest(c.ctx_, c.s.client, req)
23646}
23647
23648// Do executes the "apigee.organizations.developers.subscriptions.get" call.
23649// Exactly one of *GoogleCloudApigeeV1DeveloperSubscription or error
23650// will be non-nil. Any non-2xx status code is an error. Response
23651// headers are in either
23652// *GoogleCloudApigeeV1DeveloperSubscription.ServerResponse.Header or
23653// (if a response was returned at all) in
23654// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
23655// whether the returned error was because http.StatusNotModified was
23656// returned.
23657func (c *OrganizationsDevelopersSubscriptionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperSubscription, error) {
23658	gensupport.SetOptions(c.urlParams_, opts...)
23659	res, err := c.doRequest("json")
23660	if res != nil && res.StatusCode == http.StatusNotModified {
23661		if res.Body != nil {
23662			res.Body.Close()
23663		}
23664		return nil, &googleapi.Error{
23665			Code:   res.StatusCode,
23666			Header: res.Header,
23667		}
23668	}
23669	if err != nil {
23670		return nil, err
23671	}
23672	defer googleapi.CloseBody(res)
23673	if err := googleapi.CheckResponse(res); err != nil {
23674		return nil, err
23675	}
23676	ret := &GoogleCloudApigeeV1DeveloperSubscription{
23677		ServerResponse: googleapi.ServerResponse{
23678			Header:         res.Header,
23679			HTTPStatusCode: res.StatusCode,
23680		},
23681	}
23682	target := &ret
23683	if err := gensupport.DecodeResponse(target, res); err != nil {
23684		return nil, err
23685	}
23686	return ret, nil
23687	// {
23688	//   "description": "Gets details for an API product subscription.",
23689	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/subscriptions/{subscriptionsId}",
23690	//   "httpMethod": "GET",
23691	//   "id": "apigee.organizations.developers.subscriptions.get",
23692	//   "parameterOrder": [
23693	//     "name"
23694	//   ],
23695	//   "parameters": {
23696	//     "name": {
23697	//       "description": "Required. Name of the API product subscription. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/subscriptions/{subscription}`",
23698	//       "location": "path",
23699	//       "pattern": "^organizations/[^/]+/developers/[^/]+/subscriptions/[^/]+$",
23700	//       "required": true,
23701	//       "type": "string"
23702	//     }
23703	//   },
23704	//   "path": "v1/{+name}",
23705	//   "response": {
23706	//     "$ref": "GoogleCloudApigeeV1DeveloperSubscription"
23707	//   },
23708	//   "scopes": [
23709	//     "https://www.googleapis.com/auth/cloud-platform"
23710	//   ]
23711	// }
23712
23713}
23714
23715// method id "apigee.organizations.developers.subscriptions.list":
23716
23717type OrganizationsDevelopersSubscriptionsListCall struct {
23718	s            *Service
23719	parent       string
23720	urlParams_   gensupport.URLParams
23721	ifNoneMatch_ string
23722	ctx_         context.Context
23723	header_      http.Header
23724}
23725
23726// List: Lists all API product subscriptions for a developer.
23727//
23728// - parent: Email address of the developer. Use the following structure
23729//   in your request: `organizations/{org}/developers/{developer_email}`.
23730func (r *OrganizationsDevelopersSubscriptionsService) List(parent string) *OrganizationsDevelopersSubscriptionsListCall {
23731	c := &OrganizationsDevelopersSubscriptionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23732	c.parent = parent
23733	return c
23734}
23735
23736// Count sets the optional parameter "count": Number of API product
23737// subscriptions to return in the API call. Use with `startKey` to
23738// provide more targeted filtering. Defaults to 100. The maximum limit
23739// is 1000.
23740func (c *OrganizationsDevelopersSubscriptionsListCall) Count(count int64) *OrganizationsDevelopersSubscriptionsListCall {
23741	c.urlParams_.Set("count", fmt.Sprint(count))
23742	return c
23743}
23744
23745// StartKey sets the optional parameter "startKey": Name of the API
23746// product subscription from which to start displaying the list of
23747// subscriptions. If omitted, the list starts from the first item. For
23748// example, to view the API product subscriptions from 51-150, set the
23749// value of `startKey` to the name of the 51st subscription and set the
23750// value of `count` to 100.
23751func (c *OrganizationsDevelopersSubscriptionsListCall) StartKey(startKey string) *OrganizationsDevelopersSubscriptionsListCall {
23752	c.urlParams_.Set("startKey", startKey)
23753	return c
23754}
23755
23756// Fields allows partial responses to be retrieved. See
23757// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
23758// for more information.
23759func (c *OrganizationsDevelopersSubscriptionsListCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersSubscriptionsListCall {
23760	c.urlParams_.Set("fields", googleapi.CombineFields(s))
23761	return c
23762}
23763
23764// IfNoneMatch sets the optional parameter which makes the operation
23765// fail if the object's ETag matches the given value. This is useful for
23766// getting updates only after the object has changed since the last
23767// request. Use googleapi.IsNotModified to check whether the response
23768// error from Do is the result of In-None-Match.
23769func (c *OrganizationsDevelopersSubscriptionsListCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersSubscriptionsListCall {
23770	c.ifNoneMatch_ = entityTag
23771	return c
23772}
23773
23774// Context sets the context to be used in this call's Do method. Any
23775// pending HTTP request will be aborted if the provided context is
23776// canceled.
23777func (c *OrganizationsDevelopersSubscriptionsListCall) Context(ctx context.Context) *OrganizationsDevelopersSubscriptionsListCall {
23778	c.ctx_ = ctx
23779	return c
23780}
23781
23782// Header returns an http.Header that can be modified by the caller to
23783// add HTTP headers to the request.
23784func (c *OrganizationsDevelopersSubscriptionsListCall) Header() http.Header {
23785	if c.header_ == nil {
23786		c.header_ = make(http.Header)
23787	}
23788	return c.header_
23789}
23790
23791func (c *OrganizationsDevelopersSubscriptionsListCall) doRequest(alt string) (*http.Response, error) {
23792	reqHeaders := make(http.Header)
23793	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
23794	for k, v := range c.header_ {
23795		reqHeaders[k] = v
23796	}
23797	reqHeaders.Set("User-Agent", c.s.userAgent())
23798	if c.ifNoneMatch_ != "" {
23799		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23800	}
23801	var body io.Reader = nil
23802	c.urlParams_.Set("alt", alt)
23803	c.urlParams_.Set("prettyPrint", "false")
23804	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/subscriptions")
23805	urls += "?" + c.urlParams_.Encode()
23806	req, err := http.NewRequest("GET", urls, body)
23807	if err != nil {
23808		return nil, err
23809	}
23810	req.Header = reqHeaders
23811	googleapi.Expand(req.URL, map[string]string{
23812		"parent": c.parent,
23813	})
23814	return gensupport.SendRequest(c.ctx_, c.s.client, req)
23815}
23816
23817// Do executes the "apigee.organizations.developers.subscriptions.list" call.
23818// Exactly one of *GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse
23819// or error will be non-nil. Any non-2xx status code is an error.
23820// Response headers are in either
23821// *GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse.ServerResponse.
23822// Header or (if a response was returned at all) in
23823// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
23824// whether the returned error was because http.StatusNotModified was
23825// returned.
23826func (c *OrganizationsDevelopersSubscriptionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse, error) {
23827	gensupport.SetOptions(c.urlParams_, opts...)
23828	res, err := c.doRequest("json")
23829	if res != nil && res.StatusCode == http.StatusNotModified {
23830		if res.Body != nil {
23831			res.Body.Close()
23832		}
23833		return nil, &googleapi.Error{
23834			Code:   res.StatusCode,
23835			Header: res.Header,
23836		}
23837	}
23838	if err != nil {
23839		return nil, err
23840	}
23841	defer googleapi.CloseBody(res)
23842	if err := googleapi.CheckResponse(res); err != nil {
23843		return nil, err
23844	}
23845	ret := &GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse{
23846		ServerResponse: googleapi.ServerResponse{
23847			Header:         res.Header,
23848			HTTPStatusCode: res.StatusCode,
23849		},
23850	}
23851	target := &ret
23852	if err := gensupport.DecodeResponse(target, res); err != nil {
23853		return nil, err
23854	}
23855	return ret, nil
23856	// {
23857	//   "description": "Lists all API product subscriptions for a developer.",
23858	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/subscriptions",
23859	//   "httpMethod": "GET",
23860	//   "id": "apigee.organizations.developers.subscriptions.list",
23861	//   "parameterOrder": [
23862	//     "parent"
23863	//   ],
23864	//   "parameters": {
23865	//     "count": {
23866	//       "description": "Number of API product subscriptions to return in the API call. Use with `startKey` to provide more targeted filtering. Defaults to 100. The maximum limit is 1000.",
23867	//       "format": "int32",
23868	//       "location": "query",
23869	//       "type": "integer"
23870	//     },
23871	//     "parent": {
23872	//       "description": "Required. Email address of the developer. Use the following structure in your request: `organizations/{org}/developers/{developer_email}`",
23873	//       "location": "path",
23874	//       "pattern": "^organizations/[^/]+/developers/[^/]+$",
23875	//       "required": true,
23876	//       "type": "string"
23877	//     },
23878	//     "startKey": {
23879	//       "description": "Name of the API product subscription from which to start displaying the list of subscriptions. If omitted, the list starts from the first item. For example, to view the API product subscriptions from 51-150, set the value of `startKey` to the name of the 51st subscription and set the value of `count` to 100.",
23880	//       "location": "query",
23881	//       "type": "string"
23882	//     }
23883	//   },
23884	//   "path": "v1/{+parent}/subscriptions",
23885	//   "response": {
23886	//     "$ref": "GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse"
23887	//   },
23888	//   "scopes": [
23889	//     "https://www.googleapis.com/auth/cloud-platform"
23890	//   ]
23891	// }
23892
23893}
23894
23895// method id "apigee.organizations.envgroups.create":
23896
23897type OrganizationsEnvgroupsCreateCall struct {
23898	s                                   *Service
23899	parent                              string
23900	googlecloudapigeev1environmentgroup *GoogleCloudApigeeV1EnvironmentGroup
23901	urlParams_                          gensupport.URLParams
23902	ctx_                                context.Context
23903	header_                             http.Header
23904}
23905
23906// Create: Creates a new environment group.
23907//
23908// - parent: Name of the organization in which to create the environment
23909//   group in the following format: `organizations/{org}`.
23910func (r *OrganizationsEnvgroupsService) Create(parent string, googlecloudapigeev1environmentgroup *GoogleCloudApigeeV1EnvironmentGroup) *OrganizationsEnvgroupsCreateCall {
23911	c := &OrganizationsEnvgroupsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23912	c.parent = parent
23913	c.googlecloudapigeev1environmentgroup = googlecloudapigeev1environmentgroup
23914	return c
23915}
23916
23917// Name sets the optional parameter "name": ID of the environment group.
23918// Overrides any ID in the environment_group resource.
23919func (c *OrganizationsEnvgroupsCreateCall) Name(name string) *OrganizationsEnvgroupsCreateCall {
23920	c.urlParams_.Set("name", name)
23921	return c
23922}
23923
23924// Fields allows partial responses to be retrieved. See
23925// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
23926// for more information.
23927func (c *OrganizationsEnvgroupsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsCreateCall {
23928	c.urlParams_.Set("fields", googleapi.CombineFields(s))
23929	return c
23930}
23931
23932// Context sets the context to be used in this call's Do method. Any
23933// pending HTTP request will be aborted if the provided context is
23934// canceled.
23935func (c *OrganizationsEnvgroupsCreateCall) Context(ctx context.Context) *OrganizationsEnvgroupsCreateCall {
23936	c.ctx_ = ctx
23937	return c
23938}
23939
23940// Header returns an http.Header that can be modified by the caller to
23941// add HTTP headers to the request.
23942func (c *OrganizationsEnvgroupsCreateCall) Header() http.Header {
23943	if c.header_ == nil {
23944		c.header_ = make(http.Header)
23945	}
23946	return c.header_
23947}
23948
23949func (c *OrganizationsEnvgroupsCreateCall) doRequest(alt string) (*http.Response, error) {
23950	reqHeaders := make(http.Header)
23951	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
23952	for k, v := range c.header_ {
23953		reqHeaders[k] = v
23954	}
23955	reqHeaders.Set("User-Agent", c.s.userAgent())
23956	var body io.Reader = nil
23957	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1environmentgroup)
23958	if err != nil {
23959		return nil, err
23960	}
23961	reqHeaders.Set("Content-Type", "application/json")
23962	c.urlParams_.Set("alt", alt)
23963	c.urlParams_.Set("prettyPrint", "false")
23964	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/envgroups")
23965	urls += "?" + c.urlParams_.Encode()
23966	req, err := http.NewRequest("POST", urls, body)
23967	if err != nil {
23968		return nil, err
23969	}
23970	req.Header = reqHeaders
23971	googleapi.Expand(req.URL, map[string]string{
23972		"parent": c.parent,
23973	})
23974	return gensupport.SendRequest(c.ctx_, c.s.client, req)
23975}
23976
23977// Do executes the "apigee.organizations.envgroups.create" call.
23978// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
23979// Any non-2xx status code is an error. Response headers are in either
23980// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
23981// was returned at all) in error.(*googleapi.Error).Header. Use
23982// googleapi.IsNotModified to check whether the returned error was
23983// because http.StatusNotModified was returned.
23984func (c *OrganizationsEnvgroupsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
23985	gensupport.SetOptions(c.urlParams_, opts...)
23986	res, err := c.doRequest("json")
23987	if res != nil && res.StatusCode == http.StatusNotModified {
23988		if res.Body != nil {
23989			res.Body.Close()
23990		}
23991		return nil, &googleapi.Error{
23992			Code:   res.StatusCode,
23993			Header: res.Header,
23994		}
23995	}
23996	if err != nil {
23997		return nil, err
23998	}
23999	defer googleapi.CloseBody(res)
24000	if err := googleapi.CheckResponse(res); err != nil {
24001		return nil, err
24002	}
24003	ret := &GoogleLongrunningOperation{
24004		ServerResponse: googleapi.ServerResponse{
24005			Header:         res.Header,
24006			HTTPStatusCode: res.StatusCode,
24007		},
24008	}
24009	target := &ret
24010	if err := gensupport.DecodeResponse(target, res); err != nil {
24011		return nil, err
24012	}
24013	return ret, nil
24014	// {
24015	//   "description": "Creates a new environment group.",
24016	//   "flatPath": "v1/organizations/{organizationsId}/envgroups",
24017	//   "httpMethod": "POST",
24018	//   "id": "apigee.organizations.envgroups.create",
24019	//   "parameterOrder": [
24020	//     "parent"
24021	//   ],
24022	//   "parameters": {
24023	//     "name": {
24024	//       "description": "ID of the environment group. Overrides any ID in the environment_group resource.",
24025	//       "location": "query",
24026	//       "type": "string"
24027	//     },
24028	//     "parent": {
24029	//       "description": "Required. Name of the organization in which to create the environment group in the following format: `organizations/{org}`.",
24030	//       "location": "path",
24031	//       "pattern": "^organizations/[^/]+$",
24032	//       "required": true,
24033	//       "type": "string"
24034	//     }
24035	//   },
24036	//   "path": "v1/{+parent}/envgroups",
24037	//   "request": {
24038	//     "$ref": "GoogleCloudApigeeV1EnvironmentGroup"
24039	//   },
24040	//   "response": {
24041	//     "$ref": "GoogleLongrunningOperation"
24042	//   },
24043	//   "scopes": [
24044	//     "https://www.googleapis.com/auth/cloud-platform"
24045	//   ]
24046	// }
24047
24048}
24049
24050// method id "apigee.organizations.envgroups.delete":
24051
24052type OrganizationsEnvgroupsDeleteCall struct {
24053	s          *Service
24054	name       string
24055	urlParams_ gensupport.URLParams
24056	ctx_       context.Context
24057	header_    http.Header
24058}
24059
24060// Delete: Deletes an environment group.
24061//
24062// - name: Name of the environment group in the following format:
24063//   `organizations/{org}/envgroups/{envgroup}`.
24064func (r *OrganizationsEnvgroupsService) Delete(name string) *OrganizationsEnvgroupsDeleteCall {
24065	c := &OrganizationsEnvgroupsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24066	c.name = name
24067	return c
24068}
24069
24070// Fields allows partial responses to be retrieved. See
24071// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
24072// for more information.
24073func (c *OrganizationsEnvgroupsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsDeleteCall {
24074	c.urlParams_.Set("fields", googleapi.CombineFields(s))
24075	return c
24076}
24077
24078// Context sets the context to be used in this call's Do method. Any
24079// pending HTTP request will be aborted if the provided context is
24080// canceled.
24081func (c *OrganizationsEnvgroupsDeleteCall) Context(ctx context.Context) *OrganizationsEnvgroupsDeleteCall {
24082	c.ctx_ = ctx
24083	return c
24084}
24085
24086// Header returns an http.Header that can be modified by the caller to
24087// add HTTP headers to the request.
24088func (c *OrganizationsEnvgroupsDeleteCall) Header() http.Header {
24089	if c.header_ == nil {
24090		c.header_ = make(http.Header)
24091	}
24092	return c.header_
24093}
24094
24095func (c *OrganizationsEnvgroupsDeleteCall) doRequest(alt string) (*http.Response, error) {
24096	reqHeaders := make(http.Header)
24097	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
24098	for k, v := range c.header_ {
24099		reqHeaders[k] = v
24100	}
24101	reqHeaders.Set("User-Agent", c.s.userAgent())
24102	var body io.Reader = nil
24103	c.urlParams_.Set("alt", alt)
24104	c.urlParams_.Set("prettyPrint", "false")
24105	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
24106	urls += "?" + c.urlParams_.Encode()
24107	req, err := http.NewRequest("DELETE", urls, body)
24108	if err != nil {
24109		return nil, err
24110	}
24111	req.Header = reqHeaders
24112	googleapi.Expand(req.URL, map[string]string{
24113		"name": c.name,
24114	})
24115	return gensupport.SendRequest(c.ctx_, c.s.client, req)
24116}
24117
24118// Do executes the "apigee.organizations.envgroups.delete" call.
24119// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
24120// Any non-2xx status code is an error. Response headers are in either
24121// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
24122// was returned at all) in error.(*googleapi.Error).Header. Use
24123// googleapi.IsNotModified to check whether the returned error was
24124// because http.StatusNotModified was returned.
24125func (c *OrganizationsEnvgroupsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
24126	gensupport.SetOptions(c.urlParams_, opts...)
24127	res, err := c.doRequest("json")
24128	if res != nil && res.StatusCode == http.StatusNotModified {
24129		if res.Body != nil {
24130			res.Body.Close()
24131		}
24132		return nil, &googleapi.Error{
24133			Code:   res.StatusCode,
24134			Header: res.Header,
24135		}
24136	}
24137	if err != nil {
24138		return nil, err
24139	}
24140	defer googleapi.CloseBody(res)
24141	if err := googleapi.CheckResponse(res); err != nil {
24142		return nil, err
24143	}
24144	ret := &GoogleLongrunningOperation{
24145		ServerResponse: googleapi.ServerResponse{
24146			Header:         res.Header,
24147			HTTPStatusCode: res.StatusCode,
24148		},
24149	}
24150	target := &ret
24151	if err := gensupport.DecodeResponse(target, res); err != nil {
24152		return nil, err
24153	}
24154	return ret, nil
24155	// {
24156	//   "description": "Deletes an environment group.",
24157	//   "flatPath": "v1/organizations/{organizationsId}/envgroups/{envgroupsId}",
24158	//   "httpMethod": "DELETE",
24159	//   "id": "apigee.organizations.envgroups.delete",
24160	//   "parameterOrder": [
24161	//     "name"
24162	//   ],
24163	//   "parameters": {
24164	//     "name": {
24165	//       "description": "Required. Name of the environment group in the following format: `organizations/{org}/envgroups/{envgroup}`.",
24166	//       "location": "path",
24167	//       "pattern": "^organizations/[^/]+/envgroups/[^/]+$",
24168	//       "required": true,
24169	//       "type": "string"
24170	//     }
24171	//   },
24172	//   "path": "v1/{+name}",
24173	//   "response": {
24174	//     "$ref": "GoogleLongrunningOperation"
24175	//   },
24176	//   "scopes": [
24177	//     "https://www.googleapis.com/auth/cloud-platform"
24178	//   ]
24179	// }
24180
24181}
24182
24183// method id "apigee.organizations.envgroups.get":
24184
24185type OrganizationsEnvgroupsGetCall struct {
24186	s            *Service
24187	name         string
24188	urlParams_   gensupport.URLParams
24189	ifNoneMatch_ string
24190	ctx_         context.Context
24191	header_      http.Header
24192}
24193
24194// Get: Gets an environment group.
24195//
24196// - name: Name of the environment group in the following format:
24197//   `organizations/{org}/envgroups/{envgroup}`.
24198func (r *OrganizationsEnvgroupsService) Get(name string) *OrganizationsEnvgroupsGetCall {
24199	c := &OrganizationsEnvgroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24200	c.name = name
24201	return c
24202}
24203
24204// Fields allows partial responses to be retrieved. See
24205// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
24206// for more information.
24207func (c *OrganizationsEnvgroupsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsGetCall {
24208	c.urlParams_.Set("fields", googleapi.CombineFields(s))
24209	return c
24210}
24211
24212// IfNoneMatch sets the optional parameter which makes the operation
24213// fail if the object's ETag matches the given value. This is useful for
24214// getting updates only after the object has changed since the last
24215// request. Use googleapi.IsNotModified to check whether the response
24216// error from Do is the result of In-None-Match.
24217func (c *OrganizationsEnvgroupsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvgroupsGetCall {
24218	c.ifNoneMatch_ = entityTag
24219	return c
24220}
24221
24222// Context sets the context to be used in this call's Do method. Any
24223// pending HTTP request will be aborted if the provided context is
24224// canceled.
24225func (c *OrganizationsEnvgroupsGetCall) Context(ctx context.Context) *OrganizationsEnvgroupsGetCall {
24226	c.ctx_ = ctx
24227	return c
24228}
24229
24230// Header returns an http.Header that can be modified by the caller to
24231// add HTTP headers to the request.
24232func (c *OrganizationsEnvgroupsGetCall) Header() http.Header {
24233	if c.header_ == nil {
24234		c.header_ = make(http.Header)
24235	}
24236	return c.header_
24237}
24238
24239func (c *OrganizationsEnvgroupsGetCall) doRequest(alt string) (*http.Response, error) {
24240	reqHeaders := make(http.Header)
24241	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
24242	for k, v := range c.header_ {
24243		reqHeaders[k] = v
24244	}
24245	reqHeaders.Set("User-Agent", c.s.userAgent())
24246	if c.ifNoneMatch_ != "" {
24247		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24248	}
24249	var body io.Reader = nil
24250	c.urlParams_.Set("alt", alt)
24251	c.urlParams_.Set("prettyPrint", "false")
24252	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
24253	urls += "?" + c.urlParams_.Encode()
24254	req, err := http.NewRequest("GET", urls, body)
24255	if err != nil {
24256		return nil, err
24257	}
24258	req.Header = reqHeaders
24259	googleapi.Expand(req.URL, map[string]string{
24260		"name": c.name,
24261	})
24262	return gensupport.SendRequest(c.ctx_, c.s.client, req)
24263}
24264
24265// Do executes the "apigee.organizations.envgroups.get" call.
24266// Exactly one of *GoogleCloudApigeeV1EnvironmentGroup or error will be
24267// non-nil. Any non-2xx status code is an error. Response headers are in
24268// either *GoogleCloudApigeeV1EnvironmentGroup.ServerResponse.Header or
24269// (if a response was returned at all) in
24270// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
24271// whether the returned error was because http.StatusNotModified was
24272// returned.
24273func (c *OrganizationsEnvgroupsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1EnvironmentGroup, error) {
24274	gensupport.SetOptions(c.urlParams_, opts...)
24275	res, err := c.doRequest("json")
24276	if res != nil && res.StatusCode == http.StatusNotModified {
24277		if res.Body != nil {
24278			res.Body.Close()
24279		}
24280		return nil, &googleapi.Error{
24281			Code:   res.StatusCode,
24282			Header: res.Header,
24283		}
24284	}
24285	if err != nil {
24286		return nil, err
24287	}
24288	defer googleapi.CloseBody(res)
24289	if err := googleapi.CheckResponse(res); err != nil {
24290		return nil, err
24291	}
24292	ret := &GoogleCloudApigeeV1EnvironmentGroup{
24293		ServerResponse: googleapi.ServerResponse{
24294			Header:         res.Header,
24295			HTTPStatusCode: res.StatusCode,
24296		},
24297	}
24298	target := &ret
24299	if err := gensupport.DecodeResponse(target, res); err != nil {
24300		return nil, err
24301	}
24302	return ret, nil
24303	// {
24304	//   "description": "Gets an environment group.",
24305	//   "flatPath": "v1/organizations/{organizationsId}/envgroups/{envgroupsId}",
24306	//   "httpMethod": "GET",
24307	//   "id": "apigee.organizations.envgroups.get",
24308	//   "parameterOrder": [
24309	//     "name"
24310	//   ],
24311	//   "parameters": {
24312	//     "name": {
24313	//       "description": "Required. Name of the environment group in the following format: `organizations/{org}/envgroups/{envgroup}`.",
24314	//       "location": "path",
24315	//       "pattern": "^organizations/[^/]+/envgroups/[^/]+$",
24316	//       "required": true,
24317	//       "type": "string"
24318	//     }
24319	//   },
24320	//   "path": "v1/{+name}",
24321	//   "response": {
24322	//     "$ref": "GoogleCloudApigeeV1EnvironmentGroup"
24323	//   },
24324	//   "scopes": [
24325	//     "https://www.googleapis.com/auth/cloud-platform"
24326	//   ]
24327	// }
24328
24329}
24330
24331// method id "apigee.organizations.envgroups.list":
24332
24333type OrganizationsEnvgroupsListCall struct {
24334	s            *Service
24335	parent       string
24336	urlParams_   gensupport.URLParams
24337	ifNoneMatch_ string
24338	ctx_         context.Context
24339	header_      http.Header
24340}
24341
24342// List: Lists all environment groups.
24343//
24344// - parent: Name of the organization for which to list environment
24345//   groups in the following format: `organizations/{org}`.
24346func (r *OrganizationsEnvgroupsService) List(parent string) *OrganizationsEnvgroupsListCall {
24347	c := &OrganizationsEnvgroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24348	c.parent = parent
24349	return c
24350}
24351
24352// PageSize sets the optional parameter "pageSize": Maximum number of
24353// environment groups to return. The page size defaults to 25.
24354func (c *OrganizationsEnvgroupsListCall) PageSize(pageSize int64) *OrganizationsEnvgroupsListCall {
24355	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
24356	return c
24357}
24358
24359// PageToken sets the optional parameter "pageToken": Page token,
24360// returned from a previous ListEnvironmentGroups call, that you can use
24361// to retrieve the next page.
24362func (c *OrganizationsEnvgroupsListCall) PageToken(pageToken string) *OrganizationsEnvgroupsListCall {
24363	c.urlParams_.Set("pageToken", pageToken)
24364	return c
24365}
24366
24367// Fields allows partial responses to be retrieved. See
24368// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
24369// for more information.
24370func (c *OrganizationsEnvgroupsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsListCall {
24371	c.urlParams_.Set("fields", googleapi.CombineFields(s))
24372	return c
24373}
24374
24375// IfNoneMatch sets the optional parameter which makes the operation
24376// fail if the object's ETag matches the given value. This is useful for
24377// getting updates only after the object has changed since the last
24378// request. Use googleapi.IsNotModified to check whether the response
24379// error from Do is the result of In-None-Match.
24380func (c *OrganizationsEnvgroupsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvgroupsListCall {
24381	c.ifNoneMatch_ = entityTag
24382	return c
24383}
24384
24385// Context sets the context to be used in this call's Do method. Any
24386// pending HTTP request will be aborted if the provided context is
24387// canceled.
24388func (c *OrganizationsEnvgroupsListCall) Context(ctx context.Context) *OrganizationsEnvgroupsListCall {
24389	c.ctx_ = ctx
24390	return c
24391}
24392
24393// Header returns an http.Header that can be modified by the caller to
24394// add HTTP headers to the request.
24395func (c *OrganizationsEnvgroupsListCall) Header() http.Header {
24396	if c.header_ == nil {
24397		c.header_ = make(http.Header)
24398	}
24399	return c.header_
24400}
24401
24402func (c *OrganizationsEnvgroupsListCall) doRequest(alt string) (*http.Response, error) {
24403	reqHeaders := make(http.Header)
24404	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
24405	for k, v := range c.header_ {
24406		reqHeaders[k] = v
24407	}
24408	reqHeaders.Set("User-Agent", c.s.userAgent())
24409	if c.ifNoneMatch_ != "" {
24410		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24411	}
24412	var body io.Reader = nil
24413	c.urlParams_.Set("alt", alt)
24414	c.urlParams_.Set("prettyPrint", "false")
24415	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/envgroups")
24416	urls += "?" + c.urlParams_.Encode()
24417	req, err := http.NewRequest("GET", urls, body)
24418	if err != nil {
24419		return nil, err
24420	}
24421	req.Header = reqHeaders
24422	googleapi.Expand(req.URL, map[string]string{
24423		"parent": c.parent,
24424	})
24425	return gensupport.SendRequest(c.ctx_, c.s.client, req)
24426}
24427
24428// Do executes the "apigee.organizations.envgroups.list" call.
24429// Exactly one of *GoogleCloudApigeeV1ListEnvironmentGroupsResponse or
24430// error will be non-nil. Any non-2xx status code is an error. Response
24431// headers are in either
24432// *GoogleCloudApigeeV1ListEnvironmentGroupsResponse.ServerResponse.Heade
24433// r or (if a response was returned at all) in
24434// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
24435// whether the returned error was because http.StatusNotModified was
24436// returned.
24437func (c *OrganizationsEnvgroupsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListEnvironmentGroupsResponse, error) {
24438	gensupport.SetOptions(c.urlParams_, opts...)
24439	res, err := c.doRequest("json")
24440	if res != nil && res.StatusCode == http.StatusNotModified {
24441		if res.Body != nil {
24442			res.Body.Close()
24443		}
24444		return nil, &googleapi.Error{
24445			Code:   res.StatusCode,
24446			Header: res.Header,
24447		}
24448	}
24449	if err != nil {
24450		return nil, err
24451	}
24452	defer googleapi.CloseBody(res)
24453	if err := googleapi.CheckResponse(res); err != nil {
24454		return nil, err
24455	}
24456	ret := &GoogleCloudApigeeV1ListEnvironmentGroupsResponse{
24457		ServerResponse: googleapi.ServerResponse{
24458			Header:         res.Header,
24459			HTTPStatusCode: res.StatusCode,
24460		},
24461	}
24462	target := &ret
24463	if err := gensupport.DecodeResponse(target, res); err != nil {
24464		return nil, err
24465	}
24466	return ret, nil
24467	// {
24468	//   "description": "Lists all environment groups.",
24469	//   "flatPath": "v1/organizations/{organizationsId}/envgroups",
24470	//   "httpMethod": "GET",
24471	//   "id": "apigee.organizations.envgroups.list",
24472	//   "parameterOrder": [
24473	//     "parent"
24474	//   ],
24475	//   "parameters": {
24476	//     "pageSize": {
24477	//       "description": "Maximum number of environment groups to return. The page size defaults to 25.",
24478	//       "format": "int32",
24479	//       "location": "query",
24480	//       "type": "integer"
24481	//     },
24482	//     "pageToken": {
24483	//       "description": "Page token, returned from a previous ListEnvironmentGroups call, that you can use to retrieve the next page.",
24484	//       "location": "query",
24485	//       "type": "string"
24486	//     },
24487	//     "parent": {
24488	//       "description": "Required. Name of the organization for which to list environment groups in the following format: `organizations/{org}`.",
24489	//       "location": "path",
24490	//       "pattern": "^organizations/[^/]+$",
24491	//       "required": true,
24492	//       "type": "string"
24493	//     }
24494	//   },
24495	//   "path": "v1/{+parent}/envgroups",
24496	//   "response": {
24497	//     "$ref": "GoogleCloudApigeeV1ListEnvironmentGroupsResponse"
24498	//   },
24499	//   "scopes": [
24500	//     "https://www.googleapis.com/auth/cloud-platform"
24501	//   ]
24502	// }
24503
24504}
24505
24506// Pages invokes f for each page of results.
24507// A non-nil error returned from f will halt the iteration.
24508// The provided context supersedes any context provided to the Context method.
24509func (c *OrganizationsEnvgroupsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListEnvironmentGroupsResponse) error) error {
24510	c.ctx_ = ctx
24511	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
24512	for {
24513		x, err := c.Do()
24514		if err != nil {
24515			return err
24516		}
24517		if err := f(x); err != nil {
24518			return err
24519		}
24520		if x.NextPageToken == "" {
24521			return nil
24522		}
24523		c.PageToken(x.NextPageToken)
24524	}
24525}
24526
24527// method id "apigee.organizations.envgroups.patch":
24528
24529type OrganizationsEnvgroupsPatchCall struct {
24530	s                                   *Service
24531	name                                string
24532	googlecloudapigeev1environmentgroup *GoogleCloudApigeeV1EnvironmentGroup
24533	urlParams_                          gensupport.URLParams
24534	ctx_                                context.Context
24535	header_                             http.Header
24536}
24537
24538// Patch: Updates an environment group.
24539//
24540// - name: Name of the environment group to update in the format:
24541//   `organizations/{org}/envgroups/{envgroup}.
24542func (r *OrganizationsEnvgroupsService) Patch(name string, googlecloudapigeev1environmentgroup *GoogleCloudApigeeV1EnvironmentGroup) *OrganizationsEnvgroupsPatchCall {
24543	c := &OrganizationsEnvgroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24544	c.name = name
24545	c.googlecloudapigeev1environmentgroup = googlecloudapigeev1environmentgroup
24546	return c
24547}
24548
24549// UpdateMask sets the optional parameter "updateMask": List of fields
24550// to be updated.
24551func (c *OrganizationsEnvgroupsPatchCall) UpdateMask(updateMask string) *OrganizationsEnvgroupsPatchCall {
24552	c.urlParams_.Set("updateMask", updateMask)
24553	return c
24554}
24555
24556// Fields allows partial responses to be retrieved. See
24557// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
24558// for more information.
24559func (c *OrganizationsEnvgroupsPatchCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsPatchCall {
24560	c.urlParams_.Set("fields", googleapi.CombineFields(s))
24561	return c
24562}
24563
24564// Context sets the context to be used in this call's Do method. Any
24565// pending HTTP request will be aborted if the provided context is
24566// canceled.
24567func (c *OrganizationsEnvgroupsPatchCall) Context(ctx context.Context) *OrganizationsEnvgroupsPatchCall {
24568	c.ctx_ = ctx
24569	return c
24570}
24571
24572// Header returns an http.Header that can be modified by the caller to
24573// add HTTP headers to the request.
24574func (c *OrganizationsEnvgroupsPatchCall) Header() http.Header {
24575	if c.header_ == nil {
24576		c.header_ = make(http.Header)
24577	}
24578	return c.header_
24579}
24580
24581func (c *OrganizationsEnvgroupsPatchCall) doRequest(alt string) (*http.Response, error) {
24582	reqHeaders := make(http.Header)
24583	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
24584	for k, v := range c.header_ {
24585		reqHeaders[k] = v
24586	}
24587	reqHeaders.Set("User-Agent", c.s.userAgent())
24588	var body io.Reader = nil
24589	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1environmentgroup)
24590	if err != nil {
24591		return nil, err
24592	}
24593	reqHeaders.Set("Content-Type", "application/json")
24594	c.urlParams_.Set("alt", alt)
24595	c.urlParams_.Set("prettyPrint", "false")
24596	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
24597	urls += "?" + c.urlParams_.Encode()
24598	req, err := http.NewRequest("PATCH", urls, body)
24599	if err != nil {
24600		return nil, err
24601	}
24602	req.Header = reqHeaders
24603	googleapi.Expand(req.URL, map[string]string{
24604		"name": c.name,
24605	})
24606	return gensupport.SendRequest(c.ctx_, c.s.client, req)
24607}
24608
24609// Do executes the "apigee.organizations.envgroups.patch" call.
24610// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
24611// Any non-2xx status code is an error. Response headers are in either
24612// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
24613// was returned at all) in error.(*googleapi.Error).Header. Use
24614// googleapi.IsNotModified to check whether the returned error was
24615// because http.StatusNotModified was returned.
24616func (c *OrganizationsEnvgroupsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
24617	gensupport.SetOptions(c.urlParams_, opts...)
24618	res, err := c.doRequest("json")
24619	if res != nil && res.StatusCode == http.StatusNotModified {
24620		if res.Body != nil {
24621			res.Body.Close()
24622		}
24623		return nil, &googleapi.Error{
24624			Code:   res.StatusCode,
24625			Header: res.Header,
24626		}
24627	}
24628	if err != nil {
24629		return nil, err
24630	}
24631	defer googleapi.CloseBody(res)
24632	if err := googleapi.CheckResponse(res); err != nil {
24633		return nil, err
24634	}
24635	ret := &GoogleLongrunningOperation{
24636		ServerResponse: googleapi.ServerResponse{
24637			Header:         res.Header,
24638			HTTPStatusCode: res.StatusCode,
24639		},
24640	}
24641	target := &ret
24642	if err := gensupport.DecodeResponse(target, res); err != nil {
24643		return nil, err
24644	}
24645	return ret, nil
24646	// {
24647	//   "description": "Updates an environment group.",
24648	//   "flatPath": "v1/organizations/{organizationsId}/envgroups/{envgroupsId}",
24649	//   "httpMethod": "PATCH",
24650	//   "id": "apigee.organizations.envgroups.patch",
24651	//   "parameterOrder": [
24652	//     "name"
24653	//   ],
24654	//   "parameters": {
24655	//     "name": {
24656	//       "description": "Required. Name of the environment group to update in the format: `organizations/{org}/envgroups/{envgroup}.",
24657	//       "location": "path",
24658	//       "pattern": "^organizations/[^/]+/envgroups/[^/]+$",
24659	//       "required": true,
24660	//       "type": "string"
24661	//     },
24662	//     "updateMask": {
24663	//       "description": "List of fields to be updated.",
24664	//       "format": "google-fieldmask",
24665	//       "location": "query",
24666	//       "type": "string"
24667	//     }
24668	//   },
24669	//   "path": "v1/{+name}",
24670	//   "request": {
24671	//     "$ref": "GoogleCloudApigeeV1EnvironmentGroup"
24672	//   },
24673	//   "response": {
24674	//     "$ref": "GoogleLongrunningOperation"
24675	//   },
24676	//   "scopes": [
24677	//     "https://www.googleapis.com/auth/cloud-platform"
24678	//   ]
24679	// }
24680
24681}
24682
24683// method id "apigee.organizations.envgroups.attachments.create":
24684
24685type OrganizationsEnvgroupsAttachmentsCreateCall struct {
24686	s                                             *Service
24687	parent                                        string
24688	googlecloudapigeev1environmentgroupattachment *GoogleCloudApigeeV1EnvironmentGroupAttachment
24689	urlParams_                                    gensupport.URLParams
24690	ctx_                                          context.Context
24691	header_                                       http.Header
24692}
24693
24694// Create: Creates a new attachment of an environment to an environment
24695// group.
24696//
24697// - parent: EnvironmentGroup under which to create the attachment in
24698//   the following format: `organizations/{org}/envgroups/{envgroup}`.
24699func (r *OrganizationsEnvgroupsAttachmentsService) Create(parent string, googlecloudapigeev1environmentgroupattachment *GoogleCloudApigeeV1EnvironmentGroupAttachment) *OrganizationsEnvgroupsAttachmentsCreateCall {
24700	c := &OrganizationsEnvgroupsAttachmentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24701	c.parent = parent
24702	c.googlecloudapigeev1environmentgroupattachment = googlecloudapigeev1environmentgroupattachment
24703	return c
24704}
24705
24706// Fields allows partial responses to be retrieved. See
24707// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
24708// for more information.
24709func (c *OrganizationsEnvgroupsAttachmentsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsAttachmentsCreateCall {
24710	c.urlParams_.Set("fields", googleapi.CombineFields(s))
24711	return c
24712}
24713
24714// Context sets the context to be used in this call's Do method. Any
24715// pending HTTP request will be aborted if the provided context is
24716// canceled.
24717func (c *OrganizationsEnvgroupsAttachmentsCreateCall) Context(ctx context.Context) *OrganizationsEnvgroupsAttachmentsCreateCall {
24718	c.ctx_ = ctx
24719	return c
24720}
24721
24722// Header returns an http.Header that can be modified by the caller to
24723// add HTTP headers to the request.
24724func (c *OrganizationsEnvgroupsAttachmentsCreateCall) Header() http.Header {
24725	if c.header_ == nil {
24726		c.header_ = make(http.Header)
24727	}
24728	return c.header_
24729}
24730
24731func (c *OrganizationsEnvgroupsAttachmentsCreateCall) doRequest(alt string) (*http.Response, error) {
24732	reqHeaders := make(http.Header)
24733	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
24734	for k, v := range c.header_ {
24735		reqHeaders[k] = v
24736	}
24737	reqHeaders.Set("User-Agent", c.s.userAgent())
24738	var body io.Reader = nil
24739	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1environmentgroupattachment)
24740	if err != nil {
24741		return nil, err
24742	}
24743	reqHeaders.Set("Content-Type", "application/json")
24744	c.urlParams_.Set("alt", alt)
24745	c.urlParams_.Set("prettyPrint", "false")
24746	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attachments")
24747	urls += "?" + c.urlParams_.Encode()
24748	req, err := http.NewRequest("POST", urls, body)
24749	if err != nil {
24750		return nil, err
24751	}
24752	req.Header = reqHeaders
24753	googleapi.Expand(req.URL, map[string]string{
24754		"parent": c.parent,
24755	})
24756	return gensupport.SendRequest(c.ctx_, c.s.client, req)
24757}
24758
24759// Do executes the "apigee.organizations.envgroups.attachments.create" call.
24760// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
24761// Any non-2xx status code is an error. Response headers are in either
24762// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
24763// was returned at all) in error.(*googleapi.Error).Header. Use
24764// googleapi.IsNotModified to check whether the returned error was
24765// because http.StatusNotModified was returned.
24766func (c *OrganizationsEnvgroupsAttachmentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
24767	gensupport.SetOptions(c.urlParams_, opts...)
24768	res, err := c.doRequest("json")
24769	if res != nil && res.StatusCode == http.StatusNotModified {
24770		if res.Body != nil {
24771			res.Body.Close()
24772		}
24773		return nil, &googleapi.Error{
24774			Code:   res.StatusCode,
24775			Header: res.Header,
24776		}
24777	}
24778	if err != nil {
24779		return nil, err
24780	}
24781	defer googleapi.CloseBody(res)
24782	if err := googleapi.CheckResponse(res); err != nil {
24783		return nil, err
24784	}
24785	ret := &GoogleLongrunningOperation{
24786		ServerResponse: googleapi.ServerResponse{
24787			Header:         res.Header,
24788			HTTPStatusCode: res.StatusCode,
24789		},
24790	}
24791	target := &ret
24792	if err := gensupport.DecodeResponse(target, res); err != nil {
24793		return nil, err
24794	}
24795	return ret, nil
24796	// {
24797	//   "description": "Creates a new attachment of an environment to an environment group.",
24798	//   "flatPath": "v1/organizations/{organizationsId}/envgroups/{envgroupsId}/attachments",
24799	//   "httpMethod": "POST",
24800	//   "id": "apigee.organizations.envgroups.attachments.create",
24801	//   "parameterOrder": [
24802	//     "parent"
24803	//   ],
24804	//   "parameters": {
24805	//     "parent": {
24806	//       "description": "Required. EnvironmentGroup under which to create the attachment in the following format: `organizations/{org}/envgroups/{envgroup}`.",
24807	//       "location": "path",
24808	//       "pattern": "^organizations/[^/]+/envgroups/[^/]+$",
24809	//       "required": true,
24810	//       "type": "string"
24811	//     }
24812	//   },
24813	//   "path": "v1/{+parent}/attachments",
24814	//   "request": {
24815	//     "$ref": "GoogleCloudApigeeV1EnvironmentGroupAttachment"
24816	//   },
24817	//   "response": {
24818	//     "$ref": "GoogleLongrunningOperation"
24819	//   },
24820	//   "scopes": [
24821	//     "https://www.googleapis.com/auth/cloud-platform"
24822	//   ]
24823	// }
24824
24825}
24826
24827// method id "apigee.organizations.envgroups.attachments.delete":
24828
24829type OrganizationsEnvgroupsAttachmentsDeleteCall struct {
24830	s          *Service
24831	name       string
24832	urlParams_ gensupport.URLParams
24833	ctx_       context.Context
24834	header_    http.Header
24835}
24836
24837// Delete: Deletes an environment group attachment.
24838//
24839// - name: Name of the environment group attachment to delete in the
24840//   following format:
24841//   `organizations/{org}/envgroups/{envgroup}/attachments/{attachment}`.
24842func (r *OrganizationsEnvgroupsAttachmentsService) Delete(name string) *OrganizationsEnvgroupsAttachmentsDeleteCall {
24843	c := &OrganizationsEnvgroupsAttachmentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24844	c.name = name
24845	return c
24846}
24847
24848// Fields allows partial responses to be retrieved. See
24849// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
24850// for more information.
24851func (c *OrganizationsEnvgroupsAttachmentsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsAttachmentsDeleteCall {
24852	c.urlParams_.Set("fields", googleapi.CombineFields(s))
24853	return c
24854}
24855
24856// Context sets the context to be used in this call's Do method. Any
24857// pending HTTP request will be aborted if the provided context is
24858// canceled.
24859func (c *OrganizationsEnvgroupsAttachmentsDeleteCall) Context(ctx context.Context) *OrganizationsEnvgroupsAttachmentsDeleteCall {
24860	c.ctx_ = ctx
24861	return c
24862}
24863
24864// Header returns an http.Header that can be modified by the caller to
24865// add HTTP headers to the request.
24866func (c *OrganizationsEnvgroupsAttachmentsDeleteCall) Header() http.Header {
24867	if c.header_ == nil {
24868		c.header_ = make(http.Header)
24869	}
24870	return c.header_
24871}
24872
24873func (c *OrganizationsEnvgroupsAttachmentsDeleteCall) doRequest(alt string) (*http.Response, error) {
24874	reqHeaders := make(http.Header)
24875	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
24876	for k, v := range c.header_ {
24877		reqHeaders[k] = v
24878	}
24879	reqHeaders.Set("User-Agent", c.s.userAgent())
24880	var body io.Reader = nil
24881	c.urlParams_.Set("alt", alt)
24882	c.urlParams_.Set("prettyPrint", "false")
24883	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
24884	urls += "?" + c.urlParams_.Encode()
24885	req, err := http.NewRequest("DELETE", urls, body)
24886	if err != nil {
24887		return nil, err
24888	}
24889	req.Header = reqHeaders
24890	googleapi.Expand(req.URL, map[string]string{
24891		"name": c.name,
24892	})
24893	return gensupport.SendRequest(c.ctx_, c.s.client, req)
24894}
24895
24896// Do executes the "apigee.organizations.envgroups.attachments.delete" call.
24897// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
24898// Any non-2xx status code is an error. Response headers are in either
24899// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
24900// was returned at all) in error.(*googleapi.Error).Header. Use
24901// googleapi.IsNotModified to check whether the returned error was
24902// because http.StatusNotModified was returned.
24903func (c *OrganizationsEnvgroupsAttachmentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
24904	gensupport.SetOptions(c.urlParams_, opts...)
24905	res, err := c.doRequest("json")
24906	if res != nil && res.StatusCode == http.StatusNotModified {
24907		if res.Body != nil {
24908			res.Body.Close()
24909		}
24910		return nil, &googleapi.Error{
24911			Code:   res.StatusCode,
24912			Header: res.Header,
24913		}
24914	}
24915	if err != nil {
24916		return nil, err
24917	}
24918	defer googleapi.CloseBody(res)
24919	if err := googleapi.CheckResponse(res); err != nil {
24920		return nil, err
24921	}
24922	ret := &GoogleLongrunningOperation{
24923		ServerResponse: googleapi.ServerResponse{
24924			Header:         res.Header,
24925			HTTPStatusCode: res.StatusCode,
24926		},
24927	}
24928	target := &ret
24929	if err := gensupport.DecodeResponse(target, res); err != nil {
24930		return nil, err
24931	}
24932	return ret, nil
24933	// {
24934	//   "description": "Deletes an environment group attachment.",
24935	//   "flatPath": "v1/organizations/{organizationsId}/envgroups/{envgroupsId}/attachments/{attachmentsId}",
24936	//   "httpMethod": "DELETE",
24937	//   "id": "apigee.organizations.envgroups.attachments.delete",
24938	//   "parameterOrder": [
24939	//     "name"
24940	//   ],
24941	//   "parameters": {
24942	//     "name": {
24943	//       "description": "Required. Name of the environment group attachment to delete in the following format: `organizations/{org}/envgroups/{envgroup}/attachments/{attachment}`.",
24944	//       "location": "path",
24945	//       "pattern": "^organizations/[^/]+/envgroups/[^/]+/attachments/[^/]+$",
24946	//       "required": true,
24947	//       "type": "string"
24948	//     }
24949	//   },
24950	//   "path": "v1/{+name}",
24951	//   "response": {
24952	//     "$ref": "GoogleLongrunningOperation"
24953	//   },
24954	//   "scopes": [
24955	//     "https://www.googleapis.com/auth/cloud-platform"
24956	//   ]
24957	// }
24958
24959}
24960
24961// method id "apigee.organizations.envgroups.attachments.get":
24962
24963type OrganizationsEnvgroupsAttachmentsGetCall struct {
24964	s            *Service
24965	name         string
24966	urlParams_   gensupport.URLParams
24967	ifNoneMatch_ string
24968	ctx_         context.Context
24969	header_      http.Header
24970}
24971
24972// Get: Gets an environment group attachment.
24973//
24974// - name: Name of the environment group attachment in the following
24975//   format:
24976//   `organizations/{org}/envgroups/{envgroup}/attachments/{attachment}`.
24977func (r *OrganizationsEnvgroupsAttachmentsService) Get(name string) *OrganizationsEnvgroupsAttachmentsGetCall {
24978	c := &OrganizationsEnvgroupsAttachmentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24979	c.name = name
24980	return c
24981}
24982
24983// Fields allows partial responses to be retrieved. See
24984// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
24985// for more information.
24986func (c *OrganizationsEnvgroupsAttachmentsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsAttachmentsGetCall {
24987	c.urlParams_.Set("fields", googleapi.CombineFields(s))
24988	return c
24989}
24990
24991// IfNoneMatch sets the optional parameter which makes the operation
24992// fail if the object's ETag matches the given value. This is useful for
24993// getting updates only after the object has changed since the last
24994// request. Use googleapi.IsNotModified to check whether the response
24995// error from Do is the result of In-None-Match.
24996func (c *OrganizationsEnvgroupsAttachmentsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvgroupsAttachmentsGetCall {
24997	c.ifNoneMatch_ = entityTag
24998	return c
24999}
25000
25001// Context sets the context to be used in this call's Do method. Any
25002// pending HTTP request will be aborted if the provided context is
25003// canceled.
25004func (c *OrganizationsEnvgroupsAttachmentsGetCall) Context(ctx context.Context) *OrganizationsEnvgroupsAttachmentsGetCall {
25005	c.ctx_ = ctx
25006	return c
25007}
25008
25009// Header returns an http.Header that can be modified by the caller to
25010// add HTTP headers to the request.
25011func (c *OrganizationsEnvgroupsAttachmentsGetCall) Header() http.Header {
25012	if c.header_ == nil {
25013		c.header_ = make(http.Header)
25014	}
25015	return c.header_
25016}
25017
25018func (c *OrganizationsEnvgroupsAttachmentsGetCall) doRequest(alt string) (*http.Response, error) {
25019	reqHeaders := make(http.Header)
25020	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
25021	for k, v := range c.header_ {
25022		reqHeaders[k] = v
25023	}
25024	reqHeaders.Set("User-Agent", c.s.userAgent())
25025	if c.ifNoneMatch_ != "" {
25026		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25027	}
25028	var body io.Reader = nil
25029	c.urlParams_.Set("alt", alt)
25030	c.urlParams_.Set("prettyPrint", "false")
25031	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
25032	urls += "?" + c.urlParams_.Encode()
25033	req, err := http.NewRequest("GET", urls, body)
25034	if err != nil {
25035		return nil, err
25036	}
25037	req.Header = reqHeaders
25038	googleapi.Expand(req.URL, map[string]string{
25039		"name": c.name,
25040	})
25041	return gensupport.SendRequest(c.ctx_, c.s.client, req)
25042}
25043
25044// Do executes the "apigee.organizations.envgroups.attachments.get" call.
25045// Exactly one of *GoogleCloudApigeeV1EnvironmentGroupAttachment or
25046// error will be non-nil. Any non-2xx status code is an error. Response
25047// headers are in either
25048// *GoogleCloudApigeeV1EnvironmentGroupAttachment.ServerResponse.Header
25049// or (if a response was returned at all) in
25050// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
25051// whether the returned error was because http.StatusNotModified was
25052// returned.
25053func (c *OrganizationsEnvgroupsAttachmentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1EnvironmentGroupAttachment, error) {
25054	gensupport.SetOptions(c.urlParams_, opts...)
25055	res, err := c.doRequest("json")
25056	if res != nil && res.StatusCode == http.StatusNotModified {
25057		if res.Body != nil {
25058			res.Body.Close()
25059		}
25060		return nil, &googleapi.Error{
25061			Code:   res.StatusCode,
25062			Header: res.Header,
25063		}
25064	}
25065	if err != nil {
25066		return nil, err
25067	}
25068	defer googleapi.CloseBody(res)
25069	if err := googleapi.CheckResponse(res); err != nil {
25070		return nil, err
25071	}
25072	ret := &GoogleCloudApigeeV1EnvironmentGroupAttachment{
25073		ServerResponse: googleapi.ServerResponse{
25074			Header:         res.Header,
25075			HTTPStatusCode: res.StatusCode,
25076		},
25077	}
25078	target := &ret
25079	if err := gensupport.DecodeResponse(target, res); err != nil {
25080		return nil, err
25081	}
25082	return ret, nil
25083	// {
25084	//   "description": "Gets an environment group attachment.",
25085	//   "flatPath": "v1/organizations/{organizationsId}/envgroups/{envgroupsId}/attachments/{attachmentsId}",
25086	//   "httpMethod": "GET",
25087	//   "id": "apigee.organizations.envgroups.attachments.get",
25088	//   "parameterOrder": [
25089	//     "name"
25090	//   ],
25091	//   "parameters": {
25092	//     "name": {
25093	//       "description": "Required. Name of the environment group attachment in the following format: `organizations/{org}/envgroups/{envgroup}/attachments/{attachment}`",
25094	//       "location": "path",
25095	//       "pattern": "^organizations/[^/]+/envgroups/[^/]+/attachments/[^/]+$",
25096	//       "required": true,
25097	//       "type": "string"
25098	//     }
25099	//   },
25100	//   "path": "v1/{+name}",
25101	//   "response": {
25102	//     "$ref": "GoogleCloudApigeeV1EnvironmentGroupAttachment"
25103	//   },
25104	//   "scopes": [
25105	//     "https://www.googleapis.com/auth/cloud-platform"
25106	//   ]
25107	// }
25108
25109}
25110
25111// method id "apigee.organizations.envgroups.attachments.list":
25112
25113type OrganizationsEnvgroupsAttachmentsListCall struct {
25114	s            *Service
25115	parent       string
25116	urlParams_   gensupport.URLParams
25117	ifNoneMatch_ string
25118	ctx_         context.Context
25119	header_      http.Header
25120}
25121
25122// List: Lists all attachments of an environment group.
25123//
25124// - parent: Name of the environment group in the following format:
25125//   `organizations/{org}/envgroups/{envgroup}`.
25126func (r *OrganizationsEnvgroupsAttachmentsService) List(parent string) *OrganizationsEnvgroupsAttachmentsListCall {
25127	c := &OrganizationsEnvgroupsAttachmentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25128	c.parent = parent
25129	return c
25130}
25131
25132// PageSize sets the optional parameter "pageSize": Maximum number of
25133// environment group attachments to return. The page size defaults to
25134// 25.
25135func (c *OrganizationsEnvgroupsAttachmentsListCall) PageSize(pageSize int64) *OrganizationsEnvgroupsAttachmentsListCall {
25136	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
25137	return c
25138}
25139
25140// PageToken sets the optional parameter "pageToken": Page token,
25141// returned by a previous ListEnvironmentGroupAttachments call, that you
25142// can use to retrieve the next page.
25143func (c *OrganizationsEnvgroupsAttachmentsListCall) PageToken(pageToken string) *OrganizationsEnvgroupsAttachmentsListCall {
25144	c.urlParams_.Set("pageToken", pageToken)
25145	return c
25146}
25147
25148// Fields allows partial responses to be retrieved. See
25149// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
25150// for more information.
25151func (c *OrganizationsEnvgroupsAttachmentsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsAttachmentsListCall {
25152	c.urlParams_.Set("fields", googleapi.CombineFields(s))
25153	return c
25154}
25155
25156// IfNoneMatch sets the optional parameter which makes the operation
25157// fail if the object's ETag matches the given value. This is useful for
25158// getting updates only after the object has changed since the last
25159// request. Use googleapi.IsNotModified to check whether the response
25160// error from Do is the result of In-None-Match.
25161func (c *OrganizationsEnvgroupsAttachmentsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvgroupsAttachmentsListCall {
25162	c.ifNoneMatch_ = entityTag
25163	return c
25164}
25165
25166// Context sets the context to be used in this call's Do method. Any
25167// pending HTTP request will be aborted if the provided context is
25168// canceled.
25169func (c *OrganizationsEnvgroupsAttachmentsListCall) Context(ctx context.Context) *OrganizationsEnvgroupsAttachmentsListCall {
25170	c.ctx_ = ctx
25171	return c
25172}
25173
25174// Header returns an http.Header that can be modified by the caller to
25175// add HTTP headers to the request.
25176func (c *OrganizationsEnvgroupsAttachmentsListCall) Header() http.Header {
25177	if c.header_ == nil {
25178		c.header_ = make(http.Header)
25179	}
25180	return c.header_
25181}
25182
25183func (c *OrganizationsEnvgroupsAttachmentsListCall) doRequest(alt string) (*http.Response, error) {
25184	reqHeaders := make(http.Header)
25185	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
25186	for k, v := range c.header_ {
25187		reqHeaders[k] = v
25188	}
25189	reqHeaders.Set("User-Agent", c.s.userAgent())
25190	if c.ifNoneMatch_ != "" {
25191		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25192	}
25193	var body io.Reader = nil
25194	c.urlParams_.Set("alt", alt)
25195	c.urlParams_.Set("prettyPrint", "false")
25196	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attachments")
25197	urls += "?" + c.urlParams_.Encode()
25198	req, err := http.NewRequest("GET", urls, body)
25199	if err != nil {
25200		return nil, err
25201	}
25202	req.Header = reqHeaders
25203	googleapi.Expand(req.URL, map[string]string{
25204		"parent": c.parent,
25205	})
25206	return gensupport.SendRequest(c.ctx_, c.s.client, req)
25207}
25208
25209// Do executes the "apigee.organizations.envgroups.attachments.list" call.
25210// Exactly one of
25211// *GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse or error
25212// will be non-nil. Any non-2xx status code is an error. Response
25213// headers are in either
25214// *GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse.ServerResp
25215// onse.Header or (if a response was returned at all) in
25216// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
25217// whether the returned error was because http.StatusNotModified was
25218// returned.
25219func (c *OrganizationsEnvgroupsAttachmentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse, error) {
25220	gensupport.SetOptions(c.urlParams_, opts...)
25221	res, err := c.doRequest("json")
25222	if res != nil && res.StatusCode == http.StatusNotModified {
25223		if res.Body != nil {
25224			res.Body.Close()
25225		}
25226		return nil, &googleapi.Error{
25227			Code:   res.StatusCode,
25228			Header: res.Header,
25229		}
25230	}
25231	if err != nil {
25232		return nil, err
25233	}
25234	defer googleapi.CloseBody(res)
25235	if err := googleapi.CheckResponse(res); err != nil {
25236		return nil, err
25237	}
25238	ret := &GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse{
25239		ServerResponse: googleapi.ServerResponse{
25240			Header:         res.Header,
25241			HTTPStatusCode: res.StatusCode,
25242		},
25243	}
25244	target := &ret
25245	if err := gensupport.DecodeResponse(target, res); err != nil {
25246		return nil, err
25247	}
25248	return ret, nil
25249	// {
25250	//   "description": "Lists all attachments of an environment group.",
25251	//   "flatPath": "v1/organizations/{organizationsId}/envgroups/{envgroupsId}/attachments",
25252	//   "httpMethod": "GET",
25253	//   "id": "apigee.organizations.envgroups.attachments.list",
25254	//   "parameterOrder": [
25255	//     "parent"
25256	//   ],
25257	//   "parameters": {
25258	//     "pageSize": {
25259	//       "description": "Maximum number of environment group attachments to return. The page size defaults to 25.",
25260	//       "format": "int32",
25261	//       "location": "query",
25262	//       "type": "integer"
25263	//     },
25264	//     "pageToken": {
25265	//       "description": "Page token, returned by a previous ListEnvironmentGroupAttachments call, that you can use to retrieve the next page.",
25266	//       "location": "query",
25267	//       "type": "string"
25268	//     },
25269	//     "parent": {
25270	//       "description": "Required. Name of the environment group in the following format: `organizations/{org}/envgroups/{envgroup}`.",
25271	//       "location": "path",
25272	//       "pattern": "^organizations/[^/]+/envgroups/[^/]+$",
25273	//       "required": true,
25274	//       "type": "string"
25275	//     }
25276	//   },
25277	//   "path": "v1/{+parent}/attachments",
25278	//   "response": {
25279	//     "$ref": "GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse"
25280	//   },
25281	//   "scopes": [
25282	//     "https://www.googleapis.com/auth/cloud-platform"
25283	//   ]
25284	// }
25285
25286}
25287
25288// Pages invokes f for each page of results.
25289// A non-nil error returned from f will halt the iteration.
25290// The provided context supersedes any context provided to the Context method.
25291func (c *OrganizationsEnvgroupsAttachmentsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse) error) error {
25292	c.ctx_ = ctx
25293	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
25294	for {
25295		x, err := c.Do()
25296		if err != nil {
25297			return err
25298		}
25299		if err := f(x); err != nil {
25300			return err
25301		}
25302		if x.NextPageToken == "" {
25303			return nil
25304		}
25305		c.PageToken(x.NextPageToken)
25306	}
25307}
25308
25309// method id "apigee.organizations.environments.create":
25310
25311type OrganizationsEnvironmentsCreateCall struct {
25312	s                              *Service
25313	parent                         string
25314	googlecloudapigeev1environment *GoogleCloudApigeeV1Environment
25315	urlParams_                     gensupport.URLParams
25316	ctx_                           context.Context
25317	header_                        http.Header
25318}
25319
25320// Create: Creates an environment in an organization.
25321//
25322// - parent: Name of the organization in which the environment will be
25323//   created. Use the following structure in your request:
25324//   `organizations/{org}`.
25325func (r *OrganizationsEnvironmentsService) Create(parent string, googlecloudapigeev1environment *GoogleCloudApigeeV1Environment) *OrganizationsEnvironmentsCreateCall {
25326	c := &OrganizationsEnvironmentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25327	c.parent = parent
25328	c.googlecloudapigeev1environment = googlecloudapigeev1environment
25329	return c
25330}
25331
25332// Name sets the optional parameter "name": Name of the environment.
25333// Alternatively, the name may be specified in the request body in the
25334// name field.
25335func (c *OrganizationsEnvironmentsCreateCall) Name(name string) *OrganizationsEnvironmentsCreateCall {
25336	c.urlParams_.Set("name", name)
25337	return c
25338}
25339
25340// Fields allows partial responses to be retrieved. See
25341// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
25342// for more information.
25343func (c *OrganizationsEnvironmentsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsCreateCall {
25344	c.urlParams_.Set("fields", googleapi.CombineFields(s))
25345	return c
25346}
25347
25348// Context sets the context to be used in this call's Do method. Any
25349// pending HTTP request will be aborted if the provided context is
25350// canceled.
25351func (c *OrganizationsEnvironmentsCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsCreateCall {
25352	c.ctx_ = ctx
25353	return c
25354}
25355
25356// Header returns an http.Header that can be modified by the caller to
25357// add HTTP headers to the request.
25358func (c *OrganizationsEnvironmentsCreateCall) Header() http.Header {
25359	if c.header_ == nil {
25360		c.header_ = make(http.Header)
25361	}
25362	return c.header_
25363}
25364
25365func (c *OrganizationsEnvironmentsCreateCall) doRequest(alt string) (*http.Response, error) {
25366	reqHeaders := make(http.Header)
25367	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
25368	for k, v := range c.header_ {
25369		reqHeaders[k] = v
25370	}
25371	reqHeaders.Set("User-Agent", c.s.userAgent())
25372	var body io.Reader = nil
25373	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1environment)
25374	if err != nil {
25375		return nil, err
25376	}
25377	reqHeaders.Set("Content-Type", "application/json")
25378	c.urlParams_.Set("alt", alt)
25379	c.urlParams_.Set("prettyPrint", "false")
25380	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/environments")
25381	urls += "?" + c.urlParams_.Encode()
25382	req, err := http.NewRequest("POST", urls, body)
25383	if err != nil {
25384		return nil, err
25385	}
25386	req.Header = reqHeaders
25387	googleapi.Expand(req.URL, map[string]string{
25388		"parent": c.parent,
25389	})
25390	return gensupport.SendRequest(c.ctx_, c.s.client, req)
25391}
25392
25393// Do executes the "apigee.organizations.environments.create" call.
25394// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
25395// Any non-2xx status code is an error. Response headers are in either
25396// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
25397// was returned at all) in error.(*googleapi.Error).Header. Use
25398// googleapi.IsNotModified to check whether the returned error was
25399// because http.StatusNotModified was returned.
25400func (c *OrganizationsEnvironmentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
25401	gensupport.SetOptions(c.urlParams_, opts...)
25402	res, err := c.doRequest("json")
25403	if res != nil && res.StatusCode == http.StatusNotModified {
25404		if res.Body != nil {
25405			res.Body.Close()
25406		}
25407		return nil, &googleapi.Error{
25408			Code:   res.StatusCode,
25409			Header: res.Header,
25410		}
25411	}
25412	if err != nil {
25413		return nil, err
25414	}
25415	defer googleapi.CloseBody(res)
25416	if err := googleapi.CheckResponse(res); err != nil {
25417		return nil, err
25418	}
25419	ret := &GoogleLongrunningOperation{
25420		ServerResponse: googleapi.ServerResponse{
25421			Header:         res.Header,
25422			HTTPStatusCode: res.StatusCode,
25423		},
25424	}
25425	target := &ret
25426	if err := gensupport.DecodeResponse(target, res); err != nil {
25427		return nil, err
25428	}
25429	return ret, nil
25430	// {
25431	//   "description": "Creates an environment in an organization.",
25432	//   "flatPath": "v1/organizations/{organizationsId}/environments",
25433	//   "httpMethod": "POST",
25434	//   "id": "apigee.organizations.environments.create",
25435	//   "parameterOrder": [
25436	//     "parent"
25437	//   ],
25438	//   "parameters": {
25439	//     "name": {
25440	//       "description": "Optional. Name of the environment. Alternatively, the name may be specified in the request body in the name field.",
25441	//       "location": "query",
25442	//       "type": "string"
25443	//     },
25444	//     "parent": {
25445	//       "description": "Required. Name of the organization in which the environment will be created. Use the following structure in your request: `organizations/{org}`",
25446	//       "location": "path",
25447	//       "pattern": "^organizations/[^/]+$",
25448	//       "required": true,
25449	//       "type": "string"
25450	//     }
25451	//   },
25452	//   "path": "v1/{+parent}/environments",
25453	//   "request": {
25454	//     "$ref": "GoogleCloudApigeeV1Environment"
25455	//   },
25456	//   "response": {
25457	//     "$ref": "GoogleLongrunningOperation"
25458	//   },
25459	//   "scopes": [
25460	//     "https://www.googleapis.com/auth/cloud-platform"
25461	//   ]
25462	// }
25463
25464}
25465
25466// method id "apigee.organizations.environments.delete":
25467
25468type OrganizationsEnvironmentsDeleteCall struct {
25469	s          *Service
25470	name       string
25471	urlParams_ gensupport.URLParams
25472	ctx_       context.Context
25473	header_    http.Header
25474}
25475
25476// Delete: Deletes an environment from an organization.
25477//
25478// - name: Name of the environment. Use the following structure in your
25479//   request: `organizations/{org}/environments/{env}`.
25480func (r *OrganizationsEnvironmentsService) Delete(name string) *OrganizationsEnvironmentsDeleteCall {
25481	c := &OrganizationsEnvironmentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25482	c.name = name
25483	return c
25484}
25485
25486// Fields allows partial responses to be retrieved. See
25487// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
25488// for more information.
25489func (c *OrganizationsEnvironmentsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsDeleteCall {
25490	c.urlParams_.Set("fields", googleapi.CombineFields(s))
25491	return c
25492}
25493
25494// Context sets the context to be used in this call's Do method. Any
25495// pending HTTP request will be aborted if the provided context is
25496// canceled.
25497func (c *OrganizationsEnvironmentsDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsDeleteCall {
25498	c.ctx_ = ctx
25499	return c
25500}
25501
25502// Header returns an http.Header that can be modified by the caller to
25503// add HTTP headers to the request.
25504func (c *OrganizationsEnvironmentsDeleteCall) Header() http.Header {
25505	if c.header_ == nil {
25506		c.header_ = make(http.Header)
25507	}
25508	return c.header_
25509}
25510
25511func (c *OrganizationsEnvironmentsDeleteCall) doRequest(alt string) (*http.Response, error) {
25512	reqHeaders := make(http.Header)
25513	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
25514	for k, v := range c.header_ {
25515		reqHeaders[k] = v
25516	}
25517	reqHeaders.Set("User-Agent", c.s.userAgent())
25518	var body io.Reader = nil
25519	c.urlParams_.Set("alt", alt)
25520	c.urlParams_.Set("prettyPrint", "false")
25521	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
25522	urls += "?" + c.urlParams_.Encode()
25523	req, err := http.NewRequest("DELETE", urls, body)
25524	if err != nil {
25525		return nil, err
25526	}
25527	req.Header = reqHeaders
25528	googleapi.Expand(req.URL, map[string]string{
25529		"name": c.name,
25530	})
25531	return gensupport.SendRequest(c.ctx_, c.s.client, req)
25532}
25533
25534// Do executes the "apigee.organizations.environments.delete" call.
25535// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
25536// Any non-2xx status code is an error. Response headers are in either
25537// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
25538// was returned at all) in error.(*googleapi.Error).Header. Use
25539// googleapi.IsNotModified to check whether the returned error was
25540// because http.StatusNotModified was returned.
25541func (c *OrganizationsEnvironmentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
25542	gensupport.SetOptions(c.urlParams_, opts...)
25543	res, err := c.doRequest("json")
25544	if res != nil && res.StatusCode == http.StatusNotModified {
25545		if res.Body != nil {
25546			res.Body.Close()
25547		}
25548		return nil, &googleapi.Error{
25549			Code:   res.StatusCode,
25550			Header: res.Header,
25551		}
25552	}
25553	if err != nil {
25554		return nil, err
25555	}
25556	defer googleapi.CloseBody(res)
25557	if err := googleapi.CheckResponse(res); err != nil {
25558		return nil, err
25559	}
25560	ret := &GoogleLongrunningOperation{
25561		ServerResponse: googleapi.ServerResponse{
25562			Header:         res.Header,
25563			HTTPStatusCode: res.StatusCode,
25564		},
25565	}
25566	target := &ret
25567	if err := gensupport.DecodeResponse(target, res); err != nil {
25568		return nil, err
25569	}
25570	return ret, nil
25571	// {
25572	//   "description": "Deletes an environment from an organization.",
25573	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}",
25574	//   "httpMethod": "DELETE",
25575	//   "id": "apigee.organizations.environments.delete",
25576	//   "parameterOrder": [
25577	//     "name"
25578	//   ],
25579	//   "parameters": {
25580	//     "name": {
25581	//       "description": "Required. Name of the environment. Use the following structure in your request: `organizations/{org}/environments/{env}`",
25582	//       "location": "path",
25583	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
25584	//       "required": true,
25585	//       "type": "string"
25586	//     }
25587	//   },
25588	//   "path": "v1/{+name}",
25589	//   "response": {
25590	//     "$ref": "GoogleLongrunningOperation"
25591	//   },
25592	//   "scopes": [
25593	//     "https://www.googleapis.com/auth/cloud-platform"
25594	//   ]
25595	// }
25596
25597}
25598
25599// method id "apigee.organizations.environments.get":
25600
25601type OrganizationsEnvironmentsGetCall struct {
25602	s            *Service
25603	name         string
25604	urlParams_   gensupport.URLParams
25605	ifNoneMatch_ string
25606	ctx_         context.Context
25607	header_      http.Header
25608}
25609
25610// Get: Gets environment details.
25611//
25612// - name: Name of the environment. Use the following structure in your
25613//   request: `organizations/{org}/environments/{env}`.
25614func (r *OrganizationsEnvironmentsService) Get(name string) *OrganizationsEnvironmentsGetCall {
25615	c := &OrganizationsEnvironmentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25616	c.name = name
25617	return c
25618}
25619
25620// Fields allows partial responses to be retrieved. See
25621// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
25622// for more information.
25623func (c *OrganizationsEnvironmentsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsGetCall {
25624	c.urlParams_.Set("fields", googleapi.CombineFields(s))
25625	return c
25626}
25627
25628// IfNoneMatch sets the optional parameter which makes the operation
25629// fail if the object's ETag matches the given value. This is useful for
25630// getting updates only after the object has changed since the last
25631// request. Use googleapi.IsNotModified to check whether the response
25632// error from Do is the result of In-None-Match.
25633func (c *OrganizationsEnvironmentsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsGetCall {
25634	c.ifNoneMatch_ = entityTag
25635	return c
25636}
25637
25638// Context sets the context to be used in this call's Do method. Any
25639// pending HTTP request will be aborted if the provided context is
25640// canceled.
25641func (c *OrganizationsEnvironmentsGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsGetCall {
25642	c.ctx_ = ctx
25643	return c
25644}
25645
25646// Header returns an http.Header that can be modified by the caller to
25647// add HTTP headers to the request.
25648func (c *OrganizationsEnvironmentsGetCall) Header() http.Header {
25649	if c.header_ == nil {
25650		c.header_ = make(http.Header)
25651	}
25652	return c.header_
25653}
25654
25655func (c *OrganizationsEnvironmentsGetCall) doRequest(alt string) (*http.Response, error) {
25656	reqHeaders := make(http.Header)
25657	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
25658	for k, v := range c.header_ {
25659		reqHeaders[k] = v
25660	}
25661	reqHeaders.Set("User-Agent", c.s.userAgent())
25662	if c.ifNoneMatch_ != "" {
25663		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25664	}
25665	var body io.Reader = nil
25666	c.urlParams_.Set("alt", alt)
25667	c.urlParams_.Set("prettyPrint", "false")
25668	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
25669	urls += "?" + c.urlParams_.Encode()
25670	req, err := http.NewRequest("GET", urls, body)
25671	if err != nil {
25672		return nil, err
25673	}
25674	req.Header = reqHeaders
25675	googleapi.Expand(req.URL, map[string]string{
25676		"name": c.name,
25677	})
25678	return gensupport.SendRequest(c.ctx_, c.s.client, req)
25679}
25680
25681// Do executes the "apigee.organizations.environments.get" call.
25682// Exactly one of *GoogleCloudApigeeV1Environment or error will be
25683// non-nil. Any non-2xx status code is an error. Response headers are in
25684// either *GoogleCloudApigeeV1Environment.ServerResponse.Header or (if a
25685// response was returned at all) in error.(*googleapi.Error).Header. Use
25686// googleapi.IsNotModified to check whether the returned error was
25687// because http.StatusNotModified was returned.
25688func (c *OrganizationsEnvironmentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Environment, error) {
25689	gensupport.SetOptions(c.urlParams_, opts...)
25690	res, err := c.doRequest("json")
25691	if res != nil && res.StatusCode == http.StatusNotModified {
25692		if res.Body != nil {
25693			res.Body.Close()
25694		}
25695		return nil, &googleapi.Error{
25696			Code:   res.StatusCode,
25697			Header: res.Header,
25698		}
25699	}
25700	if err != nil {
25701		return nil, err
25702	}
25703	defer googleapi.CloseBody(res)
25704	if err := googleapi.CheckResponse(res); err != nil {
25705		return nil, err
25706	}
25707	ret := &GoogleCloudApigeeV1Environment{
25708		ServerResponse: googleapi.ServerResponse{
25709			Header:         res.Header,
25710			HTTPStatusCode: res.StatusCode,
25711		},
25712	}
25713	target := &ret
25714	if err := gensupport.DecodeResponse(target, res); err != nil {
25715		return nil, err
25716	}
25717	return ret, nil
25718	// {
25719	//   "description": "Gets environment details.",
25720	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}",
25721	//   "httpMethod": "GET",
25722	//   "id": "apigee.organizations.environments.get",
25723	//   "parameterOrder": [
25724	//     "name"
25725	//   ],
25726	//   "parameters": {
25727	//     "name": {
25728	//       "description": "Required. Name of the environment. Use the following structure in your request: `organizations/{org}/environments/{env}`",
25729	//       "location": "path",
25730	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
25731	//       "required": true,
25732	//       "type": "string"
25733	//     }
25734	//   },
25735	//   "path": "v1/{+name}",
25736	//   "response": {
25737	//     "$ref": "GoogleCloudApigeeV1Environment"
25738	//   },
25739	//   "scopes": [
25740	//     "https://www.googleapis.com/auth/cloud-platform"
25741	//   ]
25742	// }
25743
25744}
25745
25746// method id "apigee.organizations.environments.getDebugmask":
25747
25748type OrganizationsEnvironmentsGetDebugmaskCall struct {
25749	s            *Service
25750	name         string
25751	urlParams_   gensupport.URLParams
25752	ifNoneMatch_ string
25753	ctx_         context.Context
25754	header_      http.Header
25755}
25756
25757// GetDebugmask: Gets the debug mask singleton resource for an
25758// environment.
25759//
25760// - name: Name of the debug mask. Use the following structure in your
25761//   request: `organizations/{org}/environments/{env}/debugmask`.
25762func (r *OrganizationsEnvironmentsService) GetDebugmask(name string) *OrganizationsEnvironmentsGetDebugmaskCall {
25763	c := &OrganizationsEnvironmentsGetDebugmaskCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25764	c.name = name
25765	return c
25766}
25767
25768// Fields allows partial responses to be retrieved. See
25769// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
25770// for more information.
25771func (c *OrganizationsEnvironmentsGetDebugmaskCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsGetDebugmaskCall {
25772	c.urlParams_.Set("fields", googleapi.CombineFields(s))
25773	return c
25774}
25775
25776// IfNoneMatch sets the optional parameter which makes the operation
25777// fail if the object's ETag matches the given value. This is useful for
25778// getting updates only after the object has changed since the last
25779// request. Use googleapi.IsNotModified to check whether the response
25780// error from Do is the result of In-None-Match.
25781func (c *OrganizationsEnvironmentsGetDebugmaskCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsGetDebugmaskCall {
25782	c.ifNoneMatch_ = entityTag
25783	return c
25784}
25785
25786// Context sets the context to be used in this call's Do method. Any
25787// pending HTTP request will be aborted if the provided context is
25788// canceled.
25789func (c *OrganizationsEnvironmentsGetDebugmaskCall) Context(ctx context.Context) *OrganizationsEnvironmentsGetDebugmaskCall {
25790	c.ctx_ = ctx
25791	return c
25792}
25793
25794// Header returns an http.Header that can be modified by the caller to
25795// add HTTP headers to the request.
25796func (c *OrganizationsEnvironmentsGetDebugmaskCall) Header() http.Header {
25797	if c.header_ == nil {
25798		c.header_ = make(http.Header)
25799	}
25800	return c.header_
25801}
25802
25803func (c *OrganizationsEnvironmentsGetDebugmaskCall) doRequest(alt string) (*http.Response, error) {
25804	reqHeaders := make(http.Header)
25805	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
25806	for k, v := range c.header_ {
25807		reqHeaders[k] = v
25808	}
25809	reqHeaders.Set("User-Agent", c.s.userAgent())
25810	if c.ifNoneMatch_ != "" {
25811		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25812	}
25813	var body io.Reader = nil
25814	c.urlParams_.Set("alt", alt)
25815	c.urlParams_.Set("prettyPrint", "false")
25816	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
25817	urls += "?" + c.urlParams_.Encode()
25818	req, err := http.NewRequest("GET", urls, body)
25819	if err != nil {
25820		return nil, err
25821	}
25822	req.Header = reqHeaders
25823	googleapi.Expand(req.URL, map[string]string{
25824		"name": c.name,
25825	})
25826	return gensupport.SendRequest(c.ctx_, c.s.client, req)
25827}
25828
25829// Do executes the "apigee.organizations.environments.getDebugmask" call.
25830// Exactly one of *GoogleCloudApigeeV1DebugMask or error will be
25831// non-nil. Any non-2xx status code is an error. Response headers are in
25832// either *GoogleCloudApigeeV1DebugMask.ServerResponse.Header or (if a
25833// response was returned at all) in error.(*googleapi.Error).Header. Use
25834// googleapi.IsNotModified to check whether the returned error was
25835// because http.StatusNotModified was returned.
25836func (c *OrganizationsEnvironmentsGetDebugmaskCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DebugMask, error) {
25837	gensupport.SetOptions(c.urlParams_, opts...)
25838	res, err := c.doRequest("json")
25839	if res != nil && res.StatusCode == http.StatusNotModified {
25840		if res.Body != nil {
25841			res.Body.Close()
25842		}
25843		return nil, &googleapi.Error{
25844			Code:   res.StatusCode,
25845			Header: res.Header,
25846		}
25847	}
25848	if err != nil {
25849		return nil, err
25850	}
25851	defer googleapi.CloseBody(res)
25852	if err := googleapi.CheckResponse(res); err != nil {
25853		return nil, err
25854	}
25855	ret := &GoogleCloudApigeeV1DebugMask{
25856		ServerResponse: googleapi.ServerResponse{
25857			Header:         res.Header,
25858			HTTPStatusCode: res.StatusCode,
25859		},
25860	}
25861	target := &ret
25862	if err := gensupport.DecodeResponse(target, res); err != nil {
25863		return nil, err
25864	}
25865	return ret, nil
25866	// {
25867	//   "description": "Gets the debug mask singleton resource for an environment.",
25868	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/debugmask",
25869	//   "httpMethod": "GET",
25870	//   "id": "apigee.organizations.environments.getDebugmask",
25871	//   "parameterOrder": [
25872	//     "name"
25873	//   ],
25874	//   "parameters": {
25875	//     "name": {
25876	//       "description": "Required. Name of the debug mask. Use the following structure in your request: `organizations/{org}/environments/{env}/debugmask`.",
25877	//       "location": "path",
25878	//       "pattern": "^organizations/[^/]+/environments/[^/]+/debugmask$",
25879	//       "required": true,
25880	//       "type": "string"
25881	//     }
25882	//   },
25883	//   "path": "v1/{+name}",
25884	//   "response": {
25885	//     "$ref": "GoogleCloudApigeeV1DebugMask"
25886	//   },
25887	//   "scopes": [
25888	//     "https://www.googleapis.com/auth/cloud-platform"
25889	//   ]
25890	// }
25891
25892}
25893
25894// method id "apigee.organizations.environments.getDeployedConfig":
25895
25896type OrganizationsEnvironmentsGetDeployedConfigCall struct {
25897	s            *Service
25898	name         string
25899	urlParams_   gensupport.URLParams
25900	ifNoneMatch_ string
25901	ctx_         context.Context
25902	header_      http.Header
25903}
25904
25905// GetDeployedConfig: Gets the deployed configuration for an
25906// environment.
25907//
25908// - name: Name of the environment deployed configuration resource. Use
25909//   the following structure in your request:
25910//   `organizations/{org}/environments/{env}/deployedConfig`.
25911func (r *OrganizationsEnvironmentsService) GetDeployedConfig(name string) *OrganizationsEnvironmentsGetDeployedConfigCall {
25912	c := &OrganizationsEnvironmentsGetDeployedConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25913	c.name = name
25914	return c
25915}
25916
25917// Fields allows partial responses to be retrieved. See
25918// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
25919// for more information.
25920func (c *OrganizationsEnvironmentsGetDeployedConfigCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsGetDeployedConfigCall {
25921	c.urlParams_.Set("fields", googleapi.CombineFields(s))
25922	return c
25923}
25924
25925// IfNoneMatch sets the optional parameter which makes the operation
25926// fail if the object's ETag matches the given value. This is useful for
25927// getting updates only after the object has changed since the last
25928// request. Use googleapi.IsNotModified to check whether the response
25929// error from Do is the result of In-None-Match.
25930func (c *OrganizationsEnvironmentsGetDeployedConfigCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsGetDeployedConfigCall {
25931	c.ifNoneMatch_ = entityTag
25932	return c
25933}
25934
25935// Context sets the context to be used in this call's Do method. Any
25936// pending HTTP request will be aborted if the provided context is
25937// canceled.
25938func (c *OrganizationsEnvironmentsGetDeployedConfigCall) Context(ctx context.Context) *OrganizationsEnvironmentsGetDeployedConfigCall {
25939	c.ctx_ = ctx
25940	return c
25941}
25942
25943// Header returns an http.Header that can be modified by the caller to
25944// add HTTP headers to the request.
25945func (c *OrganizationsEnvironmentsGetDeployedConfigCall) Header() http.Header {
25946	if c.header_ == nil {
25947		c.header_ = make(http.Header)
25948	}
25949	return c.header_
25950}
25951
25952func (c *OrganizationsEnvironmentsGetDeployedConfigCall) doRequest(alt string) (*http.Response, error) {
25953	reqHeaders := make(http.Header)
25954	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
25955	for k, v := range c.header_ {
25956		reqHeaders[k] = v
25957	}
25958	reqHeaders.Set("User-Agent", c.s.userAgent())
25959	if c.ifNoneMatch_ != "" {
25960		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25961	}
25962	var body io.Reader = nil
25963	c.urlParams_.Set("alt", alt)
25964	c.urlParams_.Set("prettyPrint", "false")
25965	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
25966	urls += "?" + c.urlParams_.Encode()
25967	req, err := http.NewRequest("GET", urls, body)
25968	if err != nil {
25969		return nil, err
25970	}
25971	req.Header = reqHeaders
25972	googleapi.Expand(req.URL, map[string]string{
25973		"name": c.name,
25974	})
25975	return gensupport.SendRequest(c.ctx_, c.s.client, req)
25976}
25977
25978// Do executes the "apigee.organizations.environments.getDeployedConfig" call.
25979// Exactly one of *GoogleCloudApigeeV1EnvironmentConfig or error will be
25980// non-nil. Any non-2xx status code is an error. Response headers are in
25981// either *GoogleCloudApigeeV1EnvironmentConfig.ServerResponse.Header or
25982// (if a response was returned at all) in
25983// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
25984// whether the returned error was because http.StatusNotModified was
25985// returned.
25986func (c *OrganizationsEnvironmentsGetDeployedConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1EnvironmentConfig, error) {
25987	gensupport.SetOptions(c.urlParams_, opts...)
25988	res, err := c.doRequest("json")
25989	if res != nil && res.StatusCode == http.StatusNotModified {
25990		if res.Body != nil {
25991			res.Body.Close()
25992		}
25993		return nil, &googleapi.Error{
25994			Code:   res.StatusCode,
25995			Header: res.Header,
25996		}
25997	}
25998	if err != nil {
25999		return nil, err
26000	}
26001	defer googleapi.CloseBody(res)
26002	if err := googleapi.CheckResponse(res); err != nil {
26003		return nil, err
26004	}
26005	ret := &GoogleCloudApigeeV1EnvironmentConfig{
26006		ServerResponse: googleapi.ServerResponse{
26007			Header:         res.Header,
26008			HTTPStatusCode: res.StatusCode,
26009		},
26010	}
26011	target := &ret
26012	if err := gensupport.DecodeResponse(target, res); err != nil {
26013		return nil, err
26014	}
26015	return ret, nil
26016	// {
26017	//   "description": "Gets the deployed configuration for an environment.",
26018	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/deployedConfig",
26019	//   "httpMethod": "GET",
26020	//   "id": "apigee.organizations.environments.getDeployedConfig",
26021	//   "parameterOrder": [
26022	//     "name"
26023	//   ],
26024	//   "parameters": {
26025	//     "name": {
26026	//       "description": "Required. Name of the environment deployed configuration resource. Use the following structure in your request: `organizations/{org}/environments/{env}/deployedConfig`",
26027	//       "location": "path",
26028	//       "pattern": "^organizations/[^/]+/environments/[^/]+/deployedConfig$",
26029	//       "required": true,
26030	//       "type": "string"
26031	//     }
26032	//   },
26033	//   "path": "v1/{+name}",
26034	//   "response": {
26035	//     "$ref": "GoogleCloudApigeeV1EnvironmentConfig"
26036	//   },
26037	//   "scopes": [
26038	//     "https://www.googleapis.com/auth/cloud-platform"
26039	//   ]
26040	// }
26041
26042}
26043
26044// method id "apigee.organizations.environments.getIamPolicy":
26045
26046type OrganizationsEnvironmentsGetIamPolicyCall struct {
26047	s            *Service
26048	resource     string
26049	urlParams_   gensupport.URLParams
26050	ifNoneMatch_ string
26051	ctx_         context.Context
26052	header_      http.Header
26053}
26054
26055// GetIamPolicy: Gets the IAM policy on an environment. For more
26056// information, see Manage users, roles, and permissions using the API
26057// (https://cloud.google.com/apigee/docs/api-platform/system-administration/manage-users-roles).
26058// You must have the `apigee.environments.getIamPolicy` permission to
26059// call this API.
26060//
26061// - resource: REQUIRED: The resource for which the policy is being
26062//   requested. See the operation documentation for the appropriate
26063//   value for this field.
26064func (r *OrganizationsEnvironmentsService) GetIamPolicy(resource string) *OrganizationsEnvironmentsGetIamPolicyCall {
26065	c := &OrganizationsEnvironmentsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26066	c.resource = resource
26067	return c
26068}
26069
26070// OptionsRequestedPolicyVersion sets the optional parameter
26071// "options.requestedPolicyVersion": The policy format version to be
26072// returned. Valid values are 0, 1, and 3. Requests specifying an
26073// invalid value will be rejected. Requests for policies with any
26074// conditional bindings must specify version 3. Policies without any
26075// conditional bindings may specify any valid value or leave the field
26076// unset. To learn which resources support conditions in their IAM
26077// policies, see the IAM documentation
26078// (https://cloud.google.com/iam/help/conditions/resource-policies).
26079func (c *OrganizationsEnvironmentsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *OrganizationsEnvironmentsGetIamPolicyCall {
26080	c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
26081	return c
26082}
26083
26084// Fields allows partial responses to be retrieved. See
26085// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
26086// for more information.
26087func (c *OrganizationsEnvironmentsGetIamPolicyCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsGetIamPolicyCall {
26088	c.urlParams_.Set("fields", googleapi.CombineFields(s))
26089	return c
26090}
26091
26092// IfNoneMatch sets the optional parameter which makes the operation
26093// fail if the object's ETag matches the given value. This is useful for
26094// getting updates only after the object has changed since the last
26095// request. Use googleapi.IsNotModified to check whether the response
26096// error from Do is the result of In-None-Match.
26097func (c *OrganizationsEnvironmentsGetIamPolicyCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsGetIamPolicyCall {
26098	c.ifNoneMatch_ = entityTag
26099	return c
26100}
26101
26102// Context sets the context to be used in this call's Do method. Any
26103// pending HTTP request will be aborted if the provided context is
26104// canceled.
26105func (c *OrganizationsEnvironmentsGetIamPolicyCall) Context(ctx context.Context) *OrganizationsEnvironmentsGetIamPolicyCall {
26106	c.ctx_ = ctx
26107	return c
26108}
26109
26110// Header returns an http.Header that can be modified by the caller to
26111// add HTTP headers to the request.
26112func (c *OrganizationsEnvironmentsGetIamPolicyCall) Header() http.Header {
26113	if c.header_ == nil {
26114		c.header_ = make(http.Header)
26115	}
26116	return c.header_
26117}
26118
26119func (c *OrganizationsEnvironmentsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
26120	reqHeaders := make(http.Header)
26121	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
26122	for k, v := range c.header_ {
26123		reqHeaders[k] = v
26124	}
26125	reqHeaders.Set("User-Agent", c.s.userAgent())
26126	if c.ifNoneMatch_ != "" {
26127		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
26128	}
26129	var body io.Reader = nil
26130	c.urlParams_.Set("alt", alt)
26131	c.urlParams_.Set("prettyPrint", "false")
26132	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
26133	urls += "?" + c.urlParams_.Encode()
26134	req, err := http.NewRequest("GET", urls, body)
26135	if err != nil {
26136		return nil, err
26137	}
26138	req.Header = reqHeaders
26139	googleapi.Expand(req.URL, map[string]string{
26140		"resource": c.resource,
26141	})
26142	return gensupport.SendRequest(c.ctx_, c.s.client, req)
26143}
26144
26145// Do executes the "apigee.organizations.environments.getIamPolicy" call.
26146// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any
26147// non-2xx status code is an error. Response headers are in either
26148// *GoogleIamV1Policy.ServerResponse.Header or (if a response was
26149// returned at all) in error.(*googleapi.Error).Header. Use
26150// googleapi.IsNotModified to check whether the returned error was
26151// because http.StatusNotModified was returned.
26152func (c *OrganizationsEnvironmentsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
26153	gensupport.SetOptions(c.urlParams_, opts...)
26154	res, err := c.doRequest("json")
26155	if res != nil && res.StatusCode == http.StatusNotModified {
26156		if res.Body != nil {
26157			res.Body.Close()
26158		}
26159		return nil, &googleapi.Error{
26160			Code:   res.StatusCode,
26161			Header: res.Header,
26162		}
26163	}
26164	if err != nil {
26165		return nil, err
26166	}
26167	defer googleapi.CloseBody(res)
26168	if err := googleapi.CheckResponse(res); err != nil {
26169		return nil, err
26170	}
26171	ret := &GoogleIamV1Policy{
26172		ServerResponse: googleapi.ServerResponse{
26173			Header:         res.Header,
26174			HTTPStatusCode: res.StatusCode,
26175		},
26176	}
26177	target := &ret
26178	if err := gensupport.DecodeResponse(target, res); err != nil {
26179		return nil, err
26180	}
26181	return ret, nil
26182	// {
26183	//   "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.",
26184	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}:getIamPolicy",
26185	//   "httpMethod": "GET",
26186	//   "id": "apigee.organizations.environments.getIamPolicy",
26187	//   "parameterOrder": [
26188	//     "resource"
26189	//   ],
26190	//   "parameters": {
26191	//     "options.requestedPolicyVersion": {
26192	//       "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).",
26193	//       "format": "int32",
26194	//       "location": "query",
26195	//       "type": "integer"
26196	//     },
26197	//     "resource": {
26198	//       "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.",
26199	//       "location": "path",
26200	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
26201	//       "required": true,
26202	//       "type": "string"
26203	//     }
26204	//   },
26205	//   "path": "v1/{+resource}:getIamPolicy",
26206	//   "response": {
26207	//     "$ref": "GoogleIamV1Policy"
26208	//   },
26209	//   "scopes": [
26210	//     "https://www.googleapis.com/auth/cloud-platform"
26211	//   ]
26212	// }
26213
26214}
26215
26216// method id "apigee.organizations.environments.getTraceConfig":
26217
26218type OrganizationsEnvironmentsGetTraceConfigCall struct {
26219	s            *Service
26220	name         string
26221	urlParams_   gensupport.URLParams
26222	ifNoneMatch_ string
26223	ctx_         context.Context
26224	header_      http.Header
26225}
26226
26227// GetTraceConfig: Get distributed trace configuration in an
26228// environment.
26229//
26230// - name: Name of the trace configuration. Use the following structure
26231//   in your request: "organizations/*/environments/*/traceConfig".
26232func (r *OrganizationsEnvironmentsService) GetTraceConfig(name string) *OrganizationsEnvironmentsGetTraceConfigCall {
26233	c := &OrganizationsEnvironmentsGetTraceConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26234	c.name = name
26235	return c
26236}
26237
26238// Fields allows partial responses to be retrieved. See
26239// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
26240// for more information.
26241func (c *OrganizationsEnvironmentsGetTraceConfigCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsGetTraceConfigCall {
26242	c.urlParams_.Set("fields", googleapi.CombineFields(s))
26243	return c
26244}
26245
26246// IfNoneMatch sets the optional parameter which makes the operation
26247// fail if the object's ETag matches the given value. This is useful for
26248// getting updates only after the object has changed since the last
26249// request. Use googleapi.IsNotModified to check whether the response
26250// error from Do is the result of In-None-Match.
26251func (c *OrganizationsEnvironmentsGetTraceConfigCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsGetTraceConfigCall {
26252	c.ifNoneMatch_ = entityTag
26253	return c
26254}
26255
26256// Context sets the context to be used in this call's Do method. Any
26257// pending HTTP request will be aborted if the provided context is
26258// canceled.
26259func (c *OrganizationsEnvironmentsGetTraceConfigCall) Context(ctx context.Context) *OrganizationsEnvironmentsGetTraceConfigCall {
26260	c.ctx_ = ctx
26261	return c
26262}
26263
26264// Header returns an http.Header that can be modified by the caller to
26265// add HTTP headers to the request.
26266func (c *OrganizationsEnvironmentsGetTraceConfigCall) Header() http.Header {
26267	if c.header_ == nil {
26268		c.header_ = make(http.Header)
26269	}
26270	return c.header_
26271}
26272
26273func (c *OrganizationsEnvironmentsGetTraceConfigCall) doRequest(alt string) (*http.Response, error) {
26274	reqHeaders := make(http.Header)
26275	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
26276	for k, v := range c.header_ {
26277		reqHeaders[k] = v
26278	}
26279	reqHeaders.Set("User-Agent", c.s.userAgent())
26280	if c.ifNoneMatch_ != "" {
26281		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
26282	}
26283	var body io.Reader = nil
26284	c.urlParams_.Set("alt", alt)
26285	c.urlParams_.Set("prettyPrint", "false")
26286	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
26287	urls += "?" + c.urlParams_.Encode()
26288	req, err := http.NewRequest("GET", urls, body)
26289	if err != nil {
26290		return nil, err
26291	}
26292	req.Header = reqHeaders
26293	googleapi.Expand(req.URL, map[string]string{
26294		"name": c.name,
26295	})
26296	return gensupport.SendRequest(c.ctx_, c.s.client, req)
26297}
26298
26299// Do executes the "apigee.organizations.environments.getTraceConfig" call.
26300// Exactly one of *GoogleCloudApigeeV1TraceConfig or error will be
26301// non-nil. Any non-2xx status code is an error. Response headers are in
26302// either *GoogleCloudApigeeV1TraceConfig.ServerResponse.Header or (if a
26303// response was returned at all) in error.(*googleapi.Error).Header. Use
26304// googleapi.IsNotModified to check whether the returned error was
26305// because http.StatusNotModified was returned.
26306func (c *OrganizationsEnvironmentsGetTraceConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TraceConfig, error) {
26307	gensupport.SetOptions(c.urlParams_, opts...)
26308	res, err := c.doRequest("json")
26309	if res != nil && res.StatusCode == http.StatusNotModified {
26310		if res.Body != nil {
26311			res.Body.Close()
26312		}
26313		return nil, &googleapi.Error{
26314			Code:   res.StatusCode,
26315			Header: res.Header,
26316		}
26317	}
26318	if err != nil {
26319		return nil, err
26320	}
26321	defer googleapi.CloseBody(res)
26322	if err := googleapi.CheckResponse(res); err != nil {
26323		return nil, err
26324	}
26325	ret := &GoogleCloudApigeeV1TraceConfig{
26326		ServerResponse: googleapi.ServerResponse{
26327			Header:         res.Header,
26328			HTTPStatusCode: res.StatusCode,
26329		},
26330	}
26331	target := &ret
26332	if err := gensupport.DecodeResponse(target, res); err != nil {
26333		return nil, err
26334	}
26335	return ret, nil
26336	// {
26337	//   "description": "Get distributed trace configuration in an environment.",
26338	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/traceConfig",
26339	//   "httpMethod": "GET",
26340	//   "id": "apigee.organizations.environments.getTraceConfig",
26341	//   "parameterOrder": [
26342	//     "name"
26343	//   ],
26344	//   "parameters": {
26345	//     "name": {
26346	//       "description": "Required. Name of the trace configuration. Use the following structure in your request: \"organizations/*/environments/*/traceConfig\".",
26347	//       "location": "path",
26348	//       "pattern": "^organizations/[^/]+/environments/[^/]+/traceConfig$",
26349	//       "required": true,
26350	//       "type": "string"
26351	//     }
26352	//   },
26353	//   "path": "v1/{+name}",
26354	//   "response": {
26355	//     "$ref": "GoogleCloudApigeeV1TraceConfig"
26356	//   },
26357	//   "scopes": [
26358	//     "https://www.googleapis.com/auth/cloud-platform"
26359	//   ]
26360	// }
26361
26362}
26363
26364// method id "apigee.organizations.environments.setIamPolicy":
26365
26366type OrganizationsEnvironmentsSetIamPolicyCall struct {
26367	s                              *Service
26368	resource                       string
26369	googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest
26370	urlParams_                     gensupport.URLParams
26371	ctx_                           context.Context
26372	header_                        http.Header
26373}
26374
26375// SetIamPolicy: Sets the IAM policy on an environment, if the policy
26376// already exists it will be replaced. For more information, see Manage
26377// users, roles, and permissions using the API
26378// (https://cloud.google.com/apigee/docs/api-platform/system-administration/manage-users-roles).
26379// You must have the `apigee.environments.setIamPolicy` permission to
26380// call this API.
26381//
26382// - resource: REQUIRED: The resource for which the policy is being
26383//   specified. See the operation documentation for the appropriate
26384//   value for this field.
26385func (r *OrganizationsEnvironmentsService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *OrganizationsEnvironmentsSetIamPolicyCall {
26386	c := &OrganizationsEnvironmentsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26387	c.resource = resource
26388	c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest
26389	return c
26390}
26391
26392// Fields allows partial responses to be retrieved. See
26393// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
26394// for more information.
26395func (c *OrganizationsEnvironmentsSetIamPolicyCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSetIamPolicyCall {
26396	c.urlParams_.Set("fields", googleapi.CombineFields(s))
26397	return c
26398}
26399
26400// Context sets the context to be used in this call's Do method. Any
26401// pending HTTP request will be aborted if the provided context is
26402// canceled.
26403func (c *OrganizationsEnvironmentsSetIamPolicyCall) Context(ctx context.Context) *OrganizationsEnvironmentsSetIamPolicyCall {
26404	c.ctx_ = ctx
26405	return c
26406}
26407
26408// Header returns an http.Header that can be modified by the caller to
26409// add HTTP headers to the request.
26410func (c *OrganizationsEnvironmentsSetIamPolicyCall) Header() http.Header {
26411	if c.header_ == nil {
26412		c.header_ = make(http.Header)
26413	}
26414	return c.header_
26415}
26416
26417func (c *OrganizationsEnvironmentsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
26418	reqHeaders := make(http.Header)
26419	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
26420	for k, v := range c.header_ {
26421		reqHeaders[k] = v
26422	}
26423	reqHeaders.Set("User-Agent", c.s.userAgent())
26424	var body io.Reader = nil
26425	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest)
26426	if err != nil {
26427		return nil, err
26428	}
26429	reqHeaders.Set("Content-Type", "application/json")
26430	c.urlParams_.Set("alt", alt)
26431	c.urlParams_.Set("prettyPrint", "false")
26432	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
26433	urls += "?" + c.urlParams_.Encode()
26434	req, err := http.NewRequest("POST", urls, body)
26435	if err != nil {
26436		return nil, err
26437	}
26438	req.Header = reqHeaders
26439	googleapi.Expand(req.URL, map[string]string{
26440		"resource": c.resource,
26441	})
26442	return gensupport.SendRequest(c.ctx_, c.s.client, req)
26443}
26444
26445// Do executes the "apigee.organizations.environments.setIamPolicy" call.
26446// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any
26447// non-2xx status code is an error. Response headers are in either
26448// *GoogleIamV1Policy.ServerResponse.Header or (if a response was
26449// returned at all) in error.(*googleapi.Error).Header. Use
26450// googleapi.IsNotModified to check whether the returned error was
26451// because http.StatusNotModified was returned.
26452func (c *OrganizationsEnvironmentsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
26453	gensupport.SetOptions(c.urlParams_, opts...)
26454	res, err := c.doRequest("json")
26455	if res != nil && res.StatusCode == http.StatusNotModified {
26456		if res.Body != nil {
26457			res.Body.Close()
26458		}
26459		return nil, &googleapi.Error{
26460			Code:   res.StatusCode,
26461			Header: res.Header,
26462		}
26463	}
26464	if err != nil {
26465		return nil, err
26466	}
26467	defer googleapi.CloseBody(res)
26468	if err := googleapi.CheckResponse(res); err != nil {
26469		return nil, err
26470	}
26471	ret := &GoogleIamV1Policy{
26472		ServerResponse: googleapi.ServerResponse{
26473			Header:         res.Header,
26474			HTTPStatusCode: res.StatusCode,
26475		},
26476	}
26477	target := &ret
26478	if err := gensupport.DecodeResponse(target, res); err != nil {
26479		return nil, err
26480	}
26481	return ret, nil
26482	// {
26483	//   "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.",
26484	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}:setIamPolicy",
26485	//   "httpMethod": "POST",
26486	//   "id": "apigee.organizations.environments.setIamPolicy",
26487	//   "parameterOrder": [
26488	//     "resource"
26489	//   ],
26490	//   "parameters": {
26491	//     "resource": {
26492	//       "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.",
26493	//       "location": "path",
26494	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
26495	//       "required": true,
26496	//       "type": "string"
26497	//     }
26498	//   },
26499	//   "path": "v1/{+resource}:setIamPolicy",
26500	//   "request": {
26501	//     "$ref": "GoogleIamV1SetIamPolicyRequest"
26502	//   },
26503	//   "response": {
26504	//     "$ref": "GoogleIamV1Policy"
26505	//   },
26506	//   "scopes": [
26507	//     "https://www.googleapis.com/auth/cloud-platform"
26508	//   ]
26509	// }
26510
26511}
26512
26513// method id "apigee.organizations.environments.subscribe":
26514
26515type OrganizationsEnvironmentsSubscribeCall struct {
26516	s          *Service
26517	parent     string
26518	urlParams_ gensupport.URLParams
26519	ctx_       context.Context
26520	header_    http.Header
26521}
26522
26523// Subscribe: Creates a subscription for the environment's Pub/Sub
26524// topic. The server will assign a random name for this subscription.
26525// The "name" and "push_config" must *not* be specified.
26526//
26527// - parent: Name of the environment. Use the following structure in
26528//   your request: `organizations/{org}/environments/{env}`.
26529func (r *OrganizationsEnvironmentsService) Subscribe(parent string) *OrganizationsEnvironmentsSubscribeCall {
26530	c := &OrganizationsEnvironmentsSubscribeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26531	c.parent = parent
26532	return c
26533}
26534
26535// Fields allows partial responses to be retrieved. See
26536// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
26537// for more information.
26538func (c *OrganizationsEnvironmentsSubscribeCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSubscribeCall {
26539	c.urlParams_.Set("fields", googleapi.CombineFields(s))
26540	return c
26541}
26542
26543// Context sets the context to be used in this call's Do method. Any
26544// pending HTTP request will be aborted if the provided context is
26545// canceled.
26546func (c *OrganizationsEnvironmentsSubscribeCall) Context(ctx context.Context) *OrganizationsEnvironmentsSubscribeCall {
26547	c.ctx_ = ctx
26548	return c
26549}
26550
26551// Header returns an http.Header that can be modified by the caller to
26552// add HTTP headers to the request.
26553func (c *OrganizationsEnvironmentsSubscribeCall) Header() http.Header {
26554	if c.header_ == nil {
26555		c.header_ = make(http.Header)
26556	}
26557	return c.header_
26558}
26559
26560func (c *OrganizationsEnvironmentsSubscribeCall) doRequest(alt string) (*http.Response, error) {
26561	reqHeaders := make(http.Header)
26562	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
26563	for k, v := range c.header_ {
26564		reqHeaders[k] = v
26565	}
26566	reqHeaders.Set("User-Agent", c.s.userAgent())
26567	var body io.Reader = nil
26568	c.urlParams_.Set("alt", alt)
26569	c.urlParams_.Set("prettyPrint", "false")
26570	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}:subscribe")
26571	urls += "?" + c.urlParams_.Encode()
26572	req, err := http.NewRequest("POST", urls, body)
26573	if err != nil {
26574		return nil, err
26575	}
26576	req.Header = reqHeaders
26577	googleapi.Expand(req.URL, map[string]string{
26578		"parent": c.parent,
26579	})
26580	return gensupport.SendRequest(c.ctx_, c.s.client, req)
26581}
26582
26583// Do executes the "apigee.organizations.environments.subscribe" call.
26584// Exactly one of *GoogleCloudApigeeV1Subscription or error will be
26585// non-nil. Any non-2xx status code is an error. Response headers are in
26586// either *GoogleCloudApigeeV1Subscription.ServerResponse.Header or (if
26587// a response was returned at all) in error.(*googleapi.Error).Header.
26588// Use googleapi.IsNotModified to check whether the returned error was
26589// because http.StatusNotModified was returned.
26590func (c *OrganizationsEnvironmentsSubscribeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Subscription, error) {
26591	gensupport.SetOptions(c.urlParams_, opts...)
26592	res, err := c.doRequest("json")
26593	if res != nil && res.StatusCode == http.StatusNotModified {
26594		if res.Body != nil {
26595			res.Body.Close()
26596		}
26597		return nil, &googleapi.Error{
26598			Code:   res.StatusCode,
26599			Header: res.Header,
26600		}
26601	}
26602	if err != nil {
26603		return nil, err
26604	}
26605	defer googleapi.CloseBody(res)
26606	if err := googleapi.CheckResponse(res); err != nil {
26607		return nil, err
26608	}
26609	ret := &GoogleCloudApigeeV1Subscription{
26610		ServerResponse: googleapi.ServerResponse{
26611			Header:         res.Header,
26612			HTTPStatusCode: res.StatusCode,
26613		},
26614	}
26615	target := &ret
26616	if err := gensupport.DecodeResponse(target, res); err != nil {
26617		return nil, err
26618	}
26619	return ret, nil
26620	// {
26621	//   "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.",
26622	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}:subscribe",
26623	//   "httpMethod": "POST",
26624	//   "id": "apigee.organizations.environments.subscribe",
26625	//   "parameterOrder": [
26626	//     "parent"
26627	//   ],
26628	//   "parameters": {
26629	//     "parent": {
26630	//       "description": "Required. Name of the environment. Use the following structure in your request: `organizations/{org}/environments/{env}`",
26631	//       "location": "path",
26632	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
26633	//       "required": true,
26634	//       "type": "string"
26635	//     }
26636	//   },
26637	//   "path": "v1/{+parent}:subscribe",
26638	//   "response": {
26639	//     "$ref": "GoogleCloudApigeeV1Subscription"
26640	//   },
26641	//   "scopes": [
26642	//     "https://www.googleapis.com/auth/cloud-platform"
26643	//   ]
26644	// }
26645
26646}
26647
26648// method id "apigee.organizations.environments.testIamPermissions":
26649
26650type OrganizationsEnvironmentsTestIamPermissionsCall struct {
26651	s                                    *Service
26652	resource                             string
26653	googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest
26654	urlParams_                           gensupport.URLParams
26655	ctx_                                 context.Context
26656	header_                              http.Header
26657}
26658
26659// TestIamPermissions: Tests the permissions of a user on an
26660// environment, and returns a subset of permissions that the user has on
26661// the environment. If the environment does not exist, an empty
26662// permission set is returned (a NOT_FOUND error is not returned).
26663//
26664// - resource: REQUIRED: The resource for which the policy detail is
26665//   being requested. See the operation documentation for the
26666//   appropriate value for this field.
26667func (r *OrganizationsEnvironmentsService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *OrganizationsEnvironmentsTestIamPermissionsCall {
26668	c := &OrganizationsEnvironmentsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26669	c.resource = resource
26670	c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest
26671	return c
26672}
26673
26674// Fields allows partial responses to be retrieved. See
26675// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
26676// for more information.
26677func (c *OrganizationsEnvironmentsTestIamPermissionsCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTestIamPermissionsCall {
26678	c.urlParams_.Set("fields", googleapi.CombineFields(s))
26679	return c
26680}
26681
26682// Context sets the context to be used in this call's Do method. Any
26683// pending HTTP request will be aborted if the provided context is
26684// canceled.
26685func (c *OrganizationsEnvironmentsTestIamPermissionsCall) Context(ctx context.Context) *OrganizationsEnvironmentsTestIamPermissionsCall {
26686	c.ctx_ = ctx
26687	return c
26688}
26689
26690// Header returns an http.Header that can be modified by the caller to
26691// add HTTP headers to the request.
26692func (c *OrganizationsEnvironmentsTestIamPermissionsCall) Header() http.Header {
26693	if c.header_ == nil {
26694		c.header_ = make(http.Header)
26695	}
26696	return c.header_
26697}
26698
26699func (c *OrganizationsEnvironmentsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
26700	reqHeaders := make(http.Header)
26701	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
26702	for k, v := range c.header_ {
26703		reqHeaders[k] = v
26704	}
26705	reqHeaders.Set("User-Agent", c.s.userAgent())
26706	var body io.Reader = nil
26707	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest)
26708	if err != nil {
26709		return nil, err
26710	}
26711	reqHeaders.Set("Content-Type", "application/json")
26712	c.urlParams_.Set("alt", alt)
26713	c.urlParams_.Set("prettyPrint", "false")
26714	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
26715	urls += "?" + c.urlParams_.Encode()
26716	req, err := http.NewRequest("POST", urls, body)
26717	if err != nil {
26718		return nil, err
26719	}
26720	req.Header = reqHeaders
26721	googleapi.Expand(req.URL, map[string]string{
26722		"resource": c.resource,
26723	})
26724	return gensupport.SendRequest(c.ctx_, c.s.client, req)
26725}
26726
26727// Do executes the "apigee.organizations.environments.testIamPermissions" call.
26728// Exactly one of *GoogleIamV1TestIamPermissionsResponse or error will
26729// be non-nil. Any non-2xx status code is an error. Response headers are
26730// in either
26731// *GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if a
26732// response was returned at all) in error.(*googleapi.Error).Header. Use
26733// googleapi.IsNotModified to check whether the returned error was
26734// because http.StatusNotModified was returned.
26735func (c *OrganizationsEnvironmentsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) {
26736	gensupport.SetOptions(c.urlParams_, opts...)
26737	res, err := c.doRequest("json")
26738	if res != nil && res.StatusCode == http.StatusNotModified {
26739		if res.Body != nil {
26740			res.Body.Close()
26741		}
26742		return nil, &googleapi.Error{
26743			Code:   res.StatusCode,
26744			Header: res.Header,
26745		}
26746	}
26747	if err != nil {
26748		return nil, err
26749	}
26750	defer googleapi.CloseBody(res)
26751	if err := googleapi.CheckResponse(res); err != nil {
26752		return nil, err
26753	}
26754	ret := &GoogleIamV1TestIamPermissionsResponse{
26755		ServerResponse: googleapi.ServerResponse{
26756			Header:         res.Header,
26757			HTTPStatusCode: res.StatusCode,
26758		},
26759	}
26760	target := &ret
26761	if err := gensupport.DecodeResponse(target, res); err != nil {
26762		return nil, err
26763	}
26764	return ret, nil
26765	// {
26766	//   "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).",
26767	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}:testIamPermissions",
26768	//   "httpMethod": "POST",
26769	//   "id": "apigee.organizations.environments.testIamPermissions",
26770	//   "parameterOrder": [
26771	//     "resource"
26772	//   ],
26773	//   "parameters": {
26774	//     "resource": {
26775	//       "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.",
26776	//       "location": "path",
26777	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
26778	//       "required": true,
26779	//       "type": "string"
26780	//     }
26781	//   },
26782	//   "path": "v1/{+resource}:testIamPermissions",
26783	//   "request": {
26784	//     "$ref": "GoogleIamV1TestIamPermissionsRequest"
26785	//   },
26786	//   "response": {
26787	//     "$ref": "GoogleIamV1TestIamPermissionsResponse"
26788	//   },
26789	//   "scopes": [
26790	//     "https://www.googleapis.com/auth/cloud-platform"
26791	//   ]
26792	// }
26793
26794}
26795
26796// method id "apigee.organizations.environments.unsubscribe":
26797
26798type OrganizationsEnvironmentsUnsubscribeCall struct {
26799	s                               *Service
26800	parent                          string
26801	googlecloudapigeev1subscription *GoogleCloudApigeeV1Subscription
26802	urlParams_                      gensupport.URLParams
26803	ctx_                            context.Context
26804	header_                         http.Header
26805}
26806
26807// Unsubscribe: Deletes a subscription for the environment's Pub/Sub
26808// topic.
26809//
26810// - parent: Name of the environment. Use the following structure in
26811//   your request: `organizations/{org}/environments/{env}`.
26812func (r *OrganizationsEnvironmentsService) Unsubscribe(parent string, googlecloudapigeev1subscription *GoogleCloudApigeeV1Subscription) *OrganizationsEnvironmentsUnsubscribeCall {
26813	c := &OrganizationsEnvironmentsUnsubscribeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26814	c.parent = parent
26815	c.googlecloudapigeev1subscription = googlecloudapigeev1subscription
26816	return c
26817}
26818
26819// Fields allows partial responses to be retrieved. See
26820// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
26821// for more information.
26822func (c *OrganizationsEnvironmentsUnsubscribeCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsUnsubscribeCall {
26823	c.urlParams_.Set("fields", googleapi.CombineFields(s))
26824	return c
26825}
26826
26827// Context sets the context to be used in this call's Do method. Any
26828// pending HTTP request will be aborted if the provided context is
26829// canceled.
26830func (c *OrganizationsEnvironmentsUnsubscribeCall) Context(ctx context.Context) *OrganizationsEnvironmentsUnsubscribeCall {
26831	c.ctx_ = ctx
26832	return c
26833}
26834
26835// Header returns an http.Header that can be modified by the caller to
26836// add HTTP headers to the request.
26837func (c *OrganizationsEnvironmentsUnsubscribeCall) Header() http.Header {
26838	if c.header_ == nil {
26839		c.header_ = make(http.Header)
26840	}
26841	return c.header_
26842}
26843
26844func (c *OrganizationsEnvironmentsUnsubscribeCall) doRequest(alt string) (*http.Response, error) {
26845	reqHeaders := make(http.Header)
26846	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
26847	for k, v := range c.header_ {
26848		reqHeaders[k] = v
26849	}
26850	reqHeaders.Set("User-Agent", c.s.userAgent())
26851	var body io.Reader = nil
26852	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1subscription)
26853	if err != nil {
26854		return nil, err
26855	}
26856	reqHeaders.Set("Content-Type", "application/json")
26857	c.urlParams_.Set("alt", alt)
26858	c.urlParams_.Set("prettyPrint", "false")
26859	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}:unsubscribe")
26860	urls += "?" + c.urlParams_.Encode()
26861	req, err := http.NewRequest("POST", urls, body)
26862	if err != nil {
26863		return nil, err
26864	}
26865	req.Header = reqHeaders
26866	googleapi.Expand(req.URL, map[string]string{
26867		"parent": c.parent,
26868	})
26869	return gensupport.SendRequest(c.ctx_, c.s.client, req)
26870}
26871
26872// Do executes the "apigee.organizations.environments.unsubscribe" call.
26873// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
26874// non-2xx status code is an error. Response headers are in either
26875// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
26876// returned at all) in error.(*googleapi.Error).Header. Use
26877// googleapi.IsNotModified to check whether the returned error was
26878// because http.StatusNotModified was returned.
26879func (c *OrganizationsEnvironmentsUnsubscribeCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
26880	gensupport.SetOptions(c.urlParams_, opts...)
26881	res, err := c.doRequest("json")
26882	if res != nil && res.StatusCode == http.StatusNotModified {
26883		if res.Body != nil {
26884			res.Body.Close()
26885		}
26886		return nil, &googleapi.Error{
26887			Code:   res.StatusCode,
26888			Header: res.Header,
26889		}
26890	}
26891	if err != nil {
26892		return nil, err
26893	}
26894	defer googleapi.CloseBody(res)
26895	if err := googleapi.CheckResponse(res); err != nil {
26896		return nil, err
26897	}
26898	ret := &GoogleProtobufEmpty{
26899		ServerResponse: googleapi.ServerResponse{
26900			Header:         res.Header,
26901			HTTPStatusCode: res.StatusCode,
26902		},
26903	}
26904	target := &ret
26905	if err := gensupport.DecodeResponse(target, res); err != nil {
26906		return nil, err
26907	}
26908	return ret, nil
26909	// {
26910	//   "description": "Deletes a subscription for the environment's Pub/Sub topic.",
26911	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}:unsubscribe",
26912	//   "httpMethod": "POST",
26913	//   "id": "apigee.organizations.environments.unsubscribe",
26914	//   "parameterOrder": [
26915	//     "parent"
26916	//   ],
26917	//   "parameters": {
26918	//     "parent": {
26919	//       "description": "Required. Name of the environment. Use the following structure in your request: `organizations/{org}/environments/{env}`",
26920	//       "location": "path",
26921	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
26922	//       "required": true,
26923	//       "type": "string"
26924	//     }
26925	//   },
26926	//   "path": "v1/{+parent}:unsubscribe",
26927	//   "request": {
26928	//     "$ref": "GoogleCloudApigeeV1Subscription"
26929	//   },
26930	//   "response": {
26931	//     "$ref": "GoogleProtobufEmpty"
26932	//   },
26933	//   "scopes": [
26934	//     "https://www.googleapis.com/auth/cloud-platform"
26935	//   ]
26936	// }
26937
26938}
26939
26940// method id "apigee.organizations.environments.update":
26941
26942type OrganizationsEnvironmentsUpdateCall struct {
26943	s                              *Service
26944	name                           string
26945	googlecloudapigeev1environment *GoogleCloudApigeeV1Environment
26946	urlParams_                     gensupport.URLParams
26947	ctx_                           context.Context
26948	header_                        http.Header
26949}
26950
26951// Update: Updates an existing environment. When updating properties,
26952// you must pass all existing properties to the API, even if they are
26953// not being changed. If you omit properties from the payload, the
26954// properties are removed. To get the current list of properties for the
26955// environment, use the Get Environment API (get).
26956//
26957// - name: Name of the environment. Use the following structure in your
26958//   request: `organizations/{org}/environments/{env}`.
26959func (r *OrganizationsEnvironmentsService) Update(name string, googlecloudapigeev1environment *GoogleCloudApigeeV1Environment) *OrganizationsEnvironmentsUpdateCall {
26960	c := &OrganizationsEnvironmentsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26961	c.name = name
26962	c.googlecloudapigeev1environment = googlecloudapigeev1environment
26963	return c
26964}
26965
26966// Fields allows partial responses to be retrieved. See
26967// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
26968// for more information.
26969func (c *OrganizationsEnvironmentsUpdateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsUpdateCall {
26970	c.urlParams_.Set("fields", googleapi.CombineFields(s))
26971	return c
26972}
26973
26974// Context sets the context to be used in this call's Do method. Any
26975// pending HTTP request will be aborted if the provided context is
26976// canceled.
26977func (c *OrganizationsEnvironmentsUpdateCall) Context(ctx context.Context) *OrganizationsEnvironmentsUpdateCall {
26978	c.ctx_ = ctx
26979	return c
26980}
26981
26982// Header returns an http.Header that can be modified by the caller to
26983// add HTTP headers to the request.
26984func (c *OrganizationsEnvironmentsUpdateCall) Header() http.Header {
26985	if c.header_ == nil {
26986		c.header_ = make(http.Header)
26987	}
26988	return c.header_
26989}
26990
26991func (c *OrganizationsEnvironmentsUpdateCall) doRequest(alt string) (*http.Response, error) {
26992	reqHeaders := make(http.Header)
26993	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
26994	for k, v := range c.header_ {
26995		reqHeaders[k] = v
26996	}
26997	reqHeaders.Set("User-Agent", c.s.userAgent())
26998	var body io.Reader = nil
26999	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1environment)
27000	if err != nil {
27001		return nil, err
27002	}
27003	reqHeaders.Set("Content-Type", "application/json")
27004	c.urlParams_.Set("alt", alt)
27005	c.urlParams_.Set("prettyPrint", "false")
27006	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
27007	urls += "?" + c.urlParams_.Encode()
27008	req, err := http.NewRequest("PUT", urls, body)
27009	if err != nil {
27010		return nil, err
27011	}
27012	req.Header = reqHeaders
27013	googleapi.Expand(req.URL, map[string]string{
27014		"name": c.name,
27015	})
27016	return gensupport.SendRequest(c.ctx_, c.s.client, req)
27017}
27018
27019// Do executes the "apigee.organizations.environments.update" call.
27020// Exactly one of *GoogleCloudApigeeV1Environment or error will be
27021// non-nil. Any non-2xx status code is an error. Response headers are in
27022// either *GoogleCloudApigeeV1Environment.ServerResponse.Header or (if a
27023// response was returned at all) in error.(*googleapi.Error).Header. Use
27024// googleapi.IsNotModified to check whether the returned error was
27025// because http.StatusNotModified was returned.
27026func (c *OrganizationsEnvironmentsUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Environment, error) {
27027	gensupport.SetOptions(c.urlParams_, opts...)
27028	res, err := c.doRequest("json")
27029	if res != nil && res.StatusCode == http.StatusNotModified {
27030		if res.Body != nil {
27031			res.Body.Close()
27032		}
27033		return nil, &googleapi.Error{
27034			Code:   res.StatusCode,
27035			Header: res.Header,
27036		}
27037	}
27038	if err != nil {
27039		return nil, err
27040	}
27041	defer googleapi.CloseBody(res)
27042	if err := googleapi.CheckResponse(res); err != nil {
27043		return nil, err
27044	}
27045	ret := &GoogleCloudApigeeV1Environment{
27046		ServerResponse: googleapi.ServerResponse{
27047			Header:         res.Header,
27048			HTTPStatusCode: res.StatusCode,
27049		},
27050	}
27051	target := &ret
27052	if err := gensupport.DecodeResponse(target, res); err != nil {
27053		return nil, err
27054	}
27055	return ret, nil
27056	// {
27057	//   "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).",
27058	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}",
27059	//   "httpMethod": "PUT",
27060	//   "id": "apigee.organizations.environments.update",
27061	//   "parameterOrder": [
27062	//     "name"
27063	//   ],
27064	//   "parameters": {
27065	//     "name": {
27066	//       "description": "Required. Name of the environment. Use the following structure in your request: `organizations/{org}/environments/{env}`",
27067	//       "location": "path",
27068	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
27069	//       "required": true,
27070	//       "type": "string"
27071	//     }
27072	//   },
27073	//   "path": "v1/{+name}",
27074	//   "request": {
27075	//     "$ref": "GoogleCloudApigeeV1Environment"
27076	//   },
27077	//   "response": {
27078	//     "$ref": "GoogleCloudApigeeV1Environment"
27079	//   },
27080	//   "scopes": [
27081	//     "https://www.googleapis.com/auth/cloud-platform"
27082	//   ]
27083	// }
27084
27085}
27086
27087// method id "apigee.organizations.environments.updateDebugmask":
27088
27089type OrganizationsEnvironmentsUpdateDebugmaskCall struct {
27090	s                            *Service
27091	name                         string
27092	googlecloudapigeev1debugmask *GoogleCloudApigeeV1DebugMask
27093	urlParams_                   gensupport.URLParams
27094	ctx_                         context.Context
27095	header_                      http.Header
27096}
27097
27098// UpdateDebugmask: Updates the debug mask singleton resource for an
27099// environment.
27100//
27101// - name: Name of the debug mask.
27102func (r *OrganizationsEnvironmentsService) UpdateDebugmask(name string, googlecloudapigeev1debugmask *GoogleCloudApigeeV1DebugMask) *OrganizationsEnvironmentsUpdateDebugmaskCall {
27103	c := &OrganizationsEnvironmentsUpdateDebugmaskCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27104	c.name = name
27105	c.googlecloudapigeev1debugmask = googlecloudapigeev1debugmask
27106	return c
27107}
27108
27109// ReplaceRepeatedFields sets the optional parameter
27110// "replaceRepeatedFields": Boolean flag that specifies whether to
27111// replace existing values in the debug mask when doing an update. Set
27112// to true to replace existing values. The default behavior is to append
27113// the values (false).
27114func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) ReplaceRepeatedFields(replaceRepeatedFields bool) *OrganizationsEnvironmentsUpdateDebugmaskCall {
27115	c.urlParams_.Set("replaceRepeatedFields", fmt.Sprint(replaceRepeatedFields))
27116	return c
27117}
27118
27119// UpdateMask sets the optional parameter "updateMask": Field debug mask
27120// to support partial updates.
27121func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) UpdateMask(updateMask string) *OrganizationsEnvironmentsUpdateDebugmaskCall {
27122	c.urlParams_.Set("updateMask", updateMask)
27123	return c
27124}
27125
27126// Fields allows partial responses to be retrieved. See
27127// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
27128// for more information.
27129func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsUpdateDebugmaskCall {
27130	c.urlParams_.Set("fields", googleapi.CombineFields(s))
27131	return c
27132}
27133
27134// Context sets the context to be used in this call's Do method. Any
27135// pending HTTP request will be aborted if the provided context is
27136// canceled.
27137func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) Context(ctx context.Context) *OrganizationsEnvironmentsUpdateDebugmaskCall {
27138	c.ctx_ = ctx
27139	return c
27140}
27141
27142// Header returns an http.Header that can be modified by the caller to
27143// add HTTP headers to the request.
27144func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) Header() http.Header {
27145	if c.header_ == nil {
27146		c.header_ = make(http.Header)
27147	}
27148	return c.header_
27149}
27150
27151func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) doRequest(alt string) (*http.Response, error) {
27152	reqHeaders := make(http.Header)
27153	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
27154	for k, v := range c.header_ {
27155		reqHeaders[k] = v
27156	}
27157	reqHeaders.Set("User-Agent", c.s.userAgent())
27158	var body io.Reader = nil
27159	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1debugmask)
27160	if err != nil {
27161		return nil, err
27162	}
27163	reqHeaders.Set("Content-Type", "application/json")
27164	c.urlParams_.Set("alt", alt)
27165	c.urlParams_.Set("prettyPrint", "false")
27166	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
27167	urls += "?" + c.urlParams_.Encode()
27168	req, err := http.NewRequest("PATCH", urls, body)
27169	if err != nil {
27170		return nil, err
27171	}
27172	req.Header = reqHeaders
27173	googleapi.Expand(req.URL, map[string]string{
27174		"name": c.name,
27175	})
27176	return gensupport.SendRequest(c.ctx_, c.s.client, req)
27177}
27178
27179// Do executes the "apigee.organizations.environments.updateDebugmask" call.
27180// Exactly one of *GoogleCloudApigeeV1DebugMask or error will be
27181// non-nil. Any non-2xx status code is an error. Response headers are in
27182// either *GoogleCloudApigeeV1DebugMask.ServerResponse.Header or (if a
27183// response was returned at all) in error.(*googleapi.Error).Header. Use
27184// googleapi.IsNotModified to check whether the returned error was
27185// because http.StatusNotModified was returned.
27186func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DebugMask, error) {
27187	gensupport.SetOptions(c.urlParams_, opts...)
27188	res, err := c.doRequest("json")
27189	if res != nil && res.StatusCode == http.StatusNotModified {
27190		if res.Body != nil {
27191			res.Body.Close()
27192		}
27193		return nil, &googleapi.Error{
27194			Code:   res.StatusCode,
27195			Header: res.Header,
27196		}
27197	}
27198	if err != nil {
27199		return nil, err
27200	}
27201	defer googleapi.CloseBody(res)
27202	if err := googleapi.CheckResponse(res); err != nil {
27203		return nil, err
27204	}
27205	ret := &GoogleCloudApigeeV1DebugMask{
27206		ServerResponse: googleapi.ServerResponse{
27207			Header:         res.Header,
27208			HTTPStatusCode: res.StatusCode,
27209		},
27210	}
27211	target := &ret
27212	if err := gensupport.DecodeResponse(target, res); err != nil {
27213		return nil, err
27214	}
27215	return ret, nil
27216	// {
27217	//   "description": "Updates the debug mask singleton resource for an environment.",
27218	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/debugmask",
27219	//   "httpMethod": "PATCH",
27220	//   "id": "apigee.organizations.environments.updateDebugmask",
27221	//   "parameterOrder": [
27222	//     "name"
27223	//   ],
27224	//   "parameters": {
27225	//     "name": {
27226	//       "description": "Name of the debug mask.",
27227	//       "location": "path",
27228	//       "pattern": "^organizations/[^/]+/environments/[^/]+/debugmask$",
27229	//       "required": true,
27230	//       "type": "string"
27231	//     },
27232	//     "replaceRepeatedFields": {
27233	//       "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).",
27234	//       "location": "query",
27235	//       "type": "boolean"
27236	//     },
27237	//     "updateMask": {
27238	//       "description": "Field debug mask to support partial updates.",
27239	//       "format": "google-fieldmask",
27240	//       "location": "query",
27241	//       "type": "string"
27242	//     }
27243	//   },
27244	//   "path": "v1/{+name}",
27245	//   "request": {
27246	//     "$ref": "GoogleCloudApigeeV1DebugMask"
27247	//   },
27248	//   "response": {
27249	//     "$ref": "GoogleCloudApigeeV1DebugMask"
27250	//   },
27251	//   "scopes": [
27252	//     "https://www.googleapis.com/auth/cloud-platform"
27253	//   ]
27254	// }
27255
27256}
27257
27258// method id "apigee.organizations.environments.updateEnvironment":
27259
27260type OrganizationsEnvironmentsUpdateEnvironmentCall struct {
27261	s                              *Service
27262	name                           string
27263	googlecloudapigeev1environment *GoogleCloudApigeeV1Environment
27264	urlParams_                     gensupport.URLParams
27265	ctx_                           context.Context
27266	header_                        http.Header
27267}
27268
27269// UpdateEnvironment: Updates an existing environment. When updating
27270// properties, you must pass all existing properties to the API, even if
27271// they are not being changed. If you omit properties from the payload,
27272// the properties are removed. To get the current list of properties for
27273// the environment, use the Get Environment API (get).
27274//
27275// - name: Name of the environment. Use the following structure in your
27276//   request: `organizations/{org}/environments/{env}`.
27277func (r *OrganizationsEnvironmentsService) UpdateEnvironment(name string, googlecloudapigeev1environment *GoogleCloudApigeeV1Environment) *OrganizationsEnvironmentsUpdateEnvironmentCall {
27278	c := &OrganizationsEnvironmentsUpdateEnvironmentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27279	c.name = name
27280	c.googlecloudapigeev1environment = googlecloudapigeev1environment
27281	return c
27282}
27283
27284// Fields allows partial responses to be retrieved. See
27285// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
27286// for more information.
27287func (c *OrganizationsEnvironmentsUpdateEnvironmentCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsUpdateEnvironmentCall {
27288	c.urlParams_.Set("fields", googleapi.CombineFields(s))
27289	return c
27290}
27291
27292// Context sets the context to be used in this call's Do method. Any
27293// pending HTTP request will be aborted if the provided context is
27294// canceled.
27295func (c *OrganizationsEnvironmentsUpdateEnvironmentCall) Context(ctx context.Context) *OrganizationsEnvironmentsUpdateEnvironmentCall {
27296	c.ctx_ = ctx
27297	return c
27298}
27299
27300// Header returns an http.Header that can be modified by the caller to
27301// add HTTP headers to the request.
27302func (c *OrganizationsEnvironmentsUpdateEnvironmentCall) Header() http.Header {
27303	if c.header_ == nil {
27304		c.header_ = make(http.Header)
27305	}
27306	return c.header_
27307}
27308
27309func (c *OrganizationsEnvironmentsUpdateEnvironmentCall) doRequest(alt string) (*http.Response, error) {
27310	reqHeaders := make(http.Header)
27311	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
27312	for k, v := range c.header_ {
27313		reqHeaders[k] = v
27314	}
27315	reqHeaders.Set("User-Agent", c.s.userAgent())
27316	var body io.Reader = nil
27317	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1environment)
27318	if err != nil {
27319		return nil, err
27320	}
27321	reqHeaders.Set("Content-Type", "application/json")
27322	c.urlParams_.Set("alt", alt)
27323	c.urlParams_.Set("prettyPrint", "false")
27324	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
27325	urls += "?" + c.urlParams_.Encode()
27326	req, err := http.NewRequest("POST", urls, body)
27327	if err != nil {
27328		return nil, err
27329	}
27330	req.Header = reqHeaders
27331	googleapi.Expand(req.URL, map[string]string{
27332		"name": c.name,
27333	})
27334	return gensupport.SendRequest(c.ctx_, c.s.client, req)
27335}
27336
27337// Do executes the "apigee.organizations.environments.updateEnvironment" call.
27338// Exactly one of *GoogleCloudApigeeV1Environment or error will be
27339// non-nil. Any non-2xx status code is an error. Response headers are in
27340// either *GoogleCloudApigeeV1Environment.ServerResponse.Header or (if a
27341// response was returned at all) in error.(*googleapi.Error).Header. Use
27342// googleapi.IsNotModified to check whether the returned error was
27343// because http.StatusNotModified was returned.
27344func (c *OrganizationsEnvironmentsUpdateEnvironmentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Environment, error) {
27345	gensupport.SetOptions(c.urlParams_, opts...)
27346	res, err := c.doRequest("json")
27347	if res != nil && res.StatusCode == http.StatusNotModified {
27348		if res.Body != nil {
27349			res.Body.Close()
27350		}
27351		return nil, &googleapi.Error{
27352			Code:   res.StatusCode,
27353			Header: res.Header,
27354		}
27355	}
27356	if err != nil {
27357		return nil, err
27358	}
27359	defer googleapi.CloseBody(res)
27360	if err := googleapi.CheckResponse(res); err != nil {
27361		return nil, err
27362	}
27363	ret := &GoogleCloudApigeeV1Environment{
27364		ServerResponse: googleapi.ServerResponse{
27365			Header:         res.Header,
27366			HTTPStatusCode: res.StatusCode,
27367		},
27368	}
27369	target := &ret
27370	if err := gensupport.DecodeResponse(target, res); err != nil {
27371		return nil, err
27372	}
27373	return ret, nil
27374	// {
27375	//   "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).",
27376	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}",
27377	//   "httpMethod": "POST",
27378	//   "id": "apigee.organizations.environments.updateEnvironment",
27379	//   "parameterOrder": [
27380	//     "name"
27381	//   ],
27382	//   "parameters": {
27383	//     "name": {
27384	//       "description": "Required. Name of the environment. Use the following structure in your request: `organizations/{org}/environments/{env}`",
27385	//       "location": "path",
27386	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
27387	//       "required": true,
27388	//       "type": "string"
27389	//     }
27390	//   },
27391	//   "path": "v1/{+name}",
27392	//   "request": {
27393	//     "$ref": "GoogleCloudApigeeV1Environment"
27394	//   },
27395	//   "response": {
27396	//     "$ref": "GoogleCloudApigeeV1Environment"
27397	//   },
27398	//   "scopes": [
27399	//     "https://www.googleapis.com/auth/cloud-platform"
27400	//   ]
27401	// }
27402
27403}
27404
27405// method id "apigee.organizations.environments.updateTraceConfig":
27406
27407type OrganizationsEnvironmentsUpdateTraceConfigCall struct {
27408	s                              *Service
27409	name                           string
27410	googlecloudapigeev1traceconfig *GoogleCloudApigeeV1TraceConfig
27411	urlParams_                     gensupport.URLParams
27412	ctx_                           context.Context
27413	header_                        http.Header
27414}
27415
27416// UpdateTraceConfig: Updates the trace configurations in an
27417// environment. Note that the repeated fields have replace semantics
27418// when included in the field mask and that they will be overwritten by
27419// the value of the fields in the request body.
27420//
27421// - name: Name of the trace configuration. Use the following structure
27422//   in your request: "organizations/*/environments/*/traceConfig".
27423func (r *OrganizationsEnvironmentsService) UpdateTraceConfig(name string, googlecloudapigeev1traceconfig *GoogleCloudApigeeV1TraceConfig) *OrganizationsEnvironmentsUpdateTraceConfigCall {
27424	c := &OrganizationsEnvironmentsUpdateTraceConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27425	c.name = name
27426	c.googlecloudapigeev1traceconfig = googlecloudapigeev1traceconfig
27427	return c
27428}
27429
27430// UpdateMask sets the optional parameter "updateMask": List of fields
27431// to be updated.
27432func (c *OrganizationsEnvironmentsUpdateTraceConfigCall) UpdateMask(updateMask string) *OrganizationsEnvironmentsUpdateTraceConfigCall {
27433	c.urlParams_.Set("updateMask", updateMask)
27434	return c
27435}
27436
27437// Fields allows partial responses to be retrieved. See
27438// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
27439// for more information.
27440func (c *OrganizationsEnvironmentsUpdateTraceConfigCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsUpdateTraceConfigCall {
27441	c.urlParams_.Set("fields", googleapi.CombineFields(s))
27442	return c
27443}
27444
27445// Context sets the context to be used in this call's Do method. Any
27446// pending HTTP request will be aborted if the provided context is
27447// canceled.
27448func (c *OrganizationsEnvironmentsUpdateTraceConfigCall) Context(ctx context.Context) *OrganizationsEnvironmentsUpdateTraceConfigCall {
27449	c.ctx_ = ctx
27450	return c
27451}
27452
27453// Header returns an http.Header that can be modified by the caller to
27454// add HTTP headers to the request.
27455func (c *OrganizationsEnvironmentsUpdateTraceConfigCall) Header() http.Header {
27456	if c.header_ == nil {
27457		c.header_ = make(http.Header)
27458	}
27459	return c.header_
27460}
27461
27462func (c *OrganizationsEnvironmentsUpdateTraceConfigCall) doRequest(alt string) (*http.Response, error) {
27463	reqHeaders := make(http.Header)
27464	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
27465	for k, v := range c.header_ {
27466		reqHeaders[k] = v
27467	}
27468	reqHeaders.Set("User-Agent", c.s.userAgent())
27469	var body io.Reader = nil
27470	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1traceconfig)
27471	if err != nil {
27472		return nil, err
27473	}
27474	reqHeaders.Set("Content-Type", "application/json")
27475	c.urlParams_.Set("alt", alt)
27476	c.urlParams_.Set("prettyPrint", "false")
27477	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
27478	urls += "?" + c.urlParams_.Encode()
27479	req, err := http.NewRequest("PATCH", urls, body)
27480	if err != nil {
27481		return nil, err
27482	}
27483	req.Header = reqHeaders
27484	googleapi.Expand(req.URL, map[string]string{
27485		"name": c.name,
27486	})
27487	return gensupport.SendRequest(c.ctx_, c.s.client, req)
27488}
27489
27490// Do executes the "apigee.organizations.environments.updateTraceConfig" call.
27491// Exactly one of *GoogleCloudApigeeV1TraceConfig or error will be
27492// non-nil. Any non-2xx status code is an error. Response headers are in
27493// either *GoogleCloudApigeeV1TraceConfig.ServerResponse.Header or (if a
27494// response was returned at all) in error.(*googleapi.Error).Header. Use
27495// googleapi.IsNotModified to check whether the returned error was
27496// because http.StatusNotModified was returned.
27497func (c *OrganizationsEnvironmentsUpdateTraceConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TraceConfig, error) {
27498	gensupport.SetOptions(c.urlParams_, opts...)
27499	res, err := c.doRequest("json")
27500	if res != nil && res.StatusCode == http.StatusNotModified {
27501		if res.Body != nil {
27502			res.Body.Close()
27503		}
27504		return nil, &googleapi.Error{
27505			Code:   res.StatusCode,
27506			Header: res.Header,
27507		}
27508	}
27509	if err != nil {
27510		return nil, err
27511	}
27512	defer googleapi.CloseBody(res)
27513	if err := googleapi.CheckResponse(res); err != nil {
27514		return nil, err
27515	}
27516	ret := &GoogleCloudApigeeV1TraceConfig{
27517		ServerResponse: googleapi.ServerResponse{
27518			Header:         res.Header,
27519			HTTPStatusCode: res.StatusCode,
27520		},
27521	}
27522	target := &ret
27523	if err := gensupport.DecodeResponse(target, res); err != nil {
27524		return nil, err
27525	}
27526	return ret, nil
27527	// {
27528	//   "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.",
27529	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/traceConfig",
27530	//   "httpMethod": "PATCH",
27531	//   "id": "apigee.organizations.environments.updateTraceConfig",
27532	//   "parameterOrder": [
27533	//     "name"
27534	//   ],
27535	//   "parameters": {
27536	//     "name": {
27537	//       "description": "Required. Name of the trace configuration. Use the following structure in your request: \"organizations/*/environments/*/traceConfig\".",
27538	//       "location": "path",
27539	//       "pattern": "^organizations/[^/]+/environments/[^/]+/traceConfig$",
27540	//       "required": true,
27541	//       "type": "string"
27542	//     },
27543	//     "updateMask": {
27544	//       "description": "List of fields to be updated.",
27545	//       "format": "google-fieldmask",
27546	//       "location": "query",
27547	//       "type": "string"
27548	//     }
27549	//   },
27550	//   "path": "v1/{+name}",
27551	//   "request": {
27552	//     "$ref": "GoogleCloudApigeeV1TraceConfig"
27553	//   },
27554	//   "response": {
27555	//     "$ref": "GoogleCloudApigeeV1TraceConfig"
27556	//   },
27557	//   "scopes": [
27558	//     "https://www.googleapis.com/auth/cloud-platform"
27559	//   ]
27560	// }
27561
27562}
27563
27564// method id "apigee.organizations.environments.analytics.admin.getSchemav2":
27565
27566type OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call struct {
27567	s            *Service
27568	name         string
27569	urlParams_   gensupport.URLParams
27570	ifNoneMatch_ string
27571	ctx_         context.Context
27572	header_      http.Header
27573}
27574
27575// GetSchemav2: Gets a list of metrics and dimensions that can be used
27576// to create analytics queries and reports. Each schema element contains
27577// the name of the field, its associated type, and a flag indicating
27578// whether it is a standard or custom field.
27579//
27580// - name: Path to the schema. Use the following structure in your
27581//   request:
27582//   `organizations/{org}/environments/{env}/analytics/admin/schemav2`.
27583func (r *OrganizationsEnvironmentsAnalyticsAdminService) GetSchemav2(name string) *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call {
27584	c := &OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call{s: r.s, urlParams_: make(gensupport.URLParams)}
27585	c.name = name
27586	return c
27587}
27588
27589// DisableCache sets the optional parameter "disableCache": Flag that
27590// specifies whether the schema is be read from the database or cache.
27591// Set to `true` to read the schema from the database. Defaults to
27592// cache.
27593func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) DisableCache(disableCache bool) *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call {
27594	c.urlParams_.Set("disableCache", fmt.Sprint(disableCache))
27595	return c
27596}
27597
27598// Type sets the optional parameter "type": Required. Name of the
27599// dataset for which you want to retrieve the schema. For example:
27600// `fact` or `agg_cus1`
27601func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) Type(type_ string) *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call {
27602	c.urlParams_.Set("type", type_)
27603	return c
27604}
27605
27606// Fields allows partial responses to be retrieved. See
27607// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
27608// for more information.
27609func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call {
27610	c.urlParams_.Set("fields", googleapi.CombineFields(s))
27611	return c
27612}
27613
27614// IfNoneMatch sets the optional parameter which makes the operation
27615// fail if the object's ETag matches the given value. This is useful for
27616// getting updates only after the object has changed since the last
27617// request. Use googleapi.IsNotModified to check whether the response
27618// error from Do is the result of In-None-Match.
27619func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call {
27620	c.ifNoneMatch_ = entityTag
27621	return c
27622}
27623
27624// Context sets the context to be used in this call's Do method. Any
27625// pending HTTP request will be aborted if the provided context is
27626// canceled.
27627func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) Context(ctx context.Context) *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call {
27628	c.ctx_ = ctx
27629	return c
27630}
27631
27632// Header returns an http.Header that can be modified by the caller to
27633// add HTTP headers to the request.
27634func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) Header() http.Header {
27635	if c.header_ == nil {
27636		c.header_ = make(http.Header)
27637	}
27638	return c.header_
27639}
27640
27641func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) doRequest(alt string) (*http.Response, error) {
27642	reqHeaders := make(http.Header)
27643	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
27644	for k, v := range c.header_ {
27645		reqHeaders[k] = v
27646	}
27647	reqHeaders.Set("User-Agent", c.s.userAgent())
27648	if c.ifNoneMatch_ != "" {
27649		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
27650	}
27651	var body io.Reader = nil
27652	c.urlParams_.Set("alt", alt)
27653	c.urlParams_.Set("prettyPrint", "false")
27654	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
27655	urls += "?" + c.urlParams_.Encode()
27656	req, err := http.NewRequest("GET", urls, body)
27657	if err != nil {
27658		return nil, err
27659	}
27660	req.Header = reqHeaders
27661	googleapi.Expand(req.URL, map[string]string{
27662		"name": c.name,
27663	})
27664	return gensupport.SendRequest(c.ctx_, c.s.client, req)
27665}
27666
27667// Do executes the "apigee.organizations.environments.analytics.admin.getSchemav2" call.
27668// Exactly one of *GoogleCloudApigeeV1Schema or error will be non-nil.
27669// Any non-2xx status code is an error. Response headers are in either
27670// *GoogleCloudApigeeV1Schema.ServerResponse.Header or (if a response
27671// was returned at all) in error.(*googleapi.Error).Header. Use
27672// googleapi.IsNotModified to check whether the returned error was
27673// because http.StatusNotModified was returned.
27674func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Schema, error) {
27675	gensupport.SetOptions(c.urlParams_, opts...)
27676	res, err := c.doRequest("json")
27677	if res != nil && res.StatusCode == http.StatusNotModified {
27678		if res.Body != nil {
27679			res.Body.Close()
27680		}
27681		return nil, &googleapi.Error{
27682			Code:   res.StatusCode,
27683			Header: res.Header,
27684		}
27685	}
27686	if err != nil {
27687		return nil, err
27688	}
27689	defer googleapi.CloseBody(res)
27690	if err := googleapi.CheckResponse(res); err != nil {
27691		return nil, err
27692	}
27693	ret := &GoogleCloudApigeeV1Schema{
27694		ServerResponse: googleapi.ServerResponse{
27695			Header:         res.Header,
27696			HTTPStatusCode: res.StatusCode,
27697		},
27698	}
27699	target := &ret
27700	if err := gensupport.DecodeResponse(target, res); err != nil {
27701		return nil, err
27702	}
27703	return ret, nil
27704	// {
27705	//   "description": "Gets a list of metrics and dimensions that can be used to create analytics queries and reports. Each schema element contains the name of the field, its associated type, and a flag indicating whether it is a standard or custom field.",
27706	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/analytics/admin/schemav2",
27707	//   "httpMethod": "GET",
27708	//   "id": "apigee.organizations.environments.analytics.admin.getSchemav2",
27709	//   "parameterOrder": [
27710	//     "name"
27711	//   ],
27712	//   "parameters": {
27713	//     "disableCache": {
27714	//       "description": "Flag that specifies whether the schema is be read from the database or cache. Set to `true` to read the schema from the database. Defaults to cache.",
27715	//       "location": "query",
27716	//       "type": "boolean"
27717	//     },
27718	//     "name": {
27719	//       "description": "Required. Path to the schema. Use the following structure in your request: `organizations/{org}/environments/{env}/analytics/admin/schemav2`.",
27720	//       "location": "path",
27721	//       "pattern": "^organizations/[^/]+/environments/[^/]+/analytics/admin/schemav2$",
27722	//       "required": true,
27723	//       "type": "string"
27724	//     },
27725	//     "type": {
27726	//       "description": "Required. Name of the dataset for which you want to retrieve the schema. For example: `fact` or `agg_cus1`",
27727	//       "location": "query",
27728	//       "type": "string"
27729	//     }
27730	//   },
27731	//   "path": "v1/{+name}",
27732	//   "response": {
27733	//     "$ref": "GoogleCloudApigeeV1Schema"
27734	//   },
27735	//   "scopes": [
27736	//     "https://www.googleapis.com/auth/cloud-platform"
27737	//   ]
27738	// }
27739
27740}
27741
27742// method id "apigee.organizations.environments.analytics.exports.create":
27743
27744type OrganizationsEnvironmentsAnalyticsExportsCreateCall struct {
27745	s                                *Service
27746	parent                           string
27747	googlecloudapigeev1exportrequest *GoogleCloudApigeeV1ExportRequest
27748	urlParams_                       gensupport.URLParams
27749	ctx_                             context.Context
27750	header_                          http.Header
27751}
27752
27753// Create: Submit a data export job to be processed in the background.
27754// If the request is successful, the API returns a 201 status, a URI
27755// that can be used to retrieve the status of the export job, and the
27756// `state` value of "enqueued".
27757//
27758// - parent: Names of the parent organization and environment. Must be
27759//   of the form `organizations/{org}/environments/{env}`.
27760func (r *OrganizationsEnvironmentsAnalyticsExportsService) Create(parent string, googlecloudapigeev1exportrequest *GoogleCloudApigeeV1ExportRequest) *OrganizationsEnvironmentsAnalyticsExportsCreateCall {
27761	c := &OrganizationsEnvironmentsAnalyticsExportsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27762	c.parent = parent
27763	c.googlecloudapigeev1exportrequest = googlecloudapigeev1exportrequest
27764	return c
27765}
27766
27767// Fields allows partial responses to be retrieved. See
27768// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
27769// for more information.
27770func (c *OrganizationsEnvironmentsAnalyticsExportsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsAnalyticsExportsCreateCall {
27771	c.urlParams_.Set("fields", googleapi.CombineFields(s))
27772	return c
27773}
27774
27775// Context sets the context to be used in this call's Do method. Any
27776// pending HTTP request will be aborted if the provided context is
27777// canceled.
27778func (c *OrganizationsEnvironmentsAnalyticsExportsCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsAnalyticsExportsCreateCall {
27779	c.ctx_ = ctx
27780	return c
27781}
27782
27783// Header returns an http.Header that can be modified by the caller to
27784// add HTTP headers to the request.
27785func (c *OrganizationsEnvironmentsAnalyticsExportsCreateCall) Header() http.Header {
27786	if c.header_ == nil {
27787		c.header_ = make(http.Header)
27788	}
27789	return c.header_
27790}
27791
27792func (c *OrganizationsEnvironmentsAnalyticsExportsCreateCall) doRequest(alt string) (*http.Response, error) {
27793	reqHeaders := make(http.Header)
27794	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
27795	for k, v := range c.header_ {
27796		reqHeaders[k] = v
27797	}
27798	reqHeaders.Set("User-Agent", c.s.userAgent())
27799	var body io.Reader = nil
27800	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1exportrequest)
27801	if err != nil {
27802		return nil, err
27803	}
27804	reqHeaders.Set("Content-Type", "application/json")
27805	c.urlParams_.Set("alt", alt)
27806	c.urlParams_.Set("prettyPrint", "false")
27807	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/analytics/exports")
27808	urls += "?" + c.urlParams_.Encode()
27809	req, err := http.NewRequest("POST", urls, body)
27810	if err != nil {
27811		return nil, err
27812	}
27813	req.Header = reqHeaders
27814	googleapi.Expand(req.URL, map[string]string{
27815		"parent": c.parent,
27816	})
27817	return gensupport.SendRequest(c.ctx_, c.s.client, req)
27818}
27819
27820// Do executes the "apigee.organizations.environments.analytics.exports.create" call.
27821// Exactly one of *GoogleCloudApigeeV1Export or error will be non-nil.
27822// Any non-2xx status code is an error. Response headers are in either
27823// *GoogleCloudApigeeV1Export.ServerResponse.Header or (if a response
27824// was returned at all) in error.(*googleapi.Error).Header. Use
27825// googleapi.IsNotModified to check whether the returned error was
27826// because http.StatusNotModified was returned.
27827func (c *OrganizationsEnvironmentsAnalyticsExportsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Export, error) {
27828	gensupport.SetOptions(c.urlParams_, opts...)
27829	res, err := c.doRequest("json")
27830	if res != nil && res.StatusCode == http.StatusNotModified {
27831		if res.Body != nil {
27832			res.Body.Close()
27833		}
27834		return nil, &googleapi.Error{
27835			Code:   res.StatusCode,
27836			Header: res.Header,
27837		}
27838	}
27839	if err != nil {
27840		return nil, err
27841	}
27842	defer googleapi.CloseBody(res)
27843	if err := googleapi.CheckResponse(res); err != nil {
27844		return nil, err
27845	}
27846	ret := &GoogleCloudApigeeV1Export{
27847		ServerResponse: googleapi.ServerResponse{
27848			Header:         res.Header,
27849			HTTPStatusCode: res.StatusCode,
27850		},
27851	}
27852	target := &ret
27853	if err := gensupport.DecodeResponse(target, res); err != nil {
27854		return nil, err
27855	}
27856	return ret, nil
27857	// {
27858	//   "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\".",
27859	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/analytics/exports",
27860	//   "httpMethod": "POST",
27861	//   "id": "apigee.organizations.environments.analytics.exports.create",
27862	//   "parameterOrder": [
27863	//     "parent"
27864	//   ],
27865	//   "parameters": {
27866	//     "parent": {
27867	//       "description": "Required. Names of the parent organization and environment. Must be of the form `organizations/{org}/environments/{env}`.",
27868	//       "location": "path",
27869	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
27870	//       "required": true,
27871	//       "type": "string"
27872	//     }
27873	//   },
27874	//   "path": "v1/{+parent}/analytics/exports",
27875	//   "request": {
27876	//     "$ref": "GoogleCloudApigeeV1ExportRequest"
27877	//   },
27878	//   "response": {
27879	//     "$ref": "GoogleCloudApigeeV1Export"
27880	//   },
27881	//   "scopes": [
27882	//     "https://www.googleapis.com/auth/cloud-platform"
27883	//   ]
27884	// }
27885
27886}
27887
27888// method id "apigee.organizations.environments.analytics.exports.get":
27889
27890type OrganizationsEnvironmentsAnalyticsExportsGetCall struct {
27891	s            *Service
27892	name         string
27893	urlParams_   gensupport.URLParams
27894	ifNoneMatch_ string
27895	ctx_         context.Context
27896	header_      http.Header
27897}
27898
27899// Get: Gets the details and status of an analytics export job. If the
27900// export job is still in progress, its `state` is set to "running".
27901// After the export job has completed successfully, its `state` is set
27902// to "completed". If the export job fails, its `state` is set to
27903// `failed`.
27904//
27905// - name: Resource name of the export to get.
27906func (r *OrganizationsEnvironmentsAnalyticsExportsService) Get(name string) *OrganizationsEnvironmentsAnalyticsExportsGetCall {
27907	c := &OrganizationsEnvironmentsAnalyticsExportsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27908	c.name = name
27909	return c
27910}
27911
27912// Fields allows partial responses to be retrieved. See
27913// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
27914// for more information.
27915func (c *OrganizationsEnvironmentsAnalyticsExportsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsAnalyticsExportsGetCall {
27916	c.urlParams_.Set("fields", googleapi.CombineFields(s))
27917	return c
27918}
27919
27920// IfNoneMatch sets the optional parameter which makes the operation
27921// fail if the object's ETag matches the given value. This is useful for
27922// getting updates only after the object has changed since the last
27923// request. Use googleapi.IsNotModified to check whether the response
27924// error from Do is the result of In-None-Match.
27925func (c *OrganizationsEnvironmentsAnalyticsExportsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsAnalyticsExportsGetCall {
27926	c.ifNoneMatch_ = entityTag
27927	return c
27928}
27929
27930// Context sets the context to be used in this call's Do method. Any
27931// pending HTTP request will be aborted if the provided context is
27932// canceled.
27933func (c *OrganizationsEnvironmentsAnalyticsExportsGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsAnalyticsExportsGetCall {
27934	c.ctx_ = ctx
27935	return c
27936}
27937
27938// Header returns an http.Header that can be modified by the caller to
27939// add HTTP headers to the request.
27940func (c *OrganizationsEnvironmentsAnalyticsExportsGetCall) Header() http.Header {
27941	if c.header_ == nil {
27942		c.header_ = make(http.Header)
27943	}
27944	return c.header_
27945}
27946
27947func (c *OrganizationsEnvironmentsAnalyticsExportsGetCall) doRequest(alt string) (*http.Response, error) {
27948	reqHeaders := make(http.Header)
27949	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
27950	for k, v := range c.header_ {
27951		reqHeaders[k] = v
27952	}
27953	reqHeaders.Set("User-Agent", c.s.userAgent())
27954	if c.ifNoneMatch_ != "" {
27955		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
27956	}
27957	var body io.Reader = nil
27958	c.urlParams_.Set("alt", alt)
27959	c.urlParams_.Set("prettyPrint", "false")
27960	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
27961	urls += "?" + c.urlParams_.Encode()
27962	req, err := http.NewRequest("GET", urls, body)
27963	if err != nil {
27964		return nil, err
27965	}
27966	req.Header = reqHeaders
27967	googleapi.Expand(req.URL, map[string]string{
27968		"name": c.name,
27969	})
27970	return gensupport.SendRequest(c.ctx_, c.s.client, req)
27971}
27972
27973// Do executes the "apigee.organizations.environments.analytics.exports.get" call.
27974// Exactly one of *GoogleCloudApigeeV1Export or error will be non-nil.
27975// Any non-2xx status code is an error. Response headers are in either
27976// *GoogleCloudApigeeV1Export.ServerResponse.Header or (if a response
27977// was returned at all) in error.(*googleapi.Error).Header. Use
27978// googleapi.IsNotModified to check whether the returned error was
27979// because http.StatusNotModified was returned.
27980func (c *OrganizationsEnvironmentsAnalyticsExportsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Export, error) {
27981	gensupport.SetOptions(c.urlParams_, opts...)
27982	res, err := c.doRequest("json")
27983	if res != nil && res.StatusCode == http.StatusNotModified {
27984		if res.Body != nil {
27985			res.Body.Close()
27986		}
27987		return nil, &googleapi.Error{
27988			Code:   res.StatusCode,
27989			Header: res.Header,
27990		}
27991	}
27992	if err != nil {
27993		return nil, err
27994	}
27995	defer googleapi.CloseBody(res)
27996	if err := googleapi.CheckResponse(res); err != nil {
27997		return nil, err
27998	}
27999	ret := &GoogleCloudApigeeV1Export{
28000		ServerResponse: googleapi.ServerResponse{
28001			Header:         res.Header,
28002			HTTPStatusCode: res.StatusCode,
28003		},
28004	}
28005	target := &ret
28006	if err := gensupport.DecodeResponse(target, res); err != nil {
28007		return nil, err
28008	}
28009	return ret, nil
28010	// {
28011	//   "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`.",
28012	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/analytics/exports/{exportsId}",
28013	//   "httpMethod": "GET",
28014	//   "id": "apigee.organizations.environments.analytics.exports.get",
28015	//   "parameterOrder": [
28016	//     "name"
28017	//   ],
28018	//   "parameters": {
28019	//     "name": {
28020	//       "description": "Required. Resource name of the export to get.",
28021	//       "location": "path",
28022	//       "pattern": "^organizations/[^/]+/environments/[^/]+/analytics/exports/[^/]+$",
28023	//       "required": true,
28024	//       "type": "string"
28025	//     }
28026	//   },
28027	//   "path": "v1/{+name}",
28028	//   "response": {
28029	//     "$ref": "GoogleCloudApigeeV1Export"
28030	//   },
28031	//   "scopes": [
28032	//     "https://www.googleapis.com/auth/cloud-platform"
28033	//   ]
28034	// }
28035
28036}
28037
28038// method id "apigee.organizations.environments.analytics.exports.list":
28039
28040type OrganizationsEnvironmentsAnalyticsExportsListCall struct {
28041	s            *Service
28042	parent       string
28043	urlParams_   gensupport.URLParams
28044	ifNoneMatch_ string
28045	ctx_         context.Context
28046	header_      http.Header
28047}
28048
28049// List: Lists the details and status of all analytics export jobs
28050// belonging to the parent organization and environment.
28051//
28052// - parent: Names of the parent organization and environment. Must be
28053//   of the form `organizations/{org}/environments/{env}`.
28054func (r *OrganizationsEnvironmentsAnalyticsExportsService) List(parent string) *OrganizationsEnvironmentsAnalyticsExportsListCall {
28055	c := &OrganizationsEnvironmentsAnalyticsExportsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28056	c.parent = parent
28057	return c
28058}
28059
28060// Fields allows partial responses to be retrieved. See
28061// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
28062// for more information.
28063func (c *OrganizationsEnvironmentsAnalyticsExportsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsAnalyticsExportsListCall {
28064	c.urlParams_.Set("fields", googleapi.CombineFields(s))
28065	return c
28066}
28067
28068// IfNoneMatch sets the optional parameter which makes the operation
28069// fail if the object's ETag matches the given value. This is useful for
28070// getting updates only after the object has changed since the last
28071// request. Use googleapi.IsNotModified to check whether the response
28072// error from Do is the result of In-None-Match.
28073func (c *OrganizationsEnvironmentsAnalyticsExportsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsAnalyticsExportsListCall {
28074	c.ifNoneMatch_ = entityTag
28075	return c
28076}
28077
28078// Context sets the context to be used in this call's Do method. Any
28079// pending HTTP request will be aborted if the provided context is
28080// canceled.
28081func (c *OrganizationsEnvironmentsAnalyticsExportsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsAnalyticsExportsListCall {
28082	c.ctx_ = ctx
28083	return c
28084}
28085
28086// Header returns an http.Header that can be modified by the caller to
28087// add HTTP headers to the request.
28088func (c *OrganizationsEnvironmentsAnalyticsExportsListCall) Header() http.Header {
28089	if c.header_ == nil {
28090		c.header_ = make(http.Header)
28091	}
28092	return c.header_
28093}
28094
28095func (c *OrganizationsEnvironmentsAnalyticsExportsListCall) doRequest(alt string) (*http.Response, error) {
28096	reqHeaders := make(http.Header)
28097	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
28098	for k, v := range c.header_ {
28099		reqHeaders[k] = v
28100	}
28101	reqHeaders.Set("User-Agent", c.s.userAgent())
28102	if c.ifNoneMatch_ != "" {
28103		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
28104	}
28105	var body io.Reader = nil
28106	c.urlParams_.Set("alt", alt)
28107	c.urlParams_.Set("prettyPrint", "false")
28108	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/analytics/exports")
28109	urls += "?" + c.urlParams_.Encode()
28110	req, err := http.NewRequest("GET", urls, body)
28111	if err != nil {
28112		return nil, err
28113	}
28114	req.Header = reqHeaders
28115	googleapi.Expand(req.URL, map[string]string{
28116		"parent": c.parent,
28117	})
28118	return gensupport.SendRequest(c.ctx_, c.s.client, req)
28119}
28120
28121// Do executes the "apigee.organizations.environments.analytics.exports.list" call.
28122// Exactly one of *GoogleCloudApigeeV1ListExportsResponse or error will
28123// be non-nil. Any non-2xx status code is an error. Response headers are
28124// in either
28125// *GoogleCloudApigeeV1ListExportsResponse.ServerResponse.Header or (if
28126// a response was returned at all) in error.(*googleapi.Error).Header.
28127// Use googleapi.IsNotModified to check whether the returned error was
28128// because http.StatusNotModified was returned.
28129func (c *OrganizationsEnvironmentsAnalyticsExportsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListExportsResponse, error) {
28130	gensupport.SetOptions(c.urlParams_, opts...)
28131	res, err := c.doRequest("json")
28132	if res != nil && res.StatusCode == http.StatusNotModified {
28133		if res.Body != nil {
28134			res.Body.Close()
28135		}
28136		return nil, &googleapi.Error{
28137			Code:   res.StatusCode,
28138			Header: res.Header,
28139		}
28140	}
28141	if err != nil {
28142		return nil, err
28143	}
28144	defer googleapi.CloseBody(res)
28145	if err := googleapi.CheckResponse(res); err != nil {
28146		return nil, err
28147	}
28148	ret := &GoogleCloudApigeeV1ListExportsResponse{
28149		ServerResponse: googleapi.ServerResponse{
28150			Header:         res.Header,
28151			HTTPStatusCode: res.StatusCode,
28152		},
28153	}
28154	target := &ret
28155	if err := gensupport.DecodeResponse(target, res); err != nil {
28156		return nil, err
28157	}
28158	return ret, nil
28159	// {
28160	//   "description": "Lists the details and status of all analytics export jobs belonging to the parent organization and environment.",
28161	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/analytics/exports",
28162	//   "httpMethod": "GET",
28163	//   "id": "apigee.organizations.environments.analytics.exports.list",
28164	//   "parameterOrder": [
28165	//     "parent"
28166	//   ],
28167	//   "parameters": {
28168	//     "parent": {
28169	//       "description": "Required. Names of the parent organization and environment. Must be of the form `organizations/{org}/environments/{env}`.",
28170	//       "location": "path",
28171	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
28172	//       "required": true,
28173	//       "type": "string"
28174	//     }
28175	//   },
28176	//   "path": "v1/{+parent}/analytics/exports",
28177	//   "response": {
28178	//     "$ref": "GoogleCloudApigeeV1ListExportsResponse"
28179	//   },
28180	//   "scopes": [
28181	//     "https://www.googleapis.com/auth/cloud-platform"
28182	//   ]
28183	// }
28184
28185}
28186
28187// method id "apigee.organizations.environments.apis.deployments.list":
28188
28189type OrganizationsEnvironmentsApisDeploymentsListCall struct {
28190	s            *Service
28191	parent       string
28192	urlParams_   gensupport.URLParams
28193	ifNoneMatch_ string
28194	ctx_         context.Context
28195	header_      http.Header
28196}
28197
28198// List: Lists all deployments of an API proxy in an environment.
28199//
28200// - parent: Name representing an API proxy in an environment in the
28201//   following format:
28202//   `organizations/{org}/environments/{env}/apis/{api}`.
28203func (r *OrganizationsEnvironmentsApisDeploymentsService) List(parent string) *OrganizationsEnvironmentsApisDeploymentsListCall {
28204	c := &OrganizationsEnvironmentsApisDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28205	c.parent = parent
28206	return c
28207}
28208
28209// Fields allows partial responses to be retrieved. See
28210// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
28211// for more information.
28212func (c *OrganizationsEnvironmentsApisDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisDeploymentsListCall {
28213	c.urlParams_.Set("fields", googleapi.CombineFields(s))
28214	return c
28215}
28216
28217// IfNoneMatch sets the optional parameter which makes the operation
28218// fail if the object's ETag matches the given value. This is useful for
28219// getting updates only after the object has changed since the last
28220// request. Use googleapi.IsNotModified to check whether the response
28221// error from Do is the result of In-None-Match.
28222func (c *OrganizationsEnvironmentsApisDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsApisDeploymentsListCall {
28223	c.ifNoneMatch_ = entityTag
28224	return c
28225}
28226
28227// Context sets the context to be used in this call's Do method. Any
28228// pending HTTP request will be aborted if the provided context is
28229// canceled.
28230func (c *OrganizationsEnvironmentsApisDeploymentsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisDeploymentsListCall {
28231	c.ctx_ = ctx
28232	return c
28233}
28234
28235// Header returns an http.Header that can be modified by the caller to
28236// add HTTP headers to the request.
28237func (c *OrganizationsEnvironmentsApisDeploymentsListCall) Header() http.Header {
28238	if c.header_ == nil {
28239		c.header_ = make(http.Header)
28240	}
28241	return c.header_
28242}
28243
28244func (c *OrganizationsEnvironmentsApisDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
28245	reqHeaders := make(http.Header)
28246	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
28247	for k, v := range c.header_ {
28248		reqHeaders[k] = v
28249	}
28250	reqHeaders.Set("User-Agent", c.s.userAgent())
28251	if c.ifNoneMatch_ != "" {
28252		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
28253	}
28254	var body io.Reader = nil
28255	c.urlParams_.Set("alt", alt)
28256	c.urlParams_.Set("prettyPrint", "false")
28257	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
28258	urls += "?" + c.urlParams_.Encode()
28259	req, err := http.NewRequest("GET", urls, body)
28260	if err != nil {
28261		return nil, err
28262	}
28263	req.Header = reqHeaders
28264	googleapi.Expand(req.URL, map[string]string{
28265		"parent": c.parent,
28266	})
28267	return gensupport.SendRequest(c.ctx_, c.s.client, req)
28268}
28269
28270// Do executes the "apigee.organizations.environments.apis.deployments.list" call.
28271// Exactly one of *GoogleCloudApigeeV1ListDeploymentsResponse or error
28272// will be non-nil. Any non-2xx status code is an error. Response
28273// headers are in either
28274// *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or
28275// (if a response was returned at all) in
28276// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
28277// whether the returned error was because http.StatusNotModified was
28278// returned.
28279func (c *OrganizationsEnvironmentsApisDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
28280	gensupport.SetOptions(c.urlParams_, opts...)
28281	res, err := c.doRequest("json")
28282	if res != nil && res.StatusCode == http.StatusNotModified {
28283		if res.Body != nil {
28284			res.Body.Close()
28285		}
28286		return nil, &googleapi.Error{
28287			Code:   res.StatusCode,
28288			Header: res.Header,
28289		}
28290	}
28291	if err != nil {
28292		return nil, err
28293	}
28294	defer googleapi.CloseBody(res)
28295	if err := googleapi.CheckResponse(res); err != nil {
28296		return nil, err
28297	}
28298	ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
28299		ServerResponse: googleapi.ServerResponse{
28300			Header:         res.Header,
28301			HTTPStatusCode: res.StatusCode,
28302		},
28303	}
28304	target := &ret
28305	if err := gensupport.DecodeResponse(target, res); err != nil {
28306		return nil, err
28307	}
28308	return ret, nil
28309	// {
28310	//   "description": "Lists all deployments of an API proxy in an environment.",
28311	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/deployments",
28312	//   "httpMethod": "GET",
28313	//   "id": "apigee.organizations.environments.apis.deployments.list",
28314	//   "parameterOrder": [
28315	//     "parent"
28316	//   ],
28317	//   "parameters": {
28318	//     "parent": {
28319	//       "description": "Required. Name representing an API proxy in an environment in the following format: `organizations/{org}/environments/{env}/apis/{api}`",
28320	//       "location": "path",
28321	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+$",
28322	//       "required": true,
28323	//       "type": "string"
28324	//     }
28325	//   },
28326	//   "path": "v1/{+parent}/deployments",
28327	//   "response": {
28328	//     "$ref": "GoogleCloudApigeeV1ListDeploymentsResponse"
28329	//   },
28330	//   "scopes": [
28331	//     "https://www.googleapis.com/auth/cloud-platform"
28332	//   ]
28333	// }
28334
28335}
28336
28337// method id "apigee.organizations.environments.apis.revisions.deploy":
28338
28339type OrganizationsEnvironmentsApisRevisionsDeployCall struct {
28340	s          *Service
28341	name       string
28342	urlParams_ gensupport.URLParams
28343	ctx_       context.Context
28344	header_    http.Header
28345}
28346
28347// Deploy: Deploys a revision of an API proxy. If another revision of
28348// the same API proxy revision is currently deployed, set the `override`
28349// parameter to `true` to have this revision replace the currently
28350// deployed revision. You cannot invoke an API proxy until it has been
28351// deployed to an environment. After you deploy an API proxy revision,
28352// you cannot edit it. To edit the API proxy, you must create and deploy
28353// a new revision. For a request path
28354// `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}/dep
28355// loyments`, two permissions are required: *
28356// `apigee.deployments.create` on the resource
28357// `organizations/{org}/environments/{env}` *
28358// `apigee.proxyrevisions.deploy` on the resource
28359// `organizations/{org}/apis/{api}/revisions/{rev}`
28360//
28361// - name: Name of the API proxy revision deployment in the following
28362//   format:
28363//   `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`.
28364func (r *OrganizationsEnvironmentsApisRevisionsService) Deploy(name string) *OrganizationsEnvironmentsApisRevisionsDeployCall {
28365	c := &OrganizationsEnvironmentsApisRevisionsDeployCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28366	c.name = name
28367	return c
28368}
28369
28370// Override sets the optional parameter "override": Flag that specifies
28371// whether the new deployment replaces other deployed revisions of the
28372// API proxy in the environment. Set `override` to `true` to replace
28373// other deployed revisions. By default, `override` is `false` and the
28374// deployment is rejected if other revisions of the API proxy are
28375// deployed in the environment.
28376func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) Override(override bool) *OrganizationsEnvironmentsApisRevisionsDeployCall {
28377	c.urlParams_.Set("override", fmt.Sprint(override))
28378	return c
28379}
28380
28381// SequencedRollout sets the optional parameter "sequencedRollout": Flag
28382// that specifies whether to enable sequenced rollout. If set to `true`,
28383// a best-effort attempt will be made to roll out the routing rules
28384// corresponding to this deployment and the environment changes to add
28385// this deployment in a safe order. This reduces the risk of downtime
28386// that could be caused by changing the environment group's routing
28387// before the new destination for the affected traffic is ready to
28388// receive it. This should only be necessary if the new deployment will
28389// be capturing traffic from another environment under a shared
28390// environment group or if traffic will be rerouted to a different
28391// environment due to a base path removal. The
28392// GenerateDeployChangeReport API (GenerateDeployChangeReport) may be
28393// used to examine routing changes before issuing the deployment
28394// request, and its response will indicate if a sequenced rollout is
28395// recommended for the deployment.
28396func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) SequencedRollout(sequencedRollout bool) *OrganizationsEnvironmentsApisRevisionsDeployCall {
28397	c.urlParams_.Set("sequencedRollout", fmt.Sprint(sequencedRollout))
28398	return c
28399}
28400
28401// ServiceAccount sets the optional parameter "serviceAccount": Google
28402// Cloud IAM service account. The service account represents the
28403// identity of the deployed proxy, and determines what permissions it
28404// has. The format must be
28405// `{ACCOUNT_ID}@{PROJECT}.iam.gserviceaccount.com`.
28406func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) ServiceAccount(serviceAccount string) *OrganizationsEnvironmentsApisRevisionsDeployCall {
28407	c.urlParams_.Set("serviceAccount", serviceAccount)
28408	return c
28409}
28410
28411// Fields allows partial responses to be retrieved. See
28412// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
28413// for more information.
28414func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDeployCall {
28415	c.urlParams_.Set("fields", googleapi.CombineFields(s))
28416	return c
28417}
28418
28419// Context sets the context to be used in this call's Do method. Any
28420// pending HTTP request will be aborted if the provided context is
28421// canceled.
28422func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDeployCall {
28423	c.ctx_ = ctx
28424	return c
28425}
28426
28427// Header returns an http.Header that can be modified by the caller to
28428// add HTTP headers to the request.
28429func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) Header() http.Header {
28430	if c.header_ == nil {
28431		c.header_ = make(http.Header)
28432	}
28433	return c.header_
28434}
28435
28436func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) doRequest(alt string) (*http.Response, error) {
28437	reqHeaders := make(http.Header)
28438	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
28439	for k, v := range c.header_ {
28440		reqHeaders[k] = v
28441	}
28442	reqHeaders.Set("User-Agent", c.s.userAgent())
28443	var body io.Reader = nil
28444	c.urlParams_.Set("alt", alt)
28445	c.urlParams_.Set("prettyPrint", "false")
28446	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments")
28447	urls += "?" + c.urlParams_.Encode()
28448	req, err := http.NewRequest("POST", urls, body)
28449	if err != nil {
28450		return nil, err
28451	}
28452	req.Header = reqHeaders
28453	googleapi.Expand(req.URL, map[string]string{
28454		"name": c.name,
28455	})
28456	return gensupport.SendRequest(c.ctx_, c.s.client, req)
28457}
28458
28459// Do executes the "apigee.organizations.environments.apis.revisions.deploy" call.
28460// Exactly one of *GoogleCloudApigeeV1Deployment or error will be
28461// non-nil. Any non-2xx status code is an error. Response headers are in
28462// either *GoogleCloudApigeeV1Deployment.ServerResponse.Header or (if a
28463// response was returned at all) in error.(*googleapi.Error).Header. Use
28464// googleapi.IsNotModified to check whether the returned error was
28465// because http.StatusNotModified was returned.
28466func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Deployment, error) {
28467	gensupport.SetOptions(c.urlParams_, opts...)
28468	res, err := c.doRequest("json")
28469	if res != nil && res.StatusCode == http.StatusNotModified {
28470		if res.Body != nil {
28471			res.Body.Close()
28472		}
28473		return nil, &googleapi.Error{
28474			Code:   res.StatusCode,
28475			Header: res.Header,
28476		}
28477	}
28478	if err != nil {
28479		return nil, err
28480	}
28481	defer googleapi.CloseBody(res)
28482	if err := googleapi.CheckResponse(res); err != nil {
28483		return nil, err
28484	}
28485	ret := &GoogleCloudApigeeV1Deployment{
28486		ServerResponse: googleapi.ServerResponse{
28487			Header:         res.Header,
28488			HTTPStatusCode: res.StatusCode,
28489		},
28490	}
28491	target := &ret
28492	if err := gensupport.DecodeResponse(target, res); err != nil {
28493		return nil, err
28494	}
28495	return ret, nil
28496	// {
28497	//   "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}` ",
28498	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/deployments",
28499	//   "httpMethod": "POST",
28500	//   "id": "apigee.organizations.environments.apis.revisions.deploy",
28501	//   "parameterOrder": [
28502	//     "name"
28503	//   ],
28504	//   "parameters": {
28505	//     "name": {
28506	//       "description": "Required. Name of the API proxy revision deployment in the following format: `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`",
28507	//       "location": "path",
28508	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+$",
28509	//       "required": true,
28510	//       "type": "string"
28511	//     },
28512	//     "override": {
28513	//       "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.",
28514	//       "location": "query",
28515	//       "type": "boolean"
28516	//     },
28517	//     "sequencedRollout": {
28518	//       "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.",
28519	//       "location": "query",
28520	//       "type": "boolean"
28521	//     },
28522	//     "serviceAccount": {
28523	//       "description": "Google Cloud IAM service account. The service account represents the identity of the deployed proxy, and determines what permissions it has. The format must be `{ACCOUNT_ID}@{PROJECT}.iam.gserviceaccount.com`.",
28524	//       "location": "query",
28525	//       "type": "string"
28526	//     }
28527	//   },
28528	//   "path": "v1/{+name}/deployments",
28529	//   "response": {
28530	//     "$ref": "GoogleCloudApigeeV1Deployment"
28531	//   },
28532	//   "scopes": [
28533	//     "https://www.googleapis.com/auth/cloud-platform"
28534	//   ]
28535	// }
28536
28537}
28538
28539// method id "apigee.organizations.environments.apis.revisions.getDeployments":
28540
28541type OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall struct {
28542	s            *Service
28543	name         string
28544	urlParams_   gensupport.URLParams
28545	ifNoneMatch_ string
28546	ctx_         context.Context
28547	header_      http.Header
28548}
28549
28550// GetDeployments: Gets the deployment of an API proxy revision and
28551// actual state reported by runtime pods.
28552//
28553// - name: Name representing an API proxy revision in an environment in
28554//   the following format:
28555//   `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`.
28556func (r *OrganizationsEnvironmentsApisRevisionsService) GetDeployments(name string) *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall {
28557	c := &OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28558	c.name = name
28559	return c
28560}
28561
28562// Fields allows partial responses to be retrieved. See
28563// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
28564// for more information.
28565func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall {
28566	c.urlParams_.Set("fields", googleapi.CombineFields(s))
28567	return c
28568}
28569
28570// IfNoneMatch sets the optional parameter which makes the operation
28571// fail if the object's ETag matches the given value. This is useful for
28572// getting updates only after the object has changed since the last
28573// request. Use googleapi.IsNotModified to check whether the response
28574// error from Do is the result of In-None-Match.
28575func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall {
28576	c.ifNoneMatch_ = entityTag
28577	return c
28578}
28579
28580// Context sets the context to be used in this call's Do method. Any
28581// pending HTTP request will be aborted if the provided context is
28582// canceled.
28583func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall {
28584	c.ctx_ = ctx
28585	return c
28586}
28587
28588// Header returns an http.Header that can be modified by the caller to
28589// add HTTP headers to the request.
28590func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) Header() http.Header {
28591	if c.header_ == nil {
28592		c.header_ = make(http.Header)
28593	}
28594	return c.header_
28595}
28596
28597func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) doRequest(alt string) (*http.Response, error) {
28598	reqHeaders := make(http.Header)
28599	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
28600	for k, v := range c.header_ {
28601		reqHeaders[k] = v
28602	}
28603	reqHeaders.Set("User-Agent", c.s.userAgent())
28604	if c.ifNoneMatch_ != "" {
28605		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
28606	}
28607	var body io.Reader = nil
28608	c.urlParams_.Set("alt", alt)
28609	c.urlParams_.Set("prettyPrint", "false")
28610	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments")
28611	urls += "?" + c.urlParams_.Encode()
28612	req, err := http.NewRequest("GET", urls, body)
28613	if err != nil {
28614		return nil, err
28615	}
28616	req.Header = reqHeaders
28617	googleapi.Expand(req.URL, map[string]string{
28618		"name": c.name,
28619	})
28620	return gensupport.SendRequest(c.ctx_, c.s.client, req)
28621}
28622
28623// Do executes the "apigee.organizations.environments.apis.revisions.getDeployments" call.
28624// Exactly one of *GoogleCloudApigeeV1Deployment or error will be
28625// non-nil. Any non-2xx status code is an error. Response headers are in
28626// either *GoogleCloudApigeeV1Deployment.ServerResponse.Header or (if a
28627// response was returned at all) in error.(*googleapi.Error).Header. Use
28628// googleapi.IsNotModified to check whether the returned error was
28629// because http.StatusNotModified was returned.
28630func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Deployment, error) {
28631	gensupport.SetOptions(c.urlParams_, opts...)
28632	res, err := c.doRequest("json")
28633	if res != nil && res.StatusCode == http.StatusNotModified {
28634		if res.Body != nil {
28635			res.Body.Close()
28636		}
28637		return nil, &googleapi.Error{
28638			Code:   res.StatusCode,
28639			Header: res.Header,
28640		}
28641	}
28642	if err != nil {
28643		return nil, err
28644	}
28645	defer googleapi.CloseBody(res)
28646	if err := googleapi.CheckResponse(res); err != nil {
28647		return nil, err
28648	}
28649	ret := &GoogleCloudApigeeV1Deployment{
28650		ServerResponse: googleapi.ServerResponse{
28651			Header:         res.Header,
28652			HTTPStatusCode: res.StatusCode,
28653		},
28654	}
28655	target := &ret
28656	if err := gensupport.DecodeResponse(target, res); err != nil {
28657		return nil, err
28658	}
28659	return ret, nil
28660	// {
28661	//   "description": "Gets the deployment of an API proxy revision and actual state reported by runtime pods.",
28662	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/deployments",
28663	//   "httpMethod": "GET",
28664	//   "id": "apigee.organizations.environments.apis.revisions.getDeployments",
28665	//   "parameterOrder": [
28666	//     "name"
28667	//   ],
28668	//   "parameters": {
28669	//     "name": {
28670	//       "description": "Required. Name representing an API proxy revision in an environment in the following format: `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`",
28671	//       "location": "path",
28672	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+$",
28673	//       "required": true,
28674	//       "type": "string"
28675	//     }
28676	//   },
28677	//   "path": "v1/{+name}/deployments",
28678	//   "response": {
28679	//     "$ref": "GoogleCloudApigeeV1Deployment"
28680	//   },
28681	//   "scopes": [
28682	//     "https://www.googleapis.com/auth/cloud-platform"
28683	//   ]
28684	// }
28685
28686}
28687
28688// method id "apigee.organizations.environments.apis.revisions.undeploy":
28689
28690type OrganizationsEnvironmentsApisRevisionsUndeployCall struct {
28691	s          *Service
28692	name       string
28693	urlParams_ gensupport.URLParams
28694	ctx_       context.Context
28695	header_    http.Header
28696}
28697
28698// Undeploy: Undeploys an API proxy revision from an environment. For a
28699// request path
28700// `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}/dep
28701// loyments`, two permissions are required: *
28702// `apigee.deployments.delete` on the resource
28703// `organizations/{org}/environments/{env}` *
28704// `apigee.proxyrevisions.undeploy` on the resource
28705// `organizations/{org}/apis/{api}/revisions/{rev}`
28706//
28707// - name: Name of the API proxy revision deployment in the following
28708//   format:
28709//   `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`.
28710func (r *OrganizationsEnvironmentsApisRevisionsService) Undeploy(name string) *OrganizationsEnvironmentsApisRevisionsUndeployCall {
28711	c := &OrganizationsEnvironmentsApisRevisionsUndeployCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28712	c.name = name
28713	return c
28714}
28715
28716// SequencedRollout sets the optional parameter "sequencedRollout": Flag
28717// that specifies whether to enable sequenced rollout. If set to `true`,
28718// a best-effort attempt will be made to remove the environment group
28719// routing rules corresponding to this deployment before removing the
28720// deployment from the runtime. This is likely to be a rare use case; it
28721// is only needed when the intended effect of undeploying this proxy is
28722// to cause the traffic it currently handles to be rerouted to some
28723// other existing proxy in the environment group. The
28724// GenerateUndeployChangeReport API (GenerateUndeployChangeReport) may
28725// be used to examine routing changes before issuing the undeployment
28726// request, and its response will indicate if a sequenced rollout is
28727// recommended for the undeployment.
28728func (c *OrganizationsEnvironmentsApisRevisionsUndeployCall) SequencedRollout(sequencedRollout bool) *OrganizationsEnvironmentsApisRevisionsUndeployCall {
28729	c.urlParams_.Set("sequencedRollout", fmt.Sprint(sequencedRollout))
28730	return c
28731}
28732
28733// Fields allows partial responses to be retrieved. See
28734// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
28735// for more information.
28736func (c *OrganizationsEnvironmentsApisRevisionsUndeployCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsUndeployCall {
28737	c.urlParams_.Set("fields", googleapi.CombineFields(s))
28738	return c
28739}
28740
28741// Context sets the context to be used in this call's Do method. Any
28742// pending HTTP request will be aborted if the provided context is
28743// canceled.
28744func (c *OrganizationsEnvironmentsApisRevisionsUndeployCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsUndeployCall {
28745	c.ctx_ = ctx
28746	return c
28747}
28748
28749// Header returns an http.Header that can be modified by the caller to
28750// add HTTP headers to the request.
28751func (c *OrganizationsEnvironmentsApisRevisionsUndeployCall) Header() http.Header {
28752	if c.header_ == nil {
28753		c.header_ = make(http.Header)
28754	}
28755	return c.header_
28756}
28757
28758func (c *OrganizationsEnvironmentsApisRevisionsUndeployCall) doRequest(alt string) (*http.Response, error) {
28759	reqHeaders := make(http.Header)
28760	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
28761	for k, v := range c.header_ {
28762		reqHeaders[k] = v
28763	}
28764	reqHeaders.Set("User-Agent", c.s.userAgent())
28765	var body io.Reader = nil
28766	c.urlParams_.Set("alt", alt)
28767	c.urlParams_.Set("prettyPrint", "false")
28768	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments")
28769	urls += "?" + c.urlParams_.Encode()
28770	req, err := http.NewRequest("DELETE", urls, body)
28771	if err != nil {
28772		return nil, err
28773	}
28774	req.Header = reqHeaders
28775	googleapi.Expand(req.URL, map[string]string{
28776		"name": c.name,
28777	})
28778	return gensupport.SendRequest(c.ctx_, c.s.client, req)
28779}
28780
28781// Do executes the "apigee.organizations.environments.apis.revisions.undeploy" call.
28782// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
28783// non-2xx status code is an error. Response headers are in either
28784// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
28785// returned at all) in error.(*googleapi.Error).Header. Use
28786// googleapi.IsNotModified to check whether the returned error was
28787// because http.StatusNotModified was returned.
28788func (c *OrganizationsEnvironmentsApisRevisionsUndeployCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
28789	gensupport.SetOptions(c.urlParams_, opts...)
28790	res, err := c.doRequest("json")
28791	if res != nil && res.StatusCode == http.StatusNotModified {
28792		if res.Body != nil {
28793			res.Body.Close()
28794		}
28795		return nil, &googleapi.Error{
28796			Code:   res.StatusCode,
28797			Header: res.Header,
28798		}
28799	}
28800	if err != nil {
28801		return nil, err
28802	}
28803	defer googleapi.CloseBody(res)
28804	if err := googleapi.CheckResponse(res); err != nil {
28805		return nil, err
28806	}
28807	ret := &GoogleProtobufEmpty{
28808		ServerResponse: googleapi.ServerResponse{
28809			Header:         res.Header,
28810			HTTPStatusCode: res.StatusCode,
28811		},
28812	}
28813	target := &ret
28814	if err := gensupport.DecodeResponse(target, res); err != nil {
28815		return nil, err
28816	}
28817	return ret, nil
28818	// {
28819	//   "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}`",
28820	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/deployments",
28821	//   "httpMethod": "DELETE",
28822	//   "id": "apigee.organizations.environments.apis.revisions.undeploy",
28823	//   "parameterOrder": [
28824	//     "name"
28825	//   ],
28826	//   "parameters": {
28827	//     "name": {
28828	//       "description": "Required. Name of the API proxy revision deployment in the following format: `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`",
28829	//       "location": "path",
28830	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+$",
28831	//       "required": true,
28832	//       "type": "string"
28833	//     },
28834	//     "sequencedRollout": {
28835	//       "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.",
28836	//       "location": "query",
28837	//       "type": "boolean"
28838	//     }
28839	//   },
28840	//   "path": "v1/{+name}/deployments",
28841	//   "response": {
28842	//     "$ref": "GoogleProtobufEmpty"
28843	//   },
28844	//   "scopes": [
28845	//     "https://www.googleapis.com/auth/cloud-platform"
28846	//   ]
28847	// }
28848
28849}
28850
28851// method id "apigee.organizations.environments.apis.revisions.debugsessions.create":
28852
28853type OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall struct {
28854	s                               *Service
28855	parent                          string
28856	googlecloudapigeev1debugsession *GoogleCloudApigeeV1DebugSession
28857	urlParams_                      gensupport.URLParams
28858	ctx_                            context.Context
28859	header_                         http.Header
28860}
28861
28862// Create: Creates a debug session for a deployed API Proxy revision.
28863//
28864// - parent: The resource name of the API Proxy revision deployment for
28865//   which to create the DebugSession. Must be of the form
28866//   `organizations/{organization}/environments/{environment}/apis/{api}/
28867//   revisions/{revision}`.
28868func (r *OrganizationsEnvironmentsApisRevisionsDebugsessionsService) Create(parent string, googlecloudapigeev1debugsession *GoogleCloudApigeeV1DebugSession) *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall {
28869	c := &OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28870	c.parent = parent
28871	c.googlecloudapigeev1debugsession = googlecloudapigeev1debugsession
28872	return c
28873}
28874
28875// Timeout sets the optional parameter "timeout": The time in seconds
28876// after which this DebugSession should end. A timeout specified in
28877// DebugSession will overwrite this value.
28878func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) Timeout(timeout int64) *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall {
28879	c.urlParams_.Set("timeout", fmt.Sprint(timeout))
28880	return c
28881}
28882
28883// Fields allows partial responses to be retrieved. See
28884// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
28885// for more information.
28886func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall {
28887	c.urlParams_.Set("fields", googleapi.CombineFields(s))
28888	return c
28889}
28890
28891// Context sets the context to be used in this call's Do method. Any
28892// pending HTTP request will be aborted if the provided context is
28893// canceled.
28894func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall {
28895	c.ctx_ = ctx
28896	return c
28897}
28898
28899// Header returns an http.Header that can be modified by the caller to
28900// add HTTP headers to the request.
28901func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) Header() http.Header {
28902	if c.header_ == nil {
28903		c.header_ = make(http.Header)
28904	}
28905	return c.header_
28906}
28907
28908func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) doRequest(alt string) (*http.Response, error) {
28909	reqHeaders := make(http.Header)
28910	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
28911	for k, v := range c.header_ {
28912		reqHeaders[k] = v
28913	}
28914	reqHeaders.Set("User-Agent", c.s.userAgent())
28915	var body io.Reader = nil
28916	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1debugsession)
28917	if err != nil {
28918		return nil, err
28919	}
28920	reqHeaders.Set("Content-Type", "application/json")
28921	c.urlParams_.Set("alt", alt)
28922	c.urlParams_.Set("prettyPrint", "false")
28923	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/debugsessions")
28924	urls += "?" + c.urlParams_.Encode()
28925	req, err := http.NewRequest("POST", urls, body)
28926	if err != nil {
28927		return nil, err
28928	}
28929	req.Header = reqHeaders
28930	googleapi.Expand(req.URL, map[string]string{
28931		"parent": c.parent,
28932	})
28933	return gensupport.SendRequest(c.ctx_, c.s.client, req)
28934}
28935
28936// Do executes the "apigee.organizations.environments.apis.revisions.debugsessions.create" call.
28937// Exactly one of *GoogleCloudApigeeV1DebugSession or error will be
28938// non-nil. Any non-2xx status code is an error. Response headers are in
28939// either *GoogleCloudApigeeV1DebugSession.ServerResponse.Header or (if
28940// a response was returned at all) in error.(*googleapi.Error).Header.
28941// Use googleapi.IsNotModified to check whether the returned error was
28942// because http.StatusNotModified was returned.
28943func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DebugSession, error) {
28944	gensupport.SetOptions(c.urlParams_, opts...)
28945	res, err := c.doRequest("json")
28946	if res != nil && res.StatusCode == http.StatusNotModified {
28947		if res.Body != nil {
28948			res.Body.Close()
28949		}
28950		return nil, &googleapi.Error{
28951			Code:   res.StatusCode,
28952			Header: res.Header,
28953		}
28954	}
28955	if err != nil {
28956		return nil, err
28957	}
28958	defer googleapi.CloseBody(res)
28959	if err := googleapi.CheckResponse(res); err != nil {
28960		return nil, err
28961	}
28962	ret := &GoogleCloudApigeeV1DebugSession{
28963		ServerResponse: googleapi.ServerResponse{
28964			Header:         res.Header,
28965			HTTPStatusCode: res.StatusCode,
28966		},
28967	}
28968	target := &ret
28969	if err := gensupport.DecodeResponse(target, res); err != nil {
28970		return nil, err
28971	}
28972	return ret, nil
28973	// {
28974	//   "description": "Creates a debug session for a deployed API Proxy revision.",
28975	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/debugsessions",
28976	//   "httpMethod": "POST",
28977	//   "id": "apigee.organizations.environments.apis.revisions.debugsessions.create",
28978	//   "parameterOrder": [
28979	//     "parent"
28980	//   ],
28981	//   "parameters": {
28982	//     "parent": {
28983	//       "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}`.",
28984	//       "location": "path",
28985	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+$",
28986	//       "required": true,
28987	//       "type": "string"
28988	//     },
28989	//     "timeout": {
28990	//       "description": "Optional. The time in seconds after which this DebugSession should end. A timeout specified in DebugSession will overwrite this value.",
28991	//       "format": "int64",
28992	//       "location": "query",
28993	//       "type": "string"
28994	//     }
28995	//   },
28996	//   "path": "v1/{+parent}/debugsessions",
28997	//   "request": {
28998	//     "$ref": "GoogleCloudApigeeV1DebugSession"
28999	//   },
29000	//   "response": {
29001	//     "$ref": "GoogleCloudApigeeV1DebugSession"
29002	//   },
29003	//   "scopes": [
29004	//     "https://www.googleapis.com/auth/cloud-platform"
29005	//   ]
29006	// }
29007
29008}
29009
29010// method id "apigee.organizations.environments.apis.revisions.debugsessions.deleteData":
29011
29012type OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall struct {
29013	s          *Service
29014	name       string
29015	urlParams_ gensupport.URLParams
29016	ctx_       context.Context
29017	header_    http.Header
29018}
29019
29020// DeleteData: Deletes the data from a debug session. This does not
29021// cancel the debug session or prevent further data from being collected
29022// if the session is still active in runtime pods.
29023//
29024// - name: The name of the debug session to delete. Must be of the form:
29025//   `organizations/{organization}/environments/{environment}/apis/{api}/
29026//   revisions/{revision}/debugsessions/{debugsession}`.
29027func (r *OrganizationsEnvironmentsApisRevisionsDebugsessionsService) DeleteData(name string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall {
29028	c := &OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29029	c.name = name
29030	return c
29031}
29032
29033// Fields allows partial responses to be retrieved. See
29034// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
29035// for more information.
29036func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall {
29037	c.urlParams_.Set("fields", googleapi.CombineFields(s))
29038	return c
29039}
29040
29041// Context sets the context to be used in this call's Do method. Any
29042// pending HTTP request will be aborted if the provided context is
29043// canceled.
29044func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall {
29045	c.ctx_ = ctx
29046	return c
29047}
29048
29049// Header returns an http.Header that can be modified by the caller to
29050// add HTTP headers to the request.
29051func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall) Header() http.Header {
29052	if c.header_ == nil {
29053		c.header_ = make(http.Header)
29054	}
29055	return c.header_
29056}
29057
29058func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall) doRequest(alt string) (*http.Response, error) {
29059	reqHeaders := make(http.Header)
29060	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
29061	for k, v := range c.header_ {
29062		reqHeaders[k] = v
29063	}
29064	reqHeaders.Set("User-Agent", c.s.userAgent())
29065	var body io.Reader = nil
29066	c.urlParams_.Set("alt", alt)
29067	c.urlParams_.Set("prettyPrint", "false")
29068	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/data")
29069	urls += "?" + c.urlParams_.Encode()
29070	req, err := http.NewRequest("DELETE", urls, body)
29071	if err != nil {
29072		return nil, err
29073	}
29074	req.Header = reqHeaders
29075	googleapi.Expand(req.URL, map[string]string{
29076		"name": c.name,
29077	})
29078	return gensupport.SendRequest(c.ctx_, c.s.client, req)
29079}
29080
29081// Do executes the "apigee.organizations.environments.apis.revisions.debugsessions.deleteData" call.
29082// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
29083// non-2xx status code is an error. Response headers are in either
29084// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
29085// returned at all) in error.(*googleapi.Error).Header. Use
29086// googleapi.IsNotModified to check whether the returned error was
29087// because http.StatusNotModified was returned.
29088func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
29089	gensupport.SetOptions(c.urlParams_, opts...)
29090	res, err := c.doRequest("json")
29091	if res != nil && res.StatusCode == http.StatusNotModified {
29092		if res.Body != nil {
29093			res.Body.Close()
29094		}
29095		return nil, &googleapi.Error{
29096			Code:   res.StatusCode,
29097			Header: res.Header,
29098		}
29099	}
29100	if err != nil {
29101		return nil, err
29102	}
29103	defer googleapi.CloseBody(res)
29104	if err := googleapi.CheckResponse(res); err != nil {
29105		return nil, err
29106	}
29107	ret := &GoogleProtobufEmpty{
29108		ServerResponse: googleapi.ServerResponse{
29109			Header:         res.Header,
29110			HTTPStatusCode: res.StatusCode,
29111		},
29112	}
29113	target := &ret
29114	if err := gensupport.DecodeResponse(target, res); err != nil {
29115		return nil, err
29116	}
29117	return ret, nil
29118	// {
29119	//   "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.",
29120	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/debugsessions/{debugsessionsId}/data",
29121	//   "httpMethod": "DELETE",
29122	//   "id": "apigee.organizations.environments.apis.revisions.debugsessions.deleteData",
29123	//   "parameterOrder": [
29124	//     "name"
29125	//   ],
29126	//   "parameters": {
29127	//     "name": {
29128	//       "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}`.",
29129	//       "location": "path",
29130	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+/debugsessions/[^/]+$",
29131	//       "required": true,
29132	//       "type": "string"
29133	//     }
29134	//   },
29135	//   "path": "v1/{+name}/data",
29136	//   "response": {
29137	//     "$ref": "GoogleProtobufEmpty"
29138	//   },
29139	//   "scopes": [
29140	//     "https://www.googleapis.com/auth/cloud-platform"
29141	//   ]
29142	// }
29143
29144}
29145
29146// method id "apigee.organizations.environments.apis.revisions.debugsessions.get":
29147
29148type OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall struct {
29149	s            *Service
29150	name         string
29151	urlParams_   gensupport.URLParams
29152	ifNoneMatch_ string
29153	ctx_         context.Context
29154	header_      http.Header
29155}
29156
29157// Get: Retrieves a debug session.
29158//
29159// - name: The name of the debug session to retrieve. Must be of the
29160//   form:
29161//   `organizations/{organization}/environments/{environment}/apis/{api}/
29162//   revisions/{revision}/debugsessions/{session}`.
29163func (r *OrganizationsEnvironmentsApisRevisionsDebugsessionsService) Get(name string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall {
29164	c := &OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29165	c.name = name
29166	return c
29167}
29168
29169// Fields allows partial responses to be retrieved. See
29170// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
29171// for more information.
29172func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall {
29173	c.urlParams_.Set("fields", googleapi.CombineFields(s))
29174	return c
29175}
29176
29177// IfNoneMatch sets the optional parameter which makes the operation
29178// fail if the object's ETag matches the given value. This is useful for
29179// getting updates only after the object has changed since the last
29180// request. Use googleapi.IsNotModified to check whether the response
29181// error from Do is the result of In-None-Match.
29182func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall {
29183	c.ifNoneMatch_ = entityTag
29184	return c
29185}
29186
29187// Context sets the context to be used in this call's Do method. Any
29188// pending HTTP request will be aborted if the provided context is
29189// canceled.
29190func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall {
29191	c.ctx_ = ctx
29192	return c
29193}
29194
29195// Header returns an http.Header that can be modified by the caller to
29196// add HTTP headers to the request.
29197func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall) Header() http.Header {
29198	if c.header_ == nil {
29199		c.header_ = make(http.Header)
29200	}
29201	return c.header_
29202}
29203
29204func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall) doRequest(alt string) (*http.Response, error) {
29205	reqHeaders := make(http.Header)
29206	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
29207	for k, v := range c.header_ {
29208		reqHeaders[k] = v
29209	}
29210	reqHeaders.Set("User-Agent", c.s.userAgent())
29211	if c.ifNoneMatch_ != "" {
29212		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
29213	}
29214	var body io.Reader = nil
29215	c.urlParams_.Set("alt", alt)
29216	c.urlParams_.Set("prettyPrint", "false")
29217	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
29218	urls += "?" + c.urlParams_.Encode()
29219	req, err := http.NewRequest("GET", urls, body)
29220	if err != nil {
29221		return nil, err
29222	}
29223	req.Header = reqHeaders
29224	googleapi.Expand(req.URL, map[string]string{
29225		"name": c.name,
29226	})
29227	return gensupport.SendRequest(c.ctx_, c.s.client, req)
29228}
29229
29230// Do executes the "apigee.organizations.environments.apis.revisions.debugsessions.get" call.
29231// Exactly one of *GoogleCloudApigeeV1DebugSession or error will be
29232// non-nil. Any non-2xx status code is an error. Response headers are in
29233// either *GoogleCloudApigeeV1DebugSession.ServerResponse.Header or (if
29234// a response was returned at all) in error.(*googleapi.Error).Header.
29235// Use googleapi.IsNotModified to check whether the returned error was
29236// because http.StatusNotModified was returned.
29237func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DebugSession, error) {
29238	gensupport.SetOptions(c.urlParams_, opts...)
29239	res, err := c.doRequest("json")
29240	if res != nil && res.StatusCode == http.StatusNotModified {
29241		if res.Body != nil {
29242			res.Body.Close()
29243		}
29244		return nil, &googleapi.Error{
29245			Code:   res.StatusCode,
29246			Header: res.Header,
29247		}
29248	}
29249	if err != nil {
29250		return nil, err
29251	}
29252	defer googleapi.CloseBody(res)
29253	if err := googleapi.CheckResponse(res); err != nil {
29254		return nil, err
29255	}
29256	ret := &GoogleCloudApigeeV1DebugSession{
29257		ServerResponse: googleapi.ServerResponse{
29258			Header:         res.Header,
29259			HTTPStatusCode: res.StatusCode,
29260		},
29261	}
29262	target := &ret
29263	if err := gensupport.DecodeResponse(target, res); err != nil {
29264		return nil, err
29265	}
29266	return ret, nil
29267	// {
29268	//   "description": "Retrieves a debug session.",
29269	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/debugsessions/{debugsessionsId}",
29270	//   "httpMethod": "GET",
29271	//   "id": "apigee.organizations.environments.apis.revisions.debugsessions.get",
29272	//   "parameterOrder": [
29273	//     "name"
29274	//   ],
29275	//   "parameters": {
29276	//     "name": {
29277	//       "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}`.",
29278	//       "location": "path",
29279	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+/debugsessions/[^/]+$",
29280	//       "required": true,
29281	//       "type": "string"
29282	//     }
29283	//   },
29284	//   "path": "v1/{+name}",
29285	//   "response": {
29286	//     "$ref": "GoogleCloudApigeeV1DebugSession"
29287	//   },
29288	//   "scopes": [
29289	//     "https://www.googleapis.com/auth/cloud-platform"
29290	//   ]
29291	// }
29292
29293}
29294
29295// method id "apigee.organizations.environments.apis.revisions.debugsessions.list":
29296
29297type OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall struct {
29298	s            *Service
29299	parent       string
29300	urlParams_   gensupport.URLParams
29301	ifNoneMatch_ string
29302	ctx_         context.Context
29303	header_      http.Header
29304}
29305
29306// List: Lists debug sessions that are currently active in the given API
29307// Proxy revision.
29308//
29309// - parent: The name of the API Proxy revision deployment for which to
29310//   list debug sessions. Must be of the form:
29311//   `organizations/{organization}/environments/{environment}/apis/{api}/
29312//   revisions/{revision}`.
29313func (r *OrganizationsEnvironmentsApisRevisionsDebugsessionsService) List(parent string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall {
29314	c := &OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29315	c.parent = parent
29316	return c
29317}
29318
29319// PageSize sets the optional parameter "pageSize": Maximum number of
29320// debug sessions to return. The page size defaults to 25.
29321func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) PageSize(pageSize int64) *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall {
29322	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
29323	return c
29324}
29325
29326// PageToken sets the optional parameter "pageToken": Page token,
29327// returned from a previous ListDebugSessions call, that you can use to
29328// retrieve the next page.
29329func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) PageToken(pageToken string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall {
29330	c.urlParams_.Set("pageToken", pageToken)
29331	return c
29332}
29333
29334// Fields allows partial responses to be retrieved. See
29335// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
29336// for more information.
29337func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall {
29338	c.urlParams_.Set("fields", googleapi.CombineFields(s))
29339	return c
29340}
29341
29342// IfNoneMatch sets the optional parameter which makes the operation
29343// fail if the object's ETag matches the given value. This is useful for
29344// getting updates only after the object has changed since the last
29345// request. Use googleapi.IsNotModified to check whether the response
29346// error from Do is the result of In-None-Match.
29347func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall {
29348	c.ifNoneMatch_ = entityTag
29349	return c
29350}
29351
29352// Context sets the context to be used in this call's Do method. Any
29353// pending HTTP request will be aborted if the provided context is
29354// canceled.
29355func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall {
29356	c.ctx_ = ctx
29357	return c
29358}
29359
29360// Header returns an http.Header that can be modified by the caller to
29361// add HTTP headers to the request.
29362func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) Header() http.Header {
29363	if c.header_ == nil {
29364		c.header_ = make(http.Header)
29365	}
29366	return c.header_
29367}
29368
29369func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) doRequest(alt string) (*http.Response, error) {
29370	reqHeaders := make(http.Header)
29371	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
29372	for k, v := range c.header_ {
29373		reqHeaders[k] = v
29374	}
29375	reqHeaders.Set("User-Agent", c.s.userAgent())
29376	if c.ifNoneMatch_ != "" {
29377		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
29378	}
29379	var body io.Reader = nil
29380	c.urlParams_.Set("alt", alt)
29381	c.urlParams_.Set("prettyPrint", "false")
29382	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/debugsessions")
29383	urls += "?" + c.urlParams_.Encode()
29384	req, err := http.NewRequest("GET", urls, body)
29385	if err != nil {
29386		return nil, err
29387	}
29388	req.Header = reqHeaders
29389	googleapi.Expand(req.URL, map[string]string{
29390		"parent": c.parent,
29391	})
29392	return gensupport.SendRequest(c.ctx_, c.s.client, req)
29393}
29394
29395// Do executes the "apigee.organizations.environments.apis.revisions.debugsessions.list" call.
29396// Exactly one of *GoogleCloudApigeeV1ListDebugSessionsResponse or error
29397// will be non-nil. Any non-2xx status code is an error. Response
29398// headers are in either
29399// *GoogleCloudApigeeV1ListDebugSessionsResponse.ServerResponse.Header
29400// or (if a response was returned at all) in
29401// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
29402// whether the returned error was because http.StatusNotModified was
29403// returned.
29404func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDebugSessionsResponse, error) {
29405	gensupport.SetOptions(c.urlParams_, opts...)
29406	res, err := c.doRequest("json")
29407	if res != nil && res.StatusCode == http.StatusNotModified {
29408		if res.Body != nil {
29409			res.Body.Close()
29410		}
29411		return nil, &googleapi.Error{
29412			Code:   res.StatusCode,
29413			Header: res.Header,
29414		}
29415	}
29416	if err != nil {
29417		return nil, err
29418	}
29419	defer googleapi.CloseBody(res)
29420	if err := googleapi.CheckResponse(res); err != nil {
29421		return nil, err
29422	}
29423	ret := &GoogleCloudApigeeV1ListDebugSessionsResponse{
29424		ServerResponse: googleapi.ServerResponse{
29425			Header:         res.Header,
29426			HTTPStatusCode: res.StatusCode,
29427		},
29428	}
29429	target := &ret
29430	if err := gensupport.DecodeResponse(target, res); err != nil {
29431		return nil, err
29432	}
29433	return ret, nil
29434	// {
29435	//   "description": "Lists debug sessions that are currently active in the given API Proxy revision.",
29436	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/debugsessions",
29437	//   "httpMethod": "GET",
29438	//   "id": "apigee.organizations.environments.apis.revisions.debugsessions.list",
29439	//   "parameterOrder": [
29440	//     "parent"
29441	//   ],
29442	//   "parameters": {
29443	//     "pageSize": {
29444	//       "description": "Maximum number of debug sessions to return. The page size defaults to 25.",
29445	//       "format": "int32",
29446	//       "location": "query",
29447	//       "type": "integer"
29448	//     },
29449	//     "pageToken": {
29450	//       "description": "Page token, returned from a previous ListDebugSessions call, that you can use to retrieve the next page.",
29451	//       "location": "query",
29452	//       "type": "string"
29453	//     },
29454	//     "parent": {
29455	//       "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}`.",
29456	//       "location": "path",
29457	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+$",
29458	//       "required": true,
29459	//       "type": "string"
29460	//     }
29461	//   },
29462	//   "path": "v1/{+parent}/debugsessions",
29463	//   "response": {
29464	//     "$ref": "GoogleCloudApigeeV1ListDebugSessionsResponse"
29465	//   },
29466	//   "scopes": [
29467	//     "https://www.googleapis.com/auth/cloud-platform"
29468	//   ]
29469	// }
29470
29471}
29472
29473// Pages invokes f for each page of results.
29474// A non-nil error returned from f will halt the iteration.
29475// The provided context supersedes any context provided to the Context method.
29476func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListDebugSessionsResponse) error) error {
29477	c.ctx_ = ctx
29478	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
29479	for {
29480		x, err := c.Do()
29481		if err != nil {
29482			return err
29483		}
29484		if err := f(x); err != nil {
29485			return err
29486		}
29487		if x.NextPageToken == "" {
29488			return nil
29489		}
29490		c.PageToken(x.NextPageToken)
29491	}
29492}
29493
29494// method id "apigee.organizations.environments.apis.revisions.debugsessions.data.get":
29495
29496type OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall struct {
29497	s            *Service
29498	name         string
29499	urlParams_   gensupport.URLParams
29500	ifNoneMatch_ string
29501	ctx_         context.Context
29502	header_      http.Header
29503}
29504
29505// Get: Gets the debug data from a transaction.
29506//
29507// - name: The name of the debug session transaction. Must be of the
29508//   form:
29509//   `organizations/{organization}/environments/{environment}/apis/{api}/
29510//   revisions/{revision}/debugsessions/{session}/data/{transaction}`.
29511func (r *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataService) Get(name string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall {
29512	c := &OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29513	c.name = name
29514	return c
29515}
29516
29517// Fields allows partial responses to be retrieved. See
29518// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
29519// for more information.
29520func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall {
29521	c.urlParams_.Set("fields", googleapi.CombineFields(s))
29522	return c
29523}
29524
29525// IfNoneMatch sets the optional parameter which makes the operation
29526// fail if the object's ETag matches the given value. This is useful for
29527// getting updates only after the object has changed since the last
29528// request. Use googleapi.IsNotModified to check whether the response
29529// error from Do is the result of In-None-Match.
29530func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall {
29531	c.ifNoneMatch_ = entityTag
29532	return c
29533}
29534
29535// Context sets the context to be used in this call's Do method. Any
29536// pending HTTP request will be aborted if the provided context is
29537// canceled.
29538func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall {
29539	c.ctx_ = ctx
29540	return c
29541}
29542
29543// Header returns an http.Header that can be modified by the caller to
29544// add HTTP headers to the request.
29545func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) Header() http.Header {
29546	if c.header_ == nil {
29547		c.header_ = make(http.Header)
29548	}
29549	return c.header_
29550}
29551
29552func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) doRequest(alt string) (*http.Response, error) {
29553	reqHeaders := make(http.Header)
29554	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
29555	for k, v := range c.header_ {
29556		reqHeaders[k] = v
29557	}
29558	reqHeaders.Set("User-Agent", c.s.userAgent())
29559	if c.ifNoneMatch_ != "" {
29560		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
29561	}
29562	var body io.Reader = nil
29563	c.urlParams_.Set("alt", alt)
29564	c.urlParams_.Set("prettyPrint", "false")
29565	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
29566	urls += "?" + c.urlParams_.Encode()
29567	req, err := http.NewRequest("GET", urls, body)
29568	if err != nil {
29569		return nil, err
29570	}
29571	req.Header = reqHeaders
29572	googleapi.Expand(req.URL, map[string]string{
29573		"name": c.name,
29574	})
29575	return gensupport.SendRequest(c.ctx_, c.s.client, req)
29576}
29577
29578// Do executes the "apigee.organizations.environments.apis.revisions.debugsessions.data.get" call.
29579// Exactly one of *GoogleCloudApigeeV1DebugSessionTransaction or error
29580// will be non-nil. Any non-2xx status code is an error. Response
29581// headers are in either
29582// *GoogleCloudApigeeV1DebugSessionTransaction.ServerResponse.Header or
29583// (if a response was returned at all) in
29584// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
29585// whether the returned error was because http.StatusNotModified was
29586// returned.
29587func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DebugSessionTransaction, error) {
29588	gensupport.SetOptions(c.urlParams_, opts...)
29589	res, err := c.doRequest("json")
29590	if res != nil && res.StatusCode == http.StatusNotModified {
29591		if res.Body != nil {
29592			res.Body.Close()
29593		}
29594		return nil, &googleapi.Error{
29595			Code:   res.StatusCode,
29596			Header: res.Header,
29597		}
29598	}
29599	if err != nil {
29600		return nil, err
29601	}
29602	defer googleapi.CloseBody(res)
29603	if err := googleapi.CheckResponse(res); err != nil {
29604		return nil, err
29605	}
29606	ret := &GoogleCloudApigeeV1DebugSessionTransaction{
29607		ServerResponse: googleapi.ServerResponse{
29608			Header:         res.Header,
29609			HTTPStatusCode: res.StatusCode,
29610		},
29611	}
29612	target := &ret
29613	if err := gensupport.DecodeResponse(target, res); err != nil {
29614		return nil, err
29615	}
29616	return ret, nil
29617	// {
29618	//   "description": "Gets the debug data from a transaction.",
29619	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/debugsessions/{debugsessionsId}/data/{dataId}",
29620	//   "httpMethod": "GET",
29621	//   "id": "apigee.organizations.environments.apis.revisions.debugsessions.data.get",
29622	//   "parameterOrder": [
29623	//     "name"
29624	//   ],
29625	//   "parameters": {
29626	//     "name": {
29627	//       "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}`.",
29628	//       "location": "path",
29629	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+/debugsessions/[^/]+/data/[^/]+$",
29630	//       "required": true,
29631	//       "type": "string"
29632	//     }
29633	//   },
29634	//   "path": "v1/{+name}",
29635	//   "response": {
29636	//     "$ref": "GoogleCloudApigeeV1DebugSessionTransaction"
29637	//   },
29638	//   "scopes": [
29639	//     "https://www.googleapis.com/auth/cloud-platform"
29640	//   ]
29641	// }
29642
29643}
29644
29645// method id "apigee.organizations.environments.apis.revisions.deployments.generateDeployChangeReport":
29646
29647type OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall struct {
29648	s          *Service
29649	name       string
29650	urlParams_ gensupport.URLParams
29651	ctx_       context.Context
29652	header_    http.Header
29653}
29654
29655// GenerateDeployChangeReport: Generates a report for a dry run analysis
29656// of a DeployApiProxy request without committing the deployment. In
29657// addition to the standard validations performed when adding
29658// deployments, additional analysis will be done to detect possible
29659// traffic routing changes that would result from this deployment being
29660// created. Any potential routing conflicts or unsafe changes will be
29661// reported in the response. This routing analysis is not performed for
29662// a non-dry-run DeployApiProxy request. For a request path
29663// `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}/dep
29664// loyments:generateDeployChangeReport`, two permissions are required: *
29665// `apigee.deployments.create` on the resource
29666// `organizations/{org}/environments/{env}` *
29667// `apigee.proxyrevisions.deploy` on the resource
29668// `organizations/{org}/apis/{api}/revisions/{rev}`
29669//
29670// - name: Name of the API proxy revision deployment in the following
29671//   format:
29672//   `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`.
29673func (r *OrganizationsEnvironmentsApisRevisionsDeploymentsService) GenerateDeployChangeReport(name string) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall {
29674	c := &OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29675	c.name = name
29676	return c
29677}
29678
29679// Override sets the optional parameter "override": Flag that specifies
29680// whether to force the deployment of the new revision over the
29681// currently deployed revision by overriding conflict checks.
29682func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall) Override(override bool) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall {
29683	c.urlParams_.Set("override", fmt.Sprint(override))
29684	return c
29685}
29686
29687// Fields allows partial responses to be retrieved. See
29688// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
29689// for more information.
29690func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall {
29691	c.urlParams_.Set("fields", googleapi.CombineFields(s))
29692	return c
29693}
29694
29695// Context sets the context to be used in this call's Do method. Any
29696// pending HTTP request will be aborted if the provided context is
29697// canceled.
29698func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall {
29699	c.ctx_ = ctx
29700	return c
29701}
29702
29703// Header returns an http.Header that can be modified by the caller to
29704// add HTTP headers to the request.
29705func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall) Header() http.Header {
29706	if c.header_ == nil {
29707		c.header_ = make(http.Header)
29708	}
29709	return c.header_
29710}
29711
29712func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall) doRequest(alt string) (*http.Response, error) {
29713	reqHeaders := make(http.Header)
29714	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
29715	for k, v := range c.header_ {
29716		reqHeaders[k] = v
29717	}
29718	reqHeaders.Set("User-Agent", c.s.userAgent())
29719	var body io.Reader = nil
29720	c.urlParams_.Set("alt", alt)
29721	c.urlParams_.Set("prettyPrint", "false")
29722	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments:generateDeployChangeReport")
29723	urls += "?" + c.urlParams_.Encode()
29724	req, err := http.NewRequest("POST", urls, body)
29725	if err != nil {
29726		return nil, err
29727	}
29728	req.Header = reqHeaders
29729	googleapi.Expand(req.URL, map[string]string{
29730		"name": c.name,
29731	})
29732	return gensupport.SendRequest(c.ctx_, c.s.client, req)
29733}
29734
29735// Do executes the "apigee.organizations.environments.apis.revisions.deployments.generateDeployChangeReport" call.
29736// Exactly one of *GoogleCloudApigeeV1DeploymentChangeReport or error
29737// will be non-nil. Any non-2xx status code is an error. Response
29738// headers are in either
29739// *GoogleCloudApigeeV1DeploymentChangeReport.ServerResponse.Header or
29740// (if a response was returned at all) in
29741// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
29742// whether the returned error was because http.StatusNotModified was
29743// returned.
29744func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeploymentChangeReport, error) {
29745	gensupport.SetOptions(c.urlParams_, opts...)
29746	res, err := c.doRequest("json")
29747	if res != nil && res.StatusCode == http.StatusNotModified {
29748		if res.Body != nil {
29749			res.Body.Close()
29750		}
29751		return nil, &googleapi.Error{
29752			Code:   res.StatusCode,
29753			Header: res.Header,
29754		}
29755	}
29756	if err != nil {
29757		return nil, err
29758	}
29759	defer googleapi.CloseBody(res)
29760	if err := googleapi.CheckResponse(res); err != nil {
29761		return nil, err
29762	}
29763	ret := &GoogleCloudApigeeV1DeploymentChangeReport{
29764		ServerResponse: googleapi.ServerResponse{
29765			Header:         res.Header,
29766			HTTPStatusCode: res.StatusCode,
29767		},
29768	}
29769	target := &ret
29770	if err := gensupport.DecodeResponse(target, res); err != nil {
29771		return nil, err
29772	}
29773	return ret, nil
29774	// {
29775	//   "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}`",
29776	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/deployments:generateDeployChangeReport",
29777	//   "httpMethod": "POST",
29778	//   "id": "apigee.organizations.environments.apis.revisions.deployments.generateDeployChangeReport",
29779	//   "parameterOrder": [
29780	//     "name"
29781	//   ],
29782	//   "parameters": {
29783	//     "name": {
29784	//       "description": "Name of the API proxy revision deployment in the following format: `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`",
29785	//       "location": "path",
29786	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+$",
29787	//       "required": true,
29788	//       "type": "string"
29789	//     },
29790	//     "override": {
29791	//       "description": "Flag that specifies whether to force the deployment of the new revision over the currently deployed revision by overriding conflict checks.",
29792	//       "location": "query",
29793	//       "type": "boolean"
29794	//     }
29795	//   },
29796	//   "path": "v1/{+name}/deployments:generateDeployChangeReport",
29797	//   "response": {
29798	//     "$ref": "GoogleCloudApigeeV1DeploymentChangeReport"
29799	//   },
29800	//   "scopes": [
29801	//     "https://www.googleapis.com/auth/cloud-platform"
29802	//   ]
29803	// }
29804
29805}
29806
29807// method id "apigee.organizations.environments.apis.revisions.deployments.generateUndeployChangeReport":
29808
29809type OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall struct {
29810	s          *Service
29811	name       string
29812	urlParams_ gensupport.URLParams
29813	ctx_       context.Context
29814	header_    http.Header
29815}
29816
29817// GenerateUndeployChangeReport: Generates a report for a dry run
29818// analysis of an UndeployApiProxy request without committing the
29819// undeploy. In addition to the standard validations performed when
29820// removing deployments, additional analysis will be done to detect
29821// possible traffic routing changes that would result from this
29822// deployment being removed. Any potential routing conflicts or unsafe
29823// changes will be reported in the response. This routing analysis is
29824// not performed for a non-dry-run UndeployApiProxy request. For a
29825// request path
29826// `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}/dep
29827// loyments:generateUndeployChangeReport`, two permissions are required:
29828// * `apigee.deployments.delete` on the resource
29829// `organizations/{org}/environments/{env}` *
29830// `apigee.proxyrevisions.undeploy` on the resource
29831// `organizations/{org}/apis/{api}/revisions/{rev}`
29832//
29833// - name: Name of the API proxy revision deployment in the following
29834//   format:
29835//   `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`.
29836func (r *OrganizationsEnvironmentsApisRevisionsDeploymentsService) GenerateUndeployChangeReport(name string) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall {
29837	c := &OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29838	c.name = name
29839	return c
29840}
29841
29842// Fields allows partial responses to be retrieved. See
29843// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
29844// for more information.
29845func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall {
29846	c.urlParams_.Set("fields", googleapi.CombineFields(s))
29847	return c
29848}
29849
29850// Context sets the context to be used in this call's Do method. Any
29851// pending HTTP request will be aborted if the provided context is
29852// canceled.
29853func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall {
29854	c.ctx_ = ctx
29855	return c
29856}
29857
29858// Header returns an http.Header that can be modified by the caller to
29859// add HTTP headers to the request.
29860func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall) Header() http.Header {
29861	if c.header_ == nil {
29862		c.header_ = make(http.Header)
29863	}
29864	return c.header_
29865}
29866
29867func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall) doRequest(alt string) (*http.Response, error) {
29868	reqHeaders := make(http.Header)
29869	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
29870	for k, v := range c.header_ {
29871		reqHeaders[k] = v
29872	}
29873	reqHeaders.Set("User-Agent", c.s.userAgent())
29874	var body io.Reader = nil
29875	c.urlParams_.Set("alt", alt)
29876	c.urlParams_.Set("prettyPrint", "false")
29877	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments:generateUndeployChangeReport")
29878	urls += "?" + c.urlParams_.Encode()
29879	req, err := http.NewRequest("POST", urls, body)
29880	if err != nil {
29881		return nil, err
29882	}
29883	req.Header = reqHeaders
29884	googleapi.Expand(req.URL, map[string]string{
29885		"name": c.name,
29886	})
29887	return gensupport.SendRequest(c.ctx_, c.s.client, req)
29888}
29889
29890// Do executes the "apigee.organizations.environments.apis.revisions.deployments.generateUndeployChangeReport" call.
29891// Exactly one of *GoogleCloudApigeeV1DeploymentChangeReport or error
29892// will be non-nil. Any non-2xx status code is an error. Response
29893// headers are in either
29894// *GoogleCloudApigeeV1DeploymentChangeReport.ServerResponse.Header or
29895// (if a response was returned at all) in
29896// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
29897// whether the returned error was because http.StatusNotModified was
29898// returned.
29899func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeploymentChangeReport, error) {
29900	gensupport.SetOptions(c.urlParams_, opts...)
29901	res, err := c.doRequest("json")
29902	if res != nil && res.StatusCode == http.StatusNotModified {
29903		if res.Body != nil {
29904			res.Body.Close()
29905		}
29906		return nil, &googleapi.Error{
29907			Code:   res.StatusCode,
29908			Header: res.Header,
29909		}
29910	}
29911	if err != nil {
29912		return nil, err
29913	}
29914	defer googleapi.CloseBody(res)
29915	if err := googleapi.CheckResponse(res); err != nil {
29916		return nil, err
29917	}
29918	ret := &GoogleCloudApigeeV1DeploymentChangeReport{
29919		ServerResponse: googleapi.ServerResponse{
29920			Header:         res.Header,
29921			HTTPStatusCode: res.StatusCode,
29922		},
29923	}
29924	target := &ret
29925	if err := gensupport.DecodeResponse(target, res); err != nil {
29926		return nil, err
29927	}
29928	return ret, nil
29929	// {
29930	//   "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}`",
29931	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/deployments:generateUndeployChangeReport",
29932	//   "httpMethod": "POST",
29933	//   "id": "apigee.organizations.environments.apis.revisions.deployments.generateUndeployChangeReport",
29934	//   "parameterOrder": [
29935	//     "name"
29936	//   ],
29937	//   "parameters": {
29938	//     "name": {
29939	//       "description": "Name of the API proxy revision deployment in the following format: `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`",
29940	//       "location": "path",
29941	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+$",
29942	//       "required": true,
29943	//       "type": "string"
29944	//     }
29945	//   },
29946	//   "path": "v1/{+name}/deployments:generateUndeployChangeReport",
29947	//   "response": {
29948	//     "$ref": "GoogleCloudApigeeV1DeploymentChangeReport"
29949	//   },
29950	//   "scopes": [
29951	//     "https://www.googleapis.com/auth/cloud-platform"
29952	//   ]
29953	// }
29954
29955}
29956
29957// method id "apigee.organizations.environments.archiveDeployments.create":
29958
29959type OrganizationsEnvironmentsArchiveDeploymentsCreateCall struct {
29960	s                                    *Service
29961	parent                               string
29962	googlecloudapigeev1archivedeployment *GoogleCloudApigeeV1ArchiveDeployment
29963	urlParams_                           gensupport.URLParams
29964	ctx_                                 context.Context
29965	header_                              http.Header
29966}
29967
29968// Create: Creates a new ArchiveDeployment.
29969//
29970// - parent: The Environment this Archive Deployment will be created in.
29971func (r *OrganizationsEnvironmentsArchiveDeploymentsService) Create(parent string, googlecloudapigeev1archivedeployment *GoogleCloudApigeeV1ArchiveDeployment) *OrganizationsEnvironmentsArchiveDeploymentsCreateCall {
29972	c := &OrganizationsEnvironmentsArchiveDeploymentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29973	c.parent = parent
29974	c.googlecloudapigeev1archivedeployment = googlecloudapigeev1archivedeployment
29975	return c
29976}
29977
29978// Fields allows partial responses to be retrieved. See
29979// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
29980// for more information.
29981func (c *OrganizationsEnvironmentsArchiveDeploymentsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsArchiveDeploymentsCreateCall {
29982	c.urlParams_.Set("fields", googleapi.CombineFields(s))
29983	return c
29984}
29985
29986// Context sets the context to be used in this call's Do method. Any
29987// pending HTTP request will be aborted if the provided context is
29988// canceled.
29989func (c *OrganizationsEnvironmentsArchiveDeploymentsCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsArchiveDeploymentsCreateCall {
29990	c.ctx_ = ctx
29991	return c
29992}
29993
29994// Header returns an http.Header that can be modified by the caller to
29995// add HTTP headers to the request.
29996func (c *OrganizationsEnvironmentsArchiveDeploymentsCreateCall) Header() http.Header {
29997	if c.header_ == nil {
29998		c.header_ = make(http.Header)
29999	}
30000	return c.header_
30001}
30002
30003func (c *OrganizationsEnvironmentsArchiveDeploymentsCreateCall) doRequest(alt string) (*http.Response, error) {
30004	reqHeaders := make(http.Header)
30005	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
30006	for k, v := range c.header_ {
30007		reqHeaders[k] = v
30008	}
30009	reqHeaders.Set("User-Agent", c.s.userAgent())
30010	var body io.Reader = nil
30011	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1archivedeployment)
30012	if err != nil {
30013		return nil, err
30014	}
30015	reqHeaders.Set("Content-Type", "application/json")
30016	c.urlParams_.Set("alt", alt)
30017	c.urlParams_.Set("prettyPrint", "false")
30018	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/archiveDeployments")
30019	urls += "?" + c.urlParams_.Encode()
30020	req, err := http.NewRequest("POST", urls, body)
30021	if err != nil {
30022		return nil, err
30023	}
30024	req.Header = reqHeaders
30025	googleapi.Expand(req.URL, map[string]string{
30026		"parent": c.parent,
30027	})
30028	return gensupport.SendRequest(c.ctx_, c.s.client, req)
30029}
30030
30031// Do executes the "apigee.organizations.environments.archiveDeployments.create" call.
30032// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
30033// Any non-2xx status code is an error. Response headers are in either
30034// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
30035// was returned at all) in error.(*googleapi.Error).Header. Use
30036// googleapi.IsNotModified to check whether the returned error was
30037// because http.StatusNotModified was returned.
30038func (c *OrganizationsEnvironmentsArchiveDeploymentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
30039	gensupport.SetOptions(c.urlParams_, opts...)
30040	res, err := c.doRequest("json")
30041	if res != nil && res.StatusCode == http.StatusNotModified {
30042		if res.Body != nil {
30043			res.Body.Close()
30044		}
30045		return nil, &googleapi.Error{
30046			Code:   res.StatusCode,
30047			Header: res.Header,
30048		}
30049	}
30050	if err != nil {
30051		return nil, err
30052	}
30053	defer googleapi.CloseBody(res)
30054	if err := googleapi.CheckResponse(res); err != nil {
30055		return nil, err
30056	}
30057	ret := &GoogleLongrunningOperation{
30058		ServerResponse: googleapi.ServerResponse{
30059			Header:         res.Header,
30060			HTTPStatusCode: res.StatusCode,
30061		},
30062	}
30063	target := &ret
30064	if err := gensupport.DecodeResponse(target, res); err != nil {
30065		return nil, err
30066	}
30067	return ret, nil
30068	// {
30069	//   "description": "Creates a new ArchiveDeployment.",
30070	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/archiveDeployments",
30071	//   "httpMethod": "POST",
30072	//   "id": "apigee.organizations.environments.archiveDeployments.create",
30073	//   "parameterOrder": [
30074	//     "parent"
30075	//   ],
30076	//   "parameters": {
30077	//     "parent": {
30078	//       "description": "Required. The Environment this Archive Deployment will be created in.",
30079	//       "location": "path",
30080	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
30081	//       "required": true,
30082	//       "type": "string"
30083	//     }
30084	//   },
30085	//   "path": "v1/{+parent}/archiveDeployments",
30086	//   "request": {
30087	//     "$ref": "GoogleCloudApigeeV1ArchiveDeployment"
30088	//   },
30089	//   "response": {
30090	//     "$ref": "GoogleLongrunningOperation"
30091	//   },
30092	//   "scopes": [
30093	//     "https://www.googleapis.com/auth/cloud-platform"
30094	//   ]
30095	// }
30096
30097}
30098
30099// method id "apigee.organizations.environments.archiveDeployments.delete":
30100
30101type OrganizationsEnvironmentsArchiveDeploymentsDeleteCall struct {
30102	s          *Service
30103	name       string
30104	urlParams_ gensupport.URLParams
30105	ctx_       context.Context
30106	header_    http.Header
30107}
30108
30109// Delete: Deletes an archive deployment.
30110//
30111// - name: Name of the Archive Deployment in the following format:
30112//   `organizations/{org}/environments/{env}/archiveDeployments/{id}`.
30113func (r *OrganizationsEnvironmentsArchiveDeploymentsService) Delete(name string) *OrganizationsEnvironmentsArchiveDeploymentsDeleteCall {
30114	c := &OrganizationsEnvironmentsArchiveDeploymentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30115	c.name = name
30116	return c
30117}
30118
30119// Fields allows partial responses to be retrieved. See
30120// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
30121// for more information.
30122func (c *OrganizationsEnvironmentsArchiveDeploymentsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsArchiveDeploymentsDeleteCall {
30123	c.urlParams_.Set("fields", googleapi.CombineFields(s))
30124	return c
30125}
30126
30127// Context sets the context to be used in this call's Do method. Any
30128// pending HTTP request will be aborted if the provided context is
30129// canceled.
30130func (c *OrganizationsEnvironmentsArchiveDeploymentsDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsArchiveDeploymentsDeleteCall {
30131	c.ctx_ = ctx
30132	return c
30133}
30134
30135// Header returns an http.Header that can be modified by the caller to
30136// add HTTP headers to the request.
30137func (c *OrganizationsEnvironmentsArchiveDeploymentsDeleteCall) Header() http.Header {
30138	if c.header_ == nil {
30139		c.header_ = make(http.Header)
30140	}
30141	return c.header_
30142}
30143
30144func (c *OrganizationsEnvironmentsArchiveDeploymentsDeleteCall) doRequest(alt string) (*http.Response, error) {
30145	reqHeaders := make(http.Header)
30146	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
30147	for k, v := range c.header_ {
30148		reqHeaders[k] = v
30149	}
30150	reqHeaders.Set("User-Agent", c.s.userAgent())
30151	var body io.Reader = nil
30152	c.urlParams_.Set("alt", alt)
30153	c.urlParams_.Set("prettyPrint", "false")
30154	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
30155	urls += "?" + c.urlParams_.Encode()
30156	req, err := http.NewRequest("DELETE", urls, body)
30157	if err != nil {
30158		return nil, err
30159	}
30160	req.Header = reqHeaders
30161	googleapi.Expand(req.URL, map[string]string{
30162		"name": c.name,
30163	})
30164	return gensupport.SendRequest(c.ctx_, c.s.client, req)
30165}
30166
30167// Do executes the "apigee.organizations.environments.archiveDeployments.delete" call.
30168// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
30169// non-2xx status code is an error. Response headers are in either
30170// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
30171// returned at all) in error.(*googleapi.Error).Header. Use
30172// googleapi.IsNotModified to check whether the returned error was
30173// because http.StatusNotModified was returned.
30174func (c *OrganizationsEnvironmentsArchiveDeploymentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
30175	gensupport.SetOptions(c.urlParams_, opts...)
30176	res, err := c.doRequest("json")
30177	if res != nil && res.StatusCode == http.StatusNotModified {
30178		if res.Body != nil {
30179			res.Body.Close()
30180		}
30181		return nil, &googleapi.Error{
30182			Code:   res.StatusCode,
30183			Header: res.Header,
30184		}
30185	}
30186	if err != nil {
30187		return nil, err
30188	}
30189	defer googleapi.CloseBody(res)
30190	if err := googleapi.CheckResponse(res); err != nil {
30191		return nil, err
30192	}
30193	ret := &GoogleProtobufEmpty{
30194		ServerResponse: googleapi.ServerResponse{
30195			Header:         res.Header,
30196			HTTPStatusCode: res.StatusCode,
30197		},
30198	}
30199	target := &ret
30200	if err := gensupport.DecodeResponse(target, res); err != nil {
30201		return nil, err
30202	}
30203	return ret, nil
30204	// {
30205	//   "description": "Deletes an archive deployment.",
30206	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/archiveDeployments/{archiveDeploymentsId}",
30207	//   "httpMethod": "DELETE",
30208	//   "id": "apigee.organizations.environments.archiveDeployments.delete",
30209	//   "parameterOrder": [
30210	//     "name"
30211	//   ],
30212	//   "parameters": {
30213	//     "name": {
30214	//       "description": "Required. Name of the Archive Deployment in the following format: `organizations/{org}/environments/{env}/archiveDeployments/{id}`.",
30215	//       "location": "path",
30216	//       "pattern": "^organizations/[^/]+/environments/[^/]+/archiveDeployments/[^/]+$",
30217	//       "required": true,
30218	//       "type": "string"
30219	//     }
30220	//   },
30221	//   "path": "v1/{+name}",
30222	//   "response": {
30223	//     "$ref": "GoogleProtobufEmpty"
30224	//   },
30225	//   "scopes": [
30226	//     "https://www.googleapis.com/auth/cloud-platform"
30227	//   ]
30228	// }
30229
30230}
30231
30232// method id "apigee.organizations.environments.archiveDeployments.generateDownloadUrl":
30233
30234type OrganizationsEnvironmentsArchiveDeploymentsGenerateDownloadUrlCall struct {
30235	s                                             *Service
30236	name                                          string
30237	googlecloudapigeev1generatedownloadurlrequest *GoogleCloudApigeeV1GenerateDownloadUrlRequest
30238	urlParams_                                    gensupport.URLParams
30239	ctx_                                          context.Context
30240	header_                                       http.Header
30241}
30242
30243// GenerateDownloadUrl: Generates a signed URL for downloading the
30244// original zip file used to create an Archive Deployment. The URL is
30245// only valid for a limited period and should be used within minutes
30246// after generation. Each call returns a new upload URL.
30247//
30248// - name: The name of the Archive Deployment you want to download.
30249func (r *OrganizationsEnvironmentsArchiveDeploymentsService) GenerateDownloadUrl(name string, googlecloudapigeev1generatedownloadurlrequest *GoogleCloudApigeeV1GenerateDownloadUrlRequest) *OrganizationsEnvironmentsArchiveDeploymentsGenerateDownloadUrlCall {
30250	c := &OrganizationsEnvironmentsArchiveDeploymentsGenerateDownloadUrlCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30251	c.name = name
30252	c.googlecloudapigeev1generatedownloadurlrequest = googlecloudapigeev1generatedownloadurlrequest
30253	return c
30254}
30255
30256// Fields allows partial responses to be retrieved. See
30257// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
30258// for more information.
30259func (c *OrganizationsEnvironmentsArchiveDeploymentsGenerateDownloadUrlCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsArchiveDeploymentsGenerateDownloadUrlCall {
30260	c.urlParams_.Set("fields", googleapi.CombineFields(s))
30261	return c
30262}
30263
30264// Context sets the context to be used in this call's Do method. Any
30265// pending HTTP request will be aborted if the provided context is
30266// canceled.
30267func (c *OrganizationsEnvironmentsArchiveDeploymentsGenerateDownloadUrlCall) Context(ctx context.Context) *OrganizationsEnvironmentsArchiveDeploymentsGenerateDownloadUrlCall {
30268	c.ctx_ = ctx
30269	return c
30270}
30271
30272// Header returns an http.Header that can be modified by the caller to
30273// add HTTP headers to the request.
30274func (c *OrganizationsEnvironmentsArchiveDeploymentsGenerateDownloadUrlCall) Header() http.Header {
30275	if c.header_ == nil {
30276		c.header_ = make(http.Header)
30277	}
30278	return c.header_
30279}
30280
30281func (c *OrganizationsEnvironmentsArchiveDeploymentsGenerateDownloadUrlCall) doRequest(alt string) (*http.Response, error) {
30282	reqHeaders := make(http.Header)
30283	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
30284	for k, v := range c.header_ {
30285		reqHeaders[k] = v
30286	}
30287	reqHeaders.Set("User-Agent", c.s.userAgent())
30288	var body io.Reader = nil
30289	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1generatedownloadurlrequest)
30290	if err != nil {
30291		return nil, err
30292	}
30293	reqHeaders.Set("Content-Type", "application/json")
30294	c.urlParams_.Set("alt", alt)
30295	c.urlParams_.Set("prettyPrint", "false")
30296	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:generateDownloadUrl")
30297	urls += "?" + c.urlParams_.Encode()
30298	req, err := http.NewRequest("POST", urls, body)
30299	if err != nil {
30300		return nil, err
30301	}
30302	req.Header = reqHeaders
30303	googleapi.Expand(req.URL, map[string]string{
30304		"name": c.name,
30305	})
30306	return gensupport.SendRequest(c.ctx_, c.s.client, req)
30307}
30308
30309// Do executes the "apigee.organizations.environments.archiveDeployments.generateDownloadUrl" call.
30310// Exactly one of *GoogleCloudApigeeV1GenerateDownloadUrlResponse or
30311// error will be non-nil. Any non-2xx status code is an error. Response
30312// headers are in either
30313// *GoogleCloudApigeeV1GenerateDownloadUrlResponse.ServerResponse.Header
30314// or (if a response was returned at all) in
30315// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
30316// whether the returned error was because http.StatusNotModified was
30317// returned.
30318func (c *OrganizationsEnvironmentsArchiveDeploymentsGenerateDownloadUrlCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1GenerateDownloadUrlResponse, error) {
30319	gensupport.SetOptions(c.urlParams_, opts...)
30320	res, err := c.doRequest("json")
30321	if res != nil && res.StatusCode == http.StatusNotModified {
30322		if res.Body != nil {
30323			res.Body.Close()
30324		}
30325		return nil, &googleapi.Error{
30326			Code:   res.StatusCode,
30327			Header: res.Header,
30328		}
30329	}
30330	if err != nil {
30331		return nil, err
30332	}
30333	defer googleapi.CloseBody(res)
30334	if err := googleapi.CheckResponse(res); err != nil {
30335		return nil, err
30336	}
30337	ret := &GoogleCloudApigeeV1GenerateDownloadUrlResponse{
30338		ServerResponse: googleapi.ServerResponse{
30339			Header:         res.Header,
30340			HTTPStatusCode: res.StatusCode,
30341		},
30342	}
30343	target := &ret
30344	if err := gensupport.DecodeResponse(target, res); err != nil {
30345		return nil, err
30346	}
30347	return ret, nil
30348	// {
30349	//   "description": "Generates a signed URL for downloading the original zip file used to create an Archive Deployment. The URL is only valid for a limited period and should be used within minutes after generation. Each call returns a new upload URL.",
30350	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/archiveDeployments/{archiveDeploymentsId}:generateDownloadUrl",
30351	//   "httpMethod": "POST",
30352	//   "id": "apigee.organizations.environments.archiveDeployments.generateDownloadUrl",
30353	//   "parameterOrder": [
30354	//     "name"
30355	//   ],
30356	//   "parameters": {
30357	//     "name": {
30358	//       "description": "Required. The name of the Archive Deployment you want to download.",
30359	//       "location": "path",
30360	//       "pattern": "^organizations/[^/]+/environments/[^/]+/archiveDeployments/[^/]+$",
30361	//       "required": true,
30362	//       "type": "string"
30363	//     }
30364	//   },
30365	//   "path": "v1/{+name}:generateDownloadUrl",
30366	//   "request": {
30367	//     "$ref": "GoogleCloudApigeeV1GenerateDownloadUrlRequest"
30368	//   },
30369	//   "response": {
30370	//     "$ref": "GoogleCloudApigeeV1GenerateDownloadUrlResponse"
30371	//   },
30372	//   "scopes": [
30373	//     "https://www.googleapis.com/auth/cloud-platform"
30374	//   ]
30375	// }
30376
30377}
30378
30379// method id "apigee.organizations.environments.archiveDeployments.generateUploadUrl":
30380
30381type OrganizationsEnvironmentsArchiveDeploymentsGenerateUploadUrlCall struct {
30382	s                                           *Service
30383	parent                                      string
30384	googlecloudapigeev1generateuploadurlrequest *GoogleCloudApigeeV1GenerateUploadUrlRequest
30385	urlParams_                                  gensupport.URLParams
30386	ctx_                                        context.Context
30387	header_                                     http.Header
30388}
30389
30390// GenerateUploadUrl: Generates a signed URL for uploading an Archive
30391// zip file to Google Cloud Storage. Once the upload is complete, the
30392// signed URL should be passed to CreateArchiveDeployment. When
30393// uploading to the generated signed URL, please follow these
30394// restrictions: * Source file type should be a zip file. * Source file
30395// size should not exceed 1GB limit. * No credentials should be attached
30396// - the signed URLs provide access to the target bucket using internal
30397// service identity; if credentials were attached, the identity from the
30398// credentials would be used, but that identity does not have
30399// permissions to upload files to the URL. When making a HTTP PUT
30400// request, these two headers need to be specified: * `content-type:
30401// application/zip` * `x-goog-content-length-range: 0,1073741824` And
30402// this header SHOULD NOT be specified: * `Authorization: Bearer
30403// YOUR_TOKEN`
30404//
30405// - parent: The organization and environment to upload to.
30406func (r *OrganizationsEnvironmentsArchiveDeploymentsService) GenerateUploadUrl(parent string, googlecloudapigeev1generateuploadurlrequest *GoogleCloudApigeeV1GenerateUploadUrlRequest) *OrganizationsEnvironmentsArchiveDeploymentsGenerateUploadUrlCall {
30407	c := &OrganizationsEnvironmentsArchiveDeploymentsGenerateUploadUrlCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30408	c.parent = parent
30409	c.googlecloudapigeev1generateuploadurlrequest = googlecloudapigeev1generateuploadurlrequest
30410	return c
30411}
30412
30413// Fields allows partial responses to be retrieved. See
30414// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
30415// for more information.
30416func (c *OrganizationsEnvironmentsArchiveDeploymentsGenerateUploadUrlCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsArchiveDeploymentsGenerateUploadUrlCall {
30417	c.urlParams_.Set("fields", googleapi.CombineFields(s))
30418	return c
30419}
30420
30421// Context sets the context to be used in this call's Do method. Any
30422// pending HTTP request will be aborted if the provided context is
30423// canceled.
30424func (c *OrganizationsEnvironmentsArchiveDeploymentsGenerateUploadUrlCall) Context(ctx context.Context) *OrganizationsEnvironmentsArchiveDeploymentsGenerateUploadUrlCall {
30425	c.ctx_ = ctx
30426	return c
30427}
30428
30429// Header returns an http.Header that can be modified by the caller to
30430// add HTTP headers to the request.
30431func (c *OrganizationsEnvironmentsArchiveDeploymentsGenerateUploadUrlCall) Header() http.Header {
30432	if c.header_ == nil {
30433		c.header_ = make(http.Header)
30434	}
30435	return c.header_
30436}
30437
30438func (c *OrganizationsEnvironmentsArchiveDeploymentsGenerateUploadUrlCall) doRequest(alt string) (*http.Response, error) {
30439	reqHeaders := make(http.Header)
30440	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
30441	for k, v := range c.header_ {
30442		reqHeaders[k] = v
30443	}
30444	reqHeaders.Set("User-Agent", c.s.userAgent())
30445	var body io.Reader = nil
30446	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1generateuploadurlrequest)
30447	if err != nil {
30448		return nil, err
30449	}
30450	reqHeaders.Set("Content-Type", "application/json")
30451	c.urlParams_.Set("alt", alt)
30452	c.urlParams_.Set("prettyPrint", "false")
30453	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/archiveDeployments:generateUploadUrl")
30454	urls += "?" + c.urlParams_.Encode()
30455	req, err := http.NewRequest("POST", urls, body)
30456	if err != nil {
30457		return nil, err
30458	}
30459	req.Header = reqHeaders
30460	googleapi.Expand(req.URL, map[string]string{
30461		"parent": c.parent,
30462	})
30463	return gensupport.SendRequest(c.ctx_, c.s.client, req)
30464}
30465
30466// Do executes the "apigee.organizations.environments.archiveDeployments.generateUploadUrl" call.
30467// Exactly one of *GoogleCloudApigeeV1GenerateUploadUrlResponse or error
30468// will be non-nil. Any non-2xx status code is an error. Response
30469// headers are in either
30470// *GoogleCloudApigeeV1GenerateUploadUrlResponse.ServerResponse.Header
30471// or (if a response was returned at all) in
30472// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
30473// whether the returned error was because http.StatusNotModified was
30474// returned.
30475func (c *OrganizationsEnvironmentsArchiveDeploymentsGenerateUploadUrlCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1GenerateUploadUrlResponse, error) {
30476	gensupport.SetOptions(c.urlParams_, opts...)
30477	res, err := c.doRequest("json")
30478	if res != nil && res.StatusCode == http.StatusNotModified {
30479		if res.Body != nil {
30480			res.Body.Close()
30481		}
30482		return nil, &googleapi.Error{
30483			Code:   res.StatusCode,
30484			Header: res.Header,
30485		}
30486	}
30487	if err != nil {
30488		return nil, err
30489	}
30490	defer googleapi.CloseBody(res)
30491	if err := googleapi.CheckResponse(res); err != nil {
30492		return nil, err
30493	}
30494	ret := &GoogleCloudApigeeV1GenerateUploadUrlResponse{
30495		ServerResponse: googleapi.ServerResponse{
30496			Header:         res.Header,
30497			HTTPStatusCode: res.StatusCode,
30498		},
30499	}
30500	target := &ret
30501	if err := gensupport.DecodeResponse(target, res); err != nil {
30502		return nil, err
30503	}
30504	return ret, nil
30505	// {
30506	//   "description": "Generates a signed URL for uploading an Archive zip file to Google Cloud Storage. Once the upload is complete, the signed URL should be passed to CreateArchiveDeployment. When uploading to the generated signed URL, please follow these restrictions: * Source file type should be a zip file. * Source file size should not exceed 1GB limit. * No credentials should be attached - the signed URLs provide access to the target bucket using internal service identity; if credentials were attached, the identity from the credentials would be used, but that identity does not have permissions to upload files to the URL. When making a HTTP PUT request, these two headers need to be specified: * `content-type: application/zip` * `x-goog-content-length-range: 0,1073741824` And this header SHOULD NOT be specified: * `Authorization: Bearer YOUR_TOKEN`",
30507	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/archiveDeployments:generateUploadUrl",
30508	//   "httpMethod": "POST",
30509	//   "id": "apigee.organizations.environments.archiveDeployments.generateUploadUrl",
30510	//   "parameterOrder": [
30511	//     "parent"
30512	//   ],
30513	//   "parameters": {
30514	//     "parent": {
30515	//       "description": "Required. The organization and environment to upload to.",
30516	//       "location": "path",
30517	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
30518	//       "required": true,
30519	//       "type": "string"
30520	//     }
30521	//   },
30522	//   "path": "v1/{+parent}/archiveDeployments:generateUploadUrl",
30523	//   "request": {
30524	//     "$ref": "GoogleCloudApigeeV1GenerateUploadUrlRequest"
30525	//   },
30526	//   "response": {
30527	//     "$ref": "GoogleCloudApigeeV1GenerateUploadUrlResponse"
30528	//   },
30529	//   "scopes": [
30530	//     "https://www.googleapis.com/auth/cloud-platform"
30531	//   ]
30532	// }
30533
30534}
30535
30536// method id "apigee.organizations.environments.archiveDeployments.get":
30537
30538type OrganizationsEnvironmentsArchiveDeploymentsGetCall struct {
30539	s            *Service
30540	name         string
30541	urlParams_   gensupport.URLParams
30542	ifNoneMatch_ string
30543	ctx_         context.Context
30544	header_      http.Header
30545}
30546
30547// Get: Gets the specified ArchiveDeployment.
30548//
30549// - name: Name of the Archive Deployment in the following format:
30550//   `organizations/{org}/environments/{env}/archiveDeployments/{id}`.
30551func (r *OrganizationsEnvironmentsArchiveDeploymentsService) Get(name string) *OrganizationsEnvironmentsArchiveDeploymentsGetCall {
30552	c := &OrganizationsEnvironmentsArchiveDeploymentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30553	c.name = name
30554	return c
30555}
30556
30557// Fields allows partial responses to be retrieved. See
30558// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
30559// for more information.
30560func (c *OrganizationsEnvironmentsArchiveDeploymentsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsArchiveDeploymentsGetCall {
30561	c.urlParams_.Set("fields", googleapi.CombineFields(s))
30562	return c
30563}
30564
30565// IfNoneMatch sets the optional parameter which makes the operation
30566// fail if the object's ETag matches the given value. This is useful for
30567// getting updates only after the object has changed since the last
30568// request. Use googleapi.IsNotModified to check whether the response
30569// error from Do is the result of In-None-Match.
30570func (c *OrganizationsEnvironmentsArchiveDeploymentsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsArchiveDeploymentsGetCall {
30571	c.ifNoneMatch_ = entityTag
30572	return c
30573}
30574
30575// Context sets the context to be used in this call's Do method. Any
30576// pending HTTP request will be aborted if the provided context is
30577// canceled.
30578func (c *OrganizationsEnvironmentsArchiveDeploymentsGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsArchiveDeploymentsGetCall {
30579	c.ctx_ = ctx
30580	return c
30581}
30582
30583// Header returns an http.Header that can be modified by the caller to
30584// add HTTP headers to the request.
30585func (c *OrganizationsEnvironmentsArchiveDeploymentsGetCall) Header() http.Header {
30586	if c.header_ == nil {
30587		c.header_ = make(http.Header)
30588	}
30589	return c.header_
30590}
30591
30592func (c *OrganizationsEnvironmentsArchiveDeploymentsGetCall) doRequest(alt string) (*http.Response, error) {
30593	reqHeaders := make(http.Header)
30594	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
30595	for k, v := range c.header_ {
30596		reqHeaders[k] = v
30597	}
30598	reqHeaders.Set("User-Agent", c.s.userAgent())
30599	if c.ifNoneMatch_ != "" {
30600		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
30601	}
30602	var body io.Reader = nil
30603	c.urlParams_.Set("alt", alt)
30604	c.urlParams_.Set("prettyPrint", "false")
30605	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
30606	urls += "?" + c.urlParams_.Encode()
30607	req, err := http.NewRequest("GET", urls, body)
30608	if err != nil {
30609		return nil, err
30610	}
30611	req.Header = reqHeaders
30612	googleapi.Expand(req.URL, map[string]string{
30613		"name": c.name,
30614	})
30615	return gensupport.SendRequest(c.ctx_, c.s.client, req)
30616}
30617
30618// Do executes the "apigee.organizations.environments.archiveDeployments.get" call.
30619// Exactly one of *GoogleCloudApigeeV1ArchiveDeployment or error will be
30620// non-nil. Any non-2xx status code is an error. Response headers are in
30621// either *GoogleCloudApigeeV1ArchiveDeployment.ServerResponse.Header or
30622// (if a response was returned at all) in
30623// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
30624// whether the returned error was because http.StatusNotModified was
30625// returned.
30626func (c *OrganizationsEnvironmentsArchiveDeploymentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ArchiveDeployment, error) {
30627	gensupport.SetOptions(c.urlParams_, opts...)
30628	res, err := c.doRequest("json")
30629	if res != nil && res.StatusCode == http.StatusNotModified {
30630		if res.Body != nil {
30631			res.Body.Close()
30632		}
30633		return nil, &googleapi.Error{
30634			Code:   res.StatusCode,
30635			Header: res.Header,
30636		}
30637	}
30638	if err != nil {
30639		return nil, err
30640	}
30641	defer googleapi.CloseBody(res)
30642	if err := googleapi.CheckResponse(res); err != nil {
30643		return nil, err
30644	}
30645	ret := &GoogleCloudApigeeV1ArchiveDeployment{
30646		ServerResponse: googleapi.ServerResponse{
30647			Header:         res.Header,
30648			HTTPStatusCode: res.StatusCode,
30649		},
30650	}
30651	target := &ret
30652	if err := gensupport.DecodeResponse(target, res); err != nil {
30653		return nil, err
30654	}
30655	return ret, nil
30656	// {
30657	//   "description": "Gets the specified ArchiveDeployment.",
30658	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/archiveDeployments/{archiveDeploymentsId}",
30659	//   "httpMethod": "GET",
30660	//   "id": "apigee.organizations.environments.archiveDeployments.get",
30661	//   "parameterOrder": [
30662	//     "name"
30663	//   ],
30664	//   "parameters": {
30665	//     "name": {
30666	//       "description": "Required. Name of the Archive Deployment in the following format: `organizations/{org}/environments/{env}/archiveDeployments/{id}`.",
30667	//       "location": "path",
30668	//       "pattern": "^organizations/[^/]+/environments/[^/]+/archiveDeployments/[^/]+$",
30669	//       "required": true,
30670	//       "type": "string"
30671	//     }
30672	//   },
30673	//   "path": "v1/{+name}",
30674	//   "response": {
30675	//     "$ref": "GoogleCloudApigeeV1ArchiveDeployment"
30676	//   },
30677	//   "scopes": [
30678	//     "https://www.googleapis.com/auth/cloud-platform"
30679	//   ]
30680	// }
30681
30682}
30683
30684// method id "apigee.organizations.environments.archiveDeployments.list":
30685
30686type OrganizationsEnvironmentsArchiveDeploymentsListCall struct {
30687	s            *Service
30688	parent       string
30689	urlParams_   gensupport.URLParams
30690	ifNoneMatch_ string
30691	ctx_         context.Context
30692	header_      http.Header
30693}
30694
30695// List: Lists the ArchiveDeployments in the specified Environment.
30696//
30697// - parent: Name of the Environment for which to list Archive
30698//   Deployments in the format:
30699//   `organizations/{org}/environments/{env}`.
30700func (r *OrganizationsEnvironmentsArchiveDeploymentsService) List(parent string) *OrganizationsEnvironmentsArchiveDeploymentsListCall {
30701	c := &OrganizationsEnvironmentsArchiveDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30702	c.parent = parent
30703	return c
30704}
30705
30706// Filter sets the optional parameter "filter": An optional query used
30707// to return a subset of Archive Deployments using the semantics defined
30708// in https://google.aip.dev/160.
30709func (c *OrganizationsEnvironmentsArchiveDeploymentsListCall) Filter(filter string) *OrganizationsEnvironmentsArchiveDeploymentsListCall {
30710	c.urlParams_.Set("filter", filter)
30711	return c
30712}
30713
30714// PageSize sets the optional parameter "pageSize": Maximum number of
30715// Archive Deployments to return. If unspecified, at most 25 deployments
30716// will be returned.
30717func (c *OrganizationsEnvironmentsArchiveDeploymentsListCall) PageSize(pageSize int64) *OrganizationsEnvironmentsArchiveDeploymentsListCall {
30718	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
30719	return c
30720}
30721
30722// PageToken sets the optional parameter "pageToken": Page token,
30723// returned from a previous ListArchiveDeployments call, that you can
30724// use to retrieve the next page.
30725func (c *OrganizationsEnvironmentsArchiveDeploymentsListCall) PageToken(pageToken string) *OrganizationsEnvironmentsArchiveDeploymentsListCall {
30726	c.urlParams_.Set("pageToken", pageToken)
30727	return c
30728}
30729
30730// Fields allows partial responses to be retrieved. See
30731// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
30732// for more information.
30733func (c *OrganizationsEnvironmentsArchiveDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsArchiveDeploymentsListCall {
30734	c.urlParams_.Set("fields", googleapi.CombineFields(s))
30735	return c
30736}
30737
30738// IfNoneMatch sets the optional parameter which makes the operation
30739// fail if the object's ETag matches the given value. This is useful for
30740// getting updates only after the object has changed since the last
30741// request. Use googleapi.IsNotModified to check whether the response
30742// error from Do is the result of In-None-Match.
30743func (c *OrganizationsEnvironmentsArchiveDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsArchiveDeploymentsListCall {
30744	c.ifNoneMatch_ = entityTag
30745	return c
30746}
30747
30748// Context sets the context to be used in this call's Do method. Any
30749// pending HTTP request will be aborted if the provided context is
30750// canceled.
30751func (c *OrganizationsEnvironmentsArchiveDeploymentsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsArchiveDeploymentsListCall {
30752	c.ctx_ = ctx
30753	return c
30754}
30755
30756// Header returns an http.Header that can be modified by the caller to
30757// add HTTP headers to the request.
30758func (c *OrganizationsEnvironmentsArchiveDeploymentsListCall) Header() http.Header {
30759	if c.header_ == nil {
30760		c.header_ = make(http.Header)
30761	}
30762	return c.header_
30763}
30764
30765func (c *OrganizationsEnvironmentsArchiveDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
30766	reqHeaders := make(http.Header)
30767	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
30768	for k, v := range c.header_ {
30769		reqHeaders[k] = v
30770	}
30771	reqHeaders.Set("User-Agent", c.s.userAgent())
30772	if c.ifNoneMatch_ != "" {
30773		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
30774	}
30775	var body io.Reader = nil
30776	c.urlParams_.Set("alt", alt)
30777	c.urlParams_.Set("prettyPrint", "false")
30778	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/archiveDeployments")
30779	urls += "?" + c.urlParams_.Encode()
30780	req, err := http.NewRequest("GET", urls, body)
30781	if err != nil {
30782		return nil, err
30783	}
30784	req.Header = reqHeaders
30785	googleapi.Expand(req.URL, map[string]string{
30786		"parent": c.parent,
30787	})
30788	return gensupport.SendRequest(c.ctx_, c.s.client, req)
30789}
30790
30791// Do executes the "apigee.organizations.environments.archiveDeployments.list" call.
30792// Exactly one of *GoogleCloudApigeeV1ListArchiveDeploymentsResponse or
30793// error will be non-nil. Any non-2xx status code is an error. Response
30794// headers are in either
30795// *GoogleCloudApigeeV1ListArchiveDeploymentsResponse.ServerResponse.Head
30796// er or (if a response was returned at all) in
30797// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
30798// whether the returned error was because http.StatusNotModified was
30799// returned.
30800func (c *OrganizationsEnvironmentsArchiveDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListArchiveDeploymentsResponse, error) {
30801	gensupport.SetOptions(c.urlParams_, opts...)
30802	res, err := c.doRequest("json")
30803	if res != nil && res.StatusCode == http.StatusNotModified {
30804		if res.Body != nil {
30805			res.Body.Close()
30806		}
30807		return nil, &googleapi.Error{
30808			Code:   res.StatusCode,
30809			Header: res.Header,
30810		}
30811	}
30812	if err != nil {
30813		return nil, err
30814	}
30815	defer googleapi.CloseBody(res)
30816	if err := googleapi.CheckResponse(res); err != nil {
30817		return nil, err
30818	}
30819	ret := &GoogleCloudApigeeV1ListArchiveDeploymentsResponse{
30820		ServerResponse: googleapi.ServerResponse{
30821			Header:         res.Header,
30822			HTTPStatusCode: res.StatusCode,
30823		},
30824	}
30825	target := &ret
30826	if err := gensupport.DecodeResponse(target, res); err != nil {
30827		return nil, err
30828	}
30829	return ret, nil
30830	// {
30831	//   "description": "Lists the ArchiveDeployments in the specified Environment.",
30832	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/archiveDeployments",
30833	//   "httpMethod": "GET",
30834	//   "id": "apigee.organizations.environments.archiveDeployments.list",
30835	//   "parameterOrder": [
30836	//     "parent"
30837	//   ],
30838	//   "parameters": {
30839	//     "filter": {
30840	//       "description": "Optional. An optional query used to return a subset of Archive Deployments using the semantics defined in https://google.aip.dev/160.",
30841	//       "location": "query",
30842	//       "type": "string"
30843	//     },
30844	//     "pageSize": {
30845	//       "description": "Optional. Maximum number of Archive Deployments to return. If unspecified, at most 25 deployments will be returned.",
30846	//       "format": "int32",
30847	//       "location": "query",
30848	//       "type": "integer"
30849	//     },
30850	//     "pageToken": {
30851	//       "description": "Optional. Page token, returned from a previous ListArchiveDeployments call, that you can use to retrieve the next page.",
30852	//       "location": "query",
30853	//       "type": "string"
30854	//     },
30855	//     "parent": {
30856	//       "description": "Required. Name of the Environment for which to list Archive Deployments in the format: `organizations/{org}/environments/{env}`.",
30857	//       "location": "path",
30858	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
30859	//       "required": true,
30860	//       "type": "string"
30861	//     }
30862	//   },
30863	//   "path": "v1/{+parent}/archiveDeployments",
30864	//   "response": {
30865	//     "$ref": "GoogleCloudApigeeV1ListArchiveDeploymentsResponse"
30866	//   },
30867	//   "scopes": [
30868	//     "https://www.googleapis.com/auth/cloud-platform"
30869	//   ]
30870	// }
30871
30872}
30873
30874// Pages invokes f for each page of results.
30875// A non-nil error returned from f will halt the iteration.
30876// The provided context supersedes any context provided to the Context method.
30877func (c *OrganizationsEnvironmentsArchiveDeploymentsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListArchiveDeploymentsResponse) error) error {
30878	c.ctx_ = ctx
30879	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
30880	for {
30881		x, err := c.Do()
30882		if err != nil {
30883			return err
30884		}
30885		if err := f(x); err != nil {
30886			return err
30887		}
30888		if x.NextPageToken == "" {
30889			return nil
30890		}
30891		c.PageToken(x.NextPageToken)
30892	}
30893}
30894
30895// method id "apigee.organizations.environments.archiveDeployments.patch":
30896
30897type OrganizationsEnvironmentsArchiveDeploymentsPatchCall struct {
30898	s                                    *Service
30899	name                                 string
30900	googlecloudapigeev1archivedeployment *GoogleCloudApigeeV1ArchiveDeployment
30901	urlParams_                           gensupport.URLParams
30902	ctx_                                 context.Context
30903	header_                              http.Header
30904}
30905
30906// Patch: Updates an existing ArchiveDeployment. Labels can modified but
30907// most of the other fields are not modifiable.
30908//
30909// - name: Name of the Archive Deployment in the following format:
30910//   `organizations/{org}/environments/{env}/archiveDeployments/{id}`.
30911func (r *OrganizationsEnvironmentsArchiveDeploymentsService) Patch(name string, googlecloudapigeev1archivedeployment *GoogleCloudApigeeV1ArchiveDeployment) *OrganizationsEnvironmentsArchiveDeploymentsPatchCall {
30912	c := &OrganizationsEnvironmentsArchiveDeploymentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30913	c.name = name
30914	c.googlecloudapigeev1archivedeployment = googlecloudapigeev1archivedeployment
30915	return c
30916}
30917
30918// UpdateMask sets the optional parameter "updateMask": Required. The
30919// list of fields to be updated.
30920func (c *OrganizationsEnvironmentsArchiveDeploymentsPatchCall) UpdateMask(updateMask string) *OrganizationsEnvironmentsArchiveDeploymentsPatchCall {
30921	c.urlParams_.Set("updateMask", updateMask)
30922	return c
30923}
30924
30925// Fields allows partial responses to be retrieved. See
30926// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
30927// for more information.
30928func (c *OrganizationsEnvironmentsArchiveDeploymentsPatchCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsArchiveDeploymentsPatchCall {
30929	c.urlParams_.Set("fields", googleapi.CombineFields(s))
30930	return c
30931}
30932
30933// Context sets the context to be used in this call's Do method. Any
30934// pending HTTP request will be aborted if the provided context is
30935// canceled.
30936func (c *OrganizationsEnvironmentsArchiveDeploymentsPatchCall) Context(ctx context.Context) *OrganizationsEnvironmentsArchiveDeploymentsPatchCall {
30937	c.ctx_ = ctx
30938	return c
30939}
30940
30941// Header returns an http.Header that can be modified by the caller to
30942// add HTTP headers to the request.
30943func (c *OrganizationsEnvironmentsArchiveDeploymentsPatchCall) Header() http.Header {
30944	if c.header_ == nil {
30945		c.header_ = make(http.Header)
30946	}
30947	return c.header_
30948}
30949
30950func (c *OrganizationsEnvironmentsArchiveDeploymentsPatchCall) doRequest(alt string) (*http.Response, error) {
30951	reqHeaders := make(http.Header)
30952	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
30953	for k, v := range c.header_ {
30954		reqHeaders[k] = v
30955	}
30956	reqHeaders.Set("User-Agent", c.s.userAgent())
30957	var body io.Reader = nil
30958	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1archivedeployment)
30959	if err != nil {
30960		return nil, err
30961	}
30962	reqHeaders.Set("Content-Type", "application/json")
30963	c.urlParams_.Set("alt", alt)
30964	c.urlParams_.Set("prettyPrint", "false")
30965	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
30966	urls += "?" + c.urlParams_.Encode()
30967	req, err := http.NewRequest("PATCH", urls, body)
30968	if err != nil {
30969		return nil, err
30970	}
30971	req.Header = reqHeaders
30972	googleapi.Expand(req.URL, map[string]string{
30973		"name": c.name,
30974	})
30975	return gensupport.SendRequest(c.ctx_, c.s.client, req)
30976}
30977
30978// Do executes the "apigee.organizations.environments.archiveDeployments.patch" call.
30979// Exactly one of *GoogleCloudApigeeV1ArchiveDeployment or error will be
30980// non-nil. Any non-2xx status code is an error. Response headers are in
30981// either *GoogleCloudApigeeV1ArchiveDeployment.ServerResponse.Header or
30982// (if a response was returned at all) in
30983// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
30984// whether the returned error was because http.StatusNotModified was
30985// returned.
30986func (c *OrganizationsEnvironmentsArchiveDeploymentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ArchiveDeployment, error) {
30987	gensupport.SetOptions(c.urlParams_, opts...)
30988	res, err := c.doRequest("json")
30989	if res != nil && res.StatusCode == http.StatusNotModified {
30990		if res.Body != nil {
30991			res.Body.Close()
30992		}
30993		return nil, &googleapi.Error{
30994			Code:   res.StatusCode,
30995			Header: res.Header,
30996		}
30997	}
30998	if err != nil {
30999		return nil, err
31000	}
31001	defer googleapi.CloseBody(res)
31002	if err := googleapi.CheckResponse(res); err != nil {
31003		return nil, err
31004	}
31005	ret := &GoogleCloudApigeeV1ArchiveDeployment{
31006		ServerResponse: googleapi.ServerResponse{
31007			Header:         res.Header,
31008			HTTPStatusCode: res.StatusCode,
31009		},
31010	}
31011	target := &ret
31012	if err := gensupport.DecodeResponse(target, res); err != nil {
31013		return nil, err
31014	}
31015	return ret, nil
31016	// {
31017	//   "description": "Updates an existing ArchiveDeployment. Labels can modified but most of the other fields are not modifiable.",
31018	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/archiveDeployments/{archiveDeploymentsId}",
31019	//   "httpMethod": "PATCH",
31020	//   "id": "apigee.organizations.environments.archiveDeployments.patch",
31021	//   "parameterOrder": [
31022	//     "name"
31023	//   ],
31024	//   "parameters": {
31025	//     "name": {
31026	//       "description": "Name of the Archive Deployment in the following format: `organizations/{org}/environments/{env}/archiveDeployments/{id}`.",
31027	//       "location": "path",
31028	//       "pattern": "^organizations/[^/]+/environments/[^/]+/archiveDeployments/[^/]+$",
31029	//       "required": true,
31030	//       "type": "string"
31031	//     },
31032	//     "updateMask": {
31033	//       "description": "Required. The list of fields to be updated.",
31034	//       "format": "google-fieldmask",
31035	//       "location": "query",
31036	//       "type": "string"
31037	//     }
31038	//   },
31039	//   "path": "v1/{+name}",
31040	//   "request": {
31041	//     "$ref": "GoogleCloudApigeeV1ArchiveDeployment"
31042	//   },
31043	//   "response": {
31044	//     "$ref": "GoogleCloudApigeeV1ArchiveDeployment"
31045	//   },
31046	//   "scopes": [
31047	//     "https://www.googleapis.com/auth/cloud-platform"
31048	//   ]
31049	// }
31050
31051}
31052
31053// method id "apigee.organizations.environments.caches.delete":
31054
31055type OrganizationsEnvironmentsCachesDeleteCall struct {
31056	s          *Service
31057	name       string
31058	urlParams_ gensupport.URLParams
31059	ctx_       context.Context
31060	header_    http.Header
31061}
31062
31063// Delete: Deletes a cache.
31064//
31065// - name: Cache resource name of the form:
31066//   `organizations/{organization_id}/environments/{environment_id}/cache
31067//   s/{cache_id}`.
31068func (r *OrganizationsEnvironmentsCachesService) Delete(name string) *OrganizationsEnvironmentsCachesDeleteCall {
31069	c := &OrganizationsEnvironmentsCachesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31070	c.name = name
31071	return c
31072}
31073
31074// Fields allows partial responses to be retrieved. See
31075// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
31076// for more information.
31077func (c *OrganizationsEnvironmentsCachesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsCachesDeleteCall {
31078	c.urlParams_.Set("fields", googleapi.CombineFields(s))
31079	return c
31080}
31081
31082// Context sets the context to be used in this call's Do method. Any
31083// pending HTTP request will be aborted if the provided context is
31084// canceled.
31085func (c *OrganizationsEnvironmentsCachesDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsCachesDeleteCall {
31086	c.ctx_ = ctx
31087	return c
31088}
31089
31090// Header returns an http.Header that can be modified by the caller to
31091// add HTTP headers to the request.
31092func (c *OrganizationsEnvironmentsCachesDeleteCall) Header() http.Header {
31093	if c.header_ == nil {
31094		c.header_ = make(http.Header)
31095	}
31096	return c.header_
31097}
31098
31099func (c *OrganizationsEnvironmentsCachesDeleteCall) doRequest(alt string) (*http.Response, error) {
31100	reqHeaders := make(http.Header)
31101	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
31102	for k, v := range c.header_ {
31103		reqHeaders[k] = v
31104	}
31105	reqHeaders.Set("User-Agent", c.s.userAgent())
31106	var body io.Reader = nil
31107	c.urlParams_.Set("alt", alt)
31108	c.urlParams_.Set("prettyPrint", "false")
31109	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
31110	urls += "?" + c.urlParams_.Encode()
31111	req, err := http.NewRequest("DELETE", urls, body)
31112	if err != nil {
31113		return nil, err
31114	}
31115	req.Header = reqHeaders
31116	googleapi.Expand(req.URL, map[string]string{
31117		"name": c.name,
31118	})
31119	return gensupport.SendRequest(c.ctx_, c.s.client, req)
31120}
31121
31122// Do executes the "apigee.organizations.environments.caches.delete" call.
31123// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
31124// non-2xx status code is an error. Response headers are in either
31125// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
31126// returned at all) in error.(*googleapi.Error).Header. Use
31127// googleapi.IsNotModified to check whether the returned error was
31128// because http.StatusNotModified was returned.
31129func (c *OrganizationsEnvironmentsCachesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
31130	gensupport.SetOptions(c.urlParams_, opts...)
31131	res, err := c.doRequest("json")
31132	if res != nil && res.StatusCode == http.StatusNotModified {
31133		if res.Body != nil {
31134			res.Body.Close()
31135		}
31136		return nil, &googleapi.Error{
31137			Code:   res.StatusCode,
31138			Header: res.Header,
31139		}
31140	}
31141	if err != nil {
31142		return nil, err
31143	}
31144	defer googleapi.CloseBody(res)
31145	if err := googleapi.CheckResponse(res); err != nil {
31146		return nil, err
31147	}
31148	ret := &GoogleProtobufEmpty{
31149		ServerResponse: googleapi.ServerResponse{
31150			Header:         res.Header,
31151			HTTPStatusCode: res.StatusCode,
31152		},
31153	}
31154	target := &ret
31155	if err := gensupport.DecodeResponse(target, res); err != nil {
31156		return nil, err
31157	}
31158	return ret, nil
31159	// {
31160	//   "description": "Deletes a cache.",
31161	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/caches/{cachesId}",
31162	//   "httpMethod": "DELETE",
31163	//   "id": "apigee.organizations.environments.caches.delete",
31164	//   "parameterOrder": [
31165	//     "name"
31166	//   ],
31167	//   "parameters": {
31168	//     "name": {
31169	//       "description": "Required. Cache resource name of the form: `organizations/{organization_id}/environments/{environment_id}/caches/{cache_id}`",
31170	//       "location": "path",
31171	//       "pattern": "^organizations/[^/]+/environments/[^/]+/caches/[^/]+$",
31172	//       "required": true,
31173	//       "type": "string"
31174	//     }
31175	//   },
31176	//   "path": "v1/{+name}",
31177	//   "response": {
31178	//     "$ref": "GoogleProtobufEmpty"
31179	//   },
31180	//   "scopes": [
31181	//     "https://www.googleapis.com/auth/cloud-platform"
31182	//   ]
31183	// }
31184
31185}
31186
31187// method id "apigee.organizations.environments.deployments.list":
31188
31189type OrganizationsEnvironmentsDeploymentsListCall struct {
31190	s            *Service
31191	parent       string
31192	urlParams_   gensupport.URLParams
31193	ifNoneMatch_ string
31194	ctx_         context.Context
31195	header_      http.Header
31196}
31197
31198// List: Lists all deployments of API proxies or shared flows in an
31199// environment.
31200//
31201// - parent: Name of the environment for which to return deployment
31202//   information in the following format:
31203//   `organizations/{org}/environments/{env}`.
31204func (r *OrganizationsEnvironmentsDeploymentsService) List(parent string) *OrganizationsEnvironmentsDeploymentsListCall {
31205	c := &OrganizationsEnvironmentsDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31206	c.parent = parent
31207	return c
31208}
31209
31210// SharedFlows sets the optional parameter "sharedFlows": Flag that
31211// specifies whether to return shared flow or API proxy deployments. Set
31212// to `true` to return shared flow deployments; set to `false` to return
31213// API proxy deployments. Defaults to `false`.
31214func (c *OrganizationsEnvironmentsDeploymentsListCall) SharedFlows(sharedFlows bool) *OrganizationsEnvironmentsDeploymentsListCall {
31215	c.urlParams_.Set("sharedFlows", fmt.Sprint(sharedFlows))
31216	return c
31217}
31218
31219// Fields allows partial responses to be retrieved. See
31220// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
31221// for more information.
31222func (c *OrganizationsEnvironmentsDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsDeploymentsListCall {
31223	c.urlParams_.Set("fields", googleapi.CombineFields(s))
31224	return c
31225}
31226
31227// IfNoneMatch sets the optional parameter which makes the operation
31228// fail if the object's ETag matches the given value. This is useful for
31229// getting updates only after the object has changed since the last
31230// request. Use googleapi.IsNotModified to check whether the response
31231// error from Do is the result of In-None-Match.
31232func (c *OrganizationsEnvironmentsDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsDeploymentsListCall {
31233	c.ifNoneMatch_ = entityTag
31234	return c
31235}
31236
31237// Context sets the context to be used in this call's Do method. Any
31238// pending HTTP request will be aborted if the provided context is
31239// canceled.
31240func (c *OrganizationsEnvironmentsDeploymentsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsDeploymentsListCall {
31241	c.ctx_ = ctx
31242	return c
31243}
31244
31245// Header returns an http.Header that can be modified by the caller to
31246// add HTTP headers to the request.
31247func (c *OrganizationsEnvironmentsDeploymentsListCall) Header() http.Header {
31248	if c.header_ == nil {
31249		c.header_ = make(http.Header)
31250	}
31251	return c.header_
31252}
31253
31254func (c *OrganizationsEnvironmentsDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
31255	reqHeaders := make(http.Header)
31256	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
31257	for k, v := range c.header_ {
31258		reqHeaders[k] = v
31259	}
31260	reqHeaders.Set("User-Agent", c.s.userAgent())
31261	if c.ifNoneMatch_ != "" {
31262		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
31263	}
31264	var body io.Reader = nil
31265	c.urlParams_.Set("alt", alt)
31266	c.urlParams_.Set("prettyPrint", "false")
31267	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
31268	urls += "?" + c.urlParams_.Encode()
31269	req, err := http.NewRequest("GET", urls, body)
31270	if err != nil {
31271		return nil, err
31272	}
31273	req.Header = reqHeaders
31274	googleapi.Expand(req.URL, map[string]string{
31275		"parent": c.parent,
31276	})
31277	return gensupport.SendRequest(c.ctx_, c.s.client, req)
31278}
31279
31280// Do executes the "apigee.organizations.environments.deployments.list" call.
31281// Exactly one of *GoogleCloudApigeeV1ListDeploymentsResponse or error
31282// will be non-nil. Any non-2xx status code is an error. Response
31283// headers are in either
31284// *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or
31285// (if a response was returned at all) in
31286// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
31287// whether the returned error was because http.StatusNotModified was
31288// returned.
31289func (c *OrganizationsEnvironmentsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
31290	gensupport.SetOptions(c.urlParams_, opts...)
31291	res, err := c.doRequest("json")
31292	if res != nil && res.StatusCode == http.StatusNotModified {
31293		if res.Body != nil {
31294			res.Body.Close()
31295		}
31296		return nil, &googleapi.Error{
31297			Code:   res.StatusCode,
31298			Header: res.Header,
31299		}
31300	}
31301	if err != nil {
31302		return nil, err
31303	}
31304	defer googleapi.CloseBody(res)
31305	if err := googleapi.CheckResponse(res); err != nil {
31306		return nil, err
31307	}
31308	ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
31309		ServerResponse: googleapi.ServerResponse{
31310			Header:         res.Header,
31311			HTTPStatusCode: res.StatusCode,
31312		},
31313	}
31314	target := &ret
31315	if err := gensupport.DecodeResponse(target, res); err != nil {
31316		return nil, err
31317	}
31318	return ret, nil
31319	// {
31320	//   "description": "Lists all deployments of API proxies or shared flows in an environment.",
31321	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/deployments",
31322	//   "httpMethod": "GET",
31323	//   "id": "apigee.organizations.environments.deployments.list",
31324	//   "parameterOrder": [
31325	//     "parent"
31326	//   ],
31327	//   "parameters": {
31328	//     "parent": {
31329	//       "description": "Required. Name of the environment for which to return deployment information in the following format: `organizations/{org}/environments/{env}`",
31330	//       "location": "path",
31331	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
31332	//       "required": true,
31333	//       "type": "string"
31334	//     },
31335	//     "sharedFlows": {
31336	//       "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`.",
31337	//       "location": "query",
31338	//       "type": "boolean"
31339	//     }
31340	//   },
31341	//   "path": "v1/{+parent}/deployments",
31342	//   "response": {
31343	//     "$ref": "GoogleCloudApigeeV1ListDeploymentsResponse"
31344	//   },
31345	//   "scopes": [
31346	//     "https://www.googleapis.com/auth/cloud-platform"
31347	//   ]
31348	// }
31349
31350}
31351
31352// method id "apigee.organizations.environments.flowhooks.attachSharedFlowToFlowHook":
31353
31354type OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall struct {
31355	s                           *Service
31356	name                        string
31357	googlecloudapigeev1flowhook *GoogleCloudApigeeV1FlowHook
31358	urlParams_                  gensupport.URLParams
31359	ctx_                        context.Context
31360	header_                     http.Header
31361}
31362
31363// AttachSharedFlowToFlowHook: Attaches a shared flow to a flow hook.
31364//
31365// - name: Name of the flow hook to which the shared flow should be
31366//   attached in the following format:
31367//   `organizations/{org}/environments/{env}/flowhooks/{flowhook}`.
31368func (r *OrganizationsEnvironmentsFlowhooksService) AttachSharedFlowToFlowHook(name string, googlecloudapigeev1flowhook *GoogleCloudApigeeV1FlowHook) *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall {
31369	c := &OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31370	c.name = name
31371	c.googlecloudapigeev1flowhook = googlecloudapigeev1flowhook
31372	return c
31373}
31374
31375// Fields allows partial responses to be retrieved. See
31376// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
31377// for more information.
31378func (c *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall {
31379	c.urlParams_.Set("fields", googleapi.CombineFields(s))
31380	return c
31381}
31382
31383// Context sets the context to be used in this call's Do method. Any
31384// pending HTTP request will be aborted if the provided context is
31385// canceled.
31386func (c *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall) Context(ctx context.Context) *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall {
31387	c.ctx_ = ctx
31388	return c
31389}
31390
31391// Header returns an http.Header that can be modified by the caller to
31392// add HTTP headers to the request.
31393func (c *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall) Header() http.Header {
31394	if c.header_ == nil {
31395		c.header_ = make(http.Header)
31396	}
31397	return c.header_
31398}
31399
31400func (c *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall) doRequest(alt string) (*http.Response, error) {
31401	reqHeaders := make(http.Header)
31402	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
31403	for k, v := range c.header_ {
31404		reqHeaders[k] = v
31405	}
31406	reqHeaders.Set("User-Agent", c.s.userAgent())
31407	var body io.Reader = nil
31408	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1flowhook)
31409	if err != nil {
31410		return nil, err
31411	}
31412	reqHeaders.Set("Content-Type", "application/json")
31413	c.urlParams_.Set("alt", alt)
31414	c.urlParams_.Set("prettyPrint", "false")
31415	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
31416	urls += "?" + c.urlParams_.Encode()
31417	req, err := http.NewRequest("PUT", urls, body)
31418	if err != nil {
31419		return nil, err
31420	}
31421	req.Header = reqHeaders
31422	googleapi.Expand(req.URL, map[string]string{
31423		"name": c.name,
31424	})
31425	return gensupport.SendRequest(c.ctx_, c.s.client, req)
31426}
31427
31428// Do executes the "apigee.organizations.environments.flowhooks.attachSharedFlowToFlowHook" call.
31429// Exactly one of *GoogleCloudApigeeV1FlowHook or error will be non-nil.
31430// Any non-2xx status code is an error. Response headers are in either
31431// *GoogleCloudApigeeV1FlowHook.ServerResponse.Header or (if a response
31432// was returned at all) in error.(*googleapi.Error).Header. Use
31433// googleapi.IsNotModified to check whether the returned error was
31434// because http.StatusNotModified was returned.
31435func (c *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1FlowHook, error) {
31436	gensupport.SetOptions(c.urlParams_, opts...)
31437	res, err := c.doRequest("json")
31438	if res != nil && res.StatusCode == http.StatusNotModified {
31439		if res.Body != nil {
31440			res.Body.Close()
31441		}
31442		return nil, &googleapi.Error{
31443			Code:   res.StatusCode,
31444			Header: res.Header,
31445		}
31446	}
31447	if err != nil {
31448		return nil, err
31449	}
31450	defer googleapi.CloseBody(res)
31451	if err := googleapi.CheckResponse(res); err != nil {
31452		return nil, err
31453	}
31454	ret := &GoogleCloudApigeeV1FlowHook{
31455		ServerResponse: googleapi.ServerResponse{
31456			Header:         res.Header,
31457			HTTPStatusCode: res.StatusCode,
31458		},
31459	}
31460	target := &ret
31461	if err := gensupport.DecodeResponse(target, res); err != nil {
31462		return nil, err
31463	}
31464	return ret, nil
31465	// {
31466	//   "description": "Attaches a shared flow to a flow hook.",
31467	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/flowhooks/{flowhooksId}",
31468	//   "httpMethod": "PUT",
31469	//   "id": "apigee.organizations.environments.flowhooks.attachSharedFlowToFlowHook",
31470	//   "parameterOrder": [
31471	//     "name"
31472	//   ],
31473	//   "parameters": {
31474	//     "name": {
31475	//       "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}`",
31476	//       "location": "path",
31477	//       "pattern": "^organizations/[^/]+/environments/[^/]+/flowhooks/[^/]+$",
31478	//       "required": true,
31479	//       "type": "string"
31480	//     }
31481	//   },
31482	//   "path": "v1/{+name}",
31483	//   "request": {
31484	//     "$ref": "GoogleCloudApigeeV1FlowHook"
31485	//   },
31486	//   "response": {
31487	//     "$ref": "GoogleCloudApigeeV1FlowHook"
31488	//   },
31489	//   "scopes": [
31490	//     "https://www.googleapis.com/auth/cloud-platform"
31491	//   ]
31492	// }
31493
31494}
31495
31496// method id "apigee.organizations.environments.flowhooks.detachSharedFlowFromFlowHook":
31497
31498type OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall struct {
31499	s          *Service
31500	name       string
31501	urlParams_ gensupport.URLParams
31502	ctx_       context.Context
31503	header_    http.Header
31504}
31505
31506// DetachSharedFlowFromFlowHook: Detaches a shared flow from a flow
31507// hook.
31508//
31509// - name: Name of the flow hook to detach in the following format:
31510//   `organizations/{org}/environments/{env}/flowhooks/{flowhook}`.
31511func (r *OrganizationsEnvironmentsFlowhooksService) DetachSharedFlowFromFlowHook(name string) *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall {
31512	c := &OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31513	c.name = name
31514	return c
31515}
31516
31517// Fields allows partial responses to be retrieved. See
31518// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
31519// for more information.
31520func (c *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall {
31521	c.urlParams_.Set("fields", googleapi.CombineFields(s))
31522	return c
31523}
31524
31525// Context sets the context to be used in this call's Do method. Any
31526// pending HTTP request will be aborted if the provided context is
31527// canceled.
31528func (c *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall) Context(ctx context.Context) *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall {
31529	c.ctx_ = ctx
31530	return c
31531}
31532
31533// Header returns an http.Header that can be modified by the caller to
31534// add HTTP headers to the request.
31535func (c *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall) Header() http.Header {
31536	if c.header_ == nil {
31537		c.header_ = make(http.Header)
31538	}
31539	return c.header_
31540}
31541
31542func (c *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall) doRequest(alt string) (*http.Response, error) {
31543	reqHeaders := make(http.Header)
31544	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
31545	for k, v := range c.header_ {
31546		reqHeaders[k] = v
31547	}
31548	reqHeaders.Set("User-Agent", c.s.userAgent())
31549	var body io.Reader = nil
31550	c.urlParams_.Set("alt", alt)
31551	c.urlParams_.Set("prettyPrint", "false")
31552	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
31553	urls += "?" + c.urlParams_.Encode()
31554	req, err := http.NewRequest("DELETE", urls, body)
31555	if err != nil {
31556		return nil, err
31557	}
31558	req.Header = reqHeaders
31559	googleapi.Expand(req.URL, map[string]string{
31560		"name": c.name,
31561	})
31562	return gensupport.SendRequest(c.ctx_, c.s.client, req)
31563}
31564
31565// Do executes the "apigee.organizations.environments.flowhooks.detachSharedFlowFromFlowHook" call.
31566// Exactly one of *GoogleCloudApigeeV1FlowHook or error will be non-nil.
31567// Any non-2xx status code is an error. Response headers are in either
31568// *GoogleCloudApigeeV1FlowHook.ServerResponse.Header or (if a response
31569// was returned at all) in error.(*googleapi.Error).Header. Use
31570// googleapi.IsNotModified to check whether the returned error was
31571// because http.StatusNotModified was returned.
31572func (c *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1FlowHook, error) {
31573	gensupport.SetOptions(c.urlParams_, opts...)
31574	res, err := c.doRequest("json")
31575	if res != nil && res.StatusCode == http.StatusNotModified {
31576		if res.Body != nil {
31577			res.Body.Close()
31578		}
31579		return nil, &googleapi.Error{
31580			Code:   res.StatusCode,
31581			Header: res.Header,
31582		}
31583	}
31584	if err != nil {
31585		return nil, err
31586	}
31587	defer googleapi.CloseBody(res)
31588	if err := googleapi.CheckResponse(res); err != nil {
31589		return nil, err
31590	}
31591	ret := &GoogleCloudApigeeV1FlowHook{
31592		ServerResponse: googleapi.ServerResponse{
31593			Header:         res.Header,
31594			HTTPStatusCode: res.StatusCode,
31595		},
31596	}
31597	target := &ret
31598	if err := gensupport.DecodeResponse(target, res); err != nil {
31599		return nil, err
31600	}
31601	return ret, nil
31602	// {
31603	//   "description": "Detaches a shared flow from a flow hook.",
31604	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/flowhooks/{flowhooksId}",
31605	//   "httpMethod": "DELETE",
31606	//   "id": "apigee.organizations.environments.flowhooks.detachSharedFlowFromFlowHook",
31607	//   "parameterOrder": [
31608	//     "name"
31609	//   ],
31610	//   "parameters": {
31611	//     "name": {
31612	//       "description": "Required. Name of the flow hook to detach in the following format: `organizations/{org}/environments/{env}/flowhooks/{flowhook}`",
31613	//       "location": "path",
31614	//       "pattern": "^organizations/[^/]+/environments/[^/]+/flowhooks/[^/]+$",
31615	//       "required": true,
31616	//       "type": "string"
31617	//     }
31618	//   },
31619	//   "path": "v1/{+name}",
31620	//   "response": {
31621	//     "$ref": "GoogleCloudApigeeV1FlowHook"
31622	//   },
31623	//   "scopes": [
31624	//     "https://www.googleapis.com/auth/cloud-platform"
31625	//   ]
31626	// }
31627
31628}
31629
31630// method id "apigee.organizations.environments.flowhooks.get":
31631
31632type OrganizationsEnvironmentsFlowhooksGetCall struct {
31633	s            *Service
31634	name         string
31635	urlParams_   gensupport.URLParams
31636	ifNoneMatch_ string
31637	ctx_         context.Context
31638	header_      http.Header
31639}
31640
31641// Get: Returns the name of the shared flow attached to the specified
31642// flow hook. If there's no shared flow attached to the flow hook, the
31643// API does not return an error; it simply does not return a name in the
31644// response.
31645//
31646// - name: Name of the flow hook in the following format:
31647//   `organizations/{org}/environments/{env}/flowhooks/{flowhook}`.
31648func (r *OrganizationsEnvironmentsFlowhooksService) Get(name string) *OrganizationsEnvironmentsFlowhooksGetCall {
31649	c := &OrganizationsEnvironmentsFlowhooksGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31650	c.name = name
31651	return c
31652}
31653
31654// Fields allows partial responses to be retrieved. See
31655// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
31656// for more information.
31657func (c *OrganizationsEnvironmentsFlowhooksGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsFlowhooksGetCall {
31658	c.urlParams_.Set("fields", googleapi.CombineFields(s))
31659	return c
31660}
31661
31662// IfNoneMatch sets the optional parameter which makes the operation
31663// fail if the object's ETag matches the given value. This is useful for
31664// getting updates only after the object has changed since the last
31665// request. Use googleapi.IsNotModified to check whether the response
31666// error from Do is the result of In-None-Match.
31667func (c *OrganizationsEnvironmentsFlowhooksGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsFlowhooksGetCall {
31668	c.ifNoneMatch_ = entityTag
31669	return c
31670}
31671
31672// Context sets the context to be used in this call's Do method. Any
31673// pending HTTP request will be aborted if the provided context is
31674// canceled.
31675func (c *OrganizationsEnvironmentsFlowhooksGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsFlowhooksGetCall {
31676	c.ctx_ = ctx
31677	return c
31678}
31679
31680// Header returns an http.Header that can be modified by the caller to
31681// add HTTP headers to the request.
31682func (c *OrganizationsEnvironmentsFlowhooksGetCall) Header() http.Header {
31683	if c.header_ == nil {
31684		c.header_ = make(http.Header)
31685	}
31686	return c.header_
31687}
31688
31689func (c *OrganizationsEnvironmentsFlowhooksGetCall) doRequest(alt string) (*http.Response, error) {
31690	reqHeaders := make(http.Header)
31691	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
31692	for k, v := range c.header_ {
31693		reqHeaders[k] = v
31694	}
31695	reqHeaders.Set("User-Agent", c.s.userAgent())
31696	if c.ifNoneMatch_ != "" {
31697		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
31698	}
31699	var body io.Reader = nil
31700	c.urlParams_.Set("alt", alt)
31701	c.urlParams_.Set("prettyPrint", "false")
31702	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
31703	urls += "?" + c.urlParams_.Encode()
31704	req, err := http.NewRequest("GET", urls, body)
31705	if err != nil {
31706		return nil, err
31707	}
31708	req.Header = reqHeaders
31709	googleapi.Expand(req.URL, map[string]string{
31710		"name": c.name,
31711	})
31712	return gensupport.SendRequest(c.ctx_, c.s.client, req)
31713}
31714
31715// Do executes the "apigee.organizations.environments.flowhooks.get" call.
31716// Exactly one of *GoogleCloudApigeeV1FlowHook or error will be non-nil.
31717// Any non-2xx status code is an error. Response headers are in either
31718// *GoogleCloudApigeeV1FlowHook.ServerResponse.Header or (if a response
31719// was returned at all) in error.(*googleapi.Error).Header. Use
31720// googleapi.IsNotModified to check whether the returned error was
31721// because http.StatusNotModified was returned.
31722func (c *OrganizationsEnvironmentsFlowhooksGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1FlowHook, error) {
31723	gensupport.SetOptions(c.urlParams_, opts...)
31724	res, err := c.doRequest("json")
31725	if res != nil && res.StatusCode == http.StatusNotModified {
31726		if res.Body != nil {
31727			res.Body.Close()
31728		}
31729		return nil, &googleapi.Error{
31730			Code:   res.StatusCode,
31731			Header: res.Header,
31732		}
31733	}
31734	if err != nil {
31735		return nil, err
31736	}
31737	defer googleapi.CloseBody(res)
31738	if err := googleapi.CheckResponse(res); err != nil {
31739		return nil, err
31740	}
31741	ret := &GoogleCloudApigeeV1FlowHook{
31742		ServerResponse: googleapi.ServerResponse{
31743			Header:         res.Header,
31744			HTTPStatusCode: res.StatusCode,
31745		},
31746	}
31747	target := &ret
31748	if err := gensupport.DecodeResponse(target, res); err != nil {
31749		return nil, err
31750	}
31751	return ret, nil
31752	// {
31753	//   "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.",
31754	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/flowhooks/{flowhooksId}",
31755	//   "httpMethod": "GET",
31756	//   "id": "apigee.organizations.environments.flowhooks.get",
31757	//   "parameterOrder": [
31758	//     "name"
31759	//   ],
31760	//   "parameters": {
31761	//     "name": {
31762	//       "description": "Required. Name of the flow hook in the following format: `organizations/{org}/environments/{env}/flowhooks/{flowhook}`",
31763	//       "location": "path",
31764	//       "pattern": "^organizations/[^/]+/environments/[^/]+/flowhooks/[^/]+$",
31765	//       "required": true,
31766	//       "type": "string"
31767	//     }
31768	//   },
31769	//   "path": "v1/{+name}",
31770	//   "response": {
31771	//     "$ref": "GoogleCloudApigeeV1FlowHook"
31772	//   },
31773	//   "scopes": [
31774	//     "https://www.googleapis.com/auth/cloud-platform"
31775	//   ]
31776	// }
31777
31778}
31779
31780// method id "apigee.organizations.environments.keystores.create":
31781
31782type OrganizationsEnvironmentsKeystoresCreateCall struct {
31783	s                           *Service
31784	parent                      string
31785	googlecloudapigeev1keystore *GoogleCloudApigeeV1Keystore
31786	urlParams_                  gensupport.URLParams
31787	ctx_                        context.Context
31788	header_                     http.Header
31789}
31790
31791// Create: Creates a keystore or truststore. - Keystore: Contains
31792// certificates and their associated keys. - Truststore: Contains
31793// trusted certificates used to validate a server's certificate. These
31794// certificates are typically self-signed certificates or certificates
31795// that are not signed by a trusted CA.
31796//
31797// - parent: Name of the environment in which to create the keystore.
31798//   Use the following format in your request:
31799//   `organizations/{org}/environments/{env}`.
31800func (r *OrganizationsEnvironmentsKeystoresService) Create(parent string, googlecloudapigeev1keystore *GoogleCloudApigeeV1Keystore) *OrganizationsEnvironmentsKeystoresCreateCall {
31801	c := &OrganizationsEnvironmentsKeystoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31802	c.parent = parent
31803	c.googlecloudapigeev1keystore = googlecloudapigeev1keystore
31804	return c
31805}
31806
31807// Name sets the optional parameter "name": Name of the keystore.
31808// Overrides the value in Keystore.
31809func (c *OrganizationsEnvironmentsKeystoresCreateCall) Name(name string) *OrganizationsEnvironmentsKeystoresCreateCall {
31810	c.urlParams_.Set("name", name)
31811	return c
31812}
31813
31814// Fields allows partial responses to be retrieved. See
31815// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
31816// for more information.
31817func (c *OrganizationsEnvironmentsKeystoresCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresCreateCall {
31818	c.urlParams_.Set("fields", googleapi.CombineFields(s))
31819	return c
31820}
31821
31822// Context sets the context to be used in this call's Do method. Any
31823// pending HTTP request will be aborted if the provided context is
31824// canceled.
31825func (c *OrganizationsEnvironmentsKeystoresCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresCreateCall {
31826	c.ctx_ = ctx
31827	return c
31828}
31829
31830// Header returns an http.Header that can be modified by the caller to
31831// add HTTP headers to the request.
31832func (c *OrganizationsEnvironmentsKeystoresCreateCall) Header() http.Header {
31833	if c.header_ == nil {
31834		c.header_ = make(http.Header)
31835	}
31836	return c.header_
31837}
31838
31839func (c *OrganizationsEnvironmentsKeystoresCreateCall) doRequest(alt string) (*http.Response, error) {
31840	reqHeaders := make(http.Header)
31841	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
31842	for k, v := range c.header_ {
31843		reqHeaders[k] = v
31844	}
31845	reqHeaders.Set("User-Agent", c.s.userAgent())
31846	var body io.Reader = nil
31847	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1keystore)
31848	if err != nil {
31849		return nil, err
31850	}
31851	reqHeaders.Set("Content-Type", "application/json")
31852	c.urlParams_.Set("alt", alt)
31853	c.urlParams_.Set("prettyPrint", "false")
31854	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keystores")
31855	urls += "?" + c.urlParams_.Encode()
31856	req, err := http.NewRequest("POST", urls, body)
31857	if err != nil {
31858		return nil, err
31859	}
31860	req.Header = reqHeaders
31861	googleapi.Expand(req.URL, map[string]string{
31862		"parent": c.parent,
31863	})
31864	return gensupport.SendRequest(c.ctx_, c.s.client, req)
31865}
31866
31867// Do executes the "apigee.organizations.environments.keystores.create" call.
31868// Exactly one of *GoogleCloudApigeeV1Keystore or error will be non-nil.
31869// Any non-2xx status code is an error. Response headers are in either
31870// *GoogleCloudApigeeV1Keystore.ServerResponse.Header or (if a response
31871// was returned at all) in error.(*googleapi.Error).Header. Use
31872// googleapi.IsNotModified to check whether the returned error was
31873// because http.StatusNotModified was returned.
31874func (c *OrganizationsEnvironmentsKeystoresCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Keystore, error) {
31875	gensupport.SetOptions(c.urlParams_, opts...)
31876	res, err := c.doRequest("json")
31877	if res != nil && res.StatusCode == http.StatusNotModified {
31878		if res.Body != nil {
31879			res.Body.Close()
31880		}
31881		return nil, &googleapi.Error{
31882			Code:   res.StatusCode,
31883			Header: res.Header,
31884		}
31885	}
31886	if err != nil {
31887		return nil, err
31888	}
31889	defer googleapi.CloseBody(res)
31890	if err := googleapi.CheckResponse(res); err != nil {
31891		return nil, err
31892	}
31893	ret := &GoogleCloudApigeeV1Keystore{
31894		ServerResponse: googleapi.ServerResponse{
31895			Header:         res.Header,
31896			HTTPStatusCode: res.StatusCode,
31897		},
31898	}
31899	target := &ret
31900	if err := gensupport.DecodeResponse(target, res); err != nil {
31901		return nil, err
31902	}
31903	return ret, nil
31904	// {
31905	//   "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.",
31906	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores",
31907	//   "httpMethod": "POST",
31908	//   "id": "apigee.organizations.environments.keystores.create",
31909	//   "parameterOrder": [
31910	//     "parent"
31911	//   ],
31912	//   "parameters": {
31913	//     "name": {
31914	//       "description": "Optional. Name of the keystore. Overrides the value in Keystore.",
31915	//       "location": "query",
31916	//       "type": "string"
31917	//     },
31918	//     "parent": {
31919	//       "description": "Required. Name of the environment in which to create the keystore. Use the following format in your request: `organizations/{org}/environments/{env}`",
31920	//       "location": "path",
31921	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
31922	//       "required": true,
31923	//       "type": "string"
31924	//     }
31925	//   },
31926	//   "path": "v1/{+parent}/keystores",
31927	//   "request": {
31928	//     "$ref": "GoogleCloudApigeeV1Keystore"
31929	//   },
31930	//   "response": {
31931	//     "$ref": "GoogleCloudApigeeV1Keystore"
31932	//   },
31933	//   "scopes": [
31934	//     "https://www.googleapis.com/auth/cloud-platform"
31935	//   ]
31936	// }
31937
31938}
31939
31940// method id "apigee.organizations.environments.keystores.delete":
31941
31942type OrganizationsEnvironmentsKeystoresDeleteCall struct {
31943	s          *Service
31944	name       string
31945	urlParams_ gensupport.URLParams
31946	ctx_       context.Context
31947	header_    http.Header
31948}
31949
31950// Delete: Deletes a keystore or truststore.
31951//
31952// - name: Name of the keystore. Use the following format in your
31953//   request:
31954//   `organizations/{org}/environments/{env}/keystores/{keystore}`.
31955func (r *OrganizationsEnvironmentsKeystoresService) Delete(name string) *OrganizationsEnvironmentsKeystoresDeleteCall {
31956	c := &OrganizationsEnvironmentsKeystoresDeleteCall{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 *OrganizationsEnvironmentsKeystoresDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresDeleteCall {
31965	c.urlParams_.Set("fields", googleapi.CombineFields(s))
31966	return c
31967}
31968
31969// Context sets the context to be used in this call's Do method. Any
31970// pending HTTP request will be aborted if the provided context is
31971// canceled.
31972func (c *OrganizationsEnvironmentsKeystoresDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresDeleteCall {
31973	c.ctx_ = ctx
31974	return c
31975}
31976
31977// Header returns an http.Header that can be modified by the caller to
31978// add HTTP headers to the request.
31979func (c *OrganizationsEnvironmentsKeystoresDeleteCall) Header() http.Header {
31980	if c.header_ == nil {
31981		c.header_ = make(http.Header)
31982	}
31983	return c.header_
31984}
31985
31986func (c *OrganizationsEnvironmentsKeystoresDeleteCall) doRequest(alt string) (*http.Response, error) {
31987	reqHeaders := make(http.Header)
31988	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
31989	for k, v := range c.header_ {
31990		reqHeaders[k] = v
31991	}
31992	reqHeaders.Set("User-Agent", c.s.userAgent())
31993	var body io.Reader = nil
31994	c.urlParams_.Set("alt", alt)
31995	c.urlParams_.Set("prettyPrint", "false")
31996	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
31997	urls += "?" + c.urlParams_.Encode()
31998	req, err := http.NewRequest("DELETE", urls, body)
31999	if err != nil {
32000		return nil, err
32001	}
32002	req.Header = reqHeaders
32003	googleapi.Expand(req.URL, map[string]string{
32004		"name": c.name,
32005	})
32006	return gensupport.SendRequest(c.ctx_, c.s.client, req)
32007}
32008
32009// Do executes the "apigee.organizations.environments.keystores.delete" call.
32010// Exactly one of *GoogleCloudApigeeV1Keystore or error will be non-nil.
32011// Any non-2xx status code is an error. Response headers are in either
32012// *GoogleCloudApigeeV1Keystore.ServerResponse.Header or (if a response
32013// was returned at all) in error.(*googleapi.Error).Header. Use
32014// googleapi.IsNotModified to check whether the returned error was
32015// because http.StatusNotModified was returned.
32016func (c *OrganizationsEnvironmentsKeystoresDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Keystore, error) {
32017	gensupport.SetOptions(c.urlParams_, opts...)
32018	res, err := c.doRequest("json")
32019	if res != nil && res.StatusCode == http.StatusNotModified {
32020		if res.Body != nil {
32021			res.Body.Close()
32022		}
32023		return nil, &googleapi.Error{
32024			Code:   res.StatusCode,
32025			Header: res.Header,
32026		}
32027	}
32028	if err != nil {
32029		return nil, err
32030	}
32031	defer googleapi.CloseBody(res)
32032	if err := googleapi.CheckResponse(res); err != nil {
32033		return nil, err
32034	}
32035	ret := &GoogleCloudApigeeV1Keystore{
32036		ServerResponse: googleapi.ServerResponse{
32037			Header:         res.Header,
32038			HTTPStatusCode: res.StatusCode,
32039		},
32040	}
32041	target := &ret
32042	if err := gensupport.DecodeResponse(target, res); err != nil {
32043		return nil, err
32044	}
32045	return ret, nil
32046	// {
32047	//   "description": "Deletes a keystore or truststore.",
32048	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}",
32049	//   "httpMethod": "DELETE",
32050	//   "id": "apigee.organizations.environments.keystores.delete",
32051	//   "parameterOrder": [
32052	//     "name"
32053	//   ],
32054	//   "parameters": {
32055	//     "name": {
32056	//       "description": "Required. Name of the keystore. Use the following format in your request: `organizations/{org}/environments/{env}/keystores/{keystore}`",
32057	//       "location": "path",
32058	//       "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+$",
32059	//       "required": true,
32060	//       "type": "string"
32061	//     }
32062	//   },
32063	//   "path": "v1/{+name}",
32064	//   "response": {
32065	//     "$ref": "GoogleCloudApigeeV1Keystore"
32066	//   },
32067	//   "scopes": [
32068	//     "https://www.googleapis.com/auth/cloud-platform"
32069	//   ]
32070	// }
32071
32072}
32073
32074// method id "apigee.organizations.environments.keystores.get":
32075
32076type OrganizationsEnvironmentsKeystoresGetCall struct {
32077	s            *Service
32078	name         string
32079	urlParams_   gensupport.URLParams
32080	ifNoneMatch_ string
32081	ctx_         context.Context
32082	header_      http.Header
32083}
32084
32085// Get: Gets a keystore or truststore.
32086//
32087// - name: Name of the keystore. Use the following format in your
32088//   request:
32089//   `organizations/{org}/environments/{env}/keystores/{keystore}`.
32090func (r *OrganizationsEnvironmentsKeystoresService) Get(name string) *OrganizationsEnvironmentsKeystoresGetCall {
32091	c := &OrganizationsEnvironmentsKeystoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32092	c.name = name
32093	return c
32094}
32095
32096// Fields allows partial responses to be retrieved. See
32097// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
32098// for more information.
32099func (c *OrganizationsEnvironmentsKeystoresGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresGetCall {
32100	c.urlParams_.Set("fields", googleapi.CombineFields(s))
32101	return c
32102}
32103
32104// IfNoneMatch sets the optional parameter which makes the operation
32105// fail if the object's ETag matches the given value. This is useful for
32106// getting updates only after the object has changed since the last
32107// request. Use googleapi.IsNotModified to check whether the response
32108// error from Do is the result of In-None-Match.
32109func (c *OrganizationsEnvironmentsKeystoresGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsKeystoresGetCall {
32110	c.ifNoneMatch_ = entityTag
32111	return c
32112}
32113
32114// Context sets the context to be used in this call's Do method. Any
32115// pending HTTP request will be aborted if the provided context is
32116// canceled.
32117func (c *OrganizationsEnvironmentsKeystoresGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresGetCall {
32118	c.ctx_ = ctx
32119	return c
32120}
32121
32122// Header returns an http.Header that can be modified by the caller to
32123// add HTTP headers to the request.
32124func (c *OrganizationsEnvironmentsKeystoresGetCall) Header() http.Header {
32125	if c.header_ == nil {
32126		c.header_ = make(http.Header)
32127	}
32128	return c.header_
32129}
32130
32131func (c *OrganizationsEnvironmentsKeystoresGetCall) doRequest(alt string) (*http.Response, error) {
32132	reqHeaders := make(http.Header)
32133	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
32134	for k, v := range c.header_ {
32135		reqHeaders[k] = v
32136	}
32137	reqHeaders.Set("User-Agent", c.s.userAgent())
32138	if c.ifNoneMatch_ != "" {
32139		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
32140	}
32141	var body io.Reader = nil
32142	c.urlParams_.Set("alt", alt)
32143	c.urlParams_.Set("prettyPrint", "false")
32144	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
32145	urls += "?" + c.urlParams_.Encode()
32146	req, err := http.NewRequest("GET", urls, body)
32147	if err != nil {
32148		return nil, err
32149	}
32150	req.Header = reqHeaders
32151	googleapi.Expand(req.URL, map[string]string{
32152		"name": c.name,
32153	})
32154	return gensupport.SendRequest(c.ctx_, c.s.client, req)
32155}
32156
32157// Do executes the "apigee.organizations.environments.keystores.get" call.
32158// Exactly one of *GoogleCloudApigeeV1Keystore or error will be non-nil.
32159// Any non-2xx status code is an error. Response headers are in either
32160// *GoogleCloudApigeeV1Keystore.ServerResponse.Header or (if a response
32161// was returned at all) in error.(*googleapi.Error).Header. Use
32162// googleapi.IsNotModified to check whether the returned error was
32163// because http.StatusNotModified was returned.
32164func (c *OrganizationsEnvironmentsKeystoresGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Keystore, error) {
32165	gensupport.SetOptions(c.urlParams_, opts...)
32166	res, err := c.doRequest("json")
32167	if res != nil && res.StatusCode == http.StatusNotModified {
32168		if res.Body != nil {
32169			res.Body.Close()
32170		}
32171		return nil, &googleapi.Error{
32172			Code:   res.StatusCode,
32173			Header: res.Header,
32174		}
32175	}
32176	if err != nil {
32177		return nil, err
32178	}
32179	defer googleapi.CloseBody(res)
32180	if err := googleapi.CheckResponse(res); err != nil {
32181		return nil, err
32182	}
32183	ret := &GoogleCloudApigeeV1Keystore{
32184		ServerResponse: googleapi.ServerResponse{
32185			Header:         res.Header,
32186			HTTPStatusCode: res.StatusCode,
32187		},
32188	}
32189	target := &ret
32190	if err := gensupport.DecodeResponse(target, res); err != nil {
32191		return nil, err
32192	}
32193	return ret, nil
32194	// {
32195	//   "description": "Gets a keystore or truststore.",
32196	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}",
32197	//   "httpMethod": "GET",
32198	//   "id": "apigee.organizations.environments.keystores.get",
32199	//   "parameterOrder": [
32200	//     "name"
32201	//   ],
32202	//   "parameters": {
32203	//     "name": {
32204	//       "description": "Required. Name of the keystore. Use the following format in your request: `organizations/{org}/environments/{env}/keystores/{keystore}`.",
32205	//       "location": "path",
32206	//       "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+$",
32207	//       "required": true,
32208	//       "type": "string"
32209	//     }
32210	//   },
32211	//   "path": "v1/{+name}",
32212	//   "response": {
32213	//     "$ref": "GoogleCloudApigeeV1Keystore"
32214	//   },
32215	//   "scopes": [
32216	//     "https://www.googleapis.com/auth/cloud-platform"
32217	//   ]
32218	// }
32219
32220}
32221
32222// method id "apigee.organizations.environments.keystores.aliases.create":
32223
32224type OrganizationsEnvironmentsKeystoresAliasesCreateCall struct {
32225	s                 *Service
32226	parent            string
32227	googleapihttpbody *GoogleApiHttpBody
32228	urlParams_        gensupport.URLParams
32229	ctx_              context.Context
32230	header_           http.Header
32231}
32232
32233// Create: Creates an alias from a key/certificate pair. The structure
32234// of the request is controlled by the `format` query parameter: -
32235// `keycertfile` - Separate PEM-encoded key and certificate files are
32236// uploaded. Set `Content-Type: multipart/form-data` and include the
32237// `keyFile`, `certFile`, and `password` (if keys are encrypted) fields
32238// in the request body. If uploading to a truststore, omit `keyFile`. -
32239// `pkcs12` - A PKCS12 file is uploaded. Set `Content-Type:
32240// multipart/form-data`, provide the file in the `file` field, and
32241// include the `password` field if the file is encrypted in the request
32242// body. - `selfsignedcert` - A new private key and certificate are
32243// generated. Set `Content-Type: application/json` and include
32244// CertificateGenerationSpec in the request body.
32245//
32246// - parent: Name of the keystore. Use the following format in your
32247//   request:
32248//   `organizations/{org}/environments/{env}/keystores/{keystore}`.
32249func (r *OrganizationsEnvironmentsKeystoresAliasesService) Create(parent string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
32250	c := &OrganizationsEnvironmentsKeystoresAliasesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32251	c.parent = parent
32252	c.googleapihttpbody = googleapihttpbody
32253	return c
32254}
32255
32256// Password sets the optional parameter "_password": DEPRECATED: For
32257// improved security, specify the password in the request body instead
32258// of using the query parameter. To specify the password in the request
32259// body, set `Content-type: multipart/form-data` part with name
32260// `password`. Password for the private key file, if required.
32261func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Password(Password string) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
32262	c.urlParams_.Set("_password", Password)
32263	return c
32264}
32265
32266// Alias sets the optional parameter "alias": Alias for the
32267// key/certificate pair. Values must match the regular expression
32268// `[\w\s-.]{1,255}`. This must be provided for all formats except
32269// `selfsignedcert`; self-signed certs may specify the alias in either
32270// this parameter or the JSON body.
32271func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Alias(alias string) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
32272	c.urlParams_.Set("alias", alias)
32273	return c
32274}
32275
32276// Format sets the optional parameter "format": Required. Format of the
32277// data. Valid values include: `selfsignedcert`, `keycertfile`, or
32278// `pkcs12`
32279func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Format(format string) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
32280	c.urlParams_.Set("format", format)
32281	return c
32282}
32283
32284// IgnoreExpiryValidation sets the optional parameter
32285// "ignoreExpiryValidation": Flag that specifies whether to ignore
32286// expiry validation. If set to `true`, no expiry validation will be
32287// performed.
32288func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) IgnoreExpiryValidation(ignoreExpiryValidation bool) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
32289	c.urlParams_.Set("ignoreExpiryValidation", fmt.Sprint(ignoreExpiryValidation))
32290	return c
32291}
32292
32293// IgnoreNewlineValidation sets the optional parameter
32294// "ignoreNewlineValidation": Flag that specifies whether to ignore
32295// newline validation. If set to `true`, no error is thrown when the
32296// file contains a certificate chain with no newline between each
32297// certificate. Defaults to `false`.
32298func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) IgnoreNewlineValidation(ignoreNewlineValidation bool) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
32299	c.urlParams_.Set("ignoreNewlineValidation", fmt.Sprint(ignoreNewlineValidation))
32300	return c
32301}
32302
32303// Fields allows partial responses to be retrieved. See
32304// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
32305// for more information.
32306func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
32307	c.urlParams_.Set("fields", googleapi.CombineFields(s))
32308	return c
32309}
32310
32311// Context sets the context to be used in this call's Do method. Any
32312// pending HTTP request will be aborted if the provided context is
32313// canceled.
32314func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
32315	c.ctx_ = ctx
32316	return c
32317}
32318
32319// Header returns an http.Header that can be modified by the caller to
32320// add HTTP headers to the request.
32321func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Header() http.Header {
32322	if c.header_ == nil {
32323		c.header_ = make(http.Header)
32324	}
32325	return c.header_
32326}
32327
32328func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) doRequest(alt string) (*http.Response, error) {
32329	reqHeaders := make(http.Header)
32330	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
32331	for k, v := range c.header_ {
32332		reqHeaders[k] = v
32333	}
32334	reqHeaders.Set("User-Agent", c.s.userAgent())
32335	var body io.Reader = nil
32336	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
32337	if err != nil {
32338		return nil, err
32339	}
32340	reqHeaders.Set("Content-Type", "application/json")
32341	c.urlParams_.Set("alt", alt)
32342	c.urlParams_.Set("prettyPrint", "false")
32343	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/aliases")
32344	urls += "?" + c.urlParams_.Encode()
32345	req, err := http.NewRequest("POST", urls, body)
32346	if err != nil {
32347		return nil, err
32348	}
32349	req.Header = reqHeaders
32350	googleapi.Expand(req.URL, map[string]string{
32351		"parent": c.parent,
32352	})
32353	return gensupport.SendRequest(c.ctx_, c.s.client, req)
32354}
32355
32356// Do executes the "apigee.organizations.environments.keystores.aliases.create" call.
32357// Exactly one of *GoogleCloudApigeeV1Alias or error will be non-nil.
32358// Any non-2xx status code is an error. Response headers are in either
32359// *GoogleCloudApigeeV1Alias.ServerResponse.Header or (if a response was
32360// returned at all) in error.(*googleapi.Error).Header. Use
32361// googleapi.IsNotModified to check whether the returned error was
32362// because http.StatusNotModified was returned.
32363func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Alias, error) {
32364	gensupport.SetOptions(c.urlParams_, opts...)
32365	res, err := c.doRequest("json")
32366	if res != nil && res.StatusCode == http.StatusNotModified {
32367		if res.Body != nil {
32368			res.Body.Close()
32369		}
32370		return nil, &googleapi.Error{
32371			Code:   res.StatusCode,
32372			Header: res.Header,
32373		}
32374	}
32375	if err != nil {
32376		return nil, err
32377	}
32378	defer googleapi.CloseBody(res)
32379	if err := googleapi.CheckResponse(res); err != nil {
32380		return nil, err
32381	}
32382	ret := &GoogleCloudApigeeV1Alias{
32383		ServerResponse: googleapi.ServerResponse{
32384			Header:         res.Header,
32385			HTTPStatusCode: res.StatusCode,
32386		},
32387	}
32388	target := &ret
32389	if err := gensupport.DecodeResponse(target, res); err != nil {
32390		return nil, err
32391	}
32392	return ret, nil
32393	// {
32394	//   "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.",
32395	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}/aliases",
32396	//   "httpMethod": "POST",
32397	//   "id": "apigee.organizations.environments.keystores.aliases.create",
32398	//   "parameterOrder": [
32399	//     "parent"
32400	//   ],
32401	//   "parameters": {
32402	//     "_password": {
32403	//       "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.",
32404	//       "location": "query",
32405	//       "type": "string"
32406	//     },
32407	//     "alias": {
32408	//       "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.",
32409	//       "location": "query",
32410	//       "type": "string"
32411	//     },
32412	//     "format": {
32413	//       "description": "Required. Format of the data. Valid values include: `selfsignedcert`, `keycertfile`, or `pkcs12`",
32414	//       "location": "query",
32415	//       "type": "string"
32416	//     },
32417	//     "ignoreExpiryValidation": {
32418	//       "description": "Flag that specifies whether to ignore expiry validation. If set to `true`, no expiry validation will be performed.",
32419	//       "location": "query",
32420	//       "type": "boolean"
32421	//     },
32422	//     "ignoreNewlineValidation": {
32423	//       "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`.",
32424	//       "location": "query",
32425	//       "type": "boolean"
32426	//     },
32427	//     "parent": {
32428	//       "description": "Required. Name of the keystore. Use the following format in your request: `organizations/{org}/environments/{env}/keystores/{keystore}`.",
32429	//       "location": "path",
32430	//       "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+$",
32431	//       "required": true,
32432	//       "type": "string"
32433	//     }
32434	//   },
32435	//   "path": "v1/{+parent}/aliases",
32436	//   "request": {
32437	//     "$ref": "GoogleApiHttpBody"
32438	//   },
32439	//   "response": {
32440	//     "$ref": "GoogleCloudApigeeV1Alias"
32441	//   },
32442	//   "scopes": [
32443	//     "https://www.googleapis.com/auth/cloud-platform"
32444	//   ]
32445	// }
32446
32447}
32448
32449// method id "apigee.organizations.environments.keystores.aliases.csr":
32450
32451type OrganizationsEnvironmentsKeystoresAliasesCsrCall struct {
32452	s            *Service
32453	name         string
32454	urlParams_   gensupport.URLParams
32455	ifNoneMatch_ string
32456	ctx_         context.Context
32457	header_      http.Header
32458}
32459
32460// Csr: Generates a PKCS #10 Certificate Signing Request for the private
32461// key in an alias.
32462//
32463// - name: Name of the alias. Use the following format in your request:
32464//   `organizations/{org}/environments/{env}/keystores/{keystore}/aliases
32465//   /{alias}`.
32466func (r *OrganizationsEnvironmentsKeystoresAliasesService) Csr(name string) *OrganizationsEnvironmentsKeystoresAliasesCsrCall {
32467	c := &OrganizationsEnvironmentsKeystoresAliasesCsrCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32468	c.name = name
32469	return c
32470}
32471
32472// Fields allows partial responses to be retrieved. See
32473// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
32474// for more information.
32475func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesCsrCall {
32476	c.urlParams_.Set("fields", googleapi.CombineFields(s))
32477	return c
32478}
32479
32480// IfNoneMatch sets the optional parameter which makes the operation
32481// fail if the object's ETag matches the given value. This is useful for
32482// getting updates only after the object has changed since the last
32483// request. Use googleapi.IsNotModified to check whether the response
32484// error from Do is the result of In-None-Match.
32485func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsKeystoresAliasesCsrCall {
32486	c.ifNoneMatch_ = entityTag
32487	return c
32488}
32489
32490// Context sets the context to be used in this call's Do method. Any
32491// pending HTTP request will be aborted if the provided context is
32492// canceled.
32493func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesCsrCall {
32494	c.ctx_ = ctx
32495	return c
32496}
32497
32498// Header returns an http.Header that can be modified by the caller to
32499// add HTTP headers to the request.
32500func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) Header() http.Header {
32501	if c.header_ == nil {
32502		c.header_ = make(http.Header)
32503	}
32504	return c.header_
32505}
32506
32507func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) doRequest(alt string) (*http.Response, error) {
32508	reqHeaders := make(http.Header)
32509	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
32510	for k, v := range c.header_ {
32511		reqHeaders[k] = v
32512	}
32513	reqHeaders.Set("User-Agent", c.s.userAgent())
32514	if c.ifNoneMatch_ != "" {
32515		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
32516	}
32517	var body io.Reader = nil
32518	c.urlParams_.Set("alt", alt)
32519	c.urlParams_.Set("prettyPrint", "false")
32520	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/csr")
32521	urls += "?" + c.urlParams_.Encode()
32522	req, err := http.NewRequest("GET", urls, body)
32523	if err != nil {
32524		return nil, err
32525	}
32526	req.Header = reqHeaders
32527	googleapi.Expand(req.URL, map[string]string{
32528		"name": c.name,
32529	})
32530	return gensupport.SendRequest(c.ctx_, c.s.client, req)
32531}
32532
32533// Do executes the "apigee.organizations.environments.keystores.aliases.csr" call.
32534// Exactly one of *GoogleApiHttpBody or error will be non-nil. Any
32535// non-2xx status code is an error. Response headers are in either
32536// *GoogleApiHttpBody.ServerResponse.Header or (if a response was
32537// returned at all) in error.(*googleapi.Error).Header. Use
32538// googleapi.IsNotModified to check whether the returned error was
32539// because http.StatusNotModified was returned.
32540func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
32541	gensupport.SetOptions(c.urlParams_, opts...)
32542	res, err := c.doRequest("json")
32543	if res != nil && res.StatusCode == http.StatusNotModified {
32544		if res.Body != nil {
32545			res.Body.Close()
32546		}
32547		return nil, &googleapi.Error{
32548			Code:   res.StatusCode,
32549			Header: res.Header,
32550		}
32551	}
32552	if err != nil {
32553		return nil, err
32554	}
32555	defer googleapi.CloseBody(res)
32556	if err := googleapi.CheckResponse(res); err != nil {
32557		return nil, err
32558	}
32559	ret := &GoogleApiHttpBody{
32560		ServerResponse: googleapi.ServerResponse{
32561			Header:         res.Header,
32562			HTTPStatusCode: res.StatusCode,
32563		},
32564	}
32565	target := &ret
32566	if err := gensupport.DecodeResponse(target, res); err != nil {
32567		return nil, err
32568	}
32569	return ret, nil
32570	// {
32571	//   "description": "Generates a PKCS #10 Certificate Signing Request for the private key in an alias.",
32572	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}/aliases/{aliasesId}/csr",
32573	//   "httpMethod": "GET",
32574	//   "id": "apigee.organizations.environments.keystores.aliases.csr",
32575	//   "parameterOrder": [
32576	//     "name"
32577	//   ],
32578	//   "parameters": {
32579	//     "name": {
32580	//       "description": "Required. Name of the alias. Use the following format in your request: `organizations/{org}/environments/{env}/keystores/{keystore}/aliases/{alias}`.",
32581	//       "location": "path",
32582	//       "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+/aliases/[^/]+$",
32583	//       "required": true,
32584	//       "type": "string"
32585	//     }
32586	//   },
32587	//   "path": "v1/{+name}/csr",
32588	//   "response": {
32589	//     "$ref": "GoogleApiHttpBody"
32590	//   },
32591	//   "scopes": [
32592	//     "https://www.googleapis.com/auth/cloud-platform"
32593	//   ]
32594	// }
32595
32596}
32597
32598// method id "apigee.organizations.environments.keystores.aliases.delete":
32599
32600type OrganizationsEnvironmentsKeystoresAliasesDeleteCall struct {
32601	s          *Service
32602	name       string
32603	urlParams_ gensupport.URLParams
32604	ctx_       context.Context
32605	header_    http.Header
32606}
32607
32608// Delete: Deletes an alias.
32609//
32610// - name: Name of the alias. Use the following format in your request:
32611//   `organizations/{org}/environments/{env}/keystores/{keystore}/aliases
32612//   /{alias}`.
32613func (r *OrganizationsEnvironmentsKeystoresAliasesService) Delete(name string) *OrganizationsEnvironmentsKeystoresAliasesDeleteCall {
32614	c := &OrganizationsEnvironmentsKeystoresAliasesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32615	c.name = name
32616	return c
32617}
32618
32619// Fields allows partial responses to be retrieved. See
32620// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
32621// for more information.
32622func (c *OrganizationsEnvironmentsKeystoresAliasesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesDeleteCall {
32623	c.urlParams_.Set("fields", googleapi.CombineFields(s))
32624	return c
32625}
32626
32627// Context sets the context to be used in this call's Do method. Any
32628// pending HTTP request will be aborted if the provided context is
32629// canceled.
32630func (c *OrganizationsEnvironmentsKeystoresAliasesDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesDeleteCall {
32631	c.ctx_ = ctx
32632	return c
32633}
32634
32635// Header returns an http.Header that can be modified by the caller to
32636// add HTTP headers to the request.
32637func (c *OrganizationsEnvironmentsKeystoresAliasesDeleteCall) Header() http.Header {
32638	if c.header_ == nil {
32639		c.header_ = make(http.Header)
32640	}
32641	return c.header_
32642}
32643
32644func (c *OrganizationsEnvironmentsKeystoresAliasesDeleteCall) doRequest(alt string) (*http.Response, error) {
32645	reqHeaders := make(http.Header)
32646	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
32647	for k, v := range c.header_ {
32648		reqHeaders[k] = v
32649	}
32650	reqHeaders.Set("User-Agent", c.s.userAgent())
32651	var body io.Reader = nil
32652	c.urlParams_.Set("alt", alt)
32653	c.urlParams_.Set("prettyPrint", "false")
32654	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
32655	urls += "?" + c.urlParams_.Encode()
32656	req, err := http.NewRequest("DELETE", urls, body)
32657	if err != nil {
32658		return nil, err
32659	}
32660	req.Header = reqHeaders
32661	googleapi.Expand(req.URL, map[string]string{
32662		"name": c.name,
32663	})
32664	return gensupport.SendRequest(c.ctx_, c.s.client, req)
32665}
32666
32667// Do executes the "apigee.organizations.environments.keystores.aliases.delete" call.
32668// Exactly one of *GoogleCloudApigeeV1Alias or error will be non-nil.
32669// Any non-2xx status code is an error. Response headers are in either
32670// *GoogleCloudApigeeV1Alias.ServerResponse.Header or (if a response was
32671// returned at all) in error.(*googleapi.Error).Header. Use
32672// googleapi.IsNotModified to check whether the returned error was
32673// because http.StatusNotModified was returned.
32674func (c *OrganizationsEnvironmentsKeystoresAliasesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Alias, error) {
32675	gensupport.SetOptions(c.urlParams_, opts...)
32676	res, err := c.doRequest("json")
32677	if res != nil && res.StatusCode == http.StatusNotModified {
32678		if res.Body != nil {
32679			res.Body.Close()
32680		}
32681		return nil, &googleapi.Error{
32682			Code:   res.StatusCode,
32683			Header: res.Header,
32684		}
32685	}
32686	if err != nil {
32687		return nil, err
32688	}
32689	defer googleapi.CloseBody(res)
32690	if err := googleapi.CheckResponse(res); err != nil {
32691		return nil, err
32692	}
32693	ret := &GoogleCloudApigeeV1Alias{
32694		ServerResponse: googleapi.ServerResponse{
32695			Header:         res.Header,
32696			HTTPStatusCode: res.StatusCode,
32697		},
32698	}
32699	target := &ret
32700	if err := gensupport.DecodeResponse(target, res); err != nil {
32701		return nil, err
32702	}
32703	return ret, nil
32704	// {
32705	//   "description": "Deletes an alias.",
32706	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}/aliases/{aliasesId}",
32707	//   "httpMethod": "DELETE",
32708	//   "id": "apigee.organizations.environments.keystores.aliases.delete",
32709	//   "parameterOrder": [
32710	//     "name"
32711	//   ],
32712	//   "parameters": {
32713	//     "name": {
32714	//       "description": "Required. Name of the alias. Use the following format in your request: `organizations/{org}/environments/{env}/keystores/{keystore}/aliases/{alias}`.",
32715	//       "location": "path",
32716	//       "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+/aliases/[^/]+$",
32717	//       "required": true,
32718	//       "type": "string"
32719	//     }
32720	//   },
32721	//   "path": "v1/{+name}",
32722	//   "response": {
32723	//     "$ref": "GoogleCloudApigeeV1Alias"
32724	//   },
32725	//   "scopes": [
32726	//     "https://www.googleapis.com/auth/cloud-platform"
32727	//   ]
32728	// }
32729
32730}
32731
32732// method id "apigee.organizations.environments.keystores.aliases.get":
32733
32734type OrganizationsEnvironmentsKeystoresAliasesGetCall struct {
32735	s            *Service
32736	name         string
32737	urlParams_   gensupport.URLParams
32738	ifNoneMatch_ string
32739	ctx_         context.Context
32740	header_      http.Header
32741}
32742
32743// Get: Gets an alias.
32744//
32745// - name: Name of the alias. Use the following format in your request:
32746//   `organizations/{org}/environments/{env}/keystores/{keystore}/aliases
32747//   /{alias}`.
32748func (r *OrganizationsEnvironmentsKeystoresAliasesService) Get(name string) *OrganizationsEnvironmentsKeystoresAliasesGetCall {
32749	c := &OrganizationsEnvironmentsKeystoresAliasesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32750	c.name = name
32751	return c
32752}
32753
32754// Fields allows partial responses to be retrieved. See
32755// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
32756// for more information.
32757func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesGetCall {
32758	c.urlParams_.Set("fields", googleapi.CombineFields(s))
32759	return c
32760}
32761
32762// IfNoneMatch sets the optional parameter which makes the operation
32763// fail if the object's ETag matches the given value. This is useful for
32764// getting updates only after the object has changed since the last
32765// request. Use googleapi.IsNotModified to check whether the response
32766// error from Do is the result of In-None-Match.
32767func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsKeystoresAliasesGetCall {
32768	c.ifNoneMatch_ = entityTag
32769	return c
32770}
32771
32772// Context sets the context to be used in this call's Do method. Any
32773// pending HTTP request will be aborted if the provided context is
32774// canceled.
32775func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesGetCall {
32776	c.ctx_ = ctx
32777	return c
32778}
32779
32780// Header returns an http.Header that can be modified by the caller to
32781// add HTTP headers to the request.
32782func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) Header() http.Header {
32783	if c.header_ == nil {
32784		c.header_ = make(http.Header)
32785	}
32786	return c.header_
32787}
32788
32789func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) doRequest(alt string) (*http.Response, error) {
32790	reqHeaders := make(http.Header)
32791	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
32792	for k, v := range c.header_ {
32793		reqHeaders[k] = v
32794	}
32795	reqHeaders.Set("User-Agent", c.s.userAgent())
32796	if c.ifNoneMatch_ != "" {
32797		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
32798	}
32799	var body io.Reader = nil
32800	c.urlParams_.Set("alt", alt)
32801	c.urlParams_.Set("prettyPrint", "false")
32802	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
32803	urls += "?" + c.urlParams_.Encode()
32804	req, err := http.NewRequest("GET", urls, body)
32805	if err != nil {
32806		return nil, err
32807	}
32808	req.Header = reqHeaders
32809	googleapi.Expand(req.URL, map[string]string{
32810		"name": c.name,
32811	})
32812	return gensupport.SendRequest(c.ctx_, c.s.client, req)
32813}
32814
32815// Do executes the "apigee.organizations.environments.keystores.aliases.get" call.
32816// Exactly one of *GoogleCloudApigeeV1Alias or error will be non-nil.
32817// Any non-2xx status code is an error. Response headers are in either
32818// *GoogleCloudApigeeV1Alias.ServerResponse.Header or (if a response was
32819// returned at all) in error.(*googleapi.Error).Header. Use
32820// googleapi.IsNotModified to check whether the returned error was
32821// because http.StatusNotModified was returned.
32822func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Alias, error) {
32823	gensupport.SetOptions(c.urlParams_, opts...)
32824	res, err := c.doRequest("json")
32825	if res != nil && res.StatusCode == http.StatusNotModified {
32826		if res.Body != nil {
32827			res.Body.Close()
32828		}
32829		return nil, &googleapi.Error{
32830			Code:   res.StatusCode,
32831			Header: res.Header,
32832		}
32833	}
32834	if err != nil {
32835		return nil, err
32836	}
32837	defer googleapi.CloseBody(res)
32838	if err := googleapi.CheckResponse(res); err != nil {
32839		return nil, err
32840	}
32841	ret := &GoogleCloudApigeeV1Alias{
32842		ServerResponse: googleapi.ServerResponse{
32843			Header:         res.Header,
32844			HTTPStatusCode: res.StatusCode,
32845		},
32846	}
32847	target := &ret
32848	if err := gensupport.DecodeResponse(target, res); err != nil {
32849		return nil, err
32850	}
32851	return ret, nil
32852	// {
32853	//   "description": "Gets an alias.",
32854	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}/aliases/{aliasesId}",
32855	//   "httpMethod": "GET",
32856	//   "id": "apigee.organizations.environments.keystores.aliases.get",
32857	//   "parameterOrder": [
32858	//     "name"
32859	//   ],
32860	//   "parameters": {
32861	//     "name": {
32862	//       "description": "Required. Name of the alias. Use the following format in your request: `organizations/{org}/environments/{env}/keystores/{keystore}/aliases/{alias}`.",
32863	//       "location": "path",
32864	//       "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+/aliases/[^/]+$",
32865	//       "required": true,
32866	//       "type": "string"
32867	//     }
32868	//   },
32869	//   "path": "v1/{+name}",
32870	//   "response": {
32871	//     "$ref": "GoogleCloudApigeeV1Alias"
32872	//   },
32873	//   "scopes": [
32874	//     "https://www.googleapis.com/auth/cloud-platform"
32875	//   ]
32876	// }
32877
32878}
32879
32880// method id "apigee.organizations.environments.keystores.aliases.getCertificate":
32881
32882type OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall struct {
32883	s            *Service
32884	name         string
32885	urlParams_   gensupport.URLParams
32886	ifNoneMatch_ string
32887	ctx_         context.Context
32888	header_      http.Header
32889}
32890
32891// GetCertificate: Gets the certificate from an alias in PEM-encoded
32892// form.
32893//
32894// - name: Name of the alias. Use the following format in your request:
32895//   `organizations/{org}/environments/{env}/keystores/{keystore}/aliases
32896//   /{alias}`.
32897func (r *OrganizationsEnvironmentsKeystoresAliasesService) GetCertificate(name string) *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall {
32898	c := &OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32899	c.name = name
32900	return c
32901}
32902
32903// Fields allows partial responses to be retrieved. See
32904// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
32905// for more information.
32906func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall {
32907	c.urlParams_.Set("fields", googleapi.CombineFields(s))
32908	return c
32909}
32910
32911// IfNoneMatch sets the optional parameter which makes the operation
32912// fail if the object's ETag matches the given value. This is useful for
32913// getting updates only after the object has changed since the last
32914// request. Use googleapi.IsNotModified to check whether the response
32915// error from Do is the result of In-None-Match.
32916func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall {
32917	c.ifNoneMatch_ = entityTag
32918	return c
32919}
32920
32921// Context sets the context to be used in this call's Do method. Any
32922// pending HTTP request will be aborted if the provided context is
32923// canceled.
32924func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall {
32925	c.ctx_ = ctx
32926	return c
32927}
32928
32929// Header returns an http.Header that can be modified by the caller to
32930// add HTTP headers to the request.
32931func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) Header() http.Header {
32932	if c.header_ == nil {
32933		c.header_ = make(http.Header)
32934	}
32935	return c.header_
32936}
32937
32938func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) doRequest(alt string) (*http.Response, error) {
32939	reqHeaders := make(http.Header)
32940	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
32941	for k, v := range c.header_ {
32942		reqHeaders[k] = v
32943	}
32944	reqHeaders.Set("User-Agent", c.s.userAgent())
32945	if c.ifNoneMatch_ != "" {
32946		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
32947	}
32948	var body io.Reader = nil
32949	c.urlParams_.Set("alt", alt)
32950	c.urlParams_.Set("prettyPrint", "false")
32951	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/certificate")
32952	urls += "?" + c.urlParams_.Encode()
32953	req, err := http.NewRequest("GET", urls, body)
32954	if err != nil {
32955		return nil, err
32956	}
32957	req.Header = reqHeaders
32958	googleapi.Expand(req.URL, map[string]string{
32959		"name": c.name,
32960	})
32961	return gensupport.SendRequest(c.ctx_, c.s.client, req)
32962}
32963
32964// Do executes the "apigee.organizations.environments.keystores.aliases.getCertificate" call.
32965// Exactly one of *GoogleApiHttpBody or error will be non-nil. Any
32966// non-2xx status code is an error. Response headers are in either
32967// *GoogleApiHttpBody.ServerResponse.Header or (if a response was
32968// returned at all) in error.(*googleapi.Error).Header. Use
32969// googleapi.IsNotModified to check whether the returned error was
32970// because http.StatusNotModified was returned.
32971func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
32972	gensupport.SetOptions(c.urlParams_, opts...)
32973	res, err := c.doRequest("json")
32974	if res != nil && res.StatusCode == http.StatusNotModified {
32975		if res.Body != nil {
32976			res.Body.Close()
32977		}
32978		return nil, &googleapi.Error{
32979			Code:   res.StatusCode,
32980			Header: res.Header,
32981		}
32982	}
32983	if err != nil {
32984		return nil, err
32985	}
32986	defer googleapi.CloseBody(res)
32987	if err := googleapi.CheckResponse(res); err != nil {
32988		return nil, err
32989	}
32990	ret := &GoogleApiHttpBody{
32991		ServerResponse: googleapi.ServerResponse{
32992			Header:         res.Header,
32993			HTTPStatusCode: res.StatusCode,
32994		},
32995	}
32996	target := &ret
32997	if err := gensupport.DecodeResponse(target, res); err != nil {
32998		return nil, err
32999	}
33000	return ret, nil
33001	// {
33002	//   "description": "Gets the certificate from an alias in PEM-encoded form.",
33003	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}/aliases/{aliasesId}/certificate",
33004	//   "httpMethod": "GET",
33005	//   "id": "apigee.organizations.environments.keystores.aliases.getCertificate",
33006	//   "parameterOrder": [
33007	//     "name"
33008	//   ],
33009	//   "parameters": {
33010	//     "name": {
33011	//       "description": "Required. Name of the alias. Use the following format in your request: `organizations/{org}/environments/{env}/keystores/{keystore}/aliases/{alias}`.",
33012	//       "location": "path",
33013	//       "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+/aliases/[^/]+$",
33014	//       "required": true,
33015	//       "type": "string"
33016	//     }
33017	//   },
33018	//   "path": "v1/{+name}/certificate",
33019	//   "response": {
33020	//     "$ref": "GoogleApiHttpBody"
33021	//   },
33022	//   "scopes": [
33023	//     "https://www.googleapis.com/auth/cloud-platform"
33024	//   ]
33025	// }
33026
33027}
33028
33029// method id "apigee.organizations.environments.keystores.aliases.update":
33030
33031type OrganizationsEnvironmentsKeystoresAliasesUpdateCall struct {
33032	s                 *Service
33033	name              string
33034	googleapihttpbody *GoogleApiHttpBody
33035	urlParams_        gensupport.URLParams
33036	ctx_              context.Context
33037	header_           http.Header
33038}
33039
33040// Update: Updates the certificate in an alias.
33041//
33042// - name: Name of the alias. Use the following format in your request:
33043//   `organizations/{org}/environments/{env}/keystores/{keystore}/aliases
33044//   /{alias}`.
33045func (r *OrganizationsEnvironmentsKeystoresAliasesService) Update(name string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsEnvironmentsKeystoresAliasesUpdateCall {
33046	c := &OrganizationsEnvironmentsKeystoresAliasesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33047	c.name = name
33048	c.googleapihttpbody = googleapihttpbody
33049	return c
33050}
33051
33052// IgnoreExpiryValidation sets the optional parameter
33053// "ignoreExpiryValidation": Required. Flag that specifies whether to
33054// ignore expiry validation. If set to `true`, no expiry validation will
33055// be performed.
33056func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) IgnoreExpiryValidation(ignoreExpiryValidation bool) *OrganizationsEnvironmentsKeystoresAliasesUpdateCall {
33057	c.urlParams_.Set("ignoreExpiryValidation", fmt.Sprint(ignoreExpiryValidation))
33058	return c
33059}
33060
33061// IgnoreNewlineValidation sets the optional parameter
33062// "ignoreNewlineValidation": Flag that specifies whether to ignore
33063// newline validation. If set to `true`, no error is thrown when the
33064// file contains a certificate chain with no newline between each
33065// certificate. Defaults to `false`.
33066func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) IgnoreNewlineValidation(ignoreNewlineValidation bool) *OrganizationsEnvironmentsKeystoresAliasesUpdateCall {
33067	c.urlParams_.Set("ignoreNewlineValidation", fmt.Sprint(ignoreNewlineValidation))
33068	return c
33069}
33070
33071// Fields allows partial responses to be retrieved. See
33072// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
33073// for more information.
33074func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesUpdateCall {
33075	c.urlParams_.Set("fields", googleapi.CombineFields(s))
33076	return c
33077}
33078
33079// Context sets the context to be used in this call's Do method. Any
33080// pending HTTP request will be aborted if the provided context is
33081// canceled.
33082func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesUpdateCall {
33083	c.ctx_ = ctx
33084	return c
33085}
33086
33087// Header returns an http.Header that can be modified by the caller to
33088// add HTTP headers to the request.
33089func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) Header() http.Header {
33090	if c.header_ == nil {
33091		c.header_ = make(http.Header)
33092	}
33093	return c.header_
33094}
33095
33096func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) doRequest(alt string) (*http.Response, error) {
33097	reqHeaders := make(http.Header)
33098	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
33099	for k, v := range c.header_ {
33100		reqHeaders[k] = v
33101	}
33102	reqHeaders.Set("User-Agent", c.s.userAgent())
33103	var body io.Reader = nil
33104	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
33105	if err != nil {
33106		return nil, err
33107	}
33108	reqHeaders.Set("Content-Type", "application/json")
33109	c.urlParams_.Set("alt", alt)
33110	c.urlParams_.Set("prettyPrint", "false")
33111	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
33112	urls += "?" + c.urlParams_.Encode()
33113	req, err := http.NewRequest("PUT", urls, body)
33114	if err != nil {
33115		return nil, err
33116	}
33117	req.Header = reqHeaders
33118	googleapi.Expand(req.URL, map[string]string{
33119		"name": c.name,
33120	})
33121	return gensupport.SendRequest(c.ctx_, c.s.client, req)
33122}
33123
33124// Do executes the "apigee.organizations.environments.keystores.aliases.update" call.
33125// Exactly one of *GoogleCloudApigeeV1Alias or error will be non-nil.
33126// Any non-2xx status code is an error. Response headers are in either
33127// *GoogleCloudApigeeV1Alias.ServerResponse.Header or (if a response was
33128// returned at all) in error.(*googleapi.Error).Header. Use
33129// googleapi.IsNotModified to check whether the returned error was
33130// because http.StatusNotModified was returned.
33131func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Alias, error) {
33132	gensupport.SetOptions(c.urlParams_, opts...)
33133	res, err := c.doRequest("json")
33134	if res != nil && res.StatusCode == http.StatusNotModified {
33135		if res.Body != nil {
33136			res.Body.Close()
33137		}
33138		return nil, &googleapi.Error{
33139			Code:   res.StatusCode,
33140			Header: res.Header,
33141		}
33142	}
33143	if err != nil {
33144		return nil, err
33145	}
33146	defer googleapi.CloseBody(res)
33147	if err := googleapi.CheckResponse(res); err != nil {
33148		return nil, err
33149	}
33150	ret := &GoogleCloudApigeeV1Alias{
33151		ServerResponse: googleapi.ServerResponse{
33152			Header:         res.Header,
33153			HTTPStatusCode: res.StatusCode,
33154		},
33155	}
33156	target := &ret
33157	if err := gensupport.DecodeResponse(target, res); err != nil {
33158		return nil, err
33159	}
33160	return ret, nil
33161	// {
33162	//   "description": "Updates the certificate in an alias.",
33163	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}/aliases/{aliasesId}",
33164	//   "httpMethod": "PUT",
33165	//   "id": "apigee.organizations.environments.keystores.aliases.update",
33166	//   "parameterOrder": [
33167	//     "name"
33168	//   ],
33169	//   "parameters": {
33170	//     "ignoreExpiryValidation": {
33171	//       "description": "Required. Flag that specifies whether to ignore expiry validation. If set to `true`, no expiry validation will be performed.",
33172	//       "location": "query",
33173	//       "type": "boolean"
33174	//     },
33175	//     "ignoreNewlineValidation": {
33176	//       "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`.",
33177	//       "location": "query",
33178	//       "type": "boolean"
33179	//     },
33180	//     "name": {
33181	//       "description": "Required. Name of the alias. Use the following format in your request: `organizations/{org}/environments/{env}/keystores/{keystore}/aliases/{alias}`",
33182	//       "location": "path",
33183	//       "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+/aliases/[^/]+$",
33184	//       "required": true,
33185	//       "type": "string"
33186	//     }
33187	//   },
33188	//   "path": "v1/{+name}",
33189	//   "request": {
33190	//     "$ref": "GoogleApiHttpBody"
33191	//   },
33192	//   "response": {
33193	//     "$ref": "GoogleCloudApigeeV1Alias"
33194	//   },
33195	//   "scopes": [
33196	//     "https://www.googleapis.com/auth/cloud-platform"
33197	//   ]
33198	// }
33199
33200}
33201
33202// method id "apigee.organizations.environments.keyvaluemaps.create":
33203
33204type OrganizationsEnvironmentsKeyvaluemapsCreateCall struct {
33205	s                              *Service
33206	parent                         string
33207	googlecloudapigeev1keyvaluemap *GoogleCloudApigeeV1KeyValueMap
33208	urlParams_                     gensupport.URLParams
33209	ctx_                           context.Context
33210	header_                        http.Header
33211}
33212
33213// Create: Creates a key value map in an environment.
33214//
33215// - parent: The name of the environment in which to create the key
33216//   value map. Must be of the form
33217//   `organizations/{organization}/environments/{environment}`.
33218func (r *OrganizationsEnvironmentsKeyvaluemapsService) Create(parent string, googlecloudapigeev1keyvaluemap *GoogleCloudApigeeV1KeyValueMap) *OrganizationsEnvironmentsKeyvaluemapsCreateCall {
33219	c := &OrganizationsEnvironmentsKeyvaluemapsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33220	c.parent = parent
33221	c.googlecloudapigeev1keyvaluemap = googlecloudapigeev1keyvaluemap
33222	return c
33223}
33224
33225// Fields allows partial responses to be retrieved. See
33226// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
33227// for more information.
33228func (c *OrganizationsEnvironmentsKeyvaluemapsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeyvaluemapsCreateCall {
33229	c.urlParams_.Set("fields", googleapi.CombineFields(s))
33230	return c
33231}
33232
33233// Context sets the context to be used in this call's Do method. Any
33234// pending HTTP request will be aborted if the provided context is
33235// canceled.
33236func (c *OrganizationsEnvironmentsKeyvaluemapsCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeyvaluemapsCreateCall {
33237	c.ctx_ = ctx
33238	return c
33239}
33240
33241// Header returns an http.Header that can be modified by the caller to
33242// add HTTP headers to the request.
33243func (c *OrganizationsEnvironmentsKeyvaluemapsCreateCall) Header() http.Header {
33244	if c.header_ == nil {
33245		c.header_ = make(http.Header)
33246	}
33247	return c.header_
33248}
33249
33250func (c *OrganizationsEnvironmentsKeyvaluemapsCreateCall) doRequest(alt string) (*http.Response, error) {
33251	reqHeaders := make(http.Header)
33252	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
33253	for k, v := range c.header_ {
33254		reqHeaders[k] = v
33255	}
33256	reqHeaders.Set("User-Agent", c.s.userAgent())
33257	var body io.Reader = nil
33258	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1keyvaluemap)
33259	if err != nil {
33260		return nil, err
33261	}
33262	reqHeaders.Set("Content-Type", "application/json")
33263	c.urlParams_.Set("alt", alt)
33264	c.urlParams_.Set("prettyPrint", "false")
33265	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keyvaluemaps")
33266	urls += "?" + c.urlParams_.Encode()
33267	req, err := http.NewRequest("POST", urls, body)
33268	if err != nil {
33269		return nil, err
33270	}
33271	req.Header = reqHeaders
33272	googleapi.Expand(req.URL, map[string]string{
33273		"parent": c.parent,
33274	})
33275	return gensupport.SendRequest(c.ctx_, c.s.client, req)
33276}
33277
33278// Do executes the "apigee.organizations.environments.keyvaluemaps.create" call.
33279// Exactly one of *GoogleCloudApigeeV1KeyValueMap or error will be
33280// non-nil. Any non-2xx status code is an error. Response headers are in
33281// either *GoogleCloudApigeeV1KeyValueMap.ServerResponse.Header or (if a
33282// response was returned at all) in error.(*googleapi.Error).Header. Use
33283// googleapi.IsNotModified to check whether the returned error was
33284// because http.StatusNotModified was returned.
33285func (c *OrganizationsEnvironmentsKeyvaluemapsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueMap, error) {
33286	gensupport.SetOptions(c.urlParams_, opts...)
33287	res, err := c.doRequest("json")
33288	if res != nil && res.StatusCode == http.StatusNotModified {
33289		if res.Body != nil {
33290			res.Body.Close()
33291		}
33292		return nil, &googleapi.Error{
33293			Code:   res.StatusCode,
33294			Header: res.Header,
33295		}
33296	}
33297	if err != nil {
33298		return nil, err
33299	}
33300	defer googleapi.CloseBody(res)
33301	if err := googleapi.CheckResponse(res); err != nil {
33302		return nil, err
33303	}
33304	ret := &GoogleCloudApigeeV1KeyValueMap{
33305		ServerResponse: googleapi.ServerResponse{
33306			Header:         res.Header,
33307			HTTPStatusCode: res.StatusCode,
33308		},
33309	}
33310	target := &ret
33311	if err := gensupport.DecodeResponse(target, res); err != nil {
33312		return nil, err
33313	}
33314	return ret, nil
33315	// {
33316	//   "description": "Creates a key value map in an environment.",
33317	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keyvaluemaps",
33318	//   "httpMethod": "POST",
33319	//   "id": "apigee.organizations.environments.keyvaluemaps.create",
33320	//   "parameterOrder": [
33321	//     "parent"
33322	//   ],
33323	//   "parameters": {
33324	//     "parent": {
33325	//       "description": "Required. The name of the environment in which to create the key value map. Must be of the form `organizations/{organization}/environments/{environment}`.",
33326	//       "location": "path",
33327	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
33328	//       "required": true,
33329	//       "type": "string"
33330	//     }
33331	//   },
33332	//   "path": "v1/{+parent}/keyvaluemaps",
33333	//   "request": {
33334	//     "$ref": "GoogleCloudApigeeV1KeyValueMap"
33335	//   },
33336	//   "response": {
33337	//     "$ref": "GoogleCloudApigeeV1KeyValueMap"
33338	//   },
33339	//   "scopes": [
33340	//     "https://www.googleapis.com/auth/cloud-platform"
33341	//   ]
33342	// }
33343
33344}
33345
33346// method id "apigee.organizations.environments.keyvaluemaps.delete":
33347
33348type OrganizationsEnvironmentsKeyvaluemapsDeleteCall struct {
33349	s          *Service
33350	name       string
33351	urlParams_ gensupport.URLParams
33352	ctx_       context.Context
33353	header_    http.Header
33354}
33355
33356// Delete: Delete a key value map in an environment.
33357//
33358// - name: The name of the key value map. Must be of the form
33359//   `organizations/{organization}/environments/{environment}/keyvaluemap
33360//   s/{keyvaluemap}`.
33361func (r *OrganizationsEnvironmentsKeyvaluemapsService) Delete(name string) *OrganizationsEnvironmentsKeyvaluemapsDeleteCall {
33362	c := &OrganizationsEnvironmentsKeyvaluemapsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33363	c.name = name
33364	return c
33365}
33366
33367// Fields allows partial responses to be retrieved. See
33368// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
33369// for more information.
33370func (c *OrganizationsEnvironmentsKeyvaluemapsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeyvaluemapsDeleteCall {
33371	c.urlParams_.Set("fields", googleapi.CombineFields(s))
33372	return c
33373}
33374
33375// Context sets the context to be used in this call's Do method. Any
33376// pending HTTP request will be aborted if the provided context is
33377// canceled.
33378func (c *OrganizationsEnvironmentsKeyvaluemapsDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeyvaluemapsDeleteCall {
33379	c.ctx_ = ctx
33380	return c
33381}
33382
33383// Header returns an http.Header that can be modified by the caller to
33384// add HTTP headers to the request.
33385func (c *OrganizationsEnvironmentsKeyvaluemapsDeleteCall) Header() http.Header {
33386	if c.header_ == nil {
33387		c.header_ = make(http.Header)
33388	}
33389	return c.header_
33390}
33391
33392func (c *OrganizationsEnvironmentsKeyvaluemapsDeleteCall) doRequest(alt string) (*http.Response, error) {
33393	reqHeaders := make(http.Header)
33394	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
33395	for k, v := range c.header_ {
33396		reqHeaders[k] = v
33397	}
33398	reqHeaders.Set("User-Agent", c.s.userAgent())
33399	var body io.Reader = nil
33400	c.urlParams_.Set("alt", alt)
33401	c.urlParams_.Set("prettyPrint", "false")
33402	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
33403	urls += "?" + c.urlParams_.Encode()
33404	req, err := http.NewRequest("DELETE", urls, body)
33405	if err != nil {
33406		return nil, err
33407	}
33408	req.Header = reqHeaders
33409	googleapi.Expand(req.URL, map[string]string{
33410		"name": c.name,
33411	})
33412	return gensupport.SendRequest(c.ctx_, c.s.client, req)
33413}
33414
33415// Do executes the "apigee.organizations.environments.keyvaluemaps.delete" call.
33416// Exactly one of *GoogleCloudApigeeV1KeyValueMap or error will be
33417// non-nil. Any non-2xx status code is an error. Response headers are in
33418// either *GoogleCloudApigeeV1KeyValueMap.ServerResponse.Header or (if a
33419// response was returned at all) in error.(*googleapi.Error).Header. Use
33420// googleapi.IsNotModified to check whether the returned error was
33421// because http.StatusNotModified was returned.
33422func (c *OrganizationsEnvironmentsKeyvaluemapsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueMap, error) {
33423	gensupport.SetOptions(c.urlParams_, opts...)
33424	res, err := c.doRequest("json")
33425	if res != nil && res.StatusCode == http.StatusNotModified {
33426		if res.Body != nil {
33427			res.Body.Close()
33428		}
33429		return nil, &googleapi.Error{
33430			Code:   res.StatusCode,
33431			Header: res.Header,
33432		}
33433	}
33434	if err != nil {
33435		return nil, err
33436	}
33437	defer googleapi.CloseBody(res)
33438	if err := googleapi.CheckResponse(res); err != nil {
33439		return nil, err
33440	}
33441	ret := &GoogleCloudApigeeV1KeyValueMap{
33442		ServerResponse: googleapi.ServerResponse{
33443			Header:         res.Header,
33444			HTTPStatusCode: res.StatusCode,
33445		},
33446	}
33447	target := &ret
33448	if err := gensupport.DecodeResponse(target, res); err != nil {
33449		return nil, err
33450	}
33451	return ret, nil
33452	// {
33453	//   "description": "Delete a key value map in an environment.",
33454	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keyvaluemaps/{keyvaluemapsId}",
33455	//   "httpMethod": "DELETE",
33456	//   "id": "apigee.organizations.environments.keyvaluemaps.delete",
33457	//   "parameterOrder": [
33458	//     "name"
33459	//   ],
33460	//   "parameters": {
33461	//     "name": {
33462	//       "description": "Required. The name of the key value map. Must be of the form `organizations/{organization}/environments/{environment}/keyvaluemaps/{keyvaluemap}`.",
33463	//       "location": "path",
33464	//       "pattern": "^organizations/[^/]+/environments/[^/]+/keyvaluemaps/[^/]+$",
33465	//       "required": true,
33466	//       "type": "string"
33467	//     }
33468	//   },
33469	//   "path": "v1/{+name}",
33470	//   "response": {
33471	//     "$ref": "GoogleCloudApigeeV1KeyValueMap"
33472	//   },
33473	//   "scopes": [
33474	//     "https://www.googleapis.com/auth/cloud-platform"
33475	//   ]
33476	// }
33477
33478}
33479
33480// method id "apigee.organizations.environments.optimizedStats.get":
33481
33482type OrganizationsEnvironmentsOptimizedStatsGetCall struct {
33483	s            *Service
33484	name         string
33485	urlParams_   gensupport.URLParams
33486	ifNoneMatch_ string
33487	ctx_         context.Context
33488	header_      http.Header
33489}
33490
33491// Get: This api is similar to GetStats except that the response is less
33492// verbose. In the current scheme, a query parameter _optimized
33493// instructs Edge Analytics to change the response but since this
33494// behavior is not possible with protocol buffer and since this
33495// parameter is predominantly used by Edge UI, we are introducing a
33496// separate api.
33497//
33498// - name: The resource name for which the interactive query will be
33499//   executed. Must be of the form
33500//   `organizations/{organization_id}/environments/{environment_id/optimi
33501//   zedStats/{dimensions}` Dimensions let you view metrics in
33502//   meaningful groupings. E.g. apiproxy, target_host. The value of
33503//   dimensions should be comma separated list as shown below
33504//   `organizations/{org}/environments/{env}/optimizedStats/apiproxy,requ
33505//   est_verb`.
33506func (r *OrganizationsEnvironmentsOptimizedStatsService) Get(name string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
33507	c := &OrganizationsEnvironmentsOptimizedStatsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33508	c.name = name
33509	return c
33510}
33511
33512// Accuracy sets the optional parameter "accuracy": Legacy field: not
33513// used anymore.
33514func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Accuracy(accuracy string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
33515	c.urlParams_.Set("accuracy", accuracy)
33516	return c
33517}
33518
33519// AggTable sets the optional parameter "aggTable": If customers want to
33520// query custom aggregate tables, then this parameter can be used to
33521// specify the table name. If this parameter is skipped, then Edge Query
33522// will try to retrieve the data from fact tables which will be
33523// expensive.
33524func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) AggTable(aggTable string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
33525	c.urlParams_.Set("aggTable", aggTable)
33526	return c
33527}
33528
33529// Filter sets the optional parameter "filter": Enables drill-down on
33530// specific dimension values.
33531func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Filter(filter string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
33532	c.urlParams_.Set("filter", filter)
33533	return c
33534}
33535
33536// Limit sets the optional parameter "limit": This parameter is used to
33537// limit the number of result items. Default and the max value is 14400.
33538func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Limit(limit string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
33539	c.urlParams_.Set("limit", limit)
33540	return c
33541}
33542
33543// Offset sets the optional parameter "offset": Use offset with limit to
33544// enable pagination of results. For example, to display results 11-20,
33545// set limit to '10' and offset to '10'.
33546func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Offset(offset string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
33547	c.urlParams_.Set("offset", offset)
33548	return c
33549}
33550
33551// Realtime sets the optional parameter "realtime": Legacy field: not
33552// used anymore.
33553func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Realtime(realtime bool) *OrganizationsEnvironmentsOptimizedStatsGetCall {
33554	c.urlParams_.Set("realtime", fmt.Sprint(realtime))
33555	return c
33556}
33557
33558// Select sets the optional parameter "select": Required. The select
33559// parameter contains a comma separated list of metrics. E.g.
33560// sum(message_count),sum(error_count)
33561func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Select(select_ string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
33562	c.urlParams_.Set("select", select_)
33563	return c
33564}
33565
33566// Sonar sets the optional parameter "sonar": This parameter routes the
33567// query to api monitoring service for last hour.
33568func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Sonar(sonar bool) *OrganizationsEnvironmentsOptimizedStatsGetCall {
33569	c.urlParams_.Set("sonar", fmt.Sprint(sonar))
33570	return c
33571}
33572
33573// Sort sets the optional parameter "sort": This parameter specifies if
33574// the sort order should be ascending or descending Supported values are
33575// DESC and ASC.
33576func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Sort(sort string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
33577	c.urlParams_.Set("sort", sort)
33578	return c
33579}
33580
33581// Sortby sets the optional parameter "sortby": Comma separated list of
33582// columns to sort the final result.
33583func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Sortby(sortby string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
33584	c.urlParams_.Set("sortby", sortby)
33585	return c
33586}
33587
33588// TimeRange sets the optional parameter "timeRange": Required. Time
33589// interval for the interactive query. Time range is specified as
33590// start~end E.g. 04/15/2017 00:00~05/15/2017 23:59
33591func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) TimeRange(timeRange string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
33592	c.urlParams_.Set("timeRange", timeRange)
33593	return c
33594}
33595
33596// TimeUnit sets the optional parameter "timeUnit": A value of second,
33597// minute, hour, day, week, month. Time Unit specifies the granularity
33598// of metrics returned.
33599func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) TimeUnit(timeUnit string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
33600	c.urlParams_.Set("timeUnit", timeUnit)
33601	return c
33602}
33603
33604// Topk sets the optional parameter "topk": Take 'top k' results from
33605// results, for example, to return the top 5 results 'topk=5'.
33606func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Topk(topk string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
33607	c.urlParams_.Set("topk", topk)
33608	return c
33609}
33610
33611// TsAscending sets the optional parameter "tsAscending": Lists
33612// timestamps in ascending order if set to true. Recommend setting this
33613// value to true if you are using sortby with sort=DESC.
33614func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) TsAscending(tsAscending bool) *OrganizationsEnvironmentsOptimizedStatsGetCall {
33615	c.urlParams_.Set("tsAscending", fmt.Sprint(tsAscending))
33616	return c
33617}
33618
33619// Tzo sets the optional parameter "tzo": This parameters contains the
33620// timezone offset value.
33621func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Tzo(tzo string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
33622	c.urlParams_.Set("tzo", tzo)
33623	return c
33624}
33625
33626// Fields allows partial responses to be retrieved. See
33627// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
33628// for more information.
33629func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsOptimizedStatsGetCall {
33630	c.urlParams_.Set("fields", googleapi.CombineFields(s))
33631	return c
33632}
33633
33634// IfNoneMatch sets the optional parameter which makes the operation
33635// fail if the object's ETag matches the given value. This is useful for
33636// getting updates only after the object has changed since the last
33637// request. Use googleapi.IsNotModified to check whether the response
33638// error from Do is the result of In-None-Match.
33639func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
33640	c.ifNoneMatch_ = entityTag
33641	return c
33642}
33643
33644// Context sets the context to be used in this call's Do method. Any
33645// pending HTTP request will be aborted if the provided context is
33646// canceled.
33647func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsOptimizedStatsGetCall {
33648	c.ctx_ = ctx
33649	return c
33650}
33651
33652// Header returns an http.Header that can be modified by the caller to
33653// add HTTP headers to the request.
33654func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Header() http.Header {
33655	if c.header_ == nil {
33656		c.header_ = make(http.Header)
33657	}
33658	return c.header_
33659}
33660
33661func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) doRequest(alt string) (*http.Response, error) {
33662	reqHeaders := make(http.Header)
33663	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
33664	for k, v := range c.header_ {
33665		reqHeaders[k] = v
33666	}
33667	reqHeaders.Set("User-Agent", c.s.userAgent())
33668	if c.ifNoneMatch_ != "" {
33669		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
33670	}
33671	var body io.Reader = nil
33672	c.urlParams_.Set("alt", alt)
33673	c.urlParams_.Set("prettyPrint", "false")
33674	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
33675	urls += "?" + c.urlParams_.Encode()
33676	req, err := http.NewRequest("GET", urls, body)
33677	if err != nil {
33678		return nil, err
33679	}
33680	req.Header = reqHeaders
33681	googleapi.Expand(req.URL, map[string]string{
33682		"name": c.name,
33683	})
33684	return gensupport.SendRequest(c.ctx_, c.s.client, req)
33685}
33686
33687// Do executes the "apigee.organizations.environments.optimizedStats.get" call.
33688// Exactly one of *GoogleCloudApigeeV1OptimizedStats or error will be
33689// non-nil. Any non-2xx status code is an error. Response headers are in
33690// either *GoogleCloudApigeeV1OptimizedStats.ServerResponse.Header or
33691// (if a response was returned at all) in
33692// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
33693// whether the returned error was because http.StatusNotModified was
33694// returned.
33695func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1OptimizedStats, error) {
33696	gensupport.SetOptions(c.urlParams_, opts...)
33697	res, err := c.doRequest("json")
33698	if res != nil && res.StatusCode == http.StatusNotModified {
33699		if res.Body != nil {
33700			res.Body.Close()
33701		}
33702		return nil, &googleapi.Error{
33703			Code:   res.StatusCode,
33704			Header: res.Header,
33705		}
33706	}
33707	if err != nil {
33708		return nil, err
33709	}
33710	defer googleapi.CloseBody(res)
33711	if err := googleapi.CheckResponse(res); err != nil {
33712		return nil, err
33713	}
33714	ret := &GoogleCloudApigeeV1OptimizedStats{
33715		ServerResponse: googleapi.ServerResponse{
33716			Header:         res.Header,
33717			HTTPStatusCode: res.StatusCode,
33718		},
33719	}
33720	target := &ret
33721	if err := gensupport.DecodeResponse(target, res); err != nil {
33722		return nil, err
33723	}
33724	return ret, nil
33725	// {
33726	//   "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.",
33727	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/optimizedStats/{optimizedStatsId}",
33728	//   "httpMethod": "GET",
33729	//   "id": "apigee.organizations.environments.optimizedStats.get",
33730	//   "parameterOrder": [
33731	//     "name"
33732	//   ],
33733	//   "parameters": {
33734	//     "accuracy": {
33735	//       "description": "Legacy field: not used anymore.",
33736	//       "location": "query",
33737	//       "type": "string"
33738	//     },
33739	//     "aggTable": {
33740	//       "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.",
33741	//       "location": "query",
33742	//       "type": "string"
33743	//     },
33744	//     "filter": {
33745	//       "description": "Enables drill-down on specific dimension values.",
33746	//       "location": "query",
33747	//       "type": "string"
33748	//     },
33749	//     "limit": {
33750	//       "description": "This parameter is used to limit the number of result items. Default and the max value is 14400.",
33751	//       "location": "query",
33752	//       "type": "string"
33753	//     },
33754	//     "name": {
33755	//       "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`",
33756	//       "location": "path",
33757	//       "pattern": "^organizations/[^/]+/environments/[^/]+/optimizedStats/.*$",
33758	//       "required": true,
33759	//       "type": "string"
33760	//     },
33761	//     "offset": {
33762	//       "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'.",
33763	//       "location": "query",
33764	//       "type": "string"
33765	//     },
33766	//     "realtime": {
33767	//       "description": "Legacy field: not used anymore.",
33768	//       "location": "query",
33769	//       "type": "boolean"
33770	//     },
33771	//     "select": {
33772	//       "description": "Required. The select parameter contains a comma separated list of metrics. E.g. sum(message_count),sum(error_count)",
33773	//       "location": "query",
33774	//       "type": "string"
33775	//     },
33776	//     "sonar": {
33777	//       "description": "This parameter routes the query to api monitoring service for last hour.",
33778	//       "location": "query",
33779	//       "type": "boolean"
33780	//     },
33781	//     "sort": {
33782	//       "description": "This parameter specifies if the sort order should be ascending or descending Supported values are DESC and ASC.",
33783	//       "location": "query",
33784	//       "type": "string"
33785	//     },
33786	//     "sortby": {
33787	//       "description": "Comma separated list of columns to sort the final result.",
33788	//       "location": "query",
33789	//       "type": "string"
33790	//     },
33791	//     "timeRange": {
33792	//       "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",
33793	//       "location": "query",
33794	//       "type": "string"
33795	//     },
33796	//     "timeUnit": {
33797	//       "description": "A value of second, minute, hour, day, week, month. Time Unit specifies the granularity of metrics returned.",
33798	//       "location": "query",
33799	//       "type": "string"
33800	//     },
33801	//     "topk": {
33802	//       "description": "Take 'top k' results from results, for example, to return the top 5 results 'topk=5'.",
33803	//       "location": "query",
33804	//       "type": "string"
33805	//     },
33806	//     "tsAscending": {
33807	//       "description": "Lists timestamps in ascending order if set to true. Recommend setting this value to true if you are using sortby with sort=DESC.",
33808	//       "location": "query",
33809	//       "type": "boolean"
33810	//     },
33811	//     "tzo": {
33812	//       "description": "This parameters contains the timezone offset value.",
33813	//       "location": "query",
33814	//       "type": "string"
33815	//     }
33816	//   },
33817	//   "path": "v1/{+name}",
33818	//   "response": {
33819	//     "$ref": "GoogleCloudApigeeV1OptimizedStats"
33820	//   },
33821	//   "scopes": [
33822	//     "https://www.googleapis.com/auth/cloud-platform"
33823	//   ]
33824	// }
33825
33826}
33827
33828// method id "apigee.organizations.environments.queries.create":
33829
33830type OrganizationsEnvironmentsQueriesCreateCall struct {
33831	s                        *Service
33832	parent                   string
33833	googlecloudapigeev1query *GoogleCloudApigeeV1Query
33834	urlParams_               gensupport.URLParams
33835	ctx_                     context.Context
33836	header_                  http.Header
33837}
33838
33839// Create: Submit a query to be processed in the background. If the
33840// submission of the query succeeds, the API returns a 201 status and an
33841// ID that refer to the query. In addition to the HTTP status 201, the
33842// `state` of "enqueued" means that the request succeeded.
33843//
33844// - parent: The parent resource name. Must be of the form
33845//   `organizations/{org}/environments/{env}`.
33846func (r *OrganizationsEnvironmentsQueriesService) Create(parent string, googlecloudapigeev1query *GoogleCloudApigeeV1Query) *OrganizationsEnvironmentsQueriesCreateCall {
33847	c := &OrganizationsEnvironmentsQueriesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33848	c.parent = parent
33849	c.googlecloudapigeev1query = googlecloudapigeev1query
33850	return c
33851}
33852
33853// Fields allows partial responses to be retrieved. See
33854// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
33855// for more information.
33856func (c *OrganizationsEnvironmentsQueriesCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsQueriesCreateCall {
33857	c.urlParams_.Set("fields", googleapi.CombineFields(s))
33858	return c
33859}
33860
33861// Context sets the context to be used in this call's Do method. Any
33862// pending HTTP request will be aborted if the provided context is
33863// canceled.
33864func (c *OrganizationsEnvironmentsQueriesCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsQueriesCreateCall {
33865	c.ctx_ = ctx
33866	return c
33867}
33868
33869// Header returns an http.Header that can be modified by the caller to
33870// add HTTP headers to the request.
33871func (c *OrganizationsEnvironmentsQueriesCreateCall) Header() http.Header {
33872	if c.header_ == nil {
33873		c.header_ = make(http.Header)
33874	}
33875	return c.header_
33876}
33877
33878func (c *OrganizationsEnvironmentsQueriesCreateCall) doRequest(alt string) (*http.Response, error) {
33879	reqHeaders := make(http.Header)
33880	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
33881	for k, v := range c.header_ {
33882		reqHeaders[k] = v
33883	}
33884	reqHeaders.Set("User-Agent", c.s.userAgent())
33885	var body io.Reader = nil
33886	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1query)
33887	if err != nil {
33888		return nil, err
33889	}
33890	reqHeaders.Set("Content-Type", "application/json")
33891	c.urlParams_.Set("alt", alt)
33892	c.urlParams_.Set("prettyPrint", "false")
33893	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/queries")
33894	urls += "?" + c.urlParams_.Encode()
33895	req, err := http.NewRequest("POST", urls, body)
33896	if err != nil {
33897		return nil, err
33898	}
33899	req.Header = reqHeaders
33900	googleapi.Expand(req.URL, map[string]string{
33901		"parent": c.parent,
33902	})
33903	return gensupport.SendRequest(c.ctx_, c.s.client, req)
33904}
33905
33906// Do executes the "apigee.organizations.environments.queries.create" call.
33907// Exactly one of *GoogleCloudApigeeV1AsyncQuery or error will be
33908// non-nil. Any non-2xx status code is an error. Response headers are in
33909// either *GoogleCloudApigeeV1AsyncQuery.ServerResponse.Header or (if a
33910// response was returned at all) in error.(*googleapi.Error).Header. Use
33911// googleapi.IsNotModified to check whether the returned error was
33912// because http.StatusNotModified was returned.
33913func (c *OrganizationsEnvironmentsQueriesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AsyncQuery, error) {
33914	gensupport.SetOptions(c.urlParams_, opts...)
33915	res, err := c.doRequest("json")
33916	if res != nil && res.StatusCode == http.StatusNotModified {
33917		if res.Body != nil {
33918			res.Body.Close()
33919		}
33920		return nil, &googleapi.Error{
33921			Code:   res.StatusCode,
33922			Header: res.Header,
33923		}
33924	}
33925	if err != nil {
33926		return nil, err
33927	}
33928	defer googleapi.CloseBody(res)
33929	if err := googleapi.CheckResponse(res); err != nil {
33930		return nil, err
33931	}
33932	ret := &GoogleCloudApigeeV1AsyncQuery{
33933		ServerResponse: googleapi.ServerResponse{
33934			Header:         res.Header,
33935			HTTPStatusCode: res.StatusCode,
33936		},
33937	}
33938	target := &ret
33939	if err := gensupport.DecodeResponse(target, res); err != nil {
33940		return nil, err
33941	}
33942	return ret, nil
33943	// {
33944	//   "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.",
33945	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/queries",
33946	//   "httpMethod": "POST",
33947	//   "id": "apigee.organizations.environments.queries.create",
33948	//   "parameterOrder": [
33949	//     "parent"
33950	//   ],
33951	//   "parameters": {
33952	//     "parent": {
33953	//       "description": "Required. The parent resource name. Must be of the form `organizations/{org}/environments/{env}`.",
33954	//       "location": "path",
33955	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
33956	//       "required": true,
33957	//       "type": "string"
33958	//     }
33959	//   },
33960	//   "path": "v1/{+parent}/queries",
33961	//   "request": {
33962	//     "$ref": "GoogleCloudApigeeV1Query"
33963	//   },
33964	//   "response": {
33965	//     "$ref": "GoogleCloudApigeeV1AsyncQuery"
33966	//   },
33967	//   "scopes": [
33968	//     "https://www.googleapis.com/auth/cloud-platform"
33969	//   ]
33970	// }
33971
33972}
33973
33974// method id "apigee.organizations.environments.queries.get":
33975
33976type OrganizationsEnvironmentsQueriesGetCall struct {
33977	s            *Service
33978	name         string
33979	urlParams_   gensupport.URLParams
33980	ifNoneMatch_ string
33981	ctx_         context.Context
33982	header_      http.Header
33983}
33984
33985// Get: Get query status If the query is still in progress, the `state`
33986// is set to "running" After the query has completed successfully,
33987// `state` is set to "completed"
33988//
33989// - name: Name of the asynchronous query to get. Must be of the form
33990//   `organizations/{org}/environments/{env}/queries/{queryId}`.
33991func (r *OrganizationsEnvironmentsQueriesService) Get(name string) *OrganizationsEnvironmentsQueriesGetCall {
33992	c := &OrganizationsEnvironmentsQueriesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33993	c.name = name
33994	return c
33995}
33996
33997// Fields allows partial responses to be retrieved. See
33998// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
33999// for more information.
34000func (c *OrganizationsEnvironmentsQueriesGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsQueriesGetCall {
34001	c.urlParams_.Set("fields", googleapi.CombineFields(s))
34002	return c
34003}
34004
34005// IfNoneMatch sets the optional parameter which makes the operation
34006// fail if the object's ETag matches the given value. This is useful for
34007// getting updates only after the object has changed since the last
34008// request. Use googleapi.IsNotModified to check whether the response
34009// error from Do is the result of In-None-Match.
34010func (c *OrganizationsEnvironmentsQueriesGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsQueriesGetCall {
34011	c.ifNoneMatch_ = entityTag
34012	return c
34013}
34014
34015// Context sets the context to be used in this call's Do method. Any
34016// pending HTTP request will be aborted if the provided context is
34017// canceled.
34018func (c *OrganizationsEnvironmentsQueriesGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsQueriesGetCall {
34019	c.ctx_ = ctx
34020	return c
34021}
34022
34023// Header returns an http.Header that can be modified by the caller to
34024// add HTTP headers to the request.
34025func (c *OrganizationsEnvironmentsQueriesGetCall) Header() http.Header {
34026	if c.header_ == nil {
34027		c.header_ = make(http.Header)
34028	}
34029	return c.header_
34030}
34031
34032func (c *OrganizationsEnvironmentsQueriesGetCall) doRequest(alt string) (*http.Response, error) {
34033	reqHeaders := make(http.Header)
34034	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
34035	for k, v := range c.header_ {
34036		reqHeaders[k] = v
34037	}
34038	reqHeaders.Set("User-Agent", c.s.userAgent())
34039	if c.ifNoneMatch_ != "" {
34040		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
34041	}
34042	var body io.Reader = nil
34043	c.urlParams_.Set("alt", alt)
34044	c.urlParams_.Set("prettyPrint", "false")
34045	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
34046	urls += "?" + c.urlParams_.Encode()
34047	req, err := http.NewRequest("GET", urls, body)
34048	if err != nil {
34049		return nil, err
34050	}
34051	req.Header = reqHeaders
34052	googleapi.Expand(req.URL, map[string]string{
34053		"name": c.name,
34054	})
34055	return gensupport.SendRequest(c.ctx_, c.s.client, req)
34056}
34057
34058// Do executes the "apigee.organizations.environments.queries.get" call.
34059// Exactly one of *GoogleCloudApigeeV1AsyncQuery or error will be
34060// non-nil. Any non-2xx status code is an error. Response headers are in
34061// either *GoogleCloudApigeeV1AsyncQuery.ServerResponse.Header or (if a
34062// response was returned at all) in error.(*googleapi.Error).Header. Use
34063// googleapi.IsNotModified to check whether the returned error was
34064// because http.StatusNotModified was returned.
34065func (c *OrganizationsEnvironmentsQueriesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AsyncQuery, error) {
34066	gensupport.SetOptions(c.urlParams_, opts...)
34067	res, err := c.doRequest("json")
34068	if res != nil && res.StatusCode == http.StatusNotModified {
34069		if res.Body != nil {
34070			res.Body.Close()
34071		}
34072		return nil, &googleapi.Error{
34073			Code:   res.StatusCode,
34074			Header: res.Header,
34075		}
34076	}
34077	if err != nil {
34078		return nil, err
34079	}
34080	defer googleapi.CloseBody(res)
34081	if err := googleapi.CheckResponse(res); err != nil {
34082		return nil, err
34083	}
34084	ret := &GoogleCloudApigeeV1AsyncQuery{
34085		ServerResponse: googleapi.ServerResponse{
34086			Header:         res.Header,
34087			HTTPStatusCode: res.StatusCode,
34088		},
34089	}
34090	target := &ret
34091	if err := gensupport.DecodeResponse(target, res); err != nil {
34092		return nil, err
34093	}
34094	return ret, nil
34095	// {
34096	//   "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\"",
34097	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/queries/{queriesId}",
34098	//   "httpMethod": "GET",
34099	//   "id": "apigee.organizations.environments.queries.get",
34100	//   "parameterOrder": [
34101	//     "name"
34102	//   ],
34103	//   "parameters": {
34104	//     "name": {
34105	//       "description": "Required. Name of the asynchronous query to get. Must be of the form `organizations/{org}/environments/{env}/queries/{queryId}`.",
34106	//       "location": "path",
34107	//       "pattern": "^organizations/[^/]+/environments/[^/]+/queries/[^/]+$",
34108	//       "required": true,
34109	//       "type": "string"
34110	//     }
34111	//   },
34112	//   "path": "v1/{+name}",
34113	//   "response": {
34114	//     "$ref": "GoogleCloudApigeeV1AsyncQuery"
34115	//   },
34116	//   "scopes": [
34117	//     "https://www.googleapis.com/auth/cloud-platform"
34118	//   ]
34119	// }
34120
34121}
34122
34123// method id "apigee.organizations.environments.queries.getResult":
34124
34125type OrganizationsEnvironmentsQueriesGetResultCall struct {
34126	s            *Service
34127	name         string
34128	urlParams_   gensupport.URLParams
34129	ifNoneMatch_ string
34130	ctx_         context.Context
34131	header_      http.Header
34132}
34133
34134// GetResult: After the query is completed, use this API to retrieve the
34135// results. If the request succeeds, and there is a non-zero result set,
34136// the result is downloaded to the client as a zipped JSON file. The
34137// name of the downloaded file will be: OfflineQueryResult-.zip Example:
34138// `OfflineQueryResult-9cfc0d85-0f30-46d6-ae6f-318d0cb961bd.zip`
34139//
34140// - name: Name of the asynchronous query result to get. Must be of the
34141//   form
34142//   `organizations/{org}/environments/{env}/queries/{queryId}/result`.
34143func (r *OrganizationsEnvironmentsQueriesService) GetResult(name string) *OrganizationsEnvironmentsQueriesGetResultCall {
34144	c := &OrganizationsEnvironmentsQueriesGetResultCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34145	c.name = name
34146	return c
34147}
34148
34149// Fields allows partial responses to be retrieved. See
34150// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
34151// for more information.
34152func (c *OrganizationsEnvironmentsQueriesGetResultCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsQueriesGetResultCall {
34153	c.urlParams_.Set("fields", googleapi.CombineFields(s))
34154	return c
34155}
34156
34157// IfNoneMatch sets the optional parameter which makes the operation
34158// fail if the object's ETag matches the given value. This is useful for
34159// getting updates only after the object has changed since the last
34160// request. Use googleapi.IsNotModified to check whether the response
34161// error from Do is the result of In-None-Match.
34162func (c *OrganizationsEnvironmentsQueriesGetResultCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsQueriesGetResultCall {
34163	c.ifNoneMatch_ = entityTag
34164	return c
34165}
34166
34167// Context sets the context to be used in this call's Do method. Any
34168// pending HTTP request will be aborted if the provided context is
34169// canceled.
34170func (c *OrganizationsEnvironmentsQueriesGetResultCall) Context(ctx context.Context) *OrganizationsEnvironmentsQueriesGetResultCall {
34171	c.ctx_ = ctx
34172	return c
34173}
34174
34175// Header returns an http.Header that can be modified by the caller to
34176// add HTTP headers to the request.
34177func (c *OrganizationsEnvironmentsQueriesGetResultCall) Header() http.Header {
34178	if c.header_ == nil {
34179		c.header_ = make(http.Header)
34180	}
34181	return c.header_
34182}
34183
34184func (c *OrganizationsEnvironmentsQueriesGetResultCall) doRequest(alt string) (*http.Response, error) {
34185	reqHeaders := make(http.Header)
34186	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
34187	for k, v := range c.header_ {
34188		reqHeaders[k] = v
34189	}
34190	reqHeaders.Set("User-Agent", c.s.userAgent())
34191	if c.ifNoneMatch_ != "" {
34192		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
34193	}
34194	var body io.Reader = nil
34195	c.urlParams_.Set("alt", alt)
34196	c.urlParams_.Set("prettyPrint", "false")
34197	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
34198	urls += "?" + c.urlParams_.Encode()
34199	req, err := http.NewRequest("GET", urls, body)
34200	if err != nil {
34201		return nil, err
34202	}
34203	req.Header = reqHeaders
34204	googleapi.Expand(req.URL, map[string]string{
34205		"name": c.name,
34206	})
34207	return gensupport.SendRequest(c.ctx_, c.s.client, req)
34208}
34209
34210// Do executes the "apigee.organizations.environments.queries.getResult" call.
34211// Exactly one of *GoogleApiHttpBody or error will be non-nil. Any
34212// non-2xx status code is an error. Response headers are in either
34213// *GoogleApiHttpBody.ServerResponse.Header or (if a response was
34214// returned at all) in error.(*googleapi.Error).Header. Use
34215// googleapi.IsNotModified to check whether the returned error was
34216// because http.StatusNotModified was returned.
34217func (c *OrganizationsEnvironmentsQueriesGetResultCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
34218	gensupport.SetOptions(c.urlParams_, opts...)
34219	res, err := c.doRequest("json")
34220	if res != nil && res.StatusCode == http.StatusNotModified {
34221		if res.Body != nil {
34222			res.Body.Close()
34223		}
34224		return nil, &googleapi.Error{
34225			Code:   res.StatusCode,
34226			Header: res.Header,
34227		}
34228	}
34229	if err != nil {
34230		return nil, err
34231	}
34232	defer googleapi.CloseBody(res)
34233	if err := googleapi.CheckResponse(res); err != nil {
34234		return nil, err
34235	}
34236	ret := &GoogleApiHttpBody{
34237		ServerResponse: googleapi.ServerResponse{
34238			Header:         res.Header,
34239			HTTPStatusCode: res.StatusCode,
34240		},
34241	}
34242	target := &ret
34243	if err := gensupport.DecodeResponse(target, res); err != nil {
34244		return nil, err
34245	}
34246	return ret, nil
34247	// {
34248	//   "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`",
34249	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/queries/{queriesId}/result",
34250	//   "httpMethod": "GET",
34251	//   "id": "apigee.organizations.environments.queries.getResult",
34252	//   "parameterOrder": [
34253	//     "name"
34254	//   ],
34255	//   "parameters": {
34256	//     "name": {
34257	//       "description": "Required. Name of the asynchronous query result to get. Must be of the form `organizations/{org}/environments/{env}/queries/{queryId}/result`.",
34258	//       "location": "path",
34259	//       "pattern": "^organizations/[^/]+/environments/[^/]+/queries/[^/]+/result$",
34260	//       "required": true,
34261	//       "type": "string"
34262	//     }
34263	//   },
34264	//   "path": "v1/{+name}",
34265	//   "response": {
34266	//     "$ref": "GoogleApiHttpBody"
34267	//   },
34268	//   "scopes": [
34269	//     "https://www.googleapis.com/auth/cloud-platform"
34270	//   ]
34271	// }
34272
34273}
34274
34275// method id "apigee.organizations.environments.queries.list":
34276
34277type OrganizationsEnvironmentsQueriesListCall struct {
34278	s            *Service
34279	parent       string
34280	urlParams_   gensupport.URLParams
34281	ifNoneMatch_ string
34282	ctx_         context.Context
34283	header_      http.Header
34284}
34285
34286// List: Return a list of Asynchronous Queries
34287//
34288// - parent: The parent resource name. Must be of the form
34289//   `organizations/{org}/environments/{env}`.
34290func (r *OrganizationsEnvironmentsQueriesService) List(parent string) *OrganizationsEnvironmentsQueriesListCall {
34291	c := &OrganizationsEnvironmentsQueriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34292	c.parent = parent
34293	return c
34294}
34295
34296// Dataset sets the optional parameter "dataset": Filter response list
34297// by dataset. Example: `api`, `mint`
34298func (c *OrganizationsEnvironmentsQueriesListCall) Dataset(dataset string) *OrganizationsEnvironmentsQueriesListCall {
34299	c.urlParams_.Set("dataset", dataset)
34300	return c
34301}
34302
34303// From sets the optional parameter "from": Filter response list by
34304// returning asynchronous queries that created after this date time.
34305// Time must be in ISO date-time format like '2011-12-03T10:15:30Z'.
34306func (c *OrganizationsEnvironmentsQueriesListCall) From(from string) *OrganizationsEnvironmentsQueriesListCall {
34307	c.urlParams_.Set("from", from)
34308	return c
34309}
34310
34311// InclQueriesWithoutReport sets the optional parameter
34312// "inclQueriesWithoutReport": Flag to include asynchronous queries that
34313// don't have a report denifition.
34314func (c *OrganizationsEnvironmentsQueriesListCall) InclQueriesWithoutReport(inclQueriesWithoutReport string) *OrganizationsEnvironmentsQueriesListCall {
34315	c.urlParams_.Set("inclQueriesWithoutReport", inclQueriesWithoutReport)
34316	return c
34317}
34318
34319// Status sets the optional parameter "status": Filter response list by
34320// asynchronous query status.
34321func (c *OrganizationsEnvironmentsQueriesListCall) Status(status string) *OrganizationsEnvironmentsQueriesListCall {
34322	c.urlParams_.Set("status", status)
34323	return c
34324}
34325
34326// SubmittedBy sets the optional parameter "submittedBy": Filter
34327// response list by user who submitted queries.
34328func (c *OrganizationsEnvironmentsQueriesListCall) SubmittedBy(submittedBy string) *OrganizationsEnvironmentsQueriesListCall {
34329	c.urlParams_.Set("submittedBy", submittedBy)
34330	return c
34331}
34332
34333// To sets the optional parameter "to": Filter response list by
34334// returning asynchronous queries that created before this date time.
34335// Time must be in ISO date-time format like '2011-12-03T10:16:30Z'.
34336func (c *OrganizationsEnvironmentsQueriesListCall) To(to string) *OrganizationsEnvironmentsQueriesListCall {
34337	c.urlParams_.Set("to", to)
34338	return c
34339}
34340
34341// Fields allows partial responses to be retrieved. See
34342// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
34343// for more information.
34344func (c *OrganizationsEnvironmentsQueriesListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsQueriesListCall {
34345	c.urlParams_.Set("fields", googleapi.CombineFields(s))
34346	return c
34347}
34348
34349// IfNoneMatch sets the optional parameter which makes the operation
34350// fail if the object's ETag matches the given value. This is useful for
34351// getting updates only after the object has changed since the last
34352// request. Use googleapi.IsNotModified to check whether the response
34353// error from Do is the result of In-None-Match.
34354func (c *OrganizationsEnvironmentsQueriesListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsQueriesListCall {
34355	c.ifNoneMatch_ = entityTag
34356	return c
34357}
34358
34359// Context sets the context to be used in this call's Do method. Any
34360// pending HTTP request will be aborted if the provided context is
34361// canceled.
34362func (c *OrganizationsEnvironmentsQueriesListCall) Context(ctx context.Context) *OrganizationsEnvironmentsQueriesListCall {
34363	c.ctx_ = ctx
34364	return c
34365}
34366
34367// Header returns an http.Header that can be modified by the caller to
34368// add HTTP headers to the request.
34369func (c *OrganizationsEnvironmentsQueriesListCall) Header() http.Header {
34370	if c.header_ == nil {
34371		c.header_ = make(http.Header)
34372	}
34373	return c.header_
34374}
34375
34376func (c *OrganizationsEnvironmentsQueriesListCall) doRequest(alt string) (*http.Response, error) {
34377	reqHeaders := make(http.Header)
34378	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
34379	for k, v := range c.header_ {
34380		reqHeaders[k] = v
34381	}
34382	reqHeaders.Set("User-Agent", c.s.userAgent())
34383	if c.ifNoneMatch_ != "" {
34384		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
34385	}
34386	var body io.Reader = nil
34387	c.urlParams_.Set("alt", alt)
34388	c.urlParams_.Set("prettyPrint", "false")
34389	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/queries")
34390	urls += "?" + c.urlParams_.Encode()
34391	req, err := http.NewRequest("GET", urls, body)
34392	if err != nil {
34393		return nil, err
34394	}
34395	req.Header = reqHeaders
34396	googleapi.Expand(req.URL, map[string]string{
34397		"parent": c.parent,
34398	})
34399	return gensupport.SendRequest(c.ctx_, c.s.client, req)
34400}
34401
34402// Do executes the "apigee.organizations.environments.queries.list" call.
34403// Exactly one of *GoogleCloudApigeeV1ListAsyncQueriesResponse or error
34404// will be non-nil. Any non-2xx status code is an error. Response
34405// headers are in either
34406// *GoogleCloudApigeeV1ListAsyncQueriesResponse.ServerResponse.Header or
34407// (if a response was returned at all) in
34408// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
34409// whether the returned error was because http.StatusNotModified was
34410// returned.
34411func (c *OrganizationsEnvironmentsQueriesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListAsyncQueriesResponse, error) {
34412	gensupport.SetOptions(c.urlParams_, opts...)
34413	res, err := c.doRequest("json")
34414	if res != nil && res.StatusCode == http.StatusNotModified {
34415		if res.Body != nil {
34416			res.Body.Close()
34417		}
34418		return nil, &googleapi.Error{
34419			Code:   res.StatusCode,
34420			Header: res.Header,
34421		}
34422	}
34423	if err != nil {
34424		return nil, err
34425	}
34426	defer googleapi.CloseBody(res)
34427	if err := googleapi.CheckResponse(res); err != nil {
34428		return nil, err
34429	}
34430	ret := &GoogleCloudApigeeV1ListAsyncQueriesResponse{
34431		ServerResponse: googleapi.ServerResponse{
34432			Header:         res.Header,
34433			HTTPStatusCode: res.StatusCode,
34434		},
34435	}
34436	target := &ret
34437	if err := gensupport.DecodeResponse(target, res); err != nil {
34438		return nil, err
34439	}
34440	return ret, nil
34441	// {
34442	//   "description": "Return a list of Asynchronous Queries",
34443	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/queries",
34444	//   "httpMethod": "GET",
34445	//   "id": "apigee.organizations.environments.queries.list",
34446	//   "parameterOrder": [
34447	//     "parent"
34448	//   ],
34449	//   "parameters": {
34450	//     "dataset": {
34451	//       "description": "Filter response list by dataset. Example: `api`, `mint`",
34452	//       "location": "query",
34453	//       "type": "string"
34454	//     },
34455	//     "from": {
34456	//       "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'.",
34457	//       "location": "query",
34458	//       "type": "string"
34459	//     },
34460	//     "inclQueriesWithoutReport": {
34461	//       "description": "Flag to include asynchronous queries that don't have a report denifition.",
34462	//       "location": "query",
34463	//       "type": "string"
34464	//     },
34465	//     "parent": {
34466	//       "description": "Required. The parent resource name. Must be of the form `organizations/{org}/environments/{env}`.",
34467	//       "location": "path",
34468	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
34469	//       "required": true,
34470	//       "type": "string"
34471	//     },
34472	//     "status": {
34473	//       "description": "Filter response list by asynchronous query status.",
34474	//       "location": "query",
34475	//       "type": "string"
34476	//     },
34477	//     "submittedBy": {
34478	//       "description": "Filter response list by user who submitted queries.",
34479	//       "location": "query",
34480	//       "type": "string"
34481	//     },
34482	//     "to": {
34483	//       "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'.",
34484	//       "location": "query",
34485	//       "type": "string"
34486	//     }
34487	//   },
34488	//   "path": "v1/{+parent}/queries",
34489	//   "response": {
34490	//     "$ref": "GoogleCloudApigeeV1ListAsyncQueriesResponse"
34491	//   },
34492	//   "scopes": [
34493	//     "https://www.googleapis.com/auth/cloud-platform"
34494	//   ]
34495	// }
34496
34497}
34498
34499// method id "apigee.organizations.environments.references.create":
34500
34501type OrganizationsEnvironmentsReferencesCreateCall struct {
34502	s                            *Service
34503	parent                       string
34504	googlecloudapigeev1reference *GoogleCloudApigeeV1Reference
34505	urlParams_                   gensupport.URLParams
34506	ctx_                         context.Context
34507	header_                      http.Header
34508}
34509
34510// Create: Creates a Reference in the specified environment.
34511//
34512// - parent: The parent environment name under which the Reference will
34513//   be created. Must be of the form
34514//   `organizations/{org}/environments/{env}`.
34515func (r *OrganizationsEnvironmentsReferencesService) Create(parent string, googlecloudapigeev1reference *GoogleCloudApigeeV1Reference) *OrganizationsEnvironmentsReferencesCreateCall {
34516	c := &OrganizationsEnvironmentsReferencesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34517	c.parent = parent
34518	c.googlecloudapigeev1reference = googlecloudapigeev1reference
34519	return c
34520}
34521
34522// Fields allows partial responses to be retrieved. See
34523// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
34524// for more information.
34525func (c *OrganizationsEnvironmentsReferencesCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsReferencesCreateCall {
34526	c.urlParams_.Set("fields", googleapi.CombineFields(s))
34527	return c
34528}
34529
34530// Context sets the context to be used in this call's Do method. Any
34531// pending HTTP request will be aborted if the provided context is
34532// canceled.
34533func (c *OrganizationsEnvironmentsReferencesCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsReferencesCreateCall {
34534	c.ctx_ = ctx
34535	return c
34536}
34537
34538// Header returns an http.Header that can be modified by the caller to
34539// add HTTP headers to the request.
34540func (c *OrganizationsEnvironmentsReferencesCreateCall) Header() http.Header {
34541	if c.header_ == nil {
34542		c.header_ = make(http.Header)
34543	}
34544	return c.header_
34545}
34546
34547func (c *OrganizationsEnvironmentsReferencesCreateCall) doRequest(alt string) (*http.Response, error) {
34548	reqHeaders := make(http.Header)
34549	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
34550	for k, v := range c.header_ {
34551		reqHeaders[k] = v
34552	}
34553	reqHeaders.Set("User-Agent", c.s.userAgent())
34554	var body io.Reader = nil
34555	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1reference)
34556	if err != nil {
34557		return nil, err
34558	}
34559	reqHeaders.Set("Content-Type", "application/json")
34560	c.urlParams_.Set("alt", alt)
34561	c.urlParams_.Set("prettyPrint", "false")
34562	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/references")
34563	urls += "?" + c.urlParams_.Encode()
34564	req, err := http.NewRequest("POST", urls, body)
34565	if err != nil {
34566		return nil, err
34567	}
34568	req.Header = reqHeaders
34569	googleapi.Expand(req.URL, map[string]string{
34570		"parent": c.parent,
34571	})
34572	return gensupport.SendRequest(c.ctx_, c.s.client, req)
34573}
34574
34575// Do executes the "apigee.organizations.environments.references.create" call.
34576// Exactly one of *GoogleCloudApigeeV1Reference or error will be
34577// non-nil. Any non-2xx status code is an error. Response headers are in
34578// either *GoogleCloudApigeeV1Reference.ServerResponse.Header or (if a
34579// response was returned at all) in error.(*googleapi.Error).Header. Use
34580// googleapi.IsNotModified to check whether the returned error was
34581// because http.StatusNotModified was returned.
34582func (c *OrganizationsEnvironmentsReferencesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Reference, error) {
34583	gensupport.SetOptions(c.urlParams_, opts...)
34584	res, err := c.doRequest("json")
34585	if res != nil && res.StatusCode == http.StatusNotModified {
34586		if res.Body != nil {
34587			res.Body.Close()
34588		}
34589		return nil, &googleapi.Error{
34590			Code:   res.StatusCode,
34591			Header: res.Header,
34592		}
34593	}
34594	if err != nil {
34595		return nil, err
34596	}
34597	defer googleapi.CloseBody(res)
34598	if err := googleapi.CheckResponse(res); err != nil {
34599		return nil, err
34600	}
34601	ret := &GoogleCloudApigeeV1Reference{
34602		ServerResponse: googleapi.ServerResponse{
34603			Header:         res.Header,
34604			HTTPStatusCode: res.StatusCode,
34605		},
34606	}
34607	target := &ret
34608	if err := gensupport.DecodeResponse(target, res); err != nil {
34609		return nil, err
34610	}
34611	return ret, nil
34612	// {
34613	//   "description": "Creates a Reference in the specified environment.",
34614	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/references",
34615	//   "httpMethod": "POST",
34616	//   "id": "apigee.organizations.environments.references.create",
34617	//   "parameterOrder": [
34618	//     "parent"
34619	//   ],
34620	//   "parameters": {
34621	//     "parent": {
34622	//       "description": "Required. The parent environment name under which the Reference will be created. Must be of the form `organizations/{org}/environments/{env}`.",
34623	//       "location": "path",
34624	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
34625	//       "required": true,
34626	//       "type": "string"
34627	//     }
34628	//   },
34629	//   "path": "v1/{+parent}/references",
34630	//   "request": {
34631	//     "$ref": "GoogleCloudApigeeV1Reference"
34632	//   },
34633	//   "response": {
34634	//     "$ref": "GoogleCloudApigeeV1Reference"
34635	//   },
34636	//   "scopes": [
34637	//     "https://www.googleapis.com/auth/cloud-platform"
34638	//   ]
34639	// }
34640
34641}
34642
34643// method id "apigee.organizations.environments.references.delete":
34644
34645type OrganizationsEnvironmentsReferencesDeleteCall struct {
34646	s          *Service
34647	name       string
34648	urlParams_ gensupport.URLParams
34649	ctx_       context.Context
34650	header_    http.Header
34651}
34652
34653// Delete: Deletes a Reference from an environment. Returns the deleted
34654// Reference resource.
34655//
34656// - name: The name of the Reference to delete. Must be of the form
34657//   `organizations/{org}/environments/{env}/references/{ref}`.
34658func (r *OrganizationsEnvironmentsReferencesService) Delete(name string) *OrganizationsEnvironmentsReferencesDeleteCall {
34659	c := &OrganizationsEnvironmentsReferencesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34660	c.name = name
34661	return c
34662}
34663
34664// Fields allows partial responses to be retrieved. See
34665// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
34666// for more information.
34667func (c *OrganizationsEnvironmentsReferencesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsReferencesDeleteCall {
34668	c.urlParams_.Set("fields", googleapi.CombineFields(s))
34669	return c
34670}
34671
34672// Context sets the context to be used in this call's Do method. Any
34673// pending HTTP request will be aborted if the provided context is
34674// canceled.
34675func (c *OrganizationsEnvironmentsReferencesDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsReferencesDeleteCall {
34676	c.ctx_ = ctx
34677	return c
34678}
34679
34680// Header returns an http.Header that can be modified by the caller to
34681// add HTTP headers to the request.
34682func (c *OrganizationsEnvironmentsReferencesDeleteCall) Header() http.Header {
34683	if c.header_ == nil {
34684		c.header_ = make(http.Header)
34685	}
34686	return c.header_
34687}
34688
34689func (c *OrganizationsEnvironmentsReferencesDeleteCall) doRequest(alt string) (*http.Response, error) {
34690	reqHeaders := make(http.Header)
34691	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
34692	for k, v := range c.header_ {
34693		reqHeaders[k] = v
34694	}
34695	reqHeaders.Set("User-Agent", c.s.userAgent())
34696	var body io.Reader = nil
34697	c.urlParams_.Set("alt", alt)
34698	c.urlParams_.Set("prettyPrint", "false")
34699	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
34700	urls += "?" + c.urlParams_.Encode()
34701	req, err := http.NewRequest("DELETE", urls, body)
34702	if err != nil {
34703		return nil, err
34704	}
34705	req.Header = reqHeaders
34706	googleapi.Expand(req.URL, map[string]string{
34707		"name": c.name,
34708	})
34709	return gensupport.SendRequest(c.ctx_, c.s.client, req)
34710}
34711
34712// Do executes the "apigee.organizations.environments.references.delete" call.
34713// Exactly one of *GoogleCloudApigeeV1Reference or error will be
34714// non-nil. Any non-2xx status code is an error. Response headers are in
34715// either *GoogleCloudApigeeV1Reference.ServerResponse.Header or (if a
34716// response was returned at all) in error.(*googleapi.Error).Header. Use
34717// googleapi.IsNotModified to check whether the returned error was
34718// because http.StatusNotModified was returned.
34719func (c *OrganizationsEnvironmentsReferencesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Reference, error) {
34720	gensupport.SetOptions(c.urlParams_, opts...)
34721	res, err := c.doRequest("json")
34722	if res != nil && res.StatusCode == http.StatusNotModified {
34723		if res.Body != nil {
34724			res.Body.Close()
34725		}
34726		return nil, &googleapi.Error{
34727			Code:   res.StatusCode,
34728			Header: res.Header,
34729		}
34730	}
34731	if err != nil {
34732		return nil, err
34733	}
34734	defer googleapi.CloseBody(res)
34735	if err := googleapi.CheckResponse(res); err != nil {
34736		return nil, err
34737	}
34738	ret := &GoogleCloudApigeeV1Reference{
34739		ServerResponse: googleapi.ServerResponse{
34740			Header:         res.Header,
34741			HTTPStatusCode: res.StatusCode,
34742		},
34743	}
34744	target := &ret
34745	if err := gensupport.DecodeResponse(target, res); err != nil {
34746		return nil, err
34747	}
34748	return ret, nil
34749	// {
34750	//   "description": "Deletes a Reference from an environment. Returns the deleted Reference resource.",
34751	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/references/{referencesId}",
34752	//   "httpMethod": "DELETE",
34753	//   "id": "apigee.organizations.environments.references.delete",
34754	//   "parameterOrder": [
34755	//     "name"
34756	//   ],
34757	//   "parameters": {
34758	//     "name": {
34759	//       "description": "Required. The name of the Reference to delete. Must be of the form `organizations/{org}/environments/{env}/references/{ref}`.",
34760	//       "location": "path",
34761	//       "pattern": "^organizations/[^/]+/environments/[^/]+/references/[^/]+$",
34762	//       "required": true,
34763	//       "type": "string"
34764	//     }
34765	//   },
34766	//   "path": "v1/{+name}",
34767	//   "response": {
34768	//     "$ref": "GoogleCloudApigeeV1Reference"
34769	//   },
34770	//   "scopes": [
34771	//     "https://www.googleapis.com/auth/cloud-platform"
34772	//   ]
34773	// }
34774
34775}
34776
34777// method id "apigee.organizations.environments.references.get":
34778
34779type OrganizationsEnvironmentsReferencesGetCall struct {
34780	s            *Service
34781	name         string
34782	urlParams_   gensupport.URLParams
34783	ifNoneMatch_ string
34784	ctx_         context.Context
34785	header_      http.Header
34786}
34787
34788// Get: Gets a Reference resource.
34789//
34790// - name: The name of the Reference to get. Must be of the form
34791//   `organizations/{org}/environments/{env}/references/{ref}`.
34792func (r *OrganizationsEnvironmentsReferencesService) Get(name string) *OrganizationsEnvironmentsReferencesGetCall {
34793	c := &OrganizationsEnvironmentsReferencesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34794	c.name = name
34795	return c
34796}
34797
34798// Fields allows partial responses to be retrieved. See
34799// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
34800// for more information.
34801func (c *OrganizationsEnvironmentsReferencesGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsReferencesGetCall {
34802	c.urlParams_.Set("fields", googleapi.CombineFields(s))
34803	return c
34804}
34805
34806// IfNoneMatch sets the optional parameter which makes the operation
34807// fail if the object's ETag matches the given value. This is useful for
34808// getting updates only after the object has changed since the last
34809// request. Use googleapi.IsNotModified to check whether the response
34810// error from Do is the result of In-None-Match.
34811func (c *OrganizationsEnvironmentsReferencesGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsReferencesGetCall {
34812	c.ifNoneMatch_ = entityTag
34813	return c
34814}
34815
34816// Context sets the context to be used in this call's Do method. Any
34817// pending HTTP request will be aborted if the provided context is
34818// canceled.
34819func (c *OrganizationsEnvironmentsReferencesGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsReferencesGetCall {
34820	c.ctx_ = ctx
34821	return c
34822}
34823
34824// Header returns an http.Header that can be modified by the caller to
34825// add HTTP headers to the request.
34826func (c *OrganizationsEnvironmentsReferencesGetCall) Header() http.Header {
34827	if c.header_ == nil {
34828		c.header_ = make(http.Header)
34829	}
34830	return c.header_
34831}
34832
34833func (c *OrganizationsEnvironmentsReferencesGetCall) doRequest(alt string) (*http.Response, error) {
34834	reqHeaders := make(http.Header)
34835	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
34836	for k, v := range c.header_ {
34837		reqHeaders[k] = v
34838	}
34839	reqHeaders.Set("User-Agent", c.s.userAgent())
34840	if c.ifNoneMatch_ != "" {
34841		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
34842	}
34843	var body io.Reader = nil
34844	c.urlParams_.Set("alt", alt)
34845	c.urlParams_.Set("prettyPrint", "false")
34846	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
34847	urls += "?" + c.urlParams_.Encode()
34848	req, err := http.NewRequest("GET", urls, body)
34849	if err != nil {
34850		return nil, err
34851	}
34852	req.Header = reqHeaders
34853	googleapi.Expand(req.URL, map[string]string{
34854		"name": c.name,
34855	})
34856	return gensupport.SendRequest(c.ctx_, c.s.client, req)
34857}
34858
34859// Do executes the "apigee.organizations.environments.references.get" call.
34860// Exactly one of *GoogleCloudApigeeV1Reference or error will be
34861// non-nil. Any non-2xx status code is an error. Response headers are in
34862// either *GoogleCloudApigeeV1Reference.ServerResponse.Header or (if a
34863// response was returned at all) in error.(*googleapi.Error).Header. Use
34864// googleapi.IsNotModified to check whether the returned error was
34865// because http.StatusNotModified was returned.
34866func (c *OrganizationsEnvironmentsReferencesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Reference, error) {
34867	gensupport.SetOptions(c.urlParams_, opts...)
34868	res, err := c.doRequest("json")
34869	if res != nil && res.StatusCode == http.StatusNotModified {
34870		if res.Body != nil {
34871			res.Body.Close()
34872		}
34873		return nil, &googleapi.Error{
34874			Code:   res.StatusCode,
34875			Header: res.Header,
34876		}
34877	}
34878	if err != nil {
34879		return nil, err
34880	}
34881	defer googleapi.CloseBody(res)
34882	if err := googleapi.CheckResponse(res); err != nil {
34883		return nil, err
34884	}
34885	ret := &GoogleCloudApigeeV1Reference{
34886		ServerResponse: googleapi.ServerResponse{
34887			Header:         res.Header,
34888			HTTPStatusCode: res.StatusCode,
34889		},
34890	}
34891	target := &ret
34892	if err := gensupport.DecodeResponse(target, res); err != nil {
34893		return nil, err
34894	}
34895	return ret, nil
34896	// {
34897	//   "description": "Gets a Reference resource.",
34898	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/references/{referencesId}",
34899	//   "httpMethod": "GET",
34900	//   "id": "apigee.organizations.environments.references.get",
34901	//   "parameterOrder": [
34902	//     "name"
34903	//   ],
34904	//   "parameters": {
34905	//     "name": {
34906	//       "description": "Required. The name of the Reference to get. Must be of the form `organizations/{org}/environments/{env}/references/{ref}`.",
34907	//       "location": "path",
34908	//       "pattern": "^organizations/[^/]+/environments/[^/]+/references/[^/]+$",
34909	//       "required": true,
34910	//       "type": "string"
34911	//     }
34912	//   },
34913	//   "path": "v1/{+name}",
34914	//   "response": {
34915	//     "$ref": "GoogleCloudApigeeV1Reference"
34916	//   },
34917	//   "scopes": [
34918	//     "https://www.googleapis.com/auth/cloud-platform"
34919	//   ]
34920	// }
34921
34922}
34923
34924// method id "apigee.organizations.environments.references.update":
34925
34926type OrganizationsEnvironmentsReferencesUpdateCall struct {
34927	s                            *Service
34928	name                         string
34929	googlecloudapigeev1reference *GoogleCloudApigeeV1Reference
34930	urlParams_                   gensupport.URLParams
34931	ctx_                         context.Context
34932	header_                      http.Header
34933}
34934
34935// Update: Updates an existing Reference. Note that this operation has
34936// PUT semantics; it will replace the entirety of the existing Reference
34937// with the resource in the request body.
34938//
34939// - name: The name of the Reference to update. Must be of the form
34940//   `organizations/{org}/environments/{env}/references/{ref}`.
34941func (r *OrganizationsEnvironmentsReferencesService) Update(name string, googlecloudapigeev1reference *GoogleCloudApigeeV1Reference) *OrganizationsEnvironmentsReferencesUpdateCall {
34942	c := &OrganizationsEnvironmentsReferencesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34943	c.name = name
34944	c.googlecloudapigeev1reference = googlecloudapigeev1reference
34945	return c
34946}
34947
34948// Fields allows partial responses to be retrieved. See
34949// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
34950// for more information.
34951func (c *OrganizationsEnvironmentsReferencesUpdateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsReferencesUpdateCall {
34952	c.urlParams_.Set("fields", googleapi.CombineFields(s))
34953	return c
34954}
34955
34956// Context sets the context to be used in this call's Do method. Any
34957// pending HTTP request will be aborted if the provided context is
34958// canceled.
34959func (c *OrganizationsEnvironmentsReferencesUpdateCall) Context(ctx context.Context) *OrganizationsEnvironmentsReferencesUpdateCall {
34960	c.ctx_ = ctx
34961	return c
34962}
34963
34964// Header returns an http.Header that can be modified by the caller to
34965// add HTTP headers to the request.
34966func (c *OrganizationsEnvironmentsReferencesUpdateCall) Header() http.Header {
34967	if c.header_ == nil {
34968		c.header_ = make(http.Header)
34969	}
34970	return c.header_
34971}
34972
34973func (c *OrganizationsEnvironmentsReferencesUpdateCall) doRequest(alt string) (*http.Response, error) {
34974	reqHeaders := make(http.Header)
34975	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
34976	for k, v := range c.header_ {
34977		reqHeaders[k] = v
34978	}
34979	reqHeaders.Set("User-Agent", c.s.userAgent())
34980	var body io.Reader = nil
34981	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1reference)
34982	if err != nil {
34983		return nil, err
34984	}
34985	reqHeaders.Set("Content-Type", "application/json")
34986	c.urlParams_.Set("alt", alt)
34987	c.urlParams_.Set("prettyPrint", "false")
34988	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
34989	urls += "?" + c.urlParams_.Encode()
34990	req, err := http.NewRequest("PUT", urls, body)
34991	if err != nil {
34992		return nil, err
34993	}
34994	req.Header = reqHeaders
34995	googleapi.Expand(req.URL, map[string]string{
34996		"name": c.name,
34997	})
34998	return gensupport.SendRequest(c.ctx_, c.s.client, req)
34999}
35000
35001// Do executes the "apigee.organizations.environments.references.update" call.
35002// Exactly one of *GoogleCloudApigeeV1Reference or error will be
35003// non-nil. Any non-2xx status code is an error. Response headers are in
35004// either *GoogleCloudApigeeV1Reference.ServerResponse.Header or (if a
35005// response was returned at all) in error.(*googleapi.Error).Header. Use
35006// googleapi.IsNotModified to check whether the returned error was
35007// because http.StatusNotModified was returned.
35008func (c *OrganizationsEnvironmentsReferencesUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Reference, error) {
35009	gensupport.SetOptions(c.urlParams_, opts...)
35010	res, err := c.doRequest("json")
35011	if res != nil && res.StatusCode == http.StatusNotModified {
35012		if res.Body != nil {
35013			res.Body.Close()
35014		}
35015		return nil, &googleapi.Error{
35016			Code:   res.StatusCode,
35017			Header: res.Header,
35018		}
35019	}
35020	if err != nil {
35021		return nil, err
35022	}
35023	defer googleapi.CloseBody(res)
35024	if err := googleapi.CheckResponse(res); err != nil {
35025		return nil, err
35026	}
35027	ret := &GoogleCloudApigeeV1Reference{
35028		ServerResponse: googleapi.ServerResponse{
35029			Header:         res.Header,
35030			HTTPStatusCode: res.StatusCode,
35031		},
35032	}
35033	target := &ret
35034	if err := gensupport.DecodeResponse(target, res); err != nil {
35035		return nil, err
35036	}
35037	return ret, nil
35038	// {
35039	//   "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.",
35040	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/references/{referencesId}",
35041	//   "httpMethod": "PUT",
35042	//   "id": "apigee.organizations.environments.references.update",
35043	//   "parameterOrder": [
35044	//     "name"
35045	//   ],
35046	//   "parameters": {
35047	//     "name": {
35048	//       "description": "Required. The name of the Reference to update. Must be of the form `organizations/{org}/environments/{env}/references/{ref}`.",
35049	//       "location": "path",
35050	//       "pattern": "^organizations/[^/]+/environments/[^/]+/references/[^/]+$",
35051	//       "required": true,
35052	//       "type": "string"
35053	//     }
35054	//   },
35055	//   "path": "v1/{+name}",
35056	//   "request": {
35057	//     "$ref": "GoogleCloudApigeeV1Reference"
35058	//   },
35059	//   "response": {
35060	//     "$ref": "GoogleCloudApigeeV1Reference"
35061	//   },
35062	//   "scopes": [
35063	//     "https://www.googleapis.com/auth/cloud-platform"
35064	//   ]
35065	// }
35066
35067}
35068
35069// method id "apigee.organizations.environments.resourcefiles.create":
35070
35071type OrganizationsEnvironmentsResourcefilesCreateCall struct {
35072	s                 *Service
35073	parent            string
35074	googleapihttpbody *GoogleApiHttpBody
35075	urlParams_        gensupport.URLParams
35076	ctx_              context.Context
35077	header_           http.Header
35078}
35079
35080// Create: Creates a resource file. Specify the `Content-Type` as
35081// `application/octet-stream` or `multipart/form-data`. For more
35082// information about resource files, see Resource files
35083// (https://cloud.google.com/apigee/docs/api-platform/develop/resource-files).
35084//
35085// - parent: Name of the environment in which to create the resource
35086//   file in the following format:
35087//   `organizations/{org}/environments/{env}`.
35088func (r *OrganizationsEnvironmentsResourcefilesService) Create(parent string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsEnvironmentsResourcefilesCreateCall {
35089	c := &OrganizationsEnvironmentsResourcefilesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35090	c.parent = parent
35091	c.googleapihttpbody = googleapihttpbody
35092	return c
35093}
35094
35095// Name sets the optional parameter "name": Required. Name of the
35096// resource file. Must match the regular expression:
35097// [a-zA-Z0-9:/\\!@#$%^&{}\\ ()+\-=,.~'` ]{1,255}
35098func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Name(name string) *OrganizationsEnvironmentsResourcefilesCreateCall {
35099	c.urlParams_.Set("name", name)
35100	return c
35101}
35102
35103// Type sets the optional parameter "type": Required. Resource file
35104// type. {{ resource_file_type }}
35105func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Type(type_ string) *OrganizationsEnvironmentsResourcefilesCreateCall {
35106	c.urlParams_.Set("type", type_)
35107	return c
35108}
35109
35110// Fields allows partial responses to be retrieved. See
35111// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
35112// for more information.
35113func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesCreateCall {
35114	c.urlParams_.Set("fields", googleapi.CombineFields(s))
35115	return c
35116}
35117
35118// Context sets the context to be used in this call's Do method. Any
35119// pending HTTP request will be aborted if the provided context is
35120// canceled.
35121func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesCreateCall {
35122	c.ctx_ = ctx
35123	return c
35124}
35125
35126// Header returns an http.Header that can be modified by the caller to
35127// add HTTP headers to the request.
35128func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Header() http.Header {
35129	if c.header_ == nil {
35130		c.header_ = make(http.Header)
35131	}
35132	return c.header_
35133}
35134
35135func (c *OrganizationsEnvironmentsResourcefilesCreateCall) doRequest(alt string) (*http.Response, error) {
35136	reqHeaders := make(http.Header)
35137	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
35138	for k, v := range c.header_ {
35139		reqHeaders[k] = v
35140	}
35141	reqHeaders.Set("User-Agent", c.s.userAgent())
35142	var body io.Reader = nil
35143	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
35144	if err != nil {
35145		return nil, err
35146	}
35147	reqHeaders.Set("Content-Type", "application/json")
35148	c.urlParams_.Set("alt", alt)
35149	c.urlParams_.Set("prettyPrint", "false")
35150	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcefiles")
35151	urls += "?" + c.urlParams_.Encode()
35152	req, err := http.NewRequest("POST", urls, body)
35153	if err != nil {
35154		return nil, err
35155	}
35156	req.Header = reqHeaders
35157	googleapi.Expand(req.URL, map[string]string{
35158		"parent": c.parent,
35159	})
35160	return gensupport.SendRequest(c.ctx_, c.s.client, req)
35161}
35162
35163// Do executes the "apigee.organizations.environments.resourcefiles.create" call.
35164// Exactly one of *GoogleCloudApigeeV1ResourceFile or error will be
35165// non-nil. Any non-2xx status code is an error. Response headers are in
35166// either *GoogleCloudApigeeV1ResourceFile.ServerResponse.Header or (if
35167// a response was returned at all) in error.(*googleapi.Error).Header.
35168// Use googleapi.IsNotModified to check whether the returned error was
35169// because http.StatusNotModified was returned.
35170func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ResourceFile, error) {
35171	gensupport.SetOptions(c.urlParams_, opts...)
35172	res, err := c.doRequest("json")
35173	if res != nil && res.StatusCode == http.StatusNotModified {
35174		if res.Body != nil {
35175			res.Body.Close()
35176		}
35177		return nil, &googleapi.Error{
35178			Code:   res.StatusCode,
35179			Header: res.Header,
35180		}
35181	}
35182	if err != nil {
35183		return nil, err
35184	}
35185	defer googleapi.CloseBody(res)
35186	if err := googleapi.CheckResponse(res); err != nil {
35187		return nil, err
35188	}
35189	ret := &GoogleCloudApigeeV1ResourceFile{
35190		ServerResponse: googleapi.ServerResponse{
35191			Header:         res.Header,
35192			HTTPStatusCode: res.StatusCode,
35193		},
35194	}
35195	target := &ret
35196	if err := gensupport.DecodeResponse(target, res); err != nil {
35197		return nil, err
35198	}
35199	return ret, nil
35200	// {
35201	//   "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).",
35202	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/resourcefiles",
35203	//   "httpMethod": "POST",
35204	//   "id": "apigee.organizations.environments.resourcefiles.create",
35205	//   "parameterOrder": [
35206	//     "parent"
35207	//   ],
35208	//   "parameters": {
35209	//     "name": {
35210	//       "description": "Required. Name of the resource file. Must match the regular expression: [a-zA-Z0-9:/\\\\!@#$%^\u0026{}\\[\\]()+\\-=,.~'` ]{1,255}",
35211	//       "location": "query",
35212	//       "type": "string"
35213	//     },
35214	//     "parent": {
35215	//       "description": "Required. Name of the environment in which to create the resource file in the following format: `organizations/{org}/environments/{env}`.",
35216	//       "location": "path",
35217	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
35218	//       "required": true,
35219	//       "type": "string"
35220	//     },
35221	//     "type": {
35222	//       "description": "Required. Resource file type. {{ resource_file_type }}",
35223	//       "location": "query",
35224	//       "type": "string"
35225	//     }
35226	//   },
35227	//   "path": "v1/{+parent}/resourcefiles",
35228	//   "request": {
35229	//     "$ref": "GoogleApiHttpBody"
35230	//   },
35231	//   "response": {
35232	//     "$ref": "GoogleCloudApigeeV1ResourceFile"
35233	//   },
35234	//   "scopes": [
35235	//     "https://www.googleapis.com/auth/cloud-platform"
35236	//   ]
35237	// }
35238
35239}
35240
35241// method id "apigee.organizations.environments.resourcefiles.delete":
35242
35243type OrganizationsEnvironmentsResourcefilesDeleteCall struct {
35244	s          *Service
35245	parent     string
35246	type_      string
35247	name       string
35248	urlParams_ gensupport.URLParams
35249	ctx_       context.Context
35250	header_    http.Header
35251}
35252
35253// Delete: Deletes a resource file. For more information about resource
35254// files, see Resource files
35255// (https://cloud.google.com/apigee/docs/api-platform/develop/resource-files).
35256//
35257// - name: ID of the resource file to delete. Must match the regular
35258//   expression: [a-zA-Z0-9:/\\!@#$%^&{}\\ ()+\-=,.~'` ]{1,255}.
35259// - parent: Name of the environment in the following format:
35260//   `organizations/{org}/environments/{env}`.
35261// - type: Resource file type. {{ resource_file_type }}.
35262func (r *OrganizationsEnvironmentsResourcefilesService) Delete(parent string, type_ string, name string) *OrganizationsEnvironmentsResourcefilesDeleteCall {
35263	c := &OrganizationsEnvironmentsResourcefilesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35264	c.parent = parent
35265	c.type_ = type_
35266	c.name = name
35267	return c
35268}
35269
35270// Fields allows partial responses to be retrieved. See
35271// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
35272// for more information.
35273func (c *OrganizationsEnvironmentsResourcefilesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesDeleteCall {
35274	c.urlParams_.Set("fields", googleapi.CombineFields(s))
35275	return c
35276}
35277
35278// Context sets the context to be used in this call's Do method. Any
35279// pending HTTP request will be aborted if the provided context is
35280// canceled.
35281func (c *OrganizationsEnvironmentsResourcefilesDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesDeleteCall {
35282	c.ctx_ = ctx
35283	return c
35284}
35285
35286// Header returns an http.Header that can be modified by the caller to
35287// add HTTP headers to the request.
35288func (c *OrganizationsEnvironmentsResourcefilesDeleteCall) Header() http.Header {
35289	if c.header_ == nil {
35290		c.header_ = make(http.Header)
35291	}
35292	return c.header_
35293}
35294
35295func (c *OrganizationsEnvironmentsResourcefilesDeleteCall) doRequest(alt string) (*http.Response, error) {
35296	reqHeaders := make(http.Header)
35297	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
35298	for k, v := range c.header_ {
35299		reqHeaders[k] = v
35300	}
35301	reqHeaders.Set("User-Agent", c.s.userAgent())
35302	var body io.Reader = nil
35303	c.urlParams_.Set("alt", alt)
35304	c.urlParams_.Set("prettyPrint", "false")
35305	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcefiles/{type}/{name}")
35306	urls += "?" + c.urlParams_.Encode()
35307	req, err := http.NewRequest("DELETE", urls, body)
35308	if err != nil {
35309		return nil, err
35310	}
35311	req.Header = reqHeaders
35312	googleapi.Expand(req.URL, map[string]string{
35313		"parent": c.parent,
35314		"type":   c.type_,
35315		"name":   c.name,
35316	})
35317	return gensupport.SendRequest(c.ctx_, c.s.client, req)
35318}
35319
35320// Do executes the "apigee.organizations.environments.resourcefiles.delete" call.
35321// Exactly one of *GoogleCloudApigeeV1ResourceFile or error will be
35322// non-nil. Any non-2xx status code is an error. Response headers are in
35323// either *GoogleCloudApigeeV1ResourceFile.ServerResponse.Header or (if
35324// a response was returned at all) in error.(*googleapi.Error).Header.
35325// Use googleapi.IsNotModified to check whether the returned error was
35326// because http.StatusNotModified was returned.
35327func (c *OrganizationsEnvironmentsResourcefilesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ResourceFile, error) {
35328	gensupport.SetOptions(c.urlParams_, opts...)
35329	res, err := c.doRequest("json")
35330	if res != nil && res.StatusCode == http.StatusNotModified {
35331		if res.Body != nil {
35332			res.Body.Close()
35333		}
35334		return nil, &googleapi.Error{
35335			Code:   res.StatusCode,
35336			Header: res.Header,
35337		}
35338	}
35339	if err != nil {
35340		return nil, err
35341	}
35342	defer googleapi.CloseBody(res)
35343	if err := googleapi.CheckResponse(res); err != nil {
35344		return nil, err
35345	}
35346	ret := &GoogleCloudApigeeV1ResourceFile{
35347		ServerResponse: googleapi.ServerResponse{
35348			Header:         res.Header,
35349			HTTPStatusCode: res.StatusCode,
35350		},
35351	}
35352	target := &ret
35353	if err := gensupport.DecodeResponse(target, res); err != nil {
35354		return nil, err
35355	}
35356	return ret, nil
35357	// {
35358	//   "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).",
35359	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/resourcefiles/{type}/{name}",
35360	//   "httpMethod": "DELETE",
35361	//   "id": "apigee.organizations.environments.resourcefiles.delete",
35362	//   "parameterOrder": [
35363	//     "parent",
35364	//     "type",
35365	//     "name"
35366	//   ],
35367	//   "parameters": {
35368	//     "name": {
35369	//       "description": "Required. ID of the resource file to delete. Must match the regular expression: [a-zA-Z0-9:/\\\\!@#$%^\u0026{}\\[\\]()+\\-=,.~'` ]{1,255}",
35370	//       "location": "path",
35371	//       "required": true,
35372	//       "type": "string"
35373	//     },
35374	//     "parent": {
35375	//       "description": "Required. Name of the environment in the following format: `organizations/{org}/environments/{env}`.",
35376	//       "location": "path",
35377	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
35378	//       "required": true,
35379	//       "type": "string"
35380	//     },
35381	//     "type": {
35382	//       "description": "Required. Resource file type. {{ resource_file_type }}",
35383	//       "location": "path",
35384	//       "required": true,
35385	//       "type": "string"
35386	//     }
35387	//   },
35388	//   "path": "v1/{+parent}/resourcefiles/{type}/{name}",
35389	//   "response": {
35390	//     "$ref": "GoogleCloudApigeeV1ResourceFile"
35391	//   },
35392	//   "scopes": [
35393	//     "https://www.googleapis.com/auth/cloud-platform"
35394	//   ]
35395	// }
35396
35397}
35398
35399// method id "apigee.organizations.environments.resourcefiles.get":
35400
35401type OrganizationsEnvironmentsResourcefilesGetCall struct {
35402	s            *Service
35403	parent       string
35404	type_        string
35405	name         string
35406	urlParams_   gensupport.URLParams
35407	ifNoneMatch_ string
35408	ctx_         context.Context
35409	header_      http.Header
35410}
35411
35412// Get: Gets the contents of a resource file. For more information about
35413// resource files, see Resource files
35414// (https://cloud.google.com/apigee/docs/api-platform/develop/resource-files).
35415//
35416// - name: ID of the resource file. Must match the regular expression:
35417//   [a-zA-Z0-9:/\\!@#$%^&{}\\ ()+\-=,.~'` ]{1,255}.
35418// - parent: Name of the environment in the following format:
35419//   `organizations/{org}/environments/{env}`.
35420// - type: Resource file type. {{ resource_file_type }}.
35421func (r *OrganizationsEnvironmentsResourcefilesService) Get(parent string, type_ string, name string) *OrganizationsEnvironmentsResourcefilesGetCall {
35422	c := &OrganizationsEnvironmentsResourcefilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35423	c.parent = parent
35424	c.type_ = type_
35425	c.name = name
35426	return c
35427}
35428
35429// Fields allows partial responses to be retrieved. See
35430// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
35431// for more information.
35432func (c *OrganizationsEnvironmentsResourcefilesGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesGetCall {
35433	c.urlParams_.Set("fields", googleapi.CombineFields(s))
35434	return c
35435}
35436
35437// IfNoneMatch sets the optional parameter which makes the operation
35438// fail if the object's ETag matches the given value. This is useful for
35439// getting updates only after the object has changed since the last
35440// request. Use googleapi.IsNotModified to check whether the response
35441// error from Do is the result of In-None-Match.
35442func (c *OrganizationsEnvironmentsResourcefilesGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsResourcefilesGetCall {
35443	c.ifNoneMatch_ = entityTag
35444	return c
35445}
35446
35447// Context sets the context to be used in this call's Do method. Any
35448// pending HTTP request will be aborted if the provided context is
35449// canceled.
35450func (c *OrganizationsEnvironmentsResourcefilesGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesGetCall {
35451	c.ctx_ = ctx
35452	return c
35453}
35454
35455// Header returns an http.Header that can be modified by the caller to
35456// add HTTP headers to the request.
35457func (c *OrganizationsEnvironmentsResourcefilesGetCall) Header() http.Header {
35458	if c.header_ == nil {
35459		c.header_ = make(http.Header)
35460	}
35461	return c.header_
35462}
35463
35464func (c *OrganizationsEnvironmentsResourcefilesGetCall) doRequest(alt string) (*http.Response, error) {
35465	reqHeaders := make(http.Header)
35466	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
35467	for k, v := range c.header_ {
35468		reqHeaders[k] = v
35469	}
35470	reqHeaders.Set("User-Agent", c.s.userAgent())
35471	if c.ifNoneMatch_ != "" {
35472		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
35473	}
35474	var body io.Reader = nil
35475	c.urlParams_.Set("alt", alt)
35476	c.urlParams_.Set("prettyPrint", "false")
35477	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcefiles/{type}/{name}")
35478	urls += "?" + c.urlParams_.Encode()
35479	req, err := http.NewRequest("GET", urls, body)
35480	if err != nil {
35481		return nil, err
35482	}
35483	req.Header = reqHeaders
35484	googleapi.Expand(req.URL, map[string]string{
35485		"parent": c.parent,
35486		"type":   c.type_,
35487		"name":   c.name,
35488	})
35489	return gensupport.SendRequest(c.ctx_, c.s.client, req)
35490}
35491
35492// Do executes the "apigee.organizations.environments.resourcefiles.get" call.
35493// Exactly one of *GoogleApiHttpBody or error will be non-nil. Any
35494// non-2xx status code is an error. Response headers are in either
35495// *GoogleApiHttpBody.ServerResponse.Header or (if a response was
35496// returned at all) in error.(*googleapi.Error).Header. Use
35497// googleapi.IsNotModified to check whether the returned error was
35498// because http.StatusNotModified was returned.
35499func (c *OrganizationsEnvironmentsResourcefilesGetCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
35500	gensupport.SetOptions(c.urlParams_, opts...)
35501	res, err := c.doRequest("json")
35502	if res != nil && res.StatusCode == http.StatusNotModified {
35503		if res.Body != nil {
35504			res.Body.Close()
35505		}
35506		return nil, &googleapi.Error{
35507			Code:   res.StatusCode,
35508			Header: res.Header,
35509		}
35510	}
35511	if err != nil {
35512		return nil, err
35513	}
35514	defer googleapi.CloseBody(res)
35515	if err := googleapi.CheckResponse(res); err != nil {
35516		return nil, err
35517	}
35518	ret := &GoogleApiHttpBody{
35519		ServerResponse: googleapi.ServerResponse{
35520			Header:         res.Header,
35521			HTTPStatusCode: res.StatusCode,
35522		},
35523	}
35524	target := &ret
35525	if err := gensupport.DecodeResponse(target, res); err != nil {
35526		return nil, err
35527	}
35528	return ret, nil
35529	// {
35530	//   "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).",
35531	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/resourcefiles/{type}/{name}",
35532	//   "httpMethod": "GET",
35533	//   "id": "apigee.organizations.environments.resourcefiles.get",
35534	//   "parameterOrder": [
35535	//     "parent",
35536	//     "type",
35537	//     "name"
35538	//   ],
35539	//   "parameters": {
35540	//     "name": {
35541	//       "description": "Required. ID of the resource file. Must match the regular expression: [a-zA-Z0-9:/\\\\!@#$%^\u0026{}\\[\\]()+\\-=,.~'` ]{1,255}",
35542	//       "location": "path",
35543	//       "required": true,
35544	//       "type": "string"
35545	//     },
35546	//     "parent": {
35547	//       "description": "Required. Name of the environment in the following format: `organizations/{org}/environments/{env}`.",
35548	//       "location": "path",
35549	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
35550	//       "required": true,
35551	//       "type": "string"
35552	//     },
35553	//     "type": {
35554	//       "description": "Required. Resource file type. {{ resource_file_type }}",
35555	//       "location": "path",
35556	//       "required": true,
35557	//       "type": "string"
35558	//     }
35559	//   },
35560	//   "path": "v1/{+parent}/resourcefiles/{type}/{name}",
35561	//   "response": {
35562	//     "$ref": "GoogleApiHttpBody"
35563	//   },
35564	//   "scopes": [
35565	//     "https://www.googleapis.com/auth/cloud-platform"
35566	//   ]
35567	// }
35568
35569}
35570
35571// method id "apigee.organizations.environments.resourcefiles.list":
35572
35573type OrganizationsEnvironmentsResourcefilesListCall struct {
35574	s            *Service
35575	parent       string
35576	urlParams_   gensupport.URLParams
35577	ifNoneMatch_ string
35578	ctx_         context.Context
35579	header_      http.Header
35580}
35581
35582// List: Lists all resource files, optionally filtering by type. For
35583// more information about resource files, see Resource files
35584// (https://cloud.google.com/apigee/docs/api-platform/develop/resource-files).
35585//
35586// - parent: Name of the environment in which to list resource files in
35587//   the following format: `organizations/{org}/environments/{env}`.
35588func (r *OrganizationsEnvironmentsResourcefilesService) List(parent string) *OrganizationsEnvironmentsResourcefilesListCall {
35589	c := &OrganizationsEnvironmentsResourcefilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35590	c.parent = parent
35591	return c
35592}
35593
35594// Type sets the optional parameter "type": Type of resource files to
35595// list. {{ resource_file_type }}
35596func (c *OrganizationsEnvironmentsResourcefilesListCall) Type(type_ string) *OrganizationsEnvironmentsResourcefilesListCall {
35597	c.urlParams_.Set("type", type_)
35598	return c
35599}
35600
35601// Fields allows partial responses to be retrieved. See
35602// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
35603// for more information.
35604func (c *OrganizationsEnvironmentsResourcefilesListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesListCall {
35605	c.urlParams_.Set("fields", googleapi.CombineFields(s))
35606	return c
35607}
35608
35609// IfNoneMatch sets the optional parameter which makes the operation
35610// fail if the object's ETag matches the given value. This is useful for
35611// getting updates only after the object has changed since the last
35612// request. Use googleapi.IsNotModified to check whether the response
35613// error from Do is the result of In-None-Match.
35614func (c *OrganizationsEnvironmentsResourcefilesListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsResourcefilesListCall {
35615	c.ifNoneMatch_ = entityTag
35616	return c
35617}
35618
35619// Context sets the context to be used in this call's Do method. Any
35620// pending HTTP request will be aborted if the provided context is
35621// canceled.
35622func (c *OrganizationsEnvironmentsResourcefilesListCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesListCall {
35623	c.ctx_ = ctx
35624	return c
35625}
35626
35627// Header returns an http.Header that can be modified by the caller to
35628// add HTTP headers to the request.
35629func (c *OrganizationsEnvironmentsResourcefilesListCall) Header() http.Header {
35630	if c.header_ == nil {
35631		c.header_ = make(http.Header)
35632	}
35633	return c.header_
35634}
35635
35636func (c *OrganizationsEnvironmentsResourcefilesListCall) doRequest(alt string) (*http.Response, error) {
35637	reqHeaders := make(http.Header)
35638	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
35639	for k, v := range c.header_ {
35640		reqHeaders[k] = v
35641	}
35642	reqHeaders.Set("User-Agent", c.s.userAgent())
35643	if c.ifNoneMatch_ != "" {
35644		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
35645	}
35646	var body io.Reader = nil
35647	c.urlParams_.Set("alt", alt)
35648	c.urlParams_.Set("prettyPrint", "false")
35649	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcefiles")
35650	urls += "?" + c.urlParams_.Encode()
35651	req, err := http.NewRequest("GET", urls, body)
35652	if err != nil {
35653		return nil, err
35654	}
35655	req.Header = reqHeaders
35656	googleapi.Expand(req.URL, map[string]string{
35657		"parent": c.parent,
35658	})
35659	return gensupport.SendRequest(c.ctx_, c.s.client, req)
35660}
35661
35662// Do executes the "apigee.organizations.environments.resourcefiles.list" call.
35663// Exactly one of *GoogleCloudApigeeV1ListEnvironmentResourcesResponse
35664// or error will be non-nil. Any non-2xx status code is an error.
35665// Response headers are in either
35666// *GoogleCloudApigeeV1ListEnvironmentResourcesResponse.ServerResponse.He
35667// ader or (if a response was returned at all) in
35668// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
35669// whether the returned error was because http.StatusNotModified was
35670// returned.
35671func (c *OrganizationsEnvironmentsResourcefilesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListEnvironmentResourcesResponse, error) {
35672	gensupport.SetOptions(c.urlParams_, opts...)
35673	res, err := c.doRequest("json")
35674	if res != nil && res.StatusCode == http.StatusNotModified {
35675		if res.Body != nil {
35676			res.Body.Close()
35677		}
35678		return nil, &googleapi.Error{
35679			Code:   res.StatusCode,
35680			Header: res.Header,
35681		}
35682	}
35683	if err != nil {
35684		return nil, err
35685	}
35686	defer googleapi.CloseBody(res)
35687	if err := googleapi.CheckResponse(res); err != nil {
35688		return nil, err
35689	}
35690	ret := &GoogleCloudApigeeV1ListEnvironmentResourcesResponse{
35691		ServerResponse: googleapi.ServerResponse{
35692			Header:         res.Header,
35693			HTTPStatusCode: res.StatusCode,
35694		},
35695	}
35696	target := &ret
35697	if err := gensupport.DecodeResponse(target, res); err != nil {
35698		return nil, err
35699	}
35700	return ret, nil
35701	// {
35702	//   "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).",
35703	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/resourcefiles",
35704	//   "httpMethod": "GET",
35705	//   "id": "apigee.organizations.environments.resourcefiles.list",
35706	//   "parameterOrder": [
35707	//     "parent"
35708	//   ],
35709	//   "parameters": {
35710	//     "parent": {
35711	//       "description": "Required. Name of the environment in which to list resource files in the following format: `organizations/{org}/environments/{env}`.",
35712	//       "location": "path",
35713	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
35714	//       "required": true,
35715	//       "type": "string"
35716	//     },
35717	//     "type": {
35718	//       "description": "Optional. Type of resource files to list. {{ resource_file_type }}",
35719	//       "location": "query",
35720	//       "type": "string"
35721	//     }
35722	//   },
35723	//   "path": "v1/{+parent}/resourcefiles",
35724	//   "response": {
35725	//     "$ref": "GoogleCloudApigeeV1ListEnvironmentResourcesResponse"
35726	//   },
35727	//   "scopes": [
35728	//     "https://www.googleapis.com/auth/cloud-platform"
35729	//   ]
35730	// }
35731
35732}
35733
35734// method id "apigee.organizations.environments.resourcefiles.listEnvironmentResources":
35735
35736type OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall struct {
35737	s            *Service
35738	parent       string
35739	type_        string
35740	urlParams_   gensupport.URLParams
35741	ifNoneMatch_ string
35742	ctx_         context.Context
35743	header_      http.Header
35744}
35745
35746// ListEnvironmentResources: Lists all resource files, optionally
35747// filtering by type. For more information about resource files, see
35748// Resource files
35749// (https://cloud.google.com/apigee/docs/api-platform/develop/resource-files).
35750//
35751// - parent: Name of the environment in which to list resource files in
35752//   the following format: `organizations/{org}/environments/{env}`.
35753// - type: Optional. Type of resource files to list. {{
35754//   resource_file_type }}.
35755func (r *OrganizationsEnvironmentsResourcefilesService) ListEnvironmentResources(parent string, type_ string) *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall {
35756	c := &OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35757	c.parent = parent
35758	c.type_ = type_
35759	return c
35760}
35761
35762// Fields allows partial responses to be retrieved. See
35763// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
35764// for more information.
35765func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall {
35766	c.urlParams_.Set("fields", googleapi.CombineFields(s))
35767	return c
35768}
35769
35770// IfNoneMatch sets the optional parameter which makes the operation
35771// fail if the object's ETag matches the given value. This is useful for
35772// getting updates only after the object has changed since the last
35773// request. Use googleapi.IsNotModified to check whether the response
35774// error from Do is the result of In-None-Match.
35775func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall {
35776	c.ifNoneMatch_ = entityTag
35777	return c
35778}
35779
35780// Context sets the context to be used in this call's Do method. Any
35781// pending HTTP request will be aborted if the provided context is
35782// canceled.
35783func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall {
35784	c.ctx_ = ctx
35785	return c
35786}
35787
35788// Header returns an http.Header that can be modified by the caller to
35789// add HTTP headers to the request.
35790func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) Header() http.Header {
35791	if c.header_ == nil {
35792		c.header_ = make(http.Header)
35793	}
35794	return c.header_
35795}
35796
35797func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) doRequest(alt string) (*http.Response, error) {
35798	reqHeaders := make(http.Header)
35799	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
35800	for k, v := range c.header_ {
35801		reqHeaders[k] = v
35802	}
35803	reqHeaders.Set("User-Agent", c.s.userAgent())
35804	if c.ifNoneMatch_ != "" {
35805		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
35806	}
35807	var body io.Reader = nil
35808	c.urlParams_.Set("alt", alt)
35809	c.urlParams_.Set("prettyPrint", "false")
35810	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcefiles/{type}")
35811	urls += "?" + c.urlParams_.Encode()
35812	req, err := http.NewRequest("GET", urls, body)
35813	if err != nil {
35814		return nil, err
35815	}
35816	req.Header = reqHeaders
35817	googleapi.Expand(req.URL, map[string]string{
35818		"parent": c.parent,
35819		"type":   c.type_,
35820	})
35821	return gensupport.SendRequest(c.ctx_, c.s.client, req)
35822}
35823
35824// Do executes the "apigee.organizations.environments.resourcefiles.listEnvironmentResources" call.
35825// Exactly one of *GoogleCloudApigeeV1ListEnvironmentResourcesResponse
35826// or error will be non-nil. Any non-2xx status code is an error.
35827// Response headers are in either
35828// *GoogleCloudApigeeV1ListEnvironmentResourcesResponse.ServerResponse.He
35829// ader or (if a response was returned at all) in
35830// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
35831// whether the returned error was because http.StatusNotModified was
35832// returned.
35833func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListEnvironmentResourcesResponse, error) {
35834	gensupport.SetOptions(c.urlParams_, opts...)
35835	res, err := c.doRequest("json")
35836	if res != nil && res.StatusCode == http.StatusNotModified {
35837		if res.Body != nil {
35838			res.Body.Close()
35839		}
35840		return nil, &googleapi.Error{
35841			Code:   res.StatusCode,
35842			Header: res.Header,
35843		}
35844	}
35845	if err != nil {
35846		return nil, err
35847	}
35848	defer googleapi.CloseBody(res)
35849	if err := googleapi.CheckResponse(res); err != nil {
35850		return nil, err
35851	}
35852	ret := &GoogleCloudApigeeV1ListEnvironmentResourcesResponse{
35853		ServerResponse: googleapi.ServerResponse{
35854			Header:         res.Header,
35855			HTTPStatusCode: res.StatusCode,
35856		},
35857	}
35858	target := &ret
35859	if err := gensupport.DecodeResponse(target, res); err != nil {
35860		return nil, err
35861	}
35862	return ret, nil
35863	// {
35864	//   "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).",
35865	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/resourcefiles/{type}",
35866	//   "httpMethod": "GET",
35867	//   "id": "apigee.organizations.environments.resourcefiles.listEnvironmentResources",
35868	//   "parameterOrder": [
35869	//     "parent",
35870	//     "type"
35871	//   ],
35872	//   "parameters": {
35873	//     "parent": {
35874	//       "description": "Required. Name of the environment in which to list resource files in the following format: `organizations/{org}/environments/{env}`.",
35875	//       "location": "path",
35876	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
35877	//       "required": true,
35878	//       "type": "string"
35879	//     },
35880	//     "type": {
35881	//       "description": "Optional. Type of resource files to list. {{ resource_file_type }}",
35882	//       "location": "path",
35883	//       "required": true,
35884	//       "type": "string"
35885	//     }
35886	//   },
35887	//   "path": "v1/{+parent}/resourcefiles/{type}",
35888	//   "response": {
35889	//     "$ref": "GoogleCloudApigeeV1ListEnvironmentResourcesResponse"
35890	//   },
35891	//   "scopes": [
35892	//     "https://www.googleapis.com/auth/cloud-platform"
35893	//   ]
35894	// }
35895
35896}
35897
35898// method id "apigee.organizations.environments.resourcefiles.update":
35899
35900type OrganizationsEnvironmentsResourcefilesUpdateCall struct {
35901	s                 *Service
35902	parent            string
35903	type_             string
35904	name              string
35905	googleapihttpbody *GoogleApiHttpBody
35906	urlParams_        gensupport.URLParams
35907	ctx_              context.Context
35908	header_           http.Header
35909}
35910
35911// Update: Updates a resource file. Specify the `Content-Type` as
35912// `application/octet-stream` or `multipart/form-data`. For more
35913// information about resource files, see Resource files
35914// (https://cloud.google.com/apigee/docs/api-platform/develop/resource-files).
35915//
35916// - name: ID of the resource file to update. Must match the regular
35917//   expression: [a-zA-Z0-9:/\\!@#$%^&{}\\ ()+\-=,.~'` ]{1,255}.
35918// - parent: Name of the environment in the following format:
35919//   `organizations/{org}/environments/{env}`.
35920// - type: Resource file type. {{ resource_file_type }}.
35921func (r *OrganizationsEnvironmentsResourcefilesService) Update(parent string, type_ string, name string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsEnvironmentsResourcefilesUpdateCall {
35922	c := &OrganizationsEnvironmentsResourcefilesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35923	c.parent = parent
35924	c.type_ = type_
35925	c.name = name
35926	c.googleapihttpbody = googleapihttpbody
35927	return c
35928}
35929
35930// Fields allows partial responses to be retrieved. See
35931// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
35932// for more information.
35933func (c *OrganizationsEnvironmentsResourcefilesUpdateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesUpdateCall {
35934	c.urlParams_.Set("fields", googleapi.CombineFields(s))
35935	return c
35936}
35937
35938// Context sets the context to be used in this call's Do method. Any
35939// pending HTTP request will be aborted if the provided context is
35940// canceled.
35941func (c *OrganizationsEnvironmentsResourcefilesUpdateCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesUpdateCall {
35942	c.ctx_ = ctx
35943	return c
35944}
35945
35946// Header returns an http.Header that can be modified by the caller to
35947// add HTTP headers to the request.
35948func (c *OrganizationsEnvironmentsResourcefilesUpdateCall) Header() http.Header {
35949	if c.header_ == nil {
35950		c.header_ = make(http.Header)
35951	}
35952	return c.header_
35953}
35954
35955func (c *OrganizationsEnvironmentsResourcefilesUpdateCall) doRequest(alt string) (*http.Response, error) {
35956	reqHeaders := make(http.Header)
35957	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
35958	for k, v := range c.header_ {
35959		reqHeaders[k] = v
35960	}
35961	reqHeaders.Set("User-Agent", c.s.userAgent())
35962	var body io.Reader = nil
35963	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
35964	if err != nil {
35965		return nil, err
35966	}
35967	reqHeaders.Set("Content-Type", "application/json")
35968	c.urlParams_.Set("alt", alt)
35969	c.urlParams_.Set("prettyPrint", "false")
35970	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcefiles/{type}/{name}")
35971	urls += "?" + c.urlParams_.Encode()
35972	req, err := http.NewRequest("PUT", urls, body)
35973	if err != nil {
35974		return nil, err
35975	}
35976	req.Header = reqHeaders
35977	googleapi.Expand(req.URL, map[string]string{
35978		"parent": c.parent,
35979		"type":   c.type_,
35980		"name":   c.name,
35981	})
35982	return gensupport.SendRequest(c.ctx_, c.s.client, req)
35983}
35984
35985// Do executes the "apigee.organizations.environments.resourcefiles.update" call.
35986// Exactly one of *GoogleCloudApigeeV1ResourceFile or error will be
35987// non-nil. Any non-2xx status code is an error. Response headers are in
35988// either *GoogleCloudApigeeV1ResourceFile.ServerResponse.Header or (if
35989// a response was returned at all) in error.(*googleapi.Error).Header.
35990// Use googleapi.IsNotModified to check whether the returned error was
35991// because http.StatusNotModified was returned.
35992func (c *OrganizationsEnvironmentsResourcefilesUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ResourceFile, error) {
35993	gensupport.SetOptions(c.urlParams_, opts...)
35994	res, err := c.doRequest("json")
35995	if res != nil && res.StatusCode == http.StatusNotModified {
35996		if res.Body != nil {
35997			res.Body.Close()
35998		}
35999		return nil, &googleapi.Error{
36000			Code:   res.StatusCode,
36001			Header: res.Header,
36002		}
36003	}
36004	if err != nil {
36005		return nil, err
36006	}
36007	defer googleapi.CloseBody(res)
36008	if err := googleapi.CheckResponse(res); err != nil {
36009		return nil, err
36010	}
36011	ret := &GoogleCloudApigeeV1ResourceFile{
36012		ServerResponse: googleapi.ServerResponse{
36013			Header:         res.Header,
36014			HTTPStatusCode: res.StatusCode,
36015		},
36016	}
36017	target := &ret
36018	if err := gensupport.DecodeResponse(target, res); err != nil {
36019		return nil, err
36020	}
36021	return ret, nil
36022	// {
36023	//   "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).",
36024	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/resourcefiles/{type}/{name}",
36025	//   "httpMethod": "PUT",
36026	//   "id": "apigee.organizations.environments.resourcefiles.update",
36027	//   "parameterOrder": [
36028	//     "parent",
36029	//     "type",
36030	//     "name"
36031	//   ],
36032	//   "parameters": {
36033	//     "name": {
36034	//       "description": "Required. ID of the resource file to update. Must match the regular expression: [a-zA-Z0-9:/\\\\!@#$%^\u0026{}\\[\\]()+\\-=,.~'` ]{1,255}",
36035	//       "location": "path",
36036	//       "required": true,
36037	//       "type": "string"
36038	//     },
36039	//     "parent": {
36040	//       "description": "Required. Name of the environment in the following format: `organizations/{org}/environments/{env}`.",
36041	//       "location": "path",
36042	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
36043	//       "required": true,
36044	//       "type": "string"
36045	//     },
36046	//     "type": {
36047	//       "description": "Required. Resource file type. {{ resource_file_type }}",
36048	//       "location": "path",
36049	//       "required": true,
36050	//       "type": "string"
36051	//     }
36052	//   },
36053	//   "path": "v1/{+parent}/resourcefiles/{type}/{name}",
36054	//   "request": {
36055	//     "$ref": "GoogleApiHttpBody"
36056	//   },
36057	//   "response": {
36058	//     "$ref": "GoogleCloudApigeeV1ResourceFile"
36059	//   },
36060	//   "scopes": [
36061	//     "https://www.googleapis.com/auth/cloud-platform"
36062	//   ]
36063	// }
36064
36065}
36066
36067// method id "apigee.organizations.environments.sharedflows.deployments.list":
36068
36069type OrganizationsEnvironmentsSharedflowsDeploymentsListCall struct {
36070	s            *Service
36071	parent       string
36072	urlParams_   gensupport.URLParams
36073	ifNoneMatch_ string
36074	ctx_         context.Context
36075	header_      http.Header
36076}
36077
36078// List: Lists all deployments of a shared flow in an environment.
36079//
36080// - parent: Name representing a shared flow in an environment in the
36081//   following format:
36082//   `organizations/{org}/environments/{env}/sharedflows/{sharedflow}`.
36083func (r *OrganizationsEnvironmentsSharedflowsDeploymentsService) List(parent string) *OrganizationsEnvironmentsSharedflowsDeploymentsListCall {
36084	c := &OrganizationsEnvironmentsSharedflowsDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36085	c.parent = parent
36086	return c
36087}
36088
36089// Fields allows partial responses to be retrieved. See
36090// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
36091// for more information.
36092func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSharedflowsDeploymentsListCall {
36093	c.urlParams_.Set("fields", googleapi.CombineFields(s))
36094	return c
36095}
36096
36097// IfNoneMatch sets the optional parameter which makes the operation
36098// fail if the object's ETag matches the given value. This is useful for
36099// getting updates only after the object has changed since the last
36100// request. Use googleapi.IsNotModified to check whether the response
36101// error from Do is the result of In-None-Match.
36102func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsSharedflowsDeploymentsListCall {
36103	c.ifNoneMatch_ = entityTag
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 *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsSharedflowsDeploymentsListCall {
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 *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) Header() http.Header {
36118	if c.header_ == nil {
36119		c.header_ = make(http.Header)
36120	}
36121	return c.header_
36122}
36123
36124func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
36125	reqHeaders := make(http.Header)
36126	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
36127	for k, v := range c.header_ {
36128		reqHeaders[k] = v
36129	}
36130	reqHeaders.Set("User-Agent", c.s.userAgent())
36131	if c.ifNoneMatch_ != "" {
36132		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
36133	}
36134	var body io.Reader = nil
36135	c.urlParams_.Set("alt", alt)
36136	c.urlParams_.Set("prettyPrint", "false")
36137	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
36138	urls += "?" + c.urlParams_.Encode()
36139	req, err := http.NewRequest("GET", urls, body)
36140	if err != nil {
36141		return nil, err
36142	}
36143	req.Header = reqHeaders
36144	googleapi.Expand(req.URL, map[string]string{
36145		"parent": c.parent,
36146	})
36147	return gensupport.SendRequest(c.ctx_, c.s.client, req)
36148}
36149
36150// Do executes the "apigee.organizations.environments.sharedflows.deployments.list" call.
36151// Exactly one of *GoogleCloudApigeeV1ListDeploymentsResponse or error
36152// will be non-nil. Any non-2xx status code is an error. Response
36153// headers are in either
36154// *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or
36155// (if a response was returned at all) in
36156// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
36157// whether the returned error was because http.StatusNotModified was
36158// returned.
36159func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
36160	gensupport.SetOptions(c.urlParams_, opts...)
36161	res, err := c.doRequest("json")
36162	if res != nil && res.StatusCode == http.StatusNotModified {
36163		if res.Body != nil {
36164			res.Body.Close()
36165		}
36166		return nil, &googleapi.Error{
36167			Code:   res.StatusCode,
36168			Header: res.Header,
36169		}
36170	}
36171	if err != nil {
36172		return nil, err
36173	}
36174	defer googleapi.CloseBody(res)
36175	if err := googleapi.CheckResponse(res); err != nil {
36176		return nil, err
36177	}
36178	ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
36179		ServerResponse: googleapi.ServerResponse{
36180			Header:         res.Header,
36181			HTTPStatusCode: res.StatusCode,
36182		},
36183	}
36184	target := &ret
36185	if err := gensupport.DecodeResponse(target, res); err != nil {
36186		return nil, err
36187	}
36188	return ret, nil
36189	// {
36190	//   "description": "Lists all deployments of a shared flow in an environment.",
36191	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/sharedflows/{sharedflowsId}/deployments",
36192	//   "httpMethod": "GET",
36193	//   "id": "apigee.organizations.environments.sharedflows.deployments.list",
36194	//   "parameterOrder": [
36195	//     "parent"
36196	//   ],
36197	//   "parameters": {
36198	//     "parent": {
36199	//       "description": "Required. Name representing a shared flow in an environment in the following format: `organizations/{org}/environments/{env}/sharedflows/{sharedflow}`",
36200	//       "location": "path",
36201	//       "pattern": "^organizations/[^/]+/environments/[^/]+/sharedflows/[^/]+$",
36202	//       "required": true,
36203	//       "type": "string"
36204	//     }
36205	//   },
36206	//   "path": "v1/{+parent}/deployments",
36207	//   "response": {
36208	//     "$ref": "GoogleCloudApigeeV1ListDeploymentsResponse"
36209	//   },
36210	//   "scopes": [
36211	//     "https://www.googleapis.com/auth/cloud-platform"
36212	//   ]
36213	// }
36214
36215}
36216
36217// method id "apigee.organizations.environments.sharedflows.revisions.deploy":
36218
36219type OrganizationsEnvironmentsSharedflowsRevisionsDeployCall struct {
36220	s          *Service
36221	name       string
36222	urlParams_ gensupport.URLParams
36223	ctx_       context.Context
36224	header_    http.Header
36225}
36226
36227// Deploy: Deploys a revision of a shared flow. If another revision of
36228// the same shared flow is currently deployed, set the `override`
36229// parameter to `true` to have this revision replace the currently
36230// deployed revision. You cannot use a shared flow until it has been
36231// deployed to an environment. For a request path
36232// `organizations/{org}/environments/{env}/sharedflows/{sf}/revisions/{re
36233// v}/deployments`, two permissions are required: *
36234// `apigee.deployments.create` on the resource
36235// `organizations/{org}/environments/{env}` *
36236// `apigee.sharedflowrevisions.deploy` on the resource
36237// `organizations/{org}/sharedflows/{sf}/revisions/{rev}`
36238//
36239// - name: Name of the shared flow revision to deploy in the following
36240//   format:
36241//   `organizations/{org}/environments/{env}/sharedflows/{sharedflow}/rev
36242//   isions/{rev}`.
36243func (r *OrganizationsEnvironmentsSharedflowsRevisionsService) Deploy(name string) *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall {
36244	c := &OrganizationsEnvironmentsSharedflowsRevisionsDeployCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36245	c.name = name
36246	return c
36247}
36248
36249// Override sets the optional parameter "override": Flag that specifies
36250// whether the new deployment replaces other deployed revisions of the
36251// shared flow in the environment. Set `override` to `true` to replace
36252// other deployed revisions. By default, `override` is `false` and the
36253// deployment is rejected if other revisions of the shared flow are
36254// deployed in the environment.
36255func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) Override(override bool) *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall {
36256	c.urlParams_.Set("override", fmt.Sprint(override))
36257	return c
36258}
36259
36260// ServiceAccount sets the optional parameter "serviceAccount": Google
36261// Cloud IAM service account. The service account represents the
36262// identity of the deployed proxy, and determines what permissions it
36263// has. The format must be
36264// `{ACCOUNT_ID}@{PROJECT}.iam.gserviceaccount.com`.
36265func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) ServiceAccount(serviceAccount string) *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall {
36266	c.urlParams_.Set("serviceAccount", serviceAccount)
36267	return c
36268}
36269
36270// Fields allows partial responses to be retrieved. See
36271// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
36272// for more information.
36273func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall {
36274	c.urlParams_.Set("fields", googleapi.CombineFields(s))
36275	return c
36276}
36277
36278// Context sets the context to be used in this call's Do method. Any
36279// pending HTTP request will be aborted if the provided context is
36280// canceled.
36281func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) Context(ctx context.Context) *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall {
36282	c.ctx_ = ctx
36283	return c
36284}
36285
36286// Header returns an http.Header that can be modified by the caller to
36287// add HTTP headers to the request.
36288func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) Header() http.Header {
36289	if c.header_ == nil {
36290		c.header_ = make(http.Header)
36291	}
36292	return c.header_
36293}
36294
36295func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) doRequest(alt string) (*http.Response, error) {
36296	reqHeaders := make(http.Header)
36297	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
36298	for k, v := range c.header_ {
36299		reqHeaders[k] = v
36300	}
36301	reqHeaders.Set("User-Agent", c.s.userAgent())
36302	var body io.Reader = nil
36303	c.urlParams_.Set("alt", alt)
36304	c.urlParams_.Set("prettyPrint", "false")
36305	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments")
36306	urls += "?" + c.urlParams_.Encode()
36307	req, err := http.NewRequest("POST", urls, body)
36308	if err != nil {
36309		return nil, err
36310	}
36311	req.Header = reqHeaders
36312	googleapi.Expand(req.URL, map[string]string{
36313		"name": c.name,
36314	})
36315	return gensupport.SendRequest(c.ctx_, c.s.client, req)
36316}
36317
36318// Do executes the "apigee.organizations.environments.sharedflows.revisions.deploy" call.
36319// Exactly one of *GoogleCloudApigeeV1Deployment or error will be
36320// non-nil. Any non-2xx status code is an error. Response headers are in
36321// either *GoogleCloudApigeeV1Deployment.ServerResponse.Header or (if a
36322// response was returned at all) in error.(*googleapi.Error).Header. Use
36323// googleapi.IsNotModified to check whether the returned error was
36324// because http.StatusNotModified was returned.
36325func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Deployment, error) {
36326	gensupport.SetOptions(c.urlParams_, opts...)
36327	res, err := c.doRequest("json")
36328	if res != nil && res.StatusCode == http.StatusNotModified {
36329		if res.Body != nil {
36330			res.Body.Close()
36331		}
36332		return nil, &googleapi.Error{
36333			Code:   res.StatusCode,
36334			Header: res.Header,
36335		}
36336	}
36337	if err != nil {
36338		return nil, err
36339	}
36340	defer googleapi.CloseBody(res)
36341	if err := googleapi.CheckResponse(res); err != nil {
36342		return nil, err
36343	}
36344	ret := &GoogleCloudApigeeV1Deployment{
36345		ServerResponse: googleapi.ServerResponse{
36346			Header:         res.Header,
36347			HTTPStatusCode: res.StatusCode,
36348		},
36349	}
36350	target := &ret
36351	if err := gensupport.DecodeResponse(target, res); err != nil {
36352		return nil, err
36353	}
36354	return ret, nil
36355	// {
36356	//   "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}`",
36357	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/sharedflows/{sharedflowsId}/revisions/{revisionsId}/deployments",
36358	//   "httpMethod": "POST",
36359	//   "id": "apigee.organizations.environments.sharedflows.revisions.deploy",
36360	//   "parameterOrder": [
36361	//     "name"
36362	//   ],
36363	//   "parameters": {
36364	//     "name": {
36365	//       "description": "Required. Name of the shared flow revision to deploy in the following format: `organizations/{org}/environments/{env}/sharedflows/{sharedflow}/revisions/{rev}`",
36366	//       "location": "path",
36367	//       "pattern": "^organizations/[^/]+/environments/[^/]+/sharedflows/[^/]+/revisions/[^/]+$",
36368	//       "required": true,
36369	//       "type": "string"
36370	//     },
36371	//     "override": {
36372	//       "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.",
36373	//       "location": "query",
36374	//       "type": "boolean"
36375	//     },
36376	//     "serviceAccount": {
36377	//       "description": "Google Cloud IAM service account. The service account represents the identity of the deployed proxy, and determines what permissions it has. The format must be `{ACCOUNT_ID}@{PROJECT}.iam.gserviceaccount.com`.",
36378	//       "location": "query",
36379	//       "type": "string"
36380	//     }
36381	//   },
36382	//   "path": "v1/{+name}/deployments",
36383	//   "response": {
36384	//     "$ref": "GoogleCloudApigeeV1Deployment"
36385	//   },
36386	//   "scopes": [
36387	//     "https://www.googleapis.com/auth/cloud-platform"
36388	//   ]
36389	// }
36390
36391}
36392
36393// method id "apigee.organizations.environments.sharedflows.revisions.getDeployments":
36394
36395type OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall struct {
36396	s            *Service
36397	name         string
36398	urlParams_   gensupport.URLParams
36399	ifNoneMatch_ string
36400	ctx_         context.Context
36401	header_      http.Header
36402}
36403
36404// GetDeployments: Gets the deployment of a shared flow revision and
36405// actual state reported by runtime pods.
36406//
36407// - name: Name representing a shared flow in an environment in the
36408//   following format:
36409//   `organizations/{org}/environments/{env}/sharedflows/{sharedflow}/rev
36410//   isions/{rev}`.
36411func (r *OrganizationsEnvironmentsSharedflowsRevisionsService) GetDeployments(name string) *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall {
36412	c := &OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36413	c.name = name
36414	return c
36415}
36416
36417// Fields allows partial responses to be retrieved. See
36418// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
36419// for more information.
36420func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall {
36421	c.urlParams_.Set("fields", googleapi.CombineFields(s))
36422	return c
36423}
36424
36425// IfNoneMatch sets the optional parameter which makes the operation
36426// fail if the object's ETag matches the given value. This is useful for
36427// getting updates only after the object has changed since the last
36428// request. Use googleapi.IsNotModified to check whether the response
36429// error from Do is the result of In-None-Match.
36430func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall {
36431	c.ifNoneMatch_ = entityTag
36432	return c
36433}
36434
36435// Context sets the context to be used in this call's Do method. Any
36436// pending HTTP request will be aborted if the provided context is
36437// canceled.
36438func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) Context(ctx context.Context) *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall {
36439	c.ctx_ = ctx
36440	return c
36441}
36442
36443// Header returns an http.Header that can be modified by the caller to
36444// add HTTP headers to the request.
36445func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) Header() http.Header {
36446	if c.header_ == nil {
36447		c.header_ = make(http.Header)
36448	}
36449	return c.header_
36450}
36451
36452func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) doRequest(alt string) (*http.Response, error) {
36453	reqHeaders := make(http.Header)
36454	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
36455	for k, v := range c.header_ {
36456		reqHeaders[k] = v
36457	}
36458	reqHeaders.Set("User-Agent", c.s.userAgent())
36459	if c.ifNoneMatch_ != "" {
36460		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
36461	}
36462	var body io.Reader = nil
36463	c.urlParams_.Set("alt", alt)
36464	c.urlParams_.Set("prettyPrint", "false")
36465	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments")
36466	urls += "?" + c.urlParams_.Encode()
36467	req, err := http.NewRequest("GET", urls, body)
36468	if err != nil {
36469		return nil, err
36470	}
36471	req.Header = reqHeaders
36472	googleapi.Expand(req.URL, map[string]string{
36473		"name": c.name,
36474	})
36475	return gensupport.SendRequest(c.ctx_, c.s.client, req)
36476}
36477
36478// Do executes the "apigee.organizations.environments.sharedflows.revisions.getDeployments" call.
36479// Exactly one of *GoogleCloudApigeeV1Deployment or error will be
36480// non-nil. Any non-2xx status code is an error. Response headers are in
36481// either *GoogleCloudApigeeV1Deployment.ServerResponse.Header or (if a
36482// response was returned at all) in error.(*googleapi.Error).Header. Use
36483// googleapi.IsNotModified to check whether the returned error was
36484// because http.StatusNotModified was returned.
36485func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Deployment, error) {
36486	gensupport.SetOptions(c.urlParams_, opts...)
36487	res, err := c.doRequest("json")
36488	if res != nil && res.StatusCode == http.StatusNotModified {
36489		if res.Body != nil {
36490			res.Body.Close()
36491		}
36492		return nil, &googleapi.Error{
36493			Code:   res.StatusCode,
36494			Header: res.Header,
36495		}
36496	}
36497	if err != nil {
36498		return nil, err
36499	}
36500	defer googleapi.CloseBody(res)
36501	if err := googleapi.CheckResponse(res); err != nil {
36502		return nil, err
36503	}
36504	ret := &GoogleCloudApigeeV1Deployment{
36505		ServerResponse: googleapi.ServerResponse{
36506			Header:         res.Header,
36507			HTTPStatusCode: res.StatusCode,
36508		},
36509	}
36510	target := &ret
36511	if err := gensupport.DecodeResponse(target, res); err != nil {
36512		return nil, err
36513	}
36514	return ret, nil
36515	// {
36516	//   "description": "Gets the deployment of a shared flow revision and actual state reported by runtime pods.",
36517	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/sharedflows/{sharedflowsId}/revisions/{revisionsId}/deployments",
36518	//   "httpMethod": "GET",
36519	//   "id": "apigee.organizations.environments.sharedflows.revisions.getDeployments",
36520	//   "parameterOrder": [
36521	//     "name"
36522	//   ],
36523	//   "parameters": {
36524	//     "name": {
36525	//       "description": "Required. Name representing a shared flow in an environment in the following format: `organizations/{org}/environments/{env}/sharedflows/{sharedflow}/revisions/{rev}`",
36526	//       "location": "path",
36527	//       "pattern": "^organizations/[^/]+/environments/[^/]+/sharedflows/[^/]+/revisions/[^/]+$",
36528	//       "required": true,
36529	//       "type": "string"
36530	//     }
36531	//   },
36532	//   "path": "v1/{+name}/deployments",
36533	//   "response": {
36534	//     "$ref": "GoogleCloudApigeeV1Deployment"
36535	//   },
36536	//   "scopes": [
36537	//     "https://www.googleapis.com/auth/cloud-platform"
36538	//   ]
36539	// }
36540
36541}
36542
36543// method id "apigee.organizations.environments.sharedflows.revisions.undeploy":
36544
36545type OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall struct {
36546	s          *Service
36547	name       string
36548	urlParams_ gensupport.URLParams
36549	ctx_       context.Context
36550	header_    http.Header
36551}
36552
36553// Undeploy: Undeploys a shared flow revision from an environment. For a
36554// request path
36555// `organizations/{org}/environments/{env}/sharedflows/{sf}/revisions/{re
36556// v}/deployments`, two permissions are required: *
36557// `apigee.deployments.delete` on the resource
36558// `organizations/{org}/environments/{env}` *
36559// `apigee.sharedflowrevisions.undeploy` on the resource
36560// `organizations/{org}/sharedflows/{sf}/revisions/{rev}`
36561//
36562// - name: Name of the shared flow revision to undeploy in the following
36563//   format:
36564//   `organizations/{org}/environments/{env}/sharedflows/{sharedflow}/rev
36565//   isions/{rev}`.
36566func (r *OrganizationsEnvironmentsSharedflowsRevisionsService) Undeploy(name string) *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall {
36567	c := &OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36568	c.name = name
36569	return c
36570}
36571
36572// Fields allows partial responses to be retrieved. See
36573// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
36574// for more information.
36575func (c *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall {
36576	c.urlParams_.Set("fields", googleapi.CombineFields(s))
36577	return c
36578}
36579
36580// Context sets the context to be used in this call's Do method. Any
36581// pending HTTP request will be aborted if the provided context is
36582// canceled.
36583func (c *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall) Context(ctx context.Context) *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall {
36584	c.ctx_ = ctx
36585	return c
36586}
36587
36588// Header returns an http.Header that can be modified by the caller to
36589// add HTTP headers to the request.
36590func (c *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall) Header() http.Header {
36591	if c.header_ == nil {
36592		c.header_ = make(http.Header)
36593	}
36594	return c.header_
36595}
36596
36597func (c *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall) doRequest(alt string) (*http.Response, error) {
36598	reqHeaders := make(http.Header)
36599	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
36600	for k, v := range c.header_ {
36601		reqHeaders[k] = v
36602	}
36603	reqHeaders.Set("User-Agent", c.s.userAgent())
36604	var body io.Reader = nil
36605	c.urlParams_.Set("alt", alt)
36606	c.urlParams_.Set("prettyPrint", "false")
36607	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments")
36608	urls += "?" + c.urlParams_.Encode()
36609	req, err := http.NewRequest("DELETE", urls, body)
36610	if err != nil {
36611		return nil, err
36612	}
36613	req.Header = reqHeaders
36614	googleapi.Expand(req.URL, map[string]string{
36615		"name": c.name,
36616	})
36617	return gensupport.SendRequest(c.ctx_, c.s.client, req)
36618}
36619
36620// Do executes the "apigee.organizations.environments.sharedflows.revisions.undeploy" call.
36621// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
36622// non-2xx status code is an error. Response headers are in either
36623// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
36624// returned at all) in error.(*googleapi.Error).Header. Use
36625// googleapi.IsNotModified to check whether the returned error was
36626// because http.StatusNotModified was returned.
36627func (c *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
36628	gensupport.SetOptions(c.urlParams_, opts...)
36629	res, err := c.doRequest("json")
36630	if res != nil && res.StatusCode == http.StatusNotModified {
36631		if res.Body != nil {
36632			res.Body.Close()
36633		}
36634		return nil, &googleapi.Error{
36635			Code:   res.StatusCode,
36636			Header: res.Header,
36637		}
36638	}
36639	if err != nil {
36640		return nil, err
36641	}
36642	defer googleapi.CloseBody(res)
36643	if err := googleapi.CheckResponse(res); err != nil {
36644		return nil, err
36645	}
36646	ret := &GoogleProtobufEmpty{
36647		ServerResponse: googleapi.ServerResponse{
36648			Header:         res.Header,
36649			HTTPStatusCode: res.StatusCode,
36650		},
36651	}
36652	target := &ret
36653	if err := gensupport.DecodeResponse(target, res); err != nil {
36654		return nil, err
36655	}
36656	return ret, nil
36657	// {
36658	//   "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}`",
36659	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/sharedflows/{sharedflowsId}/revisions/{revisionsId}/deployments",
36660	//   "httpMethod": "DELETE",
36661	//   "id": "apigee.organizations.environments.sharedflows.revisions.undeploy",
36662	//   "parameterOrder": [
36663	//     "name"
36664	//   ],
36665	//   "parameters": {
36666	//     "name": {
36667	//       "description": "Required. Name of the shared flow revision to undeploy in the following format: `organizations/{org}/environments/{env}/sharedflows/{sharedflow}/revisions/{rev}`",
36668	//       "location": "path",
36669	//       "pattern": "^organizations/[^/]+/environments/[^/]+/sharedflows/[^/]+/revisions/[^/]+$",
36670	//       "required": true,
36671	//       "type": "string"
36672	//     }
36673	//   },
36674	//   "path": "v1/{+name}/deployments",
36675	//   "response": {
36676	//     "$ref": "GoogleProtobufEmpty"
36677	//   },
36678	//   "scopes": [
36679	//     "https://www.googleapis.com/auth/cloud-platform"
36680	//   ]
36681	// }
36682
36683}
36684
36685// method id "apigee.organizations.environments.stats.get":
36686
36687type OrganizationsEnvironmentsStatsGetCall struct {
36688	s            *Service
36689	name         string
36690	urlParams_   gensupport.URLParams
36691	ifNoneMatch_ string
36692	ctx_         context.Context
36693	header_      http.Header
36694}
36695
36696// Get: Retrieve metrics grouped by dimensions. The types of metrics you
36697// can retrieve include traffic, message counts, API call latency,
36698// response size, and cache hits and counts. Dimensions let you view
36699// metrics in meaningful groups. The stats api does accept dimensions as
36700// path params. The dimensions are optional in which case the metrics
36701// are computed on the entire data for the given timerange.
36702//
36703// - name: The resource name for which the interactive query will be
36704//   executed. Must be of the form
36705//   `organizations/{organization_id}/environments/{environment_id/stats/
36706//   {dimensions}` Dimensions let you view metrics in meaningful
36707//   groupings. E.g. apiproxy, target_host. The value of dimensions
36708//   should be comma separated list as shown below
36709//   `organizations/{org}/environments/{env}/stats/apiproxy,request_verb`.
36710func (r *OrganizationsEnvironmentsStatsService) Get(name string) *OrganizationsEnvironmentsStatsGetCall {
36711	c := &OrganizationsEnvironmentsStatsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36712	c.name = name
36713	return c
36714}
36715
36716// Accuracy sets the optional parameter "accuracy": Legacy field: not
36717// used anymore. This field is present to support UI calls which still
36718// use this parameter.
36719func (c *OrganizationsEnvironmentsStatsGetCall) Accuracy(accuracy string) *OrganizationsEnvironmentsStatsGetCall {
36720	c.urlParams_.Set("accuracy", accuracy)
36721	return c
36722}
36723
36724// AggTable sets the optional parameter "aggTable": If customers want to
36725// query custom aggregate tables, then this parameter can be used to
36726// specify the table name. If this parameter is skipped, then Edge Query
36727// will try to retrieve the data from fact tables which will be
36728// expensive.
36729func (c *OrganizationsEnvironmentsStatsGetCall) AggTable(aggTable string) *OrganizationsEnvironmentsStatsGetCall {
36730	c.urlParams_.Set("aggTable", aggTable)
36731	return c
36732}
36733
36734// Filter sets the optional parameter "filter": Enables drill-down on
36735// specific dimension values
36736func (c *OrganizationsEnvironmentsStatsGetCall) Filter(filter string) *OrganizationsEnvironmentsStatsGetCall {
36737	c.urlParams_.Set("filter", filter)
36738	return c
36739}
36740
36741// Limit sets the optional parameter "limit": This parameter is used to
36742// limit the number of result items. Default and the max value is 14400.
36743func (c *OrganizationsEnvironmentsStatsGetCall) Limit(limit string) *OrganizationsEnvironmentsStatsGetCall {
36744	c.urlParams_.Set("limit", limit)
36745	return c
36746}
36747
36748// Offset sets the optional parameter "offset": Use offset with limit to
36749// enable pagination of results. For example, to display results 11-20,
36750// set limit to '10' and offset to '10'.
36751func (c *OrganizationsEnvironmentsStatsGetCall) Offset(offset string) *OrganizationsEnvironmentsStatsGetCall {
36752	c.urlParams_.Set("offset", offset)
36753	return c
36754}
36755
36756// Realtime sets the optional parameter "realtime": Legacy field: not
36757// used anymore.
36758func (c *OrganizationsEnvironmentsStatsGetCall) Realtime(realtime bool) *OrganizationsEnvironmentsStatsGetCall {
36759	c.urlParams_.Set("realtime", fmt.Sprint(realtime))
36760	return c
36761}
36762
36763// Select sets the optional parameter "select": The select parameter
36764// contains a comma separated list of metrics. E.g.
36765// sum(message_count),sum(error_count)
36766func (c *OrganizationsEnvironmentsStatsGetCall) Select(select_ string) *OrganizationsEnvironmentsStatsGetCall {
36767	c.urlParams_.Set("select", select_)
36768	return c
36769}
36770
36771// Sonar sets the optional parameter "sonar": This parameter routes the
36772// query to api monitoring service for last hour.
36773func (c *OrganizationsEnvironmentsStatsGetCall) Sonar(sonar bool) *OrganizationsEnvironmentsStatsGetCall {
36774	c.urlParams_.Set("sonar", fmt.Sprint(sonar))
36775	return c
36776}
36777
36778// Sort sets the optional parameter "sort": This parameter specifies if
36779// the sort order should be ascending or descending Supported values are
36780// DESC and ASC.
36781func (c *OrganizationsEnvironmentsStatsGetCall) Sort(sort string) *OrganizationsEnvironmentsStatsGetCall {
36782	c.urlParams_.Set("sort", sort)
36783	return c
36784}
36785
36786// Sortby sets the optional parameter "sortby": Comma separated list of
36787// columns to sort the final result.
36788func (c *OrganizationsEnvironmentsStatsGetCall) Sortby(sortby string) *OrganizationsEnvironmentsStatsGetCall {
36789	c.urlParams_.Set("sortby", sortby)
36790	return c
36791}
36792
36793// TimeRange sets the optional parameter "timeRange": Time interval for
36794// the interactive query. Time range is specified as start~end E.g.
36795// 04/15/2017 00:00~05/15/2017 23:59
36796func (c *OrganizationsEnvironmentsStatsGetCall) TimeRange(timeRange string) *OrganizationsEnvironmentsStatsGetCall {
36797	c.urlParams_.Set("timeRange", timeRange)
36798	return c
36799}
36800
36801// TimeUnit sets the optional parameter "timeUnit": A value of second,
36802// minute, hour, day, week, month. Time Unit specifies the granularity
36803// of metrics returned.
36804func (c *OrganizationsEnvironmentsStatsGetCall) TimeUnit(timeUnit string) *OrganizationsEnvironmentsStatsGetCall {
36805	c.urlParams_.Set("timeUnit", timeUnit)
36806	return c
36807}
36808
36809// Topk sets the optional parameter "topk": Take 'top k' results from
36810// results, for example, to return the top 5 results 'topk=5'.
36811func (c *OrganizationsEnvironmentsStatsGetCall) Topk(topk string) *OrganizationsEnvironmentsStatsGetCall {
36812	c.urlParams_.Set("topk", topk)
36813	return c
36814}
36815
36816// TsAscending sets the optional parameter "tsAscending": Lists
36817// timestamps in ascending order if set to true. Recommend setting this
36818// value to true if you are using sortby with sort=DESC.
36819func (c *OrganizationsEnvironmentsStatsGetCall) TsAscending(tsAscending bool) *OrganizationsEnvironmentsStatsGetCall {
36820	c.urlParams_.Set("tsAscending", fmt.Sprint(tsAscending))
36821	return c
36822}
36823
36824// Tzo sets the optional parameter "tzo": This parameters contains the
36825// timezone offset value.
36826func (c *OrganizationsEnvironmentsStatsGetCall) Tzo(tzo string) *OrganizationsEnvironmentsStatsGetCall {
36827	c.urlParams_.Set("tzo", tzo)
36828	return c
36829}
36830
36831// Fields allows partial responses to be retrieved. See
36832// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
36833// for more information.
36834func (c *OrganizationsEnvironmentsStatsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsStatsGetCall {
36835	c.urlParams_.Set("fields", googleapi.CombineFields(s))
36836	return c
36837}
36838
36839// IfNoneMatch sets the optional parameter which makes the operation
36840// fail if the object's ETag matches the given value. This is useful for
36841// getting updates only after the object has changed since the last
36842// request. Use googleapi.IsNotModified to check whether the response
36843// error from Do is the result of In-None-Match.
36844func (c *OrganizationsEnvironmentsStatsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsStatsGetCall {
36845	c.ifNoneMatch_ = entityTag
36846	return c
36847}
36848
36849// Context sets the context to be used in this call's Do method. Any
36850// pending HTTP request will be aborted if the provided context is
36851// canceled.
36852func (c *OrganizationsEnvironmentsStatsGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsStatsGetCall {
36853	c.ctx_ = ctx
36854	return c
36855}
36856
36857// Header returns an http.Header that can be modified by the caller to
36858// add HTTP headers to the request.
36859func (c *OrganizationsEnvironmentsStatsGetCall) Header() http.Header {
36860	if c.header_ == nil {
36861		c.header_ = make(http.Header)
36862	}
36863	return c.header_
36864}
36865
36866func (c *OrganizationsEnvironmentsStatsGetCall) doRequest(alt string) (*http.Response, error) {
36867	reqHeaders := make(http.Header)
36868	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
36869	for k, v := range c.header_ {
36870		reqHeaders[k] = v
36871	}
36872	reqHeaders.Set("User-Agent", c.s.userAgent())
36873	if c.ifNoneMatch_ != "" {
36874		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
36875	}
36876	var body io.Reader = nil
36877	c.urlParams_.Set("alt", alt)
36878	c.urlParams_.Set("prettyPrint", "false")
36879	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
36880	urls += "?" + c.urlParams_.Encode()
36881	req, err := http.NewRequest("GET", urls, body)
36882	if err != nil {
36883		return nil, err
36884	}
36885	req.Header = reqHeaders
36886	googleapi.Expand(req.URL, map[string]string{
36887		"name": c.name,
36888	})
36889	return gensupport.SendRequest(c.ctx_, c.s.client, req)
36890}
36891
36892// Do executes the "apigee.organizations.environments.stats.get" call.
36893// Exactly one of *GoogleCloudApigeeV1Stats or error will be non-nil.
36894// Any non-2xx status code is an error. Response headers are in either
36895// *GoogleCloudApigeeV1Stats.ServerResponse.Header or (if a response was
36896// returned at all) in error.(*googleapi.Error).Header. Use
36897// googleapi.IsNotModified to check whether the returned error was
36898// because http.StatusNotModified was returned.
36899func (c *OrganizationsEnvironmentsStatsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Stats, error) {
36900	gensupport.SetOptions(c.urlParams_, opts...)
36901	res, err := c.doRequest("json")
36902	if res != nil && res.StatusCode == http.StatusNotModified {
36903		if res.Body != nil {
36904			res.Body.Close()
36905		}
36906		return nil, &googleapi.Error{
36907			Code:   res.StatusCode,
36908			Header: res.Header,
36909		}
36910	}
36911	if err != nil {
36912		return nil, err
36913	}
36914	defer googleapi.CloseBody(res)
36915	if err := googleapi.CheckResponse(res); err != nil {
36916		return nil, err
36917	}
36918	ret := &GoogleCloudApigeeV1Stats{
36919		ServerResponse: googleapi.ServerResponse{
36920			Header:         res.Header,
36921			HTTPStatusCode: res.StatusCode,
36922		},
36923	}
36924	target := &ret
36925	if err := gensupport.DecodeResponse(target, res); err != nil {
36926		return nil, err
36927	}
36928	return ret, nil
36929	// {
36930	//   "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.",
36931	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/stats/{statsId}",
36932	//   "httpMethod": "GET",
36933	//   "id": "apigee.organizations.environments.stats.get",
36934	//   "parameterOrder": [
36935	//     "name"
36936	//   ],
36937	//   "parameters": {
36938	//     "accuracy": {
36939	//       "description": "Legacy field: not used anymore. This field is present to support UI calls which still use this parameter.",
36940	//       "location": "query",
36941	//       "type": "string"
36942	//     },
36943	//     "aggTable": {
36944	//       "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.",
36945	//       "location": "query",
36946	//       "type": "string"
36947	//     },
36948	//     "filter": {
36949	//       "description": "Enables drill-down on specific dimension values",
36950	//       "location": "query",
36951	//       "type": "string"
36952	//     },
36953	//     "limit": {
36954	//       "description": "This parameter is used to limit the number of result items. Default and the max value is 14400.",
36955	//       "location": "query",
36956	//       "type": "string"
36957	//     },
36958	//     "name": {
36959	//       "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`",
36960	//       "location": "path",
36961	//       "pattern": "^organizations/[^/]+/environments/[^/]+/stats/.*$",
36962	//       "required": true,
36963	//       "type": "string"
36964	//     },
36965	//     "offset": {
36966	//       "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'.",
36967	//       "location": "query",
36968	//       "type": "string"
36969	//     },
36970	//     "realtime": {
36971	//       "description": "Legacy field: not used anymore.",
36972	//       "location": "query",
36973	//       "type": "boolean"
36974	//     },
36975	//     "select": {
36976	//       "description": "The select parameter contains a comma separated list of metrics. E.g. sum(message_count),sum(error_count)",
36977	//       "location": "query",
36978	//       "type": "string"
36979	//     },
36980	//     "sonar": {
36981	//       "description": "This parameter routes the query to api monitoring service for last hour.",
36982	//       "location": "query",
36983	//       "type": "boolean"
36984	//     },
36985	//     "sort": {
36986	//       "description": "This parameter specifies if the sort order should be ascending or descending Supported values are DESC and ASC.",
36987	//       "location": "query",
36988	//       "type": "string"
36989	//     },
36990	//     "sortby": {
36991	//       "description": "Comma separated list of columns to sort the final result.",
36992	//       "location": "query",
36993	//       "type": "string"
36994	//     },
36995	//     "timeRange": {
36996	//       "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",
36997	//       "location": "query",
36998	//       "type": "string"
36999	//     },
37000	//     "timeUnit": {
37001	//       "description": "A value of second, minute, hour, day, week, month. Time Unit specifies the granularity of metrics returned.",
37002	//       "location": "query",
37003	//       "type": "string"
37004	//     },
37005	//     "topk": {
37006	//       "description": "Take 'top k' results from results, for example, to return the top 5 results 'topk=5'.",
37007	//       "location": "query",
37008	//       "type": "string"
37009	//     },
37010	//     "tsAscending": {
37011	//       "description": "Lists timestamps in ascending order if set to true. Recommend setting this value to true if you are using sortby with sort=DESC.",
37012	//       "location": "query",
37013	//       "type": "boolean"
37014	//     },
37015	//     "tzo": {
37016	//       "description": "This parameters contains the timezone offset value.",
37017	//       "location": "query",
37018	//       "type": "string"
37019	//     }
37020	//   },
37021	//   "path": "v1/{+name}",
37022	//   "response": {
37023	//     "$ref": "GoogleCloudApigeeV1Stats"
37024	//   },
37025	//   "scopes": [
37026	//     "https://www.googleapis.com/auth/cloud-platform"
37027	//   ]
37028	// }
37029
37030}
37031
37032// method id "apigee.organizations.environments.targetservers.create":
37033
37034type OrganizationsEnvironmentsTargetserversCreateCall struct {
37035	s                               *Service
37036	parent                          string
37037	googlecloudapigeev1targetserver *GoogleCloudApigeeV1TargetServer
37038	urlParams_                      gensupport.URLParams
37039	ctx_                            context.Context
37040	header_                         http.Header
37041}
37042
37043// Create: Creates a TargetServer in the specified environment.
37044//
37045// - parent: The parent environment name under which the TargetServer
37046//   will be created. Must be of the form
37047//   `organizations/{org}/environments/{env}`.
37048func (r *OrganizationsEnvironmentsTargetserversService) Create(parent string, googlecloudapigeev1targetserver *GoogleCloudApigeeV1TargetServer) *OrganizationsEnvironmentsTargetserversCreateCall {
37049	c := &OrganizationsEnvironmentsTargetserversCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37050	c.parent = parent
37051	c.googlecloudapigeev1targetserver = googlecloudapigeev1targetserver
37052	return c
37053}
37054
37055// Name sets the optional parameter "name": The ID to give the
37056// TargetServer. This will overwrite the value in TargetServer.
37057func (c *OrganizationsEnvironmentsTargetserversCreateCall) Name(name string) *OrganizationsEnvironmentsTargetserversCreateCall {
37058	c.urlParams_.Set("name", name)
37059	return c
37060}
37061
37062// Fields allows partial responses to be retrieved. See
37063// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
37064// for more information.
37065func (c *OrganizationsEnvironmentsTargetserversCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTargetserversCreateCall {
37066	c.urlParams_.Set("fields", googleapi.CombineFields(s))
37067	return c
37068}
37069
37070// Context sets the context to be used in this call's Do method. Any
37071// pending HTTP request will be aborted if the provided context is
37072// canceled.
37073func (c *OrganizationsEnvironmentsTargetserversCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsTargetserversCreateCall {
37074	c.ctx_ = ctx
37075	return c
37076}
37077
37078// Header returns an http.Header that can be modified by the caller to
37079// add HTTP headers to the request.
37080func (c *OrganizationsEnvironmentsTargetserversCreateCall) Header() http.Header {
37081	if c.header_ == nil {
37082		c.header_ = make(http.Header)
37083	}
37084	return c.header_
37085}
37086
37087func (c *OrganizationsEnvironmentsTargetserversCreateCall) doRequest(alt string) (*http.Response, error) {
37088	reqHeaders := make(http.Header)
37089	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
37090	for k, v := range c.header_ {
37091		reqHeaders[k] = v
37092	}
37093	reqHeaders.Set("User-Agent", c.s.userAgent())
37094	var body io.Reader = nil
37095	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1targetserver)
37096	if err != nil {
37097		return nil, err
37098	}
37099	reqHeaders.Set("Content-Type", "application/json")
37100	c.urlParams_.Set("alt", alt)
37101	c.urlParams_.Set("prettyPrint", "false")
37102	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/targetservers")
37103	urls += "?" + c.urlParams_.Encode()
37104	req, err := http.NewRequest("POST", urls, body)
37105	if err != nil {
37106		return nil, err
37107	}
37108	req.Header = reqHeaders
37109	googleapi.Expand(req.URL, map[string]string{
37110		"parent": c.parent,
37111	})
37112	return gensupport.SendRequest(c.ctx_, c.s.client, req)
37113}
37114
37115// Do executes the "apigee.organizations.environments.targetservers.create" call.
37116// Exactly one of *GoogleCloudApigeeV1TargetServer or error will be
37117// non-nil. Any non-2xx status code is an error. Response headers are in
37118// either *GoogleCloudApigeeV1TargetServer.ServerResponse.Header or (if
37119// a response was returned at all) in error.(*googleapi.Error).Header.
37120// Use googleapi.IsNotModified to check whether the returned error was
37121// because http.StatusNotModified was returned.
37122func (c *OrganizationsEnvironmentsTargetserversCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TargetServer, error) {
37123	gensupport.SetOptions(c.urlParams_, opts...)
37124	res, err := c.doRequest("json")
37125	if res != nil && res.StatusCode == http.StatusNotModified {
37126		if res.Body != nil {
37127			res.Body.Close()
37128		}
37129		return nil, &googleapi.Error{
37130			Code:   res.StatusCode,
37131			Header: res.Header,
37132		}
37133	}
37134	if err != nil {
37135		return nil, err
37136	}
37137	defer googleapi.CloseBody(res)
37138	if err := googleapi.CheckResponse(res); err != nil {
37139		return nil, err
37140	}
37141	ret := &GoogleCloudApigeeV1TargetServer{
37142		ServerResponse: googleapi.ServerResponse{
37143			Header:         res.Header,
37144			HTTPStatusCode: res.StatusCode,
37145		},
37146	}
37147	target := &ret
37148	if err := gensupport.DecodeResponse(target, res); err != nil {
37149		return nil, err
37150	}
37151	return ret, nil
37152	// {
37153	//   "description": "Creates a TargetServer in the specified environment.",
37154	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/targetservers",
37155	//   "httpMethod": "POST",
37156	//   "id": "apigee.organizations.environments.targetservers.create",
37157	//   "parameterOrder": [
37158	//     "parent"
37159	//   ],
37160	//   "parameters": {
37161	//     "name": {
37162	//       "description": "Optional. The ID to give the TargetServer. This will overwrite the value in TargetServer.",
37163	//       "location": "query",
37164	//       "type": "string"
37165	//     },
37166	//     "parent": {
37167	//       "description": "Required. The parent environment name under which the TargetServer will be created. Must be of the form `organizations/{org}/environments/{env}`.",
37168	//       "location": "path",
37169	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
37170	//       "required": true,
37171	//       "type": "string"
37172	//     }
37173	//   },
37174	//   "path": "v1/{+parent}/targetservers",
37175	//   "request": {
37176	//     "$ref": "GoogleCloudApigeeV1TargetServer"
37177	//   },
37178	//   "response": {
37179	//     "$ref": "GoogleCloudApigeeV1TargetServer"
37180	//   },
37181	//   "scopes": [
37182	//     "https://www.googleapis.com/auth/cloud-platform"
37183	//   ]
37184	// }
37185
37186}
37187
37188// method id "apigee.organizations.environments.targetservers.delete":
37189
37190type OrganizationsEnvironmentsTargetserversDeleteCall struct {
37191	s          *Service
37192	name       string
37193	urlParams_ gensupport.URLParams
37194	ctx_       context.Context
37195	header_    http.Header
37196}
37197
37198// Delete: Deletes a TargetServer from an environment. Returns the
37199// deleted TargetServer resource.
37200//
37201// - name: The name of the TargetServer to delete. Must be of the form
37202//   `organizations/{org}/environments/{env}/targetservers/{target_server
37203//   _id}`.
37204func (r *OrganizationsEnvironmentsTargetserversService) Delete(name string) *OrganizationsEnvironmentsTargetserversDeleteCall {
37205	c := &OrganizationsEnvironmentsTargetserversDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37206	c.name = name
37207	return c
37208}
37209
37210// Fields allows partial responses to be retrieved. See
37211// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
37212// for more information.
37213func (c *OrganizationsEnvironmentsTargetserversDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTargetserversDeleteCall {
37214	c.urlParams_.Set("fields", googleapi.CombineFields(s))
37215	return c
37216}
37217
37218// Context sets the context to be used in this call's Do method. Any
37219// pending HTTP request will be aborted if the provided context is
37220// canceled.
37221func (c *OrganizationsEnvironmentsTargetserversDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsTargetserversDeleteCall {
37222	c.ctx_ = ctx
37223	return c
37224}
37225
37226// Header returns an http.Header that can be modified by the caller to
37227// add HTTP headers to the request.
37228func (c *OrganizationsEnvironmentsTargetserversDeleteCall) Header() http.Header {
37229	if c.header_ == nil {
37230		c.header_ = make(http.Header)
37231	}
37232	return c.header_
37233}
37234
37235func (c *OrganizationsEnvironmentsTargetserversDeleteCall) doRequest(alt string) (*http.Response, error) {
37236	reqHeaders := make(http.Header)
37237	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
37238	for k, v := range c.header_ {
37239		reqHeaders[k] = v
37240	}
37241	reqHeaders.Set("User-Agent", c.s.userAgent())
37242	var body io.Reader = nil
37243	c.urlParams_.Set("alt", alt)
37244	c.urlParams_.Set("prettyPrint", "false")
37245	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
37246	urls += "?" + c.urlParams_.Encode()
37247	req, err := http.NewRequest("DELETE", urls, body)
37248	if err != nil {
37249		return nil, err
37250	}
37251	req.Header = reqHeaders
37252	googleapi.Expand(req.URL, map[string]string{
37253		"name": c.name,
37254	})
37255	return gensupport.SendRequest(c.ctx_, c.s.client, req)
37256}
37257
37258// Do executes the "apigee.organizations.environments.targetservers.delete" call.
37259// Exactly one of *GoogleCloudApigeeV1TargetServer or error will be
37260// non-nil. Any non-2xx status code is an error. Response headers are in
37261// either *GoogleCloudApigeeV1TargetServer.ServerResponse.Header or (if
37262// a response was returned at all) in error.(*googleapi.Error).Header.
37263// Use googleapi.IsNotModified to check whether the returned error was
37264// because http.StatusNotModified was returned.
37265func (c *OrganizationsEnvironmentsTargetserversDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TargetServer, error) {
37266	gensupport.SetOptions(c.urlParams_, opts...)
37267	res, err := c.doRequest("json")
37268	if res != nil && res.StatusCode == http.StatusNotModified {
37269		if res.Body != nil {
37270			res.Body.Close()
37271		}
37272		return nil, &googleapi.Error{
37273			Code:   res.StatusCode,
37274			Header: res.Header,
37275		}
37276	}
37277	if err != nil {
37278		return nil, err
37279	}
37280	defer googleapi.CloseBody(res)
37281	if err := googleapi.CheckResponse(res); err != nil {
37282		return nil, err
37283	}
37284	ret := &GoogleCloudApigeeV1TargetServer{
37285		ServerResponse: googleapi.ServerResponse{
37286			Header:         res.Header,
37287			HTTPStatusCode: res.StatusCode,
37288		},
37289	}
37290	target := &ret
37291	if err := gensupport.DecodeResponse(target, res); err != nil {
37292		return nil, err
37293	}
37294	return ret, nil
37295	// {
37296	//   "description": "Deletes a TargetServer from an environment. Returns the deleted TargetServer resource.",
37297	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/targetservers/{targetserversId}",
37298	//   "httpMethod": "DELETE",
37299	//   "id": "apigee.organizations.environments.targetservers.delete",
37300	//   "parameterOrder": [
37301	//     "name"
37302	//   ],
37303	//   "parameters": {
37304	//     "name": {
37305	//       "description": "Required. The name of the TargetServer to delete. Must be of the form `organizations/{org}/environments/{env}/targetservers/{target_server_id}`.",
37306	//       "location": "path",
37307	//       "pattern": "^organizations/[^/]+/environments/[^/]+/targetservers/[^/]+$",
37308	//       "required": true,
37309	//       "type": "string"
37310	//     }
37311	//   },
37312	//   "path": "v1/{+name}",
37313	//   "response": {
37314	//     "$ref": "GoogleCloudApigeeV1TargetServer"
37315	//   },
37316	//   "scopes": [
37317	//     "https://www.googleapis.com/auth/cloud-platform"
37318	//   ]
37319	// }
37320
37321}
37322
37323// method id "apigee.organizations.environments.targetservers.get":
37324
37325type OrganizationsEnvironmentsTargetserversGetCall struct {
37326	s            *Service
37327	name         string
37328	urlParams_   gensupport.URLParams
37329	ifNoneMatch_ string
37330	ctx_         context.Context
37331	header_      http.Header
37332}
37333
37334// Get: Gets a TargetServer resource.
37335//
37336// - name: The name of the TargetServer to get. Must be of the form
37337//   `organizations/{org}/environments/{env}/targetservers/{target_server
37338//   _id}`.
37339func (r *OrganizationsEnvironmentsTargetserversService) Get(name string) *OrganizationsEnvironmentsTargetserversGetCall {
37340	c := &OrganizationsEnvironmentsTargetserversGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37341	c.name = name
37342	return c
37343}
37344
37345// Fields allows partial responses to be retrieved. See
37346// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
37347// for more information.
37348func (c *OrganizationsEnvironmentsTargetserversGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTargetserversGetCall {
37349	c.urlParams_.Set("fields", googleapi.CombineFields(s))
37350	return c
37351}
37352
37353// IfNoneMatch sets the optional parameter which makes the operation
37354// fail if the object's ETag matches the given value. This is useful for
37355// getting updates only after the object has changed since the last
37356// request. Use googleapi.IsNotModified to check whether the response
37357// error from Do is the result of In-None-Match.
37358func (c *OrganizationsEnvironmentsTargetserversGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsTargetserversGetCall {
37359	c.ifNoneMatch_ = entityTag
37360	return c
37361}
37362
37363// Context sets the context to be used in this call's Do method. Any
37364// pending HTTP request will be aborted if the provided context is
37365// canceled.
37366func (c *OrganizationsEnvironmentsTargetserversGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsTargetserversGetCall {
37367	c.ctx_ = ctx
37368	return c
37369}
37370
37371// Header returns an http.Header that can be modified by the caller to
37372// add HTTP headers to the request.
37373func (c *OrganizationsEnvironmentsTargetserversGetCall) Header() http.Header {
37374	if c.header_ == nil {
37375		c.header_ = make(http.Header)
37376	}
37377	return c.header_
37378}
37379
37380func (c *OrganizationsEnvironmentsTargetserversGetCall) doRequest(alt string) (*http.Response, error) {
37381	reqHeaders := make(http.Header)
37382	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
37383	for k, v := range c.header_ {
37384		reqHeaders[k] = v
37385	}
37386	reqHeaders.Set("User-Agent", c.s.userAgent())
37387	if c.ifNoneMatch_ != "" {
37388		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
37389	}
37390	var body io.Reader = nil
37391	c.urlParams_.Set("alt", alt)
37392	c.urlParams_.Set("prettyPrint", "false")
37393	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
37394	urls += "?" + c.urlParams_.Encode()
37395	req, err := http.NewRequest("GET", urls, body)
37396	if err != nil {
37397		return nil, err
37398	}
37399	req.Header = reqHeaders
37400	googleapi.Expand(req.URL, map[string]string{
37401		"name": c.name,
37402	})
37403	return gensupport.SendRequest(c.ctx_, c.s.client, req)
37404}
37405
37406// Do executes the "apigee.organizations.environments.targetservers.get" call.
37407// Exactly one of *GoogleCloudApigeeV1TargetServer or error will be
37408// non-nil. Any non-2xx status code is an error. Response headers are in
37409// either *GoogleCloudApigeeV1TargetServer.ServerResponse.Header or (if
37410// a response was returned at all) in error.(*googleapi.Error).Header.
37411// Use googleapi.IsNotModified to check whether the returned error was
37412// because http.StatusNotModified was returned.
37413func (c *OrganizationsEnvironmentsTargetserversGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TargetServer, error) {
37414	gensupport.SetOptions(c.urlParams_, opts...)
37415	res, err := c.doRequest("json")
37416	if res != nil && res.StatusCode == http.StatusNotModified {
37417		if res.Body != nil {
37418			res.Body.Close()
37419		}
37420		return nil, &googleapi.Error{
37421			Code:   res.StatusCode,
37422			Header: res.Header,
37423		}
37424	}
37425	if err != nil {
37426		return nil, err
37427	}
37428	defer googleapi.CloseBody(res)
37429	if err := googleapi.CheckResponse(res); err != nil {
37430		return nil, err
37431	}
37432	ret := &GoogleCloudApigeeV1TargetServer{
37433		ServerResponse: googleapi.ServerResponse{
37434			Header:         res.Header,
37435			HTTPStatusCode: res.StatusCode,
37436		},
37437	}
37438	target := &ret
37439	if err := gensupport.DecodeResponse(target, res); err != nil {
37440		return nil, err
37441	}
37442	return ret, nil
37443	// {
37444	//   "description": "Gets a TargetServer resource.",
37445	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/targetservers/{targetserversId}",
37446	//   "httpMethod": "GET",
37447	//   "id": "apigee.organizations.environments.targetservers.get",
37448	//   "parameterOrder": [
37449	//     "name"
37450	//   ],
37451	//   "parameters": {
37452	//     "name": {
37453	//       "description": "Required. The name of the TargetServer to get. Must be of the form `organizations/{org}/environments/{env}/targetservers/{target_server_id}`.",
37454	//       "location": "path",
37455	//       "pattern": "^organizations/[^/]+/environments/[^/]+/targetservers/[^/]+$",
37456	//       "required": true,
37457	//       "type": "string"
37458	//     }
37459	//   },
37460	//   "path": "v1/{+name}",
37461	//   "response": {
37462	//     "$ref": "GoogleCloudApigeeV1TargetServer"
37463	//   },
37464	//   "scopes": [
37465	//     "https://www.googleapis.com/auth/cloud-platform"
37466	//   ]
37467	// }
37468
37469}
37470
37471// method id "apigee.organizations.environments.targetservers.update":
37472
37473type OrganizationsEnvironmentsTargetserversUpdateCall struct {
37474	s                               *Service
37475	name                            string
37476	googlecloudapigeev1targetserver *GoogleCloudApigeeV1TargetServer
37477	urlParams_                      gensupport.URLParams
37478	ctx_                            context.Context
37479	header_                         http.Header
37480}
37481
37482// Update: Updates an existing TargetServer. Note that this operation
37483// has PUT semantics; it will replace the entirety of the existing
37484// TargetServer with the resource in the request body.
37485//
37486// - name: The name of the TargetServer to replace. Must be of the form
37487//   `organizations/{org}/environments/{env}/targetservers/{target_server
37488//   _id}`.
37489func (r *OrganizationsEnvironmentsTargetserversService) Update(name string, googlecloudapigeev1targetserver *GoogleCloudApigeeV1TargetServer) *OrganizationsEnvironmentsTargetserversUpdateCall {
37490	c := &OrganizationsEnvironmentsTargetserversUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37491	c.name = name
37492	c.googlecloudapigeev1targetserver = googlecloudapigeev1targetserver
37493	return c
37494}
37495
37496// Fields allows partial responses to be retrieved. See
37497// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
37498// for more information.
37499func (c *OrganizationsEnvironmentsTargetserversUpdateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTargetserversUpdateCall {
37500	c.urlParams_.Set("fields", googleapi.CombineFields(s))
37501	return c
37502}
37503
37504// Context sets the context to be used in this call's Do method. Any
37505// pending HTTP request will be aborted if the provided context is
37506// canceled.
37507func (c *OrganizationsEnvironmentsTargetserversUpdateCall) Context(ctx context.Context) *OrganizationsEnvironmentsTargetserversUpdateCall {
37508	c.ctx_ = ctx
37509	return c
37510}
37511
37512// Header returns an http.Header that can be modified by the caller to
37513// add HTTP headers to the request.
37514func (c *OrganizationsEnvironmentsTargetserversUpdateCall) Header() http.Header {
37515	if c.header_ == nil {
37516		c.header_ = make(http.Header)
37517	}
37518	return c.header_
37519}
37520
37521func (c *OrganizationsEnvironmentsTargetserversUpdateCall) doRequest(alt string) (*http.Response, error) {
37522	reqHeaders := make(http.Header)
37523	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
37524	for k, v := range c.header_ {
37525		reqHeaders[k] = v
37526	}
37527	reqHeaders.Set("User-Agent", c.s.userAgent())
37528	var body io.Reader = nil
37529	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1targetserver)
37530	if err != nil {
37531		return nil, err
37532	}
37533	reqHeaders.Set("Content-Type", "application/json")
37534	c.urlParams_.Set("alt", alt)
37535	c.urlParams_.Set("prettyPrint", "false")
37536	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
37537	urls += "?" + c.urlParams_.Encode()
37538	req, err := http.NewRequest("PUT", urls, body)
37539	if err != nil {
37540		return nil, err
37541	}
37542	req.Header = reqHeaders
37543	googleapi.Expand(req.URL, map[string]string{
37544		"name": c.name,
37545	})
37546	return gensupport.SendRequest(c.ctx_, c.s.client, req)
37547}
37548
37549// Do executes the "apigee.organizations.environments.targetservers.update" call.
37550// Exactly one of *GoogleCloudApigeeV1TargetServer or error will be
37551// non-nil. Any non-2xx status code is an error. Response headers are in
37552// either *GoogleCloudApigeeV1TargetServer.ServerResponse.Header or (if
37553// a response was returned at all) in error.(*googleapi.Error).Header.
37554// Use googleapi.IsNotModified to check whether the returned error was
37555// because http.StatusNotModified was returned.
37556func (c *OrganizationsEnvironmentsTargetserversUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TargetServer, error) {
37557	gensupport.SetOptions(c.urlParams_, opts...)
37558	res, err := c.doRequest("json")
37559	if res != nil && res.StatusCode == http.StatusNotModified {
37560		if res.Body != nil {
37561			res.Body.Close()
37562		}
37563		return nil, &googleapi.Error{
37564			Code:   res.StatusCode,
37565			Header: res.Header,
37566		}
37567	}
37568	if err != nil {
37569		return nil, err
37570	}
37571	defer googleapi.CloseBody(res)
37572	if err := googleapi.CheckResponse(res); err != nil {
37573		return nil, err
37574	}
37575	ret := &GoogleCloudApigeeV1TargetServer{
37576		ServerResponse: googleapi.ServerResponse{
37577			Header:         res.Header,
37578			HTTPStatusCode: res.StatusCode,
37579		},
37580	}
37581	target := &ret
37582	if err := gensupport.DecodeResponse(target, res); err != nil {
37583		return nil, err
37584	}
37585	return ret, nil
37586	// {
37587	//   "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.",
37588	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/targetservers/{targetserversId}",
37589	//   "httpMethod": "PUT",
37590	//   "id": "apigee.organizations.environments.targetservers.update",
37591	//   "parameterOrder": [
37592	//     "name"
37593	//   ],
37594	//   "parameters": {
37595	//     "name": {
37596	//       "description": "Required. The name of the TargetServer to replace. Must be of the form `organizations/{org}/environments/{env}/targetservers/{target_server_id}`.",
37597	//       "location": "path",
37598	//       "pattern": "^organizations/[^/]+/environments/[^/]+/targetservers/[^/]+$",
37599	//       "required": true,
37600	//       "type": "string"
37601	//     }
37602	//   },
37603	//   "path": "v1/{+name}",
37604	//   "request": {
37605	//     "$ref": "GoogleCloudApigeeV1TargetServer"
37606	//   },
37607	//   "response": {
37608	//     "$ref": "GoogleCloudApigeeV1TargetServer"
37609	//   },
37610	//   "scopes": [
37611	//     "https://www.googleapis.com/auth/cloud-platform"
37612	//   ]
37613	// }
37614
37615}
37616
37617// method id "apigee.organizations.environments.traceConfig.overrides.create":
37618
37619type OrganizationsEnvironmentsTraceConfigOverridesCreateCall struct {
37620	s                                      *Service
37621	parent                                 string
37622	googlecloudapigeev1traceconfigoverride *GoogleCloudApigeeV1TraceConfigOverride
37623	urlParams_                             gensupport.URLParams
37624	ctx_                                   context.Context
37625	header_                                http.Header
37626}
37627
37628// Create: Creates a trace configuration override. The response contains
37629// a system-generated UUID, that can be used to view, update, or delete
37630// the configuration override. Use the List API to view the existing
37631// trace configuration overrides.
37632//
37633// - parent: Parent resource of the trace configuration override. Use
37634//   the following structure in your request.
37635//   "organizations/*/environments/*/traceConfig".
37636func (r *OrganizationsEnvironmentsTraceConfigOverridesService) Create(parent string, googlecloudapigeev1traceconfigoverride *GoogleCloudApigeeV1TraceConfigOverride) *OrganizationsEnvironmentsTraceConfigOverridesCreateCall {
37637	c := &OrganizationsEnvironmentsTraceConfigOverridesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37638	c.parent = parent
37639	c.googlecloudapigeev1traceconfigoverride = googlecloudapigeev1traceconfigoverride
37640	return c
37641}
37642
37643// Fields allows partial responses to be retrieved. See
37644// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
37645// for more information.
37646func (c *OrganizationsEnvironmentsTraceConfigOverridesCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTraceConfigOverridesCreateCall {
37647	c.urlParams_.Set("fields", googleapi.CombineFields(s))
37648	return c
37649}
37650
37651// Context sets the context to be used in this call's Do method. Any
37652// pending HTTP request will be aborted if the provided context is
37653// canceled.
37654func (c *OrganizationsEnvironmentsTraceConfigOverridesCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsTraceConfigOverridesCreateCall {
37655	c.ctx_ = ctx
37656	return c
37657}
37658
37659// Header returns an http.Header that can be modified by the caller to
37660// add HTTP headers to the request.
37661func (c *OrganizationsEnvironmentsTraceConfigOverridesCreateCall) Header() http.Header {
37662	if c.header_ == nil {
37663		c.header_ = make(http.Header)
37664	}
37665	return c.header_
37666}
37667
37668func (c *OrganizationsEnvironmentsTraceConfigOverridesCreateCall) doRequest(alt string) (*http.Response, error) {
37669	reqHeaders := make(http.Header)
37670	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
37671	for k, v := range c.header_ {
37672		reqHeaders[k] = v
37673	}
37674	reqHeaders.Set("User-Agent", c.s.userAgent())
37675	var body io.Reader = nil
37676	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1traceconfigoverride)
37677	if err != nil {
37678		return nil, err
37679	}
37680	reqHeaders.Set("Content-Type", "application/json")
37681	c.urlParams_.Set("alt", alt)
37682	c.urlParams_.Set("prettyPrint", "false")
37683	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/overrides")
37684	urls += "?" + c.urlParams_.Encode()
37685	req, err := http.NewRequest("POST", urls, body)
37686	if err != nil {
37687		return nil, err
37688	}
37689	req.Header = reqHeaders
37690	googleapi.Expand(req.URL, map[string]string{
37691		"parent": c.parent,
37692	})
37693	return gensupport.SendRequest(c.ctx_, c.s.client, req)
37694}
37695
37696// Do executes the "apigee.organizations.environments.traceConfig.overrides.create" call.
37697// Exactly one of *GoogleCloudApigeeV1TraceConfigOverride or error will
37698// be non-nil. Any non-2xx status code is an error. Response headers are
37699// in either
37700// *GoogleCloudApigeeV1TraceConfigOverride.ServerResponse.Header or (if
37701// a response was returned at all) in error.(*googleapi.Error).Header.
37702// Use googleapi.IsNotModified to check whether the returned error was
37703// because http.StatusNotModified was returned.
37704func (c *OrganizationsEnvironmentsTraceConfigOverridesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TraceConfigOverride, error) {
37705	gensupport.SetOptions(c.urlParams_, opts...)
37706	res, err := c.doRequest("json")
37707	if res != nil && res.StatusCode == http.StatusNotModified {
37708		if res.Body != nil {
37709			res.Body.Close()
37710		}
37711		return nil, &googleapi.Error{
37712			Code:   res.StatusCode,
37713			Header: res.Header,
37714		}
37715	}
37716	if err != nil {
37717		return nil, err
37718	}
37719	defer googleapi.CloseBody(res)
37720	if err := googleapi.CheckResponse(res); err != nil {
37721		return nil, err
37722	}
37723	ret := &GoogleCloudApigeeV1TraceConfigOverride{
37724		ServerResponse: googleapi.ServerResponse{
37725			Header:         res.Header,
37726			HTTPStatusCode: res.StatusCode,
37727		},
37728	}
37729	target := &ret
37730	if err := gensupport.DecodeResponse(target, res); err != nil {
37731		return nil, err
37732	}
37733	return ret, nil
37734	// {
37735	//   "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.",
37736	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/traceConfig/overrides",
37737	//   "httpMethod": "POST",
37738	//   "id": "apigee.organizations.environments.traceConfig.overrides.create",
37739	//   "parameterOrder": [
37740	//     "parent"
37741	//   ],
37742	//   "parameters": {
37743	//     "parent": {
37744	//       "description": "Required. Parent resource of the trace configuration override. Use the following structure in your request. \"organizations/*/environments/*/traceConfig\".",
37745	//       "location": "path",
37746	//       "pattern": "^organizations/[^/]+/environments/[^/]+/traceConfig$",
37747	//       "required": true,
37748	//       "type": "string"
37749	//     }
37750	//   },
37751	//   "path": "v1/{+parent}/overrides",
37752	//   "request": {
37753	//     "$ref": "GoogleCloudApigeeV1TraceConfigOverride"
37754	//   },
37755	//   "response": {
37756	//     "$ref": "GoogleCloudApigeeV1TraceConfigOverride"
37757	//   },
37758	//   "scopes": [
37759	//     "https://www.googleapis.com/auth/cloud-platform"
37760	//   ]
37761	// }
37762
37763}
37764
37765// method id "apigee.organizations.environments.traceConfig.overrides.delete":
37766
37767type OrganizationsEnvironmentsTraceConfigOverridesDeleteCall struct {
37768	s          *Service
37769	name       string
37770	urlParams_ gensupport.URLParams
37771	ctx_       context.Context
37772	header_    http.Header
37773}
37774
37775// Delete: Deletes a distributed trace configuration override.
37776//
37777// - name: Name of the trace configuration override. Use the following
37778//   structure in your request:
37779//   "organizations/*/environments/*/traceConfig/overrides/*".
37780func (r *OrganizationsEnvironmentsTraceConfigOverridesService) Delete(name string) *OrganizationsEnvironmentsTraceConfigOverridesDeleteCall {
37781	c := &OrganizationsEnvironmentsTraceConfigOverridesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37782	c.name = name
37783	return c
37784}
37785
37786// Fields allows partial responses to be retrieved. See
37787// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
37788// for more information.
37789func (c *OrganizationsEnvironmentsTraceConfigOverridesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTraceConfigOverridesDeleteCall {
37790	c.urlParams_.Set("fields", googleapi.CombineFields(s))
37791	return c
37792}
37793
37794// Context sets the context to be used in this call's Do method. Any
37795// pending HTTP request will be aborted if the provided context is
37796// canceled.
37797func (c *OrganizationsEnvironmentsTraceConfigOverridesDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsTraceConfigOverridesDeleteCall {
37798	c.ctx_ = ctx
37799	return c
37800}
37801
37802// Header returns an http.Header that can be modified by the caller to
37803// add HTTP headers to the request.
37804func (c *OrganizationsEnvironmentsTraceConfigOverridesDeleteCall) Header() http.Header {
37805	if c.header_ == nil {
37806		c.header_ = make(http.Header)
37807	}
37808	return c.header_
37809}
37810
37811func (c *OrganizationsEnvironmentsTraceConfigOverridesDeleteCall) doRequest(alt string) (*http.Response, error) {
37812	reqHeaders := make(http.Header)
37813	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
37814	for k, v := range c.header_ {
37815		reqHeaders[k] = v
37816	}
37817	reqHeaders.Set("User-Agent", c.s.userAgent())
37818	var body io.Reader = nil
37819	c.urlParams_.Set("alt", alt)
37820	c.urlParams_.Set("prettyPrint", "false")
37821	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
37822	urls += "?" + c.urlParams_.Encode()
37823	req, err := http.NewRequest("DELETE", urls, body)
37824	if err != nil {
37825		return nil, err
37826	}
37827	req.Header = reqHeaders
37828	googleapi.Expand(req.URL, map[string]string{
37829		"name": c.name,
37830	})
37831	return gensupport.SendRequest(c.ctx_, c.s.client, req)
37832}
37833
37834// Do executes the "apigee.organizations.environments.traceConfig.overrides.delete" call.
37835// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
37836// non-2xx status code is an error. Response headers are in either
37837// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
37838// returned at all) in error.(*googleapi.Error).Header. Use
37839// googleapi.IsNotModified to check whether the returned error was
37840// because http.StatusNotModified was returned.
37841func (c *OrganizationsEnvironmentsTraceConfigOverridesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
37842	gensupport.SetOptions(c.urlParams_, opts...)
37843	res, err := c.doRequest("json")
37844	if res != nil && res.StatusCode == http.StatusNotModified {
37845		if res.Body != nil {
37846			res.Body.Close()
37847		}
37848		return nil, &googleapi.Error{
37849			Code:   res.StatusCode,
37850			Header: res.Header,
37851		}
37852	}
37853	if err != nil {
37854		return nil, err
37855	}
37856	defer googleapi.CloseBody(res)
37857	if err := googleapi.CheckResponse(res); err != nil {
37858		return nil, err
37859	}
37860	ret := &GoogleProtobufEmpty{
37861		ServerResponse: googleapi.ServerResponse{
37862			Header:         res.Header,
37863			HTTPStatusCode: res.StatusCode,
37864		},
37865	}
37866	target := &ret
37867	if err := gensupport.DecodeResponse(target, res); err != nil {
37868		return nil, err
37869	}
37870	return ret, nil
37871	// {
37872	//   "description": "Deletes a distributed trace configuration override.",
37873	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/traceConfig/overrides/{overridesId}",
37874	//   "httpMethod": "DELETE",
37875	//   "id": "apigee.organizations.environments.traceConfig.overrides.delete",
37876	//   "parameterOrder": [
37877	//     "name"
37878	//   ],
37879	//   "parameters": {
37880	//     "name": {
37881	//       "description": "Required. Name of the trace configuration override. Use the following structure in your request: \"organizations/*/environments/*/traceConfig/overrides/*\".",
37882	//       "location": "path",
37883	//       "pattern": "^organizations/[^/]+/environments/[^/]+/traceConfig/overrides/[^/]+$",
37884	//       "required": true,
37885	//       "type": "string"
37886	//     }
37887	//   },
37888	//   "path": "v1/{+name}",
37889	//   "response": {
37890	//     "$ref": "GoogleProtobufEmpty"
37891	//   },
37892	//   "scopes": [
37893	//     "https://www.googleapis.com/auth/cloud-platform"
37894	//   ]
37895	// }
37896
37897}
37898
37899// method id "apigee.organizations.environments.traceConfig.overrides.get":
37900
37901type OrganizationsEnvironmentsTraceConfigOverridesGetCall struct {
37902	s            *Service
37903	name         string
37904	urlParams_   gensupport.URLParams
37905	ifNoneMatch_ string
37906	ctx_         context.Context
37907	header_      http.Header
37908}
37909
37910// Get: Gets a trace configuration override.
37911//
37912// - name: Name of the trace configuration override. Use the following
37913//   structure in your request:
37914//   "organizations/*/environments/*/traceConfig/overrides/*".
37915func (r *OrganizationsEnvironmentsTraceConfigOverridesService) Get(name string) *OrganizationsEnvironmentsTraceConfigOverridesGetCall {
37916	c := &OrganizationsEnvironmentsTraceConfigOverridesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37917	c.name = name
37918	return c
37919}
37920
37921// Fields allows partial responses to be retrieved. See
37922// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
37923// for more information.
37924func (c *OrganizationsEnvironmentsTraceConfigOverridesGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTraceConfigOverridesGetCall {
37925	c.urlParams_.Set("fields", googleapi.CombineFields(s))
37926	return c
37927}
37928
37929// IfNoneMatch sets the optional parameter which makes the operation
37930// fail if the object's ETag matches the given value. This is useful for
37931// getting updates only after the object has changed since the last
37932// request. Use googleapi.IsNotModified to check whether the response
37933// error from Do is the result of In-None-Match.
37934func (c *OrganizationsEnvironmentsTraceConfigOverridesGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsTraceConfigOverridesGetCall {
37935	c.ifNoneMatch_ = entityTag
37936	return c
37937}
37938
37939// Context sets the context to be used in this call's Do method. Any
37940// pending HTTP request will be aborted if the provided context is
37941// canceled.
37942func (c *OrganizationsEnvironmentsTraceConfigOverridesGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsTraceConfigOverridesGetCall {
37943	c.ctx_ = ctx
37944	return c
37945}
37946
37947// Header returns an http.Header that can be modified by the caller to
37948// add HTTP headers to the request.
37949func (c *OrganizationsEnvironmentsTraceConfigOverridesGetCall) Header() http.Header {
37950	if c.header_ == nil {
37951		c.header_ = make(http.Header)
37952	}
37953	return c.header_
37954}
37955
37956func (c *OrganizationsEnvironmentsTraceConfigOverridesGetCall) doRequest(alt string) (*http.Response, error) {
37957	reqHeaders := make(http.Header)
37958	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
37959	for k, v := range c.header_ {
37960		reqHeaders[k] = v
37961	}
37962	reqHeaders.Set("User-Agent", c.s.userAgent())
37963	if c.ifNoneMatch_ != "" {
37964		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
37965	}
37966	var body io.Reader = nil
37967	c.urlParams_.Set("alt", alt)
37968	c.urlParams_.Set("prettyPrint", "false")
37969	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
37970	urls += "?" + c.urlParams_.Encode()
37971	req, err := http.NewRequest("GET", urls, body)
37972	if err != nil {
37973		return nil, err
37974	}
37975	req.Header = reqHeaders
37976	googleapi.Expand(req.URL, map[string]string{
37977		"name": c.name,
37978	})
37979	return gensupport.SendRequest(c.ctx_, c.s.client, req)
37980}
37981
37982// Do executes the "apigee.organizations.environments.traceConfig.overrides.get" call.
37983// Exactly one of *GoogleCloudApigeeV1TraceConfigOverride or error will
37984// be non-nil. Any non-2xx status code is an error. Response headers are
37985// in either
37986// *GoogleCloudApigeeV1TraceConfigOverride.ServerResponse.Header or (if
37987// a response was returned at all) in error.(*googleapi.Error).Header.
37988// Use googleapi.IsNotModified to check whether the returned error was
37989// because http.StatusNotModified was returned.
37990func (c *OrganizationsEnvironmentsTraceConfigOverridesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TraceConfigOverride, error) {
37991	gensupport.SetOptions(c.urlParams_, opts...)
37992	res, err := c.doRequest("json")
37993	if res != nil && res.StatusCode == http.StatusNotModified {
37994		if res.Body != nil {
37995			res.Body.Close()
37996		}
37997		return nil, &googleapi.Error{
37998			Code:   res.StatusCode,
37999			Header: res.Header,
38000		}
38001	}
38002	if err != nil {
38003		return nil, err
38004	}
38005	defer googleapi.CloseBody(res)
38006	if err := googleapi.CheckResponse(res); err != nil {
38007		return nil, err
38008	}
38009	ret := &GoogleCloudApigeeV1TraceConfigOverride{
38010		ServerResponse: googleapi.ServerResponse{
38011			Header:         res.Header,
38012			HTTPStatusCode: res.StatusCode,
38013		},
38014	}
38015	target := &ret
38016	if err := gensupport.DecodeResponse(target, res); err != nil {
38017		return nil, err
38018	}
38019	return ret, nil
38020	// {
38021	//   "description": "Gets a trace configuration override.",
38022	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/traceConfig/overrides/{overridesId}",
38023	//   "httpMethod": "GET",
38024	//   "id": "apigee.organizations.environments.traceConfig.overrides.get",
38025	//   "parameterOrder": [
38026	//     "name"
38027	//   ],
38028	//   "parameters": {
38029	//     "name": {
38030	//       "description": "Required. Name of the trace configuration override. Use the following structure in your request: \"organizations/*/environments/*/traceConfig/overrides/*\".",
38031	//       "location": "path",
38032	//       "pattern": "^organizations/[^/]+/environments/[^/]+/traceConfig/overrides/[^/]+$",
38033	//       "required": true,
38034	//       "type": "string"
38035	//     }
38036	//   },
38037	//   "path": "v1/{+name}",
38038	//   "response": {
38039	//     "$ref": "GoogleCloudApigeeV1TraceConfigOverride"
38040	//   },
38041	//   "scopes": [
38042	//     "https://www.googleapis.com/auth/cloud-platform"
38043	//   ]
38044	// }
38045
38046}
38047
38048// method id "apigee.organizations.environments.traceConfig.overrides.list":
38049
38050type OrganizationsEnvironmentsTraceConfigOverridesListCall struct {
38051	s            *Service
38052	parent       string
38053	urlParams_   gensupport.URLParams
38054	ifNoneMatch_ string
38055	ctx_         context.Context
38056	header_      http.Header
38057}
38058
38059// List: Lists all of the distributed trace configuration overrides in
38060// an environment.
38061//
38062// - parent: Parent resource of the trace configuration override. Use
38063//   the following structure in your request:
38064//   "organizations/*/environments/*/traceConfig".
38065func (r *OrganizationsEnvironmentsTraceConfigOverridesService) List(parent string) *OrganizationsEnvironmentsTraceConfigOverridesListCall {
38066	c := &OrganizationsEnvironmentsTraceConfigOverridesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38067	c.parent = parent
38068	return c
38069}
38070
38071// PageSize sets the optional parameter "pageSize": Maximum number of
38072// trace configuration overrides to return. If not specified, the
38073// maximum number returned is 25. The maximum number cannot exceed 100.
38074func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) PageSize(pageSize int64) *OrganizationsEnvironmentsTraceConfigOverridesListCall {
38075	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
38076	return c
38077}
38078
38079// PageToken sets the optional parameter "pageToken": A page token,
38080// returned from a previous `ListTraceConfigOverrides` call. Token value
38081// that can be used to retrieve the subsequent page. When paginating,
38082// all other parameters provided to `ListTraceConfigOverrides` must
38083// match those specified in the call to obtain the page token.
38084func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) PageToken(pageToken string) *OrganizationsEnvironmentsTraceConfigOverridesListCall {
38085	c.urlParams_.Set("pageToken", pageToken)
38086	return c
38087}
38088
38089// Fields allows partial responses to be retrieved. See
38090// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
38091// for more information.
38092func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTraceConfigOverridesListCall {
38093	c.urlParams_.Set("fields", googleapi.CombineFields(s))
38094	return c
38095}
38096
38097// IfNoneMatch sets the optional parameter which makes the operation
38098// fail if the object's ETag matches the given value. This is useful for
38099// getting updates only after the object has changed since the last
38100// request. Use googleapi.IsNotModified to check whether the response
38101// error from Do is the result of In-None-Match.
38102func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsTraceConfigOverridesListCall {
38103	c.ifNoneMatch_ = entityTag
38104	return c
38105}
38106
38107// Context sets the context to be used in this call's Do method. Any
38108// pending HTTP request will be aborted if the provided context is
38109// canceled.
38110func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) Context(ctx context.Context) *OrganizationsEnvironmentsTraceConfigOverridesListCall {
38111	c.ctx_ = ctx
38112	return c
38113}
38114
38115// Header returns an http.Header that can be modified by the caller to
38116// add HTTP headers to the request.
38117func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) Header() http.Header {
38118	if c.header_ == nil {
38119		c.header_ = make(http.Header)
38120	}
38121	return c.header_
38122}
38123
38124func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) doRequest(alt string) (*http.Response, error) {
38125	reqHeaders := make(http.Header)
38126	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
38127	for k, v := range c.header_ {
38128		reqHeaders[k] = v
38129	}
38130	reqHeaders.Set("User-Agent", c.s.userAgent())
38131	if c.ifNoneMatch_ != "" {
38132		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
38133	}
38134	var body io.Reader = nil
38135	c.urlParams_.Set("alt", alt)
38136	c.urlParams_.Set("prettyPrint", "false")
38137	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/overrides")
38138	urls += "?" + c.urlParams_.Encode()
38139	req, err := http.NewRequest("GET", urls, body)
38140	if err != nil {
38141		return nil, err
38142	}
38143	req.Header = reqHeaders
38144	googleapi.Expand(req.URL, map[string]string{
38145		"parent": c.parent,
38146	})
38147	return gensupport.SendRequest(c.ctx_, c.s.client, req)
38148}
38149
38150// Do executes the "apigee.organizations.environments.traceConfig.overrides.list" call.
38151// Exactly one of *GoogleCloudApigeeV1ListTraceConfigOverridesResponse
38152// or error will be non-nil. Any non-2xx status code is an error.
38153// Response headers are in either
38154// *GoogleCloudApigeeV1ListTraceConfigOverridesResponse.ServerResponse.He
38155// ader or (if a response was returned at all) in
38156// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
38157// whether the returned error was because http.StatusNotModified was
38158// returned.
38159func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListTraceConfigOverridesResponse, error) {
38160	gensupport.SetOptions(c.urlParams_, opts...)
38161	res, err := c.doRequest("json")
38162	if res != nil && res.StatusCode == http.StatusNotModified {
38163		if res.Body != nil {
38164			res.Body.Close()
38165		}
38166		return nil, &googleapi.Error{
38167			Code:   res.StatusCode,
38168			Header: res.Header,
38169		}
38170	}
38171	if err != nil {
38172		return nil, err
38173	}
38174	defer googleapi.CloseBody(res)
38175	if err := googleapi.CheckResponse(res); err != nil {
38176		return nil, err
38177	}
38178	ret := &GoogleCloudApigeeV1ListTraceConfigOverridesResponse{
38179		ServerResponse: googleapi.ServerResponse{
38180			Header:         res.Header,
38181			HTTPStatusCode: res.StatusCode,
38182		},
38183	}
38184	target := &ret
38185	if err := gensupport.DecodeResponse(target, res); err != nil {
38186		return nil, err
38187	}
38188	return ret, nil
38189	// {
38190	//   "description": "Lists all of the distributed trace configuration overrides in an environment.",
38191	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/traceConfig/overrides",
38192	//   "httpMethod": "GET",
38193	//   "id": "apigee.organizations.environments.traceConfig.overrides.list",
38194	//   "parameterOrder": [
38195	//     "parent"
38196	//   ],
38197	//   "parameters": {
38198	//     "pageSize": {
38199	//       "description": "Maximum number of trace configuration overrides to return. If not specified, the maximum number returned is 25. The maximum number cannot exceed 100.",
38200	//       "format": "int32",
38201	//       "location": "query",
38202	//       "type": "integer"
38203	//     },
38204	//     "pageToken": {
38205	//       "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.",
38206	//       "location": "query",
38207	//       "type": "string"
38208	//     },
38209	//     "parent": {
38210	//       "description": "Required. Parent resource of the trace configuration override. Use the following structure in your request: \"organizations/*/environments/*/traceConfig\".",
38211	//       "location": "path",
38212	//       "pattern": "^organizations/[^/]+/environments/[^/]+/traceConfig$",
38213	//       "required": true,
38214	//       "type": "string"
38215	//     }
38216	//   },
38217	//   "path": "v1/{+parent}/overrides",
38218	//   "response": {
38219	//     "$ref": "GoogleCloudApigeeV1ListTraceConfigOverridesResponse"
38220	//   },
38221	//   "scopes": [
38222	//     "https://www.googleapis.com/auth/cloud-platform"
38223	//   ]
38224	// }
38225
38226}
38227
38228// Pages invokes f for each page of results.
38229// A non-nil error returned from f will halt the iteration.
38230// The provided context supersedes any context provided to the Context method.
38231func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListTraceConfigOverridesResponse) error) error {
38232	c.ctx_ = ctx
38233	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
38234	for {
38235		x, err := c.Do()
38236		if err != nil {
38237			return err
38238		}
38239		if err := f(x); err != nil {
38240			return err
38241		}
38242		if x.NextPageToken == "" {
38243			return nil
38244		}
38245		c.PageToken(x.NextPageToken)
38246	}
38247}
38248
38249// method id "apigee.organizations.environments.traceConfig.overrides.patch":
38250
38251type OrganizationsEnvironmentsTraceConfigOverridesPatchCall struct {
38252	s                                      *Service
38253	name                                   string
38254	googlecloudapigeev1traceconfigoverride *GoogleCloudApigeeV1TraceConfigOverride
38255	urlParams_                             gensupport.URLParams
38256	ctx_                                   context.Context
38257	header_                                http.Header
38258}
38259
38260// Patch: Updates a distributed trace configuration override. Note that
38261// the repeated fields have replace semantics when included in the field
38262// mask and that they will be overwritten by the value of the fields in
38263// the request body.
38264//
38265// - name: Name of the trace configuration override. Use the following
38266//   structure in your request:
38267//   "organizations/*/environments/*/traceConfig/overrides/*".
38268func (r *OrganizationsEnvironmentsTraceConfigOverridesService) Patch(name string, googlecloudapigeev1traceconfigoverride *GoogleCloudApigeeV1TraceConfigOverride) *OrganizationsEnvironmentsTraceConfigOverridesPatchCall {
38269	c := &OrganizationsEnvironmentsTraceConfigOverridesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38270	c.name = name
38271	c.googlecloudapigeev1traceconfigoverride = googlecloudapigeev1traceconfigoverride
38272	return c
38273}
38274
38275// UpdateMask sets the optional parameter "updateMask": List of fields
38276// to be updated.
38277func (c *OrganizationsEnvironmentsTraceConfigOverridesPatchCall) UpdateMask(updateMask string) *OrganizationsEnvironmentsTraceConfigOverridesPatchCall {
38278	c.urlParams_.Set("updateMask", updateMask)
38279	return c
38280}
38281
38282// Fields allows partial responses to be retrieved. See
38283// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
38284// for more information.
38285func (c *OrganizationsEnvironmentsTraceConfigOverridesPatchCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTraceConfigOverridesPatchCall {
38286	c.urlParams_.Set("fields", googleapi.CombineFields(s))
38287	return c
38288}
38289
38290// Context sets the context to be used in this call's Do method. Any
38291// pending HTTP request will be aborted if the provided context is
38292// canceled.
38293func (c *OrganizationsEnvironmentsTraceConfigOverridesPatchCall) Context(ctx context.Context) *OrganizationsEnvironmentsTraceConfigOverridesPatchCall {
38294	c.ctx_ = ctx
38295	return c
38296}
38297
38298// Header returns an http.Header that can be modified by the caller to
38299// add HTTP headers to the request.
38300func (c *OrganizationsEnvironmentsTraceConfigOverridesPatchCall) Header() http.Header {
38301	if c.header_ == nil {
38302		c.header_ = make(http.Header)
38303	}
38304	return c.header_
38305}
38306
38307func (c *OrganizationsEnvironmentsTraceConfigOverridesPatchCall) doRequest(alt string) (*http.Response, error) {
38308	reqHeaders := make(http.Header)
38309	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
38310	for k, v := range c.header_ {
38311		reqHeaders[k] = v
38312	}
38313	reqHeaders.Set("User-Agent", c.s.userAgent())
38314	var body io.Reader = nil
38315	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1traceconfigoverride)
38316	if err != nil {
38317		return nil, err
38318	}
38319	reqHeaders.Set("Content-Type", "application/json")
38320	c.urlParams_.Set("alt", alt)
38321	c.urlParams_.Set("prettyPrint", "false")
38322	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
38323	urls += "?" + c.urlParams_.Encode()
38324	req, err := http.NewRequest("PATCH", urls, body)
38325	if err != nil {
38326		return nil, err
38327	}
38328	req.Header = reqHeaders
38329	googleapi.Expand(req.URL, map[string]string{
38330		"name": c.name,
38331	})
38332	return gensupport.SendRequest(c.ctx_, c.s.client, req)
38333}
38334
38335// Do executes the "apigee.organizations.environments.traceConfig.overrides.patch" call.
38336// Exactly one of *GoogleCloudApigeeV1TraceConfigOverride or error will
38337// be non-nil. Any non-2xx status code is an error. Response headers are
38338// in either
38339// *GoogleCloudApigeeV1TraceConfigOverride.ServerResponse.Header or (if
38340// a response was returned at all) in error.(*googleapi.Error).Header.
38341// Use googleapi.IsNotModified to check whether the returned error was
38342// because http.StatusNotModified was returned.
38343func (c *OrganizationsEnvironmentsTraceConfigOverridesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TraceConfigOverride, error) {
38344	gensupport.SetOptions(c.urlParams_, opts...)
38345	res, err := c.doRequest("json")
38346	if res != nil && res.StatusCode == http.StatusNotModified {
38347		if res.Body != nil {
38348			res.Body.Close()
38349		}
38350		return nil, &googleapi.Error{
38351			Code:   res.StatusCode,
38352			Header: res.Header,
38353		}
38354	}
38355	if err != nil {
38356		return nil, err
38357	}
38358	defer googleapi.CloseBody(res)
38359	if err := googleapi.CheckResponse(res); err != nil {
38360		return nil, err
38361	}
38362	ret := &GoogleCloudApigeeV1TraceConfigOverride{
38363		ServerResponse: googleapi.ServerResponse{
38364			Header:         res.Header,
38365			HTTPStatusCode: res.StatusCode,
38366		},
38367	}
38368	target := &ret
38369	if err := gensupport.DecodeResponse(target, res); err != nil {
38370		return nil, err
38371	}
38372	return ret, nil
38373	// {
38374	//   "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.",
38375	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/traceConfig/overrides/{overridesId}",
38376	//   "httpMethod": "PATCH",
38377	//   "id": "apigee.organizations.environments.traceConfig.overrides.patch",
38378	//   "parameterOrder": [
38379	//     "name"
38380	//   ],
38381	//   "parameters": {
38382	//     "name": {
38383	//       "description": "Required. Name of the trace configuration override. Use the following structure in your request: \"organizations/*/environments/*/traceConfig/overrides/*\".",
38384	//       "location": "path",
38385	//       "pattern": "^organizations/[^/]+/environments/[^/]+/traceConfig/overrides/[^/]+$",
38386	//       "required": true,
38387	//       "type": "string"
38388	//     },
38389	//     "updateMask": {
38390	//       "description": "List of fields to be updated.",
38391	//       "format": "google-fieldmask",
38392	//       "location": "query",
38393	//       "type": "string"
38394	//     }
38395	//   },
38396	//   "path": "v1/{+name}",
38397	//   "request": {
38398	//     "$ref": "GoogleCloudApigeeV1TraceConfigOverride"
38399	//   },
38400	//   "response": {
38401	//     "$ref": "GoogleCloudApigeeV1TraceConfigOverride"
38402	//   },
38403	//   "scopes": [
38404	//     "https://www.googleapis.com/auth/cloud-platform"
38405	//   ]
38406	// }
38407
38408}
38409
38410// method id "apigee.organizations.hostQueries.create":
38411
38412type OrganizationsHostQueriesCreateCall struct {
38413	s                        *Service
38414	parent                   string
38415	googlecloudapigeev1query *GoogleCloudApigeeV1Query
38416	urlParams_               gensupport.URLParams
38417	ctx_                     context.Context
38418	header_                  http.Header
38419}
38420
38421// Create: Submit a query at host level to be processed in the
38422// background. If the submission of the query succeeds, the API returns
38423// a 201 status and an ID that refer to the query. In addition to the
38424// HTTP status 201, the `state` of "enqueued" means that the request
38425// succeeded.
38426//
38427// - parent: The parent resource name. Must be of the form
38428//   `organizations/{org}`.
38429func (r *OrganizationsHostQueriesService) Create(parent string, googlecloudapigeev1query *GoogleCloudApigeeV1Query) *OrganizationsHostQueriesCreateCall {
38430	c := &OrganizationsHostQueriesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38431	c.parent = parent
38432	c.googlecloudapigeev1query = googlecloudapigeev1query
38433	return c
38434}
38435
38436// Fields allows partial responses to be retrieved. See
38437// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
38438// for more information.
38439func (c *OrganizationsHostQueriesCreateCall) Fields(s ...googleapi.Field) *OrganizationsHostQueriesCreateCall {
38440	c.urlParams_.Set("fields", googleapi.CombineFields(s))
38441	return c
38442}
38443
38444// Context sets the context to be used in this call's Do method. Any
38445// pending HTTP request will be aborted if the provided context is
38446// canceled.
38447func (c *OrganizationsHostQueriesCreateCall) Context(ctx context.Context) *OrganizationsHostQueriesCreateCall {
38448	c.ctx_ = ctx
38449	return c
38450}
38451
38452// Header returns an http.Header that can be modified by the caller to
38453// add HTTP headers to the request.
38454func (c *OrganizationsHostQueriesCreateCall) Header() http.Header {
38455	if c.header_ == nil {
38456		c.header_ = make(http.Header)
38457	}
38458	return c.header_
38459}
38460
38461func (c *OrganizationsHostQueriesCreateCall) doRequest(alt string) (*http.Response, error) {
38462	reqHeaders := make(http.Header)
38463	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
38464	for k, v := range c.header_ {
38465		reqHeaders[k] = v
38466	}
38467	reqHeaders.Set("User-Agent", c.s.userAgent())
38468	var body io.Reader = nil
38469	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1query)
38470	if err != nil {
38471		return nil, err
38472	}
38473	reqHeaders.Set("Content-Type", "application/json")
38474	c.urlParams_.Set("alt", alt)
38475	c.urlParams_.Set("prettyPrint", "false")
38476	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/hostQueries")
38477	urls += "?" + c.urlParams_.Encode()
38478	req, err := http.NewRequest("POST", urls, body)
38479	if err != nil {
38480		return nil, err
38481	}
38482	req.Header = reqHeaders
38483	googleapi.Expand(req.URL, map[string]string{
38484		"parent": c.parent,
38485	})
38486	return gensupport.SendRequest(c.ctx_, c.s.client, req)
38487}
38488
38489// Do executes the "apigee.organizations.hostQueries.create" call.
38490// Exactly one of *GoogleCloudApigeeV1AsyncQuery or error will be
38491// non-nil. Any non-2xx status code is an error. Response headers are in
38492// either *GoogleCloudApigeeV1AsyncQuery.ServerResponse.Header or (if a
38493// response was returned at all) in error.(*googleapi.Error).Header. Use
38494// googleapi.IsNotModified to check whether the returned error was
38495// because http.StatusNotModified was returned.
38496func (c *OrganizationsHostQueriesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AsyncQuery, error) {
38497	gensupport.SetOptions(c.urlParams_, opts...)
38498	res, err := c.doRequest("json")
38499	if res != nil && res.StatusCode == http.StatusNotModified {
38500		if res.Body != nil {
38501			res.Body.Close()
38502		}
38503		return nil, &googleapi.Error{
38504			Code:   res.StatusCode,
38505			Header: res.Header,
38506		}
38507	}
38508	if err != nil {
38509		return nil, err
38510	}
38511	defer googleapi.CloseBody(res)
38512	if err := googleapi.CheckResponse(res); err != nil {
38513		return nil, err
38514	}
38515	ret := &GoogleCloudApigeeV1AsyncQuery{
38516		ServerResponse: googleapi.ServerResponse{
38517			Header:         res.Header,
38518			HTTPStatusCode: res.StatusCode,
38519		},
38520	}
38521	target := &ret
38522	if err := gensupport.DecodeResponse(target, res); err != nil {
38523		return nil, err
38524	}
38525	return ret, nil
38526	// {
38527	//   "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.",
38528	//   "flatPath": "v1/organizations/{organizationsId}/hostQueries",
38529	//   "httpMethod": "POST",
38530	//   "id": "apigee.organizations.hostQueries.create",
38531	//   "parameterOrder": [
38532	//     "parent"
38533	//   ],
38534	//   "parameters": {
38535	//     "parent": {
38536	//       "description": "Required. The parent resource name. Must be of the form `organizations/{org}`.",
38537	//       "location": "path",
38538	//       "pattern": "^organizations/[^/]+$",
38539	//       "required": true,
38540	//       "type": "string"
38541	//     }
38542	//   },
38543	//   "path": "v1/{+parent}/hostQueries",
38544	//   "request": {
38545	//     "$ref": "GoogleCloudApigeeV1Query"
38546	//   },
38547	//   "response": {
38548	//     "$ref": "GoogleCloudApigeeV1AsyncQuery"
38549	//   },
38550	//   "scopes": [
38551	//     "https://www.googleapis.com/auth/cloud-platform"
38552	//   ]
38553	// }
38554
38555}
38556
38557// method id "apigee.organizations.hostQueries.get":
38558
38559type OrganizationsHostQueriesGetCall struct {
38560	s            *Service
38561	name         string
38562	urlParams_   gensupport.URLParams
38563	ifNoneMatch_ string
38564	ctx_         context.Context
38565	header_      http.Header
38566}
38567
38568// Get: Get status of a query submitted at host level. If the query is
38569// still in progress, the `state` is set to "running" After the query
38570// has completed successfully, `state` is set to "completed"
38571//
38572// - name: Name of the asynchronous query to get. Must be of the form
38573//   `organizations/{org}/queries/{queryId}`.
38574func (r *OrganizationsHostQueriesService) Get(name string) *OrganizationsHostQueriesGetCall {
38575	c := &OrganizationsHostQueriesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38576	c.name = name
38577	return c
38578}
38579
38580// Fields allows partial responses to be retrieved. See
38581// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
38582// for more information.
38583func (c *OrganizationsHostQueriesGetCall) Fields(s ...googleapi.Field) *OrganizationsHostQueriesGetCall {
38584	c.urlParams_.Set("fields", googleapi.CombineFields(s))
38585	return c
38586}
38587
38588// IfNoneMatch sets the optional parameter which makes the operation
38589// fail if the object's ETag matches the given value. This is useful for
38590// getting updates only after the object has changed since the last
38591// request. Use googleapi.IsNotModified to check whether the response
38592// error from Do is the result of In-None-Match.
38593func (c *OrganizationsHostQueriesGetCall) IfNoneMatch(entityTag string) *OrganizationsHostQueriesGetCall {
38594	c.ifNoneMatch_ = entityTag
38595	return c
38596}
38597
38598// Context sets the context to be used in this call's Do method. Any
38599// pending HTTP request will be aborted if the provided context is
38600// canceled.
38601func (c *OrganizationsHostQueriesGetCall) Context(ctx context.Context) *OrganizationsHostQueriesGetCall {
38602	c.ctx_ = ctx
38603	return c
38604}
38605
38606// Header returns an http.Header that can be modified by the caller to
38607// add HTTP headers to the request.
38608func (c *OrganizationsHostQueriesGetCall) Header() http.Header {
38609	if c.header_ == nil {
38610		c.header_ = make(http.Header)
38611	}
38612	return c.header_
38613}
38614
38615func (c *OrganizationsHostQueriesGetCall) doRequest(alt string) (*http.Response, error) {
38616	reqHeaders := make(http.Header)
38617	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
38618	for k, v := range c.header_ {
38619		reqHeaders[k] = v
38620	}
38621	reqHeaders.Set("User-Agent", c.s.userAgent())
38622	if c.ifNoneMatch_ != "" {
38623		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
38624	}
38625	var body io.Reader = nil
38626	c.urlParams_.Set("alt", alt)
38627	c.urlParams_.Set("prettyPrint", "false")
38628	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
38629	urls += "?" + c.urlParams_.Encode()
38630	req, err := http.NewRequest("GET", urls, body)
38631	if err != nil {
38632		return nil, err
38633	}
38634	req.Header = reqHeaders
38635	googleapi.Expand(req.URL, map[string]string{
38636		"name": c.name,
38637	})
38638	return gensupport.SendRequest(c.ctx_, c.s.client, req)
38639}
38640
38641// Do executes the "apigee.organizations.hostQueries.get" call.
38642// Exactly one of *GoogleCloudApigeeV1AsyncQuery or error will be
38643// non-nil. Any non-2xx status code is an error. Response headers are in
38644// either *GoogleCloudApigeeV1AsyncQuery.ServerResponse.Header or (if a
38645// response was returned at all) in error.(*googleapi.Error).Header. Use
38646// googleapi.IsNotModified to check whether the returned error was
38647// because http.StatusNotModified was returned.
38648func (c *OrganizationsHostQueriesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AsyncQuery, error) {
38649	gensupport.SetOptions(c.urlParams_, opts...)
38650	res, err := c.doRequest("json")
38651	if res != nil && res.StatusCode == http.StatusNotModified {
38652		if res.Body != nil {
38653			res.Body.Close()
38654		}
38655		return nil, &googleapi.Error{
38656			Code:   res.StatusCode,
38657			Header: res.Header,
38658		}
38659	}
38660	if err != nil {
38661		return nil, err
38662	}
38663	defer googleapi.CloseBody(res)
38664	if err := googleapi.CheckResponse(res); err != nil {
38665		return nil, err
38666	}
38667	ret := &GoogleCloudApigeeV1AsyncQuery{
38668		ServerResponse: googleapi.ServerResponse{
38669			Header:         res.Header,
38670			HTTPStatusCode: res.StatusCode,
38671		},
38672	}
38673	target := &ret
38674	if err := gensupport.DecodeResponse(target, res); err != nil {
38675		return nil, err
38676	}
38677	return ret, nil
38678	// {
38679	//   "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\"",
38680	//   "flatPath": "v1/organizations/{organizationsId}/hostQueries/{hostQueriesId}",
38681	//   "httpMethod": "GET",
38682	//   "id": "apigee.organizations.hostQueries.get",
38683	//   "parameterOrder": [
38684	//     "name"
38685	//   ],
38686	//   "parameters": {
38687	//     "name": {
38688	//       "description": "Required. Name of the asynchronous query to get. Must be of the form `organizations/{org}/queries/{queryId}`.",
38689	//       "location": "path",
38690	//       "pattern": "^organizations/[^/]+/hostQueries/[^/]+$",
38691	//       "required": true,
38692	//       "type": "string"
38693	//     }
38694	//   },
38695	//   "path": "v1/{+name}",
38696	//   "response": {
38697	//     "$ref": "GoogleCloudApigeeV1AsyncQuery"
38698	//   },
38699	//   "scopes": [
38700	//     "https://www.googleapis.com/auth/cloud-platform"
38701	//   ]
38702	// }
38703
38704}
38705
38706// method id "apigee.organizations.hostQueries.getResult":
38707
38708type OrganizationsHostQueriesGetResultCall struct {
38709	s            *Service
38710	name         string
38711	urlParams_   gensupport.URLParams
38712	ifNoneMatch_ string
38713	ctx_         context.Context
38714	header_      http.Header
38715}
38716
38717// GetResult: After the query is completed, use this API to retrieve the
38718// results. If the request succeeds, and there is a non-zero result set,
38719// the result is downloaded to the client as a zipped JSON file. The
38720// name of the downloaded file will be: OfflineQueryResult-.zip Example:
38721// `OfflineQueryResult-9cfc0d85-0f30-46d6-ae6f-318d0cb961bd.zip`
38722//
38723// - name: Name of the asynchronous query result to get. Must be of the
38724//   form `organizations/{org}/queries/{queryId}/result`.
38725func (r *OrganizationsHostQueriesService) GetResult(name string) *OrganizationsHostQueriesGetResultCall {
38726	c := &OrganizationsHostQueriesGetResultCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38727	c.name = name
38728	return c
38729}
38730
38731// Fields allows partial responses to be retrieved. See
38732// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
38733// for more information.
38734func (c *OrganizationsHostQueriesGetResultCall) Fields(s ...googleapi.Field) *OrganizationsHostQueriesGetResultCall {
38735	c.urlParams_.Set("fields", googleapi.CombineFields(s))
38736	return c
38737}
38738
38739// IfNoneMatch sets the optional parameter which makes the operation
38740// fail if the object's ETag matches the given value. This is useful for
38741// getting updates only after the object has changed since the last
38742// request. Use googleapi.IsNotModified to check whether the response
38743// error from Do is the result of In-None-Match.
38744func (c *OrganizationsHostQueriesGetResultCall) IfNoneMatch(entityTag string) *OrganizationsHostQueriesGetResultCall {
38745	c.ifNoneMatch_ = entityTag
38746	return c
38747}
38748
38749// Context sets the context to be used in this call's Do method. Any
38750// pending HTTP request will be aborted if the provided context is
38751// canceled.
38752func (c *OrganizationsHostQueriesGetResultCall) Context(ctx context.Context) *OrganizationsHostQueriesGetResultCall {
38753	c.ctx_ = ctx
38754	return c
38755}
38756
38757// Header returns an http.Header that can be modified by the caller to
38758// add HTTP headers to the request.
38759func (c *OrganizationsHostQueriesGetResultCall) Header() http.Header {
38760	if c.header_ == nil {
38761		c.header_ = make(http.Header)
38762	}
38763	return c.header_
38764}
38765
38766func (c *OrganizationsHostQueriesGetResultCall) doRequest(alt string) (*http.Response, error) {
38767	reqHeaders := make(http.Header)
38768	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
38769	for k, v := range c.header_ {
38770		reqHeaders[k] = v
38771	}
38772	reqHeaders.Set("User-Agent", c.s.userAgent())
38773	if c.ifNoneMatch_ != "" {
38774		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
38775	}
38776	var body io.Reader = nil
38777	c.urlParams_.Set("alt", alt)
38778	c.urlParams_.Set("prettyPrint", "false")
38779	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
38780	urls += "?" + c.urlParams_.Encode()
38781	req, err := http.NewRequest("GET", urls, body)
38782	if err != nil {
38783		return nil, err
38784	}
38785	req.Header = reqHeaders
38786	googleapi.Expand(req.URL, map[string]string{
38787		"name": c.name,
38788	})
38789	return gensupport.SendRequest(c.ctx_, c.s.client, req)
38790}
38791
38792// Do executes the "apigee.organizations.hostQueries.getResult" call.
38793// Exactly one of *GoogleApiHttpBody or error will be non-nil. Any
38794// non-2xx status code is an error. Response headers are in either
38795// *GoogleApiHttpBody.ServerResponse.Header or (if a response was
38796// returned at all) in error.(*googleapi.Error).Header. Use
38797// googleapi.IsNotModified to check whether the returned error was
38798// because http.StatusNotModified was returned.
38799func (c *OrganizationsHostQueriesGetResultCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
38800	gensupport.SetOptions(c.urlParams_, opts...)
38801	res, err := c.doRequest("json")
38802	if res != nil && res.StatusCode == http.StatusNotModified {
38803		if res.Body != nil {
38804			res.Body.Close()
38805		}
38806		return nil, &googleapi.Error{
38807			Code:   res.StatusCode,
38808			Header: res.Header,
38809		}
38810	}
38811	if err != nil {
38812		return nil, err
38813	}
38814	defer googleapi.CloseBody(res)
38815	if err := googleapi.CheckResponse(res); err != nil {
38816		return nil, err
38817	}
38818	ret := &GoogleApiHttpBody{
38819		ServerResponse: googleapi.ServerResponse{
38820			Header:         res.Header,
38821			HTTPStatusCode: res.StatusCode,
38822		},
38823	}
38824	target := &ret
38825	if err := gensupport.DecodeResponse(target, res); err != nil {
38826		return nil, err
38827	}
38828	return ret, nil
38829	// {
38830	//   "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`",
38831	//   "flatPath": "v1/organizations/{organizationsId}/hostQueries/{hostQueriesId}/result",
38832	//   "httpMethod": "GET",
38833	//   "id": "apigee.organizations.hostQueries.getResult",
38834	//   "parameterOrder": [
38835	//     "name"
38836	//   ],
38837	//   "parameters": {
38838	//     "name": {
38839	//       "description": "Required. Name of the asynchronous query result to get. Must be of the form `organizations/{org}/queries/{queryId}/result`.",
38840	//       "location": "path",
38841	//       "pattern": "^organizations/[^/]+/hostQueries/[^/]+/result$",
38842	//       "required": true,
38843	//       "type": "string"
38844	//     }
38845	//   },
38846	//   "path": "v1/{+name}",
38847	//   "response": {
38848	//     "$ref": "GoogleApiHttpBody"
38849	//   },
38850	//   "scopes": [
38851	//     "https://www.googleapis.com/auth/cloud-platform"
38852	//   ]
38853	// }
38854
38855}
38856
38857// method id "apigee.organizations.hostQueries.getResultView":
38858
38859type OrganizationsHostQueriesGetResultViewCall struct {
38860	s            *Service
38861	name         string
38862	urlParams_   gensupport.URLParams
38863	ifNoneMatch_ string
38864	ctx_         context.Context
38865	header_      http.Header
38866}
38867
38868// GetResultView:
38869//
38870// - name: Name of the asynchronous query result view to get. Must be of
38871//   the form `organizations/{org}/queries/{queryId}/resultView`.
38872func (r *OrganizationsHostQueriesService) GetResultView(name string) *OrganizationsHostQueriesGetResultViewCall {
38873	c := &OrganizationsHostQueriesGetResultViewCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38874	c.name = name
38875	return c
38876}
38877
38878// Fields allows partial responses to be retrieved. See
38879// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
38880// for more information.
38881func (c *OrganizationsHostQueriesGetResultViewCall) Fields(s ...googleapi.Field) *OrganizationsHostQueriesGetResultViewCall {
38882	c.urlParams_.Set("fields", googleapi.CombineFields(s))
38883	return c
38884}
38885
38886// IfNoneMatch sets the optional parameter which makes the operation
38887// fail if the object's ETag matches the given value. This is useful for
38888// getting updates only after the object has changed since the last
38889// request. Use googleapi.IsNotModified to check whether the response
38890// error from Do is the result of In-None-Match.
38891func (c *OrganizationsHostQueriesGetResultViewCall) IfNoneMatch(entityTag string) *OrganizationsHostQueriesGetResultViewCall {
38892	c.ifNoneMatch_ = entityTag
38893	return c
38894}
38895
38896// Context sets the context to be used in this call's Do method. Any
38897// pending HTTP request will be aborted if the provided context is
38898// canceled.
38899func (c *OrganizationsHostQueriesGetResultViewCall) Context(ctx context.Context) *OrganizationsHostQueriesGetResultViewCall {
38900	c.ctx_ = ctx
38901	return c
38902}
38903
38904// Header returns an http.Header that can be modified by the caller to
38905// add HTTP headers to the request.
38906func (c *OrganizationsHostQueriesGetResultViewCall) Header() http.Header {
38907	if c.header_ == nil {
38908		c.header_ = make(http.Header)
38909	}
38910	return c.header_
38911}
38912
38913func (c *OrganizationsHostQueriesGetResultViewCall) doRequest(alt string) (*http.Response, error) {
38914	reqHeaders := make(http.Header)
38915	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
38916	for k, v := range c.header_ {
38917		reqHeaders[k] = v
38918	}
38919	reqHeaders.Set("User-Agent", c.s.userAgent())
38920	if c.ifNoneMatch_ != "" {
38921		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
38922	}
38923	var body io.Reader = nil
38924	c.urlParams_.Set("alt", alt)
38925	c.urlParams_.Set("prettyPrint", "false")
38926	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
38927	urls += "?" + c.urlParams_.Encode()
38928	req, err := http.NewRequest("GET", urls, body)
38929	if err != nil {
38930		return nil, err
38931	}
38932	req.Header = reqHeaders
38933	googleapi.Expand(req.URL, map[string]string{
38934		"name": c.name,
38935	})
38936	return gensupport.SendRequest(c.ctx_, c.s.client, req)
38937}
38938
38939// Do executes the "apigee.organizations.hostQueries.getResultView" call.
38940// Exactly one of *GoogleCloudApigeeV1AsyncQueryResultView or error will
38941// be non-nil. Any non-2xx status code is an error. Response headers are
38942// in either
38943// *GoogleCloudApigeeV1AsyncQueryResultView.ServerResponse.Header or (if
38944// a response was returned at all) in error.(*googleapi.Error).Header.
38945// Use googleapi.IsNotModified to check whether the returned error was
38946// because http.StatusNotModified was returned.
38947func (c *OrganizationsHostQueriesGetResultViewCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AsyncQueryResultView, error) {
38948	gensupport.SetOptions(c.urlParams_, opts...)
38949	res, err := c.doRequest("json")
38950	if res != nil && res.StatusCode == http.StatusNotModified {
38951		if res.Body != nil {
38952			res.Body.Close()
38953		}
38954		return nil, &googleapi.Error{
38955			Code:   res.StatusCode,
38956			Header: res.Header,
38957		}
38958	}
38959	if err != nil {
38960		return nil, err
38961	}
38962	defer googleapi.CloseBody(res)
38963	if err := googleapi.CheckResponse(res); err != nil {
38964		return nil, err
38965	}
38966	ret := &GoogleCloudApigeeV1AsyncQueryResultView{
38967		ServerResponse: googleapi.ServerResponse{
38968			Header:         res.Header,
38969			HTTPStatusCode: res.StatusCode,
38970		},
38971	}
38972	target := &ret
38973	if err := gensupport.DecodeResponse(target, res); err != nil {
38974		return nil, err
38975	}
38976	return ret, nil
38977	// {
38978	//   "description": "",
38979	//   "flatPath": "v1/organizations/{organizationsId}/hostQueries/{hostQueriesId}/resultView",
38980	//   "httpMethod": "GET",
38981	//   "id": "apigee.organizations.hostQueries.getResultView",
38982	//   "parameterOrder": [
38983	//     "name"
38984	//   ],
38985	//   "parameters": {
38986	//     "name": {
38987	//       "description": "Required. Name of the asynchronous query result view to get. Must be of the form `organizations/{org}/queries/{queryId}/resultView`.",
38988	//       "location": "path",
38989	//       "pattern": "^organizations/[^/]+/hostQueries/[^/]+/resultView$",
38990	//       "required": true,
38991	//       "type": "string"
38992	//     }
38993	//   },
38994	//   "path": "v1/{+name}",
38995	//   "response": {
38996	//     "$ref": "GoogleCloudApigeeV1AsyncQueryResultView"
38997	//   },
38998	//   "scopes": [
38999	//     "https://www.googleapis.com/auth/cloud-platform"
39000	//   ]
39001	// }
39002
39003}
39004
39005// method id "apigee.organizations.hostQueries.list":
39006
39007type OrganizationsHostQueriesListCall struct {
39008	s            *Service
39009	parent       string
39010	urlParams_   gensupport.URLParams
39011	ifNoneMatch_ string
39012	ctx_         context.Context
39013	header_      http.Header
39014}
39015
39016// List: Return a list of Asynchronous Queries at host level.
39017//
39018// - parent: The parent resource name. Must be of the form
39019//   `organizations/{org}`.
39020func (r *OrganizationsHostQueriesService) List(parent string) *OrganizationsHostQueriesListCall {
39021	c := &OrganizationsHostQueriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39022	c.parent = parent
39023	return c
39024}
39025
39026// Dataset sets the optional parameter "dataset": Filter response list
39027// by dataset. Example: `api`, `mint`
39028func (c *OrganizationsHostQueriesListCall) Dataset(dataset string) *OrganizationsHostQueriesListCall {
39029	c.urlParams_.Set("dataset", dataset)
39030	return c
39031}
39032
39033// EnvgroupHostname sets the optional parameter "envgroupHostname":
39034// Required. Filter response list by hostname.
39035func (c *OrganizationsHostQueriesListCall) EnvgroupHostname(envgroupHostname string) *OrganizationsHostQueriesListCall {
39036	c.urlParams_.Set("envgroupHostname", envgroupHostname)
39037	return c
39038}
39039
39040// From sets the optional parameter "from": Filter response list by
39041// returning asynchronous queries that created after this date time.
39042// Time must be in ISO date-time format like '2011-12-03T10:15:30Z'.
39043func (c *OrganizationsHostQueriesListCall) From(from string) *OrganizationsHostQueriesListCall {
39044	c.urlParams_.Set("from", from)
39045	return c
39046}
39047
39048// InclQueriesWithoutReport sets the optional parameter
39049// "inclQueriesWithoutReport": Flag to include asynchronous queries that
39050// don't have a report denifition.
39051func (c *OrganizationsHostQueriesListCall) InclQueriesWithoutReport(inclQueriesWithoutReport string) *OrganizationsHostQueriesListCall {
39052	c.urlParams_.Set("inclQueriesWithoutReport", inclQueriesWithoutReport)
39053	return c
39054}
39055
39056// Status sets the optional parameter "status": Filter response list by
39057// asynchronous query status.
39058func (c *OrganizationsHostQueriesListCall) Status(status string) *OrganizationsHostQueriesListCall {
39059	c.urlParams_.Set("status", status)
39060	return c
39061}
39062
39063// SubmittedBy sets the optional parameter "submittedBy": Filter
39064// response list by user who submitted queries.
39065func (c *OrganizationsHostQueriesListCall) SubmittedBy(submittedBy string) *OrganizationsHostQueriesListCall {
39066	c.urlParams_.Set("submittedBy", submittedBy)
39067	return c
39068}
39069
39070// To sets the optional parameter "to": Filter response list by
39071// returning asynchronous queries that created before this date time.
39072// Time must be in ISO date-time format like '2011-12-03T10:16:30Z'.
39073func (c *OrganizationsHostQueriesListCall) To(to string) *OrganizationsHostQueriesListCall {
39074	c.urlParams_.Set("to", to)
39075	return c
39076}
39077
39078// Fields allows partial responses to be retrieved. See
39079// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
39080// for more information.
39081func (c *OrganizationsHostQueriesListCall) Fields(s ...googleapi.Field) *OrganizationsHostQueriesListCall {
39082	c.urlParams_.Set("fields", googleapi.CombineFields(s))
39083	return c
39084}
39085
39086// IfNoneMatch sets the optional parameter which makes the operation
39087// fail if the object's ETag matches the given value. This is useful for
39088// getting updates only after the object has changed since the last
39089// request. Use googleapi.IsNotModified to check whether the response
39090// error from Do is the result of In-None-Match.
39091func (c *OrganizationsHostQueriesListCall) IfNoneMatch(entityTag string) *OrganizationsHostQueriesListCall {
39092	c.ifNoneMatch_ = entityTag
39093	return c
39094}
39095
39096// Context sets the context to be used in this call's Do method. Any
39097// pending HTTP request will be aborted if the provided context is
39098// canceled.
39099func (c *OrganizationsHostQueriesListCall) Context(ctx context.Context) *OrganizationsHostQueriesListCall {
39100	c.ctx_ = ctx
39101	return c
39102}
39103
39104// Header returns an http.Header that can be modified by the caller to
39105// add HTTP headers to the request.
39106func (c *OrganizationsHostQueriesListCall) Header() http.Header {
39107	if c.header_ == nil {
39108		c.header_ = make(http.Header)
39109	}
39110	return c.header_
39111}
39112
39113func (c *OrganizationsHostQueriesListCall) doRequest(alt string) (*http.Response, error) {
39114	reqHeaders := make(http.Header)
39115	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
39116	for k, v := range c.header_ {
39117		reqHeaders[k] = v
39118	}
39119	reqHeaders.Set("User-Agent", c.s.userAgent())
39120	if c.ifNoneMatch_ != "" {
39121		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
39122	}
39123	var body io.Reader = nil
39124	c.urlParams_.Set("alt", alt)
39125	c.urlParams_.Set("prettyPrint", "false")
39126	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/hostQueries")
39127	urls += "?" + c.urlParams_.Encode()
39128	req, err := http.NewRequest("GET", urls, body)
39129	if err != nil {
39130		return nil, err
39131	}
39132	req.Header = reqHeaders
39133	googleapi.Expand(req.URL, map[string]string{
39134		"parent": c.parent,
39135	})
39136	return gensupport.SendRequest(c.ctx_, c.s.client, req)
39137}
39138
39139// Do executes the "apigee.organizations.hostQueries.list" call.
39140// Exactly one of *GoogleCloudApigeeV1ListAsyncQueriesResponse or error
39141// will be non-nil. Any non-2xx status code is an error. Response
39142// headers are in either
39143// *GoogleCloudApigeeV1ListAsyncQueriesResponse.ServerResponse.Header or
39144// (if a response was returned at all) in
39145// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
39146// whether the returned error was because http.StatusNotModified was
39147// returned.
39148func (c *OrganizationsHostQueriesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListAsyncQueriesResponse, error) {
39149	gensupport.SetOptions(c.urlParams_, opts...)
39150	res, err := c.doRequest("json")
39151	if res != nil && res.StatusCode == http.StatusNotModified {
39152		if res.Body != nil {
39153			res.Body.Close()
39154		}
39155		return nil, &googleapi.Error{
39156			Code:   res.StatusCode,
39157			Header: res.Header,
39158		}
39159	}
39160	if err != nil {
39161		return nil, err
39162	}
39163	defer googleapi.CloseBody(res)
39164	if err := googleapi.CheckResponse(res); err != nil {
39165		return nil, err
39166	}
39167	ret := &GoogleCloudApigeeV1ListAsyncQueriesResponse{
39168		ServerResponse: googleapi.ServerResponse{
39169			Header:         res.Header,
39170			HTTPStatusCode: res.StatusCode,
39171		},
39172	}
39173	target := &ret
39174	if err := gensupport.DecodeResponse(target, res); err != nil {
39175		return nil, err
39176	}
39177	return ret, nil
39178	// {
39179	//   "description": "Return a list of Asynchronous Queries at host level.",
39180	//   "flatPath": "v1/organizations/{organizationsId}/hostQueries",
39181	//   "httpMethod": "GET",
39182	//   "id": "apigee.organizations.hostQueries.list",
39183	//   "parameterOrder": [
39184	//     "parent"
39185	//   ],
39186	//   "parameters": {
39187	//     "dataset": {
39188	//       "description": "Filter response list by dataset. Example: `api`, `mint`",
39189	//       "location": "query",
39190	//       "type": "string"
39191	//     },
39192	//     "envgroupHostname": {
39193	//       "description": "Required. Filter response list by hostname.",
39194	//       "location": "query",
39195	//       "type": "string"
39196	//     },
39197	//     "from": {
39198	//       "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'.",
39199	//       "location": "query",
39200	//       "type": "string"
39201	//     },
39202	//     "inclQueriesWithoutReport": {
39203	//       "description": "Flag to include asynchronous queries that don't have a report denifition.",
39204	//       "location": "query",
39205	//       "type": "string"
39206	//     },
39207	//     "parent": {
39208	//       "description": "Required. The parent resource name. Must be of the form `organizations/{org}`.",
39209	//       "location": "path",
39210	//       "pattern": "^organizations/[^/]+$",
39211	//       "required": true,
39212	//       "type": "string"
39213	//     },
39214	//     "status": {
39215	//       "description": "Filter response list by asynchronous query status.",
39216	//       "location": "query",
39217	//       "type": "string"
39218	//     },
39219	//     "submittedBy": {
39220	//       "description": "Filter response list by user who submitted queries.",
39221	//       "location": "query",
39222	//       "type": "string"
39223	//     },
39224	//     "to": {
39225	//       "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'.",
39226	//       "location": "query",
39227	//       "type": "string"
39228	//     }
39229	//   },
39230	//   "path": "v1/{+parent}/hostQueries",
39231	//   "response": {
39232	//     "$ref": "GoogleCloudApigeeV1ListAsyncQueriesResponse"
39233	//   },
39234	//   "scopes": [
39235	//     "https://www.googleapis.com/auth/cloud-platform"
39236	//   ]
39237	// }
39238
39239}
39240
39241// method id "apigee.organizations.hostStats.get":
39242
39243type OrganizationsHostStatsGetCall struct {
39244	s            *Service
39245	name         string
39246	urlParams_   gensupport.URLParams
39247	ifNoneMatch_ string
39248	ctx_         context.Context
39249	header_      http.Header
39250}
39251
39252// Get: Retrieve metrics grouped by dimensions in host level. The types
39253// of metrics you can retrieve include traffic, message counts, API call
39254// latency, response size, and cache hits and counts. Dimensions let you
39255// view metrics in meaningful groups. The stats api does accept
39256// dimensions as path params. The dimensions are optional in which case
39257// the metrics are computed on the entire data for the given timerange.
39258//
39259// - name: The resource name for which the interactive query will be
39260//   executed. Must be of the form
39261//   `organizations/{organization_id}/hostStats/{dimensions}`.
39262//   Dimensions let you view metrics in meaningful groupings. E.g.
39263//   apiproxy, target_host. The value of dimensions should be comma
39264//   separated list as shown below
39265//   `organizations/{org}/hostStats/apiproxy,request_verb`.
39266func (r *OrganizationsHostStatsService) Get(name string) *OrganizationsHostStatsGetCall {
39267	c := &OrganizationsHostStatsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39268	c.name = name
39269	return c
39270}
39271
39272// Accuracy sets the optional parameter "accuracy": Legacy field: not
39273// used anymore.
39274func (c *OrganizationsHostStatsGetCall) Accuracy(accuracy string) *OrganizationsHostStatsGetCall {
39275	c.urlParams_.Set("accuracy", accuracy)
39276	return c
39277}
39278
39279// EnvgroupHostname sets the optional parameter "envgroupHostname":
39280// Required. The hostname for which the interactive query will be
39281// executed.
39282func (c *OrganizationsHostStatsGetCall) EnvgroupHostname(envgroupHostname string) *OrganizationsHostStatsGetCall {
39283	c.urlParams_.Set("envgroupHostname", envgroupHostname)
39284	return c
39285}
39286
39287// Filter sets the optional parameter "filter": Enables drill-down on
39288// specific dimension values.
39289func (c *OrganizationsHostStatsGetCall) Filter(filter string) *OrganizationsHostStatsGetCall {
39290	c.urlParams_.Set("filter", filter)
39291	return c
39292}
39293
39294// Limit sets the optional parameter "limit": This parameter is used to
39295// limit the number of result items. Default and the max value is 14400.
39296func (c *OrganizationsHostStatsGetCall) Limit(limit string) *OrganizationsHostStatsGetCall {
39297	c.urlParams_.Set("limit", limit)
39298	return c
39299}
39300
39301// Offset sets the optional parameter "offset": Use offset with limit to
39302// enable pagination of results. For example, to display results 11-20,
39303// set limit to '10' and offset to '10'.
39304func (c *OrganizationsHostStatsGetCall) Offset(offset string) *OrganizationsHostStatsGetCall {
39305	c.urlParams_.Set("offset", offset)
39306	return c
39307}
39308
39309// Realtime sets the optional parameter "realtime": Legacy field: not
39310// used anymore.
39311func (c *OrganizationsHostStatsGetCall) Realtime(realtime bool) *OrganizationsHostStatsGetCall {
39312	c.urlParams_.Set("realtime", fmt.Sprint(realtime))
39313	return c
39314}
39315
39316// Select sets the optional parameter "select": The select parameter
39317// contains a comma separated list of metrics. E.g.
39318// sum(message_count),sum(error_count)
39319func (c *OrganizationsHostStatsGetCall) Select(select_ string) *OrganizationsHostStatsGetCall {
39320	c.urlParams_.Set("select", select_)
39321	return c
39322}
39323
39324// Sort sets the optional parameter "sort": This parameter specifies if
39325// the sort order should be ascending or descending Supported values are
39326// DESC and ASC.
39327func (c *OrganizationsHostStatsGetCall) Sort(sort string) *OrganizationsHostStatsGetCall {
39328	c.urlParams_.Set("sort", sort)
39329	return c
39330}
39331
39332// Sortby sets the optional parameter "sortby": Comma separated list of
39333// columns to sort the final result.
39334func (c *OrganizationsHostStatsGetCall) Sortby(sortby string) *OrganizationsHostStatsGetCall {
39335	c.urlParams_.Set("sortby", sortby)
39336	return c
39337}
39338
39339// TimeRange sets the optional parameter "timeRange": Time interval for
39340// the interactive query. Time range is specified as start~end E.g.
39341// 04/15/2017 00:00~05/15/2017 23:59
39342func (c *OrganizationsHostStatsGetCall) TimeRange(timeRange string) *OrganizationsHostStatsGetCall {
39343	c.urlParams_.Set("timeRange", timeRange)
39344	return c
39345}
39346
39347// TimeUnit sets the optional parameter "timeUnit": A value of second,
39348// minute, hour, day, week, month. Time Unit specifies the granularity
39349// of metrics returned.
39350func (c *OrganizationsHostStatsGetCall) TimeUnit(timeUnit string) *OrganizationsHostStatsGetCall {
39351	c.urlParams_.Set("timeUnit", timeUnit)
39352	return c
39353}
39354
39355// Topk sets the optional parameter "topk": Take 'top k' results from
39356// results, for example, to return the top 5 results 'topk=5'.
39357func (c *OrganizationsHostStatsGetCall) Topk(topk string) *OrganizationsHostStatsGetCall {
39358	c.urlParams_.Set("topk", topk)
39359	return c
39360}
39361
39362// TsAscending sets the optional parameter "tsAscending": Lists
39363// timestamps in ascending order if set to true. Recommend setting this
39364// value to true if you are using sortby with sort=DESC.
39365func (c *OrganizationsHostStatsGetCall) TsAscending(tsAscending bool) *OrganizationsHostStatsGetCall {
39366	c.urlParams_.Set("tsAscending", fmt.Sprint(tsAscending))
39367	return c
39368}
39369
39370// Tzo sets the optional parameter "tzo": This parameters contains the
39371// timezone offset value.
39372func (c *OrganizationsHostStatsGetCall) Tzo(tzo string) *OrganizationsHostStatsGetCall {
39373	c.urlParams_.Set("tzo", tzo)
39374	return c
39375}
39376
39377// Fields allows partial responses to be retrieved. See
39378// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
39379// for more information.
39380func (c *OrganizationsHostStatsGetCall) Fields(s ...googleapi.Field) *OrganizationsHostStatsGetCall {
39381	c.urlParams_.Set("fields", googleapi.CombineFields(s))
39382	return c
39383}
39384
39385// IfNoneMatch sets the optional parameter which makes the operation
39386// fail if the object's ETag matches the given value. This is useful for
39387// getting updates only after the object has changed since the last
39388// request. Use googleapi.IsNotModified to check whether the response
39389// error from Do is the result of In-None-Match.
39390func (c *OrganizationsHostStatsGetCall) IfNoneMatch(entityTag string) *OrganizationsHostStatsGetCall {
39391	c.ifNoneMatch_ = entityTag
39392	return c
39393}
39394
39395// Context sets the context to be used in this call's Do method. Any
39396// pending HTTP request will be aborted if the provided context is
39397// canceled.
39398func (c *OrganizationsHostStatsGetCall) Context(ctx context.Context) *OrganizationsHostStatsGetCall {
39399	c.ctx_ = ctx
39400	return c
39401}
39402
39403// Header returns an http.Header that can be modified by the caller to
39404// add HTTP headers to the request.
39405func (c *OrganizationsHostStatsGetCall) Header() http.Header {
39406	if c.header_ == nil {
39407		c.header_ = make(http.Header)
39408	}
39409	return c.header_
39410}
39411
39412func (c *OrganizationsHostStatsGetCall) doRequest(alt string) (*http.Response, error) {
39413	reqHeaders := make(http.Header)
39414	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
39415	for k, v := range c.header_ {
39416		reqHeaders[k] = v
39417	}
39418	reqHeaders.Set("User-Agent", c.s.userAgent())
39419	if c.ifNoneMatch_ != "" {
39420		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
39421	}
39422	var body io.Reader = nil
39423	c.urlParams_.Set("alt", alt)
39424	c.urlParams_.Set("prettyPrint", "false")
39425	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
39426	urls += "?" + c.urlParams_.Encode()
39427	req, err := http.NewRequest("GET", urls, body)
39428	if err != nil {
39429		return nil, err
39430	}
39431	req.Header = reqHeaders
39432	googleapi.Expand(req.URL, map[string]string{
39433		"name": c.name,
39434	})
39435	return gensupport.SendRequest(c.ctx_, c.s.client, req)
39436}
39437
39438// Do executes the "apigee.organizations.hostStats.get" call.
39439// Exactly one of *GoogleCloudApigeeV1Stats or error will be non-nil.
39440// Any non-2xx status code is an error. Response headers are in either
39441// *GoogleCloudApigeeV1Stats.ServerResponse.Header or (if a response was
39442// returned at all) in error.(*googleapi.Error).Header. Use
39443// googleapi.IsNotModified to check whether the returned error was
39444// because http.StatusNotModified was returned.
39445func (c *OrganizationsHostStatsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Stats, error) {
39446	gensupport.SetOptions(c.urlParams_, opts...)
39447	res, err := c.doRequest("json")
39448	if res != nil && res.StatusCode == http.StatusNotModified {
39449		if res.Body != nil {
39450			res.Body.Close()
39451		}
39452		return nil, &googleapi.Error{
39453			Code:   res.StatusCode,
39454			Header: res.Header,
39455		}
39456	}
39457	if err != nil {
39458		return nil, err
39459	}
39460	defer googleapi.CloseBody(res)
39461	if err := googleapi.CheckResponse(res); err != nil {
39462		return nil, err
39463	}
39464	ret := &GoogleCloudApigeeV1Stats{
39465		ServerResponse: googleapi.ServerResponse{
39466			Header:         res.Header,
39467			HTTPStatusCode: res.StatusCode,
39468		},
39469	}
39470	target := &ret
39471	if err := gensupport.DecodeResponse(target, res); err != nil {
39472		return nil, err
39473	}
39474	return ret, nil
39475	// {
39476	//   "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.",
39477	//   "flatPath": "v1/organizations/{organizationsId}/hostStats/{hostStatsId}",
39478	//   "httpMethod": "GET",
39479	//   "id": "apigee.organizations.hostStats.get",
39480	//   "parameterOrder": [
39481	//     "name"
39482	//   ],
39483	//   "parameters": {
39484	//     "accuracy": {
39485	//       "description": "Legacy field: not used anymore.",
39486	//       "location": "query",
39487	//       "type": "string"
39488	//     },
39489	//     "envgroupHostname": {
39490	//       "description": "Required. The hostname for which the interactive query will be executed.",
39491	//       "location": "query",
39492	//       "type": "string"
39493	//     },
39494	//     "filter": {
39495	//       "description": "Enables drill-down on specific dimension values.",
39496	//       "location": "query",
39497	//       "type": "string"
39498	//     },
39499	//     "limit": {
39500	//       "description": "This parameter is used to limit the number of result items. Default and the max value is 14400.",
39501	//       "location": "query",
39502	//       "type": "string"
39503	//     },
39504	//     "name": {
39505	//       "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`",
39506	//       "location": "path",
39507	//       "pattern": "^organizations/[^/]+/hostStats/.*$",
39508	//       "required": true,
39509	//       "type": "string"
39510	//     },
39511	//     "offset": {
39512	//       "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'.",
39513	//       "location": "query",
39514	//       "type": "string"
39515	//     },
39516	//     "realtime": {
39517	//       "description": "Legacy field: not used anymore.",
39518	//       "location": "query",
39519	//       "type": "boolean"
39520	//     },
39521	//     "select": {
39522	//       "description": "The select parameter contains a comma separated list of metrics. E.g. sum(message_count),sum(error_count)",
39523	//       "location": "query",
39524	//       "type": "string"
39525	//     },
39526	//     "sort": {
39527	//       "description": "This parameter specifies if the sort order should be ascending or descending Supported values are DESC and ASC.",
39528	//       "location": "query",
39529	//       "type": "string"
39530	//     },
39531	//     "sortby": {
39532	//       "description": "Comma separated list of columns to sort the final result.",
39533	//       "location": "query",
39534	//       "type": "string"
39535	//     },
39536	//     "timeRange": {
39537	//       "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",
39538	//       "location": "query",
39539	//       "type": "string"
39540	//     },
39541	//     "timeUnit": {
39542	//       "description": "A value of second, minute, hour, day, week, month. Time Unit specifies the granularity of metrics returned.",
39543	//       "location": "query",
39544	//       "type": "string"
39545	//     },
39546	//     "topk": {
39547	//       "description": "Take 'top k' results from results, for example, to return the top 5 results 'topk=5'.",
39548	//       "location": "query",
39549	//       "type": "string"
39550	//     },
39551	//     "tsAscending": {
39552	//       "description": "Lists timestamps in ascending order if set to true. Recommend setting this value to true if you are using sortby with sort=DESC.",
39553	//       "location": "query",
39554	//       "type": "boolean"
39555	//     },
39556	//     "tzo": {
39557	//       "description": "This parameters contains the timezone offset value.",
39558	//       "location": "query",
39559	//       "type": "string"
39560	//     }
39561	//   },
39562	//   "path": "v1/{+name}",
39563	//   "response": {
39564	//     "$ref": "GoogleCloudApigeeV1Stats"
39565	//   },
39566	//   "scopes": [
39567	//     "https://www.googleapis.com/auth/cloud-platform"
39568	//   ]
39569	// }
39570
39571}
39572
39573// method id "apigee.organizations.instances.create":
39574
39575type OrganizationsInstancesCreateCall struct {
39576	s                           *Service
39577	parent                      string
39578	googlecloudapigeev1instance *GoogleCloudApigeeV1Instance
39579	urlParams_                  gensupport.URLParams
39580	ctx_                        context.Context
39581	header_                     http.Header
39582}
39583
39584// Create: Creates an Apigee runtime instance. The instance is
39585// accessible from the authorized network configured on the
39586// organization. **Note:** Not supported for Apigee hybrid.
39587//
39588// - parent: Name of the organization. Use the following structure in
39589//   your request: `organizations/{org}`.
39590func (r *OrganizationsInstancesService) Create(parent string, googlecloudapigeev1instance *GoogleCloudApigeeV1Instance) *OrganizationsInstancesCreateCall {
39591	c := &OrganizationsInstancesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39592	c.parent = parent
39593	c.googlecloudapigeev1instance = googlecloudapigeev1instance
39594	return c
39595}
39596
39597// Fields allows partial responses to be retrieved. See
39598// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
39599// for more information.
39600func (c *OrganizationsInstancesCreateCall) Fields(s ...googleapi.Field) *OrganizationsInstancesCreateCall {
39601	c.urlParams_.Set("fields", googleapi.CombineFields(s))
39602	return c
39603}
39604
39605// Context sets the context to be used in this call's Do method. Any
39606// pending HTTP request will be aborted if the provided context is
39607// canceled.
39608func (c *OrganizationsInstancesCreateCall) Context(ctx context.Context) *OrganizationsInstancesCreateCall {
39609	c.ctx_ = ctx
39610	return c
39611}
39612
39613// Header returns an http.Header that can be modified by the caller to
39614// add HTTP headers to the request.
39615func (c *OrganizationsInstancesCreateCall) Header() http.Header {
39616	if c.header_ == nil {
39617		c.header_ = make(http.Header)
39618	}
39619	return c.header_
39620}
39621
39622func (c *OrganizationsInstancesCreateCall) doRequest(alt string) (*http.Response, error) {
39623	reqHeaders := make(http.Header)
39624	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
39625	for k, v := range c.header_ {
39626		reqHeaders[k] = v
39627	}
39628	reqHeaders.Set("User-Agent", c.s.userAgent())
39629	var body io.Reader = nil
39630	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1instance)
39631	if err != nil {
39632		return nil, err
39633	}
39634	reqHeaders.Set("Content-Type", "application/json")
39635	c.urlParams_.Set("alt", alt)
39636	c.urlParams_.Set("prettyPrint", "false")
39637	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/instances")
39638	urls += "?" + c.urlParams_.Encode()
39639	req, err := http.NewRequest("POST", urls, body)
39640	if err != nil {
39641		return nil, err
39642	}
39643	req.Header = reqHeaders
39644	googleapi.Expand(req.URL, map[string]string{
39645		"parent": c.parent,
39646	})
39647	return gensupport.SendRequest(c.ctx_, c.s.client, req)
39648}
39649
39650// Do executes the "apigee.organizations.instances.create" call.
39651// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
39652// Any non-2xx status code is an error. Response headers are in either
39653// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
39654// was returned at all) in error.(*googleapi.Error).Header. Use
39655// googleapi.IsNotModified to check whether the returned error was
39656// because http.StatusNotModified was returned.
39657func (c *OrganizationsInstancesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
39658	gensupport.SetOptions(c.urlParams_, opts...)
39659	res, err := c.doRequest("json")
39660	if res != nil && res.StatusCode == http.StatusNotModified {
39661		if res.Body != nil {
39662			res.Body.Close()
39663		}
39664		return nil, &googleapi.Error{
39665			Code:   res.StatusCode,
39666			Header: res.Header,
39667		}
39668	}
39669	if err != nil {
39670		return nil, err
39671	}
39672	defer googleapi.CloseBody(res)
39673	if err := googleapi.CheckResponse(res); err != nil {
39674		return nil, err
39675	}
39676	ret := &GoogleLongrunningOperation{
39677		ServerResponse: googleapi.ServerResponse{
39678			Header:         res.Header,
39679			HTTPStatusCode: res.StatusCode,
39680		},
39681	}
39682	target := &ret
39683	if err := gensupport.DecodeResponse(target, res); err != nil {
39684		return nil, err
39685	}
39686	return ret, nil
39687	// {
39688	//   "description": "Creates an Apigee runtime instance. The instance is accessible from the authorized network configured on the organization. **Note:** Not supported for Apigee hybrid.",
39689	//   "flatPath": "v1/organizations/{organizationsId}/instances",
39690	//   "httpMethod": "POST",
39691	//   "id": "apigee.organizations.instances.create",
39692	//   "parameterOrder": [
39693	//     "parent"
39694	//   ],
39695	//   "parameters": {
39696	//     "parent": {
39697	//       "description": "Required. Name of the organization. Use the following structure in your request: `organizations/{org}`.",
39698	//       "location": "path",
39699	//       "pattern": "^organizations/[^/]+$",
39700	//       "required": true,
39701	//       "type": "string"
39702	//     }
39703	//   },
39704	//   "path": "v1/{+parent}/instances",
39705	//   "request": {
39706	//     "$ref": "GoogleCloudApigeeV1Instance"
39707	//   },
39708	//   "response": {
39709	//     "$ref": "GoogleLongrunningOperation"
39710	//   },
39711	//   "scopes": [
39712	//     "https://www.googleapis.com/auth/cloud-platform"
39713	//   ]
39714	// }
39715
39716}
39717
39718// method id "apigee.organizations.instances.delete":
39719
39720type OrganizationsInstancesDeleteCall struct {
39721	s          *Service
39722	name       string
39723	urlParams_ gensupport.URLParams
39724	ctx_       context.Context
39725	header_    http.Header
39726}
39727
39728// Delete: Deletes an Apigee runtime instance. The instance stops
39729// serving requests and the runtime data is deleted. **Note:** Not
39730// supported for Apigee hybrid.
39731//
39732// - name: Name of the instance. Use the following structure in your
39733//   request: `organizations/{org}/instances/{instance}`.
39734func (r *OrganizationsInstancesService) Delete(name string) *OrganizationsInstancesDeleteCall {
39735	c := &OrganizationsInstancesDeleteCall{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 *OrganizationsInstancesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsInstancesDeleteCall {
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 *OrganizationsInstancesDeleteCall) Context(ctx context.Context) *OrganizationsInstancesDeleteCall {
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 *OrganizationsInstancesDeleteCall) Header() http.Header {
39759	if c.header_ == nil {
39760		c.header_ = make(http.Header)
39761	}
39762	return c.header_
39763}
39764
39765func (c *OrganizationsInstancesDeleteCall) doRequest(alt string) (*http.Response, error) {
39766	reqHeaders := make(http.Header)
39767	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
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.instances.delete" call.
39789// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
39790// Any non-2xx status code is an error. Response headers are in either
39791// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
39792// was returned at all) in error.(*googleapi.Error).Header. Use
39793// googleapi.IsNotModified to check whether the returned error was
39794// because http.StatusNotModified was returned.
39795func (c *OrganizationsInstancesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
39796	gensupport.SetOptions(c.urlParams_, opts...)
39797	res, err := c.doRequest("json")
39798	if res != nil && res.StatusCode == http.StatusNotModified {
39799		if res.Body != nil {
39800			res.Body.Close()
39801		}
39802		return nil, &googleapi.Error{
39803			Code:   res.StatusCode,
39804			Header: res.Header,
39805		}
39806	}
39807	if err != nil {
39808		return nil, err
39809	}
39810	defer googleapi.CloseBody(res)
39811	if err := googleapi.CheckResponse(res); err != nil {
39812		return nil, err
39813	}
39814	ret := &GoogleLongrunningOperation{
39815		ServerResponse: googleapi.ServerResponse{
39816			Header:         res.Header,
39817			HTTPStatusCode: res.StatusCode,
39818		},
39819	}
39820	target := &ret
39821	if err := gensupport.DecodeResponse(target, res); err != nil {
39822		return nil, err
39823	}
39824	return ret, nil
39825	// {
39826	//   "description": "Deletes an Apigee runtime instance. The instance stops serving requests and the runtime data is deleted. **Note:** Not supported for Apigee hybrid.",
39827	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}",
39828	//   "httpMethod": "DELETE",
39829	//   "id": "apigee.organizations.instances.delete",
39830	//   "parameterOrder": [
39831	//     "name"
39832	//   ],
39833	//   "parameters": {
39834	//     "name": {
39835	//       "description": "Required. Name of the instance. Use the following structure in your request: `organizations/{org}/instances/{instance}`.",
39836	//       "location": "path",
39837	//       "pattern": "^organizations/[^/]+/instances/[^/]+$",
39838	//       "required": true,
39839	//       "type": "string"
39840	//     }
39841	//   },
39842	//   "path": "v1/{+name}",
39843	//   "response": {
39844	//     "$ref": "GoogleLongrunningOperation"
39845	//   },
39846	//   "scopes": [
39847	//     "https://www.googleapis.com/auth/cloud-platform"
39848	//   ]
39849	// }
39850
39851}
39852
39853// method id "apigee.organizations.instances.get":
39854
39855type OrganizationsInstancesGetCall struct {
39856	s            *Service
39857	name         string
39858	urlParams_   gensupport.URLParams
39859	ifNoneMatch_ string
39860	ctx_         context.Context
39861	header_      http.Header
39862}
39863
39864// Get: Gets the details for an Apigee runtime instance. **Note:** Not
39865// supported for Apigee hybrid.
39866//
39867// - name: Name of the instance. Use the following structure in your
39868//   request: `organizations/{org}/instances/{instance}`.
39869func (r *OrganizationsInstancesService) Get(name string) *OrganizationsInstancesGetCall {
39870	c := &OrganizationsInstancesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39871	c.name = name
39872	return c
39873}
39874
39875// Fields allows partial responses to be retrieved. See
39876// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
39877// for more information.
39878func (c *OrganizationsInstancesGetCall) Fields(s ...googleapi.Field) *OrganizationsInstancesGetCall {
39879	c.urlParams_.Set("fields", googleapi.CombineFields(s))
39880	return c
39881}
39882
39883// IfNoneMatch sets the optional parameter which makes the operation
39884// fail if the object's ETag matches the given value. This is useful for
39885// getting updates only after the object has changed since the last
39886// request. Use googleapi.IsNotModified to check whether the response
39887// error from Do is the result of In-None-Match.
39888func (c *OrganizationsInstancesGetCall) IfNoneMatch(entityTag string) *OrganizationsInstancesGetCall {
39889	c.ifNoneMatch_ = entityTag
39890	return c
39891}
39892
39893// Context sets the context to be used in this call's Do method. Any
39894// pending HTTP request will be aborted if the provided context is
39895// canceled.
39896func (c *OrganizationsInstancesGetCall) Context(ctx context.Context) *OrganizationsInstancesGetCall {
39897	c.ctx_ = ctx
39898	return c
39899}
39900
39901// Header returns an http.Header that can be modified by the caller to
39902// add HTTP headers to the request.
39903func (c *OrganizationsInstancesGetCall) Header() http.Header {
39904	if c.header_ == nil {
39905		c.header_ = make(http.Header)
39906	}
39907	return c.header_
39908}
39909
39910func (c *OrganizationsInstancesGetCall) doRequest(alt string) (*http.Response, error) {
39911	reqHeaders := make(http.Header)
39912	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
39913	for k, v := range c.header_ {
39914		reqHeaders[k] = v
39915	}
39916	reqHeaders.Set("User-Agent", c.s.userAgent())
39917	if c.ifNoneMatch_ != "" {
39918		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
39919	}
39920	var body io.Reader = nil
39921	c.urlParams_.Set("alt", alt)
39922	c.urlParams_.Set("prettyPrint", "false")
39923	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
39924	urls += "?" + c.urlParams_.Encode()
39925	req, err := http.NewRequest("GET", urls, body)
39926	if err != nil {
39927		return nil, err
39928	}
39929	req.Header = reqHeaders
39930	googleapi.Expand(req.URL, map[string]string{
39931		"name": c.name,
39932	})
39933	return gensupport.SendRequest(c.ctx_, c.s.client, req)
39934}
39935
39936// Do executes the "apigee.organizations.instances.get" call.
39937// Exactly one of *GoogleCloudApigeeV1Instance or error will be non-nil.
39938// Any non-2xx status code is an error. Response headers are in either
39939// *GoogleCloudApigeeV1Instance.ServerResponse.Header or (if a response
39940// was returned at all) in error.(*googleapi.Error).Header. Use
39941// googleapi.IsNotModified to check whether the returned error was
39942// because http.StatusNotModified was returned.
39943func (c *OrganizationsInstancesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Instance, error) {
39944	gensupport.SetOptions(c.urlParams_, opts...)
39945	res, err := c.doRequest("json")
39946	if res != nil && res.StatusCode == http.StatusNotModified {
39947		if res.Body != nil {
39948			res.Body.Close()
39949		}
39950		return nil, &googleapi.Error{
39951			Code:   res.StatusCode,
39952			Header: res.Header,
39953		}
39954	}
39955	if err != nil {
39956		return nil, err
39957	}
39958	defer googleapi.CloseBody(res)
39959	if err := googleapi.CheckResponse(res); err != nil {
39960		return nil, err
39961	}
39962	ret := &GoogleCloudApigeeV1Instance{
39963		ServerResponse: googleapi.ServerResponse{
39964			Header:         res.Header,
39965			HTTPStatusCode: res.StatusCode,
39966		},
39967	}
39968	target := &ret
39969	if err := gensupport.DecodeResponse(target, res); err != nil {
39970		return nil, err
39971	}
39972	return ret, nil
39973	// {
39974	//   "description": "Gets the details for an Apigee runtime instance. **Note:** Not supported for Apigee hybrid.",
39975	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}",
39976	//   "httpMethod": "GET",
39977	//   "id": "apigee.organizations.instances.get",
39978	//   "parameterOrder": [
39979	//     "name"
39980	//   ],
39981	//   "parameters": {
39982	//     "name": {
39983	//       "description": "Required. Name of the instance. Use the following structure in your request: `organizations/{org}/instances/{instance}`.",
39984	//       "location": "path",
39985	//       "pattern": "^organizations/[^/]+/instances/[^/]+$",
39986	//       "required": true,
39987	//       "type": "string"
39988	//     }
39989	//   },
39990	//   "path": "v1/{+name}",
39991	//   "response": {
39992	//     "$ref": "GoogleCloudApigeeV1Instance"
39993	//   },
39994	//   "scopes": [
39995	//     "https://www.googleapis.com/auth/cloud-platform"
39996	//   ]
39997	// }
39998
39999}
40000
40001// method id "apigee.organizations.instances.list":
40002
40003type OrganizationsInstancesListCall struct {
40004	s            *Service
40005	parent       string
40006	urlParams_   gensupport.URLParams
40007	ifNoneMatch_ string
40008	ctx_         context.Context
40009	header_      http.Header
40010}
40011
40012// List: Lists all Apigee runtime instances for the organization.
40013// **Note:** Not supported for Apigee hybrid.
40014//
40015// - parent: Name of the organization. Use the following structure in
40016//   your request: `organizations/{org}`.
40017func (r *OrganizationsInstancesService) List(parent string) *OrganizationsInstancesListCall {
40018	c := &OrganizationsInstancesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40019	c.parent = parent
40020	return c
40021}
40022
40023// PageSize sets the optional parameter "pageSize": Maximum number of
40024// instances to return. Defaults to 25.
40025func (c *OrganizationsInstancesListCall) PageSize(pageSize int64) *OrganizationsInstancesListCall {
40026	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
40027	return c
40028}
40029
40030// PageToken sets the optional parameter "pageToken": Page token,
40031// returned from a previous ListInstances call, that you can use to
40032// retrieve the next page of content.
40033func (c *OrganizationsInstancesListCall) PageToken(pageToken string) *OrganizationsInstancesListCall {
40034	c.urlParams_.Set("pageToken", pageToken)
40035	return c
40036}
40037
40038// Fields allows partial responses to be retrieved. See
40039// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
40040// for more information.
40041func (c *OrganizationsInstancesListCall) Fields(s ...googleapi.Field) *OrganizationsInstancesListCall {
40042	c.urlParams_.Set("fields", googleapi.CombineFields(s))
40043	return c
40044}
40045
40046// IfNoneMatch sets the optional parameter which makes the operation
40047// fail if the object's ETag matches the given value. This is useful for
40048// getting updates only after the object has changed since the last
40049// request. Use googleapi.IsNotModified to check whether the response
40050// error from Do is the result of In-None-Match.
40051func (c *OrganizationsInstancesListCall) IfNoneMatch(entityTag string) *OrganizationsInstancesListCall {
40052	c.ifNoneMatch_ = entityTag
40053	return c
40054}
40055
40056// Context sets the context to be used in this call's Do method. Any
40057// pending HTTP request will be aborted if the provided context is
40058// canceled.
40059func (c *OrganizationsInstancesListCall) Context(ctx context.Context) *OrganizationsInstancesListCall {
40060	c.ctx_ = ctx
40061	return c
40062}
40063
40064// Header returns an http.Header that can be modified by the caller to
40065// add HTTP headers to the request.
40066func (c *OrganizationsInstancesListCall) Header() http.Header {
40067	if c.header_ == nil {
40068		c.header_ = make(http.Header)
40069	}
40070	return c.header_
40071}
40072
40073func (c *OrganizationsInstancesListCall) doRequest(alt string) (*http.Response, error) {
40074	reqHeaders := make(http.Header)
40075	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
40076	for k, v := range c.header_ {
40077		reqHeaders[k] = v
40078	}
40079	reqHeaders.Set("User-Agent", c.s.userAgent())
40080	if c.ifNoneMatch_ != "" {
40081		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
40082	}
40083	var body io.Reader = nil
40084	c.urlParams_.Set("alt", alt)
40085	c.urlParams_.Set("prettyPrint", "false")
40086	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/instances")
40087	urls += "?" + c.urlParams_.Encode()
40088	req, err := http.NewRequest("GET", urls, body)
40089	if err != nil {
40090		return nil, err
40091	}
40092	req.Header = reqHeaders
40093	googleapi.Expand(req.URL, map[string]string{
40094		"parent": c.parent,
40095	})
40096	return gensupport.SendRequest(c.ctx_, c.s.client, req)
40097}
40098
40099// Do executes the "apigee.organizations.instances.list" call.
40100// Exactly one of *GoogleCloudApigeeV1ListInstancesResponse or error
40101// will be non-nil. Any non-2xx status code is an error. Response
40102// headers are in either
40103// *GoogleCloudApigeeV1ListInstancesResponse.ServerResponse.Header or
40104// (if a response was returned at all) in
40105// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
40106// whether the returned error was because http.StatusNotModified was
40107// returned.
40108func (c *OrganizationsInstancesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListInstancesResponse, error) {
40109	gensupport.SetOptions(c.urlParams_, opts...)
40110	res, err := c.doRequest("json")
40111	if res != nil && res.StatusCode == http.StatusNotModified {
40112		if res.Body != nil {
40113			res.Body.Close()
40114		}
40115		return nil, &googleapi.Error{
40116			Code:   res.StatusCode,
40117			Header: res.Header,
40118		}
40119	}
40120	if err != nil {
40121		return nil, err
40122	}
40123	defer googleapi.CloseBody(res)
40124	if err := googleapi.CheckResponse(res); err != nil {
40125		return nil, err
40126	}
40127	ret := &GoogleCloudApigeeV1ListInstancesResponse{
40128		ServerResponse: googleapi.ServerResponse{
40129			Header:         res.Header,
40130			HTTPStatusCode: res.StatusCode,
40131		},
40132	}
40133	target := &ret
40134	if err := gensupport.DecodeResponse(target, res); err != nil {
40135		return nil, err
40136	}
40137	return ret, nil
40138	// {
40139	//   "description": "Lists all Apigee runtime instances for the organization. **Note:** Not supported for Apigee hybrid.",
40140	//   "flatPath": "v1/organizations/{organizationsId}/instances",
40141	//   "httpMethod": "GET",
40142	//   "id": "apigee.organizations.instances.list",
40143	//   "parameterOrder": [
40144	//     "parent"
40145	//   ],
40146	//   "parameters": {
40147	//     "pageSize": {
40148	//       "description": "Maximum number of instances to return. Defaults to 25.",
40149	//       "format": "int32",
40150	//       "location": "query",
40151	//       "type": "integer"
40152	//     },
40153	//     "pageToken": {
40154	//       "description": "Page token, returned from a previous ListInstances call, that you can use to retrieve the next page of content.",
40155	//       "location": "query",
40156	//       "type": "string"
40157	//     },
40158	//     "parent": {
40159	//       "description": "Required. Name of the organization. Use the following structure in your request: `organizations/{org}`.",
40160	//       "location": "path",
40161	//       "pattern": "^organizations/[^/]+$",
40162	//       "required": true,
40163	//       "type": "string"
40164	//     }
40165	//   },
40166	//   "path": "v1/{+parent}/instances",
40167	//   "response": {
40168	//     "$ref": "GoogleCloudApigeeV1ListInstancesResponse"
40169	//   },
40170	//   "scopes": [
40171	//     "https://www.googleapis.com/auth/cloud-platform"
40172	//   ]
40173	// }
40174
40175}
40176
40177// Pages invokes f for each page of results.
40178// A non-nil error returned from f will halt the iteration.
40179// The provided context supersedes any context provided to the Context method.
40180func (c *OrganizationsInstancesListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListInstancesResponse) error) error {
40181	c.ctx_ = ctx
40182	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
40183	for {
40184		x, err := c.Do()
40185		if err != nil {
40186			return err
40187		}
40188		if err := f(x); err != nil {
40189			return err
40190		}
40191		if x.NextPageToken == "" {
40192			return nil
40193		}
40194		c.PageToken(x.NextPageToken)
40195	}
40196}
40197
40198// method id "apigee.organizations.instances.patch":
40199
40200type OrganizationsInstancesPatchCall struct {
40201	s                           *Service
40202	name                        string
40203	googlecloudapigeev1instance *GoogleCloudApigeeV1Instance
40204	urlParams_                  gensupport.URLParams
40205	ctx_                        context.Context
40206	header_                     http.Header
40207}
40208
40209// Patch: Updates an Apigee runtime instance. You can update the fields
40210// described in NodeConfig. No other fields will be updated. **Note:**
40211// Not supported for Apigee hybrid.
40212//
40213// - name: Name of the instance. Use the following structure in your
40214//   request: `organizations/{org}/instances/{instance}`.
40215func (r *OrganizationsInstancesService) Patch(name string, googlecloudapigeev1instance *GoogleCloudApigeeV1Instance) *OrganizationsInstancesPatchCall {
40216	c := &OrganizationsInstancesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40217	c.name = name
40218	c.googlecloudapigeev1instance = googlecloudapigeev1instance
40219	return c
40220}
40221
40222// UpdateMask sets the optional parameter "updateMask": List of fields
40223// to be updated.
40224func (c *OrganizationsInstancesPatchCall) UpdateMask(updateMask string) *OrganizationsInstancesPatchCall {
40225	c.urlParams_.Set("updateMask", updateMask)
40226	return c
40227}
40228
40229// Fields allows partial responses to be retrieved. See
40230// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
40231// for more information.
40232func (c *OrganizationsInstancesPatchCall) Fields(s ...googleapi.Field) *OrganizationsInstancesPatchCall {
40233	c.urlParams_.Set("fields", googleapi.CombineFields(s))
40234	return c
40235}
40236
40237// Context sets the context to be used in this call's Do method. Any
40238// pending HTTP request will be aborted if the provided context is
40239// canceled.
40240func (c *OrganizationsInstancesPatchCall) Context(ctx context.Context) *OrganizationsInstancesPatchCall {
40241	c.ctx_ = ctx
40242	return c
40243}
40244
40245// Header returns an http.Header that can be modified by the caller to
40246// add HTTP headers to the request.
40247func (c *OrganizationsInstancesPatchCall) Header() http.Header {
40248	if c.header_ == nil {
40249		c.header_ = make(http.Header)
40250	}
40251	return c.header_
40252}
40253
40254func (c *OrganizationsInstancesPatchCall) doRequest(alt string) (*http.Response, error) {
40255	reqHeaders := make(http.Header)
40256	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
40257	for k, v := range c.header_ {
40258		reqHeaders[k] = v
40259	}
40260	reqHeaders.Set("User-Agent", c.s.userAgent())
40261	var body io.Reader = nil
40262	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1instance)
40263	if err != nil {
40264		return nil, err
40265	}
40266	reqHeaders.Set("Content-Type", "application/json")
40267	c.urlParams_.Set("alt", alt)
40268	c.urlParams_.Set("prettyPrint", "false")
40269	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
40270	urls += "?" + c.urlParams_.Encode()
40271	req, err := http.NewRequest("PATCH", urls, body)
40272	if err != nil {
40273		return nil, err
40274	}
40275	req.Header = reqHeaders
40276	googleapi.Expand(req.URL, map[string]string{
40277		"name": c.name,
40278	})
40279	return gensupport.SendRequest(c.ctx_, c.s.client, req)
40280}
40281
40282// Do executes the "apigee.organizations.instances.patch" call.
40283// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
40284// Any non-2xx status code is an error. Response headers are in either
40285// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
40286// was returned at all) in error.(*googleapi.Error).Header. Use
40287// googleapi.IsNotModified to check whether the returned error was
40288// because http.StatusNotModified was returned.
40289func (c *OrganizationsInstancesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
40290	gensupport.SetOptions(c.urlParams_, opts...)
40291	res, err := c.doRequest("json")
40292	if res != nil && res.StatusCode == http.StatusNotModified {
40293		if res.Body != nil {
40294			res.Body.Close()
40295		}
40296		return nil, &googleapi.Error{
40297			Code:   res.StatusCode,
40298			Header: res.Header,
40299		}
40300	}
40301	if err != nil {
40302		return nil, err
40303	}
40304	defer googleapi.CloseBody(res)
40305	if err := googleapi.CheckResponse(res); err != nil {
40306		return nil, err
40307	}
40308	ret := &GoogleLongrunningOperation{
40309		ServerResponse: googleapi.ServerResponse{
40310			Header:         res.Header,
40311			HTTPStatusCode: res.StatusCode,
40312		},
40313	}
40314	target := &ret
40315	if err := gensupport.DecodeResponse(target, res); err != nil {
40316		return nil, err
40317	}
40318	return ret, nil
40319	// {
40320	//   "description": "Updates an Apigee runtime instance. You can update the fields described in NodeConfig. No other fields will be updated. **Note:** Not supported for Apigee hybrid.",
40321	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}",
40322	//   "httpMethod": "PATCH",
40323	//   "id": "apigee.organizations.instances.patch",
40324	//   "parameterOrder": [
40325	//     "name"
40326	//   ],
40327	//   "parameters": {
40328	//     "name": {
40329	//       "description": "Required. Name of the instance. Use the following structure in your request: `organizations/{org}/instances/{instance}`.",
40330	//       "location": "path",
40331	//       "pattern": "^organizations/[^/]+/instances/[^/]+$",
40332	//       "required": true,
40333	//       "type": "string"
40334	//     },
40335	//     "updateMask": {
40336	//       "description": "List of fields to be updated.",
40337	//       "format": "google-fieldmask",
40338	//       "location": "query",
40339	//       "type": "string"
40340	//     }
40341	//   },
40342	//   "path": "v1/{+name}",
40343	//   "request": {
40344	//     "$ref": "GoogleCloudApigeeV1Instance"
40345	//   },
40346	//   "response": {
40347	//     "$ref": "GoogleLongrunningOperation"
40348	//   },
40349	//   "scopes": [
40350	//     "https://www.googleapis.com/auth/cloud-platform"
40351	//   ]
40352	// }
40353
40354}
40355
40356// method id "apigee.organizations.instances.reportStatus":
40357
40358type OrganizationsInstancesReportStatusCall struct {
40359	s                                              *Service
40360	instance                                       string
40361	googlecloudapigeev1reportinstancestatusrequest *GoogleCloudApigeeV1ReportInstanceStatusRequest
40362	urlParams_                                     gensupport.URLParams
40363	ctx_                                           context.Context
40364	header_                                        http.Header
40365}
40366
40367// ReportStatus: Reports the latest status for a runtime instance.
40368//
40369// - instance: The name of the instance reporting this status. For SaaS
40370//   the request will be rejected if no instance exists under this name.
40371//   Format is organizations/{org}/instances/{instance}.
40372func (r *OrganizationsInstancesService) ReportStatus(instance string, googlecloudapigeev1reportinstancestatusrequest *GoogleCloudApigeeV1ReportInstanceStatusRequest) *OrganizationsInstancesReportStatusCall {
40373	c := &OrganizationsInstancesReportStatusCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40374	c.instance = instance
40375	c.googlecloudapigeev1reportinstancestatusrequest = googlecloudapigeev1reportinstancestatusrequest
40376	return c
40377}
40378
40379// Fields allows partial responses to be retrieved. See
40380// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
40381// for more information.
40382func (c *OrganizationsInstancesReportStatusCall) Fields(s ...googleapi.Field) *OrganizationsInstancesReportStatusCall {
40383	c.urlParams_.Set("fields", googleapi.CombineFields(s))
40384	return c
40385}
40386
40387// Context sets the context to be used in this call's Do method. Any
40388// pending HTTP request will be aborted if the provided context is
40389// canceled.
40390func (c *OrganizationsInstancesReportStatusCall) Context(ctx context.Context) *OrganizationsInstancesReportStatusCall {
40391	c.ctx_ = ctx
40392	return c
40393}
40394
40395// Header returns an http.Header that can be modified by the caller to
40396// add HTTP headers to the request.
40397func (c *OrganizationsInstancesReportStatusCall) Header() http.Header {
40398	if c.header_ == nil {
40399		c.header_ = make(http.Header)
40400	}
40401	return c.header_
40402}
40403
40404func (c *OrganizationsInstancesReportStatusCall) doRequest(alt string) (*http.Response, error) {
40405	reqHeaders := make(http.Header)
40406	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
40407	for k, v := range c.header_ {
40408		reqHeaders[k] = v
40409	}
40410	reqHeaders.Set("User-Agent", c.s.userAgent())
40411	var body io.Reader = nil
40412	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1reportinstancestatusrequest)
40413	if err != nil {
40414		return nil, err
40415	}
40416	reqHeaders.Set("Content-Type", "application/json")
40417	c.urlParams_.Set("alt", alt)
40418	c.urlParams_.Set("prettyPrint", "false")
40419	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+instance}:reportStatus")
40420	urls += "?" + c.urlParams_.Encode()
40421	req, err := http.NewRequest("POST", urls, body)
40422	if err != nil {
40423		return nil, err
40424	}
40425	req.Header = reqHeaders
40426	googleapi.Expand(req.URL, map[string]string{
40427		"instance": c.instance,
40428	})
40429	return gensupport.SendRequest(c.ctx_, c.s.client, req)
40430}
40431
40432// Do executes the "apigee.organizations.instances.reportStatus" call.
40433// Exactly one of *GoogleCloudApigeeV1ReportInstanceStatusResponse or
40434// error will be non-nil. Any non-2xx status code is an error. Response
40435// headers are in either
40436// *GoogleCloudApigeeV1ReportInstanceStatusResponse.ServerResponse.Header
40437//  or (if a response was returned at all) in
40438// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
40439// whether the returned error was because http.StatusNotModified was
40440// returned.
40441func (c *OrganizationsInstancesReportStatusCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ReportInstanceStatusResponse, error) {
40442	gensupport.SetOptions(c.urlParams_, opts...)
40443	res, err := c.doRequest("json")
40444	if res != nil && res.StatusCode == http.StatusNotModified {
40445		if res.Body != nil {
40446			res.Body.Close()
40447		}
40448		return nil, &googleapi.Error{
40449			Code:   res.StatusCode,
40450			Header: res.Header,
40451		}
40452	}
40453	if err != nil {
40454		return nil, err
40455	}
40456	defer googleapi.CloseBody(res)
40457	if err := googleapi.CheckResponse(res); err != nil {
40458		return nil, err
40459	}
40460	ret := &GoogleCloudApigeeV1ReportInstanceStatusResponse{
40461		ServerResponse: googleapi.ServerResponse{
40462			Header:         res.Header,
40463			HTTPStatusCode: res.StatusCode,
40464		},
40465	}
40466	target := &ret
40467	if err := gensupport.DecodeResponse(target, res); err != nil {
40468		return nil, err
40469	}
40470	return ret, nil
40471	// {
40472	//   "description": "Reports the latest status for a runtime instance.",
40473	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}:reportStatus",
40474	//   "httpMethod": "POST",
40475	//   "id": "apigee.organizations.instances.reportStatus",
40476	//   "parameterOrder": [
40477	//     "instance"
40478	//   ],
40479	//   "parameters": {
40480	//     "instance": {
40481	//       "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}",
40482	//       "location": "path",
40483	//       "pattern": "^organizations/[^/]+/instances/[^/]+$",
40484	//       "required": true,
40485	//       "type": "string"
40486	//     }
40487	//   },
40488	//   "path": "v1/{+instance}:reportStatus",
40489	//   "request": {
40490	//     "$ref": "GoogleCloudApigeeV1ReportInstanceStatusRequest"
40491	//   },
40492	//   "response": {
40493	//     "$ref": "GoogleCloudApigeeV1ReportInstanceStatusResponse"
40494	//   },
40495	//   "scopes": [
40496	//     "https://www.googleapis.com/auth/cloud-platform"
40497	//   ]
40498	// }
40499
40500}
40501
40502// method id "apigee.organizations.instances.attachments.create":
40503
40504type OrganizationsInstancesAttachmentsCreateCall struct {
40505	s                                     *Service
40506	parent                                string
40507	googlecloudapigeev1instanceattachment *GoogleCloudApigeeV1InstanceAttachment
40508	urlParams_                            gensupport.URLParams
40509	ctx_                                  context.Context
40510	header_                               http.Header
40511}
40512
40513// Create: Creates a new attachment of an environment to an instance.
40514// **Note:** Not supported for Apigee hybrid.
40515//
40516// - parent: Name of the instance. Use the following structure in your
40517//   request: `organizations/{org}/instances/{instance}`.
40518func (r *OrganizationsInstancesAttachmentsService) Create(parent string, googlecloudapigeev1instanceattachment *GoogleCloudApigeeV1InstanceAttachment) *OrganizationsInstancesAttachmentsCreateCall {
40519	c := &OrganizationsInstancesAttachmentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40520	c.parent = parent
40521	c.googlecloudapigeev1instanceattachment = googlecloudapigeev1instanceattachment
40522	return c
40523}
40524
40525// Fields allows partial responses to be retrieved. See
40526// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
40527// for more information.
40528func (c *OrganizationsInstancesAttachmentsCreateCall) Fields(s ...googleapi.Field) *OrganizationsInstancesAttachmentsCreateCall {
40529	c.urlParams_.Set("fields", googleapi.CombineFields(s))
40530	return c
40531}
40532
40533// Context sets the context to be used in this call's Do method. Any
40534// pending HTTP request will be aborted if the provided context is
40535// canceled.
40536func (c *OrganizationsInstancesAttachmentsCreateCall) Context(ctx context.Context) *OrganizationsInstancesAttachmentsCreateCall {
40537	c.ctx_ = ctx
40538	return c
40539}
40540
40541// Header returns an http.Header that can be modified by the caller to
40542// add HTTP headers to the request.
40543func (c *OrganizationsInstancesAttachmentsCreateCall) Header() http.Header {
40544	if c.header_ == nil {
40545		c.header_ = make(http.Header)
40546	}
40547	return c.header_
40548}
40549
40550func (c *OrganizationsInstancesAttachmentsCreateCall) doRequest(alt string) (*http.Response, error) {
40551	reqHeaders := make(http.Header)
40552	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
40553	for k, v := range c.header_ {
40554		reqHeaders[k] = v
40555	}
40556	reqHeaders.Set("User-Agent", c.s.userAgent())
40557	var body io.Reader = nil
40558	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1instanceattachment)
40559	if err != nil {
40560		return nil, err
40561	}
40562	reqHeaders.Set("Content-Type", "application/json")
40563	c.urlParams_.Set("alt", alt)
40564	c.urlParams_.Set("prettyPrint", "false")
40565	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attachments")
40566	urls += "?" + c.urlParams_.Encode()
40567	req, err := http.NewRequest("POST", urls, body)
40568	if err != nil {
40569		return nil, err
40570	}
40571	req.Header = reqHeaders
40572	googleapi.Expand(req.URL, map[string]string{
40573		"parent": c.parent,
40574	})
40575	return gensupport.SendRequest(c.ctx_, c.s.client, req)
40576}
40577
40578// Do executes the "apigee.organizations.instances.attachments.create" call.
40579// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
40580// Any non-2xx status code is an error. Response headers are in either
40581// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
40582// was returned at all) in error.(*googleapi.Error).Header. Use
40583// googleapi.IsNotModified to check whether the returned error was
40584// because http.StatusNotModified was returned.
40585func (c *OrganizationsInstancesAttachmentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
40586	gensupport.SetOptions(c.urlParams_, opts...)
40587	res, err := c.doRequest("json")
40588	if res != nil && res.StatusCode == http.StatusNotModified {
40589		if res.Body != nil {
40590			res.Body.Close()
40591		}
40592		return nil, &googleapi.Error{
40593			Code:   res.StatusCode,
40594			Header: res.Header,
40595		}
40596	}
40597	if err != nil {
40598		return nil, err
40599	}
40600	defer googleapi.CloseBody(res)
40601	if err := googleapi.CheckResponse(res); err != nil {
40602		return nil, err
40603	}
40604	ret := &GoogleLongrunningOperation{
40605		ServerResponse: googleapi.ServerResponse{
40606			Header:         res.Header,
40607			HTTPStatusCode: res.StatusCode,
40608		},
40609	}
40610	target := &ret
40611	if err := gensupport.DecodeResponse(target, res); err != nil {
40612		return nil, err
40613	}
40614	return ret, nil
40615	// {
40616	//   "description": "Creates a new attachment of an environment to an instance. **Note:** Not supported for Apigee hybrid.",
40617	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/attachments",
40618	//   "httpMethod": "POST",
40619	//   "id": "apigee.organizations.instances.attachments.create",
40620	//   "parameterOrder": [
40621	//     "parent"
40622	//   ],
40623	//   "parameters": {
40624	//     "parent": {
40625	//       "description": "Required. Name of the instance. Use the following structure in your request: `organizations/{org}/instances/{instance}`.",
40626	//       "location": "path",
40627	//       "pattern": "^organizations/[^/]+/instances/[^/]+$",
40628	//       "required": true,
40629	//       "type": "string"
40630	//     }
40631	//   },
40632	//   "path": "v1/{+parent}/attachments",
40633	//   "request": {
40634	//     "$ref": "GoogleCloudApigeeV1InstanceAttachment"
40635	//   },
40636	//   "response": {
40637	//     "$ref": "GoogleLongrunningOperation"
40638	//   },
40639	//   "scopes": [
40640	//     "https://www.googleapis.com/auth/cloud-platform"
40641	//   ]
40642	// }
40643
40644}
40645
40646// method id "apigee.organizations.instances.attachments.delete":
40647
40648type OrganizationsInstancesAttachmentsDeleteCall struct {
40649	s          *Service
40650	name       string
40651	urlParams_ gensupport.URLParams
40652	ctx_       context.Context
40653	header_    http.Header
40654}
40655
40656// Delete: Deletes an attachment. **Note:** Not supported for Apigee
40657// hybrid.
40658//
40659// - name: Name of the attachment. Use the following structure in your
40660//   request:
40661//   `organizations/{org}/instances/{instance}/attachments/{attachment}`.
40662func (r *OrganizationsInstancesAttachmentsService) Delete(name string) *OrganizationsInstancesAttachmentsDeleteCall {
40663	c := &OrganizationsInstancesAttachmentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40664	c.name = name
40665	return c
40666}
40667
40668// Fields allows partial responses to be retrieved. See
40669// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
40670// for more information.
40671func (c *OrganizationsInstancesAttachmentsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsInstancesAttachmentsDeleteCall {
40672	c.urlParams_.Set("fields", googleapi.CombineFields(s))
40673	return c
40674}
40675
40676// Context sets the context to be used in this call's Do method. Any
40677// pending HTTP request will be aborted if the provided context is
40678// canceled.
40679func (c *OrganizationsInstancesAttachmentsDeleteCall) Context(ctx context.Context) *OrganizationsInstancesAttachmentsDeleteCall {
40680	c.ctx_ = ctx
40681	return c
40682}
40683
40684// Header returns an http.Header that can be modified by the caller to
40685// add HTTP headers to the request.
40686func (c *OrganizationsInstancesAttachmentsDeleteCall) Header() http.Header {
40687	if c.header_ == nil {
40688		c.header_ = make(http.Header)
40689	}
40690	return c.header_
40691}
40692
40693func (c *OrganizationsInstancesAttachmentsDeleteCall) doRequest(alt string) (*http.Response, error) {
40694	reqHeaders := make(http.Header)
40695	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
40696	for k, v := range c.header_ {
40697		reqHeaders[k] = v
40698	}
40699	reqHeaders.Set("User-Agent", c.s.userAgent())
40700	var body io.Reader = nil
40701	c.urlParams_.Set("alt", alt)
40702	c.urlParams_.Set("prettyPrint", "false")
40703	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
40704	urls += "?" + c.urlParams_.Encode()
40705	req, err := http.NewRequest("DELETE", urls, body)
40706	if err != nil {
40707		return nil, err
40708	}
40709	req.Header = reqHeaders
40710	googleapi.Expand(req.URL, map[string]string{
40711		"name": c.name,
40712	})
40713	return gensupport.SendRequest(c.ctx_, c.s.client, req)
40714}
40715
40716// Do executes the "apigee.organizations.instances.attachments.delete" call.
40717// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
40718// Any non-2xx status code is an error. Response headers are in either
40719// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
40720// was returned at all) in error.(*googleapi.Error).Header. Use
40721// googleapi.IsNotModified to check whether the returned error was
40722// because http.StatusNotModified was returned.
40723func (c *OrganizationsInstancesAttachmentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
40724	gensupport.SetOptions(c.urlParams_, opts...)
40725	res, err := c.doRequest("json")
40726	if res != nil && res.StatusCode == http.StatusNotModified {
40727		if res.Body != nil {
40728			res.Body.Close()
40729		}
40730		return nil, &googleapi.Error{
40731			Code:   res.StatusCode,
40732			Header: res.Header,
40733		}
40734	}
40735	if err != nil {
40736		return nil, err
40737	}
40738	defer googleapi.CloseBody(res)
40739	if err := googleapi.CheckResponse(res); err != nil {
40740		return nil, err
40741	}
40742	ret := &GoogleLongrunningOperation{
40743		ServerResponse: googleapi.ServerResponse{
40744			Header:         res.Header,
40745			HTTPStatusCode: res.StatusCode,
40746		},
40747	}
40748	target := &ret
40749	if err := gensupport.DecodeResponse(target, res); err != nil {
40750		return nil, err
40751	}
40752	return ret, nil
40753	// {
40754	//   "description": "Deletes an attachment. **Note:** Not supported for Apigee hybrid.",
40755	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/attachments/{attachmentsId}",
40756	//   "httpMethod": "DELETE",
40757	//   "id": "apigee.organizations.instances.attachments.delete",
40758	//   "parameterOrder": [
40759	//     "name"
40760	//   ],
40761	//   "parameters": {
40762	//     "name": {
40763	//       "description": "Required. Name of the attachment. Use the following structure in your request: `organizations/{org}/instances/{instance}/attachments/{attachment}`.",
40764	//       "location": "path",
40765	//       "pattern": "^organizations/[^/]+/instances/[^/]+/attachments/[^/]+$",
40766	//       "required": true,
40767	//       "type": "string"
40768	//     }
40769	//   },
40770	//   "path": "v1/{+name}",
40771	//   "response": {
40772	//     "$ref": "GoogleLongrunningOperation"
40773	//   },
40774	//   "scopes": [
40775	//     "https://www.googleapis.com/auth/cloud-platform"
40776	//   ]
40777	// }
40778
40779}
40780
40781// method id "apigee.organizations.instances.attachments.get":
40782
40783type OrganizationsInstancesAttachmentsGetCall struct {
40784	s            *Service
40785	name         string
40786	urlParams_   gensupport.URLParams
40787	ifNoneMatch_ string
40788	ctx_         context.Context
40789	header_      http.Header
40790}
40791
40792// Get: Gets an attachment. **Note:** Not supported for Apigee hybrid.
40793//
40794// - name: Name of the attachment. Use the following structure in your
40795//   request:
40796//   `organizations/{org}/instances/{instance}/attachments/{attachment}`.
40797func (r *OrganizationsInstancesAttachmentsService) Get(name string) *OrganizationsInstancesAttachmentsGetCall {
40798	c := &OrganizationsInstancesAttachmentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40799	c.name = name
40800	return c
40801}
40802
40803// Fields allows partial responses to be retrieved. See
40804// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
40805// for more information.
40806func (c *OrganizationsInstancesAttachmentsGetCall) Fields(s ...googleapi.Field) *OrganizationsInstancesAttachmentsGetCall {
40807	c.urlParams_.Set("fields", googleapi.CombineFields(s))
40808	return c
40809}
40810
40811// IfNoneMatch sets the optional parameter which makes the operation
40812// fail if the object's ETag matches the given value. This is useful for
40813// getting updates only after the object has changed since the last
40814// request. Use googleapi.IsNotModified to check whether the response
40815// error from Do is the result of In-None-Match.
40816func (c *OrganizationsInstancesAttachmentsGetCall) IfNoneMatch(entityTag string) *OrganizationsInstancesAttachmentsGetCall {
40817	c.ifNoneMatch_ = entityTag
40818	return c
40819}
40820
40821// Context sets the context to be used in this call's Do method. Any
40822// pending HTTP request will be aborted if the provided context is
40823// canceled.
40824func (c *OrganizationsInstancesAttachmentsGetCall) Context(ctx context.Context) *OrganizationsInstancesAttachmentsGetCall {
40825	c.ctx_ = ctx
40826	return c
40827}
40828
40829// Header returns an http.Header that can be modified by the caller to
40830// add HTTP headers to the request.
40831func (c *OrganizationsInstancesAttachmentsGetCall) Header() http.Header {
40832	if c.header_ == nil {
40833		c.header_ = make(http.Header)
40834	}
40835	return c.header_
40836}
40837
40838func (c *OrganizationsInstancesAttachmentsGetCall) doRequest(alt string) (*http.Response, error) {
40839	reqHeaders := make(http.Header)
40840	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
40841	for k, v := range c.header_ {
40842		reqHeaders[k] = v
40843	}
40844	reqHeaders.Set("User-Agent", c.s.userAgent())
40845	if c.ifNoneMatch_ != "" {
40846		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
40847	}
40848	var body io.Reader = nil
40849	c.urlParams_.Set("alt", alt)
40850	c.urlParams_.Set("prettyPrint", "false")
40851	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
40852	urls += "?" + c.urlParams_.Encode()
40853	req, err := http.NewRequest("GET", urls, body)
40854	if err != nil {
40855		return nil, err
40856	}
40857	req.Header = reqHeaders
40858	googleapi.Expand(req.URL, map[string]string{
40859		"name": c.name,
40860	})
40861	return gensupport.SendRequest(c.ctx_, c.s.client, req)
40862}
40863
40864// Do executes the "apigee.organizations.instances.attachments.get" call.
40865// Exactly one of *GoogleCloudApigeeV1InstanceAttachment or error will
40866// be non-nil. Any non-2xx status code is an error. Response headers are
40867// in either
40868// *GoogleCloudApigeeV1InstanceAttachment.ServerResponse.Header or (if a
40869// response was returned at all) in error.(*googleapi.Error).Header. Use
40870// googleapi.IsNotModified to check whether the returned error was
40871// because http.StatusNotModified was returned.
40872func (c *OrganizationsInstancesAttachmentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1InstanceAttachment, error) {
40873	gensupport.SetOptions(c.urlParams_, opts...)
40874	res, err := c.doRequest("json")
40875	if res != nil && res.StatusCode == http.StatusNotModified {
40876		if res.Body != nil {
40877			res.Body.Close()
40878		}
40879		return nil, &googleapi.Error{
40880			Code:   res.StatusCode,
40881			Header: res.Header,
40882		}
40883	}
40884	if err != nil {
40885		return nil, err
40886	}
40887	defer googleapi.CloseBody(res)
40888	if err := googleapi.CheckResponse(res); err != nil {
40889		return nil, err
40890	}
40891	ret := &GoogleCloudApigeeV1InstanceAttachment{
40892		ServerResponse: googleapi.ServerResponse{
40893			Header:         res.Header,
40894			HTTPStatusCode: res.StatusCode,
40895		},
40896	}
40897	target := &ret
40898	if err := gensupport.DecodeResponse(target, res); err != nil {
40899		return nil, err
40900	}
40901	return ret, nil
40902	// {
40903	//   "description": "Gets an attachment. **Note:** Not supported for Apigee hybrid.",
40904	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/attachments/{attachmentsId}",
40905	//   "httpMethod": "GET",
40906	//   "id": "apigee.organizations.instances.attachments.get",
40907	//   "parameterOrder": [
40908	//     "name"
40909	//   ],
40910	//   "parameters": {
40911	//     "name": {
40912	//       "description": "Required. Name of the attachment. Use the following structure in your request: `organizations/{org}/instances/{instance}/attachments/{attachment}`",
40913	//       "location": "path",
40914	//       "pattern": "^organizations/[^/]+/instances/[^/]+/attachments/[^/]+$",
40915	//       "required": true,
40916	//       "type": "string"
40917	//     }
40918	//   },
40919	//   "path": "v1/{+name}",
40920	//   "response": {
40921	//     "$ref": "GoogleCloudApigeeV1InstanceAttachment"
40922	//   },
40923	//   "scopes": [
40924	//     "https://www.googleapis.com/auth/cloud-platform"
40925	//   ]
40926	// }
40927
40928}
40929
40930// method id "apigee.organizations.instances.attachments.list":
40931
40932type OrganizationsInstancesAttachmentsListCall struct {
40933	s            *Service
40934	parent       string
40935	urlParams_   gensupport.URLParams
40936	ifNoneMatch_ string
40937	ctx_         context.Context
40938	header_      http.Header
40939}
40940
40941// List: Lists all attachments to an instance. **Note:** Not supported
40942// for Apigee hybrid.
40943//
40944// - parent: Name of the organization. Use the following structure in
40945//   your request: `organizations/{org}/instances/{instance}`.
40946func (r *OrganizationsInstancesAttachmentsService) List(parent string) *OrganizationsInstancesAttachmentsListCall {
40947	c := &OrganizationsInstancesAttachmentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40948	c.parent = parent
40949	return c
40950}
40951
40952// PageSize sets the optional parameter "pageSize": Maximum number of
40953// instance attachments to return. Defaults to 25.
40954func (c *OrganizationsInstancesAttachmentsListCall) PageSize(pageSize int64) *OrganizationsInstancesAttachmentsListCall {
40955	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
40956	return c
40957}
40958
40959// PageToken sets the optional parameter "pageToken": Page token,
40960// returned by a previous ListInstanceAttachments call, that you can use
40961// to retrieve the next page of content.
40962func (c *OrganizationsInstancesAttachmentsListCall) PageToken(pageToken string) *OrganizationsInstancesAttachmentsListCall {
40963	c.urlParams_.Set("pageToken", pageToken)
40964	return c
40965}
40966
40967// Fields allows partial responses to be retrieved. See
40968// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
40969// for more information.
40970func (c *OrganizationsInstancesAttachmentsListCall) Fields(s ...googleapi.Field) *OrganizationsInstancesAttachmentsListCall {
40971	c.urlParams_.Set("fields", googleapi.CombineFields(s))
40972	return c
40973}
40974
40975// IfNoneMatch sets the optional parameter which makes the operation
40976// fail if the object's ETag matches the given value. This is useful for
40977// getting updates only after the object has changed since the last
40978// request. Use googleapi.IsNotModified to check whether the response
40979// error from Do is the result of In-None-Match.
40980func (c *OrganizationsInstancesAttachmentsListCall) IfNoneMatch(entityTag string) *OrganizationsInstancesAttachmentsListCall {
40981	c.ifNoneMatch_ = entityTag
40982	return c
40983}
40984
40985// Context sets the context to be used in this call's Do method. Any
40986// pending HTTP request will be aborted if the provided context is
40987// canceled.
40988func (c *OrganizationsInstancesAttachmentsListCall) Context(ctx context.Context) *OrganizationsInstancesAttachmentsListCall {
40989	c.ctx_ = ctx
40990	return c
40991}
40992
40993// Header returns an http.Header that can be modified by the caller to
40994// add HTTP headers to the request.
40995func (c *OrganizationsInstancesAttachmentsListCall) Header() http.Header {
40996	if c.header_ == nil {
40997		c.header_ = make(http.Header)
40998	}
40999	return c.header_
41000}
41001
41002func (c *OrganizationsInstancesAttachmentsListCall) doRequest(alt string) (*http.Response, error) {
41003	reqHeaders := make(http.Header)
41004	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
41005	for k, v := range c.header_ {
41006		reqHeaders[k] = v
41007	}
41008	reqHeaders.Set("User-Agent", c.s.userAgent())
41009	if c.ifNoneMatch_ != "" {
41010		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
41011	}
41012	var body io.Reader = nil
41013	c.urlParams_.Set("alt", alt)
41014	c.urlParams_.Set("prettyPrint", "false")
41015	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attachments")
41016	urls += "?" + c.urlParams_.Encode()
41017	req, err := http.NewRequest("GET", urls, body)
41018	if err != nil {
41019		return nil, err
41020	}
41021	req.Header = reqHeaders
41022	googleapi.Expand(req.URL, map[string]string{
41023		"parent": c.parent,
41024	})
41025	return gensupport.SendRequest(c.ctx_, c.s.client, req)
41026}
41027
41028// Do executes the "apigee.organizations.instances.attachments.list" call.
41029// Exactly one of *GoogleCloudApigeeV1ListInstanceAttachmentsResponse or
41030// error will be non-nil. Any non-2xx status code is an error. Response
41031// headers are in either
41032// *GoogleCloudApigeeV1ListInstanceAttachmentsResponse.ServerResponse.Hea
41033// der or (if a response was returned at all) in
41034// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
41035// whether the returned error was because http.StatusNotModified was
41036// returned.
41037func (c *OrganizationsInstancesAttachmentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListInstanceAttachmentsResponse, error) {
41038	gensupport.SetOptions(c.urlParams_, opts...)
41039	res, err := c.doRequest("json")
41040	if res != nil && res.StatusCode == http.StatusNotModified {
41041		if res.Body != nil {
41042			res.Body.Close()
41043		}
41044		return nil, &googleapi.Error{
41045			Code:   res.StatusCode,
41046			Header: res.Header,
41047		}
41048	}
41049	if err != nil {
41050		return nil, err
41051	}
41052	defer googleapi.CloseBody(res)
41053	if err := googleapi.CheckResponse(res); err != nil {
41054		return nil, err
41055	}
41056	ret := &GoogleCloudApigeeV1ListInstanceAttachmentsResponse{
41057		ServerResponse: googleapi.ServerResponse{
41058			Header:         res.Header,
41059			HTTPStatusCode: res.StatusCode,
41060		},
41061	}
41062	target := &ret
41063	if err := gensupport.DecodeResponse(target, res); err != nil {
41064		return nil, err
41065	}
41066	return ret, nil
41067	// {
41068	//   "description": "Lists all attachments to an instance. **Note:** Not supported for Apigee hybrid.",
41069	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/attachments",
41070	//   "httpMethod": "GET",
41071	//   "id": "apigee.organizations.instances.attachments.list",
41072	//   "parameterOrder": [
41073	//     "parent"
41074	//   ],
41075	//   "parameters": {
41076	//     "pageSize": {
41077	//       "description": "Maximum number of instance attachments to return. Defaults to 25.",
41078	//       "format": "int32",
41079	//       "location": "query",
41080	//       "type": "integer"
41081	//     },
41082	//     "pageToken": {
41083	//       "description": "Page token, returned by a previous ListInstanceAttachments call, that you can use to retrieve the next page of content.",
41084	//       "location": "query",
41085	//       "type": "string"
41086	//     },
41087	//     "parent": {
41088	//       "description": "Required. Name of the organization. Use the following structure in your request: `organizations/{org}/instances/{instance}`",
41089	//       "location": "path",
41090	//       "pattern": "^organizations/[^/]+/instances/[^/]+$",
41091	//       "required": true,
41092	//       "type": "string"
41093	//     }
41094	//   },
41095	//   "path": "v1/{+parent}/attachments",
41096	//   "response": {
41097	//     "$ref": "GoogleCloudApigeeV1ListInstanceAttachmentsResponse"
41098	//   },
41099	//   "scopes": [
41100	//     "https://www.googleapis.com/auth/cloud-platform"
41101	//   ]
41102	// }
41103
41104}
41105
41106// Pages invokes f for each page of results.
41107// A non-nil error returned from f will halt the iteration.
41108// The provided context supersedes any context provided to the Context method.
41109func (c *OrganizationsInstancesAttachmentsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListInstanceAttachmentsResponse) error) error {
41110	c.ctx_ = ctx
41111	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
41112	for {
41113		x, err := c.Do()
41114		if err != nil {
41115			return err
41116		}
41117		if err := f(x); err != nil {
41118			return err
41119		}
41120		if x.NextPageToken == "" {
41121			return nil
41122		}
41123		c.PageToken(x.NextPageToken)
41124	}
41125}
41126
41127// method id "apigee.organizations.instances.canaryevaluations.create":
41128
41129type OrganizationsInstancesCanaryevaluationsCreateCall struct {
41130	s                                   *Service
41131	parent                              string
41132	googlecloudapigeev1canaryevaluation *GoogleCloudApigeeV1CanaryEvaluation
41133	urlParams_                          gensupport.URLParams
41134	ctx_                                context.Context
41135	header_                             http.Header
41136}
41137
41138// Create: Creates a new canary evaluation for an organization.
41139//
41140// - parent: Name of the organization. Use the following structure in
41141//   your request: `organizations/{org}/instances/{instance}`.
41142func (r *OrganizationsInstancesCanaryevaluationsService) Create(parent string, googlecloudapigeev1canaryevaluation *GoogleCloudApigeeV1CanaryEvaluation) *OrganizationsInstancesCanaryevaluationsCreateCall {
41143	c := &OrganizationsInstancesCanaryevaluationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41144	c.parent = parent
41145	c.googlecloudapigeev1canaryevaluation = googlecloudapigeev1canaryevaluation
41146	return c
41147}
41148
41149// Fields allows partial responses to be retrieved. See
41150// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
41151// for more information.
41152func (c *OrganizationsInstancesCanaryevaluationsCreateCall) Fields(s ...googleapi.Field) *OrganizationsInstancesCanaryevaluationsCreateCall {
41153	c.urlParams_.Set("fields", googleapi.CombineFields(s))
41154	return c
41155}
41156
41157// Context sets the context to be used in this call's Do method. Any
41158// pending HTTP request will be aborted if the provided context is
41159// canceled.
41160func (c *OrganizationsInstancesCanaryevaluationsCreateCall) Context(ctx context.Context) *OrganizationsInstancesCanaryevaluationsCreateCall {
41161	c.ctx_ = ctx
41162	return c
41163}
41164
41165// Header returns an http.Header that can be modified by the caller to
41166// add HTTP headers to the request.
41167func (c *OrganizationsInstancesCanaryevaluationsCreateCall) Header() http.Header {
41168	if c.header_ == nil {
41169		c.header_ = make(http.Header)
41170	}
41171	return c.header_
41172}
41173
41174func (c *OrganizationsInstancesCanaryevaluationsCreateCall) doRequest(alt string) (*http.Response, error) {
41175	reqHeaders := make(http.Header)
41176	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
41177	for k, v := range c.header_ {
41178		reqHeaders[k] = v
41179	}
41180	reqHeaders.Set("User-Agent", c.s.userAgent())
41181	var body io.Reader = nil
41182	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1canaryevaluation)
41183	if err != nil {
41184		return nil, err
41185	}
41186	reqHeaders.Set("Content-Type", "application/json")
41187	c.urlParams_.Set("alt", alt)
41188	c.urlParams_.Set("prettyPrint", "false")
41189	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/canaryevaluations")
41190	urls += "?" + c.urlParams_.Encode()
41191	req, err := http.NewRequest("POST", urls, body)
41192	if err != nil {
41193		return nil, err
41194	}
41195	req.Header = reqHeaders
41196	googleapi.Expand(req.URL, map[string]string{
41197		"parent": c.parent,
41198	})
41199	return gensupport.SendRequest(c.ctx_, c.s.client, req)
41200}
41201
41202// Do executes the "apigee.organizations.instances.canaryevaluations.create" call.
41203// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
41204// Any non-2xx status code is an error. Response headers are in either
41205// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
41206// was returned at all) in error.(*googleapi.Error).Header. Use
41207// googleapi.IsNotModified to check whether the returned error was
41208// because http.StatusNotModified was returned.
41209func (c *OrganizationsInstancesCanaryevaluationsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
41210	gensupport.SetOptions(c.urlParams_, opts...)
41211	res, err := c.doRequest("json")
41212	if res != nil && res.StatusCode == http.StatusNotModified {
41213		if res.Body != nil {
41214			res.Body.Close()
41215		}
41216		return nil, &googleapi.Error{
41217			Code:   res.StatusCode,
41218			Header: res.Header,
41219		}
41220	}
41221	if err != nil {
41222		return nil, err
41223	}
41224	defer googleapi.CloseBody(res)
41225	if err := googleapi.CheckResponse(res); err != nil {
41226		return nil, err
41227	}
41228	ret := &GoogleLongrunningOperation{
41229		ServerResponse: googleapi.ServerResponse{
41230			Header:         res.Header,
41231			HTTPStatusCode: res.StatusCode,
41232		},
41233	}
41234	target := &ret
41235	if err := gensupport.DecodeResponse(target, res); err != nil {
41236		return nil, err
41237	}
41238	return ret, nil
41239	// {
41240	//   "description": "Creates a new canary evaluation for an organization.",
41241	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/canaryevaluations",
41242	//   "httpMethod": "POST",
41243	//   "id": "apigee.organizations.instances.canaryevaluations.create",
41244	//   "parameterOrder": [
41245	//     "parent"
41246	//   ],
41247	//   "parameters": {
41248	//     "parent": {
41249	//       "description": "Required. Name of the organization. Use the following structure in your request: `organizations/{org}/instances/{instance}`.",
41250	//       "location": "path",
41251	//       "pattern": "^organizations/[^/]+/instances/[^/]+$",
41252	//       "required": true,
41253	//       "type": "string"
41254	//     }
41255	//   },
41256	//   "path": "v1/{+parent}/canaryevaluations",
41257	//   "request": {
41258	//     "$ref": "GoogleCloudApigeeV1CanaryEvaluation"
41259	//   },
41260	//   "response": {
41261	//     "$ref": "GoogleLongrunningOperation"
41262	//   },
41263	//   "scopes": [
41264	//     "https://www.googleapis.com/auth/cloud-platform"
41265	//   ]
41266	// }
41267
41268}
41269
41270// method id "apigee.organizations.instances.canaryevaluations.get":
41271
41272type OrganizationsInstancesCanaryevaluationsGetCall struct {
41273	s            *Service
41274	name         string
41275	urlParams_   gensupport.URLParams
41276	ifNoneMatch_ string
41277	ctx_         context.Context
41278	header_      http.Header
41279}
41280
41281// Get: Gets a CanaryEvaluation for an organization.
41282//
41283// - name: Name of the CanaryEvaluation. Use the following structure in
41284//   your request:
41285//   `organizations/{org}/instances/*/canaryevaluations/{evaluation}`.
41286func (r *OrganizationsInstancesCanaryevaluationsService) Get(name string) *OrganizationsInstancesCanaryevaluationsGetCall {
41287	c := &OrganizationsInstancesCanaryevaluationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41288	c.name = name
41289	return c
41290}
41291
41292// Fields allows partial responses to be retrieved. See
41293// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
41294// for more information.
41295func (c *OrganizationsInstancesCanaryevaluationsGetCall) Fields(s ...googleapi.Field) *OrganizationsInstancesCanaryevaluationsGetCall {
41296	c.urlParams_.Set("fields", googleapi.CombineFields(s))
41297	return c
41298}
41299
41300// IfNoneMatch sets the optional parameter which makes the operation
41301// fail if the object's ETag matches the given value. This is useful for
41302// getting updates only after the object has changed since the last
41303// request. Use googleapi.IsNotModified to check whether the response
41304// error from Do is the result of In-None-Match.
41305func (c *OrganizationsInstancesCanaryevaluationsGetCall) IfNoneMatch(entityTag string) *OrganizationsInstancesCanaryevaluationsGetCall {
41306	c.ifNoneMatch_ = entityTag
41307	return c
41308}
41309
41310// Context sets the context to be used in this call's Do method. Any
41311// pending HTTP request will be aborted if the provided context is
41312// canceled.
41313func (c *OrganizationsInstancesCanaryevaluationsGetCall) Context(ctx context.Context) *OrganizationsInstancesCanaryevaluationsGetCall {
41314	c.ctx_ = ctx
41315	return c
41316}
41317
41318// Header returns an http.Header that can be modified by the caller to
41319// add HTTP headers to the request.
41320func (c *OrganizationsInstancesCanaryevaluationsGetCall) Header() http.Header {
41321	if c.header_ == nil {
41322		c.header_ = make(http.Header)
41323	}
41324	return c.header_
41325}
41326
41327func (c *OrganizationsInstancesCanaryevaluationsGetCall) doRequest(alt string) (*http.Response, error) {
41328	reqHeaders := make(http.Header)
41329	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
41330	for k, v := range c.header_ {
41331		reqHeaders[k] = v
41332	}
41333	reqHeaders.Set("User-Agent", c.s.userAgent())
41334	if c.ifNoneMatch_ != "" {
41335		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
41336	}
41337	var body io.Reader = nil
41338	c.urlParams_.Set("alt", alt)
41339	c.urlParams_.Set("prettyPrint", "false")
41340	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
41341	urls += "?" + c.urlParams_.Encode()
41342	req, err := http.NewRequest("GET", urls, body)
41343	if err != nil {
41344		return nil, err
41345	}
41346	req.Header = reqHeaders
41347	googleapi.Expand(req.URL, map[string]string{
41348		"name": c.name,
41349	})
41350	return gensupport.SendRequest(c.ctx_, c.s.client, req)
41351}
41352
41353// Do executes the "apigee.organizations.instances.canaryevaluations.get" call.
41354// Exactly one of *GoogleCloudApigeeV1CanaryEvaluation or error will be
41355// non-nil. Any non-2xx status code is an error. Response headers are in
41356// either *GoogleCloudApigeeV1CanaryEvaluation.ServerResponse.Header or
41357// (if a response was returned at all) in
41358// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
41359// whether the returned error was because http.StatusNotModified was
41360// returned.
41361func (c *OrganizationsInstancesCanaryevaluationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1CanaryEvaluation, error) {
41362	gensupport.SetOptions(c.urlParams_, opts...)
41363	res, err := c.doRequest("json")
41364	if res != nil && res.StatusCode == http.StatusNotModified {
41365		if res.Body != nil {
41366			res.Body.Close()
41367		}
41368		return nil, &googleapi.Error{
41369			Code:   res.StatusCode,
41370			Header: res.Header,
41371		}
41372	}
41373	if err != nil {
41374		return nil, err
41375	}
41376	defer googleapi.CloseBody(res)
41377	if err := googleapi.CheckResponse(res); err != nil {
41378		return nil, err
41379	}
41380	ret := &GoogleCloudApigeeV1CanaryEvaluation{
41381		ServerResponse: googleapi.ServerResponse{
41382			Header:         res.Header,
41383			HTTPStatusCode: res.StatusCode,
41384		},
41385	}
41386	target := &ret
41387	if err := gensupport.DecodeResponse(target, res); err != nil {
41388		return nil, err
41389	}
41390	return ret, nil
41391	// {
41392	//   "description": "Gets a CanaryEvaluation for an organization.",
41393	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/canaryevaluations/{canaryevaluationsId}",
41394	//   "httpMethod": "GET",
41395	//   "id": "apigee.organizations.instances.canaryevaluations.get",
41396	//   "parameterOrder": [
41397	//     "name"
41398	//   ],
41399	//   "parameters": {
41400	//     "name": {
41401	//       "description": "Required. Name of the CanaryEvaluation. Use the following structure in your request: `organizations/{org}/instances/*/canaryevaluations/{evaluation}`",
41402	//       "location": "path",
41403	//       "pattern": "^organizations/[^/]+/instances/[^/]+/canaryevaluations/[^/]+$",
41404	//       "required": true,
41405	//       "type": "string"
41406	//     }
41407	//   },
41408	//   "path": "v1/{+name}",
41409	//   "response": {
41410	//     "$ref": "GoogleCloudApigeeV1CanaryEvaluation"
41411	//   },
41412	//   "scopes": [
41413	//     "https://www.googleapis.com/auth/cloud-platform"
41414	//   ]
41415	// }
41416
41417}
41418
41419// method id "apigee.organizations.instances.natAddresses.activate":
41420
41421type OrganizationsInstancesNatAddressesActivateCall struct {
41422	s                                            *Service
41423	name                                         string
41424	googlecloudapigeev1activatenataddressrequest *GoogleCloudApigeeV1ActivateNatAddressRequest
41425	urlParams_                                   gensupport.URLParams
41426	ctx_                                         context.Context
41427	header_                                      http.Header
41428}
41429
41430// Activate: Activates the NAT address. The Apigee instance can now use
41431// this for Internet egress traffic. **Note:** Not supported for Apigee
41432// hybrid.
41433//
41434// - name: Name of the nat address. Use the following structure in your
41435//   request:
41436//   `organizations/{org}/instances/{instances}/natAddresses/{nataddress}
41437//   ``.
41438func (r *OrganizationsInstancesNatAddressesService) Activate(name string, googlecloudapigeev1activatenataddressrequest *GoogleCloudApigeeV1ActivateNatAddressRequest) *OrganizationsInstancesNatAddressesActivateCall {
41439	c := &OrganizationsInstancesNatAddressesActivateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41440	c.name = name
41441	c.googlecloudapigeev1activatenataddressrequest = googlecloudapigeev1activatenataddressrequest
41442	return c
41443}
41444
41445// Fields allows partial responses to be retrieved. See
41446// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
41447// for more information.
41448func (c *OrganizationsInstancesNatAddressesActivateCall) Fields(s ...googleapi.Field) *OrganizationsInstancesNatAddressesActivateCall {
41449	c.urlParams_.Set("fields", googleapi.CombineFields(s))
41450	return c
41451}
41452
41453// Context sets the context to be used in this call's Do method. Any
41454// pending HTTP request will be aborted if the provided context is
41455// canceled.
41456func (c *OrganizationsInstancesNatAddressesActivateCall) Context(ctx context.Context) *OrganizationsInstancesNatAddressesActivateCall {
41457	c.ctx_ = ctx
41458	return c
41459}
41460
41461// Header returns an http.Header that can be modified by the caller to
41462// add HTTP headers to the request.
41463func (c *OrganizationsInstancesNatAddressesActivateCall) Header() http.Header {
41464	if c.header_ == nil {
41465		c.header_ = make(http.Header)
41466	}
41467	return c.header_
41468}
41469
41470func (c *OrganizationsInstancesNatAddressesActivateCall) doRequest(alt string) (*http.Response, error) {
41471	reqHeaders := make(http.Header)
41472	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
41473	for k, v := range c.header_ {
41474		reqHeaders[k] = v
41475	}
41476	reqHeaders.Set("User-Agent", c.s.userAgent())
41477	var body io.Reader = nil
41478	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1activatenataddressrequest)
41479	if err != nil {
41480		return nil, err
41481	}
41482	reqHeaders.Set("Content-Type", "application/json")
41483	c.urlParams_.Set("alt", alt)
41484	c.urlParams_.Set("prettyPrint", "false")
41485	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:activate")
41486	urls += "?" + c.urlParams_.Encode()
41487	req, err := http.NewRequest("POST", urls, body)
41488	if err != nil {
41489		return nil, err
41490	}
41491	req.Header = reqHeaders
41492	googleapi.Expand(req.URL, map[string]string{
41493		"name": c.name,
41494	})
41495	return gensupport.SendRequest(c.ctx_, c.s.client, req)
41496}
41497
41498// Do executes the "apigee.organizations.instances.natAddresses.activate" call.
41499// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
41500// Any non-2xx status code is an error. Response headers are in either
41501// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
41502// was returned at all) in error.(*googleapi.Error).Header. Use
41503// googleapi.IsNotModified to check whether the returned error was
41504// because http.StatusNotModified was returned.
41505func (c *OrganizationsInstancesNatAddressesActivateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
41506	gensupport.SetOptions(c.urlParams_, opts...)
41507	res, err := c.doRequest("json")
41508	if res != nil && res.StatusCode == http.StatusNotModified {
41509		if res.Body != nil {
41510			res.Body.Close()
41511		}
41512		return nil, &googleapi.Error{
41513			Code:   res.StatusCode,
41514			Header: res.Header,
41515		}
41516	}
41517	if err != nil {
41518		return nil, err
41519	}
41520	defer googleapi.CloseBody(res)
41521	if err := googleapi.CheckResponse(res); err != nil {
41522		return nil, err
41523	}
41524	ret := &GoogleLongrunningOperation{
41525		ServerResponse: googleapi.ServerResponse{
41526			Header:         res.Header,
41527			HTTPStatusCode: res.StatusCode,
41528		},
41529	}
41530	target := &ret
41531	if err := gensupport.DecodeResponse(target, res); err != nil {
41532		return nil, err
41533	}
41534	return ret, nil
41535	// {
41536	//   "description": "Activates the NAT address. The Apigee instance can now use this for Internet egress traffic. **Note:** Not supported for Apigee hybrid.",
41537	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/natAddresses/{natAddressesId}:activate",
41538	//   "httpMethod": "POST",
41539	//   "id": "apigee.organizations.instances.natAddresses.activate",
41540	//   "parameterOrder": [
41541	//     "name"
41542	//   ],
41543	//   "parameters": {
41544	//     "name": {
41545	//       "description": "Required. Name of the nat address. Use the following structure in your request: `organizations/{org}/instances/{instances}/natAddresses/{nataddress}``",
41546	//       "location": "path",
41547	//       "pattern": "^organizations/[^/]+/instances/[^/]+/natAddresses/[^/]+$",
41548	//       "required": true,
41549	//       "type": "string"
41550	//     }
41551	//   },
41552	//   "path": "v1/{+name}:activate",
41553	//   "request": {
41554	//     "$ref": "GoogleCloudApigeeV1ActivateNatAddressRequest"
41555	//   },
41556	//   "response": {
41557	//     "$ref": "GoogleLongrunningOperation"
41558	//   },
41559	//   "scopes": [
41560	//     "https://www.googleapis.com/auth/cloud-platform"
41561	//   ]
41562	// }
41563
41564}
41565
41566// method id "apigee.organizations.instances.natAddresses.create":
41567
41568type OrganizationsInstancesNatAddressesCreateCall struct {
41569	s                             *Service
41570	parent                        string
41571	googlecloudapigeev1nataddress *GoogleCloudApigeeV1NatAddress
41572	urlParams_                    gensupport.URLParams
41573	ctx_                          context.Context
41574	header_                       http.Header
41575}
41576
41577// Create: Creates a NAT address. The address is created in the RESERVED
41578// state and a static external IP address will be provisioned. At this
41579// time, the instance will not use this IP address for Internet egress
41580// traffic. The address can be activated for use once any required
41581// firewall IP whitelisting has been completed. **Note:** Not supported
41582// for Apigee hybrid.
41583//
41584// - parent: Name of the instance. Use the following structure in your
41585//   request: `organizations/{org}/instances/{instance}`.
41586func (r *OrganizationsInstancesNatAddressesService) Create(parent string, googlecloudapigeev1nataddress *GoogleCloudApigeeV1NatAddress) *OrganizationsInstancesNatAddressesCreateCall {
41587	c := &OrganizationsInstancesNatAddressesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41588	c.parent = parent
41589	c.googlecloudapigeev1nataddress = googlecloudapigeev1nataddress
41590	return c
41591}
41592
41593// Fields allows partial responses to be retrieved. See
41594// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
41595// for more information.
41596func (c *OrganizationsInstancesNatAddressesCreateCall) Fields(s ...googleapi.Field) *OrganizationsInstancesNatAddressesCreateCall {
41597	c.urlParams_.Set("fields", googleapi.CombineFields(s))
41598	return c
41599}
41600
41601// Context sets the context to be used in this call's Do method. Any
41602// pending HTTP request will be aborted if the provided context is
41603// canceled.
41604func (c *OrganizationsInstancesNatAddressesCreateCall) Context(ctx context.Context) *OrganizationsInstancesNatAddressesCreateCall {
41605	c.ctx_ = ctx
41606	return c
41607}
41608
41609// Header returns an http.Header that can be modified by the caller to
41610// add HTTP headers to the request.
41611func (c *OrganizationsInstancesNatAddressesCreateCall) Header() http.Header {
41612	if c.header_ == nil {
41613		c.header_ = make(http.Header)
41614	}
41615	return c.header_
41616}
41617
41618func (c *OrganizationsInstancesNatAddressesCreateCall) doRequest(alt string) (*http.Response, error) {
41619	reqHeaders := make(http.Header)
41620	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
41621	for k, v := range c.header_ {
41622		reqHeaders[k] = v
41623	}
41624	reqHeaders.Set("User-Agent", c.s.userAgent())
41625	var body io.Reader = nil
41626	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1nataddress)
41627	if err != nil {
41628		return nil, err
41629	}
41630	reqHeaders.Set("Content-Type", "application/json")
41631	c.urlParams_.Set("alt", alt)
41632	c.urlParams_.Set("prettyPrint", "false")
41633	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/natAddresses")
41634	urls += "?" + c.urlParams_.Encode()
41635	req, err := http.NewRequest("POST", urls, body)
41636	if err != nil {
41637		return nil, err
41638	}
41639	req.Header = reqHeaders
41640	googleapi.Expand(req.URL, map[string]string{
41641		"parent": c.parent,
41642	})
41643	return gensupport.SendRequest(c.ctx_, c.s.client, req)
41644}
41645
41646// Do executes the "apigee.organizations.instances.natAddresses.create" call.
41647// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
41648// Any non-2xx status code is an error. Response headers are in either
41649// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
41650// was returned at all) in error.(*googleapi.Error).Header. Use
41651// googleapi.IsNotModified to check whether the returned error was
41652// because http.StatusNotModified was returned.
41653func (c *OrganizationsInstancesNatAddressesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
41654	gensupport.SetOptions(c.urlParams_, opts...)
41655	res, err := c.doRequest("json")
41656	if res != nil && res.StatusCode == http.StatusNotModified {
41657		if res.Body != nil {
41658			res.Body.Close()
41659		}
41660		return nil, &googleapi.Error{
41661			Code:   res.StatusCode,
41662			Header: res.Header,
41663		}
41664	}
41665	if err != nil {
41666		return nil, err
41667	}
41668	defer googleapi.CloseBody(res)
41669	if err := googleapi.CheckResponse(res); err != nil {
41670		return nil, err
41671	}
41672	ret := &GoogleLongrunningOperation{
41673		ServerResponse: googleapi.ServerResponse{
41674			Header:         res.Header,
41675			HTTPStatusCode: res.StatusCode,
41676		},
41677	}
41678	target := &ret
41679	if err := gensupport.DecodeResponse(target, res); err != nil {
41680		return nil, err
41681	}
41682	return ret, nil
41683	// {
41684	//   "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.",
41685	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/natAddresses",
41686	//   "httpMethod": "POST",
41687	//   "id": "apigee.organizations.instances.natAddresses.create",
41688	//   "parameterOrder": [
41689	//     "parent"
41690	//   ],
41691	//   "parameters": {
41692	//     "parent": {
41693	//       "description": "Required. Name of the instance. Use the following structure in your request: `organizations/{org}/instances/{instance}`",
41694	//       "location": "path",
41695	//       "pattern": "^organizations/[^/]+/instances/[^/]+$",
41696	//       "required": true,
41697	//       "type": "string"
41698	//     }
41699	//   },
41700	//   "path": "v1/{+parent}/natAddresses",
41701	//   "request": {
41702	//     "$ref": "GoogleCloudApigeeV1NatAddress"
41703	//   },
41704	//   "response": {
41705	//     "$ref": "GoogleLongrunningOperation"
41706	//   },
41707	//   "scopes": [
41708	//     "https://www.googleapis.com/auth/cloud-platform"
41709	//   ]
41710	// }
41711
41712}
41713
41714// method id "apigee.organizations.instances.natAddresses.delete":
41715
41716type OrganizationsInstancesNatAddressesDeleteCall struct {
41717	s          *Service
41718	name       string
41719	urlParams_ gensupport.URLParams
41720	ctx_       context.Context
41721	header_    http.Header
41722}
41723
41724// Delete: Deletes the NAT address. Connections that are actively using
41725// the address are drained before it is removed. **Note:** Not supported
41726// for Apigee hybrid.
41727//
41728// - name: Name of the nat address. Use the following structure in your
41729//   request:
41730//   `organizations/{org}/instances/{instances}/natAddresses/{nataddress}
41731//   ``.
41732func (r *OrganizationsInstancesNatAddressesService) Delete(name string) *OrganizationsInstancesNatAddressesDeleteCall {
41733	c := &OrganizationsInstancesNatAddressesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41734	c.name = name
41735	return c
41736}
41737
41738// Fields allows partial responses to be retrieved. See
41739// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
41740// for more information.
41741func (c *OrganizationsInstancesNatAddressesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsInstancesNatAddressesDeleteCall {
41742	c.urlParams_.Set("fields", googleapi.CombineFields(s))
41743	return c
41744}
41745
41746// Context sets the context to be used in this call's Do method. Any
41747// pending HTTP request will be aborted if the provided context is
41748// canceled.
41749func (c *OrganizationsInstancesNatAddressesDeleteCall) Context(ctx context.Context) *OrganizationsInstancesNatAddressesDeleteCall {
41750	c.ctx_ = ctx
41751	return c
41752}
41753
41754// Header returns an http.Header that can be modified by the caller to
41755// add HTTP headers to the request.
41756func (c *OrganizationsInstancesNatAddressesDeleteCall) Header() http.Header {
41757	if c.header_ == nil {
41758		c.header_ = make(http.Header)
41759	}
41760	return c.header_
41761}
41762
41763func (c *OrganizationsInstancesNatAddressesDeleteCall) doRequest(alt string) (*http.Response, error) {
41764	reqHeaders := make(http.Header)
41765	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
41766	for k, v := range c.header_ {
41767		reqHeaders[k] = v
41768	}
41769	reqHeaders.Set("User-Agent", c.s.userAgent())
41770	var body io.Reader = nil
41771	c.urlParams_.Set("alt", alt)
41772	c.urlParams_.Set("prettyPrint", "false")
41773	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
41774	urls += "?" + c.urlParams_.Encode()
41775	req, err := http.NewRequest("DELETE", urls, body)
41776	if err != nil {
41777		return nil, err
41778	}
41779	req.Header = reqHeaders
41780	googleapi.Expand(req.URL, map[string]string{
41781		"name": c.name,
41782	})
41783	return gensupport.SendRequest(c.ctx_, c.s.client, req)
41784}
41785
41786// Do executes the "apigee.organizations.instances.natAddresses.delete" call.
41787// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
41788// Any non-2xx status code is an error. Response headers are in either
41789// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
41790// was returned at all) in error.(*googleapi.Error).Header. Use
41791// googleapi.IsNotModified to check whether the returned error was
41792// because http.StatusNotModified was returned.
41793func (c *OrganizationsInstancesNatAddressesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
41794	gensupport.SetOptions(c.urlParams_, opts...)
41795	res, err := c.doRequest("json")
41796	if res != nil && res.StatusCode == http.StatusNotModified {
41797		if res.Body != nil {
41798			res.Body.Close()
41799		}
41800		return nil, &googleapi.Error{
41801			Code:   res.StatusCode,
41802			Header: res.Header,
41803		}
41804	}
41805	if err != nil {
41806		return nil, err
41807	}
41808	defer googleapi.CloseBody(res)
41809	if err := googleapi.CheckResponse(res); err != nil {
41810		return nil, err
41811	}
41812	ret := &GoogleLongrunningOperation{
41813		ServerResponse: googleapi.ServerResponse{
41814			Header:         res.Header,
41815			HTTPStatusCode: res.StatusCode,
41816		},
41817	}
41818	target := &ret
41819	if err := gensupport.DecodeResponse(target, res); err != nil {
41820		return nil, err
41821	}
41822	return ret, nil
41823	// {
41824	//   "description": "Deletes the NAT address. Connections that are actively using the address are drained before it is removed. **Note:** Not supported for Apigee hybrid.",
41825	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/natAddresses/{natAddressesId}",
41826	//   "httpMethod": "DELETE",
41827	//   "id": "apigee.organizations.instances.natAddresses.delete",
41828	//   "parameterOrder": [
41829	//     "name"
41830	//   ],
41831	//   "parameters": {
41832	//     "name": {
41833	//       "description": "Required. Name of the nat address. Use the following structure in your request: `organizations/{org}/instances/{instances}/natAddresses/{nataddress}``",
41834	//       "location": "path",
41835	//       "pattern": "^organizations/[^/]+/instances/[^/]+/natAddresses/[^/]+$",
41836	//       "required": true,
41837	//       "type": "string"
41838	//     }
41839	//   },
41840	//   "path": "v1/{+name}",
41841	//   "response": {
41842	//     "$ref": "GoogleLongrunningOperation"
41843	//   },
41844	//   "scopes": [
41845	//     "https://www.googleapis.com/auth/cloud-platform"
41846	//   ]
41847	// }
41848
41849}
41850
41851// method id "apigee.organizations.instances.natAddresses.get":
41852
41853type OrganizationsInstancesNatAddressesGetCall struct {
41854	s            *Service
41855	name         string
41856	urlParams_   gensupport.URLParams
41857	ifNoneMatch_ string
41858	ctx_         context.Context
41859	header_      http.Header
41860}
41861
41862// Get: Gets the details of a NAT address. **Note:** Not supported for
41863// Apigee hybrid.
41864//
41865// - name: Name of the nat address. Use the following structure in your
41866//   request:
41867//   `organizations/{org}/instances/{instances}/natAddresses/{nataddress}
41868//   `.
41869func (r *OrganizationsInstancesNatAddressesService) Get(name string) *OrganizationsInstancesNatAddressesGetCall {
41870	c := &OrganizationsInstancesNatAddressesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41871	c.name = name
41872	return c
41873}
41874
41875// Fields allows partial responses to be retrieved. See
41876// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
41877// for more information.
41878func (c *OrganizationsInstancesNatAddressesGetCall) Fields(s ...googleapi.Field) *OrganizationsInstancesNatAddressesGetCall {
41879	c.urlParams_.Set("fields", googleapi.CombineFields(s))
41880	return c
41881}
41882
41883// IfNoneMatch sets the optional parameter which makes the operation
41884// fail if the object's ETag matches the given value. This is useful for
41885// getting updates only after the object has changed since the last
41886// request. Use googleapi.IsNotModified to check whether the response
41887// error from Do is the result of In-None-Match.
41888func (c *OrganizationsInstancesNatAddressesGetCall) IfNoneMatch(entityTag string) *OrganizationsInstancesNatAddressesGetCall {
41889	c.ifNoneMatch_ = entityTag
41890	return c
41891}
41892
41893// Context sets the context to be used in this call's Do method. Any
41894// pending HTTP request will be aborted if the provided context is
41895// canceled.
41896func (c *OrganizationsInstancesNatAddressesGetCall) Context(ctx context.Context) *OrganizationsInstancesNatAddressesGetCall {
41897	c.ctx_ = ctx
41898	return c
41899}
41900
41901// Header returns an http.Header that can be modified by the caller to
41902// add HTTP headers to the request.
41903func (c *OrganizationsInstancesNatAddressesGetCall) Header() http.Header {
41904	if c.header_ == nil {
41905		c.header_ = make(http.Header)
41906	}
41907	return c.header_
41908}
41909
41910func (c *OrganizationsInstancesNatAddressesGetCall) doRequest(alt string) (*http.Response, error) {
41911	reqHeaders := make(http.Header)
41912	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
41913	for k, v := range c.header_ {
41914		reqHeaders[k] = v
41915	}
41916	reqHeaders.Set("User-Agent", c.s.userAgent())
41917	if c.ifNoneMatch_ != "" {
41918		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
41919	}
41920	var body io.Reader = nil
41921	c.urlParams_.Set("alt", alt)
41922	c.urlParams_.Set("prettyPrint", "false")
41923	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
41924	urls += "?" + c.urlParams_.Encode()
41925	req, err := http.NewRequest("GET", urls, body)
41926	if err != nil {
41927		return nil, err
41928	}
41929	req.Header = reqHeaders
41930	googleapi.Expand(req.URL, map[string]string{
41931		"name": c.name,
41932	})
41933	return gensupport.SendRequest(c.ctx_, c.s.client, req)
41934}
41935
41936// Do executes the "apigee.organizations.instances.natAddresses.get" call.
41937// Exactly one of *GoogleCloudApigeeV1NatAddress or error will be
41938// non-nil. Any non-2xx status code is an error. Response headers are in
41939// either *GoogleCloudApigeeV1NatAddress.ServerResponse.Header or (if a
41940// response was returned at all) in error.(*googleapi.Error).Header. Use
41941// googleapi.IsNotModified to check whether the returned error was
41942// because http.StatusNotModified was returned.
41943func (c *OrganizationsInstancesNatAddressesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1NatAddress, error) {
41944	gensupport.SetOptions(c.urlParams_, opts...)
41945	res, err := c.doRequest("json")
41946	if res != nil && res.StatusCode == http.StatusNotModified {
41947		if res.Body != nil {
41948			res.Body.Close()
41949		}
41950		return nil, &googleapi.Error{
41951			Code:   res.StatusCode,
41952			Header: res.Header,
41953		}
41954	}
41955	if err != nil {
41956		return nil, err
41957	}
41958	defer googleapi.CloseBody(res)
41959	if err := googleapi.CheckResponse(res); err != nil {
41960		return nil, err
41961	}
41962	ret := &GoogleCloudApigeeV1NatAddress{
41963		ServerResponse: googleapi.ServerResponse{
41964			Header:         res.Header,
41965			HTTPStatusCode: res.StatusCode,
41966		},
41967	}
41968	target := &ret
41969	if err := gensupport.DecodeResponse(target, res); err != nil {
41970		return nil, err
41971	}
41972	return ret, nil
41973	// {
41974	//   "description": "Gets the details of a NAT address. **Note:** Not supported for Apigee hybrid.",
41975	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/natAddresses/{natAddressesId}",
41976	//   "httpMethod": "GET",
41977	//   "id": "apigee.organizations.instances.natAddresses.get",
41978	//   "parameterOrder": [
41979	//     "name"
41980	//   ],
41981	//   "parameters": {
41982	//     "name": {
41983	//       "description": "Required. Name of the nat address. Use the following structure in your request: `organizations/{org}/instances/{instances}/natAddresses/{nataddress}`",
41984	//       "location": "path",
41985	//       "pattern": "^organizations/[^/]+/instances/[^/]+/natAddresses/[^/]+$",
41986	//       "required": true,
41987	//       "type": "string"
41988	//     }
41989	//   },
41990	//   "path": "v1/{+name}",
41991	//   "response": {
41992	//     "$ref": "GoogleCloudApigeeV1NatAddress"
41993	//   },
41994	//   "scopes": [
41995	//     "https://www.googleapis.com/auth/cloud-platform"
41996	//   ]
41997	// }
41998
41999}
42000
42001// method id "apigee.organizations.instances.natAddresses.list":
42002
42003type OrganizationsInstancesNatAddressesListCall struct {
42004	s            *Service
42005	parent       string
42006	urlParams_   gensupport.URLParams
42007	ifNoneMatch_ string
42008	ctx_         context.Context
42009	header_      http.Header
42010}
42011
42012// List: Lists the NAT addresses for an Apigee instance. **Note:** Not
42013// supported for Apigee hybrid.
42014//
42015// - parent: Name of the instance. Use the following structure in your
42016//   request: `organizations/{org}/instances/{instance}`.
42017func (r *OrganizationsInstancesNatAddressesService) List(parent string) *OrganizationsInstancesNatAddressesListCall {
42018	c := &OrganizationsInstancesNatAddressesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42019	c.parent = parent
42020	return c
42021}
42022
42023// PageSize sets the optional parameter "pageSize": Maximum number of
42024// natAddresses to return. Defaults to 25.
42025func (c *OrganizationsInstancesNatAddressesListCall) PageSize(pageSize int64) *OrganizationsInstancesNatAddressesListCall {
42026	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
42027	return c
42028}
42029
42030// PageToken sets the optional parameter "pageToken": Page token,
42031// returned from a previous ListNatAddresses call, that you can use to
42032// retrieve the next page of content.
42033func (c *OrganizationsInstancesNatAddressesListCall) PageToken(pageToken string) *OrganizationsInstancesNatAddressesListCall {
42034	c.urlParams_.Set("pageToken", pageToken)
42035	return c
42036}
42037
42038// Fields allows partial responses to be retrieved. See
42039// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
42040// for more information.
42041func (c *OrganizationsInstancesNatAddressesListCall) Fields(s ...googleapi.Field) *OrganizationsInstancesNatAddressesListCall {
42042	c.urlParams_.Set("fields", googleapi.CombineFields(s))
42043	return c
42044}
42045
42046// IfNoneMatch sets the optional parameter which makes the operation
42047// fail if the object's ETag matches the given value. This is useful for
42048// getting updates only after the object has changed since the last
42049// request. Use googleapi.IsNotModified to check whether the response
42050// error from Do is the result of In-None-Match.
42051func (c *OrganizationsInstancesNatAddressesListCall) IfNoneMatch(entityTag string) *OrganizationsInstancesNatAddressesListCall {
42052	c.ifNoneMatch_ = entityTag
42053	return c
42054}
42055
42056// Context sets the context to be used in this call's Do method. Any
42057// pending HTTP request will be aborted if the provided context is
42058// canceled.
42059func (c *OrganizationsInstancesNatAddressesListCall) Context(ctx context.Context) *OrganizationsInstancesNatAddressesListCall {
42060	c.ctx_ = ctx
42061	return c
42062}
42063
42064// Header returns an http.Header that can be modified by the caller to
42065// add HTTP headers to the request.
42066func (c *OrganizationsInstancesNatAddressesListCall) Header() http.Header {
42067	if c.header_ == nil {
42068		c.header_ = make(http.Header)
42069	}
42070	return c.header_
42071}
42072
42073func (c *OrganizationsInstancesNatAddressesListCall) doRequest(alt string) (*http.Response, error) {
42074	reqHeaders := make(http.Header)
42075	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
42076	for k, v := range c.header_ {
42077		reqHeaders[k] = v
42078	}
42079	reqHeaders.Set("User-Agent", c.s.userAgent())
42080	if c.ifNoneMatch_ != "" {
42081		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
42082	}
42083	var body io.Reader = nil
42084	c.urlParams_.Set("alt", alt)
42085	c.urlParams_.Set("prettyPrint", "false")
42086	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/natAddresses")
42087	urls += "?" + c.urlParams_.Encode()
42088	req, err := http.NewRequest("GET", urls, body)
42089	if err != nil {
42090		return nil, err
42091	}
42092	req.Header = reqHeaders
42093	googleapi.Expand(req.URL, map[string]string{
42094		"parent": c.parent,
42095	})
42096	return gensupport.SendRequest(c.ctx_, c.s.client, req)
42097}
42098
42099// Do executes the "apigee.organizations.instances.natAddresses.list" call.
42100// Exactly one of *GoogleCloudApigeeV1ListNatAddressesResponse or error
42101// will be non-nil. Any non-2xx status code is an error. Response
42102// headers are in either
42103// *GoogleCloudApigeeV1ListNatAddressesResponse.ServerResponse.Header or
42104// (if a response was returned at all) in
42105// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
42106// whether the returned error was because http.StatusNotModified was
42107// returned.
42108func (c *OrganizationsInstancesNatAddressesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListNatAddressesResponse, error) {
42109	gensupport.SetOptions(c.urlParams_, opts...)
42110	res, err := c.doRequest("json")
42111	if res != nil && res.StatusCode == http.StatusNotModified {
42112		if res.Body != nil {
42113			res.Body.Close()
42114		}
42115		return nil, &googleapi.Error{
42116			Code:   res.StatusCode,
42117			Header: res.Header,
42118		}
42119	}
42120	if err != nil {
42121		return nil, err
42122	}
42123	defer googleapi.CloseBody(res)
42124	if err := googleapi.CheckResponse(res); err != nil {
42125		return nil, err
42126	}
42127	ret := &GoogleCloudApigeeV1ListNatAddressesResponse{
42128		ServerResponse: googleapi.ServerResponse{
42129			Header:         res.Header,
42130			HTTPStatusCode: res.StatusCode,
42131		},
42132	}
42133	target := &ret
42134	if err := gensupport.DecodeResponse(target, res); err != nil {
42135		return nil, err
42136	}
42137	return ret, nil
42138	// {
42139	//   "description": "Lists the NAT addresses for an Apigee instance. **Note:** Not supported for Apigee hybrid.",
42140	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/natAddresses",
42141	//   "httpMethod": "GET",
42142	//   "id": "apigee.organizations.instances.natAddresses.list",
42143	//   "parameterOrder": [
42144	//     "parent"
42145	//   ],
42146	//   "parameters": {
42147	//     "pageSize": {
42148	//       "description": "Maximum number of natAddresses to return. Defaults to 25.",
42149	//       "format": "int32",
42150	//       "location": "query",
42151	//       "type": "integer"
42152	//     },
42153	//     "pageToken": {
42154	//       "description": "Page token, returned from a previous ListNatAddresses call, that you can use to retrieve the next page of content.",
42155	//       "location": "query",
42156	//       "type": "string"
42157	//     },
42158	//     "parent": {
42159	//       "description": "Required. Name of the instance. Use the following structure in your request: `organizations/{org}/instances/{instance}`",
42160	//       "location": "path",
42161	//       "pattern": "^organizations/[^/]+/instances/[^/]+$",
42162	//       "required": true,
42163	//       "type": "string"
42164	//     }
42165	//   },
42166	//   "path": "v1/{+parent}/natAddresses",
42167	//   "response": {
42168	//     "$ref": "GoogleCloudApigeeV1ListNatAddressesResponse"
42169	//   },
42170	//   "scopes": [
42171	//     "https://www.googleapis.com/auth/cloud-platform"
42172	//   ]
42173	// }
42174
42175}
42176
42177// Pages invokes f for each page of results.
42178// A non-nil error returned from f will halt the iteration.
42179// The provided context supersedes any context provided to the Context method.
42180func (c *OrganizationsInstancesNatAddressesListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListNatAddressesResponse) error) error {
42181	c.ctx_ = ctx
42182	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
42183	for {
42184		x, err := c.Do()
42185		if err != nil {
42186			return err
42187		}
42188		if err := f(x); err != nil {
42189			return err
42190		}
42191		if x.NextPageToken == "" {
42192			return nil
42193		}
42194		c.PageToken(x.NextPageToken)
42195	}
42196}
42197
42198// method id "apigee.organizations.keyvaluemaps.create":
42199
42200type OrganizationsKeyvaluemapsCreateCall struct {
42201	s                              *Service
42202	parent                         string
42203	googlecloudapigeev1keyvaluemap *GoogleCloudApigeeV1KeyValueMap
42204	urlParams_                     gensupport.URLParams
42205	ctx_                           context.Context
42206	header_                        http.Header
42207}
42208
42209// Create: Creates a key value map in an organization.
42210//
42211// - parent: The name of the organization in which to create the key
42212//   value map file. Must be of the form `organizations/{organization}`.
42213func (r *OrganizationsKeyvaluemapsService) Create(parent string, googlecloudapigeev1keyvaluemap *GoogleCloudApigeeV1KeyValueMap) *OrganizationsKeyvaluemapsCreateCall {
42214	c := &OrganizationsKeyvaluemapsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42215	c.parent = parent
42216	c.googlecloudapigeev1keyvaluemap = googlecloudapigeev1keyvaluemap
42217	return c
42218}
42219
42220// Fields allows partial responses to be retrieved. See
42221// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
42222// for more information.
42223func (c *OrganizationsKeyvaluemapsCreateCall) Fields(s ...googleapi.Field) *OrganizationsKeyvaluemapsCreateCall {
42224	c.urlParams_.Set("fields", googleapi.CombineFields(s))
42225	return c
42226}
42227
42228// Context sets the context to be used in this call's Do method. Any
42229// pending HTTP request will be aborted if the provided context is
42230// canceled.
42231func (c *OrganizationsKeyvaluemapsCreateCall) Context(ctx context.Context) *OrganizationsKeyvaluemapsCreateCall {
42232	c.ctx_ = ctx
42233	return c
42234}
42235
42236// Header returns an http.Header that can be modified by the caller to
42237// add HTTP headers to the request.
42238func (c *OrganizationsKeyvaluemapsCreateCall) Header() http.Header {
42239	if c.header_ == nil {
42240		c.header_ = make(http.Header)
42241	}
42242	return c.header_
42243}
42244
42245func (c *OrganizationsKeyvaluemapsCreateCall) doRequest(alt string) (*http.Response, error) {
42246	reqHeaders := make(http.Header)
42247	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
42248	for k, v := range c.header_ {
42249		reqHeaders[k] = v
42250	}
42251	reqHeaders.Set("User-Agent", c.s.userAgent())
42252	var body io.Reader = nil
42253	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1keyvaluemap)
42254	if err != nil {
42255		return nil, err
42256	}
42257	reqHeaders.Set("Content-Type", "application/json")
42258	c.urlParams_.Set("alt", alt)
42259	c.urlParams_.Set("prettyPrint", "false")
42260	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keyvaluemaps")
42261	urls += "?" + c.urlParams_.Encode()
42262	req, err := http.NewRequest("POST", urls, body)
42263	if err != nil {
42264		return nil, err
42265	}
42266	req.Header = reqHeaders
42267	googleapi.Expand(req.URL, map[string]string{
42268		"parent": c.parent,
42269	})
42270	return gensupport.SendRequest(c.ctx_, c.s.client, req)
42271}
42272
42273// Do executes the "apigee.organizations.keyvaluemaps.create" call.
42274// Exactly one of *GoogleCloudApigeeV1KeyValueMap or error will be
42275// non-nil. Any non-2xx status code is an error. Response headers are in
42276// either *GoogleCloudApigeeV1KeyValueMap.ServerResponse.Header or (if a
42277// response was returned at all) in error.(*googleapi.Error).Header. Use
42278// googleapi.IsNotModified to check whether the returned error was
42279// because http.StatusNotModified was returned.
42280func (c *OrganizationsKeyvaluemapsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueMap, error) {
42281	gensupport.SetOptions(c.urlParams_, opts...)
42282	res, err := c.doRequest("json")
42283	if res != nil && res.StatusCode == http.StatusNotModified {
42284		if res.Body != nil {
42285			res.Body.Close()
42286		}
42287		return nil, &googleapi.Error{
42288			Code:   res.StatusCode,
42289			Header: res.Header,
42290		}
42291	}
42292	if err != nil {
42293		return nil, err
42294	}
42295	defer googleapi.CloseBody(res)
42296	if err := googleapi.CheckResponse(res); err != nil {
42297		return nil, err
42298	}
42299	ret := &GoogleCloudApigeeV1KeyValueMap{
42300		ServerResponse: googleapi.ServerResponse{
42301			Header:         res.Header,
42302			HTTPStatusCode: res.StatusCode,
42303		},
42304	}
42305	target := &ret
42306	if err := gensupport.DecodeResponse(target, res); err != nil {
42307		return nil, err
42308	}
42309	return ret, nil
42310	// {
42311	//   "description": "Creates a key value map in an organization.",
42312	//   "flatPath": "v1/organizations/{organizationsId}/keyvaluemaps",
42313	//   "httpMethod": "POST",
42314	//   "id": "apigee.organizations.keyvaluemaps.create",
42315	//   "parameterOrder": [
42316	//     "parent"
42317	//   ],
42318	//   "parameters": {
42319	//     "parent": {
42320	//       "description": "Required. The name of the organization in which to create the key value map file. Must be of the form `organizations/{organization}`.",
42321	//       "location": "path",
42322	//       "pattern": "^organizations/[^/]+$",
42323	//       "required": true,
42324	//       "type": "string"
42325	//     }
42326	//   },
42327	//   "path": "v1/{+parent}/keyvaluemaps",
42328	//   "request": {
42329	//     "$ref": "GoogleCloudApigeeV1KeyValueMap"
42330	//   },
42331	//   "response": {
42332	//     "$ref": "GoogleCloudApigeeV1KeyValueMap"
42333	//   },
42334	//   "scopes": [
42335	//     "https://www.googleapis.com/auth/cloud-platform"
42336	//   ]
42337	// }
42338
42339}
42340
42341// method id "apigee.organizations.keyvaluemaps.delete":
42342
42343type OrganizationsKeyvaluemapsDeleteCall struct {
42344	s          *Service
42345	name       string
42346	urlParams_ gensupport.URLParams
42347	ctx_       context.Context
42348	header_    http.Header
42349}
42350
42351// Delete: Delete a key value map in an organization.
42352//
42353// - name: The name of the key value map. Must be of the form
42354//   `organizations/{organization}/keyvaluemaps/{keyvaluemap}`.
42355func (r *OrganizationsKeyvaluemapsService) Delete(name string) *OrganizationsKeyvaluemapsDeleteCall {
42356	c := &OrganizationsKeyvaluemapsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42357	c.name = name
42358	return c
42359}
42360
42361// Fields allows partial responses to be retrieved. See
42362// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
42363// for more information.
42364func (c *OrganizationsKeyvaluemapsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsKeyvaluemapsDeleteCall {
42365	c.urlParams_.Set("fields", googleapi.CombineFields(s))
42366	return c
42367}
42368
42369// Context sets the context to be used in this call's Do method. Any
42370// pending HTTP request will be aborted if the provided context is
42371// canceled.
42372func (c *OrganizationsKeyvaluemapsDeleteCall) Context(ctx context.Context) *OrganizationsKeyvaluemapsDeleteCall {
42373	c.ctx_ = ctx
42374	return c
42375}
42376
42377// Header returns an http.Header that can be modified by the caller to
42378// add HTTP headers to the request.
42379func (c *OrganizationsKeyvaluemapsDeleteCall) Header() http.Header {
42380	if c.header_ == nil {
42381		c.header_ = make(http.Header)
42382	}
42383	return c.header_
42384}
42385
42386func (c *OrganizationsKeyvaluemapsDeleteCall) doRequest(alt string) (*http.Response, error) {
42387	reqHeaders := make(http.Header)
42388	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
42389	for k, v := range c.header_ {
42390		reqHeaders[k] = v
42391	}
42392	reqHeaders.Set("User-Agent", c.s.userAgent())
42393	var body io.Reader = nil
42394	c.urlParams_.Set("alt", alt)
42395	c.urlParams_.Set("prettyPrint", "false")
42396	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
42397	urls += "?" + c.urlParams_.Encode()
42398	req, err := http.NewRequest("DELETE", urls, body)
42399	if err != nil {
42400		return nil, err
42401	}
42402	req.Header = reqHeaders
42403	googleapi.Expand(req.URL, map[string]string{
42404		"name": c.name,
42405	})
42406	return gensupport.SendRequest(c.ctx_, c.s.client, req)
42407}
42408
42409// Do executes the "apigee.organizations.keyvaluemaps.delete" call.
42410// Exactly one of *GoogleCloudApigeeV1KeyValueMap or error will be
42411// non-nil. Any non-2xx status code is an error. Response headers are in
42412// either *GoogleCloudApigeeV1KeyValueMap.ServerResponse.Header or (if a
42413// response was returned at all) in error.(*googleapi.Error).Header. Use
42414// googleapi.IsNotModified to check whether the returned error was
42415// because http.StatusNotModified was returned.
42416func (c *OrganizationsKeyvaluemapsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueMap, error) {
42417	gensupport.SetOptions(c.urlParams_, opts...)
42418	res, err := c.doRequest("json")
42419	if res != nil && res.StatusCode == http.StatusNotModified {
42420		if res.Body != nil {
42421			res.Body.Close()
42422		}
42423		return nil, &googleapi.Error{
42424			Code:   res.StatusCode,
42425			Header: res.Header,
42426		}
42427	}
42428	if err != nil {
42429		return nil, err
42430	}
42431	defer googleapi.CloseBody(res)
42432	if err := googleapi.CheckResponse(res); err != nil {
42433		return nil, err
42434	}
42435	ret := &GoogleCloudApigeeV1KeyValueMap{
42436		ServerResponse: googleapi.ServerResponse{
42437			Header:         res.Header,
42438			HTTPStatusCode: res.StatusCode,
42439		},
42440	}
42441	target := &ret
42442	if err := gensupport.DecodeResponse(target, res); err != nil {
42443		return nil, err
42444	}
42445	return ret, nil
42446	// {
42447	//   "description": "Delete a key value map in an organization.",
42448	//   "flatPath": "v1/organizations/{organizationsId}/keyvaluemaps/{keyvaluemapsId}",
42449	//   "httpMethod": "DELETE",
42450	//   "id": "apigee.organizations.keyvaluemaps.delete",
42451	//   "parameterOrder": [
42452	//     "name"
42453	//   ],
42454	//   "parameters": {
42455	//     "name": {
42456	//       "description": "Required. The name of the key value map. Must be of the form `organizations/{organization}/keyvaluemaps/{keyvaluemap}`.",
42457	//       "location": "path",
42458	//       "pattern": "^organizations/[^/]+/keyvaluemaps/[^/]+$",
42459	//       "required": true,
42460	//       "type": "string"
42461	//     }
42462	//   },
42463	//   "path": "v1/{+name}",
42464	//   "response": {
42465	//     "$ref": "GoogleCloudApigeeV1KeyValueMap"
42466	//   },
42467	//   "scopes": [
42468	//     "https://www.googleapis.com/auth/cloud-platform"
42469	//   ]
42470	// }
42471
42472}
42473
42474// method id "apigee.organizations.operations.get":
42475
42476type OrganizationsOperationsGetCall struct {
42477	s            *Service
42478	name         string
42479	urlParams_   gensupport.URLParams
42480	ifNoneMatch_ string
42481	ctx_         context.Context
42482	header_      http.Header
42483}
42484
42485// Get: Gets the latest state of a long-running operation. Clients can
42486// use this method to poll the operation result at intervals as
42487// recommended by the API service.
42488//
42489// - name: The name of the operation resource.
42490func (r *OrganizationsOperationsService) Get(name string) *OrganizationsOperationsGetCall {
42491	c := &OrganizationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42492	c.name = name
42493	return c
42494}
42495
42496// Fields allows partial responses to be retrieved. See
42497// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
42498// for more information.
42499func (c *OrganizationsOperationsGetCall) Fields(s ...googleapi.Field) *OrganizationsOperationsGetCall {
42500	c.urlParams_.Set("fields", googleapi.CombineFields(s))
42501	return c
42502}
42503
42504// IfNoneMatch sets the optional parameter which makes the operation
42505// fail if the object's ETag matches the given value. This is useful for
42506// getting updates only after the object has changed since the last
42507// request. Use googleapi.IsNotModified to check whether the response
42508// error from Do is the result of In-None-Match.
42509func (c *OrganizationsOperationsGetCall) IfNoneMatch(entityTag string) *OrganizationsOperationsGetCall {
42510	c.ifNoneMatch_ = entityTag
42511	return c
42512}
42513
42514// Context sets the context to be used in this call's Do method. Any
42515// pending HTTP request will be aborted if the provided context is
42516// canceled.
42517func (c *OrganizationsOperationsGetCall) Context(ctx context.Context) *OrganizationsOperationsGetCall {
42518	c.ctx_ = ctx
42519	return c
42520}
42521
42522// Header returns an http.Header that can be modified by the caller to
42523// add HTTP headers to the request.
42524func (c *OrganizationsOperationsGetCall) Header() http.Header {
42525	if c.header_ == nil {
42526		c.header_ = make(http.Header)
42527	}
42528	return c.header_
42529}
42530
42531func (c *OrganizationsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
42532	reqHeaders := make(http.Header)
42533	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
42534	for k, v := range c.header_ {
42535		reqHeaders[k] = v
42536	}
42537	reqHeaders.Set("User-Agent", c.s.userAgent())
42538	if c.ifNoneMatch_ != "" {
42539		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
42540	}
42541	var body io.Reader = nil
42542	c.urlParams_.Set("alt", alt)
42543	c.urlParams_.Set("prettyPrint", "false")
42544	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
42545	urls += "?" + c.urlParams_.Encode()
42546	req, err := http.NewRequest("GET", urls, body)
42547	if err != nil {
42548		return nil, err
42549	}
42550	req.Header = reqHeaders
42551	googleapi.Expand(req.URL, map[string]string{
42552		"name": c.name,
42553	})
42554	return gensupport.SendRequest(c.ctx_, c.s.client, req)
42555}
42556
42557// Do executes the "apigee.organizations.operations.get" call.
42558// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
42559// Any non-2xx status code is an error. Response headers are in either
42560// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
42561// was returned at all) in error.(*googleapi.Error).Header. Use
42562// googleapi.IsNotModified to check whether the returned error was
42563// because http.StatusNotModified was returned.
42564func (c *OrganizationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
42565	gensupport.SetOptions(c.urlParams_, opts...)
42566	res, err := c.doRequest("json")
42567	if res != nil && res.StatusCode == http.StatusNotModified {
42568		if res.Body != nil {
42569			res.Body.Close()
42570		}
42571		return nil, &googleapi.Error{
42572			Code:   res.StatusCode,
42573			Header: res.Header,
42574		}
42575	}
42576	if err != nil {
42577		return nil, err
42578	}
42579	defer googleapi.CloseBody(res)
42580	if err := googleapi.CheckResponse(res); err != nil {
42581		return nil, err
42582	}
42583	ret := &GoogleLongrunningOperation{
42584		ServerResponse: googleapi.ServerResponse{
42585			Header:         res.Header,
42586			HTTPStatusCode: res.StatusCode,
42587		},
42588	}
42589	target := &ret
42590	if err := gensupport.DecodeResponse(target, res); err != nil {
42591		return nil, err
42592	}
42593	return ret, nil
42594	// {
42595	//   "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.",
42596	//   "flatPath": "v1/organizations/{organizationsId}/operations/{operationsId}",
42597	//   "httpMethod": "GET",
42598	//   "id": "apigee.organizations.operations.get",
42599	//   "parameterOrder": [
42600	//     "name"
42601	//   ],
42602	//   "parameters": {
42603	//     "name": {
42604	//       "description": "The name of the operation resource.",
42605	//       "location": "path",
42606	//       "pattern": "^organizations/[^/]+/operations/[^/]+$",
42607	//       "required": true,
42608	//       "type": "string"
42609	//     }
42610	//   },
42611	//   "path": "v1/{+name}",
42612	//   "response": {
42613	//     "$ref": "GoogleLongrunningOperation"
42614	//   },
42615	//   "scopes": [
42616	//     "https://www.googleapis.com/auth/cloud-platform"
42617	//   ]
42618	// }
42619
42620}
42621
42622// method id "apigee.organizations.operations.list":
42623
42624type OrganizationsOperationsListCall struct {
42625	s            *Service
42626	name         string
42627	urlParams_   gensupport.URLParams
42628	ifNoneMatch_ string
42629	ctx_         context.Context
42630	header_      http.Header
42631}
42632
42633// List: Lists operations that match the specified filter in the
42634// request. If the server doesn't support this method, it returns
42635// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to
42636// override the binding to use different resource name schemes, such as
42637// `users/*/operations`. To override the binding, API services can add a
42638// binding such as "/v1/{name=users/*}/operations" to their service
42639// configuration. For backwards compatibility, the default name includes
42640// the operations collection id, however overriding users must ensure
42641// the name binding is the parent resource, without the operations
42642// collection id.
42643//
42644// - name: The name of the operation's parent resource.
42645func (r *OrganizationsOperationsService) List(name string) *OrganizationsOperationsListCall {
42646	c := &OrganizationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42647	c.name = name
42648	return c
42649}
42650
42651// Filter sets the optional parameter "filter": The standard list
42652// filter.
42653func (c *OrganizationsOperationsListCall) Filter(filter string) *OrganizationsOperationsListCall {
42654	c.urlParams_.Set("filter", filter)
42655	return c
42656}
42657
42658// PageSize sets the optional parameter "pageSize": The standard list
42659// page size.
42660func (c *OrganizationsOperationsListCall) PageSize(pageSize int64) *OrganizationsOperationsListCall {
42661	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
42662	return c
42663}
42664
42665// PageToken sets the optional parameter "pageToken": The standard list
42666// page token.
42667func (c *OrganizationsOperationsListCall) PageToken(pageToken string) *OrganizationsOperationsListCall {
42668	c.urlParams_.Set("pageToken", pageToken)
42669	return c
42670}
42671
42672// Fields allows partial responses to be retrieved. See
42673// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
42674// for more information.
42675func (c *OrganizationsOperationsListCall) Fields(s ...googleapi.Field) *OrganizationsOperationsListCall {
42676	c.urlParams_.Set("fields", googleapi.CombineFields(s))
42677	return c
42678}
42679
42680// IfNoneMatch sets the optional parameter which makes the operation
42681// fail if the object's ETag matches the given value. This is useful for
42682// getting updates only after the object has changed since the last
42683// request. Use googleapi.IsNotModified to check whether the response
42684// error from Do is the result of In-None-Match.
42685func (c *OrganizationsOperationsListCall) IfNoneMatch(entityTag string) *OrganizationsOperationsListCall {
42686	c.ifNoneMatch_ = entityTag
42687	return c
42688}
42689
42690// Context sets the context to be used in this call's Do method. Any
42691// pending HTTP request will be aborted if the provided context is
42692// canceled.
42693func (c *OrganizationsOperationsListCall) Context(ctx context.Context) *OrganizationsOperationsListCall {
42694	c.ctx_ = ctx
42695	return c
42696}
42697
42698// Header returns an http.Header that can be modified by the caller to
42699// add HTTP headers to the request.
42700func (c *OrganizationsOperationsListCall) Header() http.Header {
42701	if c.header_ == nil {
42702		c.header_ = make(http.Header)
42703	}
42704	return c.header_
42705}
42706
42707func (c *OrganizationsOperationsListCall) doRequest(alt string) (*http.Response, error) {
42708	reqHeaders := make(http.Header)
42709	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
42710	for k, v := range c.header_ {
42711		reqHeaders[k] = v
42712	}
42713	reqHeaders.Set("User-Agent", c.s.userAgent())
42714	if c.ifNoneMatch_ != "" {
42715		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
42716	}
42717	var body io.Reader = nil
42718	c.urlParams_.Set("alt", alt)
42719	c.urlParams_.Set("prettyPrint", "false")
42720	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations")
42721	urls += "?" + c.urlParams_.Encode()
42722	req, err := http.NewRequest("GET", urls, body)
42723	if err != nil {
42724		return nil, err
42725	}
42726	req.Header = reqHeaders
42727	googleapi.Expand(req.URL, map[string]string{
42728		"name": c.name,
42729	})
42730	return gensupport.SendRequest(c.ctx_, c.s.client, req)
42731}
42732
42733// Do executes the "apigee.organizations.operations.list" call.
42734// Exactly one of *GoogleLongrunningListOperationsResponse or error will
42735// be non-nil. Any non-2xx status code is an error. Response headers are
42736// in either
42737// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if
42738// a response was returned at all) in error.(*googleapi.Error).Header.
42739// Use googleapi.IsNotModified to check whether the returned error was
42740// because http.StatusNotModified was returned.
42741func (c *OrganizationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
42742	gensupport.SetOptions(c.urlParams_, opts...)
42743	res, err := c.doRequest("json")
42744	if res != nil && res.StatusCode == http.StatusNotModified {
42745		if res.Body != nil {
42746			res.Body.Close()
42747		}
42748		return nil, &googleapi.Error{
42749			Code:   res.StatusCode,
42750			Header: res.Header,
42751		}
42752	}
42753	if err != nil {
42754		return nil, err
42755	}
42756	defer googleapi.CloseBody(res)
42757	if err := googleapi.CheckResponse(res); err != nil {
42758		return nil, err
42759	}
42760	ret := &GoogleLongrunningListOperationsResponse{
42761		ServerResponse: googleapi.ServerResponse{
42762			Header:         res.Header,
42763			HTTPStatusCode: res.StatusCode,
42764		},
42765	}
42766	target := &ret
42767	if err := gensupport.DecodeResponse(target, res); err != nil {
42768		return nil, err
42769	}
42770	return ret, nil
42771	// {
42772	//   "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.",
42773	//   "flatPath": "v1/organizations/{organizationsId}/operations",
42774	//   "httpMethod": "GET",
42775	//   "id": "apigee.organizations.operations.list",
42776	//   "parameterOrder": [
42777	//     "name"
42778	//   ],
42779	//   "parameters": {
42780	//     "filter": {
42781	//       "description": "The standard list filter.",
42782	//       "location": "query",
42783	//       "type": "string"
42784	//     },
42785	//     "name": {
42786	//       "description": "The name of the operation's parent resource.",
42787	//       "location": "path",
42788	//       "pattern": "^organizations/[^/]+$",
42789	//       "required": true,
42790	//       "type": "string"
42791	//     },
42792	//     "pageSize": {
42793	//       "description": "The standard list page size.",
42794	//       "format": "int32",
42795	//       "location": "query",
42796	//       "type": "integer"
42797	//     },
42798	//     "pageToken": {
42799	//       "description": "The standard list page token.",
42800	//       "location": "query",
42801	//       "type": "string"
42802	//     }
42803	//   },
42804	//   "path": "v1/{+name}/operations",
42805	//   "response": {
42806	//     "$ref": "GoogleLongrunningListOperationsResponse"
42807	//   },
42808	//   "scopes": [
42809	//     "https://www.googleapis.com/auth/cloud-platform"
42810	//   ]
42811	// }
42812
42813}
42814
42815// Pages invokes f for each page of results.
42816// A non-nil error returned from f will halt the iteration.
42817// The provided context supersedes any context provided to the Context method.
42818func (c *OrganizationsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
42819	c.ctx_ = ctx
42820	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
42821	for {
42822		x, err := c.Do()
42823		if err != nil {
42824			return err
42825		}
42826		if err := f(x); err != nil {
42827			return err
42828		}
42829		if x.NextPageToken == "" {
42830			return nil
42831		}
42832		c.PageToken(x.NextPageToken)
42833	}
42834}
42835
42836// method id "apigee.organizations.optimizedHostStats.get":
42837
42838type OrganizationsOptimizedHostStatsGetCall struct {
42839	s            *Service
42840	name         string
42841	urlParams_   gensupport.URLParams
42842	ifNoneMatch_ string
42843	ctx_         context.Context
42844	header_      http.Header
42845}
42846
42847// Get: This api is similar to GetHostStats except that the response is
42848// less verbose.
42849//
42850// - name: The resource name for which the interactive query will be
42851//   executed. Must be of the form
42852//   `organizations/{organization_id}/optimizedHostStats/{dimensions}`.
42853//   Dimensions let you view metrics in meaningful groupings. E.g.
42854//   apiproxy, target_host. The value of dimensions should be comma
42855//   separated list as shown below
42856//   `organizations/{org}/optimizedHostStats/apiproxy,request_verb`.
42857func (r *OrganizationsOptimizedHostStatsService) Get(name string) *OrganizationsOptimizedHostStatsGetCall {
42858	c := &OrganizationsOptimizedHostStatsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42859	c.name = name
42860	return c
42861}
42862
42863// Accuracy sets the optional parameter "accuracy": Legacy field: not
42864// used anymore.
42865func (c *OrganizationsOptimizedHostStatsGetCall) Accuracy(accuracy string) *OrganizationsOptimizedHostStatsGetCall {
42866	c.urlParams_.Set("accuracy", accuracy)
42867	return c
42868}
42869
42870// EnvgroupHostname sets the optional parameter "envgroupHostname":
42871// Required. The hostname for which the interactive query will be
42872// executed.
42873func (c *OrganizationsOptimizedHostStatsGetCall) EnvgroupHostname(envgroupHostname string) *OrganizationsOptimizedHostStatsGetCall {
42874	c.urlParams_.Set("envgroupHostname", envgroupHostname)
42875	return c
42876}
42877
42878// Filter sets the optional parameter "filter": Enables drill-down on
42879// specific dimension values.
42880func (c *OrganizationsOptimizedHostStatsGetCall) Filter(filter string) *OrganizationsOptimizedHostStatsGetCall {
42881	c.urlParams_.Set("filter", filter)
42882	return c
42883}
42884
42885// Limit sets the optional parameter "limit": This parameter is used to
42886// limit the number of result items. Default and the max value is 14400.
42887func (c *OrganizationsOptimizedHostStatsGetCall) Limit(limit string) *OrganizationsOptimizedHostStatsGetCall {
42888	c.urlParams_.Set("limit", limit)
42889	return c
42890}
42891
42892// Offset sets the optional parameter "offset": Use offset with limit to
42893// enable pagination of results. For example, to display results 11-20,
42894// set limit to '10' and offset to '10'.
42895func (c *OrganizationsOptimizedHostStatsGetCall) Offset(offset string) *OrganizationsOptimizedHostStatsGetCall {
42896	c.urlParams_.Set("offset", offset)
42897	return c
42898}
42899
42900// Realtime sets the optional parameter "realtime": Legacy field: not
42901// used anymore.
42902func (c *OrganizationsOptimizedHostStatsGetCall) Realtime(realtime bool) *OrganizationsOptimizedHostStatsGetCall {
42903	c.urlParams_.Set("realtime", fmt.Sprint(realtime))
42904	return c
42905}
42906
42907// Select sets the optional parameter "select": Required. The select
42908// parameter contains a comma separated list of metrics. E.g.
42909// sum(message_count),sum(error_count)
42910func (c *OrganizationsOptimizedHostStatsGetCall) Select(select_ string) *OrganizationsOptimizedHostStatsGetCall {
42911	c.urlParams_.Set("select", select_)
42912	return c
42913}
42914
42915// Sort sets the optional parameter "sort": This parameter specifies if
42916// the sort order should be ascending or descending Supported values are
42917// DESC and ASC.
42918func (c *OrganizationsOptimizedHostStatsGetCall) Sort(sort string) *OrganizationsOptimizedHostStatsGetCall {
42919	c.urlParams_.Set("sort", sort)
42920	return c
42921}
42922
42923// Sortby sets the optional parameter "sortby": Comma separated list of
42924// columns to sort the final result.
42925func (c *OrganizationsOptimizedHostStatsGetCall) Sortby(sortby string) *OrganizationsOptimizedHostStatsGetCall {
42926	c.urlParams_.Set("sortby", sortby)
42927	return c
42928}
42929
42930// TimeRange sets the optional parameter "timeRange": Required. Time
42931// interval for the interactive query. Time range is specified as
42932// start~end. E.g 04/15/2017 00:00~05/15/2017 23:59.
42933func (c *OrganizationsOptimizedHostStatsGetCall) TimeRange(timeRange string) *OrganizationsOptimizedHostStatsGetCall {
42934	c.urlParams_.Set("timeRange", timeRange)
42935	return c
42936}
42937
42938// TimeUnit sets the optional parameter "timeUnit": A value of second,
42939// minute, hour, day, week, month. Time Unit specifies the granularity
42940// of metrics returned.
42941func (c *OrganizationsOptimizedHostStatsGetCall) TimeUnit(timeUnit string) *OrganizationsOptimizedHostStatsGetCall {
42942	c.urlParams_.Set("timeUnit", timeUnit)
42943	return c
42944}
42945
42946// Topk sets the optional parameter "topk": Take 'top k' results from
42947// results, for example, to return the top 5 results 'topk=5'.
42948func (c *OrganizationsOptimizedHostStatsGetCall) Topk(topk string) *OrganizationsOptimizedHostStatsGetCall {
42949	c.urlParams_.Set("topk", topk)
42950	return c
42951}
42952
42953// TsAscending sets the optional parameter "tsAscending": Lists
42954// timestamps in ascending order if set to true. Recommend setting this
42955// value to true if you are using sortby with sort=DESC.
42956func (c *OrganizationsOptimizedHostStatsGetCall) TsAscending(tsAscending bool) *OrganizationsOptimizedHostStatsGetCall {
42957	c.urlParams_.Set("tsAscending", fmt.Sprint(tsAscending))
42958	return c
42959}
42960
42961// Tzo sets the optional parameter "tzo": This parameters contains the
42962// timezone offset value.
42963func (c *OrganizationsOptimizedHostStatsGetCall) Tzo(tzo string) *OrganizationsOptimizedHostStatsGetCall {
42964	c.urlParams_.Set("tzo", tzo)
42965	return c
42966}
42967
42968// Fields allows partial responses to be retrieved. See
42969// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
42970// for more information.
42971func (c *OrganizationsOptimizedHostStatsGetCall) Fields(s ...googleapi.Field) *OrganizationsOptimizedHostStatsGetCall {
42972	c.urlParams_.Set("fields", googleapi.CombineFields(s))
42973	return c
42974}
42975
42976// IfNoneMatch sets the optional parameter which makes the operation
42977// fail if the object's ETag matches the given value. This is useful for
42978// getting updates only after the object has changed since the last
42979// request. Use googleapi.IsNotModified to check whether the response
42980// error from Do is the result of In-None-Match.
42981func (c *OrganizationsOptimizedHostStatsGetCall) IfNoneMatch(entityTag string) *OrganizationsOptimizedHostStatsGetCall {
42982	c.ifNoneMatch_ = entityTag
42983	return c
42984}
42985
42986// Context sets the context to be used in this call's Do method. Any
42987// pending HTTP request will be aborted if the provided context is
42988// canceled.
42989func (c *OrganizationsOptimizedHostStatsGetCall) Context(ctx context.Context) *OrganizationsOptimizedHostStatsGetCall {
42990	c.ctx_ = ctx
42991	return c
42992}
42993
42994// Header returns an http.Header that can be modified by the caller to
42995// add HTTP headers to the request.
42996func (c *OrganizationsOptimizedHostStatsGetCall) Header() http.Header {
42997	if c.header_ == nil {
42998		c.header_ = make(http.Header)
42999	}
43000	return c.header_
43001}
43002
43003func (c *OrganizationsOptimizedHostStatsGetCall) doRequest(alt string) (*http.Response, error) {
43004	reqHeaders := make(http.Header)
43005	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
43006	for k, v := range c.header_ {
43007		reqHeaders[k] = v
43008	}
43009	reqHeaders.Set("User-Agent", c.s.userAgent())
43010	if c.ifNoneMatch_ != "" {
43011		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
43012	}
43013	var body io.Reader = nil
43014	c.urlParams_.Set("alt", alt)
43015	c.urlParams_.Set("prettyPrint", "false")
43016	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
43017	urls += "?" + c.urlParams_.Encode()
43018	req, err := http.NewRequest("GET", urls, body)
43019	if err != nil {
43020		return nil, err
43021	}
43022	req.Header = reqHeaders
43023	googleapi.Expand(req.URL, map[string]string{
43024		"name": c.name,
43025	})
43026	return gensupport.SendRequest(c.ctx_, c.s.client, req)
43027}
43028
43029// Do executes the "apigee.organizations.optimizedHostStats.get" call.
43030// Exactly one of *GoogleCloudApigeeV1OptimizedStats or error will be
43031// non-nil. Any non-2xx status code is an error. Response headers are in
43032// either *GoogleCloudApigeeV1OptimizedStats.ServerResponse.Header or
43033// (if a response was returned at all) in
43034// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
43035// whether the returned error was because http.StatusNotModified was
43036// returned.
43037func (c *OrganizationsOptimizedHostStatsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1OptimizedStats, error) {
43038	gensupport.SetOptions(c.urlParams_, opts...)
43039	res, err := c.doRequest("json")
43040	if res != nil && res.StatusCode == http.StatusNotModified {
43041		if res.Body != nil {
43042			res.Body.Close()
43043		}
43044		return nil, &googleapi.Error{
43045			Code:   res.StatusCode,
43046			Header: res.Header,
43047		}
43048	}
43049	if err != nil {
43050		return nil, err
43051	}
43052	defer googleapi.CloseBody(res)
43053	if err := googleapi.CheckResponse(res); err != nil {
43054		return nil, err
43055	}
43056	ret := &GoogleCloudApigeeV1OptimizedStats{
43057		ServerResponse: googleapi.ServerResponse{
43058			Header:         res.Header,
43059			HTTPStatusCode: res.StatusCode,
43060		},
43061	}
43062	target := &ret
43063	if err := gensupport.DecodeResponse(target, res); err != nil {
43064		return nil, err
43065	}
43066	return ret, nil
43067	// {
43068	//   "description": "This api is similar to GetHostStats except that the response is less verbose.",
43069	//   "flatPath": "v1/organizations/{organizationsId}/optimizedHostStats/{optimizedHostStatsId}",
43070	//   "httpMethod": "GET",
43071	//   "id": "apigee.organizations.optimizedHostStats.get",
43072	//   "parameterOrder": [
43073	//     "name"
43074	//   ],
43075	//   "parameters": {
43076	//     "accuracy": {
43077	//       "description": "Legacy field: not used anymore.",
43078	//       "location": "query",
43079	//       "type": "string"
43080	//     },
43081	//     "envgroupHostname": {
43082	//       "description": "Required. The hostname for which the interactive query will be executed.",
43083	//       "location": "query",
43084	//       "type": "string"
43085	//     },
43086	//     "filter": {
43087	//       "description": "Enables drill-down on specific dimension values.",
43088	//       "location": "query",
43089	//       "type": "string"
43090	//     },
43091	//     "limit": {
43092	//       "description": "This parameter is used to limit the number of result items. Default and the max value is 14400.",
43093	//       "location": "query",
43094	//       "type": "string"
43095	//     },
43096	//     "name": {
43097	//       "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`",
43098	//       "location": "path",
43099	//       "pattern": "^organizations/[^/]+/optimizedHostStats/.*$",
43100	//       "required": true,
43101	//       "type": "string"
43102	//     },
43103	//     "offset": {
43104	//       "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'.",
43105	//       "location": "query",
43106	//       "type": "string"
43107	//     },
43108	//     "realtime": {
43109	//       "description": "Legacy field: not used anymore.",
43110	//       "location": "query",
43111	//       "type": "boolean"
43112	//     },
43113	//     "select": {
43114	//       "description": "Required. The select parameter contains a comma separated list of metrics. E.g. sum(message_count),sum(error_count)",
43115	//       "location": "query",
43116	//       "type": "string"
43117	//     },
43118	//     "sort": {
43119	//       "description": "This parameter specifies if the sort order should be ascending or descending Supported values are DESC and ASC.",
43120	//       "location": "query",
43121	//       "type": "string"
43122	//     },
43123	//     "sortby": {
43124	//       "description": "Comma separated list of columns to sort the final result.",
43125	//       "location": "query",
43126	//       "type": "string"
43127	//     },
43128	//     "timeRange": {
43129	//       "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.",
43130	//       "location": "query",
43131	//       "type": "string"
43132	//     },
43133	//     "timeUnit": {
43134	//       "description": "A value of second, minute, hour, day, week, month. Time Unit specifies the granularity of metrics returned.",
43135	//       "location": "query",
43136	//       "type": "string"
43137	//     },
43138	//     "topk": {
43139	//       "description": "Take 'top k' results from results, for example, to return the top 5 results 'topk=5'.",
43140	//       "location": "query",
43141	//       "type": "string"
43142	//     },
43143	//     "tsAscending": {
43144	//       "description": "Lists timestamps in ascending order if set to true. Recommend setting this value to true if you are using sortby with sort=DESC.",
43145	//       "location": "query",
43146	//       "type": "boolean"
43147	//     },
43148	//     "tzo": {
43149	//       "description": "This parameters contains the timezone offset value.",
43150	//       "location": "query",
43151	//       "type": "string"
43152	//     }
43153	//   },
43154	//   "path": "v1/{+name}",
43155	//   "response": {
43156	//     "$ref": "GoogleCloudApigeeV1OptimizedStats"
43157	//   },
43158	//   "scopes": [
43159	//     "https://www.googleapis.com/auth/cloud-platform"
43160	//   ]
43161	// }
43162
43163}
43164
43165// method id "apigee.organizations.reports.create":
43166
43167type OrganizationsReportsCreateCall struct {
43168	s                               *Service
43169	parent                          string
43170	googlecloudapigeev1customreport *GoogleCloudApigeeV1CustomReport
43171	urlParams_                      gensupport.URLParams
43172	ctx_                            context.Context
43173	header_                         http.Header
43174}
43175
43176// Create: Creates a Custom Report for an Organization. A Custom Report
43177// provides Apigee Customers to create custom dashboards in addition to
43178// the standard dashboards which are provided. The Custom Report in its
43179// simplest form contains specifications about metrics, dimensions and
43180// filters. It is important to note that the custom report by itself
43181// does not provide an executable entity. The Edge UI converts the
43182// custom report definition into an analytics query and displays the
43183// result in a chart.
43184//
43185// - parent: The parent organization name under which the Custom Report
43186//   will be created. Must be of the form:
43187//   `organizations/{organization_id}/reports`.
43188func (r *OrganizationsReportsService) Create(parent string, googlecloudapigeev1customreport *GoogleCloudApigeeV1CustomReport) *OrganizationsReportsCreateCall {
43189	c := &OrganizationsReportsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43190	c.parent = parent
43191	c.googlecloudapigeev1customreport = googlecloudapigeev1customreport
43192	return c
43193}
43194
43195// Fields allows partial responses to be retrieved. See
43196// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
43197// for more information.
43198func (c *OrganizationsReportsCreateCall) Fields(s ...googleapi.Field) *OrganizationsReportsCreateCall {
43199	c.urlParams_.Set("fields", googleapi.CombineFields(s))
43200	return c
43201}
43202
43203// Context sets the context to be used in this call's Do method. Any
43204// pending HTTP request will be aborted if the provided context is
43205// canceled.
43206func (c *OrganizationsReportsCreateCall) Context(ctx context.Context) *OrganizationsReportsCreateCall {
43207	c.ctx_ = ctx
43208	return c
43209}
43210
43211// Header returns an http.Header that can be modified by the caller to
43212// add HTTP headers to the request.
43213func (c *OrganizationsReportsCreateCall) Header() http.Header {
43214	if c.header_ == nil {
43215		c.header_ = make(http.Header)
43216	}
43217	return c.header_
43218}
43219
43220func (c *OrganizationsReportsCreateCall) doRequest(alt string) (*http.Response, error) {
43221	reqHeaders := make(http.Header)
43222	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
43223	for k, v := range c.header_ {
43224		reqHeaders[k] = v
43225	}
43226	reqHeaders.Set("User-Agent", c.s.userAgent())
43227	var body io.Reader = nil
43228	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1customreport)
43229	if err != nil {
43230		return nil, err
43231	}
43232	reqHeaders.Set("Content-Type", "application/json")
43233	c.urlParams_.Set("alt", alt)
43234	c.urlParams_.Set("prettyPrint", "false")
43235	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/reports")
43236	urls += "?" + c.urlParams_.Encode()
43237	req, err := http.NewRequest("POST", urls, body)
43238	if err != nil {
43239		return nil, err
43240	}
43241	req.Header = reqHeaders
43242	googleapi.Expand(req.URL, map[string]string{
43243		"parent": c.parent,
43244	})
43245	return gensupport.SendRequest(c.ctx_, c.s.client, req)
43246}
43247
43248// Do executes the "apigee.organizations.reports.create" call.
43249// Exactly one of *GoogleCloudApigeeV1CustomReport or error will be
43250// non-nil. Any non-2xx status code is an error. Response headers are in
43251// either *GoogleCloudApigeeV1CustomReport.ServerResponse.Header or (if
43252// a response was returned at all) in error.(*googleapi.Error).Header.
43253// Use googleapi.IsNotModified to check whether the returned error was
43254// because http.StatusNotModified was returned.
43255func (c *OrganizationsReportsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1CustomReport, error) {
43256	gensupport.SetOptions(c.urlParams_, opts...)
43257	res, err := c.doRequest("json")
43258	if res != nil && res.StatusCode == http.StatusNotModified {
43259		if res.Body != nil {
43260			res.Body.Close()
43261		}
43262		return nil, &googleapi.Error{
43263			Code:   res.StatusCode,
43264			Header: res.Header,
43265		}
43266	}
43267	if err != nil {
43268		return nil, err
43269	}
43270	defer googleapi.CloseBody(res)
43271	if err := googleapi.CheckResponse(res); err != nil {
43272		return nil, err
43273	}
43274	ret := &GoogleCloudApigeeV1CustomReport{
43275		ServerResponse: googleapi.ServerResponse{
43276			Header:         res.Header,
43277			HTTPStatusCode: res.StatusCode,
43278		},
43279	}
43280	target := &ret
43281	if err := gensupport.DecodeResponse(target, res); err != nil {
43282		return nil, err
43283	}
43284	return ret, nil
43285	// {
43286	//   "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.",
43287	//   "flatPath": "v1/organizations/{organizationsId}/reports",
43288	//   "httpMethod": "POST",
43289	//   "id": "apigee.organizations.reports.create",
43290	//   "parameterOrder": [
43291	//     "parent"
43292	//   ],
43293	//   "parameters": {
43294	//     "parent": {
43295	//       "description": "Required. The parent organization name under which the Custom Report will be created. Must be of the form: `organizations/{organization_id}/reports`",
43296	//       "location": "path",
43297	//       "pattern": "^organizations/[^/]+$",
43298	//       "required": true,
43299	//       "type": "string"
43300	//     }
43301	//   },
43302	//   "path": "v1/{+parent}/reports",
43303	//   "request": {
43304	//     "$ref": "GoogleCloudApigeeV1CustomReport"
43305	//   },
43306	//   "response": {
43307	//     "$ref": "GoogleCloudApigeeV1CustomReport"
43308	//   },
43309	//   "scopes": [
43310	//     "https://www.googleapis.com/auth/cloud-platform"
43311	//   ]
43312	// }
43313
43314}
43315
43316// method id "apigee.organizations.reports.delete":
43317
43318type OrganizationsReportsDeleteCall struct {
43319	s          *Service
43320	name       string
43321	urlParams_ gensupport.URLParams
43322	ctx_       context.Context
43323	header_    http.Header
43324}
43325
43326// Delete: Deletes an existing custom report definition
43327//
43328// - name: Custom Report name of the form:
43329//   `organizations/{organization_id}/reports/{report_name}`.
43330func (r *OrganizationsReportsService) Delete(name string) *OrganizationsReportsDeleteCall {
43331	c := &OrganizationsReportsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43332	c.name = name
43333	return c
43334}
43335
43336// Fields allows partial responses to be retrieved. See
43337// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
43338// for more information.
43339func (c *OrganizationsReportsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsReportsDeleteCall {
43340	c.urlParams_.Set("fields", googleapi.CombineFields(s))
43341	return c
43342}
43343
43344// Context sets the context to be used in this call's Do method. Any
43345// pending HTTP request will be aborted if the provided context is
43346// canceled.
43347func (c *OrganizationsReportsDeleteCall) Context(ctx context.Context) *OrganizationsReportsDeleteCall {
43348	c.ctx_ = ctx
43349	return c
43350}
43351
43352// Header returns an http.Header that can be modified by the caller to
43353// add HTTP headers to the request.
43354func (c *OrganizationsReportsDeleteCall) Header() http.Header {
43355	if c.header_ == nil {
43356		c.header_ = make(http.Header)
43357	}
43358	return c.header_
43359}
43360
43361func (c *OrganizationsReportsDeleteCall) doRequest(alt string) (*http.Response, error) {
43362	reqHeaders := make(http.Header)
43363	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
43364	for k, v := range c.header_ {
43365		reqHeaders[k] = v
43366	}
43367	reqHeaders.Set("User-Agent", c.s.userAgent())
43368	var body io.Reader = nil
43369	c.urlParams_.Set("alt", alt)
43370	c.urlParams_.Set("prettyPrint", "false")
43371	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
43372	urls += "?" + c.urlParams_.Encode()
43373	req, err := http.NewRequest("DELETE", urls, body)
43374	if err != nil {
43375		return nil, err
43376	}
43377	req.Header = reqHeaders
43378	googleapi.Expand(req.URL, map[string]string{
43379		"name": c.name,
43380	})
43381	return gensupport.SendRequest(c.ctx_, c.s.client, req)
43382}
43383
43384// Do executes the "apigee.organizations.reports.delete" call.
43385// Exactly one of *GoogleCloudApigeeV1DeleteCustomReportResponse or
43386// error will be non-nil. Any non-2xx status code is an error. Response
43387// headers are in either
43388// *GoogleCloudApigeeV1DeleteCustomReportResponse.ServerResponse.Header
43389// or (if a response was returned at all) in
43390// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
43391// whether the returned error was because http.StatusNotModified was
43392// returned.
43393func (c *OrganizationsReportsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeleteCustomReportResponse, error) {
43394	gensupport.SetOptions(c.urlParams_, opts...)
43395	res, err := c.doRequest("json")
43396	if res != nil && res.StatusCode == http.StatusNotModified {
43397		if res.Body != nil {
43398			res.Body.Close()
43399		}
43400		return nil, &googleapi.Error{
43401			Code:   res.StatusCode,
43402			Header: res.Header,
43403		}
43404	}
43405	if err != nil {
43406		return nil, err
43407	}
43408	defer googleapi.CloseBody(res)
43409	if err := googleapi.CheckResponse(res); err != nil {
43410		return nil, err
43411	}
43412	ret := &GoogleCloudApigeeV1DeleteCustomReportResponse{
43413		ServerResponse: googleapi.ServerResponse{
43414			Header:         res.Header,
43415			HTTPStatusCode: res.StatusCode,
43416		},
43417	}
43418	target := &ret
43419	if err := gensupport.DecodeResponse(target, res); err != nil {
43420		return nil, err
43421	}
43422	return ret, nil
43423	// {
43424	//   "description": "Deletes an existing custom report definition",
43425	//   "flatPath": "v1/organizations/{organizationsId}/reports/{reportsId}",
43426	//   "httpMethod": "DELETE",
43427	//   "id": "apigee.organizations.reports.delete",
43428	//   "parameterOrder": [
43429	//     "name"
43430	//   ],
43431	//   "parameters": {
43432	//     "name": {
43433	//       "description": "Required. Custom Report name of the form: `organizations/{organization_id}/reports/{report_name}`",
43434	//       "location": "path",
43435	//       "pattern": "^organizations/[^/]+/reports/[^/]+$",
43436	//       "required": true,
43437	//       "type": "string"
43438	//     }
43439	//   },
43440	//   "path": "v1/{+name}",
43441	//   "response": {
43442	//     "$ref": "GoogleCloudApigeeV1DeleteCustomReportResponse"
43443	//   },
43444	//   "scopes": [
43445	//     "https://www.googleapis.com/auth/cloud-platform"
43446	//   ]
43447	// }
43448
43449}
43450
43451// method id "apigee.organizations.reports.get":
43452
43453type OrganizationsReportsGetCall struct {
43454	s            *Service
43455	name         string
43456	urlParams_   gensupport.URLParams
43457	ifNoneMatch_ string
43458	ctx_         context.Context
43459	header_      http.Header
43460}
43461
43462// Get: Retrieve a custom report definition.
43463//
43464// - name: Custom Report name of the form:
43465//   `organizations/{organization_id}/reports/{report_name}`.
43466func (r *OrganizationsReportsService) Get(name string) *OrganizationsReportsGetCall {
43467	c := &OrganizationsReportsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43468	c.name = name
43469	return c
43470}
43471
43472// Fields allows partial responses to be retrieved. See
43473// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
43474// for more information.
43475func (c *OrganizationsReportsGetCall) Fields(s ...googleapi.Field) *OrganizationsReportsGetCall {
43476	c.urlParams_.Set("fields", googleapi.CombineFields(s))
43477	return c
43478}
43479
43480// IfNoneMatch sets the optional parameter which makes the operation
43481// fail if the object's ETag matches the given value. This is useful for
43482// getting updates only after the object has changed since the last
43483// request. Use googleapi.IsNotModified to check whether the response
43484// error from Do is the result of In-None-Match.
43485func (c *OrganizationsReportsGetCall) IfNoneMatch(entityTag string) *OrganizationsReportsGetCall {
43486	c.ifNoneMatch_ = entityTag
43487	return c
43488}
43489
43490// Context sets the context to be used in this call's Do method. Any
43491// pending HTTP request will be aborted if the provided context is
43492// canceled.
43493func (c *OrganizationsReportsGetCall) Context(ctx context.Context) *OrganizationsReportsGetCall {
43494	c.ctx_ = ctx
43495	return c
43496}
43497
43498// Header returns an http.Header that can be modified by the caller to
43499// add HTTP headers to the request.
43500func (c *OrganizationsReportsGetCall) Header() http.Header {
43501	if c.header_ == nil {
43502		c.header_ = make(http.Header)
43503	}
43504	return c.header_
43505}
43506
43507func (c *OrganizationsReportsGetCall) doRequest(alt string) (*http.Response, error) {
43508	reqHeaders := make(http.Header)
43509	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
43510	for k, v := range c.header_ {
43511		reqHeaders[k] = v
43512	}
43513	reqHeaders.Set("User-Agent", c.s.userAgent())
43514	if c.ifNoneMatch_ != "" {
43515		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
43516	}
43517	var body io.Reader = nil
43518	c.urlParams_.Set("alt", alt)
43519	c.urlParams_.Set("prettyPrint", "false")
43520	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
43521	urls += "?" + c.urlParams_.Encode()
43522	req, err := http.NewRequest("GET", urls, body)
43523	if err != nil {
43524		return nil, err
43525	}
43526	req.Header = reqHeaders
43527	googleapi.Expand(req.URL, map[string]string{
43528		"name": c.name,
43529	})
43530	return gensupport.SendRequest(c.ctx_, c.s.client, req)
43531}
43532
43533// Do executes the "apigee.organizations.reports.get" call.
43534// Exactly one of *GoogleCloudApigeeV1CustomReport or error will be
43535// non-nil. Any non-2xx status code is an error. Response headers are in
43536// either *GoogleCloudApigeeV1CustomReport.ServerResponse.Header or (if
43537// a response was returned at all) in error.(*googleapi.Error).Header.
43538// Use googleapi.IsNotModified to check whether the returned error was
43539// because http.StatusNotModified was returned.
43540func (c *OrganizationsReportsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1CustomReport, error) {
43541	gensupport.SetOptions(c.urlParams_, opts...)
43542	res, err := c.doRequest("json")
43543	if res != nil && res.StatusCode == http.StatusNotModified {
43544		if res.Body != nil {
43545			res.Body.Close()
43546		}
43547		return nil, &googleapi.Error{
43548			Code:   res.StatusCode,
43549			Header: res.Header,
43550		}
43551	}
43552	if err != nil {
43553		return nil, err
43554	}
43555	defer googleapi.CloseBody(res)
43556	if err := googleapi.CheckResponse(res); err != nil {
43557		return nil, err
43558	}
43559	ret := &GoogleCloudApigeeV1CustomReport{
43560		ServerResponse: googleapi.ServerResponse{
43561			Header:         res.Header,
43562			HTTPStatusCode: res.StatusCode,
43563		},
43564	}
43565	target := &ret
43566	if err := gensupport.DecodeResponse(target, res); err != nil {
43567		return nil, err
43568	}
43569	return ret, nil
43570	// {
43571	//   "description": "Retrieve a custom report definition.",
43572	//   "flatPath": "v1/organizations/{organizationsId}/reports/{reportsId}",
43573	//   "httpMethod": "GET",
43574	//   "id": "apigee.organizations.reports.get",
43575	//   "parameterOrder": [
43576	//     "name"
43577	//   ],
43578	//   "parameters": {
43579	//     "name": {
43580	//       "description": "Required. Custom Report name of the form: `organizations/{organization_id}/reports/{report_name}`",
43581	//       "location": "path",
43582	//       "pattern": "^organizations/[^/]+/reports/[^/]+$",
43583	//       "required": true,
43584	//       "type": "string"
43585	//     }
43586	//   },
43587	//   "path": "v1/{+name}",
43588	//   "response": {
43589	//     "$ref": "GoogleCloudApigeeV1CustomReport"
43590	//   },
43591	//   "scopes": [
43592	//     "https://www.googleapis.com/auth/cloud-platform"
43593	//   ]
43594	// }
43595
43596}
43597
43598// method id "apigee.organizations.reports.list":
43599
43600type OrganizationsReportsListCall struct {
43601	s            *Service
43602	parent       string
43603	urlParams_   gensupport.URLParams
43604	ifNoneMatch_ string
43605	ctx_         context.Context
43606	header_      http.Header
43607}
43608
43609// List: Return a list of Custom Reports
43610//
43611// - parent: The parent organization name under which the API product
43612//   will be listed `organizations/{organization_id}/reports`.
43613func (r *OrganizationsReportsService) List(parent string) *OrganizationsReportsListCall {
43614	c := &OrganizationsReportsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43615	c.parent = parent
43616	return c
43617}
43618
43619// Expand sets the optional parameter "expand": Set to 'true' to get
43620// expanded details about each custom report.
43621func (c *OrganizationsReportsListCall) Expand(expand bool) *OrganizationsReportsListCall {
43622	c.urlParams_.Set("expand", fmt.Sprint(expand))
43623	return c
43624}
43625
43626// Fields allows partial responses to be retrieved. See
43627// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
43628// for more information.
43629func (c *OrganizationsReportsListCall) Fields(s ...googleapi.Field) *OrganizationsReportsListCall {
43630	c.urlParams_.Set("fields", googleapi.CombineFields(s))
43631	return c
43632}
43633
43634// IfNoneMatch sets the optional parameter which makes the operation
43635// fail if the object's ETag matches the given value. This is useful for
43636// getting updates only after the object has changed since the last
43637// request. Use googleapi.IsNotModified to check whether the response
43638// error from Do is the result of In-None-Match.
43639func (c *OrganizationsReportsListCall) IfNoneMatch(entityTag string) *OrganizationsReportsListCall {
43640	c.ifNoneMatch_ = entityTag
43641	return c
43642}
43643
43644// Context sets the context to be used in this call's Do method. Any
43645// pending HTTP request will be aborted if the provided context is
43646// canceled.
43647func (c *OrganizationsReportsListCall) Context(ctx context.Context) *OrganizationsReportsListCall {
43648	c.ctx_ = ctx
43649	return c
43650}
43651
43652// Header returns an http.Header that can be modified by the caller to
43653// add HTTP headers to the request.
43654func (c *OrganizationsReportsListCall) Header() http.Header {
43655	if c.header_ == nil {
43656		c.header_ = make(http.Header)
43657	}
43658	return c.header_
43659}
43660
43661func (c *OrganizationsReportsListCall) doRequest(alt string) (*http.Response, error) {
43662	reqHeaders := make(http.Header)
43663	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
43664	for k, v := range c.header_ {
43665		reqHeaders[k] = v
43666	}
43667	reqHeaders.Set("User-Agent", c.s.userAgent())
43668	if c.ifNoneMatch_ != "" {
43669		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
43670	}
43671	var body io.Reader = nil
43672	c.urlParams_.Set("alt", alt)
43673	c.urlParams_.Set("prettyPrint", "false")
43674	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/reports")
43675	urls += "?" + c.urlParams_.Encode()
43676	req, err := http.NewRequest("GET", urls, body)
43677	if err != nil {
43678		return nil, err
43679	}
43680	req.Header = reqHeaders
43681	googleapi.Expand(req.URL, map[string]string{
43682		"parent": c.parent,
43683	})
43684	return gensupport.SendRequest(c.ctx_, c.s.client, req)
43685}
43686
43687// Do executes the "apigee.organizations.reports.list" call.
43688// Exactly one of *GoogleCloudApigeeV1ListCustomReportsResponse or error
43689// will be non-nil. Any non-2xx status code is an error. Response
43690// headers are in either
43691// *GoogleCloudApigeeV1ListCustomReportsResponse.ServerResponse.Header
43692// or (if a response was returned at all) in
43693// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
43694// whether the returned error was because http.StatusNotModified was
43695// returned.
43696func (c *OrganizationsReportsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListCustomReportsResponse, error) {
43697	gensupport.SetOptions(c.urlParams_, opts...)
43698	res, err := c.doRequest("json")
43699	if res != nil && res.StatusCode == http.StatusNotModified {
43700		if res.Body != nil {
43701			res.Body.Close()
43702		}
43703		return nil, &googleapi.Error{
43704			Code:   res.StatusCode,
43705			Header: res.Header,
43706		}
43707	}
43708	if err != nil {
43709		return nil, err
43710	}
43711	defer googleapi.CloseBody(res)
43712	if err := googleapi.CheckResponse(res); err != nil {
43713		return nil, err
43714	}
43715	ret := &GoogleCloudApigeeV1ListCustomReportsResponse{
43716		ServerResponse: googleapi.ServerResponse{
43717			Header:         res.Header,
43718			HTTPStatusCode: res.StatusCode,
43719		},
43720	}
43721	target := &ret
43722	if err := gensupport.DecodeResponse(target, res); err != nil {
43723		return nil, err
43724	}
43725	return ret, nil
43726	// {
43727	//   "description": "Return a list of Custom Reports",
43728	//   "flatPath": "v1/organizations/{organizationsId}/reports",
43729	//   "httpMethod": "GET",
43730	//   "id": "apigee.organizations.reports.list",
43731	//   "parameterOrder": [
43732	//     "parent"
43733	//   ],
43734	//   "parameters": {
43735	//     "expand": {
43736	//       "description": "Set to 'true' to get expanded details about each custom report.",
43737	//       "location": "query",
43738	//       "type": "boolean"
43739	//     },
43740	//     "parent": {
43741	//       "description": "Required. The parent organization name under which the API product will be listed `organizations/{organization_id}/reports`",
43742	//       "location": "path",
43743	//       "pattern": "^organizations/[^/]+$",
43744	//       "required": true,
43745	//       "type": "string"
43746	//     }
43747	//   },
43748	//   "path": "v1/{+parent}/reports",
43749	//   "response": {
43750	//     "$ref": "GoogleCloudApigeeV1ListCustomReportsResponse"
43751	//   },
43752	//   "scopes": [
43753	//     "https://www.googleapis.com/auth/cloud-platform"
43754	//   ]
43755	// }
43756
43757}
43758
43759// method id "apigee.organizations.reports.update":
43760
43761type OrganizationsReportsUpdateCall struct {
43762	s                               *Service
43763	name                            string
43764	googlecloudapigeev1customreport *GoogleCloudApigeeV1CustomReport
43765	urlParams_                      gensupport.URLParams
43766	ctx_                            context.Context
43767	header_                         http.Header
43768}
43769
43770// Update: Update an existing custom report definition
43771//
43772// - name: Custom Report name of the form:
43773//   `organizations/{organization_id}/reports/{report_name}`.
43774func (r *OrganizationsReportsService) Update(name string, googlecloudapigeev1customreport *GoogleCloudApigeeV1CustomReport) *OrganizationsReportsUpdateCall {
43775	c := &OrganizationsReportsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43776	c.name = name
43777	c.googlecloudapigeev1customreport = googlecloudapigeev1customreport
43778	return c
43779}
43780
43781// Fields allows partial responses to be retrieved. See
43782// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
43783// for more information.
43784func (c *OrganizationsReportsUpdateCall) Fields(s ...googleapi.Field) *OrganizationsReportsUpdateCall {
43785	c.urlParams_.Set("fields", googleapi.CombineFields(s))
43786	return c
43787}
43788
43789// Context sets the context to be used in this call's Do method. Any
43790// pending HTTP request will be aborted if the provided context is
43791// canceled.
43792func (c *OrganizationsReportsUpdateCall) Context(ctx context.Context) *OrganizationsReportsUpdateCall {
43793	c.ctx_ = ctx
43794	return c
43795}
43796
43797// Header returns an http.Header that can be modified by the caller to
43798// add HTTP headers to the request.
43799func (c *OrganizationsReportsUpdateCall) Header() http.Header {
43800	if c.header_ == nil {
43801		c.header_ = make(http.Header)
43802	}
43803	return c.header_
43804}
43805
43806func (c *OrganizationsReportsUpdateCall) doRequest(alt string) (*http.Response, error) {
43807	reqHeaders := make(http.Header)
43808	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
43809	for k, v := range c.header_ {
43810		reqHeaders[k] = v
43811	}
43812	reqHeaders.Set("User-Agent", c.s.userAgent())
43813	var body io.Reader = nil
43814	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1customreport)
43815	if err != nil {
43816		return nil, err
43817	}
43818	reqHeaders.Set("Content-Type", "application/json")
43819	c.urlParams_.Set("alt", alt)
43820	c.urlParams_.Set("prettyPrint", "false")
43821	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
43822	urls += "?" + c.urlParams_.Encode()
43823	req, err := http.NewRequest("PUT", urls, body)
43824	if err != nil {
43825		return nil, err
43826	}
43827	req.Header = reqHeaders
43828	googleapi.Expand(req.URL, map[string]string{
43829		"name": c.name,
43830	})
43831	return gensupport.SendRequest(c.ctx_, c.s.client, req)
43832}
43833
43834// Do executes the "apigee.organizations.reports.update" call.
43835// Exactly one of *GoogleCloudApigeeV1CustomReport or error will be
43836// non-nil. Any non-2xx status code is an error. Response headers are in
43837// either *GoogleCloudApigeeV1CustomReport.ServerResponse.Header or (if
43838// a response was returned at all) in error.(*googleapi.Error).Header.
43839// Use googleapi.IsNotModified to check whether the returned error was
43840// because http.StatusNotModified was returned.
43841func (c *OrganizationsReportsUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1CustomReport, error) {
43842	gensupport.SetOptions(c.urlParams_, opts...)
43843	res, err := c.doRequest("json")
43844	if res != nil && res.StatusCode == http.StatusNotModified {
43845		if res.Body != nil {
43846			res.Body.Close()
43847		}
43848		return nil, &googleapi.Error{
43849			Code:   res.StatusCode,
43850			Header: res.Header,
43851		}
43852	}
43853	if err != nil {
43854		return nil, err
43855	}
43856	defer googleapi.CloseBody(res)
43857	if err := googleapi.CheckResponse(res); err != nil {
43858		return nil, err
43859	}
43860	ret := &GoogleCloudApigeeV1CustomReport{
43861		ServerResponse: googleapi.ServerResponse{
43862			Header:         res.Header,
43863			HTTPStatusCode: res.StatusCode,
43864		},
43865	}
43866	target := &ret
43867	if err := gensupport.DecodeResponse(target, res); err != nil {
43868		return nil, err
43869	}
43870	return ret, nil
43871	// {
43872	//   "description": "Update an existing custom report definition",
43873	//   "flatPath": "v1/organizations/{organizationsId}/reports/{reportsId}",
43874	//   "httpMethod": "PUT",
43875	//   "id": "apigee.organizations.reports.update",
43876	//   "parameterOrder": [
43877	//     "name"
43878	//   ],
43879	//   "parameters": {
43880	//     "name": {
43881	//       "description": "Required. Custom Report name of the form: `organizations/{organization_id}/reports/{report_name}`",
43882	//       "location": "path",
43883	//       "pattern": "^organizations/[^/]+/reports/[^/]+$",
43884	//       "required": true,
43885	//       "type": "string"
43886	//     }
43887	//   },
43888	//   "path": "v1/{+name}",
43889	//   "request": {
43890	//     "$ref": "GoogleCloudApigeeV1CustomReport"
43891	//   },
43892	//   "response": {
43893	//     "$ref": "GoogleCloudApigeeV1CustomReport"
43894	//   },
43895	//   "scopes": [
43896	//     "https://www.googleapis.com/auth/cloud-platform"
43897	//   ]
43898	// }
43899
43900}
43901
43902// method id "apigee.organizations.sharedflows.create":
43903
43904type OrganizationsSharedflowsCreateCall struct {
43905	s                 *Service
43906	parent            string
43907	googleapihttpbody *GoogleApiHttpBody
43908	urlParams_        gensupport.URLParams
43909	ctx_              context.Context
43910	header_           http.Header
43911}
43912
43913// Create: Uploads a ZIP-formatted shared flow configuration bundle to
43914// an organization. If the shared flow already exists, this creates a
43915// new revision of it. If the shared flow does not exist, this creates
43916// it. Once imported, the shared flow revision must be deployed before
43917// it can be accessed at runtime. The size limit of a shared flow bundle
43918// is 15 MB.
43919//
43920// - parent: The name of the parent organization under which to create
43921//   the shared flow. Must be of the form:
43922//   `organizations/{organization_id}`.
43923func (r *OrganizationsSharedflowsService) Create(parent string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsSharedflowsCreateCall {
43924	c := &OrganizationsSharedflowsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43925	c.parent = parent
43926	c.googleapihttpbody = googleapihttpbody
43927	return c
43928}
43929
43930// Action sets the optional parameter "action": Required. Must be set to
43931// either `import` or `validate`.
43932func (c *OrganizationsSharedflowsCreateCall) Action(action string) *OrganizationsSharedflowsCreateCall {
43933	c.urlParams_.Set("action", action)
43934	return c
43935}
43936
43937// Name sets the optional parameter "name": Required. The name to give
43938// the shared flow
43939func (c *OrganizationsSharedflowsCreateCall) Name(name string) *OrganizationsSharedflowsCreateCall {
43940	c.urlParams_.Set("name", name)
43941	return c
43942}
43943
43944// Fields allows partial responses to be retrieved. See
43945// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
43946// for more information.
43947func (c *OrganizationsSharedflowsCreateCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsCreateCall {
43948	c.urlParams_.Set("fields", googleapi.CombineFields(s))
43949	return c
43950}
43951
43952// Context sets the context to be used in this call's Do method. Any
43953// pending HTTP request will be aborted if the provided context is
43954// canceled.
43955func (c *OrganizationsSharedflowsCreateCall) Context(ctx context.Context) *OrganizationsSharedflowsCreateCall {
43956	c.ctx_ = ctx
43957	return c
43958}
43959
43960// Header returns an http.Header that can be modified by the caller to
43961// add HTTP headers to the request.
43962func (c *OrganizationsSharedflowsCreateCall) Header() http.Header {
43963	if c.header_ == nil {
43964		c.header_ = make(http.Header)
43965	}
43966	return c.header_
43967}
43968
43969func (c *OrganizationsSharedflowsCreateCall) doRequest(alt string) (*http.Response, error) {
43970	reqHeaders := make(http.Header)
43971	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
43972	for k, v := range c.header_ {
43973		reqHeaders[k] = v
43974	}
43975	reqHeaders.Set("User-Agent", c.s.userAgent())
43976	var body io.Reader = nil
43977	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
43978	if err != nil {
43979		return nil, err
43980	}
43981	reqHeaders.Set("Content-Type", "application/json")
43982	c.urlParams_.Set("alt", alt)
43983	c.urlParams_.Set("prettyPrint", "false")
43984	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/sharedflows")
43985	urls += "?" + c.urlParams_.Encode()
43986	req, err := http.NewRequest("POST", urls, body)
43987	if err != nil {
43988		return nil, err
43989	}
43990	req.Header = reqHeaders
43991	googleapi.Expand(req.URL, map[string]string{
43992		"parent": c.parent,
43993	})
43994	return gensupport.SendRequest(c.ctx_, c.s.client, req)
43995}
43996
43997// Do executes the "apigee.organizations.sharedflows.create" call.
43998// Exactly one of *GoogleCloudApigeeV1SharedFlowRevision or error will
43999// be non-nil. Any non-2xx status code is an error. Response headers are
44000// in either
44001// *GoogleCloudApigeeV1SharedFlowRevision.ServerResponse.Header or (if a
44002// response was returned at all) in error.(*googleapi.Error).Header. Use
44003// googleapi.IsNotModified to check whether the returned error was
44004// because http.StatusNotModified was returned.
44005func (c *OrganizationsSharedflowsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SharedFlowRevision, error) {
44006	gensupport.SetOptions(c.urlParams_, opts...)
44007	res, err := c.doRequest("json")
44008	if res != nil && res.StatusCode == http.StatusNotModified {
44009		if res.Body != nil {
44010			res.Body.Close()
44011		}
44012		return nil, &googleapi.Error{
44013			Code:   res.StatusCode,
44014			Header: res.Header,
44015		}
44016	}
44017	if err != nil {
44018		return nil, err
44019	}
44020	defer googleapi.CloseBody(res)
44021	if err := googleapi.CheckResponse(res); err != nil {
44022		return nil, err
44023	}
44024	ret := &GoogleCloudApigeeV1SharedFlowRevision{
44025		ServerResponse: googleapi.ServerResponse{
44026			Header:         res.Header,
44027			HTTPStatusCode: res.StatusCode,
44028		},
44029	}
44030	target := &ret
44031	if err := gensupport.DecodeResponse(target, res); err != nil {
44032		return nil, err
44033	}
44034	return ret, nil
44035	// {
44036	//   "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.",
44037	//   "flatPath": "v1/organizations/{organizationsId}/sharedflows",
44038	//   "httpMethod": "POST",
44039	//   "id": "apigee.organizations.sharedflows.create",
44040	//   "parameterOrder": [
44041	//     "parent"
44042	//   ],
44043	//   "parameters": {
44044	//     "action": {
44045	//       "description": "Required. Must be set to either `import` or `validate`.",
44046	//       "location": "query",
44047	//       "type": "string"
44048	//     },
44049	//     "name": {
44050	//       "description": "Required. The name to give the shared flow",
44051	//       "location": "query",
44052	//       "type": "string"
44053	//     },
44054	//     "parent": {
44055	//       "description": "Required. The name of the parent organization under which to create the shared flow. Must be of the form: `organizations/{organization_id}`",
44056	//       "location": "path",
44057	//       "pattern": "^organizations/[^/]+$",
44058	//       "required": true,
44059	//       "type": "string"
44060	//     }
44061	//   },
44062	//   "path": "v1/{+parent}/sharedflows",
44063	//   "request": {
44064	//     "$ref": "GoogleApiHttpBody"
44065	//   },
44066	//   "response": {
44067	//     "$ref": "GoogleCloudApigeeV1SharedFlowRevision"
44068	//   },
44069	//   "scopes": [
44070	//     "https://www.googleapis.com/auth/cloud-platform"
44071	//   ]
44072	// }
44073
44074}
44075
44076// method id "apigee.organizations.sharedflows.delete":
44077
44078type OrganizationsSharedflowsDeleteCall struct {
44079	s          *Service
44080	name       string
44081	urlParams_ gensupport.URLParams
44082	ctx_       context.Context
44083	header_    http.Header
44084}
44085
44086// Delete: Deletes a shared flow and all it's revisions. The shared flow
44087// must be undeployed before you can delete it.
44088//
44089// - name: shared flow name of the form:
44090//   `organizations/{organization_id}/sharedflows/{shared_flow_id}`.
44091func (r *OrganizationsSharedflowsService) Delete(name string) *OrganizationsSharedflowsDeleteCall {
44092	c := &OrganizationsSharedflowsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44093	c.name = name
44094	return c
44095}
44096
44097// Fields allows partial responses to be retrieved. See
44098// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
44099// for more information.
44100func (c *OrganizationsSharedflowsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsDeleteCall {
44101	c.urlParams_.Set("fields", googleapi.CombineFields(s))
44102	return c
44103}
44104
44105// Context sets the context to be used in this call's Do method. Any
44106// pending HTTP request will be aborted if the provided context is
44107// canceled.
44108func (c *OrganizationsSharedflowsDeleteCall) Context(ctx context.Context) *OrganizationsSharedflowsDeleteCall {
44109	c.ctx_ = ctx
44110	return c
44111}
44112
44113// Header returns an http.Header that can be modified by the caller to
44114// add HTTP headers to the request.
44115func (c *OrganizationsSharedflowsDeleteCall) Header() http.Header {
44116	if c.header_ == nil {
44117		c.header_ = make(http.Header)
44118	}
44119	return c.header_
44120}
44121
44122func (c *OrganizationsSharedflowsDeleteCall) doRequest(alt string) (*http.Response, error) {
44123	reqHeaders := make(http.Header)
44124	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
44125	for k, v := range c.header_ {
44126		reqHeaders[k] = v
44127	}
44128	reqHeaders.Set("User-Agent", c.s.userAgent())
44129	var body io.Reader = nil
44130	c.urlParams_.Set("alt", alt)
44131	c.urlParams_.Set("prettyPrint", "false")
44132	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
44133	urls += "?" + c.urlParams_.Encode()
44134	req, err := http.NewRequest("DELETE", urls, body)
44135	if err != nil {
44136		return nil, err
44137	}
44138	req.Header = reqHeaders
44139	googleapi.Expand(req.URL, map[string]string{
44140		"name": c.name,
44141	})
44142	return gensupport.SendRequest(c.ctx_, c.s.client, req)
44143}
44144
44145// Do executes the "apigee.organizations.sharedflows.delete" call.
44146// Exactly one of *GoogleCloudApigeeV1SharedFlow or error will be
44147// non-nil. Any non-2xx status code is an error. Response headers are in
44148// either *GoogleCloudApigeeV1SharedFlow.ServerResponse.Header or (if a
44149// response was returned at all) in error.(*googleapi.Error).Header. Use
44150// googleapi.IsNotModified to check whether the returned error was
44151// because http.StatusNotModified was returned.
44152func (c *OrganizationsSharedflowsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SharedFlow, error) {
44153	gensupport.SetOptions(c.urlParams_, opts...)
44154	res, err := c.doRequest("json")
44155	if res != nil && res.StatusCode == http.StatusNotModified {
44156		if res.Body != nil {
44157			res.Body.Close()
44158		}
44159		return nil, &googleapi.Error{
44160			Code:   res.StatusCode,
44161			Header: res.Header,
44162		}
44163	}
44164	if err != nil {
44165		return nil, err
44166	}
44167	defer googleapi.CloseBody(res)
44168	if err := googleapi.CheckResponse(res); err != nil {
44169		return nil, err
44170	}
44171	ret := &GoogleCloudApigeeV1SharedFlow{
44172		ServerResponse: googleapi.ServerResponse{
44173			Header:         res.Header,
44174			HTTPStatusCode: res.StatusCode,
44175		},
44176	}
44177	target := &ret
44178	if err := gensupport.DecodeResponse(target, res); err != nil {
44179		return nil, err
44180	}
44181	return ret, nil
44182	// {
44183	//   "description": "Deletes a shared flow and all it's revisions. The shared flow must be undeployed before you can delete it.",
44184	//   "flatPath": "v1/organizations/{organizationsId}/sharedflows/{sharedflowsId}",
44185	//   "httpMethod": "DELETE",
44186	//   "id": "apigee.organizations.sharedflows.delete",
44187	//   "parameterOrder": [
44188	//     "name"
44189	//   ],
44190	//   "parameters": {
44191	//     "name": {
44192	//       "description": "Required. shared flow name of the form: `organizations/{organization_id}/sharedflows/{shared_flow_id}`",
44193	//       "location": "path",
44194	//       "pattern": "^organizations/[^/]+/sharedflows/[^/]+$",
44195	//       "required": true,
44196	//       "type": "string"
44197	//     }
44198	//   },
44199	//   "path": "v1/{+name}",
44200	//   "response": {
44201	//     "$ref": "GoogleCloudApigeeV1SharedFlow"
44202	//   },
44203	//   "scopes": [
44204	//     "https://www.googleapis.com/auth/cloud-platform"
44205	//   ]
44206	// }
44207
44208}
44209
44210// method id "apigee.organizations.sharedflows.get":
44211
44212type OrganizationsSharedflowsGetCall struct {
44213	s            *Service
44214	name         string
44215	urlParams_   gensupport.URLParams
44216	ifNoneMatch_ string
44217	ctx_         context.Context
44218	header_      http.Header
44219}
44220
44221// Get: Gets a shared flow by name, including a list of its revisions.
44222//
44223// - name: The name of the shared flow to get. Must be of the form:
44224//   `organizations/{organization_id}/sharedflows/{shared_flow_id}`.
44225func (r *OrganizationsSharedflowsService) Get(name string) *OrganizationsSharedflowsGetCall {
44226	c := &OrganizationsSharedflowsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44227	c.name = name
44228	return c
44229}
44230
44231// Fields allows partial responses to be retrieved. See
44232// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
44233// for more information.
44234func (c *OrganizationsSharedflowsGetCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsGetCall {
44235	c.urlParams_.Set("fields", googleapi.CombineFields(s))
44236	return c
44237}
44238
44239// IfNoneMatch sets the optional parameter which makes the operation
44240// fail if the object's ETag matches the given value. This is useful for
44241// getting updates only after the object has changed since the last
44242// request. Use googleapi.IsNotModified to check whether the response
44243// error from Do is the result of In-None-Match.
44244func (c *OrganizationsSharedflowsGetCall) IfNoneMatch(entityTag string) *OrganizationsSharedflowsGetCall {
44245	c.ifNoneMatch_ = entityTag
44246	return c
44247}
44248
44249// Context sets the context to be used in this call's Do method. Any
44250// pending HTTP request will be aborted if the provided context is
44251// canceled.
44252func (c *OrganizationsSharedflowsGetCall) Context(ctx context.Context) *OrganizationsSharedflowsGetCall {
44253	c.ctx_ = ctx
44254	return c
44255}
44256
44257// Header returns an http.Header that can be modified by the caller to
44258// add HTTP headers to the request.
44259func (c *OrganizationsSharedflowsGetCall) Header() http.Header {
44260	if c.header_ == nil {
44261		c.header_ = make(http.Header)
44262	}
44263	return c.header_
44264}
44265
44266func (c *OrganizationsSharedflowsGetCall) doRequest(alt string) (*http.Response, error) {
44267	reqHeaders := make(http.Header)
44268	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
44269	for k, v := range c.header_ {
44270		reqHeaders[k] = v
44271	}
44272	reqHeaders.Set("User-Agent", c.s.userAgent())
44273	if c.ifNoneMatch_ != "" {
44274		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
44275	}
44276	var body io.Reader = nil
44277	c.urlParams_.Set("alt", alt)
44278	c.urlParams_.Set("prettyPrint", "false")
44279	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
44280	urls += "?" + c.urlParams_.Encode()
44281	req, err := http.NewRequest("GET", urls, body)
44282	if err != nil {
44283		return nil, err
44284	}
44285	req.Header = reqHeaders
44286	googleapi.Expand(req.URL, map[string]string{
44287		"name": c.name,
44288	})
44289	return gensupport.SendRequest(c.ctx_, c.s.client, req)
44290}
44291
44292// Do executes the "apigee.organizations.sharedflows.get" call.
44293// Exactly one of *GoogleCloudApigeeV1SharedFlow or error will be
44294// non-nil. Any non-2xx status code is an error. Response headers are in
44295// either *GoogleCloudApigeeV1SharedFlow.ServerResponse.Header or (if a
44296// response was returned at all) in error.(*googleapi.Error).Header. Use
44297// googleapi.IsNotModified to check whether the returned error was
44298// because http.StatusNotModified was returned.
44299func (c *OrganizationsSharedflowsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SharedFlow, error) {
44300	gensupport.SetOptions(c.urlParams_, opts...)
44301	res, err := c.doRequest("json")
44302	if res != nil && res.StatusCode == http.StatusNotModified {
44303		if res.Body != nil {
44304			res.Body.Close()
44305		}
44306		return nil, &googleapi.Error{
44307			Code:   res.StatusCode,
44308			Header: res.Header,
44309		}
44310	}
44311	if err != nil {
44312		return nil, err
44313	}
44314	defer googleapi.CloseBody(res)
44315	if err := googleapi.CheckResponse(res); err != nil {
44316		return nil, err
44317	}
44318	ret := &GoogleCloudApigeeV1SharedFlow{
44319		ServerResponse: googleapi.ServerResponse{
44320			Header:         res.Header,
44321			HTTPStatusCode: res.StatusCode,
44322		},
44323	}
44324	target := &ret
44325	if err := gensupport.DecodeResponse(target, res); err != nil {
44326		return nil, err
44327	}
44328	return ret, nil
44329	// {
44330	//   "description": "Gets a shared flow by name, including a list of its revisions.",
44331	//   "flatPath": "v1/organizations/{organizationsId}/sharedflows/{sharedflowsId}",
44332	//   "httpMethod": "GET",
44333	//   "id": "apigee.organizations.sharedflows.get",
44334	//   "parameterOrder": [
44335	//     "name"
44336	//   ],
44337	//   "parameters": {
44338	//     "name": {
44339	//       "description": "Required. The name of the shared flow to get. Must be of the form: `organizations/{organization_id}/sharedflows/{shared_flow_id}`",
44340	//       "location": "path",
44341	//       "pattern": "^organizations/[^/]+/sharedflows/[^/]+$",
44342	//       "required": true,
44343	//       "type": "string"
44344	//     }
44345	//   },
44346	//   "path": "v1/{+name}",
44347	//   "response": {
44348	//     "$ref": "GoogleCloudApigeeV1SharedFlow"
44349	//   },
44350	//   "scopes": [
44351	//     "https://www.googleapis.com/auth/cloud-platform"
44352	//   ]
44353	// }
44354
44355}
44356
44357// method id "apigee.organizations.sharedflows.list":
44358
44359type OrganizationsSharedflowsListCall struct {
44360	s            *Service
44361	parent       string
44362	urlParams_   gensupport.URLParams
44363	ifNoneMatch_ string
44364	ctx_         context.Context
44365	header_      http.Header
44366}
44367
44368// List: Lists all shared flows in the organization.
44369//
44370// - parent: The name of the parent organization under which to get
44371//   shared flows. Must be of the form:
44372//   `organizations/{organization_id}`.
44373func (r *OrganizationsSharedflowsService) List(parent string) *OrganizationsSharedflowsListCall {
44374	c := &OrganizationsSharedflowsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44375	c.parent = parent
44376	return c
44377}
44378
44379// IncludeMetaData sets the optional parameter "includeMetaData":
44380// Indicates whether to include shared flow metadata in the response.
44381func (c *OrganizationsSharedflowsListCall) IncludeMetaData(includeMetaData bool) *OrganizationsSharedflowsListCall {
44382	c.urlParams_.Set("includeMetaData", fmt.Sprint(includeMetaData))
44383	return c
44384}
44385
44386// IncludeRevisions sets the optional parameter "includeRevisions":
44387// Indicates whether to include a list of revisions in the response.
44388func (c *OrganizationsSharedflowsListCall) IncludeRevisions(includeRevisions bool) *OrganizationsSharedflowsListCall {
44389	c.urlParams_.Set("includeRevisions", fmt.Sprint(includeRevisions))
44390	return c
44391}
44392
44393// Fields allows partial responses to be retrieved. See
44394// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
44395// for more information.
44396func (c *OrganizationsSharedflowsListCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsListCall {
44397	c.urlParams_.Set("fields", googleapi.CombineFields(s))
44398	return c
44399}
44400
44401// IfNoneMatch sets the optional parameter which makes the operation
44402// fail if the object's ETag matches the given value. This is useful for
44403// getting updates only after the object has changed since the last
44404// request. Use googleapi.IsNotModified to check whether the response
44405// error from Do is the result of In-None-Match.
44406func (c *OrganizationsSharedflowsListCall) IfNoneMatch(entityTag string) *OrganizationsSharedflowsListCall {
44407	c.ifNoneMatch_ = entityTag
44408	return c
44409}
44410
44411// Context sets the context to be used in this call's Do method. Any
44412// pending HTTP request will be aborted if the provided context is
44413// canceled.
44414func (c *OrganizationsSharedflowsListCall) Context(ctx context.Context) *OrganizationsSharedflowsListCall {
44415	c.ctx_ = ctx
44416	return c
44417}
44418
44419// Header returns an http.Header that can be modified by the caller to
44420// add HTTP headers to the request.
44421func (c *OrganizationsSharedflowsListCall) Header() http.Header {
44422	if c.header_ == nil {
44423		c.header_ = make(http.Header)
44424	}
44425	return c.header_
44426}
44427
44428func (c *OrganizationsSharedflowsListCall) doRequest(alt string) (*http.Response, error) {
44429	reqHeaders := make(http.Header)
44430	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
44431	for k, v := range c.header_ {
44432		reqHeaders[k] = v
44433	}
44434	reqHeaders.Set("User-Agent", c.s.userAgent())
44435	if c.ifNoneMatch_ != "" {
44436		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
44437	}
44438	var body io.Reader = nil
44439	c.urlParams_.Set("alt", alt)
44440	c.urlParams_.Set("prettyPrint", "false")
44441	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/sharedflows")
44442	urls += "?" + c.urlParams_.Encode()
44443	req, err := http.NewRequest("GET", urls, body)
44444	if err != nil {
44445		return nil, err
44446	}
44447	req.Header = reqHeaders
44448	googleapi.Expand(req.URL, map[string]string{
44449		"parent": c.parent,
44450	})
44451	return gensupport.SendRequest(c.ctx_, c.s.client, req)
44452}
44453
44454// Do executes the "apigee.organizations.sharedflows.list" call.
44455// Exactly one of *GoogleCloudApigeeV1ListSharedFlowsResponse or error
44456// will be non-nil. Any non-2xx status code is an error. Response
44457// headers are in either
44458// *GoogleCloudApigeeV1ListSharedFlowsResponse.ServerResponse.Header or
44459// (if a response was returned at all) in
44460// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
44461// whether the returned error was because http.StatusNotModified was
44462// returned.
44463func (c *OrganizationsSharedflowsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListSharedFlowsResponse, error) {
44464	gensupport.SetOptions(c.urlParams_, opts...)
44465	res, err := c.doRequest("json")
44466	if res != nil && res.StatusCode == http.StatusNotModified {
44467		if res.Body != nil {
44468			res.Body.Close()
44469		}
44470		return nil, &googleapi.Error{
44471			Code:   res.StatusCode,
44472			Header: res.Header,
44473		}
44474	}
44475	if err != nil {
44476		return nil, err
44477	}
44478	defer googleapi.CloseBody(res)
44479	if err := googleapi.CheckResponse(res); err != nil {
44480		return nil, err
44481	}
44482	ret := &GoogleCloudApigeeV1ListSharedFlowsResponse{
44483		ServerResponse: googleapi.ServerResponse{
44484			Header:         res.Header,
44485			HTTPStatusCode: res.StatusCode,
44486		},
44487	}
44488	target := &ret
44489	if err := gensupport.DecodeResponse(target, res); err != nil {
44490		return nil, err
44491	}
44492	return ret, nil
44493	// {
44494	//   "description": "Lists all shared flows in the organization.",
44495	//   "flatPath": "v1/organizations/{organizationsId}/sharedflows",
44496	//   "httpMethod": "GET",
44497	//   "id": "apigee.organizations.sharedflows.list",
44498	//   "parameterOrder": [
44499	//     "parent"
44500	//   ],
44501	//   "parameters": {
44502	//     "includeMetaData": {
44503	//       "description": "Indicates whether to include shared flow metadata in the response.",
44504	//       "location": "query",
44505	//       "type": "boolean"
44506	//     },
44507	//     "includeRevisions": {
44508	//       "description": "Indicates whether to include a list of revisions in the response.",
44509	//       "location": "query",
44510	//       "type": "boolean"
44511	//     },
44512	//     "parent": {
44513	//       "description": "Required. The name of the parent organization under which to get shared flows. Must be of the form: `organizations/{organization_id}`",
44514	//       "location": "path",
44515	//       "pattern": "^organizations/[^/]+$",
44516	//       "required": true,
44517	//       "type": "string"
44518	//     }
44519	//   },
44520	//   "path": "v1/{+parent}/sharedflows",
44521	//   "response": {
44522	//     "$ref": "GoogleCloudApigeeV1ListSharedFlowsResponse"
44523	//   },
44524	//   "scopes": [
44525	//     "https://www.googleapis.com/auth/cloud-platform"
44526	//   ]
44527	// }
44528
44529}
44530
44531// method id "apigee.organizations.sharedflows.deployments.list":
44532
44533type OrganizationsSharedflowsDeploymentsListCall struct {
44534	s            *Service
44535	parent       string
44536	urlParams_   gensupport.URLParams
44537	ifNoneMatch_ string
44538	ctx_         context.Context
44539	header_      http.Header
44540}
44541
44542// List: Lists all deployments of a shared flow.
44543//
44544// - parent: Name of the shared flow for which to return deployment
44545//   information in the following format:
44546//   `organizations/{org}/sharedflows/{sharedflow}`.
44547func (r *OrganizationsSharedflowsDeploymentsService) List(parent string) *OrganizationsSharedflowsDeploymentsListCall {
44548	c := &OrganizationsSharedflowsDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44549	c.parent = parent
44550	return c
44551}
44552
44553// Fields allows partial responses to be retrieved. See
44554// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
44555// for more information.
44556func (c *OrganizationsSharedflowsDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsDeploymentsListCall {
44557	c.urlParams_.Set("fields", googleapi.CombineFields(s))
44558	return c
44559}
44560
44561// IfNoneMatch sets the optional parameter which makes the operation
44562// fail if the object's ETag matches the given value. This is useful for
44563// getting updates only after the object has changed since the last
44564// request. Use googleapi.IsNotModified to check whether the response
44565// error from Do is the result of In-None-Match.
44566func (c *OrganizationsSharedflowsDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsSharedflowsDeploymentsListCall {
44567	c.ifNoneMatch_ = entityTag
44568	return c
44569}
44570
44571// Context sets the context to be used in this call's Do method. Any
44572// pending HTTP request will be aborted if the provided context is
44573// canceled.
44574func (c *OrganizationsSharedflowsDeploymentsListCall) Context(ctx context.Context) *OrganizationsSharedflowsDeploymentsListCall {
44575	c.ctx_ = ctx
44576	return c
44577}
44578
44579// Header returns an http.Header that can be modified by the caller to
44580// add HTTP headers to the request.
44581func (c *OrganizationsSharedflowsDeploymentsListCall) Header() http.Header {
44582	if c.header_ == nil {
44583		c.header_ = make(http.Header)
44584	}
44585	return c.header_
44586}
44587
44588func (c *OrganizationsSharedflowsDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
44589	reqHeaders := make(http.Header)
44590	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
44591	for k, v := range c.header_ {
44592		reqHeaders[k] = v
44593	}
44594	reqHeaders.Set("User-Agent", c.s.userAgent())
44595	if c.ifNoneMatch_ != "" {
44596		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
44597	}
44598	var body io.Reader = nil
44599	c.urlParams_.Set("alt", alt)
44600	c.urlParams_.Set("prettyPrint", "false")
44601	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
44602	urls += "?" + c.urlParams_.Encode()
44603	req, err := http.NewRequest("GET", urls, body)
44604	if err != nil {
44605		return nil, err
44606	}
44607	req.Header = reqHeaders
44608	googleapi.Expand(req.URL, map[string]string{
44609		"parent": c.parent,
44610	})
44611	return gensupport.SendRequest(c.ctx_, c.s.client, req)
44612}
44613
44614// Do executes the "apigee.organizations.sharedflows.deployments.list" call.
44615// Exactly one of *GoogleCloudApigeeV1ListDeploymentsResponse or error
44616// will be non-nil. Any non-2xx status code is an error. Response
44617// headers are in either
44618// *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or
44619// (if a response was returned at all) in
44620// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
44621// whether the returned error was because http.StatusNotModified was
44622// returned.
44623func (c *OrganizationsSharedflowsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
44624	gensupport.SetOptions(c.urlParams_, opts...)
44625	res, err := c.doRequest("json")
44626	if res != nil && res.StatusCode == http.StatusNotModified {
44627		if res.Body != nil {
44628			res.Body.Close()
44629		}
44630		return nil, &googleapi.Error{
44631			Code:   res.StatusCode,
44632			Header: res.Header,
44633		}
44634	}
44635	if err != nil {
44636		return nil, err
44637	}
44638	defer googleapi.CloseBody(res)
44639	if err := googleapi.CheckResponse(res); err != nil {
44640		return nil, err
44641	}
44642	ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
44643		ServerResponse: googleapi.ServerResponse{
44644			Header:         res.Header,
44645			HTTPStatusCode: res.StatusCode,
44646		},
44647	}
44648	target := &ret
44649	if err := gensupport.DecodeResponse(target, res); err != nil {
44650		return nil, err
44651	}
44652	return ret, nil
44653	// {
44654	//   "description": "Lists all deployments of a shared flow.",
44655	//   "flatPath": "v1/organizations/{organizationsId}/sharedflows/{sharedflowsId}/deployments",
44656	//   "httpMethod": "GET",
44657	//   "id": "apigee.organizations.sharedflows.deployments.list",
44658	//   "parameterOrder": [
44659	//     "parent"
44660	//   ],
44661	//   "parameters": {
44662	//     "parent": {
44663	//       "description": "Required. Name of the shared flow for which to return deployment information in the following format: `organizations/{org}/sharedflows/{sharedflow}`",
44664	//       "location": "path",
44665	//       "pattern": "^organizations/[^/]+/sharedflows/[^/]+$",
44666	//       "required": true,
44667	//       "type": "string"
44668	//     }
44669	//   },
44670	//   "path": "v1/{+parent}/deployments",
44671	//   "response": {
44672	//     "$ref": "GoogleCloudApigeeV1ListDeploymentsResponse"
44673	//   },
44674	//   "scopes": [
44675	//     "https://www.googleapis.com/auth/cloud-platform"
44676	//   ]
44677	// }
44678
44679}
44680
44681// method id "apigee.organizations.sharedflows.revisions.delete":
44682
44683type OrganizationsSharedflowsRevisionsDeleteCall struct {
44684	s          *Service
44685	name       string
44686	urlParams_ gensupport.URLParams
44687	ctx_       context.Context
44688	header_    http.Header
44689}
44690
44691// Delete: Deletes a shared flow and all associated policies, resources,
44692// and revisions. You must undeploy the shared flow before deleting it.
44693//
44694// - name: The name of the shared flow revision to delete. Must be of
44695//   the form:
44696//   `organizations/{organization_id}/sharedflows/{shared_flow_id}/revisi
44697//   ons/{revision_id}`.
44698func (r *OrganizationsSharedflowsRevisionsService) Delete(name string) *OrganizationsSharedflowsRevisionsDeleteCall {
44699	c := &OrganizationsSharedflowsRevisionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44700	c.name = name
44701	return c
44702}
44703
44704// Fields allows partial responses to be retrieved. See
44705// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
44706// for more information.
44707func (c *OrganizationsSharedflowsRevisionsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsRevisionsDeleteCall {
44708	c.urlParams_.Set("fields", googleapi.CombineFields(s))
44709	return c
44710}
44711
44712// Context sets the context to be used in this call's Do method. Any
44713// pending HTTP request will be aborted if the provided context is
44714// canceled.
44715func (c *OrganizationsSharedflowsRevisionsDeleteCall) Context(ctx context.Context) *OrganizationsSharedflowsRevisionsDeleteCall {
44716	c.ctx_ = ctx
44717	return c
44718}
44719
44720// Header returns an http.Header that can be modified by the caller to
44721// add HTTP headers to the request.
44722func (c *OrganizationsSharedflowsRevisionsDeleteCall) Header() http.Header {
44723	if c.header_ == nil {
44724		c.header_ = make(http.Header)
44725	}
44726	return c.header_
44727}
44728
44729func (c *OrganizationsSharedflowsRevisionsDeleteCall) doRequest(alt string) (*http.Response, error) {
44730	reqHeaders := make(http.Header)
44731	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
44732	for k, v := range c.header_ {
44733		reqHeaders[k] = v
44734	}
44735	reqHeaders.Set("User-Agent", c.s.userAgent())
44736	var body io.Reader = nil
44737	c.urlParams_.Set("alt", alt)
44738	c.urlParams_.Set("prettyPrint", "false")
44739	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
44740	urls += "?" + c.urlParams_.Encode()
44741	req, err := http.NewRequest("DELETE", urls, body)
44742	if err != nil {
44743		return nil, err
44744	}
44745	req.Header = reqHeaders
44746	googleapi.Expand(req.URL, map[string]string{
44747		"name": c.name,
44748	})
44749	return gensupport.SendRequest(c.ctx_, c.s.client, req)
44750}
44751
44752// Do executes the "apigee.organizations.sharedflows.revisions.delete" call.
44753// Exactly one of *GoogleCloudApigeeV1SharedFlowRevision or error will
44754// be non-nil. Any non-2xx status code is an error. Response headers are
44755// in either
44756// *GoogleCloudApigeeV1SharedFlowRevision.ServerResponse.Header or (if a
44757// response was returned at all) in error.(*googleapi.Error).Header. Use
44758// googleapi.IsNotModified to check whether the returned error was
44759// because http.StatusNotModified was returned.
44760func (c *OrganizationsSharedflowsRevisionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SharedFlowRevision, error) {
44761	gensupport.SetOptions(c.urlParams_, opts...)
44762	res, err := c.doRequest("json")
44763	if res != nil && res.StatusCode == http.StatusNotModified {
44764		if res.Body != nil {
44765			res.Body.Close()
44766		}
44767		return nil, &googleapi.Error{
44768			Code:   res.StatusCode,
44769			Header: res.Header,
44770		}
44771	}
44772	if err != nil {
44773		return nil, err
44774	}
44775	defer googleapi.CloseBody(res)
44776	if err := googleapi.CheckResponse(res); err != nil {
44777		return nil, err
44778	}
44779	ret := &GoogleCloudApigeeV1SharedFlowRevision{
44780		ServerResponse: googleapi.ServerResponse{
44781			Header:         res.Header,
44782			HTTPStatusCode: res.StatusCode,
44783		},
44784	}
44785	target := &ret
44786	if err := gensupport.DecodeResponse(target, res); err != nil {
44787		return nil, err
44788	}
44789	return ret, nil
44790	// {
44791	//   "description": "Deletes a shared flow and all associated policies, resources, and revisions. You must undeploy the shared flow before deleting it.",
44792	//   "flatPath": "v1/organizations/{organizationsId}/sharedflows/{sharedflowsId}/revisions/{revisionsId}",
44793	//   "httpMethod": "DELETE",
44794	//   "id": "apigee.organizations.sharedflows.revisions.delete",
44795	//   "parameterOrder": [
44796	//     "name"
44797	//   ],
44798	//   "parameters": {
44799	//     "name": {
44800	//       "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}`",
44801	//       "location": "path",
44802	//       "pattern": "^organizations/[^/]+/sharedflows/[^/]+/revisions/[^/]+$",
44803	//       "required": true,
44804	//       "type": "string"
44805	//     }
44806	//   },
44807	//   "path": "v1/{+name}",
44808	//   "response": {
44809	//     "$ref": "GoogleCloudApigeeV1SharedFlowRevision"
44810	//   },
44811	//   "scopes": [
44812	//     "https://www.googleapis.com/auth/cloud-platform"
44813	//   ]
44814	// }
44815
44816}
44817
44818// method id "apigee.organizations.sharedflows.revisions.get":
44819
44820type OrganizationsSharedflowsRevisionsGetCall struct {
44821	s            *Service
44822	name         string
44823	urlParams_   gensupport.URLParams
44824	ifNoneMatch_ string
44825	ctx_         context.Context
44826	header_      http.Header
44827}
44828
44829// Get: Gets a revision of a shared flow. To download the shared flow
44830// configuration bundle for the specified revision as a zip file, set
44831// the `format` query parameter to `bundle`. If you are using curl,
44832// specify `-o filename.zip` to save the output to a file; otherwise, it
44833// displays to `stdout`. Then, develop the shared flow configuration
44834// locally and upload the updated sharedFlow configuration revision, as
44835// described in updateSharedFlowRevision (updateSharedFlowRevision).
44836//
44837// - name: The name of the shared flow revision to get. Must be of the
44838//   form:
44839//   `organizations/{organization_id}/sharedflows/{shared_flow_id}/revisi
44840//   ons/{revision_id}`.
44841func (r *OrganizationsSharedflowsRevisionsService) Get(name string) *OrganizationsSharedflowsRevisionsGetCall {
44842	c := &OrganizationsSharedflowsRevisionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44843	c.name = name
44844	return c
44845}
44846
44847// Format sets the optional parameter "format": Specify `bundle` to
44848// export the contents of the shared flow bundle. Otherwise, the bundle
44849// metadata is returned.
44850func (c *OrganizationsSharedflowsRevisionsGetCall) Format(format string) *OrganizationsSharedflowsRevisionsGetCall {
44851	c.urlParams_.Set("format", format)
44852	return c
44853}
44854
44855// Fields allows partial responses to be retrieved. See
44856// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
44857// for more information.
44858func (c *OrganizationsSharedflowsRevisionsGetCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsRevisionsGetCall {
44859	c.urlParams_.Set("fields", googleapi.CombineFields(s))
44860	return c
44861}
44862
44863// IfNoneMatch sets the optional parameter which makes the operation
44864// fail if the object's ETag matches the given value. This is useful for
44865// getting updates only after the object has changed since the last
44866// request. Use googleapi.IsNotModified to check whether the response
44867// error from Do is the result of In-None-Match.
44868func (c *OrganizationsSharedflowsRevisionsGetCall) IfNoneMatch(entityTag string) *OrganizationsSharedflowsRevisionsGetCall {
44869	c.ifNoneMatch_ = entityTag
44870	return c
44871}
44872
44873// Context sets the context to be used in this call's Do method. Any
44874// pending HTTP request will be aborted if the provided context is
44875// canceled.
44876func (c *OrganizationsSharedflowsRevisionsGetCall) Context(ctx context.Context) *OrganizationsSharedflowsRevisionsGetCall {
44877	c.ctx_ = ctx
44878	return c
44879}
44880
44881// Header returns an http.Header that can be modified by the caller to
44882// add HTTP headers to the request.
44883func (c *OrganizationsSharedflowsRevisionsGetCall) Header() http.Header {
44884	if c.header_ == nil {
44885		c.header_ = make(http.Header)
44886	}
44887	return c.header_
44888}
44889
44890func (c *OrganizationsSharedflowsRevisionsGetCall) doRequest(alt string) (*http.Response, error) {
44891	reqHeaders := make(http.Header)
44892	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
44893	for k, v := range c.header_ {
44894		reqHeaders[k] = v
44895	}
44896	reqHeaders.Set("User-Agent", c.s.userAgent())
44897	if c.ifNoneMatch_ != "" {
44898		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
44899	}
44900	var body io.Reader = nil
44901	c.urlParams_.Set("alt", alt)
44902	c.urlParams_.Set("prettyPrint", "false")
44903	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
44904	urls += "?" + c.urlParams_.Encode()
44905	req, err := http.NewRequest("GET", urls, body)
44906	if err != nil {
44907		return nil, err
44908	}
44909	req.Header = reqHeaders
44910	googleapi.Expand(req.URL, map[string]string{
44911		"name": c.name,
44912	})
44913	return gensupport.SendRequest(c.ctx_, c.s.client, req)
44914}
44915
44916// Do executes the "apigee.organizations.sharedflows.revisions.get" call.
44917// Exactly one of *GoogleApiHttpBody or error will be non-nil. Any
44918// non-2xx status code is an error. Response headers are in either
44919// *GoogleApiHttpBody.ServerResponse.Header or (if a response was
44920// returned at all) in error.(*googleapi.Error).Header. Use
44921// googleapi.IsNotModified to check whether the returned error was
44922// because http.StatusNotModified was returned.
44923func (c *OrganizationsSharedflowsRevisionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
44924	gensupport.SetOptions(c.urlParams_, opts...)
44925	res, err := c.doRequest("json")
44926	if res != nil && res.StatusCode == http.StatusNotModified {
44927		if res.Body != nil {
44928			res.Body.Close()
44929		}
44930		return nil, &googleapi.Error{
44931			Code:   res.StatusCode,
44932			Header: res.Header,
44933		}
44934	}
44935	if err != nil {
44936		return nil, err
44937	}
44938	defer googleapi.CloseBody(res)
44939	if err := googleapi.CheckResponse(res); err != nil {
44940		return nil, err
44941	}
44942	ret := &GoogleApiHttpBody{
44943		ServerResponse: googleapi.ServerResponse{
44944			Header:         res.Header,
44945			HTTPStatusCode: res.StatusCode,
44946		},
44947	}
44948	target := &ret
44949	if err := gensupport.DecodeResponse(target, res); err != nil {
44950		return nil, err
44951	}
44952	return ret, nil
44953	// {
44954	//   "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).",
44955	//   "flatPath": "v1/organizations/{organizationsId}/sharedflows/{sharedflowsId}/revisions/{revisionsId}",
44956	//   "httpMethod": "GET",
44957	//   "id": "apigee.organizations.sharedflows.revisions.get",
44958	//   "parameterOrder": [
44959	//     "name"
44960	//   ],
44961	//   "parameters": {
44962	//     "format": {
44963	//       "description": "Specify `bundle` to export the contents of the shared flow bundle. Otherwise, the bundle metadata is returned.",
44964	//       "location": "query",
44965	//       "type": "string"
44966	//     },
44967	//     "name": {
44968	//       "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}`",
44969	//       "location": "path",
44970	//       "pattern": "^organizations/[^/]+/sharedflows/[^/]+/revisions/[^/]+$",
44971	//       "required": true,
44972	//       "type": "string"
44973	//     }
44974	//   },
44975	//   "path": "v1/{+name}",
44976	//   "response": {
44977	//     "$ref": "GoogleApiHttpBody"
44978	//   },
44979	//   "scopes": [
44980	//     "https://www.googleapis.com/auth/cloud-platform"
44981	//   ]
44982	// }
44983
44984}
44985
44986// method id "apigee.organizations.sharedflows.revisions.updateSharedFlowRevision":
44987
44988type OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall struct {
44989	s                 *Service
44990	name              string
44991	googleapihttpbody *GoogleApiHttpBody
44992	urlParams_        gensupport.URLParams
44993	ctx_              context.Context
44994	header_           http.Header
44995}
44996
44997// UpdateSharedFlowRevision: Updates a shared flow revision. This
44998// operation is only allowed on revisions which have never been
44999// deployed. After deployment a revision becomes immutable, even if it
45000// becomes undeployed. The payload is a ZIP-formatted shared flow.
45001// Content type must be either multipart/form-data or
45002// application/octet-stream.
45003//
45004// - name: The name of the shared flow revision to update. Must be of
45005//   the form:
45006//   `organizations/{organization_id}/sharedflows/{shared_flow_id}/revisi
45007//   ons/{revision_id}`.
45008func (r *OrganizationsSharedflowsRevisionsService) UpdateSharedFlowRevision(name string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall {
45009	c := &OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall{s: r.s, urlParams_: make(gensupport.URLParams)}
45010	c.name = name
45011	c.googleapihttpbody = googleapihttpbody
45012	return c
45013}
45014
45015// Validate sets the optional parameter "validate": Ignored. All uploads
45016// are validated regardless of the value of this field. It is kept for
45017// compatibility with existing APIs. Must be `true` or `false` if
45018// provided.
45019func (c *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall) Validate(validate bool) *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall {
45020	c.urlParams_.Set("validate", fmt.Sprint(validate))
45021	return c
45022}
45023
45024// Fields allows partial responses to be retrieved. See
45025// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
45026// for more information.
45027func (c *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall {
45028	c.urlParams_.Set("fields", googleapi.CombineFields(s))
45029	return c
45030}
45031
45032// Context sets the context to be used in this call's Do method. Any
45033// pending HTTP request will be aborted if the provided context is
45034// canceled.
45035func (c *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall) Context(ctx context.Context) *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall {
45036	c.ctx_ = ctx
45037	return c
45038}
45039
45040// Header returns an http.Header that can be modified by the caller to
45041// add HTTP headers to the request.
45042func (c *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall) Header() http.Header {
45043	if c.header_ == nil {
45044		c.header_ = make(http.Header)
45045	}
45046	return c.header_
45047}
45048
45049func (c *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall) doRequest(alt string) (*http.Response, error) {
45050	reqHeaders := make(http.Header)
45051	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
45052	for k, v := range c.header_ {
45053		reqHeaders[k] = v
45054	}
45055	reqHeaders.Set("User-Agent", c.s.userAgent())
45056	var body io.Reader = nil
45057	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
45058	if err != nil {
45059		return nil, err
45060	}
45061	reqHeaders.Set("Content-Type", "application/json")
45062	c.urlParams_.Set("alt", alt)
45063	c.urlParams_.Set("prettyPrint", "false")
45064	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
45065	urls += "?" + c.urlParams_.Encode()
45066	req, err := http.NewRequest("POST", urls, body)
45067	if err != nil {
45068		return nil, err
45069	}
45070	req.Header = reqHeaders
45071	googleapi.Expand(req.URL, map[string]string{
45072		"name": c.name,
45073	})
45074	return gensupport.SendRequest(c.ctx_, c.s.client, req)
45075}
45076
45077// Do executes the "apigee.organizations.sharedflows.revisions.updateSharedFlowRevision" call.
45078// Exactly one of *GoogleCloudApigeeV1SharedFlowRevision or error will
45079// be non-nil. Any non-2xx status code is an error. Response headers are
45080// in either
45081// *GoogleCloudApigeeV1SharedFlowRevision.ServerResponse.Header or (if a
45082// response was returned at all) in error.(*googleapi.Error).Header. Use
45083// googleapi.IsNotModified to check whether the returned error was
45084// because http.StatusNotModified was returned.
45085func (c *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SharedFlowRevision, error) {
45086	gensupport.SetOptions(c.urlParams_, opts...)
45087	res, err := c.doRequest("json")
45088	if res != nil && res.StatusCode == http.StatusNotModified {
45089		if res.Body != nil {
45090			res.Body.Close()
45091		}
45092		return nil, &googleapi.Error{
45093			Code:   res.StatusCode,
45094			Header: res.Header,
45095		}
45096	}
45097	if err != nil {
45098		return nil, err
45099	}
45100	defer googleapi.CloseBody(res)
45101	if err := googleapi.CheckResponse(res); err != nil {
45102		return nil, err
45103	}
45104	ret := &GoogleCloudApigeeV1SharedFlowRevision{
45105		ServerResponse: googleapi.ServerResponse{
45106			Header:         res.Header,
45107			HTTPStatusCode: res.StatusCode,
45108		},
45109	}
45110	target := &ret
45111	if err := gensupport.DecodeResponse(target, res); err != nil {
45112		return nil, err
45113	}
45114	return ret, nil
45115	// {
45116	//   "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.",
45117	//   "flatPath": "v1/organizations/{organizationsId}/sharedflows/{sharedflowsId}/revisions/{revisionsId}",
45118	//   "httpMethod": "POST",
45119	//   "id": "apigee.organizations.sharedflows.revisions.updateSharedFlowRevision",
45120	//   "parameterOrder": [
45121	//     "name"
45122	//   ],
45123	//   "parameters": {
45124	//     "name": {
45125	//       "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}`",
45126	//       "location": "path",
45127	//       "pattern": "^organizations/[^/]+/sharedflows/[^/]+/revisions/[^/]+$",
45128	//       "required": true,
45129	//       "type": "string"
45130	//     },
45131	//     "validate": {
45132	//       "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.",
45133	//       "location": "query",
45134	//       "type": "boolean"
45135	//     }
45136	//   },
45137	//   "path": "v1/{+name}",
45138	//   "request": {
45139	//     "$ref": "GoogleApiHttpBody"
45140	//   },
45141	//   "response": {
45142	//     "$ref": "GoogleCloudApigeeV1SharedFlowRevision"
45143	//   },
45144	//   "scopes": [
45145	//     "https://www.googleapis.com/auth/cloud-platform"
45146	//   ]
45147	// }
45148
45149}
45150
45151// method id "apigee.organizations.sharedflows.revisions.deployments.list":
45152
45153type OrganizationsSharedflowsRevisionsDeploymentsListCall struct {
45154	s            *Service
45155	parent       string
45156	urlParams_   gensupport.URLParams
45157	ifNoneMatch_ string
45158	ctx_         context.Context
45159	header_      http.Header
45160}
45161
45162// List: Lists all deployments of a shared flow revision.
45163//
45164// - parent: Name of the API proxy revision for which to return
45165//   deployment information in the following format:
45166//   `organizations/{org}/sharedflows/{sharedflow}/revisions/{rev}`.
45167func (r *OrganizationsSharedflowsRevisionsDeploymentsService) List(parent string) *OrganizationsSharedflowsRevisionsDeploymentsListCall {
45168	c := &OrganizationsSharedflowsRevisionsDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
45169	c.parent = parent
45170	return c
45171}
45172
45173// Fields allows partial responses to be retrieved. See
45174// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
45175// for more information.
45176func (c *OrganizationsSharedflowsRevisionsDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsRevisionsDeploymentsListCall {
45177	c.urlParams_.Set("fields", googleapi.CombineFields(s))
45178	return c
45179}
45180
45181// IfNoneMatch sets the optional parameter which makes the operation
45182// fail if the object's ETag matches the given value. This is useful for
45183// getting updates only after the object has changed since the last
45184// request. Use googleapi.IsNotModified to check whether the response
45185// error from Do is the result of In-None-Match.
45186func (c *OrganizationsSharedflowsRevisionsDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsSharedflowsRevisionsDeploymentsListCall {
45187	c.ifNoneMatch_ = entityTag
45188	return c
45189}
45190
45191// Context sets the context to be used in this call's Do method. Any
45192// pending HTTP request will be aborted if the provided context is
45193// canceled.
45194func (c *OrganizationsSharedflowsRevisionsDeploymentsListCall) Context(ctx context.Context) *OrganizationsSharedflowsRevisionsDeploymentsListCall {
45195	c.ctx_ = ctx
45196	return c
45197}
45198
45199// Header returns an http.Header that can be modified by the caller to
45200// add HTTP headers to the request.
45201func (c *OrganizationsSharedflowsRevisionsDeploymentsListCall) Header() http.Header {
45202	if c.header_ == nil {
45203		c.header_ = make(http.Header)
45204	}
45205	return c.header_
45206}
45207
45208func (c *OrganizationsSharedflowsRevisionsDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
45209	reqHeaders := make(http.Header)
45210	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
45211	for k, v := range c.header_ {
45212		reqHeaders[k] = v
45213	}
45214	reqHeaders.Set("User-Agent", c.s.userAgent())
45215	if c.ifNoneMatch_ != "" {
45216		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
45217	}
45218	var body io.Reader = nil
45219	c.urlParams_.Set("alt", alt)
45220	c.urlParams_.Set("prettyPrint", "false")
45221	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
45222	urls += "?" + c.urlParams_.Encode()
45223	req, err := http.NewRequest("GET", urls, body)
45224	if err != nil {
45225		return nil, err
45226	}
45227	req.Header = reqHeaders
45228	googleapi.Expand(req.URL, map[string]string{
45229		"parent": c.parent,
45230	})
45231	return gensupport.SendRequest(c.ctx_, c.s.client, req)
45232}
45233
45234// Do executes the "apigee.organizations.sharedflows.revisions.deployments.list" call.
45235// Exactly one of *GoogleCloudApigeeV1ListDeploymentsResponse or error
45236// will be non-nil. Any non-2xx status code is an error. Response
45237// headers are in either
45238// *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or
45239// (if a response was returned at all) in
45240// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
45241// whether the returned error was because http.StatusNotModified was
45242// returned.
45243func (c *OrganizationsSharedflowsRevisionsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
45244	gensupport.SetOptions(c.urlParams_, opts...)
45245	res, err := c.doRequest("json")
45246	if res != nil && res.StatusCode == http.StatusNotModified {
45247		if res.Body != nil {
45248			res.Body.Close()
45249		}
45250		return nil, &googleapi.Error{
45251			Code:   res.StatusCode,
45252			Header: res.Header,
45253		}
45254	}
45255	if err != nil {
45256		return nil, err
45257	}
45258	defer googleapi.CloseBody(res)
45259	if err := googleapi.CheckResponse(res); err != nil {
45260		return nil, err
45261	}
45262	ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
45263		ServerResponse: googleapi.ServerResponse{
45264			Header:         res.Header,
45265			HTTPStatusCode: res.StatusCode,
45266		},
45267	}
45268	target := &ret
45269	if err := gensupport.DecodeResponse(target, res); err != nil {
45270		return nil, err
45271	}
45272	return ret, nil
45273	// {
45274	//   "description": "Lists all deployments of a shared flow revision.",
45275	//   "flatPath": "v1/organizations/{organizationsId}/sharedflows/{sharedflowsId}/revisions/{revisionsId}/deployments",
45276	//   "httpMethod": "GET",
45277	//   "id": "apigee.organizations.sharedflows.revisions.deployments.list",
45278	//   "parameterOrder": [
45279	//     "parent"
45280	//   ],
45281	//   "parameters": {
45282	//     "parent": {
45283	//       "description": "Required. Name of the API proxy revision for which to return deployment information in the following format: `organizations/{org}/sharedflows/{sharedflow}/revisions/{rev}`.",
45284	//       "location": "path",
45285	//       "pattern": "^organizations/[^/]+/sharedflows/[^/]+/revisions/[^/]+$",
45286	//       "required": true,
45287	//       "type": "string"
45288	//     }
45289	//   },
45290	//   "path": "v1/{+parent}/deployments",
45291	//   "response": {
45292	//     "$ref": "GoogleCloudApigeeV1ListDeploymentsResponse"
45293	//   },
45294	//   "scopes": [
45295	//     "https://www.googleapis.com/auth/cloud-platform"
45296	//   ]
45297	// }
45298
45299}
45300
45301// method id "apigee.organizations.sites.apicategories.create":
45302
45303type OrganizationsSitesApicategoriesCreateCall struct {
45304	s                                  *Service
45305	parent                             string
45306	googlecloudapigeev1apicategorydata *GoogleCloudApigeeV1ApiCategoryData
45307	urlParams_                         gensupport.URLParams
45308	ctx_                               context.Context
45309	header_                            http.Header
45310}
45311
45312// Create: Creates a new category on the portal.
45313//
45314// - parent: Name of the portal. Use the following structure in your
45315//   request: `organizations/{org}/sites/{site}`.
45316func (r *OrganizationsSitesApicategoriesService) Create(parent string, googlecloudapigeev1apicategorydata *GoogleCloudApigeeV1ApiCategoryData) *OrganizationsSitesApicategoriesCreateCall {
45317	c := &OrganizationsSitesApicategoriesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
45318	c.parent = parent
45319	c.googlecloudapigeev1apicategorydata = googlecloudapigeev1apicategorydata
45320	return c
45321}
45322
45323// Fields allows partial responses to be retrieved. See
45324// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
45325// for more information.
45326func (c *OrganizationsSitesApicategoriesCreateCall) Fields(s ...googleapi.Field) *OrganizationsSitesApicategoriesCreateCall {
45327	c.urlParams_.Set("fields", googleapi.CombineFields(s))
45328	return c
45329}
45330
45331// Context sets the context to be used in this call's Do method. Any
45332// pending HTTP request will be aborted if the provided context is
45333// canceled.
45334func (c *OrganizationsSitesApicategoriesCreateCall) Context(ctx context.Context) *OrganizationsSitesApicategoriesCreateCall {
45335	c.ctx_ = ctx
45336	return c
45337}
45338
45339// Header returns an http.Header that can be modified by the caller to
45340// add HTTP headers to the request.
45341func (c *OrganizationsSitesApicategoriesCreateCall) Header() http.Header {
45342	if c.header_ == nil {
45343		c.header_ = make(http.Header)
45344	}
45345	return c.header_
45346}
45347
45348func (c *OrganizationsSitesApicategoriesCreateCall) doRequest(alt string) (*http.Response, error) {
45349	reqHeaders := make(http.Header)
45350	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
45351	for k, v := range c.header_ {
45352		reqHeaders[k] = v
45353	}
45354	reqHeaders.Set("User-Agent", c.s.userAgent())
45355	var body io.Reader = nil
45356	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1apicategorydata)
45357	if err != nil {
45358		return nil, err
45359	}
45360	reqHeaders.Set("Content-Type", "application/json")
45361	c.urlParams_.Set("alt", alt)
45362	c.urlParams_.Set("prettyPrint", "false")
45363	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apicategories")
45364	urls += "?" + c.urlParams_.Encode()
45365	req, err := http.NewRequest("POST", urls, body)
45366	if err != nil {
45367		return nil, err
45368	}
45369	req.Header = reqHeaders
45370	googleapi.Expand(req.URL, map[string]string{
45371		"parent": c.parent,
45372	})
45373	return gensupport.SendRequest(c.ctx_, c.s.client, req)
45374}
45375
45376// Do executes the "apigee.organizations.sites.apicategories.create" call.
45377// Exactly one of *GoogleCloudApigeeV1ApiCategory or error will be
45378// non-nil. Any non-2xx status code is an error. Response headers are in
45379// either *GoogleCloudApigeeV1ApiCategory.ServerResponse.Header or (if a
45380// response was returned at all) in error.(*googleapi.Error).Header. Use
45381// googleapi.IsNotModified to check whether the returned error was
45382// because http.StatusNotModified was returned.
45383func (c *OrganizationsSitesApicategoriesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiCategory, error) {
45384	gensupport.SetOptions(c.urlParams_, opts...)
45385	res, err := c.doRequest("json")
45386	if res != nil && res.StatusCode == http.StatusNotModified {
45387		if res.Body != nil {
45388			res.Body.Close()
45389		}
45390		return nil, &googleapi.Error{
45391			Code:   res.StatusCode,
45392			Header: res.Header,
45393		}
45394	}
45395	if err != nil {
45396		return nil, err
45397	}
45398	defer googleapi.CloseBody(res)
45399	if err := googleapi.CheckResponse(res); err != nil {
45400		return nil, err
45401	}
45402	ret := &GoogleCloudApigeeV1ApiCategory{
45403		ServerResponse: googleapi.ServerResponse{
45404			Header:         res.Header,
45405			HTTPStatusCode: res.StatusCode,
45406		},
45407	}
45408	target := &ret
45409	if err := gensupport.DecodeResponse(target, res); err != nil {
45410		return nil, err
45411	}
45412	return ret, nil
45413	// {
45414	//   "description": "Creates a new category on the portal.",
45415	//   "flatPath": "v1/organizations/{organizationsId}/sites/{sitesId}/apicategories",
45416	//   "httpMethod": "POST",
45417	//   "id": "apigee.organizations.sites.apicategories.create",
45418	//   "parameterOrder": [
45419	//     "parent"
45420	//   ],
45421	//   "parameters": {
45422	//     "parent": {
45423	//       "description": "Required. Name of the portal. Use the following structure in your request: `organizations/{org}/sites/{site}`",
45424	//       "location": "path",
45425	//       "pattern": "^organizations/[^/]+/sites/[^/]+$",
45426	//       "required": true,
45427	//       "type": "string"
45428	//     }
45429	//   },
45430	//   "path": "v1/{+parent}/apicategories",
45431	//   "request": {
45432	//     "$ref": "GoogleCloudApigeeV1ApiCategoryData"
45433	//   },
45434	//   "response": {
45435	//     "$ref": "GoogleCloudApigeeV1ApiCategory"
45436	//   },
45437	//   "scopes": [
45438	//     "https://www.googleapis.com/auth/cloud-platform"
45439	//   ]
45440	// }
45441
45442}
45443
45444// method id "apigee.organizations.sites.apicategories.delete":
45445
45446type OrganizationsSitesApicategoriesDeleteCall struct {
45447	s          *Service
45448	name       string
45449	urlParams_ gensupport.URLParams
45450	ctx_       context.Context
45451	header_    http.Header
45452}
45453
45454// Delete: Deletes a category from the portal.
45455//
45456// - name: Name of the category. Use the following structure in your
45457//   request:
45458//   `organizations/{org}/sites/{site}/apicategories/{apicategory}`.
45459func (r *OrganizationsSitesApicategoriesService) Delete(name string) *OrganizationsSitesApicategoriesDeleteCall {
45460	c := &OrganizationsSitesApicategoriesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
45461	c.name = name
45462	return c
45463}
45464
45465// Fields allows partial responses to be retrieved. See
45466// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
45467// for more information.
45468func (c *OrganizationsSitesApicategoriesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsSitesApicategoriesDeleteCall {
45469	c.urlParams_.Set("fields", googleapi.CombineFields(s))
45470	return c
45471}
45472
45473// Context sets the context to be used in this call's Do method. Any
45474// pending HTTP request will be aborted if the provided context is
45475// canceled.
45476func (c *OrganizationsSitesApicategoriesDeleteCall) Context(ctx context.Context) *OrganizationsSitesApicategoriesDeleteCall {
45477	c.ctx_ = ctx
45478	return c
45479}
45480
45481// Header returns an http.Header that can be modified by the caller to
45482// add HTTP headers to the request.
45483func (c *OrganizationsSitesApicategoriesDeleteCall) Header() http.Header {
45484	if c.header_ == nil {
45485		c.header_ = make(http.Header)
45486	}
45487	return c.header_
45488}
45489
45490func (c *OrganizationsSitesApicategoriesDeleteCall) doRequest(alt string) (*http.Response, error) {
45491	reqHeaders := make(http.Header)
45492	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
45493	for k, v := range c.header_ {
45494		reqHeaders[k] = v
45495	}
45496	reqHeaders.Set("User-Agent", c.s.userAgent())
45497	var body io.Reader = nil
45498	c.urlParams_.Set("alt", alt)
45499	c.urlParams_.Set("prettyPrint", "false")
45500	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
45501	urls += "?" + c.urlParams_.Encode()
45502	req, err := http.NewRequest("DELETE", urls, body)
45503	if err != nil {
45504		return nil, err
45505	}
45506	req.Header = reqHeaders
45507	googleapi.Expand(req.URL, map[string]string{
45508		"name": c.name,
45509	})
45510	return gensupport.SendRequest(c.ctx_, c.s.client, req)
45511}
45512
45513// Do executes the "apigee.organizations.sites.apicategories.delete" call.
45514// Exactly one of *GoogleCloudApigeeV1ApiResponseWrapper or error will
45515// be non-nil. Any non-2xx status code is an error. Response headers are
45516// in either
45517// *GoogleCloudApigeeV1ApiResponseWrapper.ServerResponse.Header or (if a
45518// response was returned at all) in error.(*googleapi.Error).Header. Use
45519// googleapi.IsNotModified to check whether the returned error was
45520// because http.StatusNotModified was returned.
45521func (c *OrganizationsSitesApicategoriesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiResponseWrapper, error) {
45522	gensupport.SetOptions(c.urlParams_, opts...)
45523	res, err := c.doRequest("json")
45524	if res != nil && res.StatusCode == http.StatusNotModified {
45525		if res.Body != nil {
45526			res.Body.Close()
45527		}
45528		return nil, &googleapi.Error{
45529			Code:   res.StatusCode,
45530			Header: res.Header,
45531		}
45532	}
45533	if err != nil {
45534		return nil, err
45535	}
45536	defer googleapi.CloseBody(res)
45537	if err := googleapi.CheckResponse(res); err != nil {
45538		return nil, err
45539	}
45540	ret := &GoogleCloudApigeeV1ApiResponseWrapper{
45541		ServerResponse: googleapi.ServerResponse{
45542			Header:         res.Header,
45543			HTTPStatusCode: res.StatusCode,
45544		},
45545	}
45546	target := &ret
45547	if err := gensupport.DecodeResponse(target, res); err != nil {
45548		return nil, err
45549	}
45550	return ret, nil
45551	// {
45552	//   "description": "Deletes a category from the portal.",
45553	//   "flatPath": "v1/organizations/{organizationsId}/sites/{sitesId}/apicategories/{apicategoriesId}",
45554	//   "httpMethod": "DELETE",
45555	//   "id": "apigee.organizations.sites.apicategories.delete",
45556	//   "parameterOrder": [
45557	//     "name"
45558	//   ],
45559	//   "parameters": {
45560	//     "name": {
45561	//       "description": "Required. Name of the category. Use the following structure in your request: `organizations/{org}/sites/{site}/apicategories/{apicategory}`",
45562	//       "location": "path",
45563	//       "pattern": "^organizations/[^/]+/sites/[^/]+/apicategories/[^/]+$",
45564	//       "required": true,
45565	//       "type": "string"
45566	//     }
45567	//   },
45568	//   "path": "v1/{+name}",
45569	//   "response": {
45570	//     "$ref": "GoogleCloudApigeeV1ApiResponseWrapper"
45571	//   },
45572	//   "scopes": [
45573	//     "https://www.googleapis.com/auth/cloud-platform"
45574	//   ]
45575	// }
45576
45577}
45578
45579// method id "apigee.organizations.sites.apicategories.get":
45580
45581type OrganizationsSitesApicategoriesGetCall struct {
45582	s            *Service
45583	name         string
45584	urlParams_   gensupport.URLParams
45585	ifNoneMatch_ string
45586	ctx_         context.Context
45587	header_      http.Header
45588}
45589
45590// Get: Gets a category on the portal.
45591//
45592// - name: Name of the category. Use the following structure in your
45593//   request:
45594//   `organizations/{org}/sites/{site}/apicategories/{apicategory}`.
45595func (r *OrganizationsSitesApicategoriesService) Get(name string) *OrganizationsSitesApicategoriesGetCall {
45596	c := &OrganizationsSitesApicategoriesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
45597	c.name = name
45598	return c
45599}
45600
45601// Fields allows partial responses to be retrieved. See
45602// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
45603// for more information.
45604func (c *OrganizationsSitesApicategoriesGetCall) Fields(s ...googleapi.Field) *OrganizationsSitesApicategoriesGetCall {
45605	c.urlParams_.Set("fields", googleapi.CombineFields(s))
45606	return c
45607}
45608
45609// IfNoneMatch sets the optional parameter which makes the operation
45610// fail if the object's ETag matches the given value. This is useful for
45611// getting updates only after the object has changed since the last
45612// request. Use googleapi.IsNotModified to check whether the response
45613// error from Do is the result of In-None-Match.
45614func (c *OrganizationsSitesApicategoriesGetCall) IfNoneMatch(entityTag string) *OrganizationsSitesApicategoriesGetCall {
45615	c.ifNoneMatch_ = entityTag
45616	return c
45617}
45618
45619// Context sets the context to be used in this call's Do method. Any
45620// pending HTTP request will be aborted if the provided context is
45621// canceled.
45622func (c *OrganizationsSitesApicategoriesGetCall) Context(ctx context.Context) *OrganizationsSitesApicategoriesGetCall {
45623	c.ctx_ = ctx
45624	return c
45625}
45626
45627// Header returns an http.Header that can be modified by the caller to
45628// add HTTP headers to the request.
45629func (c *OrganizationsSitesApicategoriesGetCall) Header() http.Header {
45630	if c.header_ == nil {
45631		c.header_ = make(http.Header)
45632	}
45633	return c.header_
45634}
45635
45636func (c *OrganizationsSitesApicategoriesGetCall) doRequest(alt string) (*http.Response, error) {
45637	reqHeaders := make(http.Header)
45638	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
45639	for k, v := range c.header_ {
45640		reqHeaders[k] = v
45641	}
45642	reqHeaders.Set("User-Agent", c.s.userAgent())
45643	if c.ifNoneMatch_ != "" {
45644		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
45645	}
45646	var body io.Reader = nil
45647	c.urlParams_.Set("alt", alt)
45648	c.urlParams_.Set("prettyPrint", "false")
45649	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
45650	urls += "?" + c.urlParams_.Encode()
45651	req, err := http.NewRequest("GET", urls, body)
45652	if err != nil {
45653		return nil, err
45654	}
45655	req.Header = reqHeaders
45656	googleapi.Expand(req.URL, map[string]string{
45657		"name": c.name,
45658	})
45659	return gensupport.SendRequest(c.ctx_, c.s.client, req)
45660}
45661
45662// Do executes the "apigee.organizations.sites.apicategories.get" call.
45663// Exactly one of *GoogleCloudApigeeV1ApiCategory or error will be
45664// non-nil. Any non-2xx status code is an error. Response headers are in
45665// either *GoogleCloudApigeeV1ApiCategory.ServerResponse.Header or (if a
45666// response was returned at all) in error.(*googleapi.Error).Header. Use
45667// googleapi.IsNotModified to check whether the returned error was
45668// because http.StatusNotModified was returned.
45669func (c *OrganizationsSitesApicategoriesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiCategory, error) {
45670	gensupport.SetOptions(c.urlParams_, opts...)
45671	res, err := c.doRequest("json")
45672	if res != nil && res.StatusCode == http.StatusNotModified {
45673		if res.Body != nil {
45674			res.Body.Close()
45675		}
45676		return nil, &googleapi.Error{
45677			Code:   res.StatusCode,
45678			Header: res.Header,
45679		}
45680	}
45681	if err != nil {
45682		return nil, err
45683	}
45684	defer googleapi.CloseBody(res)
45685	if err := googleapi.CheckResponse(res); err != nil {
45686		return nil, err
45687	}
45688	ret := &GoogleCloudApigeeV1ApiCategory{
45689		ServerResponse: googleapi.ServerResponse{
45690			Header:         res.Header,
45691			HTTPStatusCode: res.StatusCode,
45692		},
45693	}
45694	target := &ret
45695	if err := gensupport.DecodeResponse(target, res); err != nil {
45696		return nil, err
45697	}
45698	return ret, nil
45699	// {
45700	//   "description": "Gets a category on the portal.",
45701	//   "flatPath": "v1/organizations/{organizationsId}/sites/{sitesId}/apicategories/{apicategoriesId}",
45702	//   "httpMethod": "GET",
45703	//   "id": "apigee.organizations.sites.apicategories.get",
45704	//   "parameterOrder": [
45705	//     "name"
45706	//   ],
45707	//   "parameters": {
45708	//     "name": {
45709	//       "description": "Required. Name of the category. Use the following structure in your request: `organizations/{org}/sites/{site}/apicategories/{apicategory}`",
45710	//       "location": "path",
45711	//       "pattern": "^organizations/[^/]+/sites/[^/]+/apicategories/[^/]+$",
45712	//       "required": true,
45713	//       "type": "string"
45714	//     }
45715	//   },
45716	//   "path": "v1/{+name}",
45717	//   "response": {
45718	//     "$ref": "GoogleCloudApigeeV1ApiCategory"
45719	//   },
45720	//   "scopes": [
45721	//     "https://www.googleapis.com/auth/cloud-platform"
45722	//   ]
45723	// }
45724
45725}
45726
45727// method id "apigee.organizations.sites.apicategories.list":
45728
45729type OrganizationsSitesApicategoriesListCall struct {
45730	s            *Service
45731	parent       string
45732	urlParams_   gensupport.URLParams
45733	ifNoneMatch_ string
45734	ctx_         context.Context
45735	header_      http.Header
45736}
45737
45738// List: Lists the categories on the portal.
45739//
45740// - parent: Name of the portal. Use the following structure in your
45741//   request: `organizations/{org}/sites/{site}`.
45742func (r *OrganizationsSitesApicategoriesService) List(parent string) *OrganizationsSitesApicategoriesListCall {
45743	c := &OrganizationsSitesApicategoriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
45744	c.parent = parent
45745	return c
45746}
45747
45748// Fields allows partial responses to be retrieved. See
45749// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
45750// for more information.
45751func (c *OrganizationsSitesApicategoriesListCall) Fields(s ...googleapi.Field) *OrganizationsSitesApicategoriesListCall {
45752	c.urlParams_.Set("fields", googleapi.CombineFields(s))
45753	return c
45754}
45755
45756// IfNoneMatch sets the optional parameter which makes the operation
45757// fail if the object's ETag matches the given value. This is useful for
45758// getting updates only after the object has changed since the last
45759// request. Use googleapi.IsNotModified to check whether the response
45760// error from Do is the result of In-None-Match.
45761func (c *OrganizationsSitesApicategoriesListCall) IfNoneMatch(entityTag string) *OrganizationsSitesApicategoriesListCall {
45762	c.ifNoneMatch_ = entityTag
45763	return c
45764}
45765
45766// Context sets the context to be used in this call's Do method. Any
45767// pending HTTP request will be aborted if the provided context is
45768// canceled.
45769func (c *OrganizationsSitesApicategoriesListCall) Context(ctx context.Context) *OrganizationsSitesApicategoriesListCall {
45770	c.ctx_ = ctx
45771	return c
45772}
45773
45774// Header returns an http.Header that can be modified by the caller to
45775// add HTTP headers to the request.
45776func (c *OrganizationsSitesApicategoriesListCall) Header() http.Header {
45777	if c.header_ == nil {
45778		c.header_ = make(http.Header)
45779	}
45780	return c.header_
45781}
45782
45783func (c *OrganizationsSitesApicategoriesListCall) doRequest(alt string) (*http.Response, error) {
45784	reqHeaders := make(http.Header)
45785	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
45786	for k, v := range c.header_ {
45787		reqHeaders[k] = v
45788	}
45789	reqHeaders.Set("User-Agent", c.s.userAgent())
45790	if c.ifNoneMatch_ != "" {
45791		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
45792	}
45793	var body io.Reader = nil
45794	c.urlParams_.Set("alt", alt)
45795	c.urlParams_.Set("prettyPrint", "false")
45796	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apicategories")
45797	urls += "?" + c.urlParams_.Encode()
45798	req, err := http.NewRequest("GET", urls, body)
45799	if err != nil {
45800		return nil, err
45801	}
45802	req.Header = reqHeaders
45803	googleapi.Expand(req.URL, map[string]string{
45804		"parent": c.parent,
45805	})
45806	return gensupport.SendRequest(c.ctx_, c.s.client, req)
45807}
45808
45809// Do executes the "apigee.organizations.sites.apicategories.list" call.
45810// Exactly one of *GoogleCloudApigeeV1ListApiCategoriesResponse or error
45811// will be non-nil. Any non-2xx status code is an error. Response
45812// headers are in either
45813// *GoogleCloudApigeeV1ListApiCategoriesResponse.ServerResponse.Header
45814// or (if a response was returned at all) in
45815// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
45816// whether the returned error was because http.StatusNotModified was
45817// returned.
45818func (c *OrganizationsSitesApicategoriesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListApiCategoriesResponse, error) {
45819	gensupport.SetOptions(c.urlParams_, opts...)
45820	res, err := c.doRequest("json")
45821	if res != nil && res.StatusCode == http.StatusNotModified {
45822		if res.Body != nil {
45823			res.Body.Close()
45824		}
45825		return nil, &googleapi.Error{
45826			Code:   res.StatusCode,
45827			Header: res.Header,
45828		}
45829	}
45830	if err != nil {
45831		return nil, err
45832	}
45833	defer googleapi.CloseBody(res)
45834	if err := googleapi.CheckResponse(res); err != nil {
45835		return nil, err
45836	}
45837	ret := &GoogleCloudApigeeV1ListApiCategoriesResponse{
45838		ServerResponse: googleapi.ServerResponse{
45839			Header:         res.Header,
45840			HTTPStatusCode: res.StatusCode,
45841		},
45842	}
45843	target := &ret
45844	if err := gensupport.DecodeResponse(target, res); err != nil {
45845		return nil, err
45846	}
45847	return ret, nil
45848	// {
45849	//   "description": "Lists the categories on the portal.",
45850	//   "flatPath": "v1/organizations/{organizationsId}/sites/{sitesId}/apicategories",
45851	//   "httpMethod": "GET",
45852	//   "id": "apigee.organizations.sites.apicategories.list",
45853	//   "parameterOrder": [
45854	//     "parent"
45855	//   ],
45856	//   "parameters": {
45857	//     "parent": {
45858	//       "description": "Required. Name of the portal. Use the following structure in your request: `organizations/{org}/sites/{site}`",
45859	//       "location": "path",
45860	//       "pattern": "^organizations/[^/]+/sites/[^/]+$",
45861	//       "required": true,
45862	//       "type": "string"
45863	//     }
45864	//   },
45865	//   "path": "v1/{+parent}/apicategories",
45866	//   "response": {
45867	//     "$ref": "GoogleCloudApigeeV1ListApiCategoriesResponse"
45868	//   },
45869	//   "scopes": [
45870	//     "https://www.googleapis.com/auth/cloud-platform"
45871	//   ]
45872	// }
45873
45874}
45875
45876// method id "apigee.organizations.sites.apicategories.patch":
45877
45878type OrganizationsSitesApicategoriesPatchCall struct {
45879	s                                  *Service
45880	name                               string
45881	googlecloudapigeev1apicategorydata *GoogleCloudApigeeV1ApiCategoryData
45882	urlParams_                         gensupport.URLParams
45883	ctx_                               context.Context
45884	header_                            http.Header
45885}
45886
45887// Patch: Updates a category on the portal.
45888//
45889// - name: Name of the category. Use the following structure in your
45890//   request:
45891//   `organizations/{org}/sites/{site}/apicategories/{apicategory}`.
45892func (r *OrganizationsSitesApicategoriesService) Patch(name string, googlecloudapigeev1apicategorydata *GoogleCloudApigeeV1ApiCategoryData) *OrganizationsSitesApicategoriesPatchCall {
45893	c := &OrganizationsSitesApicategoriesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
45894	c.name = name
45895	c.googlecloudapigeev1apicategorydata = googlecloudapigeev1apicategorydata
45896	return c
45897}
45898
45899// Fields allows partial responses to be retrieved. See
45900// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
45901// for more information.
45902func (c *OrganizationsSitesApicategoriesPatchCall) Fields(s ...googleapi.Field) *OrganizationsSitesApicategoriesPatchCall {
45903	c.urlParams_.Set("fields", googleapi.CombineFields(s))
45904	return c
45905}
45906
45907// Context sets the context to be used in this call's Do method. Any
45908// pending HTTP request will be aborted if the provided context is
45909// canceled.
45910func (c *OrganizationsSitesApicategoriesPatchCall) Context(ctx context.Context) *OrganizationsSitesApicategoriesPatchCall {
45911	c.ctx_ = ctx
45912	return c
45913}
45914
45915// Header returns an http.Header that can be modified by the caller to
45916// add HTTP headers to the request.
45917func (c *OrganizationsSitesApicategoriesPatchCall) Header() http.Header {
45918	if c.header_ == nil {
45919		c.header_ = make(http.Header)
45920	}
45921	return c.header_
45922}
45923
45924func (c *OrganizationsSitesApicategoriesPatchCall) doRequest(alt string) (*http.Response, error) {
45925	reqHeaders := make(http.Header)
45926	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
45927	for k, v := range c.header_ {
45928		reqHeaders[k] = v
45929	}
45930	reqHeaders.Set("User-Agent", c.s.userAgent())
45931	var body io.Reader = nil
45932	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1apicategorydata)
45933	if err != nil {
45934		return nil, err
45935	}
45936	reqHeaders.Set("Content-Type", "application/json")
45937	c.urlParams_.Set("alt", alt)
45938	c.urlParams_.Set("prettyPrint", "false")
45939	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
45940	urls += "?" + c.urlParams_.Encode()
45941	req, err := http.NewRequest("PATCH", urls, body)
45942	if err != nil {
45943		return nil, err
45944	}
45945	req.Header = reqHeaders
45946	googleapi.Expand(req.URL, map[string]string{
45947		"name": c.name,
45948	})
45949	return gensupport.SendRequest(c.ctx_, c.s.client, req)
45950}
45951
45952// Do executes the "apigee.organizations.sites.apicategories.patch" call.
45953// Exactly one of *GoogleCloudApigeeV1ApiCategory or error will be
45954// non-nil. Any non-2xx status code is an error. Response headers are in
45955// either *GoogleCloudApigeeV1ApiCategory.ServerResponse.Header or (if a
45956// response was returned at all) in error.(*googleapi.Error).Header. Use
45957// googleapi.IsNotModified to check whether the returned error was
45958// because http.StatusNotModified was returned.
45959func (c *OrganizationsSitesApicategoriesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiCategory, error) {
45960	gensupport.SetOptions(c.urlParams_, opts...)
45961	res, err := c.doRequest("json")
45962	if res != nil && res.StatusCode == http.StatusNotModified {
45963		if res.Body != nil {
45964			res.Body.Close()
45965		}
45966		return nil, &googleapi.Error{
45967			Code:   res.StatusCode,
45968			Header: res.Header,
45969		}
45970	}
45971	if err != nil {
45972		return nil, err
45973	}
45974	defer googleapi.CloseBody(res)
45975	if err := googleapi.CheckResponse(res); err != nil {
45976		return nil, err
45977	}
45978	ret := &GoogleCloudApigeeV1ApiCategory{
45979		ServerResponse: googleapi.ServerResponse{
45980			Header:         res.Header,
45981			HTTPStatusCode: res.StatusCode,
45982		},
45983	}
45984	target := &ret
45985	if err := gensupport.DecodeResponse(target, res); err != nil {
45986		return nil, err
45987	}
45988	return ret, nil
45989	// {
45990	//   "description": "Updates a category on the portal.",
45991	//   "flatPath": "v1/organizations/{organizationsId}/sites/{sitesId}/apicategories/{apicategoriesId}",
45992	//   "httpMethod": "PATCH",
45993	//   "id": "apigee.organizations.sites.apicategories.patch",
45994	//   "parameterOrder": [
45995	//     "name"
45996	//   ],
45997	//   "parameters": {
45998	//     "name": {
45999	//       "description": "Required. Name of the category. Use the following structure in your request: `organizations/{org}/sites/{site}/apicategories/{apicategory}`",
46000	//       "location": "path",
46001	//       "pattern": "^organizations/[^/]+/sites/[^/]+/apicategories/[^/]+$",
46002	//       "required": true,
46003	//       "type": "string"
46004	//     }
46005	//   },
46006	//   "path": "v1/{+name}",
46007	//   "request": {
46008	//     "$ref": "GoogleCloudApigeeV1ApiCategoryData"
46009	//   },
46010	//   "response": {
46011	//     "$ref": "GoogleCloudApigeeV1ApiCategory"
46012	//   },
46013	//   "scopes": [
46014	//     "https://www.googleapis.com/auth/cloud-platform"
46015	//   ]
46016	// }
46017
46018}
46019
46020// method id "apigee.projects.provisionOrganization":
46021
46022type ProjectsProvisionOrganizationCall struct {
46023	s                                               *Service
46024	project                                         string
46025	googlecloudapigeev1provisionorganizationrequest *GoogleCloudApigeeV1ProvisionOrganizationRequest
46026	urlParams_                                      gensupport.URLParams
46027	ctx_                                            context.Context
46028	header_                                         http.Header
46029}
46030
46031// ProvisionOrganization: Provisions a new Apigee organization with a
46032// functioning runtime. This is the standard way to create trial
46033// organizations for a free Apigee trial.
46034//
46035// - project: Name of the GCP project with which to associate the Apigee
46036//   organization.
46037func (r *ProjectsService) ProvisionOrganization(project string, googlecloudapigeev1provisionorganizationrequest *GoogleCloudApigeeV1ProvisionOrganizationRequest) *ProjectsProvisionOrganizationCall {
46038	c := &ProjectsProvisionOrganizationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
46039	c.project = project
46040	c.googlecloudapigeev1provisionorganizationrequest = googlecloudapigeev1provisionorganizationrequest
46041	return c
46042}
46043
46044// Fields allows partial responses to be retrieved. See
46045// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
46046// for more information.
46047func (c *ProjectsProvisionOrganizationCall) Fields(s ...googleapi.Field) *ProjectsProvisionOrganizationCall {
46048	c.urlParams_.Set("fields", googleapi.CombineFields(s))
46049	return c
46050}
46051
46052// Context sets the context to be used in this call's Do method. Any
46053// pending HTTP request will be aborted if the provided context is
46054// canceled.
46055func (c *ProjectsProvisionOrganizationCall) Context(ctx context.Context) *ProjectsProvisionOrganizationCall {
46056	c.ctx_ = ctx
46057	return c
46058}
46059
46060// Header returns an http.Header that can be modified by the caller to
46061// add HTTP headers to the request.
46062func (c *ProjectsProvisionOrganizationCall) Header() http.Header {
46063	if c.header_ == nil {
46064		c.header_ = make(http.Header)
46065	}
46066	return c.header_
46067}
46068
46069func (c *ProjectsProvisionOrganizationCall) doRequest(alt string) (*http.Response, error) {
46070	reqHeaders := make(http.Header)
46071	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210915")
46072	for k, v := range c.header_ {
46073		reqHeaders[k] = v
46074	}
46075	reqHeaders.Set("User-Agent", c.s.userAgent())
46076	var body io.Reader = nil
46077	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1provisionorganizationrequest)
46078	if err != nil {
46079		return nil, err
46080	}
46081	reqHeaders.Set("Content-Type", "application/json")
46082	c.urlParams_.Set("alt", alt)
46083	c.urlParams_.Set("prettyPrint", "false")
46084	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+project}:provisionOrganization")
46085	urls += "?" + c.urlParams_.Encode()
46086	req, err := http.NewRequest("POST", urls, body)
46087	if err != nil {
46088		return nil, err
46089	}
46090	req.Header = reqHeaders
46091	googleapi.Expand(req.URL, map[string]string{
46092		"project": c.project,
46093	})
46094	return gensupport.SendRequest(c.ctx_, c.s.client, req)
46095}
46096
46097// Do executes the "apigee.projects.provisionOrganization" call.
46098// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
46099// Any non-2xx status code is an error. Response headers are in either
46100// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
46101// was returned at all) in error.(*googleapi.Error).Header. Use
46102// googleapi.IsNotModified to check whether the returned error was
46103// because http.StatusNotModified was returned.
46104func (c *ProjectsProvisionOrganizationCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
46105	gensupport.SetOptions(c.urlParams_, opts...)
46106	res, err := c.doRequest("json")
46107	if res != nil && res.StatusCode == http.StatusNotModified {
46108		if res.Body != nil {
46109			res.Body.Close()
46110		}
46111		return nil, &googleapi.Error{
46112			Code:   res.StatusCode,
46113			Header: res.Header,
46114		}
46115	}
46116	if err != nil {
46117		return nil, err
46118	}
46119	defer googleapi.CloseBody(res)
46120	if err := googleapi.CheckResponse(res); err != nil {
46121		return nil, err
46122	}
46123	ret := &GoogleLongrunningOperation{
46124		ServerResponse: googleapi.ServerResponse{
46125			Header:         res.Header,
46126			HTTPStatusCode: res.StatusCode,
46127		},
46128	}
46129	target := &ret
46130	if err := gensupport.DecodeResponse(target, res); err != nil {
46131		return nil, err
46132	}
46133	return ret, nil
46134	// {
46135	//   "description": "Provisions a new Apigee organization with a functioning runtime. This is the standard way to create trial organizations for a free Apigee trial.",
46136	//   "flatPath": "v1/projects/{projectsId}:provisionOrganization",
46137	//   "httpMethod": "POST",
46138	//   "id": "apigee.projects.provisionOrganization",
46139	//   "parameterOrder": [
46140	//     "project"
46141	//   ],
46142	//   "parameters": {
46143	//     "project": {
46144	//       "description": "Required. Name of the GCP project with which to associate the Apigee organization.",
46145	//       "location": "path",
46146	//       "pattern": "^projects/[^/]+$",
46147	//       "required": true,
46148	//       "type": "string"
46149	//     }
46150	//   },
46151	//   "path": "v1/{+project}:provisionOrganization",
46152	//   "request": {
46153	//     "$ref": "GoogleCloudApigeeV1ProvisionOrganizationRequest"
46154	//   },
46155	//   "response": {
46156	//     "$ref": "GoogleLongrunningOperation"
46157	//   },
46158	//   "scopes": [
46159	//     "https://www.googleapis.com/auth/cloud-platform"
46160	//   ]
46161	// }
46162
46163}
46164