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 Platform data
83	CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
84)
85
86// NewService creates a new Service.
87func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
88	scopesOption := option.WithScopes(
89		"https://www.googleapis.com/auth/cloud-platform",
90	)
91	// NOTE: prepend, so we don't override user-specified scopes.
92	opts = append([]option.ClientOption{scopesOption}, opts...)
93	opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
94	opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath))
95	client, endpoint, err := htransport.NewClient(ctx, opts...)
96	if err != nil {
97		return nil, err
98	}
99	s, err := New(client)
100	if err != nil {
101		return nil, err
102	}
103	if endpoint != "" {
104		s.BasePath = endpoint
105	}
106	return s, nil
107}
108
109// New creates a new Service. It uses the provided http.Client for requests.
110//
111// Deprecated: please use NewService instead.
112// To provide a custom HTTP client, use option.WithHTTPClient.
113// If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
114func New(client *http.Client) (*Service, error) {
115	if client == nil {
116		return nil, errors.New("client is nil")
117	}
118	s := &Service{client: client, BasePath: basePath}
119	s.Hybrid = NewHybridService(s)
120	s.Organizations = NewOrganizationsService(s)
121	s.Projects = NewProjectsService(s)
122	return s, nil
123}
124
125type Service struct {
126	client    *http.Client
127	BasePath  string // API endpoint base URL
128	UserAgent string // optional additional User-Agent fragment
129
130	Hybrid *HybridService
131
132	Organizations *OrganizationsService
133
134	Projects *ProjectsService
135}
136
137func (s *Service) userAgent() string {
138	if s.UserAgent == "" {
139		return googleapi.UserAgent
140	}
141	return googleapi.UserAgent + " " + s.UserAgent
142}
143
144func NewHybridService(s *Service) *HybridService {
145	rs := &HybridService{s: s}
146	rs.Issuers = NewHybridIssuersService(s)
147	return rs
148}
149
150type HybridService struct {
151	s *Service
152
153	Issuers *HybridIssuersService
154}
155
156func NewHybridIssuersService(s *Service) *HybridIssuersService {
157	rs := &HybridIssuersService{s: s}
158	return rs
159}
160
161type HybridIssuersService struct {
162	s *Service
163}
164
165func NewOrganizationsService(s *Service) *OrganizationsService {
166	rs := &OrganizationsService{s: s}
167	rs.Analytics = NewOrganizationsAnalyticsService(s)
168	rs.Apiproducts = NewOrganizationsApiproductsService(s)
169	rs.Apis = NewOrganizationsApisService(s)
170	rs.Apps = NewOrganizationsAppsService(s)
171	rs.Datacollectors = NewOrganizationsDatacollectorsService(s)
172	rs.Deployments = NewOrganizationsDeploymentsService(s)
173	rs.Developers = NewOrganizationsDevelopersService(s)
174	rs.Envgroups = NewOrganizationsEnvgroupsService(s)
175	rs.Environments = NewOrganizationsEnvironmentsService(s)
176	rs.HostQueries = NewOrganizationsHostQueriesService(s)
177	rs.HostStats = NewOrganizationsHostStatsService(s)
178	rs.Instances = NewOrganizationsInstancesService(s)
179	rs.Keyvaluemaps = NewOrganizationsKeyvaluemapsService(s)
180	rs.Operations = NewOrganizationsOperationsService(s)
181	rs.OptimizedHostStats = NewOrganizationsOptimizedHostStatsService(s)
182	rs.Reports = NewOrganizationsReportsService(s)
183	rs.Sharedflows = NewOrganizationsSharedflowsService(s)
184	rs.Sites = NewOrganizationsSitesService(s)
185	return rs
186}
187
188type OrganizationsService struct {
189	s *Service
190
191	Analytics *OrganizationsAnalyticsService
192
193	Apiproducts *OrganizationsApiproductsService
194
195	Apis *OrganizationsApisService
196
197	Apps *OrganizationsAppsService
198
199	Datacollectors *OrganizationsDatacollectorsService
200
201	Deployments *OrganizationsDeploymentsService
202
203	Developers *OrganizationsDevelopersService
204
205	Envgroups *OrganizationsEnvgroupsService
206
207	Environments *OrganizationsEnvironmentsService
208
209	HostQueries *OrganizationsHostQueriesService
210
211	HostStats *OrganizationsHostStatsService
212
213	Instances *OrganizationsInstancesService
214
215	Keyvaluemaps *OrganizationsKeyvaluemapsService
216
217	Operations *OrganizationsOperationsService
218
219	OptimizedHostStats *OrganizationsOptimizedHostStatsService
220
221	Reports *OrganizationsReportsService
222
223	Sharedflows *OrganizationsSharedflowsService
224
225	Sites *OrganizationsSitesService
226}
227
228func NewOrganizationsAnalyticsService(s *Service) *OrganizationsAnalyticsService {
229	rs := &OrganizationsAnalyticsService{s: s}
230	rs.Datastores = NewOrganizationsAnalyticsDatastoresService(s)
231	return rs
232}
233
234type OrganizationsAnalyticsService struct {
235	s *Service
236
237	Datastores *OrganizationsAnalyticsDatastoresService
238}
239
240func NewOrganizationsAnalyticsDatastoresService(s *Service) *OrganizationsAnalyticsDatastoresService {
241	rs := &OrganizationsAnalyticsDatastoresService{s: s}
242	return rs
243}
244
245type OrganizationsAnalyticsDatastoresService struct {
246	s *Service
247}
248
249func NewOrganizationsApiproductsService(s *Service) *OrganizationsApiproductsService {
250	rs := &OrganizationsApiproductsService{s: s}
251	rs.Attributes_ = NewOrganizationsApiproductsAttributesService(s)
252	rs.Rateplans = NewOrganizationsApiproductsRateplansService(s)
253	return rs
254}
255
256type OrganizationsApiproductsService struct {
257	s *Service
258
259	Attributes_ *OrganizationsApiproductsAttributesService
260
261	Rateplans *OrganizationsApiproductsRateplansService
262}
263
264func NewOrganizationsApiproductsAttributesService(s *Service) *OrganizationsApiproductsAttributesService {
265	rs := &OrganizationsApiproductsAttributesService{s: s}
266	return rs
267}
268
269type OrganizationsApiproductsAttributesService struct {
270	s *Service
271}
272
273func NewOrganizationsApiproductsRateplansService(s *Service) *OrganizationsApiproductsRateplansService {
274	rs := &OrganizationsApiproductsRateplansService{s: s}
275	return rs
276}
277
278type OrganizationsApiproductsRateplansService struct {
279	s *Service
280}
281
282func NewOrganizationsApisService(s *Service) *OrganizationsApisService {
283	rs := &OrganizationsApisService{s: s}
284	rs.Deployments = NewOrganizationsApisDeploymentsService(s)
285	rs.Keyvaluemaps = NewOrganizationsApisKeyvaluemapsService(s)
286	rs.Revisions = NewOrganizationsApisRevisionsService(s)
287	return rs
288}
289
290type OrganizationsApisService struct {
291	s *Service
292
293	Deployments *OrganizationsApisDeploymentsService
294
295	Keyvaluemaps *OrganizationsApisKeyvaluemapsService
296
297	Revisions *OrganizationsApisRevisionsService
298}
299
300func NewOrganizationsApisDeploymentsService(s *Service) *OrganizationsApisDeploymentsService {
301	rs := &OrganizationsApisDeploymentsService{s: s}
302	return rs
303}
304
305type OrganizationsApisDeploymentsService struct {
306	s *Service
307}
308
309func NewOrganizationsApisKeyvaluemapsService(s *Service) *OrganizationsApisKeyvaluemapsService {
310	rs := &OrganizationsApisKeyvaluemapsService{s: s}
311	return rs
312}
313
314type OrganizationsApisKeyvaluemapsService struct {
315	s *Service
316}
317
318func NewOrganizationsApisRevisionsService(s *Service) *OrganizationsApisRevisionsService {
319	rs := &OrganizationsApisRevisionsService{s: s}
320	rs.Deployments = NewOrganizationsApisRevisionsDeploymentsService(s)
321	return rs
322}
323
324type OrganizationsApisRevisionsService struct {
325	s *Service
326
327	Deployments *OrganizationsApisRevisionsDeploymentsService
328}
329
330func NewOrganizationsApisRevisionsDeploymentsService(s *Service) *OrganizationsApisRevisionsDeploymentsService {
331	rs := &OrganizationsApisRevisionsDeploymentsService{s: s}
332	return rs
333}
334
335type OrganizationsApisRevisionsDeploymentsService struct {
336	s *Service
337}
338
339func NewOrganizationsAppsService(s *Service) *OrganizationsAppsService {
340	rs := &OrganizationsAppsService{s: s}
341	return rs
342}
343
344type OrganizationsAppsService struct {
345	s *Service
346}
347
348func NewOrganizationsDatacollectorsService(s *Service) *OrganizationsDatacollectorsService {
349	rs := &OrganizationsDatacollectorsService{s: s}
350	return rs
351}
352
353type OrganizationsDatacollectorsService struct {
354	s *Service
355}
356
357func NewOrganizationsDeploymentsService(s *Service) *OrganizationsDeploymentsService {
358	rs := &OrganizationsDeploymentsService{s: s}
359	return rs
360}
361
362type OrganizationsDeploymentsService struct {
363	s *Service
364}
365
366func NewOrganizationsDevelopersService(s *Service) *OrganizationsDevelopersService {
367	rs := &OrganizationsDevelopersService{s: s}
368	rs.Apps = NewOrganizationsDevelopersAppsService(s)
369	rs.Attributes_ = NewOrganizationsDevelopersAttributesService(s)
370	rs.Subscriptions = NewOrganizationsDevelopersSubscriptionsService(s)
371	return rs
372}
373
374type OrganizationsDevelopersService struct {
375	s *Service
376
377	Apps *OrganizationsDevelopersAppsService
378
379	Attributes_ *OrganizationsDevelopersAttributesService
380
381	Subscriptions *OrganizationsDevelopersSubscriptionsService
382}
383
384func NewOrganizationsDevelopersAppsService(s *Service) *OrganizationsDevelopersAppsService {
385	rs := &OrganizationsDevelopersAppsService{s: s}
386	rs.Attributes_ = NewOrganizationsDevelopersAppsAttributesService(s)
387	rs.Keys = NewOrganizationsDevelopersAppsKeysService(s)
388	return rs
389}
390
391type OrganizationsDevelopersAppsService struct {
392	s *Service
393
394	Attributes_ *OrganizationsDevelopersAppsAttributesService
395
396	Keys *OrganizationsDevelopersAppsKeysService
397}
398
399func NewOrganizationsDevelopersAppsAttributesService(s *Service) *OrganizationsDevelopersAppsAttributesService {
400	rs := &OrganizationsDevelopersAppsAttributesService{s: s}
401	return rs
402}
403
404type OrganizationsDevelopersAppsAttributesService struct {
405	s *Service
406}
407
408func NewOrganizationsDevelopersAppsKeysService(s *Service) *OrganizationsDevelopersAppsKeysService {
409	rs := &OrganizationsDevelopersAppsKeysService{s: s}
410	rs.Apiproducts = NewOrganizationsDevelopersAppsKeysApiproductsService(s)
411	rs.Create_ = NewOrganizationsDevelopersAppsKeysCreateService(s)
412	return rs
413}
414
415type OrganizationsDevelopersAppsKeysService struct {
416	s *Service
417
418	Apiproducts *OrganizationsDevelopersAppsKeysApiproductsService
419
420	Create_ *OrganizationsDevelopersAppsKeysCreateService
421}
422
423func NewOrganizationsDevelopersAppsKeysApiproductsService(s *Service) *OrganizationsDevelopersAppsKeysApiproductsService {
424	rs := &OrganizationsDevelopersAppsKeysApiproductsService{s: s}
425	return rs
426}
427
428type OrganizationsDevelopersAppsKeysApiproductsService struct {
429	s *Service
430}
431
432func NewOrganizationsDevelopersAppsKeysCreateService(s *Service) *OrganizationsDevelopersAppsKeysCreateService {
433	rs := &OrganizationsDevelopersAppsKeysCreateService{s: s}
434	return rs
435}
436
437type OrganizationsDevelopersAppsKeysCreateService struct {
438	s *Service
439}
440
441func NewOrganizationsDevelopersAttributesService(s *Service) *OrganizationsDevelopersAttributesService {
442	rs := &OrganizationsDevelopersAttributesService{s: s}
443	return rs
444}
445
446type OrganizationsDevelopersAttributesService struct {
447	s *Service
448}
449
450func NewOrganizationsDevelopersSubscriptionsService(s *Service) *OrganizationsDevelopersSubscriptionsService {
451	rs := &OrganizationsDevelopersSubscriptionsService{s: s}
452	return rs
453}
454
455type OrganizationsDevelopersSubscriptionsService struct {
456	s *Service
457}
458
459func NewOrganizationsEnvgroupsService(s *Service) *OrganizationsEnvgroupsService {
460	rs := &OrganizationsEnvgroupsService{s: s}
461	rs.Attachments = NewOrganizationsEnvgroupsAttachmentsService(s)
462	return rs
463}
464
465type OrganizationsEnvgroupsService struct {
466	s *Service
467
468	Attachments *OrganizationsEnvgroupsAttachmentsService
469}
470
471func NewOrganizationsEnvgroupsAttachmentsService(s *Service) *OrganizationsEnvgroupsAttachmentsService {
472	rs := &OrganizationsEnvgroupsAttachmentsService{s: s}
473	return rs
474}
475
476type OrganizationsEnvgroupsAttachmentsService struct {
477	s *Service
478}
479
480func NewOrganizationsEnvironmentsService(s *Service) *OrganizationsEnvironmentsService {
481	rs := &OrganizationsEnvironmentsService{s: s}
482	rs.Analytics = NewOrganizationsEnvironmentsAnalyticsService(s)
483	rs.Apis = NewOrganizationsEnvironmentsApisService(s)
484	rs.Caches = NewOrganizationsEnvironmentsCachesService(s)
485	rs.Deployments = NewOrganizationsEnvironmentsDeploymentsService(s)
486	rs.Flowhooks = NewOrganizationsEnvironmentsFlowhooksService(s)
487	rs.Keystores = NewOrganizationsEnvironmentsKeystoresService(s)
488	rs.Keyvaluemaps = NewOrganizationsEnvironmentsKeyvaluemapsService(s)
489	rs.OptimizedStats = NewOrganizationsEnvironmentsOptimizedStatsService(s)
490	rs.Queries = NewOrganizationsEnvironmentsQueriesService(s)
491	rs.References = NewOrganizationsEnvironmentsReferencesService(s)
492	rs.Resourcefiles = NewOrganizationsEnvironmentsResourcefilesService(s)
493	rs.Sharedflows = NewOrganizationsEnvironmentsSharedflowsService(s)
494	rs.Stats = NewOrganizationsEnvironmentsStatsService(s)
495	rs.Targetservers = NewOrganizationsEnvironmentsTargetserversService(s)
496	rs.TraceConfig = NewOrganizationsEnvironmentsTraceConfigService(s)
497	return rs
498}
499
500type OrganizationsEnvironmentsService struct {
501	s *Service
502
503	Analytics *OrganizationsEnvironmentsAnalyticsService
504
505	Apis *OrganizationsEnvironmentsApisService
506
507	Caches *OrganizationsEnvironmentsCachesService
508
509	Deployments *OrganizationsEnvironmentsDeploymentsService
510
511	Flowhooks *OrganizationsEnvironmentsFlowhooksService
512
513	Keystores *OrganizationsEnvironmentsKeystoresService
514
515	Keyvaluemaps *OrganizationsEnvironmentsKeyvaluemapsService
516
517	OptimizedStats *OrganizationsEnvironmentsOptimizedStatsService
518
519	Queries *OrganizationsEnvironmentsQueriesService
520
521	References *OrganizationsEnvironmentsReferencesService
522
523	Resourcefiles *OrganizationsEnvironmentsResourcefilesService
524
525	Sharedflows *OrganizationsEnvironmentsSharedflowsService
526
527	Stats *OrganizationsEnvironmentsStatsService
528
529	Targetservers *OrganizationsEnvironmentsTargetserversService
530
531	TraceConfig *OrganizationsEnvironmentsTraceConfigService
532}
533
534func NewOrganizationsEnvironmentsAnalyticsService(s *Service) *OrganizationsEnvironmentsAnalyticsService {
535	rs := &OrganizationsEnvironmentsAnalyticsService{s: s}
536	rs.Admin = NewOrganizationsEnvironmentsAnalyticsAdminService(s)
537	rs.Exports = NewOrganizationsEnvironmentsAnalyticsExportsService(s)
538	return rs
539}
540
541type OrganizationsEnvironmentsAnalyticsService struct {
542	s *Service
543
544	Admin *OrganizationsEnvironmentsAnalyticsAdminService
545
546	Exports *OrganizationsEnvironmentsAnalyticsExportsService
547}
548
549func NewOrganizationsEnvironmentsAnalyticsAdminService(s *Service) *OrganizationsEnvironmentsAnalyticsAdminService {
550	rs := &OrganizationsEnvironmentsAnalyticsAdminService{s: s}
551	return rs
552}
553
554type OrganizationsEnvironmentsAnalyticsAdminService struct {
555	s *Service
556}
557
558func NewOrganizationsEnvironmentsAnalyticsExportsService(s *Service) *OrganizationsEnvironmentsAnalyticsExportsService {
559	rs := &OrganizationsEnvironmentsAnalyticsExportsService{s: s}
560	return rs
561}
562
563type OrganizationsEnvironmentsAnalyticsExportsService struct {
564	s *Service
565}
566
567func NewOrganizationsEnvironmentsApisService(s *Service) *OrganizationsEnvironmentsApisService {
568	rs := &OrganizationsEnvironmentsApisService{s: s}
569	rs.Deployments = NewOrganizationsEnvironmentsApisDeploymentsService(s)
570	rs.Revisions = NewOrganizationsEnvironmentsApisRevisionsService(s)
571	return rs
572}
573
574type OrganizationsEnvironmentsApisService struct {
575	s *Service
576
577	Deployments *OrganizationsEnvironmentsApisDeploymentsService
578
579	Revisions *OrganizationsEnvironmentsApisRevisionsService
580}
581
582func NewOrganizationsEnvironmentsApisDeploymentsService(s *Service) *OrganizationsEnvironmentsApisDeploymentsService {
583	rs := &OrganizationsEnvironmentsApisDeploymentsService{s: s}
584	return rs
585}
586
587type OrganizationsEnvironmentsApisDeploymentsService struct {
588	s *Service
589}
590
591func NewOrganizationsEnvironmentsApisRevisionsService(s *Service) *OrganizationsEnvironmentsApisRevisionsService {
592	rs := &OrganizationsEnvironmentsApisRevisionsService{s: s}
593	rs.Debugsessions = NewOrganizationsEnvironmentsApisRevisionsDebugsessionsService(s)
594	rs.Deployments = NewOrganizationsEnvironmentsApisRevisionsDeploymentsService(s)
595	return rs
596}
597
598type OrganizationsEnvironmentsApisRevisionsService struct {
599	s *Service
600
601	Debugsessions *OrganizationsEnvironmentsApisRevisionsDebugsessionsService
602
603	Deployments *OrganizationsEnvironmentsApisRevisionsDeploymentsService
604}
605
606func NewOrganizationsEnvironmentsApisRevisionsDebugsessionsService(s *Service) *OrganizationsEnvironmentsApisRevisionsDebugsessionsService {
607	rs := &OrganizationsEnvironmentsApisRevisionsDebugsessionsService{s: s}
608	rs.Data = NewOrganizationsEnvironmentsApisRevisionsDebugsessionsDataService(s)
609	return rs
610}
611
612type OrganizationsEnvironmentsApisRevisionsDebugsessionsService struct {
613	s *Service
614
615	Data *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataService
616}
617
618func NewOrganizationsEnvironmentsApisRevisionsDebugsessionsDataService(s *Service) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataService {
619	rs := &OrganizationsEnvironmentsApisRevisionsDebugsessionsDataService{s: s}
620	return rs
621}
622
623type OrganizationsEnvironmentsApisRevisionsDebugsessionsDataService struct {
624	s *Service
625}
626
627func NewOrganizationsEnvironmentsApisRevisionsDeploymentsService(s *Service) *OrganizationsEnvironmentsApisRevisionsDeploymentsService {
628	rs := &OrganizationsEnvironmentsApisRevisionsDeploymentsService{s: s}
629	return rs
630}
631
632type OrganizationsEnvironmentsApisRevisionsDeploymentsService struct {
633	s *Service
634}
635
636func NewOrganizationsEnvironmentsCachesService(s *Service) *OrganizationsEnvironmentsCachesService {
637	rs := &OrganizationsEnvironmentsCachesService{s: s}
638	return rs
639}
640
641type OrganizationsEnvironmentsCachesService struct {
642	s *Service
643}
644
645func NewOrganizationsEnvironmentsDeploymentsService(s *Service) *OrganizationsEnvironmentsDeploymentsService {
646	rs := &OrganizationsEnvironmentsDeploymentsService{s: s}
647	return rs
648}
649
650type OrganizationsEnvironmentsDeploymentsService struct {
651	s *Service
652}
653
654func NewOrganizationsEnvironmentsFlowhooksService(s *Service) *OrganizationsEnvironmentsFlowhooksService {
655	rs := &OrganizationsEnvironmentsFlowhooksService{s: s}
656	return rs
657}
658
659type OrganizationsEnvironmentsFlowhooksService struct {
660	s *Service
661}
662
663func NewOrganizationsEnvironmentsKeystoresService(s *Service) *OrganizationsEnvironmentsKeystoresService {
664	rs := &OrganizationsEnvironmentsKeystoresService{s: s}
665	rs.Aliases = NewOrganizationsEnvironmentsKeystoresAliasesService(s)
666	return rs
667}
668
669type OrganizationsEnvironmentsKeystoresService struct {
670	s *Service
671
672	Aliases *OrganizationsEnvironmentsKeystoresAliasesService
673}
674
675func NewOrganizationsEnvironmentsKeystoresAliasesService(s *Service) *OrganizationsEnvironmentsKeystoresAliasesService {
676	rs := &OrganizationsEnvironmentsKeystoresAliasesService{s: s}
677	return rs
678}
679
680type OrganizationsEnvironmentsKeystoresAliasesService struct {
681	s *Service
682}
683
684func NewOrganizationsEnvironmentsKeyvaluemapsService(s *Service) *OrganizationsEnvironmentsKeyvaluemapsService {
685	rs := &OrganizationsEnvironmentsKeyvaluemapsService{s: s}
686	return rs
687}
688
689type OrganizationsEnvironmentsKeyvaluemapsService struct {
690	s *Service
691}
692
693func NewOrganizationsEnvironmentsOptimizedStatsService(s *Service) *OrganizationsEnvironmentsOptimizedStatsService {
694	rs := &OrganizationsEnvironmentsOptimizedStatsService{s: s}
695	return rs
696}
697
698type OrganizationsEnvironmentsOptimizedStatsService struct {
699	s *Service
700}
701
702func NewOrganizationsEnvironmentsQueriesService(s *Service) *OrganizationsEnvironmentsQueriesService {
703	rs := &OrganizationsEnvironmentsQueriesService{s: s}
704	return rs
705}
706
707type OrganizationsEnvironmentsQueriesService struct {
708	s *Service
709}
710
711func NewOrganizationsEnvironmentsReferencesService(s *Service) *OrganizationsEnvironmentsReferencesService {
712	rs := &OrganizationsEnvironmentsReferencesService{s: s}
713	return rs
714}
715
716type OrganizationsEnvironmentsReferencesService struct {
717	s *Service
718}
719
720func NewOrganizationsEnvironmentsResourcefilesService(s *Service) *OrganizationsEnvironmentsResourcefilesService {
721	rs := &OrganizationsEnvironmentsResourcefilesService{s: s}
722	return rs
723}
724
725type OrganizationsEnvironmentsResourcefilesService struct {
726	s *Service
727}
728
729func NewOrganizationsEnvironmentsSharedflowsService(s *Service) *OrganizationsEnvironmentsSharedflowsService {
730	rs := &OrganizationsEnvironmentsSharedflowsService{s: s}
731	rs.Deployments = NewOrganizationsEnvironmentsSharedflowsDeploymentsService(s)
732	rs.Revisions = NewOrganizationsEnvironmentsSharedflowsRevisionsService(s)
733	return rs
734}
735
736type OrganizationsEnvironmentsSharedflowsService struct {
737	s *Service
738
739	Deployments *OrganizationsEnvironmentsSharedflowsDeploymentsService
740
741	Revisions *OrganizationsEnvironmentsSharedflowsRevisionsService
742}
743
744func NewOrganizationsEnvironmentsSharedflowsDeploymentsService(s *Service) *OrganizationsEnvironmentsSharedflowsDeploymentsService {
745	rs := &OrganizationsEnvironmentsSharedflowsDeploymentsService{s: s}
746	return rs
747}
748
749type OrganizationsEnvironmentsSharedflowsDeploymentsService struct {
750	s *Service
751}
752
753func NewOrganizationsEnvironmentsSharedflowsRevisionsService(s *Service) *OrganizationsEnvironmentsSharedflowsRevisionsService {
754	rs := &OrganizationsEnvironmentsSharedflowsRevisionsService{s: s}
755	return rs
756}
757
758type OrganizationsEnvironmentsSharedflowsRevisionsService struct {
759	s *Service
760}
761
762func NewOrganizationsEnvironmentsStatsService(s *Service) *OrganizationsEnvironmentsStatsService {
763	rs := &OrganizationsEnvironmentsStatsService{s: s}
764	return rs
765}
766
767type OrganizationsEnvironmentsStatsService struct {
768	s *Service
769}
770
771func NewOrganizationsEnvironmentsTargetserversService(s *Service) *OrganizationsEnvironmentsTargetserversService {
772	rs := &OrganizationsEnvironmentsTargetserversService{s: s}
773	return rs
774}
775
776type OrganizationsEnvironmentsTargetserversService struct {
777	s *Service
778}
779
780func NewOrganizationsEnvironmentsTraceConfigService(s *Service) *OrganizationsEnvironmentsTraceConfigService {
781	rs := &OrganizationsEnvironmentsTraceConfigService{s: s}
782	rs.Overrides = NewOrganizationsEnvironmentsTraceConfigOverridesService(s)
783	return rs
784}
785
786type OrganizationsEnvironmentsTraceConfigService struct {
787	s *Service
788
789	Overrides *OrganizationsEnvironmentsTraceConfigOverridesService
790}
791
792func NewOrganizationsEnvironmentsTraceConfigOverridesService(s *Service) *OrganizationsEnvironmentsTraceConfigOverridesService {
793	rs := &OrganizationsEnvironmentsTraceConfigOverridesService{s: s}
794	return rs
795}
796
797type OrganizationsEnvironmentsTraceConfigOverridesService struct {
798	s *Service
799}
800
801func NewOrganizationsHostQueriesService(s *Service) *OrganizationsHostQueriesService {
802	rs := &OrganizationsHostQueriesService{s: s}
803	return rs
804}
805
806type OrganizationsHostQueriesService struct {
807	s *Service
808}
809
810func NewOrganizationsHostStatsService(s *Service) *OrganizationsHostStatsService {
811	rs := &OrganizationsHostStatsService{s: s}
812	return rs
813}
814
815type OrganizationsHostStatsService struct {
816	s *Service
817}
818
819func NewOrganizationsInstancesService(s *Service) *OrganizationsInstancesService {
820	rs := &OrganizationsInstancesService{s: s}
821	rs.Attachments = NewOrganizationsInstancesAttachmentsService(s)
822	rs.Canaryevaluations = NewOrganizationsInstancesCanaryevaluationsService(s)
823	rs.NatAddresses = NewOrganizationsInstancesNatAddressesService(s)
824	return rs
825}
826
827type OrganizationsInstancesService struct {
828	s *Service
829
830	Attachments *OrganizationsInstancesAttachmentsService
831
832	Canaryevaluations *OrganizationsInstancesCanaryevaluationsService
833
834	NatAddresses *OrganizationsInstancesNatAddressesService
835}
836
837func NewOrganizationsInstancesAttachmentsService(s *Service) *OrganizationsInstancesAttachmentsService {
838	rs := &OrganizationsInstancesAttachmentsService{s: s}
839	return rs
840}
841
842type OrganizationsInstancesAttachmentsService struct {
843	s *Service
844}
845
846func NewOrganizationsInstancesCanaryevaluationsService(s *Service) *OrganizationsInstancesCanaryevaluationsService {
847	rs := &OrganizationsInstancesCanaryevaluationsService{s: s}
848	return rs
849}
850
851type OrganizationsInstancesCanaryevaluationsService struct {
852	s *Service
853}
854
855func NewOrganizationsInstancesNatAddressesService(s *Service) *OrganizationsInstancesNatAddressesService {
856	rs := &OrganizationsInstancesNatAddressesService{s: s}
857	return rs
858}
859
860type OrganizationsInstancesNatAddressesService struct {
861	s *Service
862}
863
864func NewOrganizationsKeyvaluemapsService(s *Service) *OrganizationsKeyvaluemapsService {
865	rs := &OrganizationsKeyvaluemapsService{s: s}
866	return rs
867}
868
869type OrganizationsKeyvaluemapsService struct {
870	s *Service
871}
872
873func NewOrganizationsOperationsService(s *Service) *OrganizationsOperationsService {
874	rs := &OrganizationsOperationsService{s: s}
875	return rs
876}
877
878type OrganizationsOperationsService struct {
879	s *Service
880}
881
882func NewOrganizationsOptimizedHostStatsService(s *Service) *OrganizationsOptimizedHostStatsService {
883	rs := &OrganizationsOptimizedHostStatsService{s: s}
884	return rs
885}
886
887type OrganizationsOptimizedHostStatsService struct {
888	s *Service
889}
890
891func NewOrganizationsReportsService(s *Service) *OrganizationsReportsService {
892	rs := &OrganizationsReportsService{s: s}
893	return rs
894}
895
896type OrganizationsReportsService struct {
897	s *Service
898}
899
900func NewOrganizationsSharedflowsService(s *Service) *OrganizationsSharedflowsService {
901	rs := &OrganizationsSharedflowsService{s: s}
902	rs.Deployments = NewOrganizationsSharedflowsDeploymentsService(s)
903	rs.Revisions = NewOrganizationsSharedflowsRevisionsService(s)
904	return rs
905}
906
907type OrganizationsSharedflowsService struct {
908	s *Service
909
910	Deployments *OrganizationsSharedflowsDeploymentsService
911
912	Revisions *OrganizationsSharedflowsRevisionsService
913}
914
915func NewOrganizationsSharedflowsDeploymentsService(s *Service) *OrganizationsSharedflowsDeploymentsService {
916	rs := &OrganizationsSharedflowsDeploymentsService{s: s}
917	return rs
918}
919
920type OrganizationsSharedflowsDeploymentsService struct {
921	s *Service
922}
923
924func NewOrganizationsSharedflowsRevisionsService(s *Service) *OrganizationsSharedflowsRevisionsService {
925	rs := &OrganizationsSharedflowsRevisionsService{s: s}
926	rs.Deployments = NewOrganizationsSharedflowsRevisionsDeploymentsService(s)
927	return rs
928}
929
930type OrganizationsSharedflowsRevisionsService struct {
931	s *Service
932
933	Deployments *OrganizationsSharedflowsRevisionsDeploymentsService
934}
935
936func NewOrganizationsSharedflowsRevisionsDeploymentsService(s *Service) *OrganizationsSharedflowsRevisionsDeploymentsService {
937	rs := &OrganizationsSharedflowsRevisionsDeploymentsService{s: s}
938	return rs
939}
940
941type OrganizationsSharedflowsRevisionsDeploymentsService struct {
942	s *Service
943}
944
945func NewOrganizationsSitesService(s *Service) *OrganizationsSitesService {
946	rs := &OrganizationsSitesService{s: s}
947	rs.Apicategories = NewOrganizationsSitesApicategoriesService(s)
948	return rs
949}
950
951type OrganizationsSitesService struct {
952	s *Service
953
954	Apicategories *OrganizationsSitesApicategoriesService
955}
956
957func NewOrganizationsSitesApicategoriesService(s *Service) *OrganizationsSitesApicategoriesService {
958	rs := &OrganizationsSitesApicategoriesService{s: s}
959	return rs
960}
961
962type OrganizationsSitesApicategoriesService struct {
963	s *Service
964}
965
966func NewProjectsService(s *Service) *ProjectsService {
967	rs := &ProjectsService{s: s}
968	return rs
969}
970
971type ProjectsService struct {
972	s *Service
973}
974
975// GoogleApiHttpBody: Message that represents an arbitrary HTTP body. It
976// should only be used for payload formats that can't be represented as
977// JSON, such as raw binary or an HTML page. This message can be used
978// both in streaming and non-streaming API methods in the request as
979// well as the response. It can be used as a top-level request field,
980// which is convenient if one wants to extract parameters from either
981// the URL or HTTP template into the request fields and also want access
982// to the raw HTTP body. Example: message GetResourceRequest { // A
983// unique request id. string request_id = 1; // The raw HTTP body is
984// bound to this field. google.api.HttpBody http_body = 2; } service
985// ResourceService { rpc GetResource(GetResourceRequest) returns
986// (google.api.HttpBody); rpc UpdateResource(google.api.HttpBody)
987// returns (google.protobuf.Empty); } Example with streaming methods:
988// service CaldavService { rpc GetCalendar(stream google.api.HttpBody)
989// returns (stream google.api.HttpBody); rpc UpdateCalendar(stream
990// google.api.HttpBody) returns (stream google.api.HttpBody); } Use of
991// this type only changes how the request and response bodies are
992// handled, all other features will continue to work unchanged.
993type GoogleApiHttpBody struct {
994	// ContentType: The HTTP Content-Type header value specifying the
995	// content type of the body.
996	ContentType string `json:"contentType,omitempty"`
997
998	// Data: The HTTP request/response body as raw binary.
999	Data string `json:"data,omitempty"`
1000
1001	// Extensions: Application specific response metadata. Must be set in
1002	// the first response for streaming APIs.
1003	Extensions []googleapi.RawMessage `json:"extensions,omitempty"`
1004
1005	// ServerResponse contains the HTTP response code and headers from the
1006	// server.
1007	googleapi.ServerResponse `json:"-"`
1008
1009	// ForceSendFields is a list of field names (e.g. "ContentType") to
1010	// unconditionally include in API requests. By default, fields with
1011	// empty values are omitted from API requests. However, any non-pointer,
1012	// non-interface field appearing in ForceSendFields will be sent to the
1013	// server regardless of whether the field is empty or not. This may be
1014	// used to include empty fields in Patch requests.
1015	ForceSendFields []string `json:"-"`
1016
1017	// NullFields is a list of field names (e.g. "ContentType") to include
1018	// in API requests with the JSON null value. By default, fields with
1019	// empty values are omitted from API requests. However, any field with
1020	// an empty value appearing in NullFields will be sent to the server as
1021	// null. It is an error if a field in this list has a non-empty value.
1022	// This may be used to include null fields in Patch requests.
1023	NullFields []string `json:"-"`
1024}
1025
1026func (s *GoogleApiHttpBody) MarshalJSON() ([]byte, error) {
1027	type NoMethod GoogleApiHttpBody
1028	raw := NoMethod(*s)
1029	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1030}
1031
1032type GoogleCloudApigeeV1Access struct {
1033	Get *GoogleCloudApigeeV1AccessGet `json:"Get,omitempty"`
1034
1035	Remove *GoogleCloudApigeeV1AccessRemove `json:"Remove,omitempty"`
1036
1037	Set *GoogleCloudApigeeV1AccessSet `json:"Set,omitempty"`
1038
1039	// ForceSendFields is a list of field names (e.g. "Get") to
1040	// unconditionally include in API requests. By default, fields with
1041	// empty values are omitted from API requests. However, any non-pointer,
1042	// non-interface field appearing in ForceSendFields will be sent to the
1043	// server regardless of whether the field is empty or not. This may be
1044	// used to include empty fields in Patch requests.
1045	ForceSendFields []string `json:"-"`
1046
1047	// NullFields is a list of field names (e.g. "Get") to include in API
1048	// requests with the JSON null value. By default, fields with empty
1049	// values are omitted from API requests. However, any field with an
1050	// empty value appearing in NullFields will be sent to the server as
1051	// null. It is an error if a field in this list has a non-empty value.
1052	// This may be used to include null fields in Patch requests.
1053	NullFields []string `json:"-"`
1054}
1055
1056func (s *GoogleCloudApigeeV1Access) MarshalJSON() ([]byte, error) {
1057	type NoMethod GoogleCloudApigeeV1Access
1058	raw := NoMethod(*s)
1059	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1060}
1061
1062// GoogleCloudApigeeV1AccessGet: Get action. For example, "Get" : {
1063// "name" : "target.name", "value" : "default" }
1064type GoogleCloudApigeeV1AccessGet struct {
1065	Name string `json:"name,omitempty"`
1066
1067	Value string `json:"value,omitempty"`
1068
1069	// ForceSendFields is a list of field names (e.g. "Name") to
1070	// unconditionally include in API requests. By default, fields with
1071	// empty values are omitted from API requests. However, any non-pointer,
1072	// non-interface field appearing in ForceSendFields will be sent to the
1073	// server regardless of whether the field is empty or not. This may be
1074	// used to include empty fields in Patch requests.
1075	ForceSendFields []string `json:"-"`
1076
1077	// NullFields is a list of field names (e.g. "Name") to include in API
1078	// requests with the JSON null value. By default, fields with empty
1079	// values are omitted from API requests. However, any field with an
1080	// empty value appearing in NullFields will be sent to the server as
1081	// null. It is an error if a field in this list has a non-empty value.
1082	// This may be used to include null fields in Patch requests.
1083	NullFields []string `json:"-"`
1084}
1085
1086func (s *GoogleCloudApigeeV1AccessGet) MarshalJSON() ([]byte, error) {
1087	type NoMethod GoogleCloudApigeeV1AccessGet
1088	raw := NoMethod(*s)
1089	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1090}
1091
1092// GoogleCloudApigeeV1AccessRemove: Remove action. For example, "Remove"
1093// : { "name" : "target.name", "success" : true }
1094type GoogleCloudApigeeV1AccessRemove struct {
1095	Name string `json:"name,omitempty"`
1096
1097	Success bool `json:"success,omitempty"`
1098
1099	// ForceSendFields is a list of field names (e.g. "Name") to
1100	// unconditionally include in API requests. By default, fields with
1101	// empty values are omitted from API requests. However, any non-pointer,
1102	// non-interface field appearing in ForceSendFields will be sent to the
1103	// server regardless of whether the field is empty or not. This may be
1104	// used to include empty fields in Patch requests.
1105	ForceSendFields []string `json:"-"`
1106
1107	// NullFields is a list of field names (e.g. "Name") to include in API
1108	// requests with the JSON null value. By default, fields with empty
1109	// values are omitted from API requests. However, any field with an
1110	// empty value appearing in NullFields will be sent to the server as
1111	// null. It is an error if a field in this list has a non-empty value.
1112	// This may be used to include null fields in Patch requests.
1113	NullFields []string `json:"-"`
1114}
1115
1116func (s *GoogleCloudApigeeV1AccessRemove) MarshalJSON() ([]byte, error) {
1117	type NoMethod GoogleCloudApigeeV1AccessRemove
1118	raw := NoMethod(*s)
1119	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1120}
1121
1122// GoogleCloudApigeeV1AccessSet: Set action. For example, "Set" : {
1123// "name" : "target.name", "success" : true, "value" : "default" }
1124type GoogleCloudApigeeV1AccessSet struct {
1125	Name string `json:"name,omitempty"`
1126
1127	Success bool `json:"success,omitempty"`
1128
1129	Value string `json:"value,omitempty"`
1130
1131	// ForceSendFields is a list of field names (e.g. "Name") to
1132	// unconditionally include in API requests. By default, fields with
1133	// empty values are omitted from API requests. However, any non-pointer,
1134	// non-interface field appearing in ForceSendFields will be sent to the
1135	// server regardless of whether the field is empty or not. This may be
1136	// used to include empty fields in Patch requests.
1137	ForceSendFields []string `json:"-"`
1138
1139	// NullFields is a list of field names (e.g. "Name") to include in API
1140	// requests with the JSON null value. By default, fields with empty
1141	// values are omitted from API requests. However, any field with an
1142	// empty value appearing in NullFields will be sent to the server as
1143	// null. It is an error if a field in this list has a non-empty value.
1144	// This may be used to include null fields in Patch requests.
1145	NullFields []string `json:"-"`
1146}
1147
1148func (s *GoogleCloudApigeeV1AccessSet) MarshalJSON() ([]byte, error) {
1149	type NoMethod GoogleCloudApigeeV1AccessSet
1150	raw := NoMethod(*s)
1151	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1152}
1153
1154// GoogleCloudApigeeV1ActivateNatAddressRequest: Request for
1155// ActivateNatAddressRequest. Activate the nat address request.
1156type GoogleCloudApigeeV1ActivateNatAddressRequest struct {
1157}
1158
1159// GoogleCloudApigeeV1AddonsConfig: Add-on configurations for the Apigee
1160// organization.
1161type GoogleCloudApigeeV1AddonsConfig struct {
1162	// AdvancedApiOpsConfig: Configuration for the Advanced API Ops add-on.
1163	AdvancedApiOpsConfig *GoogleCloudApigeeV1AdvancedApiOpsConfig `json:"advancedApiOpsConfig,omitempty"`
1164
1165	// IntegrationConfig: Configuration for the Integration add-on.
1166	IntegrationConfig *GoogleCloudApigeeV1IntegrationConfig `json:"integrationConfig,omitempty"`
1167
1168	// MonetizationConfig: Configuration for the Monetization add-on.
1169	MonetizationConfig *GoogleCloudApigeeV1MonetizationConfig `json:"monetizationConfig,omitempty"`
1170
1171	// ForceSendFields is a list of field names (e.g.
1172	// "AdvancedApiOpsConfig") to unconditionally include in API requests.
1173	// By default, fields with empty values are omitted from API requests.
1174	// However, any non-pointer, non-interface field appearing in
1175	// ForceSendFields will be sent to the server regardless of whether the
1176	// field is empty or not. This may be used to include empty fields in
1177	// Patch requests.
1178	ForceSendFields []string `json:"-"`
1179
1180	// NullFields is a list of field names (e.g. "AdvancedApiOpsConfig") to
1181	// include in API requests with the JSON null value. By default, fields
1182	// with empty values are omitted from API requests. However, any field
1183	// with an empty value appearing in NullFields will be sent to the
1184	// server as null. It is an error if a field in this list has a
1185	// non-empty value. This may be used to include null fields in Patch
1186	// requests.
1187	NullFields []string `json:"-"`
1188}
1189
1190func (s *GoogleCloudApigeeV1AddonsConfig) MarshalJSON() ([]byte, error) {
1191	type NoMethod GoogleCloudApigeeV1AddonsConfig
1192	raw := NoMethod(*s)
1193	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1194}
1195
1196// GoogleCloudApigeeV1AdvancedApiOpsConfig: Configuration for the
1197// Advanced API Ops add-on.
1198type GoogleCloudApigeeV1AdvancedApiOpsConfig struct {
1199	// Enabled: Flag that specifies whether the Advanced API Ops add-on is
1200	// enabled.
1201	Enabled bool `json:"enabled,omitempty"`
1202
1203	// ForceSendFields is a list of field names (e.g. "Enabled") to
1204	// unconditionally include in API requests. By default, fields with
1205	// empty values are omitted from API requests. However, any non-pointer,
1206	// non-interface field appearing in ForceSendFields will be sent to the
1207	// server regardless of whether the field is empty or not. This may be
1208	// used to include empty fields in Patch requests.
1209	ForceSendFields []string `json:"-"`
1210
1211	// NullFields is a list of field names (e.g. "Enabled") to include in
1212	// API requests with the JSON null value. By default, fields with empty
1213	// values are omitted from API requests. However, any field with an
1214	// empty value appearing in NullFields will be sent to the server as
1215	// null. It is an error if a field in this list has a non-empty value.
1216	// This may be used to include null fields in Patch requests.
1217	NullFields []string `json:"-"`
1218}
1219
1220func (s *GoogleCloudApigeeV1AdvancedApiOpsConfig) MarshalJSON() ([]byte, error) {
1221	type NoMethod GoogleCloudApigeeV1AdvancedApiOpsConfig
1222	raw := NoMethod(*s)
1223	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1224}
1225
1226// GoogleCloudApigeeV1Alias: Reference to a certificate or
1227// key/certificate pair.
1228type GoogleCloudApigeeV1Alias struct {
1229	// Alias: Resource ID for this alias. Values must match the regular
1230	// expression `[^/]{1,255}`.
1231	Alias string `json:"alias,omitempty"`
1232
1233	// CertsInfo: Chain of certificates under this alias.
1234	CertsInfo *GoogleCloudApigeeV1Certificate `json:"certsInfo,omitempty"`
1235
1236	// Type: Type of alias.
1237	//
1238	// Possible values:
1239	//   "ALIAS_TYPE_UNSPECIFIED" - Alias type is not specified.
1240	//   "CERT" - Certificate.
1241	//   "KEY_CERT" - Key/certificate pair.
1242	Type string `json:"type,omitempty"`
1243
1244	// ServerResponse contains the HTTP response code and headers from the
1245	// server.
1246	googleapi.ServerResponse `json:"-"`
1247
1248	// ForceSendFields is a list of field names (e.g. "Alias") to
1249	// unconditionally include in API requests. By default, fields with
1250	// empty values are omitted from API requests. However, any non-pointer,
1251	// non-interface field appearing in ForceSendFields will be sent to the
1252	// server regardless of whether the field is empty or not. This may be
1253	// used to include empty fields in Patch requests.
1254	ForceSendFields []string `json:"-"`
1255
1256	// NullFields is a list of field names (e.g. "Alias") to include in API
1257	// requests with the JSON null value. By default, fields with empty
1258	// values are omitted from API requests. However, any field with an
1259	// empty value appearing in NullFields will be sent to the server as
1260	// null. It is an error if a field in this list has a non-empty value.
1261	// This may be used to include null fields in Patch requests.
1262	NullFields []string `json:"-"`
1263}
1264
1265func (s *GoogleCloudApigeeV1Alias) MarshalJSON() ([]byte, error) {
1266	type NoMethod GoogleCloudApigeeV1Alias
1267	raw := NoMethod(*s)
1268	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1269}
1270
1271type GoogleCloudApigeeV1AliasRevisionConfig struct {
1272	// Location: Location of the alias file. For example, a Google Cloud
1273	// Storage URI.
1274	Location string `json:"location,omitempty"`
1275
1276	// Name: Name of the alias revision included in the keystore in the
1277	// following format:
1278	// `organizations/{org}/environments/{env}/keystores/{keystore}/aliases/{
1279	// alias}/revisions/{rev}`
1280	Name string `json:"name,omitempty"`
1281
1282	// Possible values:
1283	//   "ALIAS_TYPE_UNSPECIFIED" - Alias type is not specified.
1284	//   "CERT" - Certificate.
1285	//   "KEY_CERT" - Key/certificate pair.
1286	Type string `json:"type,omitempty"`
1287
1288	// ForceSendFields is a list of field names (e.g. "Location") to
1289	// unconditionally include in API requests. By default, fields with
1290	// empty values are omitted from API requests. However, any non-pointer,
1291	// non-interface field appearing in ForceSendFields will be sent to the
1292	// server regardless of whether the field is empty or not. This may be
1293	// used to include empty fields in Patch requests.
1294	ForceSendFields []string `json:"-"`
1295
1296	// NullFields is a list of field names (e.g. "Location") 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 *GoogleCloudApigeeV1AliasRevisionConfig) MarshalJSON() ([]byte, error) {
1306	type NoMethod GoogleCloudApigeeV1AliasRevisionConfig
1307	raw := NoMethod(*s)
1308	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1309}
1310
1311// GoogleCloudApigeeV1ApiCategory: the Api category resource wrapped
1312// with response status, error_code etc.
1313type GoogleCloudApigeeV1ApiCategory struct {
1314	// Data: Details of category.
1315	Data *GoogleCloudApigeeV1ApiCategoryData `json:"data,omitempty"`
1316
1317	// ErrorCode: ID that can be used to find errors in the log files.
1318	ErrorCode string `json:"errorCode,omitempty"`
1319
1320	// Message: Description of the operation.
1321	Message string `json:"message,omitempty"`
1322
1323	// RequestId: ID that can be used to find request details in the log
1324	// files.
1325	RequestId string `json:"requestId,omitempty"`
1326
1327	// Status: Status of the operation.
1328	Status string `json:"status,omitempty"`
1329
1330	// ServerResponse contains the HTTP response code and headers from the
1331	// server.
1332	googleapi.ServerResponse `json:"-"`
1333
1334	// ForceSendFields is a list of field names (e.g. "Data") to
1335	// unconditionally include in API requests. By default, fields with
1336	// empty values are omitted from API requests. However, any non-pointer,
1337	// non-interface field appearing in ForceSendFields will be sent to the
1338	// server regardless of whether the field is empty or not. This may be
1339	// used to include empty fields in Patch requests.
1340	ForceSendFields []string `json:"-"`
1341
1342	// NullFields is a list of field names (e.g. "Data") to include in API
1343	// requests with the JSON null value. By default, fields with empty
1344	// values are omitted from API requests. However, any field with an
1345	// empty value appearing in NullFields will be sent to the server as
1346	// null. It is an error if a field in this list has a non-empty value.
1347	// This may be used to include null fields in Patch requests.
1348	NullFields []string `json:"-"`
1349}
1350
1351func (s *GoogleCloudApigeeV1ApiCategory) MarshalJSON() ([]byte, error) {
1352	type NoMethod GoogleCloudApigeeV1ApiCategory
1353	raw := NoMethod(*s)
1354	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1355}
1356
1357// GoogleCloudApigeeV1ApiCategoryData: the Api category resource.
1358type GoogleCloudApigeeV1ApiCategoryData struct {
1359	// Id: ID of the category (a UUID).
1360	Id string `json:"id,omitempty"`
1361
1362	// Name: Name of the category.
1363	Name string `json:"name,omitempty"`
1364
1365	// SiteId: Name of the portal.
1366	SiteId string `json:"siteId,omitempty"`
1367
1368	// UpdateTime: Time the category was last modified in milliseconds since
1369	// epoch.
1370	UpdateTime int64 `json:"updateTime,omitempty,string"`
1371
1372	// ForceSendFields is a list of field names (e.g. "Id") to
1373	// unconditionally include in API requests. By default, fields with
1374	// empty values are omitted from API requests. However, any non-pointer,
1375	// non-interface field appearing in ForceSendFields will be sent to the
1376	// server regardless of whether the field is empty or not. This may be
1377	// used to include empty fields in Patch requests.
1378	ForceSendFields []string `json:"-"`
1379
1380	// NullFields is a list of field names (e.g. "Id") to include in API
1381	// requests with the JSON null value. By default, fields with empty
1382	// values are omitted from API requests. However, any field with an
1383	// empty value appearing in NullFields will be sent to the server as
1384	// null. It is an error if a field in this list has a non-empty value.
1385	// This may be used to include null fields in Patch requests.
1386	NullFields []string `json:"-"`
1387}
1388
1389func (s *GoogleCloudApigeeV1ApiCategoryData) MarshalJSON() ([]byte, error) {
1390	type NoMethod GoogleCloudApigeeV1ApiCategoryData
1391	raw := NoMethod(*s)
1392	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1393}
1394
1395type GoogleCloudApigeeV1ApiProduct struct {
1396	ApiResources []string `json:"apiResources,omitempty"`
1397
1398	// ApprovalType: Flag that specifies how API keys are approved to access
1399	// the APIs defined by the API product. If set to `manual`, the consumer
1400	// key is generated and returned in "pending" state. In this case, the
1401	// API keys won't work until they have been explicitly approved. If set
1402	// to `auto`, the consumer key is generated and returned in "approved"
1403	// state and can be used immediately. **Note:** Typically, `auto` is
1404	// used to provide access to free or trial API products that provide
1405	// limited quota or capabilities.
1406	ApprovalType string `json:"approvalType,omitempty"`
1407
1408	// Attributes: Array of attributes that may be used to extend the
1409	// default API product profile with customer-specific metadata. You can
1410	// specify a maximum of 18 attributes. Use this property to specify the
1411	// access level of the API product as either `public`, `private`, or
1412	// `internal`. Only products marked `public` are available to developers
1413	// in the Apigee developer portal. For example, you can set a product to
1414	// `internal` while it is in development and then change access to
1415	// `public` when it is ready to release on the portal. API products
1416	// marked as `private` do not appear on the portal, but can be accessed
1417	// by external developers.
1418	Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
1419
1420	// CreatedAt: Response only. Creation time of this environment as
1421	// milliseconds since epoch.
1422	CreatedAt int64 `json:"createdAt,omitempty,string"`
1423
1424	// Description: Description of the API product. Include key information
1425	// about the API product that is not captured by other fields.
1426	// Comma-separated list of API resources to be bundled in the API
1427	// product. By default, the resource paths are mapped from the
1428	// `proxy.pathsuffix` variable. The proxy path suffix is defined as the
1429	// URI fragment following the ProxyEndpoint base path. For example, if
1430	// the `apiResources` element is defined to be `/forecastrss` and the
1431	// base path defined for the API proxy is `/weather`, then only requests
1432	// to `/weather/forecastrss` are permitted by the API product. You can
1433	// select a specific path, or you can select all subpaths with the
1434	// following wildcard: - `/**`: Indicates that all sub-URIs are
1435	// included. - `/*` : Indicates that only URIs one level down are
1436	// included. By default, / supports the same resources as /** as well as
1437	// the base path defined by the API proxy. For example, if the base path
1438	// of the API proxy is `/v1/weatherapikey`, then the API product
1439	// supports requests to `/v1/weatherapikey` and to any sub-URIs, such as
1440	// `/v1/weatherapikey/forecastrss`, `/v1/weatherapikey/region/CA`, and
1441	// so on. For more information, see Managing API products.
1442	Description string `json:"description,omitempty"`
1443
1444	// DisplayName: Name displayed in the UI or developer portal to
1445	// developers registering for API access.
1446	DisplayName string `json:"displayName,omitempty"`
1447
1448	// Environments: Comma-separated list of environment names to which the
1449	// API product is bound. Requests to environments that are not listed
1450	// are rejected. By specifying one or more environments, you can bind
1451	// the resources listed in the API product to a specific environment,
1452	// preventing developers from accessing those resources through API
1453	// proxies deployed in another environment. This setting is used, for
1454	// example, to prevent resources associated with API proxies in `prod`
1455	// from being accessed by API proxies deployed in `test`.
1456	Environments []string `json:"environments,omitempty"`
1457
1458	// GraphqlOperationGroup: Configuration used to group Apigee proxies or
1459	// remote services with graphQL operation name, graphQL operation type
1460	// and quotas. This grouping allows us to precisely set quota for a
1461	// particular combination of graphQL name and operation type for a
1462	// particular proxy request. If graphQL name is not set, this would
1463	// imply quota will be applied on all graphQL requests matching the
1464	// operation type.
1465	GraphqlOperationGroup *GoogleCloudApigeeV1GraphQLOperationGroup `json:"graphqlOperationGroup,omitempty"`
1466
1467	// LastModifiedAt: Response only. Modified time of this environment as
1468	// milliseconds since epoch.
1469	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
1470
1471	// Name: Internal name of the API product. Characters you can use in the
1472	// name are restricted to: `A-Z0-9._\-$ %`. **Note:** The internal name
1473	// cannot be edited when updating the API product.
1474	Name string `json:"name,omitempty"`
1475
1476	// OperationGroup: Configuration used to group Apigee proxies or remote
1477	// services with resources, method types, and quotas. The resource
1478	// refers to the resource URI (excluding the base path). With this
1479	// grouping, the API product creator is able to fine-tune and give
1480	// precise control over which REST methods have access to specific
1481	// resources and how many calls can be made (using the `quota` setting).
1482	// **Note:** The `api_resources` setting cannot be specified for both
1483	// the API product and operation group; otherwise the call will fail.
1484	OperationGroup *GoogleCloudApigeeV1OperationGroup `json:"operationGroup,omitempty"`
1485
1486	// Proxies: Comma-separated list of API proxy names to which this API
1487	// product is bound. By specifying API proxies, you can associate
1488	// resources in the API product with specific API proxies, preventing
1489	// developers from accessing those resources through other API proxies.
1490	// Apigee rejects requests to API proxies that are not listed. **Note:**
1491	// The API proxy names must already exist in the specified environment
1492	// as they will be validated upon creation.
1493	Proxies []string `json:"proxies,omitempty"`
1494
1495	// Quota: Number of request messages permitted per app by this API
1496	// product for the specified `quotaInterval` and `quotaTimeUnit`. For
1497	// example, a `quota` of 50, for a `quotaInterval` of 12 and a
1498	// `quotaTimeUnit` of hours means 50 requests are allowed every 12
1499	// hours.
1500	Quota string `json:"quota,omitempty"`
1501
1502	// QuotaInterval: Time interval over which the number of request
1503	// messages is calculated.
1504	QuotaInterval string `json:"quotaInterval,omitempty"`
1505
1506	// QuotaTimeUnit: Time unit defined for the `quotaInterval`. Valid
1507	// values include `minute`, `hour`, `day`, or `month`.
1508	QuotaTimeUnit string `json:"quotaTimeUnit,omitempty"`
1509
1510	// Scopes: Comma-separated list of OAuth scopes that are validated at
1511	// runtime. Apigee validates that the scopes in any access token
1512	// presented match the scopes defined in the OAuth policy associated
1513	// with the API product.
1514	Scopes []string `json:"scopes,omitempty"`
1515
1516	// ServerResponse contains the HTTP response code and headers from the
1517	// server.
1518	googleapi.ServerResponse `json:"-"`
1519
1520	// ForceSendFields is a list of field names (e.g. "ApiResources") to
1521	// unconditionally include in API requests. By default, fields with
1522	// empty values are omitted from API requests. However, any non-pointer,
1523	// non-interface field appearing in ForceSendFields will be sent to the
1524	// server regardless of whether the field is empty or not. This may be
1525	// used to include empty fields in Patch requests.
1526	ForceSendFields []string `json:"-"`
1527
1528	// NullFields is a list of field names (e.g. "ApiResources") to include
1529	// in API requests with the JSON null value. By default, fields with
1530	// empty values are omitted from API requests. However, any field with
1531	// an empty value appearing in NullFields will be sent to the server as
1532	// null. It is an error if a field in this list has a non-empty value.
1533	// This may be used to include null fields in Patch requests.
1534	NullFields []string `json:"-"`
1535}
1536
1537func (s *GoogleCloudApigeeV1ApiProduct) MarshalJSON() ([]byte, error) {
1538	type NoMethod GoogleCloudApigeeV1ApiProduct
1539	raw := NoMethod(*s)
1540	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1541}
1542
1543type GoogleCloudApigeeV1ApiProductRef struct {
1544	// Apiproduct: Name of the API product.
1545	Apiproduct string `json:"apiproduct,omitempty"`
1546
1547	// Status: Status of the API product.
1548	Status string `json:"status,omitempty"`
1549
1550	// ForceSendFields is a list of field names (e.g. "Apiproduct") to
1551	// unconditionally include in API requests. By default, fields with
1552	// empty values are omitted from API requests. However, any non-pointer,
1553	// non-interface field appearing in ForceSendFields will be sent to the
1554	// server regardless of whether the field is empty or not. This may be
1555	// used to include empty fields in Patch requests.
1556	ForceSendFields []string `json:"-"`
1557
1558	// NullFields is a list of field names (e.g. "Apiproduct") to include in
1559	// API requests with the JSON null value. By default, fields with empty
1560	// values are omitted from API requests. However, any field with an
1561	// empty value appearing in NullFields will be sent to the server as
1562	// null. It is an error if a field in this list has a non-empty value.
1563	// This may be used to include null fields in Patch requests.
1564	NullFields []string `json:"-"`
1565}
1566
1567func (s *GoogleCloudApigeeV1ApiProductRef) MarshalJSON() ([]byte, error) {
1568	type NoMethod GoogleCloudApigeeV1ApiProductRef
1569	raw := NoMethod(*s)
1570	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1571}
1572
1573// GoogleCloudApigeeV1ApiProxy: Metadata describing the API proxy
1574type GoogleCloudApigeeV1ApiProxy struct {
1575	// LatestRevisionId: The id of the most recently created revision for
1576	// this api proxy.
1577	LatestRevisionId string `json:"latestRevisionId,omitempty"`
1578
1579	// MetaData: Metadata describing the API proxy.
1580	MetaData *GoogleCloudApigeeV1EntityMetadata `json:"metaData,omitempty"`
1581
1582	// Name: Name of the API proxy.
1583	Name string `json:"name,omitempty"`
1584
1585	// Revision: List of revisons defined for the API proxy.
1586	Revision []string `json:"revision,omitempty"`
1587
1588	// ServerResponse contains the HTTP response code and headers from the
1589	// server.
1590	googleapi.ServerResponse `json:"-"`
1591
1592	// ForceSendFields is a list of field names (e.g. "LatestRevisionId") to
1593	// unconditionally include in API requests. By default, fields with
1594	// empty values are omitted from API requests. However, any non-pointer,
1595	// non-interface field appearing in ForceSendFields will be sent to the
1596	// server regardless of whether the field is empty or not. This may be
1597	// used to include empty fields in Patch requests.
1598	ForceSendFields []string `json:"-"`
1599
1600	// NullFields is a list of field names (e.g. "LatestRevisionId") to
1601	// include in API requests with the JSON null value. By default, fields
1602	// with empty values are omitted from API requests. However, any field
1603	// with an empty value appearing in NullFields will be sent to the
1604	// server as null. It is an error if a field in this list has a
1605	// non-empty value. This may be used to include null fields in Patch
1606	// requests.
1607	NullFields []string `json:"-"`
1608}
1609
1610func (s *GoogleCloudApigeeV1ApiProxy) MarshalJSON() ([]byte, error) {
1611	type NoMethod GoogleCloudApigeeV1ApiProxy
1612	raw := NoMethod(*s)
1613	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1614}
1615
1616// GoogleCloudApigeeV1ApiProxyRevision: API proxy revision.
1617type GoogleCloudApigeeV1ApiProxyRevision struct {
1618	// Basepaths: Base URL of the API proxy.
1619	Basepaths []string `json:"basepaths,omitempty"`
1620
1621	// ConfigurationVersion: Version of the API proxy configuration schema
1622	// to which the API proxy conforms. Currently, the only supported value
1623	// is 4.0 (`majorVersion.minorVersion`). This setting may be used in the
1624	// future to track the evolution of the API proxy format.
1625	ConfigurationVersion *GoogleCloudApigeeV1ConfigVersion `json:"configurationVersion,omitempty"`
1626
1627	// ContextInfo: Revision number, app name, and organization for the API
1628	// proxy.
1629	ContextInfo string `json:"contextInfo,omitempty"`
1630
1631	// CreatedAt: Time that the API proxy revision was created in
1632	// milliseconds since epoch.
1633	CreatedAt int64 `json:"createdAt,omitempty,string"`
1634
1635	// Description: Description of the API proxy revision.
1636	Description string `json:"description,omitempty"`
1637
1638	// DisplayName: Human-readable name of the API proxy.
1639	DisplayName string `json:"displayName,omitempty"`
1640
1641	// EntityMetaDataAsProperties: Metadata describing the API proxy
1642	// revision as a key-value map.
1643	EntityMetaDataAsProperties map[string]string `json:"entityMetaDataAsProperties,omitempty"`
1644
1645	// LastModifiedAt: Time that the API proxy revision was last modified in
1646	// milliseconds since epoch.
1647	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
1648
1649	// Name: Name of the API proxy.
1650	Name string `json:"name,omitempty"`
1651
1652	// Policies: List of policy names included in the API proxy revision..
1653	Policies []string `json:"policies,omitempty"`
1654
1655	// Proxies: List of proxy names included in the API proxy revision.
1656	Proxies []string `json:"proxies,omitempty"`
1657
1658	// ProxyEndpoints: List of ProxyEndpoints in the `/proxies` directory of
1659	// the API proxy. Typically, this element is included only when the API
1660	// proxy was created using the Edge UI. This is a 'manifest' setting
1661	// designed to provide visibility into the contents of the API proxy.
1662	ProxyEndpoints []string `json:"proxyEndpoints,omitempty"`
1663
1664	// ResourceFiles: List of resource files included in the API proxy
1665	// revision.
1666	ResourceFiles *GoogleCloudApigeeV1ResourceFiles `json:"resourceFiles,omitempty"`
1667
1668	// Resources: List of the resources included in the API proxy revision
1669	// formatted as "{type}://{name}".
1670	Resources []string `json:"resources,omitempty"`
1671
1672	// Revision: API proxy revision.
1673	Revision string `json:"revision,omitempty"`
1674
1675	// SharedFlows: List of the shared flows included in the API proxy
1676	// revision.
1677	SharedFlows []string `json:"sharedFlows,omitempty"`
1678
1679	// Spec: OpenAPI Specification that is associated with the API proxy.
1680	// The value is set to a URL or to a path in the specification store.
1681	Spec string `json:"spec,omitempty"`
1682
1683	// TargetEndpoints: List of TargetEndpoints in the `/targets` directory
1684	// of the API proxy. Typically, this element is included only when the
1685	// API proxy was created using the Edge UI. This is a 'manifest' setting
1686	// designed to provide visibility into the contents of the API proxy.
1687	TargetEndpoints []string `json:"targetEndpoints,omitempty"`
1688
1689	// TargetServers: List of TargetServers referenced in any TargetEndpoint
1690	// in the API proxy. Typically, you will see this element only when the
1691	// API proxy was created using the Edge UI. This is a 'manifest' setting
1692	// designed to provide visibility into the contents of the API proxy.
1693	TargetServers []string `json:"targetServers,omitempty"`
1694
1695	// Targets: List of the targets included in the API proxy revision.
1696	Targets []string `json:"targets,omitempty"`
1697
1698	// Teams: List of the teams included in the API proxy revision.
1699	Teams []string `json:"teams,omitempty"`
1700
1701	// Type: Type. Set to `Application`. Maintained for compatibility with
1702	// the Apigee Edge API.
1703	Type string `json:"type,omitempty"`
1704
1705	// ServerResponse contains the HTTP response code and headers from the
1706	// server.
1707	googleapi.ServerResponse `json:"-"`
1708
1709	// ForceSendFields is a list of field names (e.g. "Basepaths") to
1710	// unconditionally include in API requests. By default, fields with
1711	// empty values are omitted from API requests. However, any non-pointer,
1712	// non-interface field appearing in ForceSendFields will be sent to the
1713	// server regardless of whether the field is empty or not. This may be
1714	// used to include empty fields in Patch requests.
1715	ForceSendFields []string `json:"-"`
1716
1717	// NullFields is a list of field names (e.g. "Basepaths") to include in
1718	// API requests with the JSON null value. By default, fields with empty
1719	// values are omitted from API requests. However, any field with an
1720	// empty value appearing in NullFields will be sent to the server as
1721	// null. It is an error if a field in this list has a non-empty value.
1722	// This may be used to include null fields in Patch requests.
1723	NullFields []string `json:"-"`
1724}
1725
1726func (s *GoogleCloudApigeeV1ApiProxyRevision) MarshalJSON() ([]byte, error) {
1727	type NoMethod GoogleCloudApigeeV1ApiProxyRevision
1728	raw := NoMethod(*s)
1729	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1730}
1731
1732type GoogleCloudApigeeV1ApiResponseWrapper struct {
1733	// ErrorCode: ID that can be used to find errors in the log files.
1734	ErrorCode string `json:"errorCode,omitempty"`
1735
1736	// Message: Description of the operation.
1737	Message string `json:"message,omitempty"`
1738
1739	// RequestId: ID that can be used to find request details in the log
1740	// files.
1741	RequestId string `json:"requestId,omitempty"`
1742
1743	// Status: Status of the operation.
1744	Status string `json:"status,omitempty"`
1745
1746	// ServerResponse contains the HTTP response code and headers from the
1747	// server.
1748	googleapi.ServerResponse `json:"-"`
1749
1750	// ForceSendFields is a list of field names (e.g. "ErrorCode") to
1751	// unconditionally include in API requests. By default, fields with
1752	// empty values are omitted from API requests. However, any non-pointer,
1753	// non-interface field appearing in ForceSendFields will be sent to the
1754	// server regardless of whether the field is empty or not. This may be
1755	// used to include empty fields in Patch requests.
1756	ForceSendFields []string `json:"-"`
1757
1758	// NullFields is a list of field names (e.g. "ErrorCode") to include in
1759	// API requests with the JSON null value. By default, fields with empty
1760	// values are omitted from API requests. However, any field with an
1761	// empty value appearing in NullFields will be sent to the server as
1762	// null. It is an error if a field in this list has a non-empty value.
1763	// This may be used to include null fields in Patch requests.
1764	NullFields []string `json:"-"`
1765}
1766
1767func (s *GoogleCloudApigeeV1ApiResponseWrapper) MarshalJSON() ([]byte, error) {
1768	type NoMethod GoogleCloudApigeeV1ApiResponseWrapper
1769	raw := NoMethod(*s)
1770	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1771}
1772
1773type GoogleCloudApigeeV1App struct {
1774	// ApiProducts: List of API products associated with the app.
1775	ApiProducts []*GoogleCloudApigeeV1ApiProductRef `json:"apiProducts,omitempty"`
1776
1777	// AppId: ID of the app.
1778	AppId string `json:"appId,omitempty"`
1779
1780	// Attributes: List of attributes.
1781	Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
1782
1783	// CallbackUrl: Callback URL used by OAuth 2.0 authorization servers to
1784	// communicate authorization codes back to apps.
1785	CallbackUrl string `json:"callbackUrl,omitempty"`
1786
1787	// CompanyName: Name of the company that owns the app.
1788	CompanyName string `json:"companyName,omitempty"`
1789
1790	// CreatedAt: Output only. Unix time when the app was created.
1791	CreatedAt int64 `json:"createdAt,omitempty,string"`
1792
1793	// Credentials: Output only. Set of credentials for the app. Credentials
1794	// are API key/secret pairs associated with API products.
1795	Credentials []*GoogleCloudApigeeV1Credential `json:"credentials,omitempty"`
1796
1797	// DeveloperId: ID of the developer.
1798	DeveloperId string `json:"developerId,omitempty"`
1799
1800	// KeyExpiresIn: Duration, in milliseconds, of the consumer key that
1801	// will be generated for the app. The default value, -1, indicates an
1802	// infinite validity period. Once set, the expiration can't be updated.
1803	// json key: keyExpiresIn
1804	KeyExpiresIn int64 `json:"keyExpiresIn,omitempty,string"`
1805
1806	// LastModifiedAt: Output only. Last modified time as milliseconds since
1807	// epoch.
1808	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
1809
1810	// Name: Name of the app.
1811	Name string `json:"name,omitempty"`
1812
1813	// Scopes: Scopes to apply to the app. The specified scope names must
1814	// already exist on the API product that you associate with the app.
1815	Scopes []string `json:"scopes,omitempty"`
1816
1817	// Status: Status of the credential.
1818	Status string `json:"status,omitempty"`
1819
1820	// ServerResponse contains the HTTP response code and headers from the
1821	// server.
1822	googleapi.ServerResponse `json:"-"`
1823
1824	// ForceSendFields is a list of field names (e.g. "ApiProducts") to
1825	// unconditionally include in API requests. By default, fields with
1826	// empty values are omitted from API requests. However, any non-pointer,
1827	// non-interface field appearing in ForceSendFields will be sent to the
1828	// server regardless of whether the field is empty or not. This may be
1829	// used to include empty fields in Patch requests.
1830	ForceSendFields []string `json:"-"`
1831
1832	// NullFields is a list of field names (e.g. "ApiProducts") to include
1833	// in API requests with the JSON null value. By default, fields with
1834	// empty values are omitted from API requests. However, any field with
1835	// an empty value appearing in NullFields will be sent to the server as
1836	// null. It is an error if a field in this list has a non-empty value.
1837	// This may be used to include null fields in Patch requests.
1838	NullFields []string `json:"-"`
1839}
1840
1841func (s *GoogleCloudApigeeV1App) MarshalJSON() ([]byte, error) {
1842	type NoMethod GoogleCloudApigeeV1App
1843	raw := NoMethod(*s)
1844	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1845}
1846
1847type GoogleCloudApigeeV1AsyncQuery struct {
1848	// Created: Creation time of the query.
1849	Created string `json:"created,omitempty"`
1850
1851	// EnvgroupHostname: Hostname is available only when query is executed
1852	// at host level.
1853	EnvgroupHostname string `json:"envgroupHostname,omitempty"`
1854
1855	// Error: Error is set when query fails.
1856	Error string `json:"error,omitempty"`
1857
1858	// ExecutionTime: ExecutionTime is available only after the query is
1859	// completed.
1860	ExecutionTime string `json:"executionTime,omitempty"`
1861
1862	// Name: Asynchronous Query Name.
1863	Name string `json:"name,omitempty"`
1864
1865	// QueryParams: Contains information like metrics, dimenstions etc of
1866	// the AsyncQuery.
1867	QueryParams *GoogleCloudApigeeV1QueryMetadata `json:"queryParams,omitempty"`
1868
1869	// ReportDefinitionId: Asynchronous Report ID.
1870	ReportDefinitionId string `json:"reportDefinitionId,omitempty"`
1871
1872	// Result: Result is available only after the query is completed.
1873	Result *GoogleCloudApigeeV1AsyncQueryResult `json:"result,omitempty"`
1874
1875	// ResultFileSize: ResultFileSize is available only after the query is
1876	// completed.
1877	ResultFileSize string `json:"resultFileSize,omitempty"`
1878
1879	// ResultRows: ResultRows is available only after the query is
1880	// completed.
1881	ResultRows int64 `json:"resultRows,omitempty,string"`
1882
1883	// Self: Self link of the query. Example:
1884	// `/organizations/myorg/environments/myenv/queries/9cfc0d85-0f30-46d6-ae
1885	// 6f-318d0cb961bd` or following format if query is running at host
1886	// level:
1887	// `/organizations/myorg/hostQueries/9cfc0d85-0f30-46d6-ae6f-318d0cb961bd
1888	// `
1889	Self string `json:"self,omitempty"`
1890
1891	// State: Query state could be "enqueued", "running", "completed",
1892	// "failed".
1893	State string `json:"state,omitempty"`
1894
1895	// Updated: Last updated timestamp for the query.
1896	Updated string `json:"updated,omitempty"`
1897
1898	// ServerResponse contains the HTTP response code and headers from the
1899	// server.
1900	googleapi.ServerResponse `json:"-"`
1901
1902	// ForceSendFields is a list of field names (e.g. "Created") to
1903	// unconditionally include in API requests. By default, fields with
1904	// empty values are omitted from API requests. However, any non-pointer,
1905	// non-interface field appearing in ForceSendFields will be sent to the
1906	// server regardless of whether the field is empty or not. This may be
1907	// used to include empty fields in Patch requests.
1908	ForceSendFields []string `json:"-"`
1909
1910	// NullFields is a list of field names (e.g. "Created") to include in
1911	// API requests with the JSON null value. By default, fields with empty
1912	// values are omitted from API requests. However, any field with an
1913	// empty value appearing in NullFields will be sent to the server as
1914	// null. It is an error if a field in this list has a non-empty value.
1915	// This may be used to include null fields in Patch requests.
1916	NullFields []string `json:"-"`
1917}
1918
1919func (s *GoogleCloudApigeeV1AsyncQuery) MarshalJSON() ([]byte, error) {
1920	type NoMethod GoogleCloudApigeeV1AsyncQuery
1921	raw := NoMethod(*s)
1922	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1923}
1924
1925type GoogleCloudApigeeV1AsyncQueryResult struct {
1926	// Expires: Query result will be unaccessable after this time.
1927	Expires string `json:"expires,omitempty"`
1928
1929	// Self: Self link of the query results. Example:
1930	// `/organizations/myorg/environments/myenv/queries/9cfc0d85-0f30-46d6-ae
1931	// 6f-318d0cb961bd/result` or following format if query is running at
1932	// host level:
1933	// `/organizations/myorg/hostQueries/9cfc0d85-0f30-46d6-ae6f-318d0cb961bd
1934	// /result`
1935	Self string `json:"self,omitempty"`
1936
1937	// ForceSendFields is a list of field names (e.g. "Expires") to
1938	// unconditionally include in API requests. By default, fields with
1939	// empty values are omitted from API requests. However, any non-pointer,
1940	// non-interface field appearing in ForceSendFields will be sent to the
1941	// server regardless of whether the field is empty or not. This may be
1942	// used to include empty fields in Patch requests.
1943	ForceSendFields []string `json:"-"`
1944
1945	// NullFields is a list of field names (e.g. "Expires") to include in
1946	// API requests with the JSON null value. By default, fields with empty
1947	// values are omitted from API requests. However, any field with an
1948	// empty value appearing in NullFields will be sent to the server as
1949	// null. It is an error if a field in this list has a non-empty value.
1950	// This may be used to include null fields in Patch requests.
1951	NullFields []string `json:"-"`
1952}
1953
1954func (s *GoogleCloudApigeeV1AsyncQueryResult) MarshalJSON() ([]byte, error) {
1955	type NoMethod GoogleCloudApigeeV1AsyncQueryResult
1956	raw := NoMethod(*s)
1957	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1958}
1959
1960type GoogleCloudApigeeV1AsyncQueryResultView struct {
1961	// Code: Error code when there is a failure.
1962	Code int64 `json:"code,omitempty"`
1963
1964	// Error: Error message when there is a failure.
1965	Error string `json:"error,omitempty"`
1966
1967	// Metadata: Metadata contains information like metrics, dimenstions etc
1968	// of the AsyncQuery.
1969	Metadata *GoogleCloudApigeeV1QueryMetadata `json:"metadata,omitempty"`
1970
1971	// Rows: Rows of query result. Each row is a JSON object. Example:
1972	// {sum(message_count): 1, developer_app: "(not set)",…}
1973	Rows []interface{} `json:"rows,omitempty"`
1974
1975	// State: State of retrieving ResultView.
1976	State string `json:"state,omitempty"`
1977
1978	// ServerResponse contains the HTTP response code and headers from the
1979	// server.
1980	googleapi.ServerResponse `json:"-"`
1981
1982	// ForceSendFields is a list of field names (e.g. "Code") to
1983	// unconditionally include in API requests. By default, fields with
1984	// empty values are omitted from API requests. However, any non-pointer,
1985	// non-interface field appearing in ForceSendFields will be sent to the
1986	// server regardless of whether the field is empty or not. This may be
1987	// used to include empty fields in Patch requests.
1988	ForceSendFields []string `json:"-"`
1989
1990	// NullFields is a list of field names (e.g. "Code") to include in API
1991	// requests with the JSON null value. By default, fields with empty
1992	// values are omitted from API requests. However, any field with an
1993	// empty value appearing in NullFields will be sent to the server as
1994	// null. It is an error if a field in this list has a non-empty value.
1995	// This may be used to include null fields in Patch requests.
1996	NullFields []string `json:"-"`
1997}
1998
1999func (s *GoogleCloudApigeeV1AsyncQueryResultView) MarshalJSON() ([]byte, error) {
2000	type NoMethod GoogleCloudApigeeV1AsyncQueryResultView
2001	raw := NoMethod(*s)
2002	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2003}
2004
2005// GoogleCloudApigeeV1Attribute: Key-value pair to store extra metadata.
2006type GoogleCloudApigeeV1Attribute struct {
2007	// Name: API key of the attribute.
2008	Name string `json:"name,omitempty"`
2009
2010	// Value: Value of the attribute.
2011	Value string `json:"value,omitempty"`
2012
2013	// ServerResponse contains the HTTP response code and headers from the
2014	// server.
2015	googleapi.ServerResponse `json:"-"`
2016
2017	// ForceSendFields is a list of field names (e.g. "Name") to
2018	// unconditionally include in API requests. By default, fields with
2019	// empty values are omitted from API requests. However, any non-pointer,
2020	// non-interface field appearing in ForceSendFields will be sent to the
2021	// server regardless of whether the field is empty or not. This may be
2022	// used to include empty fields in Patch requests.
2023	ForceSendFields []string `json:"-"`
2024
2025	// NullFields is a list of field names (e.g. "Name") to include in API
2026	// requests with the JSON null value. By default, fields with empty
2027	// values are omitted from API requests. However, any field with an
2028	// empty value appearing in NullFields will be sent to the server as
2029	// null. It is an error if a field in this list has a non-empty value.
2030	// This may be used to include null fields in Patch requests.
2031	NullFields []string `json:"-"`
2032}
2033
2034func (s *GoogleCloudApigeeV1Attribute) MarshalJSON() ([]byte, error) {
2035	type NoMethod GoogleCloudApigeeV1Attribute
2036	raw := NoMethod(*s)
2037	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2038}
2039
2040type GoogleCloudApigeeV1Attributes struct {
2041	// Attribute: List of attributes.
2042	Attribute []*GoogleCloudApigeeV1Attribute `json:"attribute,omitempty"`
2043
2044	// ServerResponse contains the HTTP response code and headers from the
2045	// server.
2046	googleapi.ServerResponse `json:"-"`
2047
2048	// ForceSendFields is a list of field names (e.g. "Attribute") to
2049	// unconditionally include in API requests. By default, fields with
2050	// empty values are omitted from API requests. However, any non-pointer,
2051	// non-interface field appearing in ForceSendFields will be sent to the
2052	// server regardless of whether the field is empty or not. This may be
2053	// used to include empty fields in Patch requests.
2054	ForceSendFields []string `json:"-"`
2055
2056	// NullFields is a list of field names (e.g. "Attribute") to include in
2057	// API requests with the JSON null value. By default, fields with empty
2058	// values are omitted from API requests. However, any field with an
2059	// empty value appearing in NullFields will be sent to the server as
2060	// null. It is an error if a field in this list has a non-empty value.
2061	// This may be used to include null fields in Patch requests.
2062	NullFields []string `json:"-"`
2063}
2064
2065func (s *GoogleCloudApigeeV1Attributes) MarshalJSON() ([]byte, error) {
2066	type NoMethod GoogleCloudApigeeV1Attributes
2067	raw := NoMethod(*s)
2068	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2069}
2070
2071// GoogleCloudApigeeV1CanaryEvaluation: CanaryEvaluation represents the
2072// canary analysis between two versions of the runtime that is serving
2073// requests.
2074type GoogleCloudApigeeV1CanaryEvaluation struct {
2075	// Control: Required. The stable version that is serving requests.
2076	Control string `json:"control,omitempty"`
2077
2078	// CreateTime: Output only. Create time of the canary evaluation.
2079	CreateTime string `json:"createTime,omitempty"`
2080
2081	// EndTime: Required. End time for the evaluation's analysis.
2082	EndTime string `json:"endTime,omitempty"`
2083
2084	// MetricLabels: Required. Labels used to filter the metrics used for a
2085	// canary evaluation.
2086	MetricLabels *GoogleCloudApigeeV1CanaryEvaluationMetricLabels `json:"metricLabels,omitempty"`
2087
2088	// Name: Output only. Name of the canary evalution.
2089	Name string `json:"name,omitempty"`
2090
2091	// StartTime: Required. Start time for the canary evaluation's analysis.
2092	StartTime string `json:"startTime,omitempty"`
2093
2094	// State: Output only. The current state of the canary evaluation.
2095	//
2096	// Possible values:
2097	//   "STATE_UNSPECIFIED" - No state has been specified.
2098	//   "RUNNING" - The canary evaluation is still in progress.
2099	//   "SUCCEEDED" - The canary evaluation has finished.
2100	State string `json:"state,omitempty"`
2101
2102	// Treatment: Required. The newer version that is serving requests.
2103	Treatment string `json:"treatment,omitempty"`
2104
2105	// Verdict: Output only. The resulting verdict of the canary
2106	// evaluations: NONE, PASS, or FAIL.
2107	//
2108	// Possible values:
2109	//   "VERDICT_UNSPECIFIED" - Verdict is not available yet.
2110	//   "NONE" - No verdict reached.
2111	//   "FAIL" - Evaluation is not good.
2112	//   "PASS" - Evaluation is good.
2113	Verdict string `json:"verdict,omitempty"`
2114
2115	// ServerResponse contains the HTTP response code and headers from the
2116	// server.
2117	googleapi.ServerResponse `json:"-"`
2118
2119	// ForceSendFields is a list of field names (e.g. "Control") to
2120	// unconditionally include in API requests. By default, fields with
2121	// empty values are omitted from API requests. However, any non-pointer,
2122	// non-interface field appearing in ForceSendFields will be sent to the
2123	// server regardless of whether the field is empty or not. This may be
2124	// used to include empty fields in Patch requests.
2125	ForceSendFields []string `json:"-"`
2126
2127	// NullFields is a list of field names (e.g. "Control") to include in
2128	// API requests with the JSON null value. By default, fields with empty
2129	// values are omitted from API requests. However, any field with an
2130	// empty value appearing in NullFields will be sent to the server as
2131	// null. It is an error if a field in this list has a non-empty value.
2132	// This may be used to include null fields in Patch requests.
2133	NullFields []string `json:"-"`
2134}
2135
2136func (s *GoogleCloudApigeeV1CanaryEvaluation) MarshalJSON() ([]byte, error) {
2137	type NoMethod GoogleCloudApigeeV1CanaryEvaluation
2138	raw := NoMethod(*s)
2139	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2140}
2141
2142// GoogleCloudApigeeV1CanaryEvaluationMetricLabels: Labels that can be
2143// used to filter Apigee metrics.
2144type GoogleCloudApigeeV1CanaryEvaluationMetricLabels struct {
2145	// Env: The environment ID associated with the metrics.
2146	Env string `json:"env,omitempty"`
2147
2148	// InstanceId: Required. The instance ID associated with the metrics. In
2149	// Apigee Hybrid, the value is configured during installation.
2150	InstanceId string `json:"instance_id,omitempty"`
2151
2152	// Location: Required. The location associated with the metrics.
2153	Location string `json:"location,omitempty"`
2154
2155	// ForceSendFields is a list of field names (e.g. "Env") to
2156	// unconditionally include in API requests. By default, fields with
2157	// empty values are omitted from API requests. However, any non-pointer,
2158	// non-interface field appearing in ForceSendFields will be sent to the
2159	// server regardless of whether the field is empty or not. This may be
2160	// used to include empty fields in Patch requests.
2161	ForceSendFields []string `json:"-"`
2162
2163	// NullFields is a list of field names (e.g. "Env") to include in API
2164	// requests with the JSON null value. By default, fields with empty
2165	// values are omitted from API requests. However, any field with an
2166	// empty value appearing in NullFields will be sent to the server as
2167	// null. It is an error if a field in this list has a non-empty value.
2168	// This may be used to include null fields in Patch requests.
2169	NullFields []string `json:"-"`
2170}
2171
2172func (s *GoogleCloudApigeeV1CanaryEvaluationMetricLabels) MarshalJSON() ([]byte, error) {
2173	type NoMethod GoogleCloudApigeeV1CanaryEvaluationMetricLabels
2174	raw := NoMethod(*s)
2175	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2176}
2177
2178// GoogleCloudApigeeV1CertInfo: X.509 certificate as defined in RFC
2179// 5280.
2180type GoogleCloudApigeeV1CertInfo struct {
2181	// BasicConstraints: X.509 basic constraints extension.
2182	BasicConstraints string `json:"basicConstraints,omitempty"`
2183
2184	// ExpiryDate: X.509 `notAfter` validity period in milliseconds since
2185	// epoch.
2186	ExpiryDate int64 `json:"expiryDate,omitempty,string"`
2187
2188	// IsValid: Flag that specifies whether the certificate is valid. Flag
2189	// is set to `Yes` if the certificate is valid, `No` if expired, or `Not
2190	// yet` if not yet valid.
2191	IsValid string `json:"isValid,omitempty"`
2192
2193	// Issuer: X.509 issuer.
2194	Issuer string `json:"issuer,omitempty"`
2195
2196	// PublicKey: Public key component of the X.509 subject public key info.
2197	PublicKey string `json:"publicKey,omitempty"`
2198
2199	// SerialNumber: X.509 serial number.
2200	SerialNumber string `json:"serialNumber,omitempty"`
2201
2202	// SigAlgName: X.509 signatureAlgorithm.
2203	SigAlgName string `json:"sigAlgName,omitempty"`
2204
2205	// Subject: X.509 subject.
2206	Subject string `json:"subject,omitempty"`
2207
2208	// SubjectAlternativeNames: X.509 subject alternative names (SANs)
2209	// extension.
2210	SubjectAlternativeNames []string `json:"subjectAlternativeNames,omitempty"`
2211
2212	// ValidFrom: X.509 `notBefore` validity period in milliseconds since
2213	// epoch.
2214	ValidFrom int64 `json:"validFrom,omitempty,string"`
2215
2216	// Version: X.509 version.
2217	Version int64 `json:"version,omitempty"`
2218
2219	// ForceSendFields is a list of field names (e.g. "BasicConstraints") to
2220	// unconditionally include in API requests. By default, fields with
2221	// empty values are omitted from API requests. However, any non-pointer,
2222	// non-interface field appearing in ForceSendFields will be sent to the
2223	// server regardless of whether the field is empty or not. This may be
2224	// used to include empty fields in Patch requests.
2225	ForceSendFields []string `json:"-"`
2226
2227	// NullFields is a list of field names (e.g. "BasicConstraints") to
2228	// include in API requests with the JSON null value. By default, fields
2229	// with empty values are omitted from API requests. However, any field
2230	// with an empty value appearing in NullFields will be sent to the
2231	// server as null. It is an error if a field in this list has a
2232	// non-empty value. This may be used to include null fields in Patch
2233	// requests.
2234	NullFields []string `json:"-"`
2235}
2236
2237func (s *GoogleCloudApigeeV1CertInfo) MarshalJSON() ([]byte, error) {
2238	type NoMethod GoogleCloudApigeeV1CertInfo
2239	raw := NoMethod(*s)
2240	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2241}
2242
2243type GoogleCloudApigeeV1Certificate struct {
2244	// CertInfo: Chain of certificates under this name.
2245	CertInfo []*GoogleCloudApigeeV1CertInfo `json:"certInfo,omitempty"`
2246
2247	// ForceSendFields is a list of field names (e.g. "CertInfo") to
2248	// unconditionally include in API requests. By default, fields with
2249	// empty values are omitted from API requests. However, any non-pointer,
2250	// non-interface field appearing in ForceSendFields will be sent to the
2251	// server regardless of whether the field is empty or not. This may be
2252	// used to include empty fields in Patch requests.
2253	ForceSendFields []string `json:"-"`
2254
2255	// NullFields is a list of field names (e.g. "CertInfo") to include in
2256	// API requests with the JSON null value. By default, fields with empty
2257	// values are omitted from API requests. However, any field with an
2258	// empty value appearing in NullFields will be sent to the server as
2259	// null. It is an error if a field in this list has a non-empty value.
2260	// This may be used to include null fields in Patch requests.
2261	NullFields []string `json:"-"`
2262}
2263
2264func (s *GoogleCloudApigeeV1Certificate) MarshalJSON() ([]byte, error) {
2265	type NoMethod GoogleCloudApigeeV1Certificate
2266	raw := NoMethod(*s)
2267	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2268}
2269
2270type GoogleCloudApigeeV1CommonNameConfig struct {
2271	MatchWildCards bool `json:"matchWildCards,omitempty"`
2272
2273	Name string `json:"name,omitempty"`
2274
2275	// ForceSendFields is a list of field names (e.g. "MatchWildCards") to
2276	// unconditionally include in API requests. By default, fields with
2277	// empty values are omitted from API requests. However, any non-pointer,
2278	// non-interface field appearing in ForceSendFields will be sent to the
2279	// server regardless of whether the field is empty or not. This may be
2280	// used to include empty fields in Patch requests.
2281	ForceSendFields []string `json:"-"`
2282
2283	// NullFields is a list of field names (e.g. "MatchWildCards") to
2284	// include in API requests with the JSON null value. By default, fields
2285	// with empty values are omitted from API requests. However, any field
2286	// with an empty value appearing in NullFields will be sent to the
2287	// server as null. It is an error if a field in this list has a
2288	// non-empty value. This may be used to include null fields in Patch
2289	// requests.
2290	NullFields []string `json:"-"`
2291}
2292
2293func (s *GoogleCloudApigeeV1CommonNameConfig) MarshalJSON() ([]byte, error) {
2294	type NoMethod GoogleCloudApigeeV1CommonNameConfig
2295	raw := NoMethod(*s)
2296	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2297}
2298
2299// GoogleCloudApigeeV1ConfigVersion: Version of the API proxy
2300// configuration schema. Currently, only 4.0 is supported.
2301type GoogleCloudApigeeV1ConfigVersion struct {
2302	// MajorVersion: Major version of the API proxy configuration schema.
2303	MajorVersion int64 `json:"majorVersion,omitempty"`
2304
2305	// MinorVersion: Minor version of the API proxy configuration schema.
2306	MinorVersion int64 `json:"minorVersion,omitempty"`
2307
2308	// ForceSendFields is a list of field names (e.g. "MajorVersion") to
2309	// unconditionally include in API requests. By default, fields with
2310	// empty values are omitted from API requests. However, any non-pointer,
2311	// non-interface field appearing in ForceSendFields will be sent to the
2312	// server regardless of whether the field is empty or not. This may be
2313	// used to include empty fields in Patch requests.
2314	ForceSendFields []string `json:"-"`
2315
2316	// NullFields is a list of field names (e.g. "MajorVersion") to include
2317	// in API requests with the JSON null value. By default, fields with
2318	// empty values are omitted from API requests. However, any field with
2319	// an empty value appearing in NullFields will be sent to the server as
2320	// null. It is an error if a field in this list has a non-empty value.
2321	// This may be used to include null fields in Patch requests.
2322	NullFields []string `json:"-"`
2323}
2324
2325func (s *GoogleCloudApigeeV1ConfigVersion) MarshalJSON() ([]byte, error) {
2326	type NoMethod GoogleCloudApigeeV1ConfigVersion
2327	raw := NoMethod(*s)
2328	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2329}
2330
2331type GoogleCloudApigeeV1Credential struct {
2332	// ApiProducts: List of API products this credential can be used for.
2333	ApiProducts []*GoogleCloudApigeeV1ApiProductRef `json:"apiProducts,omitempty"`
2334
2335	// Attributes: List of attributes associated with this credential.
2336	Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
2337
2338	// ConsumerKey: Consumer key.
2339	ConsumerKey string `json:"consumerKey,omitempty"`
2340
2341	// ConsumerSecret: Secret key.
2342	ConsumerSecret string `json:"consumerSecret,omitempty"`
2343
2344	// ExpiresAt: Time the credential will expire in milliseconds since
2345	// epoch.
2346	ExpiresAt int64 `json:"expiresAt,omitempty,string"`
2347
2348	// IssuedAt: Time the credential was issued in milliseconds since epoch.
2349	IssuedAt int64 `json:"issuedAt,omitempty,string"`
2350
2351	// Scopes: List of scopes to apply to the app. Specified scopes must
2352	// already exist on the API product that you associate with the app.
2353	Scopes []string `json:"scopes,omitempty"`
2354
2355	// Status: Status of the credential.
2356	Status string `json:"status,omitempty"`
2357
2358	// ForceSendFields is a list of field names (e.g. "ApiProducts") to
2359	// unconditionally include in API requests. By default, fields with
2360	// empty values are omitted from API requests. However, any non-pointer,
2361	// non-interface field appearing in ForceSendFields will be sent to the
2362	// server regardless of whether the field is empty or not. This may be
2363	// used to include empty fields in Patch requests.
2364	ForceSendFields []string `json:"-"`
2365
2366	// NullFields is a list of field names (e.g. "ApiProducts") to include
2367	// in API requests with the JSON null value. By default, fields with
2368	// empty values are omitted from API requests. However, any field with
2369	// an empty value appearing in NullFields will be sent to the server as
2370	// null. It is an error if a field in this list has a non-empty value.
2371	// This may be used to include null fields in Patch requests.
2372	NullFields []string `json:"-"`
2373}
2374
2375func (s *GoogleCloudApigeeV1Credential) MarshalJSON() ([]byte, error) {
2376	type NoMethod GoogleCloudApigeeV1Credential
2377	raw := NoMethod(*s)
2378	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2379}
2380
2381type GoogleCloudApigeeV1CustomReport struct {
2382	// ChartType: This field contains the chart type for the report
2383	ChartType string `json:"chartType,omitempty"`
2384
2385	// Comments: Legacy field: not used. This field contains a list of
2386	// comments associated with custom report
2387	Comments []string `json:"comments,omitempty"`
2388
2389	// CreatedAt: Output only. Unix time when the app was created json key:
2390	// createdAt
2391	CreatedAt int64 `json:"createdAt,omitempty,string"`
2392
2393	// Dimensions: This contains the list of dimensions for the report
2394	Dimensions []string `json:"dimensions,omitempty"`
2395
2396	// DisplayName: This is the display name for the report
2397	DisplayName string `json:"displayName,omitempty"`
2398
2399	// Environment: Output only. Environment name
2400	Environment string `json:"environment,omitempty"`
2401
2402	// Filter: This field contains the filter expression
2403	Filter string `json:"filter,omitempty"`
2404
2405	// FromTime: Legacy field: not used. Contains the from time for the
2406	// report
2407	FromTime string `json:"fromTime,omitempty"`
2408
2409	// LastModifiedAt: Output only. Modified time of this entity as
2410	// milliseconds since epoch. json key: lastModifiedAt
2411	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
2412
2413	// LastViewedAt: Output only. Last viewed time of this entity as
2414	// milliseconds since epoch
2415	LastViewedAt int64 `json:"lastViewedAt,omitempty,string"`
2416
2417	// Limit: Legacy field: not used This field contains the limit for the
2418	// result retrieved
2419	Limit string `json:"limit,omitempty"`
2420
2421	// Metrics: Required. This contains the list of metrics
2422	Metrics []*GoogleCloudApigeeV1CustomReportMetric `json:"metrics,omitempty"`
2423
2424	// Name: Required. Unique identifier for the report T his is a legacy
2425	// field used to encode custom report unique id
2426	Name string `json:"name,omitempty"`
2427
2428	// Offset: Legacy field: not used. This field contains the offset for
2429	// the data
2430	Offset string `json:"offset,omitempty"`
2431
2432	// Organization: Output only. Organization name
2433	Organization string `json:"organization,omitempty"`
2434
2435	// Properties: This field contains report properties such as ui metadata
2436	// etc.
2437	Properties []*GoogleCloudApigeeV1ReportProperty `json:"properties,omitempty"`
2438
2439	// SortByCols: Legacy field: not used much. Contains the list of sort by
2440	// columns
2441	SortByCols []string `json:"sortByCols,omitempty"`
2442
2443	// SortOrder: Legacy field: not used much. Contains the sort order for
2444	// the sort columns
2445	SortOrder string `json:"sortOrder,omitempty"`
2446
2447	// Tags: Legacy field: not used. This field contains a list of tags
2448	// associated with custom report
2449	Tags []string `json:"tags,omitempty"`
2450
2451	// TimeUnit: This field contains the time unit of aggregation for the
2452	// report
2453	TimeUnit string `json:"timeUnit,omitempty"`
2454
2455	// ToTime: Legacy field: not used. Contains the end time for the report
2456	ToTime string `json:"toTime,omitempty"`
2457
2458	// Topk: Legacy field: not used. This field contains the top k parameter
2459	// value for restricting the result
2460	Topk string `json:"topk,omitempty"`
2461
2462	// ServerResponse contains the HTTP response code and headers from the
2463	// server.
2464	googleapi.ServerResponse `json:"-"`
2465
2466	// ForceSendFields is a list of field names (e.g. "ChartType") to
2467	// unconditionally include in API requests. By default, fields with
2468	// empty values are omitted from API requests. However, any non-pointer,
2469	// non-interface field appearing in ForceSendFields will be sent to the
2470	// server regardless of whether the field is empty or not. This may be
2471	// used to include empty fields in Patch requests.
2472	ForceSendFields []string `json:"-"`
2473
2474	// NullFields is a list of field names (e.g. "ChartType") to include in
2475	// API requests with the JSON null value. By default, fields with empty
2476	// values are omitted from API requests. However, any field with an
2477	// empty value appearing in NullFields will be sent to the server as
2478	// null. It is an error if a field in this list has a non-empty value.
2479	// This may be used to include null fields in Patch requests.
2480	NullFields []string `json:"-"`
2481}
2482
2483func (s *GoogleCloudApigeeV1CustomReport) MarshalJSON() ([]byte, error) {
2484	type NoMethod GoogleCloudApigeeV1CustomReport
2485	raw := NoMethod(*s)
2486	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2487}
2488
2489// GoogleCloudApigeeV1CustomReportMetric: This encapsulates a metric
2490// property of the form sum(message_count) where name is message_count
2491// and function is sum
2492type GoogleCloudApigeeV1CustomReportMetric struct {
2493	// Function: aggregate function
2494	Function string `json:"function,omitempty"`
2495
2496	// Name: name of the metric
2497	Name string `json:"name,omitempty"`
2498
2499	// ForceSendFields is a list of field names (e.g. "Function") to
2500	// unconditionally include in API requests. By default, fields with
2501	// empty values are omitted from API requests. However, any non-pointer,
2502	// non-interface field appearing in ForceSendFields will be sent to the
2503	// server regardless of whether the field is empty or not. This may be
2504	// used to include empty fields in Patch requests.
2505	ForceSendFields []string `json:"-"`
2506
2507	// NullFields is a list of field names (e.g. "Function") to include in
2508	// API requests with the JSON null value. By default, fields with empty
2509	// values are omitted from API requests. However, any field with an
2510	// empty value appearing in NullFields will be sent to the server as
2511	// null. It is an error if a field in this list has a non-empty value.
2512	// This may be used to include null fields in Patch requests.
2513	NullFields []string `json:"-"`
2514}
2515
2516func (s *GoogleCloudApigeeV1CustomReportMetric) MarshalJSON() ([]byte, error) {
2517	type NoMethod GoogleCloudApigeeV1CustomReportMetric
2518	raw := NoMethod(*s)
2519	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2520}
2521
2522// GoogleCloudApigeeV1DataCollector: Data collector configuration.
2523type GoogleCloudApigeeV1DataCollector struct {
2524	// CreatedAt: Output only. The time at which the data collector was
2525	// created in milliseconds since the epoch.
2526	CreatedAt int64 `json:"createdAt,omitempty,string"`
2527
2528	// Description: A description of the data collector.
2529	Description string `json:"description,omitempty"`
2530
2531	// LastModifiedAt: Output only. The time at which the Data Collector was
2532	// last updated in milliseconds since the epoch.
2533	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
2534
2535	// Name: ID of the data collector. Must begin with `dc_`.
2536	Name string `json:"name,omitempty"`
2537
2538	// Type: Immutable. The type of data this data collector will collect.
2539	//
2540	// Possible values:
2541	//   "TYPE_UNSPECIFIED" - For future compatibility.
2542	//   "INTEGER" - For integer values.
2543	//   "FLOAT" - For float values.
2544	//   "STRING" - For string values.
2545	//   "BOOLEAN" - For boolean values.
2546	//   "DATETIME" - For datetime values.
2547	Type string `json:"type,omitempty"`
2548
2549	// ServerResponse contains the HTTP response code and headers from the
2550	// server.
2551	googleapi.ServerResponse `json:"-"`
2552
2553	// ForceSendFields is a list of field names (e.g. "CreatedAt") to
2554	// unconditionally include in API requests. By default, fields with
2555	// empty values are omitted from API requests. However, any non-pointer,
2556	// non-interface field appearing in ForceSendFields will be sent to the
2557	// server regardless of whether the field is empty or not. This may be
2558	// used to include empty fields in Patch requests.
2559	ForceSendFields []string `json:"-"`
2560
2561	// NullFields is a list of field names (e.g. "CreatedAt") to include in
2562	// API requests with the JSON null value. By default, fields with empty
2563	// values are omitted from API requests. However, any field with an
2564	// empty value appearing in NullFields will be sent to the server as
2565	// null. It is an error if a field in this list has a non-empty value.
2566	// This may be used to include null fields in Patch requests.
2567	NullFields []string `json:"-"`
2568}
2569
2570func (s *GoogleCloudApigeeV1DataCollector) MarshalJSON() ([]byte, error) {
2571	type NoMethod GoogleCloudApigeeV1DataCollector
2572	raw := NoMethod(*s)
2573	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2574}
2575
2576// GoogleCloudApigeeV1DataCollectorConfig: Data collector and its
2577// configuration.
2578type GoogleCloudApigeeV1DataCollectorConfig struct {
2579	// Name: Name of the data collector in the following format:
2580	// `organizations/{org}/datacollectors/{datacollector}`
2581	Name string `json:"name,omitempty"`
2582
2583	// Type: Data type accepted by the data collector.
2584	//
2585	// Possible values:
2586	//   "TYPE_UNSPECIFIED" - For future compatibility.
2587	//   "INTEGER" - For integer values.
2588	//   "FLOAT" - For float values.
2589	//   "STRING" - For string values.
2590	//   "BOOLEAN" - For boolean values.
2591	//   "DATETIME" - For datetime values.
2592	Type string `json:"type,omitempty"`
2593
2594	// ForceSendFields is a list of field names (e.g. "Name") to
2595	// unconditionally include in API requests. By default, fields with
2596	// empty values are omitted from API requests. However, any non-pointer,
2597	// non-interface field appearing in ForceSendFields will be sent to the
2598	// server regardless of whether the field is empty or not. This may be
2599	// used to include empty fields in Patch requests.
2600	ForceSendFields []string `json:"-"`
2601
2602	// NullFields is a list of field names (e.g. "Name") to include in API
2603	// requests with the JSON null value. By default, fields with empty
2604	// values are omitted from API requests. However, any field with an
2605	// empty value appearing in NullFields will be sent to the server as
2606	// null. It is an error if a field in this list has a non-empty value.
2607	// This may be used to include null fields in Patch requests.
2608	NullFields []string `json:"-"`
2609}
2610
2611func (s *GoogleCloudApigeeV1DataCollectorConfig) MarshalJSON() ([]byte, error) {
2612	type NoMethod GoogleCloudApigeeV1DataCollectorConfig
2613	raw := NoMethod(*s)
2614	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2615}
2616
2617// GoogleCloudApigeeV1Datastore: The data store defines the connection
2618// to export data repository (Cloud Storage, BigQuery), including the
2619// credentials used to access the data repository.
2620type GoogleCloudApigeeV1Datastore struct {
2621	// CreateTime: Output only. Datastore create time, in milliseconds since
2622	// the epoch of 1970-01-01T00:00:00Z
2623	CreateTime int64 `json:"createTime,omitempty,string"`
2624
2625	// DatastoreConfig: Datastore Configurations.
2626	DatastoreConfig *GoogleCloudApigeeV1DatastoreConfig `json:"datastoreConfig,omitempty"`
2627
2628	// DisplayName: Required. Display name in UI
2629	DisplayName string `json:"displayName,omitempty"`
2630
2631	// LastUpdateTime: Output only. Datastore last update time, in
2632	// milliseconds since the epoch of 1970-01-01T00:00:00Z
2633	LastUpdateTime int64 `json:"lastUpdateTime,omitempty,string"`
2634
2635	// Org: Output only. Organization that the datastore belongs to
2636	Org string `json:"org,omitempty"`
2637
2638	// Self: Output only. Resource link of Datastore. Example:
2639	// `/organizations/{org}/analytics/datastores/{uuid}`
2640	Self string `json:"self,omitempty"`
2641
2642	// TargetType: Destination storage type. Supported types `gcs` or
2643	// `bigquery`.
2644	TargetType string `json:"targetType,omitempty"`
2645
2646	// ServerResponse contains the HTTP response code and headers from the
2647	// server.
2648	googleapi.ServerResponse `json:"-"`
2649
2650	// ForceSendFields is a list of field names (e.g. "CreateTime") to
2651	// unconditionally include in API requests. By default, fields with
2652	// empty values are omitted from API requests. However, any non-pointer,
2653	// non-interface field appearing in ForceSendFields will be sent to the
2654	// server regardless of whether the field is empty or not. This may be
2655	// used to include empty fields in Patch requests.
2656	ForceSendFields []string `json:"-"`
2657
2658	// NullFields is a list of field names (e.g. "CreateTime") to include in
2659	// API requests with the JSON null value. By default, fields with empty
2660	// values are omitted from API requests. However, any field with an
2661	// empty value appearing in NullFields will be sent to the server as
2662	// null. It is an error if a field in this list has a non-empty value.
2663	// This may be used to include null fields in Patch requests.
2664	NullFields []string `json:"-"`
2665}
2666
2667func (s *GoogleCloudApigeeV1Datastore) MarshalJSON() ([]byte, error) {
2668	type NoMethod GoogleCloudApigeeV1Datastore
2669	raw := NoMethod(*s)
2670	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2671}
2672
2673// GoogleCloudApigeeV1DatastoreConfig: Configuration detail for
2674// datastore
2675type GoogleCloudApigeeV1DatastoreConfig struct {
2676	// BucketName: Name of the Cloud Storage bucket. Required for `gcs`
2677	// target_type.
2678	BucketName string `json:"bucketName,omitempty"`
2679
2680	// DatasetName: BigQuery dataset name Required for `bigquery`
2681	// target_type.
2682	DatasetName string `json:"datasetName,omitempty"`
2683
2684	// Path: Path of Cloud Storage bucket Required for `gcs` target_type.
2685	Path string `json:"path,omitempty"`
2686
2687	// ProjectId: Required. GCP project in which the datastore exists
2688	ProjectId string `json:"projectId,omitempty"`
2689
2690	// TablePrefix: Prefix of BigQuery table Required for `bigquery`
2691	// target_type.
2692	TablePrefix string `json:"tablePrefix,omitempty"`
2693
2694	// ForceSendFields is a list of field names (e.g. "BucketName") to
2695	// unconditionally include in API requests. By default, fields with
2696	// empty values are omitted from API requests. However, any non-pointer,
2697	// non-interface field appearing in ForceSendFields will be sent to the
2698	// server regardless of whether the field is empty or not. This may be
2699	// used to include empty fields in Patch requests.
2700	ForceSendFields []string `json:"-"`
2701
2702	// NullFields is a list of field names (e.g. "BucketName") to include in
2703	// API requests with the JSON null value. By default, fields with empty
2704	// values are omitted from API requests. However, any field with an
2705	// empty value appearing in NullFields will be sent to the server as
2706	// null. It is an error if a field in this list has a non-empty value.
2707	// This may be used to include null fields in Patch requests.
2708	NullFields []string `json:"-"`
2709}
2710
2711func (s *GoogleCloudApigeeV1DatastoreConfig) MarshalJSON() ([]byte, error) {
2712	type NoMethod GoogleCloudApigeeV1DatastoreConfig
2713	raw := NoMethod(*s)
2714	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2715}
2716
2717// GoogleCloudApigeeV1DateRange: Date range of the data to export.
2718type GoogleCloudApigeeV1DateRange struct {
2719	// End: Required. End date (exclusive) of the data to export in the
2720	// format `yyyy-mm-dd`. The date range ends at 00:00:00 UTC on the end
2721	// date- which will not be in the output.
2722	End string `json:"end,omitempty"`
2723
2724	// Start: Required. Start date of the data to export in the format
2725	// `yyyy-mm-dd`. The date range begins at 00:00:00 UTC on the start
2726	// date.
2727	Start string `json:"start,omitempty"`
2728
2729	// ForceSendFields is a list of field names (e.g. "End") to
2730	// unconditionally include in API requests. By default, fields with
2731	// empty values are omitted from API requests. However, any non-pointer,
2732	// non-interface field appearing in ForceSendFields will be sent to the
2733	// server regardless of whether the field is empty or not. This may be
2734	// used to include empty fields in Patch requests.
2735	ForceSendFields []string `json:"-"`
2736
2737	// NullFields is a list of field names (e.g. "End") to include in API
2738	// requests with the JSON null value. By default, fields with empty
2739	// values are omitted from API requests. However, any field with an
2740	// empty value appearing in NullFields will be sent to the server as
2741	// null. It is an error if a field in this list has a non-empty value.
2742	// This may be used to include null fields in Patch requests.
2743	NullFields []string `json:"-"`
2744}
2745
2746func (s *GoogleCloudApigeeV1DateRange) MarshalJSON() ([]byte, error) {
2747	type NoMethod GoogleCloudApigeeV1DateRange
2748	raw := NoMethod(*s)
2749	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2750}
2751
2752type GoogleCloudApigeeV1DebugMask struct {
2753	// FaultJSONPaths: List of JSON paths that specify the JSON elements to
2754	// be filtered from JSON payloads in error flows.
2755	FaultJSONPaths []string `json:"faultJSONPaths,omitempty"`
2756
2757	// FaultXPaths: List of XPaths that specify the XML elements to be
2758	// filtered from XML payloads in error flows.
2759	FaultXPaths []string `json:"faultXPaths,omitempty"`
2760
2761	// Name: Name of the debug mask.
2762	Name string `json:"name,omitempty"`
2763
2764	// Namespaces: Map of namespaces to URIs.
2765	Namespaces map[string]string `json:"namespaces,omitempty"`
2766
2767	// RequestJSONPaths: List of JSON paths that specify the JSON elements
2768	// to be filtered from JSON request message payloads.
2769	RequestJSONPaths []string `json:"requestJSONPaths,omitempty"`
2770
2771	// RequestXPaths: List of XPaths that specify the XML elements to be
2772	// filtered from XML request message payloads.
2773	RequestXPaths []string `json:"requestXPaths,omitempty"`
2774
2775	// ResponseJSONPaths: List of JSON paths that specify the JSON elements
2776	// to be filtered from JSON response message payloads.
2777	ResponseJSONPaths []string `json:"responseJSONPaths,omitempty"`
2778
2779	// ResponseXPaths: List of XPaths that specify the XML elements to be
2780	// filtered from XML response message payloads.
2781	ResponseXPaths []string `json:"responseXPaths,omitempty"`
2782
2783	// Variables: List of variables that should be masked from the debug
2784	// output.
2785	Variables []string `json:"variables,omitempty"`
2786
2787	// ServerResponse contains the HTTP response code and headers from the
2788	// server.
2789	googleapi.ServerResponse `json:"-"`
2790
2791	// ForceSendFields is a list of field names (e.g. "FaultJSONPaths") to
2792	// unconditionally include in API requests. By default, fields with
2793	// empty values are omitted from API requests. However, any non-pointer,
2794	// non-interface field appearing in ForceSendFields will be sent to the
2795	// server regardless of whether the field is empty or not. This may be
2796	// used to include empty fields in Patch requests.
2797	ForceSendFields []string `json:"-"`
2798
2799	// NullFields is a list of field names (e.g. "FaultJSONPaths") to
2800	// include in API requests with the JSON null value. By default, fields
2801	// with empty values are omitted from API requests. However, any field
2802	// with an empty value appearing in NullFields will be sent to the
2803	// server as null. It is an error if a field in this list has a
2804	// non-empty value. This may be used to include null fields in Patch
2805	// requests.
2806	NullFields []string `json:"-"`
2807}
2808
2809func (s *GoogleCloudApigeeV1DebugMask) MarshalJSON() ([]byte, error) {
2810	type NoMethod GoogleCloudApigeeV1DebugMask
2811	raw := NoMethod(*s)
2812	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2813}
2814
2815type GoogleCloudApigeeV1DebugSession struct {
2816	// Count: Optional. The number of request to be traced. Min = 1, Max =
2817	// 15, Default = 10.
2818	Count int64 `json:"count,omitempty"`
2819
2820	// Filter: Optional. A conditional statement which is evaluated against
2821	// the request message to determine if it should be traced. Syntax
2822	// matches that of on API Proxy bundle flow Condition.
2823	Filter string `json:"filter,omitempty"`
2824
2825	// Name: A unique ID for this DebugSession.
2826	Name string `json:"name,omitempty"`
2827
2828	// Timeout: Optional. The time in seconds after which this DebugSession
2829	// should end. This value will override the value in query param, if
2830	// both are provided.
2831	Timeout int64 `json:"timeout,omitempty,string"`
2832
2833	// Tracesize: Optional. The maximum number of bytes captured from the
2834	// response payload. Min = 0, Max = 5120, Default = 5120.
2835	Tracesize int64 `json:"tracesize,omitempty"`
2836
2837	// Validity: Optional. The length of time, in seconds, that this debug
2838	// session is valid, starting from when it's received in the control
2839	// plane. Min = 1, Max = 15, Default = 10.
2840	Validity int64 `json:"validity,omitempty"`
2841
2842	// ServerResponse contains the HTTP response code and headers from the
2843	// server.
2844	googleapi.ServerResponse `json:"-"`
2845
2846	// ForceSendFields is a list of field names (e.g. "Count") to
2847	// unconditionally include in API requests. By default, fields with
2848	// empty values are omitted from API requests. However, any non-pointer,
2849	// non-interface field appearing in ForceSendFields will be sent to the
2850	// server regardless of whether the field is empty or not. This may be
2851	// used to include empty fields in Patch requests.
2852	ForceSendFields []string `json:"-"`
2853
2854	// NullFields is a list of field names (e.g. "Count") to include in API
2855	// requests with the JSON null value. By default, fields with empty
2856	// values are omitted from API requests. However, any field with an
2857	// empty value appearing in NullFields will be sent to the server as
2858	// null. It is an error if a field in this list has a non-empty value.
2859	// This may be used to include null fields in Patch requests.
2860	NullFields []string `json:"-"`
2861}
2862
2863func (s *GoogleCloudApigeeV1DebugSession) MarshalJSON() ([]byte, error) {
2864	type NoMethod GoogleCloudApigeeV1DebugSession
2865	raw := NoMethod(*s)
2866	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2867}
2868
2869// GoogleCloudApigeeV1DebugSessionTransaction: A transaction contains
2870// all of the debug information of the entire message flow of an API
2871// call processed by the runtime plane. The information is collected and
2872// recorded at critical points of the message flow in the runtime
2873// apiproxy.
2874type GoogleCloudApigeeV1DebugSessionTransaction struct {
2875	// Completed: Flag indicating whether a transaction is completed or not
2876	Completed bool `json:"completed,omitempty"`
2877
2878	// Point: List of debug data collected by runtime plane at various
2879	// defined points in the flow.
2880	Point []*GoogleCloudApigeeV1Point `json:"point,omitempty"`
2881
2882	// ServerResponse contains the HTTP response code and headers from the
2883	// server.
2884	googleapi.ServerResponse `json:"-"`
2885
2886	// ForceSendFields is a list of field names (e.g. "Completed") to
2887	// unconditionally include in API requests. By default, fields with
2888	// empty values are omitted from API requests. However, any non-pointer,
2889	// non-interface field appearing in ForceSendFields will be sent to the
2890	// server regardless of whether the field is empty or not. This may be
2891	// used to include empty fields in Patch requests.
2892	ForceSendFields []string `json:"-"`
2893
2894	// NullFields is a list of field names (e.g. "Completed") to include in
2895	// API requests with the JSON null value. By default, fields with empty
2896	// values are omitted from API requests. However, any field with an
2897	// empty value appearing in NullFields will be sent to the server as
2898	// null. It is an error if a field in this list has a non-empty value.
2899	// This may be used to include null fields in Patch requests.
2900	NullFields []string `json:"-"`
2901}
2902
2903func (s *GoogleCloudApigeeV1DebugSessionTransaction) MarshalJSON() ([]byte, error) {
2904	type NoMethod GoogleCloudApigeeV1DebugSessionTransaction
2905	raw := NoMethod(*s)
2906	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2907}
2908
2909type GoogleCloudApigeeV1DeleteCustomReportResponse struct {
2910	// Message: The response contains only a message field.
2911	Message string `json:"message,omitempty"`
2912
2913	// ServerResponse contains the HTTP response code and headers from the
2914	// server.
2915	googleapi.ServerResponse `json:"-"`
2916
2917	// ForceSendFields is a list of field names (e.g. "Message") to
2918	// unconditionally include in API requests. By default, fields with
2919	// empty values are omitted from API requests. However, any non-pointer,
2920	// non-interface field appearing in ForceSendFields will be sent to the
2921	// server regardless of whether the field is empty or not. This may be
2922	// used to include empty fields in Patch requests.
2923	ForceSendFields []string `json:"-"`
2924
2925	// NullFields is a list of field names (e.g. "Message") to include in
2926	// API requests with the JSON null value. By default, fields with empty
2927	// values are omitted from API requests. However, any field with an
2928	// empty value appearing in NullFields will be sent to the server as
2929	// null. It is an error if a field in this list has a non-empty value.
2930	// This may be used to include null fields in Patch requests.
2931	NullFields []string `json:"-"`
2932}
2933
2934func (s *GoogleCloudApigeeV1DeleteCustomReportResponse) MarshalJSON() ([]byte, error) {
2935	type NoMethod GoogleCloudApigeeV1DeleteCustomReportResponse
2936	raw := NoMethod(*s)
2937	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2938}
2939
2940type GoogleCloudApigeeV1Deployment struct {
2941	// ApiProxy: API proxy.
2942	ApiProxy string `json:"apiProxy,omitempty"`
2943
2944	// DeployStartTime: Time the API proxy was marked `deployed` in the
2945	// control plane in millisconds since epoch.
2946	DeployStartTime int64 `json:"deployStartTime,omitempty,string"`
2947
2948	// Environment: Environment.
2949	Environment string `json:"environment,omitempty"`
2950
2951	// Errors: Errors reported for this deployment. Populated only when
2952	// state == ERROR. This field is not populated in List APIs.
2953	Errors []*GoogleRpcStatus `json:"errors,omitempty"`
2954
2955	// Instances: Status reported by each runtime instance. This field is
2956	// not populated in List APIs.
2957	Instances []*GoogleCloudApigeeV1InstanceDeploymentStatus `json:"instances,omitempty"`
2958
2959	// Pods: Status reported by runtime pods. This field is not populated
2960	// for List APIs. **Note**: **This field is deprecated**. Runtime
2961	// versions 1.3 and above report instance level status rather than pod
2962	// status.
2963	Pods []*GoogleCloudApigeeV1PodStatus `json:"pods,omitempty"`
2964
2965	// Revision: API proxy revision.
2966	Revision string `json:"revision,omitempty"`
2967
2968	// RouteConflicts: Conflicts in the desired state routing configuration.
2969	// The presence of conflicts does not cause the state to be `ERROR`, but
2970	// it will mean that some of the deployment's base paths are not routed
2971	// to its environment. If the conflicts change, the state will
2972	// transition to `PROGRESSING` until the latest configuration is rolled
2973	// out to all instances. This field is not populated in List APIs.
2974	RouteConflicts []*GoogleCloudApigeeV1DeploymentChangeReportRoutingConflict `json:"routeConflicts,omitempty"`
2975
2976	// State: Current state of the deployment. This field is not populated
2977	// in List APIs.
2978	//
2979	// Possible values:
2980	//   "RUNTIME_STATE_UNSPECIFIED" - This value should never be returned.
2981	//   "READY" - Runtime has loaded the deployment.
2982	//   "PROGRESSING" - Deployment is not fully ready in the runtime.
2983	//   "ERROR" - Encountered an error with the deployment that requires
2984	// intervention.
2985	State string `json:"state,omitempty"`
2986
2987	// ServerResponse contains the HTTP response code and headers from the
2988	// server.
2989	googleapi.ServerResponse `json:"-"`
2990
2991	// ForceSendFields is a list of field names (e.g. "ApiProxy") to
2992	// unconditionally include in API requests. By default, fields with
2993	// empty values are omitted from API requests. However, any non-pointer,
2994	// non-interface field appearing in ForceSendFields will be sent to the
2995	// server regardless of whether the field is empty or not. This may be
2996	// used to include empty fields in Patch requests.
2997	ForceSendFields []string `json:"-"`
2998
2999	// NullFields is a list of field names (e.g. "ApiProxy") to include in
3000	// API requests with the JSON null value. By default, fields with empty
3001	// values are omitted from API requests. However, any field with an
3002	// empty value appearing in NullFields will be sent to the server as
3003	// null. It is an error if a field in this list has a non-empty value.
3004	// This may be used to include null fields in Patch requests.
3005	NullFields []string `json:"-"`
3006}
3007
3008func (s *GoogleCloudApigeeV1Deployment) MarshalJSON() ([]byte, error) {
3009	type NoMethod GoogleCloudApigeeV1Deployment
3010	raw := NoMethod(*s)
3011	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3012}
3013
3014// GoogleCloudApigeeV1DeploymentChangeReport: Response for
3015// GenerateDeployChangeReport and GenerateUndeployChangeReport. This
3016// report contains any validation failures that would cause the
3017// deployment to be rejected, as well changes and conflicts in routing
3018// that may occur due to the new deployment. The existence of a routing
3019// warning does not necessarily imply that the deployment request is
3020// bad, if the desired state of the deployment request is to effect a
3021// routing change. The primary purposes of the routing messages are: 1)
3022// To inform users of routing changes that may have an effect on traffic
3023// currently being routed to other existing deployments. 2) To warn
3024// users if some base path in the proxy will not receive traffic due to
3025// an existing deployment having already claimed that base path. The
3026// presence of routing conflicts/changes will not cause non-dry-run
3027// DeployApiProxy/UndeployApiProxy requests to be rejected.
3028type GoogleCloudApigeeV1DeploymentChangeReport struct {
3029	// RoutingChanges: All routing changes that may result from a deployment
3030	// request.
3031	RoutingChanges []*GoogleCloudApigeeV1DeploymentChangeReportRoutingChange `json:"routingChanges,omitempty"`
3032
3033	// RoutingConflicts: All base path conflicts detected for a deployment
3034	// request.
3035	RoutingConflicts []*GoogleCloudApigeeV1DeploymentChangeReportRoutingConflict `json:"routingConflicts,omitempty"`
3036
3037	// ValidationErrors: Validation errors that would cause the deployment
3038	// change request to be rejected.
3039	ValidationErrors *GoogleRpcPreconditionFailure `json:"validationErrors,omitempty"`
3040
3041	// ServerResponse contains the HTTP response code and headers from the
3042	// server.
3043	googleapi.ServerResponse `json:"-"`
3044
3045	// ForceSendFields is a list of field names (e.g. "RoutingChanges") to
3046	// unconditionally include in API requests. By default, fields with
3047	// empty values are omitted from API requests. However, any non-pointer,
3048	// non-interface field appearing in ForceSendFields will be sent to the
3049	// server regardless of whether the field is empty or not. This may be
3050	// used to include empty fields in Patch requests.
3051	ForceSendFields []string `json:"-"`
3052
3053	// NullFields is a list of field names (e.g. "RoutingChanges") to
3054	// include in API requests with the JSON null value. By default, fields
3055	// with empty values are omitted from API requests. However, any field
3056	// with an empty value appearing in NullFields will be sent to the
3057	// server as null. It is an error if a field in this list has a
3058	// non-empty value. This may be used to include null fields in Patch
3059	// requests.
3060	NullFields []string `json:"-"`
3061}
3062
3063func (s *GoogleCloudApigeeV1DeploymentChangeReport) MarshalJSON() ([]byte, error) {
3064	type NoMethod GoogleCloudApigeeV1DeploymentChangeReport
3065	raw := NoMethod(*s)
3066	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3067}
3068
3069// GoogleCloudApigeeV1DeploymentChangeReportRoutingChange: Describes a
3070// potential routing change that may occur as a result of some
3071// deployment operation.
3072type GoogleCloudApigeeV1DeploymentChangeReportRoutingChange struct {
3073	// Description: Human-readable description of this routing change.
3074	Description string `json:"description,omitempty"`
3075
3076	// EnvironmentGroup: Name of the environment group affected by this
3077	// routing change.
3078	EnvironmentGroup string `json:"environmentGroup,omitempty"`
3079
3080	// FromDeployment: Base path/deployment that may stop receiving some
3081	// traffic.
3082	FromDeployment *GoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment `json:"fromDeployment,omitempty"`
3083
3084	// ShouldSequenceRollout: Set to `true` if using sequenced rollout would
3085	// make this routing change safer. **Note**: This does not necessarily
3086	// imply that automated sequenced rollout mode is supported for the
3087	// operation.
3088	ShouldSequenceRollout bool `json:"shouldSequenceRollout,omitempty"`
3089
3090	// ToDeployment: Base path/deployment that may start receiving that
3091	// traffic. May be null if no deployment is able to receive the traffic.
3092	ToDeployment *GoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment `json:"toDeployment,omitempty"`
3093
3094	// ForceSendFields is a list of field names (e.g. "Description") to
3095	// unconditionally include in API requests. By default, fields with
3096	// empty values are omitted from API requests. However, any non-pointer,
3097	// non-interface field appearing in ForceSendFields will be sent to the
3098	// server regardless of whether the field is empty or not. This may be
3099	// used to include empty fields in Patch requests.
3100	ForceSendFields []string `json:"-"`
3101
3102	// NullFields is a list of field names (e.g. "Description") to include
3103	// in API requests with the JSON null value. By default, fields with
3104	// empty values are omitted from API requests. However, any field with
3105	// an empty value appearing in NullFields will be sent to the server as
3106	// null. It is an error if a field in this list has a non-empty value.
3107	// This may be used to include null fields in Patch requests.
3108	NullFields []string `json:"-"`
3109}
3110
3111func (s *GoogleCloudApigeeV1DeploymentChangeReportRoutingChange) MarshalJSON() ([]byte, error) {
3112	type NoMethod GoogleCloudApigeeV1DeploymentChangeReportRoutingChange
3113	raw := NoMethod(*s)
3114	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3115}
3116
3117// GoogleCloudApigeeV1DeploymentChangeReportRoutingConflict: Describes a
3118// routing conflict that may cause a deployment not to receive traffic
3119// at some base path.
3120type GoogleCloudApigeeV1DeploymentChangeReportRoutingConflict struct {
3121	// ConflictingDeployment: Existing base path/deployment causing the
3122	// conflict.
3123	ConflictingDeployment *GoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment `json:"conflictingDeployment,omitempty"`
3124
3125	// Description: Human-readable description of this conflict.
3126	Description string `json:"description,omitempty"`
3127
3128	// EnvironmentGroup: Name of the environment group in which this
3129	// conflict exists.
3130	EnvironmentGroup string `json:"environmentGroup,omitempty"`
3131
3132	// ForceSendFields is a list of field names (e.g.
3133	// "ConflictingDeployment") to unconditionally include in API requests.
3134	// By default, fields with empty values are omitted from API requests.
3135	// However, any non-pointer, non-interface field appearing in
3136	// ForceSendFields will be sent to the server regardless of whether the
3137	// field is empty or not. This may be used to include empty fields in
3138	// Patch requests.
3139	ForceSendFields []string `json:"-"`
3140
3141	// NullFields is a list of field names (e.g. "ConflictingDeployment") to
3142	// include in API requests with the JSON null value. By default, fields
3143	// with empty values are omitted from API requests. However, any field
3144	// with an empty value appearing in NullFields will be sent to the
3145	// server as null. It is an error if a field in this list has a
3146	// non-empty value. This may be used to include null fields in Patch
3147	// requests.
3148	NullFields []string `json:"-"`
3149}
3150
3151func (s *GoogleCloudApigeeV1DeploymentChangeReportRoutingConflict) MarshalJSON() ([]byte, error) {
3152	type NoMethod GoogleCloudApigeeV1DeploymentChangeReportRoutingConflict
3153	raw := NoMethod(*s)
3154	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3155}
3156
3157// GoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment: Tuple
3158// representing a base path and the deployment containing it.
3159type GoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment struct {
3160	// ApiProxy: Name of the deployed API proxy revision containing the base
3161	// path.
3162	ApiProxy string `json:"apiProxy,omitempty"`
3163
3164	// Basepath: Base path receiving traffic.
3165	Basepath string `json:"basepath,omitempty"`
3166
3167	// Environment: Name of the environment in which the proxy is deployed.
3168	Environment string `json:"environment,omitempty"`
3169
3170	// Revision: Name of the deployed API proxy revision containing the base
3171	// path.
3172	Revision string `json:"revision,omitempty"`
3173
3174	// ForceSendFields is a list of field names (e.g. "ApiProxy") to
3175	// unconditionally include in API requests. By default, fields with
3176	// empty values are omitted from API requests. However, any non-pointer,
3177	// non-interface field appearing in ForceSendFields will be sent to the
3178	// server regardless of whether the field is empty or not. This may be
3179	// used to include empty fields in Patch requests.
3180	ForceSendFields []string `json:"-"`
3181
3182	// NullFields is a list of field names (e.g. "ApiProxy") to include in
3183	// API requests with the JSON null value. By default, fields with empty
3184	// values are omitted from API requests. However, any field with an
3185	// empty value appearing in NullFields will be sent to the server as
3186	// null. It is an error if a field in this list has a non-empty value.
3187	// This may be used to include null fields in Patch requests.
3188	NullFields []string `json:"-"`
3189}
3190
3191func (s *GoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment) MarshalJSON() ([]byte, error) {
3192	type NoMethod GoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment
3193	raw := NoMethod(*s)
3194	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3195}
3196
3197type GoogleCloudApigeeV1DeploymentConfig struct {
3198	// Attributes: Additional key-value metadata for the deployment.
3199	Attributes map[string]string `json:"attributes,omitempty"`
3200
3201	// BasePath: Base path where the application will be hosted. Defaults to
3202	// "/".
3203	BasePath string `json:"basePath,omitempty"`
3204
3205	// Location: Location of the API proxy bundle as a URI.
3206	Location string `json:"location,omitempty"`
3207
3208	// Name: Name of the API or shared flow revision to be deployed in the
3209	// following format: `organizations/{org}/apis/{api}/revisions/{rev}` or
3210	// `organizations/{org}/sharedflows/{sharedflow}/revisions/{rev}`
3211	Name string `json:"name,omitempty"`
3212
3213	// ProxyUid: Unique ID of the API proxy revision.
3214	ProxyUid string `json:"proxyUid,omitempty"`
3215
3216	// Uid: Unique ID. The ID will only change if the deployment is deleted
3217	// and recreated.
3218	Uid string `json:"uid,omitempty"`
3219
3220	// ForceSendFields is a list of field names (e.g. "Attributes") to
3221	// unconditionally include in API requests. By default, fields with
3222	// empty values are omitted from API requests. However, any non-pointer,
3223	// non-interface field appearing in ForceSendFields will be sent to the
3224	// server regardless of whether the field is empty or not. This may be
3225	// used to include empty fields in Patch requests.
3226	ForceSendFields []string `json:"-"`
3227
3228	// NullFields is a list of field names (e.g. "Attributes") to include in
3229	// API requests with the JSON null value. By default, fields with empty
3230	// values are omitted from API requests. However, any field with an
3231	// empty value appearing in NullFields will be sent to the server as
3232	// null. It is an error if a field in this list has a non-empty value.
3233	// This may be used to include null fields in Patch requests.
3234	NullFields []string `json:"-"`
3235}
3236
3237func (s *GoogleCloudApigeeV1DeploymentConfig) MarshalJSON() ([]byte, error) {
3238	type NoMethod GoogleCloudApigeeV1DeploymentConfig
3239	raw := NoMethod(*s)
3240	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3241}
3242
3243type GoogleCloudApigeeV1Developer struct {
3244	// AccessType: Access type.
3245	AccessType string `json:"accessType,omitempty"`
3246
3247	// AppFamily: Developer app family.
3248	AppFamily string `json:"appFamily,omitempty"`
3249
3250	// Apps: List of apps associated with the developer.
3251	Apps []string `json:"apps,omitempty"`
3252
3253	// Attributes: Optional. Developer attributes (name/value pairs). The
3254	// custom attribute limit is 18.
3255	Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
3256
3257	// Companies: List of companies associated with the developer.
3258	Companies []string `json:"companies,omitempty"`
3259
3260	// CreatedAt: Output only. Time at which the developer was created in
3261	// milliseconds since epoch.
3262	CreatedAt int64 `json:"createdAt,omitempty,string"`
3263
3264	// DeveloperId: ID of the developer. **Note**: IDs are generated
3265	// internally by Apigee and are not guaranteed to stay the same over
3266	// time.
3267	DeveloperId string `json:"developerId,omitempty"`
3268
3269	// Email: Required. Email address of the developer. This value is used
3270	// to uniquely identify the developer in Apigee hybrid. Note that the
3271	// email address has to be in lowercase only.
3272	Email string `json:"email,omitempty"`
3273
3274	// FirstName: Required. First name of the developer.
3275	FirstName string `json:"firstName,omitempty"`
3276
3277	// LastModifiedAt: Output only. Time at which the developer was last
3278	// modified in milliseconds since epoch.
3279	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
3280
3281	// LastName: Required. Last name of the developer.
3282	LastName string `json:"lastName,omitempty"`
3283
3284	// OrganizationName: Output only. Name of the Apigee organization in
3285	// which the developer resides.
3286	OrganizationName string `json:"organizationName,omitempty"`
3287
3288	// Status: Output only. Status of the developer. Valid values are
3289	// `active` and `inactive`.
3290	Status string `json:"status,omitempty"`
3291
3292	// UserName: Required. User name of the developer. Not used by Apigee
3293	// hybrid.
3294	UserName string `json:"userName,omitempty"`
3295
3296	// ServerResponse contains the HTTP response code and headers from the
3297	// server.
3298	googleapi.ServerResponse `json:"-"`
3299
3300	// ForceSendFields is a list of field names (e.g. "AccessType") to
3301	// unconditionally include in API requests. By default, fields with
3302	// empty values are omitted from API requests. However, any non-pointer,
3303	// non-interface field appearing in ForceSendFields will be sent to the
3304	// server regardless of whether the field is empty or not. This may be
3305	// used to include empty fields in Patch requests.
3306	ForceSendFields []string `json:"-"`
3307
3308	// NullFields is a list of field names (e.g. "AccessType") to include in
3309	// API requests with the JSON null value. By default, fields with empty
3310	// values are omitted from API requests. However, any field with an
3311	// empty value appearing in NullFields will be sent to the server as
3312	// null. It is an error if a field in this list has a non-empty value.
3313	// This may be used to include null fields in Patch requests.
3314	NullFields []string `json:"-"`
3315}
3316
3317func (s *GoogleCloudApigeeV1Developer) MarshalJSON() ([]byte, error) {
3318	type NoMethod GoogleCloudApigeeV1Developer
3319	raw := NoMethod(*s)
3320	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3321}
3322
3323type GoogleCloudApigeeV1DeveloperApp struct {
3324	// ApiProducts: List of API products associated with the developer app.
3325	ApiProducts []string `json:"apiProducts,omitempty"`
3326
3327	// AppFamily: Developer app family.
3328	AppFamily string `json:"appFamily,omitempty"`
3329
3330	// AppId: ID of the developer app.
3331	AppId string `json:"appId,omitempty"`
3332
3333	// Attributes: List of attributes for the developer app.
3334	Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
3335
3336	// CallbackUrl: Callback URL used by OAuth 2.0 authorization servers to
3337	// communicate authorization codes back to developer apps.
3338	CallbackUrl string `json:"callbackUrl,omitempty"`
3339
3340	// CreatedAt: Output only. Time the developer app was created in
3341	// milliseconds since epoch.
3342	CreatedAt int64 `json:"createdAt,omitempty,string"`
3343
3344	// Credentials: Output only. Set of credentials for the developer app
3345	// consisting of the consumer key/secret pairs associated with the API
3346	// products.
3347	Credentials []*GoogleCloudApigeeV1Credential `json:"credentials,omitempty"`
3348
3349	// DeveloperId: ID of the developer.
3350	DeveloperId string `json:"developerId,omitempty"`
3351
3352	// KeyExpiresIn: Expiration time, in milliseconds, for the consumer key
3353	// that is generated for the developer app. If not set or left to the
3354	// default value of `-1`, the API key never expires. The expiration time
3355	// can't be updated after it is set.
3356	KeyExpiresIn int64 `json:"keyExpiresIn,omitempty,string"`
3357
3358	// LastModifiedAt: Output only. Time the developer app was modified in
3359	// milliseconds since epoch.
3360	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
3361
3362	// Name: Name of the developer app.
3363	Name string `json:"name,omitempty"`
3364
3365	// Scopes: Scopes to apply to the developer app. The specified scopes
3366	// must already exist for the API product that you associate with the
3367	// developer app.
3368	Scopes []string `json:"scopes,omitempty"`
3369
3370	// Status: Status of the credential. Valid values include `approved` or
3371	// `revoked`.
3372	Status string `json:"status,omitempty"`
3373
3374	// ServerResponse contains the HTTP response code and headers from the
3375	// server.
3376	googleapi.ServerResponse `json:"-"`
3377
3378	// ForceSendFields is a list of field names (e.g. "ApiProducts") to
3379	// unconditionally include in API requests. By default, fields with
3380	// empty values are omitted from API requests. However, any non-pointer,
3381	// non-interface field appearing in ForceSendFields will be sent to the
3382	// server regardless of whether the field is empty or not. This may be
3383	// used to include empty fields in Patch requests.
3384	ForceSendFields []string `json:"-"`
3385
3386	// NullFields is a list of field names (e.g. "ApiProducts") to include
3387	// in API requests with the JSON null value. By default, fields with
3388	// empty values are omitted from API requests. However, any field with
3389	// an empty value appearing in NullFields will be sent to the server as
3390	// null. It is an error if a field in this list has a non-empty value.
3391	// This may be used to include null fields in Patch requests.
3392	NullFields []string `json:"-"`
3393}
3394
3395func (s *GoogleCloudApigeeV1DeveloperApp) MarshalJSON() ([]byte, error) {
3396	type NoMethod GoogleCloudApigeeV1DeveloperApp
3397	raw := NoMethod(*s)
3398	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3399}
3400
3401type GoogleCloudApigeeV1DeveloperAppKey struct {
3402	// ApiProducts: List of API products for which the credential can be
3403	// used. **Note**: Do not specify the list of API products when creating
3404	// a consumer key and secret for a developer app. Instead, use the
3405	// UpdateDeveloperAppKey API to make the association after the consumer
3406	// key and secret are created.
3407	ApiProducts []interface{} `json:"apiProducts,omitempty"`
3408
3409	// Attributes: List of attributes associated with the credential.
3410	Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
3411
3412	// ConsumerKey: Consumer key.
3413	ConsumerKey string `json:"consumerKey,omitempty"`
3414
3415	// ConsumerSecret: Secret key.
3416	ConsumerSecret string `json:"consumerSecret,omitempty"`
3417
3418	// ExpiresAt: Time the developer app expires in milliseconds since
3419	// epoch.
3420	ExpiresAt int64 `json:"expiresAt,omitempty,string"`
3421
3422	// ExpiresInSeconds: Input only. Expiration time, in seconds, for the
3423	// consumer key. If not set or left to the default value of `-1`, the
3424	// API key never expires. The expiration time can't be updated after it
3425	// is set.
3426	ExpiresInSeconds int64 `json:"expiresInSeconds,omitempty,string"`
3427
3428	// IssuedAt: Time the developer app was created in milliseconds since
3429	// epoch.
3430	IssuedAt int64 `json:"issuedAt,omitempty,string"`
3431
3432	// Scopes: Scopes to apply to the app. The specified scope names must
3433	// already be defined for the API product that you associate with the
3434	// app.
3435	Scopes []string `json:"scopes,omitempty"`
3436
3437	// Status: Status of the credential. Valid values include `approved` or
3438	// `revoked`.
3439	Status string `json:"status,omitempty"`
3440
3441	// ServerResponse contains the HTTP response code and headers from the
3442	// server.
3443	googleapi.ServerResponse `json:"-"`
3444
3445	// ForceSendFields is a list of field names (e.g. "ApiProducts") to
3446	// unconditionally include in API requests. By default, fields with
3447	// empty values are omitted from API requests. However, any non-pointer,
3448	// non-interface field appearing in ForceSendFields will be sent to the
3449	// server regardless of whether the field is empty or not. This may be
3450	// used to include empty fields in Patch requests.
3451	ForceSendFields []string `json:"-"`
3452
3453	// NullFields is a list of field names (e.g. "ApiProducts") to include
3454	// in API requests with the JSON null value. By default, fields with
3455	// empty values are omitted from API requests. However, any field with
3456	// an empty value appearing in NullFields will be sent to the server as
3457	// null. It is an error if a field in this list has a non-empty value.
3458	// This may be used to include null fields in Patch requests.
3459	NullFields []string `json:"-"`
3460}
3461
3462func (s *GoogleCloudApigeeV1DeveloperAppKey) MarshalJSON() ([]byte, error) {
3463	type NoMethod GoogleCloudApigeeV1DeveloperAppKey
3464	raw := NoMethod(*s)
3465	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3466}
3467
3468// GoogleCloudApigeeV1DeveloperSubscription: Structure of a
3469// DeveloperSubscription.
3470type GoogleCloudApigeeV1DeveloperSubscription struct {
3471	// Apiproduct: Name of the API product for which the developer is
3472	// purchasing a subscription.
3473	Apiproduct string `json:"apiproduct,omitempty"`
3474
3475	// CreatedAt: Output only. Time when the API product subscription was
3476	// created in milliseconds since epoch.
3477	CreatedAt int64 `json:"createdAt,omitempty,string"`
3478
3479	// EndTime: Time when the API product subscription ends in milliseconds
3480	// since epoch.
3481	EndTime int64 `json:"endTime,omitempty,string"`
3482
3483	// LastModifiedAt: Output only. Time when the API product subscription
3484	// was last modified in milliseconds since epoch.
3485	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
3486
3487	// Name: Output only. Name of the API product subscription.
3488	Name string `json:"name,omitempty"`
3489
3490	// StartTime: Time when the API product subscription starts in
3491	// milliseconds since epoch.
3492	StartTime int64 `json:"startTime,omitempty,string"`
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. "Apiproduct") to
3499	// unconditionally include in API requests. By default, fields with
3500	// empty values are omitted from API requests. However, any non-pointer,
3501	// non-interface field appearing in ForceSendFields will be sent to the
3502	// server regardless of whether the field is empty or not. This may be
3503	// used to include empty fields in Patch requests.
3504	ForceSendFields []string `json:"-"`
3505
3506	// NullFields is a list of field names (e.g. "Apiproduct") 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 *GoogleCloudApigeeV1DeveloperSubscription) MarshalJSON() ([]byte, error) {
3516	type NoMethod GoogleCloudApigeeV1DeveloperSubscription
3517	raw := NoMethod(*s)
3518	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3519}
3520
3521// GoogleCloudApigeeV1DimensionMetric: This message type encapsulates a
3522// metric grouped by dimension.
3523type GoogleCloudApigeeV1DimensionMetric struct {
3524	// Metrics: This field contains a list of metrics.
3525	Metrics []*GoogleCloudApigeeV1Metric `json:"metrics,omitempty"`
3526
3527	// Name: This field contains the name of the dimension.
3528	Name string `json:"name,omitempty"`
3529
3530	// ForceSendFields is a list of field names (e.g. "Metrics") to
3531	// unconditionally include in API requests. By default, fields with
3532	// empty values are omitted from API requests. However, any non-pointer,
3533	// non-interface field appearing in ForceSendFields will be sent to the
3534	// server regardless of whether the field is empty or not. This may be
3535	// used to include empty fields in Patch requests.
3536	ForceSendFields []string `json:"-"`
3537
3538	// NullFields is a list of field names (e.g. "Metrics") to include in
3539	// API requests with the JSON null value. By default, fields with empty
3540	// values are omitted from API requests. However, any field with an
3541	// empty value appearing in NullFields will be sent to the server as
3542	// null. It is an error if a field in this list has a non-empty value.
3543	// This may be used to include null fields in Patch requests.
3544	NullFields []string `json:"-"`
3545}
3546
3547func (s *GoogleCloudApigeeV1DimensionMetric) MarshalJSON() ([]byte, error) {
3548	type NoMethod GoogleCloudApigeeV1DimensionMetric
3549	raw := NoMethod(*s)
3550	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3551}
3552
3553// GoogleCloudApigeeV1EntityMetadata: Metadata common to many entities
3554// in this API.
3555type GoogleCloudApigeeV1EntityMetadata struct {
3556	// CreatedAt: Time at which the API proxy was created, in milliseconds
3557	// since epoch.
3558	CreatedAt int64 `json:"createdAt,omitempty,string"`
3559
3560	// LastModifiedAt: Time at which the API proxy was most recently
3561	// modified, in milliseconds since epoch.
3562	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
3563
3564	// SubType: The type of entity described
3565	SubType string `json:"subType,omitempty"`
3566
3567	// ForceSendFields is a list of field names (e.g. "CreatedAt") to
3568	// unconditionally include in API requests. By default, fields with
3569	// empty values are omitted from API requests. However, any non-pointer,
3570	// non-interface field appearing in ForceSendFields will be sent to the
3571	// server regardless of whether the field is empty or not. This may be
3572	// used to include empty fields in Patch requests.
3573	ForceSendFields []string `json:"-"`
3574
3575	// NullFields is a list of field names (e.g. "CreatedAt") to include in
3576	// API requests with the JSON null value. By default, fields with empty
3577	// values are omitted from API requests. However, any field with an
3578	// empty value appearing in NullFields will be sent to the server as
3579	// null. It is an error if a field in this list has a non-empty value.
3580	// This may be used to include null fields in Patch requests.
3581	NullFields []string `json:"-"`
3582}
3583
3584func (s *GoogleCloudApigeeV1EntityMetadata) MarshalJSON() ([]byte, error) {
3585	type NoMethod GoogleCloudApigeeV1EntityMetadata
3586	raw := NoMethod(*s)
3587	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3588}
3589
3590type GoogleCloudApigeeV1Environment struct {
3591	// CreatedAt: Output only. Creation time of this environment as
3592	// milliseconds since epoch.
3593	CreatedAt int64 `json:"createdAt,omitempty,string"`
3594
3595	// Description: Optional. Description of the environment.
3596	Description string `json:"description,omitempty"`
3597
3598	// DisplayName: Optional. Display name for this environment.
3599	DisplayName string `json:"displayName,omitempty"`
3600
3601	// LastModifiedAt: Output only. Last modification time of this
3602	// environment as milliseconds since epoch.
3603	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
3604
3605	// Name: Required. Name of the environment. Values must match the
3606	// regular expression `^[.\\p{Alnum}-_]{1,255}$`
3607	Name string `json:"name,omitempty"`
3608
3609	// Properties: Optional. Key-value pairs that may be used for
3610	// customizing the environment.
3611	Properties *GoogleCloudApigeeV1Properties `json:"properties,omitempty"`
3612
3613	// State: Output only. State of the environment. Values other than
3614	// ACTIVE means the resource is not ready to use.
3615	//
3616	// Possible values:
3617	//   "STATE_UNSPECIFIED" - Resource is in an unspecified state.
3618	//   "CREATING" - Resource is being created.
3619	//   "ACTIVE" - Resource is provisioned and ready to use.
3620	//   "DELETING" - The resource is being deleted.
3621	State string `json:"state,omitempty"`
3622
3623	// ServerResponse contains the HTTP response code and headers from the
3624	// server.
3625	googleapi.ServerResponse `json:"-"`
3626
3627	// ForceSendFields is a list of field names (e.g. "CreatedAt") to
3628	// unconditionally include in API requests. By default, fields with
3629	// empty values are omitted from API requests. However, any non-pointer,
3630	// non-interface field appearing in ForceSendFields will be sent to the
3631	// server regardless of whether the field is empty or not. This may be
3632	// used to include empty fields in Patch requests.
3633	ForceSendFields []string `json:"-"`
3634
3635	// NullFields is a list of field names (e.g. "CreatedAt") to include in
3636	// API requests with the JSON null value. By default, fields with empty
3637	// values are omitted from API requests. However, any field with an
3638	// empty value appearing in NullFields will be sent to the server as
3639	// null. It is an error if a field in this list has a non-empty value.
3640	// This may be used to include null fields in Patch requests.
3641	NullFields []string `json:"-"`
3642}
3643
3644func (s *GoogleCloudApigeeV1Environment) MarshalJSON() ([]byte, error) {
3645	type NoMethod GoogleCloudApigeeV1Environment
3646	raw := NoMethod(*s)
3647	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3648}
3649
3650type GoogleCloudApigeeV1EnvironmentConfig struct {
3651	// CreateTime: Time that the environment configuration was created.
3652	CreateTime string `json:"createTime,omitempty"`
3653
3654	// DataCollectors: List of data collectors used by the deployments in
3655	// the environment.
3656	DataCollectors []*GoogleCloudApigeeV1DataCollectorConfig `json:"dataCollectors,omitempty"`
3657
3658	// DebugMask: Debug mask that applies to all deployments in the
3659	// environment.
3660	DebugMask *GoogleCloudApigeeV1DebugMask `json:"debugMask,omitempty"`
3661
3662	// Deployments: List of deployments in the environment.
3663	Deployments []*GoogleCloudApigeeV1DeploymentConfig `json:"deployments,omitempty"`
3664
3665	// FeatureFlags: Feature flags inherited from the organization and
3666	// environment.
3667	FeatureFlags map[string]string `json:"featureFlags,omitempty"`
3668
3669	// Flowhooks: List of flow hooks in the environment.
3670	Flowhooks []*GoogleCloudApigeeV1FlowHookConfig `json:"flowhooks,omitempty"`
3671
3672	// Keystores: List of keystores in the environment.
3673	Keystores []*GoogleCloudApigeeV1KeystoreConfig `json:"keystores,omitempty"`
3674
3675	// Name: Name of the environment configuration in the following format:
3676	// `organizations/{org}/environments/{env}/configs/{config}`
3677	Name string `json:"name,omitempty"`
3678
3679	// Provider: Used by the Control plane to add context information to
3680	// help detect the source of the document during diagnostics and
3681	// debugging.
3682	Provider string `json:"provider,omitempty"`
3683
3684	// PubsubTopic: Name of the PubSub topic for the environment.
3685	PubsubTopic string `json:"pubsubTopic,omitempty"`
3686
3687	// ResourceReferences: List of resource references in the environment.
3688	ResourceReferences []*GoogleCloudApigeeV1ReferenceConfig `json:"resourceReferences,omitempty"`
3689
3690	// Resources: List of resource versions in the environment.
3691	Resources []*GoogleCloudApigeeV1ResourceConfig `json:"resources,omitempty"`
3692
3693	// RevisionId: Revision ID of the environment configuration. The higher
3694	// the value, the more recently the configuration was deployed.
3695	RevisionId int64 `json:"revisionId,omitempty,string"`
3696
3697	// SequenceNumber: DEPRECATED: Use revision_id.
3698	SequenceNumber int64 `json:"sequenceNumber,omitempty,string"`
3699
3700	// Targets: List of target servers in the environment. Disabled target
3701	// servers are not displayed.
3702	Targets []*GoogleCloudApigeeV1TargetServerConfig `json:"targets,omitempty"`
3703
3704	// TraceConfig: Trace configurations. Contains config for the
3705	// environment and config overrides for specific API proxies.
3706	TraceConfig *GoogleCloudApigeeV1RuntimeTraceConfig `json:"traceConfig,omitempty"`
3707
3708	// Uid: Unique ID for the environment configuration. The ID will only
3709	// change if the environment is deleted and recreated.
3710	Uid string `json:"uid,omitempty"`
3711
3712	// ServerResponse contains the HTTP response code and headers from the
3713	// server.
3714	googleapi.ServerResponse `json:"-"`
3715
3716	// ForceSendFields is a list of field names (e.g. "CreateTime") to
3717	// unconditionally include in API requests. By default, fields with
3718	// empty values are omitted from API requests. However, any non-pointer,
3719	// non-interface field appearing in ForceSendFields will be sent to the
3720	// server regardless of whether the field is empty or not. This may be
3721	// used to include empty fields in Patch requests.
3722	ForceSendFields []string `json:"-"`
3723
3724	// NullFields is a list of field names (e.g. "CreateTime") to include in
3725	// API requests with the JSON null value. By default, fields with empty
3726	// values are omitted from API requests. However, any field with an
3727	// empty value appearing in NullFields will be sent to the server as
3728	// null. It is an error if a field in this list has a non-empty value.
3729	// This may be used to include null fields in Patch requests.
3730	NullFields []string `json:"-"`
3731}
3732
3733func (s *GoogleCloudApigeeV1EnvironmentConfig) MarshalJSON() ([]byte, error) {
3734	type NoMethod GoogleCloudApigeeV1EnvironmentConfig
3735	raw := NoMethod(*s)
3736	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3737}
3738
3739// GoogleCloudApigeeV1EnvironmentGroup: EnvironmentGroup configuration.
3740// An environment group is used to group one or more Apigee environments
3741// under a single host name.
3742type GoogleCloudApigeeV1EnvironmentGroup struct {
3743	// CreatedAt: Output only. The time at which the environment group was
3744	// created as milliseconds since epoch.
3745	CreatedAt int64 `json:"createdAt,omitempty,string"`
3746
3747	// Hostnames: Required. Host names for this environment group.
3748	Hostnames []string `json:"hostnames,omitempty"`
3749
3750	// LastModifiedAt: Output only. The time at which the environment group
3751	// was last updated as milliseconds since epoch.
3752	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
3753
3754	// Name: ID of the environment group.
3755	Name string `json:"name,omitempty"`
3756
3757	// State: Output only. State of the environment group. Values other than
3758	// ACTIVE means the resource is not ready to use.
3759	//
3760	// Possible values:
3761	//   "STATE_UNSPECIFIED" - Resource is in an unspecified state.
3762	//   "CREATING" - Resource is being created.
3763	//   "ACTIVE" - Resource is provisioned and ready to use.
3764	//   "DELETING" - The resource is being deleted.
3765	State string `json:"state,omitempty"`
3766
3767	// ServerResponse contains the HTTP response code and headers from the
3768	// server.
3769	googleapi.ServerResponse `json:"-"`
3770
3771	// ForceSendFields is a list of field names (e.g. "CreatedAt") to
3772	// unconditionally include in API requests. By default, fields with
3773	// empty values are omitted from API requests. However, any non-pointer,
3774	// non-interface field appearing in ForceSendFields will be sent to the
3775	// server regardless of whether the field is empty or not. This may be
3776	// used to include empty fields in Patch requests.
3777	ForceSendFields []string `json:"-"`
3778
3779	// NullFields is a list of field names (e.g. "CreatedAt") to include in
3780	// API requests with the JSON null value. By default, fields with empty
3781	// values are omitted from API requests. However, any field with an
3782	// empty value appearing in NullFields will be sent to the server as
3783	// null. It is an error if a field in this list has a non-empty value.
3784	// This may be used to include null fields in Patch requests.
3785	NullFields []string `json:"-"`
3786}
3787
3788func (s *GoogleCloudApigeeV1EnvironmentGroup) MarshalJSON() ([]byte, error) {
3789	type NoMethod GoogleCloudApigeeV1EnvironmentGroup
3790	raw := NoMethod(*s)
3791	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3792}
3793
3794// GoogleCloudApigeeV1EnvironmentGroupAttachment:
3795// EnvironmentGroupAttachment is a resource which defines an attachment
3796// of an environment to an environment group.
3797type GoogleCloudApigeeV1EnvironmentGroupAttachment struct {
3798	// CreatedAt: Output only. The time at which the environment group
3799	// attachment was created as milliseconds since epoch.
3800	CreatedAt int64 `json:"createdAt,omitempty,string"`
3801
3802	// Environment: Required. ID of the attached environment.
3803	Environment string `json:"environment,omitempty"`
3804
3805	// Name: ID of the environment group attachment.
3806	Name string `json:"name,omitempty"`
3807
3808	// ServerResponse contains the HTTP response code and headers from the
3809	// server.
3810	googleapi.ServerResponse `json:"-"`
3811
3812	// ForceSendFields is a list of field names (e.g. "CreatedAt") to
3813	// unconditionally include in API requests. By default, fields with
3814	// empty values are omitted from API requests. However, any non-pointer,
3815	// non-interface field appearing in ForceSendFields will be sent to the
3816	// server regardless of whether the field is empty or not. This may be
3817	// used to include empty fields in Patch requests.
3818	ForceSendFields []string `json:"-"`
3819
3820	// NullFields is a list of field names (e.g. "CreatedAt") to include in
3821	// API requests with the JSON null value. By default, fields with empty
3822	// values are omitted from API requests. However, any field with an
3823	// empty value appearing in NullFields will be sent to the server as
3824	// null. It is an error if a field in this list has a non-empty value.
3825	// This may be used to include null fields in Patch requests.
3826	NullFields []string `json:"-"`
3827}
3828
3829func (s *GoogleCloudApigeeV1EnvironmentGroupAttachment) MarshalJSON() ([]byte, error) {
3830	type NoMethod GoogleCloudApigeeV1EnvironmentGroupAttachment
3831	raw := NoMethod(*s)
3832	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3833}
3834
3835// GoogleCloudApigeeV1EnvironmentGroupConfig: EnvironmentGroupConfig is
3836// a revisioned snapshot of an EnvironmentGroup and its associated
3837// routing rules.
3838type GoogleCloudApigeeV1EnvironmentGroupConfig struct {
3839	// Hostnames: Host names for the environment group.
3840	Hostnames []string `json:"hostnames,omitempty"`
3841
3842	// Name: Name of the environment group in the following format:
3843	// `organizations/{org}/envgroups/{envgroup}`.
3844	Name string `json:"name,omitempty"`
3845
3846	// RevisionId: Revision id that defines the ordering of the
3847	// EnvironmentGroupConfig resource. The higher the revision, the more
3848	// recently the configuration was deployed.
3849	RevisionId int64 `json:"revisionId,omitempty,string"`
3850
3851	// RoutingRules: Ordered list of routing rules defining how traffic to
3852	// this environment group's hostnames should be routed to different
3853	// environments.
3854	RoutingRules []*GoogleCloudApigeeV1RoutingRule `json:"routingRules,omitempty"`
3855
3856	// Uid: A unique id for the environment group config that will only
3857	// change if the environment group is deleted and recreated.
3858	Uid string `json:"uid,omitempty"`
3859
3860	// ForceSendFields is a list of field names (e.g. "Hostnames") to
3861	// unconditionally include in API requests. By default, fields with
3862	// empty values are omitted from API requests. However, any non-pointer,
3863	// non-interface field appearing in ForceSendFields will be sent to the
3864	// server regardless of whether the field is empty or not. This may be
3865	// used to include empty fields in Patch requests.
3866	ForceSendFields []string `json:"-"`
3867
3868	// NullFields is a list of field names (e.g. "Hostnames") to include in
3869	// API requests with the JSON null value. By default, fields with empty
3870	// values are omitted from API requests. However, any field with an
3871	// empty value appearing in NullFields will be sent to the server as
3872	// null. It is an error if a field in this list has a non-empty value.
3873	// This may be used to include null fields in Patch requests.
3874	NullFields []string `json:"-"`
3875}
3876
3877func (s *GoogleCloudApigeeV1EnvironmentGroupConfig) MarshalJSON() ([]byte, error) {
3878	type NoMethod GoogleCloudApigeeV1EnvironmentGroupConfig
3879	raw := NoMethod(*s)
3880	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3881}
3882
3883// GoogleCloudApigeeV1ExpireDeveloperSubscriptionRequest: Request for
3884// ExpireDeveloperSubscription.
3885type GoogleCloudApigeeV1ExpireDeveloperSubscriptionRequest struct {
3886}
3887
3888// GoogleCloudApigeeV1Export: Details of an export job.
3889type GoogleCloudApigeeV1Export struct {
3890	// Created: Output only. Time the export job was created.
3891	Created string `json:"created,omitempty"`
3892
3893	// DatastoreName: Name of the datastore that is the destination of the
3894	// export job [datastore]
3895	DatastoreName string `json:"datastoreName,omitempty"`
3896
3897	// Description: Description of the export job.
3898	Description string `json:"description,omitempty"`
3899
3900	// Error: Output only. Error is set when export fails
3901	Error string `json:"error,omitempty"`
3902
3903	// ExecutionTime: Output only. Execution time for this export job. If
3904	// the job is still in progress, it will be set to the amount of time
3905	// that has elapsed since`created`, in seconds. Else, it will set to
3906	// (`updated` - `created`), in seconds.
3907	ExecutionTime string `json:"executionTime,omitempty"`
3908
3909	// Name: Display name of the export job.
3910	Name string `json:"name,omitempty"`
3911
3912	// Self: Output only. Self link of the export job. A URI that can be
3913	// used to retrieve the status of an export job. Example:
3914	// `/organizations/myorg/environments/myenv/analytics/exports/9cfc0d85-0f
3915	// 30-46d6-ae6f-318d0cb961bd`
3916	Self string `json:"self,omitempty"`
3917
3918	// State: Output only. Status of the export job. Valid values include
3919	// `enqueued`, `running`, `completed`, and `failed`.
3920	State string `json:"state,omitempty"`
3921
3922	// Updated: Output only. Time the export job was last updated.
3923	Updated string `json:"updated,omitempty"`
3924
3925	// ServerResponse contains the HTTP response code and headers from the
3926	// server.
3927	googleapi.ServerResponse `json:"-"`
3928
3929	// ForceSendFields is a list of field names (e.g. "Created") to
3930	// unconditionally include in API requests. By default, fields with
3931	// empty values are omitted from API requests. However, any non-pointer,
3932	// non-interface field appearing in ForceSendFields will be sent to the
3933	// server regardless of whether the field is empty or not. This may be
3934	// used to include empty fields in Patch requests.
3935	ForceSendFields []string `json:"-"`
3936
3937	// NullFields is a list of field names (e.g. "Created") to include in
3938	// API requests with the JSON null value. By default, fields with empty
3939	// values are omitted from API requests. However, any field with an
3940	// empty value appearing in NullFields will be sent to the server as
3941	// null. It is an error if a field in this list has a non-empty value.
3942	// This may be used to include null fields in Patch requests.
3943	NullFields []string `json:"-"`
3944}
3945
3946func (s *GoogleCloudApigeeV1Export) MarshalJSON() ([]byte, error) {
3947	type NoMethod GoogleCloudApigeeV1Export
3948	raw := NoMethod(*s)
3949	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3950}
3951
3952// GoogleCloudApigeeV1ExportRequest: Request body for
3953// [CreateExportRequest]
3954type GoogleCloudApigeeV1ExportRequest struct {
3955	// CsvDelimiter: Optional. Delimiter used in the CSV file, if
3956	// `outputFormat` is set to `csv`. Defaults to the `,` (comma)
3957	// character. Supported delimiter characters include comma (`,`), pipe
3958	// (`|`), and tab (`\t`).
3959	CsvDelimiter string `json:"csvDelimiter,omitempty"`
3960
3961	// DatastoreName: Required. Name of the preconfigured datastore.
3962	DatastoreName string `json:"datastoreName,omitempty"`
3963
3964	// DateRange: Required. Date range of the data to export.
3965	DateRange *GoogleCloudApigeeV1DateRange `json:"dateRange,omitempty"`
3966
3967	// Description: Optional. Description of the export job.
3968	Description string `json:"description,omitempty"`
3969
3970	// Name: Required. Display name of the export job.
3971	Name string `json:"name,omitempty"`
3972
3973	// OutputFormat: Optional. Output format of the export. Valid values
3974	// include: `csv` or `json`. Defaults to `json`. Note: Configure the
3975	// delimiter for CSV output using the `csvDelimiter` property.
3976	OutputFormat string `json:"outputFormat,omitempty"`
3977
3978	// ForceSendFields is a list of field names (e.g. "CsvDelimiter") to
3979	// unconditionally include in API requests. By default, fields with
3980	// empty values are omitted from API requests. However, any non-pointer,
3981	// non-interface field appearing in ForceSendFields will be sent to the
3982	// server regardless of whether the field is empty or not. This may be
3983	// used to include empty fields in Patch requests.
3984	ForceSendFields []string `json:"-"`
3985
3986	// NullFields is a list of field names (e.g. "CsvDelimiter") to include
3987	// in API requests with the JSON null value. By default, fields with
3988	// empty values are omitted from API requests. However, any field with
3989	// an empty value appearing in NullFields will be sent to the server as
3990	// null. It is an error if a field in this list has a non-empty value.
3991	// This may be used to include null fields in Patch requests.
3992	NullFields []string `json:"-"`
3993}
3994
3995func (s *GoogleCloudApigeeV1ExportRequest) MarshalJSON() ([]byte, error) {
3996	type NoMethod GoogleCloudApigeeV1ExportRequest
3997	raw := NoMethod(*s)
3998	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3999}
4000
4001type GoogleCloudApigeeV1FlowHook struct {
4002	// ContinueOnError: Optional. Flag that specifies whether execution
4003	// should continue if the flow hook throws an exception. Set to `true`
4004	// to continue execution. Set to `false` to stop execution if the flow
4005	// hook throws an exception. Defaults to `true`.
4006	ContinueOnError bool `json:"continueOnError,omitempty"`
4007
4008	// Description: Description of the flow hook.
4009	Description string `json:"description,omitempty"`
4010
4011	// FlowHookPoint: Output only. Where in the API call flow the flow hook
4012	// is invoked. Must be one of `PreProxyFlowHook`, `PostProxyFlowHook`,
4013	// `PreTargetFlowHook`, or `PostTargetFlowHook`.
4014	FlowHookPoint string `json:"flowHookPoint,omitempty"`
4015
4016	// SharedFlow: Shared flow attached to this flow hook, or empty if there
4017	// is none attached.
4018	SharedFlow string `json:"sharedFlow,omitempty"`
4019
4020	// ServerResponse contains the HTTP response code and headers from the
4021	// server.
4022	googleapi.ServerResponse `json:"-"`
4023
4024	// ForceSendFields is a list of field names (e.g. "ContinueOnError") to
4025	// unconditionally include in API requests. By default, fields with
4026	// empty values are omitted from API requests. However, any non-pointer,
4027	// non-interface field appearing in ForceSendFields will be sent to the
4028	// server regardless of whether the field is empty or not. This may be
4029	// used to include empty fields in Patch requests.
4030	ForceSendFields []string `json:"-"`
4031
4032	// NullFields is a list of field names (e.g. "ContinueOnError") to
4033	// include in API requests with the JSON null value. By default, fields
4034	// with empty values are omitted from API requests. However, any field
4035	// with an empty value appearing in NullFields will be sent to the
4036	// server as null. It is an error if a field in this list has a
4037	// non-empty value. This may be used to include null fields in Patch
4038	// requests.
4039	NullFields []string `json:"-"`
4040}
4041
4042func (s *GoogleCloudApigeeV1FlowHook) MarshalJSON() ([]byte, error) {
4043	type NoMethod GoogleCloudApigeeV1FlowHook
4044	raw := NoMethod(*s)
4045	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4046}
4047
4048type GoogleCloudApigeeV1FlowHookConfig struct {
4049	// ContinueOnError: Flag that specifies whether the flow should abort
4050	// after an error in the flow hook. Defaults to `true` (continue on
4051	// error).
4052	ContinueOnError bool `json:"continueOnError,omitempty"`
4053
4054	// Name: Name of the flow hook in the following format:
4055	// `organizations/{org}/environments/{env}/flowhooks/{point}`. Valid
4056	// `point` values include: `PreProxyFlowHook`, `PostProxyFlowHook`,
4057	// `PreTargetFlowHook`, and `PostTargetFlowHook`
4058	Name string `json:"name,omitempty"`
4059
4060	// SharedFlowName: Name of the shared flow to invoke in the following
4061	// format: `organizations/{org}/sharedflows/{sharedflow}`
4062	SharedFlowName string `json:"sharedFlowName,omitempty"`
4063
4064	// ForceSendFields is a list of field names (e.g. "ContinueOnError") to
4065	// unconditionally include in API requests. By default, fields with
4066	// empty values are omitted from API requests. However, any non-pointer,
4067	// non-interface field appearing in ForceSendFields will be sent to the
4068	// server regardless of whether the field is empty or not. This may be
4069	// used to include empty fields in Patch requests.
4070	ForceSendFields []string `json:"-"`
4071
4072	// NullFields is a list of field names (e.g. "ContinueOnError") to
4073	// include in API requests with the JSON null value. By default, fields
4074	// with empty values are omitted from API requests. However, any field
4075	// with an empty value appearing in NullFields will be sent to the
4076	// server as null. It is an error if a field in this list has a
4077	// non-empty value. This may be used to include null fields in Patch
4078	// requests.
4079	NullFields []string `json:"-"`
4080}
4081
4082func (s *GoogleCloudApigeeV1FlowHookConfig) MarshalJSON() ([]byte, error) {
4083	type NoMethod GoogleCloudApigeeV1FlowHookConfig
4084	raw := NoMethod(*s)
4085	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4086}
4087
4088// GoogleCloudApigeeV1GetSyncAuthorizationRequest: Request for
4089// GetSyncAuthorization.
4090type GoogleCloudApigeeV1GetSyncAuthorizationRequest struct {
4091}
4092
4093// GoogleCloudApigeeV1GraphQLOperation: GraphQLOperation represents the
4094// pairing of graphQL operation types and the graphQL operation name.
4095type GoogleCloudApigeeV1GraphQLOperation struct {
4096	// Operation: GraphQL operation name, along with operation type which
4097	// will be used to associate quotas with. If no name is specified, the
4098	// quota will be applied to all graphQL operations irrespective of their
4099	// operation names in the payload.
4100	Operation string `json:"operation,omitempty"`
4101
4102	// OperationTypes: Required. `query`, `mutation` and `subscription` are
4103	// the three operation types offered by graphQL. Currently we support
4104	// only `query` and `mutation`.
4105	OperationTypes []string `json:"operationTypes,omitempty"`
4106
4107	// ForceSendFields is a list of field names (e.g. "Operation") to
4108	// unconditionally include in API requests. By default, fields with
4109	// empty values are omitted from API requests. However, any non-pointer,
4110	// non-interface field appearing in ForceSendFields will be sent to the
4111	// server regardless of whether the field is empty or not. This may be
4112	// used to include empty fields in Patch requests.
4113	ForceSendFields []string `json:"-"`
4114
4115	// NullFields is a list of field names (e.g. "Operation") to include in
4116	// API requests with the JSON null value. By default, fields with empty
4117	// values are omitted from API requests. However, any field with an
4118	// empty value appearing in NullFields will be sent to the server as
4119	// null. It is an error if a field in this list has a non-empty value.
4120	// This may be used to include null fields in Patch requests.
4121	NullFields []string `json:"-"`
4122}
4123
4124func (s *GoogleCloudApigeeV1GraphQLOperation) MarshalJSON() ([]byte, error) {
4125	type NoMethod GoogleCloudApigeeV1GraphQLOperation
4126	raw := NoMethod(*s)
4127	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4128}
4129
4130// GoogleCloudApigeeV1GraphQLOperationConfig: GraphQLOperationConfig
4131// binds the resources in a proxy or remote service with the graphQL
4132// operation and its associated quota enforcement.
4133type GoogleCloudApigeeV1GraphQLOperationConfig struct {
4134	// ApiSource: Required. API proxy endpoint or remote service name with
4135	// which the graphQL operation, and quota are associated.
4136	ApiSource string `json:"apiSource,omitempty"`
4137
4138	// Attributes: Custom attributes associated with the operation.
4139	Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
4140
4141	// Operations: Required. List of graphQL name/Operation type pairs for
4142	// the proxy/remote service, upon which quota will applied. If
4143	// GraphQLOperation operation has only the operation type(s), that would
4144	// imply that quota will be applied on all graphQL requests irrespective
4145	// of the graphQL name. **Note**: Currently, we can specify only a
4146	// single GraphQLOperation. Specifying more than one will result in
4147	// failure of the operation.
4148	Operations []*GoogleCloudApigeeV1GraphQLOperation `json:"operations,omitempty"`
4149
4150	// Quota: Quota parameters to be enforced for the resources, methods,
4151	// api_source combination. If none are specified, quota enforcement will
4152	// not be done.
4153	Quota *GoogleCloudApigeeV1Quota `json:"quota,omitempty"`
4154
4155	// ForceSendFields is a list of field names (e.g. "ApiSource") to
4156	// unconditionally include in API requests. By default, fields with
4157	// empty values are omitted from API requests. However, any non-pointer,
4158	// non-interface field appearing in ForceSendFields will be sent to the
4159	// server regardless of whether the field is empty or not. This may be
4160	// used to include empty fields in Patch requests.
4161	ForceSendFields []string `json:"-"`
4162
4163	// NullFields is a list of field names (e.g. "ApiSource") to include in
4164	// API requests with the JSON null value. By default, fields with empty
4165	// values are omitted from API requests. However, any field with an
4166	// empty value appearing in NullFields will be sent to the server as
4167	// null. It is an error if a field in this list has a non-empty value.
4168	// This may be used to include null fields in Patch requests.
4169	NullFields []string `json:"-"`
4170}
4171
4172func (s *GoogleCloudApigeeV1GraphQLOperationConfig) MarshalJSON() ([]byte, error) {
4173	type NoMethod GoogleCloudApigeeV1GraphQLOperationConfig
4174	raw := NoMethod(*s)
4175	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4176}
4177
4178// GoogleCloudApigeeV1GraphQLOperationGroup: List of graphQL operation
4179// configuration details associated with Apigee API proxies or remote
4180// services. Remote services are non-Apigee proxies, such as
4181// Istio-Envoy.
4182type GoogleCloudApigeeV1GraphQLOperationGroup struct {
4183	// OperationConfigType: Flag that specifes whether the configuration is
4184	// for Apigee API proxy or a remote service. Valid values are `proxy` or
4185	// `remoteservice`. Defaults to `proxy`. Set to `proxy` when Apigee API
4186	// proxies are associated with the API product. Set to `remoteservice`
4187	// when non-Apigee proxies like Istio-Envoy are associated with the API
4188	// product.
4189	OperationConfigType string `json:"operationConfigType,omitempty"`
4190
4191	// OperationConfigs: Required. List of operation configurations for
4192	// either Apigee API proxies or other remote services that are
4193	// associated with this API product.
4194	OperationConfigs []*GoogleCloudApigeeV1GraphQLOperationConfig `json:"operationConfigs,omitempty"`
4195
4196	// ForceSendFields is a list of field names (e.g. "OperationConfigType")
4197	// to unconditionally include in API requests. By default, fields with
4198	// empty values are omitted from API requests. However, any non-pointer,
4199	// non-interface field appearing in ForceSendFields will be sent to the
4200	// server regardless of whether the field is empty or not. This may be
4201	// used to include empty fields in Patch requests.
4202	ForceSendFields []string `json:"-"`
4203
4204	// NullFields is a list of field names (e.g. "OperationConfigType") to
4205	// include in API requests with the JSON null value. By default, fields
4206	// with empty values are omitted from API requests. However, any field
4207	// with an empty value appearing in NullFields will be sent to the
4208	// server as null. It is an error if a field in this list has a
4209	// non-empty value. This may be used to include null fields in Patch
4210	// requests.
4211	NullFields []string `json:"-"`
4212}
4213
4214func (s *GoogleCloudApigeeV1GraphQLOperationGroup) MarshalJSON() ([]byte, error) {
4215	type NoMethod GoogleCloudApigeeV1GraphQLOperationGroup
4216	raw := NoMethod(*s)
4217	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4218}
4219
4220type GoogleCloudApigeeV1IngressConfig struct {
4221	// EnvironmentGroups: List of environment groups in the organization.
4222	EnvironmentGroups []*GoogleCloudApigeeV1EnvironmentGroupConfig `json:"environmentGroups,omitempty"`
4223
4224	// Name: Name of the resource in the following format:
4225	// `organizations/{org}/deployedIngressConfig`.
4226	Name string `json:"name,omitempty"`
4227
4228	// RevisionCreateTime: Time at which the IngressConfig revision was
4229	// created.
4230	RevisionCreateTime string `json:"revisionCreateTime,omitempty"`
4231
4232	// RevisionId: Revision id that defines the ordering on IngressConfig
4233	// resources. The higher the revision, the more recently the
4234	// configuration was deployed.
4235	RevisionId int64 `json:"revisionId,omitempty,string"`
4236
4237	// Uid: A unique id for the ingress config that will only change if the
4238	// organization is deleted and recreated.
4239	Uid string `json:"uid,omitempty"`
4240
4241	// ServerResponse contains the HTTP response code and headers from the
4242	// server.
4243	googleapi.ServerResponse `json:"-"`
4244
4245	// ForceSendFields is a list of field names (e.g. "EnvironmentGroups")
4246	// to unconditionally include in API requests. By default, fields with
4247	// empty values are omitted from API requests. However, any non-pointer,
4248	// non-interface field appearing in ForceSendFields will be sent to the
4249	// server regardless of whether the field is empty or not. This may be
4250	// used to include empty fields in Patch requests.
4251	ForceSendFields []string `json:"-"`
4252
4253	// NullFields is a list of field names (e.g. "EnvironmentGroups") to
4254	// include in API requests with the JSON null value. By default, fields
4255	// with empty values are omitted from API requests. However, any field
4256	// with an empty value appearing in NullFields will be sent to the
4257	// server as null. It is an error if a field in this list has a
4258	// non-empty value. This may be used to include null fields in Patch
4259	// requests.
4260	NullFields []string `json:"-"`
4261}
4262
4263func (s *GoogleCloudApigeeV1IngressConfig) MarshalJSON() ([]byte, error) {
4264	type NoMethod GoogleCloudApigeeV1IngressConfig
4265	raw := NoMethod(*s)
4266	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4267}
4268
4269// GoogleCloudApigeeV1Instance: Apigee runtime instance.
4270type GoogleCloudApigeeV1Instance struct {
4271	// CreatedAt: Output only. Time the instance was created in milliseconds
4272	// since epoch.
4273	CreatedAt int64 `json:"createdAt,omitempty,string"`
4274
4275	// Description: Optional. Description of the instance.
4276	Description string `json:"description,omitempty"`
4277
4278	// DiskEncryptionKeyName: Customer Managed Encryption Key (CMEK) used
4279	// for disk and volume encryption. Required for Apigee paid
4280	// subscriptions only. Use the following format:
4281	// `projects/([^/]+)/locations/([^/]+)/keyRings/([^/]+)/cryptoKeys/([^/]+
4282	// )`
4283	DiskEncryptionKeyName string `json:"diskEncryptionKeyName,omitempty"`
4284
4285	// DisplayName: Optional. Display name for the instance.
4286	DisplayName string `json:"displayName,omitempty"`
4287
4288	// Host: Output only. Internal hostname or IP address of the Apigee
4289	// endpoint used by clients to connect to the service.
4290	Host string `json:"host,omitempty"`
4291
4292	// LastModifiedAt: Output only. Time the instance was last modified in
4293	// milliseconds since epoch.
4294	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
4295
4296	// Location: Required. Compute Engine location where the instance
4297	// resides.
4298	Location string `json:"location,omitempty"`
4299
4300	// Name: Required. Resource ID of the instance. Values must match the
4301	// regular expression `^a-z{0,30}[a-z\d]$`.
4302	Name string `json:"name,omitempty"`
4303
4304	// PeeringCidrRange: Optional. Size of the CIDR block range that will be
4305	// reserved by the instance. PAID organizations support `SLASH_16` to
4306	// `SLASH_20` and defaults to `SLASH_16`. Evaluation organizations
4307	// support only `SLASH_23`.
4308	//
4309	// Possible values:
4310	//   "CIDR_RANGE_UNSPECIFIED" - Range not specified.
4311	//   "SLASH_16" - `/16` CIDR range.
4312	//   "SLASH_17" - `/17` CIDR range.
4313	//   "SLASH_18" - `/18` CIDR range.
4314	//   "SLASH_19" - `/19` CIDR range.
4315	//   "SLASH_20" - `/20` CIDR range.
4316	//   "SLASH_23" - `/23` CIDR range. Supported for evaluation only.
4317	PeeringCidrRange string `json:"peeringCidrRange,omitempty"`
4318
4319	// Port: Output only. Port number of the exposed Apigee endpoint.
4320	Port string `json:"port,omitempty"`
4321
4322	// State: Output only. State of the instance. Values other than `ACTIVE`
4323	// means the resource is not ready to use.
4324	//
4325	// Possible values:
4326	//   "STATE_UNSPECIFIED" - Resource is in an unspecified state.
4327	//   "CREATING" - Resource is being created.
4328	//   "ACTIVE" - Resource is provisioned and ready to use.
4329	//   "DELETING" - The resource is being deleted.
4330	State string `json:"state,omitempty"`
4331
4332	// ServerResponse contains the HTTP response code and headers from the
4333	// server.
4334	googleapi.ServerResponse `json:"-"`
4335
4336	// ForceSendFields is a list of field names (e.g. "CreatedAt") to
4337	// unconditionally include in API requests. By default, fields with
4338	// empty values are omitted from API requests. However, any non-pointer,
4339	// non-interface field appearing in ForceSendFields will be sent to the
4340	// server regardless of whether the field is empty or not. This may be
4341	// used to include empty fields in Patch requests.
4342	ForceSendFields []string `json:"-"`
4343
4344	// NullFields is a list of field names (e.g. "CreatedAt") to include in
4345	// API requests with the JSON null value. By default, fields with empty
4346	// values are omitted from API requests. However, any field with an
4347	// empty value appearing in NullFields will be sent to the server as
4348	// null. It is an error if a field in this list has a non-empty value.
4349	// This may be used to include null fields in Patch requests.
4350	NullFields []string `json:"-"`
4351}
4352
4353func (s *GoogleCloudApigeeV1Instance) MarshalJSON() ([]byte, error) {
4354	type NoMethod GoogleCloudApigeeV1Instance
4355	raw := NoMethod(*s)
4356	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4357}
4358
4359// GoogleCloudApigeeV1InstanceAttachment: InstanceAttachment represents
4360// the installation of an environment onto an instance.
4361type GoogleCloudApigeeV1InstanceAttachment struct {
4362	// CreatedAt: Output only. Time the attachment was created in
4363	// milliseconds since epoch.
4364	CreatedAt int64 `json:"createdAt,omitempty,string"`
4365
4366	// Environment: ID of the attached environment.
4367	Environment string `json:"environment,omitempty"`
4368
4369	// Name: Output only. ID of the attachment.
4370	Name string `json:"name,omitempty"`
4371
4372	// ServerResponse contains the HTTP response code and headers from the
4373	// server.
4374	googleapi.ServerResponse `json:"-"`
4375
4376	// ForceSendFields is a list of field names (e.g. "CreatedAt") to
4377	// unconditionally include in API requests. By default, fields with
4378	// empty values are omitted from API requests. However, any non-pointer,
4379	// non-interface field appearing in ForceSendFields will be sent to the
4380	// server regardless of whether the field is empty or not. This may be
4381	// used to include empty fields in Patch requests.
4382	ForceSendFields []string `json:"-"`
4383
4384	// NullFields is a list of field names (e.g. "CreatedAt") to include in
4385	// API requests with the JSON null value. By default, fields with empty
4386	// values are omitted from API requests. However, any field with an
4387	// empty value appearing in NullFields will be sent to the server as
4388	// null. It is an error if a field in this list has a non-empty value.
4389	// This may be used to include null fields in Patch requests.
4390	NullFields []string `json:"-"`
4391}
4392
4393func (s *GoogleCloudApigeeV1InstanceAttachment) MarshalJSON() ([]byte, error) {
4394	type NoMethod GoogleCloudApigeeV1InstanceAttachment
4395	raw := NoMethod(*s)
4396	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4397}
4398
4399// GoogleCloudApigeeV1InstanceDeploymentStatus: The status of a
4400// deployment as reported by a single instance.
4401type GoogleCloudApigeeV1InstanceDeploymentStatus struct {
4402	// DeployedRevisions: Revisions currently deployed in MPs.
4403	DeployedRevisions []*GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRevision `json:"deployedRevisions,omitempty"`
4404
4405	// DeployedRoutes: Current routes deployed in the ingress routing table.
4406	// A route which is missing will appear in `missing_routes`.
4407	DeployedRoutes []*GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRoute `json:"deployedRoutes,omitempty"`
4408
4409	// Instance: ID of the instance reporting the status.
4410	Instance string `json:"instance,omitempty"`
4411
4412	// ForceSendFields is a list of field names (e.g. "DeployedRevisions")
4413	// to unconditionally include in API requests. By default, fields with
4414	// empty values are omitted from API requests. However, any non-pointer,
4415	// non-interface field appearing in ForceSendFields will be sent to the
4416	// server regardless of whether the field is empty or not. This may be
4417	// used to include empty fields in Patch requests.
4418	ForceSendFields []string `json:"-"`
4419
4420	// NullFields is a list of field names (e.g. "DeployedRevisions") to
4421	// include in API requests with the JSON null value. By default, fields
4422	// with empty values are omitted from API requests. However, any field
4423	// with an empty value appearing in NullFields will be sent to the
4424	// server as null. It is an error if a field in this list has a
4425	// non-empty value. This may be used to include null fields in Patch
4426	// requests.
4427	NullFields []string `json:"-"`
4428}
4429
4430func (s *GoogleCloudApigeeV1InstanceDeploymentStatus) MarshalJSON() ([]byte, error) {
4431	type NoMethod GoogleCloudApigeeV1InstanceDeploymentStatus
4432	raw := NoMethod(*s)
4433	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4434}
4435
4436// GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRevision:
4437// Revisions deployed in the MPs.
4438type GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRevision struct {
4439	// Percentage: Percentage of MP replicas reporting this revision.
4440	Percentage int64 `json:"percentage,omitempty"`
4441
4442	// Revision: API proxy revision reported as deployed.
4443	Revision string `json:"revision,omitempty"`
4444
4445	// ForceSendFields is a list of field names (e.g. "Percentage") to
4446	// unconditionally include in API requests. By default, fields with
4447	// empty values are omitted from API requests. However, any non-pointer,
4448	// non-interface field appearing in ForceSendFields will be sent to the
4449	// server regardless of whether the field is empty or not. This may be
4450	// used to include empty fields in Patch requests.
4451	ForceSendFields []string `json:"-"`
4452
4453	// NullFields is a list of field names (e.g. "Percentage") to include in
4454	// API requests with the JSON null value. By default, fields with empty
4455	// values are omitted from API requests. However, any field with an
4456	// empty value appearing in NullFields will be sent to the server as
4457	// null. It is an error if a field in this list has a non-empty value.
4458	// This may be used to include null fields in Patch requests.
4459	NullFields []string `json:"-"`
4460}
4461
4462func (s *GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRevision) MarshalJSON() ([]byte, error) {
4463	type NoMethod GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRevision
4464	raw := NoMethod(*s)
4465	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4466}
4467
4468// GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRoute: Route
4469// deployed in the ingress routing table.
4470type GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRoute struct {
4471	// Basepath: Base path in the routing table.
4472	Basepath string `json:"basepath,omitempty"`
4473
4474	// Envgroup: Environment group where this route is installed.
4475	Envgroup string `json:"envgroup,omitempty"`
4476
4477	// Environment: Destination environment. This will be empty if the route
4478	// is not yet reported.
4479	Environment string `json:"environment,omitempty"`
4480
4481	// Percentage: Percentage of ingress replicas reporting this route.
4482	Percentage int64 `json:"percentage,omitempty"`
4483
4484	// ForceSendFields is a list of field names (e.g. "Basepath") to
4485	// unconditionally include in API requests. By default, fields with
4486	// empty values are omitted from API requests. However, any non-pointer,
4487	// non-interface field appearing in ForceSendFields will be sent to the
4488	// server regardless of whether the field is empty or not. This may be
4489	// used to include empty fields in Patch requests.
4490	ForceSendFields []string `json:"-"`
4491
4492	// NullFields is a list of field names (e.g. "Basepath") to include in
4493	// API requests with the JSON null value. By default, fields with empty
4494	// values are omitted from API requests. However, any field with an
4495	// empty value appearing in NullFields will be sent to the server as
4496	// null. It is an error if a field in this list has a non-empty value.
4497	// This may be used to include null fields in Patch requests.
4498	NullFields []string `json:"-"`
4499}
4500
4501func (s *GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRoute) MarshalJSON() ([]byte, error) {
4502	type NoMethod GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRoute
4503	raw := NoMethod(*s)
4504	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4505}
4506
4507// GoogleCloudApigeeV1IntegrationConfig: Configuration for the
4508// Integration add-on.
4509type GoogleCloudApigeeV1IntegrationConfig struct {
4510	// Enabled: Flag that specifies whether the Integration add-on is
4511	// enabled.
4512	Enabled bool `json:"enabled,omitempty"`
4513
4514	// ForceSendFields is a list of field names (e.g. "Enabled") to
4515	// unconditionally include in API requests. By default, fields with
4516	// empty values are omitted from API requests. However, any non-pointer,
4517	// non-interface field appearing in ForceSendFields will be sent to the
4518	// server regardless of whether the field is empty or not. This may be
4519	// used to include empty fields in Patch requests.
4520	ForceSendFields []string `json:"-"`
4521
4522	// NullFields is a list of field names (e.g. "Enabled") to include in
4523	// API requests with the JSON null value. By default, fields with empty
4524	// values are omitted from API requests. However, any field with an
4525	// empty value appearing in NullFields will be sent to the server as
4526	// null. It is an error if a field in this list has a non-empty value.
4527	// This may be used to include null fields in Patch requests.
4528	NullFields []string `json:"-"`
4529}
4530
4531func (s *GoogleCloudApigeeV1IntegrationConfig) MarshalJSON() ([]byte, error) {
4532	type NoMethod GoogleCloudApigeeV1IntegrationConfig
4533	raw := NoMethod(*s)
4534	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4535}
4536
4537type GoogleCloudApigeeV1KeyAliasReference struct {
4538	// AliasId: Alias ID. Must exist in the keystore referred to by the
4539	// reference.
4540	AliasId string `json:"aliasId,omitempty"`
4541
4542	// Reference: Reference name in the following format:
4543	// `organizations/{org}/environments/{env}/references/{reference}`
4544	Reference string `json:"reference,omitempty"`
4545
4546	// ForceSendFields is a list of field names (e.g. "AliasId") to
4547	// unconditionally include in API requests. By default, fields with
4548	// empty values are omitted from API requests. However, any non-pointer,
4549	// non-interface field appearing in ForceSendFields will be sent to the
4550	// server regardless of whether the field is empty or not. This may be
4551	// used to include empty fields in Patch requests.
4552	ForceSendFields []string `json:"-"`
4553
4554	// NullFields is a list of field names (e.g. "AliasId") to include in
4555	// API requests with the JSON null value. By default, fields with empty
4556	// values are omitted from API requests. However, any field with an
4557	// empty value appearing in NullFields will be sent to the server as
4558	// null. It is an error if a field in this list has a non-empty value.
4559	// This may be used to include null fields in Patch requests.
4560	NullFields []string `json:"-"`
4561}
4562
4563func (s *GoogleCloudApigeeV1KeyAliasReference) MarshalJSON() ([]byte, error) {
4564	type NoMethod GoogleCloudApigeeV1KeyAliasReference
4565	raw := NoMethod(*s)
4566	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4567}
4568
4569// GoogleCloudApigeeV1KeyValueMap: A collection of key, value string
4570// pairs
4571type GoogleCloudApigeeV1KeyValueMap struct {
4572	// Encrypted: Optional. If `true` entry values will be encrypted.
4573	Encrypted bool `json:"encrypted,omitempty"`
4574
4575	// Name: Required. The id of the key value map.
4576	Name string `json:"name,omitempty"`
4577
4578	// ServerResponse contains the HTTP response code and headers from the
4579	// server.
4580	googleapi.ServerResponse `json:"-"`
4581
4582	// ForceSendFields is a list of field names (e.g. "Encrypted") to
4583	// unconditionally include in API requests. By default, fields with
4584	// empty values are omitted from API requests. However, any non-pointer,
4585	// non-interface field appearing in ForceSendFields will be sent to the
4586	// server regardless of whether the field is empty or not. This may be
4587	// used to include empty fields in Patch requests.
4588	ForceSendFields []string `json:"-"`
4589
4590	// NullFields is a list of field names (e.g. "Encrypted") to include in
4591	// API requests with the JSON null value. By default, fields with empty
4592	// values are omitted from API requests. However, any field with an
4593	// empty value appearing in NullFields will be sent to the server as
4594	// null. It is an error if a field in this list has a non-empty value.
4595	// This may be used to include null fields in Patch requests.
4596	NullFields []string `json:"-"`
4597}
4598
4599func (s *GoogleCloudApigeeV1KeyValueMap) MarshalJSON() ([]byte, error) {
4600	type NoMethod GoogleCloudApigeeV1KeyValueMap
4601	raw := NoMethod(*s)
4602	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4603}
4604
4605// GoogleCloudApigeeV1Keystore: Datastore for Certificates and Aliases.
4606type GoogleCloudApigeeV1Keystore struct {
4607	// Aliases: Output only. Aliases in this keystore.
4608	Aliases []string `json:"aliases,omitempty"`
4609
4610	// Name: Required. Resource ID for this keystore. Values must match the
4611	// regular expression `[\w[:space:]-.]{1,255}`.
4612	Name string `json:"name,omitempty"`
4613
4614	// ServerResponse contains the HTTP response code and headers from the
4615	// server.
4616	googleapi.ServerResponse `json:"-"`
4617
4618	// ForceSendFields is a list of field names (e.g. "Aliases") to
4619	// unconditionally include in API requests. By default, fields with
4620	// empty values are omitted from API requests. However, any non-pointer,
4621	// non-interface field appearing in ForceSendFields will be sent to the
4622	// server regardless of whether the field is empty or not. This may be
4623	// used to include empty fields in Patch requests.
4624	ForceSendFields []string `json:"-"`
4625
4626	// NullFields is a list of field names (e.g. "Aliases") to include in
4627	// API requests with the JSON null value. By default, fields with empty
4628	// values are omitted from API requests. However, any field with an
4629	// empty value appearing in NullFields will be sent to the server as
4630	// null. It is an error if a field in this list has a non-empty value.
4631	// This may be used to include null fields in Patch requests.
4632	NullFields []string `json:"-"`
4633}
4634
4635func (s *GoogleCloudApigeeV1Keystore) MarshalJSON() ([]byte, error) {
4636	type NoMethod GoogleCloudApigeeV1Keystore
4637	raw := NoMethod(*s)
4638	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4639}
4640
4641type GoogleCloudApigeeV1KeystoreConfig struct {
4642	// Aliases: Aliases in the keystore.
4643	Aliases []*GoogleCloudApigeeV1AliasRevisionConfig `json:"aliases,omitempty"`
4644
4645	// Name: Resource name in the following format:
4646	// `organizations/{org}/environments/{env}/keystores/{keystore}`
4647	Name string `json:"name,omitempty"`
4648
4649	// ForceSendFields is a list of field names (e.g. "Aliases") to
4650	// unconditionally include in API requests. By default, fields with
4651	// empty values are omitted from API requests. However, any non-pointer,
4652	// non-interface field appearing in ForceSendFields will be sent to the
4653	// server regardless of whether the field is empty or not. This may be
4654	// used to include empty fields in Patch requests.
4655	ForceSendFields []string `json:"-"`
4656
4657	// NullFields is a list of field names (e.g. "Aliases") to include in
4658	// API requests with the JSON null value. By default, fields with empty
4659	// values are omitted from API requests. However, any field with an
4660	// empty value appearing in NullFields will be sent to the server as
4661	// null. It is an error if a field in this list has a non-empty value.
4662	// This may be used to include null fields in Patch requests.
4663	NullFields []string `json:"-"`
4664}
4665
4666func (s *GoogleCloudApigeeV1KeystoreConfig) MarshalJSON() ([]byte, error) {
4667	type NoMethod GoogleCloudApigeeV1KeystoreConfig
4668	raw := NoMethod(*s)
4669	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4670}
4671
4672// GoogleCloudApigeeV1ListApiCategoriesResponse: the response for
4673// ListApiCategoriesRequest.
4674type GoogleCloudApigeeV1ListApiCategoriesResponse struct {
4675	// Data: Details of categories.
4676	Data []*GoogleCloudApigeeV1ApiCategoryData `json:"data,omitempty"`
4677
4678	// ErrorCode: ID that can be used to find errors in the log files.
4679	ErrorCode string `json:"errorCode,omitempty"`
4680
4681	// Message: Description of the operation.
4682	Message string `json:"message,omitempty"`
4683
4684	// RequestId: ID that can be used to find request details in the log
4685	// files.
4686	RequestId string `json:"requestId,omitempty"`
4687
4688	// Status: Status of the operation.
4689	Status string `json:"status,omitempty"`
4690
4691	// ServerResponse contains the HTTP response code and headers from the
4692	// server.
4693	googleapi.ServerResponse `json:"-"`
4694
4695	// ForceSendFields is a list of field names (e.g. "Data") to
4696	// unconditionally include in API requests. By default, fields with
4697	// empty values are omitted from API requests. However, any non-pointer,
4698	// non-interface field appearing in ForceSendFields will be sent to the
4699	// server regardless of whether the field is empty or not. This may be
4700	// used to include empty fields in Patch requests.
4701	ForceSendFields []string `json:"-"`
4702
4703	// NullFields is a list of field names (e.g. "Data") to include in API
4704	// requests with the JSON null value. By default, fields with empty
4705	// values are omitted from API requests. However, any field with an
4706	// empty value appearing in NullFields will be sent to the server as
4707	// null. It is an error if a field in this list has a non-empty value.
4708	// This may be used to include null fields in Patch requests.
4709	NullFields []string `json:"-"`
4710}
4711
4712func (s *GoogleCloudApigeeV1ListApiCategoriesResponse) MarshalJSON() ([]byte, error) {
4713	type NoMethod GoogleCloudApigeeV1ListApiCategoriesResponse
4714	raw := NoMethod(*s)
4715	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4716}
4717
4718type GoogleCloudApigeeV1ListApiProductsResponse struct {
4719	// ApiProduct: Lists all API product names defined for an organization.
4720	ApiProduct []*GoogleCloudApigeeV1ApiProduct `json:"apiProduct,omitempty"`
4721
4722	// ServerResponse contains the HTTP response code and headers from the
4723	// server.
4724	googleapi.ServerResponse `json:"-"`
4725
4726	// ForceSendFields is a list of field names (e.g. "ApiProduct") to
4727	// unconditionally include in API requests. By default, fields with
4728	// empty values are omitted from API requests. However, any non-pointer,
4729	// non-interface field appearing in ForceSendFields will be sent to the
4730	// server regardless of whether the field is empty or not. This may be
4731	// used to include empty fields in Patch requests.
4732	ForceSendFields []string `json:"-"`
4733
4734	// NullFields is a list of field names (e.g. "ApiProduct") to include in
4735	// API requests with the JSON null value. By default, fields with empty
4736	// values are omitted from API requests. However, any field with an
4737	// empty value appearing in NullFields will be sent to the server as
4738	// null. It is an error if a field in this list has a non-empty value.
4739	// This may be used to include null fields in Patch requests.
4740	NullFields []string `json:"-"`
4741}
4742
4743func (s *GoogleCloudApigeeV1ListApiProductsResponse) MarshalJSON() ([]byte, error) {
4744	type NoMethod GoogleCloudApigeeV1ListApiProductsResponse
4745	raw := NoMethod(*s)
4746	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4747}
4748
4749type GoogleCloudApigeeV1ListApiProxiesResponse struct {
4750	Proxies []*GoogleCloudApigeeV1ApiProxy `json:"proxies,omitempty"`
4751
4752	// ServerResponse contains the HTTP response code and headers from the
4753	// server.
4754	googleapi.ServerResponse `json:"-"`
4755
4756	// ForceSendFields is a list of field names (e.g. "Proxies") to
4757	// unconditionally include in API requests. By default, fields with
4758	// empty values are omitted from API requests. However, any non-pointer,
4759	// non-interface field appearing in ForceSendFields will be sent to the
4760	// server regardless of whether the field is empty or not. This may be
4761	// used to include empty fields in Patch requests.
4762	ForceSendFields []string `json:"-"`
4763
4764	// NullFields is a list of field names (e.g. "Proxies") to include in
4765	// API requests with the JSON null value. By default, fields with empty
4766	// values are omitted from API requests. However, any field with an
4767	// empty value appearing in NullFields will be sent to the server as
4768	// null. It is an error if a field in this list has a non-empty value.
4769	// This may be used to include null fields in Patch requests.
4770	NullFields []string `json:"-"`
4771}
4772
4773func (s *GoogleCloudApigeeV1ListApiProxiesResponse) MarshalJSON() ([]byte, error) {
4774	type NoMethod GoogleCloudApigeeV1ListApiProxiesResponse
4775	raw := NoMethod(*s)
4776	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4777}
4778
4779type GoogleCloudApigeeV1ListAppsResponse struct {
4780	App []*GoogleCloudApigeeV1App `json:"app,omitempty"`
4781
4782	// ServerResponse contains the HTTP response code and headers from the
4783	// server.
4784	googleapi.ServerResponse `json:"-"`
4785
4786	// ForceSendFields is a list of field names (e.g. "App") to
4787	// unconditionally include in API requests. By default, fields with
4788	// empty values are omitted from API requests. However, any non-pointer,
4789	// non-interface field appearing in ForceSendFields will be sent to the
4790	// server regardless of whether the field is empty or not. This may be
4791	// used to include empty fields in Patch requests.
4792	ForceSendFields []string `json:"-"`
4793
4794	// NullFields is a list of field names (e.g. "App") to include in API
4795	// requests with the JSON null value. By default, fields with empty
4796	// values are omitted from API requests. However, any field with an
4797	// empty value appearing in NullFields will be sent to the server as
4798	// null. It is an error if a field in this list has a non-empty value.
4799	// This may be used to include null fields in Patch requests.
4800	NullFields []string `json:"-"`
4801}
4802
4803func (s *GoogleCloudApigeeV1ListAppsResponse) MarshalJSON() ([]byte, error) {
4804	type NoMethod GoogleCloudApigeeV1ListAppsResponse
4805	raw := NoMethod(*s)
4806	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4807}
4808
4809// GoogleCloudApigeeV1ListAsyncQueriesResponse: The response for
4810// ListAsyncQueries.
4811type GoogleCloudApigeeV1ListAsyncQueriesResponse struct {
4812	// Queries: The asynchronous queries belong to requested resource name.
4813	Queries []*GoogleCloudApigeeV1AsyncQuery `json:"queries,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. "Queries") to
4820	// unconditionally include in API requests. By default, fields with
4821	// empty values are omitted from API requests. However, any non-pointer,
4822	// non-interface field appearing in ForceSendFields will be sent to the
4823	// server regardless of whether the field is empty or not. This may be
4824	// used to include empty fields in Patch requests.
4825	ForceSendFields []string `json:"-"`
4826
4827	// NullFields is a list of field names (e.g. "Queries") 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 *GoogleCloudApigeeV1ListAsyncQueriesResponse) MarshalJSON() ([]byte, error) {
4837	type NoMethod GoogleCloudApigeeV1ListAsyncQueriesResponse
4838	raw := NoMethod(*s)
4839	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4840}
4841
4842// GoogleCloudApigeeV1ListCustomReportsResponse: This message
4843// encapsulates a list of custom report definitions
4844type GoogleCloudApigeeV1ListCustomReportsResponse struct {
4845	Qualifier []*GoogleCloudApigeeV1CustomReport `json:"qualifier,omitempty"`
4846
4847	// ServerResponse contains the HTTP response code and headers from the
4848	// server.
4849	googleapi.ServerResponse `json:"-"`
4850
4851	// ForceSendFields is a list of field names (e.g. "Qualifier") to
4852	// unconditionally include in API requests. By default, fields with
4853	// empty values are omitted from API requests. However, any non-pointer,
4854	// non-interface field appearing in ForceSendFields will be sent to the
4855	// server regardless of whether the field is empty or not. This may be
4856	// used to include empty fields in Patch requests.
4857	ForceSendFields []string `json:"-"`
4858
4859	// NullFields is a list of field names (e.g. "Qualifier") to include in
4860	// API requests with the JSON null value. By default, fields with empty
4861	// values are omitted from API requests. However, any field with an
4862	// empty value appearing in NullFields will be sent to the server as
4863	// null. It is an error if a field in this list has a non-empty value.
4864	// This may be used to include null fields in Patch requests.
4865	NullFields []string `json:"-"`
4866}
4867
4868func (s *GoogleCloudApigeeV1ListCustomReportsResponse) MarshalJSON() ([]byte, error) {
4869	type NoMethod GoogleCloudApigeeV1ListCustomReportsResponse
4870	raw := NoMethod(*s)
4871	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4872}
4873
4874// GoogleCloudApigeeV1ListDataCollectorsResponse: Response for
4875// ListDataCollectors.
4876type GoogleCloudApigeeV1ListDataCollectorsResponse struct {
4877	// DataCollectors: Data collectors in the specified organization.
4878	DataCollectors []*GoogleCloudApigeeV1DataCollector `json:"dataCollectors,omitempty"`
4879
4880	// NextPageToken: Page token that you can include in a
4881	// ListDataCollectors request to retrieve the next page. If omitted, no
4882	// subsequent pages exist.
4883	NextPageToken string `json:"nextPageToken,omitempty"`
4884
4885	// ServerResponse contains the HTTP response code and headers from the
4886	// server.
4887	googleapi.ServerResponse `json:"-"`
4888
4889	// ForceSendFields is a list of field names (e.g. "DataCollectors") to
4890	// unconditionally include in API requests. By default, fields with
4891	// empty values are omitted from API requests. However, any non-pointer,
4892	// non-interface field appearing in ForceSendFields will be sent to the
4893	// server regardless of whether the field is empty or not. This may be
4894	// used to include empty fields in Patch requests.
4895	ForceSendFields []string `json:"-"`
4896
4897	// NullFields is a list of field names (e.g. "DataCollectors") to
4898	// include in API requests with the JSON null value. By default, fields
4899	// with empty values are omitted from API requests. However, any field
4900	// with an empty value appearing in NullFields will be sent to the
4901	// server as null. It is an error if a field in this list has a
4902	// non-empty value. This may be used to include null fields in Patch
4903	// requests.
4904	NullFields []string `json:"-"`
4905}
4906
4907func (s *GoogleCloudApigeeV1ListDataCollectorsResponse) MarshalJSON() ([]byte, error) {
4908	type NoMethod GoogleCloudApigeeV1ListDataCollectorsResponse
4909	raw := NoMethod(*s)
4910	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4911}
4912
4913// GoogleCloudApigeeV1ListDatastoresResponse: The response for
4914// ListDatastores
4915type GoogleCloudApigeeV1ListDatastoresResponse struct {
4916	// Datastores: A list of datastores
4917	Datastores []*GoogleCloudApigeeV1Datastore `json:"datastores,omitempty"`
4918
4919	// ServerResponse contains the HTTP response code and headers from the
4920	// server.
4921	googleapi.ServerResponse `json:"-"`
4922
4923	// ForceSendFields is a list of field names (e.g. "Datastores") to
4924	// unconditionally include in API requests. By default, fields with
4925	// empty values are omitted from API requests. However, any non-pointer,
4926	// non-interface field appearing in ForceSendFields will be sent to the
4927	// server regardless of whether the field is empty or not. This may be
4928	// used to include empty fields in Patch requests.
4929	ForceSendFields []string `json:"-"`
4930
4931	// NullFields is a list of field names (e.g. "Datastores") to include in
4932	// API requests with the JSON null value. By default, fields with empty
4933	// values are omitted from API requests. However, any field with an
4934	// empty value appearing in NullFields will be sent to the server as
4935	// null. It is an error if a field in this list has a non-empty value.
4936	// This may be used to include null fields in Patch requests.
4937	NullFields []string `json:"-"`
4938}
4939
4940func (s *GoogleCloudApigeeV1ListDatastoresResponse) MarshalJSON() ([]byte, error) {
4941	type NoMethod GoogleCloudApigeeV1ListDatastoresResponse
4942	raw := NoMethod(*s)
4943	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4944}
4945
4946type GoogleCloudApigeeV1ListDebugSessionsResponse struct {
4947	// NextPageToken: Page token that you can include in a
4948	// ListDebugSessionsRequest to retrieve the next page. If omitted, no
4949	// subsequent pages exist.
4950	NextPageToken string `json:"nextPageToken,omitempty"`
4951
4952	// Sessions: Session info that includes debug session ID and the first
4953	// transaction creation timestamp.
4954	Sessions []*GoogleCloudApigeeV1Session `json:"sessions,omitempty"`
4955
4956	// ServerResponse contains the HTTP response code and headers from the
4957	// server.
4958	googleapi.ServerResponse `json:"-"`
4959
4960	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
4961	// unconditionally include in API requests. By default, fields with
4962	// empty values are omitted from API requests. However, any non-pointer,
4963	// non-interface field appearing in ForceSendFields will be sent to the
4964	// server regardless of whether the field is empty or not. This may be
4965	// used to include empty fields in Patch requests.
4966	ForceSendFields []string `json:"-"`
4967
4968	// NullFields is a list of field names (e.g. "NextPageToken") to include
4969	// in API requests with the JSON null value. By default, fields with
4970	// empty values are omitted from API requests. However, any field with
4971	// an empty value appearing in NullFields will be sent to the server as
4972	// null. It is an error if a field in this list has a non-empty value.
4973	// This may be used to include null fields in Patch requests.
4974	NullFields []string `json:"-"`
4975}
4976
4977func (s *GoogleCloudApigeeV1ListDebugSessionsResponse) MarshalJSON() ([]byte, error) {
4978	type NoMethod GoogleCloudApigeeV1ListDebugSessionsResponse
4979	raw := NoMethod(*s)
4980	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4981}
4982
4983type GoogleCloudApigeeV1ListDeploymentsResponse struct {
4984	// Deployments: List of deployments.
4985	Deployments []*GoogleCloudApigeeV1Deployment `json:"deployments,omitempty"`
4986
4987	// ServerResponse contains the HTTP response code and headers from the
4988	// server.
4989	googleapi.ServerResponse `json:"-"`
4990
4991	// ForceSendFields is a list of field names (e.g. "Deployments") to
4992	// unconditionally include in API requests. By default, fields with
4993	// empty values are omitted from API requests. However, any non-pointer,
4994	// non-interface field appearing in ForceSendFields will be sent to the
4995	// server regardless of whether the field is empty or not. This may be
4996	// used to include empty fields in Patch requests.
4997	ForceSendFields []string `json:"-"`
4998
4999	// NullFields is a list of field names (e.g. "Deployments") to include
5000	// in API requests with the JSON null value. By default, fields with
5001	// empty values are omitted from API requests. However, any field with
5002	// an empty value appearing in NullFields will be sent to the server as
5003	// null. It is an error if a field in this list has a non-empty value.
5004	// This may be used to include null fields in Patch requests.
5005	NullFields []string `json:"-"`
5006}
5007
5008func (s *GoogleCloudApigeeV1ListDeploymentsResponse) MarshalJSON() ([]byte, error) {
5009	type NoMethod GoogleCloudApigeeV1ListDeploymentsResponse
5010	raw := NoMethod(*s)
5011	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5012}
5013
5014type GoogleCloudApigeeV1ListDeveloperAppsResponse struct {
5015	// App: List of developer apps and their credentials.
5016	App []*GoogleCloudApigeeV1DeveloperApp `json:"app,omitempty"`
5017
5018	// ServerResponse contains the HTTP response code and headers from the
5019	// server.
5020	googleapi.ServerResponse `json:"-"`
5021
5022	// ForceSendFields is a list of field names (e.g. "App") to
5023	// unconditionally include in API requests. By default, fields with
5024	// empty values are omitted from API requests. However, any non-pointer,
5025	// non-interface field appearing in ForceSendFields will be sent to the
5026	// server regardless of whether the field is empty or not. This may be
5027	// used to include empty fields in Patch requests.
5028	ForceSendFields []string `json:"-"`
5029
5030	// NullFields is a list of field names (e.g. "App") to include in API
5031	// requests with the JSON null value. By default, fields with empty
5032	// values are omitted from API requests. However, any field with an
5033	// empty value appearing in NullFields will be sent to the server as
5034	// null. It is an error if a field in this list has a non-empty value.
5035	// This may be used to include null fields in Patch requests.
5036	NullFields []string `json:"-"`
5037}
5038
5039func (s *GoogleCloudApigeeV1ListDeveloperAppsResponse) MarshalJSON() ([]byte, error) {
5040	type NoMethod GoogleCloudApigeeV1ListDeveloperAppsResponse
5041	raw := NoMethod(*s)
5042	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5043}
5044
5045// GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse: Response for
5046// ListDeveloperSubscriptions.
5047type GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse struct {
5048	// DeveloperSubscriptions: List of all subscriptions.
5049	DeveloperSubscriptions []*GoogleCloudApigeeV1DeveloperSubscription `json:"developerSubscriptions,omitempty"`
5050
5051	// NextStartKey: Value that can be sent as `startKey` to retrieve the
5052	// next page of content. If this field is omitted, there are no
5053	// subsequent pages.
5054	NextStartKey string `json:"nextStartKey,omitempty"`
5055
5056	// ServerResponse contains the HTTP response code and headers from the
5057	// server.
5058	googleapi.ServerResponse `json:"-"`
5059
5060	// ForceSendFields is a list of field names (e.g.
5061	// "DeveloperSubscriptions") to unconditionally include in API requests.
5062	// By default, fields with empty values are omitted from API requests.
5063	// However, any non-pointer, non-interface field appearing in
5064	// ForceSendFields will be sent to the server regardless of whether the
5065	// field is empty or not. This may be used to include empty fields in
5066	// Patch requests.
5067	ForceSendFields []string `json:"-"`
5068
5069	// NullFields is a list of field names (e.g. "DeveloperSubscriptions")
5070	// to include in API requests with the JSON null value. By default,
5071	// fields with empty values are omitted from API requests. However, any
5072	// field with an empty value appearing in NullFields will be sent to the
5073	// server as null. It is an error if a field in this list has a
5074	// non-empty value. This may be used to include null fields in Patch
5075	// requests.
5076	NullFields []string `json:"-"`
5077}
5078
5079func (s *GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse) MarshalJSON() ([]byte, error) {
5080	type NoMethod GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse
5081	raw := NoMethod(*s)
5082	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5083}
5084
5085// GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse: Response
5086// for ListEnvironmentGroupAttachments.
5087type GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse struct {
5088	// EnvironmentGroupAttachments: EnvironmentGroupAttachments for the
5089	// specified environment group.
5090	EnvironmentGroupAttachments []*GoogleCloudApigeeV1EnvironmentGroupAttachment `json:"environmentGroupAttachments,omitempty"`
5091
5092	// NextPageToken: Page token that you can include in a
5093	// ListEnvironmentGroupAttachments request to retrieve the next page. If
5094	// omitted, no subsequent pages exist.
5095	NextPageToken string `json:"nextPageToken,omitempty"`
5096
5097	// ServerResponse contains the HTTP response code and headers from the
5098	// server.
5099	googleapi.ServerResponse `json:"-"`
5100
5101	// ForceSendFields is a list of field names (e.g.
5102	// "EnvironmentGroupAttachments") to unconditionally include in API
5103	// requests. By default, fields with empty values are omitted from API
5104	// requests. However, any non-pointer, non-interface field appearing in
5105	// ForceSendFields will be sent to the server regardless of whether the
5106	// field is empty or not. This may be used to include empty fields in
5107	// Patch requests.
5108	ForceSendFields []string `json:"-"`
5109
5110	// NullFields is a list of field names (e.g.
5111	// "EnvironmentGroupAttachments") to include in API requests with the
5112	// JSON null value. By default, fields with empty values are omitted
5113	// from API requests. However, any field with an empty value appearing
5114	// in NullFields will be sent to the server as null. It is an error if a
5115	// field in this list has a non-empty value. This may be used to include
5116	// null fields in Patch requests.
5117	NullFields []string `json:"-"`
5118}
5119
5120func (s *GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse) MarshalJSON() ([]byte, error) {
5121	type NoMethod GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse
5122	raw := NoMethod(*s)
5123	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5124}
5125
5126// GoogleCloudApigeeV1ListEnvironmentGroupsResponse: Response for
5127// ListEnvironmentGroups.
5128type GoogleCloudApigeeV1ListEnvironmentGroupsResponse struct {
5129	// EnvironmentGroups: EnvironmentGroups in the specified organization.
5130	EnvironmentGroups []*GoogleCloudApigeeV1EnvironmentGroup `json:"environmentGroups,omitempty"`
5131
5132	// NextPageToken: Page token that you can include in a
5133	// ListEnvironmentGroups request to retrieve the next page. If omitted,
5134	// no subsequent pages exist.
5135	NextPageToken string `json:"nextPageToken,omitempty"`
5136
5137	// ServerResponse contains the HTTP response code and headers from the
5138	// server.
5139	googleapi.ServerResponse `json:"-"`
5140
5141	// ForceSendFields is a list of field names (e.g. "EnvironmentGroups")
5142	// to unconditionally include in API requests. By default, fields with
5143	// empty values are omitted from API requests. However, any non-pointer,
5144	// non-interface field appearing in ForceSendFields will be sent to the
5145	// server regardless of whether the field is empty or not. This may be
5146	// used to include empty fields in Patch requests.
5147	ForceSendFields []string `json:"-"`
5148
5149	// NullFields is a list of field names (e.g. "EnvironmentGroups") to
5150	// include in API requests with the JSON null value. By default, fields
5151	// with empty values are omitted from API requests. However, any field
5152	// with an empty value appearing in NullFields will be sent to the
5153	// server as null. It is an error if a field in this list has a
5154	// non-empty value. This may be used to include null fields in Patch
5155	// requests.
5156	NullFields []string `json:"-"`
5157}
5158
5159func (s *GoogleCloudApigeeV1ListEnvironmentGroupsResponse) MarshalJSON() ([]byte, error) {
5160	type NoMethod GoogleCloudApigeeV1ListEnvironmentGroupsResponse
5161	raw := NoMethod(*s)
5162	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5163}
5164
5165// GoogleCloudApigeeV1ListEnvironmentResourcesResponse: Response for
5166// ListEnvironmentResources
5167type GoogleCloudApigeeV1ListEnvironmentResourcesResponse struct {
5168	// ResourceFile: List of resources files.
5169	ResourceFile []*GoogleCloudApigeeV1ResourceFile `json:"resourceFile,omitempty"`
5170
5171	// ServerResponse contains the HTTP response code and headers from the
5172	// server.
5173	googleapi.ServerResponse `json:"-"`
5174
5175	// ForceSendFields is a list of field names (e.g. "ResourceFile") to
5176	// unconditionally include in API requests. By default, fields with
5177	// empty values are omitted from API requests. However, any non-pointer,
5178	// non-interface field appearing in ForceSendFields will be sent to the
5179	// server regardless of whether the field is empty or not. This may be
5180	// used to include empty fields in Patch requests.
5181	ForceSendFields []string `json:"-"`
5182
5183	// NullFields is a list of field names (e.g. "ResourceFile") to include
5184	// in API requests with the JSON null value. By default, fields with
5185	// empty values are omitted from API requests. However, any field with
5186	// an empty value appearing in NullFields will be sent to the server as
5187	// null. It is an error if a field in this list has a non-empty value.
5188	// This may be used to include null fields in Patch requests.
5189	NullFields []string `json:"-"`
5190}
5191
5192func (s *GoogleCloudApigeeV1ListEnvironmentResourcesResponse) MarshalJSON() ([]byte, error) {
5193	type NoMethod GoogleCloudApigeeV1ListEnvironmentResourcesResponse
5194	raw := NoMethod(*s)
5195	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5196}
5197
5198// GoogleCloudApigeeV1ListExportsResponse: The response for ListExports
5199type GoogleCloudApigeeV1ListExportsResponse struct {
5200	// Exports: Details of the export jobs.
5201	Exports []*GoogleCloudApigeeV1Export `json:"exports,omitempty"`
5202
5203	// ServerResponse contains the HTTP response code and headers from the
5204	// server.
5205	googleapi.ServerResponse `json:"-"`
5206
5207	// ForceSendFields is a list of field names (e.g. "Exports") to
5208	// unconditionally include in API requests. By default, fields with
5209	// empty values are omitted from API requests. However, any non-pointer,
5210	// non-interface field appearing in ForceSendFields will be sent to the
5211	// server regardless of whether the field is empty or not. This may be
5212	// used to include empty fields in Patch requests.
5213	ForceSendFields []string `json:"-"`
5214
5215	// NullFields is a list of field names (e.g. "Exports") to include in
5216	// API requests with the JSON null value. By default, fields with empty
5217	// values are omitted from API requests. However, any field with an
5218	// empty value appearing in NullFields will be sent to the server as
5219	// null. It is an error if a field in this list has a non-empty value.
5220	// This may be used to include null fields in Patch requests.
5221	NullFields []string `json:"-"`
5222}
5223
5224func (s *GoogleCloudApigeeV1ListExportsResponse) MarshalJSON() ([]byte, error) {
5225	type NoMethod GoogleCloudApigeeV1ListExportsResponse
5226	raw := NoMethod(*s)
5227	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5228}
5229
5230type GoogleCloudApigeeV1ListHybridIssuersResponse struct {
5231	// Issuers: Lists of hybrid services and its trusted issuer email ids.
5232	Issuers []*GoogleCloudApigeeV1ServiceIssuersMapping `json:"issuers,omitempty"`
5233
5234	// ServerResponse contains the HTTP response code and headers from the
5235	// server.
5236	googleapi.ServerResponse `json:"-"`
5237
5238	// ForceSendFields is a list of field names (e.g. "Issuers") to
5239	// unconditionally include in API requests. By default, fields with
5240	// empty values are omitted from API requests. However, any non-pointer,
5241	// non-interface field appearing in ForceSendFields will be sent to the
5242	// server regardless of whether the field is empty or not. This may be
5243	// used to include empty fields in Patch requests.
5244	ForceSendFields []string `json:"-"`
5245
5246	// NullFields is a list of field names (e.g. "Issuers") to include in
5247	// API requests with the JSON null value. By default, fields with empty
5248	// values are omitted from API requests. However, any field with an
5249	// empty value appearing in NullFields will be sent to the server as
5250	// null. It is an error if a field in this list has a non-empty value.
5251	// This may be used to include null fields in Patch requests.
5252	NullFields []string `json:"-"`
5253}
5254
5255func (s *GoogleCloudApigeeV1ListHybridIssuersResponse) MarshalJSON() ([]byte, error) {
5256	type NoMethod GoogleCloudApigeeV1ListHybridIssuersResponse
5257	raw := NoMethod(*s)
5258	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5259}
5260
5261// GoogleCloudApigeeV1ListInstanceAttachmentsResponse: Response for
5262// ListInstanceAttachments.
5263type GoogleCloudApigeeV1ListInstanceAttachmentsResponse struct {
5264	// Attachments: Attachments for the instance.
5265	Attachments []*GoogleCloudApigeeV1InstanceAttachment `json:"attachments,omitempty"`
5266
5267	// NextPageToken: Page token that you can include in a
5268	// ListInstanceAttachments request to retrieve the next page of content.
5269	// If omitted, no subsequent pages exist.
5270	NextPageToken string `json:"nextPageToken,omitempty"`
5271
5272	// ServerResponse contains the HTTP response code and headers from the
5273	// server.
5274	googleapi.ServerResponse `json:"-"`
5275
5276	// ForceSendFields is a list of field names (e.g. "Attachments") to
5277	// unconditionally include in API requests. By default, fields with
5278	// empty values are omitted from API requests. However, any non-pointer,
5279	// non-interface field appearing in ForceSendFields will be sent to the
5280	// server regardless of whether the field is empty or not. This may be
5281	// used to include empty fields in Patch requests.
5282	ForceSendFields []string `json:"-"`
5283
5284	// NullFields is a list of field names (e.g. "Attachments") to include
5285	// in API requests with the JSON null value. By default, fields with
5286	// empty values are omitted from API requests. However, any field with
5287	// an empty value appearing in NullFields will be sent to the server as
5288	// null. It is an error if a field in this list has a non-empty value.
5289	// This may be used to include null fields in Patch requests.
5290	NullFields []string `json:"-"`
5291}
5292
5293func (s *GoogleCloudApigeeV1ListInstanceAttachmentsResponse) MarshalJSON() ([]byte, error) {
5294	type NoMethod GoogleCloudApigeeV1ListInstanceAttachmentsResponse
5295	raw := NoMethod(*s)
5296	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5297}
5298
5299// GoogleCloudApigeeV1ListInstancesResponse: Response for ListInstances.
5300type GoogleCloudApigeeV1ListInstancesResponse struct {
5301	// Instances: Instances in the specified organization.
5302	Instances []*GoogleCloudApigeeV1Instance `json:"instances,omitempty"`
5303
5304	// NextPageToken: Page token that you can include in a ListInstance
5305	// request to retrieve the next page of content. If omitted, no
5306	// subsequent pages exist.
5307	NextPageToken string `json:"nextPageToken,omitempty"`
5308
5309	// ServerResponse contains the HTTP response code and headers from the
5310	// server.
5311	googleapi.ServerResponse `json:"-"`
5312
5313	// ForceSendFields is a list of field names (e.g. "Instances") to
5314	// unconditionally include in API requests. By default, fields with
5315	// empty values are omitted from API requests. However, any non-pointer,
5316	// non-interface field appearing in ForceSendFields will be sent to the
5317	// server regardless of whether the field is empty or not. This may be
5318	// used to include empty fields in Patch requests.
5319	ForceSendFields []string `json:"-"`
5320
5321	// NullFields is a list of field names (e.g. "Instances") to include in
5322	// API requests with the JSON null value. By default, fields with empty
5323	// values are omitted from API requests. However, any field with an
5324	// empty value appearing in NullFields will be sent to the server as
5325	// null. It is an error if a field in this list has a non-empty value.
5326	// This may be used to include null fields in Patch requests.
5327	NullFields []string `json:"-"`
5328}
5329
5330func (s *GoogleCloudApigeeV1ListInstancesResponse) MarshalJSON() ([]byte, error) {
5331	type NoMethod GoogleCloudApigeeV1ListInstancesResponse
5332	raw := NoMethod(*s)
5333	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5334}
5335
5336// GoogleCloudApigeeV1ListNatAddressesResponse: Response for
5337// ListNatAddresses.
5338type GoogleCloudApigeeV1ListNatAddressesResponse struct {
5339	// NatAddresses: List of NAT Addresses for the instance.
5340	NatAddresses []*GoogleCloudApigeeV1NatAddress `json:"natAddresses,omitempty"`
5341
5342	// NextPageToken: Page token that you can include in a ListNatAddresses
5343	// request to retrieve the next page of content. If omitted, no
5344	// subsequent pages exist.
5345	NextPageToken string `json:"nextPageToken,omitempty"`
5346
5347	// ServerResponse contains the HTTP response code and headers from the
5348	// server.
5349	googleapi.ServerResponse `json:"-"`
5350
5351	// ForceSendFields is a list of field names (e.g. "NatAddresses") to
5352	// unconditionally include in API requests. By default, fields with
5353	// empty values are omitted from API requests. However, any non-pointer,
5354	// non-interface field appearing in ForceSendFields will be sent to the
5355	// server regardless of whether the field is empty or not. This may be
5356	// used to include empty fields in Patch requests.
5357	ForceSendFields []string `json:"-"`
5358
5359	// NullFields is a list of field names (e.g. "NatAddresses") to include
5360	// in API requests with the JSON null value. By default, fields with
5361	// empty values are omitted from API requests. However, any field with
5362	// an empty value appearing in NullFields will be sent to the server as
5363	// null. It is an error if a field in this list has a non-empty value.
5364	// This may be used to include null fields in Patch requests.
5365	NullFields []string `json:"-"`
5366}
5367
5368func (s *GoogleCloudApigeeV1ListNatAddressesResponse) MarshalJSON() ([]byte, error) {
5369	type NoMethod GoogleCloudApigeeV1ListNatAddressesResponse
5370	raw := NoMethod(*s)
5371	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5372}
5373
5374type GoogleCloudApigeeV1ListOfDevelopersResponse struct {
5375	// Developer: List of developers.
5376	Developer []*GoogleCloudApigeeV1Developer `json:"developer,omitempty"`
5377
5378	// ServerResponse contains the HTTP response code and headers from the
5379	// server.
5380	googleapi.ServerResponse `json:"-"`
5381
5382	// ForceSendFields is a list of field names (e.g. "Developer") to
5383	// unconditionally include in API requests. By default, fields with
5384	// empty values are omitted from API requests. However, any non-pointer,
5385	// non-interface field appearing in ForceSendFields will be sent to the
5386	// server regardless of whether the field is empty or not. This may be
5387	// used to include empty fields in Patch requests.
5388	ForceSendFields []string `json:"-"`
5389
5390	// NullFields is a list of field names (e.g. "Developer") to include in
5391	// API requests with the JSON null value. By default, fields with empty
5392	// values are omitted from API requests. However, any field with an
5393	// empty value appearing in NullFields will be sent to the server as
5394	// null. It is an error if a field in this list has a non-empty value.
5395	// This may be used to include null fields in Patch requests.
5396	NullFields []string `json:"-"`
5397}
5398
5399func (s *GoogleCloudApigeeV1ListOfDevelopersResponse) MarshalJSON() ([]byte, error) {
5400	type NoMethod GoogleCloudApigeeV1ListOfDevelopersResponse
5401	raw := NoMethod(*s)
5402	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5403}
5404
5405type GoogleCloudApigeeV1ListOrganizationsResponse struct {
5406	// Organizations: List of Apigee organizations and associated GCP
5407	// projects.
5408	Organizations []*GoogleCloudApigeeV1OrganizationProjectMapping `json:"organizations,omitempty"`
5409
5410	// ServerResponse contains the HTTP response code and headers from the
5411	// server.
5412	googleapi.ServerResponse `json:"-"`
5413
5414	// ForceSendFields is a list of field names (e.g. "Organizations") to
5415	// unconditionally include in API requests. By default, fields with
5416	// empty values are omitted from API requests. However, any non-pointer,
5417	// non-interface field appearing in ForceSendFields will be sent to the
5418	// server regardless of whether the field is empty or not. This may be
5419	// used to include empty fields in Patch requests.
5420	ForceSendFields []string `json:"-"`
5421
5422	// NullFields is a list of field names (e.g. "Organizations") to include
5423	// in API requests with the JSON null value. By default, fields with
5424	// empty values are omitted from API requests. However, any field with
5425	// an empty value appearing in NullFields will be sent to the server as
5426	// null. It is an error if a field in this list has a non-empty value.
5427	// This may be used to include null fields in Patch requests.
5428	NullFields []string `json:"-"`
5429}
5430
5431func (s *GoogleCloudApigeeV1ListOrganizationsResponse) MarshalJSON() ([]byte, error) {
5432	type NoMethod GoogleCloudApigeeV1ListOrganizationsResponse
5433	raw := NoMethod(*s)
5434	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5435}
5436
5437// GoogleCloudApigeeV1ListRatePlansResponse: Response for ListRatePlans.
5438type GoogleCloudApigeeV1ListRatePlansResponse struct {
5439	// NextStartKey: Value that can be sent as `startKey` to retrieve the
5440	// next page of content. If this field is omitted, there are no
5441	// subsequent pages.
5442	NextStartKey string `json:"nextStartKey,omitempty"`
5443
5444	// RatePlans: List of rate plans in an organization.
5445	RatePlans []*GoogleCloudApigeeV1RatePlan `json:"ratePlans,omitempty"`
5446
5447	// ServerResponse contains the HTTP response code and headers from the
5448	// server.
5449	googleapi.ServerResponse `json:"-"`
5450
5451	// ForceSendFields is a list of field names (e.g. "NextStartKey") to
5452	// unconditionally include in API requests. By default, fields with
5453	// empty values are omitted from API requests. However, any non-pointer,
5454	// non-interface field appearing in ForceSendFields will be sent to the
5455	// server regardless of whether the field is empty or not. This may be
5456	// used to include empty fields in Patch requests.
5457	ForceSendFields []string `json:"-"`
5458
5459	// NullFields is a list of field names (e.g. "NextStartKey") to include
5460	// in API requests with the JSON null value. By default, fields with
5461	// empty values are omitted from API requests. However, any field with
5462	// an empty value appearing in NullFields will be sent to the server as
5463	// null. It is an error if a field in this list has a non-empty value.
5464	// This may be used to include null fields in Patch requests.
5465	NullFields []string `json:"-"`
5466}
5467
5468func (s *GoogleCloudApigeeV1ListRatePlansResponse) MarshalJSON() ([]byte, error) {
5469	type NoMethod GoogleCloudApigeeV1ListRatePlansResponse
5470	raw := NoMethod(*s)
5471	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5472}
5473
5474type GoogleCloudApigeeV1ListSharedFlowsResponse struct {
5475	SharedFlows []*GoogleCloudApigeeV1SharedFlow `json:"sharedFlows,omitempty"`
5476
5477	// ServerResponse contains the HTTP response code and headers from the
5478	// server.
5479	googleapi.ServerResponse `json:"-"`
5480
5481	// ForceSendFields is a list of field names (e.g. "SharedFlows") to
5482	// unconditionally include in API requests. By default, fields with
5483	// empty values are omitted from API requests. However, any non-pointer,
5484	// non-interface field appearing in ForceSendFields will be sent to the
5485	// server regardless of whether the field is empty or not. This may be
5486	// used to include empty fields in Patch requests.
5487	ForceSendFields []string `json:"-"`
5488
5489	// NullFields is a list of field names (e.g. "SharedFlows") to include
5490	// in API requests with the JSON null value. By default, fields with
5491	// empty values are omitted from API requests. However, any field with
5492	// an empty value appearing in NullFields will be sent to the server as
5493	// null. It is an error if a field in this list has a non-empty value.
5494	// This may be used to include null fields in Patch requests.
5495	NullFields []string `json:"-"`
5496}
5497
5498func (s *GoogleCloudApigeeV1ListSharedFlowsResponse) MarshalJSON() ([]byte, error) {
5499	type NoMethod GoogleCloudApigeeV1ListSharedFlowsResponse
5500	raw := NoMethod(*s)
5501	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5502}
5503
5504// GoogleCloudApigeeV1ListTraceConfigOverridesResponse: Response for
5505// ListTraceConfigOverrides.
5506type GoogleCloudApigeeV1ListTraceConfigOverridesResponse struct {
5507	// NextPageToken: Token value that can be passed as `page_token` to
5508	// retrieve the next page of content.
5509	NextPageToken string `json:"nextPageToken,omitempty"`
5510
5511	// TraceConfigOverrides: List all trace configuration overrides in an
5512	// environment.
5513	TraceConfigOverrides []*GoogleCloudApigeeV1TraceConfigOverride `json:"traceConfigOverrides,omitempty"`
5514
5515	// ServerResponse contains the HTTP response code and headers from the
5516	// server.
5517	googleapi.ServerResponse `json:"-"`
5518
5519	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
5520	// unconditionally include in API requests. By default, fields with
5521	// empty values are omitted from API requests. However, any non-pointer,
5522	// non-interface field appearing in ForceSendFields will be sent to the
5523	// server regardless of whether the field is empty or not. This may be
5524	// used to include empty fields in Patch requests.
5525	ForceSendFields []string `json:"-"`
5526
5527	// NullFields is a list of field names (e.g. "NextPageToken") to include
5528	// in API requests with the JSON null value. By default, fields with
5529	// empty values are omitted from API requests. However, any field with
5530	// an empty value appearing in NullFields will be sent to the server as
5531	// null. It is an error if a field in this list has a non-empty value.
5532	// This may be used to include null fields in Patch requests.
5533	NullFields []string `json:"-"`
5534}
5535
5536func (s *GoogleCloudApigeeV1ListTraceConfigOverridesResponse) MarshalJSON() ([]byte, error) {
5537	type NoMethod GoogleCloudApigeeV1ListTraceConfigOverridesResponse
5538	raw := NoMethod(*s)
5539	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5540}
5541
5542// GoogleCloudApigeeV1Metadata: This message type encapsulates
5543// additional information about query execution.
5544type GoogleCloudApigeeV1Metadata struct {
5545	// Errors: List of error messages as strings.
5546	Errors []string `json:"errors,omitempty"`
5547
5548	// Notices: List of additional information such as data source, if
5549	// result was truncated etc. E.g "notices": [ "Source:Postgres", "PG
5550	// Host:uappg0rw.e2e.apigeeks.net", "query served
5551	// by:4b64601e-40de-4eb1-bfb9-eeee7ac929ed", "Table used:
5552	// edge.api.uapgroup2.agg_api" ]
5553	Notices []string `json:"notices,omitempty"`
5554
5555	// ForceSendFields is a list of field names (e.g. "Errors") to
5556	// unconditionally include in API requests. By default, fields with
5557	// empty values are omitted from API requests. However, any non-pointer,
5558	// non-interface field appearing in ForceSendFields will be sent to the
5559	// server regardless of whether the field is empty or not. This may be
5560	// used to include empty fields in Patch requests.
5561	ForceSendFields []string `json:"-"`
5562
5563	// NullFields is a list of field names (e.g. "Errors") to include in API
5564	// requests with the JSON null value. By default, fields with empty
5565	// values are omitted from API requests. However, any field with an
5566	// empty value appearing in NullFields will be sent to the server as
5567	// null. It is an error if a field in this list has a non-empty value.
5568	// This may be used to include null fields in Patch requests.
5569	NullFields []string `json:"-"`
5570}
5571
5572func (s *GoogleCloudApigeeV1Metadata) MarshalJSON() ([]byte, error) {
5573	type NoMethod GoogleCloudApigeeV1Metadata
5574	raw := NoMethod(*s)
5575	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5576}
5577
5578// GoogleCloudApigeeV1Metric: This message type encapsulates the metric
5579// data point. Example: { "name": "sum(message_count)", "values" : [ {
5580// "timestamp": 1549004400000, "value": "39.0" }, { "timestamp" :
5581// 1548997200000, "value" : "0.0" } ] } or { "name":
5582// "sum(message_count)", "values" : ["39.0"] }
5583type GoogleCloudApigeeV1Metric struct {
5584	// Name: This field contains the metric name.
5585	Name string `json:"name,omitempty"`
5586
5587	// Values: List of metric values. Possible value format:
5588	// "values":["39.0"] or "values":[ { "value": "39.0", "timestamp":
5589	// 1232434354} ]
5590	Values []interface{} `json:"values,omitempty"`
5591
5592	// ForceSendFields is a list of field names (e.g. "Name") to
5593	// unconditionally include in API requests. By default, fields with
5594	// empty values are omitted from API requests. However, any non-pointer,
5595	// non-interface field appearing in ForceSendFields will be sent to the
5596	// server regardless of whether the field is empty or not. This may be
5597	// used to include empty fields in Patch requests.
5598	ForceSendFields []string `json:"-"`
5599
5600	// NullFields is a list of field names (e.g. "Name") to include in API
5601	// requests with the JSON null value. By default, fields with empty
5602	// values are omitted from API requests. However, any field with an
5603	// empty value appearing in NullFields will be sent to the server as
5604	// null. It is an error if a field in this list has a non-empty value.
5605	// This may be used to include null fields in Patch requests.
5606	NullFields []string `json:"-"`
5607}
5608
5609func (s *GoogleCloudApigeeV1Metric) MarshalJSON() ([]byte, error) {
5610	type NoMethod GoogleCloudApigeeV1Metric
5611	raw := NoMethod(*s)
5612	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5613}
5614
5615// GoogleCloudApigeeV1MonetizationConfig: Configuration for the
5616// Monetization add-on.
5617type GoogleCloudApigeeV1MonetizationConfig struct {
5618	// Enabled: Flag that specifies whether the Monetization add-on is
5619	// enabled.
5620	Enabled bool `json:"enabled,omitempty"`
5621
5622	// ForceSendFields is a list of field names (e.g. "Enabled") to
5623	// unconditionally include in API requests. By default, fields with
5624	// empty values are omitted from API requests. However, any non-pointer,
5625	// non-interface field appearing in ForceSendFields will be sent to the
5626	// server regardless of whether the field is empty or not. This may be
5627	// used to include empty fields in Patch requests.
5628	ForceSendFields []string `json:"-"`
5629
5630	// NullFields is a list of field names (e.g. "Enabled") to include in
5631	// API requests with the JSON null value. By default, fields with empty
5632	// values are omitted from API requests. However, any field with an
5633	// empty value appearing in NullFields will be sent to the server as
5634	// null. It is an error if a field in this list has a non-empty value.
5635	// This may be used to include null fields in Patch requests.
5636	NullFields []string `json:"-"`
5637}
5638
5639func (s *GoogleCloudApigeeV1MonetizationConfig) MarshalJSON() ([]byte, error) {
5640	type NoMethod GoogleCloudApigeeV1MonetizationConfig
5641	raw := NoMethod(*s)
5642	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5643}
5644
5645// GoogleCloudApigeeV1NatAddress: Apigee NAT(network address
5646// translation) address. A NAT address is a static external IP address
5647// used for Internet egress traffic.
5648type GoogleCloudApigeeV1NatAddress struct {
5649	// IpAddress: Output only. The static IPV4 address.
5650	IpAddress string `json:"ipAddress,omitempty"`
5651
5652	// Name: Required. Resource ID of the NAT address.
5653	Name string `json:"name,omitempty"`
5654
5655	// State: Output only. State of the nat address.
5656	//
5657	// Possible values:
5658	//   "STATE_UNSPECIFIED" - The resource is in an unspecified state.
5659	//   "CREATING" - The NAT address is being created.
5660	//   "RESERVED" - The NAT address is reserved but not yet used for
5661	// Internet egress.
5662	//   "ACTIVE" - The NAT address is active and used for Internet egress.
5663	//   "DELETING" - The NAT address is being deleted.
5664	State string `json:"state,omitempty"`
5665
5666	// ServerResponse contains the HTTP response code and headers from the
5667	// server.
5668	googleapi.ServerResponse `json:"-"`
5669
5670	// ForceSendFields is a list of field names (e.g. "IpAddress") to
5671	// unconditionally include in API requests. By default, fields with
5672	// empty values are omitted from API requests. However, any non-pointer,
5673	// non-interface field appearing in ForceSendFields will be sent to the
5674	// server regardless of whether the field is empty or not. This may be
5675	// used to include empty fields in Patch requests.
5676	ForceSendFields []string `json:"-"`
5677
5678	// NullFields is a list of field names (e.g. "IpAddress") to include in
5679	// API requests with the JSON null value. By default, fields with empty
5680	// values are omitted from API requests. However, any field with an
5681	// empty value appearing in NullFields will be sent to the server as
5682	// null. It is an error if a field in this list has a non-empty value.
5683	// This may be used to include null fields in Patch requests.
5684	NullFields []string `json:"-"`
5685}
5686
5687func (s *GoogleCloudApigeeV1NatAddress) MarshalJSON() ([]byte, error) {
5688	type NoMethod GoogleCloudApigeeV1NatAddress
5689	raw := NoMethod(*s)
5690	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5691}
5692
5693// GoogleCloudApigeeV1Operation: Operation represents the pairing of
5694// REST resource path and the actions (verbs) allowed on the resource
5695// path.
5696type GoogleCloudApigeeV1Operation struct {
5697	// Methods: methods refers to the REST verbs as in
5698	// https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html. When none
5699	// specified, all verb types are allowed.
5700	Methods []string `json:"methods,omitempty"`
5701
5702	// Resource: Required. resource represents REST resource path associated
5703	// with the proxy/remote service.
5704	Resource string `json:"resource,omitempty"`
5705
5706	// ForceSendFields is a list of field names (e.g. "Methods") to
5707	// unconditionally include in API requests. By default, fields with
5708	// empty values are omitted from API requests. However, any non-pointer,
5709	// non-interface field appearing in ForceSendFields will be sent to the
5710	// server regardless of whether the field is empty or not. This may be
5711	// used to include empty fields in Patch requests.
5712	ForceSendFields []string `json:"-"`
5713
5714	// NullFields is a list of field names (e.g. "Methods") to include in
5715	// API requests with the JSON null value. By default, fields with empty
5716	// values are omitted from API requests. However, any field with an
5717	// empty value appearing in NullFields will be sent to the server as
5718	// null. It is an error if a field in this list has a non-empty value.
5719	// This may be used to include null fields in Patch requests.
5720	NullFields []string `json:"-"`
5721}
5722
5723func (s *GoogleCloudApigeeV1Operation) MarshalJSON() ([]byte, error) {
5724	type NoMethod GoogleCloudApigeeV1Operation
5725	raw := NoMethod(*s)
5726	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5727}
5728
5729// GoogleCloudApigeeV1OperationConfig: OperationConfig binds the
5730// resources in a proxy or remote service with the allowed REST methods
5731// and its associated quota enforcement.
5732type GoogleCloudApigeeV1OperationConfig struct {
5733	// ApiSource: Required. API proxy or remote service name with which the
5734	// resources, methods, and quota are associated.
5735	ApiSource string `json:"apiSource,omitempty"`
5736
5737	// Attributes: Custom attributes associated with the operation.
5738	Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
5739
5740	// Operations: List of resource/method pairs for the proxy/remote
5741	// service, upon which quota will applied. **Note**: Currently, you can
5742	// specify only a single resource/method pair. The call will fail if
5743	// more than one resource/method pair is provided.
5744	Operations []*GoogleCloudApigeeV1Operation `json:"operations,omitempty"`
5745
5746	// Quota: Quota parameters to be enforced for the resources, methods,
5747	// api_source combination. If none are specified, quota enforcement will
5748	// not be done.
5749	Quota *GoogleCloudApigeeV1Quota `json:"quota,omitempty"`
5750
5751	// ForceSendFields is a list of field names (e.g. "ApiSource") to
5752	// unconditionally include in API requests. By default, fields with
5753	// empty values are omitted from API requests. However, any non-pointer,
5754	// non-interface field appearing in ForceSendFields will be sent to the
5755	// server regardless of whether the field is empty or not. This may be
5756	// used to include empty fields in Patch requests.
5757	ForceSendFields []string `json:"-"`
5758
5759	// NullFields is a list of field names (e.g. "ApiSource") to include in
5760	// API requests with the JSON null value. By default, fields with empty
5761	// values are omitted from API requests. However, any field with an
5762	// empty value appearing in NullFields will be sent to the server as
5763	// null. It is an error if a field in this list has a non-empty value.
5764	// This may be used to include null fields in Patch requests.
5765	NullFields []string `json:"-"`
5766}
5767
5768func (s *GoogleCloudApigeeV1OperationConfig) MarshalJSON() ([]byte, error) {
5769	type NoMethod GoogleCloudApigeeV1OperationConfig
5770	raw := NoMethod(*s)
5771	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5772}
5773
5774// GoogleCloudApigeeV1OperationGroup: List of operation configuration
5775// details associated with Apigee API proxies or remote services. Remote
5776// services are non-Apigee proxies, such as Istio-Envoy.
5777type GoogleCloudApigeeV1OperationGroup struct {
5778	// OperationConfigType: Flag that specifes whether the configuration is
5779	// for Apigee API proxy or a remote service. Valid values are `proxy` or
5780	// `remoteservice`. Defaults to `proxy`. Set to `proxy` when Apigee API
5781	// proxies are associated with the API product. Set to `remoteservice`
5782	// when non-Apigee proxies like Istio-Envoy are associated with the API
5783	// product.
5784	OperationConfigType string `json:"operationConfigType,omitempty"`
5785
5786	// OperationConfigs: Required. List of operation configurations for
5787	// either Apigee API proxies or other remote services that are
5788	// associated with this API product.
5789	OperationConfigs []*GoogleCloudApigeeV1OperationConfig `json:"operationConfigs,omitempty"`
5790
5791	// ForceSendFields is a list of field names (e.g. "OperationConfigType")
5792	// to unconditionally include in API requests. By default, fields with
5793	// empty values are omitted from API requests. However, any non-pointer,
5794	// non-interface field appearing in ForceSendFields will be sent to the
5795	// server regardless of whether the field is empty or not. This may be
5796	// used to include empty fields in Patch requests.
5797	ForceSendFields []string `json:"-"`
5798
5799	// NullFields is a list of field names (e.g. "OperationConfigType") to
5800	// include in API requests with the JSON null value. By default, fields
5801	// with empty values are omitted from API requests. However, any field
5802	// with an empty value appearing in NullFields will be sent to the
5803	// server as null. It is an error if a field in this list has a
5804	// non-empty value. This may be used to include null fields in Patch
5805	// requests.
5806	NullFields []string `json:"-"`
5807}
5808
5809func (s *GoogleCloudApigeeV1OperationGroup) MarshalJSON() ([]byte, error) {
5810	type NoMethod GoogleCloudApigeeV1OperationGroup
5811	raw := NoMethod(*s)
5812	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5813}
5814
5815// GoogleCloudApigeeV1OperationMetadata: Metadata describing an
5816// Operation.
5817type GoogleCloudApigeeV1OperationMetadata struct {
5818	// Possible values:
5819	//   "OPERATION_TYPE_UNSPECIFIED"
5820	//   "INSERT"
5821	//   "DELETE"
5822	//   "UPDATE"
5823	OperationType string `json:"operationType,omitempty"`
5824
5825	// Progress: Progress of the operation.
5826	Progress *GoogleCloudApigeeV1OperationMetadataProgress `json:"progress,omitempty"`
5827
5828	// Possible values:
5829	//   "STATE_UNSPECIFIED"
5830	//   "NOT_STARTED"
5831	//   "IN_PROGRESS"
5832	//   "FINISHED"
5833	State string `json:"state,omitempty"`
5834
5835	// TargetResourceName: Name of the resource for which the operation is
5836	// operating on.
5837	TargetResourceName string `json:"targetResourceName,omitempty"`
5838
5839	// ForceSendFields is a list of field names (e.g. "OperationType") to
5840	// unconditionally include in API requests. By default, fields with
5841	// empty values are omitted from API requests. However, any non-pointer,
5842	// non-interface field appearing in ForceSendFields will be sent to the
5843	// server regardless of whether the field is empty or not. This may be
5844	// used to include empty fields in Patch requests.
5845	ForceSendFields []string `json:"-"`
5846
5847	// NullFields is a list of field names (e.g. "OperationType") to include
5848	// in API requests with the JSON null value. By default, fields with
5849	// empty values are omitted from API requests. However, any field with
5850	// an empty value appearing in NullFields will be sent to the server as
5851	// null. It is an error if a field in this list has a non-empty value.
5852	// This may be used to include null fields in Patch requests.
5853	NullFields []string `json:"-"`
5854}
5855
5856func (s *GoogleCloudApigeeV1OperationMetadata) MarshalJSON() ([]byte, error) {
5857	type NoMethod GoogleCloudApigeeV1OperationMetadata
5858	raw := NoMethod(*s)
5859	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5860}
5861
5862// GoogleCloudApigeeV1OperationMetadataProgress: Information about
5863// operation progress.
5864type GoogleCloudApigeeV1OperationMetadataProgress struct {
5865	// Description: Description of the operation's progress.
5866	Description string `json:"description,omitempty"`
5867
5868	// Details: The additional details of the progress.
5869	Details googleapi.RawMessage `json:"details,omitempty"`
5870
5871	// PercentDone: The percentage of the operation progress.
5872	PercentDone int64 `json:"percentDone,omitempty"`
5873
5874	// State: State of the operation.
5875	//
5876	// Possible values:
5877	//   "STATE_UNSPECIFIED"
5878	//   "NOT_STARTED"
5879	//   "IN_PROGRESS"
5880	//   "FINISHED"
5881	State string `json:"state,omitempty"`
5882
5883	// ForceSendFields is a list of field names (e.g. "Description") to
5884	// unconditionally include in API requests. By default, fields with
5885	// empty values are omitted from API requests. However, any non-pointer,
5886	// non-interface field appearing in ForceSendFields will be sent to the
5887	// server regardless of whether the field is empty or not. This may be
5888	// used to include empty fields in Patch requests.
5889	ForceSendFields []string `json:"-"`
5890
5891	// NullFields is a list of field names (e.g. "Description") to include
5892	// in API requests with the JSON null value. By default, fields with
5893	// empty values are omitted from API requests. However, any field with
5894	// an empty value appearing in NullFields will be sent to the server as
5895	// null. It is an error if a field in this list has a non-empty value.
5896	// This may be used to include null fields in Patch requests.
5897	NullFields []string `json:"-"`
5898}
5899
5900func (s *GoogleCloudApigeeV1OperationMetadataProgress) MarshalJSON() ([]byte, error) {
5901	type NoMethod GoogleCloudApigeeV1OperationMetadataProgress
5902	raw := NoMethod(*s)
5903	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5904}
5905
5906type GoogleCloudApigeeV1OptimizedStats struct {
5907	// Response: This field wraps the stats response for Js Optimized
5908	// Scenario with a Response key. E.g. { "Response": { "TimeUnit": [],
5909	// "metaData": { "errors": [], "notices": [ "Source:Postgres", "Table
5910	// used: edge.api.aaxgroup001.agg_api", "PG
5911	// Host:ruappg08-ro.production.apigeeks.net", "query served
5912	// by:80c4ebca-6a10-4a2e-8faf-c60c1ee306ca" ] }, "resultTruncated":
5913	// false, "stats": { "data": [ { "identifier": { "names": [ "apiproxy"
5914	// ], "values": [ "sirjee" ] }, "metric": [ { "env": "prod", "name":
5915	// "sum(message_count)", "values": [ 36.0 ] }, { "env": "prod", "name":
5916	// "sum(is_error)", "values": [ 36.0 ] } ] } ] } } }
5917	Response *GoogleCloudApigeeV1OptimizedStatsResponse `json:"Response,omitempty"`
5918
5919	// ServerResponse contains the HTTP response code and headers from the
5920	// server.
5921	googleapi.ServerResponse `json:"-"`
5922
5923	// ForceSendFields is a list of field names (e.g. "Response") to
5924	// unconditionally include in API requests. By default, fields with
5925	// empty values are omitted from API requests. However, any non-pointer,
5926	// non-interface field appearing in ForceSendFields will be sent to the
5927	// server regardless of whether the field is empty or not. This may be
5928	// used to include empty fields in Patch requests.
5929	ForceSendFields []string `json:"-"`
5930
5931	// NullFields is a list of field names (e.g. "Response") to include in
5932	// API requests with the JSON null value. By default, fields with empty
5933	// values are omitted from API requests. However, any field with an
5934	// empty value appearing in NullFields will be sent to the server as
5935	// null. It is an error if a field in this list has a non-empty value.
5936	// This may be used to include null fields in Patch requests.
5937	NullFields []string `json:"-"`
5938}
5939
5940func (s *GoogleCloudApigeeV1OptimizedStats) MarshalJSON() ([]byte, error) {
5941	type NoMethod GoogleCloudApigeeV1OptimizedStats
5942	raw := NoMethod(*s)
5943	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5944}
5945
5946// GoogleCloudApigeeV1OptimizedStatsNode: This message type encapsulates
5947// a data node as represented below: { "identifier": { "names": [
5948// "apiproxy" ], "values": [ "sirjee" ] }, "metric": [ { "env": "prod",
5949// "name": "sum(message_count)", "values": [ 36.0 ] } ] } OR { "env":
5950// "prod", "name": "sum(message_count)", "values": [ 36.0 ] } Depending
5951// on whether a dimension is present in the query or not the data node
5952// type can be a simple metric value or dimension identifier with list
5953// of metrics.
5954type GoogleCloudApigeeV1OptimizedStatsNode struct {
5955	Data []interface{} `json:"data,omitempty"`
5956
5957	// ForceSendFields is a list of field names (e.g. "Data") to
5958	// unconditionally include in API requests. By default, fields with
5959	// empty values are omitted from API requests. However, any non-pointer,
5960	// non-interface field appearing in ForceSendFields will be sent to the
5961	// server regardless of whether the field is empty or not. This may be
5962	// used to include empty fields in Patch requests.
5963	ForceSendFields []string `json:"-"`
5964
5965	// NullFields is a list of field names (e.g. "Data") to include in API
5966	// requests with the JSON null value. By default, fields with empty
5967	// values are omitted from API requests. However, any field with an
5968	// empty value appearing in NullFields will be sent to the server as
5969	// null. It is an error if a field in this list has a non-empty value.
5970	// This may be used to include null fields in Patch requests.
5971	NullFields []string `json:"-"`
5972}
5973
5974func (s *GoogleCloudApigeeV1OptimizedStatsNode) MarshalJSON() ([]byte, error) {
5975	type NoMethod GoogleCloudApigeeV1OptimizedStatsNode
5976	raw := NoMethod(*s)
5977	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5978}
5979
5980// GoogleCloudApigeeV1OptimizedStatsResponse: This message type
5981// encapsulates a response format for Js Optimized Scenario.
5982type GoogleCloudApigeeV1OptimizedStatsResponse struct {
5983	// TimeUnit: This field contains a list of time unit values. Time unit
5984	// refers to an epoch timestamp value.
5985	TimeUnit googleapi.Int64s `json:"TimeUnit,omitempty"`
5986
5987	// MetaData: This field contains metadata information about the query
5988	// executed
5989	MetaData *GoogleCloudApigeeV1Metadata `json:"metaData,omitempty"`
5990
5991	// ResultTruncated: This ia a boolean field to indicate if the results
5992	// were truncated based on the limit parameter.
5993	ResultTruncated bool `json:"resultTruncated,omitempty"`
5994
5995	// Stats: This field contains a stats results.
5996	Stats *GoogleCloudApigeeV1OptimizedStatsNode `json:"stats,omitempty"`
5997
5998	// ForceSendFields is a list of field names (e.g. "TimeUnit") to
5999	// unconditionally include in API requests. By default, fields with
6000	// empty values are omitted from API requests. However, any non-pointer,
6001	// non-interface field appearing in ForceSendFields will be sent to the
6002	// server regardless of whether the field is empty or not. This may be
6003	// used to include empty fields in Patch requests.
6004	ForceSendFields []string `json:"-"`
6005
6006	// NullFields is a list of field names (e.g. "TimeUnit") to include in
6007	// API requests with the JSON null value. By default, fields with empty
6008	// values are omitted from API requests. However, any field with an
6009	// empty value appearing in NullFields will be sent to the server as
6010	// null. It is an error if a field in this list has a non-empty value.
6011	// This may be used to include null fields in Patch requests.
6012	NullFields []string `json:"-"`
6013}
6014
6015func (s *GoogleCloudApigeeV1OptimizedStatsResponse) MarshalJSON() ([]byte, error) {
6016	type NoMethod GoogleCloudApigeeV1OptimizedStatsResponse
6017	raw := NoMethod(*s)
6018	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6019}
6020
6021type GoogleCloudApigeeV1Organization struct {
6022	// AddonsConfig: Addon configurations of the Apigee organization.
6023	AddonsConfig *GoogleCloudApigeeV1AddonsConfig `json:"addonsConfig,omitempty"`
6024
6025	// AnalyticsRegion: Required. Primary GCP region for analytics data
6026	// storage. For valid values, see Create an Apigee organization
6027	// (https://cloud.google.com/apigee/docs/api-platform/get-started/create-org).
6028	AnalyticsRegion string `json:"analyticsRegion,omitempty"`
6029
6030	// Attributes: Not used by Apigee.
6031	Attributes []string `json:"attributes,omitempty"`
6032
6033	// AuthorizedNetwork: Compute Engine network used for Service Networking
6034	// to be peered with Apigee runtime instances. See Getting started with
6035	// the Service Networking API
6036	// (https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started).
6037	// Valid only when RuntimeType (#RuntimeType) is set to `CLOUD`. The
6038	// value must be set before the creation of a runtime instance and can
6039	// be updated only when there are no runtime instances. For example:
6040	// `default`. Apigee also supports shared VPC (that is, the host network
6041	// project is not the same as the one that is peering with Apigee). See
6042	// Shared VPC overview (https://cloud.google.com/vpc/docs/shared-vpc).
6043	// To use a shared VPC network, use the following format:
6044	// `projects/{host-project-id}/{region}/networks/{network-name}`. For
6045	// example: `projects/my-sharedvpc-host/global/networks/mynetwork`
6046	// **Note:** Not supported for Apigee hybrid.
6047	AuthorizedNetwork string `json:"authorizedNetwork,omitempty"`
6048
6049	// BillingType: Billing type of the Apigee organization. See Apigee
6050	// pricing (https://cloud.google.com/apigee/pricing).
6051	//
6052	// Possible values:
6053	//   "BILLING_TYPE_UNSPECIFIED" - Billing type not specified.
6054	//   "SUBSCRIPTION" - A pre-paid subscription to Apigee.
6055	//   "EVALUATION" - Free and limited access to Apigee for evaluation
6056	// purposes only. only.
6057	BillingType string `json:"billingType,omitempty"`
6058
6059	// CaCertificate: Output only. Base64-encoded public certificate for the
6060	// root CA of the Apigee organization. Valid only when RuntimeType
6061	// (#RuntimeType) is `CLOUD`.
6062	CaCertificate string `json:"caCertificate,omitempty"`
6063
6064	// CreatedAt: Output only. Time that the Apigee organization was created
6065	// in milliseconds since epoch.
6066	CreatedAt int64 `json:"createdAt,omitempty,string"`
6067
6068	// CustomerName: Not used by Apigee.
6069	CustomerName string `json:"customerName,omitempty"`
6070
6071	// Description: Description of the Apigee organization.
6072	Description string `json:"description,omitempty"`
6073
6074	DisplayName string `json:"displayName,omitempty"`
6075
6076	// Environments: Output only. List of environments in the Apigee
6077	// organization.
6078	Environments []string `json:"environments,omitempty"`
6079
6080	// ExpiresAt: Output only. Time that the Apigee organization is
6081	// scheduled for deletion.
6082	ExpiresAt int64 `json:"expiresAt,omitempty,string"`
6083
6084	// LastModifiedAt: Output only. Time that the Apigee organization was
6085	// last modified in milliseconds since epoch.
6086	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
6087
6088	// Name: Output only. Name of the Apigee organization.
6089	Name string `json:"name,omitempty"`
6090
6091	// ProjectId: Output only. Project ID associated with the Apigee
6092	// organization.
6093	ProjectId string `json:"projectId,omitempty"`
6094
6095	// Properties: Properties defined in the Apigee organization profile.
6096	Properties *GoogleCloudApigeeV1Properties `json:"properties,omitempty"`
6097
6098	// RuntimeDatabaseEncryptionKeyName: Cloud KMS key name used for
6099	// encrypting the data that is stored and replicated across runtime
6100	// instances. Update is not allowed after the organization is created.
6101	// Required when RuntimeType (#RuntimeType) is `CLOUD`. If not specified
6102	// when RuntimeType (#RuntimeType) is `TRIAL`, a Google-Managed
6103	// encryption key will be used. For example:
6104	// "projects/foo/locations/us/keyRings/bar/cryptoKeys/baz". **Note:**
6105	// Not supported for Apigee hybrid.
6106	RuntimeDatabaseEncryptionKeyName string `json:"runtimeDatabaseEncryptionKeyName,omitempty"`
6107
6108	// RuntimeType: Required. Runtime type of the Apigee organization based
6109	// on the Apigee subscription purchased.
6110	//
6111	// Possible values:
6112	//   "RUNTIME_TYPE_UNSPECIFIED" - Runtime type not specified.
6113	//   "CLOUD" - Google-managed Apigee runtime.
6114	//   "HYBRID" - User-managed Apigee hybrid runtime.
6115	RuntimeType string `json:"runtimeType,omitempty"`
6116
6117	// State: Output only. State of the organization. Values other than
6118	// ACTIVE means the resource is not ready to use.
6119	//
6120	// Possible values:
6121	//   "STATE_UNSPECIFIED" - Resource is in an unspecified state.
6122	//   "CREATING" - Resource is being created.
6123	//   "ACTIVE" - Resource is provisioned and ready to use.
6124	//   "DELETING" - The resource is being deleted.
6125	State string `json:"state,omitempty"`
6126
6127	// SubscriptionType: Output only. DEPRECATED: This will eventually be
6128	// replaced by BillingType. Subscription type of the Apigee
6129	// organization. Valid values include trial (free, limited, and for
6130	// evaluation purposes only) or paid (full subscription has been
6131	// purchased). See Apigee pricing
6132	// (https://cloud.google.com/apigee/pricing/).
6133	//
6134	// Possible values:
6135	//   "SUBSCRIPTION_TYPE_UNSPECIFIED" - Subscription type not specified.
6136	//   "PAID" - Full subscription to Apigee has been purchased.
6137	//   "TRIAL" - Subscription to Apigee is free, limited, and used for
6138	// evaluation purposes only.
6139	SubscriptionType string `json:"subscriptionType,omitempty"`
6140
6141	// Type: Not used by Apigee.
6142	//
6143	// Possible values:
6144	//   "TYPE_UNSPECIFIED" - Subscription type not specified.
6145	//   "TYPE_TRIAL" - Subscription to Apigee is free, limited, and used
6146	// for evaluation purposes only.
6147	//   "TYPE_PAID" - Full subscription to Apigee has been purchased. See
6148	// [Apigee pricing](https://cloud.google.com/apigee/pricing/).
6149	//   "TYPE_INTERNAL" - For internal users only.
6150	Type string `json:"type,omitempty"`
6151
6152	// ServerResponse contains the HTTP response code and headers from the
6153	// server.
6154	googleapi.ServerResponse `json:"-"`
6155
6156	// ForceSendFields is a list of field names (e.g. "AddonsConfig") to
6157	// unconditionally include in API requests. By default, fields with
6158	// empty values are omitted from API requests. However, any non-pointer,
6159	// non-interface field appearing in ForceSendFields will be sent to the
6160	// server regardless of whether the field is empty or not. This may be
6161	// used to include empty fields in Patch requests.
6162	ForceSendFields []string `json:"-"`
6163
6164	// NullFields is a list of field names (e.g. "AddonsConfig") to include
6165	// in API requests with the JSON null value. By default, fields with
6166	// empty values are omitted from API requests. However, any field with
6167	// an empty value appearing in NullFields will be sent to the server as
6168	// null. It is an error if a field in this list has a non-empty value.
6169	// This may be used to include null fields in Patch requests.
6170	NullFields []string `json:"-"`
6171}
6172
6173func (s *GoogleCloudApigeeV1Organization) MarshalJSON() ([]byte, error) {
6174	type NoMethod GoogleCloudApigeeV1Organization
6175	raw := NoMethod(*s)
6176	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6177}
6178
6179type GoogleCloudApigeeV1OrganizationProjectMapping struct {
6180	// Organization: Name of the Apigee organization.
6181	Organization string `json:"organization,omitempty"`
6182
6183	// ProjectIds: List of GCP projects associated with the Apigee
6184	// organization.
6185	ProjectIds []string `json:"projectIds,omitempty"`
6186
6187	// ForceSendFields is a list of field names (e.g. "Organization") to
6188	// unconditionally include in API requests. By default, fields with
6189	// empty values are omitted from API requests. However, any non-pointer,
6190	// non-interface field appearing in ForceSendFields will be sent to the
6191	// server regardless of whether the field is empty or not. This may be
6192	// used to include empty fields in Patch requests.
6193	ForceSendFields []string `json:"-"`
6194
6195	// NullFields is a list of field names (e.g. "Organization") to include
6196	// in API requests with the JSON null value. By default, fields with
6197	// empty values are omitted from API requests. However, any field with
6198	// an empty value appearing in NullFields will be sent to the server as
6199	// null. It is an error if a field in this list has a non-empty value.
6200	// This may be used to include null fields in Patch requests.
6201	NullFields []string `json:"-"`
6202}
6203
6204func (s *GoogleCloudApigeeV1OrganizationProjectMapping) MarshalJSON() ([]byte, error) {
6205	type NoMethod GoogleCloudApigeeV1OrganizationProjectMapping
6206	raw := NoMethod(*s)
6207	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6208}
6209
6210type GoogleCloudApigeeV1PodStatus struct {
6211	// AppVersion: Version of the application running in the pod.
6212	AppVersion string `json:"appVersion,omitempty"`
6213
6214	// DeploymentStatus: Status of the deployment. Valid values include: -
6215	// `deployed`: Successful. - `error` : Failed. - `pending` : Pod has not
6216	// yet reported on the deployment.
6217	DeploymentStatus string `json:"deploymentStatus,omitempty"`
6218
6219	// DeploymentStatusTime: Time the deployment status was reported in
6220	// milliseconds since epoch.
6221	DeploymentStatusTime int64 `json:"deploymentStatusTime,omitempty,string"`
6222
6223	// DeploymentTime: Time the proxy was deployed in milliseconds since
6224	// epoch.
6225	DeploymentTime int64 `json:"deploymentTime,omitempty,string"`
6226
6227	// PodName: Name of the pod which is reporting the status.
6228	PodName string `json:"podName,omitempty"`
6229
6230	// PodStatus: Overall status of the pod (not this specific deployment).
6231	// Valid values include: - `active`: Up to date. - `stale` : Recently
6232	// out of date. Pods that have not reported status in a long time are
6233	// excluded from the output.
6234	PodStatus string `json:"podStatus,omitempty"`
6235
6236	// PodStatusTime: Time the pod status was reported in milliseconds since
6237	// epoch.
6238	PodStatusTime int64 `json:"podStatusTime,omitempty,string"`
6239
6240	// StatusCode: Code associated with the deployment status.
6241	StatusCode string `json:"statusCode,omitempty"`
6242
6243	// StatusCodeDetails: Human-readable message associated with the status
6244	// code.
6245	StatusCodeDetails string `json:"statusCodeDetails,omitempty"`
6246
6247	// ForceSendFields is a list of field names (e.g. "AppVersion") to
6248	// unconditionally include in API requests. By default, fields with
6249	// empty values are omitted from API requests. However, any non-pointer,
6250	// non-interface field appearing in ForceSendFields will be sent to the
6251	// server regardless of whether the field is empty or not. This may be
6252	// used to include empty fields in Patch requests.
6253	ForceSendFields []string `json:"-"`
6254
6255	// NullFields is a list of field names (e.g. "AppVersion") to include in
6256	// API requests with the JSON null value. By default, fields with empty
6257	// values are omitted from API requests. However, any field with an
6258	// empty value appearing in NullFields will be sent to the server as
6259	// null. It is an error if a field in this list has a non-empty value.
6260	// This may be used to include null fields in Patch requests.
6261	NullFields []string `json:"-"`
6262}
6263
6264func (s *GoogleCloudApigeeV1PodStatus) MarshalJSON() ([]byte, error) {
6265	type NoMethod GoogleCloudApigeeV1PodStatus
6266	raw := NoMethod(*s)
6267	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6268}
6269
6270// GoogleCloudApigeeV1Point: Point is a group of information collected
6271// by runtime plane at critical points of the message flow of the
6272// processed API request. This is a list of supported point IDs,
6273// categorized to three major buckets. For each category, debug points
6274// that we are currently supporting are listed below: - Flow status
6275// debug points: StateChange FlowInfo Condition Execution DebugMask
6276// Error - Flow control debug points: FlowCallout Paused Resumed
6277// FlowReturn BreakFlow Error - Runtime debug points: ScriptExecutor
6278// FlowCalloutStepDefinition CustomTarget StepDefinition
6279// Oauth2ServicePoint RaiseFault NodeJS The detail information of the
6280// given debug point is stored in a list of results.
6281type GoogleCloudApigeeV1Point struct {
6282	// Id: Name of a step in the transaction.
6283	Id string `json:"id,omitempty"`
6284
6285	// Results: List of results extracted from a given debug point.
6286	Results []*GoogleCloudApigeeV1Result `json:"results,omitempty"`
6287
6288	// ForceSendFields is a list of field names (e.g. "Id") to
6289	// unconditionally include in API requests. By default, fields with
6290	// empty values are omitted from API requests. However, any non-pointer,
6291	// non-interface field appearing in ForceSendFields will be sent to the
6292	// server regardless of whether the field is empty or not. This may be
6293	// used to include empty fields in Patch requests.
6294	ForceSendFields []string `json:"-"`
6295
6296	// NullFields is a list of field names (e.g. "Id") to include in API
6297	// requests with the JSON null value. By default, fields with empty
6298	// values are omitted from API requests. However, any field with an
6299	// empty value appearing in NullFields will be sent to the server as
6300	// null. It is an error if a field in this list has a non-empty value.
6301	// This may be used to include null fields in Patch requests.
6302	NullFields []string `json:"-"`
6303}
6304
6305func (s *GoogleCloudApigeeV1Point) MarshalJSON() ([]byte, error) {
6306	type NoMethod GoogleCloudApigeeV1Point
6307	raw := NoMethod(*s)
6308	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6309}
6310
6311// GoogleCloudApigeeV1Properties: Message for compatibility with legacy
6312// Edge specification for Java Properties object in JSON.
6313type GoogleCloudApigeeV1Properties struct {
6314	// Property: List of all properties in the object
6315	Property []*GoogleCloudApigeeV1Property `json:"property,omitempty"`
6316
6317	// ForceSendFields is a list of field names (e.g. "Property") to
6318	// unconditionally include in API requests. By default, fields with
6319	// empty values are omitted from API requests. However, any non-pointer,
6320	// non-interface field appearing in ForceSendFields will be sent to the
6321	// server regardless of whether the field is empty or not. This may be
6322	// used to include empty fields in Patch requests.
6323	ForceSendFields []string `json:"-"`
6324
6325	// NullFields is a list of field names (e.g. "Property") to include in
6326	// API requests with the JSON null value. By default, fields with empty
6327	// values are omitted from API requests. However, any field with an
6328	// empty value appearing in NullFields will be sent to the server as
6329	// null. It is an error if a field in this list has a non-empty value.
6330	// This may be used to include null fields in Patch requests.
6331	NullFields []string `json:"-"`
6332}
6333
6334func (s *GoogleCloudApigeeV1Properties) MarshalJSON() ([]byte, error) {
6335	type NoMethod GoogleCloudApigeeV1Properties
6336	raw := NoMethod(*s)
6337	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6338}
6339
6340// GoogleCloudApigeeV1Property: A single property entry in the
6341// Properties message.
6342type GoogleCloudApigeeV1Property struct {
6343	// Name: The property key
6344	Name string `json:"name,omitempty"`
6345
6346	// Value: The property value
6347	Value string `json:"value,omitempty"`
6348
6349	// ForceSendFields is a list of field names (e.g. "Name") to
6350	// unconditionally include in API requests. By default, fields with
6351	// empty values are omitted from API requests. However, any non-pointer,
6352	// non-interface field appearing in ForceSendFields will be sent to the
6353	// server regardless of whether the field is empty or not. This may be
6354	// used to include empty fields in Patch requests.
6355	ForceSendFields []string `json:"-"`
6356
6357	// NullFields is a list of field names (e.g. "Name") to include in API
6358	// requests with the JSON null value. By default, fields with empty
6359	// values are omitted from API requests. However, any field with an
6360	// empty value appearing in NullFields will be sent to the server as
6361	// null. It is an error if a field in this list has a non-empty value.
6362	// This may be used to include null fields in Patch requests.
6363	NullFields []string `json:"-"`
6364}
6365
6366func (s *GoogleCloudApigeeV1Property) MarshalJSON() ([]byte, error) {
6367	type NoMethod GoogleCloudApigeeV1Property
6368	raw := NoMethod(*s)
6369	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6370}
6371
6372// GoogleCloudApigeeV1ProvisionOrganizationRequest: Request for
6373// ProvisionOrganization.
6374type GoogleCloudApigeeV1ProvisionOrganizationRequest struct {
6375	// AnalyticsRegion: Primary Cloud Platform region for analytics data
6376	// storage. For valid values, see Create an organization
6377	// (https://cloud.google.com/apigee/docs/hybrid/latest/precog-provision).
6378	// Defaults to `us-west1`.
6379	AnalyticsRegion string `json:"analyticsRegion,omitempty"`
6380
6381	// AuthorizedNetwork: Name of the customer project's VPC network. If
6382	// provided, the network needs to be peered through Service Networking.
6383	// If none is provided, the organization will have access only to the
6384	// public internet.
6385	AuthorizedNetwork string `json:"authorizedNetwork,omitempty"`
6386
6387	// RuntimeLocation: Cloud Platform location for the runtime instance.
6388	// Defaults to `us-west1-a`.
6389	RuntimeLocation string `json:"runtimeLocation,omitempty"`
6390
6391	// ForceSendFields is a list of field names (e.g. "AnalyticsRegion") to
6392	// unconditionally include in API requests. By default, fields with
6393	// empty values are omitted from API requests. However, any non-pointer,
6394	// non-interface field appearing in ForceSendFields will be sent to the
6395	// server regardless of whether the field is empty or not. This may be
6396	// used to include empty fields in Patch requests.
6397	ForceSendFields []string `json:"-"`
6398
6399	// NullFields is a list of field names (e.g. "AnalyticsRegion") to
6400	// include in API requests with the JSON null value. By default, fields
6401	// with empty values are omitted from API requests. However, any field
6402	// with an empty value appearing in NullFields will be sent to the
6403	// server as null. It is an error if a field in this list has a
6404	// non-empty value. This may be used to include null fields in Patch
6405	// requests.
6406	NullFields []string `json:"-"`
6407}
6408
6409func (s *GoogleCloudApigeeV1ProvisionOrganizationRequest) MarshalJSON() ([]byte, error) {
6410	type NoMethod GoogleCloudApigeeV1ProvisionOrganizationRequest
6411	raw := NoMethod(*s)
6412	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6413}
6414
6415type GoogleCloudApigeeV1Query struct {
6416	// CsvDelimiter: Delimiter used in the CSV file, if `outputFormat` is
6417	// set to `csv`. Defaults to the `,` (comma) character. Supported
6418	// delimiter characters include comma (`,`), pipe (`|`), and tab (`\t`).
6419	CsvDelimiter string `json:"csvDelimiter,omitempty"`
6420
6421	// Dimensions: A list of dimensions.
6422	// https://docs.apigee.com/api-platform/analytics/analytics-reference#dimensions
6423	Dimensions []string `json:"dimensions,omitempty"`
6424
6425	// EnvgroupHostname: Hostname needs to be specified if query intends to
6426	// run at host level. This field is only allowed when query is submitted
6427	// by CreateHostAsyncQuery where analytics data will be grouped by
6428	// organization and hostname.
6429	EnvgroupHostname string `json:"envgroupHostname,omitempty"`
6430
6431	// Filter: Boolean expression that can be used to filter data. Filter
6432	// expressions can be combined using AND/OR terms and should be fully
6433	// parenthesized to avoid ambiguity. See Analytics metrics, dimensions,
6434	// and filters reference
6435	// https://docs.apigee.com/api-platform/analytics/analytics-reference
6436	// for more information on the fields available to filter on. For more
6437	// information on the tokens that you use to build filter expressions,
6438	// see Filter expression syntax.
6439	// https://docs.apigee.com/api-platform/analytics/asynch-reports-api#filter-expression-syntax
6440	Filter string `json:"filter,omitempty"`
6441
6442	// GroupByTimeUnit: Time unit used to group the result set. Valid values
6443	// include: second, minute, hour, day, week, or month. If a query
6444	// includes groupByTimeUnit, then the result is an aggregation based on
6445	// the specified time unit and the resultant timestamp does not include
6446	// milliseconds precision. If a query omits groupByTimeUnit, then the
6447	// resultant timestamp includes milliseconds precision.
6448	GroupByTimeUnit string `json:"groupByTimeUnit,omitempty"`
6449
6450	// Limit: Maximum number of rows that can be returned in the result.
6451	Limit int64 `json:"limit,omitempty"`
6452
6453	// Metrics: A list of Metrics.
6454	Metrics []*GoogleCloudApigeeV1QueryMetric `json:"metrics,omitempty"`
6455
6456	// Name: Asynchronous Query Name.
6457	Name string `json:"name,omitempty"`
6458
6459	// OutputFormat: Valid values include: `csv` or `json`. Defaults to
6460	// `json`. Note: Configure the delimiter for CSV output using the
6461	// csvDelimiter property.
6462	OutputFormat string `json:"outputFormat,omitempty"`
6463
6464	// ReportDefinitionId: Asynchronous Report ID.
6465	ReportDefinitionId string `json:"reportDefinitionId,omitempty"`
6466
6467	// TimeRange: Required. Time range for the query. Can use the following
6468	// predefined strings to specify the time range: `last60minutes`
6469	// `last24hours` `last7days` Or, specify the timeRange as a structure
6470	// describing start and end timestamps in the ISO format:
6471	// yyyy-mm-ddThh:mm:ssZ. Example: "timeRange": { "start":
6472	// "2018-07-29T00:13:00Z", "end": "2018-08-01T00:18:00Z" }
6473	TimeRange interface{} `json:"timeRange,omitempty"`
6474
6475	// ForceSendFields is a list of field names (e.g. "CsvDelimiter") to
6476	// unconditionally include in API requests. By default, fields with
6477	// empty values are omitted from API requests. However, any non-pointer,
6478	// non-interface field appearing in ForceSendFields will be sent to the
6479	// server regardless of whether the field is empty or not. This may be
6480	// used to include empty fields in Patch requests.
6481	ForceSendFields []string `json:"-"`
6482
6483	// NullFields is a list of field names (e.g. "CsvDelimiter") to include
6484	// in API requests with the JSON null value. By default, fields with
6485	// empty values are omitted from API requests. However, any field with
6486	// an empty value appearing in NullFields will be sent to the server as
6487	// null. It is an error if a field in this list has a non-empty value.
6488	// This may be used to include null fields in Patch requests.
6489	NullFields []string `json:"-"`
6490}
6491
6492func (s *GoogleCloudApigeeV1Query) MarshalJSON() ([]byte, error) {
6493	type NoMethod GoogleCloudApigeeV1Query
6494	raw := NoMethod(*s)
6495	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6496}
6497
6498type GoogleCloudApigeeV1QueryMetadata struct {
6499	// Dimensions: Dimensions of the AsyncQuery.
6500	Dimensions []string `json:"dimensions,omitempty"`
6501
6502	// EndTimestamp: End timestamp of the query range.
6503	EndTimestamp string `json:"endTimestamp,omitempty"`
6504
6505	// Metrics: Metrics of the AsyncQuery. Example:
6506	// ["name:message_count,func:sum,alias:sum_message_count"]
6507	Metrics []string `json:"metrics,omitempty"`
6508
6509	// OutputFormat: Output format.
6510	OutputFormat string `json:"outputFormat,omitempty"`
6511
6512	// StartTimestamp: Start timestamp of the query range.
6513	StartTimestamp string `json:"startTimestamp,omitempty"`
6514
6515	// TimeUnit: Query GroupBy time unit.
6516	TimeUnit string `json:"timeUnit,omitempty"`
6517
6518	// ForceSendFields is a list of field names (e.g. "Dimensions") to
6519	// unconditionally include in API requests. By default, fields with
6520	// empty values are omitted from API requests. However, any non-pointer,
6521	// non-interface field appearing in ForceSendFields will be sent to the
6522	// server regardless of whether the field is empty or not. This may be
6523	// used to include empty fields in Patch requests.
6524	ForceSendFields []string `json:"-"`
6525
6526	// NullFields is a list of field names (e.g. "Dimensions") to include in
6527	// API requests with the JSON null value. By default, fields with empty
6528	// values are omitted from API requests. However, any field with an
6529	// empty value appearing in NullFields will be sent to the server as
6530	// null. It is an error if a field in this list has a non-empty value.
6531	// This may be used to include null fields in Patch requests.
6532	NullFields []string `json:"-"`
6533}
6534
6535func (s *GoogleCloudApigeeV1QueryMetadata) MarshalJSON() ([]byte, error) {
6536	type NoMethod GoogleCloudApigeeV1QueryMetadata
6537	raw := NoMethod(*s)
6538	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6539}
6540
6541// GoogleCloudApigeeV1QueryMetric: More info about Metric:
6542// https://docs.apigee.com/api-platform/analytics/analytics-reference#metrics
6543type GoogleCloudApigeeV1QueryMetric struct {
6544	// Alias: Alias for the metric. Alias will be used to replace metric
6545	// name in query results.
6546	Alias string `json:"alias,omitempty"`
6547
6548	// Function: Aggregation function: avg, min, max, or sum.
6549	Function string `json:"function,omitempty"`
6550
6551	// Name: Required. Metric name.
6552	Name string `json:"name,omitempty"`
6553
6554	// Operator: One of `+`, `-`, `/`, `%`, `*`.
6555	Operator string `json:"operator,omitempty"`
6556
6557	// Value: Operand value should be provided when operator is set.
6558	Value string `json:"value,omitempty"`
6559
6560	// ForceSendFields is a list of field names (e.g. "Alias") to
6561	// unconditionally include in API requests. By default, fields with
6562	// empty values are omitted from API requests. However, any non-pointer,
6563	// non-interface field appearing in ForceSendFields will be sent to the
6564	// server regardless of whether the field is empty or not. This may be
6565	// used to include empty fields in Patch requests.
6566	ForceSendFields []string `json:"-"`
6567
6568	// NullFields is a list of field names (e.g. "Alias") to include in API
6569	// requests with the JSON null value. By default, fields with empty
6570	// values are omitted from API requests. However, any field with an
6571	// empty value appearing in NullFields will be sent to the server as
6572	// null. It is an error if a field in this list has a non-empty value.
6573	// This may be used to include null fields in Patch requests.
6574	NullFields []string `json:"-"`
6575}
6576
6577func (s *GoogleCloudApigeeV1QueryMetric) MarshalJSON() ([]byte, error) {
6578	type NoMethod GoogleCloudApigeeV1QueryMetric
6579	raw := NoMethod(*s)
6580	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6581}
6582
6583// GoogleCloudApigeeV1Quota: Quota contains the essential parameters
6584// needed that can be applied on a proxy/remote service, resources and
6585// methods combination associated with this API product. While setting
6586// of Quota is optional, setting it prevents requests from exceeding the
6587// provisioned parameters.
6588type GoogleCloudApigeeV1Quota struct {
6589	// Interval: Required. Time interval over which the number of request
6590	// messages is calculated.
6591	Interval string `json:"interval,omitempty"`
6592
6593	// Limit: Required. Upper limit allowed for the time interval and time
6594	// unit specified. Requests exceeding this limit will be rejected.
6595	Limit string `json:"limit,omitempty"`
6596
6597	// TimeUnit: Time unit defined for the `interval`. Valid values include
6598	// `minute`, `hour`, `day`, or `month`. If `limit` and `interval` are
6599	// valid, the default value is `hour`; otherwise, the default is null.
6600	TimeUnit string `json:"timeUnit,omitempty"`
6601
6602	// ForceSendFields is a list of field names (e.g. "Interval") to
6603	// unconditionally include in API requests. By default, fields with
6604	// empty values are omitted from API requests. However, any non-pointer,
6605	// non-interface field appearing in ForceSendFields will be sent to the
6606	// server regardless of whether the field is empty or not. This may be
6607	// used to include empty fields in Patch requests.
6608	ForceSendFields []string `json:"-"`
6609
6610	// NullFields is a list of field names (e.g. "Interval") to include in
6611	// API requests with the JSON null value. By default, fields with empty
6612	// values are omitted from API requests. However, any field with an
6613	// empty value appearing in NullFields will be sent to the server as
6614	// null. It is an error if a field in this list has a non-empty value.
6615	// This may be used to include null fields in Patch requests.
6616	NullFields []string `json:"-"`
6617}
6618
6619func (s *GoogleCloudApigeeV1Quota) MarshalJSON() ([]byte, error) {
6620	type NoMethod GoogleCloudApigeeV1Quota
6621	raw := NoMethod(*s)
6622	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6623}
6624
6625// GoogleCloudApigeeV1RatePlan: Rate plan details.
6626type GoogleCloudApigeeV1RatePlan struct {
6627	// Apiproduct: Name of the API product that the rate plan is associated
6628	// with.
6629	Apiproduct string `json:"apiproduct,omitempty"`
6630
6631	// BillingPeriod: Frequency at which the customer will be billed.
6632	//
6633	// Possible values:
6634	//   "BILLING_PERIOD_UNSPECIFIED" - Billing period not specified.
6635	//   "WEEKLY" - Weekly billing period. **Note**: Not supported by Apigee
6636	// at this time.
6637	//   "MONTHLY" - Monthly billing period.
6638	BillingPeriod string `json:"billingPeriod,omitempty"`
6639
6640	// ConsumptionPricingRates: API call volume ranges and the fees charged
6641	// when the total number of API calls is within a given range. The
6642	// method used to calculate the final fee depends on the selected
6643	// pricing model. For example, if the pricing model is `STAIRSTEP` and
6644	// the ranges are defined as follows: ``` { "start": 1, "end": 100,
6645	// "fee": 75 }, { "start": 101, "end": 200, "fee": 100 }, } ``` Then the
6646	// following fees would be charged based on the total number of API
6647	// calls (assuming the currency selected is `USD`): * 1 call costs $75 *
6648	// 50 calls cost $75 * 150 calls cost $100 The number of API calls
6649	// cannot exceed 200.
6650	ConsumptionPricingRates []*GoogleCloudApigeeV1RateRange `json:"consumptionPricingRates,omitempty"`
6651
6652	// ConsumptionPricingType: Pricing model used for consumption-based
6653	// charges.
6654	//
6655	// Possible values:
6656	//   "CONSUMPTION_PRICING_TYPE_UNSPECIFIED" - Pricing model not
6657	// specified. This is the default.
6658	//   "FIXED_PER_UNIT" - Fixed rate charged for each API call.
6659	//   "BANDED" - Variable rate charged based on the total volume of API
6660	// calls. Example: * 1-100 calls cost $2 per call * 101-200 calls cost
6661	// $1.50 per call * 201-300 calls cost $1 per call * Total price for 50
6662	// calls: 50 x $2 = $100 * Total price for 150 calls: 150 x $1.5 = $225
6663	// * Total price for 250 calls: 250 x $1 = $250. **Note**: Not supported
6664	// by Apigee at this time.
6665	//   "TIERED" - Variable rate charged for each API call based on price
6666	// tiers. Example: * 1-100 calls cost $2 per call * 101-200 calls cost
6667	// $1.50 per call * 201-300 calls cost $1 per call * Total price for 50
6668	// calls: 50 x $2 = $100 * Total price for 150 calls: 100 x $2 + 50 x
6669	// $1.5 = $275 * Total price for 250 calls: 100 x $2 + 100 x $1.5 + 50 x
6670	// $1 = $400. **Note**: Not supported by Apigee at this time.
6671	//   "STAIRSTEP" - Flat rate charged for a bundle of API calls whether
6672	// or not the entire bundle is used. Example: * 1-100 calls cost $75
6673	// flat fee * 101-200 calls cost $100 flat free * 201-300 calls cost
6674	// $150 flat fee * Total price for 1 call: $75 * Total price for 50
6675	// calls: $75 * Total price for 150 calls: $100 * Total price for 250
6676	// calls: $150. **Note**: Not supported by Apigee at this time.
6677	ConsumptionPricingType string `json:"consumptionPricingType,omitempty"`
6678
6679	// CreatedAt: Output only. Time that the rate plan was created in
6680	// milliseconds since epoch.
6681	CreatedAt int64 `json:"createdAt,omitempty,string"`
6682
6683	// CurrencyCode: Currency to be used for billing. Consists of a
6684	// three-letter code as defined by the ISO 4217
6685	// (https://en.wikipedia.org/wiki/ISO_4217) standard.
6686	CurrencyCode string `json:"currencyCode,omitempty"`
6687
6688	// Description: Description of the rate plan.
6689	Description string `json:"description,omitempty"`
6690
6691	// DisplayName: Display name of the rate plan.
6692	DisplayName string `json:"displayName,omitempty"`
6693
6694	// EndTime: Time when the rate plan will expire in milliseconds since
6695	// epoch. Set to 0 or `null` to indicate that the rate plan should never
6696	// expire.
6697	EndTime int64 `json:"endTime,omitempty,string"`
6698
6699	// FixedFeeFrequency: Frequency at which the fixed fee is charged.
6700	FixedFeeFrequency int64 `json:"fixedFeeFrequency,omitempty"`
6701
6702	// FixedRecurringFee: Fixed amount that is charged at a defined interval
6703	// and billed in advance of use of the API product. The fee will be
6704	// prorated for the first billing period.
6705	FixedRecurringFee *GoogleTypeMoney `json:"fixedRecurringFee,omitempty"`
6706
6707	// LastModifiedAt: Output only. Time the rate plan was last modified in
6708	// milliseconds since epoch.
6709	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
6710
6711	// Name: Output only. Name of the rate plan.
6712	Name string `json:"name,omitempty"`
6713
6714	// PaymentFundingModel: Flag that specifies the billing account type,
6715	// prepaid or postpaid.
6716	//
6717	// Possible values:
6718	//   "PAYMENT_FUNDING_MODEL_UNSPECIFIED" - Billing account type not
6719	// specified.
6720	//   "PREPAID" - Prepaid billing account type. Developer pays in advance
6721	// for the use of your API products. Funds are deducted from their
6722	// prepaid account balance. **Note**: Not supported by Apigee at this
6723	// time.
6724	//   "POSTPAID" - Postpaid billing account type. Developer is billed
6725	// through an invoice after using your API products.
6726	PaymentFundingModel string `json:"paymentFundingModel,omitempty"`
6727
6728	// RevenueShareRates: Details of the revenue sharing model.
6729	RevenueShareRates []*GoogleCloudApigeeV1RevenueShareRange `json:"revenueShareRates,omitempty"`
6730
6731	// RevenueShareType: Method used to calculate the revenue that is shared
6732	// with developers.
6733	//
6734	// Possible values:
6735	//   "REVENUE_SHARE_TYPE_UNSPECIFIED" - Revenue share type is not
6736	// specified.
6737	//   "FIXED" - Fixed percentage of the total revenue will be shared. The
6738	// percentage to be shared can be configured by the API provider.
6739	//   "VOLUME_BANDED" - Amount of revenue shared depends on the number of
6740	// API calls. The API call volume ranges and the revenue share
6741	// percentage for each volume can be configured by the API provider.
6742	// **Note**: Not supported by Apigee at this time.
6743	RevenueShareType string `json:"revenueShareType,omitempty"`
6744
6745	// SetupFee: Initial, one-time fee paid when purchasing the API product.
6746	SetupFee *GoogleTypeMoney `json:"setupFee,omitempty"`
6747
6748	// StartTime: Time when the rate plan becomes active in milliseconds
6749	// since epoch.
6750	StartTime int64 `json:"startTime,omitempty,string"`
6751
6752	// State: Current state of the rate plan (draft or published).
6753	//
6754	// Possible values:
6755	//   "STATE_UNSPECIFIED" - State of the rate plan is not specified.
6756	//   "DRAFT" - Rate plan is in draft mode and only visible to API
6757	// providers.
6758	//   "PUBLISHED" - Rate plan is published and will become visible to
6759	// developers for the configured duration (between `startTime` and
6760	// `endTime`).
6761	State string `json:"state,omitempty"`
6762
6763	// ServerResponse contains the HTTP response code and headers from the
6764	// server.
6765	googleapi.ServerResponse `json:"-"`
6766
6767	// ForceSendFields is a list of field names (e.g. "Apiproduct") to
6768	// unconditionally include in API requests. By default, fields with
6769	// empty values are omitted from API requests. However, any non-pointer,
6770	// non-interface field appearing in ForceSendFields will be sent to the
6771	// server regardless of whether the field is empty or not. This may be
6772	// used to include empty fields in Patch requests.
6773	ForceSendFields []string `json:"-"`
6774
6775	// NullFields is a list of field names (e.g. "Apiproduct") to include in
6776	// API requests with the JSON null value. By default, fields with empty
6777	// values are omitted from API requests. However, any field with an
6778	// empty value appearing in NullFields will be sent to the server as
6779	// null. It is an error if a field in this list has a non-empty value.
6780	// This may be used to include null fields in Patch requests.
6781	NullFields []string `json:"-"`
6782}
6783
6784func (s *GoogleCloudApigeeV1RatePlan) MarshalJSON() ([]byte, error) {
6785	type NoMethod GoogleCloudApigeeV1RatePlan
6786	raw := NoMethod(*s)
6787	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6788}
6789
6790// GoogleCloudApigeeV1RateRange: API call volume range and the fees
6791// charged when the total number of API calls is within the range.
6792type GoogleCloudApigeeV1RateRange struct {
6793	// End: Ending value of the range. Set to 0 or `null` for the last range
6794	// of values.
6795	End int64 `json:"end,omitempty,string"`
6796
6797	// Fee: Fee to charge when total number of API calls falls within this
6798	// range.
6799	Fee *GoogleTypeMoney `json:"fee,omitempty"`
6800
6801	// Start: Starting value of the range. Set to 0 or `null` for the
6802	// initial range of values.
6803	Start int64 `json:"start,omitempty,string"`
6804
6805	// ForceSendFields is a list of field names (e.g. "End") to
6806	// unconditionally include in API requests. By default, fields with
6807	// empty values are omitted from API requests. However, any non-pointer,
6808	// non-interface field appearing in ForceSendFields will be sent to the
6809	// server regardless of whether the field is empty or not. This may be
6810	// used to include empty fields in Patch requests.
6811	ForceSendFields []string `json:"-"`
6812
6813	// NullFields is a list of field names (e.g. "End") to include in API
6814	// requests with the JSON null value. By default, fields with empty
6815	// values are omitted from API requests. However, any field with an
6816	// empty value appearing in NullFields will be sent to the server as
6817	// null. It is an error if a field in this list has a non-empty value.
6818	// This may be used to include null fields in Patch requests.
6819	NullFields []string `json:"-"`
6820}
6821
6822func (s *GoogleCloudApigeeV1RateRange) MarshalJSON() ([]byte, error) {
6823	type NoMethod GoogleCloudApigeeV1RateRange
6824	raw := NoMethod(*s)
6825	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6826}
6827
6828// GoogleCloudApigeeV1Reference: A Reference configuration. References
6829// must refer to a keystore that also exists in the parent environment.
6830type GoogleCloudApigeeV1Reference struct {
6831	// Description: Optional. A human-readable description of this
6832	// reference.
6833	Description string `json:"description,omitempty"`
6834
6835	// Name: Required. The resource id of this reference. Values must match
6836	// the regular expression [\w\s\-.]+.
6837	Name string `json:"name,omitempty"`
6838
6839	// Refers: Required. The id of the resource to which this reference
6840	// refers. Must be the id of a resource that exists in the parent
6841	// environment and is of the given resource_type.
6842	Refers string `json:"refers,omitempty"`
6843
6844	// ResourceType: The type of resource referred to by this reference.
6845	// Valid values are 'KeyStore' or 'TrustStore'.
6846	ResourceType string `json:"resourceType,omitempty"`
6847
6848	// ServerResponse contains the HTTP response code and headers from the
6849	// server.
6850	googleapi.ServerResponse `json:"-"`
6851
6852	// ForceSendFields is a list of field names (e.g. "Description") to
6853	// unconditionally include in API requests. By default, fields with
6854	// empty values are omitted from API requests. However, any non-pointer,
6855	// non-interface field appearing in ForceSendFields will be sent to the
6856	// server regardless of whether the field is empty or not. This may be
6857	// used to include empty fields in Patch requests.
6858	ForceSendFields []string `json:"-"`
6859
6860	// NullFields is a list of field names (e.g. "Description") to include
6861	// in API requests with the JSON null value. By default, fields with
6862	// empty values are omitted from API requests. However, any field with
6863	// an empty value appearing in NullFields will be sent to the server as
6864	// null. It is an error if a field in this list has a non-empty value.
6865	// This may be used to include null fields in Patch requests.
6866	NullFields []string `json:"-"`
6867}
6868
6869func (s *GoogleCloudApigeeV1Reference) MarshalJSON() ([]byte, error) {
6870	type NoMethod GoogleCloudApigeeV1Reference
6871	raw := NoMethod(*s)
6872	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6873}
6874
6875type GoogleCloudApigeeV1ReferenceConfig struct {
6876	// Name: Name of the reference in the following format:
6877	// `organizations/{org}/environments/{env}/references/{reference}`
6878	Name string `json:"name,omitempty"`
6879
6880	// ResourceName: Name of the referenced resource in the following
6881	// format: `organizations/{org}/environments/{env}/keystores/{keystore}`
6882	// Only references to keystore resources are supported.
6883	ResourceName string `json:"resourceName,omitempty"`
6884
6885	// ForceSendFields is a list of field names (e.g. "Name") to
6886	// unconditionally include in API requests. By default, fields with
6887	// empty values are omitted from API requests. However, any non-pointer,
6888	// non-interface field appearing in ForceSendFields will be sent to the
6889	// server regardless of whether the field is empty or not. This may be
6890	// used to include empty fields in Patch requests.
6891	ForceSendFields []string `json:"-"`
6892
6893	// NullFields is a list of field names (e.g. "Name") to include in API
6894	// requests with the JSON null value. By default, fields with empty
6895	// values are omitted from API requests. However, any field with an
6896	// empty value appearing in NullFields will be sent to the server as
6897	// null. It is an error if a field in this list has a non-empty value.
6898	// This may be used to include null fields in Patch requests.
6899	NullFields []string `json:"-"`
6900}
6901
6902func (s *GoogleCloudApigeeV1ReferenceConfig) MarshalJSON() ([]byte, error) {
6903	type NoMethod GoogleCloudApigeeV1ReferenceConfig
6904	raw := NoMethod(*s)
6905	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6906}
6907
6908// GoogleCloudApigeeV1ReportInstanceStatusRequest: Request for
6909// ReportInstanceStatus.
6910type GoogleCloudApigeeV1ReportInstanceStatusRequest struct {
6911	// InstanceUid: A unique ID for the instance which is guaranteed to be
6912	// unique in case the user installs multiple hybrid runtimes with the
6913	// same instance ID.
6914	InstanceUid string `json:"instanceUid,omitempty"`
6915
6916	// ReportTime: The time the report was generated in the runtime. Used to
6917	// prevent an old status from overwriting a newer one. An instance
6918	// should space out it's status reports so that clock skew does not play
6919	// a factor.
6920	ReportTime string `json:"reportTime,omitempty"`
6921
6922	// Resources: Status for config resources
6923	Resources []*GoogleCloudApigeeV1ResourceStatus `json:"resources,omitempty"`
6924
6925	// ForceSendFields is a list of field names (e.g. "InstanceUid") to
6926	// unconditionally include in API requests. By default, fields with
6927	// empty values are omitted from API requests. However, any non-pointer,
6928	// non-interface field appearing in ForceSendFields will be sent to the
6929	// server regardless of whether the field is empty or not. This may be
6930	// used to include empty fields in Patch requests.
6931	ForceSendFields []string `json:"-"`
6932
6933	// NullFields is a list of field names (e.g. "InstanceUid") to include
6934	// in API requests with the JSON null value. By default, fields with
6935	// empty values are omitted from API requests. However, any field with
6936	// an empty value appearing in NullFields will be sent to the server as
6937	// null. It is an error if a field in this list has a non-empty value.
6938	// This may be used to include null fields in Patch requests.
6939	NullFields []string `json:"-"`
6940}
6941
6942func (s *GoogleCloudApigeeV1ReportInstanceStatusRequest) MarshalJSON() ([]byte, error) {
6943	type NoMethod GoogleCloudApigeeV1ReportInstanceStatusRequest
6944	raw := NoMethod(*s)
6945	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6946}
6947
6948// GoogleCloudApigeeV1ReportInstanceStatusResponse: Placeholder for
6949// future enhancements to status reporting protocol
6950type GoogleCloudApigeeV1ReportInstanceStatusResponse struct {
6951	// ServerResponse contains the HTTP response code and headers from the
6952	// server.
6953	googleapi.ServerResponse `json:"-"`
6954}
6955
6956type GoogleCloudApigeeV1ReportProperty struct {
6957	// Property: name of the property
6958	Property string `json:"property,omitempty"`
6959
6960	// Value: property values
6961	Value []*GoogleCloudApigeeV1Attribute `json:"value,omitempty"`
6962
6963	// ForceSendFields is a list of field names (e.g. "Property") to
6964	// unconditionally include in API requests. By default, fields with
6965	// empty values are omitted from API requests. However, any non-pointer,
6966	// non-interface field appearing in ForceSendFields will be sent to the
6967	// server regardless of whether the field is empty or not. This may be
6968	// used to include empty fields in Patch requests.
6969	ForceSendFields []string `json:"-"`
6970
6971	// NullFields is a list of field names (e.g. "Property") to include in
6972	// API requests with the JSON null value. By default, fields with empty
6973	// values are omitted from API requests. However, any field with an
6974	// empty value appearing in NullFields will be sent to the server as
6975	// null. It is an error if a field in this list has a non-empty value.
6976	// This may be used to include null fields in Patch requests.
6977	NullFields []string `json:"-"`
6978}
6979
6980func (s *GoogleCloudApigeeV1ReportProperty) MarshalJSON() ([]byte, error) {
6981	type NoMethod GoogleCloudApigeeV1ReportProperty
6982	raw := NoMethod(*s)
6983	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6984}
6985
6986type GoogleCloudApigeeV1ResourceConfig struct {
6987	// Location: Location of the resource as a URI.
6988	Location string `json:"location,omitempty"`
6989
6990	// Name: Resource name in the following format:
6991	// `organizations/{org}/environments/{env}/resourcefiles/{type}/{file}/re
6992	// visions/{rev}` Only environment-scoped resource files are supported.
6993	Name string `json:"name,omitempty"`
6994
6995	// ForceSendFields is a list of field names (e.g. "Location") to
6996	// unconditionally include in API requests. By default, fields with
6997	// empty values are omitted from API requests. However, any non-pointer,
6998	// non-interface field appearing in ForceSendFields will be sent to the
6999	// server regardless of whether the field is empty or not. This may be
7000	// used to include empty fields in Patch requests.
7001	ForceSendFields []string `json:"-"`
7002
7003	// NullFields is a list of field names (e.g. "Location") to include in
7004	// API requests with the JSON null value. By default, fields with empty
7005	// values are omitted from API requests. However, any field with an
7006	// empty value appearing in NullFields will be sent to the server as
7007	// null. It is an error if a field in this list has a non-empty value.
7008	// This may be used to include null fields in Patch requests.
7009	NullFields []string `json:"-"`
7010}
7011
7012func (s *GoogleCloudApigeeV1ResourceConfig) MarshalJSON() ([]byte, error) {
7013	type NoMethod GoogleCloudApigeeV1ResourceConfig
7014	raw := NoMethod(*s)
7015	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7016}
7017
7018// GoogleCloudApigeeV1ResourceFile: Metadata about a resource file.
7019type GoogleCloudApigeeV1ResourceFile struct {
7020	// Name: ID of the resource file.
7021	Name string `json:"name,omitempty"`
7022
7023	// Type: Resource file type. {{ resource_file_type }}
7024	Type string `json:"type,omitempty"`
7025
7026	// ServerResponse contains the HTTP response code and headers from the
7027	// server.
7028	googleapi.ServerResponse `json:"-"`
7029
7030	// ForceSendFields is a list of field names (e.g. "Name") to
7031	// unconditionally include in API requests. By default, fields with
7032	// empty values are omitted from API requests. However, any non-pointer,
7033	// non-interface field appearing in ForceSendFields will be sent to the
7034	// server regardless of whether the field is empty or not. This may be
7035	// used to include empty fields in Patch requests.
7036	ForceSendFields []string `json:"-"`
7037
7038	// NullFields is a list of field names (e.g. "Name") to include in API
7039	// requests with the JSON null value. By default, fields with empty
7040	// values are omitted from API requests. However, any field with an
7041	// empty value appearing in NullFields will be sent to the server as
7042	// null. It is an error if a field in this list has a non-empty value.
7043	// This may be used to include null fields in Patch requests.
7044	NullFields []string `json:"-"`
7045}
7046
7047func (s *GoogleCloudApigeeV1ResourceFile) MarshalJSON() ([]byte, error) {
7048	type NoMethod GoogleCloudApigeeV1ResourceFile
7049	raw := NoMethod(*s)
7050	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7051}
7052
7053// GoogleCloudApigeeV1ResourceFiles: List of resource files.
7054type GoogleCloudApigeeV1ResourceFiles struct {
7055	// ResourceFile: List of resource files.
7056	ResourceFile []*GoogleCloudApigeeV1ResourceFile `json:"resourceFile,omitempty"`
7057
7058	// ForceSendFields is a list of field names (e.g. "ResourceFile") to
7059	// unconditionally include in API requests. By default, fields with
7060	// empty values are omitted from API requests. However, any non-pointer,
7061	// non-interface field appearing in ForceSendFields will be sent to the
7062	// server regardless of whether the field is empty or not. This may be
7063	// used to include empty fields in Patch requests.
7064	ForceSendFields []string `json:"-"`
7065
7066	// NullFields is a list of field names (e.g. "ResourceFile") to include
7067	// in API requests with the JSON null value. By default, fields with
7068	// empty values are omitted from API requests. However, any field with
7069	// an empty value appearing in NullFields will be sent to the server as
7070	// null. It is an error if a field in this list has a non-empty value.
7071	// This may be used to include null fields in Patch requests.
7072	NullFields []string `json:"-"`
7073}
7074
7075func (s *GoogleCloudApigeeV1ResourceFiles) MarshalJSON() ([]byte, error) {
7076	type NoMethod GoogleCloudApigeeV1ResourceFiles
7077	raw := NoMethod(*s)
7078	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7079}
7080
7081// GoogleCloudApigeeV1ResourceStatus: The status of a resource loaded in
7082// the runtime.
7083type GoogleCloudApigeeV1ResourceStatus struct {
7084	// Resource: The resource name. Currently only two resources are
7085	// supported: EnvironmentGroup -
7086	// organizations/{org}/envgroups/{envgroup} EnvironmentConfig -
7087	// organizations/{org}/environments/{environment}/deployedConfig
7088	Resource string `json:"resource,omitempty"`
7089
7090	// Revisions: Revisions of the resource currently deployed in the
7091	// instance.
7092	Revisions []*GoogleCloudApigeeV1RevisionStatus `json:"revisions,omitempty"`
7093
7094	// TotalReplicas: The total number of replicas that should have this
7095	// resource.
7096	TotalReplicas int64 `json:"totalReplicas,omitempty"`
7097
7098	// Uid: The uid of the resource. In the unexpected case that the
7099	// instance has multiple uids for the same name, they should be reported
7100	// under separate ResourceStatuses.
7101	Uid string `json:"uid,omitempty"`
7102
7103	// ForceSendFields is a list of field names (e.g. "Resource") to
7104	// unconditionally include in API requests. By default, fields with
7105	// empty values are omitted from API requests. However, any non-pointer,
7106	// non-interface field appearing in ForceSendFields will be sent to the
7107	// server regardless of whether the field is empty or not. This may be
7108	// used to include empty fields in Patch requests.
7109	ForceSendFields []string `json:"-"`
7110
7111	// NullFields is a list of field names (e.g. "Resource") to include in
7112	// API requests with the JSON null value. By default, fields with empty
7113	// values are omitted from API requests. However, any field with an
7114	// empty value appearing in NullFields will be sent to the server as
7115	// null. It is an error if a field in this list has a non-empty value.
7116	// This may be used to include null fields in Patch requests.
7117	NullFields []string `json:"-"`
7118}
7119
7120func (s *GoogleCloudApigeeV1ResourceStatus) MarshalJSON() ([]byte, error) {
7121	type NoMethod GoogleCloudApigeeV1ResourceStatus
7122	raw := NoMethod(*s)
7123	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7124}
7125
7126// GoogleCloudApigeeV1Result: Result is short for "action result", could
7127// be different types identified by "action_result" field. Supported
7128// types: 1. DebugInfo : generic debug info collected by runtime
7129// recorded as a list of properties. For example, the contents could be
7130// virtual host info, state change result, or execution metadata.
7131// Required fields : properties, timestamp 2. RequestMessage:
7132// information of a http request. Contains headers, request URI and http
7133// methods type.Required fields : headers, uri, verb 3. ResponseMessage:
7134// information of a http response. Contains headers, reason phrase and
7135// http status code. Required fields : headers, reasonPhrase, statusCode
7136// 4. ErrorMessage: information of a http error message. Contains detail
7137// error message, reason phrase and status code. Required fields :
7138// content, headers, reasonPhrase, statusCode 5. VariableAccess: a list
7139// of variable access actions, can be Get, Set and Remove. Required
7140// fields : accessList
7141type GoogleCloudApigeeV1Result struct {
7142	// ActionResult: Type of the action result. Can be one of the five:
7143	// DebugInfo, RequestMessage, ResponseMessage, ErrorMessage,
7144	// VariableAccess
7145	ActionResult string `json:"ActionResult,omitempty"`
7146
7147	// AccessList: A list of variable access actions agaist the api proxy.
7148	// Supported values: Get, Set, Remove.
7149	AccessList []*GoogleCloudApigeeV1Access `json:"accessList,omitempty"`
7150
7151	// Content: Error message content. for example, "content" :
7152	// "{\"fault\":{\"faultstring\":\"API timed
7153	// out\",\"detail\":{\"errorcode\":\"flow.APITimedOut\"}}}"
7154	Content string `json:"content,omitempty"`
7155
7156	// Headers: A list of HTTP headers. for example, '"headers" : [ { "name"
7157	// : "Content-Length", "value" : "83" }, { "name" : "Content-Type",
7158	// "value" : "application/json" } ]'
7159	Headers []*GoogleCloudApigeeV1Property `json:"headers,omitempty"`
7160
7161	// Properties: Name value pairs used for DebugInfo ActionResult.
7162	Properties *GoogleCloudApigeeV1Properties `json:"properties,omitempty"`
7163
7164	// ReasonPhrase: HTTP response phrase
7165	ReasonPhrase string `json:"reasonPhrase,omitempty"`
7166
7167	// StatusCode: HTTP response code
7168	StatusCode string `json:"statusCode,omitempty"`
7169
7170	// Timestamp: Timestamp of when the result is recorded. Its format is
7171	// dd-mm-yy hh:mm:ss:xxx. For example, "timestamp" : "12-08-19
7172	// 00:31:59:960"
7173	Timestamp string `json:"timestamp,omitempty"`
7174
7175	// URI: The relative path of the api proxy. for example, "uRI" :
7176	// "/iloveapis"
7177	URI string `json:"uRI,omitempty"`
7178
7179	// Verb: HTTP method verb
7180	Verb string `json:"verb,omitempty"`
7181
7182	// ForceSendFields is a list of field names (e.g. "ActionResult") to
7183	// unconditionally include in API requests. By default, fields with
7184	// empty values are omitted from API requests. However, any non-pointer,
7185	// non-interface field appearing in ForceSendFields will be sent to the
7186	// server regardless of whether the field is empty or not. This may be
7187	// used to include empty fields in Patch requests.
7188	ForceSendFields []string `json:"-"`
7189
7190	// NullFields is a list of field names (e.g. "ActionResult") to include
7191	// in API requests with the JSON null value. By default, fields with
7192	// empty values are omitted from API requests. However, any field with
7193	// an empty value appearing in NullFields will be sent to the server as
7194	// null. It is an error if a field in this list has a non-empty value.
7195	// This may be used to include null fields in Patch requests.
7196	NullFields []string `json:"-"`
7197}
7198
7199func (s *GoogleCloudApigeeV1Result) MarshalJSON() ([]byte, error) {
7200	type NoMethod GoogleCloudApigeeV1Result
7201	raw := NoMethod(*s)
7202	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7203}
7204
7205// GoogleCloudApigeeV1RevenueShareRange: API call volume range and the
7206// percentage of revenue to share with the developer when the total
7207// number of API calls is within the range.
7208type GoogleCloudApigeeV1RevenueShareRange struct {
7209	// End: Ending value of the range. Set to 0 or `null` for the last range
7210	// of values.
7211	End int64 `json:"end,omitempty,string"`
7212
7213	// SharePercentage: Percentage of the revenue to be shared with the
7214	// developer. For example, to share 21 percent of the total revenue with
7215	// the developer, set this value to 21. Specify a decimal number with a
7216	// maximum of two digits following the decimal point.
7217	SharePercentage float64 `json:"sharePercentage,omitempty"`
7218
7219	// Start: Starting value of the range. Set to 0 or `null` for the
7220	// initial range of values.
7221	Start int64 `json:"start,omitempty,string"`
7222
7223	// ForceSendFields is a list of field names (e.g. "End") to
7224	// unconditionally include in API requests. By default, fields with
7225	// empty values are omitted from API requests. However, any non-pointer,
7226	// non-interface field appearing in ForceSendFields will be sent to the
7227	// server regardless of whether the field is empty or not. This may be
7228	// used to include empty fields in Patch requests.
7229	ForceSendFields []string `json:"-"`
7230
7231	// NullFields is a list of field names (e.g. "End") to include in API
7232	// requests with the JSON null value. By default, fields with empty
7233	// values are omitted from API requests. However, any field with an
7234	// empty value appearing in NullFields will be sent to the server as
7235	// null. It is an error if a field in this list has a non-empty value.
7236	// This may be used to include null fields in Patch requests.
7237	NullFields []string `json:"-"`
7238}
7239
7240func (s *GoogleCloudApigeeV1RevenueShareRange) MarshalJSON() ([]byte, error) {
7241	type NoMethod GoogleCloudApigeeV1RevenueShareRange
7242	raw := NoMethod(*s)
7243	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7244}
7245
7246func (s *GoogleCloudApigeeV1RevenueShareRange) UnmarshalJSON(data []byte) error {
7247	type NoMethod GoogleCloudApigeeV1RevenueShareRange
7248	var s1 struct {
7249		SharePercentage gensupport.JSONFloat64 `json:"sharePercentage"`
7250		*NoMethod
7251	}
7252	s1.NoMethod = (*NoMethod)(s)
7253	if err := json.Unmarshal(data, &s1); err != nil {
7254		return err
7255	}
7256	s.SharePercentage = float64(s1.SharePercentage)
7257	return nil
7258}
7259
7260// GoogleCloudApigeeV1RevisionStatus: The status of a specific resource
7261// revision.
7262type GoogleCloudApigeeV1RevisionStatus struct {
7263	// Errors: Errors reported when attempting to load this revision.
7264	Errors []*GoogleCloudApigeeV1UpdateError `json:"errors,omitempty"`
7265
7266	// JsonSpec: The json content of the resource revision.
7267	JsonSpec string `json:"jsonSpec,omitempty"`
7268
7269	// Replicas: The number of replicas that have successfully loaded this
7270	// revision.
7271	Replicas int64 `json:"replicas,omitempty"`
7272
7273	// RevisionId: The revision of the resource.
7274	RevisionId string `json:"revisionId,omitempty"`
7275
7276	// ForceSendFields is a list of field names (e.g. "Errors") to
7277	// unconditionally include in API requests. By default, fields with
7278	// empty values are omitted from API requests. However, any non-pointer,
7279	// non-interface field appearing in ForceSendFields will be sent to the
7280	// server regardless of whether the field is empty or not. This may be
7281	// used to include empty fields in Patch requests.
7282	ForceSendFields []string `json:"-"`
7283
7284	// NullFields is a list of field names (e.g. "Errors") to include in API
7285	// requests with the JSON null value. By default, fields with empty
7286	// values are omitted from API requests. However, any field with an
7287	// empty value appearing in NullFields will be sent to the server as
7288	// null. It is an error if a field in this list has a non-empty value.
7289	// This may be used to include null fields in Patch requests.
7290	NullFields []string `json:"-"`
7291}
7292
7293func (s *GoogleCloudApigeeV1RevisionStatus) MarshalJSON() ([]byte, error) {
7294	type NoMethod GoogleCloudApigeeV1RevisionStatus
7295	raw := NoMethod(*s)
7296	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7297}
7298
7299type GoogleCloudApigeeV1RoutingRule struct {
7300	// Basepath: URI path prefix used to route to the specified environment.
7301	// May contain one or more wildcards. For example, path segments
7302	// consisting of a single `*` character will match any string.
7303	Basepath string `json:"basepath,omitempty"`
7304
7305	// EnvGroupRevision: The env group config revision_id when this rule was
7306	// added or last updated. This value is set when the rule is created and
7307	// will only update if the the environment_id changes. It is used to
7308	// determine if the runtime is up to date with respect to this rule.
7309	// This field is omitted from the IngressConfig unless the
7310	// GetDeployedIngressConfig API is called with view=FULL.
7311	EnvGroupRevision int64 `json:"envGroupRevision,omitempty,string"`
7312
7313	// Environment: Name of an environment bound to the environment group in
7314	// the following format: `organizations/{org}/environments/{env}`.
7315	Environment string `json:"environment,omitempty"`
7316
7317	// Receiver: The resource name of the proxy revision that is receiving
7318	// this basepath in the following format:
7319	// `organizations/{org}/apis/{api}/revisions/{rev}`. This field is
7320	// omitted from the IngressConfig unless the GetDeployedIngressConfig
7321	// API is called with view=FULL.
7322	Receiver string `json:"receiver,omitempty"`
7323
7324	// UpdateTime: The unix timestamp when this rule was updated. This is
7325	// updated whenever env_group_revision is updated. This field is omitted
7326	// from the IngressConfig unless the GetDeployedIngressConfig API is
7327	// called with view=FULL.
7328	UpdateTime string `json:"updateTime,omitempty"`
7329
7330	// ForceSendFields is a list of field names (e.g. "Basepath") to
7331	// unconditionally include in API requests. By default, fields with
7332	// empty values are omitted from API requests. However, any non-pointer,
7333	// non-interface field appearing in ForceSendFields will be sent to the
7334	// server regardless of whether the field is empty or not. This may be
7335	// used to include empty fields in Patch requests.
7336	ForceSendFields []string `json:"-"`
7337
7338	// NullFields is a list of field names (e.g. "Basepath") to include in
7339	// API requests with the JSON null value. By default, fields with empty
7340	// values are omitted from API requests. However, any field with an
7341	// empty value appearing in NullFields will be sent to the server as
7342	// null. It is an error if a field in this list has a non-empty value.
7343	// This may be used to include null fields in Patch requests.
7344	NullFields []string `json:"-"`
7345}
7346
7347func (s *GoogleCloudApigeeV1RoutingRule) MarshalJSON() ([]byte, error) {
7348	type NoMethod GoogleCloudApigeeV1RoutingRule
7349	raw := NoMethod(*s)
7350	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7351}
7352
7353// GoogleCloudApigeeV1RuntimeTraceConfig: NEXT ID: 8 RuntimeTraceConfig
7354// defines the configurations for distributed trace in an environment.
7355type GoogleCloudApigeeV1RuntimeTraceConfig struct {
7356	// Endpoint: Endpoint of the exporter.
7357	Endpoint string `json:"endpoint,omitempty"`
7358
7359	// Exporter: Exporter that is used to view the distributed trace
7360	// captured using OpenCensus. An exporter sends traces to any backend
7361	// that is capable of consuming them. Recorded spans can be exported by
7362	// registered exporters.
7363	//
7364	// Possible values:
7365	//   "EXPORTER_UNSPECIFIED" - Exporter unspecified
7366	//   "JAEGER" - Jaeger exporter
7367	//   "CLOUD_TRACE" - Cloudtrace exporter
7368	Exporter string `json:"exporter,omitempty"`
7369
7370	// Name: Name of the trace config in the following format:
7371	// `organizations/{org}/environment/{env}/traceConfig`
7372	Name string `json:"name,omitempty"`
7373
7374	// Overrides: List of trace configuration overrides for spicific API
7375	// proxies.
7376	Overrides []*GoogleCloudApigeeV1RuntimeTraceConfigOverride `json:"overrides,omitempty"`
7377
7378	// RevisionCreateTime: The timestamp that the revision was created or
7379	// updated.
7380	RevisionCreateTime string `json:"revisionCreateTime,omitempty"`
7381
7382	// RevisionId: Revision number which can be used by the runtime to
7383	// detect if the trace config has changed between two versions.
7384	RevisionId string `json:"revisionId,omitempty"`
7385
7386	// SamplingConfig: Trace configuration for all API proxies in an
7387	// environment.
7388	SamplingConfig *GoogleCloudApigeeV1RuntimeTraceSamplingConfig `json:"samplingConfig,omitempty"`
7389
7390	// ForceSendFields is a list of field names (e.g. "Endpoint") to
7391	// unconditionally include in API requests. By default, fields with
7392	// empty values are omitted from API requests. However, any non-pointer,
7393	// non-interface field appearing in ForceSendFields will be sent to the
7394	// server regardless of whether the field is empty or not. This may be
7395	// used to include empty fields in Patch requests.
7396	ForceSendFields []string `json:"-"`
7397
7398	// NullFields is a list of field names (e.g. "Endpoint") to include in
7399	// API requests with the JSON null value. By default, fields with empty
7400	// values are omitted from API requests. However, any field with an
7401	// empty value appearing in NullFields will be sent to the server as
7402	// null. It is an error if a field in this list has a non-empty value.
7403	// This may be used to include null fields in Patch requests.
7404	NullFields []string `json:"-"`
7405}
7406
7407func (s *GoogleCloudApigeeV1RuntimeTraceConfig) MarshalJSON() ([]byte, error) {
7408	type NoMethod GoogleCloudApigeeV1RuntimeTraceConfig
7409	raw := NoMethod(*s)
7410	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7411}
7412
7413// GoogleCloudApigeeV1RuntimeTraceConfigOverride: NEXT ID: 7 Trace
7414// configuration override for a specific API proxy in an environment.
7415type GoogleCloudApigeeV1RuntimeTraceConfigOverride struct {
7416	// ApiProxy: Name of the API proxy that will have its trace
7417	// configuration overridden following format:
7418	// `organizations/{org}/apis/{api}`
7419	ApiProxy string `json:"apiProxy,omitempty"`
7420
7421	// Name: Name of the trace config override in the following format:
7422	// `organizations/{org}/environment/{env}/traceConfig/overrides/{override
7423	// }`
7424	Name string `json:"name,omitempty"`
7425
7426	// RevisionCreateTime: The timestamp that the revision was created or
7427	// updated.
7428	RevisionCreateTime string `json:"revisionCreateTime,omitempty"`
7429
7430	// RevisionId: Revision number which can be used by the runtime to
7431	// detect if the trace config override has changed between two versions.
7432	RevisionId string `json:"revisionId,omitempty"`
7433
7434	// SamplingConfig: Trace configuration override for a specific API proxy
7435	// in an environment.
7436	SamplingConfig *GoogleCloudApigeeV1RuntimeTraceSamplingConfig `json:"samplingConfig,omitempty"`
7437
7438	// Uid: Unique ID for the configuration override. The ID will only
7439	// change if the override is deleted and recreated. Corresponds to
7440	// name's "override" field.
7441	Uid string `json:"uid,omitempty"`
7442
7443	// ForceSendFields is a list of field names (e.g. "ApiProxy") to
7444	// unconditionally include in API requests. By default, fields with
7445	// empty values are omitted from API requests. However, any non-pointer,
7446	// non-interface field appearing in ForceSendFields will be sent to the
7447	// server regardless of whether the field is empty or not. This may be
7448	// used to include empty fields in Patch requests.
7449	ForceSendFields []string `json:"-"`
7450
7451	// NullFields is a list of field names (e.g. "ApiProxy") to include in
7452	// API requests with the JSON null value. By default, fields with empty
7453	// values are omitted from API requests. However, any field with an
7454	// empty value appearing in NullFields will be sent to the server as
7455	// null. It is an error if a field in this list has a non-empty value.
7456	// This may be used to include null fields in Patch requests.
7457	NullFields []string `json:"-"`
7458}
7459
7460func (s *GoogleCloudApigeeV1RuntimeTraceConfigOverride) MarshalJSON() ([]byte, error) {
7461	type NoMethod GoogleCloudApigeeV1RuntimeTraceConfigOverride
7462	raw := NoMethod(*s)
7463	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7464}
7465
7466// GoogleCloudApigeeV1RuntimeTraceSamplingConfig: NEXT ID: 3
7467// RuntimeTraceSamplingConfig represents the detail settings of
7468// distributed tracing. Only the fields that are defined in the
7469// distributed trace configuration can be overridden using the
7470// distribute trace configuration override APIs.
7471type GoogleCloudApigeeV1RuntimeTraceSamplingConfig struct {
7472	// Sampler: Sampler of distributed tracing. OFF is the default value.
7473	//
7474	// Possible values:
7475	//   "SAMPLER_UNSPECIFIED" - Sampler unspecified.
7476	//   "OFF" - OFF means distributed trace is disabled, or the sampling
7477	// probability is 0.
7478	//   "PROBABILITY" - PROBABILITY means traces are captured on a
7479	// probability that defined by sampling_rate. The sampling rate is
7480	// limited to 0 to 0.5 when this is set.
7481	Sampler string `json:"sampler,omitempty"`
7482
7483	// SamplingRate: Field sampling rate. This value is only applicable when
7484	// using the PROBABILITY sampler. The supported values are > 0 and <=
7485	// 0.5.
7486	SamplingRate float64 `json:"samplingRate,omitempty"`
7487
7488	// ForceSendFields is a list of field names (e.g. "Sampler") to
7489	// unconditionally include in API requests. By default, fields with
7490	// empty values are omitted from API requests. However, any non-pointer,
7491	// non-interface field appearing in ForceSendFields will be sent to the
7492	// server regardless of whether the field is empty or not. This may be
7493	// used to include empty fields in Patch requests.
7494	ForceSendFields []string `json:"-"`
7495
7496	// NullFields is a list of field names (e.g. "Sampler") to include in
7497	// API requests with the JSON null value. By default, fields with empty
7498	// values are omitted from API requests. However, any field with an
7499	// empty value appearing in NullFields will be sent to the server as
7500	// null. It is an error if a field in this list has a non-empty value.
7501	// This may be used to include null fields in Patch requests.
7502	NullFields []string `json:"-"`
7503}
7504
7505func (s *GoogleCloudApigeeV1RuntimeTraceSamplingConfig) MarshalJSON() ([]byte, error) {
7506	type NoMethod GoogleCloudApigeeV1RuntimeTraceSamplingConfig
7507	raw := NoMethod(*s)
7508	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7509}
7510
7511func (s *GoogleCloudApigeeV1RuntimeTraceSamplingConfig) UnmarshalJSON(data []byte) error {
7512	type NoMethod GoogleCloudApigeeV1RuntimeTraceSamplingConfig
7513	var s1 struct {
7514		SamplingRate gensupport.JSONFloat64 `json:"samplingRate"`
7515		*NoMethod
7516	}
7517	s1.NoMethod = (*NoMethod)(s)
7518	if err := json.Unmarshal(data, &s1); err != nil {
7519		return err
7520	}
7521	s.SamplingRate = float64(s1.SamplingRate)
7522	return nil
7523}
7524
7525// GoogleCloudApigeeV1Schema: Response for Schema call
7526type GoogleCloudApigeeV1Schema struct {
7527	// Dimensions: List of schema fields grouped as dimensions.
7528	Dimensions []*GoogleCloudApigeeV1SchemaSchemaElement `json:"dimensions,omitempty"`
7529
7530	// Meta: Additional metadata associated with schema. This is a legacy
7531	// field and usually consists of an empty array of strings.
7532	Meta []string `json:"meta,omitempty"`
7533
7534	// Metrics: List of schema fields grouped as dimensions that can be used
7535	// with an aggregate function such as `sum`, `avg`, `min`, and `max`.
7536	Metrics []*GoogleCloudApigeeV1SchemaSchemaElement `json:"metrics,omitempty"`
7537
7538	// ServerResponse contains the HTTP response code and headers from the
7539	// server.
7540	googleapi.ServerResponse `json:"-"`
7541
7542	// ForceSendFields is a list of field names (e.g. "Dimensions") to
7543	// unconditionally include in API requests. By default, fields with
7544	// empty values are omitted from API requests. However, any non-pointer,
7545	// non-interface field appearing in ForceSendFields will be sent to the
7546	// server regardless of whether the field is empty or not. This may be
7547	// used to include empty fields in Patch requests.
7548	ForceSendFields []string `json:"-"`
7549
7550	// NullFields is a list of field names (e.g. "Dimensions") to include in
7551	// API requests with the JSON null value. By default, fields with empty
7552	// values are omitted from API requests. However, any field with an
7553	// empty value appearing in NullFields will be sent to the server as
7554	// null. It is an error if a field in this list has a non-empty value.
7555	// This may be used to include null fields in Patch requests.
7556	NullFields []string `json:"-"`
7557}
7558
7559func (s *GoogleCloudApigeeV1Schema) MarshalJSON() ([]byte, error) {
7560	type NoMethod GoogleCloudApigeeV1Schema
7561	raw := NoMethod(*s)
7562	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7563}
7564
7565// GoogleCloudApigeeV1SchemaSchemaElement: Message type for the schema
7566// element
7567type GoogleCloudApigeeV1SchemaSchemaElement struct {
7568	// Name: Name of the field.
7569	Name string `json:"name,omitempty"`
7570
7571	// Properties: Properties for the schema field. For example: {
7572	// "createTime": "2016-02-26T10:23:09.592Z", "custom": "false", "type":
7573	// "string" }
7574	Properties *GoogleCloudApigeeV1SchemaSchemaProperty `json:"properties,omitempty"`
7575
7576	// ForceSendFields is a list of field names (e.g. "Name") to
7577	// unconditionally include in API requests. By default, fields with
7578	// empty values are omitted from API requests. However, any non-pointer,
7579	// non-interface field appearing in ForceSendFields will be sent to the
7580	// server regardless of whether the field is empty or not. This may be
7581	// used to include empty fields in Patch requests.
7582	ForceSendFields []string `json:"-"`
7583
7584	// NullFields is a list of field names (e.g. "Name") to include in API
7585	// requests with the JSON null value. By default, fields with empty
7586	// values are omitted from API requests. However, any field with an
7587	// empty value appearing in NullFields will be sent to the server as
7588	// null. It is an error if a field in this list has a non-empty value.
7589	// This may be used to include null fields in Patch requests.
7590	NullFields []string `json:"-"`
7591}
7592
7593func (s *GoogleCloudApigeeV1SchemaSchemaElement) MarshalJSON() ([]byte, error) {
7594	type NoMethod GoogleCloudApigeeV1SchemaSchemaElement
7595	raw := NoMethod(*s)
7596	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7597}
7598
7599// GoogleCloudApigeeV1SchemaSchemaProperty: Properties for the schema
7600// field.
7601type GoogleCloudApigeeV1SchemaSchemaProperty struct {
7602	// CreateTime: Time the field was created in RFC3339 string form. For
7603	// example: `2016-02-26T10:23:09.592Z`.
7604	CreateTime string `json:"createTime,omitempty"`
7605
7606	// Custom: Flag that specifies whether the field is standard in the
7607	// dataset or a custom field created by the customer. `true` indicates
7608	// that it is a custom field.
7609	Custom string `json:"custom,omitempty"`
7610
7611	// Type: Data type of the field.
7612	Type string `json:"type,omitempty"`
7613
7614	// ForceSendFields is a list of field names (e.g. "CreateTime") to
7615	// unconditionally include in API requests. By default, fields with
7616	// empty values are omitted from API requests. However, any non-pointer,
7617	// non-interface field appearing in ForceSendFields will be sent to the
7618	// server regardless of whether the field is empty or not. This may be
7619	// used to include empty fields in Patch requests.
7620	ForceSendFields []string `json:"-"`
7621
7622	// NullFields is a list of field names (e.g. "CreateTime") to include in
7623	// API requests with the JSON null value. By default, fields with empty
7624	// values are omitted from API requests. However, any field with an
7625	// empty value appearing in NullFields will be sent to the server as
7626	// null. It is an error if a field in this list has a non-empty value.
7627	// This may be used to include null fields in Patch requests.
7628	NullFields []string `json:"-"`
7629}
7630
7631func (s *GoogleCloudApigeeV1SchemaSchemaProperty) MarshalJSON() ([]byte, error) {
7632	type NoMethod GoogleCloudApigeeV1SchemaSchemaProperty
7633	raw := NoMethod(*s)
7634	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7635}
7636
7637type GoogleCloudApigeeV1ServiceIssuersMapping struct {
7638	// EmailIds: List of trusted issuer email ids.
7639	EmailIds []string `json:"emailIds,omitempty"`
7640
7641	// Service: String indicating the Apigee service name.
7642	Service string `json:"service,omitempty"`
7643
7644	// ForceSendFields is a list of field names (e.g. "EmailIds") to
7645	// unconditionally include in API requests. By default, fields with
7646	// empty values are omitted from API requests. However, any non-pointer,
7647	// non-interface field appearing in ForceSendFields will be sent to the
7648	// server regardless of whether the field is empty or not. This may be
7649	// used to include empty fields in Patch requests.
7650	ForceSendFields []string `json:"-"`
7651
7652	// NullFields is a list of field names (e.g. "EmailIds") to include in
7653	// API requests with the JSON null value. By default, fields with empty
7654	// values are omitted from API requests. However, any field with an
7655	// empty value appearing in NullFields will be sent to the server as
7656	// null. It is an error if a field in this list has a non-empty value.
7657	// This may be used to include null fields in Patch requests.
7658	NullFields []string `json:"-"`
7659}
7660
7661func (s *GoogleCloudApigeeV1ServiceIssuersMapping) MarshalJSON() ([]byte, error) {
7662	type NoMethod GoogleCloudApigeeV1ServiceIssuersMapping
7663	raw := NoMethod(*s)
7664	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7665}
7666
7667// GoogleCloudApigeeV1Session: Session carries the debug session id and
7668// its creation time.
7669type GoogleCloudApigeeV1Session struct {
7670	// Id: The debug session ID.
7671	Id string `json:"id,omitempty"`
7672
7673	// TimestampMs: The first transaction creation timestamp in millisecond,
7674	// recoreded by UAP.
7675	TimestampMs int64 `json:"timestampMs,omitempty,string"`
7676
7677	// ForceSendFields is a list of field names (e.g. "Id") to
7678	// unconditionally include in API requests. By default, fields with
7679	// empty values are omitted from API requests. However, any non-pointer,
7680	// non-interface field appearing in ForceSendFields will be sent to the
7681	// server regardless of whether the field is empty or not. This may be
7682	// used to include empty fields in Patch requests.
7683	ForceSendFields []string `json:"-"`
7684
7685	// NullFields is a list of field names (e.g. "Id") 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 *GoogleCloudApigeeV1Session) MarshalJSON() ([]byte, error) {
7695	type NoMethod GoogleCloudApigeeV1Session
7696	raw := NoMethod(*s)
7697	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7698}
7699
7700// GoogleCloudApigeeV1SetAddonsRequest: Request for SetAddons.
7701type GoogleCloudApigeeV1SetAddonsRequest struct {
7702	// AddonsConfig: Required. Add-on configurations.
7703	AddonsConfig *GoogleCloudApigeeV1AddonsConfig `json:"addonsConfig,omitempty"`
7704
7705	// ForceSendFields is a list of field names (e.g. "AddonsConfig") to
7706	// unconditionally include in API requests. By default, fields with
7707	// empty values are omitted from API requests. However, any non-pointer,
7708	// non-interface field appearing in ForceSendFields will be sent to the
7709	// server regardless of whether the field is empty or not. This may be
7710	// used to include empty fields in Patch requests.
7711	ForceSendFields []string `json:"-"`
7712
7713	// NullFields is a list of field names (e.g. "AddonsConfig") to include
7714	// in API requests with the JSON null value. By default, fields with
7715	// empty values are omitted from API requests. However, any field with
7716	// an empty value appearing in NullFields will be sent to the server as
7717	// null. It is an error if a field in this list has a non-empty value.
7718	// This may be used to include null fields in Patch requests.
7719	NullFields []string `json:"-"`
7720}
7721
7722func (s *GoogleCloudApigeeV1SetAddonsRequest) MarshalJSON() ([]byte, error) {
7723	type NoMethod GoogleCloudApigeeV1SetAddonsRequest
7724	raw := NoMethod(*s)
7725	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7726}
7727
7728// GoogleCloudApigeeV1SharedFlow: The metadata describing a shared flow
7729type GoogleCloudApigeeV1SharedFlow struct {
7730	// LatestRevisionId: The id of the most recently created revision for
7731	// this shared flow.
7732	LatestRevisionId string `json:"latestRevisionId,omitempty"`
7733
7734	// MetaData: Metadata describing the shared flow.
7735	MetaData *GoogleCloudApigeeV1EntityMetadata `json:"metaData,omitempty"`
7736
7737	// Name: The ID of the shared flow.
7738	Name string `json:"name,omitempty"`
7739
7740	// Revision: A list of revisions of this shared flow.
7741	Revision []string `json:"revision,omitempty"`
7742
7743	// ServerResponse contains the HTTP response code and headers from the
7744	// server.
7745	googleapi.ServerResponse `json:"-"`
7746
7747	// ForceSendFields is a list of field names (e.g. "LatestRevisionId") to
7748	// unconditionally include in API requests. By default, fields with
7749	// empty values are omitted from API requests. However, any non-pointer,
7750	// non-interface field appearing in ForceSendFields will be sent to the
7751	// server regardless of whether the field is empty or not. This may be
7752	// used to include empty fields in Patch requests.
7753	ForceSendFields []string `json:"-"`
7754
7755	// NullFields is a list of field names (e.g. "LatestRevisionId") to
7756	// include in API requests with the JSON null value. By default, fields
7757	// with empty values are omitted from API requests. However, any field
7758	// with an empty value appearing in NullFields will be sent to the
7759	// server as null. It is an error if a field in this list has a
7760	// non-empty value. This may be used to include null fields in Patch
7761	// requests.
7762	NullFields []string `json:"-"`
7763}
7764
7765func (s *GoogleCloudApigeeV1SharedFlow) MarshalJSON() ([]byte, error) {
7766	type NoMethod GoogleCloudApigeeV1SharedFlow
7767	raw := NoMethod(*s)
7768	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7769}
7770
7771// GoogleCloudApigeeV1SharedFlowRevision: The metadata describing a
7772// shared flow revision.
7773type GoogleCloudApigeeV1SharedFlowRevision struct {
7774	// ConfigurationVersion: The version of the configuration schema to
7775	// which this shared flow conforms. The only supported value currently
7776	// is majorVersion 4 and minorVersion 0. This setting may be used in the
7777	// future to enable evolution of the shared flow format.
7778	ConfigurationVersion *GoogleCloudApigeeV1ConfigVersion `json:"configurationVersion,omitempty"`
7779
7780	// ContextInfo: A textual description of the shared flow revision.
7781	ContextInfo string `json:"contextInfo,omitempty"`
7782
7783	// CreatedAt: Time at which this shared flow revision was created, in
7784	// milliseconds since epoch.
7785	CreatedAt int64 `json:"createdAt,omitempty,string"`
7786
7787	// Description: Description of the shared flow revision.
7788	Description string `json:"description,omitempty"`
7789
7790	// DisplayName: The human readable name of this shared flow.
7791	DisplayName string `json:"displayName,omitempty"`
7792
7793	// EntityMetaDataAsProperties: A Key-Value map of metadata about this
7794	// shared flow revision.
7795	EntityMetaDataAsProperties map[string]string `json:"entityMetaDataAsProperties,omitempty"`
7796
7797	// LastModifiedAt: Time at which this shared flow revision was most
7798	// recently modified, in milliseconds since epoch.
7799	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
7800
7801	// Name: The resource ID of the parent shared flow.
7802	Name string `json:"name,omitempty"`
7803
7804	// Policies: A list of policy names included in this shared flow
7805	// revision.
7806	Policies []string `json:"policies,omitempty"`
7807
7808	// ResourceFiles: The resource files included in this shared flow
7809	// revision.
7810	ResourceFiles *GoogleCloudApigeeV1ResourceFiles `json:"resourceFiles,omitempty"`
7811
7812	// Resources: A list of the resources included in this shared flow
7813	// revision formatted as "{type}://{name}".
7814	Resources []string `json:"resources,omitempty"`
7815
7816	// Revision: The resource ID of this revision.
7817	Revision string `json:"revision,omitempty"`
7818
7819	// SharedFlows: A list of the shared flow names included in this shared
7820	// flow revision.
7821	SharedFlows []string `json:"sharedFlows,omitempty"`
7822
7823	// Type: The string "Application"
7824	Type string `json:"type,omitempty"`
7825
7826	// ServerResponse contains the HTTP response code and headers from the
7827	// server.
7828	googleapi.ServerResponse `json:"-"`
7829
7830	// ForceSendFields is a list of field names (e.g.
7831	// "ConfigurationVersion") to unconditionally include in API requests.
7832	// By default, fields with empty values are omitted from API requests.
7833	// However, any non-pointer, non-interface field appearing in
7834	// ForceSendFields will be sent to the server regardless of whether the
7835	// field is empty or not. This may be used to include empty fields in
7836	// Patch requests.
7837	ForceSendFields []string `json:"-"`
7838
7839	// NullFields is a list of field names (e.g. "ConfigurationVersion") to
7840	// include in API requests with the JSON null value. By default, fields
7841	// with empty values are omitted from API requests. However, any field
7842	// with an empty value appearing in NullFields will be sent to the
7843	// server as null. It is an error if a field in this list has a
7844	// non-empty value. This may be used to include null fields in Patch
7845	// requests.
7846	NullFields []string `json:"-"`
7847}
7848
7849func (s *GoogleCloudApigeeV1SharedFlowRevision) MarshalJSON() ([]byte, error) {
7850	type NoMethod GoogleCloudApigeeV1SharedFlowRevision
7851	raw := NoMethod(*s)
7852	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7853}
7854
7855// GoogleCloudApigeeV1Stats: This message type encapsulates a stats
7856// response.
7857type GoogleCloudApigeeV1Stats struct {
7858	// Environments: This field contains a list of query results on
7859	// environment level.
7860	Environments []*GoogleCloudApigeeV1StatsEnvironmentStats `json:"environments,omitempty"`
7861
7862	// Hosts: This field contains a list of query results grouped by host.
7863	Hosts []*GoogleCloudApigeeV1StatsHostStats `json:"hosts,omitempty"`
7864
7865	// MetaData: This field contains the metadata information.
7866	MetaData *GoogleCloudApigeeV1Metadata `json:"metaData,omitempty"`
7867
7868	// ServerResponse contains the HTTP response code and headers from the
7869	// server.
7870	googleapi.ServerResponse `json:"-"`
7871
7872	// ForceSendFields is a list of field names (e.g. "Environments") to
7873	// unconditionally include in API requests. By default, fields with
7874	// empty values are omitted from API requests. However, any non-pointer,
7875	// non-interface field appearing in ForceSendFields will be sent to the
7876	// server regardless of whether the field is empty or not. This may be
7877	// used to include empty fields in Patch requests.
7878	ForceSendFields []string `json:"-"`
7879
7880	// NullFields is a list of field names (e.g. "Environments") to include
7881	// in API requests with the JSON null value. By default, fields with
7882	// empty values are omitted from API requests. However, any field with
7883	// an empty value appearing in NullFields will be sent to the server as
7884	// null. It is an error if a field in this list has a non-empty value.
7885	// This may be used to include null fields in Patch requests.
7886	NullFields []string `json:"-"`
7887}
7888
7889func (s *GoogleCloudApigeeV1Stats) MarshalJSON() ([]byte, error) {
7890	type NoMethod GoogleCloudApigeeV1Stats
7891	raw := NoMethod(*s)
7892	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7893}
7894
7895// GoogleCloudApigeeV1StatsEnvironmentStats: This message type
7896// encapsulates the environment wrapper: "environments": [ { "metrics":
7897// [ { "name": "sum(message_count)", "values": [ "2.52056245E8" ] } ],
7898// "name": "prod" } ]
7899type GoogleCloudApigeeV1StatsEnvironmentStats struct {
7900	// Dimensions: This field contains the list of metrics grouped under
7901	// dimensions.
7902	Dimensions []*GoogleCloudApigeeV1DimensionMetric `json:"dimensions,omitempty"`
7903
7904	// Metrics: In the final response, only one of the following fields will
7905	// be present based on the dimensions provided. If no dimensions are
7906	// provided, then only a top level metrics is provided. If dimensions
7907	// are included, then there will be a top level dimensions field under
7908	// environments which will contain metrics values and the dimension
7909	// name. Example: "environments": [ { "dimensions": [ { "metrics": [ {
7910	// "name": "sum(message_count)", "values": [ "2.14049521E8" ] } ],
7911	// "name": "nit_proxy" } ], "name": "prod" } ] OR "environments": [ {
7912	// "metrics": [ { "name": "sum(message_count)", "values": [
7913	// "2.19026331E8" ] } ], "name": "prod" } ] This field contains the list
7914	// of metric values.
7915	Metrics []*GoogleCloudApigeeV1Metric `json:"metrics,omitempty"`
7916
7917	Name string `json:"name,omitempty"`
7918
7919	// ForceSendFields is a list of field names (e.g. "Dimensions") to
7920	// unconditionally include in API requests. By default, fields with
7921	// empty values are omitted from API requests. However, any non-pointer,
7922	// non-interface field appearing in ForceSendFields will be sent to the
7923	// server regardless of whether the field is empty or not. This may be
7924	// used to include empty fields in Patch requests.
7925	ForceSendFields []string `json:"-"`
7926
7927	// NullFields is a list of field names (e.g. "Dimensions") to include in
7928	// API requests with the JSON null value. By default, fields with empty
7929	// values are omitted from API requests. However, any field with an
7930	// empty value appearing in NullFields will be sent to the server as
7931	// null. It is an error if a field in this list has a non-empty value.
7932	// This may be used to include null fields in Patch requests.
7933	NullFields []string `json:"-"`
7934}
7935
7936func (s *GoogleCloudApigeeV1StatsEnvironmentStats) MarshalJSON() ([]byte, error) {
7937	type NoMethod GoogleCloudApigeeV1StatsEnvironmentStats
7938	raw := NoMethod(*s)
7939	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7940}
7941
7942// GoogleCloudApigeeV1StatsHostStats: This message type encapsulates the
7943// hostname wrapper: "hosts": [ { "metrics": [ { "name":
7944// "sum(message_count)", "values": [ "2.52056245E8" ] } ], "name":
7945// "example.com" } ]
7946type GoogleCloudApigeeV1StatsHostStats struct {
7947	// Dimensions: This field contains the list of metrics grouped under
7948	// dimensions.
7949	Dimensions []*GoogleCloudApigeeV1DimensionMetric `json:"dimensions,omitempty"`
7950
7951	// Metrics: In the final response, only one of the following fields will
7952	// be present based on the dimensions provided. If no dimensions are
7953	// provided, then only a top level metrics is provided. If dimensions
7954	// are included, then there will be a top level dimensions field under
7955	// hostnames which will contain metrics values and the dimension name.
7956	// Example: "hosts": [ { "dimensions": [ { "metrics": [ { "name":
7957	// "sum(message_count)", "values": [ "2.14049521E8" ] } ], "name":
7958	// "nit_proxy" } ], "name": "example.com" } ] OR "hosts": [ { "metrics":
7959	// [ { "name": "sum(message_count)", "values": [ "2.19026331E8" ] } ],
7960	// "name": "example.com" } ] This field contains the list of metric
7961	// values.
7962	Metrics []*GoogleCloudApigeeV1Metric `json:"metrics,omitempty"`
7963
7964	// Name: This field contains the hostname used in query.
7965	Name string `json:"name,omitempty"`
7966
7967	// ForceSendFields is a list of field names (e.g. "Dimensions") to
7968	// unconditionally include in API requests. By default, fields with
7969	// empty values are omitted from API requests. However, any non-pointer,
7970	// non-interface field appearing in ForceSendFields will be sent to the
7971	// server regardless of whether the field is empty or not. This may be
7972	// used to include empty fields in Patch requests.
7973	ForceSendFields []string `json:"-"`
7974
7975	// NullFields is a list of field names (e.g. "Dimensions") to include in
7976	// API requests with the JSON null value. By default, fields with empty
7977	// values are omitted from API requests. However, any field with an
7978	// empty value appearing in NullFields will be sent to the server as
7979	// null. It is an error if a field in this list has a non-empty value.
7980	// This may be used to include null fields in Patch requests.
7981	NullFields []string `json:"-"`
7982}
7983
7984func (s *GoogleCloudApigeeV1StatsHostStats) MarshalJSON() ([]byte, error) {
7985	type NoMethod GoogleCloudApigeeV1StatsHostStats
7986	raw := NoMethod(*s)
7987	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7988}
7989
7990// GoogleCloudApigeeV1Subscription: Pub/Sub subscription of an
7991// environment.
7992type GoogleCloudApigeeV1Subscription struct {
7993	// Name: Full name of the Pub/Sub subcription. Use the following
7994	// structure in your request: `subscription
7995	// "projects/foo/subscription/bar"
7996	Name string `json:"name,omitempty"`
7997
7998	// ServerResponse contains the HTTP response code and headers from the
7999	// server.
8000	googleapi.ServerResponse `json:"-"`
8001
8002	// ForceSendFields is a list of field names (e.g. "Name") to
8003	// unconditionally include in API requests. By default, fields with
8004	// empty values are omitted from API requests. However, any non-pointer,
8005	// non-interface field appearing in ForceSendFields will be sent to the
8006	// server regardless of whether the field is empty or not. This may be
8007	// used to include empty fields in Patch requests.
8008	ForceSendFields []string `json:"-"`
8009
8010	// NullFields is a list of field names (e.g. "Name") to include in API
8011	// requests with the JSON null value. By default, fields with empty
8012	// values are omitted from API requests. However, any field with an
8013	// empty value appearing in NullFields will be sent to the server as
8014	// null. It is an error if a field in this list has a non-empty value.
8015	// This may be used to include null fields in Patch requests.
8016	NullFields []string `json:"-"`
8017}
8018
8019func (s *GoogleCloudApigeeV1Subscription) MarshalJSON() ([]byte, error) {
8020	type NoMethod GoogleCloudApigeeV1Subscription
8021	raw := NoMethod(*s)
8022	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8023}
8024
8025type GoogleCloudApigeeV1SyncAuthorization struct {
8026	// Etag: Entity tag (ETag) used for optimistic concurrency control as a
8027	// way to help prevent simultaneous updates from overwriting each other.
8028	// For example, when you call getSyncAuthorization
8029	// (organizations/getSyncAuthorization) an ETag is returned in the
8030	// response. Pass that ETag when calling the setSyncAuthorization
8031	// (organizations/setSyncAuthorization) to ensure that you are updating
8032	// the correct version. If you don't pass the ETag in the call to
8033	// `setSyncAuthorization`, then the existing authorization is
8034	// overwritten indiscriminately. **Note**: We strongly recommend that
8035	// you use the ETag in the read-modify-write cycle to avoid race
8036	// conditions.
8037	Etag string `json:"etag,omitempty"`
8038
8039	// Identities: Required. Array of service accounts to grant access to
8040	// control plane resources, each specified using the following format:
8041	// `serviceAccount:` service-account-name. The service-account-name is
8042	// formatted like an email address. For example:
8043	// `my-synchronizer-manager-service_account@my_project_id.iam.gserviceacc
8044	// ount.com` You might specify multiple service accounts, for example,
8045	// if you have multiple environments and wish to assign a unique service
8046	// account to each one. The service accounts must have **Apigee
8047	// Synchronizer Manager** role. See also Create service accounts
8048	// (https://cloud.google.com/apigee/docs/hybrid/latest/sa-about#create-the-service-accounts).
8049	Identities []string `json:"identities,omitempty"`
8050
8051	// ServerResponse contains the HTTP response code and headers from the
8052	// server.
8053	googleapi.ServerResponse `json:"-"`
8054
8055	// ForceSendFields is a list of field names (e.g. "Etag") to
8056	// unconditionally include in API requests. By default, fields with
8057	// empty values are omitted from API requests. However, any non-pointer,
8058	// non-interface field appearing in ForceSendFields will be sent to the
8059	// server regardless of whether the field is empty or not. This may be
8060	// used to include empty fields in Patch requests.
8061	ForceSendFields []string `json:"-"`
8062
8063	// NullFields is a list of field names (e.g. "Etag") to include in API
8064	// requests with the JSON null value. By default, fields with empty
8065	// values are omitted from API requests. However, any field with an
8066	// empty value appearing in NullFields will be sent to the server as
8067	// null. It is an error if a field in this list has a non-empty value.
8068	// This may be used to include null fields in Patch requests.
8069	NullFields []string `json:"-"`
8070}
8071
8072func (s *GoogleCloudApigeeV1SyncAuthorization) MarshalJSON() ([]byte, error) {
8073	type NoMethod GoogleCloudApigeeV1SyncAuthorization
8074	raw := NoMethod(*s)
8075	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8076}
8077
8078// GoogleCloudApigeeV1TargetServer: TargetServer configuration.
8079// TargetServers are used to decouple a proxy's TargetEndpoint
8080// HTTPTargetConnections from concrete URLs for backend services.
8081type GoogleCloudApigeeV1TargetServer struct {
8082	// Description: Optional. A human-readable description of this
8083	// TargetServer.
8084	Description string `json:"description,omitempty"`
8085
8086	// Host: Required. The host name this target connects to. Value must be
8087	// a valid hostname as described by RFC-1123.
8088	Host string `json:"host,omitempty"`
8089
8090	// IsEnabled: Optional. Enabling/disabling a TargetServer is useful when
8091	// TargetServers are used in load balancing configurations, and one or
8092	// more TargetServers need to taken out of rotation periodically.
8093	// Defaults to true.
8094	IsEnabled bool `json:"isEnabled,omitempty"`
8095
8096	// Name: Required. The resource id of this target server. Values must
8097	// match the regular expression
8098	Name string `json:"name,omitempty"`
8099
8100	// Port: Required. The port number this target connects to on the given
8101	// host. Value must be between 1 and 65535, inclusive.
8102	Port int64 `json:"port,omitempty"`
8103
8104	// SSLInfo: Optional. Specifies TLS configuration info for this
8105	// TargetServer. The JSON name is `sSLInfo` for legacy/backwards
8106	// compatibility reasons -- Edge originally supported SSL, and the name
8107	// is still used for TLS configuration.
8108	SSLInfo *GoogleCloudApigeeV1TlsInfo `json:"sSLInfo,omitempty"`
8109
8110	// ServerResponse contains the HTTP response code and headers from the
8111	// server.
8112	googleapi.ServerResponse `json:"-"`
8113
8114	// ForceSendFields is a list of field names (e.g. "Description") to
8115	// unconditionally include in API requests. By default, fields with
8116	// empty values are omitted from API requests. However, any non-pointer,
8117	// non-interface field appearing in ForceSendFields will be sent to the
8118	// server regardless of whether the field is empty or not. This may be
8119	// used to include empty fields in Patch requests.
8120	ForceSendFields []string `json:"-"`
8121
8122	// NullFields is a list of field names (e.g. "Description") to include
8123	// in API requests with the JSON null value. By default, fields with
8124	// empty values are omitted from API requests. However, any field with
8125	// an empty value appearing in NullFields will be sent to the server as
8126	// null. It is an error if a field in this list has a non-empty value.
8127	// This may be used to include null fields in Patch requests.
8128	NullFields []string `json:"-"`
8129}
8130
8131func (s *GoogleCloudApigeeV1TargetServer) MarshalJSON() ([]byte, error) {
8132	type NoMethod GoogleCloudApigeeV1TargetServer
8133	raw := NoMethod(*s)
8134	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8135}
8136
8137type GoogleCloudApigeeV1TargetServerConfig struct {
8138	// Host: Host name of the target server.
8139	Host string `json:"host,omitempty"`
8140
8141	// Name: Target server revision name in the following format:
8142	// `organizations/{org}/environments/{env}/targetservers/{targetserver}/r
8143	// evisions/{rev}`
8144	Name string `json:"name,omitempty"`
8145
8146	// Port: Port number for the target server.
8147	Port int64 `json:"port,omitempty"`
8148
8149	// TlsInfo: TLS settings for the target server.
8150	TlsInfo *GoogleCloudApigeeV1TlsInfoConfig `json:"tlsInfo,omitempty"`
8151
8152	// ForceSendFields is a list of field names (e.g. "Host") to
8153	// unconditionally include in API requests. By default, fields with
8154	// empty values are omitted from API requests. However, any non-pointer,
8155	// non-interface field appearing in ForceSendFields will be sent to the
8156	// server regardless of whether the field is empty or not. This may be
8157	// used to include empty fields in Patch requests.
8158	ForceSendFields []string `json:"-"`
8159
8160	// NullFields is a list of field names (e.g. "Host") to include in API
8161	// requests with the JSON null value. By default, fields with empty
8162	// values are omitted from API requests. However, any field with an
8163	// empty value appearing in NullFields will be sent to the server as
8164	// null. It is an error if a field in this list has a non-empty value.
8165	// This may be used to include null fields in Patch requests.
8166	NullFields []string `json:"-"`
8167}
8168
8169func (s *GoogleCloudApigeeV1TargetServerConfig) MarshalJSON() ([]byte, error) {
8170	type NoMethod GoogleCloudApigeeV1TargetServerConfig
8171	raw := NoMethod(*s)
8172	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8173}
8174
8175// GoogleCloudApigeeV1TestDatastoreResponse: The response for
8176// TestDatastore
8177type GoogleCloudApigeeV1TestDatastoreResponse struct {
8178	// Error: Output only. Error message of test connection failure
8179	Error string `json:"error,omitempty"`
8180
8181	// State: Output only. It could be `completed` or `failed`
8182	State string `json:"state,omitempty"`
8183
8184	// ServerResponse contains the HTTP response code and headers from the
8185	// server.
8186	googleapi.ServerResponse `json:"-"`
8187
8188	// ForceSendFields is a list of field names (e.g. "Error") to
8189	// unconditionally include in API requests. By default, fields with
8190	// empty values are omitted from API requests. However, any non-pointer,
8191	// non-interface field appearing in ForceSendFields will be sent to the
8192	// server regardless of whether the field is empty or not. This may be
8193	// used to include empty fields in Patch requests.
8194	ForceSendFields []string `json:"-"`
8195
8196	// NullFields is a list of field names (e.g. "Error") to include in API
8197	// requests with the JSON null value. By default, fields with empty
8198	// values are omitted from API requests. However, any field with an
8199	// empty value appearing in NullFields will be sent to the server as
8200	// null. It is an error if a field in this list has a non-empty value.
8201	// This may be used to include null fields in Patch requests.
8202	NullFields []string `json:"-"`
8203}
8204
8205func (s *GoogleCloudApigeeV1TestDatastoreResponse) MarshalJSON() ([]byte, error) {
8206	type NoMethod GoogleCloudApigeeV1TestDatastoreResponse
8207	raw := NoMethod(*s)
8208	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8209}
8210
8211// GoogleCloudApigeeV1TlsInfo: TLS configuration information for
8212// VirtualHosts and TargetServers.
8213type GoogleCloudApigeeV1TlsInfo struct {
8214	// Ciphers: The SSL/TLS cipher suites to be used. Must be one of the
8215	// cipher suite names listed in:
8216	// http://docs.oracle.com/javase/8/docs/technotes/guides/security/StandardNames.html#ciphersuites
8217	Ciphers []string `json:"ciphers,omitempty"`
8218
8219	// ClientAuthEnabled: Optional. Enables two-way TLS.
8220	ClientAuthEnabled bool `json:"clientAuthEnabled,omitempty"`
8221
8222	// CommonName: The TLS Common Name of the certificate.
8223	CommonName *GoogleCloudApigeeV1TlsInfoCommonName `json:"commonName,omitempty"`
8224
8225	// Enabled: Required. Enables TLS. If false, neither one-way nor two-way
8226	// TLS will be enabled.
8227	Enabled bool `json:"enabled,omitempty"`
8228
8229	// IgnoreValidationErrors: If true, Edge ignores TLS certificate errors.
8230	// Valid when configuring TLS for target servers and target endpoints,
8231	// and when configuring virtual hosts that use 2-way TLS. When used with
8232	// a target endpoint/target server, if the backend system uses SNI and
8233	// returns a cert with a subject Distinguished Name (DN) that does not
8234	// match the hostname, there is no way to ignore the error and the
8235	// connection fails.
8236	IgnoreValidationErrors bool `json:"ignoreValidationErrors,omitempty"`
8237
8238	// KeyAlias: Required if `client_auth_enabled` is true. The resource ID
8239	// for the alias containing the private key and cert.
8240	KeyAlias string `json:"keyAlias,omitempty"`
8241
8242	// KeyStore: Required if `client_auth_enabled` is true. The resource ID
8243	// of the keystore. References not yet supported.
8244	KeyStore string `json:"keyStore,omitempty"`
8245
8246	// Protocols: The TLS versioins to be used.
8247	Protocols []string `json:"protocols,omitempty"`
8248
8249	// TrustStore: The resource ID of the truststore. References not yet
8250	// supported.
8251	TrustStore string `json:"trustStore,omitempty"`
8252
8253	// ForceSendFields is a list of field names (e.g. "Ciphers") to
8254	// unconditionally include in API requests. By default, fields with
8255	// empty values are omitted from API requests. However, any non-pointer,
8256	// non-interface field appearing in ForceSendFields will be sent to the
8257	// server regardless of whether the field is empty or not. This may be
8258	// used to include empty fields in Patch requests.
8259	ForceSendFields []string `json:"-"`
8260
8261	// NullFields is a list of field names (e.g. "Ciphers") to include in
8262	// API requests with the JSON null value. By default, fields with empty
8263	// values are omitted from API requests. However, any field with an
8264	// empty value appearing in NullFields will be sent to the server as
8265	// null. It is an error if a field in this list has a non-empty value.
8266	// This may be used to include null fields in Patch requests.
8267	NullFields []string `json:"-"`
8268}
8269
8270func (s *GoogleCloudApigeeV1TlsInfo) MarshalJSON() ([]byte, error) {
8271	type NoMethod GoogleCloudApigeeV1TlsInfo
8272	raw := NoMethod(*s)
8273	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8274}
8275
8276type GoogleCloudApigeeV1TlsInfoCommonName struct {
8277	// Value: The TLS Common Name string of the certificate.
8278	Value string `json:"value,omitempty"`
8279
8280	// WildcardMatch: Indicates whether the cert should be matched against
8281	// as a wildcard cert.
8282	WildcardMatch bool `json:"wildcardMatch,omitempty"`
8283
8284	// ForceSendFields is a list of field names (e.g. "Value") to
8285	// unconditionally include in API requests. By default, fields with
8286	// empty values are omitted from API requests. However, any non-pointer,
8287	// non-interface field appearing in ForceSendFields will be sent to the
8288	// server regardless of whether the field is empty or not. This may be
8289	// used to include empty fields in Patch requests.
8290	ForceSendFields []string `json:"-"`
8291
8292	// NullFields is a list of field names (e.g. "Value") to include in API
8293	// requests with the JSON null value. By default, fields with empty
8294	// values are omitted from API requests. However, any field with an
8295	// empty value appearing in NullFields will be sent to the server as
8296	// null. It is an error if a field in this list has a non-empty value.
8297	// This may be used to include null fields in Patch requests.
8298	NullFields []string `json:"-"`
8299}
8300
8301func (s *GoogleCloudApigeeV1TlsInfoCommonName) MarshalJSON() ([]byte, error) {
8302	type NoMethod GoogleCloudApigeeV1TlsInfoCommonName
8303	raw := NoMethod(*s)
8304	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8305}
8306
8307type GoogleCloudApigeeV1TlsInfoConfig struct {
8308	// Ciphers: List of ciphers that are granted access.
8309	Ciphers []string `json:"ciphers,omitempty"`
8310
8311	// ClientAuthEnabled: Flag that specifies whether client-side
8312	// authentication is enabled for the target server. Enables two-way TLS.
8313	ClientAuthEnabled bool `json:"clientAuthEnabled,omitempty"`
8314
8315	// CommonName: Common name to validate the target server against.
8316	CommonName *GoogleCloudApigeeV1CommonNameConfig `json:"commonName,omitempty"`
8317
8318	// Enabled: Flag that specifies whether one-way TLS is enabled. Set to
8319	// `true` to enable one-way TLS.
8320	Enabled bool `json:"enabled,omitempty"`
8321
8322	// IgnoreValidationErrors: Flag that specifies whether to ignore TLS
8323	// certificate validation errors. Set to `true` to ignore errors.
8324	IgnoreValidationErrors bool `json:"ignoreValidationErrors,omitempty"`
8325
8326	// KeyAlias: Name of the alias used for client-side authentication in
8327	// the following format:
8328	// `organizations/{org}/environments/{env}/keystores/{keystore}/aliases/{
8329	// alias}`
8330	KeyAlias string `json:"keyAlias,omitempty"`
8331
8332	// KeyAliasReference: Reference name and alias pair to use for
8333	// client-side authentication.
8334	KeyAliasReference *GoogleCloudApigeeV1KeyAliasReference `json:"keyAliasReference,omitempty"`
8335
8336	// Protocols: List of TLS protocols that are granted access.
8337	Protocols []string `json:"protocols,omitempty"`
8338
8339	// TrustStore: Name of the keystore or keystore reference containing
8340	// trusted certificates for the server in the following format:
8341	// `organizations/{org}/environments/{env}/keystores/{keystore}` or
8342	// `organizations/{org}/environments/{env}/references/{reference}`
8343	TrustStore string `json:"trustStore,omitempty"`
8344
8345	// ForceSendFields is a list of field names (e.g. "Ciphers") to
8346	// unconditionally include in API requests. By default, fields with
8347	// empty values are omitted from API requests. However, any non-pointer,
8348	// non-interface field appearing in ForceSendFields will be sent to the
8349	// server regardless of whether the field is empty or not. This may be
8350	// used to include empty fields in Patch requests.
8351	ForceSendFields []string `json:"-"`
8352
8353	// NullFields is a list of field names (e.g. "Ciphers") to include in
8354	// API requests with the JSON null value. By default, fields with empty
8355	// values are omitted from API requests. However, any field with an
8356	// empty value appearing in NullFields will be sent to the server as
8357	// null. It is an error if a field in this list has a non-empty value.
8358	// This may be used to include null fields in Patch requests.
8359	NullFields []string `json:"-"`
8360}
8361
8362func (s *GoogleCloudApigeeV1TlsInfoConfig) MarshalJSON() ([]byte, error) {
8363	type NoMethod GoogleCloudApigeeV1TlsInfoConfig
8364	raw := NoMethod(*s)
8365	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8366}
8367
8368// GoogleCloudApigeeV1TraceConfig: TraceConfig defines the
8369// configurations in an environment of distributed trace.
8370type GoogleCloudApigeeV1TraceConfig struct {
8371	// Endpoint: Required. Endpoint of the exporter.
8372	Endpoint string `json:"endpoint,omitempty"`
8373
8374	// Exporter: Required. Exporter that is used to view the distributed
8375	// trace captured using OpenCensus. An exporter sends traces to any
8376	// backend that is capable of consuming them. Recorded spans can be
8377	// exported by registered exporters.
8378	//
8379	// Possible values:
8380	//   "EXPORTER_UNSPECIFIED" - Exporter unspecified
8381	//   "JAEGER" - Jaeger exporter
8382	//   "CLOUD_TRACE" - Cloudtrace exporter
8383	Exporter string `json:"exporter,omitempty"`
8384
8385	// SamplingConfig: Distributed trace configuration for all API proxies
8386	// in an environment. You can also override the configuration for a
8387	// specific API proxy using the distributed trace configuration
8388	// overrides API.
8389	SamplingConfig *GoogleCloudApigeeV1TraceSamplingConfig `json:"samplingConfig,omitempty"`
8390
8391	// ServerResponse contains the HTTP response code and headers from the
8392	// server.
8393	googleapi.ServerResponse `json:"-"`
8394
8395	// ForceSendFields is a list of field names (e.g. "Endpoint") to
8396	// unconditionally include in API requests. By default, fields with
8397	// empty values are omitted from API requests. However, any non-pointer,
8398	// non-interface field appearing in ForceSendFields will be sent to the
8399	// server regardless of whether the field is empty or not. This may be
8400	// used to include empty fields in Patch requests.
8401	ForceSendFields []string `json:"-"`
8402
8403	// NullFields is a list of field names (e.g. "Endpoint") to include in
8404	// API requests with the JSON null value. By default, fields with empty
8405	// values are omitted from API requests. However, any field with an
8406	// empty value appearing in NullFields will be sent to the server as
8407	// null. It is an error if a field in this list has a non-empty value.
8408	// This may be used to include null fields in Patch requests.
8409	NullFields []string `json:"-"`
8410}
8411
8412func (s *GoogleCloudApigeeV1TraceConfig) MarshalJSON() ([]byte, error) {
8413	type NoMethod GoogleCloudApigeeV1TraceConfig
8414	raw := NoMethod(*s)
8415	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8416}
8417
8418// GoogleCloudApigeeV1TraceConfigOverride: A representation of a
8419// configuration override.
8420type GoogleCloudApigeeV1TraceConfigOverride struct {
8421	// ApiProxy: ID of the API proxy that will have its trace configuration
8422	// overridden.
8423	ApiProxy string `json:"apiProxy,omitempty"`
8424
8425	// Name: ID of the trace configuration override specified as a
8426	// system-generated UUID.
8427	Name string `json:"name,omitempty"`
8428
8429	// SamplingConfig: Trace configuration to override.
8430	SamplingConfig *GoogleCloudApigeeV1TraceSamplingConfig `json:"samplingConfig,omitempty"`
8431
8432	// ServerResponse contains the HTTP response code and headers from the
8433	// server.
8434	googleapi.ServerResponse `json:"-"`
8435
8436	// ForceSendFields is a list of field names (e.g. "ApiProxy") to
8437	// unconditionally include in API requests. By default, fields with
8438	// empty values are omitted from API requests. However, any non-pointer,
8439	// non-interface field appearing in ForceSendFields will be sent to the
8440	// server regardless of whether the field is empty or not. This may be
8441	// used to include empty fields in Patch requests.
8442	ForceSendFields []string `json:"-"`
8443
8444	// NullFields is a list of field names (e.g. "ApiProxy") to include in
8445	// API requests with the JSON null value. By default, fields with empty
8446	// values are omitted from API requests. However, any field with an
8447	// empty value appearing in NullFields will be sent to the server as
8448	// null. It is an error if a field in this list has a non-empty value.
8449	// This may be used to include null fields in Patch requests.
8450	NullFields []string `json:"-"`
8451}
8452
8453func (s *GoogleCloudApigeeV1TraceConfigOverride) MarshalJSON() ([]byte, error) {
8454	type NoMethod GoogleCloudApigeeV1TraceConfigOverride
8455	raw := NoMethod(*s)
8456	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8457}
8458
8459// GoogleCloudApigeeV1TraceSamplingConfig: TraceSamplingConfig
8460// represents the detail settings of distributed tracing. Only the
8461// fields that are defined in the distributed trace configuration can be
8462// overridden using the distribute trace configuration override APIs.
8463type GoogleCloudApigeeV1TraceSamplingConfig struct {
8464	// Sampler: Sampler of distributed tracing. OFF is the default value.
8465	//
8466	// Possible values:
8467	//   "SAMPLER_UNSPECIFIED" - Sampler unspecified.
8468	//   "OFF" - OFF means distributed trace is disabled, or the sampling
8469	// probability is 0.
8470	//   "PROBABILITY" - PROBABILITY means traces are captured on a
8471	// probability that defined by sampling_rate. The sampling rate is
8472	// limited to 0 to 0.5 when this is set.
8473	Sampler string `json:"sampler,omitempty"`
8474
8475	// SamplingRate: Field sampling rate. This value is only applicable when
8476	// using the PROBABILITY sampler. The supported values are > 0 and <=
8477	// 0.5.
8478	SamplingRate float64 `json:"samplingRate,omitempty"`
8479
8480	// ForceSendFields is a list of field names (e.g. "Sampler") to
8481	// unconditionally include in API requests. By default, fields with
8482	// empty values are omitted from API requests. However, any non-pointer,
8483	// non-interface field appearing in ForceSendFields will be sent to the
8484	// server regardless of whether the field is empty or not. This may be
8485	// used to include empty fields in Patch requests.
8486	ForceSendFields []string `json:"-"`
8487
8488	// NullFields is a list of field names (e.g. "Sampler") to include in
8489	// API requests with the JSON null value. By default, fields with empty
8490	// values are omitted from API requests. However, any field with an
8491	// empty value appearing in NullFields will be sent to the server as
8492	// null. It is an error if a field in this list has a non-empty value.
8493	// This may be used to include null fields in Patch requests.
8494	NullFields []string `json:"-"`
8495}
8496
8497func (s *GoogleCloudApigeeV1TraceSamplingConfig) MarshalJSON() ([]byte, error) {
8498	type NoMethod GoogleCloudApigeeV1TraceSamplingConfig
8499	raw := NoMethod(*s)
8500	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8501}
8502
8503func (s *GoogleCloudApigeeV1TraceSamplingConfig) UnmarshalJSON(data []byte) error {
8504	type NoMethod GoogleCloudApigeeV1TraceSamplingConfig
8505	var s1 struct {
8506		SamplingRate gensupport.JSONFloat64 `json:"samplingRate"`
8507		*NoMethod
8508	}
8509	s1.NoMethod = (*NoMethod)(s)
8510	if err := json.Unmarshal(data, &s1); err != nil {
8511		return err
8512	}
8513	s.SamplingRate = float64(s1.SamplingRate)
8514	return nil
8515}
8516
8517// GoogleCloudApigeeV1UpdateError: Details on why a resource update
8518// failed in the runtime.
8519type GoogleCloudApigeeV1UpdateError struct {
8520	// Code: Status code.
8521	//
8522	// Possible values:
8523	//   "OK" - Not an error; returned on success HTTP Mapping: 200 OK
8524	//   "CANCELLED" - The operation was cancelled, typically by the caller.
8525	// HTTP Mapping: 499 Client Closed Request
8526	//   "UNKNOWN" - Unknown error. For example, this error may be returned
8527	// when a `Status` value received from another address space belongs to
8528	// an error space that is not known in this address space. Also errors
8529	// raised by APIs that do not return enough error information may be
8530	// converted to this error. HTTP Mapping: 500 Internal Server Error
8531	//   "INVALID_ARGUMENT" - The client specified an invalid argument. Note
8532	// that this differs from `FAILED_PRECONDITION`. `INVALID_ARGUMENT`
8533	// indicates arguments that are problematic regardless of the state of
8534	// the system (e.g., a malformed file name). HTTP Mapping: 400 Bad
8535	// Request
8536	//   "DEADLINE_EXCEEDED" - The deadline expired before the operation
8537	// could complete. For operations that change the state of the system,
8538	// this error may be returned even if the operation has completed
8539	// successfully. For example, a successful response from a server could
8540	// have been delayed long enough for the deadline to expire. HTTP
8541	// Mapping: 504 Gateway Timeout
8542	//   "NOT_FOUND" - Some requested entity (e.g., file or directory) was
8543	// not found. Note to server developers: if a request is denied for an
8544	// entire class of users, such as gradual feature rollout or
8545	// undocumented allowlist, `NOT_FOUND` may be used. If a request is
8546	// denied for some users within a class of users, such as user-based
8547	// access control, `PERMISSION_DENIED` must be used. HTTP Mapping: 404
8548	// Not Found
8549	//   "ALREADY_EXISTS" - The entity that a client attempted to create
8550	// (e.g., file or directory) already exists. HTTP Mapping: 409 Conflict
8551	//   "PERMISSION_DENIED" - The caller does not have permission to
8552	// execute the specified operation. `PERMISSION_DENIED` must not be used
8553	// for rejections caused by exhausting some resource (use
8554	// `RESOURCE_EXHAUSTED` instead for those errors). `PERMISSION_DENIED`
8555	// must not be used if the caller can not be identified (use
8556	// `UNAUTHENTICATED` instead for those errors). This error code does not
8557	// imply the request is valid or the requested entity exists or
8558	// satisfies other pre-conditions. HTTP Mapping: 403 Forbidden
8559	//   "UNAUTHENTICATED" - The request does not have valid authentication
8560	// credentials for the operation. HTTP Mapping: 401 Unauthorized
8561	//   "RESOURCE_EXHAUSTED" - Some resource has been exhausted, perhaps a
8562	// per-user quota, or perhaps the entire file system is out of space.
8563	// HTTP Mapping: 429 Too Many Requests
8564	//   "FAILED_PRECONDITION" - The operation was rejected because the
8565	// system is not in a state required for the operation's execution. For
8566	// example, the directory to be deleted is non-empty, an rmdir operation
8567	// is applied to a non-directory, etc. Service implementors can use the
8568	// following guidelines to decide between `FAILED_PRECONDITION`,
8569	// `ABORTED`, and `UNAVAILABLE`: (a) Use `UNAVAILABLE` if the client can
8570	// retry just the failing call. (b) Use `ABORTED` if the client should
8571	// retry at a higher level (e.g., when a client-specified test-and-set
8572	// fails, indicating the client should restart a read-modify-write
8573	// sequence). (c) Use `FAILED_PRECONDITION` if the client should not
8574	// retry until the system state has been explicitly fixed. E.g., if an
8575	// "rmdir" fails because the directory is non-empty,
8576	// `FAILED_PRECONDITION` should be returned since the client should not
8577	// retry unless the files are deleted from the directory. HTTP Mapping:
8578	// 400 Bad Request
8579	//   "ABORTED" - The operation was aborted, typically due to a
8580	// concurrency issue such as a sequencer check failure or transaction
8581	// abort. See the guidelines above for deciding between
8582	// `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`. HTTP Mapping:
8583	// 409 Conflict
8584	//   "OUT_OF_RANGE" - The operation was attempted past the valid range.
8585	// E.g., seeking or reading past end-of-file. Unlike `INVALID_ARGUMENT`,
8586	// this error indicates a problem that may be fixed if the system state
8587	// changes. For example, a 32-bit file system will generate
8588	// `INVALID_ARGUMENT` if asked to read at an offset that is not in the
8589	// range [0,2^32-1], but it will generate `OUT_OF_RANGE` if asked to
8590	// read from an offset past the current file size. There is a fair bit
8591	// of overlap between `FAILED_PRECONDITION` and `OUT_OF_RANGE`. We
8592	// recommend using `OUT_OF_RANGE` (the more specific error) when it
8593	// applies so that callers who are iterating through a space can easily
8594	// look for an `OUT_OF_RANGE` error to detect when they are done. HTTP
8595	// Mapping: 400 Bad Request
8596	//   "UNIMPLEMENTED" - The operation is not implemented or is not
8597	// supported/enabled in this service. HTTP Mapping: 501 Not Implemented
8598	//   "INTERNAL" - Internal errors. This means that some invariants
8599	// expected by the underlying system have been broken. This error code
8600	// is reserved for serious errors. HTTP Mapping: 500 Internal Server
8601	// Error
8602	//   "UNAVAILABLE" - The service is currently unavailable. This is most
8603	// likely a transient condition, which can be corrected by retrying with
8604	// a backoff. Note that it is not always safe to retry non-idempotent
8605	// operations. See the guidelines above for deciding between
8606	// `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`. HTTP Mapping:
8607	// 503 Service Unavailable
8608	//   "DATA_LOSS" - Unrecoverable data loss or corruption. HTTP Mapping:
8609	// 500 Internal Server Error
8610	Code string `json:"code,omitempty"`
8611
8612	// Message: User-friendly error message.
8613	Message string `json:"message,omitempty"`
8614
8615	// Resource: The sub resource specific to this error (e.g. a proxy
8616	// deployed within the EnvironmentConfig). If empty the error refers to
8617	// the top level resource.
8618	Resource string `json:"resource,omitempty"`
8619
8620	// Type: A string that uniquely identifies the type of error. This
8621	// provides a more reliable means to deduplicate errors across revisions
8622	// and instances.
8623	Type string `json:"type,omitempty"`
8624
8625	// ForceSendFields is a list of field names (e.g. "Code") to
8626	// unconditionally include in API requests. By default, fields with
8627	// empty values are omitted from API requests. However, any non-pointer,
8628	// non-interface field appearing in ForceSendFields will be sent to the
8629	// server regardless of whether the field is empty or not. This may be
8630	// used to include empty fields in Patch requests.
8631	ForceSendFields []string `json:"-"`
8632
8633	// NullFields is a list of field names (e.g. "Code") to include in API
8634	// requests with the JSON null value. By default, fields with empty
8635	// values are omitted from API requests. However, any field with an
8636	// empty value appearing in NullFields will be sent to the server as
8637	// null. It is an error if a field in this list has a non-empty value.
8638	// This may be used to include null fields in Patch requests.
8639	NullFields []string `json:"-"`
8640}
8641
8642func (s *GoogleCloudApigeeV1UpdateError) MarshalJSON() ([]byte, error) {
8643	type NoMethod GoogleCloudApigeeV1UpdateError
8644	raw := NoMethod(*s)
8645	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8646}
8647
8648// GoogleIamV1AuditConfig: Specifies the audit configuration for a
8649// service. The configuration determines which permission types are
8650// logged, and what identities, if any, are exempted from logging. An
8651// AuditConfig must have one or more AuditLogConfigs. If there are
8652// AuditConfigs for both `allServices` and a specific service, the union
8653// of the two AuditConfigs is used for that service: the log_types
8654// specified in each AuditConfig are enabled, and the exempted_members
8655// in each AuditLogConfig are exempted. Example Policy with multiple
8656// AuditConfigs: { "audit_configs": [ { "service": "allServices",
8657// "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members":
8658// [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, {
8659// "log_type": "ADMIN_READ" } ] }, { "service":
8660// "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type":
8661// "DATA_READ" }, { "log_type": "DATA_WRITE", "exempted_members": [
8662// "user:aliya@example.com" ] } ] } ] } For sampleservice, this policy
8663// enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts
8664// jose@example.com from DATA_READ logging, and aliya@example.com from
8665// DATA_WRITE logging.
8666type GoogleIamV1AuditConfig struct {
8667	// AuditLogConfigs: The configuration for logging of each type of
8668	// permission.
8669	AuditLogConfigs []*GoogleIamV1AuditLogConfig `json:"auditLogConfigs,omitempty"`
8670
8671	// Service: Specifies a service that will be enabled for audit logging.
8672	// For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
8673	// `allServices` is a special value that covers all services.
8674	Service string `json:"service,omitempty"`
8675
8676	// ForceSendFields is a list of field names (e.g. "AuditLogConfigs") to
8677	// unconditionally include in API requests. By default, fields with
8678	// empty values are omitted from API requests. However, any non-pointer,
8679	// non-interface field appearing in ForceSendFields will be sent to the
8680	// server regardless of whether the field is empty or not. This may be
8681	// used to include empty fields in Patch requests.
8682	ForceSendFields []string `json:"-"`
8683
8684	// NullFields is a list of field names (e.g. "AuditLogConfigs") to
8685	// include in API requests with the JSON null value. By default, fields
8686	// with empty values are omitted from API requests. However, any field
8687	// with an empty value appearing in NullFields will be sent to the
8688	// server as null. It is an error if a field in this list has a
8689	// non-empty value. This may be used to include null fields in Patch
8690	// requests.
8691	NullFields []string `json:"-"`
8692}
8693
8694func (s *GoogleIamV1AuditConfig) MarshalJSON() ([]byte, error) {
8695	type NoMethod GoogleIamV1AuditConfig
8696	raw := NoMethod(*s)
8697	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8698}
8699
8700// GoogleIamV1AuditLogConfig: Provides the configuration for logging a
8701// type of permissions. Example: { "audit_log_configs": [ { "log_type":
8702// "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, {
8703// "log_type": "DATA_WRITE" } ] } This enables 'DATA_READ' and
8704// 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ
8705// logging.
8706type GoogleIamV1AuditLogConfig struct {
8707	// ExemptedMembers: Specifies the identities that do not cause logging
8708	// for this type of permission. Follows the same format of
8709	// Binding.members.
8710	ExemptedMembers []string `json:"exemptedMembers,omitempty"`
8711
8712	// LogType: The log type that this config enables.
8713	//
8714	// Possible values:
8715	//   "LOG_TYPE_UNSPECIFIED" - Default case. Should never be this.
8716	//   "ADMIN_READ" - Admin reads. Example: CloudIAM getIamPolicy
8717	//   "DATA_WRITE" - Data writes. Example: CloudSQL Users create
8718	//   "DATA_READ" - Data reads. Example: CloudSQL Users list
8719	LogType string `json:"logType,omitempty"`
8720
8721	// ForceSendFields is a list of field names (e.g. "ExemptedMembers") to
8722	// unconditionally include in API requests. By default, fields with
8723	// empty values are omitted from API requests. However, any non-pointer,
8724	// non-interface field appearing in ForceSendFields will be sent to the
8725	// server regardless of whether the field is empty or not. This may be
8726	// used to include empty fields in Patch requests.
8727	ForceSendFields []string `json:"-"`
8728
8729	// NullFields is a list of field names (e.g. "ExemptedMembers") to
8730	// include in API requests with the JSON null value. By default, fields
8731	// with empty values are omitted from API requests. However, any field
8732	// with an empty value appearing in NullFields will be sent to the
8733	// server as null. It is an error if a field in this list has a
8734	// non-empty value. This may be used to include null fields in Patch
8735	// requests.
8736	NullFields []string `json:"-"`
8737}
8738
8739func (s *GoogleIamV1AuditLogConfig) MarshalJSON() ([]byte, error) {
8740	type NoMethod GoogleIamV1AuditLogConfig
8741	raw := NoMethod(*s)
8742	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8743}
8744
8745// GoogleIamV1Binding: Associates `members` with a `role`.
8746type GoogleIamV1Binding struct {
8747	// Condition: The condition that is associated with this binding. If the
8748	// condition evaluates to `true`, then this binding applies to the
8749	// current request. If the condition evaluates to `false`, then this
8750	// binding does not apply to the current request. However, a different
8751	// role binding might grant the same role to one or more of the members
8752	// in this binding. To learn which resources support conditions in their
8753	// IAM policies, see the IAM documentation
8754	// (https://cloud.google.com/iam/help/conditions/resource-policies).
8755	Condition *GoogleTypeExpr `json:"condition,omitempty"`
8756
8757	// Members: Specifies the identities requesting access for a Cloud
8758	// Platform resource. `members` can have the following values: *
8759	// `allUsers`: A special identifier that represents anyone who is on the
8760	// internet; with or without a Google account. *
8761	// `allAuthenticatedUsers`: A special identifier that represents anyone
8762	// who is authenticated with a Google account or a service account. *
8763	// `user:{emailid}`: An email address that represents a specific Google
8764	// account. For example, `alice@example.com` . *
8765	// `serviceAccount:{emailid}`: An email address that represents a
8766	// service account. For example,
8767	// `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An
8768	// email address that represents a Google group. For example,
8769	// `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An
8770	// email address (plus unique identifier) representing a user that has
8771	// been recently deleted. For example,
8772	// `alice@example.com?uid=123456789012345678901`. If the user is
8773	// recovered, this value reverts to `user:{emailid}` and the recovered
8774	// user retains the role in the binding. *
8775	// `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address
8776	// (plus unique identifier) representing a service account that has been
8777	// recently deleted. For example,
8778	// `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
8779	// If the service account is undeleted, this value reverts to
8780	// `serviceAccount:{emailid}` and the undeleted service account retains
8781	// the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`:
8782	// An email address (plus unique identifier) representing a Google group
8783	// that has been recently deleted. For example,
8784	// `admins@example.com?uid=123456789012345678901`. If the group is
8785	// recovered, this value reverts to `group:{emailid}` and the recovered
8786	// group retains the role in the binding. * `domain:{domain}`: The G
8787	// Suite domain (primary) that represents all the users of that domain.
8788	// For example, `google.com` or `example.com`.
8789	Members []string `json:"members,omitempty"`
8790
8791	// Role: Role that is assigned to `members`. For example,
8792	// `roles/viewer`, `roles/editor`, or `roles/owner`.
8793	Role string `json:"role,omitempty"`
8794
8795	// ForceSendFields is a list of field names (e.g. "Condition") to
8796	// unconditionally include in API requests. By default, fields with
8797	// empty values are omitted from API requests. However, any non-pointer,
8798	// non-interface field appearing in ForceSendFields will be sent to the
8799	// server regardless of whether the field is empty or not. This may be
8800	// used to include empty fields in Patch requests.
8801	ForceSendFields []string `json:"-"`
8802
8803	// NullFields is a list of field names (e.g. "Condition") to include in
8804	// API requests with the JSON null value. By default, fields with empty
8805	// values are omitted from API requests. However, any field with an
8806	// empty value appearing in NullFields will be sent to the server as
8807	// null. It is an error if a field in this list has a non-empty value.
8808	// This may be used to include null fields in Patch requests.
8809	NullFields []string `json:"-"`
8810}
8811
8812func (s *GoogleIamV1Binding) MarshalJSON() ([]byte, error) {
8813	type NoMethod GoogleIamV1Binding
8814	raw := NoMethod(*s)
8815	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8816}
8817
8818// GoogleIamV1Policy: An Identity and Access Management (IAM) policy,
8819// which specifies access controls for Google Cloud resources. A
8820// `Policy` is a collection of `bindings`. A `binding` binds one or more
8821// `members` to a single `role`. Members can be user accounts, service
8822// accounts, Google groups, and domains (such as G Suite). A `role` is a
8823// named list of permissions; each `role` can be an IAM predefined role
8824// or a user-created custom role. For some types of Google Cloud
8825// resources, a `binding` can also specify a `condition`, which is a
8826// logical expression that allows access to a resource only if the
8827// expression evaluates to `true`. A condition can add constraints based
8828// on attributes of the request, the resource, or both. To learn which
8829// resources support conditions in their IAM policies, see the IAM
8830// documentation
8831// (https://cloud.google.com/iam/help/conditions/resource-policies).
8832// **JSON example:** { "bindings": [ { "role":
8833// "roles/resourcemanager.organizationAdmin", "members": [
8834// "user:mike@example.com", "group:admins@example.com",
8835// "domain:google.com",
8836// "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, {
8837// "role": "roles/resourcemanager.organizationViewer", "members": [
8838// "user:eve@example.com" ], "condition": { "title": "expirable access",
8839// "description": "Does not grant access after Sep 2020", "expression":
8840// "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ],
8841// "etag": "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: -
8842// members: - user:mike@example.com - group:admins@example.com -
8843// domain:google.com -
8844// serviceAccount:my-project-id@appspot.gserviceaccount.com role:
8845// roles/resourcemanager.organizationAdmin - members: -
8846// user:eve@example.com role: roles/resourcemanager.organizationViewer
8847// condition: title: expirable access description: Does not grant access
8848// after Sep 2020 expression: request.time <
8849// timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version:
8850// 3 For a description of IAM and its features, see the IAM
8851// documentation (https://cloud.google.com/iam/docs/).
8852type GoogleIamV1Policy struct {
8853	// AuditConfigs: Specifies cloud audit logging configuration for this
8854	// policy.
8855	AuditConfigs []*GoogleIamV1AuditConfig `json:"auditConfigs,omitempty"`
8856
8857	// Bindings: Associates a list of `members` to a `role`. Optionally, may
8858	// specify a `condition` that determines how and when the `bindings` are
8859	// applied. Each of the `bindings` must contain at least one member.
8860	Bindings []*GoogleIamV1Binding `json:"bindings,omitempty"`
8861
8862	// Etag: `etag` is used for optimistic concurrency control as a way to
8863	// help prevent simultaneous updates of a policy from overwriting each
8864	// other. It is strongly suggested that systems make use of the `etag`
8865	// in the read-modify-write cycle to perform policy updates in order to
8866	// avoid race conditions: An `etag` is returned in the response to
8867	// `getIamPolicy`, and systems are expected to put that etag in the
8868	// request to `setIamPolicy` to ensure that their change will be applied
8869	// to the same version of the policy. **Important:** If you use IAM
8870	// Conditions, you must include the `etag` field whenever you call
8871	// `setIamPolicy`. If you omit this field, then IAM allows you to
8872	// overwrite a version `3` policy with a version `1` policy, and all of
8873	// the conditions in the version `3` policy are lost.
8874	Etag string `json:"etag,omitempty"`
8875
8876	// Version: Specifies the format of the policy. Valid values are `0`,
8877	// `1`, and `3`. Requests that specify an invalid value are rejected.
8878	// Any operation that affects conditional role bindings must specify
8879	// version `3`. This requirement applies to the following operations: *
8880	// Getting a policy that includes a conditional role binding * Adding a
8881	// conditional role binding to a policy * Changing a conditional role
8882	// binding in a policy * Removing any role binding, with or without a
8883	// condition, from a policy that includes conditions **Important:** If
8884	// you use IAM Conditions, you must include the `etag` field whenever
8885	// you call `setIamPolicy`. If you omit this field, then IAM allows you
8886	// to overwrite a version `3` policy with a version `1` policy, and all
8887	// of the conditions in the version `3` policy are lost. If a policy
8888	// does not include any conditions, operations on that policy may
8889	// specify any valid version or leave the field unset. To learn which
8890	// resources support conditions in their IAM policies, see the IAM
8891	// documentation
8892	// (https://cloud.google.com/iam/help/conditions/resource-policies).
8893	Version int64 `json:"version,omitempty"`
8894
8895	// ServerResponse contains the HTTP response code and headers from the
8896	// server.
8897	googleapi.ServerResponse `json:"-"`
8898
8899	// ForceSendFields is a list of field names (e.g. "AuditConfigs") to
8900	// unconditionally include in API requests. By default, fields with
8901	// empty values are omitted from API requests. However, any non-pointer,
8902	// non-interface field appearing in ForceSendFields will be sent to the
8903	// server regardless of whether the field is empty or not. This may be
8904	// used to include empty fields in Patch requests.
8905	ForceSendFields []string `json:"-"`
8906
8907	// NullFields is a list of field names (e.g. "AuditConfigs") to include
8908	// in API requests with the JSON null value. By default, fields with
8909	// empty values are omitted from API requests. However, any field with
8910	// an empty value appearing in NullFields will be sent to the server as
8911	// null. It is an error if a field in this list has a non-empty value.
8912	// This may be used to include null fields in Patch requests.
8913	NullFields []string `json:"-"`
8914}
8915
8916func (s *GoogleIamV1Policy) MarshalJSON() ([]byte, error) {
8917	type NoMethod GoogleIamV1Policy
8918	raw := NoMethod(*s)
8919	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8920}
8921
8922// GoogleIamV1SetIamPolicyRequest: Request message for `SetIamPolicy`
8923// method.
8924type GoogleIamV1SetIamPolicyRequest struct {
8925	// Policy: REQUIRED: The complete policy to be applied to the
8926	// `resource`. The size of the policy is limited to a few 10s of KB. An
8927	// empty policy is a valid policy but certain Cloud Platform services
8928	// (such as Projects) might reject them.
8929	Policy *GoogleIamV1Policy `json:"policy,omitempty"`
8930
8931	// UpdateMask: OPTIONAL: A FieldMask specifying which fields of the
8932	// policy to modify. Only the fields in the mask will be modified. If no
8933	// mask is provided, the following default mask is used: `paths:
8934	// "bindings, etag"
8935	UpdateMask string `json:"updateMask,omitempty"`
8936
8937	// ForceSendFields is a list of field names (e.g. "Policy") to
8938	// unconditionally include in API requests. By default, fields with
8939	// empty values are omitted from API requests. However, any non-pointer,
8940	// non-interface field appearing in ForceSendFields will be sent to the
8941	// server regardless of whether the field is empty or not. This may be
8942	// used to include empty fields in Patch requests.
8943	ForceSendFields []string `json:"-"`
8944
8945	// NullFields is a list of field names (e.g. "Policy") to include in API
8946	// requests with the JSON null value. By default, fields with empty
8947	// values are omitted from API requests. However, any field with an
8948	// empty value appearing in NullFields will be sent to the server as
8949	// null. It is an error if a field in this list has a non-empty value.
8950	// This may be used to include null fields in Patch requests.
8951	NullFields []string `json:"-"`
8952}
8953
8954func (s *GoogleIamV1SetIamPolicyRequest) MarshalJSON() ([]byte, error) {
8955	type NoMethod GoogleIamV1SetIamPolicyRequest
8956	raw := NoMethod(*s)
8957	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8958}
8959
8960// GoogleIamV1TestIamPermissionsRequest: Request message for
8961// `TestIamPermissions` method.
8962type GoogleIamV1TestIamPermissionsRequest struct {
8963	// Permissions: The set of permissions to check for the `resource`.
8964	// Permissions with wildcards (such as '*' or 'storage.*') are not
8965	// allowed. For more information see IAM Overview
8966	// (https://cloud.google.com/iam/docs/overview#permissions).
8967	Permissions []string `json:"permissions,omitempty"`
8968
8969	// ForceSendFields is a list of field names (e.g. "Permissions") to
8970	// unconditionally include in API requests. By default, fields with
8971	// empty values are omitted from API requests. However, any non-pointer,
8972	// non-interface field appearing in ForceSendFields will be sent to the
8973	// server regardless of whether the field is empty or not. This may be
8974	// used to include empty fields in Patch requests.
8975	ForceSendFields []string `json:"-"`
8976
8977	// NullFields is a list of field names (e.g. "Permissions") to include
8978	// in API requests with the JSON null value. By default, fields with
8979	// empty values are omitted from API requests. However, any field with
8980	// an empty value appearing in NullFields will be sent to the server as
8981	// null. It is an error if a field in this list has a non-empty value.
8982	// This may be used to include null fields in Patch requests.
8983	NullFields []string `json:"-"`
8984}
8985
8986func (s *GoogleIamV1TestIamPermissionsRequest) MarshalJSON() ([]byte, error) {
8987	type NoMethod GoogleIamV1TestIamPermissionsRequest
8988	raw := NoMethod(*s)
8989	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8990}
8991
8992// GoogleIamV1TestIamPermissionsResponse: Response message for
8993// `TestIamPermissions` method.
8994type GoogleIamV1TestIamPermissionsResponse struct {
8995	// Permissions: A subset of `TestPermissionsRequest.permissions` that
8996	// the caller is allowed.
8997	Permissions []string `json:"permissions,omitempty"`
8998
8999	// ServerResponse contains the HTTP response code and headers from the
9000	// server.
9001	googleapi.ServerResponse `json:"-"`
9002
9003	// ForceSendFields is a list of field names (e.g. "Permissions") to
9004	// unconditionally include in API requests. By default, fields with
9005	// empty values are omitted from API requests. However, any non-pointer,
9006	// non-interface field appearing in ForceSendFields will be sent to the
9007	// server regardless of whether the field is empty or not. This may be
9008	// used to include empty fields in Patch requests.
9009	ForceSendFields []string `json:"-"`
9010
9011	// NullFields is a list of field names (e.g. "Permissions") to include
9012	// in API requests with the JSON null value. By default, fields with
9013	// empty values are omitted from API requests. However, any field with
9014	// an empty value appearing in NullFields will be sent to the server as
9015	// null. It is an error if a field in this list has a non-empty value.
9016	// This may be used to include null fields in Patch requests.
9017	NullFields []string `json:"-"`
9018}
9019
9020func (s *GoogleIamV1TestIamPermissionsResponse) MarshalJSON() ([]byte, error) {
9021	type NoMethod GoogleIamV1TestIamPermissionsResponse
9022	raw := NoMethod(*s)
9023	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9024}
9025
9026// GoogleLongrunningListOperationsResponse: The response message for
9027// Operations.ListOperations.
9028type GoogleLongrunningListOperationsResponse struct {
9029	// NextPageToken: The standard List next-page token.
9030	NextPageToken string `json:"nextPageToken,omitempty"`
9031
9032	// Operations: A list of operations that matches the specified filter in
9033	// the request.
9034	Operations []*GoogleLongrunningOperation `json:"operations,omitempty"`
9035
9036	// ServerResponse contains the HTTP response code and headers from the
9037	// server.
9038	googleapi.ServerResponse `json:"-"`
9039
9040	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
9041	// unconditionally include in API requests. By default, fields with
9042	// empty values are omitted from API requests. However, any non-pointer,
9043	// non-interface field appearing in ForceSendFields will be sent to the
9044	// server regardless of whether the field is empty or not. This may be
9045	// used to include empty fields in Patch requests.
9046	ForceSendFields []string `json:"-"`
9047
9048	// NullFields is a list of field names (e.g. "NextPageToken") to include
9049	// in API requests with the JSON null value. By default, fields with
9050	// empty values are omitted from API requests. However, any field with
9051	// an empty value appearing in NullFields will be sent to the server as
9052	// null. It is an error if a field in this list has a non-empty value.
9053	// This may be used to include null fields in Patch requests.
9054	NullFields []string `json:"-"`
9055}
9056
9057func (s *GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) {
9058	type NoMethod GoogleLongrunningListOperationsResponse
9059	raw := NoMethod(*s)
9060	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9061}
9062
9063// GoogleLongrunningOperation: This resource represents a long-running
9064// operation that is the result of a network API call.
9065type GoogleLongrunningOperation struct {
9066	// Done: If the value is `false`, it means the operation is still in
9067	// progress. If `true`, the operation is completed, and either `error`
9068	// or `response` is available.
9069	Done bool `json:"done,omitempty"`
9070
9071	// Error: The error result of the operation in case of failure or
9072	// cancellation.
9073	Error *GoogleRpcStatus `json:"error,omitempty"`
9074
9075	// Metadata: Service-specific metadata associated with the operation. It
9076	// typically contains progress information and common metadata such as
9077	// create time. Some services might not provide such metadata. Any
9078	// method that returns a long-running operation should document the
9079	// metadata type, if any.
9080	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
9081
9082	// Name: The server-assigned name, which is only unique within the same
9083	// service that originally returns it. If you use the default HTTP
9084	// mapping, the `name` should be a resource name ending with
9085	// `operations/{unique_id}`.
9086	Name string `json:"name,omitempty"`
9087
9088	// Response: The normal response of the operation in case of success. If
9089	// the original method returns no data on success, such as `Delete`, the
9090	// response is `google.protobuf.Empty`. If the original method is
9091	// standard `Get`/`Create`/`Update`, the response should be the
9092	// resource. For other methods, the response should have the type
9093	// `XxxResponse`, where `Xxx` is the original method name. For example,
9094	// if the original method name is `TakeSnapshot()`, the inferred
9095	// response type is `TakeSnapshotResponse`.
9096	Response googleapi.RawMessage `json:"response,omitempty"`
9097
9098	// ServerResponse contains the HTTP response code and headers from the
9099	// server.
9100	googleapi.ServerResponse `json:"-"`
9101
9102	// ForceSendFields is a list of field names (e.g. "Done") to
9103	// unconditionally include in API requests. By default, fields with
9104	// empty values are omitted from API requests. However, any non-pointer,
9105	// non-interface field appearing in ForceSendFields will be sent to the
9106	// server regardless of whether the field is empty or not. This may be
9107	// used to include empty fields in Patch requests.
9108	ForceSendFields []string `json:"-"`
9109
9110	// NullFields is a list of field names (e.g. "Done") to include in API
9111	// requests with the JSON null value. By default, fields with empty
9112	// values are omitted from API requests. However, any field with an
9113	// empty value appearing in NullFields will be sent to the server as
9114	// null. It is an error if a field in this list has a non-empty value.
9115	// This may be used to include null fields in Patch requests.
9116	NullFields []string `json:"-"`
9117}
9118
9119func (s *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) {
9120	type NoMethod GoogleLongrunningOperation
9121	raw := NoMethod(*s)
9122	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9123}
9124
9125// GoogleProtobufEmpty: A generic empty message that you can re-use to
9126// avoid defining duplicated empty messages in your APIs. A typical
9127// example is to use it as the request or the response type of an API
9128// method. For instance: service Foo { rpc Bar(google.protobuf.Empty)
9129// returns (google.protobuf.Empty); } The JSON representation for
9130// `Empty` is empty JSON object `{}`.
9131type GoogleProtobufEmpty struct {
9132	// ServerResponse contains the HTTP response code and headers from the
9133	// server.
9134	googleapi.ServerResponse `json:"-"`
9135}
9136
9137// GoogleRpcPreconditionFailure: Describes what preconditions have
9138// failed. For example, if an RPC failed because it required the Terms
9139// of Service to be acknowledged, it could list the terms of service
9140// violation in the PreconditionFailure message.
9141type GoogleRpcPreconditionFailure struct {
9142	// Violations: Describes all precondition violations.
9143	Violations []*GoogleRpcPreconditionFailureViolation `json:"violations,omitempty"`
9144
9145	// ForceSendFields is a list of field names (e.g. "Violations") to
9146	// unconditionally include in API requests. By default, fields with
9147	// empty values are omitted from API requests. However, any non-pointer,
9148	// non-interface field appearing in ForceSendFields will be sent to the
9149	// server regardless of whether the field is empty or not. This may be
9150	// used to include empty fields in Patch requests.
9151	ForceSendFields []string `json:"-"`
9152
9153	// NullFields is a list of field names (e.g. "Violations") to include in
9154	// API requests with the JSON null value. By default, fields with empty
9155	// values are omitted from API requests. However, any field with an
9156	// empty value appearing in NullFields will be sent to the server as
9157	// null. It is an error if a field in this list has a non-empty value.
9158	// This may be used to include null fields in Patch requests.
9159	NullFields []string `json:"-"`
9160}
9161
9162func (s *GoogleRpcPreconditionFailure) MarshalJSON() ([]byte, error) {
9163	type NoMethod GoogleRpcPreconditionFailure
9164	raw := NoMethod(*s)
9165	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9166}
9167
9168// GoogleRpcPreconditionFailureViolation: A message type used to
9169// describe a single precondition failure.
9170type GoogleRpcPreconditionFailureViolation struct {
9171	// Description: A description of how the precondition failed. Developers
9172	// can use this description to understand how to fix the failure. For
9173	// example: "Terms of service not accepted".
9174	Description string `json:"description,omitempty"`
9175
9176	// Subject: The subject, relative to the type, that failed. For example,
9177	// "google.com/cloud" relative to the "TOS" type would indicate which
9178	// terms of service is being referenced.
9179	Subject string `json:"subject,omitempty"`
9180
9181	// Type: The type of PreconditionFailure. We recommend using a
9182	// service-specific enum type to define the supported precondition
9183	// violation subjects. For example, "TOS" for "Terms of Service
9184	// violation".
9185	Type string `json:"type,omitempty"`
9186
9187	// ForceSendFields is a list of field names (e.g. "Description") to
9188	// unconditionally include in API requests. By default, fields with
9189	// empty values are omitted from API requests. However, any non-pointer,
9190	// non-interface field appearing in ForceSendFields will be sent to the
9191	// server regardless of whether the field is empty or not. This may be
9192	// used to include empty fields in Patch requests.
9193	ForceSendFields []string `json:"-"`
9194
9195	// NullFields is a list of field names (e.g. "Description") to include
9196	// in API requests with the JSON null value. By default, fields with
9197	// empty values are omitted from API requests. However, any field with
9198	// an empty value appearing in NullFields will be sent to the server as
9199	// null. It is an error if a field in this list has a non-empty value.
9200	// This may be used to include null fields in Patch requests.
9201	NullFields []string `json:"-"`
9202}
9203
9204func (s *GoogleRpcPreconditionFailureViolation) MarshalJSON() ([]byte, error) {
9205	type NoMethod GoogleRpcPreconditionFailureViolation
9206	raw := NoMethod(*s)
9207	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9208}
9209
9210// GoogleRpcStatus: The `Status` type defines a logical error model that
9211// is suitable for different programming environments, including REST
9212// APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each
9213// `Status` message contains three pieces of data: error code, error
9214// message, and error details. You can find out more about this error
9215// model and how to work with it in the API Design Guide
9216// (https://cloud.google.com/apis/design/errors).
9217type GoogleRpcStatus struct {
9218	// Code: The status code, which should be an enum value of
9219	// google.rpc.Code.
9220	Code int64 `json:"code,omitempty"`
9221
9222	// Details: A list of messages that carry the error details. There is a
9223	// common set of message types for APIs to use.
9224	Details []googleapi.RawMessage `json:"details,omitempty"`
9225
9226	// Message: A developer-facing error message, which should be in
9227	// English. Any user-facing error message should be localized and sent
9228	// in the google.rpc.Status.details field, or localized by the client.
9229	Message string `json:"message,omitempty"`
9230
9231	// ForceSendFields is a list of field names (e.g. "Code") to
9232	// unconditionally include in API requests. By default, fields with
9233	// empty values are omitted from API requests. However, any non-pointer,
9234	// non-interface field appearing in ForceSendFields will be sent to the
9235	// server regardless of whether the field is empty or not. This may be
9236	// used to include empty fields in Patch requests.
9237	ForceSendFields []string `json:"-"`
9238
9239	// NullFields is a list of field names (e.g. "Code") to include in API
9240	// requests with the JSON null value. By default, fields with empty
9241	// values are omitted from API requests. However, any field with an
9242	// empty value appearing in NullFields will be sent to the server as
9243	// null. It is an error if a field in this list has a non-empty value.
9244	// This may be used to include null fields in Patch requests.
9245	NullFields []string `json:"-"`
9246}
9247
9248func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) {
9249	type NoMethod GoogleRpcStatus
9250	raw := NoMethod(*s)
9251	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9252}
9253
9254// GoogleTypeExpr: Represents a textual expression in the Common
9255// Expression Language (CEL) syntax. CEL is a C-like expression
9256// language. The syntax and semantics of CEL are documented at
9257// https://github.com/google/cel-spec. Example (Comparison): title:
9258// "Summary size limit" description: "Determines if a summary is less
9259// than 100 chars" expression: "document.summary.size() < 100" Example
9260// (Equality): title: "Requestor is owner" description: "Determines if
9261// requestor is the document owner" expression: "document.owner ==
9262// request.auth.claims.email" Example (Logic): title: "Public documents"
9263// description: "Determine whether the document should be publicly
9264// visible" expression: "document.type != 'private' && document.type !=
9265// 'internal'" Example (Data Manipulation): title: "Notification string"
9266// description: "Create a notification string with a timestamp."
9267// expression: "'New message received at ' +
9268// string(document.create_time)" The exact variables and functions that
9269// may be referenced within an expression are determined by the service
9270// that evaluates it. See the service documentation for additional
9271// information.
9272type GoogleTypeExpr struct {
9273	// Description: Optional. Description of the expression. This is a
9274	// longer text which describes the expression, e.g. when hovered over it
9275	// in a UI.
9276	Description string `json:"description,omitempty"`
9277
9278	// Expression: Textual representation of an expression in Common
9279	// Expression Language syntax.
9280	Expression string `json:"expression,omitempty"`
9281
9282	// Location: Optional. String indicating the location of the expression
9283	// for error reporting, e.g. a file name and a position in the file.
9284	Location string `json:"location,omitempty"`
9285
9286	// Title: Optional. Title for the expression, i.e. a short string
9287	// describing its purpose. This can be used e.g. in UIs which allow to
9288	// enter the expression.
9289	Title string `json:"title,omitempty"`
9290
9291	// ForceSendFields is a list of field names (e.g. "Description") to
9292	// unconditionally include in API requests. By default, fields with
9293	// empty values are omitted from API requests. However, any non-pointer,
9294	// non-interface field appearing in ForceSendFields will be sent to the
9295	// server regardless of whether the field is empty or not. This may be
9296	// used to include empty fields in Patch requests.
9297	ForceSendFields []string `json:"-"`
9298
9299	// NullFields is a list of field names (e.g. "Description") to include
9300	// in API requests with the JSON null value. By default, fields with
9301	// empty values are omitted from API requests. However, any field with
9302	// an empty value appearing in NullFields will be sent to the server as
9303	// null. It is an error if a field in this list has a non-empty value.
9304	// This may be used to include null fields in Patch requests.
9305	NullFields []string `json:"-"`
9306}
9307
9308func (s *GoogleTypeExpr) MarshalJSON() ([]byte, error) {
9309	type NoMethod GoogleTypeExpr
9310	raw := NoMethod(*s)
9311	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9312}
9313
9314// GoogleTypeMoney: Represents an amount of money with its currency
9315// type.
9316type GoogleTypeMoney struct {
9317	// CurrencyCode: The three-letter currency code defined in ISO 4217.
9318	CurrencyCode string `json:"currencyCode,omitempty"`
9319
9320	// Nanos: Number of nano (10^-9) units of the amount. The value must be
9321	// between -999,999,999 and +999,999,999 inclusive. If `units` is
9322	// positive, `nanos` must be positive or zero. If `units` is zero,
9323	// `nanos` can be positive, zero, or negative. If `units` is negative,
9324	// `nanos` must be negative or zero. For example $-1.75 is represented
9325	// as `units`=-1 and `nanos`=-750,000,000.
9326	Nanos int64 `json:"nanos,omitempty"`
9327
9328	// Units: The whole units of the amount. For example if `currencyCode`
9329	// is "USD", then 1 unit is one US dollar.
9330	Units int64 `json:"units,omitempty,string"`
9331
9332	// ForceSendFields is a list of field names (e.g. "CurrencyCode") to
9333	// unconditionally include in API requests. By default, fields with
9334	// empty values are omitted from API requests. However, any non-pointer,
9335	// non-interface field appearing in ForceSendFields will be sent to the
9336	// server regardless of whether the field is empty or not. This may be
9337	// used to include empty fields in Patch requests.
9338	ForceSendFields []string `json:"-"`
9339
9340	// NullFields is a list of field names (e.g. "CurrencyCode") to include
9341	// in API requests with the JSON null value. By default, fields with
9342	// empty values are omitted from API requests. However, any field with
9343	// an empty value appearing in NullFields will be sent to the server as
9344	// null. It is an error if a field in this list has a non-empty value.
9345	// This may be used to include null fields in Patch requests.
9346	NullFields []string `json:"-"`
9347}
9348
9349func (s *GoogleTypeMoney) MarshalJSON() ([]byte, error) {
9350	type NoMethod GoogleTypeMoney
9351	raw := NoMethod(*s)
9352	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9353}
9354
9355// method id "apigee.hybrid.issuers.list":
9356
9357type HybridIssuersListCall struct {
9358	s            *Service
9359	name         string
9360	urlParams_   gensupport.URLParams
9361	ifNoneMatch_ string
9362	ctx_         context.Context
9363	header_      http.Header
9364}
9365
9366// List: Lists hybrid services and its trusted issuers service account
9367// ids. This api is authenticated and unauthorized(allow all the users)
9368// and used by runtime authn-authz service to query control plane's
9369// issuer service account ids.
9370//
9371// - name: Must be of the form `hybrid/issuers`.
9372func (r *HybridIssuersService) List(name string) *HybridIssuersListCall {
9373	c := &HybridIssuersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9374	c.name = name
9375	return c
9376}
9377
9378// Fields allows partial responses to be retrieved. See
9379// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9380// for more information.
9381func (c *HybridIssuersListCall) Fields(s ...googleapi.Field) *HybridIssuersListCall {
9382	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9383	return c
9384}
9385
9386// IfNoneMatch sets the optional parameter which makes the operation
9387// fail if the object's ETag matches the given value. This is useful for
9388// getting updates only after the object has changed since the last
9389// request. Use googleapi.IsNotModified to check whether the response
9390// error from Do is the result of In-None-Match.
9391func (c *HybridIssuersListCall) IfNoneMatch(entityTag string) *HybridIssuersListCall {
9392	c.ifNoneMatch_ = entityTag
9393	return c
9394}
9395
9396// Context sets the context to be used in this call's Do method. Any
9397// pending HTTP request will be aborted if the provided context is
9398// canceled.
9399func (c *HybridIssuersListCall) Context(ctx context.Context) *HybridIssuersListCall {
9400	c.ctx_ = ctx
9401	return c
9402}
9403
9404// Header returns an http.Header that can be modified by the caller to
9405// add HTTP headers to the request.
9406func (c *HybridIssuersListCall) Header() http.Header {
9407	if c.header_ == nil {
9408		c.header_ = make(http.Header)
9409	}
9410	return c.header_
9411}
9412
9413func (c *HybridIssuersListCall) doRequest(alt string) (*http.Response, error) {
9414	reqHeaders := make(http.Header)
9415	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
9416	for k, v := range c.header_ {
9417		reqHeaders[k] = v
9418	}
9419	reqHeaders.Set("User-Agent", c.s.userAgent())
9420	if c.ifNoneMatch_ != "" {
9421		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9422	}
9423	var body io.Reader = nil
9424	c.urlParams_.Set("alt", alt)
9425	c.urlParams_.Set("prettyPrint", "false")
9426	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
9427	urls += "?" + c.urlParams_.Encode()
9428	req, err := http.NewRequest("GET", urls, body)
9429	if err != nil {
9430		return nil, err
9431	}
9432	req.Header = reqHeaders
9433	googleapi.Expand(req.URL, map[string]string{
9434		"name": c.name,
9435	})
9436	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9437}
9438
9439// Do executes the "apigee.hybrid.issuers.list" call.
9440// Exactly one of *GoogleCloudApigeeV1ListHybridIssuersResponse or error
9441// will be non-nil. Any non-2xx status code is an error. Response
9442// headers are in either
9443// *GoogleCloudApigeeV1ListHybridIssuersResponse.ServerResponse.Header
9444// or (if a response was returned at all) in
9445// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
9446// whether the returned error was because http.StatusNotModified was
9447// returned.
9448func (c *HybridIssuersListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListHybridIssuersResponse, error) {
9449	gensupport.SetOptions(c.urlParams_, opts...)
9450	res, err := c.doRequest("json")
9451	if res != nil && res.StatusCode == http.StatusNotModified {
9452		if res.Body != nil {
9453			res.Body.Close()
9454		}
9455		return nil, &googleapi.Error{
9456			Code:   res.StatusCode,
9457			Header: res.Header,
9458		}
9459	}
9460	if err != nil {
9461		return nil, err
9462	}
9463	defer googleapi.CloseBody(res)
9464	if err := googleapi.CheckResponse(res); err != nil {
9465		return nil, err
9466	}
9467	ret := &GoogleCloudApigeeV1ListHybridIssuersResponse{
9468		ServerResponse: googleapi.ServerResponse{
9469			Header:         res.Header,
9470			HTTPStatusCode: res.StatusCode,
9471		},
9472	}
9473	target := &ret
9474	if err := gensupport.DecodeResponse(target, res); err != nil {
9475		return nil, err
9476	}
9477	return ret, nil
9478	// {
9479	//   "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.",
9480	//   "flatPath": "v1/hybrid/issuers",
9481	//   "httpMethod": "GET",
9482	//   "id": "apigee.hybrid.issuers.list",
9483	//   "parameterOrder": [
9484	//     "name"
9485	//   ],
9486	//   "parameters": {
9487	//     "name": {
9488	//       "description": "Required. Must be of the form `hybrid/issuers`.",
9489	//       "location": "path",
9490	//       "pattern": "^hybrid/issuers$",
9491	//       "required": true,
9492	//       "type": "string"
9493	//     }
9494	//   },
9495	//   "path": "v1/{+name}",
9496	//   "response": {
9497	//     "$ref": "GoogleCloudApigeeV1ListHybridIssuersResponse"
9498	//   },
9499	//   "scopes": [
9500	//     "https://www.googleapis.com/auth/cloud-platform"
9501	//   ]
9502	// }
9503
9504}
9505
9506// method id "apigee.organizations.create":
9507
9508type OrganizationsCreateCall struct {
9509	s                               *Service
9510	googlecloudapigeev1organization *GoogleCloudApigeeV1Organization
9511	urlParams_                      gensupport.URLParams
9512	ctx_                            context.Context
9513	header_                         http.Header
9514}
9515
9516// Create: Creates an Apigee organization. See Create an Apigee
9517// organization
9518// (https://cloud.google.com/apigee/docs/api-platform/get-started/create-org).
9519func (r *OrganizationsService) Create(googlecloudapigeev1organization *GoogleCloudApigeeV1Organization) *OrganizationsCreateCall {
9520	c := &OrganizationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9521	c.googlecloudapigeev1organization = googlecloudapigeev1organization
9522	return c
9523}
9524
9525// Parent sets the optional parameter "parent": Required. Name of the
9526// GCP project in which to associate the Apigee organization. Pass the
9527// information as a query parameter using the following structure in
9528// your request: `projects/`
9529func (c *OrganizationsCreateCall) Parent(parent string) *OrganizationsCreateCall {
9530	c.urlParams_.Set("parent", parent)
9531	return c
9532}
9533
9534// Fields allows partial responses to be retrieved. See
9535// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9536// for more information.
9537func (c *OrganizationsCreateCall) Fields(s ...googleapi.Field) *OrganizationsCreateCall {
9538	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9539	return c
9540}
9541
9542// Context sets the context to be used in this call's Do method. Any
9543// pending HTTP request will be aborted if the provided context is
9544// canceled.
9545func (c *OrganizationsCreateCall) Context(ctx context.Context) *OrganizationsCreateCall {
9546	c.ctx_ = ctx
9547	return c
9548}
9549
9550// Header returns an http.Header that can be modified by the caller to
9551// add HTTP headers to the request.
9552func (c *OrganizationsCreateCall) Header() http.Header {
9553	if c.header_ == nil {
9554		c.header_ = make(http.Header)
9555	}
9556	return c.header_
9557}
9558
9559func (c *OrganizationsCreateCall) doRequest(alt string) (*http.Response, error) {
9560	reqHeaders := make(http.Header)
9561	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
9562	for k, v := range c.header_ {
9563		reqHeaders[k] = v
9564	}
9565	reqHeaders.Set("User-Agent", c.s.userAgent())
9566	var body io.Reader = nil
9567	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1organization)
9568	if err != nil {
9569		return nil, err
9570	}
9571	reqHeaders.Set("Content-Type", "application/json")
9572	c.urlParams_.Set("alt", alt)
9573	c.urlParams_.Set("prettyPrint", "false")
9574	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/organizations")
9575	urls += "?" + c.urlParams_.Encode()
9576	req, err := http.NewRequest("POST", urls, body)
9577	if err != nil {
9578		return nil, err
9579	}
9580	req.Header = reqHeaders
9581	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9582}
9583
9584// Do executes the "apigee.organizations.create" call.
9585// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
9586// Any non-2xx status code is an error. Response headers are in either
9587// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
9588// was returned at all) in error.(*googleapi.Error).Header. Use
9589// googleapi.IsNotModified to check whether the returned error was
9590// because http.StatusNotModified was returned.
9591func (c *OrganizationsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
9592	gensupport.SetOptions(c.urlParams_, opts...)
9593	res, err := c.doRequest("json")
9594	if res != nil && res.StatusCode == http.StatusNotModified {
9595		if res.Body != nil {
9596			res.Body.Close()
9597		}
9598		return nil, &googleapi.Error{
9599			Code:   res.StatusCode,
9600			Header: res.Header,
9601		}
9602	}
9603	if err != nil {
9604		return nil, err
9605	}
9606	defer googleapi.CloseBody(res)
9607	if err := googleapi.CheckResponse(res); err != nil {
9608		return nil, err
9609	}
9610	ret := &GoogleLongrunningOperation{
9611		ServerResponse: googleapi.ServerResponse{
9612			Header:         res.Header,
9613			HTTPStatusCode: res.StatusCode,
9614		},
9615	}
9616	target := &ret
9617	if err := gensupport.DecodeResponse(target, res); err != nil {
9618		return nil, err
9619	}
9620	return ret, nil
9621	// {
9622	//   "description": "Creates an Apigee organization. See [Create an Apigee organization](https://cloud.google.com/apigee/docs/api-platform/get-started/create-org).",
9623	//   "flatPath": "v1/organizations",
9624	//   "httpMethod": "POST",
9625	//   "id": "apigee.organizations.create",
9626	//   "parameterOrder": [],
9627	//   "parameters": {
9628	//     "parent": {
9629	//       "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/`",
9630	//       "location": "query",
9631	//       "type": "string"
9632	//     }
9633	//   },
9634	//   "path": "v1/organizations",
9635	//   "request": {
9636	//     "$ref": "GoogleCloudApigeeV1Organization"
9637	//   },
9638	//   "response": {
9639	//     "$ref": "GoogleLongrunningOperation"
9640	//   },
9641	//   "scopes": [
9642	//     "https://www.googleapis.com/auth/cloud-platform"
9643	//   ]
9644	// }
9645
9646}
9647
9648// method id "apigee.organizations.delete":
9649
9650type OrganizationsDeleteCall struct {
9651	s          *Service
9652	name       string
9653	urlParams_ gensupport.URLParams
9654	ctx_       context.Context
9655	header_    http.Header
9656}
9657
9658// Delete: Delete an Apigee organization. Only supported for
9659// SubscriptionType TRIAL.
9660//
9661// - name: Name of the organization. Use the following structure in your
9662//   request: `organizations/{org}`.
9663func (r *OrganizationsService) Delete(name string) *OrganizationsDeleteCall {
9664	c := &OrganizationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9665	c.name = name
9666	return c
9667}
9668
9669// Fields allows partial responses to be retrieved. See
9670// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9671// for more information.
9672func (c *OrganizationsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDeleteCall {
9673	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9674	return c
9675}
9676
9677// Context sets the context to be used in this call's Do method. Any
9678// pending HTTP request will be aborted if the provided context is
9679// canceled.
9680func (c *OrganizationsDeleteCall) Context(ctx context.Context) *OrganizationsDeleteCall {
9681	c.ctx_ = ctx
9682	return c
9683}
9684
9685// Header returns an http.Header that can be modified by the caller to
9686// add HTTP headers to the request.
9687func (c *OrganizationsDeleteCall) Header() http.Header {
9688	if c.header_ == nil {
9689		c.header_ = make(http.Header)
9690	}
9691	return c.header_
9692}
9693
9694func (c *OrganizationsDeleteCall) doRequest(alt string) (*http.Response, error) {
9695	reqHeaders := make(http.Header)
9696	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
9697	for k, v := range c.header_ {
9698		reqHeaders[k] = v
9699	}
9700	reqHeaders.Set("User-Agent", c.s.userAgent())
9701	var body io.Reader = nil
9702	c.urlParams_.Set("alt", alt)
9703	c.urlParams_.Set("prettyPrint", "false")
9704	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
9705	urls += "?" + c.urlParams_.Encode()
9706	req, err := http.NewRequest("DELETE", urls, body)
9707	if err != nil {
9708		return nil, err
9709	}
9710	req.Header = reqHeaders
9711	googleapi.Expand(req.URL, map[string]string{
9712		"name": c.name,
9713	})
9714	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9715}
9716
9717// Do executes the "apigee.organizations.delete" call.
9718// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
9719// Any non-2xx status code is an error. Response headers are in either
9720// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
9721// was returned at all) in error.(*googleapi.Error).Header. Use
9722// googleapi.IsNotModified to check whether the returned error was
9723// because http.StatusNotModified was returned.
9724func (c *OrganizationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
9725	gensupport.SetOptions(c.urlParams_, opts...)
9726	res, err := c.doRequest("json")
9727	if res != nil && res.StatusCode == http.StatusNotModified {
9728		if res.Body != nil {
9729			res.Body.Close()
9730		}
9731		return nil, &googleapi.Error{
9732			Code:   res.StatusCode,
9733			Header: res.Header,
9734		}
9735	}
9736	if err != nil {
9737		return nil, err
9738	}
9739	defer googleapi.CloseBody(res)
9740	if err := googleapi.CheckResponse(res); err != nil {
9741		return nil, err
9742	}
9743	ret := &GoogleLongrunningOperation{
9744		ServerResponse: googleapi.ServerResponse{
9745			Header:         res.Header,
9746			HTTPStatusCode: res.StatusCode,
9747		},
9748	}
9749	target := &ret
9750	if err := gensupport.DecodeResponse(target, res); err != nil {
9751		return nil, err
9752	}
9753	return ret, nil
9754	// {
9755	//   "description": "Delete an Apigee organization. Only supported for SubscriptionType TRIAL.",
9756	//   "flatPath": "v1/organizations/{organizationsId}",
9757	//   "httpMethod": "DELETE",
9758	//   "id": "apigee.organizations.delete",
9759	//   "parameterOrder": [
9760	//     "name"
9761	//   ],
9762	//   "parameters": {
9763	//     "name": {
9764	//       "description": "Required. Name of the organization. Use the following structure in your request: `organizations/{org}`",
9765	//       "location": "path",
9766	//       "pattern": "^organizations/[^/]+$",
9767	//       "required": true,
9768	//       "type": "string"
9769	//     }
9770	//   },
9771	//   "path": "v1/{+name}",
9772	//   "response": {
9773	//     "$ref": "GoogleLongrunningOperation"
9774	//   },
9775	//   "scopes": [
9776	//     "https://www.googleapis.com/auth/cloud-platform"
9777	//   ]
9778	// }
9779
9780}
9781
9782// method id "apigee.organizations.get":
9783
9784type OrganizationsGetCall struct {
9785	s            *Service
9786	name         string
9787	urlParams_   gensupport.URLParams
9788	ifNoneMatch_ string
9789	ctx_         context.Context
9790	header_      http.Header
9791}
9792
9793// Get: Gets the profile for an Apigee organization. See Understanding
9794// organizations
9795// (https://cloud.google.com/apigee/docs/api-platform/fundamentals/organization-structure).
9796//
9797// - name: Apigee organization name in the following format:
9798//   `organizations/{org}`.
9799func (r *OrganizationsService) Get(name string) *OrganizationsGetCall {
9800	c := &OrganizationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9801	c.name = name
9802	return c
9803}
9804
9805// Fields allows partial responses to be retrieved. See
9806// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9807// for more information.
9808func (c *OrganizationsGetCall) Fields(s ...googleapi.Field) *OrganizationsGetCall {
9809	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9810	return c
9811}
9812
9813// IfNoneMatch sets the optional parameter which makes the operation
9814// fail if the object's ETag matches the given value. This is useful for
9815// getting updates only after the object has changed since the last
9816// request. Use googleapi.IsNotModified to check whether the response
9817// error from Do is the result of In-None-Match.
9818func (c *OrganizationsGetCall) IfNoneMatch(entityTag string) *OrganizationsGetCall {
9819	c.ifNoneMatch_ = entityTag
9820	return c
9821}
9822
9823// Context sets the context to be used in this call's Do method. Any
9824// pending HTTP request will be aborted if the provided context is
9825// canceled.
9826func (c *OrganizationsGetCall) Context(ctx context.Context) *OrganizationsGetCall {
9827	c.ctx_ = ctx
9828	return c
9829}
9830
9831// Header returns an http.Header that can be modified by the caller to
9832// add HTTP headers to the request.
9833func (c *OrganizationsGetCall) Header() http.Header {
9834	if c.header_ == nil {
9835		c.header_ = make(http.Header)
9836	}
9837	return c.header_
9838}
9839
9840func (c *OrganizationsGetCall) doRequest(alt string) (*http.Response, error) {
9841	reqHeaders := make(http.Header)
9842	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
9843	for k, v := range c.header_ {
9844		reqHeaders[k] = v
9845	}
9846	reqHeaders.Set("User-Agent", c.s.userAgent())
9847	if c.ifNoneMatch_ != "" {
9848		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9849	}
9850	var body io.Reader = nil
9851	c.urlParams_.Set("alt", alt)
9852	c.urlParams_.Set("prettyPrint", "false")
9853	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
9854	urls += "?" + c.urlParams_.Encode()
9855	req, err := http.NewRequest("GET", urls, body)
9856	if err != nil {
9857		return nil, err
9858	}
9859	req.Header = reqHeaders
9860	googleapi.Expand(req.URL, map[string]string{
9861		"name": c.name,
9862	})
9863	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9864}
9865
9866// Do executes the "apigee.organizations.get" call.
9867// Exactly one of *GoogleCloudApigeeV1Organization or error will be
9868// non-nil. Any non-2xx status code is an error. Response headers are in
9869// either *GoogleCloudApigeeV1Organization.ServerResponse.Header or (if
9870// a response was returned at all) in error.(*googleapi.Error).Header.
9871// Use googleapi.IsNotModified to check whether the returned error was
9872// because http.StatusNotModified was returned.
9873func (c *OrganizationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Organization, error) {
9874	gensupport.SetOptions(c.urlParams_, opts...)
9875	res, err := c.doRequest("json")
9876	if res != nil && res.StatusCode == http.StatusNotModified {
9877		if res.Body != nil {
9878			res.Body.Close()
9879		}
9880		return nil, &googleapi.Error{
9881			Code:   res.StatusCode,
9882			Header: res.Header,
9883		}
9884	}
9885	if err != nil {
9886		return nil, err
9887	}
9888	defer googleapi.CloseBody(res)
9889	if err := googleapi.CheckResponse(res); err != nil {
9890		return nil, err
9891	}
9892	ret := &GoogleCloudApigeeV1Organization{
9893		ServerResponse: googleapi.ServerResponse{
9894			Header:         res.Header,
9895			HTTPStatusCode: res.StatusCode,
9896		},
9897	}
9898	target := &ret
9899	if err := gensupport.DecodeResponse(target, res); err != nil {
9900		return nil, err
9901	}
9902	return ret, nil
9903	// {
9904	//   "description": "Gets the profile for an Apigee organization. See [Understanding organizations](https://cloud.google.com/apigee/docs/api-platform/fundamentals/organization-structure).",
9905	//   "flatPath": "v1/organizations/{organizationsId}",
9906	//   "httpMethod": "GET",
9907	//   "id": "apigee.organizations.get",
9908	//   "parameterOrder": [
9909	//     "name"
9910	//   ],
9911	//   "parameters": {
9912	//     "name": {
9913	//       "description": "Required. Apigee organization name in the following format: `organizations/{org}`",
9914	//       "location": "path",
9915	//       "pattern": "^organizations/[^/]+$",
9916	//       "required": true,
9917	//       "type": "string"
9918	//     }
9919	//   },
9920	//   "path": "v1/{+name}",
9921	//   "response": {
9922	//     "$ref": "GoogleCloudApigeeV1Organization"
9923	//   },
9924	//   "scopes": [
9925	//     "https://www.googleapis.com/auth/cloud-platform"
9926	//   ]
9927	// }
9928
9929}
9930
9931// method id "apigee.organizations.getDeployedIngressConfig":
9932
9933type OrganizationsGetDeployedIngressConfigCall struct {
9934	s            *Service
9935	name         string
9936	urlParams_   gensupport.URLParams
9937	ifNoneMatch_ string
9938	ctx_         context.Context
9939	header_      http.Header
9940}
9941
9942// GetDeployedIngressConfig: Gets the deployed ingress configuration for
9943// an organization.
9944//
9945// - name: Name of the deployed configuration for the organization in
9946//   the following format: 'organizations/{org}/deployedIngressConfig'.
9947func (r *OrganizationsService) GetDeployedIngressConfig(name string) *OrganizationsGetDeployedIngressConfigCall {
9948	c := &OrganizationsGetDeployedIngressConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9949	c.name = name
9950	return c
9951}
9952
9953// View sets the optional parameter "view": When set to FULL, additional
9954// details about the specific deployments receiving traffic will be
9955// included in the IngressConfig response's RoutingRules.
9956//
9957// Possible values:
9958//   "INGRESS_CONFIG_VIEW_UNSPECIFIED" - The default/unset value. The
9959// API will default to the BASIC view.
9960//   "BASIC" - Include all ingress config data necessary for the runtime
9961// to configure ingress, but no more. Routing rules will include only
9962// basepath and destination environment. This the default value.
9963//   "FULL" - Include all ingress config data, including internal debug
9964// info for each routing rule such as the proxy claiming a particular
9965// basepath and when the routing rule first appeared in the env group.
9966func (c *OrganizationsGetDeployedIngressConfigCall) View(view string) *OrganizationsGetDeployedIngressConfigCall {
9967	c.urlParams_.Set("view", view)
9968	return c
9969}
9970
9971// Fields allows partial responses to be retrieved. See
9972// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9973// for more information.
9974func (c *OrganizationsGetDeployedIngressConfigCall) Fields(s ...googleapi.Field) *OrganizationsGetDeployedIngressConfigCall {
9975	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9976	return c
9977}
9978
9979// IfNoneMatch sets the optional parameter which makes the operation
9980// fail if the object's ETag matches the given value. This is useful for
9981// getting updates only after the object has changed since the last
9982// request. Use googleapi.IsNotModified to check whether the response
9983// error from Do is the result of In-None-Match.
9984func (c *OrganizationsGetDeployedIngressConfigCall) IfNoneMatch(entityTag string) *OrganizationsGetDeployedIngressConfigCall {
9985	c.ifNoneMatch_ = entityTag
9986	return c
9987}
9988
9989// Context sets the context to be used in this call's Do method. Any
9990// pending HTTP request will be aborted if the provided context is
9991// canceled.
9992func (c *OrganizationsGetDeployedIngressConfigCall) Context(ctx context.Context) *OrganizationsGetDeployedIngressConfigCall {
9993	c.ctx_ = ctx
9994	return c
9995}
9996
9997// Header returns an http.Header that can be modified by the caller to
9998// add HTTP headers to the request.
9999func (c *OrganizationsGetDeployedIngressConfigCall) Header() http.Header {
10000	if c.header_ == nil {
10001		c.header_ = make(http.Header)
10002	}
10003	return c.header_
10004}
10005
10006func (c *OrganizationsGetDeployedIngressConfigCall) doRequest(alt string) (*http.Response, error) {
10007	reqHeaders := make(http.Header)
10008	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
10009	for k, v := range c.header_ {
10010		reqHeaders[k] = v
10011	}
10012	reqHeaders.Set("User-Agent", c.s.userAgent())
10013	if c.ifNoneMatch_ != "" {
10014		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10015	}
10016	var body io.Reader = nil
10017	c.urlParams_.Set("alt", alt)
10018	c.urlParams_.Set("prettyPrint", "false")
10019	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
10020	urls += "?" + c.urlParams_.Encode()
10021	req, err := http.NewRequest("GET", urls, body)
10022	if err != nil {
10023		return nil, err
10024	}
10025	req.Header = reqHeaders
10026	googleapi.Expand(req.URL, map[string]string{
10027		"name": c.name,
10028	})
10029	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10030}
10031
10032// Do executes the "apigee.organizations.getDeployedIngressConfig" call.
10033// Exactly one of *GoogleCloudApigeeV1IngressConfig or error will be
10034// non-nil. Any non-2xx status code is an error. Response headers are in
10035// either *GoogleCloudApigeeV1IngressConfig.ServerResponse.Header or (if
10036// a response was returned at all) in error.(*googleapi.Error).Header.
10037// Use googleapi.IsNotModified to check whether the returned error was
10038// because http.StatusNotModified was returned.
10039func (c *OrganizationsGetDeployedIngressConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1IngressConfig, error) {
10040	gensupport.SetOptions(c.urlParams_, opts...)
10041	res, err := c.doRequest("json")
10042	if res != nil && res.StatusCode == http.StatusNotModified {
10043		if res.Body != nil {
10044			res.Body.Close()
10045		}
10046		return nil, &googleapi.Error{
10047			Code:   res.StatusCode,
10048			Header: res.Header,
10049		}
10050	}
10051	if err != nil {
10052		return nil, err
10053	}
10054	defer googleapi.CloseBody(res)
10055	if err := googleapi.CheckResponse(res); err != nil {
10056		return nil, err
10057	}
10058	ret := &GoogleCloudApigeeV1IngressConfig{
10059		ServerResponse: googleapi.ServerResponse{
10060			Header:         res.Header,
10061			HTTPStatusCode: res.StatusCode,
10062		},
10063	}
10064	target := &ret
10065	if err := gensupport.DecodeResponse(target, res); err != nil {
10066		return nil, err
10067	}
10068	return ret, nil
10069	// {
10070	//   "description": "Gets the deployed ingress configuration for an organization.",
10071	//   "flatPath": "v1/organizations/{organizationsId}/deployedIngressConfig",
10072	//   "httpMethod": "GET",
10073	//   "id": "apigee.organizations.getDeployedIngressConfig",
10074	//   "parameterOrder": [
10075	//     "name"
10076	//   ],
10077	//   "parameters": {
10078	//     "name": {
10079	//       "description": "Required. Name of the deployed configuration for the organization in the following format: 'organizations/{org}/deployedIngressConfig'.",
10080	//       "location": "path",
10081	//       "pattern": "^organizations/[^/]+/deployedIngressConfig$",
10082	//       "required": true,
10083	//       "type": "string"
10084	//     },
10085	//     "view": {
10086	//       "description": "When set to FULL, additional details about the specific deployments receiving traffic will be included in the IngressConfig response's RoutingRules.",
10087	//       "enum": [
10088	//         "INGRESS_CONFIG_VIEW_UNSPECIFIED",
10089	//         "BASIC",
10090	//         "FULL"
10091	//       ],
10092	//       "enumDescriptions": [
10093	//         "The default/unset value. The API will default to the BASIC view.",
10094	//         "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.",
10095	//         "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."
10096	//       ],
10097	//       "location": "query",
10098	//       "type": "string"
10099	//     }
10100	//   },
10101	//   "path": "v1/{+name}",
10102	//   "response": {
10103	//     "$ref": "GoogleCloudApigeeV1IngressConfig"
10104	//   },
10105	//   "scopes": [
10106	//     "https://www.googleapis.com/auth/cloud-platform"
10107	//   ]
10108	// }
10109
10110}
10111
10112// method id "apigee.organizations.getSyncAuthorization":
10113
10114type OrganizationsGetSyncAuthorizationCall struct {
10115	s                                              *Service
10116	name                                           string
10117	googlecloudapigeev1getsyncauthorizationrequest *GoogleCloudApigeeV1GetSyncAuthorizationRequest
10118	urlParams_                                     gensupport.URLParams
10119	ctx_                                           context.Context
10120	header_                                        http.Header
10121}
10122
10123// GetSyncAuthorization: Lists the service accounts with the permissions
10124// required to allow the Synchronizer to download environment data from
10125// the control plane. An ETag is returned in the response to
10126// `getSyncAuthorization`. Pass that ETag when calling
10127// setSyncAuthorization (setSyncAuthorization) to ensure that you are
10128// updating the correct version. If you don't pass the ETag in the call
10129// to `setSyncAuthorization`, then the existing authorization is
10130// overwritten indiscriminately. For more information, see Configure the
10131// Synchronizer
10132// (https://cloud.google.com/apigee/docs/hybrid/latest/synchronizer-access).
10133// **Note**: Available to Apigee hybrid only.
10134//
10135// - name: Name of the Apigee organization. Use the following structure
10136//   in your request: `organizations/{org}`.
10137func (r *OrganizationsService) GetSyncAuthorization(name string, googlecloudapigeev1getsyncauthorizationrequest *GoogleCloudApigeeV1GetSyncAuthorizationRequest) *OrganizationsGetSyncAuthorizationCall {
10138	c := &OrganizationsGetSyncAuthorizationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10139	c.name = name
10140	c.googlecloudapigeev1getsyncauthorizationrequest = googlecloudapigeev1getsyncauthorizationrequest
10141	return c
10142}
10143
10144// Fields allows partial responses to be retrieved. See
10145// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10146// for more information.
10147func (c *OrganizationsGetSyncAuthorizationCall) Fields(s ...googleapi.Field) *OrganizationsGetSyncAuthorizationCall {
10148	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10149	return c
10150}
10151
10152// Context sets the context to be used in this call's Do method. Any
10153// pending HTTP request will be aborted if the provided context is
10154// canceled.
10155func (c *OrganizationsGetSyncAuthorizationCall) Context(ctx context.Context) *OrganizationsGetSyncAuthorizationCall {
10156	c.ctx_ = ctx
10157	return c
10158}
10159
10160// Header returns an http.Header that can be modified by the caller to
10161// add HTTP headers to the request.
10162func (c *OrganizationsGetSyncAuthorizationCall) Header() http.Header {
10163	if c.header_ == nil {
10164		c.header_ = make(http.Header)
10165	}
10166	return c.header_
10167}
10168
10169func (c *OrganizationsGetSyncAuthorizationCall) doRequest(alt string) (*http.Response, error) {
10170	reqHeaders := make(http.Header)
10171	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
10172	for k, v := range c.header_ {
10173		reqHeaders[k] = v
10174	}
10175	reqHeaders.Set("User-Agent", c.s.userAgent())
10176	var body io.Reader = nil
10177	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1getsyncauthorizationrequest)
10178	if err != nil {
10179		return nil, err
10180	}
10181	reqHeaders.Set("Content-Type", "application/json")
10182	c.urlParams_.Set("alt", alt)
10183	c.urlParams_.Set("prettyPrint", "false")
10184	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:getSyncAuthorization")
10185	urls += "?" + c.urlParams_.Encode()
10186	req, err := http.NewRequest("POST", urls, body)
10187	if err != nil {
10188		return nil, err
10189	}
10190	req.Header = reqHeaders
10191	googleapi.Expand(req.URL, map[string]string{
10192		"name": c.name,
10193	})
10194	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10195}
10196
10197// Do executes the "apigee.organizations.getSyncAuthorization" call.
10198// Exactly one of *GoogleCloudApigeeV1SyncAuthorization or error will be
10199// non-nil. Any non-2xx status code is an error. Response headers are in
10200// either *GoogleCloudApigeeV1SyncAuthorization.ServerResponse.Header or
10201// (if a response was returned at all) in
10202// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
10203// whether the returned error was because http.StatusNotModified was
10204// returned.
10205func (c *OrganizationsGetSyncAuthorizationCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SyncAuthorization, error) {
10206	gensupport.SetOptions(c.urlParams_, opts...)
10207	res, err := c.doRequest("json")
10208	if res != nil && res.StatusCode == http.StatusNotModified {
10209		if res.Body != nil {
10210			res.Body.Close()
10211		}
10212		return nil, &googleapi.Error{
10213			Code:   res.StatusCode,
10214			Header: res.Header,
10215		}
10216	}
10217	if err != nil {
10218		return nil, err
10219	}
10220	defer googleapi.CloseBody(res)
10221	if err := googleapi.CheckResponse(res); err != nil {
10222		return nil, err
10223	}
10224	ret := &GoogleCloudApigeeV1SyncAuthorization{
10225		ServerResponse: googleapi.ServerResponse{
10226			Header:         res.Header,
10227			HTTPStatusCode: res.StatusCode,
10228		},
10229	}
10230	target := &ret
10231	if err := gensupport.DecodeResponse(target, res); err != nil {
10232		return nil, err
10233	}
10234	return ret, nil
10235	// {
10236	//   "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.",
10237	//   "flatPath": "v1/organizations/{organizationsId}:getSyncAuthorization",
10238	//   "httpMethod": "POST",
10239	//   "id": "apigee.organizations.getSyncAuthorization",
10240	//   "parameterOrder": [
10241	//     "name"
10242	//   ],
10243	//   "parameters": {
10244	//     "name": {
10245	//       "description": "Required. Name of the Apigee organization. Use the following structure in your request: `organizations/{org}`",
10246	//       "location": "path",
10247	//       "pattern": "^organizations/[^/]+$",
10248	//       "required": true,
10249	//       "type": "string"
10250	//     }
10251	//   },
10252	//   "path": "v1/{+name}:getSyncAuthorization",
10253	//   "request": {
10254	//     "$ref": "GoogleCloudApigeeV1GetSyncAuthorizationRequest"
10255	//   },
10256	//   "response": {
10257	//     "$ref": "GoogleCloudApigeeV1SyncAuthorization"
10258	//   },
10259	//   "scopes": [
10260	//     "https://www.googleapis.com/auth/cloud-platform"
10261	//   ]
10262	// }
10263
10264}
10265
10266// method id "apigee.organizations.list":
10267
10268type OrganizationsListCall struct {
10269	s            *Service
10270	parent       string
10271	urlParams_   gensupport.URLParams
10272	ifNoneMatch_ string
10273	ctx_         context.Context
10274	header_      http.Header
10275}
10276
10277// List: Lists the Apigee organizations and associated GCP projects that
10278// you have permission to access. See Understanding organizations
10279// (https://cloud.google.com/apigee/docs/api-platform/fundamentals/organization-structure).
10280//
10281// - parent: Use the following structure in your request:
10282//   `organizations`.
10283func (r *OrganizationsService) List(parent string) *OrganizationsListCall {
10284	c := &OrganizationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10285	c.parent = parent
10286	return c
10287}
10288
10289// Fields allows partial responses to be retrieved. See
10290// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10291// for more information.
10292func (c *OrganizationsListCall) Fields(s ...googleapi.Field) *OrganizationsListCall {
10293	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10294	return c
10295}
10296
10297// IfNoneMatch sets the optional parameter which makes the operation
10298// fail if the object's ETag matches the given value. This is useful for
10299// getting updates only after the object has changed since the last
10300// request. Use googleapi.IsNotModified to check whether the response
10301// error from Do is the result of In-None-Match.
10302func (c *OrganizationsListCall) IfNoneMatch(entityTag string) *OrganizationsListCall {
10303	c.ifNoneMatch_ = entityTag
10304	return c
10305}
10306
10307// Context sets the context to be used in this call's Do method. Any
10308// pending HTTP request will be aborted if the provided context is
10309// canceled.
10310func (c *OrganizationsListCall) Context(ctx context.Context) *OrganizationsListCall {
10311	c.ctx_ = ctx
10312	return c
10313}
10314
10315// Header returns an http.Header that can be modified by the caller to
10316// add HTTP headers to the request.
10317func (c *OrganizationsListCall) Header() http.Header {
10318	if c.header_ == nil {
10319		c.header_ = make(http.Header)
10320	}
10321	return c.header_
10322}
10323
10324func (c *OrganizationsListCall) doRequest(alt string) (*http.Response, error) {
10325	reqHeaders := make(http.Header)
10326	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
10327	for k, v := range c.header_ {
10328		reqHeaders[k] = v
10329	}
10330	reqHeaders.Set("User-Agent", c.s.userAgent())
10331	if c.ifNoneMatch_ != "" {
10332		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10333	}
10334	var body io.Reader = nil
10335	c.urlParams_.Set("alt", alt)
10336	c.urlParams_.Set("prettyPrint", "false")
10337	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}")
10338	urls += "?" + c.urlParams_.Encode()
10339	req, err := http.NewRequest("GET", urls, body)
10340	if err != nil {
10341		return nil, err
10342	}
10343	req.Header = reqHeaders
10344	googleapi.Expand(req.URL, map[string]string{
10345		"parent": c.parent,
10346	})
10347	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10348}
10349
10350// Do executes the "apigee.organizations.list" call.
10351// Exactly one of *GoogleCloudApigeeV1ListOrganizationsResponse or error
10352// will be non-nil. Any non-2xx status code is an error. Response
10353// headers are in either
10354// *GoogleCloudApigeeV1ListOrganizationsResponse.ServerResponse.Header
10355// or (if a response was returned at all) in
10356// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
10357// whether the returned error was because http.StatusNotModified was
10358// returned.
10359func (c *OrganizationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListOrganizationsResponse, error) {
10360	gensupport.SetOptions(c.urlParams_, opts...)
10361	res, err := c.doRequest("json")
10362	if res != nil && res.StatusCode == http.StatusNotModified {
10363		if res.Body != nil {
10364			res.Body.Close()
10365		}
10366		return nil, &googleapi.Error{
10367			Code:   res.StatusCode,
10368			Header: res.Header,
10369		}
10370	}
10371	if err != nil {
10372		return nil, err
10373	}
10374	defer googleapi.CloseBody(res)
10375	if err := googleapi.CheckResponse(res); err != nil {
10376		return nil, err
10377	}
10378	ret := &GoogleCloudApigeeV1ListOrganizationsResponse{
10379		ServerResponse: googleapi.ServerResponse{
10380			Header:         res.Header,
10381			HTTPStatusCode: res.StatusCode,
10382		},
10383	}
10384	target := &ret
10385	if err := gensupport.DecodeResponse(target, res); err != nil {
10386		return nil, err
10387	}
10388	return ret, nil
10389	// {
10390	//   "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).",
10391	//   "flatPath": "v1/organizations",
10392	//   "httpMethod": "GET",
10393	//   "id": "apigee.organizations.list",
10394	//   "parameterOrder": [
10395	//     "parent"
10396	//   ],
10397	//   "parameters": {
10398	//     "parent": {
10399	//       "description": "Required. Use the following structure in your request: `organizations`",
10400	//       "location": "path",
10401	//       "pattern": "^organizations$",
10402	//       "required": true,
10403	//       "type": "string"
10404	//     }
10405	//   },
10406	//   "path": "v1/{+parent}",
10407	//   "response": {
10408	//     "$ref": "GoogleCloudApigeeV1ListOrganizationsResponse"
10409	//   },
10410	//   "scopes": [
10411	//     "https://www.googleapis.com/auth/cloud-platform"
10412	//   ]
10413	// }
10414
10415}
10416
10417// method id "apigee.organizations.setAddons":
10418
10419type OrganizationsSetAddonsCall struct {
10420	s                                   *Service
10421	org                                 string
10422	googlecloudapigeev1setaddonsrequest *GoogleCloudApigeeV1SetAddonsRequest
10423	urlParams_                          gensupport.URLParams
10424	ctx_                                context.Context
10425	header_                             http.Header
10426}
10427
10428// SetAddons: Configures the add-ons for the Apigee organization. The
10429// existing add-on configuration will be fully replaced.
10430//
10431// - org: Name of the organization. Use the following structure in your
10432//   request: `organizations/{org}`.
10433func (r *OrganizationsService) SetAddons(org string, googlecloudapigeev1setaddonsrequest *GoogleCloudApigeeV1SetAddonsRequest) *OrganizationsSetAddonsCall {
10434	c := &OrganizationsSetAddonsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10435	c.org = org
10436	c.googlecloudapigeev1setaddonsrequest = googlecloudapigeev1setaddonsrequest
10437	return c
10438}
10439
10440// Fields allows partial responses to be retrieved. See
10441// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10442// for more information.
10443func (c *OrganizationsSetAddonsCall) Fields(s ...googleapi.Field) *OrganizationsSetAddonsCall {
10444	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10445	return c
10446}
10447
10448// Context sets the context to be used in this call's Do method. Any
10449// pending HTTP request will be aborted if the provided context is
10450// canceled.
10451func (c *OrganizationsSetAddonsCall) Context(ctx context.Context) *OrganizationsSetAddonsCall {
10452	c.ctx_ = ctx
10453	return c
10454}
10455
10456// Header returns an http.Header that can be modified by the caller to
10457// add HTTP headers to the request.
10458func (c *OrganizationsSetAddonsCall) Header() http.Header {
10459	if c.header_ == nil {
10460		c.header_ = make(http.Header)
10461	}
10462	return c.header_
10463}
10464
10465func (c *OrganizationsSetAddonsCall) doRequest(alt string) (*http.Response, error) {
10466	reqHeaders := make(http.Header)
10467	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
10468	for k, v := range c.header_ {
10469		reqHeaders[k] = v
10470	}
10471	reqHeaders.Set("User-Agent", c.s.userAgent())
10472	var body io.Reader = nil
10473	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1setaddonsrequest)
10474	if err != nil {
10475		return nil, err
10476	}
10477	reqHeaders.Set("Content-Type", "application/json")
10478	c.urlParams_.Set("alt", alt)
10479	c.urlParams_.Set("prettyPrint", "false")
10480	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+org}:setAddons")
10481	urls += "?" + c.urlParams_.Encode()
10482	req, err := http.NewRequest("POST", urls, body)
10483	if err != nil {
10484		return nil, err
10485	}
10486	req.Header = reqHeaders
10487	googleapi.Expand(req.URL, map[string]string{
10488		"org": c.org,
10489	})
10490	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10491}
10492
10493// Do executes the "apigee.organizations.setAddons" call.
10494// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
10495// Any non-2xx status code is an error. Response headers are in either
10496// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
10497// was returned at all) in error.(*googleapi.Error).Header. Use
10498// googleapi.IsNotModified to check whether the returned error was
10499// because http.StatusNotModified was returned.
10500func (c *OrganizationsSetAddonsCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
10501	gensupport.SetOptions(c.urlParams_, opts...)
10502	res, err := c.doRequest("json")
10503	if res != nil && res.StatusCode == http.StatusNotModified {
10504		if res.Body != nil {
10505			res.Body.Close()
10506		}
10507		return nil, &googleapi.Error{
10508			Code:   res.StatusCode,
10509			Header: res.Header,
10510		}
10511	}
10512	if err != nil {
10513		return nil, err
10514	}
10515	defer googleapi.CloseBody(res)
10516	if err := googleapi.CheckResponse(res); err != nil {
10517		return nil, err
10518	}
10519	ret := &GoogleLongrunningOperation{
10520		ServerResponse: googleapi.ServerResponse{
10521			Header:         res.Header,
10522			HTTPStatusCode: res.StatusCode,
10523		},
10524	}
10525	target := &ret
10526	if err := gensupport.DecodeResponse(target, res); err != nil {
10527		return nil, err
10528	}
10529	return ret, nil
10530	// {
10531	//   "description": "Configures the add-ons for the Apigee organization. The existing add-on configuration will be fully replaced.",
10532	//   "flatPath": "v1/organizations/{organizationsId}:setAddons",
10533	//   "httpMethod": "POST",
10534	//   "id": "apigee.organizations.setAddons",
10535	//   "parameterOrder": [
10536	//     "org"
10537	//   ],
10538	//   "parameters": {
10539	//     "org": {
10540	//       "description": "Required. Name of the organization. Use the following structure in your request: `organizations/{org}`",
10541	//       "location": "path",
10542	//       "pattern": "^organizations/[^/]+$",
10543	//       "required": true,
10544	//       "type": "string"
10545	//     }
10546	//   },
10547	//   "path": "v1/{+org}:setAddons",
10548	//   "request": {
10549	//     "$ref": "GoogleCloudApigeeV1SetAddonsRequest"
10550	//   },
10551	//   "response": {
10552	//     "$ref": "GoogleLongrunningOperation"
10553	//   },
10554	//   "scopes": [
10555	//     "https://www.googleapis.com/auth/cloud-platform"
10556	//   ]
10557	// }
10558
10559}
10560
10561// method id "apigee.organizations.setSyncAuthorization":
10562
10563type OrganizationsSetSyncAuthorizationCall struct {
10564	s                                    *Service
10565	name                                 string
10566	googlecloudapigeev1syncauthorization *GoogleCloudApigeeV1SyncAuthorization
10567	urlParams_                           gensupport.URLParams
10568	ctx_                                 context.Context
10569	header_                              http.Header
10570}
10571
10572// SetSyncAuthorization: Sets the permissions required to allow the
10573// Synchronizer to download environment data from the control plane. You
10574// must call this API to enable proper functioning of hybrid. Pass the
10575// ETag when calling `setSyncAuthorization` to ensure that you are
10576// updating the correct version. To get an ETag, call
10577// getSyncAuthorization (getSyncAuthorization). If you don't pass the
10578// ETag in the call to `setSyncAuthorization`, then the existing
10579// authorization is overwritten indiscriminately. For more information,
10580// see Configure the Synchronizer
10581// (https://cloud.google.com/apigee/docs/hybrid/latest/synchronizer-access).
10582// **Note**: Available to Apigee hybrid only.
10583//
10584// - name: Name of the Apigee organization. Use the following structure
10585//   in your request: `organizations/{org}`.
10586func (r *OrganizationsService) SetSyncAuthorization(name string, googlecloudapigeev1syncauthorization *GoogleCloudApigeeV1SyncAuthorization) *OrganizationsSetSyncAuthorizationCall {
10587	c := &OrganizationsSetSyncAuthorizationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10588	c.name = name
10589	c.googlecloudapigeev1syncauthorization = googlecloudapigeev1syncauthorization
10590	return c
10591}
10592
10593// Fields allows partial responses to be retrieved. See
10594// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10595// for more information.
10596func (c *OrganizationsSetSyncAuthorizationCall) Fields(s ...googleapi.Field) *OrganizationsSetSyncAuthorizationCall {
10597	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10598	return c
10599}
10600
10601// Context sets the context to be used in this call's Do method. Any
10602// pending HTTP request will be aborted if the provided context is
10603// canceled.
10604func (c *OrganizationsSetSyncAuthorizationCall) Context(ctx context.Context) *OrganizationsSetSyncAuthorizationCall {
10605	c.ctx_ = ctx
10606	return c
10607}
10608
10609// Header returns an http.Header that can be modified by the caller to
10610// add HTTP headers to the request.
10611func (c *OrganizationsSetSyncAuthorizationCall) Header() http.Header {
10612	if c.header_ == nil {
10613		c.header_ = make(http.Header)
10614	}
10615	return c.header_
10616}
10617
10618func (c *OrganizationsSetSyncAuthorizationCall) doRequest(alt string) (*http.Response, error) {
10619	reqHeaders := make(http.Header)
10620	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
10621	for k, v := range c.header_ {
10622		reqHeaders[k] = v
10623	}
10624	reqHeaders.Set("User-Agent", c.s.userAgent())
10625	var body io.Reader = nil
10626	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1syncauthorization)
10627	if err != nil {
10628		return nil, err
10629	}
10630	reqHeaders.Set("Content-Type", "application/json")
10631	c.urlParams_.Set("alt", alt)
10632	c.urlParams_.Set("prettyPrint", "false")
10633	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:setSyncAuthorization")
10634	urls += "?" + c.urlParams_.Encode()
10635	req, err := http.NewRequest("POST", urls, body)
10636	if err != nil {
10637		return nil, err
10638	}
10639	req.Header = reqHeaders
10640	googleapi.Expand(req.URL, map[string]string{
10641		"name": c.name,
10642	})
10643	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10644}
10645
10646// Do executes the "apigee.organizations.setSyncAuthorization" call.
10647// Exactly one of *GoogleCloudApigeeV1SyncAuthorization or error will be
10648// non-nil. Any non-2xx status code is an error. Response headers are in
10649// either *GoogleCloudApigeeV1SyncAuthorization.ServerResponse.Header or
10650// (if a response was returned at all) in
10651// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
10652// whether the returned error was because http.StatusNotModified was
10653// returned.
10654func (c *OrganizationsSetSyncAuthorizationCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SyncAuthorization, error) {
10655	gensupport.SetOptions(c.urlParams_, opts...)
10656	res, err := c.doRequest("json")
10657	if res != nil && res.StatusCode == http.StatusNotModified {
10658		if res.Body != nil {
10659			res.Body.Close()
10660		}
10661		return nil, &googleapi.Error{
10662			Code:   res.StatusCode,
10663			Header: res.Header,
10664		}
10665	}
10666	if err != nil {
10667		return nil, err
10668	}
10669	defer googleapi.CloseBody(res)
10670	if err := googleapi.CheckResponse(res); err != nil {
10671		return nil, err
10672	}
10673	ret := &GoogleCloudApigeeV1SyncAuthorization{
10674		ServerResponse: googleapi.ServerResponse{
10675			Header:         res.Header,
10676			HTTPStatusCode: res.StatusCode,
10677		},
10678	}
10679	target := &ret
10680	if err := gensupport.DecodeResponse(target, res); err != nil {
10681		return nil, err
10682	}
10683	return ret, nil
10684	// {
10685	//   "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.",
10686	//   "flatPath": "v1/organizations/{organizationsId}:setSyncAuthorization",
10687	//   "httpMethod": "POST",
10688	//   "id": "apigee.organizations.setSyncAuthorization",
10689	//   "parameterOrder": [
10690	//     "name"
10691	//   ],
10692	//   "parameters": {
10693	//     "name": {
10694	//       "description": "Required. Name of the Apigee organization. Use the following structure in your request: `organizations/{org}`",
10695	//       "location": "path",
10696	//       "pattern": "^organizations/[^/]+$",
10697	//       "required": true,
10698	//       "type": "string"
10699	//     }
10700	//   },
10701	//   "path": "v1/{+name}:setSyncAuthorization",
10702	//   "request": {
10703	//     "$ref": "GoogleCloudApigeeV1SyncAuthorization"
10704	//   },
10705	//   "response": {
10706	//     "$ref": "GoogleCloudApigeeV1SyncAuthorization"
10707	//   },
10708	//   "scopes": [
10709	//     "https://www.googleapis.com/auth/cloud-platform"
10710	//   ]
10711	// }
10712
10713}
10714
10715// method id "apigee.organizations.update":
10716
10717type OrganizationsUpdateCall struct {
10718	s                               *Service
10719	name                            string
10720	googlecloudapigeev1organization *GoogleCloudApigeeV1Organization
10721	urlParams_                      gensupport.URLParams
10722	ctx_                            context.Context
10723	header_                         http.Header
10724}
10725
10726// Update: Updates the properties for an Apigee organization. No other
10727// fields in the organization profile will be updated.
10728//
10729// - name: Apigee organization name in the following format:
10730//   `organizations/{org}`.
10731func (r *OrganizationsService) Update(name string, googlecloudapigeev1organization *GoogleCloudApigeeV1Organization) *OrganizationsUpdateCall {
10732	c := &OrganizationsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10733	c.name = name
10734	c.googlecloudapigeev1organization = googlecloudapigeev1organization
10735	return c
10736}
10737
10738// Fields allows partial responses to be retrieved. See
10739// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10740// for more information.
10741func (c *OrganizationsUpdateCall) Fields(s ...googleapi.Field) *OrganizationsUpdateCall {
10742	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10743	return c
10744}
10745
10746// Context sets the context to be used in this call's Do method. Any
10747// pending HTTP request will be aborted if the provided context is
10748// canceled.
10749func (c *OrganizationsUpdateCall) Context(ctx context.Context) *OrganizationsUpdateCall {
10750	c.ctx_ = ctx
10751	return c
10752}
10753
10754// Header returns an http.Header that can be modified by the caller to
10755// add HTTP headers to the request.
10756func (c *OrganizationsUpdateCall) Header() http.Header {
10757	if c.header_ == nil {
10758		c.header_ = make(http.Header)
10759	}
10760	return c.header_
10761}
10762
10763func (c *OrganizationsUpdateCall) doRequest(alt string) (*http.Response, error) {
10764	reqHeaders := make(http.Header)
10765	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
10766	for k, v := range c.header_ {
10767		reqHeaders[k] = v
10768	}
10769	reqHeaders.Set("User-Agent", c.s.userAgent())
10770	var body io.Reader = nil
10771	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1organization)
10772	if err != nil {
10773		return nil, err
10774	}
10775	reqHeaders.Set("Content-Type", "application/json")
10776	c.urlParams_.Set("alt", alt)
10777	c.urlParams_.Set("prettyPrint", "false")
10778	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
10779	urls += "?" + c.urlParams_.Encode()
10780	req, err := http.NewRequest("PUT", urls, body)
10781	if err != nil {
10782		return nil, err
10783	}
10784	req.Header = reqHeaders
10785	googleapi.Expand(req.URL, map[string]string{
10786		"name": c.name,
10787	})
10788	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10789}
10790
10791// Do executes the "apigee.organizations.update" call.
10792// Exactly one of *GoogleCloudApigeeV1Organization or error will be
10793// non-nil. Any non-2xx status code is an error. Response headers are in
10794// either *GoogleCloudApigeeV1Organization.ServerResponse.Header or (if
10795// a response was returned at all) in error.(*googleapi.Error).Header.
10796// Use googleapi.IsNotModified to check whether the returned error was
10797// because http.StatusNotModified was returned.
10798func (c *OrganizationsUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Organization, error) {
10799	gensupport.SetOptions(c.urlParams_, opts...)
10800	res, err := c.doRequest("json")
10801	if res != nil && res.StatusCode == http.StatusNotModified {
10802		if res.Body != nil {
10803			res.Body.Close()
10804		}
10805		return nil, &googleapi.Error{
10806			Code:   res.StatusCode,
10807			Header: res.Header,
10808		}
10809	}
10810	if err != nil {
10811		return nil, err
10812	}
10813	defer googleapi.CloseBody(res)
10814	if err := googleapi.CheckResponse(res); err != nil {
10815		return nil, err
10816	}
10817	ret := &GoogleCloudApigeeV1Organization{
10818		ServerResponse: googleapi.ServerResponse{
10819			Header:         res.Header,
10820			HTTPStatusCode: res.StatusCode,
10821		},
10822	}
10823	target := &ret
10824	if err := gensupport.DecodeResponse(target, res); err != nil {
10825		return nil, err
10826	}
10827	return ret, nil
10828	// {
10829	//   "description": "Updates the properties for an Apigee organization. No other fields in the organization profile will be updated.",
10830	//   "flatPath": "v1/organizations/{organizationsId}",
10831	//   "httpMethod": "PUT",
10832	//   "id": "apigee.organizations.update",
10833	//   "parameterOrder": [
10834	//     "name"
10835	//   ],
10836	//   "parameters": {
10837	//     "name": {
10838	//       "description": "Required. Apigee organization name in the following format: `organizations/{org}`",
10839	//       "location": "path",
10840	//       "pattern": "^organizations/[^/]+$",
10841	//       "required": true,
10842	//       "type": "string"
10843	//     }
10844	//   },
10845	//   "path": "v1/{+name}",
10846	//   "request": {
10847	//     "$ref": "GoogleCloudApigeeV1Organization"
10848	//   },
10849	//   "response": {
10850	//     "$ref": "GoogleCloudApigeeV1Organization"
10851	//   },
10852	//   "scopes": [
10853	//     "https://www.googleapis.com/auth/cloud-platform"
10854	//   ]
10855	// }
10856
10857}
10858
10859// method id "apigee.organizations.analytics.datastores.create":
10860
10861type OrganizationsAnalyticsDatastoresCreateCall struct {
10862	s                            *Service
10863	parent                       string
10864	googlecloudapigeev1datastore *GoogleCloudApigeeV1Datastore
10865	urlParams_                   gensupport.URLParams
10866	ctx_                         context.Context
10867	header_                      http.Header
10868}
10869
10870// Create: Create a Datastore for an org
10871//
10872// - parent: The parent organization name. Must be of the form
10873//   `organizations/{org}`.
10874func (r *OrganizationsAnalyticsDatastoresService) Create(parent string, googlecloudapigeev1datastore *GoogleCloudApigeeV1Datastore) *OrganizationsAnalyticsDatastoresCreateCall {
10875	c := &OrganizationsAnalyticsDatastoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10876	c.parent = parent
10877	c.googlecloudapigeev1datastore = googlecloudapigeev1datastore
10878	return c
10879}
10880
10881// Fields allows partial responses to be retrieved. See
10882// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10883// for more information.
10884func (c *OrganizationsAnalyticsDatastoresCreateCall) Fields(s ...googleapi.Field) *OrganizationsAnalyticsDatastoresCreateCall {
10885	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10886	return c
10887}
10888
10889// Context sets the context to be used in this call's Do method. Any
10890// pending HTTP request will be aborted if the provided context is
10891// canceled.
10892func (c *OrganizationsAnalyticsDatastoresCreateCall) Context(ctx context.Context) *OrganizationsAnalyticsDatastoresCreateCall {
10893	c.ctx_ = ctx
10894	return c
10895}
10896
10897// Header returns an http.Header that can be modified by the caller to
10898// add HTTP headers to the request.
10899func (c *OrganizationsAnalyticsDatastoresCreateCall) Header() http.Header {
10900	if c.header_ == nil {
10901		c.header_ = make(http.Header)
10902	}
10903	return c.header_
10904}
10905
10906func (c *OrganizationsAnalyticsDatastoresCreateCall) doRequest(alt string) (*http.Response, error) {
10907	reqHeaders := make(http.Header)
10908	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
10909	for k, v := range c.header_ {
10910		reqHeaders[k] = v
10911	}
10912	reqHeaders.Set("User-Agent", c.s.userAgent())
10913	var body io.Reader = nil
10914	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1datastore)
10915	if err != nil {
10916		return nil, err
10917	}
10918	reqHeaders.Set("Content-Type", "application/json")
10919	c.urlParams_.Set("alt", alt)
10920	c.urlParams_.Set("prettyPrint", "false")
10921	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/analytics/datastores")
10922	urls += "?" + c.urlParams_.Encode()
10923	req, err := http.NewRequest("POST", urls, body)
10924	if err != nil {
10925		return nil, err
10926	}
10927	req.Header = reqHeaders
10928	googleapi.Expand(req.URL, map[string]string{
10929		"parent": c.parent,
10930	})
10931	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10932}
10933
10934// Do executes the "apigee.organizations.analytics.datastores.create" call.
10935// Exactly one of *GoogleCloudApigeeV1Datastore or error will be
10936// non-nil. Any non-2xx status code is an error. Response headers are in
10937// either *GoogleCloudApigeeV1Datastore.ServerResponse.Header or (if a
10938// response was returned at all) in error.(*googleapi.Error).Header. Use
10939// googleapi.IsNotModified to check whether the returned error was
10940// because http.StatusNotModified was returned.
10941func (c *OrganizationsAnalyticsDatastoresCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Datastore, error) {
10942	gensupport.SetOptions(c.urlParams_, opts...)
10943	res, err := c.doRequest("json")
10944	if res != nil && res.StatusCode == http.StatusNotModified {
10945		if res.Body != nil {
10946			res.Body.Close()
10947		}
10948		return nil, &googleapi.Error{
10949			Code:   res.StatusCode,
10950			Header: res.Header,
10951		}
10952	}
10953	if err != nil {
10954		return nil, err
10955	}
10956	defer googleapi.CloseBody(res)
10957	if err := googleapi.CheckResponse(res); err != nil {
10958		return nil, err
10959	}
10960	ret := &GoogleCloudApigeeV1Datastore{
10961		ServerResponse: googleapi.ServerResponse{
10962			Header:         res.Header,
10963			HTTPStatusCode: res.StatusCode,
10964		},
10965	}
10966	target := &ret
10967	if err := gensupport.DecodeResponse(target, res); err != nil {
10968		return nil, err
10969	}
10970	return ret, nil
10971	// {
10972	//   "description": "Create a Datastore for an org",
10973	//   "flatPath": "v1/organizations/{organizationsId}/analytics/datastores",
10974	//   "httpMethod": "POST",
10975	//   "id": "apigee.organizations.analytics.datastores.create",
10976	//   "parameterOrder": [
10977	//     "parent"
10978	//   ],
10979	//   "parameters": {
10980	//     "parent": {
10981	//       "description": "Required. The parent organization name. Must be of the form `organizations/{org}`.",
10982	//       "location": "path",
10983	//       "pattern": "^organizations/[^/]+$",
10984	//       "required": true,
10985	//       "type": "string"
10986	//     }
10987	//   },
10988	//   "path": "v1/{+parent}/analytics/datastores",
10989	//   "request": {
10990	//     "$ref": "GoogleCloudApigeeV1Datastore"
10991	//   },
10992	//   "response": {
10993	//     "$ref": "GoogleCloudApigeeV1Datastore"
10994	//   },
10995	//   "scopes": [
10996	//     "https://www.googleapis.com/auth/cloud-platform"
10997	//   ]
10998	// }
10999
11000}
11001
11002// method id "apigee.organizations.analytics.datastores.delete":
11003
11004type OrganizationsAnalyticsDatastoresDeleteCall struct {
11005	s          *Service
11006	name       string
11007	urlParams_ gensupport.URLParams
11008	ctx_       context.Context
11009	header_    http.Header
11010}
11011
11012// Delete: Delete a Datastore from an org.
11013//
11014// - name: Resource name of the Datastore to be deleted. Must be of the
11015//   form `organizations/{org}/analytics/datastores/{datastoreId}`.
11016func (r *OrganizationsAnalyticsDatastoresService) Delete(name string) *OrganizationsAnalyticsDatastoresDeleteCall {
11017	c := &OrganizationsAnalyticsDatastoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11018	c.name = name
11019	return c
11020}
11021
11022// Fields allows partial responses to be retrieved. See
11023// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11024// for more information.
11025func (c *OrganizationsAnalyticsDatastoresDeleteCall) Fields(s ...googleapi.Field) *OrganizationsAnalyticsDatastoresDeleteCall {
11026	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11027	return c
11028}
11029
11030// Context sets the context to be used in this call's Do method. Any
11031// pending HTTP request will be aborted if the provided context is
11032// canceled.
11033func (c *OrganizationsAnalyticsDatastoresDeleteCall) Context(ctx context.Context) *OrganizationsAnalyticsDatastoresDeleteCall {
11034	c.ctx_ = ctx
11035	return c
11036}
11037
11038// Header returns an http.Header that can be modified by the caller to
11039// add HTTP headers to the request.
11040func (c *OrganizationsAnalyticsDatastoresDeleteCall) Header() http.Header {
11041	if c.header_ == nil {
11042		c.header_ = make(http.Header)
11043	}
11044	return c.header_
11045}
11046
11047func (c *OrganizationsAnalyticsDatastoresDeleteCall) doRequest(alt string) (*http.Response, error) {
11048	reqHeaders := make(http.Header)
11049	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
11050	for k, v := range c.header_ {
11051		reqHeaders[k] = v
11052	}
11053	reqHeaders.Set("User-Agent", c.s.userAgent())
11054	var body io.Reader = nil
11055	c.urlParams_.Set("alt", alt)
11056	c.urlParams_.Set("prettyPrint", "false")
11057	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
11058	urls += "?" + c.urlParams_.Encode()
11059	req, err := http.NewRequest("DELETE", urls, body)
11060	if err != nil {
11061		return nil, err
11062	}
11063	req.Header = reqHeaders
11064	googleapi.Expand(req.URL, map[string]string{
11065		"name": c.name,
11066	})
11067	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11068}
11069
11070// Do executes the "apigee.organizations.analytics.datastores.delete" call.
11071// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
11072// non-2xx status code is an error. Response headers are in either
11073// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
11074// returned at all) in error.(*googleapi.Error).Header. Use
11075// googleapi.IsNotModified to check whether the returned error was
11076// because http.StatusNotModified was returned.
11077func (c *OrganizationsAnalyticsDatastoresDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
11078	gensupport.SetOptions(c.urlParams_, opts...)
11079	res, err := c.doRequest("json")
11080	if res != nil && res.StatusCode == http.StatusNotModified {
11081		if res.Body != nil {
11082			res.Body.Close()
11083		}
11084		return nil, &googleapi.Error{
11085			Code:   res.StatusCode,
11086			Header: res.Header,
11087		}
11088	}
11089	if err != nil {
11090		return nil, err
11091	}
11092	defer googleapi.CloseBody(res)
11093	if err := googleapi.CheckResponse(res); err != nil {
11094		return nil, err
11095	}
11096	ret := &GoogleProtobufEmpty{
11097		ServerResponse: googleapi.ServerResponse{
11098			Header:         res.Header,
11099			HTTPStatusCode: res.StatusCode,
11100		},
11101	}
11102	target := &ret
11103	if err := gensupport.DecodeResponse(target, res); err != nil {
11104		return nil, err
11105	}
11106	return ret, nil
11107	// {
11108	//   "description": "Delete a Datastore from an org.",
11109	//   "flatPath": "v1/organizations/{organizationsId}/analytics/datastores/{datastoresId}",
11110	//   "httpMethod": "DELETE",
11111	//   "id": "apigee.organizations.analytics.datastores.delete",
11112	//   "parameterOrder": [
11113	//     "name"
11114	//   ],
11115	//   "parameters": {
11116	//     "name": {
11117	//       "description": "Required. Resource name of the Datastore to be deleted. Must be of the form `organizations/{org}/analytics/datastores/{datastoreId}`",
11118	//       "location": "path",
11119	//       "pattern": "^organizations/[^/]+/analytics/datastores/[^/]+$",
11120	//       "required": true,
11121	//       "type": "string"
11122	//     }
11123	//   },
11124	//   "path": "v1/{+name}",
11125	//   "response": {
11126	//     "$ref": "GoogleProtobufEmpty"
11127	//   },
11128	//   "scopes": [
11129	//     "https://www.googleapis.com/auth/cloud-platform"
11130	//   ]
11131	// }
11132
11133}
11134
11135// method id "apigee.organizations.analytics.datastores.get":
11136
11137type OrganizationsAnalyticsDatastoresGetCall struct {
11138	s            *Service
11139	name         string
11140	urlParams_   gensupport.URLParams
11141	ifNoneMatch_ string
11142	ctx_         context.Context
11143	header_      http.Header
11144}
11145
11146// Get: Get a Datastore
11147//
11148// - name: Resource name of the Datastore to be get. Must be of the form
11149//   `organizations/{org}/analytics/datastores/{datastoreId}`.
11150func (r *OrganizationsAnalyticsDatastoresService) Get(name string) *OrganizationsAnalyticsDatastoresGetCall {
11151	c := &OrganizationsAnalyticsDatastoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11152	c.name = name
11153	return c
11154}
11155
11156// Fields allows partial responses to be retrieved. See
11157// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11158// for more information.
11159func (c *OrganizationsAnalyticsDatastoresGetCall) Fields(s ...googleapi.Field) *OrganizationsAnalyticsDatastoresGetCall {
11160	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11161	return c
11162}
11163
11164// IfNoneMatch sets the optional parameter which makes the operation
11165// fail if the object's ETag matches the given value. This is useful for
11166// getting updates only after the object has changed since the last
11167// request. Use googleapi.IsNotModified to check whether the response
11168// error from Do is the result of In-None-Match.
11169func (c *OrganizationsAnalyticsDatastoresGetCall) IfNoneMatch(entityTag string) *OrganizationsAnalyticsDatastoresGetCall {
11170	c.ifNoneMatch_ = entityTag
11171	return c
11172}
11173
11174// Context sets the context to be used in this call's Do method. Any
11175// pending HTTP request will be aborted if the provided context is
11176// canceled.
11177func (c *OrganizationsAnalyticsDatastoresGetCall) Context(ctx context.Context) *OrganizationsAnalyticsDatastoresGetCall {
11178	c.ctx_ = ctx
11179	return c
11180}
11181
11182// Header returns an http.Header that can be modified by the caller to
11183// add HTTP headers to the request.
11184func (c *OrganizationsAnalyticsDatastoresGetCall) Header() http.Header {
11185	if c.header_ == nil {
11186		c.header_ = make(http.Header)
11187	}
11188	return c.header_
11189}
11190
11191func (c *OrganizationsAnalyticsDatastoresGetCall) doRequest(alt string) (*http.Response, error) {
11192	reqHeaders := make(http.Header)
11193	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
11194	for k, v := range c.header_ {
11195		reqHeaders[k] = v
11196	}
11197	reqHeaders.Set("User-Agent", c.s.userAgent())
11198	if c.ifNoneMatch_ != "" {
11199		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11200	}
11201	var body io.Reader = nil
11202	c.urlParams_.Set("alt", alt)
11203	c.urlParams_.Set("prettyPrint", "false")
11204	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
11205	urls += "?" + c.urlParams_.Encode()
11206	req, err := http.NewRequest("GET", urls, body)
11207	if err != nil {
11208		return nil, err
11209	}
11210	req.Header = reqHeaders
11211	googleapi.Expand(req.URL, map[string]string{
11212		"name": c.name,
11213	})
11214	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11215}
11216
11217// Do executes the "apigee.organizations.analytics.datastores.get" call.
11218// Exactly one of *GoogleCloudApigeeV1Datastore or error will be
11219// non-nil. Any non-2xx status code is an error. Response headers are in
11220// either *GoogleCloudApigeeV1Datastore.ServerResponse.Header or (if a
11221// response was returned at all) in error.(*googleapi.Error).Header. Use
11222// googleapi.IsNotModified to check whether the returned error was
11223// because http.StatusNotModified was returned.
11224func (c *OrganizationsAnalyticsDatastoresGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Datastore, error) {
11225	gensupport.SetOptions(c.urlParams_, opts...)
11226	res, err := c.doRequest("json")
11227	if res != nil && res.StatusCode == http.StatusNotModified {
11228		if res.Body != nil {
11229			res.Body.Close()
11230		}
11231		return nil, &googleapi.Error{
11232			Code:   res.StatusCode,
11233			Header: res.Header,
11234		}
11235	}
11236	if err != nil {
11237		return nil, err
11238	}
11239	defer googleapi.CloseBody(res)
11240	if err := googleapi.CheckResponse(res); err != nil {
11241		return nil, err
11242	}
11243	ret := &GoogleCloudApigeeV1Datastore{
11244		ServerResponse: googleapi.ServerResponse{
11245			Header:         res.Header,
11246			HTTPStatusCode: res.StatusCode,
11247		},
11248	}
11249	target := &ret
11250	if err := gensupport.DecodeResponse(target, res); err != nil {
11251		return nil, err
11252	}
11253	return ret, nil
11254	// {
11255	//   "description": "Get a Datastore",
11256	//   "flatPath": "v1/organizations/{organizationsId}/analytics/datastores/{datastoresId}",
11257	//   "httpMethod": "GET",
11258	//   "id": "apigee.organizations.analytics.datastores.get",
11259	//   "parameterOrder": [
11260	//     "name"
11261	//   ],
11262	//   "parameters": {
11263	//     "name": {
11264	//       "description": "Required. Resource name of the Datastore to be get. Must be of the form `organizations/{org}/analytics/datastores/{datastoreId}`",
11265	//       "location": "path",
11266	//       "pattern": "^organizations/[^/]+/analytics/datastores/[^/]+$",
11267	//       "required": true,
11268	//       "type": "string"
11269	//     }
11270	//   },
11271	//   "path": "v1/{+name}",
11272	//   "response": {
11273	//     "$ref": "GoogleCloudApigeeV1Datastore"
11274	//   },
11275	//   "scopes": [
11276	//     "https://www.googleapis.com/auth/cloud-platform"
11277	//   ]
11278	// }
11279
11280}
11281
11282// method id "apigee.organizations.analytics.datastores.list":
11283
11284type OrganizationsAnalyticsDatastoresListCall struct {
11285	s            *Service
11286	parent       string
11287	urlParams_   gensupport.URLParams
11288	ifNoneMatch_ string
11289	ctx_         context.Context
11290	header_      http.Header
11291}
11292
11293// List: List Datastores
11294//
11295// - parent: The parent organization name. Must be of the form
11296//   `organizations/{org}`.
11297func (r *OrganizationsAnalyticsDatastoresService) List(parent string) *OrganizationsAnalyticsDatastoresListCall {
11298	c := &OrganizationsAnalyticsDatastoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11299	c.parent = parent
11300	return c
11301}
11302
11303// TargetType sets the optional parameter "targetType": TargetType is
11304// used to fetch all Datastores that match the type
11305func (c *OrganizationsAnalyticsDatastoresListCall) TargetType(targetType string) *OrganizationsAnalyticsDatastoresListCall {
11306	c.urlParams_.Set("targetType", targetType)
11307	return c
11308}
11309
11310// Fields allows partial responses to be retrieved. See
11311// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11312// for more information.
11313func (c *OrganizationsAnalyticsDatastoresListCall) Fields(s ...googleapi.Field) *OrganizationsAnalyticsDatastoresListCall {
11314	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11315	return c
11316}
11317
11318// IfNoneMatch sets the optional parameter which makes the operation
11319// fail if the object's ETag matches the given value. This is useful for
11320// getting updates only after the object has changed since the last
11321// request. Use googleapi.IsNotModified to check whether the response
11322// error from Do is the result of In-None-Match.
11323func (c *OrganizationsAnalyticsDatastoresListCall) IfNoneMatch(entityTag string) *OrganizationsAnalyticsDatastoresListCall {
11324	c.ifNoneMatch_ = entityTag
11325	return c
11326}
11327
11328// Context sets the context to be used in this call's Do method. Any
11329// pending HTTP request will be aborted if the provided context is
11330// canceled.
11331func (c *OrganizationsAnalyticsDatastoresListCall) Context(ctx context.Context) *OrganizationsAnalyticsDatastoresListCall {
11332	c.ctx_ = ctx
11333	return c
11334}
11335
11336// Header returns an http.Header that can be modified by the caller to
11337// add HTTP headers to the request.
11338func (c *OrganizationsAnalyticsDatastoresListCall) Header() http.Header {
11339	if c.header_ == nil {
11340		c.header_ = make(http.Header)
11341	}
11342	return c.header_
11343}
11344
11345func (c *OrganizationsAnalyticsDatastoresListCall) doRequest(alt string) (*http.Response, error) {
11346	reqHeaders := make(http.Header)
11347	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
11348	for k, v := range c.header_ {
11349		reqHeaders[k] = v
11350	}
11351	reqHeaders.Set("User-Agent", c.s.userAgent())
11352	if c.ifNoneMatch_ != "" {
11353		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11354	}
11355	var body io.Reader = nil
11356	c.urlParams_.Set("alt", alt)
11357	c.urlParams_.Set("prettyPrint", "false")
11358	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/analytics/datastores")
11359	urls += "?" + c.urlParams_.Encode()
11360	req, err := http.NewRequest("GET", urls, body)
11361	if err != nil {
11362		return nil, err
11363	}
11364	req.Header = reqHeaders
11365	googleapi.Expand(req.URL, map[string]string{
11366		"parent": c.parent,
11367	})
11368	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11369}
11370
11371// Do executes the "apigee.organizations.analytics.datastores.list" call.
11372// Exactly one of *GoogleCloudApigeeV1ListDatastoresResponse or error
11373// will be non-nil. Any non-2xx status code is an error. Response
11374// headers are in either
11375// *GoogleCloudApigeeV1ListDatastoresResponse.ServerResponse.Header or
11376// (if a response was returned at all) in
11377// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
11378// whether the returned error was because http.StatusNotModified was
11379// returned.
11380func (c *OrganizationsAnalyticsDatastoresListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDatastoresResponse, error) {
11381	gensupport.SetOptions(c.urlParams_, opts...)
11382	res, err := c.doRequest("json")
11383	if res != nil && res.StatusCode == http.StatusNotModified {
11384		if res.Body != nil {
11385			res.Body.Close()
11386		}
11387		return nil, &googleapi.Error{
11388			Code:   res.StatusCode,
11389			Header: res.Header,
11390		}
11391	}
11392	if err != nil {
11393		return nil, err
11394	}
11395	defer googleapi.CloseBody(res)
11396	if err := googleapi.CheckResponse(res); err != nil {
11397		return nil, err
11398	}
11399	ret := &GoogleCloudApigeeV1ListDatastoresResponse{
11400		ServerResponse: googleapi.ServerResponse{
11401			Header:         res.Header,
11402			HTTPStatusCode: res.StatusCode,
11403		},
11404	}
11405	target := &ret
11406	if err := gensupport.DecodeResponse(target, res); err != nil {
11407		return nil, err
11408	}
11409	return ret, nil
11410	// {
11411	//   "description": "List Datastores",
11412	//   "flatPath": "v1/organizations/{organizationsId}/analytics/datastores",
11413	//   "httpMethod": "GET",
11414	//   "id": "apigee.organizations.analytics.datastores.list",
11415	//   "parameterOrder": [
11416	//     "parent"
11417	//   ],
11418	//   "parameters": {
11419	//     "parent": {
11420	//       "description": "Required. The parent organization name. Must be of the form `organizations/{org}`.",
11421	//       "location": "path",
11422	//       "pattern": "^organizations/[^/]+$",
11423	//       "required": true,
11424	//       "type": "string"
11425	//     },
11426	//     "targetType": {
11427	//       "description": "Optional. TargetType is used to fetch all Datastores that match the type",
11428	//       "location": "query",
11429	//       "type": "string"
11430	//     }
11431	//   },
11432	//   "path": "v1/{+parent}/analytics/datastores",
11433	//   "response": {
11434	//     "$ref": "GoogleCloudApigeeV1ListDatastoresResponse"
11435	//   },
11436	//   "scopes": [
11437	//     "https://www.googleapis.com/auth/cloud-platform"
11438	//   ]
11439	// }
11440
11441}
11442
11443// method id "apigee.organizations.analytics.datastores.test":
11444
11445type OrganizationsAnalyticsDatastoresTestCall struct {
11446	s                            *Service
11447	parent                       string
11448	googlecloudapigeev1datastore *GoogleCloudApigeeV1Datastore
11449	urlParams_                   gensupport.URLParams
11450	ctx_                         context.Context
11451	header_                      http.Header
11452}
11453
11454// Test: Test if Datastore configuration is correct. This includes
11455// checking if credentials provided by customer have required
11456// permissions in target destination storage
11457//
11458// - parent: The parent organization name Must be of the form
11459//   `organizations/{org}`.
11460func (r *OrganizationsAnalyticsDatastoresService) Test(parent string, googlecloudapigeev1datastore *GoogleCloudApigeeV1Datastore) *OrganizationsAnalyticsDatastoresTestCall {
11461	c := &OrganizationsAnalyticsDatastoresTestCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11462	c.parent = parent
11463	c.googlecloudapigeev1datastore = googlecloudapigeev1datastore
11464	return c
11465}
11466
11467// Fields allows partial responses to be retrieved. See
11468// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11469// for more information.
11470func (c *OrganizationsAnalyticsDatastoresTestCall) Fields(s ...googleapi.Field) *OrganizationsAnalyticsDatastoresTestCall {
11471	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11472	return c
11473}
11474
11475// Context sets the context to be used in this call's Do method. Any
11476// pending HTTP request will be aborted if the provided context is
11477// canceled.
11478func (c *OrganizationsAnalyticsDatastoresTestCall) Context(ctx context.Context) *OrganizationsAnalyticsDatastoresTestCall {
11479	c.ctx_ = ctx
11480	return c
11481}
11482
11483// Header returns an http.Header that can be modified by the caller to
11484// add HTTP headers to the request.
11485func (c *OrganizationsAnalyticsDatastoresTestCall) Header() http.Header {
11486	if c.header_ == nil {
11487		c.header_ = make(http.Header)
11488	}
11489	return c.header_
11490}
11491
11492func (c *OrganizationsAnalyticsDatastoresTestCall) doRequest(alt string) (*http.Response, error) {
11493	reqHeaders := make(http.Header)
11494	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
11495	for k, v := range c.header_ {
11496		reqHeaders[k] = v
11497	}
11498	reqHeaders.Set("User-Agent", c.s.userAgent())
11499	var body io.Reader = nil
11500	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1datastore)
11501	if err != nil {
11502		return nil, err
11503	}
11504	reqHeaders.Set("Content-Type", "application/json")
11505	c.urlParams_.Set("alt", alt)
11506	c.urlParams_.Set("prettyPrint", "false")
11507	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/analytics/datastores:test")
11508	urls += "?" + c.urlParams_.Encode()
11509	req, err := http.NewRequest("POST", urls, body)
11510	if err != nil {
11511		return nil, err
11512	}
11513	req.Header = reqHeaders
11514	googleapi.Expand(req.URL, map[string]string{
11515		"parent": c.parent,
11516	})
11517	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11518}
11519
11520// Do executes the "apigee.organizations.analytics.datastores.test" call.
11521// Exactly one of *GoogleCloudApigeeV1TestDatastoreResponse or error
11522// will be non-nil. Any non-2xx status code is an error. Response
11523// headers are in either
11524// *GoogleCloudApigeeV1TestDatastoreResponse.ServerResponse.Header or
11525// (if a response was returned at all) in
11526// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
11527// whether the returned error was because http.StatusNotModified was
11528// returned.
11529func (c *OrganizationsAnalyticsDatastoresTestCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TestDatastoreResponse, error) {
11530	gensupport.SetOptions(c.urlParams_, opts...)
11531	res, err := c.doRequest("json")
11532	if res != nil && res.StatusCode == http.StatusNotModified {
11533		if res.Body != nil {
11534			res.Body.Close()
11535		}
11536		return nil, &googleapi.Error{
11537			Code:   res.StatusCode,
11538			Header: res.Header,
11539		}
11540	}
11541	if err != nil {
11542		return nil, err
11543	}
11544	defer googleapi.CloseBody(res)
11545	if err := googleapi.CheckResponse(res); err != nil {
11546		return nil, err
11547	}
11548	ret := &GoogleCloudApigeeV1TestDatastoreResponse{
11549		ServerResponse: googleapi.ServerResponse{
11550			Header:         res.Header,
11551			HTTPStatusCode: res.StatusCode,
11552		},
11553	}
11554	target := &ret
11555	if err := gensupport.DecodeResponse(target, res); err != nil {
11556		return nil, err
11557	}
11558	return ret, nil
11559	// {
11560	//   "description": "Test if Datastore configuration is correct. This includes checking if credentials provided by customer have required permissions in target destination storage",
11561	//   "flatPath": "v1/organizations/{organizationsId}/analytics/datastores:test",
11562	//   "httpMethod": "POST",
11563	//   "id": "apigee.organizations.analytics.datastores.test",
11564	//   "parameterOrder": [
11565	//     "parent"
11566	//   ],
11567	//   "parameters": {
11568	//     "parent": {
11569	//       "description": "Required. The parent organization name Must be of the form `organizations/{org}`",
11570	//       "location": "path",
11571	//       "pattern": "^organizations/[^/]+$",
11572	//       "required": true,
11573	//       "type": "string"
11574	//     }
11575	//   },
11576	//   "path": "v1/{+parent}/analytics/datastores:test",
11577	//   "request": {
11578	//     "$ref": "GoogleCloudApigeeV1Datastore"
11579	//   },
11580	//   "response": {
11581	//     "$ref": "GoogleCloudApigeeV1TestDatastoreResponse"
11582	//   },
11583	//   "scopes": [
11584	//     "https://www.googleapis.com/auth/cloud-platform"
11585	//   ]
11586	// }
11587
11588}
11589
11590// method id "apigee.organizations.analytics.datastores.update":
11591
11592type OrganizationsAnalyticsDatastoresUpdateCall struct {
11593	s                            *Service
11594	name                         string
11595	googlecloudapigeev1datastore *GoogleCloudApigeeV1Datastore
11596	urlParams_                   gensupport.URLParams
11597	ctx_                         context.Context
11598	header_                      http.Header
11599}
11600
11601// Update: Update a Datastore
11602//
11603// - name: The resource name of datastore to be updated. Must be of the
11604//   form `organizations/{org}/analytics/datastores/{datastoreId}`.
11605func (r *OrganizationsAnalyticsDatastoresService) Update(name string, googlecloudapigeev1datastore *GoogleCloudApigeeV1Datastore) *OrganizationsAnalyticsDatastoresUpdateCall {
11606	c := &OrganizationsAnalyticsDatastoresUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11607	c.name = name
11608	c.googlecloudapigeev1datastore = googlecloudapigeev1datastore
11609	return c
11610}
11611
11612// Fields allows partial responses to be retrieved. See
11613// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11614// for more information.
11615func (c *OrganizationsAnalyticsDatastoresUpdateCall) Fields(s ...googleapi.Field) *OrganizationsAnalyticsDatastoresUpdateCall {
11616	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11617	return c
11618}
11619
11620// Context sets the context to be used in this call's Do method. Any
11621// pending HTTP request will be aborted if the provided context is
11622// canceled.
11623func (c *OrganizationsAnalyticsDatastoresUpdateCall) Context(ctx context.Context) *OrganizationsAnalyticsDatastoresUpdateCall {
11624	c.ctx_ = ctx
11625	return c
11626}
11627
11628// Header returns an http.Header that can be modified by the caller to
11629// add HTTP headers to the request.
11630func (c *OrganizationsAnalyticsDatastoresUpdateCall) Header() http.Header {
11631	if c.header_ == nil {
11632		c.header_ = make(http.Header)
11633	}
11634	return c.header_
11635}
11636
11637func (c *OrganizationsAnalyticsDatastoresUpdateCall) doRequest(alt string) (*http.Response, error) {
11638	reqHeaders := make(http.Header)
11639	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
11640	for k, v := range c.header_ {
11641		reqHeaders[k] = v
11642	}
11643	reqHeaders.Set("User-Agent", c.s.userAgent())
11644	var body io.Reader = nil
11645	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1datastore)
11646	if err != nil {
11647		return nil, err
11648	}
11649	reqHeaders.Set("Content-Type", "application/json")
11650	c.urlParams_.Set("alt", alt)
11651	c.urlParams_.Set("prettyPrint", "false")
11652	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
11653	urls += "?" + c.urlParams_.Encode()
11654	req, err := http.NewRequest("PUT", urls, body)
11655	if err != nil {
11656		return nil, err
11657	}
11658	req.Header = reqHeaders
11659	googleapi.Expand(req.URL, map[string]string{
11660		"name": c.name,
11661	})
11662	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11663}
11664
11665// Do executes the "apigee.organizations.analytics.datastores.update" call.
11666// Exactly one of *GoogleCloudApigeeV1Datastore or error will be
11667// non-nil. Any non-2xx status code is an error. Response headers are in
11668// either *GoogleCloudApigeeV1Datastore.ServerResponse.Header or (if a
11669// response was returned at all) in error.(*googleapi.Error).Header. Use
11670// googleapi.IsNotModified to check whether the returned error was
11671// because http.StatusNotModified was returned.
11672func (c *OrganizationsAnalyticsDatastoresUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Datastore, error) {
11673	gensupport.SetOptions(c.urlParams_, opts...)
11674	res, err := c.doRequest("json")
11675	if res != nil && res.StatusCode == http.StatusNotModified {
11676		if res.Body != nil {
11677			res.Body.Close()
11678		}
11679		return nil, &googleapi.Error{
11680			Code:   res.StatusCode,
11681			Header: res.Header,
11682		}
11683	}
11684	if err != nil {
11685		return nil, err
11686	}
11687	defer googleapi.CloseBody(res)
11688	if err := googleapi.CheckResponse(res); err != nil {
11689		return nil, err
11690	}
11691	ret := &GoogleCloudApigeeV1Datastore{
11692		ServerResponse: googleapi.ServerResponse{
11693			Header:         res.Header,
11694			HTTPStatusCode: res.StatusCode,
11695		},
11696	}
11697	target := &ret
11698	if err := gensupport.DecodeResponse(target, res); err != nil {
11699		return nil, err
11700	}
11701	return ret, nil
11702	// {
11703	//   "description": "Update a Datastore",
11704	//   "flatPath": "v1/organizations/{organizationsId}/analytics/datastores/{datastoresId}",
11705	//   "httpMethod": "PUT",
11706	//   "id": "apigee.organizations.analytics.datastores.update",
11707	//   "parameterOrder": [
11708	//     "name"
11709	//   ],
11710	//   "parameters": {
11711	//     "name": {
11712	//       "description": "Required. The resource name of datastore to be updated. Must be of the form `organizations/{org}/analytics/datastores/{datastoreId}`",
11713	//       "location": "path",
11714	//       "pattern": "^organizations/[^/]+/analytics/datastores/[^/]+$",
11715	//       "required": true,
11716	//       "type": "string"
11717	//     }
11718	//   },
11719	//   "path": "v1/{+name}",
11720	//   "request": {
11721	//     "$ref": "GoogleCloudApigeeV1Datastore"
11722	//   },
11723	//   "response": {
11724	//     "$ref": "GoogleCloudApigeeV1Datastore"
11725	//   },
11726	//   "scopes": [
11727	//     "https://www.googleapis.com/auth/cloud-platform"
11728	//   ]
11729	// }
11730
11731}
11732
11733// method id "apigee.organizations.apiproducts.attributes":
11734
11735type OrganizationsApiproductsAttributesCall struct {
11736	s                             *Service
11737	name                          string
11738	googlecloudapigeev1attributes *GoogleCloudApigeeV1Attributes
11739	urlParams_                    gensupport.URLParams
11740	ctx_                          context.Context
11741	header_                       http.Header
11742}
11743
11744// Attributes: Updates or creates API product attributes. This API
11745// **replaces** the current list of attributes with the attributes
11746// specified in the request body. In this way, you can update existing
11747// attributes, add new attributes, or delete existing attributes by
11748// omitting them from the request body. **Note**: OAuth access tokens
11749// and Key Management Service (KMS) entities (apps, developers, and API
11750// products) are cached for 180 seconds (current default). Any custom
11751// attributes associated with entities also get cached for at least 180
11752// seconds after entity is accessed during runtime. In this case, the
11753// `ExpiresIn` element on the OAuthV2 policy won't be able to expire an
11754// access token in less than 180 seconds.
11755//
11756// - name: Name of the API product. Use the following structure in your
11757//   request: `organizations/{org}/apiproducts/{apiproduct}`.
11758func (r *OrganizationsApiproductsService) Attributes(name string, googlecloudapigeev1attributes *GoogleCloudApigeeV1Attributes) *OrganizationsApiproductsAttributesCall {
11759	c := &OrganizationsApiproductsAttributesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11760	c.name = name
11761	c.googlecloudapigeev1attributes = googlecloudapigeev1attributes
11762	return c
11763}
11764
11765// Fields allows partial responses to be retrieved. See
11766// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11767// for more information.
11768func (c *OrganizationsApiproductsAttributesCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsAttributesCall {
11769	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11770	return c
11771}
11772
11773// Context sets the context to be used in this call's Do method. Any
11774// pending HTTP request will be aborted if the provided context is
11775// canceled.
11776func (c *OrganizationsApiproductsAttributesCall) Context(ctx context.Context) *OrganizationsApiproductsAttributesCall {
11777	c.ctx_ = ctx
11778	return c
11779}
11780
11781// Header returns an http.Header that can be modified by the caller to
11782// add HTTP headers to the request.
11783func (c *OrganizationsApiproductsAttributesCall) Header() http.Header {
11784	if c.header_ == nil {
11785		c.header_ = make(http.Header)
11786	}
11787	return c.header_
11788}
11789
11790func (c *OrganizationsApiproductsAttributesCall) doRequest(alt string) (*http.Response, error) {
11791	reqHeaders := make(http.Header)
11792	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
11793	for k, v := range c.header_ {
11794		reqHeaders[k] = v
11795	}
11796	reqHeaders.Set("User-Agent", c.s.userAgent())
11797	var body io.Reader = nil
11798	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1attributes)
11799	if err != nil {
11800		return nil, err
11801	}
11802	reqHeaders.Set("Content-Type", "application/json")
11803	c.urlParams_.Set("alt", alt)
11804	c.urlParams_.Set("prettyPrint", "false")
11805	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/attributes")
11806	urls += "?" + c.urlParams_.Encode()
11807	req, err := http.NewRequest("POST", urls, body)
11808	if err != nil {
11809		return nil, err
11810	}
11811	req.Header = reqHeaders
11812	googleapi.Expand(req.URL, map[string]string{
11813		"name": c.name,
11814	})
11815	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11816}
11817
11818// Do executes the "apigee.organizations.apiproducts.attributes" call.
11819// Exactly one of *GoogleCloudApigeeV1Attributes or error will be
11820// non-nil. Any non-2xx status code is an error. Response headers are in
11821// either *GoogleCloudApigeeV1Attributes.ServerResponse.Header or (if a
11822// response was returned at all) in error.(*googleapi.Error).Header. Use
11823// googleapi.IsNotModified to check whether the returned error was
11824// because http.StatusNotModified was returned.
11825func (c *OrganizationsApiproductsAttributesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attributes, error) {
11826	gensupport.SetOptions(c.urlParams_, opts...)
11827	res, err := c.doRequest("json")
11828	if res != nil && res.StatusCode == http.StatusNotModified {
11829		if res.Body != nil {
11830			res.Body.Close()
11831		}
11832		return nil, &googleapi.Error{
11833			Code:   res.StatusCode,
11834			Header: res.Header,
11835		}
11836	}
11837	if err != nil {
11838		return nil, err
11839	}
11840	defer googleapi.CloseBody(res)
11841	if err := googleapi.CheckResponse(res); err != nil {
11842		return nil, err
11843	}
11844	ret := &GoogleCloudApigeeV1Attributes{
11845		ServerResponse: googleapi.ServerResponse{
11846			Header:         res.Header,
11847			HTTPStatusCode: res.StatusCode,
11848		},
11849	}
11850	target := &ret
11851	if err := gensupport.DecodeResponse(target, res); err != nil {
11852		return nil, err
11853	}
11854	return ret, nil
11855	// {
11856	//   "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.",
11857	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}/attributes",
11858	//   "httpMethod": "POST",
11859	//   "id": "apigee.organizations.apiproducts.attributes",
11860	//   "parameterOrder": [
11861	//     "name"
11862	//   ],
11863	//   "parameters": {
11864	//     "name": {
11865	//       "description": "Required. Name of the API product. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}`",
11866	//       "location": "path",
11867	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+$",
11868	//       "required": true,
11869	//       "type": "string"
11870	//     }
11871	//   },
11872	//   "path": "v1/{+name}/attributes",
11873	//   "request": {
11874	//     "$ref": "GoogleCloudApigeeV1Attributes"
11875	//   },
11876	//   "response": {
11877	//     "$ref": "GoogleCloudApigeeV1Attributes"
11878	//   },
11879	//   "scopes": [
11880	//     "https://www.googleapis.com/auth/cloud-platform"
11881	//   ]
11882	// }
11883
11884}
11885
11886// method id "apigee.organizations.apiproducts.create":
11887
11888type OrganizationsApiproductsCreateCall struct {
11889	s                             *Service
11890	parent                        string
11891	googlecloudapigeev1apiproduct *GoogleCloudApigeeV1ApiProduct
11892	urlParams_                    gensupport.URLParams
11893	ctx_                          context.Context
11894	header_                       http.Header
11895}
11896
11897// Create: Creates an API product in an organization. You create API
11898// products after you have proxied backend services using API proxies.
11899// An API product is a collection of API resources combined with quota
11900// settings and metadata that you can use to deliver customized and
11901// productized API bundles to your developer community. This metadata
11902// can include: - Scope - Environments - API proxies - Extensible
11903// profile API products enable you repackage APIs on-the-fly, without
11904// having to do any additional coding or configuration. Apigee
11905// recommends that you start with a simple API product including only
11906// required elements. You then provision credentials to apps to enable
11907// them to start testing your APIs. After you have authentication and
11908// authorization working against a simple API product, you can iterate
11909// to create finer grained API products, defining different sets of API
11910// resources for each API product. **WARNING:** - If you don't specify
11911// an API proxy in the request body, *any* app associated with the
11912// product can make calls to *any* API in your entire organization. - If
11913// you don't specify an environment in the request body, the product
11914// allows access to all environments. For more information, see What is
11915// an API product?
11916//
11917// - parent: Name of the organization in which the API product will be
11918//   created. Use the following structure in your request:
11919//   `organizations/{org}`.
11920func (r *OrganizationsApiproductsService) Create(parent string, googlecloudapigeev1apiproduct *GoogleCloudApigeeV1ApiProduct) *OrganizationsApiproductsCreateCall {
11921	c := &OrganizationsApiproductsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11922	c.parent = parent
11923	c.googlecloudapigeev1apiproduct = googlecloudapigeev1apiproduct
11924	return c
11925}
11926
11927// Fields allows partial responses to be retrieved. See
11928// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11929// for more information.
11930func (c *OrganizationsApiproductsCreateCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsCreateCall {
11931	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11932	return c
11933}
11934
11935// Context sets the context to be used in this call's Do method. Any
11936// pending HTTP request will be aborted if the provided context is
11937// canceled.
11938func (c *OrganizationsApiproductsCreateCall) Context(ctx context.Context) *OrganizationsApiproductsCreateCall {
11939	c.ctx_ = ctx
11940	return c
11941}
11942
11943// Header returns an http.Header that can be modified by the caller to
11944// add HTTP headers to the request.
11945func (c *OrganizationsApiproductsCreateCall) Header() http.Header {
11946	if c.header_ == nil {
11947		c.header_ = make(http.Header)
11948	}
11949	return c.header_
11950}
11951
11952func (c *OrganizationsApiproductsCreateCall) doRequest(alt string) (*http.Response, error) {
11953	reqHeaders := make(http.Header)
11954	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
11955	for k, v := range c.header_ {
11956		reqHeaders[k] = v
11957	}
11958	reqHeaders.Set("User-Agent", c.s.userAgent())
11959	var body io.Reader = nil
11960	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1apiproduct)
11961	if err != nil {
11962		return nil, err
11963	}
11964	reqHeaders.Set("Content-Type", "application/json")
11965	c.urlParams_.Set("alt", alt)
11966	c.urlParams_.Set("prettyPrint", "false")
11967	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apiproducts")
11968	urls += "?" + c.urlParams_.Encode()
11969	req, err := http.NewRequest("POST", urls, body)
11970	if err != nil {
11971		return nil, err
11972	}
11973	req.Header = reqHeaders
11974	googleapi.Expand(req.URL, map[string]string{
11975		"parent": c.parent,
11976	})
11977	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11978}
11979
11980// Do executes the "apigee.organizations.apiproducts.create" call.
11981// Exactly one of *GoogleCloudApigeeV1ApiProduct or error will be
11982// non-nil. Any non-2xx status code is an error. Response headers are in
11983// either *GoogleCloudApigeeV1ApiProduct.ServerResponse.Header or (if a
11984// response was returned at all) in error.(*googleapi.Error).Header. Use
11985// googleapi.IsNotModified to check whether the returned error was
11986// because http.StatusNotModified was returned.
11987func (c *OrganizationsApiproductsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProduct, error) {
11988	gensupport.SetOptions(c.urlParams_, opts...)
11989	res, err := c.doRequest("json")
11990	if res != nil && res.StatusCode == http.StatusNotModified {
11991		if res.Body != nil {
11992			res.Body.Close()
11993		}
11994		return nil, &googleapi.Error{
11995			Code:   res.StatusCode,
11996			Header: res.Header,
11997		}
11998	}
11999	if err != nil {
12000		return nil, err
12001	}
12002	defer googleapi.CloseBody(res)
12003	if err := googleapi.CheckResponse(res); err != nil {
12004		return nil, err
12005	}
12006	ret := &GoogleCloudApigeeV1ApiProduct{
12007		ServerResponse: googleapi.ServerResponse{
12008			Header:         res.Header,
12009			HTTPStatusCode: res.StatusCode,
12010		},
12011	}
12012	target := &ret
12013	if err := gensupport.DecodeResponse(target, res); err != nil {
12014		return nil, err
12015	}
12016	return ret, nil
12017	// {
12018	//   "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?",
12019	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts",
12020	//   "httpMethod": "POST",
12021	//   "id": "apigee.organizations.apiproducts.create",
12022	//   "parameterOrder": [
12023	//     "parent"
12024	//   ],
12025	//   "parameters": {
12026	//     "parent": {
12027	//       "description": "Required. Name of the organization in which the API product will be created. Use the following structure in your request: `organizations/{org}`",
12028	//       "location": "path",
12029	//       "pattern": "^organizations/[^/]+$",
12030	//       "required": true,
12031	//       "type": "string"
12032	//     }
12033	//   },
12034	//   "path": "v1/{+parent}/apiproducts",
12035	//   "request": {
12036	//     "$ref": "GoogleCloudApigeeV1ApiProduct"
12037	//   },
12038	//   "response": {
12039	//     "$ref": "GoogleCloudApigeeV1ApiProduct"
12040	//   },
12041	//   "scopes": [
12042	//     "https://www.googleapis.com/auth/cloud-platform"
12043	//   ]
12044	// }
12045
12046}
12047
12048// method id "apigee.organizations.apiproducts.delete":
12049
12050type OrganizationsApiproductsDeleteCall struct {
12051	s          *Service
12052	name       string
12053	urlParams_ gensupport.URLParams
12054	ctx_       context.Context
12055	header_    http.Header
12056}
12057
12058// Delete: Deletes an API product from an organization. Deleting an API
12059// product causes app requests to the resource URIs defined in the API
12060// product to fail. Ensure that you create a new API product to serve
12061// existing apps, unless your intention is to disable access to the
12062// resources defined in the API product. The API product name required
12063// in the request URL is the internal name of the product, not the
12064// display name. While they may be the same, it depends on whether the
12065// API product was created via the UI or the API. View the list of API
12066// products to verify the internal name.
12067//
12068// - name: Name of the API product. Use the following structure in your
12069//   request: `organizations/{org}/apiproducts/{apiproduct}`.
12070func (r *OrganizationsApiproductsService) Delete(name string) *OrganizationsApiproductsDeleteCall {
12071	c := &OrganizationsApiproductsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12072	c.name = name
12073	return c
12074}
12075
12076// Fields allows partial responses to be retrieved. See
12077// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12078// for more information.
12079func (c *OrganizationsApiproductsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsDeleteCall {
12080	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12081	return c
12082}
12083
12084// Context sets the context to be used in this call's Do method. Any
12085// pending HTTP request will be aborted if the provided context is
12086// canceled.
12087func (c *OrganizationsApiproductsDeleteCall) Context(ctx context.Context) *OrganizationsApiproductsDeleteCall {
12088	c.ctx_ = ctx
12089	return c
12090}
12091
12092// Header returns an http.Header that can be modified by the caller to
12093// add HTTP headers to the request.
12094func (c *OrganizationsApiproductsDeleteCall) Header() http.Header {
12095	if c.header_ == nil {
12096		c.header_ = make(http.Header)
12097	}
12098	return c.header_
12099}
12100
12101func (c *OrganizationsApiproductsDeleteCall) doRequest(alt string) (*http.Response, error) {
12102	reqHeaders := make(http.Header)
12103	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
12104	for k, v := range c.header_ {
12105		reqHeaders[k] = v
12106	}
12107	reqHeaders.Set("User-Agent", c.s.userAgent())
12108	var body io.Reader = nil
12109	c.urlParams_.Set("alt", alt)
12110	c.urlParams_.Set("prettyPrint", "false")
12111	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
12112	urls += "?" + c.urlParams_.Encode()
12113	req, err := http.NewRequest("DELETE", urls, body)
12114	if err != nil {
12115		return nil, err
12116	}
12117	req.Header = reqHeaders
12118	googleapi.Expand(req.URL, map[string]string{
12119		"name": c.name,
12120	})
12121	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12122}
12123
12124// Do executes the "apigee.organizations.apiproducts.delete" call.
12125// Exactly one of *GoogleCloudApigeeV1ApiProduct or error will be
12126// non-nil. Any non-2xx status code is an error. Response headers are in
12127// either *GoogleCloudApigeeV1ApiProduct.ServerResponse.Header or (if a
12128// response was returned at all) in error.(*googleapi.Error).Header. Use
12129// googleapi.IsNotModified to check whether the returned error was
12130// because http.StatusNotModified was returned.
12131func (c *OrganizationsApiproductsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProduct, error) {
12132	gensupport.SetOptions(c.urlParams_, opts...)
12133	res, err := c.doRequest("json")
12134	if res != nil && res.StatusCode == http.StatusNotModified {
12135		if res.Body != nil {
12136			res.Body.Close()
12137		}
12138		return nil, &googleapi.Error{
12139			Code:   res.StatusCode,
12140			Header: res.Header,
12141		}
12142	}
12143	if err != nil {
12144		return nil, err
12145	}
12146	defer googleapi.CloseBody(res)
12147	if err := googleapi.CheckResponse(res); err != nil {
12148		return nil, err
12149	}
12150	ret := &GoogleCloudApigeeV1ApiProduct{
12151		ServerResponse: googleapi.ServerResponse{
12152			Header:         res.Header,
12153			HTTPStatusCode: res.StatusCode,
12154		},
12155	}
12156	target := &ret
12157	if err := gensupport.DecodeResponse(target, res); err != nil {
12158		return nil, err
12159	}
12160	return ret, nil
12161	// {
12162	//   "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.",
12163	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}",
12164	//   "httpMethod": "DELETE",
12165	//   "id": "apigee.organizations.apiproducts.delete",
12166	//   "parameterOrder": [
12167	//     "name"
12168	//   ],
12169	//   "parameters": {
12170	//     "name": {
12171	//       "description": "Required. Name of the API product. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}`",
12172	//       "location": "path",
12173	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+$",
12174	//       "required": true,
12175	//       "type": "string"
12176	//     }
12177	//   },
12178	//   "path": "v1/{+name}",
12179	//   "response": {
12180	//     "$ref": "GoogleCloudApigeeV1ApiProduct"
12181	//   },
12182	//   "scopes": [
12183	//     "https://www.googleapis.com/auth/cloud-platform"
12184	//   ]
12185	// }
12186
12187}
12188
12189// method id "apigee.organizations.apiproducts.get":
12190
12191type OrganizationsApiproductsGetCall struct {
12192	s            *Service
12193	name         string
12194	urlParams_   gensupport.URLParams
12195	ifNoneMatch_ string
12196	ctx_         context.Context
12197	header_      http.Header
12198}
12199
12200// Get: Gets configuration details for an API product. The API product
12201// name required in the request URL is the internal name of the product,
12202// not the display name. While they may be the same, it depends on
12203// whether the API product was created via the UI or the API. View the
12204// list of API products to verify the internal name.
12205//
12206// - name: Name of the API product. Use the following structure in your
12207//   request: `organizations/{org}/apiproducts/{apiproduct}`.
12208func (r *OrganizationsApiproductsService) Get(name string) *OrganizationsApiproductsGetCall {
12209	c := &OrganizationsApiproductsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12210	c.name = name
12211	return c
12212}
12213
12214// Fields allows partial responses to be retrieved. See
12215// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12216// for more information.
12217func (c *OrganizationsApiproductsGetCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsGetCall {
12218	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12219	return c
12220}
12221
12222// IfNoneMatch sets the optional parameter which makes the operation
12223// fail if the object's ETag matches the given value. This is useful for
12224// getting updates only after the object has changed since the last
12225// request. Use googleapi.IsNotModified to check whether the response
12226// error from Do is the result of In-None-Match.
12227func (c *OrganizationsApiproductsGetCall) IfNoneMatch(entityTag string) *OrganizationsApiproductsGetCall {
12228	c.ifNoneMatch_ = entityTag
12229	return c
12230}
12231
12232// Context sets the context to be used in this call's Do method. Any
12233// pending HTTP request will be aborted if the provided context is
12234// canceled.
12235func (c *OrganizationsApiproductsGetCall) Context(ctx context.Context) *OrganizationsApiproductsGetCall {
12236	c.ctx_ = ctx
12237	return c
12238}
12239
12240// Header returns an http.Header that can be modified by the caller to
12241// add HTTP headers to the request.
12242func (c *OrganizationsApiproductsGetCall) Header() http.Header {
12243	if c.header_ == nil {
12244		c.header_ = make(http.Header)
12245	}
12246	return c.header_
12247}
12248
12249func (c *OrganizationsApiproductsGetCall) doRequest(alt string) (*http.Response, error) {
12250	reqHeaders := make(http.Header)
12251	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
12252	for k, v := range c.header_ {
12253		reqHeaders[k] = v
12254	}
12255	reqHeaders.Set("User-Agent", c.s.userAgent())
12256	if c.ifNoneMatch_ != "" {
12257		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12258	}
12259	var body io.Reader = nil
12260	c.urlParams_.Set("alt", alt)
12261	c.urlParams_.Set("prettyPrint", "false")
12262	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
12263	urls += "?" + c.urlParams_.Encode()
12264	req, err := http.NewRequest("GET", urls, body)
12265	if err != nil {
12266		return nil, err
12267	}
12268	req.Header = reqHeaders
12269	googleapi.Expand(req.URL, map[string]string{
12270		"name": c.name,
12271	})
12272	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12273}
12274
12275// Do executes the "apigee.organizations.apiproducts.get" call.
12276// Exactly one of *GoogleCloudApigeeV1ApiProduct or error will be
12277// non-nil. Any non-2xx status code is an error. Response headers are in
12278// either *GoogleCloudApigeeV1ApiProduct.ServerResponse.Header or (if a
12279// response was returned at all) in error.(*googleapi.Error).Header. Use
12280// googleapi.IsNotModified to check whether the returned error was
12281// because http.StatusNotModified was returned.
12282func (c *OrganizationsApiproductsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProduct, error) {
12283	gensupport.SetOptions(c.urlParams_, opts...)
12284	res, err := c.doRequest("json")
12285	if res != nil && res.StatusCode == http.StatusNotModified {
12286		if res.Body != nil {
12287			res.Body.Close()
12288		}
12289		return nil, &googleapi.Error{
12290			Code:   res.StatusCode,
12291			Header: res.Header,
12292		}
12293	}
12294	if err != nil {
12295		return nil, err
12296	}
12297	defer googleapi.CloseBody(res)
12298	if err := googleapi.CheckResponse(res); err != nil {
12299		return nil, err
12300	}
12301	ret := &GoogleCloudApigeeV1ApiProduct{
12302		ServerResponse: googleapi.ServerResponse{
12303			Header:         res.Header,
12304			HTTPStatusCode: res.StatusCode,
12305		},
12306	}
12307	target := &ret
12308	if err := gensupport.DecodeResponse(target, res); err != nil {
12309		return nil, err
12310	}
12311	return ret, nil
12312	// {
12313	//   "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.",
12314	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}",
12315	//   "httpMethod": "GET",
12316	//   "id": "apigee.organizations.apiproducts.get",
12317	//   "parameterOrder": [
12318	//     "name"
12319	//   ],
12320	//   "parameters": {
12321	//     "name": {
12322	//       "description": "Required. Name of the API product. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}`",
12323	//       "location": "path",
12324	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+$",
12325	//       "required": true,
12326	//       "type": "string"
12327	//     }
12328	//   },
12329	//   "path": "v1/{+name}",
12330	//   "response": {
12331	//     "$ref": "GoogleCloudApigeeV1ApiProduct"
12332	//   },
12333	//   "scopes": [
12334	//     "https://www.googleapis.com/auth/cloud-platform"
12335	//   ]
12336	// }
12337
12338}
12339
12340// method id "apigee.organizations.apiproducts.list":
12341
12342type OrganizationsApiproductsListCall struct {
12343	s            *Service
12344	parent       string
12345	urlParams_   gensupport.URLParams
12346	ifNoneMatch_ string
12347	ctx_         context.Context
12348	header_      http.Header
12349}
12350
12351// List: Lists all API product names for an organization. Filter the
12352// list by passing an `attributename` and `attibutevalue`. The limit on
12353// the number of API products returned by the API is 1000. You can
12354// paginate the list of API products returned using the `startKey` and
12355// `count` query parameters.
12356//
12357// - parent: Name of the organization. Use the following structure in
12358//   your request: `organizations/{org}`.
12359func (r *OrganizationsApiproductsService) List(parent string) *OrganizationsApiproductsListCall {
12360	c := &OrganizationsApiproductsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12361	c.parent = parent
12362	return c
12363}
12364
12365// Attributename sets the optional parameter "attributename": Name of
12366// the attribute used to filter the search.
12367func (c *OrganizationsApiproductsListCall) Attributename(attributename string) *OrganizationsApiproductsListCall {
12368	c.urlParams_.Set("attributename", attributename)
12369	return c
12370}
12371
12372// Attributevalue sets the optional parameter "attributevalue": Value of
12373// the attribute used to filter the search.
12374func (c *OrganizationsApiproductsListCall) Attributevalue(attributevalue string) *OrganizationsApiproductsListCall {
12375	c.urlParams_.Set("attributevalue", attributevalue)
12376	return c
12377}
12378
12379// Count sets the optional parameter "count": Enter the number of API
12380// products you want returned in the API call. The limit is 1000.
12381func (c *OrganizationsApiproductsListCall) Count(count int64) *OrganizationsApiproductsListCall {
12382	c.urlParams_.Set("count", fmt.Sprint(count))
12383	return c
12384}
12385
12386// Expand sets the optional parameter "expand": Flag that specifies
12387// whether to expand the results. Set to `true` to get expanded details
12388// about each API.
12389func (c *OrganizationsApiproductsListCall) Expand(expand bool) *OrganizationsApiproductsListCall {
12390	c.urlParams_.Set("expand", fmt.Sprint(expand))
12391	return c
12392}
12393
12394// StartKey sets the optional parameter "startKey": Gets a list of API
12395// products starting with a specific API product in the list. For
12396// example, if you're returning 50 API products at a time (using the
12397// `count` query parameter), you can view products 50-99 by entering the
12398// name of the 50th API product in the first API (without using
12399// `startKey`). Product name is case sensitive.
12400func (c *OrganizationsApiproductsListCall) StartKey(startKey string) *OrganizationsApiproductsListCall {
12401	c.urlParams_.Set("startKey", startKey)
12402	return c
12403}
12404
12405// Fields allows partial responses to be retrieved. See
12406// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12407// for more information.
12408func (c *OrganizationsApiproductsListCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsListCall {
12409	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12410	return c
12411}
12412
12413// IfNoneMatch sets the optional parameter which makes the operation
12414// fail if the object's ETag matches the given value. This is useful for
12415// getting updates only after the object has changed since the last
12416// request. Use googleapi.IsNotModified to check whether the response
12417// error from Do is the result of In-None-Match.
12418func (c *OrganizationsApiproductsListCall) IfNoneMatch(entityTag string) *OrganizationsApiproductsListCall {
12419	c.ifNoneMatch_ = entityTag
12420	return c
12421}
12422
12423// Context sets the context to be used in this call's Do method. Any
12424// pending HTTP request will be aborted if the provided context is
12425// canceled.
12426func (c *OrganizationsApiproductsListCall) Context(ctx context.Context) *OrganizationsApiproductsListCall {
12427	c.ctx_ = ctx
12428	return c
12429}
12430
12431// Header returns an http.Header that can be modified by the caller to
12432// add HTTP headers to the request.
12433func (c *OrganizationsApiproductsListCall) Header() http.Header {
12434	if c.header_ == nil {
12435		c.header_ = make(http.Header)
12436	}
12437	return c.header_
12438}
12439
12440func (c *OrganizationsApiproductsListCall) doRequest(alt string) (*http.Response, error) {
12441	reqHeaders := make(http.Header)
12442	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
12443	for k, v := range c.header_ {
12444		reqHeaders[k] = v
12445	}
12446	reqHeaders.Set("User-Agent", c.s.userAgent())
12447	if c.ifNoneMatch_ != "" {
12448		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12449	}
12450	var body io.Reader = nil
12451	c.urlParams_.Set("alt", alt)
12452	c.urlParams_.Set("prettyPrint", "false")
12453	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apiproducts")
12454	urls += "?" + c.urlParams_.Encode()
12455	req, err := http.NewRequest("GET", urls, body)
12456	if err != nil {
12457		return nil, err
12458	}
12459	req.Header = reqHeaders
12460	googleapi.Expand(req.URL, map[string]string{
12461		"parent": c.parent,
12462	})
12463	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12464}
12465
12466// Do executes the "apigee.organizations.apiproducts.list" call.
12467// Exactly one of *GoogleCloudApigeeV1ListApiProductsResponse or error
12468// will be non-nil. Any non-2xx status code is an error. Response
12469// headers are in either
12470// *GoogleCloudApigeeV1ListApiProductsResponse.ServerResponse.Header or
12471// (if a response was returned at all) in
12472// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
12473// whether the returned error was because http.StatusNotModified was
12474// returned.
12475func (c *OrganizationsApiproductsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListApiProductsResponse, error) {
12476	gensupport.SetOptions(c.urlParams_, opts...)
12477	res, err := c.doRequest("json")
12478	if res != nil && res.StatusCode == http.StatusNotModified {
12479		if res.Body != nil {
12480			res.Body.Close()
12481		}
12482		return nil, &googleapi.Error{
12483			Code:   res.StatusCode,
12484			Header: res.Header,
12485		}
12486	}
12487	if err != nil {
12488		return nil, err
12489	}
12490	defer googleapi.CloseBody(res)
12491	if err := googleapi.CheckResponse(res); err != nil {
12492		return nil, err
12493	}
12494	ret := &GoogleCloudApigeeV1ListApiProductsResponse{
12495		ServerResponse: googleapi.ServerResponse{
12496			Header:         res.Header,
12497			HTTPStatusCode: res.StatusCode,
12498		},
12499	}
12500	target := &ret
12501	if err := gensupport.DecodeResponse(target, res); err != nil {
12502		return nil, err
12503	}
12504	return ret, nil
12505	// {
12506	//   "description": "Lists all API product names for an organization. Filter the list by passing an `attributename` and `attibutevalue`. The limit on the number of API products returned by the API is 1000. You can paginate the list of API products returned using the `startKey` and `count` query parameters.",
12507	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts",
12508	//   "httpMethod": "GET",
12509	//   "id": "apigee.organizations.apiproducts.list",
12510	//   "parameterOrder": [
12511	//     "parent"
12512	//   ],
12513	//   "parameters": {
12514	//     "attributename": {
12515	//       "description": "Name of the attribute used to filter the search.",
12516	//       "location": "query",
12517	//       "type": "string"
12518	//     },
12519	//     "attributevalue": {
12520	//       "description": "Value of the attribute used to filter the search.",
12521	//       "location": "query",
12522	//       "type": "string"
12523	//     },
12524	//     "count": {
12525	//       "description": "Enter the number of API products you want returned in the API call. The limit is 1000.",
12526	//       "format": "int64",
12527	//       "location": "query",
12528	//       "type": "string"
12529	//     },
12530	//     "expand": {
12531	//       "description": "Flag that specifies whether to expand the results. Set to `true` to get expanded details about each API.",
12532	//       "location": "query",
12533	//       "type": "boolean"
12534	//     },
12535	//     "parent": {
12536	//       "description": "Required. Name of the organization. Use the following structure in your request: `organizations/{org}`",
12537	//       "location": "path",
12538	//       "pattern": "^organizations/[^/]+$",
12539	//       "required": true,
12540	//       "type": "string"
12541	//     },
12542	//     "startKey": {
12543	//       "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.",
12544	//       "location": "query",
12545	//       "type": "string"
12546	//     }
12547	//   },
12548	//   "path": "v1/{+parent}/apiproducts",
12549	//   "response": {
12550	//     "$ref": "GoogleCloudApigeeV1ListApiProductsResponse"
12551	//   },
12552	//   "scopes": [
12553	//     "https://www.googleapis.com/auth/cloud-platform"
12554	//   ]
12555	// }
12556
12557}
12558
12559// method id "apigee.organizations.apiproducts.update":
12560
12561type OrganizationsApiproductsUpdateCall struct {
12562	s                             *Service
12563	name                          string
12564	googlecloudapigeev1apiproduct *GoogleCloudApigeeV1ApiProduct
12565	urlParams_                    gensupport.URLParams
12566	ctx_                          context.Context
12567	header_                       http.Header
12568}
12569
12570// Update: Updates an existing API product. You must include all
12571// required values, whether or not you are updating them, as well as any
12572// optional values that you are updating. The API product name required
12573// in the request URL is the internal name of the product, not the
12574// Display Name. While they may be the same, it depends on whether the
12575// API product was created via UI or API. View the list of API products
12576// to identify their internal names.
12577//
12578// - name: Name of the API product. Use the following structure in your
12579//   request: `organizations/{org}/apiproducts/{apiproduct}`.
12580func (r *OrganizationsApiproductsService) Update(name string, googlecloudapigeev1apiproduct *GoogleCloudApigeeV1ApiProduct) *OrganizationsApiproductsUpdateCall {
12581	c := &OrganizationsApiproductsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12582	c.name = name
12583	c.googlecloudapigeev1apiproduct = googlecloudapigeev1apiproduct
12584	return c
12585}
12586
12587// Fields allows partial responses to be retrieved. See
12588// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12589// for more information.
12590func (c *OrganizationsApiproductsUpdateCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsUpdateCall {
12591	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12592	return c
12593}
12594
12595// Context sets the context to be used in this call's Do method. Any
12596// pending HTTP request will be aborted if the provided context is
12597// canceled.
12598func (c *OrganizationsApiproductsUpdateCall) Context(ctx context.Context) *OrganizationsApiproductsUpdateCall {
12599	c.ctx_ = ctx
12600	return c
12601}
12602
12603// Header returns an http.Header that can be modified by the caller to
12604// add HTTP headers to the request.
12605func (c *OrganizationsApiproductsUpdateCall) Header() http.Header {
12606	if c.header_ == nil {
12607		c.header_ = make(http.Header)
12608	}
12609	return c.header_
12610}
12611
12612func (c *OrganizationsApiproductsUpdateCall) doRequest(alt string) (*http.Response, error) {
12613	reqHeaders := make(http.Header)
12614	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
12615	for k, v := range c.header_ {
12616		reqHeaders[k] = v
12617	}
12618	reqHeaders.Set("User-Agent", c.s.userAgent())
12619	var body io.Reader = nil
12620	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1apiproduct)
12621	if err != nil {
12622		return nil, err
12623	}
12624	reqHeaders.Set("Content-Type", "application/json")
12625	c.urlParams_.Set("alt", alt)
12626	c.urlParams_.Set("prettyPrint", "false")
12627	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
12628	urls += "?" + c.urlParams_.Encode()
12629	req, err := http.NewRequest("PUT", urls, body)
12630	if err != nil {
12631		return nil, err
12632	}
12633	req.Header = reqHeaders
12634	googleapi.Expand(req.URL, map[string]string{
12635		"name": c.name,
12636	})
12637	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12638}
12639
12640// Do executes the "apigee.organizations.apiproducts.update" call.
12641// Exactly one of *GoogleCloudApigeeV1ApiProduct or error will be
12642// non-nil. Any non-2xx status code is an error. Response headers are in
12643// either *GoogleCloudApigeeV1ApiProduct.ServerResponse.Header or (if a
12644// response was returned at all) in error.(*googleapi.Error).Header. Use
12645// googleapi.IsNotModified to check whether the returned error was
12646// because http.StatusNotModified was returned.
12647func (c *OrganizationsApiproductsUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProduct, error) {
12648	gensupport.SetOptions(c.urlParams_, opts...)
12649	res, err := c.doRequest("json")
12650	if res != nil && res.StatusCode == http.StatusNotModified {
12651		if res.Body != nil {
12652			res.Body.Close()
12653		}
12654		return nil, &googleapi.Error{
12655			Code:   res.StatusCode,
12656			Header: res.Header,
12657		}
12658	}
12659	if err != nil {
12660		return nil, err
12661	}
12662	defer googleapi.CloseBody(res)
12663	if err := googleapi.CheckResponse(res); err != nil {
12664		return nil, err
12665	}
12666	ret := &GoogleCloudApigeeV1ApiProduct{
12667		ServerResponse: googleapi.ServerResponse{
12668			Header:         res.Header,
12669			HTTPStatusCode: res.StatusCode,
12670		},
12671	}
12672	target := &ret
12673	if err := gensupport.DecodeResponse(target, res); err != nil {
12674		return nil, err
12675	}
12676	return ret, nil
12677	// {
12678	//   "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.",
12679	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}",
12680	//   "httpMethod": "PUT",
12681	//   "id": "apigee.organizations.apiproducts.update",
12682	//   "parameterOrder": [
12683	//     "name"
12684	//   ],
12685	//   "parameters": {
12686	//     "name": {
12687	//       "description": "Required. Name of the API product. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}`",
12688	//       "location": "path",
12689	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+$",
12690	//       "required": true,
12691	//       "type": "string"
12692	//     }
12693	//   },
12694	//   "path": "v1/{+name}",
12695	//   "request": {
12696	//     "$ref": "GoogleCloudApigeeV1ApiProduct"
12697	//   },
12698	//   "response": {
12699	//     "$ref": "GoogleCloudApigeeV1ApiProduct"
12700	//   },
12701	//   "scopes": [
12702	//     "https://www.googleapis.com/auth/cloud-platform"
12703	//   ]
12704	// }
12705
12706}
12707
12708// method id "apigee.organizations.apiproducts.attributes.delete":
12709
12710type OrganizationsApiproductsAttributesDeleteCall struct {
12711	s          *Service
12712	name       string
12713	urlParams_ gensupport.URLParams
12714	ctx_       context.Context
12715	header_    http.Header
12716}
12717
12718// Delete: Deletes an API product attribute.
12719//
12720// - name: Name of the API product attribute. Use the following
12721//   structure in your request:
12722//   `organizations/{org}/apiproducts/{apiproduct}/attributes/{attribute}
12723//   `.
12724func (r *OrganizationsApiproductsAttributesService) Delete(name string) *OrganizationsApiproductsAttributesDeleteCall {
12725	c := &OrganizationsApiproductsAttributesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12726	c.name = name
12727	return c
12728}
12729
12730// Fields allows partial responses to be retrieved. See
12731// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12732// for more information.
12733func (c *OrganizationsApiproductsAttributesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsAttributesDeleteCall {
12734	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12735	return c
12736}
12737
12738// Context sets the context to be used in this call's Do method. Any
12739// pending HTTP request will be aborted if the provided context is
12740// canceled.
12741func (c *OrganizationsApiproductsAttributesDeleteCall) Context(ctx context.Context) *OrganizationsApiproductsAttributesDeleteCall {
12742	c.ctx_ = ctx
12743	return c
12744}
12745
12746// Header returns an http.Header that can be modified by the caller to
12747// add HTTP headers to the request.
12748func (c *OrganizationsApiproductsAttributesDeleteCall) Header() http.Header {
12749	if c.header_ == nil {
12750		c.header_ = make(http.Header)
12751	}
12752	return c.header_
12753}
12754
12755func (c *OrganizationsApiproductsAttributesDeleteCall) doRequest(alt string) (*http.Response, error) {
12756	reqHeaders := make(http.Header)
12757	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
12758	for k, v := range c.header_ {
12759		reqHeaders[k] = v
12760	}
12761	reqHeaders.Set("User-Agent", c.s.userAgent())
12762	var body io.Reader = nil
12763	c.urlParams_.Set("alt", alt)
12764	c.urlParams_.Set("prettyPrint", "false")
12765	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
12766	urls += "?" + c.urlParams_.Encode()
12767	req, err := http.NewRequest("DELETE", urls, body)
12768	if err != nil {
12769		return nil, err
12770	}
12771	req.Header = reqHeaders
12772	googleapi.Expand(req.URL, map[string]string{
12773		"name": c.name,
12774	})
12775	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12776}
12777
12778// Do executes the "apigee.organizations.apiproducts.attributes.delete" call.
12779// Exactly one of *GoogleCloudApigeeV1Attribute or error will be
12780// non-nil. Any non-2xx status code is an error. Response headers are in
12781// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a
12782// response was returned at all) in error.(*googleapi.Error).Header. Use
12783// googleapi.IsNotModified to check whether the returned error was
12784// because http.StatusNotModified was returned.
12785func (c *OrganizationsApiproductsAttributesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
12786	gensupport.SetOptions(c.urlParams_, opts...)
12787	res, err := c.doRequest("json")
12788	if res != nil && res.StatusCode == http.StatusNotModified {
12789		if res.Body != nil {
12790			res.Body.Close()
12791		}
12792		return nil, &googleapi.Error{
12793			Code:   res.StatusCode,
12794			Header: res.Header,
12795		}
12796	}
12797	if err != nil {
12798		return nil, err
12799	}
12800	defer googleapi.CloseBody(res)
12801	if err := googleapi.CheckResponse(res); err != nil {
12802		return nil, err
12803	}
12804	ret := &GoogleCloudApigeeV1Attribute{
12805		ServerResponse: googleapi.ServerResponse{
12806			Header:         res.Header,
12807			HTTPStatusCode: res.StatusCode,
12808		},
12809	}
12810	target := &ret
12811	if err := gensupport.DecodeResponse(target, res); err != nil {
12812		return nil, err
12813	}
12814	return ret, nil
12815	// {
12816	//   "description": "Deletes an API product attribute.",
12817	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}/attributes/{attributesId}",
12818	//   "httpMethod": "DELETE",
12819	//   "id": "apigee.organizations.apiproducts.attributes.delete",
12820	//   "parameterOrder": [
12821	//     "name"
12822	//   ],
12823	//   "parameters": {
12824	//     "name": {
12825	//       "description": "Required. Name of the API product attribute. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}/attributes/{attribute}`",
12826	//       "location": "path",
12827	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+/attributes/[^/]+$",
12828	//       "required": true,
12829	//       "type": "string"
12830	//     }
12831	//   },
12832	//   "path": "v1/{+name}",
12833	//   "response": {
12834	//     "$ref": "GoogleCloudApigeeV1Attribute"
12835	//   },
12836	//   "scopes": [
12837	//     "https://www.googleapis.com/auth/cloud-platform"
12838	//   ]
12839	// }
12840
12841}
12842
12843// method id "apigee.organizations.apiproducts.attributes.get":
12844
12845type OrganizationsApiproductsAttributesGetCall struct {
12846	s            *Service
12847	name         string
12848	urlParams_   gensupport.URLParams
12849	ifNoneMatch_ string
12850	ctx_         context.Context
12851	header_      http.Header
12852}
12853
12854// Get: Gets the value of an API product attribute.
12855//
12856// - name: Name of the API product attribute. Use the following
12857//   structure in your request:
12858//   `organizations/{org}/apiproducts/{apiproduct}/attributes/{attribute}
12859//   `.
12860func (r *OrganizationsApiproductsAttributesService) Get(name string) *OrganizationsApiproductsAttributesGetCall {
12861	c := &OrganizationsApiproductsAttributesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12862	c.name = name
12863	return c
12864}
12865
12866// Fields allows partial responses to be retrieved. See
12867// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12868// for more information.
12869func (c *OrganizationsApiproductsAttributesGetCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsAttributesGetCall {
12870	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12871	return c
12872}
12873
12874// IfNoneMatch sets the optional parameter which makes the operation
12875// fail if the object's ETag matches the given value. This is useful for
12876// getting updates only after the object has changed since the last
12877// request. Use googleapi.IsNotModified to check whether the response
12878// error from Do is the result of In-None-Match.
12879func (c *OrganizationsApiproductsAttributesGetCall) IfNoneMatch(entityTag string) *OrganizationsApiproductsAttributesGetCall {
12880	c.ifNoneMatch_ = entityTag
12881	return c
12882}
12883
12884// Context sets the context to be used in this call's Do method. Any
12885// pending HTTP request will be aborted if the provided context is
12886// canceled.
12887func (c *OrganizationsApiproductsAttributesGetCall) Context(ctx context.Context) *OrganizationsApiproductsAttributesGetCall {
12888	c.ctx_ = ctx
12889	return c
12890}
12891
12892// Header returns an http.Header that can be modified by the caller to
12893// add HTTP headers to the request.
12894func (c *OrganizationsApiproductsAttributesGetCall) Header() http.Header {
12895	if c.header_ == nil {
12896		c.header_ = make(http.Header)
12897	}
12898	return c.header_
12899}
12900
12901func (c *OrganizationsApiproductsAttributesGetCall) doRequest(alt string) (*http.Response, error) {
12902	reqHeaders := make(http.Header)
12903	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
12904	for k, v := range c.header_ {
12905		reqHeaders[k] = v
12906	}
12907	reqHeaders.Set("User-Agent", c.s.userAgent())
12908	if c.ifNoneMatch_ != "" {
12909		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12910	}
12911	var body io.Reader = nil
12912	c.urlParams_.Set("alt", alt)
12913	c.urlParams_.Set("prettyPrint", "false")
12914	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
12915	urls += "?" + c.urlParams_.Encode()
12916	req, err := http.NewRequest("GET", urls, body)
12917	if err != nil {
12918		return nil, err
12919	}
12920	req.Header = reqHeaders
12921	googleapi.Expand(req.URL, map[string]string{
12922		"name": c.name,
12923	})
12924	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12925}
12926
12927// Do executes the "apigee.organizations.apiproducts.attributes.get" call.
12928// Exactly one of *GoogleCloudApigeeV1Attribute or error will be
12929// non-nil. Any non-2xx status code is an error. Response headers are in
12930// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a
12931// response was returned at all) in error.(*googleapi.Error).Header. Use
12932// googleapi.IsNotModified to check whether the returned error was
12933// because http.StatusNotModified was returned.
12934func (c *OrganizationsApiproductsAttributesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
12935	gensupport.SetOptions(c.urlParams_, opts...)
12936	res, err := c.doRequest("json")
12937	if res != nil && res.StatusCode == http.StatusNotModified {
12938		if res.Body != nil {
12939			res.Body.Close()
12940		}
12941		return nil, &googleapi.Error{
12942			Code:   res.StatusCode,
12943			Header: res.Header,
12944		}
12945	}
12946	if err != nil {
12947		return nil, err
12948	}
12949	defer googleapi.CloseBody(res)
12950	if err := googleapi.CheckResponse(res); err != nil {
12951		return nil, err
12952	}
12953	ret := &GoogleCloudApigeeV1Attribute{
12954		ServerResponse: googleapi.ServerResponse{
12955			Header:         res.Header,
12956			HTTPStatusCode: res.StatusCode,
12957		},
12958	}
12959	target := &ret
12960	if err := gensupport.DecodeResponse(target, res); err != nil {
12961		return nil, err
12962	}
12963	return ret, nil
12964	// {
12965	//   "description": "Gets the value of an API product attribute.",
12966	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}/attributes/{attributesId}",
12967	//   "httpMethod": "GET",
12968	//   "id": "apigee.organizations.apiproducts.attributes.get",
12969	//   "parameterOrder": [
12970	//     "name"
12971	//   ],
12972	//   "parameters": {
12973	//     "name": {
12974	//       "description": "Required. Name of the API product attribute. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}/attributes/{attribute}`",
12975	//       "location": "path",
12976	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+/attributes/[^/]+$",
12977	//       "required": true,
12978	//       "type": "string"
12979	//     }
12980	//   },
12981	//   "path": "v1/{+name}",
12982	//   "response": {
12983	//     "$ref": "GoogleCloudApigeeV1Attribute"
12984	//   },
12985	//   "scopes": [
12986	//     "https://www.googleapis.com/auth/cloud-platform"
12987	//   ]
12988	// }
12989
12990}
12991
12992// method id "apigee.organizations.apiproducts.attributes.list":
12993
12994type OrganizationsApiproductsAttributesListCall struct {
12995	s            *Service
12996	parent       string
12997	urlParams_   gensupport.URLParams
12998	ifNoneMatch_ string
12999	ctx_         context.Context
13000	header_      http.Header
13001}
13002
13003// List: Lists all API product attributes.
13004//
13005// - parent: Name of the API product. Use the following structure in
13006//   your request: `organizations/{org}/apiproducts/{apiproduct}`.
13007func (r *OrganizationsApiproductsAttributesService) List(parent string) *OrganizationsApiproductsAttributesListCall {
13008	c := &OrganizationsApiproductsAttributesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13009	c.parent = parent
13010	return c
13011}
13012
13013// Fields allows partial responses to be retrieved. See
13014// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13015// for more information.
13016func (c *OrganizationsApiproductsAttributesListCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsAttributesListCall {
13017	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13018	return c
13019}
13020
13021// IfNoneMatch sets the optional parameter which makes the operation
13022// fail if the object's ETag matches the given value. This is useful for
13023// getting updates only after the object has changed since the last
13024// request. Use googleapi.IsNotModified to check whether the response
13025// error from Do is the result of In-None-Match.
13026func (c *OrganizationsApiproductsAttributesListCall) IfNoneMatch(entityTag string) *OrganizationsApiproductsAttributesListCall {
13027	c.ifNoneMatch_ = entityTag
13028	return c
13029}
13030
13031// Context sets the context to be used in this call's Do method. Any
13032// pending HTTP request will be aborted if the provided context is
13033// canceled.
13034func (c *OrganizationsApiproductsAttributesListCall) Context(ctx context.Context) *OrganizationsApiproductsAttributesListCall {
13035	c.ctx_ = ctx
13036	return c
13037}
13038
13039// Header returns an http.Header that can be modified by the caller to
13040// add HTTP headers to the request.
13041func (c *OrganizationsApiproductsAttributesListCall) Header() http.Header {
13042	if c.header_ == nil {
13043		c.header_ = make(http.Header)
13044	}
13045	return c.header_
13046}
13047
13048func (c *OrganizationsApiproductsAttributesListCall) doRequest(alt string) (*http.Response, error) {
13049	reqHeaders := make(http.Header)
13050	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
13051	for k, v := range c.header_ {
13052		reqHeaders[k] = v
13053	}
13054	reqHeaders.Set("User-Agent", c.s.userAgent())
13055	if c.ifNoneMatch_ != "" {
13056		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13057	}
13058	var body io.Reader = nil
13059	c.urlParams_.Set("alt", alt)
13060	c.urlParams_.Set("prettyPrint", "false")
13061	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attributes")
13062	urls += "?" + c.urlParams_.Encode()
13063	req, err := http.NewRequest("GET", urls, body)
13064	if err != nil {
13065		return nil, err
13066	}
13067	req.Header = reqHeaders
13068	googleapi.Expand(req.URL, map[string]string{
13069		"parent": c.parent,
13070	})
13071	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13072}
13073
13074// Do executes the "apigee.organizations.apiproducts.attributes.list" call.
13075// Exactly one of *GoogleCloudApigeeV1Attributes or error will be
13076// non-nil. Any non-2xx status code is an error. Response headers are in
13077// either *GoogleCloudApigeeV1Attributes.ServerResponse.Header or (if a
13078// response was returned at all) in error.(*googleapi.Error).Header. Use
13079// googleapi.IsNotModified to check whether the returned error was
13080// because http.StatusNotModified was returned.
13081func (c *OrganizationsApiproductsAttributesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attributes, error) {
13082	gensupport.SetOptions(c.urlParams_, opts...)
13083	res, err := c.doRequest("json")
13084	if res != nil && res.StatusCode == http.StatusNotModified {
13085		if res.Body != nil {
13086			res.Body.Close()
13087		}
13088		return nil, &googleapi.Error{
13089			Code:   res.StatusCode,
13090			Header: res.Header,
13091		}
13092	}
13093	if err != nil {
13094		return nil, err
13095	}
13096	defer googleapi.CloseBody(res)
13097	if err := googleapi.CheckResponse(res); err != nil {
13098		return nil, err
13099	}
13100	ret := &GoogleCloudApigeeV1Attributes{
13101		ServerResponse: googleapi.ServerResponse{
13102			Header:         res.Header,
13103			HTTPStatusCode: res.StatusCode,
13104		},
13105	}
13106	target := &ret
13107	if err := gensupport.DecodeResponse(target, res); err != nil {
13108		return nil, err
13109	}
13110	return ret, nil
13111	// {
13112	//   "description": "Lists all API product attributes.",
13113	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}/attributes",
13114	//   "httpMethod": "GET",
13115	//   "id": "apigee.organizations.apiproducts.attributes.list",
13116	//   "parameterOrder": [
13117	//     "parent"
13118	//   ],
13119	//   "parameters": {
13120	//     "parent": {
13121	//       "description": "Required. Name of the API product. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}`",
13122	//       "location": "path",
13123	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+$",
13124	//       "required": true,
13125	//       "type": "string"
13126	//     }
13127	//   },
13128	//   "path": "v1/{+parent}/attributes",
13129	//   "response": {
13130	//     "$ref": "GoogleCloudApigeeV1Attributes"
13131	//   },
13132	//   "scopes": [
13133	//     "https://www.googleapis.com/auth/cloud-platform"
13134	//   ]
13135	// }
13136
13137}
13138
13139// method id "apigee.organizations.apiproducts.attributes.updateApiProductAttribute":
13140
13141type OrganizationsApiproductsAttributesUpdateApiProductAttributeCall struct {
13142	s                            *Service
13143	name                         string
13144	googlecloudapigeev1attribute *GoogleCloudApigeeV1Attribute
13145	urlParams_                   gensupport.URLParams
13146	ctx_                         context.Context
13147	header_                      http.Header
13148}
13149
13150// UpdateApiProductAttribute: Updates the value of an API product
13151// attribute. **Note**: OAuth access tokens and Key Management Service
13152// (KMS) entities (apps, developers, and API products) are cached for
13153// 180 seconds (current default). Any custom attributes associated with
13154// entities also get cached for at least 180 seconds after entity is
13155// accessed during runtime. In this case, the `ExpiresIn` element on the
13156// OAuthV2 policy won't be able to expire an access token in less than
13157// 180 seconds.
13158//
13159// - name: Name of the API product. Use the following structure in your
13160//   request: `organizations/{org}/apiproducts/{apiproduct}`.
13161func (r *OrganizationsApiproductsAttributesService) UpdateApiProductAttribute(name string, googlecloudapigeev1attribute *GoogleCloudApigeeV1Attribute) *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall {
13162	c := &OrganizationsApiproductsAttributesUpdateApiProductAttributeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13163	c.name = name
13164	c.googlecloudapigeev1attribute = googlecloudapigeev1attribute
13165	return c
13166}
13167
13168// Fields allows partial responses to be retrieved. See
13169// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13170// for more information.
13171func (c *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall {
13172	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13173	return c
13174}
13175
13176// Context sets the context to be used in this call's Do method. Any
13177// pending HTTP request will be aborted if the provided context is
13178// canceled.
13179func (c *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall) Context(ctx context.Context) *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall {
13180	c.ctx_ = ctx
13181	return c
13182}
13183
13184// Header returns an http.Header that can be modified by the caller to
13185// add HTTP headers to the request.
13186func (c *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall) Header() http.Header {
13187	if c.header_ == nil {
13188		c.header_ = make(http.Header)
13189	}
13190	return c.header_
13191}
13192
13193func (c *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall) doRequest(alt string) (*http.Response, error) {
13194	reqHeaders := make(http.Header)
13195	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
13196	for k, v := range c.header_ {
13197		reqHeaders[k] = v
13198	}
13199	reqHeaders.Set("User-Agent", c.s.userAgent())
13200	var body io.Reader = nil
13201	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1attribute)
13202	if err != nil {
13203		return nil, err
13204	}
13205	reqHeaders.Set("Content-Type", "application/json")
13206	c.urlParams_.Set("alt", alt)
13207	c.urlParams_.Set("prettyPrint", "false")
13208	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
13209	urls += "?" + c.urlParams_.Encode()
13210	req, err := http.NewRequest("POST", urls, body)
13211	if err != nil {
13212		return nil, err
13213	}
13214	req.Header = reqHeaders
13215	googleapi.Expand(req.URL, map[string]string{
13216		"name": c.name,
13217	})
13218	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13219}
13220
13221// Do executes the "apigee.organizations.apiproducts.attributes.updateApiProductAttribute" call.
13222// Exactly one of *GoogleCloudApigeeV1Attribute or error will be
13223// non-nil. Any non-2xx status code is an error. Response headers are in
13224// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a
13225// response was returned at all) in error.(*googleapi.Error).Header. Use
13226// googleapi.IsNotModified to check whether the returned error was
13227// because http.StatusNotModified was returned.
13228func (c *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
13229	gensupport.SetOptions(c.urlParams_, opts...)
13230	res, err := c.doRequest("json")
13231	if res != nil && res.StatusCode == http.StatusNotModified {
13232		if res.Body != nil {
13233			res.Body.Close()
13234		}
13235		return nil, &googleapi.Error{
13236			Code:   res.StatusCode,
13237			Header: res.Header,
13238		}
13239	}
13240	if err != nil {
13241		return nil, err
13242	}
13243	defer googleapi.CloseBody(res)
13244	if err := googleapi.CheckResponse(res); err != nil {
13245		return nil, err
13246	}
13247	ret := &GoogleCloudApigeeV1Attribute{
13248		ServerResponse: googleapi.ServerResponse{
13249			Header:         res.Header,
13250			HTTPStatusCode: res.StatusCode,
13251		},
13252	}
13253	target := &ret
13254	if err := gensupport.DecodeResponse(target, res); err != nil {
13255		return nil, err
13256	}
13257	return ret, nil
13258	// {
13259	//   "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.",
13260	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}/attributes/{attributesId}",
13261	//   "httpMethod": "POST",
13262	//   "id": "apigee.organizations.apiproducts.attributes.updateApiProductAttribute",
13263	//   "parameterOrder": [
13264	//     "name"
13265	//   ],
13266	//   "parameters": {
13267	//     "name": {
13268	//       "description": "Required. Name of the API product. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}`",
13269	//       "location": "path",
13270	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+/attributes/[^/]+$",
13271	//       "required": true,
13272	//       "type": "string"
13273	//     }
13274	//   },
13275	//   "path": "v1/{+name}",
13276	//   "request": {
13277	//     "$ref": "GoogleCloudApigeeV1Attribute"
13278	//   },
13279	//   "response": {
13280	//     "$ref": "GoogleCloudApigeeV1Attribute"
13281	//   },
13282	//   "scopes": [
13283	//     "https://www.googleapis.com/auth/cloud-platform"
13284	//   ]
13285	// }
13286
13287}
13288
13289// method id "apigee.organizations.apiproducts.rateplans.create":
13290
13291type OrganizationsApiproductsRateplansCreateCall struct {
13292	s                           *Service
13293	parent                      string
13294	googlecloudapigeev1rateplan *GoogleCloudApigeeV1RatePlan
13295	urlParams_                  gensupport.URLParams
13296	ctx_                        context.Context
13297	header_                     http.Header
13298}
13299
13300// Create: Create a rate plan that is associated with an API product in
13301// an organization. Using rate plans, API product owners can monetize
13302// their API products by configuring one or more of the following: -
13303// Billing frequency - Initial setup fees for using an API product -
13304// Payment funding model (postpaid only) - Fixed recurring or
13305// consumption-based charges for using an API product - Revenue sharing
13306// with developer partners An API product can have multiple rate plans
13307// associated with it but *only one* rate plan can be active at any
13308// point of time. **Note: From the developer's perspective, they
13309// purchase API products not rate plans.
13310//
13311// - parent: Name of the API product that is associated with the rate
13312//   plan. Use the following structure in your request:
13313//   `organizations/{org}/apiproducts/{apiproduct}`.
13314func (r *OrganizationsApiproductsRateplansService) Create(parent string, googlecloudapigeev1rateplan *GoogleCloudApigeeV1RatePlan) *OrganizationsApiproductsRateplansCreateCall {
13315	c := &OrganizationsApiproductsRateplansCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13316	c.parent = parent
13317	c.googlecloudapigeev1rateplan = googlecloudapigeev1rateplan
13318	return c
13319}
13320
13321// Fields allows partial responses to be retrieved. See
13322// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13323// for more information.
13324func (c *OrganizationsApiproductsRateplansCreateCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsRateplansCreateCall {
13325	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13326	return c
13327}
13328
13329// Context sets the context to be used in this call's Do method. Any
13330// pending HTTP request will be aborted if the provided context is
13331// canceled.
13332func (c *OrganizationsApiproductsRateplansCreateCall) Context(ctx context.Context) *OrganizationsApiproductsRateplansCreateCall {
13333	c.ctx_ = ctx
13334	return c
13335}
13336
13337// Header returns an http.Header that can be modified by the caller to
13338// add HTTP headers to the request.
13339func (c *OrganizationsApiproductsRateplansCreateCall) Header() http.Header {
13340	if c.header_ == nil {
13341		c.header_ = make(http.Header)
13342	}
13343	return c.header_
13344}
13345
13346func (c *OrganizationsApiproductsRateplansCreateCall) doRequest(alt string) (*http.Response, error) {
13347	reqHeaders := make(http.Header)
13348	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
13349	for k, v := range c.header_ {
13350		reqHeaders[k] = v
13351	}
13352	reqHeaders.Set("User-Agent", c.s.userAgent())
13353	var body io.Reader = nil
13354	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1rateplan)
13355	if err != nil {
13356		return nil, err
13357	}
13358	reqHeaders.Set("Content-Type", "application/json")
13359	c.urlParams_.Set("alt", alt)
13360	c.urlParams_.Set("prettyPrint", "false")
13361	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/rateplans")
13362	urls += "?" + c.urlParams_.Encode()
13363	req, err := http.NewRequest("POST", urls, body)
13364	if err != nil {
13365		return nil, err
13366	}
13367	req.Header = reqHeaders
13368	googleapi.Expand(req.URL, map[string]string{
13369		"parent": c.parent,
13370	})
13371	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13372}
13373
13374// Do executes the "apigee.organizations.apiproducts.rateplans.create" call.
13375// Exactly one of *GoogleCloudApigeeV1RatePlan or error will be non-nil.
13376// Any non-2xx status code is an error. Response headers are in either
13377// *GoogleCloudApigeeV1RatePlan.ServerResponse.Header or (if a response
13378// was returned at all) in error.(*googleapi.Error).Header. Use
13379// googleapi.IsNotModified to check whether the returned error was
13380// because http.StatusNotModified was returned.
13381func (c *OrganizationsApiproductsRateplansCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1RatePlan, error) {
13382	gensupport.SetOptions(c.urlParams_, opts...)
13383	res, err := c.doRequest("json")
13384	if res != nil && res.StatusCode == http.StatusNotModified {
13385		if res.Body != nil {
13386			res.Body.Close()
13387		}
13388		return nil, &googleapi.Error{
13389			Code:   res.StatusCode,
13390			Header: res.Header,
13391		}
13392	}
13393	if err != nil {
13394		return nil, err
13395	}
13396	defer googleapi.CloseBody(res)
13397	if err := googleapi.CheckResponse(res); err != nil {
13398		return nil, err
13399	}
13400	ret := &GoogleCloudApigeeV1RatePlan{
13401		ServerResponse: googleapi.ServerResponse{
13402			Header:         res.Header,
13403			HTTPStatusCode: res.StatusCode,
13404		},
13405	}
13406	target := &ret
13407	if err := gensupport.DecodeResponse(target, res); err != nil {
13408		return nil, err
13409	}
13410	return ret, nil
13411	// {
13412	//   "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.",
13413	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}/rateplans",
13414	//   "httpMethod": "POST",
13415	//   "id": "apigee.organizations.apiproducts.rateplans.create",
13416	//   "parameterOrder": [
13417	//     "parent"
13418	//   ],
13419	//   "parameters": {
13420	//     "parent": {
13421	//       "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}`",
13422	//       "location": "path",
13423	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+$",
13424	//       "required": true,
13425	//       "type": "string"
13426	//     }
13427	//   },
13428	//   "path": "v1/{+parent}/rateplans",
13429	//   "request": {
13430	//     "$ref": "GoogleCloudApigeeV1RatePlan"
13431	//   },
13432	//   "response": {
13433	//     "$ref": "GoogleCloudApigeeV1RatePlan"
13434	//   },
13435	//   "scopes": [
13436	//     "https://www.googleapis.com/auth/cloud-platform"
13437	//   ]
13438	// }
13439
13440}
13441
13442// method id "apigee.organizations.apiproducts.rateplans.delete":
13443
13444type OrganizationsApiproductsRateplansDeleteCall struct {
13445	s          *Service
13446	name       string
13447	urlParams_ gensupport.URLParams
13448	ctx_       context.Context
13449	header_    http.Header
13450}
13451
13452// Delete: Deletes a rate plan.
13453//
13454// - name: ID of the rate plan. Use the following structure in your
13455//   request:
13456//   `organizations/{org}/apiproducts/{apiproduct}/rateplans/{rateplan}`.
13457func (r *OrganizationsApiproductsRateplansService) Delete(name string) *OrganizationsApiproductsRateplansDeleteCall {
13458	c := &OrganizationsApiproductsRateplansDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13459	c.name = name
13460	return c
13461}
13462
13463// Fields allows partial responses to be retrieved. See
13464// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13465// for more information.
13466func (c *OrganizationsApiproductsRateplansDeleteCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsRateplansDeleteCall {
13467	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13468	return c
13469}
13470
13471// Context sets the context to be used in this call's Do method. Any
13472// pending HTTP request will be aborted if the provided context is
13473// canceled.
13474func (c *OrganizationsApiproductsRateplansDeleteCall) Context(ctx context.Context) *OrganizationsApiproductsRateplansDeleteCall {
13475	c.ctx_ = ctx
13476	return c
13477}
13478
13479// Header returns an http.Header that can be modified by the caller to
13480// add HTTP headers to the request.
13481func (c *OrganizationsApiproductsRateplansDeleteCall) Header() http.Header {
13482	if c.header_ == nil {
13483		c.header_ = make(http.Header)
13484	}
13485	return c.header_
13486}
13487
13488func (c *OrganizationsApiproductsRateplansDeleteCall) doRequest(alt string) (*http.Response, error) {
13489	reqHeaders := make(http.Header)
13490	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
13491	for k, v := range c.header_ {
13492		reqHeaders[k] = v
13493	}
13494	reqHeaders.Set("User-Agent", c.s.userAgent())
13495	var body io.Reader = nil
13496	c.urlParams_.Set("alt", alt)
13497	c.urlParams_.Set("prettyPrint", "false")
13498	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
13499	urls += "?" + c.urlParams_.Encode()
13500	req, err := http.NewRequest("DELETE", urls, body)
13501	if err != nil {
13502		return nil, err
13503	}
13504	req.Header = reqHeaders
13505	googleapi.Expand(req.URL, map[string]string{
13506		"name": c.name,
13507	})
13508	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13509}
13510
13511// Do executes the "apigee.organizations.apiproducts.rateplans.delete" call.
13512// Exactly one of *GoogleCloudApigeeV1RatePlan or error will be non-nil.
13513// Any non-2xx status code is an error. Response headers are in either
13514// *GoogleCloudApigeeV1RatePlan.ServerResponse.Header or (if a response
13515// was returned at all) in error.(*googleapi.Error).Header. Use
13516// googleapi.IsNotModified to check whether the returned error was
13517// because http.StatusNotModified was returned.
13518func (c *OrganizationsApiproductsRateplansDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1RatePlan, error) {
13519	gensupport.SetOptions(c.urlParams_, opts...)
13520	res, err := c.doRequest("json")
13521	if res != nil && res.StatusCode == http.StatusNotModified {
13522		if res.Body != nil {
13523			res.Body.Close()
13524		}
13525		return nil, &googleapi.Error{
13526			Code:   res.StatusCode,
13527			Header: res.Header,
13528		}
13529	}
13530	if err != nil {
13531		return nil, err
13532	}
13533	defer googleapi.CloseBody(res)
13534	if err := googleapi.CheckResponse(res); err != nil {
13535		return nil, err
13536	}
13537	ret := &GoogleCloudApigeeV1RatePlan{
13538		ServerResponse: googleapi.ServerResponse{
13539			Header:         res.Header,
13540			HTTPStatusCode: res.StatusCode,
13541		},
13542	}
13543	target := &ret
13544	if err := gensupport.DecodeResponse(target, res); err != nil {
13545		return nil, err
13546	}
13547	return ret, nil
13548	// {
13549	//   "description": "Deletes a rate plan.",
13550	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}/rateplans/{rateplansId}",
13551	//   "httpMethod": "DELETE",
13552	//   "id": "apigee.organizations.apiproducts.rateplans.delete",
13553	//   "parameterOrder": [
13554	//     "name"
13555	//   ],
13556	//   "parameters": {
13557	//     "name": {
13558	//       "description": "Required. ID of the rate plan. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}/rateplans/{rateplan}`",
13559	//       "location": "path",
13560	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+/rateplans/[^/]+$",
13561	//       "required": true,
13562	//       "type": "string"
13563	//     }
13564	//   },
13565	//   "path": "v1/{+name}",
13566	//   "response": {
13567	//     "$ref": "GoogleCloudApigeeV1RatePlan"
13568	//   },
13569	//   "scopes": [
13570	//     "https://www.googleapis.com/auth/cloud-platform"
13571	//   ]
13572	// }
13573
13574}
13575
13576// method id "apigee.organizations.apiproducts.rateplans.get":
13577
13578type OrganizationsApiproductsRateplansGetCall struct {
13579	s            *Service
13580	name         string
13581	urlParams_   gensupport.URLParams
13582	ifNoneMatch_ string
13583	ctx_         context.Context
13584	header_      http.Header
13585}
13586
13587// Get: Gets the details of a rate plan.
13588//
13589// - name: Name of the rate plan. Use the following structure in your
13590//   request:
13591//   `organizations/{org}/apiproducts/{apiproduct}/rateplans/{rateplan}`.
13592func (r *OrganizationsApiproductsRateplansService) Get(name string) *OrganizationsApiproductsRateplansGetCall {
13593	c := &OrganizationsApiproductsRateplansGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13594	c.name = name
13595	return c
13596}
13597
13598// Fields allows partial responses to be retrieved. See
13599// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13600// for more information.
13601func (c *OrganizationsApiproductsRateplansGetCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsRateplansGetCall {
13602	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13603	return c
13604}
13605
13606// IfNoneMatch sets the optional parameter which makes the operation
13607// fail if the object's ETag matches the given value. This is useful for
13608// getting updates only after the object has changed since the last
13609// request. Use googleapi.IsNotModified to check whether the response
13610// error from Do is the result of In-None-Match.
13611func (c *OrganizationsApiproductsRateplansGetCall) IfNoneMatch(entityTag string) *OrganizationsApiproductsRateplansGetCall {
13612	c.ifNoneMatch_ = entityTag
13613	return c
13614}
13615
13616// Context sets the context to be used in this call's Do method. Any
13617// pending HTTP request will be aborted if the provided context is
13618// canceled.
13619func (c *OrganizationsApiproductsRateplansGetCall) Context(ctx context.Context) *OrganizationsApiproductsRateplansGetCall {
13620	c.ctx_ = ctx
13621	return c
13622}
13623
13624// Header returns an http.Header that can be modified by the caller to
13625// add HTTP headers to the request.
13626func (c *OrganizationsApiproductsRateplansGetCall) Header() http.Header {
13627	if c.header_ == nil {
13628		c.header_ = make(http.Header)
13629	}
13630	return c.header_
13631}
13632
13633func (c *OrganizationsApiproductsRateplansGetCall) doRequest(alt string) (*http.Response, error) {
13634	reqHeaders := make(http.Header)
13635	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
13636	for k, v := range c.header_ {
13637		reqHeaders[k] = v
13638	}
13639	reqHeaders.Set("User-Agent", c.s.userAgent())
13640	if c.ifNoneMatch_ != "" {
13641		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13642	}
13643	var body io.Reader = nil
13644	c.urlParams_.Set("alt", alt)
13645	c.urlParams_.Set("prettyPrint", "false")
13646	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
13647	urls += "?" + c.urlParams_.Encode()
13648	req, err := http.NewRequest("GET", urls, body)
13649	if err != nil {
13650		return nil, err
13651	}
13652	req.Header = reqHeaders
13653	googleapi.Expand(req.URL, map[string]string{
13654		"name": c.name,
13655	})
13656	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13657}
13658
13659// Do executes the "apigee.organizations.apiproducts.rateplans.get" call.
13660// Exactly one of *GoogleCloudApigeeV1RatePlan or error will be non-nil.
13661// Any non-2xx status code is an error. Response headers are in either
13662// *GoogleCloudApigeeV1RatePlan.ServerResponse.Header or (if a response
13663// was returned at all) in error.(*googleapi.Error).Header. Use
13664// googleapi.IsNotModified to check whether the returned error was
13665// because http.StatusNotModified was returned.
13666func (c *OrganizationsApiproductsRateplansGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1RatePlan, error) {
13667	gensupport.SetOptions(c.urlParams_, opts...)
13668	res, err := c.doRequest("json")
13669	if res != nil && res.StatusCode == http.StatusNotModified {
13670		if res.Body != nil {
13671			res.Body.Close()
13672		}
13673		return nil, &googleapi.Error{
13674			Code:   res.StatusCode,
13675			Header: res.Header,
13676		}
13677	}
13678	if err != nil {
13679		return nil, err
13680	}
13681	defer googleapi.CloseBody(res)
13682	if err := googleapi.CheckResponse(res); err != nil {
13683		return nil, err
13684	}
13685	ret := &GoogleCloudApigeeV1RatePlan{
13686		ServerResponse: googleapi.ServerResponse{
13687			Header:         res.Header,
13688			HTTPStatusCode: res.StatusCode,
13689		},
13690	}
13691	target := &ret
13692	if err := gensupport.DecodeResponse(target, res); err != nil {
13693		return nil, err
13694	}
13695	return ret, nil
13696	// {
13697	//   "description": "Gets the details of a rate plan.",
13698	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}/rateplans/{rateplansId}",
13699	//   "httpMethod": "GET",
13700	//   "id": "apigee.organizations.apiproducts.rateplans.get",
13701	//   "parameterOrder": [
13702	//     "name"
13703	//   ],
13704	//   "parameters": {
13705	//     "name": {
13706	//       "description": "Required. Name of the rate plan. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}/rateplans/{rateplan}`",
13707	//       "location": "path",
13708	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+/rateplans/[^/]+$",
13709	//       "required": true,
13710	//       "type": "string"
13711	//     }
13712	//   },
13713	//   "path": "v1/{+name}",
13714	//   "response": {
13715	//     "$ref": "GoogleCloudApigeeV1RatePlan"
13716	//   },
13717	//   "scopes": [
13718	//     "https://www.googleapis.com/auth/cloud-platform"
13719	//   ]
13720	// }
13721
13722}
13723
13724// method id "apigee.organizations.apiproducts.rateplans.list":
13725
13726type OrganizationsApiproductsRateplansListCall struct {
13727	s            *Service
13728	parent       string
13729	urlParams_   gensupport.URLParams
13730	ifNoneMatch_ string
13731	ctx_         context.Context
13732	header_      http.Header
13733}
13734
13735// List: Lists all the rate plans for an API product.
13736//
13737// - parent: Name of the API product. Use the following structure in
13738//   your request: `organizations/{org}/apiproducts/{apiproduct}` Use
13739//   `organizations/{org}/apiproducts/-` to return rate plans for all
13740//   API products within the organization.
13741func (r *OrganizationsApiproductsRateplansService) List(parent string) *OrganizationsApiproductsRateplansListCall {
13742	c := &OrganizationsApiproductsRateplansListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13743	c.parent = parent
13744	return c
13745}
13746
13747// Count sets the optional parameter "count": Number of rate plans to
13748// return in the API call. Use with the `startKey` parameter to provide
13749// more targeted filtering. The maximum limit is 1000. Defaults to 100.
13750func (c *OrganizationsApiproductsRateplansListCall) Count(count int64) *OrganizationsApiproductsRateplansListCall {
13751	c.urlParams_.Set("count", fmt.Sprint(count))
13752	return c
13753}
13754
13755// Expand sets the optional parameter "expand": Flag that specifies
13756// whether to expand the results. Set to `true` to get expanded details
13757// about each API. Defaults to `false`.
13758func (c *OrganizationsApiproductsRateplansListCall) Expand(expand bool) *OrganizationsApiproductsRateplansListCall {
13759	c.urlParams_.Set("expand", fmt.Sprint(expand))
13760	return c
13761}
13762
13763// OrderBy sets the optional parameter "orderBy": Name of the attribute
13764// used for sorting. Valid values include: * `name`: Name of the rate
13765// plan. * `state`: State of the rate plan (`DRAFT`, `PUBLISHED`). *
13766// `startTime`: Time when the rate plan becomes active. * `endTime`:
13767// Time when the rate plan expires. **Note**: Not supported by Apigee at
13768// this time.
13769func (c *OrganizationsApiproductsRateplansListCall) OrderBy(orderBy string) *OrganizationsApiproductsRateplansListCall {
13770	c.urlParams_.Set("orderBy", orderBy)
13771	return c
13772}
13773
13774// StartKey sets the optional parameter "startKey": Name of the rate
13775// plan from which to start displaying the list of rate plans. If
13776// omitted, the list starts from the first item. For example, to view
13777// the rate plans from 51-150, set the value of `startKey` to the name
13778// of the 51st rate plan and set the value of `count` to 100.
13779func (c *OrganizationsApiproductsRateplansListCall) StartKey(startKey string) *OrganizationsApiproductsRateplansListCall {
13780	c.urlParams_.Set("startKey", startKey)
13781	return c
13782}
13783
13784// State sets the optional parameter "state": State of the rate plans
13785// (`DRAFT`, `PUBLISHED`) that you want to display.
13786//
13787// Possible values:
13788//   "STATE_UNSPECIFIED" - State of the rate plan is not specified.
13789//   "DRAFT" - Rate plan is in draft mode and only visible to API
13790// providers.
13791//   "PUBLISHED" - Rate plan is published and will become visible to
13792// developers for the configured duration (between `startTime` and
13793// `endTime`).
13794func (c *OrganizationsApiproductsRateplansListCall) State(state string) *OrganizationsApiproductsRateplansListCall {
13795	c.urlParams_.Set("state", state)
13796	return c
13797}
13798
13799// Fields allows partial responses to be retrieved. See
13800// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13801// for more information.
13802func (c *OrganizationsApiproductsRateplansListCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsRateplansListCall {
13803	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13804	return c
13805}
13806
13807// IfNoneMatch sets the optional parameter which makes the operation
13808// fail if the object's ETag matches the given value. This is useful for
13809// getting updates only after the object has changed since the last
13810// request. Use googleapi.IsNotModified to check whether the response
13811// error from Do is the result of In-None-Match.
13812func (c *OrganizationsApiproductsRateplansListCall) IfNoneMatch(entityTag string) *OrganizationsApiproductsRateplansListCall {
13813	c.ifNoneMatch_ = entityTag
13814	return c
13815}
13816
13817// Context sets the context to be used in this call's Do method. Any
13818// pending HTTP request will be aborted if the provided context is
13819// canceled.
13820func (c *OrganizationsApiproductsRateplansListCall) Context(ctx context.Context) *OrganizationsApiproductsRateplansListCall {
13821	c.ctx_ = ctx
13822	return c
13823}
13824
13825// Header returns an http.Header that can be modified by the caller to
13826// add HTTP headers to the request.
13827func (c *OrganizationsApiproductsRateplansListCall) Header() http.Header {
13828	if c.header_ == nil {
13829		c.header_ = make(http.Header)
13830	}
13831	return c.header_
13832}
13833
13834func (c *OrganizationsApiproductsRateplansListCall) doRequest(alt string) (*http.Response, error) {
13835	reqHeaders := make(http.Header)
13836	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
13837	for k, v := range c.header_ {
13838		reqHeaders[k] = v
13839	}
13840	reqHeaders.Set("User-Agent", c.s.userAgent())
13841	if c.ifNoneMatch_ != "" {
13842		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13843	}
13844	var body io.Reader = nil
13845	c.urlParams_.Set("alt", alt)
13846	c.urlParams_.Set("prettyPrint", "false")
13847	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/rateplans")
13848	urls += "?" + c.urlParams_.Encode()
13849	req, err := http.NewRequest("GET", urls, body)
13850	if err != nil {
13851		return nil, err
13852	}
13853	req.Header = reqHeaders
13854	googleapi.Expand(req.URL, map[string]string{
13855		"parent": c.parent,
13856	})
13857	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13858}
13859
13860// Do executes the "apigee.organizations.apiproducts.rateplans.list" call.
13861// Exactly one of *GoogleCloudApigeeV1ListRatePlansResponse or error
13862// will be non-nil. Any non-2xx status code is an error. Response
13863// headers are in either
13864// *GoogleCloudApigeeV1ListRatePlansResponse.ServerResponse.Header or
13865// (if a response was returned at all) in
13866// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
13867// whether the returned error was because http.StatusNotModified was
13868// returned.
13869func (c *OrganizationsApiproductsRateplansListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListRatePlansResponse, error) {
13870	gensupport.SetOptions(c.urlParams_, opts...)
13871	res, err := c.doRequest("json")
13872	if res != nil && res.StatusCode == http.StatusNotModified {
13873		if res.Body != nil {
13874			res.Body.Close()
13875		}
13876		return nil, &googleapi.Error{
13877			Code:   res.StatusCode,
13878			Header: res.Header,
13879		}
13880	}
13881	if err != nil {
13882		return nil, err
13883	}
13884	defer googleapi.CloseBody(res)
13885	if err := googleapi.CheckResponse(res); err != nil {
13886		return nil, err
13887	}
13888	ret := &GoogleCloudApigeeV1ListRatePlansResponse{
13889		ServerResponse: googleapi.ServerResponse{
13890			Header:         res.Header,
13891			HTTPStatusCode: res.StatusCode,
13892		},
13893	}
13894	target := &ret
13895	if err := gensupport.DecodeResponse(target, res); err != nil {
13896		return nil, err
13897	}
13898	return ret, nil
13899	// {
13900	//   "description": "Lists all the rate plans for an API product.",
13901	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}/rateplans",
13902	//   "httpMethod": "GET",
13903	//   "id": "apigee.organizations.apiproducts.rateplans.list",
13904	//   "parameterOrder": [
13905	//     "parent"
13906	//   ],
13907	//   "parameters": {
13908	//     "count": {
13909	//       "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.",
13910	//       "format": "int32",
13911	//       "location": "query",
13912	//       "type": "integer"
13913	//     },
13914	//     "expand": {
13915	//       "description": "Flag that specifies whether to expand the results. Set to `true` to get expanded details about each API. Defaults to `false`.",
13916	//       "location": "query",
13917	//       "type": "boolean"
13918	//     },
13919	//     "orderBy": {
13920	//       "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.",
13921	//       "location": "query",
13922	//       "type": "string"
13923	//     },
13924	//     "parent": {
13925	//       "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.",
13926	//       "location": "path",
13927	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+$",
13928	//       "required": true,
13929	//       "type": "string"
13930	//     },
13931	//     "startKey": {
13932	//       "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.",
13933	//       "location": "query",
13934	//       "type": "string"
13935	//     },
13936	//     "state": {
13937	//       "description": "State of the rate plans (`DRAFT`, `PUBLISHED`) that you want to display.",
13938	//       "enum": [
13939	//         "STATE_UNSPECIFIED",
13940	//         "DRAFT",
13941	//         "PUBLISHED"
13942	//       ],
13943	//       "enumDescriptions": [
13944	//         "State of the rate plan is not specified.",
13945	//         "Rate plan is in draft mode and only visible to API providers.",
13946	//         "Rate plan is published and will become visible to developers for the configured duration (between `startTime` and `endTime`)."
13947	//       ],
13948	//       "location": "query",
13949	//       "type": "string"
13950	//     }
13951	//   },
13952	//   "path": "v1/{+parent}/rateplans",
13953	//   "response": {
13954	//     "$ref": "GoogleCloudApigeeV1ListRatePlansResponse"
13955	//   },
13956	//   "scopes": [
13957	//     "https://www.googleapis.com/auth/cloud-platform"
13958	//   ]
13959	// }
13960
13961}
13962
13963// method id "apigee.organizations.apiproducts.rateplans.update":
13964
13965type OrganizationsApiproductsRateplansUpdateCall struct {
13966	s                           *Service
13967	name                        string
13968	googlecloudapigeev1rateplan *GoogleCloudApigeeV1RatePlan
13969	urlParams_                  gensupport.URLParams
13970	ctx_                        context.Context
13971	header_                     http.Header
13972}
13973
13974// Update: Updates an existing rate plan.
13975//
13976// - name: Name of the rate plan. Use the following structure in your
13977//   request:
13978//   `organizations/{org}/apiproducts/{apiproduct}/rateplans/{rateplan}`.
13979func (r *OrganizationsApiproductsRateplansService) Update(name string, googlecloudapigeev1rateplan *GoogleCloudApigeeV1RatePlan) *OrganizationsApiproductsRateplansUpdateCall {
13980	c := &OrganizationsApiproductsRateplansUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13981	c.name = name
13982	c.googlecloudapigeev1rateplan = googlecloudapigeev1rateplan
13983	return c
13984}
13985
13986// Fields allows partial responses to be retrieved. See
13987// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13988// for more information.
13989func (c *OrganizationsApiproductsRateplansUpdateCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsRateplansUpdateCall {
13990	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13991	return c
13992}
13993
13994// Context sets the context to be used in this call's Do method. Any
13995// pending HTTP request will be aborted if the provided context is
13996// canceled.
13997func (c *OrganizationsApiproductsRateplansUpdateCall) Context(ctx context.Context) *OrganizationsApiproductsRateplansUpdateCall {
13998	c.ctx_ = ctx
13999	return c
14000}
14001
14002// Header returns an http.Header that can be modified by the caller to
14003// add HTTP headers to the request.
14004func (c *OrganizationsApiproductsRateplansUpdateCall) Header() http.Header {
14005	if c.header_ == nil {
14006		c.header_ = make(http.Header)
14007	}
14008	return c.header_
14009}
14010
14011func (c *OrganizationsApiproductsRateplansUpdateCall) doRequest(alt string) (*http.Response, error) {
14012	reqHeaders := make(http.Header)
14013	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
14014	for k, v := range c.header_ {
14015		reqHeaders[k] = v
14016	}
14017	reqHeaders.Set("User-Agent", c.s.userAgent())
14018	var body io.Reader = nil
14019	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1rateplan)
14020	if err != nil {
14021		return nil, err
14022	}
14023	reqHeaders.Set("Content-Type", "application/json")
14024	c.urlParams_.Set("alt", alt)
14025	c.urlParams_.Set("prettyPrint", "false")
14026	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
14027	urls += "?" + c.urlParams_.Encode()
14028	req, err := http.NewRequest("PUT", urls, body)
14029	if err != nil {
14030		return nil, err
14031	}
14032	req.Header = reqHeaders
14033	googleapi.Expand(req.URL, map[string]string{
14034		"name": c.name,
14035	})
14036	return gensupport.SendRequest(c.ctx_, c.s.client, req)
14037}
14038
14039// Do executes the "apigee.organizations.apiproducts.rateplans.update" call.
14040// Exactly one of *GoogleCloudApigeeV1RatePlan or error will be non-nil.
14041// Any non-2xx status code is an error. Response headers are in either
14042// *GoogleCloudApigeeV1RatePlan.ServerResponse.Header or (if a response
14043// was returned at all) in error.(*googleapi.Error).Header. Use
14044// googleapi.IsNotModified to check whether the returned error was
14045// because http.StatusNotModified was returned.
14046func (c *OrganizationsApiproductsRateplansUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1RatePlan, error) {
14047	gensupport.SetOptions(c.urlParams_, opts...)
14048	res, err := c.doRequest("json")
14049	if res != nil && res.StatusCode == http.StatusNotModified {
14050		if res.Body != nil {
14051			res.Body.Close()
14052		}
14053		return nil, &googleapi.Error{
14054			Code:   res.StatusCode,
14055			Header: res.Header,
14056		}
14057	}
14058	if err != nil {
14059		return nil, err
14060	}
14061	defer googleapi.CloseBody(res)
14062	if err := googleapi.CheckResponse(res); err != nil {
14063		return nil, err
14064	}
14065	ret := &GoogleCloudApigeeV1RatePlan{
14066		ServerResponse: googleapi.ServerResponse{
14067			Header:         res.Header,
14068			HTTPStatusCode: res.StatusCode,
14069		},
14070	}
14071	target := &ret
14072	if err := gensupport.DecodeResponse(target, res); err != nil {
14073		return nil, err
14074	}
14075	return ret, nil
14076	// {
14077	//   "description": "Updates an existing rate plan.",
14078	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}/rateplans/{rateplansId}",
14079	//   "httpMethod": "PUT",
14080	//   "id": "apigee.organizations.apiproducts.rateplans.update",
14081	//   "parameterOrder": [
14082	//     "name"
14083	//   ],
14084	//   "parameters": {
14085	//     "name": {
14086	//       "description": "Required. Name of the rate plan. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}/rateplans/{rateplan}`",
14087	//       "location": "path",
14088	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+/rateplans/[^/]+$",
14089	//       "required": true,
14090	//       "type": "string"
14091	//     }
14092	//   },
14093	//   "path": "v1/{+name}",
14094	//   "request": {
14095	//     "$ref": "GoogleCloudApigeeV1RatePlan"
14096	//   },
14097	//   "response": {
14098	//     "$ref": "GoogleCloudApigeeV1RatePlan"
14099	//   },
14100	//   "scopes": [
14101	//     "https://www.googleapis.com/auth/cloud-platform"
14102	//   ]
14103	// }
14104
14105}
14106
14107// method id "apigee.organizations.apis.create":
14108
14109type OrganizationsApisCreateCall struct {
14110	s                 *Service
14111	parent            string
14112	googleapihttpbody *GoogleApiHttpBody
14113	urlParams_        gensupport.URLParams
14114	ctx_              context.Context
14115	header_           http.Header
14116}
14117
14118// Create: Creates an API proxy. The API proxy created will not be
14119// accessible at runtime until it is deployed to an environment. Create
14120// a new API proxy by setting the `name` query parameter to the name of
14121// the API proxy. Import an API proxy configuration bundle stored in zip
14122// format on your local machine to your organization by doing the
14123// following: * Set the `name` query parameter to the name of the API
14124// proxy. * Set the `action` query parameter to `import`. * Set the
14125// `Content-Type` header to `multipart/form-data`. * Pass as a file the
14126// name of API proxy configuration bundle stored in zip format on your
14127// local machine using the `file` form field. **Note**: To validate the
14128// API proxy configuration bundle only without importing it, set the
14129// `action` query parameter to `validate`. When importing an API proxy
14130// configuration bundle, if the API proxy does not exist, it will be
14131// created. If the API proxy exists, then a new revision is created.
14132// Invalid API proxy configurations are rejected, and a list of
14133// validation errors is returned to the client.
14134//
14135// - parent: Name of the organization in the following format:
14136//   `organizations/{org}`.
14137func (r *OrganizationsApisService) Create(parent string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsApisCreateCall {
14138	c := &OrganizationsApisCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14139	c.parent = parent
14140	c.googleapihttpbody = googleapihttpbody
14141	return c
14142}
14143
14144// Action sets the optional parameter "action": Action to perform when
14145// importing an API proxy configuration bundle. Set this parameter to
14146// one of the following values: * `import` to import the API proxy
14147// configuration bundle. * `validate` to validate the API proxy
14148// configuration bundle without importing it.
14149func (c *OrganizationsApisCreateCall) Action(action string) *OrganizationsApisCreateCall {
14150	c.urlParams_.Set("action", action)
14151	return c
14152}
14153
14154// Name sets the optional parameter "name": Name of the API proxy.
14155// Restrict the characters used to: A-Za-z0-9._-
14156func (c *OrganizationsApisCreateCall) Name(name string) *OrganizationsApisCreateCall {
14157	c.urlParams_.Set("name", name)
14158	return c
14159}
14160
14161// Validate sets the optional parameter "validate": Ignored. All uploads
14162// are validated regardless of the value of this field. Maintained for
14163// compatibility with Apigee Edge API.
14164func (c *OrganizationsApisCreateCall) Validate(validate bool) *OrganizationsApisCreateCall {
14165	c.urlParams_.Set("validate", fmt.Sprint(validate))
14166	return c
14167}
14168
14169// Fields allows partial responses to be retrieved. See
14170// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
14171// for more information.
14172func (c *OrganizationsApisCreateCall) Fields(s ...googleapi.Field) *OrganizationsApisCreateCall {
14173	c.urlParams_.Set("fields", googleapi.CombineFields(s))
14174	return c
14175}
14176
14177// Context sets the context to be used in this call's Do method. Any
14178// pending HTTP request will be aborted if the provided context is
14179// canceled.
14180func (c *OrganizationsApisCreateCall) Context(ctx context.Context) *OrganizationsApisCreateCall {
14181	c.ctx_ = ctx
14182	return c
14183}
14184
14185// Header returns an http.Header that can be modified by the caller to
14186// add HTTP headers to the request.
14187func (c *OrganizationsApisCreateCall) Header() http.Header {
14188	if c.header_ == nil {
14189		c.header_ = make(http.Header)
14190	}
14191	return c.header_
14192}
14193
14194func (c *OrganizationsApisCreateCall) doRequest(alt string) (*http.Response, error) {
14195	reqHeaders := make(http.Header)
14196	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
14197	for k, v := range c.header_ {
14198		reqHeaders[k] = v
14199	}
14200	reqHeaders.Set("User-Agent", c.s.userAgent())
14201	var body io.Reader = nil
14202	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
14203	if err != nil {
14204		return nil, err
14205	}
14206	reqHeaders.Set("Content-Type", "application/json")
14207	c.urlParams_.Set("alt", alt)
14208	c.urlParams_.Set("prettyPrint", "false")
14209	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apis")
14210	urls += "?" + c.urlParams_.Encode()
14211	req, err := http.NewRequest("POST", urls, body)
14212	if err != nil {
14213		return nil, err
14214	}
14215	req.Header = reqHeaders
14216	googleapi.Expand(req.URL, map[string]string{
14217		"parent": c.parent,
14218	})
14219	return gensupport.SendRequest(c.ctx_, c.s.client, req)
14220}
14221
14222// Do executes the "apigee.organizations.apis.create" call.
14223// Exactly one of *GoogleCloudApigeeV1ApiProxyRevision or error will be
14224// non-nil. Any non-2xx status code is an error. Response headers are in
14225// either *GoogleCloudApigeeV1ApiProxyRevision.ServerResponse.Header or
14226// (if a response was returned at all) in
14227// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
14228// whether the returned error was because http.StatusNotModified was
14229// returned.
14230func (c *OrganizationsApisCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProxyRevision, error) {
14231	gensupport.SetOptions(c.urlParams_, opts...)
14232	res, err := c.doRequest("json")
14233	if res != nil && res.StatusCode == http.StatusNotModified {
14234		if res.Body != nil {
14235			res.Body.Close()
14236		}
14237		return nil, &googleapi.Error{
14238			Code:   res.StatusCode,
14239			Header: res.Header,
14240		}
14241	}
14242	if err != nil {
14243		return nil, err
14244	}
14245	defer googleapi.CloseBody(res)
14246	if err := googleapi.CheckResponse(res); err != nil {
14247		return nil, err
14248	}
14249	ret := &GoogleCloudApigeeV1ApiProxyRevision{
14250		ServerResponse: googleapi.ServerResponse{
14251			Header:         res.Header,
14252			HTTPStatusCode: res.StatusCode,
14253		},
14254	}
14255	target := &ret
14256	if err := gensupport.DecodeResponse(target, res); err != nil {
14257		return nil, err
14258	}
14259	return ret, nil
14260	// {
14261	//   "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.",
14262	//   "flatPath": "v1/organizations/{organizationsId}/apis",
14263	//   "httpMethod": "POST",
14264	//   "id": "apigee.organizations.apis.create",
14265	//   "parameterOrder": [
14266	//     "parent"
14267	//   ],
14268	//   "parameters": {
14269	//     "action": {
14270	//       "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.",
14271	//       "location": "query",
14272	//       "type": "string"
14273	//     },
14274	//     "name": {
14275	//       "description": "Name of the API proxy. Restrict the characters used to: A-Za-z0-9._-",
14276	//       "location": "query",
14277	//       "type": "string"
14278	//     },
14279	//     "parent": {
14280	//       "description": "Required. Name of the organization in the following format: `organizations/{org}`",
14281	//       "location": "path",
14282	//       "pattern": "^organizations/[^/]+$",
14283	//       "required": true,
14284	//       "type": "string"
14285	//     },
14286	//     "validate": {
14287	//       "description": "Ignored. All uploads are validated regardless of the value of this field. Maintained for compatibility with Apigee Edge API.",
14288	//       "location": "query",
14289	//       "type": "boolean"
14290	//     }
14291	//   },
14292	//   "path": "v1/{+parent}/apis",
14293	//   "request": {
14294	//     "$ref": "GoogleApiHttpBody"
14295	//   },
14296	//   "response": {
14297	//     "$ref": "GoogleCloudApigeeV1ApiProxyRevision"
14298	//   },
14299	//   "scopes": [
14300	//     "https://www.googleapis.com/auth/cloud-platform"
14301	//   ]
14302	// }
14303
14304}
14305
14306// method id "apigee.organizations.apis.delete":
14307
14308type OrganizationsApisDeleteCall struct {
14309	s          *Service
14310	name       string
14311	urlParams_ gensupport.URLParams
14312	ctx_       context.Context
14313	header_    http.Header
14314}
14315
14316// Delete: Deletes an API proxy and all associated endpoints, policies,
14317// resources, and revisions. The API proxy must be undeployed before you
14318// can delete it.
14319//
14320// - name: Name of the API proxy in the following format:
14321//   `organizations/{org}/apis/{api}`.
14322func (r *OrganizationsApisService) Delete(name string) *OrganizationsApisDeleteCall {
14323	c := &OrganizationsApisDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14324	c.name = name
14325	return c
14326}
14327
14328// Fields allows partial responses to be retrieved. See
14329// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
14330// for more information.
14331func (c *OrganizationsApisDeleteCall) Fields(s ...googleapi.Field) *OrganizationsApisDeleteCall {
14332	c.urlParams_.Set("fields", googleapi.CombineFields(s))
14333	return c
14334}
14335
14336// Context sets the context to be used in this call's Do method. Any
14337// pending HTTP request will be aborted if the provided context is
14338// canceled.
14339func (c *OrganizationsApisDeleteCall) Context(ctx context.Context) *OrganizationsApisDeleteCall {
14340	c.ctx_ = ctx
14341	return c
14342}
14343
14344// Header returns an http.Header that can be modified by the caller to
14345// add HTTP headers to the request.
14346func (c *OrganizationsApisDeleteCall) Header() http.Header {
14347	if c.header_ == nil {
14348		c.header_ = make(http.Header)
14349	}
14350	return c.header_
14351}
14352
14353func (c *OrganizationsApisDeleteCall) doRequest(alt string) (*http.Response, error) {
14354	reqHeaders := make(http.Header)
14355	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
14356	for k, v := range c.header_ {
14357		reqHeaders[k] = v
14358	}
14359	reqHeaders.Set("User-Agent", c.s.userAgent())
14360	var body io.Reader = nil
14361	c.urlParams_.Set("alt", alt)
14362	c.urlParams_.Set("prettyPrint", "false")
14363	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
14364	urls += "?" + c.urlParams_.Encode()
14365	req, err := http.NewRequest("DELETE", urls, body)
14366	if err != nil {
14367		return nil, err
14368	}
14369	req.Header = reqHeaders
14370	googleapi.Expand(req.URL, map[string]string{
14371		"name": c.name,
14372	})
14373	return gensupport.SendRequest(c.ctx_, c.s.client, req)
14374}
14375
14376// Do executes the "apigee.organizations.apis.delete" call.
14377// Exactly one of *GoogleCloudApigeeV1ApiProxy or error will be non-nil.
14378// Any non-2xx status code is an error. Response headers are in either
14379// *GoogleCloudApigeeV1ApiProxy.ServerResponse.Header or (if a response
14380// was returned at all) in error.(*googleapi.Error).Header. Use
14381// googleapi.IsNotModified to check whether the returned error was
14382// because http.StatusNotModified was returned.
14383func (c *OrganizationsApisDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProxy, error) {
14384	gensupport.SetOptions(c.urlParams_, opts...)
14385	res, err := c.doRequest("json")
14386	if res != nil && res.StatusCode == http.StatusNotModified {
14387		if res.Body != nil {
14388			res.Body.Close()
14389		}
14390		return nil, &googleapi.Error{
14391			Code:   res.StatusCode,
14392			Header: res.Header,
14393		}
14394	}
14395	if err != nil {
14396		return nil, err
14397	}
14398	defer googleapi.CloseBody(res)
14399	if err := googleapi.CheckResponse(res); err != nil {
14400		return nil, err
14401	}
14402	ret := &GoogleCloudApigeeV1ApiProxy{
14403		ServerResponse: googleapi.ServerResponse{
14404			Header:         res.Header,
14405			HTTPStatusCode: res.StatusCode,
14406		},
14407	}
14408	target := &ret
14409	if err := gensupport.DecodeResponse(target, res); err != nil {
14410		return nil, err
14411	}
14412	return ret, nil
14413	// {
14414	//   "description": "Deletes an API proxy and all associated endpoints, policies, resources, and revisions. The API proxy must be undeployed before you can delete it.",
14415	//   "flatPath": "v1/organizations/{organizationsId}/apis/{apisId}",
14416	//   "httpMethod": "DELETE",
14417	//   "id": "apigee.organizations.apis.delete",
14418	//   "parameterOrder": [
14419	//     "name"
14420	//   ],
14421	//   "parameters": {
14422	//     "name": {
14423	//       "description": "Required. Name of the API proxy in the following format: `organizations/{org}/apis/{api}`",
14424	//       "location": "path",
14425	//       "pattern": "^organizations/[^/]+/apis/[^/]+$",
14426	//       "required": true,
14427	//       "type": "string"
14428	//     }
14429	//   },
14430	//   "path": "v1/{+name}",
14431	//   "response": {
14432	//     "$ref": "GoogleCloudApigeeV1ApiProxy"
14433	//   },
14434	//   "scopes": [
14435	//     "https://www.googleapis.com/auth/cloud-platform"
14436	//   ]
14437	// }
14438
14439}
14440
14441// method id "apigee.organizations.apis.get":
14442
14443type OrganizationsApisGetCall struct {
14444	s            *Service
14445	name         string
14446	urlParams_   gensupport.URLParams
14447	ifNoneMatch_ string
14448	ctx_         context.Context
14449	header_      http.Header
14450}
14451
14452// Get: Gets an API proxy including a list of existing revisions.
14453//
14454// - name: Name of the API proxy in the following format:
14455//   `organizations/{org}/apis/{api}`.
14456func (r *OrganizationsApisService) Get(name string) *OrganizationsApisGetCall {
14457	c := &OrganizationsApisGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14458	c.name = name
14459	return c
14460}
14461
14462// Fields allows partial responses to be retrieved. See
14463// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
14464// for more information.
14465func (c *OrganizationsApisGetCall) Fields(s ...googleapi.Field) *OrganizationsApisGetCall {
14466	c.urlParams_.Set("fields", googleapi.CombineFields(s))
14467	return c
14468}
14469
14470// IfNoneMatch sets the optional parameter which makes the operation
14471// fail if the object's ETag matches the given value. This is useful for
14472// getting updates only after the object has changed since the last
14473// request. Use googleapi.IsNotModified to check whether the response
14474// error from Do is the result of In-None-Match.
14475func (c *OrganizationsApisGetCall) IfNoneMatch(entityTag string) *OrganizationsApisGetCall {
14476	c.ifNoneMatch_ = entityTag
14477	return c
14478}
14479
14480// Context sets the context to be used in this call's Do method. Any
14481// pending HTTP request will be aborted if the provided context is
14482// canceled.
14483func (c *OrganizationsApisGetCall) Context(ctx context.Context) *OrganizationsApisGetCall {
14484	c.ctx_ = ctx
14485	return c
14486}
14487
14488// Header returns an http.Header that can be modified by the caller to
14489// add HTTP headers to the request.
14490func (c *OrganizationsApisGetCall) Header() http.Header {
14491	if c.header_ == nil {
14492		c.header_ = make(http.Header)
14493	}
14494	return c.header_
14495}
14496
14497func (c *OrganizationsApisGetCall) doRequest(alt string) (*http.Response, error) {
14498	reqHeaders := make(http.Header)
14499	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
14500	for k, v := range c.header_ {
14501		reqHeaders[k] = v
14502	}
14503	reqHeaders.Set("User-Agent", c.s.userAgent())
14504	if c.ifNoneMatch_ != "" {
14505		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14506	}
14507	var body io.Reader = nil
14508	c.urlParams_.Set("alt", alt)
14509	c.urlParams_.Set("prettyPrint", "false")
14510	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
14511	urls += "?" + c.urlParams_.Encode()
14512	req, err := http.NewRequest("GET", urls, body)
14513	if err != nil {
14514		return nil, err
14515	}
14516	req.Header = reqHeaders
14517	googleapi.Expand(req.URL, map[string]string{
14518		"name": c.name,
14519	})
14520	return gensupport.SendRequest(c.ctx_, c.s.client, req)
14521}
14522
14523// Do executes the "apigee.organizations.apis.get" call.
14524// Exactly one of *GoogleCloudApigeeV1ApiProxy or error will be non-nil.
14525// Any non-2xx status code is an error. Response headers are in either
14526// *GoogleCloudApigeeV1ApiProxy.ServerResponse.Header or (if a response
14527// was returned at all) in error.(*googleapi.Error).Header. Use
14528// googleapi.IsNotModified to check whether the returned error was
14529// because http.StatusNotModified was returned.
14530func (c *OrganizationsApisGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProxy, error) {
14531	gensupport.SetOptions(c.urlParams_, opts...)
14532	res, err := c.doRequest("json")
14533	if res != nil && res.StatusCode == http.StatusNotModified {
14534		if res.Body != nil {
14535			res.Body.Close()
14536		}
14537		return nil, &googleapi.Error{
14538			Code:   res.StatusCode,
14539			Header: res.Header,
14540		}
14541	}
14542	if err != nil {
14543		return nil, err
14544	}
14545	defer googleapi.CloseBody(res)
14546	if err := googleapi.CheckResponse(res); err != nil {
14547		return nil, err
14548	}
14549	ret := &GoogleCloudApigeeV1ApiProxy{
14550		ServerResponse: googleapi.ServerResponse{
14551			Header:         res.Header,
14552			HTTPStatusCode: res.StatusCode,
14553		},
14554	}
14555	target := &ret
14556	if err := gensupport.DecodeResponse(target, res); err != nil {
14557		return nil, err
14558	}
14559	return ret, nil
14560	// {
14561	//   "description": "Gets an API proxy including a list of existing revisions.",
14562	//   "flatPath": "v1/organizations/{organizationsId}/apis/{apisId}",
14563	//   "httpMethod": "GET",
14564	//   "id": "apigee.organizations.apis.get",
14565	//   "parameterOrder": [
14566	//     "name"
14567	//   ],
14568	//   "parameters": {
14569	//     "name": {
14570	//       "description": "Required. Name of the API proxy in the following format: `organizations/{org}/apis/{api}`",
14571	//       "location": "path",
14572	//       "pattern": "^organizations/[^/]+/apis/[^/]+$",
14573	//       "required": true,
14574	//       "type": "string"
14575	//     }
14576	//   },
14577	//   "path": "v1/{+name}",
14578	//   "response": {
14579	//     "$ref": "GoogleCloudApigeeV1ApiProxy"
14580	//   },
14581	//   "scopes": [
14582	//     "https://www.googleapis.com/auth/cloud-platform"
14583	//   ]
14584	// }
14585
14586}
14587
14588// method id "apigee.organizations.apis.list":
14589
14590type OrganizationsApisListCall struct {
14591	s            *Service
14592	parent       string
14593	urlParams_   gensupport.URLParams
14594	ifNoneMatch_ string
14595	ctx_         context.Context
14596	header_      http.Header
14597}
14598
14599// List: Lists the names of all API proxies in an organization. The
14600// names returned correspond to the names defined in the configuration
14601// files for each API proxy.
14602//
14603// - parent: Name of the organization in the following format:
14604//   `organizations/{org}`.
14605func (r *OrganizationsApisService) List(parent string) *OrganizationsApisListCall {
14606	c := &OrganizationsApisListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14607	c.parent = parent
14608	return c
14609}
14610
14611// IncludeMetaData sets the optional parameter "includeMetaData": Flag
14612// that specifies whether to include API proxy metadata in the response.
14613func (c *OrganizationsApisListCall) IncludeMetaData(includeMetaData bool) *OrganizationsApisListCall {
14614	c.urlParams_.Set("includeMetaData", fmt.Sprint(includeMetaData))
14615	return c
14616}
14617
14618// IncludeRevisions sets the optional parameter "includeRevisions": Flag
14619// that specifies whether to include a list of revisions in the
14620// response.
14621func (c *OrganizationsApisListCall) IncludeRevisions(includeRevisions bool) *OrganizationsApisListCall {
14622	c.urlParams_.Set("includeRevisions", fmt.Sprint(includeRevisions))
14623	return c
14624}
14625
14626// Fields allows partial responses to be retrieved. See
14627// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
14628// for more information.
14629func (c *OrganizationsApisListCall) Fields(s ...googleapi.Field) *OrganizationsApisListCall {
14630	c.urlParams_.Set("fields", googleapi.CombineFields(s))
14631	return c
14632}
14633
14634// IfNoneMatch sets the optional parameter which makes the operation
14635// fail if the object's ETag matches the given value. This is useful for
14636// getting updates only after the object has changed since the last
14637// request. Use googleapi.IsNotModified to check whether the response
14638// error from Do is the result of In-None-Match.
14639func (c *OrganizationsApisListCall) IfNoneMatch(entityTag string) *OrganizationsApisListCall {
14640	c.ifNoneMatch_ = entityTag
14641	return c
14642}
14643
14644// Context sets the context to be used in this call's Do method. Any
14645// pending HTTP request will be aborted if the provided context is
14646// canceled.
14647func (c *OrganizationsApisListCall) Context(ctx context.Context) *OrganizationsApisListCall {
14648	c.ctx_ = ctx
14649	return c
14650}
14651
14652// Header returns an http.Header that can be modified by the caller to
14653// add HTTP headers to the request.
14654func (c *OrganizationsApisListCall) Header() http.Header {
14655	if c.header_ == nil {
14656		c.header_ = make(http.Header)
14657	}
14658	return c.header_
14659}
14660
14661func (c *OrganizationsApisListCall) doRequest(alt string) (*http.Response, error) {
14662	reqHeaders := make(http.Header)
14663	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
14664	for k, v := range c.header_ {
14665		reqHeaders[k] = v
14666	}
14667	reqHeaders.Set("User-Agent", c.s.userAgent())
14668	if c.ifNoneMatch_ != "" {
14669		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14670	}
14671	var body io.Reader = nil
14672	c.urlParams_.Set("alt", alt)
14673	c.urlParams_.Set("prettyPrint", "false")
14674	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apis")
14675	urls += "?" + c.urlParams_.Encode()
14676	req, err := http.NewRequest("GET", urls, body)
14677	if err != nil {
14678		return nil, err
14679	}
14680	req.Header = reqHeaders
14681	googleapi.Expand(req.URL, map[string]string{
14682		"parent": c.parent,
14683	})
14684	return gensupport.SendRequest(c.ctx_, c.s.client, req)
14685}
14686
14687// Do executes the "apigee.organizations.apis.list" call.
14688// Exactly one of *GoogleCloudApigeeV1ListApiProxiesResponse or error
14689// will be non-nil. Any non-2xx status code is an error. Response
14690// headers are in either
14691// *GoogleCloudApigeeV1ListApiProxiesResponse.ServerResponse.Header or
14692// (if a response was returned at all) in
14693// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
14694// whether the returned error was because http.StatusNotModified was
14695// returned.
14696func (c *OrganizationsApisListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListApiProxiesResponse, error) {
14697	gensupport.SetOptions(c.urlParams_, opts...)
14698	res, err := c.doRequest("json")
14699	if res != nil && res.StatusCode == http.StatusNotModified {
14700		if res.Body != nil {
14701			res.Body.Close()
14702		}
14703		return nil, &googleapi.Error{
14704			Code:   res.StatusCode,
14705			Header: res.Header,
14706		}
14707	}
14708	if err != nil {
14709		return nil, err
14710	}
14711	defer googleapi.CloseBody(res)
14712	if err := googleapi.CheckResponse(res); err != nil {
14713		return nil, err
14714	}
14715	ret := &GoogleCloudApigeeV1ListApiProxiesResponse{
14716		ServerResponse: googleapi.ServerResponse{
14717			Header:         res.Header,
14718			HTTPStatusCode: res.StatusCode,
14719		},
14720	}
14721	target := &ret
14722	if err := gensupport.DecodeResponse(target, res); err != nil {
14723		return nil, err
14724	}
14725	return ret, nil
14726	// {
14727	//   "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.",
14728	//   "flatPath": "v1/organizations/{organizationsId}/apis",
14729	//   "httpMethod": "GET",
14730	//   "id": "apigee.organizations.apis.list",
14731	//   "parameterOrder": [
14732	//     "parent"
14733	//   ],
14734	//   "parameters": {
14735	//     "includeMetaData": {
14736	//       "description": "Flag that specifies whether to include API proxy metadata in the response.",
14737	//       "location": "query",
14738	//       "type": "boolean"
14739	//     },
14740	//     "includeRevisions": {
14741	//       "description": "Flag that specifies whether to include a list of revisions in the response.",
14742	//       "location": "query",
14743	//       "type": "boolean"
14744	//     },
14745	//     "parent": {
14746	//       "description": "Required. Name of the organization in the following format: `organizations/{org}`",
14747	//       "location": "path",
14748	//       "pattern": "^organizations/[^/]+$",
14749	//       "required": true,
14750	//       "type": "string"
14751	//     }
14752	//   },
14753	//   "path": "v1/{+parent}/apis",
14754	//   "response": {
14755	//     "$ref": "GoogleCloudApigeeV1ListApiProxiesResponse"
14756	//   },
14757	//   "scopes": [
14758	//     "https://www.googleapis.com/auth/cloud-platform"
14759	//   ]
14760	// }
14761
14762}
14763
14764// method id "apigee.organizations.apis.deployments.list":
14765
14766type OrganizationsApisDeploymentsListCall struct {
14767	s            *Service
14768	parent       string
14769	urlParams_   gensupport.URLParams
14770	ifNoneMatch_ string
14771	ctx_         context.Context
14772	header_      http.Header
14773}
14774
14775// List: Lists all deployments of an API proxy.
14776//
14777// - parent: Name of the API proxy for which to return deployment
14778//   information in the following format:
14779//   `organizations/{org}/apis/{api}`.
14780func (r *OrganizationsApisDeploymentsService) List(parent string) *OrganizationsApisDeploymentsListCall {
14781	c := &OrganizationsApisDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14782	c.parent = parent
14783	return c
14784}
14785
14786// Fields allows partial responses to be retrieved. See
14787// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
14788// for more information.
14789func (c *OrganizationsApisDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsApisDeploymentsListCall {
14790	c.urlParams_.Set("fields", googleapi.CombineFields(s))
14791	return c
14792}
14793
14794// IfNoneMatch sets the optional parameter which makes the operation
14795// fail if the object's ETag matches the given value. This is useful for
14796// getting updates only after the object has changed since the last
14797// request. Use googleapi.IsNotModified to check whether the response
14798// error from Do is the result of In-None-Match.
14799func (c *OrganizationsApisDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsApisDeploymentsListCall {
14800	c.ifNoneMatch_ = entityTag
14801	return c
14802}
14803
14804// Context sets the context to be used in this call's Do method. Any
14805// pending HTTP request will be aborted if the provided context is
14806// canceled.
14807func (c *OrganizationsApisDeploymentsListCall) Context(ctx context.Context) *OrganizationsApisDeploymentsListCall {
14808	c.ctx_ = ctx
14809	return c
14810}
14811
14812// Header returns an http.Header that can be modified by the caller to
14813// add HTTP headers to the request.
14814func (c *OrganizationsApisDeploymentsListCall) Header() http.Header {
14815	if c.header_ == nil {
14816		c.header_ = make(http.Header)
14817	}
14818	return c.header_
14819}
14820
14821func (c *OrganizationsApisDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
14822	reqHeaders := make(http.Header)
14823	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
14824	for k, v := range c.header_ {
14825		reqHeaders[k] = v
14826	}
14827	reqHeaders.Set("User-Agent", c.s.userAgent())
14828	if c.ifNoneMatch_ != "" {
14829		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14830	}
14831	var body io.Reader = nil
14832	c.urlParams_.Set("alt", alt)
14833	c.urlParams_.Set("prettyPrint", "false")
14834	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
14835	urls += "?" + c.urlParams_.Encode()
14836	req, err := http.NewRequest("GET", urls, body)
14837	if err != nil {
14838		return nil, err
14839	}
14840	req.Header = reqHeaders
14841	googleapi.Expand(req.URL, map[string]string{
14842		"parent": c.parent,
14843	})
14844	return gensupport.SendRequest(c.ctx_, c.s.client, req)
14845}
14846
14847// Do executes the "apigee.organizations.apis.deployments.list" call.
14848// Exactly one of *GoogleCloudApigeeV1ListDeploymentsResponse or error
14849// will be non-nil. Any non-2xx status code is an error. Response
14850// headers are in either
14851// *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or
14852// (if a response was returned at all) in
14853// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
14854// whether the returned error was because http.StatusNotModified was
14855// returned.
14856func (c *OrganizationsApisDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
14857	gensupport.SetOptions(c.urlParams_, opts...)
14858	res, err := c.doRequest("json")
14859	if res != nil && res.StatusCode == http.StatusNotModified {
14860		if res.Body != nil {
14861			res.Body.Close()
14862		}
14863		return nil, &googleapi.Error{
14864			Code:   res.StatusCode,
14865			Header: res.Header,
14866		}
14867	}
14868	if err != nil {
14869		return nil, err
14870	}
14871	defer googleapi.CloseBody(res)
14872	if err := googleapi.CheckResponse(res); err != nil {
14873		return nil, err
14874	}
14875	ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
14876		ServerResponse: googleapi.ServerResponse{
14877			Header:         res.Header,
14878			HTTPStatusCode: res.StatusCode,
14879		},
14880	}
14881	target := &ret
14882	if err := gensupport.DecodeResponse(target, res); err != nil {
14883		return nil, err
14884	}
14885	return ret, nil
14886	// {
14887	//   "description": "Lists all deployments of an API proxy.",
14888	//   "flatPath": "v1/organizations/{organizationsId}/apis/{apisId}/deployments",
14889	//   "httpMethod": "GET",
14890	//   "id": "apigee.organizations.apis.deployments.list",
14891	//   "parameterOrder": [
14892	//     "parent"
14893	//   ],
14894	//   "parameters": {
14895	//     "parent": {
14896	//       "description": "Required. Name of the API proxy for which to return deployment information in the following format: `organizations/{org}/apis/{api}`",
14897	//       "location": "path",
14898	//       "pattern": "^organizations/[^/]+/apis/[^/]+$",
14899	//       "required": true,
14900	//       "type": "string"
14901	//     }
14902	//   },
14903	//   "path": "v1/{+parent}/deployments",
14904	//   "response": {
14905	//     "$ref": "GoogleCloudApigeeV1ListDeploymentsResponse"
14906	//   },
14907	//   "scopes": [
14908	//     "https://www.googleapis.com/auth/cloud-platform"
14909	//   ]
14910	// }
14911
14912}
14913
14914// method id "apigee.organizations.apis.keyvaluemaps.create":
14915
14916type OrganizationsApisKeyvaluemapsCreateCall struct {
14917	s                              *Service
14918	parent                         string
14919	googlecloudapigeev1keyvaluemap *GoogleCloudApigeeV1KeyValueMap
14920	urlParams_                     gensupport.URLParams
14921	ctx_                           context.Context
14922	header_                        http.Header
14923}
14924
14925// Create: Creates a key value map in an api proxy.
14926//
14927// - parent: The name of the environment in which to create the key
14928//   value map. Must be of the form
14929//   `organizations/{organization}/apis/{api}`.
14930func (r *OrganizationsApisKeyvaluemapsService) Create(parent string, googlecloudapigeev1keyvaluemap *GoogleCloudApigeeV1KeyValueMap) *OrganizationsApisKeyvaluemapsCreateCall {
14931	c := &OrganizationsApisKeyvaluemapsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14932	c.parent = parent
14933	c.googlecloudapigeev1keyvaluemap = googlecloudapigeev1keyvaluemap
14934	return c
14935}
14936
14937// Fields allows partial responses to be retrieved. See
14938// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
14939// for more information.
14940func (c *OrganizationsApisKeyvaluemapsCreateCall) Fields(s ...googleapi.Field) *OrganizationsApisKeyvaluemapsCreateCall {
14941	c.urlParams_.Set("fields", googleapi.CombineFields(s))
14942	return c
14943}
14944
14945// Context sets the context to be used in this call's Do method. Any
14946// pending HTTP request will be aborted if the provided context is
14947// canceled.
14948func (c *OrganizationsApisKeyvaluemapsCreateCall) Context(ctx context.Context) *OrganizationsApisKeyvaluemapsCreateCall {
14949	c.ctx_ = ctx
14950	return c
14951}
14952
14953// Header returns an http.Header that can be modified by the caller to
14954// add HTTP headers to the request.
14955func (c *OrganizationsApisKeyvaluemapsCreateCall) Header() http.Header {
14956	if c.header_ == nil {
14957		c.header_ = make(http.Header)
14958	}
14959	return c.header_
14960}
14961
14962func (c *OrganizationsApisKeyvaluemapsCreateCall) doRequest(alt string) (*http.Response, error) {
14963	reqHeaders := make(http.Header)
14964	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
14965	for k, v := range c.header_ {
14966		reqHeaders[k] = v
14967	}
14968	reqHeaders.Set("User-Agent", c.s.userAgent())
14969	var body io.Reader = nil
14970	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1keyvaluemap)
14971	if err != nil {
14972		return nil, err
14973	}
14974	reqHeaders.Set("Content-Type", "application/json")
14975	c.urlParams_.Set("alt", alt)
14976	c.urlParams_.Set("prettyPrint", "false")
14977	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keyvaluemaps")
14978	urls += "?" + c.urlParams_.Encode()
14979	req, err := http.NewRequest("POST", urls, body)
14980	if err != nil {
14981		return nil, err
14982	}
14983	req.Header = reqHeaders
14984	googleapi.Expand(req.URL, map[string]string{
14985		"parent": c.parent,
14986	})
14987	return gensupport.SendRequest(c.ctx_, c.s.client, req)
14988}
14989
14990// Do executes the "apigee.organizations.apis.keyvaluemaps.create" call.
14991// Exactly one of *GoogleCloudApigeeV1KeyValueMap or error will be
14992// non-nil. Any non-2xx status code is an error. Response headers are in
14993// either *GoogleCloudApigeeV1KeyValueMap.ServerResponse.Header or (if a
14994// response was returned at all) in error.(*googleapi.Error).Header. Use
14995// googleapi.IsNotModified to check whether the returned error was
14996// because http.StatusNotModified was returned.
14997func (c *OrganizationsApisKeyvaluemapsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueMap, error) {
14998	gensupport.SetOptions(c.urlParams_, opts...)
14999	res, err := c.doRequest("json")
15000	if res != nil && res.StatusCode == http.StatusNotModified {
15001		if res.Body != nil {
15002			res.Body.Close()
15003		}
15004		return nil, &googleapi.Error{
15005			Code:   res.StatusCode,
15006			Header: res.Header,
15007		}
15008	}
15009	if err != nil {
15010		return nil, err
15011	}
15012	defer googleapi.CloseBody(res)
15013	if err := googleapi.CheckResponse(res); err != nil {
15014		return nil, err
15015	}
15016	ret := &GoogleCloudApigeeV1KeyValueMap{
15017		ServerResponse: googleapi.ServerResponse{
15018			Header:         res.Header,
15019			HTTPStatusCode: res.StatusCode,
15020		},
15021	}
15022	target := &ret
15023	if err := gensupport.DecodeResponse(target, res); err != nil {
15024		return nil, err
15025	}
15026	return ret, nil
15027	// {
15028	//   "description": "Creates a key value map in an api proxy.",
15029	//   "flatPath": "v1/organizations/{organizationsId}/apis/{apisId}/keyvaluemaps",
15030	//   "httpMethod": "POST",
15031	//   "id": "apigee.organizations.apis.keyvaluemaps.create",
15032	//   "parameterOrder": [
15033	//     "parent"
15034	//   ],
15035	//   "parameters": {
15036	//     "parent": {
15037	//       "description": "Required. The name of the environment in which to create the key value map. Must be of the form `organizations/{organization}/apis/{api}`.",
15038	//       "location": "path",
15039	//       "pattern": "^organizations/[^/]+/apis/[^/]+$",
15040	//       "required": true,
15041	//       "type": "string"
15042	//     }
15043	//   },
15044	//   "path": "v1/{+parent}/keyvaluemaps",
15045	//   "request": {
15046	//     "$ref": "GoogleCloudApigeeV1KeyValueMap"
15047	//   },
15048	//   "response": {
15049	//     "$ref": "GoogleCloudApigeeV1KeyValueMap"
15050	//   },
15051	//   "scopes": [
15052	//     "https://www.googleapis.com/auth/cloud-platform"
15053	//   ]
15054	// }
15055
15056}
15057
15058// method id "apigee.organizations.apis.keyvaluemaps.delete":
15059
15060type OrganizationsApisKeyvaluemapsDeleteCall struct {
15061	s          *Service
15062	name       string
15063	urlParams_ gensupport.URLParams
15064	ctx_       context.Context
15065	header_    http.Header
15066}
15067
15068// Delete: Delete a key value map in an api proxy.
15069//
15070// - name: The name of the key value map. Must be of the form
15071//   `organizations/{organization}/apis/{api}/keyvaluemaps/{keyvaluemap}`
15072//   .
15073func (r *OrganizationsApisKeyvaluemapsService) Delete(name string) *OrganizationsApisKeyvaluemapsDeleteCall {
15074	c := &OrganizationsApisKeyvaluemapsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15075	c.name = name
15076	return c
15077}
15078
15079// Fields allows partial responses to be retrieved. See
15080// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
15081// for more information.
15082func (c *OrganizationsApisKeyvaluemapsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsApisKeyvaluemapsDeleteCall {
15083	c.urlParams_.Set("fields", googleapi.CombineFields(s))
15084	return c
15085}
15086
15087// Context sets the context to be used in this call's Do method. Any
15088// pending HTTP request will be aborted if the provided context is
15089// canceled.
15090func (c *OrganizationsApisKeyvaluemapsDeleteCall) Context(ctx context.Context) *OrganizationsApisKeyvaluemapsDeleteCall {
15091	c.ctx_ = ctx
15092	return c
15093}
15094
15095// Header returns an http.Header that can be modified by the caller to
15096// add HTTP headers to the request.
15097func (c *OrganizationsApisKeyvaluemapsDeleteCall) Header() http.Header {
15098	if c.header_ == nil {
15099		c.header_ = make(http.Header)
15100	}
15101	return c.header_
15102}
15103
15104func (c *OrganizationsApisKeyvaluemapsDeleteCall) doRequest(alt string) (*http.Response, error) {
15105	reqHeaders := make(http.Header)
15106	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
15107	for k, v := range c.header_ {
15108		reqHeaders[k] = v
15109	}
15110	reqHeaders.Set("User-Agent", c.s.userAgent())
15111	var body io.Reader = nil
15112	c.urlParams_.Set("alt", alt)
15113	c.urlParams_.Set("prettyPrint", "false")
15114	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
15115	urls += "?" + c.urlParams_.Encode()
15116	req, err := http.NewRequest("DELETE", urls, body)
15117	if err != nil {
15118		return nil, err
15119	}
15120	req.Header = reqHeaders
15121	googleapi.Expand(req.URL, map[string]string{
15122		"name": c.name,
15123	})
15124	return gensupport.SendRequest(c.ctx_, c.s.client, req)
15125}
15126
15127// Do executes the "apigee.organizations.apis.keyvaluemaps.delete" call.
15128// Exactly one of *GoogleCloudApigeeV1KeyValueMap or error will be
15129// non-nil. Any non-2xx status code is an error. Response headers are in
15130// either *GoogleCloudApigeeV1KeyValueMap.ServerResponse.Header or (if a
15131// response was returned at all) in error.(*googleapi.Error).Header. Use
15132// googleapi.IsNotModified to check whether the returned error was
15133// because http.StatusNotModified was returned.
15134func (c *OrganizationsApisKeyvaluemapsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueMap, error) {
15135	gensupport.SetOptions(c.urlParams_, opts...)
15136	res, err := c.doRequest("json")
15137	if res != nil && res.StatusCode == http.StatusNotModified {
15138		if res.Body != nil {
15139			res.Body.Close()
15140		}
15141		return nil, &googleapi.Error{
15142			Code:   res.StatusCode,
15143			Header: res.Header,
15144		}
15145	}
15146	if err != nil {
15147		return nil, err
15148	}
15149	defer googleapi.CloseBody(res)
15150	if err := googleapi.CheckResponse(res); err != nil {
15151		return nil, err
15152	}
15153	ret := &GoogleCloudApigeeV1KeyValueMap{
15154		ServerResponse: googleapi.ServerResponse{
15155			Header:         res.Header,
15156			HTTPStatusCode: res.StatusCode,
15157		},
15158	}
15159	target := &ret
15160	if err := gensupport.DecodeResponse(target, res); err != nil {
15161		return nil, err
15162	}
15163	return ret, nil
15164	// {
15165	//   "description": "Delete a key value map in an api proxy.",
15166	//   "flatPath": "v1/organizations/{organizationsId}/apis/{apisId}/keyvaluemaps/{keyvaluemapsId}",
15167	//   "httpMethod": "DELETE",
15168	//   "id": "apigee.organizations.apis.keyvaluemaps.delete",
15169	//   "parameterOrder": [
15170	//     "name"
15171	//   ],
15172	//   "parameters": {
15173	//     "name": {
15174	//       "description": "Required. The name of the key value map. Must be of the form `organizations/{organization}/apis/{api}/keyvaluemaps/{keyvaluemap}`.",
15175	//       "location": "path",
15176	//       "pattern": "^organizations/[^/]+/apis/[^/]+/keyvaluemaps/[^/]+$",
15177	//       "required": true,
15178	//       "type": "string"
15179	//     }
15180	//   },
15181	//   "path": "v1/{+name}",
15182	//   "response": {
15183	//     "$ref": "GoogleCloudApigeeV1KeyValueMap"
15184	//   },
15185	//   "scopes": [
15186	//     "https://www.googleapis.com/auth/cloud-platform"
15187	//   ]
15188	// }
15189
15190}
15191
15192// method id "apigee.organizations.apis.revisions.delete":
15193
15194type OrganizationsApisRevisionsDeleteCall struct {
15195	s          *Service
15196	name       string
15197	urlParams_ gensupport.URLParams
15198	ctx_       context.Context
15199	header_    http.Header
15200}
15201
15202// Delete: Deletes an API proxy revision and all policies, resources,
15203// endpoints, and revisions associated with it. The API proxy revision
15204// must be undeployed before you can delete it.
15205//
15206// - name: API proxy revision in the following format:
15207//   `organizations/{org}/apis/{api}/revisions/{rev}`.
15208func (r *OrganizationsApisRevisionsService) Delete(name string) *OrganizationsApisRevisionsDeleteCall {
15209	c := &OrganizationsApisRevisionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15210	c.name = name
15211	return c
15212}
15213
15214// Fields allows partial responses to be retrieved. See
15215// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
15216// for more information.
15217func (c *OrganizationsApisRevisionsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsApisRevisionsDeleteCall {
15218	c.urlParams_.Set("fields", googleapi.CombineFields(s))
15219	return c
15220}
15221
15222// Context sets the context to be used in this call's Do method. Any
15223// pending HTTP request will be aborted if the provided context is
15224// canceled.
15225func (c *OrganizationsApisRevisionsDeleteCall) Context(ctx context.Context) *OrganizationsApisRevisionsDeleteCall {
15226	c.ctx_ = ctx
15227	return c
15228}
15229
15230// Header returns an http.Header that can be modified by the caller to
15231// add HTTP headers to the request.
15232func (c *OrganizationsApisRevisionsDeleteCall) Header() http.Header {
15233	if c.header_ == nil {
15234		c.header_ = make(http.Header)
15235	}
15236	return c.header_
15237}
15238
15239func (c *OrganizationsApisRevisionsDeleteCall) doRequest(alt string) (*http.Response, error) {
15240	reqHeaders := make(http.Header)
15241	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
15242	for k, v := range c.header_ {
15243		reqHeaders[k] = v
15244	}
15245	reqHeaders.Set("User-Agent", c.s.userAgent())
15246	var body io.Reader = nil
15247	c.urlParams_.Set("alt", alt)
15248	c.urlParams_.Set("prettyPrint", "false")
15249	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
15250	urls += "?" + c.urlParams_.Encode()
15251	req, err := http.NewRequest("DELETE", urls, body)
15252	if err != nil {
15253		return nil, err
15254	}
15255	req.Header = reqHeaders
15256	googleapi.Expand(req.URL, map[string]string{
15257		"name": c.name,
15258	})
15259	return gensupport.SendRequest(c.ctx_, c.s.client, req)
15260}
15261
15262// Do executes the "apigee.organizations.apis.revisions.delete" call.
15263// Exactly one of *GoogleCloudApigeeV1ApiProxyRevision or error will be
15264// non-nil. Any non-2xx status code is an error. Response headers are in
15265// either *GoogleCloudApigeeV1ApiProxyRevision.ServerResponse.Header or
15266// (if a response was returned at all) in
15267// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
15268// whether the returned error was because http.StatusNotModified was
15269// returned.
15270func (c *OrganizationsApisRevisionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProxyRevision, error) {
15271	gensupport.SetOptions(c.urlParams_, opts...)
15272	res, err := c.doRequest("json")
15273	if res != nil && res.StatusCode == http.StatusNotModified {
15274		if res.Body != nil {
15275			res.Body.Close()
15276		}
15277		return nil, &googleapi.Error{
15278			Code:   res.StatusCode,
15279			Header: res.Header,
15280		}
15281	}
15282	if err != nil {
15283		return nil, err
15284	}
15285	defer googleapi.CloseBody(res)
15286	if err := googleapi.CheckResponse(res); err != nil {
15287		return nil, err
15288	}
15289	ret := &GoogleCloudApigeeV1ApiProxyRevision{
15290		ServerResponse: googleapi.ServerResponse{
15291			Header:         res.Header,
15292			HTTPStatusCode: res.StatusCode,
15293		},
15294	}
15295	target := &ret
15296	if err := gensupport.DecodeResponse(target, res); err != nil {
15297		return nil, err
15298	}
15299	return ret, nil
15300	// {
15301	//   "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.",
15302	//   "flatPath": "v1/organizations/{organizationsId}/apis/{apisId}/revisions/{revisionsId}",
15303	//   "httpMethod": "DELETE",
15304	//   "id": "apigee.organizations.apis.revisions.delete",
15305	//   "parameterOrder": [
15306	//     "name"
15307	//   ],
15308	//   "parameters": {
15309	//     "name": {
15310	//       "description": "Required. API proxy revision in the following format: `organizations/{org}/apis/{api}/revisions/{rev}`",
15311	//       "location": "path",
15312	//       "pattern": "^organizations/[^/]+/apis/[^/]+/revisions/[^/]+$",
15313	//       "required": true,
15314	//       "type": "string"
15315	//     }
15316	//   },
15317	//   "path": "v1/{+name}",
15318	//   "response": {
15319	//     "$ref": "GoogleCloudApigeeV1ApiProxyRevision"
15320	//   },
15321	//   "scopes": [
15322	//     "https://www.googleapis.com/auth/cloud-platform"
15323	//   ]
15324	// }
15325
15326}
15327
15328// method id "apigee.organizations.apis.revisions.get":
15329
15330type OrganizationsApisRevisionsGetCall struct {
15331	s            *Service
15332	name         string
15333	urlParams_   gensupport.URLParams
15334	ifNoneMatch_ string
15335	ctx_         context.Context
15336	header_      http.Header
15337}
15338
15339// Get: Gets an API proxy revision. To download the API proxy
15340// configuration bundle for the specified revision as a zip file, set
15341// the `format` query parameter to `bundle`. If you are using curl,
15342// specify `-o filename.zip` to save the output to a file; otherwise, it
15343// displays to `stdout`. Then, develop the API proxy configuration
15344// locally and upload the updated API proxy configuration revision, as
15345// described in updateApiProxyRevision (updateApiProxyRevision).
15346//
15347// - name: API proxy revision in the following format:
15348//   `organizations/{org}/apis/{api}/revisions/{rev}`.
15349func (r *OrganizationsApisRevisionsService) Get(name string) *OrganizationsApisRevisionsGetCall {
15350	c := &OrganizationsApisRevisionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15351	c.name = name
15352	return c
15353}
15354
15355// Format sets the optional parameter "format": Format used when
15356// downloading the API proxy configuration revision. Set to `bundle` to
15357// download the API proxy configuration revision as a zip file.
15358func (c *OrganizationsApisRevisionsGetCall) Format(format string) *OrganizationsApisRevisionsGetCall {
15359	c.urlParams_.Set("format", format)
15360	return c
15361}
15362
15363// Fields allows partial responses to be retrieved. See
15364// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
15365// for more information.
15366func (c *OrganizationsApisRevisionsGetCall) Fields(s ...googleapi.Field) *OrganizationsApisRevisionsGetCall {
15367	c.urlParams_.Set("fields", googleapi.CombineFields(s))
15368	return c
15369}
15370
15371// IfNoneMatch sets the optional parameter which makes the operation
15372// fail if the object's ETag matches the given value. This is useful for
15373// getting updates only after the object has changed since the last
15374// request. Use googleapi.IsNotModified to check whether the response
15375// error from Do is the result of In-None-Match.
15376func (c *OrganizationsApisRevisionsGetCall) IfNoneMatch(entityTag string) *OrganizationsApisRevisionsGetCall {
15377	c.ifNoneMatch_ = entityTag
15378	return c
15379}
15380
15381// Context sets the context to be used in this call's Do method. Any
15382// pending HTTP request will be aborted if the provided context is
15383// canceled.
15384func (c *OrganizationsApisRevisionsGetCall) Context(ctx context.Context) *OrganizationsApisRevisionsGetCall {
15385	c.ctx_ = ctx
15386	return c
15387}
15388
15389// Header returns an http.Header that can be modified by the caller to
15390// add HTTP headers to the request.
15391func (c *OrganizationsApisRevisionsGetCall) Header() http.Header {
15392	if c.header_ == nil {
15393		c.header_ = make(http.Header)
15394	}
15395	return c.header_
15396}
15397
15398func (c *OrganizationsApisRevisionsGetCall) doRequest(alt string) (*http.Response, error) {
15399	reqHeaders := make(http.Header)
15400	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
15401	for k, v := range c.header_ {
15402		reqHeaders[k] = v
15403	}
15404	reqHeaders.Set("User-Agent", c.s.userAgent())
15405	if c.ifNoneMatch_ != "" {
15406		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
15407	}
15408	var body io.Reader = nil
15409	c.urlParams_.Set("alt", alt)
15410	c.urlParams_.Set("prettyPrint", "false")
15411	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
15412	urls += "?" + c.urlParams_.Encode()
15413	req, err := http.NewRequest("GET", urls, body)
15414	if err != nil {
15415		return nil, err
15416	}
15417	req.Header = reqHeaders
15418	googleapi.Expand(req.URL, map[string]string{
15419		"name": c.name,
15420	})
15421	return gensupport.SendRequest(c.ctx_, c.s.client, req)
15422}
15423
15424// Do executes the "apigee.organizations.apis.revisions.get" call.
15425// Exactly one of *GoogleApiHttpBody or error will be non-nil. Any
15426// non-2xx status code is an error. Response headers are in either
15427// *GoogleApiHttpBody.ServerResponse.Header or (if a response was
15428// returned at all) in error.(*googleapi.Error).Header. Use
15429// googleapi.IsNotModified to check whether the returned error was
15430// because http.StatusNotModified was returned.
15431func (c *OrganizationsApisRevisionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
15432	gensupport.SetOptions(c.urlParams_, opts...)
15433	res, err := c.doRequest("json")
15434	if res != nil && res.StatusCode == http.StatusNotModified {
15435		if res.Body != nil {
15436			res.Body.Close()
15437		}
15438		return nil, &googleapi.Error{
15439			Code:   res.StatusCode,
15440			Header: res.Header,
15441		}
15442	}
15443	if err != nil {
15444		return nil, err
15445	}
15446	defer googleapi.CloseBody(res)
15447	if err := googleapi.CheckResponse(res); err != nil {
15448		return nil, err
15449	}
15450	ret := &GoogleApiHttpBody{
15451		ServerResponse: googleapi.ServerResponse{
15452			Header:         res.Header,
15453			HTTPStatusCode: res.StatusCode,
15454		},
15455	}
15456	target := &ret
15457	if err := gensupport.DecodeResponse(target, res); err != nil {
15458		return nil, err
15459	}
15460	return ret, nil
15461	// {
15462	//   "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).",
15463	//   "flatPath": "v1/organizations/{organizationsId}/apis/{apisId}/revisions/{revisionsId}",
15464	//   "httpMethod": "GET",
15465	//   "id": "apigee.organizations.apis.revisions.get",
15466	//   "parameterOrder": [
15467	//     "name"
15468	//   ],
15469	//   "parameters": {
15470	//     "format": {
15471	//       "description": "Format used when downloading the API proxy configuration revision. Set to `bundle` to download the API proxy configuration revision as a zip file.",
15472	//       "location": "query",
15473	//       "type": "string"
15474	//     },
15475	//     "name": {
15476	//       "description": "Required. API proxy revision in the following format: `organizations/{org}/apis/{api}/revisions/{rev}`",
15477	//       "location": "path",
15478	//       "pattern": "^organizations/[^/]+/apis/[^/]+/revisions/[^/]+$",
15479	//       "required": true,
15480	//       "type": "string"
15481	//     }
15482	//   },
15483	//   "path": "v1/{+name}",
15484	//   "response": {
15485	//     "$ref": "GoogleApiHttpBody"
15486	//   },
15487	//   "scopes": [
15488	//     "https://www.googleapis.com/auth/cloud-platform"
15489	//   ]
15490	// }
15491
15492}
15493
15494// method id "apigee.organizations.apis.revisions.updateApiProxyRevision":
15495
15496type OrganizationsApisRevisionsUpdateApiProxyRevisionCall struct {
15497	s                 *Service
15498	name              string
15499	googleapihttpbody *GoogleApiHttpBody
15500	urlParams_        gensupport.URLParams
15501	ctx_              context.Context
15502	header_           http.Header
15503}
15504
15505// UpdateApiProxyRevision: Updates an existing API proxy revision by
15506// uploading the API proxy configuration bundle as a zip file from your
15507// local machine. You can update only API proxy revisions that have
15508// never been deployed. After deployment, an API proxy revision becomes
15509// immutable, even if it is undeployed. Set the `Content-Type` header to
15510// either `multipart/form-data` or `application/octet-stream`.
15511//
15512// - name: API proxy revision to update in the following format:
15513//   `organizations/{org}/apis/{api}/revisions/{rev}`.
15514func (r *OrganizationsApisRevisionsService) UpdateApiProxyRevision(name string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsApisRevisionsUpdateApiProxyRevisionCall {
15515	c := &OrganizationsApisRevisionsUpdateApiProxyRevisionCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15516	c.name = name
15517	c.googleapihttpbody = googleapihttpbody
15518	return c
15519}
15520
15521// Validate sets the optional parameter "validate": Ignored. All uploads
15522// are validated regardless of the value of this field. Maintained for
15523// compatibility with Apigee Edge API.
15524func (c *OrganizationsApisRevisionsUpdateApiProxyRevisionCall) Validate(validate bool) *OrganizationsApisRevisionsUpdateApiProxyRevisionCall {
15525	c.urlParams_.Set("validate", fmt.Sprint(validate))
15526	return c
15527}
15528
15529// Fields allows partial responses to be retrieved. See
15530// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
15531// for more information.
15532func (c *OrganizationsApisRevisionsUpdateApiProxyRevisionCall) Fields(s ...googleapi.Field) *OrganizationsApisRevisionsUpdateApiProxyRevisionCall {
15533	c.urlParams_.Set("fields", googleapi.CombineFields(s))
15534	return c
15535}
15536
15537// Context sets the context to be used in this call's Do method. Any
15538// pending HTTP request will be aborted if the provided context is
15539// canceled.
15540func (c *OrganizationsApisRevisionsUpdateApiProxyRevisionCall) Context(ctx context.Context) *OrganizationsApisRevisionsUpdateApiProxyRevisionCall {
15541	c.ctx_ = ctx
15542	return c
15543}
15544
15545// Header returns an http.Header that can be modified by the caller to
15546// add HTTP headers to the request.
15547func (c *OrganizationsApisRevisionsUpdateApiProxyRevisionCall) Header() http.Header {
15548	if c.header_ == nil {
15549		c.header_ = make(http.Header)
15550	}
15551	return c.header_
15552}
15553
15554func (c *OrganizationsApisRevisionsUpdateApiProxyRevisionCall) doRequest(alt string) (*http.Response, error) {
15555	reqHeaders := make(http.Header)
15556	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
15557	for k, v := range c.header_ {
15558		reqHeaders[k] = v
15559	}
15560	reqHeaders.Set("User-Agent", c.s.userAgent())
15561	var body io.Reader = nil
15562	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
15563	if err != nil {
15564		return nil, err
15565	}
15566	reqHeaders.Set("Content-Type", "application/json")
15567	c.urlParams_.Set("alt", alt)
15568	c.urlParams_.Set("prettyPrint", "false")
15569	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
15570	urls += "?" + c.urlParams_.Encode()
15571	req, err := http.NewRequest("POST", urls, body)
15572	if err != nil {
15573		return nil, err
15574	}
15575	req.Header = reqHeaders
15576	googleapi.Expand(req.URL, map[string]string{
15577		"name": c.name,
15578	})
15579	return gensupport.SendRequest(c.ctx_, c.s.client, req)
15580}
15581
15582// Do executes the "apigee.organizations.apis.revisions.updateApiProxyRevision" call.
15583// Exactly one of *GoogleCloudApigeeV1ApiProxyRevision or error will be
15584// non-nil. Any non-2xx status code is an error. Response headers are in
15585// either *GoogleCloudApigeeV1ApiProxyRevision.ServerResponse.Header or
15586// (if a response was returned at all) in
15587// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
15588// whether the returned error was because http.StatusNotModified was
15589// returned.
15590func (c *OrganizationsApisRevisionsUpdateApiProxyRevisionCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProxyRevision, error) {
15591	gensupport.SetOptions(c.urlParams_, opts...)
15592	res, err := c.doRequest("json")
15593	if res != nil && res.StatusCode == http.StatusNotModified {
15594		if res.Body != nil {
15595			res.Body.Close()
15596		}
15597		return nil, &googleapi.Error{
15598			Code:   res.StatusCode,
15599			Header: res.Header,
15600		}
15601	}
15602	if err != nil {
15603		return nil, err
15604	}
15605	defer googleapi.CloseBody(res)
15606	if err := googleapi.CheckResponse(res); err != nil {
15607		return nil, err
15608	}
15609	ret := &GoogleCloudApigeeV1ApiProxyRevision{
15610		ServerResponse: googleapi.ServerResponse{
15611			Header:         res.Header,
15612			HTTPStatusCode: res.StatusCode,
15613		},
15614	}
15615	target := &ret
15616	if err := gensupport.DecodeResponse(target, res); err != nil {
15617		return nil, err
15618	}
15619	return ret, nil
15620	// {
15621	//   "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`.",
15622	//   "flatPath": "v1/organizations/{organizationsId}/apis/{apisId}/revisions/{revisionsId}",
15623	//   "httpMethod": "POST",
15624	//   "id": "apigee.organizations.apis.revisions.updateApiProxyRevision",
15625	//   "parameterOrder": [
15626	//     "name"
15627	//   ],
15628	//   "parameters": {
15629	//     "name": {
15630	//       "description": "Required. API proxy revision to update in the following format: `organizations/{org}/apis/{api}/revisions/{rev}`",
15631	//       "location": "path",
15632	//       "pattern": "^organizations/[^/]+/apis/[^/]+/revisions/[^/]+$",
15633	//       "required": true,
15634	//       "type": "string"
15635	//     },
15636	//     "validate": {
15637	//       "description": "Ignored. All uploads are validated regardless of the value of this field. Maintained for compatibility with Apigee Edge API.",
15638	//       "location": "query",
15639	//       "type": "boolean"
15640	//     }
15641	//   },
15642	//   "path": "v1/{+name}",
15643	//   "request": {
15644	//     "$ref": "GoogleApiHttpBody"
15645	//   },
15646	//   "response": {
15647	//     "$ref": "GoogleCloudApigeeV1ApiProxyRevision"
15648	//   },
15649	//   "scopes": [
15650	//     "https://www.googleapis.com/auth/cloud-platform"
15651	//   ]
15652	// }
15653
15654}
15655
15656// method id "apigee.organizations.apis.revisions.deployments.list":
15657
15658type OrganizationsApisRevisionsDeploymentsListCall struct {
15659	s            *Service
15660	parent       string
15661	urlParams_   gensupport.URLParams
15662	ifNoneMatch_ string
15663	ctx_         context.Context
15664	header_      http.Header
15665}
15666
15667// List: Lists all deployments of an API proxy revision.
15668//
15669// - parent: Name of the API proxy revision for which to return
15670//   deployment information in the following format:
15671//   `organizations/{org}/apis/{api}/revisions/{rev}`.
15672func (r *OrganizationsApisRevisionsDeploymentsService) List(parent string) *OrganizationsApisRevisionsDeploymentsListCall {
15673	c := &OrganizationsApisRevisionsDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15674	c.parent = parent
15675	return c
15676}
15677
15678// Fields allows partial responses to be retrieved. See
15679// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
15680// for more information.
15681func (c *OrganizationsApisRevisionsDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsApisRevisionsDeploymentsListCall {
15682	c.urlParams_.Set("fields", googleapi.CombineFields(s))
15683	return c
15684}
15685
15686// IfNoneMatch sets the optional parameter which makes the operation
15687// fail if the object's ETag matches the given value. This is useful for
15688// getting updates only after the object has changed since the last
15689// request. Use googleapi.IsNotModified to check whether the response
15690// error from Do is the result of In-None-Match.
15691func (c *OrganizationsApisRevisionsDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsApisRevisionsDeploymentsListCall {
15692	c.ifNoneMatch_ = entityTag
15693	return c
15694}
15695
15696// Context sets the context to be used in this call's Do method. Any
15697// pending HTTP request will be aborted if the provided context is
15698// canceled.
15699func (c *OrganizationsApisRevisionsDeploymentsListCall) Context(ctx context.Context) *OrganizationsApisRevisionsDeploymentsListCall {
15700	c.ctx_ = ctx
15701	return c
15702}
15703
15704// Header returns an http.Header that can be modified by the caller to
15705// add HTTP headers to the request.
15706func (c *OrganizationsApisRevisionsDeploymentsListCall) Header() http.Header {
15707	if c.header_ == nil {
15708		c.header_ = make(http.Header)
15709	}
15710	return c.header_
15711}
15712
15713func (c *OrganizationsApisRevisionsDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
15714	reqHeaders := make(http.Header)
15715	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
15716	for k, v := range c.header_ {
15717		reqHeaders[k] = v
15718	}
15719	reqHeaders.Set("User-Agent", c.s.userAgent())
15720	if c.ifNoneMatch_ != "" {
15721		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
15722	}
15723	var body io.Reader = nil
15724	c.urlParams_.Set("alt", alt)
15725	c.urlParams_.Set("prettyPrint", "false")
15726	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
15727	urls += "?" + c.urlParams_.Encode()
15728	req, err := http.NewRequest("GET", urls, body)
15729	if err != nil {
15730		return nil, err
15731	}
15732	req.Header = reqHeaders
15733	googleapi.Expand(req.URL, map[string]string{
15734		"parent": c.parent,
15735	})
15736	return gensupport.SendRequest(c.ctx_, c.s.client, req)
15737}
15738
15739// Do executes the "apigee.organizations.apis.revisions.deployments.list" call.
15740// Exactly one of *GoogleCloudApigeeV1ListDeploymentsResponse or error
15741// will be non-nil. Any non-2xx status code is an error. Response
15742// headers are in either
15743// *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or
15744// (if a response was returned at all) in
15745// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
15746// whether the returned error was because http.StatusNotModified was
15747// returned.
15748func (c *OrganizationsApisRevisionsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
15749	gensupport.SetOptions(c.urlParams_, opts...)
15750	res, err := c.doRequest("json")
15751	if res != nil && res.StatusCode == http.StatusNotModified {
15752		if res.Body != nil {
15753			res.Body.Close()
15754		}
15755		return nil, &googleapi.Error{
15756			Code:   res.StatusCode,
15757			Header: res.Header,
15758		}
15759	}
15760	if err != nil {
15761		return nil, err
15762	}
15763	defer googleapi.CloseBody(res)
15764	if err := googleapi.CheckResponse(res); err != nil {
15765		return nil, err
15766	}
15767	ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
15768		ServerResponse: googleapi.ServerResponse{
15769			Header:         res.Header,
15770			HTTPStatusCode: res.StatusCode,
15771		},
15772	}
15773	target := &ret
15774	if err := gensupport.DecodeResponse(target, res); err != nil {
15775		return nil, err
15776	}
15777	return ret, nil
15778	// {
15779	//   "description": "Lists all deployments of an API proxy revision.",
15780	//   "flatPath": "v1/organizations/{organizationsId}/apis/{apisId}/revisions/{revisionsId}/deployments",
15781	//   "httpMethod": "GET",
15782	//   "id": "apigee.organizations.apis.revisions.deployments.list",
15783	//   "parameterOrder": [
15784	//     "parent"
15785	//   ],
15786	//   "parameters": {
15787	//     "parent": {
15788	//       "description": "Required. Name of the API proxy revision for which to return deployment information in the following format: `organizations/{org}/apis/{api}/revisions/{rev}`.",
15789	//       "location": "path",
15790	//       "pattern": "^organizations/[^/]+/apis/[^/]+/revisions/[^/]+$",
15791	//       "required": true,
15792	//       "type": "string"
15793	//     }
15794	//   },
15795	//   "path": "v1/{+parent}/deployments",
15796	//   "response": {
15797	//     "$ref": "GoogleCloudApigeeV1ListDeploymentsResponse"
15798	//   },
15799	//   "scopes": [
15800	//     "https://www.googleapis.com/auth/cloud-platform"
15801	//   ]
15802	// }
15803
15804}
15805
15806// method id "apigee.organizations.apps.get":
15807
15808type OrganizationsAppsGetCall struct {
15809	s            *Service
15810	name         string
15811	urlParams_   gensupport.URLParams
15812	ifNoneMatch_ string
15813	ctx_         context.Context
15814	header_      http.Header
15815}
15816
15817// Get: Gets the app profile for the specified app ID.
15818//
15819// - name: App ID in the following format:
15820//   `organizations/{org}/apps/{app}`.
15821func (r *OrganizationsAppsService) Get(name string) *OrganizationsAppsGetCall {
15822	c := &OrganizationsAppsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15823	c.name = name
15824	return c
15825}
15826
15827// Fields allows partial responses to be retrieved. See
15828// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
15829// for more information.
15830func (c *OrganizationsAppsGetCall) Fields(s ...googleapi.Field) *OrganizationsAppsGetCall {
15831	c.urlParams_.Set("fields", googleapi.CombineFields(s))
15832	return c
15833}
15834
15835// IfNoneMatch sets the optional parameter which makes the operation
15836// fail if the object's ETag matches the given value. This is useful for
15837// getting updates only after the object has changed since the last
15838// request. Use googleapi.IsNotModified to check whether the response
15839// error from Do is the result of In-None-Match.
15840func (c *OrganizationsAppsGetCall) IfNoneMatch(entityTag string) *OrganizationsAppsGetCall {
15841	c.ifNoneMatch_ = entityTag
15842	return c
15843}
15844
15845// Context sets the context to be used in this call's Do method. Any
15846// pending HTTP request will be aborted if the provided context is
15847// canceled.
15848func (c *OrganizationsAppsGetCall) Context(ctx context.Context) *OrganizationsAppsGetCall {
15849	c.ctx_ = ctx
15850	return c
15851}
15852
15853// Header returns an http.Header that can be modified by the caller to
15854// add HTTP headers to the request.
15855func (c *OrganizationsAppsGetCall) Header() http.Header {
15856	if c.header_ == nil {
15857		c.header_ = make(http.Header)
15858	}
15859	return c.header_
15860}
15861
15862func (c *OrganizationsAppsGetCall) doRequest(alt string) (*http.Response, error) {
15863	reqHeaders := make(http.Header)
15864	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
15865	for k, v := range c.header_ {
15866		reqHeaders[k] = v
15867	}
15868	reqHeaders.Set("User-Agent", c.s.userAgent())
15869	if c.ifNoneMatch_ != "" {
15870		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
15871	}
15872	var body io.Reader = nil
15873	c.urlParams_.Set("alt", alt)
15874	c.urlParams_.Set("prettyPrint", "false")
15875	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
15876	urls += "?" + c.urlParams_.Encode()
15877	req, err := http.NewRequest("GET", urls, body)
15878	if err != nil {
15879		return nil, err
15880	}
15881	req.Header = reqHeaders
15882	googleapi.Expand(req.URL, map[string]string{
15883		"name": c.name,
15884	})
15885	return gensupport.SendRequest(c.ctx_, c.s.client, req)
15886}
15887
15888// Do executes the "apigee.organizations.apps.get" call.
15889// Exactly one of *GoogleCloudApigeeV1App or error will be non-nil. Any
15890// non-2xx status code is an error. Response headers are in either
15891// *GoogleCloudApigeeV1App.ServerResponse.Header or (if a response was
15892// returned at all) in error.(*googleapi.Error).Header. Use
15893// googleapi.IsNotModified to check whether the returned error was
15894// because http.StatusNotModified was returned.
15895func (c *OrganizationsAppsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1App, error) {
15896	gensupport.SetOptions(c.urlParams_, opts...)
15897	res, err := c.doRequest("json")
15898	if res != nil && res.StatusCode == http.StatusNotModified {
15899		if res.Body != nil {
15900			res.Body.Close()
15901		}
15902		return nil, &googleapi.Error{
15903			Code:   res.StatusCode,
15904			Header: res.Header,
15905		}
15906	}
15907	if err != nil {
15908		return nil, err
15909	}
15910	defer googleapi.CloseBody(res)
15911	if err := googleapi.CheckResponse(res); err != nil {
15912		return nil, err
15913	}
15914	ret := &GoogleCloudApigeeV1App{
15915		ServerResponse: googleapi.ServerResponse{
15916			Header:         res.Header,
15917			HTTPStatusCode: res.StatusCode,
15918		},
15919	}
15920	target := &ret
15921	if err := gensupport.DecodeResponse(target, res); err != nil {
15922		return nil, err
15923	}
15924	return ret, nil
15925	// {
15926	//   "description": "Gets the app profile for the specified app ID.",
15927	//   "flatPath": "v1/organizations/{organizationsId}/apps/{appsId}",
15928	//   "httpMethod": "GET",
15929	//   "id": "apigee.organizations.apps.get",
15930	//   "parameterOrder": [
15931	//     "name"
15932	//   ],
15933	//   "parameters": {
15934	//     "name": {
15935	//       "description": "Required. App ID in the following format: `organizations/{org}/apps/{app}`",
15936	//       "location": "path",
15937	//       "pattern": "^organizations/[^/]+/apps/[^/]+$",
15938	//       "required": true,
15939	//       "type": "string"
15940	//     }
15941	//   },
15942	//   "path": "v1/{+name}",
15943	//   "response": {
15944	//     "$ref": "GoogleCloudApigeeV1App"
15945	//   },
15946	//   "scopes": [
15947	//     "https://www.googleapis.com/auth/cloud-platform"
15948	//   ]
15949	// }
15950
15951}
15952
15953// method id "apigee.organizations.apps.list":
15954
15955type OrganizationsAppsListCall struct {
15956	s            *Service
15957	parent       string
15958	urlParams_   gensupport.URLParams
15959	ifNoneMatch_ string
15960	ctx_         context.Context
15961	header_      http.Header
15962}
15963
15964// List: Lists IDs of apps within an organization that have the
15965// specified app status (approved or revoked) or are of the specified
15966// app type (developer or company).
15967//
15968// - parent: Resource path of the parent in the following format:
15969//   `organizations/{org}`.
15970func (r *OrganizationsAppsService) List(parent string) *OrganizationsAppsListCall {
15971	c := &OrganizationsAppsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15972	c.parent = parent
15973	return c
15974}
15975
15976// ApiProduct sets the optional parameter "apiProduct": API product.
15977func (c *OrganizationsAppsListCall) ApiProduct(apiProduct string) *OrganizationsAppsListCall {
15978	c.urlParams_.Set("apiProduct", apiProduct)
15979	return c
15980}
15981
15982// Apptype sets the optional parameter "apptype": Filter by the type of
15983// the app. Valid values are `company` or `developer`. Defaults to
15984// `developer`.
15985func (c *OrganizationsAppsListCall) Apptype(apptype string) *OrganizationsAppsListCall {
15986	c.urlParams_.Set("apptype", apptype)
15987	return c
15988}
15989
15990// Expand sets the optional parameter "expand": Flag that specifies
15991// whether to return an expanded list of apps for the organization.
15992// Defaults to `false`.
15993func (c *OrganizationsAppsListCall) Expand(expand bool) *OrganizationsAppsListCall {
15994	c.urlParams_.Set("expand", fmt.Sprint(expand))
15995	return c
15996}
15997
15998// Ids sets the optional parameter "ids": Comma-separated list of app
15999// IDs on which to filter.
16000func (c *OrganizationsAppsListCall) Ids(ids string) *OrganizationsAppsListCall {
16001	c.urlParams_.Set("ids", ids)
16002	return c
16003}
16004
16005// IncludeCred sets the optional parameter "includeCred": Flag that
16006// specifies whether to include credentials in the response.
16007func (c *OrganizationsAppsListCall) IncludeCred(includeCred bool) *OrganizationsAppsListCall {
16008	c.urlParams_.Set("includeCred", fmt.Sprint(includeCred))
16009	return c
16010}
16011
16012// KeyStatus sets the optional parameter "keyStatus": Key status of the
16013// app. Valid values include `approved` or `revoked`. Defaults to
16014// `approved`.
16015func (c *OrganizationsAppsListCall) KeyStatus(keyStatus string) *OrganizationsAppsListCall {
16016	c.urlParams_.Set("keyStatus", keyStatus)
16017	return c
16018}
16019
16020// Rows sets the optional parameter "rows": Maximum number of app IDs to
16021// return. Defaults to 10000.
16022func (c *OrganizationsAppsListCall) Rows(rows int64) *OrganizationsAppsListCall {
16023	c.urlParams_.Set("rows", fmt.Sprint(rows))
16024	return c
16025}
16026
16027// StartKey sets the optional parameter "startKey": Returns the list of
16028// apps starting from the specified app ID.
16029func (c *OrganizationsAppsListCall) StartKey(startKey string) *OrganizationsAppsListCall {
16030	c.urlParams_.Set("startKey", startKey)
16031	return c
16032}
16033
16034// Status sets the optional parameter "status": Filter by the status of
16035// the app. Valid values are `approved` or `revoked`. Defaults to
16036// `approved`.
16037func (c *OrganizationsAppsListCall) Status(status string) *OrganizationsAppsListCall {
16038	c.urlParams_.Set("status", status)
16039	return c
16040}
16041
16042// Fields allows partial responses to be retrieved. See
16043// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
16044// for more information.
16045func (c *OrganizationsAppsListCall) Fields(s ...googleapi.Field) *OrganizationsAppsListCall {
16046	c.urlParams_.Set("fields", googleapi.CombineFields(s))
16047	return c
16048}
16049
16050// IfNoneMatch sets the optional parameter which makes the operation
16051// fail if the object's ETag matches the given value. This is useful for
16052// getting updates only after the object has changed since the last
16053// request. Use googleapi.IsNotModified to check whether the response
16054// error from Do is the result of In-None-Match.
16055func (c *OrganizationsAppsListCall) IfNoneMatch(entityTag string) *OrganizationsAppsListCall {
16056	c.ifNoneMatch_ = entityTag
16057	return c
16058}
16059
16060// Context sets the context to be used in this call's Do method. Any
16061// pending HTTP request will be aborted if the provided context is
16062// canceled.
16063func (c *OrganizationsAppsListCall) Context(ctx context.Context) *OrganizationsAppsListCall {
16064	c.ctx_ = ctx
16065	return c
16066}
16067
16068// Header returns an http.Header that can be modified by the caller to
16069// add HTTP headers to the request.
16070func (c *OrganizationsAppsListCall) Header() http.Header {
16071	if c.header_ == nil {
16072		c.header_ = make(http.Header)
16073	}
16074	return c.header_
16075}
16076
16077func (c *OrganizationsAppsListCall) doRequest(alt string) (*http.Response, error) {
16078	reqHeaders := make(http.Header)
16079	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
16080	for k, v := range c.header_ {
16081		reqHeaders[k] = v
16082	}
16083	reqHeaders.Set("User-Agent", c.s.userAgent())
16084	if c.ifNoneMatch_ != "" {
16085		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16086	}
16087	var body io.Reader = nil
16088	c.urlParams_.Set("alt", alt)
16089	c.urlParams_.Set("prettyPrint", "false")
16090	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apps")
16091	urls += "?" + c.urlParams_.Encode()
16092	req, err := http.NewRequest("GET", urls, body)
16093	if err != nil {
16094		return nil, err
16095	}
16096	req.Header = reqHeaders
16097	googleapi.Expand(req.URL, map[string]string{
16098		"parent": c.parent,
16099	})
16100	return gensupport.SendRequest(c.ctx_, c.s.client, req)
16101}
16102
16103// Do executes the "apigee.organizations.apps.list" call.
16104// Exactly one of *GoogleCloudApigeeV1ListAppsResponse or error will be
16105// non-nil. Any non-2xx status code is an error. Response headers are in
16106// either *GoogleCloudApigeeV1ListAppsResponse.ServerResponse.Header or
16107// (if a response was returned at all) in
16108// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
16109// whether the returned error was because http.StatusNotModified was
16110// returned.
16111func (c *OrganizationsAppsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListAppsResponse, error) {
16112	gensupport.SetOptions(c.urlParams_, opts...)
16113	res, err := c.doRequest("json")
16114	if res != nil && res.StatusCode == http.StatusNotModified {
16115		if res.Body != nil {
16116			res.Body.Close()
16117		}
16118		return nil, &googleapi.Error{
16119			Code:   res.StatusCode,
16120			Header: res.Header,
16121		}
16122	}
16123	if err != nil {
16124		return nil, err
16125	}
16126	defer googleapi.CloseBody(res)
16127	if err := googleapi.CheckResponse(res); err != nil {
16128		return nil, err
16129	}
16130	ret := &GoogleCloudApigeeV1ListAppsResponse{
16131		ServerResponse: googleapi.ServerResponse{
16132			Header:         res.Header,
16133			HTTPStatusCode: res.StatusCode,
16134		},
16135	}
16136	target := &ret
16137	if err := gensupport.DecodeResponse(target, res); err != nil {
16138		return nil, err
16139	}
16140	return ret, nil
16141	// {
16142	//   "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).",
16143	//   "flatPath": "v1/organizations/{organizationsId}/apps",
16144	//   "httpMethod": "GET",
16145	//   "id": "apigee.organizations.apps.list",
16146	//   "parameterOrder": [
16147	//     "parent"
16148	//   ],
16149	//   "parameters": {
16150	//     "apiProduct": {
16151	//       "description": "API product.",
16152	//       "location": "query",
16153	//       "type": "string"
16154	//     },
16155	//     "apptype": {
16156	//       "description": "Optional. Filter by the type of the app. Valid values are `company` or `developer`. Defaults to `developer`.",
16157	//       "location": "query",
16158	//       "type": "string"
16159	//     },
16160	//     "expand": {
16161	//       "description": "Optional. Flag that specifies whether to return an expanded list of apps for the organization. Defaults to `false`.",
16162	//       "location": "query",
16163	//       "type": "boolean"
16164	//     },
16165	//     "ids": {
16166	//       "description": "Optional. Comma-separated list of app IDs on which to filter.",
16167	//       "location": "query",
16168	//       "type": "string"
16169	//     },
16170	//     "includeCred": {
16171	//       "description": "Optional. Flag that specifies whether to include credentials in the response.",
16172	//       "location": "query",
16173	//       "type": "boolean"
16174	//     },
16175	//     "keyStatus": {
16176	//       "description": "Optional. Key status of the app. Valid values include `approved` or `revoked`. Defaults to `approved`.",
16177	//       "location": "query",
16178	//       "type": "string"
16179	//     },
16180	//     "parent": {
16181	//       "description": "Required. Resource path of the parent in the following format: `organizations/{org}`",
16182	//       "location": "path",
16183	//       "pattern": "^organizations/[^/]+$",
16184	//       "required": true,
16185	//       "type": "string"
16186	//     },
16187	//     "rows": {
16188	//       "description": "Optional. Maximum number of app IDs to return. Defaults to 10000.",
16189	//       "format": "int64",
16190	//       "location": "query",
16191	//       "type": "string"
16192	//     },
16193	//     "startKey": {
16194	//       "description": "Returns the list of apps starting from the specified app ID.",
16195	//       "location": "query",
16196	//       "type": "string"
16197	//     },
16198	//     "status": {
16199	//       "description": "Optional. Filter by the status of the app. Valid values are `approved` or `revoked`. Defaults to `approved`.",
16200	//       "location": "query",
16201	//       "type": "string"
16202	//     }
16203	//   },
16204	//   "path": "v1/{+parent}/apps",
16205	//   "response": {
16206	//     "$ref": "GoogleCloudApigeeV1ListAppsResponse"
16207	//   },
16208	//   "scopes": [
16209	//     "https://www.googleapis.com/auth/cloud-platform"
16210	//   ]
16211	// }
16212
16213}
16214
16215// method id "apigee.organizations.datacollectors.create":
16216
16217type OrganizationsDatacollectorsCreateCall struct {
16218	s                                *Service
16219	parent                           string
16220	googlecloudapigeev1datacollector *GoogleCloudApigeeV1DataCollector
16221	urlParams_                       gensupport.URLParams
16222	ctx_                             context.Context
16223	header_                          http.Header
16224}
16225
16226// Create: Creates a new data collector.
16227//
16228// - parent: Name of the organization in which to create the data
16229//   collector in the following format: `organizations/{org}`.
16230func (r *OrganizationsDatacollectorsService) Create(parent string, googlecloudapigeev1datacollector *GoogleCloudApigeeV1DataCollector) *OrganizationsDatacollectorsCreateCall {
16231	c := &OrganizationsDatacollectorsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16232	c.parent = parent
16233	c.googlecloudapigeev1datacollector = googlecloudapigeev1datacollector
16234	return c
16235}
16236
16237// DataCollectorId sets the optional parameter "dataCollectorId": ID of
16238// the data collector. Overrides any ID in the data collector resource.
16239// Must begin with `dc_`.
16240func (c *OrganizationsDatacollectorsCreateCall) DataCollectorId(dataCollectorId string) *OrganizationsDatacollectorsCreateCall {
16241	c.urlParams_.Set("dataCollectorId", dataCollectorId)
16242	return c
16243}
16244
16245// Fields allows partial responses to be retrieved. See
16246// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
16247// for more information.
16248func (c *OrganizationsDatacollectorsCreateCall) Fields(s ...googleapi.Field) *OrganizationsDatacollectorsCreateCall {
16249	c.urlParams_.Set("fields", googleapi.CombineFields(s))
16250	return c
16251}
16252
16253// Context sets the context to be used in this call's Do method. Any
16254// pending HTTP request will be aborted if the provided context is
16255// canceled.
16256func (c *OrganizationsDatacollectorsCreateCall) Context(ctx context.Context) *OrganizationsDatacollectorsCreateCall {
16257	c.ctx_ = ctx
16258	return c
16259}
16260
16261// Header returns an http.Header that can be modified by the caller to
16262// add HTTP headers to the request.
16263func (c *OrganizationsDatacollectorsCreateCall) Header() http.Header {
16264	if c.header_ == nil {
16265		c.header_ = make(http.Header)
16266	}
16267	return c.header_
16268}
16269
16270func (c *OrganizationsDatacollectorsCreateCall) doRequest(alt string) (*http.Response, error) {
16271	reqHeaders := make(http.Header)
16272	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
16273	for k, v := range c.header_ {
16274		reqHeaders[k] = v
16275	}
16276	reqHeaders.Set("User-Agent", c.s.userAgent())
16277	var body io.Reader = nil
16278	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1datacollector)
16279	if err != nil {
16280		return nil, err
16281	}
16282	reqHeaders.Set("Content-Type", "application/json")
16283	c.urlParams_.Set("alt", alt)
16284	c.urlParams_.Set("prettyPrint", "false")
16285	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/datacollectors")
16286	urls += "?" + c.urlParams_.Encode()
16287	req, err := http.NewRequest("POST", urls, body)
16288	if err != nil {
16289		return nil, err
16290	}
16291	req.Header = reqHeaders
16292	googleapi.Expand(req.URL, map[string]string{
16293		"parent": c.parent,
16294	})
16295	return gensupport.SendRequest(c.ctx_, c.s.client, req)
16296}
16297
16298// Do executes the "apigee.organizations.datacollectors.create" call.
16299// Exactly one of *GoogleCloudApigeeV1DataCollector or error will be
16300// non-nil. Any non-2xx status code is an error. Response headers are in
16301// either *GoogleCloudApigeeV1DataCollector.ServerResponse.Header or (if
16302// a response was returned at all) in error.(*googleapi.Error).Header.
16303// Use googleapi.IsNotModified to check whether the returned error was
16304// because http.StatusNotModified was returned.
16305func (c *OrganizationsDatacollectorsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DataCollector, error) {
16306	gensupport.SetOptions(c.urlParams_, opts...)
16307	res, err := c.doRequest("json")
16308	if res != nil && res.StatusCode == http.StatusNotModified {
16309		if res.Body != nil {
16310			res.Body.Close()
16311		}
16312		return nil, &googleapi.Error{
16313			Code:   res.StatusCode,
16314			Header: res.Header,
16315		}
16316	}
16317	if err != nil {
16318		return nil, err
16319	}
16320	defer googleapi.CloseBody(res)
16321	if err := googleapi.CheckResponse(res); err != nil {
16322		return nil, err
16323	}
16324	ret := &GoogleCloudApigeeV1DataCollector{
16325		ServerResponse: googleapi.ServerResponse{
16326			Header:         res.Header,
16327			HTTPStatusCode: res.StatusCode,
16328		},
16329	}
16330	target := &ret
16331	if err := gensupport.DecodeResponse(target, res); err != nil {
16332		return nil, err
16333	}
16334	return ret, nil
16335	// {
16336	//   "description": "Creates a new data collector.",
16337	//   "flatPath": "v1/organizations/{organizationsId}/datacollectors",
16338	//   "httpMethod": "POST",
16339	//   "id": "apigee.organizations.datacollectors.create",
16340	//   "parameterOrder": [
16341	//     "parent"
16342	//   ],
16343	//   "parameters": {
16344	//     "dataCollectorId": {
16345	//       "description": "ID of the data collector. Overrides any ID in the data collector resource. Must begin with `dc_`.",
16346	//       "location": "query",
16347	//       "type": "string"
16348	//     },
16349	//     "parent": {
16350	//       "description": "Required. Name of the organization in which to create the data collector in the following format: `organizations/{org}`.",
16351	//       "location": "path",
16352	//       "pattern": "^organizations/[^/]+$",
16353	//       "required": true,
16354	//       "type": "string"
16355	//     }
16356	//   },
16357	//   "path": "v1/{+parent}/datacollectors",
16358	//   "request": {
16359	//     "$ref": "GoogleCloudApigeeV1DataCollector"
16360	//   },
16361	//   "response": {
16362	//     "$ref": "GoogleCloudApigeeV1DataCollector"
16363	//   },
16364	//   "scopes": [
16365	//     "https://www.googleapis.com/auth/cloud-platform"
16366	//   ]
16367	// }
16368
16369}
16370
16371// method id "apigee.organizations.datacollectors.delete":
16372
16373type OrganizationsDatacollectorsDeleteCall struct {
16374	s          *Service
16375	name       string
16376	urlParams_ gensupport.URLParams
16377	ctx_       context.Context
16378	header_    http.Header
16379}
16380
16381// Delete: Deletes a data collector.
16382//
16383// - name: Name of the data collector in the following format:
16384//   `organizations/{org}/datacollectors/{data_collector_id}`.
16385func (r *OrganizationsDatacollectorsService) Delete(name string) *OrganizationsDatacollectorsDeleteCall {
16386	c := &OrganizationsDatacollectorsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16387	c.name = name
16388	return c
16389}
16390
16391// Fields allows partial responses to be retrieved. See
16392// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
16393// for more information.
16394func (c *OrganizationsDatacollectorsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDatacollectorsDeleteCall {
16395	c.urlParams_.Set("fields", googleapi.CombineFields(s))
16396	return c
16397}
16398
16399// Context sets the context to be used in this call's Do method. Any
16400// pending HTTP request will be aborted if the provided context is
16401// canceled.
16402func (c *OrganizationsDatacollectorsDeleteCall) Context(ctx context.Context) *OrganizationsDatacollectorsDeleteCall {
16403	c.ctx_ = ctx
16404	return c
16405}
16406
16407// Header returns an http.Header that can be modified by the caller to
16408// add HTTP headers to the request.
16409func (c *OrganizationsDatacollectorsDeleteCall) Header() http.Header {
16410	if c.header_ == nil {
16411		c.header_ = make(http.Header)
16412	}
16413	return c.header_
16414}
16415
16416func (c *OrganizationsDatacollectorsDeleteCall) doRequest(alt string) (*http.Response, error) {
16417	reqHeaders := make(http.Header)
16418	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
16419	for k, v := range c.header_ {
16420		reqHeaders[k] = v
16421	}
16422	reqHeaders.Set("User-Agent", c.s.userAgent())
16423	var body io.Reader = nil
16424	c.urlParams_.Set("alt", alt)
16425	c.urlParams_.Set("prettyPrint", "false")
16426	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
16427	urls += "?" + c.urlParams_.Encode()
16428	req, err := http.NewRequest("DELETE", urls, body)
16429	if err != nil {
16430		return nil, err
16431	}
16432	req.Header = reqHeaders
16433	googleapi.Expand(req.URL, map[string]string{
16434		"name": c.name,
16435	})
16436	return gensupport.SendRequest(c.ctx_, c.s.client, req)
16437}
16438
16439// Do executes the "apigee.organizations.datacollectors.delete" call.
16440// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
16441// non-2xx status code is an error. Response headers are in either
16442// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
16443// returned at all) in error.(*googleapi.Error).Header. Use
16444// googleapi.IsNotModified to check whether the returned error was
16445// because http.StatusNotModified was returned.
16446func (c *OrganizationsDatacollectorsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
16447	gensupport.SetOptions(c.urlParams_, opts...)
16448	res, err := c.doRequest("json")
16449	if res != nil && res.StatusCode == http.StatusNotModified {
16450		if res.Body != nil {
16451			res.Body.Close()
16452		}
16453		return nil, &googleapi.Error{
16454			Code:   res.StatusCode,
16455			Header: res.Header,
16456		}
16457	}
16458	if err != nil {
16459		return nil, err
16460	}
16461	defer googleapi.CloseBody(res)
16462	if err := googleapi.CheckResponse(res); err != nil {
16463		return nil, err
16464	}
16465	ret := &GoogleProtobufEmpty{
16466		ServerResponse: googleapi.ServerResponse{
16467			Header:         res.Header,
16468			HTTPStatusCode: res.StatusCode,
16469		},
16470	}
16471	target := &ret
16472	if err := gensupport.DecodeResponse(target, res); err != nil {
16473		return nil, err
16474	}
16475	return ret, nil
16476	// {
16477	//   "description": "Deletes a data collector.",
16478	//   "flatPath": "v1/organizations/{organizationsId}/datacollectors/{datacollectorsId}",
16479	//   "httpMethod": "DELETE",
16480	//   "id": "apigee.organizations.datacollectors.delete",
16481	//   "parameterOrder": [
16482	//     "name"
16483	//   ],
16484	//   "parameters": {
16485	//     "name": {
16486	//       "description": "Required. Name of the data collector in the following format: `organizations/{org}/datacollectors/{data_collector_id}`.",
16487	//       "location": "path",
16488	//       "pattern": "^organizations/[^/]+/datacollectors/[^/]+$",
16489	//       "required": true,
16490	//       "type": "string"
16491	//     }
16492	//   },
16493	//   "path": "v1/{+name}",
16494	//   "response": {
16495	//     "$ref": "GoogleProtobufEmpty"
16496	//   },
16497	//   "scopes": [
16498	//     "https://www.googleapis.com/auth/cloud-platform"
16499	//   ]
16500	// }
16501
16502}
16503
16504// method id "apigee.organizations.datacollectors.get":
16505
16506type OrganizationsDatacollectorsGetCall struct {
16507	s            *Service
16508	name         string
16509	urlParams_   gensupport.URLParams
16510	ifNoneMatch_ string
16511	ctx_         context.Context
16512	header_      http.Header
16513}
16514
16515// Get: Gets a data collector.
16516//
16517// - name: Name of the data collector in the following format:
16518//   `organizations/{org}/datacollectors/{data_collector_id}`.
16519func (r *OrganizationsDatacollectorsService) Get(name string) *OrganizationsDatacollectorsGetCall {
16520	c := &OrganizationsDatacollectorsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16521	c.name = name
16522	return c
16523}
16524
16525// Fields allows partial responses to be retrieved. See
16526// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
16527// for more information.
16528func (c *OrganizationsDatacollectorsGetCall) Fields(s ...googleapi.Field) *OrganizationsDatacollectorsGetCall {
16529	c.urlParams_.Set("fields", googleapi.CombineFields(s))
16530	return c
16531}
16532
16533// IfNoneMatch sets the optional parameter which makes the operation
16534// fail if the object's ETag matches the given value. This is useful for
16535// getting updates only after the object has changed since the last
16536// request. Use googleapi.IsNotModified to check whether the response
16537// error from Do is the result of In-None-Match.
16538func (c *OrganizationsDatacollectorsGetCall) IfNoneMatch(entityTag string) *OrganizationsDatacollectorsGetCall {
16539	c.ifNoneMatch_ = entityTag
16540	return c
16541}
16542
16543// Context sets the context to be used in this call's Do method. Any
16544// pending HTTP request will be aborted if the provided context is
16545// canceled.
16546func (c *OrganizationsDatacollectorsGetCall) Context(ctx context.Context) *OrganizationsDatacollectorsGetCall {
16547	c.ctx_ = ctx
16548	return c
16549}
16550
16551// Header returns an http.Header that can be modified by the caller to
16552// add HTTP headers to the request.
16553func (c *OrganizationsDatacollectorsGetCall) Header() http.Header {
16554	if c.header_ == nil {
16555		c.header_ = make(http.Header)
16556	}
16557	return c.header_
16558}
16559
16560func (c *OrganizationsDatacollectorsGetCall) doRequest(alt string) (*http.Response, error) {
16561	reqHeaders := make(http.Header)
16562	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
16563	for k, v := range c.header_ {
16564		reqHeaders[k] = v
16565	}
16566	reqHeaders.Set("User-Agent", c.s.userAgent())
16567	if c.ifNoneMatch_ != "" {
16568		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16569	}
16570	var body io.Reader = nil
16571	c.urlParams_.Set("alt", alt)
16572	c.urlParams_.Set("prettyPrint", "false")
16573	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
16574	urls += "?" + c.urlParams_.Encode()
16575	req, err := http.NewRequest("GET", urls, body)
16576	if err != nil {
16577		return nil, err
16578	}
16579	req.Header = reqHeaders
16580	googleapi.Expand(req.URL, map[string]string{
16581		"name": c.name,
16582	})
16583	return gensupport.SendRequest(c.ctx_, c.s.client, req)
16584}
16585
16586// Do executes the "apigee.organizations.datacollectors.get" call.
16587// Exactly one of *GoogleCloudApigeeV1DataCollector or error will be
16588// non-nil. Any non-2xx status code is an error. Response headers are in
16589// either *GoogleCloudApigeeV1DataCollector.ServerResponse.Header or (if
16590// a response was returned at all) in error.(*googleapi.Error).Header.
16591// Use googleapi.IsNotModified to check whether the returned error was
16592// because http.StatusNotModified was returned.
16593func (c *OrganizationsDatacollectorsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DataCollector, error) {
16594	gensupport.SetOptions(c.urlParams_, opts...)
16595	res, err := c.doRequest("json")
16596	if res != nil && res.StatusCode == http.StatusNotModified {
16597		if res.Body != nil {
16598			res.Body.Close()
16599		}
16600		return nil, &googleapi.Error{
16601			Code:   res.StatusCode,
16602			Header: res.Header,
16603		}
16604	}
16605	if err != nil {
16606		return nil, err
16607	}
16608	defer googleapi.CloseBody(res)
16609	if err := googleapi.CheckResponse(res); err != nil {
16610		return nil, err
16611	}
16612	ret := &GoogleCloudApigeeV1DataCollector{
16613		ServerResponse: googleapi.ServerResponse{
16614			Header:         res.Header,
16615			HTTPStatusCode: res.StatusCode,
16616		},
16617	}
16618	target := &ret
16619	if err := gensupport.DecodeResponse(target, res); err != nil {
16620		return nil, err
16621	}
16622	return ret, nil
16623	// {
16624	//   "description": "Gets a data collector.",
16625	//   "flatPath": "v1/organizations/{organizationsId}/datacollectors/{datacollectorsId}",
16626	//   "httpMethod": "GET",
16627	//   "id": "apigee.organizations.datacollectors.get",
16628	//   "parameterOrder": [
16629	//     "name"
16630	//   ],
16631	//   "parameters": {
16632	//     "name": {
16633	//       "description": "Required. Name of the data collector in the following format: `organizations/{org}/datacollectors/{data_collector_id}`.",
16634	//       "location": "path",
16635	//       "pattern": "^organizations/[^/]+/datacollectors/[^/]+$",
16636	//       "required": true,
16637	//       "type": "string"
16638	//     }
16639	//   },
16640	//   "path": "v1/{+name}",
16641	//   "response": {
16642	//     "$ref": "GoogleCloudApigeeV1DataCollector"
16643	//   },
16644	//   "scopes": [
16645	//     "https://www.googleapis.com/auth/cloud-platform"
16646	//   ]
16647	// }
16648
16649}
16650
16651// method id "apigee.organizations.datacollectors.list":
16652
16653type OrganizationsDatacollectorsListCall struct {
16654	s            *Service
16655	parent       string
16656	urlParams_   gensupport.URLParams
16657	ifNoneMatch_ string
16658	ctx_         context.Context
16659	header_      http.Header
16660}
16661
16662// List: Lists all data collectors.
16663//
16664// - parent: Name of the organization for which to list data collectors
16665//   in the following format: `organizations/{org}`.
16666func (r *OrganizationsDatacollectorsService) List(parent string) *OrganizationsDatacollectorsListCall {
16667	c := &OrganizationsDatacollectorsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16668	c.parent = parent
16669	return c
16670}
16671
16672// PageSize sets the optional parameter "pageSize": Maximum number of
16673// data collectors to return. The page size defaults to 25.
16674func (c *OrganizationsDatacollectorsListCall) PageSize(pageSize int64) *OrganizationsDatacollectorsListCall {
16675	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
16676	return c
16677}
16678
16679// PageToken sets the optional parameter "pageToken": Page token,
16680// returned from a previous ListDataCollectors call, that you can use to
16681// retrieve the next page.
16682func (c *OrganizationsDatacollectorsListCall) PageToken(pageToken string) *OrganizationsDatacollectorsListCall {
16683	c.urlParams_.Set("pageToken", pageToken)
16684	return c
16685}
16686
16687// Fields allows partial responses to be retrieved. See
16688// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
16689// for more information.
16690func (c *OrganizationsDatacollectorsListCall) Fields(s ...googleapi.Field) *OrganizationsDatacollectorsListCall {
16691	c.urlParams_.Set("fields", googleapi.CombineFields(s))
16692	return c
16693}
16694
16695// IfNoneMatch sets the optional parameter which makes the operation
16696// fail if the object's ETag matches the given value. This is useful for
16697// getting updates only after the object has changed since the last
16698// request. Use googleapi.IsNotModified to check whether the response
16699// error from Do is the result of In-None-Match.
16700func (c *OrganizationsDatacollectorsListCall) IfNoneMatch(entityTag string) *OrganizationsDatacollectorsListCall {
16701	c.ifNoneMatch_ = entityTag
16702	return c
16703}
16704
16705// Context sets the context to be used in this call's Do method. Any
16706// pending HTTP request will be aborted if the provided context is
16707// canceled.
16708func (c *OrganizationsDatacollectorsListCall) Context(ctx context.Context) *OrganizationsDatacollectorsListCall {
16709	c.ctx_ = ctx
16710	return c
16711}
16712
16713// Header returns an http.Header that can be modified by the caller to
16714// add HTTP headers to the request.
16715func (c *OrganizationsDatacollectorsListCall) Header() http.Header {
16716	if c.header_ == nil {
16717		c.header_ = make(http.Header)
16718	}
16719	return c.header_
16720}
16721
16722func (c *OrganizationsDatacollectorsListCall) doRequest(alt string) (*http.Response, error) {
16723	reqHeaders := make(http.Header)
16724	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
16725	for k, v := range c.header_ {
16726		reqHeaders[k] = v
16727	}
16728	reqHeaders.Set("User-Agent", c.s.userAgent())
16729	if c.ifNoneMatch_ != "" {
16730		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16731	}
16732	var body io.Reader = nil
16733	c.urlParams_.Set("alt", alt)
16734	c.urlParams_.Set("prettyPrint", "false")
16735	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/datacollectors")
16736	urls += "?" + c.urlParams_.Encode()
16737	req, err := http.NewRequest("GET", urls, body)
16738	if err != nil {
16739		return nil, err
16740	}
16741	req.Header = reqHeaders
16742	googleapi.Expand(req.URL, map[string]string{
16743		"parent": c.parent,
16744	})
16745	return gensupport.SendRequest(c.ctx_, c.s.client, req)
16746}
16747
16748// Do executes the "apigee.organizations.datacollectors.list" call.
16749// Exactly one of *GoogleCloudApigeeV1ListDataCollectorsResponse or
16750// error will be non-nil. Any non-2xx status code is an error. Response
16751// headers are in either
16752// *GoogleCloudApigeeV1ListDataCollectorsResponse.ServerResponse.Header
16753// or (if a response was returned at all) in
16754// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
16755// whether the returned error was because http.StatusNotModified was
16756// returned.
16757func (c *OrganizationsDatacollectorsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDataCollectorsResponse, error) {
16758	gensupport.SetOptions(c.urlParams_, opts...)
16759	res, err := c.doRequest("json")
16760	if res != nil && res.StatusCode == http.StatusNotModified {
16761		if res.Body != nil {
16762			res.Body.Close()
16763		}
16764		return nil, &googleapi.Error{
16765			Code:   res.StatusCode,
16766			Header: res.Header,
16767		}
16768	}
16769	if err != nil {
16770		return nil, err
16771	}
16772	defer googleapi.CloseBody(res)
16773	if err := googleapi.CheckResponse(res); err != nil {
16774		return nil, err
16775	}
16776	ret := &GoogleCloudApigeeV1ListDataCollectorsResponse{
16777		ServerResponse: googleapi.ServerResponse{
16778			Header:         res.Header,
16779			HTTPStatusCode: res.StatusCode,
16780		},
16781	}
16782	target := &ret
16783	if err := gensupport.DecodeResponse(target, res); err != nil {
16784		return nil, err
16785	}
16786	return ret, nil
16787	// {
16788	//   "description": "Lists all data collectors.",
16789	//   "flatPath": "v1/organizations/{organizationsId}/datacollectors",
16790	//   "httpMethod": "GET",
16791	//   "id": "apigee.organizations.datacollectors.list",
16792	//   "parameterOrder": [
16793	//     "parent"
16794	//   ],
16795	//   "parameters": {
16796	//     "pageSize": {
16797	//       "description": "Maximum number of data collectors to return. The page size defaults to 25.",
16798	//       "format": "int32",
16799	//       "location": "query",
16800	//       "type": "integer"
16801	//     },
16802	//     "pageToken": {
16803	//       "description": "Page token, returned from a previous ListDataCollectors call, that you can use to retrieve the next page.",
16804	//       "location": "query",
16805	//       "type": "string"
16806	//     },
16807	//     "parent": {
16808	//       "description": "Required. Name of the organization for which to list data collectors in the following format: `organizations/{org}`.",
16809	//       "location": "path",
16810	//       "pattern": "^organizations/[^/]+$",
16811	//       "required": true,
16812	//       "type": "string"
16813	//     }
16814	//   },
16815	//   "path": "v1/{+parent}/datacollectors",
16816	//   "response": {
16817	//     "$ref": "GoogleCloudApigeeV1ListDataCollectorsResponse"
16818	//   },
16819	//   "scopes": [
16820	//     "https://www.googleapis.com/auth/cloud-platform"
16821	//   ]
16822	// }
16823
16824}
16825
16826// Pages invokes f for each page of results.
16827// A non-nil error returned from f will halt the iteration.
16828// The provided context supersedes any context provided to the Context method.
16829func (c *OrganizationsDatacollectorsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListDataCollectorsResponse) error) error {
16830	c.ctx_ = ctx
16831	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
16832	for {
16833		x, err := c.Do()
16834		if err != nil {
16835			return err
16836		}
16837		if err := f(x); err != nil {
16838			return err
16839		}
16840		if x.NextPageToken == "" {
16841			return nil
16842		}
16843		c.PageToken(x.NextPageToken)
16844	}
16845}
16846
16847// method id "apigee.organizations.datacollectors.patch":
16848
16849type OrganizationsDatacollectorsPatchCall struct {
16850	s                                *Service
16851	name                             string
16852	googlecloudapigeev1datacollector *GoogleCloudApigeeV1DataCollector
16853	urlParams_                       gensupport.URLParams
16854	ctx_                             context.Context
16855	header_                          http.Header
16856}
16857
16858// Patch: Updates a data collector.
16859//
16860// - name: Name of the data collector in the following format:
16861//   `organizations/{org}/datacollectors/{data_collector_id}`.
16862func (r *OrganizationsDatacollectorsService) Patch(name string, googlecloudapigeev1datacollector *GoogleCloudApigeeV1DataCollector) *OrganizationsDatacollectorsPatchCall {
16863	c := &OrganizationsDatacollectorsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16864	c.name = name
16865	c.googlecloudapigeev1datacollector = googlecloudapigeev1datacollector
16866	return c
16867}
16868
16869// UpdateMask sets the optional parameter "updateMask": List of fields
16870// to be updated.
16871func (c *OrganizationsDatacollectorsPatchCall) UpdateMask(updateMask string) *OrganizationsDatacollectorsPatchCall {
16872	c.urlParams_.Set("updateMask", updateMask)
16873	return c
16874}
16875
16876// Fields allows partial responses to be retrieved. See
16877// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
16878// for more information.
16879func (c *OrganizationsDatacollectorsPatchCall) Fields(s ...googleapi.Field) *OrganizationsDatacollectorsPatchCall {
16880	c.urlParams_.Set("fields", googleapi.CombineFields(s))
16881	return c
16882}
16883
16884// Context sets the context to be used in this call's Do method. Any
16885// pending HTTP request will be aborted if the provided context is
16886// canceled.
16887func (c *OrganizationsDatacollectorsPatchCall) Context(ctx context.Context) *OrganizationsDatacollectorsPatchCall {
16888	c.ctx_ = ctx
16889	return c
16890}
16891
16892// Header returns an http.Header that can be modified by the caller to
16893// add HTTP headers to the request.
16894func (c *OrganizationsDatacollectorsPatchCall) Header() http.Header {
16895	if c.header_ == nil {
16896		c.header_ = make(http.Header)
16897	}
16898	return c.header_
16899}
16900
16901func (c *OrganizationsDatacollectorsPatchCall) doRequest(alt string) (*http.Response, error) {
16902	reqHeaders := make(http.Header)
16903	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
16904	for k, v := range c.header_ {
16905		reqHeaders[k] = v
16906	}
16907	reqHeaders.Set("User-Agent", c.s.userAgent())
16908	var body io.Reader = nil
16909	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1datacollector)
16910	if err != nil {
16911		return nil, err
16912	}
16913	reqHeaders.Set("Content-Type", "application/json")
16914	c.urlParams_.Set("alt", alt)
16915	c.urlParams_.Set("prettyPrint", "false")
16916	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
16917	urls += "?" + c.urlParams_.Encode()
16918	req, err := http.NewRequest("PATCH", urls, body)
16919	if err != nil {
16920		return nil, err
16921	}
16922	req.Header = reqHeaders
16923	googleapi.Expand(req.URL, map[string]string{
16924		"name": c.name,
16925	})
16926	return gensupport.SendRequest(c.ctx_, c.s.client, req)
16927}
16928
16929// Do executes the "apigee.organizations.datacollectors.patch" call.
16930// Exactly one of *GoogleCloudApigeeV1DataCollector or error will be
16931// non-nil. Any non-2xx status code is an error. Response headers are in
16932// either *GoogleCloudApigeeV1DataCollector.ServerResponse.Header or (if
16933// a response was returned at all) in error.(*googleapi.Error).Header.
16934// Use googleapi.IsNotModified to check whether the returned error was
16935// because http.StatusNotModified was returned.
16936func (c *OrganizationsDatacollectorsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DataCollector, error) {
16937	gensupport.SetOptions(c.urlParams_, opts...)
16938	res, err := c.doRequest("json")
16939	if res != nil && res.StatusCode == http.StatusNotModified {
16940		if res.Body != nil {
16941			res.Body.Close()
16942		}
16943		return nil, &googleapi.Error{
16944			Code:   res.StatusCode,
16945			Header: res.Header,
16946		}
16947	}
16948	if err != nil {
16949		return nil, err
16950	}
16951	defer googleapi.CloseBody(res)
16952	if err := googleapi.CheckResponse(res); err != nil {
16953		return nil, err
16954	}
16955	ret := &GoogleCloudApigeeV1DataCollector{
16956		ServerResponse: googleapi.ServerResponse{
16957			Header:         res.Header,
16958			HTTPStatusCode: res.StatusCode,
16959		},
16960	}
16961	target := &ret
16962	if err := gensupport.DecodeResponse(target, res); err != nil {
16963		return nil, err
16964	}
16965	return ret, nil
16966	// {
16967	//   "description": "Updates a data collector.",
16968	//   "flatPath": "v1/organizations/{organizationsId}/datacollectors/{datacollectorsId}",
16969	//   "httpMethod": "PATCH",
16970	//   "id": "apigee.organizations.datacollectors.patch",
16971	//   "parameterOrder": [
16972	//     "name"
16973	//   ],
16974	//   "parameters": {
16975	//     "name": {
16976	//       "description": "Required. Name of the data collector in the following format: `organizations/{org}/datacollectors/{data_collector_id}`.",
16977	//       "location": "path",
16978	//       "pattern": "^organizations/[^/]+/datacollectors/[^/]+$",
16979	//       "required": true,
16980	//       "type": "string"
16981	//     },
16982	//     "updateMask": {
16983	//       "description": "List of fields to be updated.",
16984	//       "format": "google-fieldmask",
16985	//       "location": "query",
16986	//       "type": "string"
16987	//     }
16988	//   },
16989	//   "path": "v1/{+name}",
16990	//   "request": {
16991	//     "$ref": "GoogleCloudApigeeV1DataCollector"
16992	//   },
16993	//   "response": {
16994	//     "$ref": "GoogleCloudApigeeV1DataCollector"
16995	//   },
16996	//   "scopes": [
16997	//     "https://www.googleapis.com/auth/cloud-platform"
16998	//   ]
16999	// }
17000
17001}
17002
17003// method id "apigee.organizations.deployments.list":
17004
17005type OrganizationsDeploymentsListCall struct {
17006	s            *Service
17007	parent       string
17008	urlParams_   gensupport.URLParams
17009	ifNoneMatch_ string
17010	ctx_         context.Context
17011	header_      http.Header
17012}
17013
17014// List: Lists all deployments of API proxies or shared flows.
17015//
17016// - parent: Name of the organization for which to return deployment
17017//   information in the following format: `organizations/{org}`.
17018func (r *OrganizationsDeploymentsService) List(parent string) *OrganizationsDeploymentsListCall {
17019	c := &OrganizationsDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17020	c.parent = parent
17021	return c
17022}
17023
17024// SharedFlows sets the optional parameter "sharedFlows": Flag that
17025// specifies whether to return shared flow or API proxy deployments. Set
17026// to `true` to return shared flow deployments; set to `false` to return
17027// API proxy deployments. Defaults to `false`.
17028func (c *OrganizationsDeploymentsListCall) SharedFlows(sharedFlows bool) *OrganizationsDeploymentsListCall {
17029	c.urlParams_.Set("sharedFlows", fmt.Sprint(sharedFlows))
17030	return c
17031}
17032
17033// Fields allows partial responses to be retrieved. See
17034// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
17035// for more information.
17036func (c *OrganizationsDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsDeploymentsListCall {
17037	c.urlParams_.Set("fields", googleapi.CombineFields(s))
17038	return c
17039}
17040
17041// IfNoneMatch sets the optional parameter which makes the operation
17042// fail if the object's ETag matches the given value. This is useful for
17043// getting updates only after the object has changed since the last
17044// request. Use googleapi.IsNotModified to check whether the response
17045// error from Do is the result of In-None-Match.
17046func (c *OrganizationsDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsDeploymentsListCall {
17047	c.ifNoneMatch_ = entityTag
17048	return c
17049}
17050
17051// Context sets the context to be used in this call's Do method. Any
17052// pending HTTP request will be aborted if the provided context is
17053// canceled.
17054func (c *OrganizationsDeploymentsListCall) Context(ctx context.Context) *OrganizationsDeploymentsListCall {
17055	c.ctx_ = ctx
17056	return c
17057}
17058
17059// Header returns an http.Header that can be modified by the caller to
17060// add HTTP headers to the request.
17061func (c *OrganizationsDeploymentsListCall) Header() http.Header {
17062	if c.header_ == nil {
17063		c.header_ = make(http.Header)
17064	}
17065	return c.header_
17066}
17067
17068func (c *OrganizationsDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
17069	reqHeaders := make(http.Header)
17070	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
17071	for k, v := range c.header_ {
17072		reqHeaders[k] = v
17073	}
17074	reqHeaders.Set("User-Agent", c.s.userAgent())
17075	if c.ifNoneMatch_ != "" {
17076		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
17077	}
17078	var body io.Reader = nil
17079	c.urlParams_.Set("alt", alt)
17080	c.urlParams_.Set("prettyPrint", "false")
17081	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
17082	urls += "?" + c.urlParams_.Encode()
17083	req, err := http.NewRequest("GET", urls, body)
17084	if err != nil {
17085		return nil, err
17086	}
17087	req.Header = reqHeaders
17088	googleapi.Expand(req.URL, map[string]string{
17089		"parent": c.parent,
17090	})
17091	return gensupport.SendRequest(c.ctx_, c.s.client, req)
17092}
17093
17094// Do executes the "apigee.organizations.deployments.list" call.
17095// Exactly one of *GoogleCloudApigeeV1ListDeploymentsResponse or error
17096// will be non-nil. Any non-2xx status code is an error. Response
17097// headers are in either
17098// *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or
17099// (if a response was returned at all) in
17100// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
17101// whether the returned error was because http.StatusNotModified was
17102// returned.
17103func (c *OrganizationsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
17104	gensupport.SetOptions(c.urlParams_, opts...)
17105	res, err := c.doRequest("json")
17106	if res != nil && res.StatusCode == http.StatusNotModified {
17107		if res.Body != nil {
17108			res.Body.Close()
17109		}
17110		return nil, &googleapi.Error{
17111			Code:   res.StatusCode,
17112			Header: res.Header,
17113		}
17114	}
17115	if err != nil {
17116		return nil, err
17117	}
17118	defer googleapi.CloseBody(res)
17119	if err := googleapi.CheckResponse(res); err != nil {
17120		return nil, err
17121	}
17122	ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
17123		ServerResponse: googleapi.ServerResponse{
17124			Header:         res.Header,
17125			HTTPStatusCode: res.StatusCode,
17126		},
17127	}
17128	target := &ret
17129	if err := gensupport.DecodeResponse(target, res); err != nil {
17130		return nil, err
17131	}
17132	return ret, nil
17133	// {
17134	//   "description": "Lists all deployments of API proxies or shared flows.",
17135	//   "flatPath": "v1/organizations/{organizationsId}/deployments",
17136	//   "httpMethod": "GET",
17137	//   "id": "apigee.organizations.deployments.list",
17138	//   "parameterOrder": [
17139	//     "parent"
17140	//   ],
17141	//   "parameters": {
17142	//     "parent": {
17143	//       "description": "Required. Name of the organization for which to return deployment information in the following format: `organizations/{org}`",
17144	//       "location": "path",
17145	//       "pattern": "^organizations/[^/]+$",
17146	//       "required": true,
17147	//       "type": "string"
17148	//     },
17149	//     "sharedFlows": {
17150	//       "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`.",
17151	//       "location": "query",
17152	//       "type": "boolean"
17153	//     }
17154	//   },
17155	//   "path": "v1/{+parent}/deployments",
17156	//   "response": {
17157	//     "$ref": "GoogleCloudApigeeV1ListDeploymentsResponse"
17158	//   },
17159	//   "scopes": [
17160	//     "https://www.googleapis.com/auth/cloud-platform"
17161	//   ]
17162	// }
17163
17164}
17165
17166// method id "apigee.organizations.developers.attributes":
17167
17168type OrganizationsDevelopersAttributesCall struct {
17169	s                             *Service
17170	parent                        string
17171	googlecloudapigeev1attributes *GoogleCloudApigeeV1Attributes
17172	urlParams_                    gensupport.URLParams
17173	ctx_                          context.Context
17174	header_                       http.Header
17175}
17176
17177// Attributes: Updates developer attributes. This API replaces the
17178// existing attributes with those specified in the request. Add new
17179// attributes, and include or exclude any existing attributes that you
17180// want to retain or remove, respectively. The custom attribute limit is
17181// 18. **Note**: OAuth access tokens and Key Management Service (KMS)
17182// entities (apps, developers, and API products) are cached for 180
17183// seconds (default). Any custom attributes associated with these
17184// entities are cached for at least 180 seconds after the entity is
17185// accessed at runtime. Therefore, an `ExpiresIn` element on the OAuthV2
17186// policy won't be able to expire an access token in less than 180
17187// seconds.
17188//
17189// - parent: Email address of the developer for which attributes are
17190//   being updated in the following format:
17191//   `organizations/{org}/developers/{developer_email}`.
17192func (r *OrganizationsDevelopersService) Attributes(parent string, googlecloudapigeev1attributes *GoogleCloudApigeeV1Attributes) *OrganizationsDevelopersAttributesCall {
17193	c := &OrganizationsDevelopersAttributesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17194	c.parent = parent
17195	c.googlecloudapigeev1attributes = googlecloudapigeev1attributes
17196	return c
17197}
17198
17199// Fields allows partial responses to be retrieved. See
17200// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
17201// for more information.
17202func (c *OrganizationsDevelopersAttributesCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAttributesCall {
17203	c.urlParams_.Set("fields", googleapi.CombineFields(s))
17204	return c
17205}
17206
17207// Context sets the context to be used in this call's Do method. Any
17208// pending HTTP request will be aborted if the provided context is
17209// canceled.
17210func (c *OrganizationsDevelopersAttributesCall) Context(ctx context.Context) *OrganizationsDevelopersAttributesCall {
17211	c.ctx_ = ctx
17212	return c
17213}
17214
17215// Header returns an http.Header that can be modified by the caller to
17216// add HTTP headers to the request.
17217func (c *OrganizationsDevelopersAttributesCall) Header() http.Header {
17218	if c.header_ == nil {
17219		c.header_ = make(http.Header)
17220	}
17221	return c.header_
17222}
17223
17224func (c *OrganizationsDevelopersAttributesCall) doRequest(alt string) (*http.Response, error) {
17225	reqHeaders := make(http.Header)
17226	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
17227	for k, v := range c.header_ {
17228		reqHeaders[k] = v
17229	}
17230	reqHeaders.Set("User-Agent", c.s.userAgent())
17231	var body io.Reader = nil
17232	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1attributes)
17233	if err != nil {
17234		return nil, err
17235	}
17236	reqHeaders.Set("Content-Type", "application/json")
17237	c.urlParams_.Set("alt", alt)
17238	c.urlParams_.Set("prettyPrint", "false")
17239	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attributes")
17240	urls += "?" + c.urlParams_.Encode()
17241	req, err := http.NewRequest("POST", urls, body)
17242	if err != nil {
17243		return nil, err
17244	}
17245	req.Header = reqHeaders
17246	googleapi.Expand(req.URL, map[string]string{
17247		"parent": c.parent,
17248	})
17249	return gensupport.SendRequest(c.ctx_, c.s.client, req)
17250}
17251
17252// Do executes the "apigee.organizations.developers.attributes" call.
17253// Exactly one of *GoogleCloudApigeeV1Attributes or error will be
17254// non-nil. Any non-2xx status code is an error. Response headers are in
17255// either *GoogleCloudApigeeV1Attributes.ServerResponse.Header or (if a
17256// response was returned at all) in error.(*googleapi.Error).Header. Use
17257// googleapi.IsNotModified to check whether the returned error was
17258// because http.StatusNotModified was returned.
17259func (c *OrganizationsDevelopersAttributesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attributes, error) {
17260	gensupport.SetOptions(c.urlParams_, opts...)
17261	res, err := c.doRequest("json")
17262	if res != nil && res.StatusCode == http.StatusNotModified {
17263		if res.Body != nil {
17264			res.Body.Close()
17265		}
17266		return nil, &googleapi.Error{
17267			Code:   res.StatusCode,
17268			Header: res.Header,
17269		}
17270	}
17271	if err != nil {
17272		return nil, err
17273	}
17274	defer googleapi.CloseBody(res)
17275	if err := googleapi.CheckResponse(res); err != nil {
17276		return nil, err
17277	}
17278	ret := &GoogleCloudApigeeV1Attributes{
17279		ServerResponse: googleapi.ServerResponse{
17280			Header:         res.Header,
17281			HTTPStatusCode: res.StatusCode,
17282		},
17283	}
17284	target := &ret
17285	if err := gensupport.DecodeResponse(target, res); err != nil {
17286		return nil, err
17287	}
17288	return ret, nil
17289	// {
17290	//   "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.",
17291	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/attributes",
17292	//   "httpMethod": "POST",
17293	//   "id": "apigee.organizations.developers.attributes",
17294	//   "parameterOrder": [
17295	//     "parent"
17296	//   ],
17297	//   "parameters": {
17298	//     "parent": {
17299	//       "description": "Required. Email address of the developer for which attributes are being updated in the following format: `organizations/{org}/developers/{developer_email}`",
17300	//       "location": "path",
17301	//       "pattern": "^organizations/[^/]+/developers/[^/]+$",
17302	//       "required": true,
17303	//       "type": "string"
17304	//     }
17305	//   },
17306	//   "path": "v1/{+parent}/attributes",
17307	//   "request": {
17308	//     "$ref": "GoogleCloudApigeeV1Attributes"
17309	//   },
17310	//   "response": {
17311	//     "$ref": "GoogleCloudApigeeV1Attributes"
17312	//   },
17313	//   "scopes": [
17314	//     "https://www.googleapis.com/auth/cloud-platform"
17315	//   ]
17316	// }
17317
17318}
17319
17320// method id "apigee.organizations.developers.create":
17321
17322type OrganizationsDevelopersCreateCall struct {
17323	s                            *Service
17324	parent                       string
17325	googlecloudapigeev1developer *GoogleCloudApigeeV1Developer
17326	urlParams_                   gensupport.URLParams
17327	ctx_                         context.Context
17328	header_                      http.Header
17329}
17330
17331// Create: Creates a developer. Once created, the developer can register
17332// an app and obtain an API key. At creation time, a developer is set as
17333// `active`. To change the developer status, use the SetDeveloperStatus
17334// API.
17335//
17336// - parent: Name of the Apigee organization in which the developer is
17337//   created. Use the following structure in your request:
17338//   `organizations/{org}`.
17339func (r *OrganizationsDevelopersService) Create(parent string, googlecloudapigeev1developer *GoogleCloudApigeeV1Developer) *OrganizationsDevelopersCreateCall {
17340	c := &OrganizationsDevelopersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17341	c.parent = parent
17342	c.googlecloudapigeev1developer = googlecloudapigeev1developer
17343	return c
17344}
17345
17346// Fields allows partial responses to be retrieved. See
17347// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
17348// for more information.
17349func (c *OrganizationsDevelopersCreateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersCreateCall {
17350	c.urlParams_.Set("fields", googleapi.CombineFields(s))
17351	return c
17352}
17353
17354// Context sets the context to be used in this call's Do method. Any
17355// pending HTTP request will be aborted if the provided context is
17356// canceled.
17357func (c *OrganizationsDevelopersCreateCall) Context(ctx context.Context) *OrganizationsDevelopersCreateCall {
17358	c.ctx_ = ctx
17359	return c
17360}
17361
17362// Header returns an http.Header that can be modified by the caller to
17363// add HTTP headers to the request.
17364func (c *OrganizationsDevelopersCreateCall) Header() http.Header {
17365	if c.header_ == nil {
17366		c.header_ = make(http.Header)
17367	}
17368	return c.header_
17369}
17370
17371func (c *OrganizationsDevelopersCreateCall) doRequest(alt string) (*http.Response, error) {
17372	reqHeaders := make(http.Header)
17373	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
17374	for k, v := range c.header_ {
17375		reqHeaders[k] = v
17376	}
17377	reqHeaders.Set("User-Agent", c.s.userAgent())
17378	var body io.Reader = nil
17379	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developer)
17380	if err != nil {
17381		return nil, err
17382	}
17383	reqHeaders.Set("Content-Type", "application/json")
17384	c.urlParams_.Set("alt", alt)
17385	c.urlParams_.Set("prettyPrint", "false")
17386	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/developers")
17387	urls += "?" + c.urlParams_.Encode()
17388	req, err := http.NewRequest("POST", urls, body)
17389	if err != nil {
17390		return nil, err
17391	}
17392	req.Header = reqHeaders
17393	googleapi.Expand(req.URL, map[string]string{
17394		"parent": c.parent,
17395	})
17396	return gensupport.SendRequest(c.ctx_, c.s.client, req)
17397}
17398
17399// Do executes the "apigee.organizations.developers.create" call.
17400// Exactly one of *GoogleCloudApigeeV1Developer or error will be
17401// non-nil. Any non-2xx status code is an error. Response headers are in
17402// either *GoogleCloudApigeeV1Developer.ServerResponse.Header or (if a
17403// response was returned at all) in error.(*googleapi.Error).Header. Use
17404// googleapi.IsNotModified to check whether the returned error was
17405// because http.StatusNotModified was returned.
17406func (c *OrganizationsDevelopersCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Developer, error) {
17407	gensupport.SetOptions(c.urlParams_, opts...)
17408	res, err := c.doRequest("json")
17409	if res != nil && res.StatusCode == http.StatusNotModified {
17410		if res.Body != nil {
17411			res.Body.Close()
17412		}
17413		return nil, &googleapi.Error{
17414			Code:   res.StatusCode,
17415			Header: res.Header,
17416		}
17417	}
17418	if err != nil {
17419		return nil, err
17420	}
17421	defer googleapi.CloseBody(res)
17422	if err := googleapi.CheckResponse(res); err != nil {
17423		return nil, err
17424	}
17425	ret := &GoogleCloudApigeeV1Developer{
17426		ServerResponse: googleapi.ServerResponse{
17427			Header:         res.Header,
17428			HTTPStatusCode: res.StatusCode,
17429		},
17430	}
17431	target := &ret
17432	if err := gensupport.DecodeResponse(target, res); err != nil {
17433		return nil, err
17434	}
17435	return ret, nil
17436	// {
17437	//   "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.",
17438	//   "flatPath": "v1/organizations/{organizationsId}/developers",
17439	//   "httpMethod": "POST",
17440	//   "id": "apigee.organizations.developers.create",
17441	//   "parameterOrder": [
17442	//     "parent"
17443	//   ],
17444	//   "parameters": {
17445	//     "parent": {
17446	//       "description": "Required. Name of the Apigee organization in which the developer is created. Use the following structure in your request: `organizations/{org}`.",
17447	//       "location": "path",
17448	//       "pattern": "^organizations/[^/]+$",
17449	//       "required": true,
17450	//       "type": "string"
17451	//     }
17452	//   },
17453	//   "path": "v1/{+parent}/developers",
17454	//   "request": {
17455	//     "$ref": "GoogleCloudApigeeV1Developer"
17456	//   },
17457	//   "response": {
17458	//     "$ref": "GoogleCloudApigeeV1Developer"
17459	//   },
17460	//   "scopes": [
17461	//     "https://www.googleapis.com/auth/cloud-platform"
17462	//   ]
17463	// }
17464
17465}
17466
17467// method id "apigee.organizations.developers.delete":
17468
17469type OrganizationsDevelopersDeleteCall struct {
17470	s          *Service
17471	name       string
17472	urlParams_ gensupport.URLParams
17473	ctx_       context.Context
17474	header_    http.Header
17475}
17476
17477// Delete: Deletes a developer. All apps and API keys associated with
17478// the developer are also removed. **Warning**: This API will
17479// permanently delete the developer and related artifacts. To avoid
17480// permanently deleting developers and their artifacts, set the
17481// developer status to `inactive` using the SetDeveloperStatus API.
17482// **Note**: The delete operation is asynchronous. The developer app is
17483// deleted immediately, but its associated resources, such as apps and
17484// API keys, may take anywhere from a few seconds to a few minutes to be
17485// deleted.
17486//
17487// - name: Email address of the developer. Use the following structure
17488//   in your request: `organizations/{org}/developers/{developer_email}`.
17489func (r *OrganizationsDevelopersService) Delete(name string) *OrganizationsDevelopersDeleteCall {
17490	c := &OrganizationsDevelopersDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17491	c.name = name
17492	return c
17493}
17494
17495// Fields allows partial responses to be retrieved. See
17496// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
17497// for more information.
17498func (c *OrganizationsDevelopersDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersDeleteCall {
17499	c.urlParams_.Set("fields", googleapi.CombineFields(s))
17500	return c
17501}
17502
17503// Context sets the context to be used in this call's Do method. Any
17504// pending HTTP request will be aborted if the provided context is
17505// canceled.
17506func (c *OrganizationsDevelopersDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersDeleteCall {
17507	c.ctx_ = ctx
17508	return c
17509}
17510
17511// Header returns an http.Header that can be modified by the caller to
17512// add HTTP headers to the request.
17513func (c *OrganizationsDevelopersDeleteCall) Header() http.Header {
17514	if c.header_ == nil {
17515		c.header_ = make(http.Header)
17516	}
17517	return c.header_
17518}
17519
17520func (c *OrganizationsDevelopersDeleteCall) doRequest(alt string) (*http.Response, error) {
17521	reqHeaders := make(http.Header)
17522	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
17523	for k, v := range c.header_ {
17524		reqHeaders[k] = v
17525	}
17526	reqHeaders.Set("User-Agent", c.s.userAgent())
17527	var body io.Reader = nil
17528	c.urlParams_.Set("alt", alt)
17529	c.urlParams_.Set("prettyPrint", "false")
17530	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
17531	urls += "?" + c.urlParams_.Encode()
17532	req, err := http.NewRequest("DELETE", urls, body)
17533	if err != nil {
17534		return nil, err
17535	}
17536	req.Header = reqHeaders
17537	googleapi.Expand(req.URL, map[string]string{
17538		"name": c.name,
17539	})
17540	return gensupport.SendRequest(c.ctx_, c.s.client, req)
17541}
17542
17543// Do executes the "apigee.organizations.developers.delete" call.
17544// Exactly one of *GoogleCloudApigeeV1Developer or error will be
17545// non-nil. Any non-2xx status code is an error. Response headers are in
17546// either *GoogleCloudApigeeV1Developer.ServerResponse.Header or (if a
17547// response was returned at all) in error.(*googleapi.Error).Header. Use
17548// googleapi.IsNotModified to check whether the returned error was
17549// because http.StatusNotModified was returned.
17550func (c *OrganizationsDevelopersDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Developer, error) {
17551	gensupport.SetOptions(c.urlParams_, opts...)
17552	res, err := c.doRequest("json")
17553	if res != nil && res.StatusCode == http.StatusNotModified {
17554		if res.Body != nil {
17555			res.Body.Close()
17556		}
17557		return nil, &googleapi.Error{
17558			Code:   res.StatusCode,
17559			Header: res.Header,
17560		}
17561	}
17562	if err != nil {
17563		return nil, err
17564	}
17565	defer googleapi.CloseBody(res)
17566	if err := googleapi.CheckResponse(res); err != nil {
17567		return nil, err
17568	}
17569	ret := &GoogleCloudApigeeV1Developer{
17570		ServerResponse: googleapi.ServerResponse{
17571			Header:         res.Header,
17572			HTTPStatusCode: res.StatusCode,
17573		},
17574	}
17575	target := &ret
17576	if err := gensupport.DecodeResponse(target, res); err != nil {
17577		return nil, err
17578	}
17579	return ret, nil
17580	// {
17581	//   "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.",
17582	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}",
17583	//   "httpMethod": "DELETE",
17584	//   "id": "apigee.organizations.developers.delete",
17585	//   "parameterOrder": [
17586	//     "name"
17587	//   ],
17588	//   "parameters": {
17589	//     "name": {
17590	//       "description": "Required. Email address of the developer. Use the following structure in your request: `organizations/{org}/developers/{developer_email}`",
17591	//       "location": "path",
17592	//       "pattern": "^organizations/[^/]+/developers/[^/]+$",
17593	//       "required": true,
17594	//       "type": "string"
17595	//     }
17596	//   },
17597	//   "path": "v1/{+name}",
17598	//   "response": {
17599	//     "$ref": "GoogleCloudApigeeV1Developer"
17600	//   },
17601	//   "scopes": [
17602	//     "https://www.googleapis.com/auth/cloud-platform"
17603	//   ]
17604	// }
17605
17606}
17607
17608// method id "apigee.organizations.developers.get":
17609
17610type OrganizationsDevelopersGetCall struct {
17611	s            *Service
17612	name         string
17613	urlParams_   gensupport.URLParams
17614	ifNoneMatch_ string
17615	ctx_         context.Context
17616	header_      http.Header
17617}
17618
17619// Get: Returns the developer details, including the developer's name,
17620// email address, apps, and other information. **Note**: The response
17621// includes only the first 100 developer apps.
17622//
17623// - name: Email address of the developer. Use the following structure
17624//   in your request: `organizations/{org}/developers/{developer_email}`.
17625func (r *OrganizationsDevelopersService) Get(name string) *OrganizationsDevelopersGetCall {
17626	c := &OrganizationsDevelopersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17627	c.name = name
17628	return c
17629}
17630
17631// Action sets the optional parameter "action": Status of the developer.
17632// Valid values are `active` or `inactive`.
17633func (c *OrganizationsDevelopersGetCall) Action(action string) *OrganizationsDevelopersGetCall {
17634	c.urlParams_.Set("action", action)
17635	return c
17636}
17637
17638// Fields allows partial responses to be retrieved. See
17639// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
17640// for more information.
17641func (c *OrganizationsDevelopersGetCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersGetCall {
17642	c.urlParams_.Set("fields", googleapi.CombineFields(s))
17643	return c
17644}
17645
17646// IfNoneMatch sets the optional parameter which makes the operation
17647// fail if the object's ETag matches the given value. This is useful for
17648// getting updates only after the object has changed since the last
17649// request. Use googleapi.IsNotModified to check whether the response
17650// error from Do is the result of In-None-Match.
17651func (c *OrganizationsDevelopersGetCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersGetCall {
17652	c.ifNoneMatch_ = entityTag
17653	return c
17654}
17655
17656// Context sets the context to be used in this call's Do method. Any
17657// pending HTTP request will be aborted if the provided context is
17658// canceled.
17659func (c *OrganizationsDevelopersGetCall) Context(ctx context.Context) *OrganizationsDevelopersGetCall {
17660	c.ctx_ = ctx
17661	return c
17662}
17663
17664// Header returns an http.Header that can be modified by the caller to
17665// add HTTP headers to the request.
17666func (c *OrganizationsDevelopersGetCall) Header() http.Header {
17667	if c.header_ == nil {
17668		c.header_ = make(http.Header)
17669	}
17670	return c.header_
17671}
17672
17673func (c *OrganizationsDevelopersGetCall) doRequest(alt string) (*http.Response, error) {
17674	reqHeaders := make(http.Header)
17675	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
17676	for k, v := range c.header_ {
17677		reqHeaders[k] = v
17678	}
17679	reqHeaders.Set("User-Agent", c.s.userAgent())
17680	if c.ifNoneMatch_ != "" {
17681		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
17682	}
17683	var body io.Reader = nil
17684	c.urlParams_.Set("alt", alt)
17685	c.urlParams_.Set("prettyPrint", "false")
17686	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
17687	urls += "?" + c.urlParams_.Encode()
17688	req, err := http.NewRequest("GET", urls, body)
17689	if err != nil {
17690		return nil, err
17691	}
17692	req.Header = reqHeaders
17693	googleapi.Expand(req.URL, map[string]string{
17694		"name": c.name,
17695	})
17696	return gensupport.SendRequest(c.ctx_, c.s.client, req)
17697}
17698
17699// Do executes the "apigee.organizations.developers.get" call.
17700// Exactly one of *GoogleCloudApigeeV1Developer or error will be
17701// non-nil. Any non-2xx status code is an error. Response headers are in
17702// either *GoogleCloudApigeeV1Developer.ServerResponse.Header or (if a
17703// response was returned at all) in error.(*googleapi.Error).Header. Use
17704// googleapi.IsNotModified to check whether the returned error was
17705// because http.StatusNotModified was returned.
17706func (c *OrganizationsDevelopersGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Developer, error) {
17707	gensupport.SetOptions(c.urlParams_, opts...)
17708	res, err := c.doRequest("json")
17709	if res != nil && res.StatusCode == http.StatusNotModified {
17710		if res.Body != nil {
17711			res.Body.Close()
17712		}
17713		return nil, &googleapi.Error{
17714			Code:   res.StatusCode,
17715			Header: res.Header,
17716		}
17717	}
17718	if err != nil {
17719		return nil, err
17720	}
17721	defer googleapi.CloseBody(res)
17722	if err := googleapi.CheckResponse(res); err != nil {
17723		return nil, err
17724	}
17725	ret := &GoogleCloudApigeeV1Developer{
17726		ServerResponse: googleapi.ServerResponse{
17727			Header:         res.Header,
17728			HTTPStatusCode: res.StatusCode,
17729		},
17730	}
17731	target := &ret
17732	if err := gensupport.DecodeResponse(target, res); err != nil {
17733		return nil, err
17734	}
17735	return ret, nil
17736	// {
17737	//   "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.",
17738	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}",
17739	//   "httpMethod": "GET",
17740	//   "id": "apigee.organizations.developers.get",
17741	//   "parameterOrder": [
17742	//     "name"
17743	//   ],
17744	//   "parameters": {
17745	//     "action": {
17746	//       "description": "Status of the developer. Valid values are `active` or `inactive`.",
17747	//       "location": "query",
17748	//       "type": "string"
17749	//     },
17750	//     "name": {
17751	//       "description": "Required. Email address of the developer. Use the following structure in your request: `organizations/{org}/developers/{developer_email}`",
17752	//       "location": "path",
17753	//       "pattern": "^organizations/[^/]+/developers/[^/]+$",
17754	//       "required": true,
17755	//       "type": "string"
17756	//     }
17757	//   },
17758	//   "path": "v1/{+name}",
17759	//   "response": {
17760	//     "$ref": "GoogleCloudApigeeV1Developer"
17761	//   },
17762	//   "scopes": [
17763	//     "https://www.googleapis.com/auth/cloud-platform"
17764	//   ]
17765	// }
17766
17767}
17768
17769// method id "apigee.organizations.developers.list":
17770
17771type OrganizationsDevelopersListCall struct {
17772	s            *Service
17773	parent       string
17774	urlParams_   gensupport.URLParams
17775	ifNoneMatch_ string
17776	ctx_         context.Context
17777	header_      http.Header
17778}
17779
17780// List: Lists all developers in an organization by email address. By
17781// default, the response does not include company developers. Set the
17782// `includeCompany` query parameter to `true` to include company
17783// developers. **Note**: A maximum of 1000 developers are returned in
17784// the response. You paginate the list of developers returned using the
17785// `startKey` and `count` query parameters.
17786//
17787// - parent: Name of the Apigee organization. Use the following
17788//   structure in your request: `organizations/{org}`.
17789func (r *OrganizationsDevelopersService) List(parent string) *OrganizationsDevelopersListCall {
17790	c := &OrganizationsDevelopersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17791	c.parent = parent
17792	return c
17793}
17794
17795// App sets the optional parameter "app": List only Developers that are
17796// associated with the app. Note that start_key, count are not
17797// applicable for this filter criteria.
17798func (c *OrganizationsDevelopersListCall) App(app string) *OrganizationsDevelopersListCall {
17799	c.urlParams_.Set("app", app)
17800	return c
17801}
17802
17803// Count sets the optional parameter "count": Number of developers to
17804// return in the API call. Use with the `startKey` parameter to provide
17805// more targeted filtering. The limit is 1000.
17806func (c *OrganizationsDevelopersListCall) Count(count int64) *OrganizationsDevelopersListCall {
17807	c.urlParams_.Set("count", fmt.Sprint(count))
17808	return c
17809}
17810
17811// Expand sets the optional parameter "expand": Specifies whether to
17812// expand the results. Set to `true` to expand the results. This query
17813// parameter is not valid if you use the `count` or `startKey` query
17814// parameters.
17815func (c *OrganizationsDevelopersListCall) Expand(expand bool) *OrganizationsDevelopersListCall {
17816	c.urlParams_.Set("expand", fmt.Sprint(expand))
17817	return c
17818}
17819
17820// Ids sets the optional parameter "ids": List of IDs to include,
17821// separated by commas.
17822func (c *OrganizationsDevelopersListCall) Ids(ids string) *OrganizationsDevelopersListCall {
17823	c.urlParams_.Set("ids", ids)
17824	return c
17825}
17826
17827// IncludeCompany sets the optional parameter "includeCompany": Flag
17828// that specifies whether to include company details in the response.
17829func (c *OrganizationsDevelopersListCall) IncludeCompany(includeCompany bool) *OrganizationsDevelopersListCall {
17830	c.urlParams_.Set("includeCompany", fmt.Sprint(includeCompany))
17831	return c
17832}
17833
17834// StartKey sets the optional parameter "startKey": **Note**: Must be
17835// used in conjunction with the `count` parameter. Email address of the
17836// developer from which to start displaying the list of developers. For
17837// example, if the an unfiltered list returns: ``` westley@example.com
17838// fezzik@example.com buttercup@example.com ``` and your `startKey` is
17839// `fezzik@example.com`, the list returned will be ```
17840// fezzik@example.com buttercup@example.com ```
17841func (c *OrganizationsDevelopersListCall) StartKey(startKey string) *OrganizationsDevelopersListCall {
17842	c.urlParams_.Set("startKey", startKey)
17843	return c
17844}
17845
17846// Fields allows partial responses to be retrieved. See
17847// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
17848// for more information.
17849func (c *OrganizationsDevelopersListCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersListCall {
17850	c.urlParams_.Set("fields", googleapi.CombineFields(s))
17851	return c
17852}
17853
17854// IfNoneMatch sets the optional parameter which makes the operation
17855// fail if the object's ETag matches the given value. This is useful for
17856// getting updates only after the object has changed since the last
17857// request. Use googleapi.IsNotModified to check whether the response
17858// error from Do is the result of In-None-Match.
17859func (c *OrganizationsDevelopersListCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersListCall {
17860	c.ifNoneMatch_ = entityTag
17861	return c
17862}
17863
17864// Context sets the context to be used in this call's Do method. Any
17865// pending HTTP request will be aborted if the provided context is
17866// canceled.
17867func (c *OrganizationsDevelopersListCall) Context(ctx context.Context) *OrganizationsDevelopersListCall {
17868	c.ctx_ = ctx
17869	return c
17870}
17871
17872// Header returns an http.Header that can be modified by the caller to
17873// add HTTP headers to the request.
17874func (c *OrganizationsDevelopersListCall) Header() http.Header {
17875	if c.header_ == nil {
17876		c.header_ = make(http.Header)
17877	}
17878	return c.header_
17879}
17880
17881func (c *OrganizationsDevelopersListCall) doRequest(alt string) (*http.Response, error) {
17882	reqHeaders := make(http.Header)
17883	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
17884	for k, v := range c.header_ {
17885		reqHeaders[k] = v
17886	}
17887	reqHeaders.Set("User-Agent", c.s.userAgent())
17888	if c.ifNoneMatch_ != "" {
17889		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
17890	}
17891	var body io.Reader = nil
17892	c.urlParams_.Set("alt", alt)
17893	c.urlParams_.Set("prettyPrint", "false")
17894	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/developers")
17895	urls += "?" + c.urlParams_.Encode()
17896	req, err := http.NewRequest("GET", urls, body)
17897	if err != nil {
17898		return nil, err
17899	}
17900	req.Header = reqHeaders
17901	googleapi.Expand(req.URL, map[string]string{
17902		"parent": c.parent,
17903	})
17904	return gensupport.SendRequest(c.ctx_, c.s.client, req)
17905}
17906
17907// Do executes the "apigee.organizations.developers.list" call.
17908// Exactly one of *GoogleCloudApigeeV1ListOfDevelopersResponse or error
17909// will be non-nil. Any non-2xx status code is an error. Response
17910// headers are in either
17911// *GoogleCloudApigeeV1ListOfDevelopersResponse.ServerResponse.Header or
17912// (if a response was returned at all) in
17913// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
17914// whether the returned error was because http.StatusNotModified was
17915// returned.
17916func (c *OrganizationsDevelopersListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListOfDevelopersResponse, error) {
17917	gensupport.SetOptions(c.urlParams_, opts...)
17918	res, err := c.doRequest("json")
17919	if res != nil && res.StatusCode == http.StatusNotModified {
17920		if res.Body != nil {
17921			res.Body.Close()
17922		}
17923		return nil, &googleapi.Error{
17924			Code:   res.StatusCode,
17925			Header: res.Header,
17926		}
17927	}
17928	if err != nil {
17929		return nil, err
17930	}
17931	defer googleapi.CloseBody(res)
17932	if err := googleapi.CheckResponse(res); err != nil {
17933		return nil, err
17934	}
17935	ret := &GoogleCloudApigeeV1ListOfDevelopersResponse{
17936		ServerResponse: googleapi.ServerResponse{
17937			Header:         res.Header,
17938			HTTPStatusCode: res.StatusCode,
17939		},
17940	}
17941	target := &ret
17942	if err := gensupport.DecodeResponse(target, res); err != nil {
17943		return nil, err
17944	}
17945	return ret, nil
17946	// {
17947	//   "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.",
17948	//   "flatPath": "v1/organizations/{organizationsId}/developers",
17949	//   "httpMethod": "GET",
17950	//   "id": "apigee.organizations.developers.list",
17951	//   "parameterOrder": [
17952	//     "parent"
17953	//   ],
17954	//   "parameters": {
17955	//     "app": {
17956	//       "description": "Optional. List only Developers that are associated with the app. Note that start_key, count are not applicable for this filter criteria.",
17957	//       "location": "query",
17958	//       "type": "string"
17959	//     },
17960	//     "count": {
17961	//       "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.",
17962	//       "format": "int64",
17963	//       "location": "query",
17964	//       "type": "string"
17965	//     },
17966	//     "expand": {
17967	//       "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.",
17968	//       "location": "query",
17969	//       "type": "boolean"
17970	//     },
17971	//     "ids": {
17972	//       "description": "Optional. List of IDs to include, separated by commas.",
17973	//       "location": "query",
17974	//       "type": "string"
17975	//     },
17976	//     "includeCompany": {
17977	//       "description": "Flag that specifies whether to include company details in the response.",
17978	//       "location": "query",
17979	//       "type": "boolean"
17980	//     },
17981	//     "parent": {
17982	//       "description": "Required. Name of the Apigee organization. Use the following structure in your request: `organizations/{org}`.",
17983	//       "location": "path",
17984	//       "pattern": "^organizations/[^/]+$",
17985	//       "required": true,
17986	//       "type": "string"
17987	//     },
17988	//     "startKey": {
17989	//       "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 ```",
17990	//       "location": "query",
17991	//       "type": "string"
17992	//     }
17993	//   },
17994	//   "path": "v1/{+parent}/developers",
17995	//   "response": {
17996	//     "$ref": "GoogleCloudApigeeV1ListOfDevelopersResponse"
17997	//   },
17998	//   "scopes": [
17999	//     "https://www.googleapis.com/auth/cloud-platform"
18000	//   ]
18001	// }
18002
18003}
18004
18005// method id "apigee.organizations.developers.setDeveloperStatus":
18006
18007type OrganizationsDevelopersSetDeveloperStatusCall struct {
18008	s          *Service
18009	name       string
18010	urlParams_ gensupport.URLParams
18011	ctx_       context.Context
18012	header_    http.Header
18013}
18014
18015// SetDeveloperStatus: Sets the status of a developer. Valid values are
18016// `active` or `inactive`. A developer is `active` by default. If you
18017// set a developer's status to `inactive`, the API keys assigned to the
18018// developer apps are no longer valid even though the API keys are set
18019// to `approved`. Inactive developers can still sign in to the developer
18020// portal and create apps; however, any new API keys generated during
18021// app creation won't work. If successful, the API call returns the
18022// following HTTP status code: `204 No Content`
18023//
18024// - name: Email address of the developer. Use the following structure
18025//   in your request: `organizations/{org}/developers/{developer_email}`.
18026func (r *OrganizationsDevelopersService) SetDeveloperStatus(name string) *OrganizationsDevelopersSetDeveloperStatusCall {
18027	c := &OrganizationsDevelopersSetDeveloperStatusCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18028	c.name = name
18029	return c
18030}
18031
18032// Action sets the optional parameter "action": Status of the developer.
18033// Valid values are `active` and `inactive`.
18034func (c *OrganizationsDevelopersSetDeveloperStatusCall) Action(action string) *OrganizationsDevelopersSetDeveloperStatusCall {
18035	c.urlParams_.Set("action", action)
18036	return c
18037}
18038
18039// Fields allows partial responses to be retrieved. See
18040// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18041// for more information.
18042func (c *OrganizationsDevelopersSetDeveloperStatusCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersSetDeveloperStatusCall {
18043	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18044	return c
18045}
18046
18047// Context sets the context to be used in this call's Do method. Any
18048// pending HTTP request will be aborted if the provided context is
18049// canceled.
18050func (c *OrganizationsDevelopersSetDeveloperStatusCall) Context(ctx context.Context) *OrganizationsDevelopersSetDeveloperStatusCall {
18051	c.ctx_ = ctx
18052	return c
18053}
18054
18055// Header returns an http.Header that can be modified by the caller to
18056// add HTTP headers to the request.
18057func (c *OrganizationsDevelopersSetDeveloperStatusCall) Header() http.Header {
18058	if c.header_ == nil {
18059		c.header_ = make(http.Header)
18060	}
18061	return c.header_
18062}
18063
18064func (c *OrganizationsDevelopersSetDeveloperStatusCall) doRequest(alt string) (*http.Response, error) {
18065	reqHeaders := make(http.Header)
18066	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
18067	for k, v := range c.header_ {
18068		reqHeaders[k] = v
18069	}
18070	reqHeaders.Set("User-Agent", c.s.userAgent())
18071	var body io.Reader = nil
18072	c.urlParams_.Set("alt", alt)
18073	c.urlParams_.Set("prettyPrint", "false")
18074	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
18075	urls += "?" + c.urlParams_.Encode()
18076	req, err := http.NewRequest("POST", urls, body)
18077	if err != nil {
18078		return nil, err
18079	}
18080	req.Header = reqHeaders
18081	googleapi.Expand(req.URL, map[string]string{
18082		"name": c.name,
18083	})
18084	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18085}
18086
18087// Do executes the "apigee.organizations.developers.setDeveloperStatus" call.
18088// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
18089// non-2xx status code is an error. Response headers are in either
18090// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
18091// returned at all) in error.(*googleapi.Error).Header. Use
18092// googleapi.IsNotModified to check whether the returned error was
18093// because http.StatusNotModified was returned.
18094func (c *OrganizationsDevelopersSetDeveloperStatusCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
18095	gensupport.SetOptions(c.urlParams_, opts...)
18096	res, err := c.doRequest("json")
18097	if res != nil && res.StatusCode == http.StatusNotModified {
18098		if res.Body != nil {
18099			res.Body.Close()
18100		}
18101		return nil, &googleapi.Error{
18102			Code:   res.StatusCode,
18103			Header: res.Header,
18104		}
18105	}
18106	if err != nil {
18107		return nil, err
18108	}
18109	defer googleapi.CloseBody(res)
18110	if err := googleapi.CheckResponse(res); err != nil {
18111		return nil, err
18112	}
18113	ret := &GoogleProtobufEmpty{
18114		ServerResponse: googleapi.ServerResponse{
18115			Header:         res.Header,
18116			HTTPStatusCode: res.StatusCode,
18117		},
18118	}
18119	target := &ret
18120	if err := gensupport.DecodeResponse(target, res); err != nil {
18121		return nil, err
18122	}
18123	return ret, nil
18124	// {
18125	//   "description": "Sets the status of a developer. Valid values are `active` or `inactive`. A developer is `active` by default. If you set a developer's status to `inactive`, the API keys assigned to the developer apps are no longer valid even though the API keys are set to `approved`. Inactive developers can still sign in to the developer portal and create apps; however, any new API keys generated during app creation won't work. If successful, the API call returns the following HTTP status code: `204 No Content`",
18126	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}",
18127	//   "httpMethod": "POST",
18128	//   "id": "apigee.organizations.developers.setDeveloperStatus",
18129	//   "parameterOrder": [
18130	//     "name"
18131	//   ],
18132	//   "parameters": {
18133	//     "action": {
18134	//       "description": "Status of the developer. Valid values are `active` and `inactive`.",
18135	//       "location": "query",
18136	//       "type": "string"
18137	//     },
18138	//     "name": {
18139	//       "description": "Required. Email address of the developer. Use the following structure in your request: `organizations/{org}/developers/{developer_email}`",
18140	//       "location": "path",
18141	//       "pattern": "^organizations/[^/]+/developers/[^/]+$",
18142	//       "required": true,
18143	//       "type": "string"
18144	//     }
18145	//   },
18146	//   "path": "v1/{+name}",
18147	//   "response": {
18148	//     "$ref": "GoogleProtobufEmpty"
18149	//   },
18150	//   "scopes": [
18151	//     "https://www.googleapis.com/auth/cloud-platform"
18152	//   ]
18153	// }
18154
18155}
18156
18157// method id "apigee.organizations.developers.update":
18158
18159type OrganizationsDevelopersUpdateCall struct {
18160	s                            *Service
18161	name                         string
18162	googlecloudapigeev1developer *GoogleCloudApigeeV1Developer
18163	urlParams_                   gensupport.URLParams
18164	ctx_                         context.Context
18165	header_                      http.Header
18166}
18167
18168// Update: Updates a developer. This API replaces the existing developer
18169// details with those specified in the request. Include or exclude any
18170// existing details that you want to retain or delete, respectively. The
18171// custom attribute limit is 18. **Note**: OAuth access tokens and Key
18172// Management Service (KMS) entities (apps, developers, and API
18173// products) are cached for 180 seconds (current default). Any custom
18174// attributes associated with these entities are cached for at least 180
18175// seconds after the entity is accessed at runtime. Therefore, an
18176// `ExpiresIn` element on the OAuthV2 policy won't be able to expire an
18177// access token in less than 180 seconds.
18178//
18179// - name: Email address of the developer. Use the following structure
18180//   in your request: `organizations/{org}/developers/{developer_email}`.
18181func (r *OrganizationsDevelopersService) Update(name string, googlecloudapigeev1developer *GoogleCloudApigeeV1Developer) *OrganizationsDevelopersUpdateCall {
18182	c := &OrganizationsDevelopersUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18183	c.name = name
18184	c.googlecloudapigeev1developer = googlecloudapigeev1developer
18185	return c
18186}
18187
18188// Fields allows partial responses to be retrieved. See
18189// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18190// for more information.
18191func (c *OrganizationsDevelopersUpdateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersUpdateCall {
18192	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18193	return c
18194}
18195
18196// Context sets the context to be used in this call's Do method. Any
18197// pending HTTP request will be aborted if the provided context is
18198// canceled.
18199func (c *OrganizationsDevelopersUpdateCall) Context(ctx context.Context) *OrganizationsDevelopersUpdateCall {
18200	c.ctx_ = ctx
18201	return c
18202}
18203
18204// Header returns an http.Header that can be modified by the caller to
18205// add HTTP headers to the request.
18206func (c *OrganizationsDevelopersUpdateCall) Header() http.Header {
18207	if c.header_ == nil {
18208		c.header_ = make(http.Header)
18209	}
18210	return c.header_
18211}
18212
18213func (c *OrganizationsDevelopersUpdateCall) doRequest(alt string) (*http.Response, error) {
18214	reqHeaders := make(http.Header)
18215	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
18216	for k, v := range c.header_ {
18217		reqHeaders[k] = v
18218	}
18219	reqHeaders.Set("User-Agent", c.s.userAgent())
18220	var body io.Reader = nil
18221	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developer)
18222	if err != nil {
18223		return nil, err
18224	}
18225	reqHeaders.Set("Content-Type", "application/json")
18226	c.urlParams_.Set("alt", alt)
18227	c.urlParams_.Set("prettyPrint", "false")
18228	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
18229	urls += "?" + c.urlParams_.Encode()
18230	req, err := http.NewRequest("PUT", urls, body)
18231	if err != nil {
18232		return nil, err
18233	}
18234	req.Header = reqHeaders
18235	googleapi.Expand(req.URL, map[string]string{
18236		"name": c.name,
18237	})
18238	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18239}
18240
18241// Do executes the "apigee.organizations.developers.update" call.
18242// Exactly one of *GoogleCloudApigeeV1Developer or error will be
18243// non-nil. Any non-2xx status code is an error. Response headers are in
18244// either *GoogleCloudApigeeV1Developer.ServerResponse.Header or (if a
18245// response was returned at all) in error.(*googleapi.Error).Header. Use
18246// googleapi.IsNotModified to check whether the returned error was
18247// because http.StatusNotModified was returned.
18248func (c *OrganizationsDevelopersUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Developer, error) {
18249	gensupport.SetOptions(c.urlParams_, opts...)
18250	res, err := c.doRequest("json")
18251	if res != nil && res.StatusCode == http.StatusNotModified {
18252		if res.Body != nil {
18253			res.Body.Close()
18254		}
18255		return nil, &googleapi.Error{
18256			Code:   res.StatusCode,
18257			Header: res.Header,
18258		}
18259	}
18260	if err != nil {
18261		return nil, err
18262	}
18263	defer googleapi.CloseBody(res)
18264	if err := googleapi.CheckResponse(res); err != nil {
18265		return nil, err
18266	}
18267	ret := &GoogleCloudApigeeV1Developer{
18268		ServerResponse: googleapi.ServerResponse{
18269			Header:         res.Header,
18270			HTTPStatusCode: res.StatusCode,
18271		},
18272	}
18273	target := &ret
18274	if err := gensupport.DecodeResponse(target, res); err != nil {
18275		return nil, err
18276	}
18277	return ret, nil
18278	// {
18279	//   "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.",
18280	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}",
18281	//   "httpMethod": "PUT",
18282	//   "id": "apigee.organizations.developers.update",
18283	//   "parameterOrder": [
18284	//     "name"
18285	//   ],
18286	//   "parameters": {
18287	//     "name": {
18288	//       "description": "Required. Email address of the developer. Use the following structure in your request: `organizations/{org}/developers/{developer_email}`",
18289	//       "location": "path",
18290	//       "pattern": "^organizations/[^/]+/developers/[^/]+$",
18291	//       "required": true,
18292	//       "type": "string"
18293	//     }
18294	//   },
18295	//   "path": "v1/{+name}",
18296	//   "request": {
18297	//     "$ref": "GoogleCloudApigeeV1Developer"
18298	//   },
18299	//   "response": {
18300	//     "$ref": "GoogleCloudApigeeV1Developer"
18301	//   },
18302	//   "scopes": [
18303	//     "https://www.googleapis.com/auth/cloud-platform"
18304	//   ]
18305	// }
18306
18307}
18308
18309// method id "apigee.organizations.developers.apps.attributes":
18310
18311type OrganizationsDevelopersAppsAttributesCall struct {
18312	s                             *Service
18313	name                          string
18314	googlecloudapigeev1attributes *GoogleCloudApigeeV1Attributes
18315	urlParams_                    gensupport.URLParams
18316	ctx_                          context.Context
18317	header_                       http.Header
18318}
18319
18320// Attributes: Updates attributes for a developer app. This API replaces
18321// the current attributes with those specified in the request.
18322//
18323// - name: Name of the developer app. Use the following structure in
18324//   your request:
18325//   `organizations/{org}/developers/{developer_email}/apps/{app}`.
18326func (r *OrganizationsDevelopersAppsService) Attributes(name string, googlecloudapigeev1attributes *GoogleCloudApigeeV1Attributes) *OrganizationsDevelopersAppsAttributesCall {
18327	c := &OrganizationsDevelopersAppsAttributesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18328	c.name = name
18329	c.googlecloudapigeev1attributes = googlecloudapigeev1attributes
18330	return c
18331}
18332
18333// Fields allows partial responses to be retrieved. See
18334// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18335// for more information.
18336func (c *OrganizationsDevelopersAppsAttributesCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsAttributesCall {
18337	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18338	return c
18339}
18340
18341// Context sets the context to be used in this call's Do method. Any
18342// pending HTTP request will be aborted if the provided context is
18343// canceled.
18344func (c *OrganizationsDevelopersAppsAttributesCall) Context(ctx context.Context) *OrganizationsDevelopersAppsAttributesCall {
18345	c.ctx_ = ctx
18346	return c
18347}
18348
18349// Header returns an http.Header that can be modified by the caller to
18350// add HTTP headers to the request.
18351func (c *OrganizationsDevelopersAppsAttributesCall) Header() http.Header {
18352	if c.header_ == nil {
18353		c.header_ = make(http.Header)
18354	}
18355	return c.header_
18356}
18357
18358func (c *OrganizationsDevelopersAppsAttributesCall) doRequest(alt string) (*http.Response, error) {
18359	reqHeaders := make(http.Header)
18360	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
18361	for k, v := range c.header_ {
18362		reqHeaders[k] = v
18363	}
18364	reqHeaders.Set("User-Agent", c.s.userAgent())
18365	var body io.Reader = nil
18366	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1attributes)
18367	if err != nil {
18368		return nil, err
18369	}
18370	reqHeaders.Set("Content-Type", "application/json")
18371	c.urlParams_.Set("alt", alt)
18372	c.urlParams_.Set("prettyPrint", "false")
18373	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/attributes")
18374	urls += "?" + c.urlParams_.Encode()
18375	req, err := http.NewRequest("POST", urls, body)
18376	if err != nil {
18377		return nil, err
18378	}
18379	req.Header = reqHeaders
18380	googleapi.Expand(req.URL, map[string]string{
18381		"name": c.name,
18382	})
18383	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18384}
18385
18386// Do executes the "apigee.organizations.developers.apps.attributes" call.
18387// Exactly one of *GoogleCloudApigeeV1Attributes or error will be
18388// non-nil. Any non-2xx status code is an error. Response headers are in
18389// either *GoogleCloudApigeeV1Attributes.ServerResponse.Header or (if a
18390// response was returned at all) in error.(*googleapi.Error).Header. Use
18391// googleapi.IsNotModified to check whether the returned error was
18392// because http.StatusNotModified was returned.
18393func (c *OrganizationsDevelopersAppsAttributesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attributes, error) {
18394	gensupport.SetOptions(c.urlParams_, opts...)
18395	res, err := c.doRequest("json")
18396	if res != nil && res.StatusCode == http.StatusNotModified {
18397		if res.Body != nil {
18398			res.Body.Close()
18399		}
18400		return nil, &googleapi.Error{
18401			Code:   res.StatusCode,
18402			Header: res.Header,
18403		}
18404	}
18405	if err != nil {
18406		return nil, err
18407	}
18408	defer googleapi.CloseBody(res)
18409	if err := googleapi.CheckResponse(res); err != nil {
18410		return nil, err
18411	}
18412	ret := &GoogleCloudApigeeV1Attributes{
18413		ServerResponse: googleapi.ServerResponse{
18414			Header:         res.Header,
18415			HTTPStatusCode: res.StatusCode,
18416		},
18417	}
18418	target := &ret
18419	if err := gensupport.DecodeResponse(target, res); err != nil {
18420		return nil, err
18421	}
18422	return ret, nil
18423	// {
18424	//   "description": "Updates attributes for a developer app. This API replaces the current attributes with those specified in the request.",
18425	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/attributes",
18426	//   "httpMethod": "POST",
18427	//   "id": "apigee.organizations.developers.apps.attributes",
18428	//   "parameterOrder": [
18429	//     "name"
18430	//   ],
18431	//   "parameters": {
18432	//     "name": {
18433	//       "description": "Required. Name of the developer app. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}`",
18434	//       "location": "path",
18435	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$",
18436	//       "required": true,
18437	//       "type": "string"
18438	//     }
18439	//   },
18440	//   "path": "v1/{+name}/attributes",
18441	//   "request": {
18442	//     "$ref": "GoogleCloudApigeeV1Attributes"
18443	//   },
18444	//   "response": {
18445	//     "$ref": "GoogleCloudApigeeV1Attributes"
18446	//   },
18447	//   "scopes": [
18448	//     "https://www.googleapis.com/auth/cloud-platform"
18449	//   ]
18450	// }
18451
18452}
18453
18454// method id "apigee.organizations.developers.apps.create":
18455
18456type OrganizationsDevelopersAppsCreateCall struct {
18457	s                               *Service
18458	parent                          string
18459	googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp
18460	urlParams_                      gensupport.URLParams
18461	ctx_                            context.Context
18462	header_                         http.Header
18463}
18464
18465// Create: Creates an app associated with a developer. This API
18466// associates the developer app with the specified API product and
18467// auto-generates an API key for the app to use in calls to API proxies
18468// inside that API product. The `name` is the unique ID of the app that
18469// you can use in API calls. The `DisplayName` (set as an attribute)
18470// appears in the UI. If you don't set the `DisplayName` attribute, the
18471// `name` appears in the UI.
18472//
18473// - parent: Name of the developer. Use the following structure in your
18474//   request: `organizations/{org}/developers/{developer_email}`.
18475func (r *OrganizationsDevelopersAppsService) Create(parent string, googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp) *OrganizationsDevelopersAppsCreateCall {
18476	c := &OrganizationsDevelopersAppsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18477	c.parent = parent
18478	c.googlecloudapigeev1developerapp = googlecloudapigeev1developerapp
18479	return c
18480}
18481
18482// Fields allows partial responses to be retrieved. See
18483// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18484// for more information.
18485func (c *OrganizationsDevelopersAppsCreateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsCreateCall {
18486	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18487	return c
18488}
18489
18490// Context sets the context to be used in this call's Do method. Any
18491// pending HTTP request will be aborted if the provided context is
18492// canceled.
18493func (c *OrganizationsDevelopersAppsCreateCall) Context(ctx context.Context) *OrganizationsDevelopersAppsCreateCall {
18494	c.ctx_ = ctx
18495	return c
18496}
18497
18498// Header returns an http.Header that can be modified by the caller to
18499// add HTTP headers to the request.
18500func (c *OrganizationsDevelopersAppsCreateCall) Header() http.Header {
18501	if c.header_ == nil {
18502		c.header_ = make(http.Header)
18503	}
18504	return c.header_
18505}
18506
18507func (c *OrganizationsDevelopersAppsCreateCall) doRequest(alt string) (*http.Response, error) {
18508	reqHeaders := make(http.Header)
18509	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
18510	for k, v := range c.header_ {
18511		reqHeaders[k] = v
18512	}
18513	reqHeaders.Set("User-Agent", c.s.userAgent())
18514	var body io.Reader = nil
18515	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerapp)
18516	if err != nil {
18517		return nil, err
18518	}
18519	reqHeaders.Set("Content-Type", "application/json")
18520	c.urlParams_.Set("alt", alt)
18521	c.urlParams_.Set("prettyPrint", "false")
18522	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apps")
18523	urls += "?" + c.urlParams_.Encode()
18524	req, err := http.NewRequest("POST", urls, body)
18525	if err != nil {
18526		return nil, err
18527	}
18528	req.Header = reqHeaders
18529	googleapi.Expand(req.URL, map[string]string{
18530		"parent": c.parent,
18531	})
18532	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18533}
18534
18535// Do executes the "apigee.organizations.developers.apps.create" call.
18536// Exactly one of *GoogleCloudApigeeV1DeveloperApp or error will be
18537// non-nil. Any non-2xx status code is an error. Response headers are in
18538// either *GoogleCloudApigeeV1DeveloperApp.ServerResponse.Header or (if
18539// a response was returned at all) in error.(*googleapi.Error).Header.
18540// Use googleapi.IsNotModified to check whether the returned error was
18541// because http.StatusNotModified was returned.
18542func (c *OrganizationsDevelopersAppsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperApp, error) {
18543	gensupport.SetOptions(c.urlParams_, opts...)
18544	res, err := c.doRequest("json")
18545	if res != nil && res.StatusCode == http.StatusNotModified {
18546		if res.Body != nil {
18547			res.Body.Close()
18548		}
18549		return nil, &googleapi.Error{
18550			Code:   res.StatusCode,
18551			Header: res.Header,
18552		}
18553	}
18554	if err != nil {
18555		return nil, err
18556	}
18557	defer googleapi.CloseBody(res)
18558	if err := googleapi.CheckResponse(res); err != nil {
18559		return nil, err
18560	}
18561	ret := &GoogleCloudApigeeV1DeveloperApp{
18562		ServerResponse: googleapi.ServerResponse{
18563			Header:         res.Header,
18564			HTTPStatusCode: res.StatusCode,
18565		},
18566	}
18567	target := &ret
18568	if err := gensupport.DecodeResponse(target, res); err != nil {
18569		return nil, err
18570	}
18571	return ret, nil
18572	// {
18573	//   "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.",
18574	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps",
18575	//   "httpMethod": "POST",
18576	//   "id": "apigee.organizations.developers.apps.create",
18577	//   "parameterOrder": [
18578	//     "parent"
18579	//   ],
18580	//   "parameters": {
18581	//     "parent": {
18582	//       "description": "Required. Name of the developer. Use the following structure in your request: `organizations/{org}/developers/{developer_email}`",
18583	//       "location": "path",
18584	//       "pattern": "^organizations/[^/]+/developers/[^/]+$",
18585	//       "required": true,
18586	//       "type": "string"
18587	//     }
18588	//   },
18589	//   "path": "v1/{+parent}/apps",
18590	//   "request": {
18591	//     "$ref": "GoogleCloudApigeeV1DeveloperApp"
18592	//   },
18593	//   "response": {
18594	//     "$ref": "GoogleCloudApigeeV1DeveloperApp"
18595	//   },
18596	//   "scopes": [
18597	//     "https://www.googleapis.com/auth/cloud-platform"
18598	//   ]
18599	// }
18600
18601}
18602
18603// method id "apigee.organizations.developers.apps.delete":
18604
18605type OrganizationsDevelopersAppsDeleteCall struct {
18606	s          *Service
18607	name       string
18608	urlParams_ gensupport.URLParams
18609	ctx_       context.Context
18610	header_    http.Header
18611}
18612
18613// Delete: Deletes a developer app. **Note**: The delete operation is
18614// asynchronous. The developer app is deleted immediately, but its
18615// associated resources, such as app keys or access tokens, may take
18616// anywhere from a few seconds to a few minutes to be deleted.
18617//
18618// - name: Name of the developer app. Use the following structure in
18619//   your request:
18620//   `organizations/{org}/developers/{developer_email}/apps/{app}`.
18621func (r *OrganizationsDevelopersAppsService) Delete(name string) *OrganizationsDevelopersAppsDeleteCall {
18622	c := &OrganizationsDevelopersAppsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18623	c.name = name
18624	return c
18625}
18626
18627// Fields allows partial responses to be retrieved. See
18628// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18629// for more information.
18630func (c *OrganizationsDevelopersAppsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsDeleteCall {
18631	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18632	return c
18633}
18634
18635// Context sets the context to be used in this call's Do method. Any
18636// pending HTTP request will be aborted if the provided context is
18637// canceled.
18638func (c *OrganizationsDevelopersAppsDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersAppsDeleteCall {
18639	c.ctx_ = ctx
18640	return c
18641}
18642
18643// Header returns an http.Header that can be modified by the caller to
18644// add HTTP headers to the request.
18645func (c *OrganizationsDevelopersAppsDeleteCall) Header() http.Header {
18646	if c.header_ == nil {
18647		c.header_ = make(http.Header)
18648	}
18649	return c.header_
18650}
18651
18652func (c *OrganizationsDevelopersAppsDeleteCall) doRequest(alt string) (*http.Response, error) {
18653	reqHeaders := make(http.Header)
18654	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
18655	for k, v := range c.header_ {
18656		reqHeaders[k] = v
18657	}
18658	reqHeaders.Set("User-Agent", c.s.userAgent())
18659	var body io.Reader = nil
18660	c.urlParams_.Set("alt", alt)
18661	c.urlParams_.Set("prettyPrint", "false")
18662	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
18663	urls += "?" + c.urlParams_.Encode()
18664	req, err := http.NewRequest("DELETE", urls, body)
18665	if err != nil {
18666		return nil, err
18667	}
18668	req.Header = reqHeaders
18669	googleapi.Expand(req.URL, map[string]string{
18670		"name": c.name,
18671	})
18672	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18673}
18674
18675// Do executes the "apigee.organizations.developers.apps.delete" call.
18676// Exactly one of *GoogleCloudApigeeV1DeveloperApp or error will be
18677// non-nil. Any non-2xx status code is an error. Response headers are in
18678// either *GoogleCloudApigeeV1DeveloperApp.ServerResponse.Header or (if
18679// a response was returned at all) in error.(*googleapi.Error).Header.
18680// Use googleapi.IsNotModified to check whether the returned error was
18681// because http.StatusNotModified was returned.
18682func (c *OrganizationsDevelopersAppsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperApp, error) {
18683	gensupport.SetOptions(c.urlParams_, opts...)
18684	res, err := c.doRequest("json")
18685	if res != nil && res.StatusCode == http.StatusNotModified {
18686		if res.Body != nil {
18687			res.Body.Close()
18688		}
18689		return nil, &googleapi.Error{
18690			Code:   res.StatusCode,
18691			Header: res.Header,
18692		}
18693	}
18694	if err != nil {
18695		return nil, err
18696	}
18697	defer googleapi.CloseBody(res)
18698	if err := googleapi.CheckResponse(res); err != nil {
18699		return nil, err
18700	}
18701	ret := &GoogleCloudApigeeV1DeveloperApp{
18702		ServerResponse: googleapi.ServerResponse{
18703			Header:         res.Header,
18704			HTTPStatusCode: res.StatusCode,
18705		},
18706	}
18707	target := &ret
18708	if err := gensupport.DecodeResponse(target, res); err != nil {
18709		return nil, err
18710	}
18711	return ret, nil
18712	// {
18713	//   "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.",
18714	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}",
18715	//   "httpMethod": "DELETE",
18716	//   "id": "apigee.organizations.developers.apps.delete",
18717	//   "parameterOrder": [
18718	//     "name"
18719	//   ],
18720	//   "parameters": {
18721	//     "name": {
18722	//       "description": "Required. Name of the developer app. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}`",
18723	//       "location": "path",
18724	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$",
18725	//       "required": true,
18726	//       "type": "string"
18727	//     }
18728	//   },
18729	//   "path": "v1/{+name}",
18730	//   "response": {
18731	//     "$ref": "GoogleCloudApigeeV1DeveloperApp"
18732	//   },
18733	//   "scopes": [
18734	//     "https://www.googleapis.com/auth/cloud-platform"
18735	//   ]
18736	// }
18737
18738}
18739
18740// method id "apigee.organizations.developers.apps.generateKeyPairOrUpdateDeveloperAppStatus":
18741
18742type OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall struct {
18743	s                               *Service
18744	name                            string
18745	googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp
18746	urlParams_                      gensupport.URLParams
18747	ctx_                            context.Context
18748	header_                         http.Header
18749}
18750
18751// GenerateKeyPairOrUpdateDeveloperAppStatus: Manages access to a
18752// developer app by enabling you to: * Approve or revoke a developer app
18753// * Generate a new consumer key and secret for a developer app To
18754// approve or revoke a developer app, set the `action` query parameter
18755// to `approved` or `revoked`, respectively, and the `Content-Type`
18756// header to `application/octet-stream`. If a developer app is revoked,
18757// none of its API keys are valid for API calls even though the keys are
18758// still `approved`. If successful, the API call returns the following
18759// HTTP status code: `204 No Content` To generate a new consumer key and
18760// secret for a developer app, pass the new key/secret details. Rather
18761// than replace an existing key, this API generates a new key. In this
18762// case, multiple key pairs may be associated with a single developer
18763// app. Each key pair has an independent status (`approved` or
18764// `revoked`) and expiration time. Any approved, non-expired key can be
18765// used in an API call. For example, if you're using API key rotation,
18766// you can generate new keys with expiration times that overlap keys
18767// that are going to expire. You might also generate a new consumer
18768// key/secret if the security of the original key/secret is compromised.
18769// The `keyExpiresIn` property defines the expiration time for the API
18770// key in milliseconds. If you don't set this property or set it to
18771// `-1`, the API key never expires. **Notes**: * When generating a new
18772// key/secret, this API replaces the existing attributes, notes, and
18773// callback URLs with those specified in the request. Include or exclude
18774// any existing information that you want to retain or delete,
18775// respectively. * To migrate existing consumer keys and secrets to
18776// hybrid from another system, see the CreateDeveloperAppKey API.
18777//
18778// - name: Name of the developer app. Use the following structure in
18779//   your request:
18780//   `organizations/{org}/developers/{developer_email}/apps/{app}`.
18781func (r *OrganizationsDevelopersAppsService) GenerateKeyPairOrUpdateDeveloperAppStatus(name string, googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp) *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall {
18782	c := &OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18783	c.name = name
18784	c.googlecloudapigeev1developerapp = googlecloudapigeev1developerapp
18785	return c
18786}
18787
18788// Action sets the optional parameter "action": Action. Valid values are
18789// `approve` or `revoke`.
18790func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) Action(action string) *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall {
18791	c.urlParams_.Set("action", action)
18792	return c
18793}
18794
18795// Fields allows partial responses to be retrieved. See
18796// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18797// for more information.
18798func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall {
18799	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18800	return c
18801}
18802
18803// Context sets the context to be used in this call's Do method. Any
18804// pending HTTP request will be aborted if the provided context is
18805// canceled.
18806func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) Context(ctx context.Context) *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall {
18807	c.ctx_ = ctx
18808	return c
18809}
18810
18811// Header returns an http.Header that can be modified by the caller to
18812// add HTTP headers to the request.
18813func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) Header() http.Header {
18814	if c.header_ == nil {
18815		c.header_ = make(http.Header)
18816	}
18817	return c.header_
18818}
18819
18820func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) doRequest(alt string) (*http.Response, error) {
18821	reqHeaders := make(http.Header)
18822	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
18823	for k, v := range c.header_ {
18824		reqHeaders[k] = v
18825	}
18826	reqHeaders.Set("User-Agent", c.s.userAgent())
18827	var body io.Reader = nil
18828	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerapp)
18829	if err != nil {
18830		return nil, err
18831	}
18832	reqHeaders.Set("Content-Type", "application/json")
18833	c.urlParams_.Set("alt", alt)
18834	c.urlParams_.Set("prettyPrint", "false")
18835	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
18836	urls += "?" + c.urlParams_.Encode()
18837	req, err := http.NewRequest("POST", urls, body)
18838	if err != nil {
18839		return nil, err
18840	}
18841	req.Header = reqHeaders
18842	googleapi.Expand(req.URL, map[string]string{
18843		"name": c.name,
18844	})
18845	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18846}
18847
18848// Do executes the "apigee.organizations.developers.apps.generateKeyPairOrUpdateDeveloperAppStatus" call.
18849// Exactly one of *GoogleCloudApigeeV1DeveloperApp or error will be
18850// non-nil. Any non-2xx status code is an error. Response headers are in
18851// either *GoogleCloudApigeeV1DeveloperApp.ServerResponse.Header or (if
18852// a response was returned at all) in error.(*googleapi.Error).Header.
18853// Use googleapi.IsNotModified to check whether the returned error was
18854// because http.StatusNotModified was returned.
18855func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperApp, error) {
18856	gensupport.SetOptions(c.urlParams_, opts...)
18857	res, err := c.doRequest("json")
18858	if res != nil && res.StatusCode == http.StatusNotModified {
18859		if res.Body != nil {
18860			res.Body.Close()
18861		}
18862		return nil, &googleapi.Error{
18863			Code:   res.StatusCode,
18864			Header: res.Header,
18865		}
18866	}
18867	if err != nil {
18868		return nil, err
18869	}
18870	defer googleapi.CloseBody(res)
18871	if err := googleapi.CheckResponse(res); err != nil {
18872		return nil, err
18873	}
18874	ret := &GoogleCloudApigeeV1DeveloperApp{
18875		ServerResponse: googleapi.ServerResponse{
18876			Header:         res.Header,
18877			HTTPStatusCode: res.StatusCode,
18878		},
18879	}
18880	target := &ret
18881	if err := gensupport.DecodeResponse(target, res); err != nil {
18882		return nil, err
18883	}
18884	return ret, nil
18885	// {
18886	//   "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.",
18887	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}",
18888	//   "httpMethod": "POST",
18889	//   "id": "apigee.organizations.developers.apps.generateKeyPairOrUpdateDeveloperAppStatus",
18890	//   "parameterOrder": [
18891	//     "name"
18892	//   ],
18893	//   "parameters": {
18894	//     "action": {
18895	//       "description": "Action. Valid values are `approve` or `revoke`.",
18896	//       "location": "query",
18897	//       "type": "string"
18898	//     },
18899	//     "name": {
18900	//       "description": "Required. Name of the developer app. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}`",
18901	//       "location": "path",
18902	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$",
18903	//       "required": true,
18904	//       "type": "string"
18905	//     }
18906	//   },
18907	//   "path": "v1/{+name}",
18908	//   "request": {
18909	//     "$ref": "GoogleCloudApigeeV1DeveloperApp"
18910	//   },
18911	//   "response": {
18912	//     "$ref": "GoogleCloudApigeeV1DeveloperApp"
18913	//   },
18914	//   "scopes": [
18915	//     "https://www.googleapis.com/auth/cloud-platform"
18916	//   ]
18917	// }
18918
18919}
18920
18921// method id "apigee.organizations.developers.apps.get":
18922
18923type OrganizationsDevelopersAppsGetCall struct {
18924	s            *Service
18925	name         string
18926	urlParams_   gensupport.URLParams
18927	ifNoneMatch_ string
18928	ctx_         context.Context
18929	header_      http.Header
18930}
18931
18932// Get: Returns the details for a developer app.
18933//
18934// - name: Name of the developer app. Use the following structure in
18935//   your request:
18936//   `organizations/{org}/developers/{developer_email}/apps/{app}`.
18937func (r *OrganizationsDevelopersAppsService) Get(name string) *OrganizationsDevelopersAppsGetCall {
18938	c := &OrganizationsDevelopersAppsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18939	c.name = name
18940	return c
18941}
18942
18943// Entity sets the optional parameter "entity": **Note**: Must be used
18944// in conjunction with the `query` parameter. Set to `apiresources` to
18945// return the number of API resources that have been approved for access
18946// by a developer app in the specified Apigee organization.
18947func (c *OrganizationsDevelopersAppsGetCall) Entity(entity string) *OrganizationsDevelopersAppsGetCall {
18948	c.urlParams_.Set("entity", entity)
18949	return c
18950}
18951
18952// Query sets the optional parameter "query": **Note**: Must be used in
18953// conjunction with the `entity` parameter. Set to `count` to return the
18954// number of API resources that have been approved for access by a
18955// developer app in the specified Apigee organization.
18956func (c *OrganizationsDevelopersAppsGetCall) Query(query string) *OrganizationsDevelopersAppsGetCall {
18957	c.urlParams_.Set("query", query)
18958	return c
18959}
18960
18961// Fields allows partial responses to be retrieved. See
18962// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18963// for more information.
18964func (c *OrganizationsDevelopersAppsGetCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsGetCall {
18965	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18966	return c
18967}
18968
18969// IfNoneMatch sets the optional parameter which makes the operation
18970// fail if the object's ETag matches the given value. This is useful for
18971// getting updates only after the object has changed since the last
18972// request. Use googleapi.IsNotModified to check whether the response
18973// error from Do is the result of In-None-Match.
18974func (c *OrganizationsDevelopersAppsGetCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAppsGetCall {
18975	c.ifNoneMatch_ = entityTag
18976	return c
18977}
18978
18979// Context sets the context to be used in this call's Do method. Any
18980// pending HTTP request will be aborted if the provided context is
18981// canceled.
18982func (c *OrganizationsDevelopersAppsGetCall) Context(ctx context.Context) *OrganizationsDevelopersAppsGetCall {
18983	c.ctx_ = ctx
18984	return c
18985}
18986
18987// Header returns an http.Header that can be modified by the caller to
18988// add HTTP headers to the request.
18989func (c *OrganizationsDevelopersAppsGetCall) Header() http.Header {
18990	if c.header_ == nil {
18991		c.header_ = make(http.Header)
18992	}
18993	return c.header_
18994}
18995
18996func (c *OrganizationsDevelopersAppsGetCall) doRequest(alt string) (*http.Response, error) {
18997	reqHeaders := make(http.Header)
18998	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
18999	for k, v := range c.header_ {
19000		reqHeaders[k] = v
19001	}
19002	reqHeaders.Set("User-Agent", c.s.userAgent())
19003	if c.ifNoneMatch_ != "" {
19004		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19005	}
19006	var body io.Reader = nil
19007	c.urlParams_.Set("alt", alt)
19008	c.urlParams_.Set("prettyPrint", "false")
19009	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
19010	urls += "?" + c.urlParams_.Encode()
19011	req, err := http.NewRequest("GET", urls, body)
19012	if err != nil {
19013		return nil, err
19014	}
19015	req.Header = reqHeaders
19016	googleapi.Expand(req.URL, map[string]string{
19017		"name": c.name,
19018	})
19019	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19020}
19021
19022// Do executes the "apigee.organizations.developers.apps.get" call.
19023// Exactly one of *GoogleCloudApigeeV1DeveloperApp or error will be
19024// non-nil. Any non-2xx status code is an error. Response headers are in
19025// either *GoogleCloudApigeeV1DeveloperApp.ServerResponse.Header or (if
19026// a response was returned at all) in error.(*googleapi.Error).Header.
19027// Use googleapi.IsNotModified to check whether the returned error was
19028// because http.StatusNotModified was returned.
19029func (c *OrganizationsDevelopersAppsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperApp, error) {
19030	gensupport.SetOptions(c.urlParams_, opts...)
19031	res, err := c.doRequest("json")
19032	if res != nil && res.StatusCode == http.StatusNotModified {
19033		if res.Body != nil {
19034			res.Body.Close()
19035		}
19036		return nil, &googleapi.Error{
19037			Code:   res.StatusCode,
19038			Header: res.Header,
19039		}
19040	}
19041	if err != nil {
19042		return nil, err
19043	}
19044	defer googleapi.CloseBody(res)
19045	if err := googleapi.CheckResponse(res); err != nil {
19046		return nil, err
19047	}
19048	ret := &GoogleCloudApigeeV1DeveloperApp{
19049		ServerResponse: googleapi.ServerResponse{
19050			Header:         res.Header,
19051			HTTPStatusCode: res.StatusCode,
19052		},
19053	}
19054	target := &ret
19055	if err := gensupport.DecodeResponse(target, res); err != nil {
19056		return nil, err
19057	}
19058	return ret, nil
19059	// {
19060	//   "description": "Returns the details for a developer app.",
19061	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}",
19062	//   "httpMethod": "GET",
19063	//   "id": "apigee.organizations.developers.apps.get",
19064	//   "parameterOrder": [
19065	//     "name"
19066	//   ],
19067	//   "parameters": {
19068	//     "entity": {
19069	//       "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.",
19070	//       "location": "query",
19071	//       "type": "string"
19072	//     },
19073	//     "name": {
19074	//       "description": "Required. Name of the developer app. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}`",
19075	//       "location": "path",
19076	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$",
19077	//       "required": true,
19078	//       "type": "string"
19079	//     },
19080	//     "query": {
19081	//       "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.",
19082	//       "location": "query",
19083	//       "type": "string"
19084	//     }
19085	//   },
19086	//   "path": "v1/{+name}",
19087	//   "response": {
19088	//     "$ref": "GoogleCloudApigeeV1DeveloperApp"
19089	//   },
19090	//   "scopes": [
19091	//     "https://www.googleapis.com/auth/cloud-platform"
19092	//   ]
19093	// }
19094
19095}
19096
19097// method id "apigee.organizations.developers.apps.list":
19098
19099type OrganizationsDevelopersAppsListCall struct {
19100	s            *Service
19101	parent       string
19102	urlParams_   gensupport.URLParams
19103	ifNoneMatch_ string
19104	ctx_         context.Context
19105	header_      http.Header
19106}
19107
19108// List: Lists all apps created by a developer in an Apigee
19109// organization. Optionally, you can request an expanded view of the
19110// developer apps. A maximum of 100 developer apps are returned per API
19111// call. You can paginate the list of deveoper apps returned using the
19112// `startKey` and `count` query parameters.
19113//
19114// - parent: Name of the developer. Use the following structure in your
19115//   request: `organizations/{org}/developers/{developer_email}`.
19116func (r *OrganizationsDevelopersAppsService) List(parent string) *OrganizationsDevelopersAppsListCall {
19117	c := &OrganizationsDevelopersAppsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19118	c.parent = parent
19119	return c
19120}
19121
19122// Count sets the optional parameter "count": Number of developer apps
19123// to return in the API call. Use with the `startKey` parameter to
19124// provide more targeted filtering. The limit is 1000.
19125func (c *OrganizationsDevelopersAppsListCall) Count(count int64) *OrganizationsDevelopersAppsListCall {
19126	c.urlParams_.Set("count", fmt.Sprint(count))
19127	return c
19128}
19129
19130// Expand sets the optional parameter "expand": Specifies whether to
19131// expand the results. Set to `true` to expand the results. This query
19132// parameter is not valid if you use the `count` or `startKey` query
19133// parameters.
19134func (c *OrganizationsDevelopersAppsListCall) Expand(expand bool) *OrganizationsDevelopersAppsListCall {
19135	c.urlParams_.Set("expand", fmt.Sprint(expand))
19136	return c
19137}
19138
19139// ShallowExpand sets the optional parameter "shallowExpand": Specifies
19140// whether to expand the results in shallow mode. Set to `true` to
19141// expand the results in shallow mode.
19142func (c *OrganizationsDevelopersAppsListCall) ShallowExpand(shallowExpand bool) *OrganizationsDevelopersAppsListCall {
19143	c.urlParams_.Set("shallowExpand", fmt.Sprint(shallowExpand))
19144	return c
19145}
19146
19147// StartKey sets the optional parameter "startKey": **Note**: Must be
19148// used in conjunction with the `count` parameter. Name of the developer
19149// app from which to start displaying the list of developer apps. For
19150// example, if you're returning 50 developer apps at a time (using the
19151// `count` query parameter), you can view developer apps 50-99 by
19152// entering the name of the 50th developer app. The developer app name
19153// is case sensitive.
19154func (c *OrganizationsDevelopersAppsListCall) StartKey(startKey string) *OrganizationsDevelopersAppsListCall {
19155	c.urlParams_.Set("startKey", startKey)
19156	return c
19157}
19158
19159// Fields allows partial responses to be retrieved. See
19160// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19161// for more information.
19162func (c *OrganizationsDevelopersAppsListCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsListCall {
19163	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19164	return c
19165}
19166
19167// IfNoneMatch sets the optional parameter which makes the operation
19168// fail if the object's ETag matches the given value. This is useful for
19169// getting updates only after the object has changed since the last
19170// request. Use googleapi.IsNotModified to check whether the response
19171// error from Do is the result of In-None-Match.
19172func (c *OrganizationsDevelopersAppsListCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAppsListCall {
19173	c.ifNoneMatch_ = entityTag
19174	return c
19175}
19176
19177// Context sets the context to be used in this call's Do method. Any
19178// pending HTTP request will be aborted if the provided context is
19179// canceled.
19180func (c *OrganizationsDevelopersAppsListCall) Context(ctx context.Context) *OrganizationsDevelopersAppsListCall {
19181	c.ctx_ = ctx
19182	return c
19183}
19184
19185// Header returns an http.Header that can be modified by the caller to
19186// add HTTP headers to the request.
19187func (c *OrganizationsDevelopersAppsListCall) Header() http.Header {
19188	if c.header_ == nil {
19189		c.header_ = make(http.Header)
19190	}
19191	return c.header_
19192}
19193
19194func (c *OrganizationsDevelopersAppsListCall) doRequest(alt string) (*http.Response, error) {
19195	reqHeaders := make(http.Header)
19196	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
19197	for k, v := range c.header_ {
19198		reqHeaders[k] = v
19199	}
19200	reqHeaders.Set("User-Agent", c.s.userAgent())
19201	if c.ifNoneMatch_ != "" {
19202		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19203	}
19204	var body io.Reader = nil
19205	c.urlParams_.Set("alt", alt)
19206	c.urlParams_.Set("prettyPrint", "false")
19207	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apps")
19208	urls += "?" + c.urlParams_.Encode()
19209	req, err := http.NewRequest("GET", urls, body)
19210	if err != nil {
19211		return nil, err
19212	}
19213	req.Header = reqHeaders
19214	googleapi.Expand(req.URL, map[string]string{
19215		"parent": c.parent,
19216	})
19217	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19218}
19219
19220// Do executes the "apigee.organizations.developers.apps.list" call.
19221// Exactly one of *GoogleCloudApigeeV1ListDeveloperAppsResponse or error
19222// will be non-nil. Any non-2xx status code is an error. Response
19223// headers are in either
19224// *GoogleCloudApigeeV1ListDeveloperAppsResponse.ServerResponse.Header
19225// or (if a response was returned at all) in
19226// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
19227// whether the returned error was because http.StatusNotModified was
19228// returned.
19229func (c *OrganizationsDevelopersAppsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeveloperAppsResponse, error) {
19230	gensupport.SetOptions(c.urlParams_, opts...)
19231	res, err := c.doRequest("json")
19232	if res != nil && res.StatusCode == http.StatusNotModified {
19233		if res.Body != nil {
19234			res.Body.Close()
19235		}
19236		return nil, &googleapi.Error{
19237			Code:   res.StatusCode,
19238			Header: res.Header,
19239		}
19240	}
19241	if err != nil {
19242		return nil, err
19243	}
19244	defer googleapi.CloseBody(res)
19245	if err := googleapi.CheckResponse(res); err != nil {
19246		return nil, err
19247	}
19248	ret := &GoogleCloudApigeeV1ListDeveloperAppsResponse{
19249		ServerResponse: googleapi.ServerResponse{
19250			Header:         res.Header,
19251			HTTPStatusCode: res.StatusCode,
19252		},
19253	}
19254	target := &ret
19255	if err := gensupport.DecodeResponse(target, res); err != nil {
19256		return nil, err
19257	}
19258	return ret, nil
19259	// {
19260	//   "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.",
19261	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps",
19262	//   "httpMethod": "GET",
19263	//   "id": "apigee.organizations.developers.apps.list",
19264	//   "parameterOrder": [
19265	//     "parent"
19266	//   ],
19267	//   "parameters": {
19268	//     "count": {
19269	//       "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.",
19270	//       "format": "int64",
19271	//       "location": "query",
19272	//       "type": "string"
19273	//     },
19274	//     "expand": {
19275	//       "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.",
19276	//       "location": "query",
19277	//       "type": "boolean"
19278	//     },
19279	//     "parent": {
19280	//       "description": "Required. Name of the developer. Use the following structure in your request: `organizations/{org}/developers/{developer_email}`",
19281	//       "location": "path",
19282	//       "pattern": "^organizations/[^/]+/developers/[^/]+$",
19283	//       "required": true,
19284	//       "type": "string"
19285	//     },
19286	//     "shallowExpand": {
19287	//       "description": "Optional. Specifies whether to expand the results in shallow mode. Set to `true` to expand the results in shallow mode.",
19288	//       "location": "query",
19289	//       "type": "boolean"
19290	//     },
19291	//     "startKey": {
19292	//       "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.",
19293	//       "location": "query",
19294	//       "type": "string"
19295	//     }
19296	//   },
19297	//   "path": "v1/{+parent}/apps",
19298	//   "response": {
19299	//     "$ref": "GoogleCloudApigeeV1ListDeveloperAppsResponse"
19300	//   },
19301	//   "scopes": [
19302	//     "https://www.googleapis.com/auth/cloud-platform"
19303	//   ]
19304	// }
19305
19306}
19307
19308// method id "apigee.organizations.developers.apps.update":
19309
19310type OrganizationsDevelopersAppsUpdateCall struct {
19311	s                               *Service
19312	name                            string
19313	googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp
19314	urlParams_                      gensupport.URLParams
19315	ctx_                            context.Context
19316	header_                         http.Header
19317}
19318
19319// Update: Updates the details for a developer app. In addition, you can
19320// add an API product to a developer app and automatically generate an
19321// API key for the app to use when calling APIs in the API product. If
19322// you want to use an existing API key for the API product, add the API
19323// product to the API key using the UpdateDeveloperAppKey API. Using
19324// this API, you cannot update the following: * App name as it is the
19325// primary key used to identify the app and cannot be changed. * Scopes
19326// associated with the app. Instead, use the ReplaceDeveloperAppKey API.
19327// This API replaces the existing attributes with those specified in the
19328// request. Include or exclude any existing attributes that you want to
19329// retain or delete, respectively.
19330//
19331// - name: Name of the developer app. Use the following structure in
19332//   your request:
19333//   `organizations/{org}/developers/{developer_email}/apps/{app}`.
19334func (r *OrganizationsDevelopersAppsService) Update(name string, googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp) *OrganizationsDevelopersAppsUpdateCall {
19335	c := &OrganizationsDevelopersAppsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19336	c.name = name
19337	c.googlecloudapigeev1developerapp = googlecloudapigeev1developerapp
19338	return c
19339}
19340
19341// Fields allows partial responses to be retrieved. See
19342// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19343// for more information.
19344func (c *OrganizationsDevelopersAppsUpdateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsUpdateCall {
19345	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19346	return c
19347}
19348
19349// Context sets the context to be used in this call's Do method. Any
19350// pending HTTP request will be aborted if the provided context is
19351// canceled.
19352func (c *OrganizationsDevelopersAppsUpdateCall) Context(ctx context.Context) *OrganizationsDevelopersAppsUpdateCall {
19353	c.ctx_ = ctx
19354	return c
19355}
19356
19357// Header returns an http.Header that can be modified by the caller to
19358// add HTTP headers to the request.
19359func (c *OrganizationsDevelopersAppsUpdateCall) Header() http.Header {
19360	if c.header_ == nil {
19361		c.header_ = make(http.Header)
19362	}
19363	return c.header_
19364}
19365
19366func (c *OrganizationsDevelopersAppsUpdateCall) doRequest(alt string) (*http.Response, error) {
19367	reqHeaders := make(http.Header)
19368	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
19369	for k, v := range c.header_ {
19370		reqHeaders[k] = v
19371	}
19372	reqHeaders.Set("User-Agent", c.s.userAgent())
19373	var body io.Reader = nil
19374	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerapp)
19375	if err != nil {
19376		return nil, err
19377	}
19378	reqHeaders.Set("Content-Type", "application/json")
19379	c.urlParams_.Set("alt", alt)
19380	c.urlParams_.Set("prettyPrint", "false")
19381	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
19382	urls += "?" + c.urlParams_.Encode()
19383	req, err := http.NewRequest("PUT", urls, body)
19384	if err != nil {
19385		return nil, err
19386	}
19387	req.Header = reqHeaders
19388	googleapi.Expand(req.URL, map[string]string{
19389		"name": c.name,
19390	})
19391	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19392}
19393
19394// Do executes the "apigee.organizations.developers.apps.update" call.
19395// Exactly one of *GoogleCloudApigeeV1DeveloperApp or error will be
19396// non-nil. Any non-2xx status code is an error. Response headers are in
19397// either *GoogleCloudApigeeV1DeveloperApp.ServerResponse.Header or (if
19398// a response was returned at all) in error.(*googleapi.Error).Header.
19399// Use googleapi.IsNotModified to check whether the returned error was
19400// because http.StatusNotModified was returned.
19401func (c *OrganizationsDevelopersAppsUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperApp, error) {
19402	gensupport.SetOptions(c.urlParams_, opts...)
19403	res, err := c.doRequest("json")
19404	if res != nil && res.StatusCode == http.StatusNotModified {
19405		if res.Body != nil {
19406			res.Body.Close()
19407		}
19408		return nil, &googleapi.Error{
19409			Code:   res.StatusCode,
19410			Header: res.Header,
19411		}
19412	}
19413	if err != nil {
19414		return nil, err
19415	}
19416	defer googleapi.CloseBody(res)
19417	if err := googleapi.CheckResponse(res); err != nil {
19418		return nil, err
19419	}
19420	ret := &GoogleCloudApigeeV1DeveloperApp{
19421		ServerResponse: googleapi.ServerResponse{
19422			Header:         res.Header,
19423			HTTPStatusCode: res.StatusCode,
19424		},
19425	}
19426	target := &ret
19427	if err := gensupport.DecodeResponse(target, res); err != nil {
19428		return nil, err
19429	}
19430	return ret, nil
19431	// {
19432	//   "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.",
19433	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}",
19434	//   "httpMethod": "PUT",
19435	//   "id": "apigee.organizations.developers.apps.update",
19436	//   "parameterOrder": [
19437	//     "name"
19438	//   ],
19439	//   "parameters": {
19440	//     "name": {
19441	//       "description": "Required. Name of the developer app. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}`",
19442	//       "location": "path",
19443	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$",
19444	//       "required": true,
19445	//       "type": "string"
19446	//     }
19447	//   },
19448	//   "path": "v1/{+name}",
19449	//   "request": {
19450	//     "$ref": "GoogleCloudApigeeV1DeveloperApp"
19451	//   },
19452	//   "response": {
19453	//     "$ref": "GoogleCloudApigeeV1DeveloperApp"
19454	//   },
19455	//   "scopes": [
19456	//     "https://www.googleapis.com/auth/cloud-platform"
19457	//   ]
19458	// }
19459
19460}
19461
19462// method id "apigee.organizations.developers.apps.attributes.delete":
19463
19464type OrganizationsDevelopersAppsAttributesDeleteCall struct {
19465	s          *Service
19466	name       string
19467	urlParams_ gensupport.URLParams
19468	ctx_       context.Context
19469	header_    http.Header
19470}
19471
19472// Delete: Deletes a developer app attribute.
19473//
19474// - name: Name of the developer app attribute. Use the following
19475//   structure in your request:
19476//   `organizations/{org}/developers/{developer_email}/apps/{app}/attribu
19477//   tes/{attribute}`.
19478func (r *OrganizationsDevelopersAppsAttributesService) Delete(name string) *OrganizationsDevelopersAppsAttributesDeleteCall {
19479	c := &OrganizationsDevelopersAppsAttributesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19480	c.name = name
19481	return c
19482}
19483
19484// Fields allows partial responses to be retrieved. See
19485// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19486// for more information.
19487func (c *OrganizationsDevelopersAppsAttributesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsAttributesDeleteCall {
19488	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19489	return c
19490}
19491
19492// Context sets the context to be used in this call's Do method. Any
19493// pending HTTP request will be aborted if the provided context is
19494// canceled.
19495func (c *OrganizationsDevelopersAppsAttributesDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersAppsAttributesDeleteCall {
19496	c.ctx_ = ctx
19497	return c
19498}
19499
19500// Header returns an http.Header that can be modified by the caller to
19501// add HTTP headers to the request.
19502func (c *OrganizationsDevelopersAppsAttributesDeleteCall) Header() http.Header {
19503	if c.header_ == nil {
19504		c.header_ = make(http.Header)
19505	}
19506	return c.header_
19507}
19508
19509func (c *OrganizationsDevelopersAppsAttributesDeleteCall) doRequest(alt string) (*http.Response, error) {
19510	reqHeaders := make(http.Header)
19511	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
19512	for k, v := range c.header_ {
19513		reqHeaders[k] = v
19514	}
19515	reqHeaders.Set("User-Agent", c.s.userAgent())
19516	var body io.Reader = nil
19517	c.urlParams_.Set("alt", alt)
19518	c.urlParams_.Set("prettyPrint", "false")
19519	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
19520	urls += "?" + c.urlParams_.Encode()
19521	req, err := http.NewRequest("DELETE", urls, body)
19522	if err != nil {
19523		return nil, err
19524	}
19525	req.Header = reqHeaders
19526	googleapi.Expand(req.URL, map[string]string{
19527		"name": c.name,
19528	})
19529	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19530}
19531
19532// Do executes the "apigee.organizations.developers.apps.attributes.delete" call.
19533// Exactly one of *GoogleCloudApigeeV1Attribute or error will be
19534// non-nil. Any non-2xx status code is an error. Response headers are in
19535// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a
19536// response was returned at all) in error.(*googleapi.Error).Header. Use
19537// googleapi.IsNotModified to check whether the returned error was
19538// because http.StatusNotModified was returned.
19539func (c *OrganizationsDevelopersAppsAttributesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
19540	gensupport.SetOptions(c.urlParams_, opts...)
19541	res, err := c.doRequest("json")
19542	if res != nil && res.StatusCode == http.StatusNotModified {
19543		if res.Body != nil {
19544			res.Body.Close()
19545		}
19546		return nil, &googleapi.Error{
19547			Code:   res.StatusCode,
19548			Header: res.Header,
19549		}
19550	}
19551	if err != nil {
19552		return nil, err
19553	}
19554	defer googleapi.CloseBody(res)
19555	if err := googleapi.CheckResponse(res); err != nil {
19556		return nil, err
19557	}
19558	ret := &GoogleCloudApigeeV1Attribute{
19559		ServerResponse: googleapi.ServerResponse{
19560			Header:         res.Header,
19561			HTTPStatusCode: res.StatusCode,
19562		},
19563	}
19564	target := &ret
19565	if err := gensupport.DecodeResponse(target, res); err != nil {
19566		return nil, err
19567	}
19568	return ret, nil
19569	// {
19570	//   "description": "Deletes a developer app attribute.",
19571	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/attributes/{attributesId}",
19572	//   "httpMethod": "DELETE",
19573	//   "id": "apigee.organizations.developers.apps.attributes.delete",
19574	//   "parameterOrder": [
19575	//     "name"
19576	//   ],
19577	//   "parameters": {
19578	//     "name": {
19579	//       "description": "Required. Name of the developer app attribute. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}/attributes/{attribute}`",
19580	//       "location": "path",
19581	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/attributes/[^/]+$",
19582	//       "required": true,
19583	//       "type": "string"
19584	//     }
19585	//   },
19586	//   "path": "v1/{+name}",
19587	//   "response": {
19588	//     "$ref": "GoogleCloudApigeeV1Attribute"
19589	//   },
19590	//   "scopes": [
19591	//     "https://www.googleapis.com/auth/cloud-platform"
19592	//   ]
19593	// }
19594
19595}
19596
19597// method id "apigee.organizations.developers.apps.attributes.get":
19598
19599type OrganizationsDevelopersAppsAttributesGetCall struct {
19600	s            *Service
19601	name         string
19602	urlParams_   gensupport.URLParams
19603	ifNoneMatch_ string
19604	ctx_         context.Context
19605	header_      http.Header
19606}
19607
19608// Get: Returns a developer app attribute.
19609//
19610// - name: Name of the developer app attribute. Use the following
19611//   structure in your request:
19612//   `organizations/{org}/developers/{developer_email}/apps/{app}/attribu
19613//   tes/{attribute}`.
19614func (r *OrganizationsDevelopersAppsAttributesService) Get(name string) *OrganizationsDevelopersAppsAttributesGetCall {
19615	c := &OrganizationsDevelopersAppsAttributesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19616	c.name = name
19617	return c
19618}
19619
19620// Fields allows partial responses to be retrieved. See
19621// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19622// for more information.
19623func (c *OrganizationsDevelopersAppsAttributesGetCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsAttributesGetCall {
19624	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19625	return c
19626}
19627
19628// IfNoneMatch sets the optional parameter which makes the operation
19629// fail if the object's ETag matches the given value. This is useful for
19630// getting updates only after the object has changed since the last
19631// request. Use googleapi.IsNotModified to check whether the response
19632// error from Do is the result of In-None-Match.
19633func (c *OrganizationsDevelopersAppsAttributesGetCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAppsAttributesGetCall {
19634	c.ifNoneMatch_ = entityTag
19635	return c
19636}
19637
19638// Context sets the context to be used in this call's Do method. Any
19639// pending HTTP request will be aborted if the provided context is
19640// canceled.
19641func (c *OrganizationsDevelopersAppsAttributesGetCall) Context(ctx context.Context) *OrganizationsDevelopersAppsAttributesGetCall {
19642	c.ctx_ = ctx
19643	return c
19644}
19645
19646// Header returns an http.Header that can be modified by the caller to
19647// add HTTP headers to the request.
19648func (c *OrganizationsDevelopersAppsAttributesGetCall) Header() http.Header {
19649	if c.header_ == nil {
19650		c.header_ = make(http.Header)
19651	}
19652	return c.header_
19653}
19654
19655func (c *OrganizationsDevelopersAppsAttributesGetCall) doRequest(alt string) (*http.Response, error) {
19656	reqHeaders := make(http.Header)
19657	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
19658	for k, v := range c.header_ {
19659		reqHeaders[k] = v
19660	}
19661	reqHeaders.Set("User-Agent", c.s.userAgent())
19662	if c.ifNoneMatch_ != "" {
19663		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19664	}
19665	var body io.Reader = nil
19666	c.urlParams_.Set("alt", alt)
19667	c.urlParams_.Set("prettyPrint", "false")
19668	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
19669	urls += "?" + c.urlParams_.Encode()
19670	req, err := http.NewRequest("GET", urls, body)
19671	if err != nil {
19672		return nil, err
19673	}
19674	req.Header = reqHeaders
19675	googleapi.Expand(req.URL, map[string]string{
19676		"name": c.name,
19677	})
19678	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19679}
19680
19681// Do executes the "apigee.organizations.developers.apps.attributes.get" call.
19682// Exactly one of *GoogleCloudApigeeV1Attribute or error will be
19683// non-nil. Any non-2xx status code is an error. Response headers are in
19684// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a
19685// response was returned at all) in error.(*googleapi.Error).Header. Use
19686// googleapi.IsNotModified to check whether the returned error was
19687// because http.StatusNotModified was returned.
19688func (c *OrganizationsDevelopersAppsAttributesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
19689	gensupport.SetOptions(c.urlParams_, opts...)
19690	res, err := c.doRequest("json")
19691	if res != nil && res.StatusCode == http.StatusNotModified {
19692		if res.Body != nil {
19693			res.Body.Close()
19694		}
19695		return nil, &googleapi.Error{
19696			Code:   res.StatusCode,
19697			Header: res.Header,
19698		}
19699	}
19700	if err != nil {
19701		return nil, err
19702	}
19703	defer googleapi.CloseBody(res)
19704	if err := googleapi.CheckResponse(res); err != nil {
19705		return nil, err
19706	}
19707	ret := &GoogleCloudApigeeV1Attribute{
19708		ServerResponse: googleapi.ServerResponse{
19709			Header:         res.Header,
19710			HTTPStatusCode: res.StatusCode,
19711		},
19712	}
19713	target := &ret
19714	if err := gensupport.DecodeResponse(target, res); err != nil {
19715		return nil, err
19716	}
19717	return ret, nil
19718	// {
19719	//   "description": "Returns a developer app attribute.",
19720	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/attributes/{attributesId}",
19721	//   "httpMethod": "GET",
19722	//   "id": "apigee.organizations.developers.apps.attributes.get",
19723	//   "parameterOrder": [
19724	//     "name"
19725	//   ],
19726	//   "parameters": {
19727	//     "name": {
19728	//       "description": "Required. Name of the developer app attribute. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}/attributes/{attribute}`",
19729	//       "location": "path",
19730	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/attributes/[^/]+$",
19731	//       "required": true,
19732	//       "type": "string"
19733	//     }
19734	//   },
19735	//   "path": "v1/{+name}",
19736	//   "response": {
19737	//     "$ref": "GoogleCloudApigeeV1Attribute"
19738	//   },
19739	//   "scopes": [
19740	//     "https://www.googleapis.com/auth/cloud-platform"
19741	//   ]
19742	// }
19743
19744}
19745
19746// method id "apigee.organizations.developers.apps.attributes.list":
19747
19748type OrganizationsDevelopersAppsAttributesListCall struct {
19749	s            *Service
19750	parent       string
19751	urlParams_   gensupport.URLParams
19752	ifNoneMatch_ string
19753	ctx_         context.Context
19754	header_      http.Header
19755}
19756
19757// List: Returns a list of all developer app attributes.
19758//
19759// - parent: Name of the developer app. Use the following structure in
19760//   your request:
19761//   `organizations/{org}/developers/{developer_email}/apps/{app}`.
19762func (r *OrganizationsDevelopersAppsAttributesService) List(parent string) *OrganizationsDevelopersAppsAttributesListCall {
19763	c := &OrganizationsDevelopersAppsAttributesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19764	c.parent = parent
19765	return c
19766}
19767
19768// Fields allows partial responses to be retrieved. See
19769// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19770// for more information.
19771func (c *OrganizationsDevelopersAppsAttributesListCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsAttributesListCall {
19772	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19773	return c
19774}
19775
19776// IfNoneMatch sets the optional parameter which makes the operation
19777// fail if the object's ETag matches the given value. This is useful for
19778// getting updates only after the object has changed since the last
19779// request. Use googleapi.IsNotModified to check whether the response
19780// error from Do is the result of In-None-Match.
19781func (c *OrganizationsDevelopersAppsAttributesListCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAppsAttributesListCall {
19782	c.ifNoneMatch_ = entityTag
19783	return c
19784}
19785
19786// Context sets the context to be used in this call's Do method. Any
19787// pending HTTP request will be aborted if the provided context is
19788// canceled.
19789func (c *OrganizationsDevelopersAppsAttributesListCall) Context(ctx context.Context) *OrganizationsDevelopersAppsAttributesListCall {
19790	c.ctx_ = ctx
19791	return c
19792}
19793
19794// Header returns an http.Header that can be modified by the caller to
19795// add HTTP headers to the request.
19796func (c *OrganizationsDevelopersAppsAttributesListCall) Header() http.Header {
19797	if c.header_ == nil {
19798		c.header_ = make(http.Header)
19799	}
19800	return c.header_
19801}
19802
19803func (c *OrganizationsDevelopersAppsAttributesListCall) doRequest(alt string) (*http.Response, error) {
19804	reqHeaders := make(http.Header)
19805	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
19806	for k, v := range c.header_ {
19807		reqHeaders[k] = v
19808	}
19809	reqHeaders.Set("User-Agent", c.s.userAgent())
19810	if c.ifNoneMatch_ != "" {
19811		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19812	}
19813	var body io.Reader = nil
19814	c.urlParams_.Set("alt", alt)
19815	c.urlParams_.Set("prettyPrint", "false")
19816	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attributes")
19817	urls += "?" + c.urlParams_.Encode()
19818	req, err := http.NewRequest("GET", urls, body)
19819	if err != nil {
19820		return nil, err
19821	}
19822	req.Header = reqHeaders
19823	googleapi.Expand(req.URL, map[string]string{
19824		"parent": c.parent,
19825	})
19826	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19827}
19828
19829// Do executes the "apigee.organizations.developers.apps.attributes.list" call.
19830// Exactly one of *GoogleCloudApigeeV1Attributes or error will be
19831// non-nil. Any non-2xx status code is an error. Response headers are in
19832// either *GoogleCloudApigeeV1Attributes.ServerResponse.Header or (if a
19833// response was returned at all) in error.(*googleapi.Error).Header. Use
19834// googleapi.IsNotModified to check whether the returned error was
19835// because http.StatusNotModified was returned.
19836func (c *OrganizationsDevelopersAppsAttributesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attributes, error) {
19837	gensupport.SetOptions(c.urlParams_, opts...)
19838	res, err := c.doRequest("json")
19839	if res != nil && res.StatusCode == http.StatusNotModified {
19840		if res.Body != nil {
19841			res.Body.Close()
19842		}
19843		return nil, &googleapi.Error{
19844			Code:   res.StatusCode,
19845			Header: res.Header,
19846		}
19847	}
19848	if err != nil {
19849		return nil, err
19850	}
19851	defer googleapi.CloseBody(res)
19852	if err := googleapi.CheckResponse(res); err != nil {
19853		return nil, err
19854	}
19855	ret := &GoogleCloudApigeeV1Attributes{
19856		ServerResponse: googleapi.ServerResponse{
19857			Header:         res.Header,
19858			HTTPStatusCode: res.StatusCode,
19859		},
19860	}
19861	target := &ret
19862	if err := gensupport.DecodeResponse(target, res); err != nil {
19863		return nil, err
19864	}
19865	return ret, nil
19866	// {
19867	//   "description": "Returns a list of all developer app attributes.",
19868	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/attributes",
19869	//   "httpMethod": "GET",
19870	//   "id": "apigee.organizations.developers.apps.attributes.list",
19871	//   "parameterOrder": [
19872	//     "parent"
19873	//   ],
19874	//   "parameters": {
19875	//     "parent": {
19876	//       "description": "Required. Name of the developer app. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}`",
19877	//       "location": "path",
19878	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$",
19879	//       "required": true,
19880	//       "type": "string"
19881	//     }
19882	//   },
19883	//   "path": "v1/{+parent}/attributes",
19884	//   "response": {
19885	//     "$ref": "GoogleCloudApigeeV1Attributes"
19886	//   },
19887	//   "scopes": [
19888	//     "https://www.googleapis.com/auth/cloud-platform"
19889	//   ]
19890	// }
19891
19892}
19893
19894// method id "apigee.organizations.developers.apps.attributes.updateDeveloperAppAttribute":
19895
19896type OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall struct {
19897	s                            *Service
19898	name                         string
19899	googlecloudapigeev1attribute *GoogleCloudApigeeV1Attribute
19900	urlParams_                   gensupport.URLParams
19901	ctx_                         context.Context
19902	header_                      http.Header
19903}
19904
19905// UpdateDeveloperAppAttribute: Updates a developer app attribute.
19906// **Note**: OAuth access tokens and Key Management Service (KMS)
19907// entities (apps, developers, and API products) are cached for 180
19908// seconds (current default). Any custom attributes associated with
19909// these entities are cached for at least 180 seconds after the entity
19910// is accessed at runtime. Therefore, an `ExpiresIn` element on the
19911// OAuthV2 policy won't be able to expire an access token in less than
19912// 180 seconds.
19913//
19914// - name: Name of the developer app attribute. Use the following
19915//   structure in your request:
19916//   `organizations/{org}/developers/{developer_email}/apps/{app}/attribu
19917//   tes/{attribute}`.
19918func (r *OrganizationsDevelopersAppsAttributesService) UpdateDeveloperAppAttribute(name string, googlecloudapigeev1attribute *GoogleCloudApigeeV1Attribute) *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall {
19919	c := &OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19920	c.name = name
19921	c.googlecloudapigeev1attribute = googlecloudapigeev1attribute
19922	return c
19923}
19924
19925// Fields allows partial responses to be retrieved. See
19926// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19927// for more information.
19928func (c *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall {
19929	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19930	return c
19931}
19932
19933// Context sets the context to be used in this call's Do method. Any
19934// pending HTTP request will be aborted if the provided context is
19935// canceled.
19936func (c *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall) Context(ctx context.Context) *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall {
19937	c.ctx_ = ctx
19938	return c
19939}
19940
19941// Header returns an http.Header that can be modified by the caller to
19942// add HTTP headers to the request.
19943func (c *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall) Header() http.Header {
19944	if c.header_ == nil {
19945		c.header_ = make(http.Header)
19946	}
19947	return c.header_
19948}
19949
19950func (c *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall) doRequest(alt string) (*http.Response, error) {
19951	reqHeaders := make(http.Header)
19952	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
19953	for k, v := range c.header_ {
19954		reqHeaders[k] = v
19955	}
19956	reqHeaders.Set("User-Agent", c.s.userAgent())
19957	var body io.Reader = nil
19958	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1attribute)
19959	if err != nil {
19960		return nil, err
19961	}
19962	reqHeaders.Set("Content-Type", "application/json")
19963	c.urlParams_.Set("alt", alt)
19964	c.urlParams_.Set("prettyPrint", "false")
19965	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
19966	urls += "?" + c.urlParams_.Encode()
19967	req, err := http.NewRequest("POST", urls, body)
19968	if err != nil {
19969		return nil, err
19970	}
19971	req.Header = reqHeaders
19972	googleapi.Expand(req.URL, map[string]string{
19973		"name": c.name,
19974	})
19975	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19976}
19977
19978// Do executes the "apigee.organizations.developers.apps.attributes.updateDeveloperAppAttribute" call.
19979// Exactly one of *GoogleCloudApigeeV1Attribute or error will be
19980// non-nil. Any non-2xx status code is an error. Response headers are in
19981// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a
19982// response was returned at all) in error.(*googleapi.Error).Header. Use
19983// googleapi.IsNotModified to check whether the returned error was
19984// because http.StatusNotModified was returned.
19985func (c *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
19986	gensupport.SetOptions(c.urlParams_, opts...)
19987	res, err := c.doRequest("json")
19988	if res != nil && res.StatusCode == http.StatusNotModified {
19989		if res.Body != nil {
19990			res.Body.Close()
19991		}
19992		return nil, &googleapi.Error{
19993			Code:   res.StatusCode,
19994			Header: res.Header,
19995		}
19996	}
19997	if err != nil {
19998		return nil, err
19999	}
20000	defer googleapi.CloseBody(res)
20001	if err := googleapi.CheckResponse(res); err != nil {
20002		return nil, err
20003	}
20004	ret := &GoogleCloudApigeeV1Attribute{
20005		ServerResponse: googleapi.ServerResponse{
20006			Header:         res.Header,
20007			HTTPStatusCode: res.StatusCode,
20008		},
20009	}
20010	target := &ret
20011	if err := gensupport.DecodeResponse(target, res); err != nil {
20012		return nil, err
20013	}
20014	return ret, nil
20015	// {
20016	//   "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.",
20017	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/attributes/{attributesId}",
20018	//   "httpMethod": "POST",
20019	//   "id": "apigee.organizations.developers.apps.attributes.updateDeveloperAppAttribute",
20020	//   "parameterOrder": [
20021	//     "name"
20022	//   ],
20023	//   "parameters": {
20024	//     "name": {
20025	//       "description": "Required. Name of the developer app attribute. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}/attributes/{attribute}`",
20026	//       "location": "path",
20027	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/attributes/[^/]+$",
20028	//       "required": true,
20029	//       "type": "string"
20030	//     }
20031	//   },
20032	//   "path": "v1/{+name}",
20033	//   "request": {
20034	//     "$ref": "GoogleCloudApigeeV1Attribute"
20035	//   },
20036	//   "response": {
20037	//     "$ref": "GoogleCloudApigeeV1Attribute"
20038	//   },
20039	//   "scopes": [
20040	//     "https://www.googleapis.com/auth/cloud-platform"
20041	//   ]
20042	// }
20043
20044}
20045
20046// method id "apigee.organizations.developers.apps.keys.create":
20047
20048type OrganizationsDevelopersAppsKeysCreateCall struct {
20049	s                                  *Service
20050	parent                             string
20051	googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey
20052	urlParams_                         gensupport.URLParams
20053	ctx_                               context.Context
20054	header_                            http.Header
20055}
20056
20057// Create: Creates a custom consumer key and secret for a developer app.
20058// This is particularly useful if you want to migrate existing consumer
20059// keys and secrets to Apigee hybrid from another system. Consumer keys
20060// and secrets can contain letters, numbers, underscores, and hyphens.
20061// No other special characters are allowed. To avoid service
20062// disruptions, a consumer key and secret should not exceed 2 KBs each.
20063// **Note**: When creating the consumer key and secret, an association
20064// to API products will not be made. Therefore, you should not specify
20065// the associated API products in your request. Instead, use the
20066// UpdateDeveloperAppKey API to make the association after the consumer
20067// key and secret are created. If a consumer key and secret already
20068// exist, you can keep them or delete them using the
20069// DeleteDeveloperAppKey API.
20070//
20071// - parent: Parent of the developer app key. Use the following
20072//   structure in your request:
20073//   `organizations/{org}/developers/{developer_email}/apps`.
20074func (r *OrganizationsDevelopersAppsKeysService) Create(parent string, googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey) *OrganizationsDevelopersAppsKeysCreateCall {
20075	c := &OrganizationsDevelopersAppsKeysCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20076	c.parent = parent
20077	c.googlecloudapigeev1developerappkey = googlecloudapigeev1developerappkey
20078	return c
20079}
20080
20081// Fields allows partial responses to be retrieved. See
20082// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20083// for more information.
20084func (c *OrganizationsDevelopersAppsKeysCreateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysCreateCall {
20085	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20086	return c
20087}
20088
20089// Context sets the context to be used in this call's Do method. Any
20090// pending HTTP request will be aborted if the provided context is
20091// canceled.
20092func (c *OrganizationsDevelopersAppsKeysCreateCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysCreateCall {
20093	c.ctx_ = ctx
20094	return c
20095}
20096
20097// Header returns an http.Header that can be modified by the caller to
20098// add HTTP headers to the request.
20099func (c *OrganizationsDevelopersAppsKeysCreateCall) Header() http.Header {
20100	if c.header_ == nil {
20101		c.header_ = make(http.Header)
20102	}
20103	return c.header_
20104}
20105
20106func (c *OrganizationsDevelopersAppsKeysCreateCall) doRequest(alt string) (*http.Response, error) {
20107	reqHeaders := make(http.Header)
20108	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
20109	for k, v := range c.header_ {
20110		reqHeaders[k] = v
20111	}
20112	reqHeaders.Set("User-Agent", c.s.userAgent())
20113	var body io.Reader = nil
20114	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerappkey)
20115	if err != nil {
20116		return nil, err
20117	}
20118	reqHeaders.Set("Content-Type", "application/json")
20119	c.urlParams_.Set("alt", alt)
20120	c.urlParams_.Set("prettyPrint", "false")
20121	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keys")
20122	urls += "?" + c.urlParams_.Encode()
20123	req, err := http.NewRequest("POST", urls, body)
20124	if err != nil {
20125		return nil, err
20126	}
20127	req.Header = reqHeaders
20128	googleapi.Expand(req.URL, map[string]string{
20129		"parent": c.parent,
20130	})
20131	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20132}
20133
20134// Do executes the "apigee.organizations.developers.apps.keys.create" call.
20135// Exactly one of *GoogleCloudApigeeV1DeveloperAppKey or error will be
20136// non-nil. Any non-2xx status code is an error. Response headers are in
20137// either *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or
20138// (if a response was returned at all) in
20139// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
20140// whether the returned error was because http.StatusNotModified was
20141// returned.
20142func (c *OrganizationsDevelopersAppsKeysCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) {
20143	gensupport.SetOptions(c.urlParams_, opts...)
20144	res, err := c.doRequest("json")
20145	if res != nil && res.StatusCode == http.StatusNotModified {
20146		if res.Body != nil {
20147			res.Body.Close()
20148		}
20149		return nil, &googleapi.Error{
20150			Code:   res.StatusCode,
20151			Header: res.Header,
20152		}
20153	}
20154	if err != nil {
20155		return nil, err
20156	}
20157	defer googleapi.CloseBody(res)
20158	if err := googleapi.CheckResponse(res); err != nil {
20159		return nil, err
20160	}
20161	ret := &GoogleCloudApigeeV1DeveloperAppKey{
20162		ServerResponse: googleapi.ServerResponse{
20163			Header:         res.Header,
20164			HTTPStatusCode: res.StatusCode,
20165		},
20166	}
20167	target := &ret
20168	if err := gensupport.DecodeResponse(target, res); err != nil {
20169		return nil, err
20170	}
20171	return ret, nil
20172	// {
20173	//   "description": "Creates a custom consumer key and secret for a developer app. This is particularly useful if you want to migrate existing consumer keys and secrets to Apigee hybrid from another system. Consumer keys and secrets can contain letters, numbers, underscores, and hyphens. No other special characters are allowed. To avoid service disruptions, a consumer key and secret should not exceed 2 KBs each. **Note**: When creating the consumer key and secret, an association to API products will not be made. Therefore, you should not specify the associated API products in your request. Instead, use the UpdateDeveloperAppKey API to make the association after the consumer key and secret are created. If a consumer key and secret already exist, you can keep them or delete them using the DeleteDeveloperAppKey API.",
20174	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys",
20175	//   "httpMethod": "POST",
20176	//   "id": "apigee.organizations.developers.apps.keys.create",
20177	//   "parameterOrder": [
20178	//     "parent"
20179	//   ],
20180	//   "parameters": {
20181	//     "parent": {
20182	//       "description": "Parent of the developer app key. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps`",
20183	//       "location": "path",
20184	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$",
20185	//       "required": true,
20186	//       "type": "string"
20187	//     }
20188	//   },
20189	//   "path": "v1/{+parent}/keys",
20190	//   "request": {
20191	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
20192	//   },
20193	//   "response": {
20194	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
20195	//   },
20196	//   "scopes": [
20197	//     "https://www.googleapis.com/auth/cloud-platform"
20198	//   ]
20199	// }
20200
20201}
20202
20203// method id "apigee.organizations.developers.apps.keys.delete":
20204
20205type OrganizationsDevelopersAppsKeysDeleteCall struct {
20206	s          *Service
20207	name       string
20208	urlParams_ gensupport.URLParams
20209	ctx_       context.Context
20210	header_    http.Header
20211}
20212
20213// Delete: Deletes an app's consumer key and removes all API products
20214// associated with the app. After the consumer key is deleted, it cannot
20215// be used to access any APIs. **Note**: After you delete a consumer
20216// key, you may want to: 1. Create a new consumer key and secret for the
20217// developer app using the CreateDeveloperAppKey API, and subsequently
20218// add an API product to the key using the UpdateDeveloperAppKey API. 2.
20219// Delete the developer app, if it is no longer required.
20220//
20221// - name: Name of the developer app key. Use the following structure in
20222//   your request:
20223//   `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{k
20224//   ey}`.
20225func (r *OrganizationsDevelopersAppsKeysService) Delete(name string) *OrganizationsDevelopersAppsKeysDeleteCall {
20226	c := &OrganizationsDevelopersAppsKeysDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20227	c.name = name
20228	return c
20229}
20230
20231// Fields allows partial responses to be retrieved. See
20232// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20233// for more information.
20234func (c *OrganizationsDevelopersAppsKeysDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysDeleteCall {
20235	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20236	return c
20237}
20238
20239// Context sets the context to be used in this call's Do method. Any
20240// pending HTTP request will be aborted if the provided context is
20241// canceled.
20242func (c *OrganizationsDevelopersAppsKeysDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysDeleteCall {
20243	c.ctx_ = ctx
20244	return c
20245}
20246
20247// Header returns an http.Header that can be modified by the caller to
20248// add HTTP headers to the request.
20249func (c *OrganizationsDevelopersAppsKeysDeleteCall) Header() http.Header {
20250	if c.header_ == nil {
20251		c.header_ = make(http.Header)
20252	}
20253	return c.header_
20254}
20255
20256func (c *OrganizationsDevelopersAppsKeysDeleteCall) doRequest(alt string) (*http.Response, error) {
20257	reqHeaders := make(http.Header)
20258	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
20259	for k, v := range c.header_ {
20260		reqHeaders[k] = v
20261	}
20262	reqHeaders.Set("User-Agent", c.s.userAgent())
20263	var body io.Reader = nil
20264	c.urlParams_.Set("alt", alt)
20265	c.urlParams_.Set("prettyPrint", "false")
20266	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
20267	urls += "?" + c.urlParams_.Encode()
20268	req, err := http.NewRequest("DELETE", urls, body)
20269	if err != nil {
20270		return nil, err
20271	}
20272	req.Header = reqHeaders
20273	googleapi.Expand(req.URL, map[string]string{
20274		"name": c.name,
20275	})
20276	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20277}
20278
20279// Do executes the "apigee.organizations.developers.apps.keys.delete" call.
20280// Exactly one of *GoogleCloudApigeeV1DeveloperAppKey or error will be
20281// non-nil. Any non-2xx status code is an error. Response headers are in
20282// either *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or
20283// (if a response was returned at all) in
20284// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
20285// whether the returned error was because http.StatusNotModified was
20286// returned.
20287func (c *OrganizationsDevelopersAppsKeysDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) {
20288	gensupport.SetOptions(c.urlParams_, opts...)
20289	res, err := c.doRequest("json")
20290	if res != nil && res.StatusCode == http.StatusNotModified {
20291		if res.Body != nil {
20292			res.Body.Close()
20293		}
20294		return nil, &googleapi.Error{
20295			Code:   res.StatusCode,
20296			Header: res.Header,
20297		}
20298	}
20299	if err != nil {
20300		return nil, err
20301	}
20302	defer googleapi.CloseBody(res)
20303	if err := googleapi.CheckResponse(res); err != nil {
20304		return nil, err
20305	}
20306	ret := &GoogleCloudApigeeV1DeveloperAppKey{
20307		ServerResponse: googleapi.ServerResponse{
20308			Header:         res.Header,
20309			HTTPStatusCode: res.StatusCode,
20310		},
20311	}
20312	target := &ret
20313	if err := gensupport.DecodeResponse(target, res); err != nil {
20314		return nil, err
20315	}
20316	return ret, nil
20317	// {
20318	//   "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.",
20319	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys/{keysId}",
20320	//   "httpMethod": "DELETE",
20321	//   "id": "apigee.organizations.developers.apps.keys.delete",
20322	//   "parameterOrder": [
20323	//     "name"
20324	//   ],
20325	//   "parameters": {
20326	//     "name": {
20327	//       "description": "Name of the developer app key. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{key}`",
20328	//       "location": "path",
20329	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/keys/[^/]+$",
20330	//       "required": true,
20331	//       "type": "string"
20332	//     }
20333	//   },
20334	//   "path": "v1/{+name}",
20335	//   "response": {
20336	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
20337	//   },
20338	//   "scopes": [
20339	//     "https://www.googleapis.com/auth/cloud-platform"
20340	//   ]
20341	// }
20342
20343}
20344
20345// method id "apigee.organizations.developers.apps.keys.get":
20346
20347type OrganizationsDevelopersAppsKeysGetCall struct {
20348	s            *Service
20349	name         string
20350	urlParams_   gensupport.URLParams
20351	ifNoneMatch_ string
20352	ctx_         context.Context
20353	header_      http.Header
20354}
20355
20356// Get: Returns details for a consumer key for a developer app,
20357// including the key and secret value, associated API products, and
20358// other information.
20359//
20360// - name: Name of the developer app key. Use the following structure in
20361//   your request:
20362//   `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{k
20363//   ey}`.
20364func (r *OrganizationsDevelopersAppsKeysService) Get(name string) *OrganizationsDevelopersAppsKeysGetCall {
20365	c := &OrganizationsDevelopersAppsKeysGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20366	c.name = name
20367	return c
20368}
20369
20370// Fields allows partial responses to be retrieved. See
20371// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20372// for more information.
20373func (c *OrganizationsDevelopersAppsKeysGetCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysGetCall {
20374	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20375	return c
20376}
20377
20378// IfNoneMatch sets the optional parameter which makes the operation
20379// fail if the object's ETag matches the given value. This is useful for
20380// getting updates only after the object has changed since the last
20381// request. Use googleapi.IsNotModified to check whether the response
20382// error from Do is the result of In-None-Match.
20383func (c *OrganizationsDevelopersAppsKeysGetCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAppsKeysGetCall {
20384	c.ifNoneMatch_ = entityTag
20385	return c
20386}
20387
20388// Context sets the context to be used in this call's Do method. Any
20389// pending HTTP request will be aborted if the provided context is
20390// canceled.
20391func (c *OrganizationsDevelopersAppsKeysGetCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysGetCall {
20392	c.ctx_ = ctx
20393	return c
20394}
20395
20396// Header returns an http.Header that can be modified by the caller to
20397// add HTTP headers to the request.
20398func (c *OrganizationsDevelopersAppsKeysGetCall) Header() http.Header {
20399	if c.header_ == nil {
20400		c.header_ = make(http.Header)
20401	}
20402	return c.header_
20403}
20404
20405func (c *OrganizationsDevelopersAppsKeysGetCall) doRequest(alt string) (*http.Response, error) {
20406	reqHeaders := make(http.Header)
20407	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
20408	for k, v := range c.header_ {
20409		reqHeaders[k] = v
20410	}
20411	reqHeaders.Set("User-Agent", c.s.userAgent())
20412	if c.ifNoneMatch_ != "" {
20413		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
20414	}
20415	var body io.Reader = nil
20416	c.urlParams_.Set("alt", alt)
20417	c.urlParams_.Set("prettyPrint", "false")
20418	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
20419	urls += "?" + c.urlParams_.Encode()
20420	req, err := http.NewRequest("GET", urls, body)
20421	if err != nil {
20422		return nil, err
20423	}
20424	req.Header = reqHeaders
20425	googleapi.Expand(req.URL, map[string]string{
20426		"name": c.name,
20427	})
20428	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20429}
20430
20431// Do executes the "apigee.organizations.developers.apps.keys.get" call.
20432// Exactly one of *GoogleCloudApigeeV1DeveloperAppKey or error will be
20433// non-nil. Any non-2xx status code is an error. Response headers are in
20434// either *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or
20435// (if a response was returned at all) in
20436// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
20437// whether the returned error was because http.StatusNotModified was
20438// returned.
20439func (c *OrganizationsDevelopersAppsKeysGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) {
20440	gensupport.SetOptions(c.urlParams_, opts...)
20441	res, err := c.doRequest("json")
20442	if res != nil && res.StatusCode == http.StatusNotModified {
20443		if res.Body != nil {
20444			res.Body.Close()
20445		}
20446		return nil, &googleapi.Error{
20447			Code:   res.StatusCode,
20448			Header: res.Header,
20449		}
20450	}
20451	if err != nil {
20452		return nil, err
20453	}
20454	defer googleapi.CloseBody(res)
20455	if err := googleapi.CheckResponse(res); err != nil {
20456		return nil, err
20457	}
20458	ret := &GoogleCloudApigeeV1DeveloperAppKey{
20459		ServerResponse: googleapi.ServerResponse{
20460			Header:         res.Header,
20461			HTTPStatusCode: res.StatusCode,
20462		},
20463	}
20464	target := &ret
20465	if err := gensupport.DecodeResponse(target, res); err != nil {
20466		return nil, err
20467	}
20468	return ret, nil
20469	// {
20470	//   "description": "Returns details for a consumer key for a developer app, including the key and secret value, associated API products, and other information.",
20471	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys/{keysId}",
20472	//   "httpMethod": "GET",
20473	//   "id": "apigee.organizations.developers.apps.keys.get",
20474	//   "parameterOrder": [
20475	//     "name"
20476	//   ],
20477	//   "parameters": {
20478	//     "name": {
20479	//       "description": "Name of the developer app key. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{key}`",
20480	//       "location": "path",
20481	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/keys/[^/]+$",
20482	//       "required": true,
20483	//       "type": "string"
20484	//     }
20485	//   },
20486	//   "path": "v1/{+name}",
20487	//   "response": {
20488	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
20489	//   },
20490	//   "scopes": [
20491	//     "https://www.googleapis.com/auth/cloud-platform"
20492	//   ]
20493	// }
20494
20495}
20496
20497// method id "apigee.organizations.developers.apps.keys.replaceDeveloperAppKey":
20498
20499type OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall struct {
20500	s                                  *Service
20501	name                               string
20502	googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey
20503	urlParams_                         gensupport.URLParams
20504	ctx_                               context.Context
20505	header_                            http.Header
20506}
20507
20508// ReplaceDeveloperAppKey: Updates the scope of an app. This API
20509// replaces the existing scopes with those specified in the request.
20510// Include or exclude any existing scopes that you want to retain or
20511// delete, respectively. The specified scopes must already be defined
20512// for the API products associated with the app. This API sets the
20513// `scopes` element under the `apiProducts` element in the attributes of
20514// the app.
20515//
20516// - name: Name of the developer app key. Use the following structure in
20517//   your request:
20518//   `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{k
20519//   ey}`.
20520func (r *OrganizationsDevelopersAppsKeysService) ReplaceDeveloperAppKey(name string, googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey) *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall {
20521	c := &OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20522	c.name = name
20523	c.googlecloudapigeev1developerappkey = googlecloudapigeev1developerappkey
20524	return c
20525}
20526
20527// Fields allows partial responses to be retrieved. See
20528// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20529// for more information.
20530func (c *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall {
20531	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20532	return c
20533}
20534
20535// Context sets the context to be used in this call's Do method. Any
20536// pending HTTP request will be aborted if the provided context is
20537// canceled.
20538func (c *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall {
20539	c.ctx_ = ctx
20540	return c
20541}
20542
20543// Header returns an http.Header that can be modified by the caller to
20544// add HTTP headers to the request.
20545func (c *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall) Header() http.Header {
20546	if c.header_ == nil {
20547		c.header_ = make(http.Header)
20548	}
20549	return c.header_
20550}
20551
20552func (c *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall) doRequest(alt string) (*http.Response, error) {
20553	reqHeaders := make(http.Header)
20554	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
20555	for k, v := range c.header_ {
20556		reqHeaders[k] = v
20557	}
20558	reqHeaders.Set("User-Agent", c.s.userAgent())
20559	var body io.Reader = nil
20560	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerappkey)
20561	if err != nil {
20562		return nil, err
20563	}
20564	reqHeaders.Set("Content-Type", "application/json")
20565	c.urlParams_.Set("alt", alt)
20566	c.urlParams_.Set("prettyPrint", "false")
20567	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
20568	urls += "?" + c.urlParams_.Encode()
20569	req, err := http.NewRequest("PUT", urls, body)
20570	if err != nil {
20571		return nil, err
20572	}
20573	req.Header = reqHeaders
20574	googleapi.Expand(req.URL, map[string]string{
20575		"name": c.name,
20576	})
20577	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20578}
20579
20580// Do executes the "apigee.organizations.developers.apps.keys.replaceDeveloperAppKey" call.
20581// Exactly one of *GoogleCloudApigeeV1DeveloperAppKey or error will be
20582// non-nil. Any non-2xx status code is an error. Response headers are in
20583// either *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or
20584// (if a response was returned at all) in
20585// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
20586// whether the returned error was because http.StatusNotModified was
20587// returned.
20588func (c *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) {
20589	gensupport.SetOptions(c.urlParams_, opts...)
20590	res, err := c.doRequest("json")
20591	if res != nil && res.StatusCode == http.StatusNotModified {
20592		if res.Body != nil {
20593			res.Body.Close()
20594		}
20595		return nil, &googleapi.Error{
20596			Code:   res.StatusCode,
20597			Header: res.Header,
20598		}
20599	}
20600	if err != nil {
20601		return nil, err
20602	}
20603	defer googleapi.CloseBody(res)
20604	if err := googleapi.CheckResponse(res); err != nil {
20605		return nil, err
20606	}
20607	ret := &GoogleCloudApigeeV1DeveloperAppKey{
20608		ServerResponse: googleapi.ServerResponse{
20609			Header:         res.Header,
20610			HTTPStatusCode: res.StatusCode,
20611		},
20612	}
20613	target := &ret
20614	if err := gensupport.DecodeResponse(target, res); err != nil {
20615		return nil, err
20616	}
20617	return ret, nil
20618	// {
20619	//   "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.",
20620	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys/{keysId}",
20621	//   "httpMethod": "PUT",
20622	//   "id": "apigee.organizations.developers.apps.keys.replaceDeveloperAppKey",
20623	//   "parameterOrder": [
20624	//     "name"
20625	//   ],
20626	//   "parameters": {
20627	//     "name": {
20628	//       "description": "Name of the developer app key. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{key}`",
20629	//       "location": "path",
20630	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/keys/[^/]+$",
20631	//       "required": true,
20632	//       "type": "string"
20633	//     }
20634	//   },
20635	//   "path": "v1/{+name}",
20636	//   "request": {
20637	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
20638	//   },
20639	//   "response": {
20640	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
20641	//   },
20642	//   "scopes": [
20643	//     "https://www.googleapis.com/auth/cloud-platform"
20644	//   ]
20645	// }
20646
20647}
20648
20649// method id "apigee.organizations.developers.apps.keys.updateDeveloperAppKey":
20650
20651type OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall struct {
20652	s                                  *Service
20653	name                               string
20654	googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey
20655	urlParams_                         gensupport.URLParams
20656	ctx_                               context.Context
20657	header_                            http.Header
20658}
20659
20660// UpdateDeveloperAppKey: Adds an API product to a developer app key,
20661// enabling the app that holds the key to access the API resources
20662// bundled in the API product. In addition, you can add attributes to a
20663// developer app key. This API replaces the existing attributes with
20664// those specified in the request. Include or exclude any existing
20665// attributes that you want to retain or delete, respectively. You can
20666// use the same key to access all API products associated with the app.
20667//
20668// - name: Name of the developer app key. Use the following structure in
20669//   your request:
20670//   `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{k
20671//   ey}`.
20672func (r *OrganizationsDevelopersAppsKeysService) UpdateDeveloperAppKey(name string, googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey) *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall {
20673	c := &OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20674	c.name = name
20675	c.googlecloudapigeev1developerappkey = googlecloudapigeev1developerappkey
20676	return c
20677}
20678
20679// Action sets the optional parameter "action": Approve or revoke the
20680// consumer key by setting this value to `approve` or `revoke`,
20681// respectively.
20682func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) Action(action string) *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall {
20683	c.urlParams_.Set("action", action)
20684	return c
20685}
20686
20687// Fields allows partial responses to be retrieved. See
20688// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20689// for more information.
20690func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall {
20691	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20692	return c
20693}
20694
20695// Context sets the context to be used in this call's Do method. Any
20696// pending HTTP request will be aborted if the provided context is
20697// canceled.
20698func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall {
20699	c.ctx_ = ctx
20700	return c
20701}
20702
20703// Header returns an http.Header that can be modified by the caller to
20704// add HTTP headers to the request.
20705func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) Header() http.Header {
20706	if c.header_ == nil {
20707		c.header_ = make(http.Header)
20708	}
20709	return c.header_
20710}
20711
20712func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) doRequest(alt string) (*http.Response, error) {
20713	reqHeaders := make(http.Header)
20714	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
20715	for k, v := range c.header_ {
20716		reqHeaders[k] = v
20717	}
20718	reqHeaders.Set("User-Agent", c.s.userAgent())
20719	var body io.Reader = nil
20720	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerappkey)
20721	if err != nil {
20722		return nil, err
20723	}
20724	reqHeaders.Set("Content-Type", "application/json")
20725	c.urlParams_.Set("alt", alt)
20726	c.urlParams_.Set("prettyPrint", "false")
20727	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
20728	urls += "?" + c.urlParams_.Encode()
20729	req, err := http.NewRequest("POST", urls, body)
20730	if err != nil {
20731		return nil, err
20732	}
20733	req.Header = reqHeaders
20734	googleapi.Expand(req.URL, map[string]string{
20735		"name": c.name,
20736	})
20737	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20738}
20739
20740// Do executes the "apigee.organizations.developers.apps.keys.updateDeveloperAppKey" call.
20741// Exactly one of *GoogleCloudApigeeV1DeveloperAppKey or error will be
20742// non-nil. Any non-2xx status code is an error. Response headers are in
20743// either *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or
20744// (if a response was returned at all) in
20745// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
20746// whether the returned error was because http.StatusNotModified was
20747// returned.
20748func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) {
20749	gensupport.SetOptions(c.urlParams_, opts...)
20750	res, err := c.doRequest("json")
20751	if res != nil && res.StatusCode == http.StatusNotModified {
20752		if res.Body != nil {
20753			res.Body.Close()
20754		}
20755		return nil, &googleapi.Error{
20756			Code:   res.StatusCode,
20757			Header: res.Header,
20758		}
20759	}
20760	if err != nil {
20761		return nil, err
20762	}
20763	defer googleapi.CloseBody(res)
20764	if err := googleapi.CheckResponse(res); err != nil {
20765		return nil, err
20766	}
20767	ret := &GoogleCloudApigeeV1DeveloperAppKey{
20768		ServerResponse: googleapi.ServerResponse{
20769			Header:         res.Header,
20770			HTTPStatusCode: res.StatusCode,
20771		},
20772	}
20773	target := &ret
20774	if err := gensupport.DecodeResponse(target, res); err != nil {
20775		return nil, err
20776	}
20777	return ret, nil
20778	// {
20779	//   "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.",
20780	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys/{keysId}",
20781	//   "httpMethod": "POST",
20782	//   "id": "apigee.organizations.developers.apps.keys.updateDeveloperAppKey",
20783	//   "parameterOrder": [
20784	//     "name"
20785	//   ],
20786	//   "parameters": {
20787	//     "action": {
20788	//       "description": "Approve or revoke the consumer key by setting this value to `approve` or `revoke`, respectively.",
20789	//       "location": "query",
20790	//       "type": "string"
20791	//     },
20792	//     "name": {
20793	//       "description": "Name of the developer app key. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{key}`",
20794	//       "location": "path",
20795	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/keys/[^/]+$",
20796	//       "required": true,
20797	//       "type": "string"
20798	//     }
20799	//   },
20800	//   "path": "v1/{+name}",
20801	//   "request": {
20802	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
20803	//   },
20804	//   "response": {
20805	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
20806	//   },
20807	//   "scopes": [
20808	//     "https://www.googleapis.com/auth/cloud-platform"
20809	//   ]
20810	// }
20811
20812}
20813
20814// method id "apigee.organizations.developers.apps.keys.apiproducts.delete":
20815
20816type OrganizationsDevelopersAppsKeysApiproductsDeleteCall struct {
20817	s          *Service
20818	name       string
20819	urlParams_ gensupport.URLParams
20820	ctx_       context.Context
20821	header_    http.Header
20822}
20823
20824// Delete: Removes an API product from an app's consumer key. After the
20825// API product is removed, the app cannot access the API resources
20826// defined in that API product. **Note**: The consumer key is not
20827// removed, only its association with the API product.
20828//
20829// - name: Name of the API product in the developer app key in the
20830//   following format:
20831//   `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{k
20832//   ey}/apiproducts/{apiproduct}`.
20833func (r *OrganizationsDevelopersAppsKeysApiproductsService) Delete(name string) *OrganizationsDevelopersAppsKeysApiproductsDeleteCall {
20834	c := &OrganizationsDevelopersAppsKeysApiproductsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20835	c.name = name
20836	return c
20837}
20838
20839// Fields allows partial responses to be retrieved. See
20840// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20841// for more information.
20842func (c *OrganizationsDevelopersAppsKeysApiproductsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysApiproductsDeleteCall {
20843	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20844	return c
20845}
20846
20847// Context sets the context to be used in this call's Do method. Any
20848// pending HTTP request will be aborted if the provided context is
20849// canceled.
20850func (c *OrganizationsDevelopersAppsKeysApiproductsDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysApiproductsDeleteCall {
20851	c.ctx_ = ctx
20852	return c
20853}
20854
20855// Header returns an http.Header that can be modified by the caller to
20856// add HTTP headers to the request.
20857func (c *OrganizationsDevelopersAppsKeysApiproductsDeleteCall) Header() http.Header {
20858	if c.header_ == nil {
20859		c.header_ = make(http.Header)
20860	}
20861	return c.header_
20862}
20863
20864func (c *OrganizationsDevelopersAppsKeysApiproductsDeleteCall) doRequest(alt string) (*http.Response, error) {
20865	reqHeaders := make(http.Header)
20866	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
20867	for k, v := range c.header_ {
20868		reqHeaders[k] = v
20869	}
20870	reqHeaders.Set("User-Agent", c.s.userAgent())
20871	var body io.Reader = nil
20872	c.urlParams_.Set("alt", alt)
20873	c.urlParams_.Set("prettyPrint", "false")
20874	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
20875	urls += "?" + c.urlParams_.Encode()
20876	req, err := http.NewRequest("DELETE", urls, body)
20877	if err != nil {
20878		return nil, err
20879	}
20880	req.Header = reqHeaders
20881	googleapi.Expand(req.URL, map[string]string{
20882		"name": c.name,
20883	})
20884	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20885}
20886
20887// Do executes the "apigee.organizations.developers.apps.keys.apiproducts.delete" call.
20888// Exactly one of *GoogleCloudApigeeV1DeveloperAppKey or error will be
20889// non-nil. Any non-2xx status code is an error. Response headers are in
20890// either *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or
20891// (if a response was returned at all) in
20892// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
20893// whether the returned error was because http.StatusNotModified was
20894// returned.
20895func (c *OrganizationsDevelopersAppsKeysApiproductsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) {
20896	gensupport.SetOptions(c.urlParams_, opts...)
20897	res, err := c.doRequest("json")
20898	if res != nil && res.StatusCode == http.StatusNotModified {
20899		if res.Body != nil {
20900			res.Body.Close()
20901		}
20902		return nil, &googleapi.Error{
20903			Code:   res.StatusCode,
20904			Header: res.Header,
20905		}
20906	}
20907	if err != nil {
20908		return nil, err
20909	}
20910	defer googleapi.CloseBody(res)
20911	if err := googleapi.CheckResponse(res); err != nil {
20912		return nil, err
20913	}
20914	ret := &GoogleCloudApigeeV1DeveloperAppKey{
20915		ServerResponse: googleapi.ServerResponse{
20916			Header:         res.Header,
20917			HTTPStatusCode: res.StatusCode,
20918		},
20919	}
20920	target := &ret
20921	if err := gensupport.DecodeResponse(target, res); err != nil {
20922		return nil, err
20923	}
20924	return ret, nil
20925	// {
20926	//   "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.",
20927	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys/{keysId}/apiproducts/{apiproductsId}",
20928	//   "httpMethod": "DELETE",
20929	//   "id": "apigee.organizations.developers.apps.keys.apiproducts.delete",
20930	//   "parameterOrder": [
20931	//     "name"
20932	//   ],
20933	//   "parameters": {
20934	//     "name": {
20935	//       "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}`",
20936	//       "location": "path",
20937	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/keys/[^/]+/apiproducts/[^/]+$",
20938	//       "required": true,
20939	//       "type": "string"
20940	//     }
20941	//   },
20942	//   "path": "v1/{+name}",
20943	//   "response": {
20944	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
20945	//   },
20946	//   "scopes": [
20947	//     "https://www.googleapis.com/auth/cloud-platform"
20948	//   ]
20949	// }
20950
20951}
20952
20953// method id "apigee.organizations.developers.apps.keys.apiproducts.updateDeveloperAppKeyApiProduct":
20954
20955type OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall struct {
20956	s          *Service
20957	name       string
20958	urlParams_ gensupport.URLParams
20959	ctx_       context.Context
20960	header_    http.Header
20961}
20962
20963// UpdateDeveloperAppKeyApiProduct: Approve or revoke an app's consumer
20964// key. After a consumer key is approved, the app can use it to access
20965// APIs. A consumer key that is revoked or pending cannot be used to
20966// access an API. Any access tokens associated with a revoked consumer
20967// key will remain active. However, Apigee hybrid checks the status of
20968// the consumer key and if set to `revoked` will not allow access to the
20969// API.
20970//
20971// - name: Name of the API product in the developer app key in the
20972//   following format:
20973//   `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{k
20974//   ey}/apiproducts/{apiproduct}`.
20975func (r *OrganizationsDevelopersAppsKeysApiproductsService) UpdateDeveloperAppKeyApiProduct(name string) *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall {
20976	c := &OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20977	c.name = name
20978	return c
20979}
20980
20981// Action sets the optional parameter "action": Approve or revoke the
20982// consumer key by setting this value to `approve` or `revoke`,
20983// respectively.
20984func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) Action(action string) *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall {
20985	c.urlParams_.Set("action", action)
20986	return c
20987}
20988
20989// Fields allows partial responses to be retrieved. See
20990// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20991// for more information.
20992func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall {
20993	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20994	return c
20995}
20996
20997// Context sets the context to be used in this call's Do method. Any
20998// pending HTTP request will be aborted if the provided context is
20999// canceled.
21000func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall {
21001	c.ctx_ = ctx
21002	return c
21003}
21004
21005// Header returns an http.Header that can be modified by the caller to
21006// add HTTP headers to the request.
21007func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) Header() http.Header {
21008	if c.header_ == nil {
21009		c.header_ = make(http.Header)
21010	}
21011	return c.header_
21012}
21013
21014func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) doRequest(alt string) (*http.Response, error) {
21015	reqHeaders := make(http.Header)
21016	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
21017	for k, v := range c.header_ {
21018		reqHeaders[k] = v
21019	}
21020	reqHeaders.Set("User-Agent", c.s.userAgent())
21021	var body io.Reader = nil
21022	c.urlParams_.Set("alt", alt)
21023	c.urlParams_.Set("prettyPrint", "false")
21024	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
21025	urls += "?" + c.urlParams_.Encode()
21026	req, err := http.NewRequest("POST", urls, body)
21027	if err != nil {
21028		return nil, err
21029	}
21030	req.Header = reqHeaders
21031	googleapi.Expand(req.URL, map[string]string{
21032		"name": c.name,
21033	})
21034	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21035}
21036
21037// Do executes the "apigee.organizations.developers.apps.keys.apiproducts.updateDeveloperAppKeyApiProduct" call.
21038// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
21039// non-2xx status code is an error. Response headers are in either
21040// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
21041// returned at all) in error.(*googleapi.Error).Header. Use
21042// googleapi.IsNotModified to check whether the returned error was
21043// because http.StatusNotModified was returned.
21044func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
21045	gensupport.SetOptions(c.urlParams_, opts...)
21046	res, err := c.doRequest("json")
21047	if res != nil && res.StatusCode == http.StatusNotModified {
21048		if res.Body != nil {
21049			res.Body.Close()
21050		}
21051		return nil, &googleapi.Error{
21052			Code:   res.StatusCode,
21053			Header: res.Header,
21054		}
21055	}
21056	if err != nil {
21057		return nil, err
21058	}
21059	defer googleapi.CloseBody(res)
21060	if err := googleapi.CheckResponse(res); err != nil {
21061		return nil, err
21062	}
21063	ret := &GoogleProtobufEmpty{
21064		ServerResponse: googleapi.ServerResponse{
21065			Header:         res.Header,
21066			HTTPStatusCode: res.StatusCode,
21067		},
21068	}
21069	target := &ret
21070	if err := gensupport.DecodeResponse(target, res); err != nil {
21071		return nil, err
21072	}
21073	return ret, nil
21074	// {
21075	//   "description": "Approve or revoke an app's consumer key. After a consumer key is approved, the app can use it to access APIs. A consumer key that is revoked or pending cannot be used to access an API. Any access tokens associated with a revoked consumer key will remain active. However, Apigee hybrid checks the status of the consumer key and if set to `revoked` will not allow access to the API.",
21076	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys/{keysId}/apiproducts/{apiproductsId}",
21077	//   "httpMethod": "POST",
21078	//   "id": "apigee.organizations.developers.apps.keys.apiproducts.updateDeveloperAppKeyApiProduct",
21079	//   "parameterOrder": [
21080	//     "name"
21081	//   ],
21082	//   "parameters": {
21083	//     "action": {
21084	//       "description": "Approve or revoke the consumer key by setting this value to `approve` or `revoke`, respectively.",
21085	//       "location": "query",
21086	//       "type": "string"
21087	//     },
21088	//     "name": {
21089	//       "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}`",
21090	//       "location": "path",
21091	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/keys/[^/]+/apiproducts/[^/]+$",
21092	//       "required": true,
21093	//       "type": "string"
21094	//     }
21095	//   },
21096	//   "path": "v1/{+name}",
21097	//   "response": {
21098	//     "$ref": "GoogleProtobufEmpty"
21099	//   },
21100	//   "scopes": [
21101	//     "https://www.googleapis.com/auth/cloud-platform"
21102	//   ]
21103	// }
21104
21105}
21106
21107// method id "apigee.organizations.developers.apps.keys.create.create":
21108
21109type OrganizationsDevelopersAppsKeysCreateCreateCall struct {
21110	s                                  *Service
21111	parent                             string
21112	googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey
21113	urlParams_                         gensupport.URLParams
21114	ctx_                               context.Context
21115	header_                            http.Header
21116}
21117
21118// Create: Creates a custom consumer key and secret for a developer app.
21119// This is particularly useful if you want to migrate existing consumer
21120// keys and secrets to Apigee hybrid from another system. Consumer keys
21121// and secrets can contain letters, numbers, underscores, and hyphens.
21122// No other special characters are allowed. To avoid service
21123// disruptions, a consumer key and secret should not exceed 2 KBs each.
21124// **Note**: When creating the consumer key and secret, an association
21125// to API products will not be made. Therefore, you should not specify
21126// the associated API products in your request. Instead, use the
21127// UpdateDeveloperAppKey API to make the association after the consumer
21128// key and secret are created. If a consumer key and secret already
21129// exist, you can keep them or delete them using the
21130// DeleteDeveloperAppKey API.
21131//
21132// - parent: Parent of the developer app key. Use the following
21133//   structure in your request:
21134//   `organizations/{org}/developers/{developer_email}/apps`.
21135func (r *OrganizationsDevelopersAppsKeysCreateService) Create(parent string, googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey) *OrganizationsDevelopersAppsKeysCreateCreateCall {
21136	c := &OrganizationsDevelopersAppsKeysCreateCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21137	c.parent = parent
21138	c.googlecloudapigeev1developerappkey = googlecloudapigeev1developerappkey
21139	return c
21140}
21141
21142// Fields allows partial responses to be retrieved. See
21143// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21144// for more information.
21145func (c *OrganizationsDevelopersAppsKeysCreateCreateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysCreateCreateCall {
21146	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21147	return c
21148}
21149
21150// Context sets the context to be used in this call's Do method. Any
21151// pending HTTP request will be aborted if the provided context is
21152// canceled.
21153func (c *OrganizationsDevelopersAppsKeysCreateCreateCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysCreateCreateCall {
21154	c.ctx_ = ctx
21155	return c
21156}
21157
21158// Header returns an http.Header that can be modified by the caller to
21159// add HTTP headers to the request.
21160func (c *OrganizationsDevelopersAppsKeysCreateCreateCall) Header() http.Header {
21161	if c.header_ == nil {
21162		c.header_ = make(http.Header)
21163	}
21164	return c.header_
21165}
21166
21167func (c *OrganizationsDevelopersAppsKeysCreateCreateCall) doRequest(alt string) (*http.Response, error) {
21168	reqHeaders := make(http.Header)
21169	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
21170	for k, v := range c.header_ {
21171		reqHeaders[k] = v
21172	}
21173	reqHeaders.Set("User-Agent", c.s.userAgent())
21174	var body io.Reader = nil
21175	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerappkey)
21176	if err != nil {
21177		return nil, err
21178	}
21179	reqHeaders.Set("Content-Type", "application/json")
21180	c.urlParams_.Set("alt", alt)
21181	c.urlParams_.Set("prettyPrint", "false")
21182	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keys/create")
21183	urls += "?" + c.urlParams_.Encode()
21184	req, err := http.NewRequest("POST", urls, body)
21185	if err != nil {
21186		return nil, err
21187	}
21188	req.Header = reqHeaders
21189	googleapi.Expand(req.URL, map[string]string{
21190		"parent": c.parent,
21191	})
21192	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21193}
21194
21195// Do executes the "apigee.organizations.developers.apps.keys.create.create" call.
21196// Exactly one of *GoogleCloudApigeeV1DeveloperAppKey or error will be
21197// non-nil. Any non-2xx status code is an error. Response headers are in
21198// either *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or
21199// (if a response was returned at all) in
21200// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
21201// whether the returned error was because http.StatusNotModified was
21202// returned.
21203func (c *OrganizationsDevelopersAppsKeysCreateCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) {
21204	gensupport.SetOptions(c.urlParams_, opts...)
21205	res, err := c.doRequest("json")
21206	if res != nil && res.StatusCode == http.StatusNotModified {
21207		if res.Body != nil {
21208			res.Body.Close()
21209		}
21210		return nil, &googleapi.Error{
21211			Code:   res.StatusCode,
21212			Header: res.Header,
21213		}
21214	}
21215	if err != nil {
21216		return nil, err
21217	}
21218	defer googleapi.CloseBody(res)
21219	if err := googleapi.CheckResponse(res); err != nil {
21220		return nil, err
21221	}
21222	ret := &GoogleCloudApigeeV1DeveloperAppKey{
21223		ServerResponse: googleapi.ServerResponse{
21224			Header:         res.Header,
21225			HTTPStatusCode: res.StatusCode,
21226		},
21227	}
21228	target := &ret
21229	if err := gensupport.DecodeResponse(target, res); err != nil {
21230		return nil, err
21231	}
21232	return ret, nil
21233	// {
21234	//   "description": "Creates a custom consumer key and secret for a developer app. This is particularly useful if you want to migrate existing consumer keys and secrets to Apigee hybrid from another system. Consumer keys and secrets can contain letters, numbers, underscores, and hyphens. No other special characters are allowed. To avoid service disruptions, a consumer key and secret should not exceed 2 KBs each. **Note**: When creating the consumer key and secret, an association to API products will not be made. Therefore, you should not specify the associated API products in your request. Instead, use the UpdateDeveloperAppKey API to make the association after the consumer key and secret are created. If a consumer key and secret already exist, you can keep them or delete them using the DeleteDeveloperAppKey API.",
21235	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys/create",
21236	//   "httpMethod": "POST",
21237	//   "id": "apigee.organizations.developers.apps.keys.create.create",
21238	//   "parameterOrder": [
21239	//     "parent"
21240	//   ],
21241	//   "parameters": {
21242	//     "parent": {
21243	//       "description": "Parent of the developer app key. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps`",
21244	//       "location": "path",
21245	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$",
21246	//       "required": true,
21247	//       "type": "string"
21248	//     }
21249	//   },
21250	//   "path": "v1/{+parent}/keys/create",
21251	//   "request": {
21252	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
21253	//   },
21254	//   "response": {
21255	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
21256	//   },
21257	//   "scopes": [
21258	//     "https://www.googleapis.com/auth/cloud-platform"
21259	//   ]
21260	// }
21261
21262}
21263
21264// method id "apigee.organizations.developers.attributes.delete":
21265
21266type OrganizationsDevelopersAttributesDeleteCall struct {
21267	s          *Service
21268	name       string
21269	urlParams_ gensupport.URLParams
21270	ctx_       context.Context
21271	header_    http.Header
21272}
21273
21274// Delete: Deletes a developer attribute.
21275//
21276// - name: Name of the developer attribute. Use the following structure
21277//   in your request:
21278//   `organizations/{org}/developers/{developer_email}/attributes/{attrib
21279//   ute}`.
21280func (r *OrganizationsDevelopersAttributesService) Delete(name string) *OrganizationsDevelopersAttributesDeleteCall {
21281	c := &OrganizationsDevelopersAttributesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21282	c.name = name
21283	return c
21284}
21285
21286// Fields allows partial responses to be retrieved. See
21287// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21288// for more information.
21289func (c *OrganizationsDevelopersAttributesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAttributesDeleteCall {
21290	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21291	return c
21292}
21293
21294// Context sets the context to be used in this call's Do method. Any
21295// pending HTTP request will be aborted if the provided context is
21296// canceled.
21297func (c *OrganizationsDevelopersAttributesDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersAttributesDeleteCall {
21298	c.ctx_ = ctx
21299	return c
21300}
21301
21302// Header returns an http.Header that can be modified by the caller to
21303// add HTTP headers to the request.
21304func (c *OrganizationsDevelopersAttributesDeleteCall) Header() http.Header {
21305	if c.header_ == nil {
21306		c.header_ = make(http.Header)
21307	}
21308	return c.header_
21309}
21310
21311func (c *OrganizationsDevelopersAttributesDeleteCall) doRequest(alt string) (*http.Response, error) {
21312	reqHeaders := make(http.Header)
21313	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
21314	for k, v := range c.header_ {
21315		reqHeaders[k] = v
21316	}
21317	reqHeaders.Set("User-Agent", c.s.userAgent())
21318	var body io.Reader = nil
21319	c.urlParams_.Set("alt", alt)
21320	c.urlParams_.Set("prettyPrint", "false")
21321	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
21322	urls += "?" + c.urlParams_.Encode()
21323	req, err := http.NewRequest("DELETE", urls, body)
21324	if err != nil {
21325		return nil, err
21326	}
21327	req.Header = reqHeaders
21328	googleapi.Expand(req.URL, map[string]string{
21329		"name": c.name,
21330	})
21331	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21332}
21333
21334// Do executes the "apigee.organizations.developers.attributes.delete" call.
21335// Exactly one of *GoogleCloudApigeeV1Attribute or error will be
21336// non-nil. Any non-2xx status code is an error. Response headers are in
21337// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a
21338// response was returned at all) in error.(*googleapi.Error).Header. Use
21339// googleapi.IsNotModified to check whether the returned error was
21340// because http.StatusNotModified was returned.
21341func (c *OrganizationsDevelopersAttributesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
21342	gensupport.SetOptions(c.urlParams_, opts...)
21343	res, err := c.doRequest("json")
21344	if res != nil && res.StatusCode == http.StatusNotModified {
21345		if res.Body != nil {
21346			res.Body.Close()
21347		}
21348		return nil, &googleapi.Error{
21349			Code:   res.StatusCode,
21350			Header: res.Header,
21351		}
21352	}
21353	if err != nil {
21354		return nil, err
21355	}
21356	defer googleapi.CloseBody(res)
21357	if err := googleapi.CheckResponse(res); err != nil {
21358		return nil, err
21359	}
21360	ret := &GoogleCloudApigeeV1Attribute{
21361		ServerResponse: googleapi.ServerResponse{
21362			Header:         res.Header,
21363			HTTPStatusCode: res.StatusCode,
21364		},
21365	}
21366	target := &ret
21367	if err := gensupport.DecodeResponse(target, res); err != nil {
21368		return nil, err
21369	}
21370	return ret, nil
21371	// {
21372	//   "description": "Deletes a developer attribute.",
21373	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/attributes/{attributesId}",
21374	//   "httpMethod": "DELETE",
21375	//   "id": "apigee.organizations.developers.attributes.delete",
21376	//   "parameterOrder": [
21377	//     "name"
21378	//   ],
21379	//   "parameters": {
21380	//     "name": {
21381	//       "description": "Required. Name of the developer attribute. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/attributes/{attribute}`",
21382	//       "location": "path",
21383	//       "pattern": "^organizations/[^/]+/developers/[^/]+/attributes/[^/]+$",
21384	//       "required": true,
21385	//       "type": "string"
21386	//     }
21387	//   },
21388	//   "path": "v1/{+name}",
21389	//   "response": {
21390	//     "$ref": "GoogleCloudApigeeV1Attribute"
21391	//   },
21392	//   "scopes": [
21393	//     "https://www.googleapis.com/auth/cloud-platform"
21394	//   ]
21395	// }
21396
21397}
21398
21399// method id "apigee.organizations.developers.attributes.get":
21400
21401type OrganizationsDevelopersAttributesGetCall struct {
21402	s            *Service
21403	name         string
21404	urlParams_   gensupport.URLParams
21405	ifNoneMatch_ string
21406	ctx_         context.Context
21407	header_      http.Header
21408}
21409
21410// Get: Returns the value of the specified developer attribute.
21411//
21412// - name: Name of the developer attribute. Use the following structure
21413//   in your request:
21414//   `organizations/{org}/developers/{developer_email}/attributes/{attrib
21415//   ute}`.
21416func (r *OrganizationsDevelopersAttributesService) Get(name string) *OrganizationsDevelopersAttributesGetCall {
21417	c := &OrganizationsDevelopersAttributesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21418	c.name = name
21419	return c
21420}
21421
21422// Fields allows partial responses to be retrieved. See
21423// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21424// for more information.
21425func (c *OrganizationsDevelopersAttributesGetCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAttributesGetCall {
21426	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21427	return c
21428}
21429
21430// IfNoneMatch sets the optional parameter which makes the operation
21431// fail if the object's ETag matches the given value. This is useful for
21432// getting updates only after the object has changed since the last
21433// request. Use googleapi.IsNotModified to check whether the response
21434// error from Do is the result of In-None-Match.
21435func (c *OrganizationsDevelopersAttributesGetCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAttributesGetCall {
21436	c.ifNoneMatch_ = entityTag
21437	return c
21438}
21439
21440// Context sets the context to be used in this call's Do method. Any
21441// pending HTTP request will be aborted if the provided context is
21442// canceled.
21443func (c *OrganizationsDevelopersAttributesGetCall) Context(ctx context.Context) *OrganizationsDevelopersAttributesGetCall {
21444	c.ctx_ = ctx
21445	return c
21446}
21447
21448// Header returns an http.Header that can be modified by the caller to
21449// add HTTP headers to the request.
21450func (c *OrganizationsDevelopersAttributesGetCall) Header() http.Header {
21451	if c.header_ == nil {
21452		c.header_ = make(http.Header)
21453	}
21454	return c.header_
21455}
21456
21457func (c *OrganizationsDevelopersAttributesGetCall) doRequest(alt string) (*http.Response, error) {
21458	reqHeaders := make(http.Header)
21459	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
21460	for k, v := range c.header_ {
21461		reqHeaders[k] = v
21462	}
21463	reqHeaders.Set("User-Agent", c.s.userAgent())
21464	if c.ifNoneMatch_ != "" {
21465		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21466	}
21467	var body io.Reader = nil
21468	c.urlParams_.Set("alt", alt)
21469	c.urlParams_.Set("prettyPrint", "false")
21470	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
21471	urls += "?" + c.urlParams_.Encode()
21472	req, err := http.NewRequest("GET", urls, body)
21473	if err != nil {
21474		return nil, err
21475	}
21476	req.Header = reqHeaders
21477	googleapi.Expand(req.URL, map[string]string{
21478		"name": c.name,
21479	})
21480	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21481}
21482
21483// Do executes the "apigee.organizations.developers.attributes.get" call.
21484// Exactly one of *GoogleCloudApigeeV1Attribute or error will be
21485// non-nil. Any non-2xx status code is an error. Response headers are in
21486// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a
21487// response was returned at all) in error.(*googleapi.Error).Header. Use
21488// googleapi.IsNotModified to check whether the returned error was
21489// because http.StatusNotModified was returned.
21490func (c *OrganizationsDevelopersAttributesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
21491	gensupport.SetOptions(c.urlParams_, opts...)
21492	res, err := c.doRequest("json")
21493	if res != nil && res.StatusCode == http.StatusNotModified {
21494		if res.Body != nil {
21495			res.Body.Close()
21496		}
21497		return nil, &googleapi.Error{
21498			Code:   res.StatusCode,
21499			Header: res.Header,
21500		}
21501	}
21502	if err != nil {
21503		return nil, err
21504	}
21505	defer googleapi.CloseBody(res)
21506	if err := googleapi.CheckResponse(res); err != nil {
21507		return nil, err
21508	}
21509	ret := &GoogleCloudApigeeV1Attribute{
21510		ServerResponse: googleapi.ServerResponse{
21511			Header:         res.Header,
21512			HTTPStatusCode: res.StatusCode,
21513		},
21514	}
21515	target := &ret
21516	if err := gensupport.DecodeResponse(target, res); err != nil {
21517		return nil, err
21518	}
21519	return ret, nil
21520	// {
21521	//   "description": "Returns the value of the specified developer attribute.",
21522	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/attributes/{attributesId}",
21523	//   "httpMethod": "GET",
21524	//   "id": "apigee.organizations.developers.attributes.get",
21525	//   "parameterOrder": [
21526	//     "name"
21527	//   ],
21528	//   "parameters": {
21529	//     "name": {
21530	//       "description": "Required. Name of the developer attribute. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/attributes/{attribute}`",
21531	//       "location": "path",
21532	//       "pattern": "^organizations/[^/]+/developers/[^/]+/attributes/[^/]+$",
21533	//       "required": true,
21534	//       "type": "string"
21535	//     }
21536	//   },
21537	//   "path": "v1/{+name}",
21538	//   "response": {
21539	//     "$ref": "GoogleCloudApigeeV1Attribute"
21540	//   },
21541	//   "scopes": [
21542	//     "https://www.googleapis.com/auth/cloud-platform"
21543	//   ]
21544	// }
21545
21546}
21547
21548// method id "apigee.organizations.developers.attributes.list":
21549
21550type OrganizationsDevelopersAttributesListCall struct {
21551	s            *Service
21552	parent       string
21553	urlParams_   gensupport.URLParams
21554	ifNoneMatch_ string
21555	ctx_         context.Context
21556	header_      http.Header
21557}
21558
21559// List: Returns a list of all developer attributes.
21560//
21561// - parent: Email address of the developer for which attributes are
21562//   being listed in the following format:
21563//   `organizations/{org}/developers/{developer_email}`.
21564func (r *OrganizationsDevelopersAttributesService) List(parent string) *OrganizationsDevelopersAttributesListCall {
21565	c := &OrganizationsDevelopersAttributesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21566	c.parent = parent
21567	return c
21568}
21569
21570// Fields allows partial responses to be retrieved. See
21571// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21572// for more information.
21573func (c *OrganizationsDevelopersAttributesListCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAttributesListCall {
21574	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21575	return c
21576}
21577
21578// IfNoneMatch sets the optional parameter which makes the operation
21579// fail if the object's ETag matches the given value. This is useful for
21580// getting updates only after the object has changed since the last
21581// request. Use googleapi.IsNotModified to check whether the response
21582// error from Do is the result of In-None-Match.
21583func (c *OrganizationsDevelopersAttributesListCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAttributesListCall {
21584	c.ifNoneMatch_ = entityTag
21585	return c
21586}
21587
21588// Context sets the context to be used in this call's Do method. Any
21589// pending HTTP request will be aborted if the provided context is
21590// canceled.
21591func (c *OrganizationsDevelopersAttributesListCall) Context(ctx context.Context) *OrganizationsDevelopersAttributesListCall {
21592	c.ctx_ = ctx
21593	return c
21594}
21595
21596// Header returns an http.Header that can be modified by the caller to
21597// add HTTP headers to the request.
21598func (c *OrganizationsDevelopersAttributesListCall) Header() http.Header {
21599	if c.header_ == nil {
21600		c.header_ = make(http.Header)
21601	}
21602	return c.header_
21603}
21604
21605func (c *OrganizationsDevelopersAttributesListCall) doRequest(alt string) (*http.Response, error) {
21606	reqHeaders := make(http.Header)
21607	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
21608	for k, v := range c.header_ {
21609		reqHeaders[k] = v
21610	}
21611	reqHeaders.Set("User-Agent", c.s.userAgent())
21612	if c.ifNoneMatch_ != "" {
21613		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21614	}
21615	var body io.Reader = nil
21616	c.urlParams_.Set("alt", alt)
21617	c.urlParams_.Set("prettyPrint", "false")
21618	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attributes")
21619	urls += "?" + c.urlParams_.Encode()
21620	req, err := http.NewRequest("GET", urls, body)
21621	if err != nil {
21622		return nil, err
21623	}
21624	req.Header = reqHeaders
21625	googleapi.Expand(req.URL, map[string]string{
21626		"parent": c.parent,
21627	})
21628	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21629}
21630
21631// Do executes the "apigee.organizations.developers.attributes.list" call.
21632// Exactly one of *GoogleCloudApigeeV1Attributes or error will be
21633// non-nil. Any non-2xx status code is an error. Response headers are in
21634// either *GoogleCloudApigeeV1Attributes.ServerResponse.Header or (if a
21635// response was returned at all) in error.(*googleapi.Error).Header. Use
21636// googleapi.IsNotModified to check whether the returned error was
21637// because http.StatusNotModified was returned.
21638func (c *OrganizationsDevelopersAttributesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attributes, error) {
21639	gensupport.SetOptions(c.urlParams_, opts...)
21640	res, err := c.doRequest("json")
21641	if res != nil && res.StatusCode == http.StatusNotModified {
21642		if res.Body != nil {
21643			res.Body.Close()
21644		}
21645		return nil, &googleapi.Error{
21646			Code:   res.StatusCode,
21647			Header: res.Header,
21648		}
21649	}
21650	if err != nil {
21651		return nil, err
21652	}
21653	defer googleapi.CloseBody(res)
21654	if err := googleapi.CheckResponse(res); err != nil {
21655		return nil, err
21656	}
21657	ret := &GoogleCloudApigeeV1Attributes{
21658		ServerResponse: googleapi.ServerResponse{
21659			Header:         res.Header,
21660			HTTPStatusCode: res.StatusCode,
21661		},
21662	}
21663	target := &ret
21664	if err := gensupport.DecodeResponse(target, res); err != nil {
21665		return nil, err
21666	}
21667	return ret, nil
21668	// {
21669	//   "description": "Returns a list of all developer attributes.",
21670	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/attributes",
21671	//   "httpMethod": "GET",
21672	//   "id": "apigee.organizations.developers.attributes.list",
21673	//   "parameterOrder": [
21674	//     "parent"
21675	//   ],
21676	//   "parameters": {
21677	//     "parent": {
21678	//       "description": "Required. Email address of the developer for which attributes are being listed in the following format: `organizations/{org}/developers/{developer_email}`",
21679	//       "location": "path",
21680	//       "pattern": "^organizations/[^/]+/developers/[^/]+$",
21681	//       "required": true,
21682	//       "type": "string"
21683	//     }
21684	//   },
21685	//   "path": "v1/{+parent}/attributes",
21686	//   "response": {
21687	//     "$ref": "GoogleCloudApigeeV1Attributes"
21688	//   },
21689	//   "scopes": [
21690	//     "https://www.googleapis.com/auth/cloud-platform"
21691	//   ]
21692	// }
21693
21694}
21695
21696// method id "apigee.organizations.developers.attributes.updateDeveloperAttribute":
21697
21698type OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall struct {
21699	s                            *Service
21700	name                         string
21701	googlecloudapigeev1attribute *GoogleCloudApigeeV1Attribute
21702	urlParams_                   gensupport.URLParams
21703	ctx_                         context.Context
21704	header_                      http.Header
21705}
21706
21707// UpdateDeveloperAttribute: Updates a developer attribute. **Note**:
21708// OAuth access tokens and Key Management Service (KMS) entities (apps,
21709// developers, and API products) are cached for 180 seconds (default).
21710// Any custom attributes associated with these entities are cached for
21711// at least 180 seconds after the entity is accessed at runtime.
21712// Therefore, an `ExpiresIn` element on the OAuthV2 policy won't be able
21713// to expire an access token in less than 180 seconds.
21714//
21715// - name: Name of the developer attribute. Use the following structure
21716//   in your request:
21717//   `organizations/{org}/developers/{developer_email}/attributes/{attrib
21718//   ute}`.
21719func (r *OrganizationsDevelopersAttributesService) UpdateDeveloperAttribute(name string, googlecloudapigeev1attribute *GoogleCloudApigeeV1Attribute) *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall {
21720	c := &OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21721	c.name = name
21722	c.googlecloudapigeev1attribute = googlecloudapigeev1attribute
21723	return c
21724}
21725
21726// Fields allows partial responses to be retrieved. See
21727// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21728// for more information.
21729func (c *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall {
21730	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21731	return c
21732}
21733
21734// Context sets the context to be used in this call's Do method. Any
21735// pending HTTP request will be aborted if the provided context is
21736// canceled.
21737func (c *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall) Context(ctx context.Context) *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall {
21738	c.ctx_ = ctx
21739	return c
21740}
21741
21742// Header returns an http.Header that can be modified by the caller to
21743// add HTTP headers to the request.
21744func (c *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall) Header() http.Header {
21745	if c.header_ == nil {
21746		c.header_ = make(http.Header)
21747	}
21748	return c.header_
21749}
21750
21751func (c *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall) doRequest(alt string) (*http.Response, error) {
21752	reqHeaders := make(http.Header)
21753	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
21754	for k, v := range c.header_ {
21755		reqHeaders[k] = v
21756	}
21757	reqHeaders.Set("User-Agent", c.s.userAgent())
21758	var body io.Reader = nil
21759	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1attribute)
21760	if err != nil {
21761		return nil, err
21762	}
21763	reqHeaders.Set("Content-Type", "application/json")
21764	c.urlParams_.Set("alt", alt)
21765	c.urlParams_.Set("prettyPrint", "false")
21766	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
21767	urls += "?" + c.urlParams_.Encode()
21768	req, err := http.NewRequest("POST", urls, body)
21769	if err != nil {
21770		return nil, err
21771	}
21772	req.Header = reqHeaders
21773	googleapi.Expand(req.URL, map[string]string{
21774		"name": c.name,
21775	})
21776	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21777}
21778
21779// Do executes the "apigee.organizations.developers.attributes.updateDeveloperAttribute" call.
21780// Exactly one of *GoogleCloudApigeeV1Attribute or error will be
21781// non-nil. Any non-2xx status code is an error. Response headers are in
21782// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a
21783// response was returned at all) in error.(*googleapi.Error).Header. Use
21784// googleapi.IsNotModified to check whether the returned error was
21785// because http.StatusNotModified was returned.
21786func (c *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
21787	gensupport.SetOptions(c.urlParams_, opts...)
21788	res, err := c.doRequest("json")
21789	if res != nil && res.StatusCode == http.StatusNotModified {
21790		if res.Body != nil {
21791			res.Body.Close()
21792		}
21793		return nil, &googleapi.Error{
21794			Code:   res.StatusCode,
21795			Header: res.Header,
21796		}
21797	}
21798	if err != nil {
21799		return nil, err
21800	}
21801	defer googleapi.CloseBody(res)
21802	if err := googleapi.CheckResponse(res); err != nil {
21803		return nil, err
21804	}
21805	ret := &GoogleCloudApigeeV1Attribute{
21806		ServerResponse: googleapi.ServerResponse{
21807			Header:         res.Header,
21808			HTTPStatusCode: res.StatusCode,
21809		},
21810	}
21811	target := &ret
21812	if err := gensupport.DecodeResponse(target, res); err != nil {
21813		return nil, err
21814	}
21815	return ret, nil
21816	// {
21817	//   "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.",
21818	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/attributes/{attributesId}",
21819	//   "httpMethod": "POST",
21820	//   "id": "apigee.organizations.developers.attributes.updateDeveloperAttribute",
21821	//   "parameterOrder": [
21822	//     "name"
21823	//   ],
21824	//   "parameters": {
21825	//     "name": {
21826	//       "description": "Required. Name of the developer attribute. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/attributes/{attribute}`",
21827	//       "location": "path",
21828	//       "pattern": "^organizations/[^/]+/developers/[^/]+/attributes/[^/]+$",
21829	//       "required": true,
21830	//       "type": "string"
21831	//     }
21832	//   },
21833	//   "path": "v1/{+name}",
21834	//   "request": {
21835	//     "$ref": "GoogleCloudApigeeV1Attribute"
21836	//   },
21837	//   "response": {
21838	//     "$ref": "GoogleCloudApigeeV1Attribute"
21839	//   },
21840	//   "scopes": [
21841	//     "https://www.googleapis.com/auth/cloud-platform"
21842	//   ]
21843	// }
21844
21845}
21846
21847// method id "apigee.organizations.developers.subscriptions.create":
21848
21849type OrganizationsDevelopersSubscriptionsCreateCall struct {
21850	s                                        *Service
21851	parent                                   string
21852	googlecloudapigeev1developersubscription *GoogleCloudApigeeV1DeveloperSubscription
21853	urlParams_                               gensupport.URLParams
21854	ctx_                                     context.Context
21855	header_                                  http.Header
21856}
21857
21858// Create: Creates a subscription to an API product.
21859//
21860// - parent: Email address of the developer that is purchasing a
21861//   subscription to the API product. Use the following structure in
21862//   your request: `organizations/{org}/developers/{developer_email}`.
21863func (r *OrganizationsDevelopersSubscriptionsService) Create(parent string, googlecloudapigeev1developersubscription *GoogleCloudApigeeV1DeveloperSubscription) *OrganizationsDevelopersSubscriptionsCreateCall {
21864	c := &OrganizationsDevelopersSubscriptionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21865	c.parent = parent
21866	c.googlecloudapigeev1developersubscription = googlecloudapigeev1developersubscription
21867	return c
21868}
21869
21870// Fields allows partial responses to be retrieved. See
21871// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21872// for more information.
21873func (c *OrganizationsDevelopersSubscriptionsCreateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersSubscriptionsCreateCall {
21874	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21875	return c
21876}
21877
21878// Context sets the context to be used in this call's Do method. Any
21879// pending HTTP request will be aborted if the provided context is
21880// canceled.
21881func (c *OrganizationsDevelopersSubscriptionsCreateCall) Context(ctx context.Context) *OrganizationsDevelopersSubscriptionsCreateCall {
21882	c.ctx_ = ctx
21883	return c
21884}
21885
21886// Header returns an http.Header that can be modified by the caller to
21887// add HTTP headers to the request.
21888func (c *OrganizationsDevelopersSubscriptionsCreateCall) Header() http.Header {
21889	if c.header_ == nil {
21890		c.header_ = make(http.Header)
21891	}
21892	return c.header_
21893}
21894
21895func (c *OrganizationsDevelopersSubscriptionsCreateCall) doRequest(alt string) (*http.Response, error) {
21896	reqHeaders := make(http.Header)
21897	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
21898	for k, v := range c.header_ {
21899		reqHeaders[k] = v
21900	}
21901	reqHeaders.Set("User-Agent", c.s.userAgent())
21902	var body io.Reader = nil
21903	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developersubscription)
21904	if err != nil {
21905		return nil, err
21906	}
21907	reqHeaders.Set("Content-Type", "application/json")
21908	c.urlParams_.Set("alt", alt)
21909	c.urlParams_.Set("prettyPrint", "false")
21910	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/subscriptions")
21911	urls += "?" + c.urlParams_.Encode()
21912	req, err := http.NewRequest("POST", urls, body)
21913	if err != nil {
21914		return nil, err
21915	}
21916	req.Header = reqHeaders
21917	googleapi.Expand(req.URL, map[string]string{
21918		"parent": c.parent,
21919	})
21920	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21921}
21922
21923// Do executes the "apigee.organizations.developers.subscriptions.create" call.
21924// Exactly one of *GoogleCloudApigeeV1DeveloperSubscription or error
21925// will be non-nil. Any non-2xx status code is an error. Response
21926// headers are in either
21927// *GoogleCloudApigeeV1DeveloperSubscription.ServerResponse.Header or
21928// (if a response was returned at all) in
21929// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
21930// whether the returned error was because http.StatusNotModified was
21931// returned.
21932func (c *OrganizationsDevelopersSubscriptionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperSubscription, error) {
21933	gensupport.SetOptions(c.urlParams_, opts...)
21934	res, err := c.doRequest("json")
21935	if res != nil && res.StatusCode == http.StatusNotModified {
21936		if res.Body != nil {
21937			res.Body.Close()
21938		}
21939		return nil, &googleapi.Error{
21940			Code:   res.StatusCode,
21941			Header: res.Header,
21942		}
21943	}
21944	if err != nil {
21945		return nil, err
21946	}
21947	defer googleapi.CloseBody(res)
21948	if err := googleapi.CheckResponse(res); err != nil {
21949		return nil, err
21950	}
21951	ret := &GoogleCloudApigeeV1DeveloperSubscription{
21952		ServerResponse: googleapi.ServerResponse{
21953			Header:         res.Header,
21954			HTTPStatusCode: res.StatusCode,
21955		},
21956	}
21957	target := &ret
21958	if err := gensupport.DecodeResponse(target, res); err != nil {
21959		return nil, err
21960	}
21961	return ret, nil
21962	// {
21963	//   "description": "Creates a subscription to an API product. ",
21964	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/subscriptions",
21965	//   "httpMethod": "POST",
21966	//   "id": "apigee.organizations.developers.subscriptions.create",
21967	//   "parameterOrder": [
21968	//     "parent"
21969	//   ],
21970	//   "parameters": {
21971	//     "parent": {
21972	//       "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}`",
21973	//       "location": "path",
21974	//       "pattern": "^organizations/[^/]+/developers/[^/]+$",
21975	//       "required": true,
21976	//       "type": "string"
21977	//     }
21978	//   },
21979	//   "path": "v1/{+parent}/subscriptions",
21980	//   "request": {
21981	//     "$ref": "GoogleCloudApigeeV1DeveloperSubscription"
21982	//   },
21983	//   "response": {
21984	//     "$ref": "GoogleCloudApigeeV1DeveloperSubscription"
21985	//   },
21986	//   "scopes": [
21987	//     "https://www.googleapis.com/auth/cloud-platform"
21988	//   ]
21989	// }
21990
21991}
21992
21993// method id "apigee.organizations.developers.subscriptions.expire":
21994
21995type OrganizationsDevelopersSubscriptionsExpireCall struct {
21996	s                                                     *Service
21997	name                                                  string
21998	googlecloudapigeev1expiredevelopersubscriptionrequest *GoogleCloudApigeeV1ExpireDeveloperSubscriptionRequest
21999	urlParams_                                            gensupport.URLParams
22000	ctx_                                                  context.Context
22001	header_                                               http.Header
22002}
22003
22004// Expire: Expires an API product subscription immediately.
22005//
22006// - name: Name of the API product subscription. Use the following
22007//   structure in your request:
22008//   `organizations/{org}/developers/{developer_email}/subscriptions/{sub
22009//   scription}`.
22010func (r *OrganizationsDevelopersSubscriptionsService) Expire(name string, googlecloudapigeev1expiredevelopersubscriptionrequest *GoogleCloudApigeeV1ExpireDeveloperSubscriptionRequest) *OrganizationsDevelopersSubscriptionsExpireCall {
22011	c := &OrganizationsDevelopersSubscriptionsExpireCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22012	c.name = name
22013	c.googlecloudapigeev1expiredevelopersubscriptionrequest = googlecloudapigeev1expiredevelopersubscriptionrequest
22014	return c
22015}
22016
22017// Fields allows partial responses to be retrieved. See
22018// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
22019// for more information.
22020func (c *OrganizationsDevelopersSubscriptionsExpireCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersSubscriptionsExpireCall {
22021	c.urlParams_.Set("fields", googleapi.CombineFields(s))
22022	return c
22023}
22024
22025// Context sets the context to be used in this call's Do method. Any
22026// pending HTTP request will be aborted if the provided context is
22027// canceled.
22028func (c *OrganizationsDevelopersSubscriptionsExpireCall) Context(ctx context.Context) *OrganizationsDevelopersSubscriptionsExpireCall {
22029	c.ctx_ = ctx
22030	return c
22031}
22032
22033// Header returns an http.Header that can be modified by the caller to
22034// add HTTP headers to the request.
22035func (c *OrganizationsDevelopersSubscriptionsExpireCall) Header() http.Header {
22036	if c.header_ == nil {
22037		c.header_ = make(http.Header)
22038	}
22039	return c.header_
22040}
22041
22042func (c *OrganizationsDevelopersSubscriptionsExpireCall) doRequest(alt string) (*http.Response, error) {
22043	reqHeaders := make(http.Header)
22044	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
22045	for k, v := range c.header_ {
22046		reqHeaders[k] = v
22047	}
22048	reqHeaders.Set("User-Agent", c.s.userAgent())
22049	var body io.Reader = nil
22050	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1expiredevelopersubscriptionrequest)
22051	if err != nil {
22052		return nil, err
22053	}
22054	reqHeaders.Set("Content-Type", "application/json")
22055	c.urlParams_.Set("alt", alt)
22056	c.urlParams_.Set("prettyPrint", "false")
22057	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:expire")
22058	urls += "?" + c.urlParams_.Encode()
22059	req, err := http.NewRequest("POST", urls, body)
22060	if err != nil {
22061		return nil, err
22062	}
22063	req.Header = reqHeaders
22064	googleapi.Expand(req.URL, map[string]string{
22065		"name": c.name,
22066	})
22067	return gensupport.SendRequest(c.ctx_, c.s.client, req)
22068}
22069
22070// Do executes the "apigee.organizations.developers.subscriptions.expire" call.
22071// Exactly one of *GoogleCloudApigeeV1DeveloperSubscription or error
22072// will be non-nil. Any non-2xx status code is an error. Response
22073// headers are in either
22074// *GoogleCloudApigeeV1DeveloperSubscription.ServerResponse.Header or
22075// (if a response was returned at all) in
22076// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
22077// whether the returned error was because http.StatusNotModified was
22078// returned.
22079func (c *OrganizationsDevelopersSubscriptionsExpireCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperSubscription, error) {
22080	gensupport.SetOptions(c.urlParams_, opts...)
22081	res, err := c.doRequest("json")
22082	if res != nil && res.StatusCode == http.StatusNotModified {
22083		if res.Body != nil {
22084			res.Body.Close()
22085		}
22086		return nil, &googleapi.Error{
22087			Code:   res.StatusCode,
22088			Header: res.Header,
22089		}
22090	}
22091	if err != nil {
22092		return nil, err
22093	}
22094	defer googleapi.CloseBody(res)
22095	if err := googleapi.CheckResponse(res); err != nil {
22096		return nil, err
22097	}
22098	ret := &GoogleCloudApigeeV1DeveloperSubscription{
22099		ServerResponse: googleapi.ServerResponse{
22100			Header:         res.Header,
22101			HTTPStatusCode: res.StatusCode,
22102		},
22103	}
22104	target := &ret
22105	if err := gensupport.DecodeResponse(target, res); err != nil {
22106		return nil, err
22107	}
22108	return ret, nil
22109	// {
22110	//   "description": "Expires an API product subscription immediately.",
22111	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/subscriptions/{subscriptionsId}:expire",
22112	//   "httpMethod": "POST",
22113	//   "id": "apigee.organizations.developers.subscriptions.expire",
22114	//   "parameterOrder": [
22115	//     "name"
22116	//   ],
22117	//   "parameters": {
22118	//     "name": {
22119	//       "description": "Required. Name of the API product subscription. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/subscriptions/{subscription}`",
22120	//       "location": "path",
22121	//       "pattern": "^organizations/[^/]+/developers/[^/]+/subscriptions/[^/]+$",
22122	//       "required": true,
22123	//       "type": "string"
22124	//     }
22125	//   },
22126	//   "path": "v1/{+name}:expire",
22127	//   "request": {
22128	//     "$ref": "GoogleCloudApigeeV1ExpireDeveloperSubscriptionRequest"
22129	//   },
22130	//   "response": {
22131	//     "$ref": "GoogleCloudApigeeV1DeveloperSubscription"
22132	//   },
22133	//   "scopes": [
22134	//     "https://www.googleapis.com/auth/cloud-platform"
22135	//   ]
22136	// }
22137
22138}
22139
22140// method id "apigee.organizations.developers.subscriptions.get":
22141
22142type OrganizationsDevelopersSubscriptionsGetCall struct {
22143	s            *Service
22144	name         string
22145	urlParams_   gensupport.URLParams
22146	ifNoneMatch_ string
22147	ctx_         context.Context
22148	header_      http.Header
22149}
22150
22151// Get: Gets details for an API product subscription.
22152//
22153// - name: Name of the API product subscription. Use the following
22154//   structure in your request:
22155//   `organizations/{org}/developers/{developer_email}/subscriptions/{sub
22156//   scription}`.
22157func (r *OrganizationsDevelopersSubscriptionsService) Get(name string) *OrganizationsDevelopersSubscriptionsGetCall {
22158	c := &OrganizationsDevelopersSubscriptionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22159	c.name = name
22160	return c
22161}
22162
22163// Fields allows partial responses to be retrieved. See
22164// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
22165// for more information.
22166func (c *OrganizationsDevelopersSubscriptionsGetCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersSubscriptionsGetCall {
22167	c.urlParams_.Set("fields", googleapi.CombineFields(s))
22168	return c
22169}
22170
22171// IfNoneMatch sets the optional parameter which makes the operation
22172// fail if the object's ETag matches the given value. This is useful for
22173// getting updates only after the object has changed since the last
22174// request. Use googleapi.IsNotModified to check whether the response
22175// error from Do is the result of In-None-Match.
22176func (c *OrganizationsDevelopersSubscriptionsGetCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersSubscriptionsGetCall {
22177	c.ifNoneMatch_ = entityTag
22178	return c
22179}
22180
22181// Context sets the context to be used in this call's Do method. Any
22182// pending HTTP request will be aborted if the provided context is
22183// canceled.
22184func (c *OrganizationsDevelopersSubscriptionsGetCall) Context(ctx context.Context) *OrganizationsDevelopersSubscriptionsGetCall {
22185	c.ctx_ = ctx
22186	return c
22187}
22188
22189// Header returns an http.Header that can be modified by the caller to
22190// add HTTP headers to the request.
22191func (c *OrganizationsDevelopersSubscriptionsGetCall) Header() http.Header {
22192	if c.header_ == nil {
22193		c.header_ = make(http.Header)
22194	}
22195	return c.header_
22196}
22197
22198func (c *OrganizationsDevelopersSubscriptionsGetCall) doRequest(alt string) (*http.Response, error) {
22199	reqHeaders := make(http.Header)
22200	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
22201	for k, v := range c.header_ {
22202		reqHeaders[k] = v
22203	}
22204	reqHeaders.Set("User-Agent", c.s.userAgent())
22205	if c.ifNoneMatch_ != "" {
22206		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22207	}
22208	var body io.Reader = nil
22209	c.urlParams_.Set("alt", alt)
22210	c.urlParams_.Set("prettyPrint", "false")
22211	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
22212	urls += "?" + c.urlParams_.Encode()
22213	req, err := http.NewRequest("GET", urls, body)
22214	if err != nil {
22215		return nil, err
22216	}
22217	req.Header = reqHeaders
22218	googleapi.Expand(req.URL, map[string]string{
22219		"name": c.name,
22220	})
22221	return gensupport.SendRequest(c.ctx_, c.s.client, req)
22222}
22223
22224// Do executes the "apigee.organizations.developers.subscriptions.get" call.
22225// Exactly one of *GoogleCloudApigeeV1DeveloperSubscription or error
22226// will be non-nil. Any non-2xx status code is an error. Response
22227// headers are in either
22228// *GoogleCloudApigeeV1DeveloperSubscription.ServerResponse.Header or
22229// (if a response was returned at all) in
22230// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
22231// whether the returned error was because http.StatusNotModified was
22232// returned.
22233func (c *OrganizationsDevelopersSubscriptionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperSubscription, error) {
22234	gensupport.SetOptions(c.urlParams_, opts...)
22235	res, err := c.doRequest("json")
22236	if res != nil && res.StatusCode == http.StatusNotModified {
22237		if res.Body != nil {
22238			res.Body.Close()
22239		}
22240		return nil, &googleapi.Error{
22241			Code:   res.StatusCode,
22242			Header: res.Header,
22243		}
22244	}
22245	if err != nil {
22246		return nil, err
22247	}
22248	defer googleapi.CloseBody(res)
22249	if err := googleapi.CheckResponse(res); err != nil {
22250		return nil, err
22251	}
22252	ret := &GoogleCloudApigeeV1DeveloperSubscription{
22253		ServerResponse: googleapi.ServerResponse{
22254			Header:         res.Header,
22255			HTTPStatusCode: res.StatusCode,
22256		},
22257	}
22258	target := &ret
22259	if err := gensupport.DecodeResponse(target, res); err != nil {
22260		return nil, err
22261	}
22262	return ret, nil
22263	// {
22264	//   "description": "Gets details for an API product subscription.",
22265	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/subscriptions/{subscriptionsId}",
22266	//   "httpMethod": "GET",
22267	//   "id": "apigee.organizations.developers.subscriptions.get",
22268	//   "parameterOrder": [
22269	//     "name"
22270	//   ],
22271	//   "parameters": {
22272	//     "name": {
22273	//       "description": "Required. Name of the API product subscription. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/subscriptions/{subscription}`",
22274	//       "location": "path",
22275	//       "pattern": "^organizations/[^/]+/developers/[^/]+/subscriptions/[^/]+$",
22276	//       "required": true,
22277	//       "type": "string"
22278	//     }
22279	//   },
22280	//   "path": "v1/{+name}",
22281	//   "response": {
22282	//     "$ref": "GoogleCloudApigeeV1DeveloperSubscription"
22283	//   },
22284	//   "scopes": [
22285	//     "https://www.googleapis.com/auth/cloud-platform"
22286	//   ]
22287	// }
22288
22289}
22290
22291// method id "apigee.organizations.developers.subscriptions.list":
22292
22293type OrganizationsDevelopersSubscriptionsListCall struct {
22294	s            *Service
22295	parent       string
22296	urlParams_   gensupport.URLParams
22297	ifNoneMatch_ string
22298	ctx_         context.Context
22299	header_      http.Header
22300}
22301
22302// List: Lists all API product subscriptions for a developer.
22303//
22304// - parent: Email address of the developer. Use the following structure
22305//   in your request: `organizations/{org}/developers/{developer_email}`.
22306func (r *OrganizationsDevelopersSubscriptionsService) List(parent string) *OrganizationsDevelopersSubscriptionsListCall {
22307	c := &OrganizationsDevelopersSubscriptionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22308	c.parent = parent
22309	return c
22310}
22311
22312// Count sets the optional parameter "count": Number of API product
22313// subscriptions to return in the API call. Use with `startKey` to
22314// provide more targeted filtering. Defaults to 100. The maximum limit
22315// is 1000.
22316func (c *OrganizationsDevelopersSubscriptionsListCall) Count(count int64) *OrganizationsDevelopersSubscriptionsListCall {
22317	c.urlParams_.Set("count", fmt.Sprint(count))
22318	return c
22319}
22320
22321// StartKey sets the optional parameter "startKey": Name of the API
22322// product subscription from which to start displaying the list of
22323// subscriptions. If omitted, the list starts from the first item. For
22324// example, to view the API product subscriptions from 51-150, set the
22325// value of `startKey` to the name of the 51st subscription and set the
22326// value of `count` to 100.
22327func (c *OrganizationsDevelopersSubscriptionsListCall) StartKey(startKey string) *OrganizationsDevelopersSubscriptionsListCall {
22328	c.urlParams_.Set("startKey", startKey)
22329	return c
22330}
22331
22332// Fields allows partial responses to be retrieved. See
22333// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
22334// for more information.
22335func (c *OrganizationsDevelopersSubscriptionsListCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersSubscriptionsListCall {
22336	c.urlParams_.Set("fields", googleapi.CombineFields(s))
22337	return c
22338}
22339
22340// IfNoneMatch sets the optional parameter which makes the operation
22341// fail if the object's ETag matches the given value. This is useful for
22342// getting updates only after the object has changed since the last
22343// request. Use googleapi.IsNotModified to check whether the response
22344// error from Do is the result of In-None-Match.
22345func (c *OrganizationsDevelopersSubscriptionsListCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersSubscriptionsListCall {
22346	c.ifNoneMatch_ = entityTag
22347	return c
22348}
22349
22350// Context sets the context to be used in this call's Do method. Any
22351// pending HTTP request will be aborted if the provided context is
22352// canceled.
22353func (c *OrganizationsDevelopersSubscriptionsListCall) Context(ctx context.Context) *OrganizationsDevelopersSubscriptionsListCall {
22354	c.ctx_ = ctx
22355	return c
22356}
22357
22358// Header returns an http.Header that can be modified by the caller to
22359// add HTTP headers to the request.
22360func (c *OrganizationsDevelopersSubscriptionsListCall) Header() http.Header {
22361	if c.header_ == nil {
22362		c.header_ = make(http.Header)
22363	}
22364	return c.header_
22365}
22366
22367func (c *OrganizationsDevelopersSubscriptionsListCall) doRequest(alt string) (*http.Response, error) {
22368	reqHeaders := make(http.Header)
22369	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
22370	for k, v := range c.header_ {
22371		reqHeaders[k] = v
22372	}
22373	reqHeaders.Set("User-Agent", c.s.userAgent())
22374	if c.ifNoneMatch_ != "" {
22375		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22376	}
22377	var body io.Reader = nil
22378	c.urlParams_.Set("alt", alt)
22379	c.urlParams_.Set("prettyPrint", "false")
22380	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/subscriptions")
22381	urls += "?" + c.urlParams_.Encode()
22382	req, err := http.NewRequest("GET", urls, body)
22383	if err != nil {
22384		return nil, err
22385	}
22386	req.Header = reqHeaders
22387	googleapi.Expand(req.URL, map[string]string{
22388		"parent": c.parent,
22389	})
22390	return gensupport.SendRequest(c.ctx_, c.s.client, req)
22391}
22392
22393// Do executes the "apigee.organizations.developers.subscriptions.list" call.
22394// Exactly one of *GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse
22395// or error will be non-nil. Any non-2xx status code is an error.
22396// Response headers are in either
22397// *GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse.ServerResponse.
22398// Header or (if a response was returned at all) in
22399// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
22400// whether the returned error was because http.StatusNotModified was
22401// returned.
22402func (c *OrganizationsDevelopersSubscriptionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse, error) {
22403	gensupport.SetOptions(c.urlParams_, opts...)
22404	res, err := c.doRequest("json")
22405	if res != nil && res.StatusCode == http.StatusNotModified {
22406		if res.Body != nil {
22407			res.Body.Close()
22408		}
22409		return nil, &googleapi.Error{
22410			Code:   res.StatusCode,
22411			Header: res.Header,
22412		}
22413	}
22414	if err != nil {
22415		return nil, err
22416	}
22417	defer googleapi.CloseBody(res)
22418	if err := googleapi.CheckResponse(res); err != nil {
22419		return nil, err
22420	}
22421	ret := &GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse{
22422		ServerResponse: googleapi.ServerResponse{
22423			Header:         res.Header,
22424			HTTPStatusCode: res.StatusCode,
22425		},
22426	}
22427	target := &ret
22428	if err := gensupport.DecodeResponse(target, res); err != nil {
22429		return nil, err
22430	}
22431	return ret, nil
22432	// {
22433	//   "description": "Lists all API product subscriptions for a developer.",
22434	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/subscriptions",
22435	//   "httpMethod": "GET",
22436	//   "id": "apigee.organizations.developers.subscriptions.list",
22437	//   "parameterOrder": [
22438	//     "parent"
22439	//   ],
22440	//   "parameters": {
22441	//     "count": {
22442	//       "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.",
22443	//       "format": "int32",
22444	//       "location": "query",
22445	//       "type": "integer"
22446	//     },
22447	//     "parent": {
22448	//       "description": "Required. Email address of the developer. Use the following structure in your request: `organizations/{org}/developers/{developer_email}`",
22449	//       "location": "path",
22450	//       "pattern": "^organizations/[^/]+/developers/[^/]+$",
22451	//       "required": true,
22452	//       "type": "string"
22453	//     },
22454	//     "startKey": {
22455	//       "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.",
22456	//       "location": "query",
22457	//       "type": "string"
22458	//     }
22459	//   },
22460	//   "path": "v1/{+parent}/subscriptions",
22461	//   "response": {
22462	//     "$ref": "GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse"
22463	//   },
22464	//   "scopes": [
22465	//     "https://www.googleapis.com/auth/cloud-platform"
22466	//   ]
22467	// }
22468
22469}
22470
22471// method id "apigee.organizations.envgroups.create":
22472
22473type OrganizationsEnvgroupsCreateCall struct {
22474	s                                   *Service
22475	parent                              string
22476	googlecloudapigeev1environmentgroup *GoogleCloudApigeeV1EnvironmentGroup
22477	urlParams_                          gensupport.URLParams
22478	ctx_                                context.Context
22479	header_                             http.Header
22480}
22481
22482// Create: Creates a new environment group.
22483//
22484// - parent: Name of the organization in which to create the environment
22485//   group in the following format: `organizations/{org}`.
22486func (r *OrganizationsEnvgroupsService) Create(parent string, googlecloudapigeev1environmentgroup *GoogleCloudApigeeV1EnvironmentGroup) *OrganizationsEnvgroupsCreateCall {
22487	c := &OrganizationsEnvgroupsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22488	c.parent = parent
22489	c.googlecloudapigeev1environmentgroup = googlecloudapigeev1environmentgroup
22490	return c
22491}
22492
22493// Name sets the optional parameter "name": ID of the environment group.
22494// Overrides any ID in the environment_group resource.
22495func (c *OrganizationsEnvgroupsCreateCall) Name(name string) *OrganizationsEnvgroupsCreateCall {
22496	c.urlParams_.Set("name", name)
22497	return c
22498}
22499
22500// Fields allows partial responses to be retrieved. See
22501// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
22502// for more information.
22503func (c *OrganizationsEnvgroupsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsCreateCall {
22504	c.urlParams_.Set("fields", googleapi.CombineFields(s))
22505	return c
22506}
22507
22508// Context sets the context to be used in this call's Do method. Any
22509// pending HTTP request will be aborted if the provided context is
22510// canceled.
22511func (c *OrganizationsEnvgroupsCreateCall) Context(ctx context.Context) *OrganizationsEnvgroupsCreateCall {
22512	c.ctx_ = ctx
22513	return c
22514}
22515
22516// Header returns an http.Header that can be modified by the caller to
22517// add HTTP headers to the request.
22518func (c *OrganizationsEnvgroupsCreateCall) Header() http.Header {
22519	if c.header_ == nil {
22520		c.header_ = make(http.Header)
22521	}
22522	return c.header_
22523}
22524
22525func (c *OrganizationsEnvgroupsCreateCall) doRequest(alt string) (*http.Response, error) {
22526	reqHeaders := make(http.Header)
22527	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
22528	for k, v := range c.header_ {
22529		reqHeaders[k] = v
22530	}
22531	reqHeaders.Set("User-Agent", c.s.userAgent())
22532	var body io.Reader = nil
22533	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1environmentgroup)
22534	if err != nil {
22535		return nil, err
22536	}
22537	reqHeaders.Set("Content-Type", "application/json")
22538	c.urlParams_.Set("alt", alt)
22539	c.urlParams_.Set("prettyPrint", "false")
22540	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/envgroups")
22541	urls += "?" + c.urlParams_.Encode()
22542	req, err := http.NewRequest("POST", urls, body)
22543	if err != nil {
22544		return nil, err
22545	}
22546	req.Header = reqHeaders
22547	googleapi.Expand(req.URL, map[string]string{
22548		"parent": c.parent,
22549	})
22550	return gensupport.SendRequest(c.ctx_, c.s.client, req)
22551}
22552
22553// Do executes the "apigee.organizations.envgroups.create" call.
22554// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
22555// Any non-2xx status code is an error. Response headers are in either
22556// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
22557// was returned at all) in error.(*googleapi.Error).Header. Use
22558// googleapi.IsNotModified to check whether the returned error was
22559// because http.StatusNotModified was returned.
22560func (c *OrganizationsEnvgroupsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
22561	gensupport.SetOptions(c.urlParams_, opts...)
22562	res, err := c.doRequest("json")
22563	if res != nil && res.StatusCode == http.StatusNotModified {
22564		if res.Body != nil {
22565			res.Body.Close()
22566		}
22567		return nil, &googleapi.Error{
22568			Code:   res.StatusCode,
22569			Header: res.Header,
22570		}
22571	}
22572	if err != nil {
22573		return nil, err
22574	}
22575	defer googleapi.CloseBody(res)
22576	if err := googleapi.CheckResponse(res); err != nil {
22577		return nil, err
22578	}
22579	ret := &GoogleLongrunningOperation{
22580		ServerResponse: googleapi.ServerResponse{
22581			Header:         res.Header,
22582			HTTPStatusCode: res.StatusCode,
22583		},
22584	}
22585	target := &ret
22586	if err := gensupport.DecodeResponse(target, res); err != nil {
22587		return nil, err
22588	}
22589	return ret, nil
22590	// {
22591	//   "description": "Creates a new environment group.",
22592	//   "flatPath": "v1/organizations/{organizationsId}/envgroups",
22593	//   "httpMethod": "POST",
22594	//   "id": "apigee.organizations.envgroups.create",
22595	//   "parameterOrder": [
22596	//     "parent"
22597	//   ],
22598	//   "parameters": {
22599	//     "name": {
22600	//       "description": "ID of the environment group. Overrides any ID in the environment_group resource.",
22601	//       "location": "query",
22602	//       "type": "string"
22603	//     },
22604	//     "parent": {
22605	//       "description": "Required. Name of the organization in which to create the environment group in the following format: `organizations/{org}`.",
22606	//       "location": "path",
22607	//       "pattern": "^organizations/[^/]+$",
22608	//       "required": true,
22609	//       "type": "string"
22610	//     }
22611	//   },
22612	//   "path": "v1/{+parent}/envgroups",
22613	//   "request": {
22614	//     "$ref": "GoogleCloudApigeeV1EnvironmentGroup"
22615	//   },
22616	//   "response": {
22617	//     "$ref": "GoogleLongrunningOperation"
22618	//   },
22619	//   "scopes": [
22620	//     "https://www.googleapis.com/auth/cloud-platform"
22621	//   ]
22622	// }
22623
22624}
22625
22626// method id "apigee.organizations.envgroups.delete":
22627
22628type OrganizationsEnvgroupsDeleteCall struct {
22629	s          *Service
22630	name       string
22631	urlParams_ gensupport.URLParams
22632	ctx_       context.Context
22633	header_    http.Header
22634}
22635
22636// Delete: Deletes an environment group.
22637//
22638// - name: Name of the environment group in the following format:
22639//   `organizations/{org}/envgroups/{envgroup}`.
22640func (r *OrganizationsEnvgroupsService) Delete(name string) *OrganizationsEnvgroupsDeleteCall {
22641	c := &OrganizationsEnvgroupsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22642	c.name = name
22643	return c
22644}
22645
22646// Fields allows partial responses to be retrieved. See
22647// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
22648// for more information.
22649func (c *OrganizationsEnvgroupsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsDeleteCall {
22650	c.urlParams_.Set("fields", googleapi.CombineFields(s))
22651	return c
22652}
22653
22654// Context sets the context to be used in this call's Do method. Any
22655// pending HTTP request will be aborted if the provided context is
22656// canceled.
22657func (c *OrganizationsEnvgroupsDeleteCall) Context(ctx context.Context) *OrganizationsEnvgroupsDeleteCall {
22658	c.ctx_ = ctx
22659	return c
22660}
22661
22662// Header returns an http.Header that can be modified by the caller to
22663// add HTTP headers to the request.
22664func (c *OrganizationsEnvgroupsDeleteCall) Header() http.Header {
22665	if c.header_ == nil {
22666		c.header_ = make(http.Header)
22667	}
22668	return c.header_
22669}
22670
22671func (c *OrganizationsEnvgroupsDeleteCall) doRequest(alt string) (*http.Response, error) {
22672	reqHeaders := make(http.Header)
22673	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
22674	for k, v := range c.header_ {
22675		reqHeaders[k] = v
22676	}
22677	reqHeaders.Set("User-Agent", c.s.userAgent())
22678	var body io.Reader = nil
22679	c.urlParams_.Set("alt", alt)
22680	c.urlParams_.Set("prettyPrint", "false")
22681	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
22682	urls += "?" + c.urlParams_.Encode()
22683	req, err := http.NewRequest("DELETE", urls, body)
22684	if err != nil {
22685		return nil, err
22686	}
22687	req.Header = reqHeaders
22688	googleapi.Expand(req.URL, map[string]string{
22689		"name": c.name,
22690	})
22691	return gensupport.SendRequest(c.ctx_, c.s.client, req)
22692}
22693
22694// Do executes the "apigee.organizations.envgroups.delete" call.
22695// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
22696// Any non-2xx status code is an error. Response headers are in either
22697// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
22698// was returned at all) in error.(*googleapi.Error).Header. Use
22699// googleapi.IsNotModified to check whether the returned error was
22700// because http.StatusNotModified was returned.
22701func (c *OrganizationsEnvgroupsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
22702	gensupport.SetOptions(c.urlParams_, opts...)
22703	res, err := c.doRequest("json")
22704	if res != nil && res.StatusCode == http.StatusNotModified {
22705		if res.Body != nil {
22706			res.Body.Close()
22707		}
22708		return nil, &googleapi.Error{
22709			Code:   res.StatusCode,
22710			Header: res.Header,
22711		}
22712	}
22713	if err != nil {
22714		return nil, err
22715	}
22716	defer googleapi.CloseBody(res)
22717	if err := googleapi.CheckResponse(res); err != nil {
22718		return nil, err
22719	}
22720	ret := &GoogleLongrunningOperation{
22721		ServerResponse: googleapi.ServerResponse{
22722			Header:         res.Header,
22723			HTTPStatusCode: res.StatusCode,
22724		},
22725	}
22726	target := &ret
22727	if err := gensupport.DecodeResponse(target, res); err != nil {
22728		return nil, err
22729	}
22730	return ret, nil
22731	// {
22732	//   "description": "Deletes an environment group.",
22733	//   "flatPath": "v1/organizations/{organizationsId}/envgroups/{envgroupsId}",
22734	//   "httpMethod": "DELETE",
22735	//   "id": "apigee.organizations.envgroups.delete",
22736	//   "parameterOrder": [
22737	//     "name"
22738	//   ],
22739	//   "parameters": {
22740	//     "name": {
22741	//       "description": "Required. Name of the environment group in the following format: `organizations/{org}/envgroups/{envgroup}`.",
22742	//       "location": "path",
22743	//       "pattern": "^organizations/[^/]+/envgroups/[^/]+$",
22744	//       "required": true,
22745	//       "type": "string"
22746	//     }
22747	//   },
22748	//   "path": "v1/{+name}",
22749	//   "response": {
22750	//     "$ref": "GoogleLongrunningOperation"
22751	//   },
22752	//   "scopes": [
22753	//     "https://www.googleapis.com/auth/cloud-platform"
22754	//   ]
22755	// }
22756
22757}
22758
22759// method id "apigee.organizations.envgroups.get":
22760
22761type OrganizationsEnvgroupsGetCall struct {
22762	s            *Service
22763	name         string
22764	urlParams_   gensupport.URLParams
22765	ifNoneMatch_ string
22766	ctx_         context.Context
22767	header_      http.Header
22768}
22769
22770// Get: Gets an environment group.
22771//
22772// - name: Name of the environment group in the following format:
22773//   `organizations/{org}/envgroups/{envgroup}`.
22774func (r *OrganizationsEnvgroupsService) Get(name string) *OrganizationsEnvgroupsGetCall {
22775	c := &OrganizationsEnvgroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22776	c.name = name
22777	return c
22778}
22779
22780// Fields allows partial responses to be retrieved. See
22781// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
22782// for more information.
22783func (c *OrganizationsEnvgroupsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsGetCall {
22784	c.urlParams_.Set("fields", googleapi.CombineFields(s))
22785	return c
22786}
22787
22788// IfNoneMatch sets the optional parameter which makes the operation
22789// fail if the object's ETag matches the given value. This is useful for
22790// getting updates only after the object has changed since the last
22791// request. Use googleapi.IsNotModified to check whether the response
22792// error from Do is the result of In-None-Match.
22793func (c *OrganizationsEnvgroupsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvgroupsGetCall {
22794	c.ifNoneMatch_ = entityTag
22795	return c
22796}
22797
22798// Context sets the context to be used in this call's Do method. Any
22799// pending HTTP request will be aborted if the provided context is
22800// canceled.
22801func (c *OrganizationsEnvgroupsGetCall) Context(ctx context.Context) *OrganizationsEnvgroupsGetCall {
22802	c.ctx_ = ctx
22803	return c
22804}
22805
22806// Header returns an http.Header that can be modified by the caller to
22807// add HTTP headers to the request.
22808func (c *OrganizationsEnvgroupsGetCall) Header() http.Header {
22809	if c.header_ == nil {
22810		c.header_ = make(http.Header)
22811	}
22812	return c.header_
22813}
22814
22815func (c *OrganizationsEnvgroupsGetCall) doRequest(alt string) (*http.Response, error) {
22816	reqHeaders := make(http.Header)
22817	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
22818	for k, v := range c.header_ {
22819		reqHeaders[k] = v
22820	}
22821	reqHeaders.Set("User-Agent", c.s.userAgent())
22822	if c.ifNoneMatch_ != "" {
22823		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22824	}
22825	var body io.Reader = nil
22826	c.urlParams_.Set("alt", alt)
22827	c.urlParams_.Set("prettyPrint", "false")
22828	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
22829	urls += "?" + c.urlParams_.Encode()
22830	req, err := http.NewRequest("GET", urls, body)
22831	if err != nil {
22832		return nil, err
22833	}
22834	req.Header = reqHeaders
22835	googleapi.Expand(req.URL, map[string]string{
22836		"name": c.name,
22837	})
22838	return gensupport.SendRequest(c.ctx_, c.s.client, req)
22839}
22840
22841// Do executes the "apigee.organizations.envgroups.get" call.
22842// Exactly one of *GoogleCloudApigeeV1EnvironmentGroup or error will be
22843// non-nil. Any non-2xx status code is an error. Response headers are in
22844// either *GoogleCloudApigeeV1EnvironmentGroup.ServerResponse.Header or
22845// (if a response was returned at all) in
22846// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
22847// whether the returned error was because http.StatusNotModified was
22848// returned.
22849func (c *OrganizationsEnvgroupsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1EnvironmentGroup, error) {
22850	gensupport.SetOptions(c.urlParams_, opts...)
22851	res, err := c.doRequest("json")
22852	if res != nil && res.StatusCode == http.StatusNotModified {
22853		if res.Body != nil {
22854			res.Body.Close()
22855		}
22856		return nil, &googleapi.Error{
22857			Code:   res.StatusCode,
22858			Header: res.Header,
22859		}
22860	}
22861	if err != nil {
22862		return nil, err
22863	}
22864	defer googleapi.CloseBody(res)
22865	if err := googleapi.CheckResponse(res); err != nil {
22866		return nil, err
22867	}
22868	ret := &GoogleCloudApigeeV1EnvironmentGroup{
22869		ServerResponse: googleapi.ServerResponse{
22870			Header:         res.Header,
22871			HTTPStatusCode: res.StatusCode,
22872		},
22873	}
22874	target := &ret
22875	if err := gensupport.DecodeResponse(target, res); err != nil {
22876		return nil, err
22877	}
22878	return ret, nil
22879	// {
22880	//   "description": "Gets an environment group.",
22881	//   "flatPath": "v1/organizations/{organizationsId}/envgroups/{envgroupsId}",
22882	//   "httpMethod": "GET",
22883	//   "id": "apigee.organizations.envgroups.get",
22884	//   "parameterOrder": [
22885	//     "name"
22886	//   ],
22887	//   "parameters": {
22888	//     "name": {
22889	//       "description": "Required. Name of the environment group in the following format: `organizations/{org}/envgroups/{envgroup}`.",
22890	//       "location": "path",
22891	//       "pattern": "^organizations/[^/]+/envgroups/[^/]+$",
22892	//       "required": true,
22893	//       "type": "string"
22894	//     }
22895	//   },
22896	//   "path": "v1/{+name}",
22897	//   "response": {
22898	//     "$ref": "GoogleCloudApigeeV1EnvironmentGroup"
22899	//   },
22900	//   "scopes": [
22901	//     "https://www.googleapis.com/auth/cloud-platform"
22902	//   ]
22903	// }
22904
22905}
22906
22907// method id "apigee.organizations.envgroups.list":
22908
22909type OrganizationsEnvgroupsListCall struct {
22910	s            *Service
22911	parent       string
22912	urlParams_   gensupport.URLParams
22913	ifNoneMatch_ string
22914	ctx_         context.Context
22915	header_      http.Header
22916}
22917
22918// List: Lists all environment groups.
22919//
22920// - parent: Name of the organization for which to list environment
22921//   groups in the following format: `organizations/{org}`.
22922func (r *OrganizationsEnvgroupsService) List(parent string) *OrganizationsEnvgroupsListCall {
22923	c := &OrganizationsEnvgroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22924	c.parent = parent
22925	return c
22926}
22927
22928// PageSize sets the optional parameter "pageSize": Maximum number of
22929// environment groups to return. The page size defaults to 25.
22930func (c *OrganizationsEnvgroupsListCall) PageSize(pageSize int64) *OrganizationsEnvgroupsListCall {
22931	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
22932	return c
22933}
22934
22935// PageToken sets the optional parameter "pageToken": Page token,
22936// returned from a previous ListEnvironmentGroups call, that you can use
22937// to retrieve the next page.
22938func (c *OrganizationsEnvgroupsListCall) PageToken(pageToken string) *OrganizationsEnvgroupsListCall {
22939	c.urlParams_.Set("pageToken", pageToken)
22940	return c
22941}
22942
22943// Fields allows partial responses to be retrieved. See
22944// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
22945// for more information.
22946func (c *OrganizationsEnvgroupsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsListCall {
22947	c.urlParams_.Set("fields", googleapi.CombineFields(s))
22948	return c
22949}
22950
22951// IfNoneMatch sets the optional parameter which makes the operation
22952// fail if the object's ETag matches the given value. This is useful for
22953// getting updates only after the object has changed since the last
22954// request. Use googleapi.IsNotModified to check whether the response
22955// error from Do is the result of In-None-Match.
22956func (c *OrganizationsEnvgroupsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvgroupsListCall {
22957	c.ifNoneMatch_ = entityTag
22958	return c
22959}
22960
22961// Context sets the context to be used in this call's Do method. Any
22962// pending HTTP request will be aborted if the provided context is
22963// canceled.
22964func (c *OrganizationsEnvgroupsListCall) Context(ctx context.Context) *OrganizationsEnvgroupsListCall {
22965	c.ctx_ = ctx
22966	return c
22967}
22968
22969// Header returns an http.Header that can be modified by the caller to
22970// add HTTP headers to the request.
22971func (c *OrganizationsEnvgroupsListCall) Header() http.Header {
22972	if c.header_ == nil {
22973		c.header_ = make(http.Header)
22974	}
22975	return c.header_
22976}
22977
22978func (c *OrganizationsEnvgroupsListCall) doRequest(alt string) (*http.Response, error) {
22979	reqHeaders := make(http.Header)
22980	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
22981	for k, v := range c.header_ {
22982		reqHeaders[k] = v
22983	}
22984	reqHeaders.Set("User-Agent", c.s.userAgent())
22985	if c.ifNoneMatch_ != "" {
22986		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22987	}
22988	var body io.Reader = nil
22989	c.urlParams_.Set("alt", alt)
22990	c.urlParams_.Set("prettyPrint", "false")
22991	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/envgroups")
22992	urls += "?" + c.urlParams_.Encode()
22993	req, err := http.NewRequest("GET", urls, body)
22994	if err != nil {
22995		return nil, err
22996	}
22997	req.Header = reqHeaders
22998	googleapi.Expand(req.URL, map[string]string{
22999		"parent": c.parent,
23000	})
23001	return gensupport.SendRequest(c.ctx_, c.s.client, req)
23002}
23003
23004// Do executes the "apigee.organizations.envgroups.list" call.
23005// Exactly one of *GoogleCloudApigeeV1ListEnvironmentGroupsResponse or
23006// error will be non-nil. Any non-2xx status code is an error. Response
23007// headers are in either
23008// *GoogleCloudApigeeV1ListEnvironmentGroupsResponse.ServerResponse.Heade
23009// r or (if a response was returned at all) in
23010// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
23011// whether the returned error was because http.StatusNotModified was
23012// returned.
23013func (c *OrganizationsEnvgroupsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListEnvironmentGroupsResponse, error) {
23014	gensupport.SetOptions(c.urlParams_, opts...)
23015	res, err := c.doRequest("json")
23016	if res != nil && res.StatusCode == http.StatusNotModified {
23017		if res.Body != nil {
23018			res.Body.Close()
23019		}
23020		return nil, &googleapi.Error{
23021			Code:   res.StatusCode,
23022			Header: res.Header,
23023		}
23024	}
23025	if err != nil {
23026		return nil, err
23027	}
23028	defer googleapi.CloseBody(res)
23029	if err := googleapi.CheckResponse(res); err != nil {
23030		return nil, err
23031	}
23032	ret := &GoogleCloudApigeeV1ListEnvironmentGroupsResponse{
23033		ServerResponse: googleapi.ServerResponse{
23034			Header:         res.Header,
23035			HTTPStatusCode: res.StatusCode,
23036		},
23037	}
23038	target := &ret
23039	if err := gensupport.DecodeResponse(target, res); err != nil {
23040		return nil, err
23041	}
23042	return ret, nil
23043	// {
23044	//   "description": "Lists all environment groups.",
23045	//   "flatPath": "v1/organizations/{organizationsId}/envgroups",
23046	//   "httpMethod": "GET",
23047	//   "id": "apigee.organizations.envgroups.list",
23048	//   "parameterOrder": [
23049	//     "parent"
23050	//   ],
23051	//   "parameters": {
23052	//     "pageSize": {
23053	//       "description": "Maximum number of environment groups to return. The page size defaults to 25.",
23054	//       "format": "int32",
23055	//       "location": "query",
23056	//       "type": "integer"
23057	//     },
23058	//     "pageToken": {
23059	//       "description": "Page token, returned from a previous ListEnvironmentGroups call, that you can use to retrieve the next page.",
23060	//       "location": "query",
23061	//       "type": "string"
23062	//     },
23063	//     "parent": {
23064	//       "description": "Required. Name of the organization for which to list environment groups in the following format: `organizations/{org}`.",
23065	//       "location": "path",
23066	//       "pattern": "^organizations/[^/]+$",
23067	//       "required": true,
23068	//       "type": "string"
23069	//     }
23070	//   },
23071	//   "path": "v1/{+parent}/envgroups",
23072	//   "response": {
23073	//     "$ref": "GoogleCloudApigeeV1ListEnvironmentGroupsResponse"
23074	//   },
23075	//   "scopes": [
23076	//     "https://www.googleapis.com/auth/cloud-platform"
23077	//   ]
23078	// }
23079
23080}
23081
23082// Pages invokes f for each page of results.
23083// A non-nil error returned from f will halt the iteration.
23084// The provided context supersedes any context provided to the Context method.
23085func (c *OrganizationsEnvgroupsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListEnvironmentGroupsResponse) error) error {
23086	c.ctx_ = ctx
23087	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
23088	for {
23089		x, err := c.Do()
23090		if err != nil {
23091			return err
23092		}
23093		if err := f(x); err != nil {
23094			return err
23095		}
23096		if x.NextPageToken == "" {
23097			return nil
23098		}
23099		c.PageToken(x.NextPageToken)
23100	}
23101}
23102
23103// method id "apigee.organizations.envgroups.patch":
23104
23105type OrganizationsEnvgroupsPatchCall struct {
23106	s                                   *Service
23107	name                                string
23108	googlecloudapigeev1environmentgroup *GoogleCloudApigeeV1EnvironmentGroup
23109	urlParams_                          gensupport.URLParams
23110	ctx_                                context.Context
23111	header_                             http.Header
23112}
23113
23114// Patch: Updates an environment group.
23115//
23116// - name: Name of the environment group to update in the format:
23117//   `organizations/{org}/envgroups/{envgroup}.
23118func (r *OrganizationsEnvgroupsService) Patch(name string, googlecloudapigeev1environmentgroup *GoogleCloudApigeeV1EnvironmentGroup) *OrganizationsEnvgroupsPatchCall {
23119	c := &OrganizationsEnvgroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23120	c.name = name
23121	c.googlecloudapigeev1environmentgroup = googlecloudapigeev1environmentgroup
23122	return c
23123}
23124
23125// UpdateMask sets the optional parameter "updateMask": List of fields
23126// to be updated.
23127func (c *OrganizationsEnvgroupsPatchCall) UpdateMask(updateMask string) *OrganizationsEnvgroupsPatchCall {
23128	c.urlParams_.Set("updateMask", updateMask)
23129	return c
23130}
23131
23132// Fields allows partial responses to be retrieved. See
23133// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
23134// for more information.
23135func (c *OrganizationsEnvgroupsPatchCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsPatchCall {
23136	c.urlParams_.Set("fields", googleapi.CombineFields(s))
23137	return c
23138}
23139
23140// Context sets the context to be used in this call's Do method. Any
23141// pending HTTP request will be aborted if the provided context is
23142// canceled.
23143func (c *OrganizationsEnvgroupsPatchCall) Context(ctx context.Context) *OrganizationsEnvgroupsPatchCall {
23144	c.ctx_ = ctx
23145	return c
23146}
23147
23148// Header returns an http.Header that can be modified by the caller to
23149// add HTTP headers to the request.
23150func (c *OrganizationsEnvgroupsPatchCall) Header() http.Header {
23151	if c.header_ == nil {
23152		c.header_ = make(http.Header)
23153	}
23154	return c.header_
23155}
23156
23157func (c *OrganizationsEnvgroupsPatchCall) doRequest(alt string) (*http.Response, error) {
23158	reqHeaders := make(http.Header)
23159	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
23160	for k, v := range c.header_ {
23161		reqHeaders[k] = v
23162	}
23163	reqHeaders.Set("User-Agent", c.s.userAgent())
23164	var body io.Reader = nil
23165	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1environmentgroup)
23166	if err != nil {
23167		return nil, err
23168	}
23169	reqHeaders.Set("Content-Type", "application/json")
23170	c.urlParams_.Set("alt", alt)
23171	c.urlParams_.Set("prettyPrint", "false")
23172	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
23173	urls += "?" + c.urlParams_.Encode()
23174	req, err := http.NewRequest("PATCH", urls, body)
23175	if err != nil {
23176		return nil, err
23177	}
23178	req.Header = reqHeaders
23179	googleapi.Expand(req.URL, map[string]string{
23180		"name": c.name,
23181	})
23182	return gensupport.SendRequest(c.ctx_, c.s.client, req)
23183}
23184
23185// Do executes the "apigee.organizations.envgroups.patch" call.
23186// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
23187// Any non-2xx status code is an error. Response headers are in either
23188// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
23189// was returned at all) in error.(*googleapi.Error).Header. Use
23190// googleapi.IsNotModified to check whether the returned error was
23191// because http.StatusNotModified was returned.
23192func (c *OrganizationsEnvgroupsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
23193	gensupport.SetOptions(c.urlParams_, opts...)
23194	res, err := c.doRequest("json")
23195	if res != nil && res.StatusCode == http.StatusNotModified {
23196		if res.Body != nil {
23197			res.Body.Close()
23198		}
23199		return nil, &googleapi.Error{
23200			Code:   res.StatusCode,
23201			Header: res.Header,
23202		}
23203	}
23204	if err != nil {
23205		return nil, err
23206	}
23207	defer googleapi.CloseBody(res)
23208	if err := googleapi.CheckResponse(res); err != nil {
23209		return nil, err
23210	}
23211	ret := &GoogleLongrunningOperation{
23212		ServerResponse: googleapi.ServerResponse{
23213			Header:         res.Header,
23214			HTTPStatusCode: res.StatusCode,
23215		},
23216	}
23217	target := &ret
23218	if err := gensupport.DecodeResponse(target, res); err != nil {
23219		return nil, err
23220	}
23221	return ret, nil
23222	// {
23223	//   "description": "Updates an environment group.",
23224	//   "flatPath": "v1/organizations/{organizationsId}/envgroups/{envgroupsId}",
23225	//   "httpMethod": "PATCH",
23226	//   "id": "apigee.organizations.envgroups.patch",
23227	//   "parameterOrder": [
23228	//     "name"
23229	//   ],
23230	//   "parameters": {
23231	//     "name": {
23232	//       "description": "Required. Name of the environment group to update in the format: `organizations/{org}/envgroups/{envgroup}.",
23233	//       "location": "path",
23234	//       "pattern": "^organizations/[^/]+/envgroups/[^/]+$",
23235	//       "required": true,
23236	//       "type": "string"
23237	//     },
23238	//     "updateMask": {
23239	//       "description": "List of fields to be updated.",
23240	//       "format": "google-fieldmask",
23241	//       "location": "query",
23242	//       "type": "string"
23243	//     }
23244	//   },
23245	//   "path": "v1/{+name}",
23246	//   "request": {
23247	//     "$ref": "GoogleCloudApigeeV1EnvironmentGroup"
23248	//   },
23249	//   "response": {
23250	//     "$ref": "GoogleLongrunningOperation"
23251	//   },
23252	//   "scopes": [
23253	//     "https://www.googleapis.com/auth/cloud-platform"
23254	//   ]
23255	// }
23256
23257}
23258
23259// method id "apigee.organizations.envgroups.attachments.create":
23260
23261type OrganizationsEnvgroupsAttachmentsCreateCall struct {
23262	s                                             *Service
23263	parent                                        string
23264	googlecloudapigeev1environmentgroupattachment *GoogleCloudApigeeV1EnvironmentGroupAttachment
23265	urlParams_                                    gensupport.URLParams
23266	ctx_                                          context.Context
23267	header_                                       http.Header
23268}
23269
23270// Create: Creates a new attachment of an environment to an environment
23271// group.
23272//
23273// - parent: EnvironmentGroup under which to create the attachment in
23274//   the following format: `organizations/{org}/envgroups/{envgroup}`.
23275func (r *OrganizationsEnvgroupsAttachmentsService) Create(parent string, googlecloudapigeev1environmentgroupattachment *GoogleCloudApigeeV1EnvironmentGroupAttachment) *OrganizationsEnvgroupsAttachmentsCreateCall {
23276	c := &OrganizationsEnvgroupsAttachmentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23277	c.parent = parent
23278	c.googlecloudapigeev1environmentgroupattachment = googlecloudapigeev1environmentgroupattachment
23279	return c
23280}
23281
23282// Fields allows partial responses to be retrieved. See
23283// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
23284// for more information.
23285func (c *OrganizationsEnvgroupsAttachmentsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsAttachmentsCreateCall {
23286	c.urlParams_.Set("fields", googleapi.CombineFields(s))
23287	return c
23288}
23289
23290// Context sets the context to be used in this call's Do method. Any
23291// pending HTTP request will be aborted if the provided context is
23292// canceled.
23293func (c *OrganizationsEnvgroupsAttachmentsCreateCall) Context(ctx context.Context) *OrganizationsEnvgroupsAttachmentsCreateCall {
23294	c.ctx_ = ctx
23295	return c
23296}
23297
23298// Header returns an http.Header that can be modified by the caller to
23299// add HTTP headers to the request.
23300func (c *OrganizationsEnvgroupsAttachmentsCreateCall) Header() http.Header {
23301	if c.header_ == nil {
23302		c.header_ = make(http.Header)
23303	}
23304	return c.header_
23305}
23306
23307func (c *OrganizationsEnvgroupsAttachmentsCreateCall) doRequest(alt string) (*http.Response, error) {
23308	reqHeaders := make(http.Header)
23309	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
23310	for k, v := range c.header_ {
23311		reqHeaders[k] = v
23312	}
23313	reqHeaders.Set("User-Agent", c.s.userAgent())
23314	var body io.Reader = nil
23315	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1environmentgroupattachment)
23316	if err != nil {
23317		return nil, err
23318	}
23319	reqHeaders.Set("Content-Type", "application/json")
23320	c.urlParams_.Set("alt", alt)
23321	c.urlParams_.Set("prettyPrint", "false")
23322	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attachments")
23323	urls += "?" + c.urlParams_.Encode()
23324	req, err := http.NewRequest("POST", urls, body)
23325	if err != nil {
23326		return nil, err
23327	}
23328	req.Header = reqHeaders
23329	googleapi.Expand(req.URL, map[string]string{
23330		"parent": c.parent,
23331	})
23332	return gensupport.SendRequest(c.ctx_, c.s.client, req)
23333}
23334
23335// Do executes the "apigee.organizations.envgroups.attachments.create" call.
23336// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
23337// Any non-2xx status code is an error. Response headers are in either
23338// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
23339// was returned at all) in error.(*googleapi.Error).Header. Use
23340// googleapi.IsNotModified to check whether the returned error was
23341// because http.StatusNotModified was returned.
23342func (c *OrganizationsEnvgroupsAttachmentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
23343	gensupport.SetOptions(c.urlParams_, opts...)
23344	res, err := c.doRequest("json")
23345	if res != nil && res.StatusCode == http.StatusNotModified {
23346		if res.Body != nil {
23347			res.Body.Close()
23348		}
23349		return nil, &googleapi.Error{
23350			Code:   res.StatusCode,
23351			Header: res.Header,
23352		}
23353	}
23354	if err != nil {
23355		return nil, err
23356	}
23357	defer googleapi.CloseBody(res)
23358	if err := googleapi.CheckResponse(res); err != nil {
23359		return nil, err
23360	}
23361	ret := &GoogleLongrunningOperation{
23362		ServerResponse: googleapi.ServerResponse{
23363			Header:         res.Header,
23364			HTTPStatusCode: res.StatusCode,
23365		},
23366	}
23367	target := &ret
23368	if err := gensupport.DecodeResponse(target, res); err != nil {
23369		return nil, err
23370	}
23371	return ret, nil
23372	// {
23373	//   "description": "Creates a new attachment of an environment to an environment group.",
23374	//   "flatPath": "v1/organizations/{organizationsId}/envgroups/{envgroupsId}/attachments",
23375	//   "httpMethod": "POST",
23376	//   "id": "apigee.organizations.envgroups.attachments.create",
23377	//   "parameterOrder": [
23378	//     "parent"
23379	//   ],
23380	//   "parameters": {
23381	//     "parent": {
23382	//       "description": "Required. EnvironmentGroup under which to create the attachment in the following format: `organizations/{org}/envgroups/{envgroup}`.",
23383	//       "location": "path",
23384	//       "pattern": "^organizations/[^/]+/envgroups/[^/]+$",
23385	//       "required": true,
23386	//       "type": "string"
23387	//     }
23388	//   },
23389	//   "path": "v1/{+parent}/attachments",
23390	//   "request": {
23391	//     "$ref": "GoogleCloudApigeeV1EnvironmentGroupAttachment"
23392	//   },
23393	//   "response": {
23394	//     "$ref": "GoogleLongrunningOperation"
23395	//   },
23396	//   "scopes": [
23397	//     "https://www.googleapis.com/auth/cloud-platform"
23398	//   ]
23399	// }
23400
23401}
23402
23403// method id "apigee.organizations.envgroups.attachments.delete":
23404
23405type OrganizationsEnvgroupsAttachmentsDeleteCall struct {
23406	s          *Service
23407	name       string
23408	urlParams_ gensupport.URLParams
23409	ctx_       context.Context
23410	header_    http.Header
23411}
23412
23413// Delete: Deletes an environment group attachment.
23414//
23415// - name: Name of the environment group attachment to delete in the
23416//   following format:
23417//   `organizations/{org}/envgroups/{envgroup}/attachments/{attachment}`.
23418func (r *OrganizationsEnvgroupsAttachmentsService) Delete(name string) *OrganizationsEnvgroupsAttachmentsDeleteCall {
23419	c := &OrganizationsEnvgroupsAttachmentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23420	c.name = name
23421	return c
23422}
23423
23424// Fields allows partial responses to be retrieved. See
23425// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
23426// for more information.
23427func (c *OrganizationsEnvgroupsAttachmentsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsAttachmentsDeleteCall {
23428	c.urlParams_.Set("fields", googleapi.CombineFields(s))
23429	return c
23430}
23431
23432// Context sets the context to be used in this call's Do method. Any
23433// pending HTTP request will be aborted if the provided context is
23434// canceled.
23435func (c *OrganizationsEnvgroupsAttachmentsDeleteCall) Context(ctx context.Context) *OrganizationsEnvgroupsAttachmentsDeleteCall {
23436	c.ctx_ = ctx
23437	return c
23438}
23439
23440// Header returns an http.Header that can be modified by the caller to
23441// add HTTP headers to the request.
23442func (c *OrganizationsEnvgroupsAttachmentsDeleteCall) Header() http.Header {
23443	if c.header_ == nil {
23444		c.header_ = make(http.Header)
23445	}
23446	return c.header_
23447}
23448
23449func (c *OrganizationsEnvgroupsAttachmentsDeleteCall) doRequest(alt string) (*http.Response, error) {
23450	reqHeaders := make(http.Header)
23451	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
23452	for k, v := range c.header_ {
23453		reqHeaders[k] = v
23454	}
23455	reqHeaders.Set("User-Agent", c.s.userAgent())
23456	var body io.Reader = nil
23457	c.urlParams_.Set("alt", alt)
23458	c.urlParams_.Set("prettyPrint", "false")
23459	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
23460	urls += "?" + c.urlParams_.Encode()
23461	req, err := http.NewRequest("DELETE", urls, body)
23462	if err != nil {
23463		return nil, err
23464	}
23465	req.Header = reqHeaders
23466	googleapi.Expand(req.URL, map[string]string{
23467		"name": c.name,
23468	})
23469	return gensupport.SendRequest(c.ctx_, c.s.client, req)
23470}
23471
23472// Do executes the "apigee.organizations.envgroups.attachments.delete" call.
23473// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
23474// Any non-2xx status code is an error. Response headers are in either
23475// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
23476// was returned at all) in error.(*googleapi.Error).Header. Use
23477// googleapi.IsNotModified to check whether the returned error was
23478// because http.StatusNotModified was returned.
23479func (c *OrganizationsEnvgroupsAttachmentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
23480	gensupport.SetOptions(c.urlParams_, opts...)
23481	res, err := c.doRequest("json")
23482	if res != nil && res.StatusCode == http.StatusNotModified {
23483		if res.Body != nil {
23484			res.Body.Close()
23485		}
23486		return nil, &googleapi.Error{
23487			Code:   res.StatusCode,
23488			Header: res.Header,
23489		}
23490	}
23491	if err != nil {
23492		return nil, err
23493	}
23494	defer googleapi.CloseBody(res)
23495	if err := googleapi.CheckResponse(res); err != nil {
23496		return nil, err
23497	}
23498	ret := &GoogleLongrunningOperation{
23499		ServerResponse: googleapi.ServerResponse{
23500			Header:         res.Header,
23501			HTTPStatusCode: res.StatusCode,
23502		},
23503	}
23504	target := &ret
23505	if err := gensupport.DecodeResponse(target, res); err != nil {
23506		return nil, err
23507	}
23508	return ret, nil
23509	// {
23510	//   "description": "Deletes an environment group attachment.",
23511	//   "flatPath": "v1/organizations/{organizationsId}/envgroups/{envgroupsId}/attachments/{attachmentsId}",
23512	//   "httpMethod": "DELETE",
23513	//   "id": "apigee.organizations.envgroups.attachments.delete",
23514	//   "parameterOrder": [
23515	//     "name"
23516	//   ],
23517	//   "parameters": {
23518	//     "name": {
23519	//       "description": "Required. Name of the environment group attachment to delete in the following format: `organizations/{org}/envgroups/{envgroup}/attachments/{attachment}`.",
23520	//       "location": "path",
23521	//       "pattern": "^organizations/[^/]+/envgroups/[^/]+/attachments/[^/]+$",
23522	//       "required": true,
23523	//       "type": "string"
23524	//     }
23525	//   },
23526	//   "path": "v1/{+name}",
23527	//   "response": {
23528	//     "$ref": "GoogleLongrunningOperation"
23529	//   },
23530	//   "scopes": [
23531	//     "https://www.googleapis.com/auth/cloud-platform"
23532	//   ]
23533	// }
23534
23535}
23536
23537// method id "apigee.organizations.envgroups.attachments.get":
23538
23539type OrganizationsEnvgroupsAttachmentsGetCall struct {
23540	s            *Service
23541	name         string
23542	urlParams_   gensupport.URLParams
23543	ifNoneMatch_ string
23544	ctx_         context.Context
23545	header_      http.Header
23546}
23547
23548// Get: Gets an environment group attachment.
23549//
23550// - name: Name of the environment group attachment in the following
23551//   format:
23552//   `organizations/{org}/envgroups/{envgroup}/attachments/{attachment}`.
23553func (r *OrganizationsEnvgroupsAttachmentsService) Get(name string) *OrganizationsEnvgroupsAttachmentsGetCall {
23554	c := &OrganizationsEnvgroupsAttachmentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23555	c.name = name
23556	return c
23557}
23558
23559// Fields allows partial responses to be retrieved. See
23560// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
23561// for more information.
23562func (c *OrganizationsEnvgroupsAttachmentsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsAttachmentsGetCall {
23563	c.urlParams_.Set("fields", googleapi.CombineFields(s))
23564	return c
23565}
23566
23567// IfNoneMatch sets the optional parameter which makes the operation
23568// fail if the object's ETag matches the given value. This is useful for
23569// getting updates only after the object has changed since the last
23570// request. Use googleapi.IsNotModified to check whether the response
23571// error from Do is the result of In-None-Match.
23572func (c *OrganizationsEnvgroupsAttachmentsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvgroupsAttachmentsGetCall {
23573	c.ifNoneMatch_ = entityTag
23574	return c
23575}
23576
23577// Context sets the context to be used in this call's Do method. Any
23578// pending HTTP request will be aborted if the provided context is
23579// canceled.
23580func (c *OrganizationsEnvgroupsAttachmentsGetCall) Context(ctx context.Context) *OrganizationsEnvgroupsAttachmentsGetCall {
23581	c.ctx_ = ctx
23582	return c
23583}
23584
23585// Header returns an http.Header that can be modified by the caller to
23586// add HTTP headers to the request.
23587func (c *OrganizationsEnvgroupsAttachmentsGetCall) Header() http.Header {
23588	if c.header_ == nil {
23589		c.header_ = make(http.Header)
23590	}
23591	return c.header_
23592}
23593
23594func (c *OrganizationsEnvgroupsAttachmentsGetCall) doRequest(alt string) (*http.Response, error) {
23595	reqHeaders := make(http.Header)
23596	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
23597	for k, v := range c.header_ {
23598		reqHeaders[k] = v
23599	}
23600	reqHeaders.Set("User-Agent", c.s.userAgent())
23601	if c.ifNoneMatch_ != "" {
23602		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23603	}
23604	var body io.Reader = nil
23605	c.urlParams_.Set("alt", alt)
23606	c.urlParams_.Set("prettyPrint", "false")
23607	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
23608	urls += "?" + c.urlParams_.Encode()
23609	req, err := http.NewRequest("GET", urls, body)
23610	if err != nil {
23611		return nil, err
23612	}
23613	req.Header = reqHeaders
23614	googleapi.Expand(req.URL, map[string]string{
23615		"name": c.name,
23616	})
23617	return gensupport.SendRequest(c.ctx_, c.s.client, req)
23618}
23619
23620// Do executes the "apigee.organizations.envgroups.attachments.get" call.
23621// Exactly one of *GoogleCloudApigeeV1EnvironmentGroupAttachment or
23622// error will be non-nil. Any non-2xx status code is an error. Response
23623// headers are in either
23624// *GoogleCloudApigeeV1EnvironmentGroupAttachment.ServerResponse.Header
23625// or (if a response was returned at all) in
23626// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
23627// whether the returned error was because http.StatusNotModified was
23628// returned.
23629func (c *OrganizationsEnvgroupsAttachmentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1EnvironmentGroupAttachment, error) {
23630	gensupport.SetOptions(c.urlParams_, opts...)
23631	res, err := c.doRequest("json")
23632	if res != nil && res.StatusCode == http.StatusNotModified {
23633		if res.Body != nil {
23634			res.Body.Close()
23635		}
23636		return nil, &googleapi.Error{
23637			Code:   res.StatusCode,
23638			Header: res.Header,
23639		}
23640	}
23641	if err != nil {
23642		return nil, err
23643	}
23644	defer googleapi.CloseBody(res)
23645	if err := googleapi.CheckResponse(res); err != nil {
23646		return nil, err
23647	}
23648	ret := &GoogleCloudApigeeV1EnvironmentGroupAttachment{
23649		ServerResponse: googleapi.ServerResponse{
23650			Header:         res.Header,
23651			HTTPStatusCode: res.StatusCode,
23652		},
23653	}
23654	target := &ret
23655	if err := gensupport.DecodeResponse(target, res); err != nil {
23656		return nil, err
23657	}
23658	return ret, nil
23659	// {
23660	//   "description": "Gets an environment group attachment.",
23661	//   "flatPath": "v1/organizations/{organizationsId}/envgroups/{envgroupsId}/attachments/{attachmentsId}",
23662	//   "httpMethod": "GET",
23663	//   "id": "apigee.organizations.envgroups.attachments.get",
23664	//   "parameterOrder": [
23665	//     "name"
23666	//   ],
23667	//   "parameters": {
23668	//     "name": {
23669	//       "description": "Required. Name of the environment group attachment in the following format: `organizations/{org}/envgroups/{envgroup}/attachments/{attachment}`",
23670	//       "location": "path",
23671	//       "pattern": "^organizations/[^/]+/envgroups/[^/]+/attachments/[^/]+$",
23672	//       "required": true,
23673	//       "type": "string"
23674	//     }
23675	//   },
23676	//   "path": "v1/{+name}",
23677	//   "response": {
23678	//     "$ref": "GoogleCloudApigeeV1EnvironmentGroupAttachment"
23679	//   },
23680	//   "scopes": [
23681	//     "https://www.googleapis.com/auth/cloud-platform"
23682	//   ]
23683	// }
23684
23685}
23686
23687// method id "apigee.organizations.envgroups.attachments.list":
23688
23689type OrganizationsEnvgroupsAttachmentsListCall struct {
23690	s            *Service
23691	parent       string
23692	urlParams_   gensupport.URLParams
23693	ifNoneMatch_ string
23694	ctx_         context.Context
23695	header_      http.Header
23696}
23697
23698// List: Lists all attachments of an environment group.
23699//
23700// - parent: Name of the environment group in the following format:
23701//   `organizations/{org}/envgroups/{envgroup}`.
23702func (r *OrganizationsEnvgroupsAttachmentsService) List(parent string) *OrganizationsEnvgroupsAttachmentsListCall {
23703	c := &OrganizationsEnvgroupsAttachmentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23704	c.parent = parent
23705	return c
23706}
23707
23708// PageSize sets the optional parameter "pageSize": Maximum number of
23709// environment group attachments to return. The page size defaults to
23710// 25.
23711func (c *OrganizationsEnvgroupsAttachmentsListCall) PageSize(pageSize int64) *OrganizationsEnvgroupsAttachmentsListCall {
23712	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
23713	return c
23714}
23715
23716// PageToken sets the optional parameter "pageToken": Page token,
23717// returned by a previous ListEnvironmentGroupAttachments call, that you
23718// can use to retrieve the next page.
23719func (c *OrganizationsEnvgroupsAttachmentsListCall) PageToken(pageToken string) *OrganizationsEnvgroupsAttachmentsListCall {
23720	c.urlParams_.Set("pageToken", pageToken)
23721	return c
23722}
23723
23724// Fields allows partial responses to be retrieved. See
23725// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
23726// for more information.
23727func (c *OrganizationsEnvgroupsAttachmentsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsAttachmentsListCall {
23728	c.urlParams_.Set("fields", googleapi.CombineFields(s))
23729	return c
23730}
23731
23732// IfNoneMatch sets the optional parameter which makes the operation
23733// fail if the object's ETag matches the given value. This is useful for
23734// getting updates only after the object has changed since the last
23735// request. Use googleapi.IsNotModified to check whether the response
23736// error from Do is the result of In-None-Match.
23737func (c *OrganizationsEnvgroupsAttachmentsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvgroupsAttachmentsListCall {
23738	c.ifNoneMatch_ = entityTag
23739	return c
23740}
23741
23742// Context sets the context to be used in this call's Do method. Any
23743// pending HTTP request will be aborted if the provided context is
23744// canceled.
23745func (c *OrganizationsEnvgroupsAttachmentsListCall) Context(ctx context.Context) *OrganizationsEnvgroupsAttachmentsListCall {
23746	c.ctx_ = ctx
23747	return c
23748}
23749
23750// Header returns an http.Header that can be modified by the caller to
23751// add HTTP headers to the request.
23752func (c *OrganizationsEnvgroupsAttachmentsListCall) Header() http.Header {
23753	if c.header_ == nil {
23754		c.header_ = make(http.Header)
23755	}
23756	return c.header_
23757}
23758
23759func (c *OrganizationsEnvgroupsAttachmentsListCall) doRequest(alt string) (*http.Response, error) {
23760	reqHeaders := make(http.Header)
23761	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
23762	for k, v := range c.header_ {
23763		reqHeaders[k] = v
23764	}
23765	reqHeaders.Set("User-Agent", c.s.userAgent())
23766	if c.ifNoneMatch_ != "" {
23767		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23768	}
23769	var body io.Reader = nil
23770	c.urlParams_.Set("alt", alt)
23771	c.urlParams_.Set("prettyPrint", "false")
23772	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attachments")
23773	urls += "?" + c.urlParams_.Encode()
23774	req, err := http.NewRequest("GET", urls, body)
23775	if err != nil {
23776		return nil, err
23777	}
23778	req.Header = reqHeaders
23779	googleapi.Expand(req.URL, map[string]string{
23780		"parent": c.parent,
23781	})
23782	return gensupport.SendRequest(c.ctx_, c.s.client, req)
23783}
23784
23785// Do executes the "apigee.organizations.envgroups.attachments.list" call.
23786// Exactly one of
23787// *GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse or error
23788// will be non-nil. Any non-2xx status code is an error. Response
23789// headers are in either
23790// *GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse.ServerResp
23791// onse.Header or (if a response was returned at all) in
23792// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
23793// whether the returned error was because http.StatusNotModified was
23794// returned.
23795func (c *OrganizationsEnvgroupsAttachmentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse, error) {
23796	gensupport.SetOptions(c.urlParams_, opts...)
23797	res, err := c.doRequest("json")
23798	if res != nil && res.StatusCode == http.StatusNotModified {
23799		if res.Body != nil {
23800			res.Body.Close()
23801		}
23802		return nil, &googleapi.Error{
23803			Code:   res.StatusCode,
23804			Header: res.Header,
23805		}
23806	}
23807	if err != nil {
23808		return nil, err
23809	}
23810	defer googleapi.CloseBody(res)
23811	if err := googleapi.CheckResponse(res); err != nil {
23812		return nil, err
23813	}
23814	ret := &GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse{
23815		ServerResponse: googleapi.ServerResponse{
23816			Header:         res.Header,
23817			HTTPStatusCode: res.StatusCode,
23818		},
23819	}
23820	target := &ret
23821	if err := gensupport.DecodeResponse(target, res); err != nil {
23822		return nil, err
23823	}
23824	return ret, nil
23825	// {
23826	//   "description": "Lists all attachments of an environment group.",
23827	//   "flatPath": "v1/organizations/{organizationsId}/envgroups/{envgroupsId}/attachments",
23828	//   "httpMethod": "GET",
23829	//   "id": "apigee.organizations.envgroups.attachments.list",
23830	//   "parameterOrder": [
23831	//     "parent"
23832	//   ],
23833	//   "parameters": {
23834	//     "pageSize": {
23835	//       "description": "Maximum number of environment group attachments to return. The page size defaults to 25.",
23836	//       "format": "int32",
23837	//       "location": "query",
23838	//       "type": "integer"
23839	//     },
23840	//     "pageToken": {
23841	//       "description": "Page token, returned by a previous ListEnvironmentGroupAttachments call, that you can use to retrieve the next page.",
23842	//       "location": "query",
23843	//       "type": "string"
23844	//     },
23845	//     "parent": {
23846	//       "description": "Required. Name of the environment group in the following format: `organizations/{org}/envgroups/{envgroup}`.",
23847	//       "location": "path",
23848	//       "pattern": "^organizations/[^/]+/envgroups/[^/]+$",
23849	//       "required": true,
23850	//       "type": "string"
23851	//     }
23852	//   },
23853	//   "path": "v1/{+parent}/attachments",
23854	//   "response": {
23855	//     "$ref": "GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse"
23856	//   },
23857	//   "scopes": [
23858	//     "https://www.googleapis.com/auth/cloud-platform"
23859	//   ]
23860	// }
23861
23862}
23863
23864// Pages invokes f for each page of results.
23865// A non-nil error returned from f will halt the iteration.
23866// The provided context supersedes any context provided to the Context method.
23867func (c *OrganizationsEnvgroupsAttachmentsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse) error) error {
23868	c.ctx_ = ctx
23869	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
23870	for {
23871		x, err := c.Do()
23872		if err != nil {
23873			return err
23874		}
23875		if err := f(x); err != nil {
23876			return err
23877		}
23878		if x.NextPageToken == "" {
23879			return nil
23880		}
23881		c.PageToken(x.NextPageToken)
23882	}
23883}
23884
23885// method id "apigee.organizations.environments.create":
23886
23887type OrganizationsEnvironmentsCreateCall struct {
23888	s                              *Service
23889	parent                         string
23890	googlecloudapigeev1environment *GoogleCloudApigeeV1Environment
23891	urlParams_                     gensupport.URLParams
23892	ctx_                           context.Context
23893	header_                        http.Header
23894}
23895
23896// Create: Creates an environment in an organization.
23897//
23898// - parent: Name of the organization in which the environment will be
23899//   created. Use the following structure in your request:
23900//   `organizations/{org}`.
23901func (r *OrganizationsEnvironmentsService) Create(parent string, googlecloudapigeev1environment *GoogleCloudApigeeV1Environment) *OrganizationsEnvironmentsCreateCall {
23902	c := &OrganizationsEnvironmentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23903	c.parent = parent
23904	c.googlecloudapigeev1environment = googlecloudapigeev1environment
23905	return c
23906}
23907
23908// Name sets the optional parameter "name": Name of the environment.
23909// Alternatively, the name may be specified in the request body in the
23910// name field.
23911func (c *OrganizationsEnvironmentsCreateCall) Name(name string) *OrganizationsEnvironmentsCreateCall {
23912	c.urlParams_.Set("name", name)
23913	return c
23914}
23915
23916// Fields allows partial responses to be retrieved. See
23917// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
23918// for more information.
23919func (c *OrganizationsEnvironmentsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsCreateCall {
23920	c.urlParams_.Set("fields", googleapi.CombineFields(s))
23921	return c
23922}
23923
23924// Context sets the context to be used in this call's Do method. Any
23925// pending HTTP request will be aborted if the provided context is
23926// canceled.
23927func (c *OrganizationsEnvironmentsCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsCreateCall {
23928	c.ctx_ = ctx
23929	return c
23930}
23931
23932// Header returns an http.Header that can be modified by the caller to
23933// add HTTP headers to the request.
23934func (c *OrganizationsEnvironmentsCreateCall) Header() http.Header {
23935	if c.header_ == nil {
23936		c.header_ = make(http.Header)
23937	}
23938	return c.header_
23939}
23940
23941func (c *OrganizationsEnvironmentsCreateCall) doRequest(alt string) (*http.Response, error) {
23942	reqHeaders := make(http.Header)
23943	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
23944	for k, v := range c.header_ {
23945		reqHeaders[k] = v
23946	}
23947	reqHeaders.Set("User-Agent", c.s.userAgent())
23948	var body io.Reader = nil
23949	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1environment)
23950	if err != nil {
23951		return nil, err
23952	}
23953	reqHeaders.Set("Content-Type", "application/json")
23954	c.urlParams_.Set("alt", alt)
23955	c.urlParams_.Set("prettyPrint", "false")
23956	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/environments")
23957	urls += "?" + c.urlParams_.Encode()
23958	req, err := http.NewRequest("POST", urls, body)
23959	if err != nil {
23960		return nil, err
23961	}
23962	req.Header = reqHeaders
23963	googleapi.Expand(req.URL, map[string]string{
23964		"parent": c.parent,
23965	})
23966	return gensupport.SendRequest(c.ctx_, c.s.client, req)
23967}
23968
23969// Do executes the "apigee.organizations.environments.create" call.
23970// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
23971// Any non-2xx status code is an error. Response headers are in either
23972// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
23973// was returned at all) in error.(*googleapi.Error).Header. Use
23974// googleapi.IsNotModified to check whether the returned error was
23975// because http.StatusNotModified was returned.
23976func (c *OrganizationsEnvironmentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
23977	gensupport.SetOptions(c.urlParams_, opts...)
23978	res, err := c.doRequest("json")
23979	if res != nil && res.StatusCode == http.StatusNotModified {
23980		if res.Body != nil {
23981			res.Body.Close()
23982		}
23983		return nil, &googleapi.Error{
23984			Code:   res.StatusCode,
23985			Header: res.Header,
23986		}
23987	}
23988	if err != nil {
23989		return nil, err
23990	}
23991	defer googleapi.CloseBody(res)
23992	if err := googleapi.CheckResponse(res); err != nil {
23993		return nil, err
23994	}
23995	ret := &GoogleLongrunningOperation{
23996		ServerResponse: googleapi.ServerResponse{
23997			Header:         res.Header,
23998			HTTPStatusCode: res.StatusCode,
23999		},
24000	}
24001	target := &ret
24002	if err := gensupport.DecodeResponse(target, res); err != nil {
24003		return nil, err
24004	}
24005	return ret, nil
24006	// {
24007	//   "description": "Creates an environment in an organization.",
24008	//   "flatPath": "v1/organizations/{organizationsId}/environments",
24009	//   "httpMethod": "POST",
24010	//   "id": "apigee.organizations.environments.create",
24011	//   "parameterOrder": [
24012	//     "parent"
24013	//   ],
24014	//   "parameters": {
24015	//     "name": {
24016	//       "description": "Optional. Name of the environment. Alternatively, the name may be specified in the request body in the name field.",
24017	//       "location": "query",
24018	//       "type": "string"
24019	//     },
24020	//     "parent": {
24021	//       "description": "Required. Name of the organization in which the environment will be created. Use the following structure in your request: `organizations/{org}`",
24022	//       "location": "path",
24023	//       "pattern": "^organizations/[^/]+$",
24024	//       "required": true,
24025	//       "type": "string"
24026	//     }
24027	//   },
24028	//   "path": "v1/{+parent}/environments",
24029	//   "request": {
24030	//     "$ref": "GoogleCloudApigeeV1Environment"
24031	//   },
24032	//   "response": {
24033	//     "$ref": "GoogleLongrunningOperation"
24034	//   },
24035	//   "scopes": [
24036	//     "https://www.googleapis.com/auth/cloud-platform"
24037	//   ]
24038	// }
24039
24040}
24041
24042// method id "apigee.organizations.environments.delete":
24043
24044type OrganizationsEnvironmentsDeleteCall struct {
24045	s          *Service
24046	name       string
24047	urlParams_ gensupport.URLParams
24048	ctx_       context.Context
24049	header_    http.Header
24050}
24051
24052// Delete: Deletes an environment from an organization.
24053//
24054// - name: Name of the environment. Use the following structure in your
24055//   request: `organizations/{org}/environments/{env}`.
24056func (r *OrganizationsEnvironmentsService) Delete(name string) *OrganizationsEnvironmentsDeleteCall {
24057	c := &OrganizationsEnvironmentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24058	c.name = name
24059	return c
24060}
24061
24062// Fields allows partial responses to be retrieved. See
24063// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
24064// for more information.
24065func (c *OrganizationsEnvironmentsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsDeleteCall {
24066	c.urlParams_.Set("fields", googleapi.CombineFields(s))
24067	return c
24068}
24069
24070// Context sets the context to be used in this call's Do method. Any
24071// pending HTTP request will be aborted if the provided context is
24072// canceled.
24073func (c *OrganizationsEnvironmentsDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsDeleteCall {
24074	c.ctx_ = ctx
24075	return c
24076}
24077
24078// Header returns an http.Header that can be modified by the caller to
24079// add HTTP headers to the request.
24080func (c *OrganizationsEnvironmentsDeleteCall) Header() http.Header {
24081	if c.header_ == nil {
24082		c.header_ = make(http.Header)
24083	}
24084	return c.header_
24085}
24086
24087func (c *OrganizationsEnvironmentsDeleteCall) doRequest(alt string) (*http.Response, error) {
24088	reqHeaders := make(http.Header)
24089	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
24090	for k, v := range c.header_ {
24091		reqHeaders[k] = v
24092	}
24093	reqHeaders.Set("User-Agent", c.s.userAgent())
24094	var body io.Reader = nil
24095	c.urlParams_.Set("alt", alt)
24096	c.urlParams_.Set("prettyPrint", "false")
24097	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
24098	urls += "?" + c.urlParams_.Encode()
24099	req, err := http.NewRequest("DELETE", urls, body)
24100	if err != nil {
24101		return nil, err
24102	}
24103	req.Header = reqHeaders
24104	googleapi.Expand(req.URL, map[string]string{
24105		"name": c.name,
24106	})
24107	return gensupport.SendRequest(c.ctx_, c.s.client, req)
24108}
24109
24110// Do executes the "apigee.organizations.environments.delete" call.
24111// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
24112// Any non-2xx status code is an error. Response headers are in either
24113// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
24114// was returned at all) in error.(*googleapi.Error).Header. Use
24115// googleapi.IsNotModified to check whether the returned error was
24116// because http.StatusNotModified was returned.
24117func (c *OrganizationsEnvironmentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
24118	gensupport.SetOptions(c.urlParams_, opts...)
24119	res, err := c.doRequest("json")
24120	if res != nil && res.StatusCode == http.StatusNotModified {
24121		if res.Body != nil {
24122			res.Body.Close()
24123		}
24124		return nil, &googleapi.Error{
24125			Code:   res.StatusCode,
24126			Header: res.Header,
24127		}
24128	}
24129	if err != nil {
24130		return nil, err
24131	}
24132	defer googleapi.CloseBody(res)
24133	if err := googleapi.CheckResponse(res); err != nil {
24134		return nil, err
24135	}
24136	ret := &GoogleLongrunningOperation{
24137		ServerResponse: googleapi.ServerResponse{
24138			Header:         res.Header,
24139			HTTPStatusCode: res.StatusCode,
24140		},
24141	}
24142	target := &ret
24143	if err := gensupport.DecodeResponse(target, res); err != nil {
24144		return nil, err
24145	}
24146	return ret, nil
24147	// {
24148	//   "description": "Deletes an environment from an organization.",
24149	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}",
24150	//   "httpMethod": "DELETE",
24151	//   "id": "apigee.organizations.environments.delete",
24152	//   "parameterOrder": [
24153	//     "name"
24154	//   ],
24155	//   "parameters": {
24156	//     "name": {
24157	//       "description": "Required. Name of the environment. Use the following structure in your request: `organizations/{org}/environments/{env}`",
24158	//       "location": "path",
24159	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
24160	//       "required": true,
24161	//       "type": "string"
24162	//     }
24163	//   },
24164	//   "path": "v1/{+name}",
24165	//   "response": {
24166	//     "$ref": "GoogleLongrunningOperation"
24167	//   },
24168	//   "scopes": [
24169	//     "https://www.googleapis.com/auth/cloud-platform"
24170	//   ]
24171	// }
24172
24173}
24174
24175// method id "apigee.organizations.environments.get":
24176
24177type OrganizationsEnvironmentsGetCall struct {
24178	s            *Service
24179	name         string
24180	urlParams_   gensupport.URLParams
24181	ifNoneMatch_ string
24182	ctx_         context.Context
24183	header_      http.Header
24184}
24185
24186// Get: Gets environment details.
24187//
24188// - name: Name of the environment. Use the following structure in your
24189//   request: `organizations/{org}/environments/{env}`.
24190func (r *OrganizationsEnvironmentsService) Get(name string) *OrganizationsEnvironmentsGetCall {
24191	c := &OrganizationsEnvironmentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24192	c.name = name
24193	return c
24194}
24195
24196// Fields allows partial responses to be retrieved. See
24197// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
24198// for more information.
24199func (c *OrganizationsEnvironmentsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsGetCall {
24200	c.urlParams_.Set("fields", googleapi.CombineFields(s))
24201	return c
24202}
24203
24204// IfNoneMatch sets the optional parameter which makes the operation
24205// fail if the object's ETag matches the given value. This is useful for
24206// getting updates only after the object has changed since the last
24207// request. Use googleapi.IsNotModified to check whether the response
24208// error from Do is the result of In-None-Match.
24209func (c *OrganizationsEnvironmentsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsGetCall {
24210	c.ifNoneMatch_ = entityTag
24211	return c
24212}
24213
24214// Context sets the context to be used in this call's Do method. Any
24215// pending HTTP request will be aborted if the provided context is
24216// canceled.
24217func (c *OrganizationsEnvironmentsGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsGetCall {
24218	c.ctx_ = ctx
24219	return c
24220}
24221
24222// Header returns an http.Header that can be modified by the caller to
24223// add HTTP headers to the request.
24224func (c *OrganizationsEnvironmentsGetCall) Header() http.Header {
24225	if c.header_ == nil {
24226		c.header_ = make(http.Header)
24227	}
24228	return c.header_
24229}
24230
24231func (c *OrganizationsEnvironmentsGetCall) doRequest(alt string) (*http.Response, error) {
24232	reqHeaders := make(http.Header)
24233	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
24234	for k, v := range c.header_ {
24235		reqHeaders[k] = v
24236	}
24237	reqHeaders.Set("User-Agent", c.s.userAgent())
24238	if c.ifNoneMatch_ != "" {
24239		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24240	}
24241	var body io.Reader = nil
24242	c.urlParams_.Set("alt", alt)
24243	c.urlParams_.Set("prettyPrint", "false")
24244	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
24245	urls += "?" + c.urlParams_.Encode()
24246	req, err := http.NewRequest("GET", urls, body)
24247	if err != nil {
24248		return nil, err
24249	}
24250	req.Header = reqHeaders
24251	googleapi.Expand(req.URL, map[string]string{
24252		"name": c.name,
24253	})
24254	return gensupport.SendRequest(c.ctx_, c.s.client, req)
24255}
24256
24257// Do executes the "apigee.organizations.environments.get" call.
24258// Exactly one of *GoogleCloudApigeeV1Environment or error will be
24259// non-nil. Any non-2xx status code is an error. Response headers are in
24260// either *GoogleCloudApigeeV1Environment.ServerResponse.Header or (if a
24261// response was returned at all) in error.(*googleapi.Error).Header. Use
24262// googleapi.IsNotModified to check whether the returned error was
24263// because http.StatusNotModified was returned.
24264func (c *OrganizationsEnvironmentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Environment, error) {
24265	gensupport.SetOptions(c.urlParams_, opts...)
24266	res, err := c.doRequest("json")
24267	if res != nil && res.StatusCode == http.StatusNotModified {
24268		if res.Body != nil {
24269			res.Body.Close()
24270		}
24271		return nil, &googleapi.Error{
24272			Code:   res.StatusCode,
24273			Header: res.Header,
24274		}
24275	}
24276	if err != nil {
24277		return nil, err
24278	}
24279	defer googleapi.CloseBody(res)
24280	if err := googleapi.CheckResponse(res); err != nil {
24281		return nil, err
24282	}
24283	ret := &GoogleCloudApigeeV1Environment{
24284		ServerResponse: googleapi.ServerResponse{
24285			Header:         res.Header,
24286			HTTPStatusCode: res.StatusCode,
24287		},
24288	}
24289	target := &ret
24290	if err := gensupport.DecodeResponse(target, res); err != nil {
24291		return nil, err
24292	}
24293	return ret, nil
24294	// {
24295	//   "description": "Gets environment details.",
24296	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}",
24297	//   "httpMethod": "GET",
24298	//   "id": "apigee.organizations.environments.get",
24299	//   "parameterOrder": [
24300	//     "name"
24301	//   ],
24302	//   "parameters": {
24303	//     "name": {
24304	//       "description": "Required. Name of the environment. Use the following structure in your request: `organizations/{org}/environments/{env}`",
24305	//       "location": "path",
24306	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
24307	//       "required": true,
24308	//       "type": "string"
24309	//     }
24310	//   },
24311	//   "path": "v1/{+name}",
24312	//   "response": {
24313	//     "$ref": "GoogleCloudApigeeV1Environment"
24314	//   },
24315	//   "scopes": [
24316	//     "https://www.googleapis.com/auth/cloud-platform"
24317	//   ]
24318	// }
24319
24320}
24321
24322// method id "apigee.organizations.environments.getDebugmask":
24323
24324type OrganizationsEnvironmentsGetDebugmaskCall struct {
24325	s            *Service
24326	name         string
24327	urlParams_   gensupport.URLParams
24328	ifNoneMatch_ string
24329	ctx_         context.Context
24330	header_      http.Header
24331}
24332
24333// GetDebugmask: Gets the debug mask singleton resource for an
24334// environment.
24335//
24336// - name: Name of the debug mask. Use the following structure in your
24337//   request: `organizations/{org}/environments/{env}/debugmask`.
24338func (r *OrganizationsEnvironmentsService) GetDebugmask(name string) *OrganizationsEnvironmentsGetDebugmaskCall {
24339	c := &OrganizationsEnvironmentsGetDebugmaskCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24340	c.name = name
24341	return c
24342}
24343
24344// Fields allows partial responses to be retrieved. See
24345// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
24346// for more information.
24347func (c *OrganizationsEnvironmentsGetDebugmaskCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsGetDebugmaskCall {
24348	c.urlParams_.Set("fields", googleapi.CombineFields(s))
24349	return c
24350}
24351
24352// IfNoneMatch sets the optional parameter which makes the operation
24353// fail if the object's ETag matches the given value. This is useful for
24354// getting updates only after the object has changed since the last
24355// request. Use googleapi.IsNotModified to check whether the response
24356// error from Do is the result of In-None-Match.
24357func (c *OrganizationsEnvironmentsGetDebugmaskCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsGetDebugmaskCall {
24358	c.ifNoneMatch_ = entityTag
24359	return c
24360}
24361
24362// Context sets the context to be used in this call's Do method. Any
24363// pending HTTP request will be aborted if the provided context is
24364// canceled.
24365func (c *OrganizationsEnvironmentsGetDebugmaskCall) Context(ctx context.Context) *OrganizationsEnvironmentsGetDebugmaskCall {
24366	c.ctx_ = ctx
24367	return c
24368}
24369
24370// Header returns an http.Header that can be modified by the caller to
24371// add HTTP headers to the request.
24372func (c *OrganizationsEnvironmentsGetDebugmaskCall) Header() http.Header {
24373	if c.header_ == nil {
24374		c.header_ = make(http.Header)
24375	}
24376	return c.header_
24377}
24378
24379func (c *OrganizationsEnvironmentsGetDebugmaskCall) doRequest(alt string) (*http.Response, error) {
24380	reqHeaders := make(http.Header)
24381	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
24382	for k, v := range c.header_ {
24383		reqHeaders[k] = v
24384	}
24385	reqHeaders.Set("User-Agent", c.s.userAgent())
24386	if c.ifNoneMatch_ != "" {
24387		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24388	}
24389	var body io.Reader = nil
24390	c.urlParams_.Set("alt", alt)
24391	c.urlParams_.Set("prettyPrint", "false")
24392	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
24393	urls += "?" + c.urlParams_.Encode()
24394	req, err := http.NewRequest("GET", urls, body)
24395	if err != nil {
24396		return nil, err
24397	}
24398	req.Header = reqHeaders
24399	googleapi.Expand(req.URL, map[string]string{
24400		"name": c.name,
24401	})
24402	return gensupport.SendRequest(c.ctx_, c.s.client, req)
24403}
24404
24405// Do executes the "apigee.organizations.environments.getDebugmask" call.
24406// Exactly one of *GoogleCloudApigeeV1DebugMask or error will be
24407// non-nil. Any non-2xx status code is an error. Response headers are in
24408// either *GoogleCloudApigeeV1DebugMask.ServerResponse.Header or (if a
24409// response was returned at all) in error.(*googleapi.Error).Header. Use
24410// googleapi.IsNotModified to check whether the returned error was
24411// because http.StatusNotModified was returned.
24412func (c *OrganizationsEnvironmentsGetDebugmaskCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DebugMask, error) {
24413	gensupport.SetOptions(c.urlParams_, opts...)
24414	res, err := c.doRequest("json")
24415	if res != nil && res.StatusCode == http.StatusNotModified {
24416		if res.Body != nil {
24417			res.Body.Close()
24418		}
24419		return nil, &googleapi.Error{
24420			Code:   res.StatusCode,
24421			Header: res.Header,
24422		}
24423	}
24424	if err != nil {
24425		return nil, err
24426	}
24427	defer googleapi.CloseBody(res)
24428	if err := googleapi.CheckResponse(res); err != nil {
24429		return nil, err
24430	}
24431	ret := &GoogleCloudApigeeV1DebugMask{
24432		ServerResponse: googleapi.ServerResponse{
24433			Header:         res.Header,
24434			HTTPStatusCode: res.StatusCode,
24435		},
24436	}
24437	target := &ret
24438	if err := gensupport.DecodeResponse(target, res); err != nil {
24439		return nil, err
24440	}
24441	return ret, nil
24442	// {
24443	//   "description": "Gets the debug mask singleton resource for an environment.",
24444	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/debugmask",
24445	//   "httpMethod": "GET",
24446	//   "id": "apigee.organizations.environments.getDebugmask",
24447	//   "parameterOrder": [
24448	//     "name"
24449	//   ],
24450	//   "parameters": {
24451	//     "name": {
24452	//       "description": "Required. Name of the debug mask. Use the following structure in your request: `organizations/{org}/environments/{env}/debugmask`.",
24453	//       "location": "path",
24454	//       "pattern": "^organizations/[^/]+/environments/[^/]+/debugmask$",
24455	//       "required": true,
24456	//       "type": "string"
24457	//     }
24458	//   },
24459	//   "path": "v1/{+name}",
24460	//   "response": {
24461	//     "$ref": "GoogleCloudApigeeV1DebugMask"
24462	//   },
24463	//   "scopes": [
24464	//     "https://www.googleapis.com/auth/cloud-platform"
24465	//   ]
24466	// }
24467
24468}
24469
24470// method id "apigee.organizations.environments.getDeployedConfig":
24471
24472type OrganizationsEnvironmentsGetDeployedConfigCall struct {
24473	s            *Service
24474	name         string
24475	urlParams_   gensupport.URLParams
24476	ifNoneMatch_ string
24477	ctx_         context.Context
24478	header_      http.Header
24479}
24480
24481// GetDeployedConfig: Gets the deployed configuration for an
24482// environment.
24483//
24484// - name: Name of the environment deployed configuration resource. Use
24485//   the following structure in your request:
24486//   `organizations/{org}/environments/{env}/deployedConfig`.
24487func (r *OrganizationsEnvironmentsService) GetDeployedConfig(name string) *OrganizationsEnvironmentsGetDeployedConfigCall {
24488	c := &OrganizationsEnvironmentsGetDeployedConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24489	c.name = name
24490	return c
24491}
24492
24493// Fields allows partial responses to be retrieved. See
24494// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
24495// for more information.
24496func (c *OrganizationsEnvironmentsGetDeployedConfigCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsGetDeployedConfigCall {
24497	c.urlParams_.Set("fields", googleapi.CombineFields(s))
24498	return c
24499}
24500
24501// IfNoneMatch sets the optional parameter which makes the operation
24502// fail if the object's ETag matches the given value. This is useful for
24503// getting updates only after the object has changed since the last
24504// request. Use googleapi.IsNotModified to check whether the response
24505// error from Do is the result of In-None-Match.
24506func (c *OrganizationsEnvironmentsGetDeployedConfigCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsGetDeployedConfigCall {
24507	c.ifNoneMatch_ = entityTag
24508	return c
24509}
24510
24511// Context sets the context to be used in this call's Do method. Any
24512// pending HTTP request will be aborted if the provided context is
24513// canceled.
24514func (c *OrganizationsEnvironmentsGetDeployedConfigCall) Context(ctx context.Context) *OrganizationsEnvironmentsGetDeployedConfigCall {
24515	c.ctx_ = ctx
24516	return c
24517}
24518
24519// Header returns an http.Header that can be modified by the caller to
24520// add HTTP headers to the request.
24521func (c *OrganizationsEnvironmentsGetDeployedConfigCall) Header() http.Header {
24522	if c.header_ == nil {
24523		c.header_ = make(http.Header)
24524	}
24525	return c.header_
24526}
24527
24528func (c *OrganizationsEnvironmentsGetDeployedConfigCall) doRequest(alt string) (*http.Response, error) {
24529	reqHeaders := make(http.Header)
24530	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
24531	for k, v := range c.header_ {
24532		reqHeaders[k] = v
24533	}
24534	reqHeaders.Set("User-Agent", c.s.userAgent())
24535	if c.ifNoneMatch_ != "" {
24536		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24537	}
24538	var body io.Reader = nil
24539	c.urlParams_.Set("alt", alt)
24540	c.urlParams_.Set("prettyPrint", "false")
24541	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
24542	urls += "?" + c.urlParams_.Encode()
24543	req, err := http.NewRequest("GET", urls, body)
24544	if err != nil {
24545		return nil, err
24546	}
24547	req.Header = reqHeaders
24548	googleapi.Expand(req.URL, map[string]string{
24549		"name": c.name,
24550	})
24551	return gensupport.SendRequest(c.ctx_, c.s.client, req)
24552}
24553
24554// Do executes the "apigee.organizations.environments.getDeployedConfig" call.
24555// Exactly one of *GoogleCloudApigeeV1EnvironmentConfig or error will be
24556// non-nil. Any non-2xx status code is an error. Response headers are in
24557// either *GoogleCloudApigeeV1EnvironmentConfig.ServerResponse.Header or
24558// (if a response was returned at all) in
24559// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
24560// whether the returned error was because http.StatusNotModified was
24561// returned.
24562func (c *OrganizationsEnvironmentsGetDeployedConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1EnvironmentConfig, error) {
24563	gensupport.SetOptions(c.urlParams_, opts...)
24564	res, err := c.doRequest("json")
24565	if res != nil && res.StatusCode == http.StatusNotModified {
24566		if res.Body != nil {
24567			res.Body.Close()
24568		}
24569		return nil, &googleapi.Error{
24570			Code:   res.StatusCode,
24571			Header: res.Header,
24572		}
24573	}
24574	if err != nil {
24575		return nil, err
24576	}
24577	defer googleapi.CloseBody(res)
24578	if err := googleapi.CheckResponse(res); err != nil {
24579		return nil, err
24580	}
24581	ret := &GoogleCloudApigeeV1EnvironmentConfig{
24582		ServerResponse: googleapi.ServerResponse{
24583			Header:         res.Header,
24584			HTTPStatusCode: res.StatusCode,
24585		},
24586	}
24587	target := &ret
24588	if err := gensupport.DecodeResponse(target, res); err != nil {
24589		return nil, err
24590	}
24591	return ret, nil
24592	// {
24593	//   "description": "Gets the deployed configuration for an environment.",
24594	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/deployedConfig",
24595	//   "httpMethod": "GET",
24596	//   "id": "apigee.organizations.environments.getDeployedConfig",
24597	//   "parameterOrder": [
24598	//     "name"
24599	//   ],
24600	//   "parameters": {
24601	//     "name": {
24602	//       "description": "Required. Name of the environment deployed configuration resource. Use the following structure in your request: `organizations/{org}/environments/{env}/deployedConfig`",
24603	//       "location": "path",
24604	//       "pattern": "^organizations/[^/]+/environments/[^/]+/deployedConfig$",
24605	//       "required": true,
24606	//       "type": "string"
24607	//     }
24608	//   },
24609	//   "path": "v1/{+name}",
24610	//   "response": {
24611	//     "$ref": "GoogleCloudApigeeV1EnvironmentConfig"
24612	//   },
24613	//   "scopes": [
24614	//     "https://www.googleapis.com/auth/cloud-platform"
24615	//   ]
24616	// }
24617
24618}
24619
24620// method id "apigee.organizations.environments.getIamPolicy":
24621
24622type OrganizationsEnvironmentsGetIamPolicyCall struct {
24623	s            *Service
24624	resource     string
24625	urlParams_   gensupport.URLParams
24626	ifNoneMatch_ string
24627	ctx_         context.Context
24628	header_      http.Header
24629}
24630
24631// GetIamPolicy: Gets the IAM policy on an environment. For more
24632// information, see Manage users, roles, and permissions using the API
24633// (https://cloud.google.com/apigee/docs/api-platform/system-administration/manage-users-roles).
24634// You must have the `apigee.environments.getIamPolicy` permission to
24635// call this API.
24636//
24637// - resource: REQUIRED: The resource for which the policy is being
24638//   requested. See the operation documentation for the appropriate
24639//   value for this field.
24640func (r *OrganizationsEnvironmentsService) GetIamPolicy(resource string) *OrganizationsEnvironmentsGetIamPolicyCall {
24641	c := &OrganizationsEnvironmentsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24642	c.resource = resource
24643	return c
24644}
24645
24646// OptionsRequestedPolicyVersion sets the optional parameter
24647// "options.requestedPolicyVersion": The policy format version to be
24648// returned. Valid values are 0, 1, and 3. Requests specifying an
24649// invalid value will be rejected. Requests for policies with any
24650// conditional bindings must specify version 3. Policies without any
24651// conditional bindings may specify any valid value or leave the field
24652// unset. To learn which resources support conditions in their IAM
24653// policies, see the IAM documentation
24654// (https://cloud.google.com/iam/help/conditions/resource-policies).
24655func (c *OrganizationsEnvironmentsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *OrganizationsEnvironmentsGetIamPolicyCall {
24656	c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
24657	return c
24658}
24659
24660// Fields allows partial responses to be retrieved. See
24661// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
24662// for more information.
24663func (c *OrganizationsEnvironmentsGetIamPolicyCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsGetIamPolicyCall {
24664	c.urlParams_.Set("fields", googleapi.CombineFields(s))
24665	return c
24666}
24667
24668// IfNoneMatch sets the optional parameter which makes the operation
24669// fail if the object's ETag matches the given value. This is useful for
24670// getting updates only after the object has changed since the last
24671// request. Use googleapi.IsNotModified to check whether the response
24672// error from Do is the result of In-None-Match.
24673func (c *OrganizationsEnvironmentsGetIamPolicyCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsGetIamPolicyCall {
24674	c.ifNoneMatch_ = entityTag
24675	return c
24676}
24677
24678// Context sets the context to be used in this call's Do method. Any
24679// pending HTTP request will be aborted if the provided context is
24680// canceled.
24681func (c *OrganizationsEnvironmentsGetIamPolicyCall) Context(ctx context.Context) *OrganizationsEnvironmentsGetIamPolicyCall {
24682	c.ctx_ = ctx
24683	return c
24684}
24685
24686// Header returns an http.Header that can be modified by the caller to
24687// add HTTP headers to the request.
24688func (c *OrganizationsEnvironmentsGetIamPolicyCall) Header() http.Header {
24689	if c.header_ == nil {
24690		c.header_ = make(http.Header)
24691	}
24692	return c.header_
24693}
24694
24695func (c *OrganizationsEnvironmentsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
24696	reqHeaders := make(http.Header)
24697	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
24698	for k, v := range c.header_ {
24699		reqHeaders[k] = v
24700	}
24701	reqHeaders.Set("User-Agent", c.s.userAgent())
24702	if c.ifNoneMatch_ != "" {
24703		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24704	}
24705	var body io.Reader = nil
24706	c.urlParams_.Set("alt", alt)
24707	c.urlParams_.Set("prettyPrint", "false")
24708	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
24709	urls += "?" + c.urlParams_.Encode()
24710	req, err := http.NewRequest("GET", urls, body)
24711	if err != nil {
24712		return nil, err
24713	}
24714	req.Header = reqHeaders
24715	googleapi.Expand(req.URL, map[string]string{
24716		"resource": c.resource,
24717	})
24718	return gensupport.SendRequest(c.ctx_, c.s.client, req)
24719}
24720
24721// Do executes the "apigee.organizations.environments.getIamPolicy" call.
24722// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any
24723// non-2xx status code is an error. Response headers are in either
24724// *GoogleIamV1Policy.ServerResponse.Header or (if a response was
24725// returned at all) in error.(*googleapi.Error).Header. Use
24726// googleapi.IsNotModified to check whether the returned error was
24727// because http.StatusNotModified was returned.
24728func (c *OrganizationsEnvironmentsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
24729	gensupport.SetOptions(c.urlParams_, opts...)
24730	res, err := c.doRequest("json")
24731	if res != nil && res.StatusCode == http.StatusNotModified {
24732		if res.Body != nil {
24733			res.Body.Close()
24734		}
24735		return nil, &googleapi.Error{
24736			Code:   res.StatusCode,
24737			Header: res.Header,
24738		}
24739	}
24740	if err != nil {
24741		return nil, err
24742	}
24743	defer googleapi.CloseBody(res)
24744	if err := googleapi.CheckResponse(res); err != nil {
24745		return nil, err
24746	}
24747	ret := &GoogleIamV1Policy{
24748		ServerResponse: googleapi.ServerResponse{
24749			Header:         res.Header,
24750			HTTPStatusCode: res.StatusCode,
24751		},
24752	}
24753	target := &ret
24754	if err := gensupport.DecodeResponse(target, res); err != nil {
24755		return nil, err
24756	}
24757	return ret, nil
24758	// {
24759	//   "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.",
24760	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}:getIamPolicy",
24761	//   "httpMethod": "GET",
24762	//   "id": "apigee.organizations.environments.getIamPolicy",
24763	//   "parameterOrder": [
24764	//     "resource"
24765	//   ],
24766	//   "parameters": {
24767	//     "options.requestedPolicyVersion": {
24768	//       "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).",
24769	//       "format": "int32",
24770	//       "location": "query",
24771	//       "type": "integer"
24772	//     },
24773	//     "resource": {
24774	//       "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.",
24775	//       "location": "path",
24776	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
24777	//       "required": true,
24778	//       "type": "string"
24779	//     }
24780	//   },
24781	//   "path": "v1/{+resource}:getIamPolicy",
24782	//   "response": {
24783	//     "$ref": "GoogleIamV1Policy"
24784	//   },
24785	//   "scopes": [
24786	//     "https://www.googleapis.com/auth/cloud-platform"
24787	//   ]
24788	// }
24789
24790}
24791
24792// method id "apigee.organizations.environments.getTraceConfig":
24793
24794type OrganizationsEnvironmentsGetTraceConfigCall struct {
24795	s            *Service
24796	name         string
24797	urlParams_   gensupport.URLParams
24798	ifNoneMatch_ string
24799	ctx_         context.Context
24800	header_      http.Header
24801}
24802
24803// GetTraceConfig: Get distributed trace configuration in an
24804// environment.
24805//
24806// - name: Name of the trace configuration. Use the following structure
24807//   in your request: "organizations/*/environments/*/traceConfig".
24808func (r *OrganizationsEnvironmentsService) GetTraceConfig(name string) *OrganizationsEnvironmentsGetTraceConfigCall {
24809	c := &OrganizationsEnvironmentsGetTraceConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24810	c.name = name
24811	return c
24812}
24813
24814// Fields allows partial responses to be retrieved. See
24815// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
24816// for more information.
24817func (c *OrganizationsEnvironmentsGetTraceConfigCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsGetTraceConfigCall {
24818	c.urlParams_.Set("fields", googleapi.CombineFields(s))
24819	return c
24820}
24821
24822// IfNoneMatch sets the optional parameter which makes the operation
24823// fail if the object's ETag matches the given value. This is useful for
24824// getting updates only after the object has changed since the last
24825// request. Use googleapi.IsNotModified to check whether the response
24826// error from Do is the result of In-None-Match.
24827func (c *OrganizationsEnvironmentsGetTraceConfigCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsGetTraceConfigCall {
24828	c.ifNoneMatch_ = entityTag
24829	return c
24830}
24831
24832// Context sets the context to be used in this call's Do method. Any
24833// pending HTTP request will be aborted if the provided context is
24834// canceled.
24835func (c *OrganizationsEnvironmentsGetTraceConfigCall) Context(ctx context.Context) *OrganizationsEnvironmentsGetTraceConfigCall {
24836	c.ctx_ = ctx
24837	return c
24838}
24839
24840// Header returns an http.Header that can be modified by the caller to
24841// add HTTP headers to the request.
24842func (c *OrganizationsEnvironmentsGetTraceConfigCall) Header() http.Header {
24843	if c.header_ == nil {
24844		c.header_ = make(http.Header)
24845	}
24846	return c.header_
24847}
24848
24849func (c *OrganizationsEnvironmentsGetTraceConfigCall) doRequest(alt string) (*http.Response, error) {
24850	reqHeaders := make(http.Header)
24851	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
24852	for k, v := range c.header_ {
24853		reqHeaders[k] = v
24854	}
24855	reqHeaders.Set("User-Agent", c.s.userAgent())
24856	if c.ifNoneMatch_ != "" {
24857		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24858	}
24859	var body io.Reader = nil
24860	c.urlParams_.Set("alt", alt)
24861	c.urlParams_.Set("prettyPrint", "false")
24862	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
24863	urls += "?" + c.urlParams_.Encode()
24864	req, err := http.NewRequest("GET", urls, body)
24865	if err != nil {
24866		return nil, err
24867	}
24868	req.Header = reqHeaders
24869	googleapi.Expand(req.URL, map[string]string{
24870		"name": c.name,
24871	})
24872	return gensupport.SendRequest(c.ctx_, c.s.client, req)
24873}
24874
24875// Do executes the "apigee.organizations.environments.getTraceConfig" call.
24876// Exactly one of *GoogleCloudApigeeV1TraceConfig or error will be
24877// non-nil. Any non-2xx status code is an error. Response headers are in
24878// either *GoogleCloudApigeeV1TraceConfig.ServerResponse.Header or (if a
24879// response was returned at all) in error.(*googleapi.Error).Header. Use
24880// googleapi.IsNotModified to check whether the returned error was
24881// because http.StatusNotModified was returned.
24882func (c *OrganizationsEnvironmentsGetTraceConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TraceConfig, error) {
24883	gensupport.SetOptions(c.urlParams_, opts...)
24884	res, err := c.doRequest("json")
24885	if res != nil && res.StatusCode == http.StatusNotModified {
24886		if res.Body != nil {
24887			res.Body.Close()
24888		}
24889		return nil, &googleapi.Error{
24890			Code:   res.StatusCode,
24891			Header: res.Header,
24892		}
24893	}
24894	if err != nil {
24895		return nil, err
24896	}
24897	defer googleapi.CloseBody(res)
24898	if err := googleapi.CheckResponse(res); err != nil {
24899		return nil, err
24900	}
24901	ret := &GoogleCloudApigeeV1TraceConfig{
24902		ServerResponse: googleapi.ServerResponse{
24903			Header:         res.Header,
24904			HTTPStatusCode: res.StatusCode,
24905		},
24906	}
24907	target := &ret
24908	if err := gensupport.DecodeResponse(target, res); err != nil {
24909		return nil, err
24910	}
24911	return ret, nil
24912	// {
24913	//   "description": "Get distributed trace configuration in an environment.",
24914	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/traceConfig",
24915	//   "httpMethod": "GET",
24916	//   "id": "apigee.organizations.environments.getTraceConfig",
24917	//   "parameterOrder": [
24918	//     "name"
24919	//   ],
24920	//   "parameters": {
24921	//     "name": {
24922	//       "description": "Required. Name of the trace configuration. Use the following structure in your request: \"organizations/*/environments/*/traceConfig\".",
24923	//       "location": "path",
24924	//       "pattern": "^organizations/[^/]+/environments/[^/]+/traceConfig$",
24925	//       "required": true,
24926	//       "type": "string"
24927	//     }
24928	//   },
24929	//   "path": "v1/{+name}",
24930	//   "response": {
24931	//     "$ref": "GoogleCloudApigeeV1TraceConfig"
24932	//   },
24933	//   "scopes": [
24934	//     "https://www.googleapis.com/auth/cloud-platform"
24935	//   ]
24936	// }
24937
24938}
24939
24940// method id "apigee.organizations.environments.setIamPolicy":
24941
24942type OrganizationsEnvironmentsSetIamPolicyCall struct {
24943	s                              *Service
24944	resource                       string
24945	googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest
24946	urlParams_                     gensupport.URLParams
24947	ctx_                           context.Context
24948	header_                        http.Header
24949}
24950
24951// SetIamPolicy: Sets the IAM policy on an environment, if the policy
24952// already exists it will be replaced. For more information, see Manage
24953// users, roles, and permissions using the API
24954// (https://cloud.google.com/apigee/docs/api-platform/system-administration/manage-users-roles).
24955// You must have the `apigee.environments.setIamPolicy` permission to
24956// call this API.
24957//
24958// - resource: REQUIRED: The resource for which the policy is being
24959//   specified. See the operation documentation for the appropriate
24960//   value for this field.
24961func (r *OrganizationsEnvironmentsService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *OrganizationsEnvironmentsSetIamPolicyCall {
24962	c := &OrganizationsEnvironmentsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24963	c.resource = resource
24964	c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest
24965	return c
24966}
24967
24968// Fields allows partial responses to be retrieved. See
24969// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
24970// for more information.
24971func (c *OrganizationsEnvironmentsSetIamPolicyCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSetIamPolicyCall {
24972	c.urlParams_.Set("fields", googleapi.CombineFields(s))
24973	return c
24974}
24975
24976// Context sets the context to be used in this call's Do method. Any
24977// pending HTTP request will be aborted if the provided context is
24978// canceled.
24979func (c *OrganizationsEnvironmentsSetIamPolicyCall) Context(ctx context.Context) *OrganizationsEnvironmentsSetIamPolicyCall {
24980	c.ctx_ = ctx
24981	return c
24982}
24983
24984// Header returns an http.Header that can be modified by the caller to
24985// add HTTP headers to the request.
24986func (c *OrganizationsEnvironmentsSetIamPolicyCall) Header() http.Header {
24987	if c.header_ == nil {
24988		c.header_ = make(http.Header)
24989	}
24990	return c.header_
24991}
24992
24993func (c *OrganizationsEnvironmentsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
24994	reqHeaders := make(http.Header)
24995	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
24996	for k, v := range c.header_ {
24997		reqHeaders[k] = v
24998	}
24999	reqHeaders.Set("User-Agent", c.s.userAgent())
25000	var body io.Reader = nil
25001	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest)
25002	if err != nil {
25003		return nil, err
25004	}
25005	reqHeaders.Set("Content-Type", "application/json")
25006	c.urlParams_.Set("alt", alt)
25007	c.urlParams_.Set("prettyPrint", "false")
25008	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
25009	urls += "?" + c.urlParams_.Encode()
25010	req, err := http.NewRequest("POST", urls, body)
25011	if err != nil {
25012		return nil, err
25013	}
25014	req.Header = reqHeaders
25015	googleapi.Expand(req.URL, map[string]string{
25016		"resource": c.resource,
25017	})
25018	return gensupport.SendRequest(c.ctx_, c.s.client, req)
25019}
25020
25021// Do executes the "apigee.organizations.environments.setIamPolicy" call.
25022// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any
25023// non-2xx status code is an error. Response headers are in either
25024// *GoogleIamV1Policy.ServerResponse.Header or (if a response was
25025// returned at all) in error.(*googleapi.Error).Header. Use
25026// googleapi.IsNotModified to check whether the returned error was
25027// because http.StatusNotModified was returned.
25028func (c *OrganizationsEnvironmentsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
25029	gensupport.SetOptions(c.urlParams_, opts...)
25030	res, err := c.doRequest("json")
25031	if res != nil && res.StatusCode == http.StatusNotModified {
25032		if res.Body != nil {
25033			res.Body.Close()
25034		}
25035		return nil, &googleapi.Error{
25036			Code:   res.StatusCode,
25037			Header: res.Header,
25038		}
25039	}
25040	if err != nil {
25041		return nil, err
25042	}
25043	defer googleapi.CloseBody(res)
25044	if err := googleapi.CheckResponse(res); err != nil {
25045		return nil, err
25046	}
25047	ret := &GoogleIamV1Policy{
25048		ServerResponse: googleapi.ServerResponse{
25049			Header:         res.Header,
25050			HTTPStatusCode: res.StatusCode,
25051		},
25052	}
25053	target := &ret
25054	if err := gensupport.DecodeResponse(target, res); err != nil {
25055		return nil, err
25056	}
25057	return ret, nil
25058	// {
25059	//   "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.",
25060	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}:setIamPolicy",
25061	//   "httpMethod": "POST",
25062	//   "id": "apigee.organizations.environments.setIamPolicy",
25063	//   "parameterOrder": [
25064	//     "resource"
25065	//   ],
25066	//   "parameters": {
25067	//     "resource": {
25068	//       "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.",
25069	//       "location": "path",
25070	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
25071	//       "required": true,
25072	//       "type": "string"
25073	//     }
25074	//   },
25075	//   "path": "v1/{+resource}:setIamPolicy",
25076	//   "request": {
25077	//     "$ref": "GoogleIamV1SetIamPolicyRequest"
25078	//   },
25079	//   "response": {
25080	//     "$ref": "GoogleIamV1Policy"
25081	//   },
25082	//   "scopes": [
25083	//     "https://www.googleapis.com/auth/cloud-platform"
25084	//   ]
25085	// }
25086
25087}
25088
25089// method id "apigee.organizations.environments.subscribe":
25090
25091type OrganizationsEnvironmentsSubscribeCall struct {
25092	s          *Service
25093	parent     string
25094	urlParams_ gensupport.URLParams
25095	ctx_       context.Context
25096	header_    http.Header
25097}
25098
25099// Subscribe: Creates a subscription for the environment's Pub/Sub
25100// topic. The server will assign a random name for this subscription.
25101// The "name" and "push_config" must *not* be specified.
25102//
25103// - parent: Name of the environment. Use the following structure in
25104//   your request: `organizations/{org}/environments/{env}`.
25105func (r *OrganizationsEnvironmentsService) Subscribe(parent string) *OrganizationsEnvironmentsSubscribeCall {
25106	c := &OrganizationsEnvironmentsSubscribeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25107	c.parent = parent
25108	return c
25109}
25110
25111// Fields allows partial responses to be retrieved. See
25112// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
25113// for more information.
25114func (c *OrganizationsEnvironmentsSubscribeCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSubscribeCall {
25115	c.urlParams_.Set("fields", googleapi.CombineFields(s))
25116	return c
25117}
25118
25119// Context sets the context to be used in this call's Do method. Any
25120// pending HTTP request will be aborted if the provided context is
25121// canceled.
25122func (c *OrganizationsEnvironmentsSubscribeCall) Context(ctx context.Context) *OrganizationsEnvironmentsSubscribeCall {
25123	c.ctx_ = ctx
25124	return c
25125}
25126
25127// Header returns an http.Header that can be modified by the caller to
25128// add HTTP headers to the request.
25129func (c *OrganizationsEnvironmentsSubscribeCall) Header() http.Header {
25130	if c.header_ == nil {
25131		c.header_ = make(http.Header)
25132	}
25133	return c.header_
25134}
25135
25136func (c *OrganizationsEnvironmentsSubscribeCall) doRequest(alt string) (*http.Response, error) {
25137	reqHeaders := make(http.Header)
25138	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
25139	for k, v := range c.header_ {
25140		reqHeaders[k] = v
25141	}
25142	reqHeaders.Set("User-Agent", c.s.userAgent())
25143	var body io.Reader = nil
25144	c.urlParams_.Set("alt", alt)
25145	c.urlParams_.Set("prettyPrint", "false")
25146	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}:subscribe")
25147	urls += "?" + c.urlParams_.Encode()
25148	req, err := http.NewRequest("POST", urls, body)
25149	if err != nil {
25150		return nil, err
25151	}
25152	req.Header = reqHeaders
25153	googleapi.Expand(req.URL, map[string]string{
25154		"parent": c.parent,
25155	})
25156	return gensupport.SendRequest(c.ctx_, c.s.client, req)
25157}
25158
25159// Do executes the "apigee.organizations.environments.subscribe" call.
25160// Exactly one of *GoogleCloudApigeeV1Subscription or error will be
25161// non-nil. Any non-2xx status code is an error. Response headers are in
25162// either *GoogleCloudApigeeV1Subscription.ServerResponse.Header or (if
25163// a response was returned at all) in error.(*googleapi.Error).Header.
25164// Use googleapi.IsNotModified to check whether the returned error was
25165// because http.StatusNotModified was returned.
25166func (c *OrganizationsEnvironmentsSubscribeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Subscription, error) {
25167	gensupport.SetOptions(c.urlParams_, opts...)
25168	res, err := c.doRequest("json")
25169	if res != nil && res.StatusCode == http.StatusNotModified {
25170		if res.Body != nil {
25171			res.Body.Close()
25172		}
25173		return nil, &googleapi.Error{
25174			Code:   res.StatusCode,
25175			Header: res.Header,
25176		}
25177	}
25178	if err != nil {
25179		return nil, err
25180	}
25181	defer googleapi.CloseBody(res)
25182	if err := googleapi.CheckResponse(res); err != nil {
25183		return nil, err
25184	}
25185	ret := &GoogleCloudApigeeV1Subscription{
25186		ServerResponse: googleapi.ServerResponse{
25187			Header:         res.Header,
25188			HTTPStatusCode: res.StatusCode,
25189		},
25190	}
25191	target := &ret
25192	if err := gensupport.DecodeResponse(target, res); err != nil {
25193		return nil, err
25194	}
25195	return ret, nil
25196	// {
25197	//   "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.",
25198	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}:subscribe",
25199	//   "httpMethod": "POST",
25200	//   "id": "apigee.organizations.environments.subscribe",
25201	//   "parameterOrder": [
25202	//     "parent"
25203	//   ],
25204	//   "parameters": {
25205	//     "parent": {
25206	//       "description": "Required. Name of the environment. Use the following structure in your request: `organizations/{org}/environments/{env}`",
25207	//       "location": "path",
25208	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
25209	//       "required": true,
25210	//       "type": "string"
25211	//     }
25212	//   },
25213	//   "path": "v1/{+parent}:subscribe",
25214	//   "response": {
25215	//     "$ref": "GoogleCloudApigeeV1Subscription"
25216	//   },
25217	//   "scopes": [
25218	//     "https://www.googleapis.com/auth/cloud-platform"
25219	//   ]
25220	// }
25221
25222}
25223
25224// method id "apigee.organizations.environments.testIamPermissions":
25225
25226type OrganizationsEnvironmentsTestIamPermissionsCall struct {
25227	s                                    *Service
25228	resource                             string
25229	googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest
25230	urlParams_                           gensupport.URLParams
25231	ctx_                                 context.Context
25232	header_                              http.Header
25233}
25234
25235// TestIamPermissions: Tests the permissions of a user on an
25236// environment, and returns a subset of permissions that the user has on
25237// the environment. If the environment does not exist, an empty
25238// permission set is returned (a NOT_FOUND error is not returned).
25239//
25240// - resource: REQUIRED: The resource for which the policy detail is
25241//   being requested. See the operation documentation for the
25242//   appropriate value for this field.
25243func (r *OrganizationsEnvironmentsService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *OrganizationsEnvironmentsTestIamPermissionsCall {
25244	c := &OrganizationsEnvironmentsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25245	c.resource = resource
25246	c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest
25247	return c
25248}
25249
25250// Fields allows partial responses to be retrieved. See
25251// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
25252// for more information.
25253func (c *OrganizationsEnvironmentsTestIamPermissionsCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTestIamPermissionsCall {
25254	c.urlParams_.Set("fields", googleapi.CombineFields(s))
25255	return c
25256}
25257
25258// Context sets the context to be used in this call's Do method. Any
25259// pending HTTP request will be aborted if the provided context is
25260// canceled.
25261func (c *OrganizationsEnvironmentsTestIamPermissionsCall) Context(ctx context.Context) *OrganizationsEnvironmentsTestIamPermissionsCall {
25262	c.ctx_ = ctx
25263	return c
25264}
25265
25266// Header returns an http.Header that can be modified by the caller to
25267// add HTTP headers to the request.
25268func (c *OrganizationsEnvironmentsTestIamPermissionsCall) Header() http.Header {
25269	if c.header_ == nil {
25270		c.header_ = make(http.Header)
25271	}
25272	return c.header_
25273}
25274
25275func (c *OrganizationsEnvironmentsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
25276	reqHeaders := make(http.Header)
25277	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
25278	for k, v := range c.header_ {
25279		reqHeaders[k] = v
25280	}
25281	reqHeaders.Set("User-Agent", c.s.userAgent())
25282	var body io.Reader = nil
25283	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest)
25284	if err != nil {
25285		return nil, err
25286	}
25287	reqHeaders.Set("Content-Type", "application/json")
25288	c.urlParams_.Set("alt", alt)
25289	c.urlParams_.Set("prettyPrint", "false")
25290	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
25291	urls += "?" + c.urlParams_.Encode()
25292	req, err := http.NewRequest("POST", urls, body)
25293	if err != nil {
25294		return nil, err
25295	}
25296	req.Header = reqHeaders
25297	googleapi.Expand(req.URL, map[string]string{
25298		"resource": c.resource,
25299	})
25300	return gensupport.SendRequest(c.ctx_, c.s.client, req)
25301}
25302
25303// Do executes the "apigee.organizations.environments.testIamPermissions" call.
25304// Exactly one of *GoogleIamV1TestIamPermissionsResponse or error will
25305// be non-nil. Any non-2xx status code is an error. Response headers are
25306// in either
25307// *GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if a
25308// response was returned at all) in error.(*googleapi.Error).Header. Use
25309// googleapi.IsNotModified to check whether the returned error was
25310// because http.StatusNotModified was returned.
25311func (c *OrganizationsEnvironmentsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) {
25312	gensupport.SetOptions(c.urlParams_, opts...)
25313	res, err := c.doRequest("json")
25314	if res != nil && res.StatusCode == http.StatusNotModified {
25315		if res.Body != nil {
25316			res.Body.Close()
25317		}
25318		return nil, &googleapi.Error{
25319			Code:   res.StatusCode,
25320			Header: res.Header,
25321		}
25322	}
25323	if err != nil {
25324		return nil, err
25325	}
25326	defer googleapi.CloseBody(res)
25327	if err := googleapi.CheckResponse(res); err != nil {
25328		return nil, err
25329	}
25330	ret := &GoogleIamV1TestIamPermissionsResponse{
25331		ServerResponse: googleapi.ServerResponse{
25332			Header:         res.Header,
25333			HTTPStatusCode: res.StatusCode,
25334		},
25335	}
25336	target := &ret
25337	if err := gensupport.DecodeResponse(target, res); err != nil {
25338		return nil, err
25339	}
25340	return ret, nil
25341	// {
25342	//   "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).",
25343	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}:testIamPermissions",
25344	//   "httpMethod": "POST",
25345	//   "id": "apigee.organizations.environments.testIamPermissions",
25346	//   "parameterOrder": [
25347	//     "resource"
25348	//   ],
25349	//   "parameters": {
25350	//     "resource": {
25351	//       "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.",
25352	//       "location": "path",
25353	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
25354	//       "required": true,
25355	//       "type": "string"
25356	//     }
25357	//   },
25358	//   "path": "v1/{+resource}:testIamPermissions",
25359	//   "request": {
25360	//     "$ref": "GoogleIamV1TestIamPermissionsRequest"
25361	//   },
25362	//   "response": {
25363	//     "$ref": "GoogleIamV1TestIamPermissionsResponse"
25364	//   },
25365	//   "scopes": [
25366	//     "https://www.googleapis.com/auth/cloud-platform"
25367	//   ]
25368	// }
25369
25370}
25371
25372// method id "apigee.organizations.environments.unsubscribe":
25373
25374type OrganizationsEnvironmentsUnsubscribeCall struct {
25375	s                               *Service
25376	parent                          string
25377	googlecloudapigeev1subscription *GoogleCloudApigeeV1Subscription
25378	urlParams_                      gensupport.URLParams
25379	ctx_                            context.Context
25380	header_                         http.Header
25381}
25382
25383// Unsubscribe: Deletes a subscription for the environment's Pub/Sub
25384// topic.
25385//
25386// - parent: Name of the environment. Use the following structure in
25387//   your request: `organizations/{org}/environments/{env}`.
25388func (r *OrganizationsEnvironmentsService) Unsubscribe(parent string, googlecloudapigeev1subscription *GoogleCloudApigeeV1Subscription) *OrganizationsEnvironmentsUnsubscribeCall {
25389	c := &OrganizationsEnvironmentsUnsubscribeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25390	c.parent = parent
25391	c.googlecloudapigeev1subscription = googlecloudapigeev1subscription
25392	return c
25393}
25394
25395// Fields allows partial responses to be retrieved. See
25396// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
25397// for more information.
25398func (c *OrganizationsEnvironmentsUnsubscribeCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsUnsubscribeCall {
25399	c.urlParams_.Set("fields", googleapi.CombineFields(s))
25400	return c
25401}
25402
25403// Context sets the context to be used in this call's Do method. Any
25404// pending HTTP request will be aborted if the provided context is
25405// canceled.
25406func (c *OrganizationsEnvironmentsUnsubscribeCall) Context(ctx context.Context) *OrganizationsEnvironmentsUnsubscribeCall {
25407	c.ctx_ = ctx
25408	return c
25409}
25410
25411// Header returns an http.Header that can be modified by the caller to
25412// add HTTP headers to the request.
25413func (c *OrganizationsEnvironmentsUnsubscribeCall) Header() http.Header {
25414	if c.header_ == nil {
25415		c.header_ = make(http.Header)
25416	}
25417	return c.header_
25418}
25419
25420func (c *OrganizationsEnvironmentsUnsubscribeCall) doRequest(alt string) (*http.Response, error) {
25421	reqHeaders := make(http.Header)
25422	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
25423	for k, v := range c.header_ {
25424		reqHeaders[k] = v
25425	}
25426	reqHeaders.Set("User-Agent", c.s.userAgent())
25427	var body io.Reader = nil
25428	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1subscription)
25429	if err != nil {
25430		return nil, err
25431	}
25432	reqHeaders.Set("Content-Type", "application/json")
25433	c.urlParams_.Set("alt", alt)
25434	c.urlParams_.Set("prettyPrint", "false")
25435	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}:unsubscribe")
25436	urls += "?" + c.urlParams_.Encode()
25437	req, err := http.NewRequest("POST", urls, body)
25438	if err != nil {
25439		return nil, err
25440	}
25441	req.Header = reqHeaders
25442	googleapi.Expand(req.URL, map[string]string{
25443		"parent": c.parent,
25444	})
25445	return gensupport.SendRequest(c.ctx_, c.s.client, req)
25446}
25447
25448// Do executes the "apigee.organizations.environments.unsubscribe" call.
25449// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
25450// non-2xx status code is an error. Response headers are in either
25451// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
25452// returned at all) in error.(*googleapi.Error).Header. Use
25453// googleapi.IsNotModified to check whether the returned error was
25454// because http.StatusNotModified was returned.
25455func (c *OrganizationsEnvironmentsUnsubscribeCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
25456	gensupport.SetOptions(c.urlParams_, opts...)
25457	res, err := c.doRequest("json")
25458	if res != nil && res.StatusCode == http.StatusNotModified {
25459		if res.Body != nil {
25460			res.Body.Close()
25461		}
25462		return nil, &googleapi.Error{
25463			Code:   res.StatusCode,
25464			Header: res.Header,
25465		}
25466	}
25467	if err != nil {
25468		return nil, err
25469	}
25470	defer googleapi.CloseBody(res)
25471	if err := googleapi.CheckResponse(res); err != nil {
25472		return nil, err
25473	}
25474	ret := &GoogleProtobufEmpty{
25475		ServerResponse: googleapi.ServerResponse{
25476			Header:         res.Header,
25477			HTTPStatusCode: res.StatusCode,
25478		},
25479	}
25480	target := &ret
25481	if err := gensupport.DecodeResponse(target, res); err != nil {
25482		return nil, err
25483	}
25484	return ret, nil
25485	// {
25486	//   "description": "Deletes a subscription for the environment's Pub/Sub topic.",
25487	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}:unsubscribe",
25488	//   "httpMethod": "POST",
25489	//   "id": "apigee.organizations.environments.unsubscribe",
25490	//   "parameterOrder": [
25491	//     "parent"
25492	//   ],
25493	//   "parameters": {
25494	//     "parent": {
25495	//       "description": "Required. Name of the environment. Use the following structure in your request: `organizations/{org}/environments/{env}`",
25496	//       "location": "path",
25497	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
25498	//       "required": true,
25499	//       "type": "string"
25500	//     }
25501	//   },
25502	//   "path": "v1/{+parent}:unsubscribe",
25503	//   "request": {
25504	//     "$ref": "GoogleCloudApigeeV1Subscription"
25505	//   },
25506	//   "response": {
25507	//     "$ref": "GoogleProtobufEmpty"
25508	//   },
25509	//   "scopes": [
25510	//     "https://www.googleapis.com/auth/cloud-platform"
25511	//   ]
25512	// }
25513
25514}
25515
25516// method id "apigee.organizations.environments.update":
25517
25518type OrganizationsEnvironmentsUpdateCall struct {
25519	s                              *Service
25520	name                           string
25521	googlecloudapigeev1environment *GoogleCloudApigeeV1Environment
25522	urlParams_                     gensupport.URLParams
25523	ctx_                           context.Context
25524	header_                        http.Header
25525}
25526
25527// Update: Updates an existing environment. When updating properties,
25528// you must pass all existing properties to the API, even if they are
25529// not being changed. If you omit properties from the payload, the
25530// properties are removed. To get the current list of properties for the
25531// environment, use the Get Environment API (get).
25532//
25533// - name: Name of the environment. Use the following structure in your
25534//   request: `organizations/{org}/environments/{env}`.
25535func (r *OrganizationsEnvironmentsService) Update(name string, googlecloudapigeev1environment *GoogleCloudApigeeV1Environment) *OrganizationsEnvironmentsUpdateCall {
25536	c := &OrganizationsEnvironmentsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25537	c.name = name
25538	c.googlecloudapigeev1environment = googlecloudapigeev1environment
25539	return c
25540}
25541
25542// Fields allows partial responses to be retrieved. See
25543// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
25544// for more information.
25545func (c *OrganizationsEnvironmentsUpdateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsUpdateCall {
25546	c.urlParams_.Set("fields", googleapi.CombineFields(s))
25547	return c
25548}
25549
25550// Context sets the context to be used in this call's Do method. Any
25551// pending HTTP request will be aborted if the provided context is
25552// canceled.
25553func (c *OrganizationsEnvironmentsUpdateCall) Context(ctx context.Context) *OrganizationsEnvironmentsUpdateCall {
25554	c.ctx_ = ctx
25555	return c
25556}
25557
25558// Header returns an http.Header that can be modified by the caller to
25559// add HTTP headers to the request.
25560func (c *OrganizationsEnvironmentsUpdateCall) Header() http.Header {
25561	if c.header_ == nil {
25562		c.header_ = make(http.Header)
25563	}
25564	return c.header_
25565}
25566
25567func (c *OrganizationsEnvironmentsUpdateCall) doRequest(alt string) (*http.Response, error) {
25568	reqHeaders := make(http.Header)
25569	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
25570	for k, v := range c.header_ {
25571		reqHeaders[k] = v
25572	}
25573	reqHeaders.Set("User-Agent", c.s.userAgent())
25574	var body io.Reader = nil
25575	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1environment)
25576	if err != nil {
25577		return nil, err
25578	}
25579	reqHeaders.Set("Content-Type", "application/json")
25580	c.urlParams_.Set("alt", alt)
25581	c.urlParams_.Set("prettyPrint", "false")
25582	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
25583	urls += "?" + c.urlParams_.Encode()
25584	req, err := http.NewRequest("PUT", urls, body)
25585	if err != nil {
25586		return nil, err
25587	}
25588	req.Header = reqHeaders
25589	googleapi.Expand(req.URL, map[string]string{
25590		"name": c.name,
25591	})
25592	return gensupport.SendRequest(c.ctx_, c.s.client, req)
25593}
25594
25595// Do executes the "apigee.organizations.environments.update" call.
25596// Exactly one of *GoogleCloudApigeeV1Environment or error will be
25597// non-nil. Any non-2xx status code is an error. Response headers are in
25598// either *GoogleCloudApigeeV1Environment.ServerResponse.Header or (if a
25599// response was returned at all) in error.(*googleapi.Error).Header. Use
25600// googleapi.IsNotModified to check whether the returned error was
25601// because http.StatusNotModified was returned.
25602func (c *OrganizationsEnvironmentsUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Environment, error) {
25603	gensupport.SetOptions(c.urlParams_, opts...)
25604	res, err := c.doRequest("json")
25605	if res != nil && res.StatusCode == http.StatusNotModified {
25606		if res.Body != nil {
25607			res.Body.Close()
25608		}
25609		return nil, &googleapi.Error{
25610			Code:   res.StatusCode,
25611			Header: res.Header,
25612		}
25613	}
25614	if err != nil {
25615		return nil, err
25616	}
25617	defer googleapi.CloseBody(res)
25618	if err := googleapi.CheckResponse(res); err != nil {
25619		return nil, err
25620	}
25621	ret := &GoogleCloudApigeeV1Environment{
25622		ServerResponse: googleapi.ServerResponse{
25623			Header:         res.Header,
25624			HTTPStatusCode: res.StatusCode,
25625		},
25626	}
25627	target := &ret
25628	if err := gensupport.DecodeResponse(target, res); err != nil {
25629		return nil, err
25630	}
25631	return ret, nil
25632	// {
25633	//   "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).",
25634	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}",
25635	//   "httpMethod": "PUT",
25636	//   "id": "apigee.organizations.environments.update",
25637	//   "parameterOrder": [
25638	//     "name"
25639	//   ],
25640	//   "parameters": {
25641	//     "name": {
25642	//       "description": "Required. Name of the environment. Use the following structure in your request: `organizations/{org}/environments/{env}`",
25643	//       "location": "path",
25644	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
25645	//       "required": true,
25646	//       "type": "string"
25647	//     }
25648	//   },
25649	//   "path": "v1/{+name}",
25650	//   "request": {
25651	//     "$ref": "GoogleCloudApigeeV1Environment"
25652	//   },
25653	//   "response": {
25654	//     "$ref": "GoogleCloudApigeeV1Environment"
25655	//   },
25656	//   "scopes": [
25657	//     "https://www.googleapis.com/auth/cloud-platform"
25658	//   ]
25659	// }
25660
25661}
25662
25663// method id "apigee.organizations.environments.updateDebugmask":
25664
25665type OrganizationsEnvironmentsUpdateDebugmaskCall struct {
25666	s                            *Service
25667	name                         string
25668	googlecloudapigeev1debugmask *GoogleCloudApigeeV1DebugMask
25669	urlParams_                   gensupport.URLParams
25670	ctx_                         context.Context
25671	header_                      http.Header
25672}
25673
25674// UpdateDebugmask: Updates the debug mask singleton resource for an
25675// environment.
25676//
25677// - name: Name of the debug mask.
25678func (r *OrganizationsEnvironmentsService) UpdateDebugmask(name string, googlecloudapigeev1debugmask *GoogleCloudApigeeV1DebugMask) *OrganizationsEnvironmentsUpdateDebugmaskCall {
25679	c := &OrganizationsEnvironmentsUpdateDebugmaskCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25680	c.name = name
25681	c.googlecloudapigeev1debugmask = googlecloudapigeev1debugmask
25682	return c
25683}
25684
25685// ReplaceRepeatedFields sets the optional parameter
25686// "replaceRepeatedFields": Boolean flag that specifies whether to
25687// replace existing values in the debug mask when doing an update. Set
25688// to true to replace existing values. The default behavior is to append
25689// the values (false).
25690func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) ReplaceRepeatedFields(replaceRepeatedFields bool) *OrganizationsEnvironmentsUpdateDebugmaskCall {
25691	c.urlParams_.Set("replaceRepeatedFields", fmt.Sprint(replaceRepeatedFields))
25692	return c
25693}
25694
25695// UpdateMask sets the optional parameter "updateMask": Field debug mask
25696// to support partial updates.
25697func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) UpdateMask(updateMask string) *OrganizationsEnvironmentsUpdateDebugmaskCall {
25698	c.urlParams_.Set("updateMask", updateMask)
25699	return c
25700}
25701
25702// Fields allows partial responses to be retrieved. See
25703// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
25704// for more information.
25705func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsUpdateDebugmaskCall {
25706	c.urlParams_.Set("fields", googleapi.CombineFields(s))
25707	return c
25708}
25709
25710// Context sets the context to be used in this call's Do method. Any
25711// pending HTTP request will be aborted if the provided context is
25712// canceled.
25713func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) Context(ctx context.Context) *OrganizationsEnvironmentsUpdateDebugmaskCall {
25714	c.ctx_ = ctx
25715	return c
25716}
25717
25718// Header returns an http.Header that can be modified by the caller to
25719// add HTTP headers to the request.
25720func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) Header() http.Header {
25721	if c.header_ == nil {
25722		c.header_ = make(http.Header)
25723	}
25724	return c.header_
25725}
25726
25727func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) doRequest(alt string) (*http.Response, error) {
25728	reqHeaders := make(http.Header)
25729	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
25730	for k, v := range c.header_ {
25731		reqHeaders[k] = v
25732	}
25733	reqHeaders.Set("User-Agent", c.s.userAgent())
25734	var body io.Reader = nil
25735	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1debugmask)
25736	if err != nil {
25737		return nil, err
25738	}
25739	reqHeaders.Set("Content-Type", "application/json")
25740	c.urlParams_.Set("alt", alt)
25741	c.urlParams_.Set("prettyPrint", "false")
25742	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
25743	urls += "?" + c.urlParams_.Encode()
25744	req, err := http.NewRequest("PATCH", urls, body)
25745	if err != nil {
25746		return nil, err
25747	}
25748	req.Header = reqHeaders
25749	googleapi.Expand(req.URL, map[string]string{
25750		"name": c.name,
25751	})
25752	return gensupport.SendRequest(c.ctx_, c.s.client, req)
25753}
25754
25755// Do executes the "apigee.organizations.environments.updateDebugmask" call.
25756// Exactly one of *GoogleCloudApigeeV1DebugMask or error will be
25757// non-nil. Any non-2xx status code is an error. Response headers are in
25758// either *GoogleCloudApigeeV1DebugMask.ServerResponse.Header or (if a
25759// response was returned at all) in error.(*googleapi.Error).Header. Use
25760// googleapi.IsNotModified to check whether the returned error was
25761// because http.StatusNotModified was returned.
25762func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DebugMask, error) {
25763	gensupport.SetOptions(c.urlParams_, opts...)
25764	res, err := c.doRequest("json")
25765	if res != nil && res.StatusCode == http.StatusNotModified {
25766		if res.Body != nil {
25767			res.Body.Close()
25768		}
25769		return nil, &googleapi.Error{
25770			Code:   res.StatusCode,
25771			Header: res.Header,
25772		}
25773	}
25774	if err != nil {
25775		return nil, err
25776	}
25777	defer googleapi.CloseBody(res)
25778	if err := googleapi.CheckResponse(res); err != nil {
25779		return nil, err
25780	}
25781	ret := &GoogleCloudApigeeV1DebugMask{
25782		ServerResponse: googleapi.ServerResponse{
25783			Header:         res.Header,
25784			HTTPStatusCode: res.StatusCode,
25785		},
25786	}
25787	target := &ret
25788	if err := gensupport.DecodeResponse(target, res); err != nil {
25789		return nil, err
25790	}
25791	return ret, nil
25792	// {
25793	//   "description": "Updates the debug mask singleton resource for an environment.",
25794	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/debugmask",
25795	//   "httpMethod": "PATCH",
25796	//   "id": "apigee.organizations.environments.updateDebugmask",
25797	//   "parameterOrder": [
25798	//     "name"
25799	//   ],
25800	//   "parameters": {
25801	//     "name": {
25802	//       "description": "Name of the debug mask.",
25803	//       "location": "path",
25804	//       "pattern": "^organizations/[^/]+/environments/[^/]+/debugmask$",
25805	//       "required": true,
25806	//       "type": "string"
25807	//     },
25808	//     "replaceRepeatedFields": {
25809	//       "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).",
25810	//       "location": "query",
25811	//       "type": "boolean"
25812	//     },
25813	//     "updateMask": {
25814	//       "description": "Field debug mask to support partial updates.",
25815	//       "format": "google-fieldmask",
25816	//       "location": "query",
25817	//       "type": "string"
25818	//     }
25819	//   },
25820	//   "path": "v1/{+name}",
25821	//   "request": {
25822	//     "$ref": "GoogleCloudApigeeV1DebugMask"
25823	//   },
25824	//   "response": {
25825	//     "$ref": "GoogleCloudApigeeV1DebugMask"
25826	//   },
25827	//   "scopes": [
25828	//     "https://www.googleapis.com/auth/cloud-platform"
25829	//   ]
25830	// }
25831
25832}
25833
25834// method id "apigee.organizations.environments.updateEnvironment":
25835
25836type OrganizationsEnvironmentsUpdateEnvironmentCall struct {
25837	s                              *Service
25838	name                           string
25839	googlecloudapigeev1environment *GoogleCloudApigeeV1Environment
25840	urlParams_                     gensupport.URLParams
25841	ctx_                           context.Context
25842	header_                        http.Header
25843}
25844
25845// UpdateEnvironment: Updates an existing environment. When updating
25846// properties, you must pass all existing properties to the API, even if
25847// they are not being changed. If you omit properties from the payload,
25848// the properties are removed. To get the current list of properties for
25849// the environment, use the Get Environment API (get).
25850//
25851// - name: Name of the environment. Use the following structure in your
25852//   request: `organizations/{org}/environments/{env}`.
25853func (r *OrganizationsEnvironmentsService) UpdateEnvironment(name string, googlecloudapigeev1environment *GoogleCloudApigeeV1Environment) *OrganizationsEnvironmentsUpdateEnvironmentCall {
25854	c := &OrganizationsEnvironmentsUpdateEnvironmentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25855	c.name = name
25856	c.googlecloudapigeev1environment = googlecloudapigeev1environment
25857	return c
25858}
25859
25860// Fields allows partial responses to be retrieved. See
25861// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
25862// for more information.
25863func (c *OrganizationsEnvironmentsUpdateEnvironmentCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsUpdateEnvironmentCall {
25864	c.urlParams_.Set("fields", googleapi.CombineFields(s))
25865	return c
25866}
25867
25868// Context sets the context to be used in this call's Do method. Any
25869// pending HTTP request will be aborted if the provided context is
25870// canceled.
25871func (c *OrganizationsEnvironmentsUpdateEnvironmentCall) Context(ctx context.Context) *OrganizationsEnvironmentsUpdateEnvironmentCall {
25872	c.ctx_ = ctx
25873	return c
25874}
25875
25876// Header returns an http.Header that can be modified by the caller to
25877// add HTTP headers to the request.
25878func (c *OrganizationsEnvironmentsUpdateEnvironmentCall) Header() http.Header {
25879	if c.header_ == nil {
25880		c.header_ = make(http.Header)
25881	}
25882	return c.header_
25883}
25884
25885func (c *OrganizationsEnvironmentsUpdateEnvironmentCall) doRequest(alt string) (*http.Response, error) {
25886	reqHeaders := make(http.Header)
25887	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
25888	for k, v := range c.header_ {
25889		reqHeaders[k] = v
25890	}
25891	reqHeaders.Set("User-Agent", c.s.userAgent())
25892	var body io.Reader = nil
25893	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1environment)
25894	if err != nil {
25895		return nil, err
25896	}
25897	reqHeaders.Set("Content-Type", "application/json")
25898	c.urlParams_.Set("alt", alt)
25899	c.urlParams_.Set("prettyPrint", "false")
25900	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
25901	urls += "?" + c.urlParams_.Encode()
25902	req, err := http.NewRequest("POST", urls, body)
25903	if err != nil {
25904		return nil, err
25905	}
25906	req.Header = reqHeaders
25907	googleapi.Expand(req.URL, map[string]string{
25908		"name": c.name,
25909	})
25910	return gensupport.SendRequest(c.ctx_, c.s.client, req)
25911}
25912
25913// Do executes the "apigee.organizations.environments.updateEnvironment" call.
25914// Exactly one of *GoogleCloudApigeeV1Environment or error will be
25915// non-nil. Any non-2xx status code is an error. Response headers are in
25916// either *GoogleCloudApigeeV1Environment.ServerResponse.Header or (if a
25917// response was returned at all) in error.(*googleapi.Error).Header. Use
25918// googleapi.IsNotModified to check whether the returned error was
25919// because http.StatusNotModified was returned.
25920func (c *OrganizationsEnvironmentsUpdateEnvironmentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Environment, error) {
25921	gensupport.SetOptions(c.urlParams_, opts...)
25922	res, err := c.doRequest("json")
25923	if res != nil && res.StatusCode == http.StatusNotModified {
25924		if res.Body != nil {
25925			res.Body.Close()
25926		}
25927		return nil, &googleapi.Error{
25928			Code:   res.StatusCode,
25929			Header: res.Header,
25930		}
25931	}
25932	if err != nil {
25933		return nil, err
25934	}
25935	defer googleapi.CloseBody(res)
25936	if err := googleapi.CheckResponse(res); err != nil {
25937		return nil, err
25938	}
25939	ret := &GoogleCloudApigeeV1Environment{
25940		ServerResponse: googleapi.ServerResponse{
25941			Header:         res.Header,
25942			HTTPStatusCode: res.StatusCode,
25943		},
25944	}
25945	target := &ret
25946	if err := gensupport.DecodeResponse(target, res); err != nil {
25947		return nil, err
25948	}
25949	return ret, nil
25950	// {
25951	//   "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).",
25952	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}",
25953	//   "httpMethod": "POST",
25954	//   "id": "apigee.organizations.environments.updateEnvironment",
25955	//   "parameterOrder": [
25956	//     "name"
25957	//   ],
25958	//   "parameters": {
25959	//     "name": {
25960	//       "description": "Required. Name of the environment. Use the following structure in your request: `organizations/{org}/environments/{env}`",
25961	//       "location": "path",
25962	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
25963	//       "required": true,
25964	//       "type": "string"
25965	//     }
25966	//   },
25967	//   "path": "v1/{+name}",
25968	//   "request": {
25969	//     "$ref": "GoogleCloudApigeeV1Environment"
25970	//   },
25971	//   "response": {
25972	//     "$ref": "GoogleCloudApigeeV1Environment"
25973	//   },
25974	//   "scopes": [
25975	//     "https://www.googleapis.com/auth/cloud-platform"
25976	//   ]
25977	// }
25978
25979}
25980
25981// method id "apigee.organizations.environments.updateTraceConfig":
25982
25983type OrganizationsEnvironmentsUpdateTraceConfigCall struct {
25984	s                              *Service
25985	name                           string
25986	googlecloudapigeev1traceconfig *GoogleCloudApigeeV1TraceConfig
25987	urlParams_                     gensupport.URLParams
25988	ctx_                           context.Context
25989	header_                        http.Header
25990}
25991
25992// UpdateTraceConfig: Updates the trace configurations in an
25993// environment. Note that the repeated fields have replace semantics
25994// when included in the field mask and that they will be overwritten by
25995// the value of the fields in the request body.
25996//
25997// - name: Name of the trace configuration. Use the following structure
25998//   in your request: "organizations/*/environments/*/traceConfig".
25999func (r *OrganizationsEnvironmentsService) UpdateTraceConfig(name string, googlecloudapigeev1traceconfig *GoogleCloudApigeeV1TraceConfig) *OrganizationsEnvironmentsUpdateTraceConfigCall {
26000	c := &OrganizationsEnvironmentsUpdateTraceConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26001	c.name = name
26002	c.googlecloudapigeev1traceconfig = googlecloudapigeev1traceconfig
26003	return c
26004}
26005
26006// UpdateMask sets the optional parameter "updateMask": List of fields
26007// to be updated.
26008func (c *OrganizationsEnvironmentsUpdateTraceConfigCall) UpdateMask(updateMask string) *OrganizationsEnvironmentsUpdateTraceConfigCall {
26009	c.urlParams_.Set("updateMask", updateMask)
26010	return c
26011}
26012
26013// Fields allows partial responses to be retrieved. See
26014// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
26015// for more information.
26016func (c *OrganizationsEnvironmentsUpdateTraceConfigCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsUpdateTraceConfigCall {
26017	c.urlParams_.Set("fields", googleapi.CombineFields(s))
26018	return c
26019}
26020
26021// Context sets the context to be used in this call's Do method. Any
26022// pending HTTP request will be aborted if the provided context is
26023// canceled.
26024func (c *OrganizationsEnvironmentsUpdateTraceConfigCall) Context(ctx context.Context) *OrganizationsEnvironmentsUpdateTraceConfigCall {
26025	c.ctx_ = ctx
26026	return c
26027}
26028
26029// Header returns an http.Header that can be modified by the caller to
26030// add HTTP headers to the request.
26031func (c *OrganizationsEnvironmentsUpdateTraceConfigCall) Header() http.Header {
26032	if c.header_ == nil {
26033		c.header_ = make(http.Header)
26034	}
26035	return c.header_
26036}
26037
26038func (c *OrganizationsEnvironmentsUpdateTraceConfigCall) doRequest(alt string) (*http.Response, error) {
26039	reqHeaders := make(http.Header)
26040	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
26041	for k, v := range c.header_ {
26042		reqHeaders[k] = v
26043	}
26044	reqHeaders.Set("User-Agent", c.s.userAgent())
26045	var body io.Reader = nil
26046	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1traceconfig)
26047	if err != nil {
26048		return nil, err
26049	}
26050	reqHeaders.Set("Content-Type", "application/json")
26051	c.urlParams_.Set("alt", alt)
26052	c.urlParams_.Set("prettyPrint", "false")
26053	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
26054	urls += "?" + c.urlParams_.Encode()
26055	req, err := http.NewRequest("PATCH", urls, body)
26056	if err != nil {
26057		return nil, err
26058	}
26059	req.Header = reqHeaders
26060	googleapi.Expand(req.URL, map[string]string{
26061		"name": c.name,
26062	})
26063	return gensupport.SendRequest(c.ctx_, c.s.client, req)
26064}
26065
26066// Do executes the "apigee.organizations.environments.updateTraceConfig" call.
26067// Exactly one of *GoogleCloudApigeeV1TraceConfig or error will be
26068// non-nil. Any non-2xx status code is an error. Response headers are in
26069// either *GoogleCloudApigeeV1TraceConfig.ServerResponse.Header or (if a
26070// response was returned at all) in error.(*googleapi.Error).Header. Use
26071// googleapi.IsNotModified to check whether the returned error was
26072// because http.StatusNotModified was returned.
26073func (c *OrganizationsEnvironmentsUpdateTraceConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TraceConfig, error) {
26074	gensupport.SetOptions(c.urlParams_, opts...)
26075	res, err := c.doRequest("json")
26076	if res != nil && res.StatusCode == http.StatusNotModified {
26077		if res.Body != nil {
26078			res.Body.Close()
26079		}
26080		return nil, &googleapi.Error{
26081			Code:   res.StatusCode,
26082			Header: res.Header,
26083		}
26084	}
26085	if err != nil {
26086		return nil, err
26087	}
26088	defer googleapi.CloseBody(res)
26089	if err := googleapi.CheckResponse(res); err != nil {
26090		return nil, err
26091	}
26092	ret := &GoogleCloudApigeeV1TraceConfig{
26093		ServerResponse: googleapi.ServerResponse{
26094			Header:         res.Header,
26095			HTTPStatusCode: res.StatusCode,
26096		},
26097	}
26098	target := &ret
26099	if err := gensupport.DecodeResponse(target, res); err != nil {
26100		return nil, err
26101	}
26102	return ret, nil
26103	// {
26104	//   "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.",
26105	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/traceConfig",
26106	//   "httpMethod": "PATCH",
26107	//   "id": "apigee.organizations.environments.updateTraceConfig",
26108	//   "parameterOrder": [
26109	//     "name"
26110	//   ],
26111	//   "parameters": {
26112	//     "name": {
26113	//       "description": "Required. Name of the trace configuration. Use the following structure in your request: \"organizations/*/environments/*/traceConfig\".",
26114	//       "location": "path",
26115	//       "pattern": "^organizations/[^/]+/environments/[^/]+/traceConfig$",
26116	//       "required": true,
26117	//       "type": "string"
26118	//     },
26119	//     "updateMask": {
26120	//       "description": "List of fields to be updated.",
26121	//       "format": "google-fieldmask",
26122	//       "location": "query",
26123	//       "type": "string"
26124	//     }
26125	//   },
26126	//   "path": "v1/{+name}",
26127	//   "request": {
26128	//     "$ref": "GoogleCloudApigeeV1TraceConfig"
26129	//   },
26130	//   "response": {
26131	//     "$ref": "GoogleCloudApigeeV1TraceConfig"
26132	//   },
26133	//   "scopes": [
26134	//     "https://www.googleapis.com/auth/cloud-platform"
26135	//   ]
26136	// }
26137
26138}
26139
26140// method id "apigee.organizations.environments.analytics.admin.getSchemav2":
26141
26142type OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call struct {
26143	s            *Service
26144	name         string
26145	urlParams_   gensupport.URLParams
26146	ifNoneMatch_ string
26147	ctx_         context.Context
26148	header_      http.Header
26149}
26150
26151// GetSchemav2: Gets a list of metrics and dimensions that can be used
26152// to create analytics queries and reports. Each schema element contains
26153// the name of the field, its associated type, and a flag indicating
26154// whether it is a standard or custom field.
26155//
26156// - name: Path to the schema. Use the following structure in your
26157//   request:
26158//   `organizations/{org}/environments/{env}/analytics/admin/schemav2`.
26159func (r *OrganizationsEnvironmentsAnalyticsAdminService) GetSchemav2(name string) *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call {
26160	c := &OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call{s: r.s, urlParams_: make(gensupport.URLParams)}
26161	c.name = name
26162	return c
26163}
26164
26165// DisableCache sets the optional parameter "disableCache": Flag that
26166// specifies whether the schema is be read from the database or cache.
26167// Set to `true` to read the schema from the database. Defaults to
26168// cache.
26169func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) DisableCache(disableCache bool) *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call {
26170	c.urlParams_.Set("disableCache", fmt.Sprint(disableCache))
26171	return c
26172}
26173
26174// Type sets the optional parameter "type": Required. Name of the
26175// dataset for which you want to retrieve the schema. For example:
26176// `fact` or `agg_cus1`
26177func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) Type(type_ string) *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call {
26178	c.urlParams_.Set("type", type_)
26179	return c
26180}
26181
26182// Fields allows partial responses to be retrieved. See
26183// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
26184// for more information.
26185func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call {
26186	c.urlParams_.Set("fields", googleapi.CombineFields(s))
26187	return c
26188}
26189
26190// IfNoneMatch sets the optional parameter which makes the operation
26191// fail if the object's ETag matches the given value. This is useful for
26192// getting updates only after the object has changed since the last
26193// request. Use googleapi.IsNotModified to check whether the response
26194// error from Do is the result of In-None-Match.
26195func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call {
26196	c.ifNoneMatch_ = entityTag
26197	return c
26198}
26199
26200// Context sets the context to be used in this call's Do method. Any
26201// pending HTTP request will be aborted if the provided context is
26202// canceled.
26203func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) Context(ctx context.Context) *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call {
26204	c.ctx_ = ctx
26205	return c
26206}
26207
26208// Header returns an http.Header that can be modified by the caller to
26209// add HTTP headers to the request.
26210func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) Header() http.Header {
26211	if c.header_ == nil {
26212		c.header_ = make(http.Header)
26213	}
26214	return c.header_
26215}
26216
26217func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) doRequest(alt string) (*http.Response, error) {
26218	reqHeaders := make(http.Header)
26219	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
26220	for k, v := range c.header_ {
26221		reqHeaders[k] = v
26222	}
26223	reqHeaders.Set("User-Agent", c.s.userAgent())
26224	if c.ifNoneMatch_ != "" {
26225		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
26226	}
26227	var body io.Reader = nil
26228	c.urlParams_.Set("alt", alt)
26229	c.urlParams_.Set("prettyPrint", "false")
26230	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
26231	urls += "?" + c.urlParams_.Encode()
26232	req, err := http.NewRequest("GET", urls, body)
26233	if err != nil {
26234		return nil, err
26235	}
26236	req.Header = reqHeaders
26237	googleapi.Expand(req.URL, map[string]string{
26238		"name": c.name,
26239	})
26240	return gensupport.SendRequest(c.ctx_, c.s.client, req)
26241}
26242
26243// Do executes the "apigee.organizations.environments.analytics.admin.getSchemav2" call.
26244// Exactly one of *GoogleCloudApigeeV1Schema or error will be non-nil.
26245// Any non-2xx status code is an error. Response headers are in either
26246// *GoogleCloudApigeeV1Schema.ServerResponse.Header or (if a response
26247// was returned at all) in error.(*googleapi.Error).Header. Use
26248// googleapi.IsNotModified to check whether the returned error was
26249// because http.StatusNotModified was returned.
26250func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Schema, error) {
26251	gensupport.SetOptions(c.urlParams_, opts...)
26252	res, err := c.doRequest("json")
26253	if res != nil && res.StatusCode == http.StatusNotModified {
26254		if res.Body != nil {
26255			res.Body.Close()
26256		}
26257		return nil, &googleapi.Error{
26258			Code:   res.StatusCode,
26259			Header: res.Header,
26260		}
26261	}
26262	if err != nil {
26263		return nil, err
26264	}
26265	defer googleapi.CloseBody(res)
26266	if err := googleapi.CheckResponse(res); err != nil {
26267		return nil, err
26268	}
26269	ret := &GoogleCloudApigeeV1Schema{
26270		ServerResponse: googleapi.ServerResponse{
26271			Header:         res.Header,
26272			HTTPStatusCode: res.StatusCode,
26273		},
26274	}
26275	target := &ret
26276	if err := gensupport.DecodeResponse(target, res); err != nil {
26277		return nil, err
26278	}
26279	return ret, nil
26280	// {
26281	//   "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.",
26282	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/analytics/admin/schemav2",
26283	//   "httpMethod": "GET",
26284	//   "id": "apigee.organizations.environments.analytics.admin.getSchemav2",
26285	//   "parameterOrder": [
26286	//     "name"
26287	//   ],
26288	//   "parameters": {
26289	//     "disableCache": {
26290	//       "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.",
26291	//       "location": "query",
26292	//       "type": "boolean"
26293	//     },
26294	//     "name": {
26295	//       "description": "Required. Path to the schema. Use the following structure in your request: `organizations/{org}/environments/{env}/analytics/admin/schemav2`.",
26296	//       "location": "path",
26297	//       "pattern": "^organizations/[^/]+/environments/[^/]+/analytics/admin/schemav2$",
26298	//       "required": true,
26299	//       "type": "string"
26300	//     },
26301	//     "type": {
26302	//       "description": "Required. Name of the dataset for which you want to retrieve the schema. For example: `fact` or `agg_cus1`",
26303	//       "location": "query",
26304	//       "type": "string"
26305	//     }
26306	//   },
26307	//   "path": "v1/{+name}",
26308	//   "response": {
26309	//     "$ref": "GoogleCloudApigeeV1Schema"
26310	//   },
26311	//   "scopes": [
26312	//     "https://www.googleapis.com/auth/cloud-platform"
26313	//   ]
26314	// }
26315
26316}
26317
26318// method id "apigee.organizations.environments.analytics.exports.create":
26319
26320type OrganizationsEnvironmentsAnalyticsExportsCreateCall struct {
26321	s                                *Service
26322	parent                           string
26323	googlecloudapigeev1exportrequest *GoogleCloudApigeeV1ExportRequest
26324	urlParams_                       gensupport.URLParams
26325	ctx_                             context.Context
26326	header_                          http.Header
26327}
26328
26329// Create: Submit a data export job to be processed in the background.
26330// If the request is successful, the API returns a 201 status, a URI
26331// that can be used to retrieve the status of the export job, and the
26332// `state` value of "enqueued".
26333//
26334// - parent: Names of the parent organization and environment. Must be
26335//   of the form `organizations/{org}/environments/{env}`.
26336func (r *OrganizationsEnvironmentsAnalyticsExportsService) Create(parent string, googlecloudapigeev1exportrequest *GoogleCloudApigeeV1ExportRequest) *OrganizationsEnvironmentsAnalyticsExportsCreateCall {
26337	c := &OrganizationsEnvironmentsAnalyticsExportsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26338	c.parent = parent
26339	c.googlecloudapigeev1exportrequest = googlecloudapigeev1exportrequest
26340	return c
26341}
26342
26343// Fields allows partial responses to be retrieved. See
26344// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
26345// for more information.
26346func (c *OrganizationsEnvironmentsAnalyticsExportsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsAnalyticsExportsCreateCall {
26347	c.urlParams_.Set("fields", googleapi.CombineFields(s))
26348	return c
26349}
26350
26351// Context sets the context to be used in this call's Do method. Any
26352// pending HTTP request will be aborted if the provided context is
26353// canceled.
26354func (c *OrganizationsEnvironmentsAnalyticsExportsCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsAnalyticsExportsCreateCall {
26355	c.ctx_ = ctx
26356	return c
26357}
26358
26359// Header returns an http.Header that can be modified by the caller to
26360// add HTTP headers to the request.
26361func (c *OrganizationsEnvironmentsAnalyticsExportsCreateCall) Header() http.Header {
26362	if c.header_ == nil {
26363		c.header_ = make(http.Header)
26364	}
26365	return c.header_
26366}
26367
26368func (c *OrganizationsEnvironmentsAnalyticsExportsCreateCall) doRequest(alt string) (*http.Response, error) {
26369	reqHeaders := make(http.Header)
26370	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
26371	for k, v := range c.header_ {
26372		reqHeaders[k] = v
26373	}
26374	reqHeaders.Set("User-Agent", c.s.userAgent())
26375	var body io.Reader = nil
26376	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1exportrequest)
26377	if err != nil {
26378		return nil, err
26379	}
26380	reqHeaders.Set("Content-Type", "application/json")
26381	c.urlParams_.Set("alt", alt)
26382	c.urlParams_.Set("prettyPrint", "false")
26383	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/analytics/exports")
26384	urls += "?" + c.urlParams_.Encode()
26385	req, err := http.NewRequest("POST", urls, body)
26386	if err != nil {
26387		return nil, err
26388	}
26389	req.Header = reqHeaders
26390	googleapi.Expand(req.URL, map[string]string{
26391		"parent": c.parent,
26392	})
26393	return gensupport.SendRequest(c.ctx_, c.s.client, req)
26394}
26395
26396// Do executes the "apigee.organizations.environments.analytics.exports.create" call.
26397// Exactly one of *GoogleCloudApigeeV1Export or error will be non-nil.
26398// Any non-2xx status code is an error. Response headers are in either
26399// *GoogleCloudApigeeV1Export.ServerResponse.Header or (if a response
26400// was returned at all) in error.(*googleapi.Error).Header. Use
26401// googleapi.IsNotModified to check whether the returned error was
26402// because http.StatusNotModified was returned.
26403func (c *OrganizationsEnvironmentsAnalyticsExportsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Export, error) {
26404	gensupport.SetOptions(c.urlParams_, opts...)
26405	res, err := c.doRequest("json")
26406	if res != nil && res.StatusCode == http.StatusNotModified {
26407		if res.Body != nil {
26408			res.Body.Close()
26409		}
26410		return nil, &googleapi.Error{
26411			Code:   res.StatusCode,
26412			Header: res.Header,
26413		}
26414	}
26415	if err != nil {
26416		return nil, err
26417	}
26418	defer googleapi.CloseBody(res)
26419	if err := googleapi.CheckResponse(res); err != nil {
26420		return nil, err
26421	}
26422	ret := &GoogleCloudApigeeV1Export{
26423		ServerResponse: googleapi.ServerResponse{
26424			Header:         res.Header,
26425			HTTPStatusCode: res.StatusCode,
26426		},
26427	}
26428	target := &ret
26429	if err := gensupport.DecodeResponse(target, res); err != nil {
26430		return nil, err
26431	}
26432	return ret, nil
26433	// {
26434	//   "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\".",
26435	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/analytics/exports",
26436	//   "httpMethod": "POST",
26437	//   "id": "apigee.organizations.environments.analytics.exports.create",
26438	//   "parameterOrder": [
26439	//     "parent"
26440	//   ],
26441	//   "parameters": {
26442	//     "parent": {
26443	//       "description": "Required. Names of the parent organization and environment. Must be of the form `organizations/{org}/environments/{env}`.",
26444	//       "location": "path",
26445	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
26446	//       "required": true,
26447	//       "type": "string"
26448	//     }
26449	//   },
26450	//   "path": "v1/{+parent}/analytics/exports",
26451	//   "request": {
26452	//     "$ref": "GoogleCloudApigeeV1ExportRequest"
26453	//   },
26454	//   "response": {
26455	//     "$ref": "GoogleCloudApigeeV1Export"
26456	//   },
26457	//   "scopes": [
26458	//     "https://www.googleapis.com/auth/cloud-platform"
26459	//   ]
26460	// }
26461
26462}
26463
26464// method id "apigee.organizations.environments.analytics.exports.get":
26465
26466type OrganizationsEnvironmentsAnalyticsExportsGetCall struct {
26467	s            *Service
26468	name         string
26469	urlParams_   gensupport.URLParams
26470	ifNoneMatch_ string
26471	ctx_         context.Context
26472	header_      http.Header
26473}
26474
26475// Get: Gets the details and status of an analytics export job. If the
26476// export job is still in progress, its `state` is set to "running".
26477// After the export job has completed successfully, its `state` is set
26478// to "completed". If the export job fails, its `state` is set to
26479// `failed`.
26480//
26481// - name: Resource name of the export to get.
26482func (r *OrganizationsEnvironmentsAnalyticsExportsService) Get(name string) *OrganizationsEnvironmentsAnalyticsExportsGetCall {
26483	c := &OrganizationsEnvironmentsAnalyticsExportsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26484	c.name = name
26485	return c
26486}
26487
26488// Fields allows partial responses to be retrieved. See
26489// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
26490// for more information.
26491func (c *OrganizationsEnvironmentsAnalyticsExportsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsAnalyticsExportsGetCall {
26492	c.urlParams_.Set("fields", googleapi.CombineFields(s))
26493	return c
26494}
26495
26496// IfNoneMatch sets the optional parameter which makes the operation
26497// fail if the object's ETag matches the given value. This is useful for
26498// getting updates only after the object has changed since the last
26499// request. Use googleapi.IsNotModified to check whether the response
26500// error from Do is the result of In-None-Match.
26501func (c *OrganizationsEnvironmentsAnalyticsExportsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsAnalyticsExportsGetCall {
26502	c.ifNoneMatch_ = entityTag
26503	return c
26504}
26505
26506// Context sets the context to be used in this call's Do method. Any
26507// pending HTTP request will be aborted if the provided context is
26508// canceled.
26509func (c *OrganizationsEnvironmentsAnalyticsExportsGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsAnalyticsExportsGetCall {
26510	c.ctx_ = ctx
26511	return c
26512}
26513
26514// Header returns an http.Header that can be modified by the caller to
26515// add HTTP headers to the request.
26516func (c *OrganizationsEnvironmentsAnalyticsExportsGetCall) Header() http.Header {
26517	if c.header_ == nil {
26518		c.header_ = make(http.Header)
26519	}
26520	return c.header_
26521}
26522
26523func (c *OrganizationsEnvironmentsAnalyticsExportsGetCall) doRequest(alt string) (*http.Response, error) {
26524	reqHeaders := make(http.Header)
26525	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
26526	for k, v := range c.header_ {
26527		reqHeaders[k] = v
26528	}
26529	reqHeaders.Set("User-Agent", c.s.userAgent())
26530	if c.ifNoneMatch_ != "" {
26531		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
26532	}
26533	var body io.Reader = nil
26534	c.urlParams_.Set("alt", alt)
26535	c.urlParams_.Set("prettyPrint", "false")
26536	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
26537	urls += "?" + c.urlParams_.Encode()
26538	req, err := http.NewRequest("GET", urls, body)
26539	if err != nil {
26540		return nil, err
26541	}
26542	req.Header = reqHeaders
26543	googleapi.Expand(req.URL, map[string]string{
26544		"name": c.name,
26545	})
26546	return gensupport.SendRequest(c.ctx_, c.s.client, req)
26547}
26548
26549// Do executes the "apigee.organizations.environments.analytics.exports.get" call.
26550// Exactly one of *GoogleCloudApigeeV1Export or error will be non-nil.
26551// Any non-2xx status code is an error. Response headers are in either
26552// *GoogleCloudApigeeV1Export.ServerResponse.Header or (if a response
26553// was returned at all) in error.(*googleapi.Error).Header. Use
26554// googleapi.IsNotModified to check whether the returned error was
26555// because http.StatusNotModified was returned.
26556func (c *OrganizationsEnvironmentsAnalyticsExportsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Export, error) {
26557	gensupport.SetOptions(c.urlParams_, opts...)
26558	res, err := c.doRequest("json")
26559	if res != nil && res.StatusCode == http.StatusNotModified {
26560		if res.Body != nil {
26561			res.Body.Close()
26562		}
26563		return nil, &googleapi.Error{
26564			Code:   res.StatusCode,
26565			Header: res.Header,
26566		}
26567	}
26568	if err != nil {
26569		return nil, err
26570	}
26571	defer googleapi.CloseBody(res)
26572	if err := googleapi.CheckResponse(res); err != nil {
26573		return nil, err
26574	}
26575	ret := &GoogleCloudApigeeV1Export{
26576		ServerResponse: googleapi.ServerResponse{
26577			Header:         res.Header,
26578			HTTPStatusCode: res.StatusCode,
26579		},
26580	}
26581	target := &ret
26582	if err := gensupport.DecodeResponse(target, res); err != nil {
26583		return nil, err
26584	}
26585	return ret, nil
26586	// {
26587	//   "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`.",
26588	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/analytics/exports/{exportsId}",
26589	//   "httpMethod": "GET",
26590	//   "id": "apigee.organizations.environments.analytics.exports.get",
26591	//   "parameterOrder": [
26592	//     "name"
26593	//   ],
26594	//   "parameters": {
26595	//     "name": {
26596	//       "description": "Required. Resource name of the export to get.",
26597	//       "location": "path",
26598	//       "pattern": "^organizations/[^/]+/environments/[^/]+/analytics/exports/[^/]+$",
26599	//       "required": true,
26600	//       "type": "string"
26601	//     }
26602	//   },
26603	//   "path": "v1/{+name}",
26604	//   "response": {
26605	//     "$ref": "GoogleCloudApigeeV1Export"
26606	//   },
26607	//   "scopes": [
26608	//     "https://www.googleapis.com/auth/cloud-platform"
26609	//   ]
26610	// }
26611
26612}
26613
26614// method id "apigee.organizations.environments.analytics.exports.list":
26615
26616type OrganizationsEnvironmentsAnalyticsExportsListCall struct {
26617	s            *Service
26618	parent       string
26619	urlParams_   gensupport.URLParams
26620	ifNoneMatch_ string
26621	ctx_         context.Context
26622	header_      http.Header
26623}
26624
26625// List: Lists the details and status of all analytics export jobs
26626// belonging to the parent organization and environment.
26627//
26628// - parent: Names of the parent organization and environment. Must be
26629//   of the form `organizations/{org}/environments/{env}`.
26630func (r *OrganizationsEnvironmentsAnalyticsExportsService) List(parent string) *OrganizationsEnvironmentsAnalyticsExportsListCall {
26631	c := &OrganizationsEnvironmentsAnalyticsExportsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26632	c.parent = parent
26633	return c
26634}
26635
26636// Fields allows partial responses to be retrieved. See
26637// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
26638// for more information.
26639func (c *OrganizationsEnvironmentsAnalyticsExportsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsAnalyticsExportsListCall {
26640	c.urlParams_.Set("fields", googleapi.CombineFields(s))
26641	return c
26642}
26643
26644// IfNoneMatch sets the optional parameter which makes the operation
26645// fail if the object's ETag matches the given value. This is useful for
26646// getting updates only after the object has changed since the last
26647// request. Use googleapi.IsNotModified to check whether the response
26648// error from Do is the result of In-None-Match.
26649func (c *OrganizationsEnvironmentsAnalyticsExportsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsAnalyticsExportsListCall {
26650	c.ifNoneMatch_ = entityTag
26651	return c
26652}
26653
26654// Context sets the context to be used in this call's Do method. Any
26655// pending HTTP request will be aborted if the provided context is
26656// canceled.
26657func (c *OrganizationsEnvironmentsAnalyticsExportsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsAnalyticsExportsListCall {
26658	c.ctx_ = ctx
26659	return c
26660}
26661
26662// Header returns an http.Header that can be modified by the caller to
26663// add HTTP headers to the request.
26664func (c *OrganizationsEnvironmentsAnalyticsExportsListCall) Header() http.Header {
26665	if c.header_ == nil {
26666		c.header_ = make(http.Header)
26667	}
26668	return c.header_
26669}
26670
26671func (c *OrganizationsEnvironmentsAnalyticsExportsListCall) doRequest(alt string) (*http.Response, error) {
26672	reqHeaders := make(http.Header)
26673	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
26674	for k, v := range c.header_ {
26675		reqHeaders[k] = v
26676	}
26677	reqHeaders.Set("User-Agent", c.s.userAgent())
26678	if c.ifNoneMatch_ != "" {
26679		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
26680	}
26681	var body io.Reader = nil
26682	c.urlParams_.Set("alt", alt)
26683	c.urlParams_.Set("prettyPrint", "false")
26684	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/analytics/exports")
26685	urls += "?" + c.urlParams_.Encode()
26686	req, err := http.NewRequest("GET", urls, body)
26687	if err != nil {
26688		return nil, err
26689	}
26690	req.Header = reqHeaders
26691	googleapi.Expand(req.URL, map[string]string{
26692		"parent": c.parent,
26693	})
26694	return gensupport.SendRequest(c.ctx_, c.s.client, req)
26695}
26696
26697// Do executes the "apigee.organizations.environments.analytics.exports.list" call.
26698// Exactly one of *GoogleCloudApigeeV1ListExportsResponse or error will
26699// be non-nil. Any non-2xx status code is an error. Response headers are
26700// in either
26701// *GoogleCloudApigeeV1ListExportsResponse.ServerResponse.Header or (if
26702// a response was returned at all) in error.(*googleapi.Error).Header.
26703// Use googleapi.IsNotModified to check whether the returned error was
26704// because http.StatusNotModified was returned.
26705func (c *OrganizationsEnvironmentsAnalyticsExportsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListExportsResponse, error) {
26706	gensupport.SetOptions(c.urlParams_, opts...)
26707	res, err := c.doRequest("json")
26708	if res != nil && res.StatusCode == http.StatusNotModified {
26709		if res.Body != nil {
26710			res.Body.Close()
26711		}
26712		return nil, &googleapi.Error{
26713			Code:   res.StatusCode,
26714			Header: res.Header,
26715		}
26716	}
26717	if err != nil {
26718		return nil, err
26719	}
26720	defer googleapi.CloseBody(res)
26721	if err := googleapi.CheckResponse(res); err != nil {
26722		return nil, err
26723	}
26724	ret := &GoogleCloudApigeeV1ListExportsResponse{
26725		ServerResponse: googleapi.ServerResponse{
26726			Header:         res.Header,
26727			HTTPStatusCode: res.StatusCode,
26728		},
26729	}
26730	target := &ret
26731	if err := gensupport.DecodeResponse(target, res); err != nil {
26732		return nil, err
26733	}
26734	return ret, nil
26735	// {
26736	//   "description": "Lists the details and status of all analytics export jobs belonging to the parent organization and environment.",
26737	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/analytics/exports",
26738	//   "httpMethod": "GET",
26739	//   "id": "apigee.organizations.environments.analytics.exports.list",
26740	//   "parameterOrder": [
26741	//     "parent"
26742	//   ],
26743	//   "parameters": {
26744	//     "parent": {
26745	//       "description": "Required. Names of the parent organization and environment. Must be of the form `organizations/{org}/environments/{env}`.",
26746	//       "location": "path",
26747	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
26748	//       "required": true,
26749	//       "type": "string"
26750	//     }
26751	//   },
26752	//   "path": "v1/{+parent}/analytics/exports",
26753	//   "response": {
26754	//     "$ref": "GoogleCloudApigeeV1ListExportsResponse"
26755	//   },
26756	//   "scopes": [
26757	//     "https://www.googleapis.com/auth/cloud-platform"
26758	//   ]
26759	// }
26760
26761}
26762
26763// method id "apigee.organizations.environments.apis.deployments.list":
26764
26765type OrganizationsEnvironmentsApisDeploymentsListCall struct {
26766	s            *Service
26767	parent       string
26768	urlParams_   gensupport.URLParams
26769	ifNoneMatch_ string
26770	ctx_         context.Context
26771	header_      http.Header
26772}
26773
26774// List: Lists all deployments of an API proxy in an environment.
26775//
26776// - parent: Name representing an API proxy in an environment in the
26777//   following format:
26778//   `organizations/{org}/environments/{env}/apis/{api}`.
26779func (r *OrganizationsEnvironmentsApisDeploymentsService) List(parent string) *OrganizationsEnvironmentsApisDeploymentsListCall {
26780	c := &OrganizationsEnvironmentsApisDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26781	c.parent = parent
26782	return c
26783}
26784
26785// Fields allows partial responses to be retrieved. See
26786// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
26787// for more information.
26788func (c *OrganizationsEnvironmentsApisDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisDeploymentsListCall {
26789	c.urlParams_.Set("fields", googleapi.CombineFields(s))
26790	return c
26791}
26792
26793// IfNoneMatch sets the optional parameter which makes the operation
26794// fail if the object's ETag matches the given value. This is useful for
26795// getting updates only after the object has changed since the last
26796// request. Use googleapi.IsNotModified to check whether the response
26797// error from Do is the result of In-None-Match.
26798func (c *OrganizationsEnvironmentsApisDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsApisDeploymentsListCall {
26799	c.ifNoneMatch_ = entityTag
26800	return c
26801}
26802
26803// Context sets the context to be used in this call's Do method. Any
26804// pending HTTP request will be aborted if the provided context is
26805// canceled.
26806func (c *OrganizationsEnvironmentsApisDeploymentsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisDeploymentsListCall {
26807	c.ctx_ = ctx
26808	return c
26809}
26810
26811// Header returns an http.Header that can be modified by the caller to
26812// add HTTP headers to the request.
26813func (c *OrganizationsEnvironmentsApisDeploymentsListCall) Header() http.Header {
26814	if c.header_ == nil {
26815		c.header_ = make(http.Header)
26816	}
26817	return c.header_
26818}
26819
26820func (c *OrganizationsEnvironmentsApisDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
26821	reqHeaders := make(http.Header)
26822	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
26823	for k, v := range c.header_ {
26824		reqHeaders[k] = v
26825	}
26826	reqHeaders.Set("User-Agent", c.s.userAgent())
26827	if c.ifNoneMatch_ != "" {
26828		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
26829	}
26830	var body io.Reader = nil
26831	c.urlParams_.Set("alt", alt)
26832	c.urlParams_.Set("prettyPrint", "false")
26833	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
26834	urls += "?" + c.urlParams_.Encode()
26835	req, err := http.NewRequest("GET", urls, body)
26836	if err != nil {
26837		return nil, err
26838	}
26839	req.Header = reqHeaders
26840	googleapi.Expand(req.URL, map[string]string{
26841		"parent": c.parent,
26842	})
26843	return gensupport.SendRequest(c.ctx_, c.s.client, req)
26844}
26845
26846// Do executes the "apigee.organizations.environments.apis.deployments.list" call.
26847// Exactly one of *GoogleCloudApigeeV1ListDeploymentsResponse or error
26848// will be non-nil. Any non-2xx status code is an error. Response
26849// headers are in either
26850// *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or
26851// (if a response was returned at all) in
26852// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
26853// whether the returned error was because http.StatusNotModified was
26854// returned.
26855func (c *OrganizationsEnvironmentsApisDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
26856	gensupport.SetOptions(c.urlParams_, opts...)
26857	res, err := c.doRequest("json")
26858	if res != nil && res.StatusCode == http.StatusNotModified {
26859		if res.Body != nil {
26860			res.Body.Close()
26861		}
26862		return nil, &googleapi.Error{
26863			Code:   res.StatusCode,
26864			Header: res.Header,
26865		}
26866	}
26867	if err != nil {
26868		return nil, err
26869	}
26870	defer googleapi.CloseBody(res)
26871	if err := googleapi.CheckResponse(res); err != nil {
26872		return nil, err
26873	}
26874	ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
26875		ServerResponse: googleapi.ServerResponse{
26876			Header:         res.Header,
26877			HTTPStatusCode: res.StatusCode,
26878		},
26879	}
26880	target := &ret
26881	if err := gensupport.DecodeResponse(target, res); err != nil {
26882		return nil, err
26883	}
26884	return ret, nil
26885	// {
26886	//   "description": "Lists all deployments of an API proxy in an environment.",
26887	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/deployments",
26888	//   "httpMethod": "GET",
26889	//   "id": "apigee.organizations.environments.apis.deployments.list",
26890	//   "parameterOrder": [
26891	//     "parent"
26892	//   ],
26893	//   "parameters": {
26894	//     "parent": {
26895	//       "description": "Required. Name representing an API proxy in an environment in the following format: `organizations/{org}/environments/{env}/apis/{api}`",
26896	//       "location": "path",
26897	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+$",
26898	//       "required": true,
26899	//       "type": "string"
26900	//     }
26901	//   },
26902	//   "path": "v1/{+parent}/deployments",
26903	//   "response": {
26904	//     "$ref": "GoogleCloudApigeeV1ListDeploymentsResponse"
26905	//   },
26906	//   "scopes": [
26907	//     "https://www.googleapis.com/auth/cloud-platform"
26908	//   ]
26909	// }
26910
26911}
26912
26913// method id "apigee.organizations.environments.apis.revisions.deploy":
26914
26915type OrganizationsEnvironmentsApisRevisionsDeployCall struct {
26916	s          *Service
26917	name       string
26918	urlParams_ gensupport.URLParams
26919	ctx_       context.Context
26920	header_    http.Header
26921}
26922
26923// Deploy: Deploys a revision of an API proxy. If another revision of
26924// the same API proxy revision is currently deployed, set the `override`
26925// parameter to `true` to have this revision replace the currently
26926// deployed revision. You cannot invoke an API proxy until it has been
26927// deployed to an environment. After you deploy an API proxy revision,
26928// you cannot edit it. To edit the API proxy, you must create and deploy
26929// a new revision. For a request path
26930// `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}/dep
26931// loyments`, two permissions are required: *
26932// `apigee.deployments.create` on the resource
26933// `organizations/{org}/environments/{env}` *
26934// `apigee.proxyrevisions.deploy` on the resource
26935// `organizations/{org}/apis/{api}/revisions/{rev}`
26936//
26937// - name: Name of the API proxy revision deployment in the following
26938//   format:
26939//   `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`.
26940func (r *OrganizationsEnvironmentsApisRevisionsService) Deploy(name string) *OrganizationsEnvironmentsApisRevisionsDeployCall {
26941	c := &OrganizationsEnvironmentsApisRevisionsDeployCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26942	c.name = name
26943	return c
26944}
26945
26946// Override sets the optional parameter "override": Flag that specifies
26947// whether the new deployment replaces other deployed revisions of the
26948// API proxy in the environment. Set `override` to `true` to replace
26949// other deployed revisions. By default, `override` is `false` and the
26950// deployment is rejected if other revisions of the API proxy are
26951// deployed in the environment.
26952func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) Override(override bool) *OrganizationsEnvironmentsApisRevisionsDeployCall {
26953	c.urlParams_.Set("override", fmt.Sprint(override))
26954	return c
26955}
26956
26957// SequencedRollout sets the optional parameter "sequencedRollout": Flag
26958// that specifies whether to enable sequenced rollout. If set to `true`,
26959// a best-effort attempt will be made to roll out the routing rules
26960// corresponding to this deployment and the environment changes to add
26961// this deployment in a safe order. This reduces the risk of downtime
26962// that could be caused by changing the environment group's routing
26963// before the new destination for the affected traffic is ready to
26964// receive it. This should only be necessary if the new deployment will
26965// be capturing traffic from another environment under a shared
26966// environment group or if traffic will be rerouted to a different
26967// environment due to a base path removal. The
26968// GenerateDeployChangeReport API (GenerateDeployChangeReport) may be
26969// used to examine routing changes before issuing the deployment
26970// request, and its response will indicate if a sequenced rollout is
26971// recommended for the deployment.
26972func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) SequencedRollout(sequencedRollout bool) *OrganizationsEnvironmentsApisRevisionsDeployCall {
26973	c.urlParams_.Set("sequencedRollout", fmt.Sprint(sequencedRollout))
26974	return c
26975}
26976
26977// Fields allows partial responses to be retrieved. See
26978// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
26979// for more information.
26980func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDeployCall {
26981	c.urlParams_.Set("fields", googleapi.CombineFields(s))
26982	return c
26983}
26984
26985// Context sets the context to be used in this call's Do method. Any
26986// pending HTTP request will be aborted if the provided context is
26987// canceled.
26988func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDeployCall {
26989	c.ctx_ = ctx
26990	return c
26991}
26992
26993// Header returns an http.Header that can be modified by the caller to
26994// add HTTP headers to the request.
26995func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) Header() http.Header {
26996	if c.header_ == nil {
26997		c.header_ = make(http.Header)
26998	}
26999	return c.header_
27000}
27001
27002func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) doRequest(alt string) (*http.Response, error) {
27003	reqHeaders := make(http.Header)
27004	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
27005	for k, v := range c.header_ {
27006		reqHeaders[k] = v
27007	}
27008	reqHeaders.Set("User-Agent", c.s.userAgent())
27009	var body io.Reader = nil
27010	c.urlParams_.Set("alt", alt)
27011	c.urlParams_.Set("prettyPrint", "false")
27012	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments")
27013	urls += "?" + c.urlParams_.Encode()
27014	req, err := http.NewRequest("POST", urls, body)
27015	if err != nil {
27016		return nil, err
27017	}
27018	req.Header = reqHeaders
27019	googleapi.Expand(req.URL, map[string]string{
27020		"name": c.name,
27021	})
27022	return gensupport.SendRequest(c.ctx_, c.s.client, req)
27023}
27024
27025// Do executes the "apigee.organizations.environments.apis.revisions.deploy" call.
27026// Exactly one of *GoogleCloudApigeeV1Deployment or error will be
27027// non-nil. Any non-2xx status code is an error. Response headers are in
27028// either *GoogleCloudApigeeV1Deployment.ServerResponse.Header or (if a
27029// response was returned at all) in error.(*googleapi.Error).Header. Use
27030// googleapi.IsNotModified to check whether the returned error was
27031// because http.StatusNotModified was returned.
27032func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Deployment, error) {
27033	gensupport.SetOptions(c.urlParams_, opts...)
27034	res, err := c.doRequest("json")
27035	if res != nil && res.StatusCode == http.StatusNotModified {
27036		if res.Body != nil {
27037			res.Body.Close()
27038		}
27039		return nil, &googleapi.Error{
27040			Code:   res.StatusCode,
27041			Header: res.Header,
27042		}
27043	}
27044	if err != nil {
27045		return nil, err
27046	}
27047	defer googleapi.CloseBody(res)
27048	if err := googleapi.CheckResponse(res); err != nil {
27049		return nil, err
27050	}
27051	ret := &GoogleCloudApigeeV1Deployment{
27052		ServerResponse: googleapi.ServerResponse{
27053			Header:         res.Header,
27054			HTTPStatusCode: res.StatusCode,
27055		},
27056	}
27057	target := &ret
27058	if err := gensupport.DecodeResponse(target, res); err != nil {
27059		return nil, err
27060	}
27061	return ret, nil
27062	// {
27063	//   "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}` ",
27064	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/deployments",
27065	//   "httpMethod": "POST",
27066	//   "id": "apigee.organizations.environments.apis.revisions.deploy",
27067	//   "parameterOrder": [
27068	//     "name"
27069	//   ],
27070	//   "parameters": {
27071	//     "name": {
27072	//       "description": "Required. Name of the API proxy revision deployment in the following format: `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`",
27073	//       "location": "path",
27074	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+$",
27075	//       "required": true,
27076	//       "type": "string"
27077	//     },
27078	//     "override": {
27079	//       "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.",
27080	//       "location": "query",
27081	//       "type": "boolean"
27082	//     },
27083	//     "sequencedRollout": {
27084	//       "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.",
27085	//       "location": "query",
27086	//       "type": "boolean"
27087	//     }
27088	//   },
27089	//   "path": "v1/{+name}/deployments",
27090	//   "response": {
27091	//     "$ref": "GoogleCloudApigeeV1Deployment"
27092	//   },
27093	//   "scopes": [
27094	//     "https://www.googleapis.com/auth/cloud-platform"
27095	//   ]
27096	// }
27097
27098}
27099
27100// method id "apigee.organizations.environments.apis.revisions.getDeployments":
27101
27102type OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall struct {
27103	s            *Service
27104	name         string
27105	urlParams_   gensupport.URLParams
27106	ifNoneMatch_ string
27107	ctx_         context.Context
27108	header_      http.Header
27109}
27110
27111// GetDeployments: Gets the deployment of an API proxy revision and
27112// actual state reported by runtime pods.
27113//
27114// - name: Name representing an API proxy revision in an environment in
27115//   the following format:
27116//   `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`.
27117func (r *OrganizationsEnvironmentsApisRevisionsService) GetDeployments(name string) *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall {
27118	c := &OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27119	c.name = name
27120	return c
27121}
27122
27123// Fields allows partial responses to be retrieved. See
27124// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
27125// for more information.
27126func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall {
27127	c.urlParams_.Set("fields", googleapi.CombineFields(s))
27128	return c
27129}
27130
27131// IfNoneMatch sets the optional parameter which makes the operation
27132// fail if the object's ETag matches the given value. This is useful for
27133// getting updates only after the object has changed since the last
27134// request. Use googleapi.IsNotModified to check whether the response
27135// error from Do is the result of In-None-Match.
27136func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall {
27137	c.ifNoneMatch_ = entityTag
27138	return c
27139}
27140
27141// Context sets the context to be used in this call's Do method. Any
27142// pending HTTP request will be aborted if the provided context is
27143// canceled.
27144func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall {
27145	c.ctx_ = ctx
27146	return c
27147}
27148
27149// Header returns an http.Header that can be modified by the caller to
27150// add HTTP headers to the request.
27151func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) Header() http.Header {
27152	if c.header_ == nil {
27153		c.header_ = make(http.Header)
27154	}
27155	return c.header_
27156}
27157
27158func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) doRequest(alt string) (*http.Response, error) {
27159	reqHeaders := make(http.Header)
27160	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
27161	for k, v := range c.header_ {
27162		reqHeaders[k] = v
27163	}
27164	reqHeaders.Set("User-Agent", c.s.userAgent())
27165	if c.ifNoneMatch_ != "" {
27166		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
27167	}
27168	var body io.Reader = nil
27169	c.urlParams_.Set("alt", alt)
27170	c.urlParams_.Set("prettyPrint", "false")
27171	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments")
27172	urls += "?" + c.urlParams_.Encode()
27173	req, err := http.NewRequest("GET", urls, body)
27174	if err != nil {
27175		return nil, err
27176	}
27177	req.Header = reqHeaders
27178	googleapi.Expand(req.URL, map[string]string{
27179		"name": c.name,
27180	})
27181	return gensupport.SendRequest(c.ctx_, c.s.client, req)
27182}
27183
27184// Do executes the "apigee.organizations.environments.apis.revisions.getDeployments" call.
27185// Exactly one of *GoogleCloudApigeeV1Deployment or error will be
27186// non-nil. Any non-2xx status code is an error. Response headers are in
27187// either *GoogleCloudApigeeV1Deployment.ServerResponse.Header or (if a
27188// response was returned at all) in error.(*googleapi.Error).Header. Use
27189// googleapi.IsNotModified to check whether the returned error was
27190// because http.StatusNotModified was returned.
27191func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Deployment, error) {
27192	gensupport.SetOptions(c.urlParams_, opts...)
27193	res, err := c.doRequest("json")
27194	if res != nil && res.StatusCode == http.StatusNotModified {
27195		if res.Body != nil {
27196			res.Body.Close()
27197		}
27198		return nil, &googleapi.Error{
27199			Code:   res.StatusCode,
27200			Header: res.Header,
27201		}
27202	}
27203	if err != nil {
27204		return nil, err
27205	}
27206	defer googleapi.CloseBody(res)
27207	if err := googleapi.CheckResponse(res); err != nil {
27208		return nil, err
27209	}
27210	ret := &GoogleCloudApigeeV1Deployment{
27211		ServerResponse: googleapi.ServerResponse{
27212			Header:         res.Header,
27213			HTTPStatusCode: res.StatusCode,
27214		},
27215	}
27216	target := &ret
27217	if err := gensupport.DecodeResponse(target, res); err != nil {
27218		return nil, err
27219	}
27220	return ret, nil
27221	// {
27222	//   "description": "Gets the deployment of an API proxy revision and actual state reported by runtime pods.",
27223	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/deployments",
27224	//   "httpMethod": "GET",
27225	//   "id": "apigee.organizations.environments.apis.revisions.getDeployments",
27226	//   "parameterOrder": [
27227	//     "name"
27228	//   ],
27229	//   "parameters": {
27230	//     "name": {
27231	//       "description": "Required. Name representing an API proxy revision in an environment in the following format: `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`",
27232	//       "location": "path",
27233	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+$",
27234	//       "required": true,
27235	//       "type": "string"
27236	//     }
27237	//   },
27238	//   "path": "v1/{+name}/deployments",
27239	//   "response": {
27240	//     "$ref": "GoogleCloudApigeeV1Deployment"
27241	//   },
27242	//   "scopes": [
27243	//     "https://www.googleapis.com/auth/cloud-platform"
27244	//   ]
27245	// }
27246
27247}
27248
27249// method id "apigee.organizations.environments.apis.revisions.undeploy":
27250
27251type OrganizationsEnvironmentsApisRevisionsUndeployCall struct {
27252	s          *Service
27253	name       string
27254	urlParams_ gensupport.URLParams
27255	ctx_       context.Context
27256	header_    http.Header
27257}
27258
27259// Undeploy: Undeploys an API proxy revision from an environment. For a
27260// request path
27261// `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}/dep
27262// loyments`, two permissions are required: *
27263// `apigee.deployments.delete` on the resource
27264// `organizations/{org}/environments/{env}` *
27265// `apigee.proxyrevisions.undeploy` on the resource
27266// `organizations/{org}/apis/{api}/revisions/{rev}`
27267//
27268// - name: Name of the API proxy revision deployment in the following
27269//   format:
27270//   `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`.
27271func (r *OrganizationsEnvironmentsApisRevisionsService) Undeploy(name string) *OrganizationsEnvironmentsApisRevisionsUndeployCall {
27272	c := &OrganizationsEnvironmentsApisRevisionsUndeployCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27273	c.name = name
27274	return c
27275}
27276
27277// SequencedRollout sets the optional parameter "sequencedRollout": Flag
27278// that specifies whether to enable sequenced rollout. If set to `true`,
27279// a best-effort attempt will be made to remove the environment group
27280// routing rules corresponding to this deployment before removing the
27281// deployment from the runtime. This is likely to be a rare use case; it
27282// is only needed when the intended effect of undeploying this proxy is
27283// to cause the traffic it currently handles to be rerouted to some
27284// other existing proxy in the environment group. The
27285// GenerateUndeployChangeReport API (GenerateUndeployChangeReport) may
27286// be used to examine routing changes before issuing the undeployment
27287// request, and its response will indicate if a sequenced rollout is
27288// recommended for the undeployment.
27289func (c *OrganizationsEnvironmentsApisRevisionsUndeployCall) SequencedRollout(sequencedRollout bool) *OrganizationsEnvironmentsApisRevisionsUndeployCall {
27290	c.urlParams_.Set("sequencedRollout", fmt.Sprint(sequencedRollout))
27291	return c
27292}
27293
27294// Fields allows partial responses to be retrieved. See
27295// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
27296// for more information.
27297func (c *OrganizationsEnvironmentsApisRevisionsUndeployCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsUndeployCall {
27298	c.urlParams_.Set("fields", googleapi.CombineFields(s))
27299	return c
27300}
27301
27302// Context sets the context to be used in this call's Do method. Any
27303// pending HTTP request will be aborted if the provided context is
27304// canceled.
27305func (c *OrganizationsEnvironmentsApisRevisionsUndeployCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsUndeployCall {
27306	c.ctx_ = ctx
27307	return c
27308}
27309
27310// Header returns an http.Header that can be modified by the caller to
27311// add HTTP headers to the request.
27312func (c *OrganizationsEnvironmentsApisRevisionsUndeployCall) Header() http.Header {
27313	if c.header_ == nil {
27314		c.header_ = make(http.Header)
27315	}
27316	return c.header_
27317}
27318
27319func (c *OrganizationsEnvironmentsApisRevisionsUndeployCall) doRequest(alt string) (*http.Response, error) {
27320	reqHeaders := make(http.Header)
27321	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
27322	for k, v := range c.header_ {
27323		reqHeaders[k] = v
27324	}
27325	reqHeaders.Set("User-Agent", c.s.userAgent())
27326	var body io.Reader = nil
27327	c.urlParams_.Set("alt", alt)
27328	c.urlParams_.Set("prettyPrint", "false")
27329	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments")
27330	urls += "?" + c.urlParams_.Encode()
27331	req, err := http.NewRequest("DELETE", urls, body)
27332	if err != nil {
27333		return nil, err
27334	}
27335	req.Header = reqHeaders
27336	googleapi.Expand(req.URL, map[string]string{
27337		"name": c.name,
27338	})
27339	return gensupport.SendRequest(c.ctx_, c.s.client, req)
27340}
27341
27342// Do executes the "apigee.organizations.environments.apis.revisions.undeploy" call.
27343// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
27344// non-2xx status code is an error. Response headers are in either
27345// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
27346// returned at all) in error.(*googleapi.Error).Header. Use
27347// googleapi.IsNotModified to check whether the returned error was
27348// because http.StatusNotModified was returned.
27349func (c *OrganizationsEnvironmentsApisRevisionsUndeployCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
27350	gensupport.SetOptions(c.urlParams_, opts...)
27351	res, err := c.doRequest("json")
27352	if res != nil && res.StatusCode == http.StatusNotModified {
27353		if res.Body != nil {
27354			res.Body.Close()
27355		}
27356		return nil, &googleapi.Error{
27357			Code:   res.StatusCode,
27358			Header: res.Header,
27359		}
27360	}
27361	if err != nil {
27362		return nil, err
27363	}
27364	defer googleapi.CloseBody(res)
27365	if err := googleapi.CheckResponse(res); err != nil {
27366		return nil, err
27367	}
27368	ret := &GoogleProtobufEmpty{
27369		ServerResponse: googleapi.ServerResponse{
27370			Header:         res.Header,
27371			HTTPStatusCode: res.StatusCode,
27372		},
27373	}
27374	target := &ret
27375	if err := gensupport.DecodeResponse(target, res); err != nil {
27376		return nil, err
27377	}
27378	return ret, nil
27379	// {
27380	//   "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}`",
27381	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/deployments",
27382	//   "httpMethod": "DELETE",
27383	//   "id": "apigee.organizations.environments.apis.revisions.undeploy",
27384	//   "parameterOrder": [
27385	//     "name"
27386	//   ],
27387	//   "parameters": {
27388	//     "name": {
27389	//       "description": "Required. Name of the API proxy revision deployment in the following format: `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`",
27390	//       "location": "path",
27391	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+$",
27392	//       "required": true,
27393	//       "type": "string"
27394	//     },
27395	//     "sequencedRollout": {
27396	//       "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.",
27397	//       "location": "query",
27398	//       "type": "boolean"
27399	//     }
27400	//   },
27401	//   "path": "v1/{+name}/deployments",
27402	//   "response": {
27403	//     "$ref": "GoogleProtobufEmpty"
27404	//   },
27405	//   "scopes": [
27406	//     "https://www.googleapis.com/auth/cloud-platform"
27407	//   ]
27408	// }
27409
27410}
27411
27412// method id "apigee.organizations.environments.apis.revisions.debugsessions.create":
27413
27414type OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall struct {
27415	s                               *Service
27416	parent                          string
27417	googlecloudapigeev1debugsession *GoogleCloudApigeeV1DebugSession
27418	urlParams_                      gensupport.URLParams
27419	ctx_                            context.Context
27420	header_                         http.Header
27421}
27422
27423// Create: Creates a debug session for a deployed API Proxy revision.
27424//
27425// - parent: The resource name of the API Proxy revision deployment for
27426//   which to create the DebugSession. Must be of the form
27427//   `organizations/{organization}/environments/{environment}/apis/{api}/
27428//   revisions/{revision}`.
27429func (r *OrganizationsEnvironmentsApisRevisionsDebugsessionsService) Create(parent string, googlecloudapigeev1debugsession *GoogleCloudApigeeV1DebugSession) *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall {
27430	c := &OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27431	c.parent = parent
27432	c.googlecloudapigeev1debugsession = googlecloudapigeev1debugsession
27433	return c
27434}
27435
27436// Timeout sets the optional parameter "timeout": The time in seconds
27437// after which this DebugSession should end. A timeout specified in
27438// DebugSession will overwrite this value.
27439func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) Timeout(timeout int64) *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall {
27440	c.urlParams_.Set("timeout", fmt.Sprint(timeout))
27441	return c
27442}
27443
27444// Fields allows partial responses to be retrieved. See
27445// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
27446// for more information.
27447func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall {
27448	c.urlParams_.Set("fields", googleapi.CombineFields(s))
27449	return c
27450}
27451
27452// Context sets the context to be used in this call's Do method. Any
27453// pending HTTP request will be aborted if the provided context is
27454// canceled.
27455func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall {
27456	c.ctx_ = ctx
27457	return c
27458}
27459
27460// Header returns an http.Header that can be modified by the caller to
27461// add HTTP headers to the request.
27462func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) Header() http.Header {
27463	if c.header_ == nil {
27464		c.header_ = make(http.Header)
27465	}
27466	return c.header_
27467}
27468
27469func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) doRequest(alt string) (*http.Response, error) {
27470	reqHeaders := make(http.Header)
27471	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
27472	for k, v := range c.header_ {
27473		reqHeaders[k] = v
27474	}
27475	reqHeaders.Set("User-Agent", c.s.userAgent())
27476	var body io.Reader = nil
27477	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1debugsession)
27478	if err != nil {
27479		return nil, err
27480	}
27481	reqHeaders.Set("Content-Type", "application/json")
27482	c.urlParams_.Set("alt", alt)
27483	c.urlParams_.Set("prettyPrint", "false")
27484	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/debugsessions")
27485	urls += "?" + c.urlParams_.Encode()
27486	req, err := http.NewRequest("POST", urls, body)
27487	if err != nil {
27488		return nil, err
27489	}
27490	req.Header = reqHeaders
27491	googleapi.Expand(req.URL, map[string]string{
27492		"parent": c.parent,
27493	})
27494	return gensupport.SendRequest(c.ctx_, c.s.client, req)
27495}
27496
27497// Do executes the "apigee.organizations.environments.apis.revisions.debugsessions.create" call.
27498// Exactly one of *GoogleCloudApigeeV1DebugSession or error will be
27499// non-nil. Any non-2xx status code is an error. Response headers are in
27500// either *GoogleCloudApigeeV1DebugSession.ServerResponse.Header or (if
27501// a response was returned at all) in error.(*googleapi.Error).Header.
27502// Use googleapi.IsNotModified to check whether the returned error was
27503// because http.StatusNotModified was returned.
27504func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DebugSession, error) {
27505	gensupport.SetOptions(c.urlParams_, opts...)
27506	res, err := c.doRequest("json")
27507	if res != nil && res.StatusCode == http.StatusNotModified {
27508		if res.Body != nil {
27509			res.Body.Close()
27510		}
27511		return nil, &googleapi.Error{
27512			Code:   res.StatusCode,
27513			Header: res.Header,
27514		}
27515	}
27516	if err != nil {
27517		return nil, err
27518	}
27519	defer googleapi.CloseBody(res)
27520	if err := googleapi.CheckResponse(res); err != nil {
27521		return nil, err
27522	}
27523	ret := &GoogleCloudApigeeV1DebugSession{
27524		ServerResponse: googleapi.ServerResponse{
27525			Header:         res.Header,
27526			HTTPStatusCode: res.StatusCode,
27527		},
27528	}
27529	target := &ret
27530	if err := gensupport.DecodeResponse(target, res); err != nil {
27531		return nil, err
27532	}
27533	return ret, nil
27534	// {
27535	//   "description": "Creates a debug session for a deployed API Proxy revision.",
27536	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/debugsessions",
27537	//   "httpMethod": "POST",
27538	//   "id": "apigee.organizations.environments.apis.revisions.debugsessions.create",
27539	//   "parameterOrder": [
27540	//     "parent"
27541	//   ],
27542	//   "parameters": {
27543	//     "parent": {
27544	//       "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}`.",
27545	//       "location": "path",
27546	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+$",
27547	//       "required": true,
27548	//       "type": "string"
27549	//     },
27550	//     "timeout": {
27551	//       "description": "Optional. The time in seconds after which this DebugSession should end. A timeout specified in DebugSession will overwrite this value.",
27552	//       "format": "int64",
27553	//       "location": "query",
27554	//       "type": "string"
27555	//     }
27556	//   },
27557	//   "path": "v1/{+parent}/debugsessions",
27558	//   "request": {
27559	//     "$ref": "GoogleCloudApigeeV1DebugSession"
27560	//   },
27561	//   "response": {
27562	//     "$ref": "GoogleCloudApigeeV1DebugSession"
27563	//   },
27564	//   "scopes": [
27565	//     "https://www.googleapis.com/auth/cloud-platform"
27566	//   ]
27567	// }
27568
27569}
27570
27571// method id "apigee.organizations.environments.apis.revisions.debugsessions.deleteData":
27572
27573type OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall struct {
27574	s          *Service
27575	name       string
27576	urlParams_ gensupport.URLParams
27577	ctx_       context.Context
27578	header_    http.Header
27579}
27580
27581// DeleteData: Deletes the data from a debug session. This does not
27582// cancel the debug session or prevent further data from being collected
27583// if the session is still active in runtime pods.
27584//
27585// - name: The name of the debug session to delete. Must be of the form:
27586//   `organizations/{organization}/environments/{environment}/apis/{api}/
27587//   revisions/{revision}/debugsessions/{debugsession}`.
27588func (r *OrganizationsEnvironmentsApisRevisionsDebugsessionsService) DeleteData(name string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall {
27589	c := &OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27590	c.name = name
27591	return c
27592}
27593
27594// Fields allows partial responses to be retrieved. See
27595// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
27596// for more information.
27597func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall {
27598	c.urlParams_.Set("fields", googleapi.CombineFields(s))
27599	return c
27600}
27601
27602// Context sets the context to be used in this call's Do method. Any
27603// pending HTTP request will be aborted if the provided context is
27604// canceled.
27605func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall {
27606	c.ctx_ = ctx
27607	return c
27608}
27609
27610// Header returns an http.Header that can be modified by the caller to
27611// add HTTP headers to the request.
27612func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall) Header() http.Header {
27613	if c.header_ == nil {
27614		c.header_ = make(http.Header)
27615	}
27616	return c.header_
27617}
27618
27619func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall) doRequest(alt string) (*http.Response, error) {
27620	reqHeaders := make(http.Header)
27621	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
27622	for k, v := range c.header_ {
27623		reqHeaders[k] = v
27624	}
27625	reqHeaders.Set("User-Agent", c.s.userAgent())
27626	var body io.Reader = nil
27627	c.urlParams_.Set("alt", alt)
27628	c.urlParams_.Set("prettyPrint", "false")
27629	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/data")
27630	urls += "?" + c.urlParams_.Encode()
27631	req, err := http.NewRequest("DELETE", urls, body)
27632	if err != nil {
27633		return nil, err
27634	}
27635	req.Header = reqHeaders
27636	googleapi.Expand(req.URL, map[string]string{
27637		"name": c.name,
27638	})
27639	return gensupport.SendRequest(c.ctx_, c.s.client, req)
27640}
27641
27642// Do executes the "apigee.organizations.environments.apis.revisions.debugsessions.deleteData" call.
27643// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
27644// non-2xx status code is an error. Response headers are in either
27645// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
27646// returned at all) in error.(*googleapi.Error).Header. Use
27647// googleapi.IsNotModified to check whether the returned error was
27648// because http.StatusNotModified was returned.
27649func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
27650	gensupport.SetOptions(c.urlParams_, opts...)
27651	res, err := c.doRequest("json")
27652	if res != nil && res.StatusCode == http.StatusNotModified {
27653		if res.Body != nil {
27654			res.Body.Close()
27655		}
27656		return nil, &googleapi.Error{
27657			Code:   res.StatusCode,
27658			Header: res.Header,
27659		}
27660	}
27661	if err != nil {
27662		return nil, err
27663	}
27664	defer googleapi.CloseBody(res)
27665	if err := googleapi.CheckResponse(res); err != nil {
27666		return nil, err
27667	}
27668	ret := &GoogleProtobufEmpty{
27669		ServerResponse: googleapi.ServerResponse{
27670			Header:         res.Header,
27671			HTTPStatusCode: res.StatusCode,
27672		},
27673	}
27674	target := &ret
27675	if err := gensupport.DecodeResponse(target, res); err != nil {
27676		return nil, err
27677	}
27678	return ret, nil
27679	// {
27680	//   "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.",
27681	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/debugsessions/{debugsessionsId}/data",
27682	//   "httpMethod": "DELETE",
27683	//   "id": "apigee.organizations.environments.apis.revisions.debugsessions.deleteData",
27684	//   "parameterOrder": [
27685	//     "name"
27686	//   ],
27687	//   "parameters": {
27688	//     "name": {
27689	//       "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}`.",
27690	//       "location": "path",
27691	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+/debugsessions/[^/]+$",
27692	//       "required": true,
27693	//       "type": "string"
27694	//     }
27695	//   },
27696	//   "path": "v1/{+name}/data",
27697	//   "response": {
27698	//     "$ref": "GoogleProtobufEmpty"
27699	//   },
27700	//   "scopes": [
27701	//     "https://www.googleapis.com/auth/cloud-platform"
27702	//   ]
27703	// }
27704
27705}
27706
27707// method id "apigee.organizations.environments.apis.revisions.debugsessions.get":
27708
27709type OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall struct {
27710	s            *Service
27711	name         string
27712	urlParams_   gensupport.URLParams
27713	ifNoneMatch_ string
27714	ctx_         context.Context
27715	header_      http.Header
27716}
27717
27718// Get: Retrieves a debug session.
27719//
27720// - name: The name of the debug session to retrieve. Must be of the
27721//   form:
27722//   `organizations/{organization}/environments/{environment}/apis/{api}/
27723//   revisions/{revision}/debugsessions/{session}`.
27724func (r *OrganizationsEnvironmentsApisRevisionsDebugsessionsService) Get(name string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall {
27725	c := &OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27726	c.name = name
27727	return c
27728}
27729
27730// Fields allows partial responses to be retrieved. See
27731// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
27732// for more information.
27733func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall {
27734	c.urlParams_.Set("fields", googleapi.CombineFields(s))
27735	return c
27736}
27737
27738// IfNoneMatch sets the optional parameter which makes the operation
27739// fail if the object's ETag matches the given value. This is useful for
27740// getting updates only after the object has changed since the last
27741// request. Use googleapi.IsNotModified to check whether the response
27742// error from Do is the result of In-None-Match.
27743func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall {
27744	c.ifNoneMatch_ = entityTag
27745	return c
27746}
27747
27748// Context sets the context to be used in this call's Do method. Any
27749// pending HTTP request will be aborted if the provided context is
27750// canceled.
27751func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall {
27752	c.ctx_ = ctx
27753	return c
27754}
27755
27756// Header returns an http.Header that can be modified by the caller to
27757// add HTTP headers to the request.
27758func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall) Header() http.Header {
27759	if c.header_ == nil {
27760		c.header_ = make(http.Header)
27761	}
27762	return c.header_
27763}
27764
27765func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall) doRequest(alt string) (*http.Response, error) {
27766	reqHeaders := make(http.Header)
27767	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
27768	for k, v := range c.header_ {
27769		reqHeaders[k] = v
27770	}
27771	reqHeaders.Set("User-Agent", c.s.userAgent())
27772	if c.ifNoneMatch_ != "" {
27773		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
27774	}
27775	var body io.Reader = nil
27776	c.urlParams_.Set("alt", alt)
27777	c.urlParams_.Set("prettyPrint", "false")
27778	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
27779	urls += "?" + c.urlParams_.Encode()
27780	req, err := http.NewRequest("GET", urls, body)
27781	if err != nil {
27782		return nil, err
27783	}
27784	req.Header = reqHeaders
27785	googleapi.Expand(req.URL, map[string]string{
27786		"name": c.name,
27787	})
27788	return gensupport.SendRequest(c.ctx_, c.s.client, req)
27789}
27790
27791// Do executes the "apigee.organizations.environments.apis.revisions.debugsessions.get" call.
27792// Exactly one of *GoogleCloudApigeeV1DebugSession or error will be
27793// non-nil. Any non-2xx status code is an error. Response headers are in
27794// either *GoogleCloudApigeeV1DebugSession.ServerResponse.Header or (if
27795// a response was returned at all) in error.(*googleapi.Error).Header.
27796// Use googleapi.IsNotModified to check whether the returned error was
27797// because http.StatusNotModified was returned.
27798func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DebugSession, error) {
27799	gensupport.SetOptions(c.urlParams_, opts...)
27800	res, err := c.doRequest("json")
27801	if res != nil && res.StatusCode == http.StatusNotModified {
27802		if res.Body != nil {
27803			res.Body.Close()
27804		}
27805		return nil, &googleapi.Error{
27806			Code:   res.StatusCode,
27807			Header: res.Header,
27808		}
27809	}
27810	if err != nil {
27811		return nil, err
27812	}
27813	defer googleapi.CloseBody(res)
27814	if err := googleapi.CheckResponse(res); err != nil {
27815		return nil, err
27816	}
27817	ret := &GoogleCloudApigeeV1DebugSession{
27818		ServerResponse: googleapi.ServerResponse{
27819			Header:         res.Header,
27820			HTTPStatusCode: res.StatusCode,
27821		},
27822	}
27823	target := &ret
27824	if err := gensupport.DecodeResponse(target, res); err != nil {
27825		return nil, err
27826	}
27827	return ret, nil
27828	// {
27829	//   "description": "Retrieves a debug session.",
27830	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/debugsessions/{debugsessionsId}",
27831	//   "httpMethod": "GET",
27832	//   "id": "apigee.organizations.environments.apis.revisions.debugsessions.get",
27833	//   "parameterOrder": [
27834	//     "name"
27835	//   ],
27836	//   "parameters": {
27837	//     "name": {
27838	//       "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}`.",
27839	//       "location": "path",
27840	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+/debugsessions/[^/]+$",
27841	//       "required": true,
27842	//       "type": "string"
27843	//     }
27844	//   },
27845	//   "path": "v1/{+name}",
27846	//   "response": {
27847	//     "$ref": "GoogleCloudApigeeV1DebugSession"
27848	//   },
27849	//   "scopes": [
27850	//     "https://www.googleapis.com/auth/cloud-platform"
27851	//   ]
27852	// }
27853
27854}
27855
27856// method id "apigee.organizations.environments.apis.revisions.debugsessions.list":
27857
27858type OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall struct {
27859	s            *Service
27860	parent       string
27861	urlParams_   gensupport.URLParams
27862	ifNoneMatch_ string
27863	ctx_         context.Context
27864	header_      http.Header
27865}
27866
27867// List: Lists debug sessions that are currently active in the given API
27868// Proxy revision.
27869//
27870// - parent: The name of the API Proxy revision deployment for which to
27871//   list debug sessions. Must be of the form:
27872//   `organizations/{organization}/environments/{environment}/apis/{api}/
27873//   revisions/{revision}`.
27874func (r *OrganizationsEnvironmentsApisRevisionsDebugsessionsService) List(parent string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall {
27875	c := &OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27876	c.parent = parent
27877	return c
27878}
27879
27880// PageSize sets the optional parameter "pageSize": Maximum number of
27881// debug sessions to return. The page size defaults to 25.
27882func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) PageSize(pageSize int64) *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall {
27883	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
27884	return c
27885}
27886
27887// PageToken sets the optional parameter "pageToken": Page token,
27888// returned from a previous ListDebugSessions call, that you can use to
27889// retrieve the next page.
27890func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) PageToken(pageToken string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall {
27891	c.urlParams_.Set("pageToken", pageToken)
27892	return c
27893}
27894
27895// Fields allows partial responses to be retrieved. See
27896// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
27897// for more information.
27898func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall {
27899	c.urlParams_.Set("fields", googleapi.CombineFields(s))
27900	return c
27901}
27902
27903// IfNoneMatch sets the optional parameter which makes the operation
27904// fail if the object's ETag matches the given value. This is useful for
27905// getting updates only after the object has changed since the last
27906// request. Use googleapi.IsNotModified to check whether the response
27907// error from Do is the result of In-None-Match.
27908func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall {
27909	c.ifNoneMatch_ = entityTag
27910	return c
27911}
27912
27913// Context sets the context to be used in this call's Do method. Any
27914// pending HTTP request will be aborted if the provided context is
27915// canceled.
27916func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall {
27917	c.ctx_ = ctx
27918	return c
27919}
27920
27921// Header returns an http.Header that can be modified by the caller to
27922// add HTTP headers to the request.
27923func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) Header() http.Header {
27924	if c.header_ == nil {
27925		c.header_ = make(http.Header)
27926	}
27927	return c.header_
27928}
27929
27930func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) doRequest(alt string) (*http.Response, error) {
27931	reqHeaders := make(http.Header)
27932	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
27933	for k, v := range c.header_ {
27934		reqHeaders[k] = v
27935	}
27936	reqHeaders.Set("User-Agent", c.s.userAgent())
27937	if c.ifNoneMatch_ != "" {
27938		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
27939	}
27940	var body io.Reader = nil
27941	c.urlParams_.Set("alt", alt)
27942	c.urlParams_.Set("prettyPrint", "false")
27943	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/debugsessions")
27944	urls += "?" + c.urlParams_.Encode()
27945	req, err := http.NewRequest("GET", urls, body)
27946	if err != nil {
27947		return nil, err
27948	}
27949	req.Header = reqHeaders
27950	googleapi.Expand(req.URL, map[string]string{
27951		"parent": c.parent,
27952	})
27953	return gensupport.SendRequest(c.ctx_, c.s.client, req)
27954}
27955
27956// Do executes the "apigee.organizations.environments.apis.revisions.debugsessions.list" call.
27957// Exactly one of *GoogleCloudApigeeV1ListDebugSessionsResponse or error
27958// will be non-nil. Any non-2xx status code is an error. Response
27959// headers are in either
27960// *GoogleCloudApigeeV1ListDebugSessionsResponse.ServerResponse.Header
27961// or (if a response was returned at all) in
27962// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
27963// whether the returned error was because http.StatusNotModified was
27964// returned.
27965func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDebugSessionsResponse, error) {
27966	gensupport.SetOptions(c.urlParams_, opts...)
27967	res, err := c.doRequest("json")
27968	if res != nil && res.StatusCode == http.StatusNotModified {
27969		if res.Body != nil {
27970			res.Body.Close()
27971		}
27972		return nil, &googleapi.Error{
27973			Code:   res.StatusCode,
27974			Header: res.Header,
27975		}
27976	}
27977	if err != nil {
27978		return nil, err
27979	}
27980	defer googleapi.CloseBody(res)
27981	if err := googleapi.CheckResponse(res); err != nil {
27982		return nil, err
27983	}
27984	ret := &GoogleCloudApigeeV1ListDebugSessionsResponse{
27985		ServerResponse: googleapi.ServerResponse{
27986			Header:         res.Header,
27987			HTTPStatusCode: res.StatusCode,
27988		},
27989	}
27990	target := &ret
27991	if err := gensupport.DecodeResponse(target, res); err != nil {
27992		return nil, err
27993	}
27994	return ret, nil
27995	// {
27996	//   "description": "Lists debug sessions that are currently active in the given API Proxy revision.",
27997	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/debugsessions",
27998	//   "httpMethod": "GET",
27999	//   "id": "apigee.organizations.environments.apis.revisions.debugsessions.list",
28000	//   "parameterOrder": [
28001	//     "parent"
28002	//   ],
28003	//   "parameters": {
28004	//     "pageSize": {
28005	//       "description": "Maximum number of debug sessions to return. The page size defaults to 25.",
28006	//       "format": "int32",
28007	//       "location": "query",
28008	//       "type": "integer"
28009	//     },
28010	//     "pageToken": {
28011	//       "description": "Page token, returned from a previous ListDebugSessions call, that you can use to retrieve the next page.",
28012	//       "location": "query",
28013	//       "type": "string"
28014	//     },
28015	//     "parent": {
28016	//       "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}`.",
28017	//       "location": "path",
28018	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+$",
28019	//       "required": true,
28020	//       "type": "string"
28021	//     }
28022	//   },
28023	//   "path": "v1/{+parent}/debugsessions",
28024	//   "response": {
28025	//     "$ref": "GoogleCloudApigeeV1ListDebugSessionsResponse"
28026	//   },
28027	//   "scopes": [
28028	//     "https://www.googleapis.com/auth/cloud-platform"
28029	//   ]
28030	// }
28031
28032}
28033
28034// Pages invokes f for each page of results.
28035// A non-nil error returned from f will halt the iteration.
28036// The provided context supersedes any context provided to the Context method.
28037func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListDebugSessionsResponse) error) error {
28038	c.ctx_ = ctx
28039	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
28040	for {
28041		x, err := c.Do()
28042		if err != nil {
28043			return err
28044		}
28045		if err := f(x); err != nil {
28046			return err
28047		}
28048		if x.NextPageToken == "" {
28049			return nil
28050		}
28051		c.PageToken(x.NextPageToken)
28052	}
28053}
28054
28055// method id "apigee.organizations.environments.apis.revisions.debugsessions.data.get":
28056
28057type OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall struct {
28058	s            *Service
28059	name         string
28060	urlParams_   gensupport.URLParams
28061	ifNoneMatch_ string
28062	ctx_         context.Context
28063	header_      http.Header
28064}
28065
28066// Get: Gets the debug data from a transaction.
28067//
28068// - name: The name of the debug session transaction. Must be of the
28069//   form:
28070//   `organizations/{organization}/environments/{environment}/apis/{api}/
28071//   revisions/{revision}/debugsessions/{session}/data/{transaction}`.
28072func (r *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataService) Get(name string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall {
28073	c := &OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28074	c.name = name
28075	return c
28076}
28077
28078// Fields allows partial responses to be retrieved. See
28079// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
28080// for more information.
28081func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall {
28082	c.urlParams_.Set("fields", googleapi.CombineFields(s))
28083	return c
28084}
28085
28086// IfNoneMatch sets the optional parameter which makes the operation
28087// fail if the object's ETag matches the given value. This is useful for
28088// getting updates only after the object has changed since the last
28089// request. Use googleapi.IsNotModified to check whether the response
28090// error from Do is the result of In-None-Match.
28091func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall {
28092	c.ifNoneMatch_ = entityTag
28093	return c
28094}
28095
28096// Context sets the context to be used in this call's Do method. Any
28097// pending HTTP request will be aborted if the provided context is
28098// canceled.
28099func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall {
28100	c.ctx_ = ctx
28101	return c
28102}
28103
28104// Header returns an http.Header that can be modified by the caller to
28105// add HTTP headers to the request.
28106func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) Header() http.Header {
28107	if c.header_ == nil {
28108		c.header_ = make(http.Header)
28109	}
28110	return c.header_
28111}
28112
28113func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) doRequest(alt string) (*http.Response, error) {
28114	reqHeaders := make(http.Header)
28115	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
28116	for k, v := range c.header_ {
28117		reqHeaders[k] = v
28118	}
28119	reqHeaders.Set("User-Agent", c.s.userAgent())
28120	if c.ifNoneMatch_ != "" {
28121		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
28122	}
28123	var body io.Reader = nil
28124	c.urlParams_.Set("alt", alt)
28125	c.urlParams_.Set("prettyPrint", "false")
28126	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
28127	urls += "?" + c.urlParams_.Encode()
28128	req, err := http.NewRequest("GET", urls, body)
28129	if err != nil {
28130		return nil, err
28131	}
28132	req.Header = reqHeaders
28133	googleapi.Expand(req.URL, map[string]string{
28134		"name": c.name,
28135	})
28136	return gensupport.SendRequest(c.ctx_, c.s.client, req)
28137}
28138
28139// Do executes the "apigee.organizations.environments.apis.revisions.debugsessions.data.get" call.
28140// Exactly one of *GoogleCloudApigeeV1DebugSessionTransaction or error
28141// will be non-nil. Any non-2xx status code is an error. Response
28142// headers are in either
28143// *GoogleCloudApigeeV1DebugSessionTransaction.ServerResponse.Header or
28144// (if a response was returned at all) in
28145// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
28146// whether the returned error was because http.StatusNotModified was
28147// returned.
28148func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DebugSessionTransaction, error) {
28149	gensupport.SetOptions(c.urlParams_, opts...)
28150	res, err := c.doRequest("json")
28151	if res != nil && res.StatusCode == http.StatusNotModified {
28152		if res.Body != nil {
28153			res.Body.Close()
28154		}
28155		return nil, &googleapi.Error{
28156			Code:   res.StatusCode,
28157			Header: res.Header,
28158		}
28159	}
28160	if err != nil {
28161		return nil, err
28162	}
28163	defer googleapi.CloseBody(res)
28164	if err := googleapi.CheckResponse(res); err != nil {
28165		return nil, err
28166	}
28167	ret := &GoogleCloudApigeeV1DebugSessionTransaction{
28168		ServerResponse: googleapi.ServerResponse{
28169			Header:         res.Header,
28170			HTTPStatusCode: res.StatusCode,
28171		},
28172	}
28173	target := &ret
28174	if err := gensupport.DecodeResponse(target, res); err != nil {
28175		return nil, err
28176	}
28177	return ret, nil
28178	// {
28179	//   "description": "Gets the debug data from a transaction.",
28180	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/debugsessions/{debugsessionsId}/data/{dataId}",
28181	//   "httpMethod": "GET",
28182	//   "id": "apigee.organizations.environments.apis.revisions.debugsessions.data.get",
28183	//   "parameterOrder": [
28184	//     "name"
28185	//   ],
28186	//   "parameters": {
28187	//     "name": {
28188	//       "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}`.",
28189	//       "location": "path",
28190	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+/debugsessions/[^/]+/data/[^/]+$",
28191	//       "required": true,
28192	//       "type": "string"
28193	//     }
28194	//   },
28195	//   "path": "v1/{+name}",
28196	//   "response": {
28197	//     "$ref": "GoogleCloudApigeeV1DebugSessionTransaction"
28198	//   },
28199	//   "scopes": [
28200	//     "https://www.googleapis.com/auth/cloud-platform"
28201	//   ]
28202	// }
28203
28204}
28205
28206// method id "apigee.organizations.environments.apis.revisions.deployments.generateDeployChangeReport":
28207
28208type OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall struct {
28209	s          *Service
28210	name       string
28211	urlParams_ gensupport.URLParams
28212	ctx_       context.Context
28213	header_    http.Header
28214}
28215
28216// GenerateDeployChangeReport: Generates a report for a dry run analysis
28217// of a DeployApiProxy request without committing the deployment. In
28218// addition to the standard validations performed when adding
28219// deployments, additional analysis will be done to detect possible
28220// traffic routing changes that would result from this deployment being
28221// created. Any potential routing conflicts or unsafe changes will be
28222// reported in the response. This routing analysis is not performed for
28223// a non-dry-run DeployApiProxy request. For a request path
28224// `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}/dep
28225// loyments:generateDeployChangeReport`, two permissions are required: *
28226// `apigee.deployments.create` on the resource
28227// `organizations/{org}/environments/{env}` *
28228// `apigee.proxyrevisions.deploy` on the resource
28229// `organizations/{org}/apis/{api}/revisions/{rev}`
28230//
28231// - name: Name of the API proxy revision deployment in the following
28232//   format:
28233//   `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`.
28234func (r *OrganizationsEnvironmentsApisRevisionsDeploymentsService) GenerateDeployChangeReport(name string) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall {
28235	c := &OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28236	c.name = name
28237	return c
28238}
28239
28240// Override sets the optional parameter "override": Flag that specifies
28241// whether to force the deployment of the new revision over the
28242// currently deployed revision by overriding conflict checks.
28243func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall) Override(override bool) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall {
28244	c.urlParams_.Set("override", fmt.Sprint(override))
28245	return c
28246}
28247
28248// Fields allows partial responses to be retrieved. See
28249// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
28250// for more information.
28251func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall {
28252	c.urlParams_.Set("fields", googleapi.CombineFields(s))
28253	return c
28254}
28255
28256// Context sets the context to be used in this call's Do method. Any
28257// pending HTTP request will be aborted if the provided context is
28258// canceled.
28259func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall {
28260	c.ctx_ = ctx
28261	return c
28262}
28263
28264// Header returns an http.Header that can be modified by the caller to
28265// add HTTP headers to the request.
28266func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall) Header() http.Header {
28267	if c.header_ == nil {
28268		c.header_ = make(http.Header)
28269	}
28270	return c.header_
28271}
28272
28273func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall) doRequest(alt string) (*http.Response, error) {
28274	reqHeaders := make(http.Header)
28275	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
28276	for k, v := range c.header_ {
28277		reqHeaders[k] = v
28278	}
28279	reqHeaders.Set("User-Agent", c.s.userAgent())
28280	var body io.Reader = nil
28281	c.urlParams_.Set("alt", alt)
28282	c.urlParams_.Set("prettyPrint", "false")
28283	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments:generateDeployChangeReport")
28284	urls += "?" + c.urlParams_.Encode()
28285	req, err := http.NewRequest("POST", urls, body)
28286	if err != nil {
28287		return nil, err
28288	}
28289	req.Header = reqHeaders
28290	googleapi.Expand(req.URL, map[string]string{
28291		"name": c.name,
28292	})
28293	return gensupport.SendRequest(c.ctx_, c.s.client, req)
28294}
28295
28296// Do executes the "apigee.organizations.environments.apis.revisions.deployments.generateDeployChangeReport" call.
28297// Exactly one of *GoogleCloudApigeeV1DeploymentChangeReport or error
28298// will be non-nil. Any non-2xx status code is an error. Response
28299// headers are in either
28300// *GoogleCloudApigeeV1DeploymentChangeReport.ServerResponse.Header or
28301// (if a response was returned at all) in
28302// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
28303// whether the returned error was because http.StatusNotModified was
28304// returned.
28305func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeploymentChangeReport, error) {
28306	gensupport.SetOptions(c.urlParams_, opts...)
28307	res, err := c.doRequest("json")
28308	if res != nil && res.StatusCode == http.StatusNotModified {
28309		if res.Body != nil {
28310			res.Body.Close()
28311		}
28312		return nil, &googleapi.Error{
28313			Code:   res.StatusCode,
28314			Header: res.Header,
28315		}
28316	}
28317	if err != nil {
28318		return nil, err
28319	}
28320	defer googleapi.CloseBody(res)
28321	if err := googleapi.CheckResponse(res); err != nil {
28322		return nil, err
28323	}
28324	ret := &GoogleCloudApigeeV1DeploymentChangeReport{
28325		ServerResponse: googleapi.ServerResponse{
28326			Header:         res.Header,
28327			HTTPStatusCode: res.StatusCode,
28328		},
28329	}
28330	target := &ret
28331	if err := gensupport.DecodeResponse(target, res); err != nil {
28332		return nil, err
28333	}
28334	return ret, nil
28335	// {
28336	//   "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}`",
28337	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/deployments:generateDeployChangeReport",
28338	//   "httpMethod": "POST",
28339	//   "id": "apigee.organizations.environments.apis.revisions.deployments.generateDeployChangeReport",
28340	//   "parameterOrder": [
28341	//     "name"
28342	//   ],
28343	//   "parameters": {
28344	//     "name": {
28345	//       "description": "Name of the API proxy revision deployment in the following format: `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`",
28346	//       "location": "path",
28347	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+$",
28348	//       "required": true,
28349	//       "type": "string"
28350	//     },
28351	//     "override": {
28352	//       "description": "Flag that specifies whether to force the deployment of the new revision over the currently deployed revision by overriding conflict checks.",
28353	//       "location": "query",
28354	//       "type": "boolean"
28355	//     }
28356	//   },
28357	//   "path": "v1/{+name}/deployments:generateDeployChangeReport",
28358	//   "response": {
28359	//     "$ref": "GoogleCloudApigeeV1DeploymentChangeReport"
28360	//   },
28361	//   "scopes": [
28362	//     "https://www.googleapis.com/auth/cloud-platform"
28363	//   ]
28364	// }
28365
28366}
28367
28368// method id "apigee.organizations.environments.apis.revisions.deployments.generateUndeployChangeReport":
28369
28370type OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall struct {
28371	s          *Service
28372	name       string
28373	urlParams_ gensupport.URLParams
28374	ctx_       context.Context
28375	header_    http.Header
28376}
28377
28378// GenerateUndeployChangeReport: Generates a report for a dry run
28379// analysis of an UndeployApiProxy request without committing the
28380// undeploy. In addition to the standard validations performed when
28381// removing deployments, additional analysis will be done to detect
28382// possible traffic routing changes that would result from this
28383// deployment being removed. Any potential routing conflicts or unsafe
28384// changes will be reported in the response. This routing analysis is
28385// not performed for a non-dry-run UndeployApiProxy request. For a
28386// request path
28387// `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}/dep
28388// loyments:generateUndeployChangeReport`, two permissions are required:
28389// * `apigee.deployments.delete` on the resource
28390// `organizations/{org}/environments/{env}` *
28391// `apigee.proxyrevisions.undeploy` on the resource
28392// `organizations/{org}/apis/{api}/revisions/{rev}`
28393//
28394// - name: Name of the API proxy revision deployment in the following
28395//   format:
28396//   `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`.
28397func (r *OrganizationsEnvironmentsApisRevisionsDeploymentsService) GenerateUndeployChangeReport(name string) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall {
28398	c := &OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28399	c.name = name
28400	return c
28401}
28402
28403// Fields allows partial responses to be retrieved. See
28404// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
28405// for more information.
28406func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall {
28407	c.urlParams_.Set("fields", googleapi.CombineFields(s))
28408	return c
28409}
28410
28411// Context sets the context to be used in this call's Do method. Any
28412// pending HTTP request will be aborted if the provided context is
28413// canceled.
28414func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall {
28415	c.ctx_ = ctx
28416	return c
28417}
28418
28419// Header returns an http.Header that can be modified by the caller to
28420// add HTTP headers to the request.
28421func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall) Header() http.Header {
28422	if c.header_ == nil {
28423		c.header_ = make(http.Header)
28424	}
28425	return c.header_
28426}
28427
28428func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall) doRequest(alt string) (*http.Response, error) {
28429	reqHeaders := make(http.Header)
28430	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
28431	for k, v := range c.header_ {
28432		reqHeaders[k] = v
28433	}
28434	reqHeaders.Set("User-Agent", c.s.userAgent())
28435	var body io.Reader = nil
28436	c.urlParams_.Set("alt", alt)
28437	c.urlParams_.Set("prettyPrint", "false")
28438	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments:generateUndeployChangeReport")
28439	urls += "?" + c.urlParams_.Encode()
28440	req, err := http.NewRequest("POST", urls, body)
28441	if err != nil {
28442		return nil, err
28443	}
28444	req.Header = reqHeaders
28445	googleapi.Expand(req.URL, map[string]string{
28446		"name": c.name,
28447	})
28448	return gensupport.SendRequest(c.ctx_, c.s.client, req)
28449}
28450
28451// Do executes the "apigee.organizations.environments.apis.revisions.deployments.generateUndeployChangeReport" call.
28452// Exactly one of *GoogleCloudApigeeV1DeploymentChangeReport or error
28453// will be non-nil. Any non-2xx status code is an error. Response
28454// headers are in either
28455// *GoogleCloudApigeeV1DeploymentChangeReport.ServerResponse.Header or
28456// (if a response was returned at all) in
28457// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
28458// whether the returned error was because http.StatusNotModified was
28459// returned.
28460func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeploymentChangeReport, error) {
28461	gensupport.SetOptions(c.urlParams_, opts...)
28462	res, err := c.doRequest("json")
28463	if res != nil && res.StatusCode == http.StatusNotModified {
28464		if res.Body != nil {
28465			res.Body.Close()
28466		}
28467		return nil, &googleapi.Error{
28468			Code:   res.StatusCode,
28469			Header: res.Header,
28470		}
28471	}
28472	if err != nil {
28473		return nil, err
28474	}
28475	defer googleapi.CloseBody(res)
28476	if err := googleapi.CheckResponse(res); err != nil {
28477		return nil, err
28478	}
28479	ret := &GoogleCloudApigeeV1DeploymentChangeReport{
28480		ServerResponse: googleapi.ServerResponse{
28481			Header:         res.Header,
28482			HTTPStatusCode: res.StatusCode,
28483		},
28484	}
28485	target := &ret
28486	if err := gensupport.DecodeResponse(target, res); err != nil {
28487		return nil, err
28488	}
28489	return ret, nil
28490	// {
28491	//   "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}`",
28492	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/deployments:generateUndeployChangeReport",
28493	//   "httpMethod": "POST",
28494	//   "id": "apigee.organizations.environments.apis.revisions.deployments.generateUndeployChangeReport",
28495	//   "parameterOrder": [
28496	//     "name"
28497	//   ],
28498	//   "parameters": {
28499	//     "name": {
28500	//       "description": "Name of the API proxy revision deployment in the following format: `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`",
28501	//       "location": "path",
28502	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+$",
28503	//       "required": true,
28504	//       "type": "string"
28505	//     }
28506	//   },
28507	//   "path": "v1/{+name}/deployments:generateUndeployChangeReport",
28508	//   "response": {
28509	//     "$ref": "GoogleCloudApigeeV1DeploymentChangeReport"
28510	//   },
28511	//   "scopes": [
28512	//     "https://www.googleapis.com/auth/cloud-platform"
28513	//   ]
28514	// }
28515
28516}
28517
28518// method id "apigee.organizations.environments.caches.delete":
28519
28520type OrganizationsEnvironmentsCachesDeleteCall struct {
28521	s          *Service
28522	name       string
28523	urlParams_ gensupport.URLParams
28524	ctx_       context.Context
28525	header_    http.Header
28526}
28527
28528// Delete: Deletes a cache.
28529//
28530// - name: Cache resource name of the form:
28531//   `organizations/{organization_id}/environments/{environment_id}/cache
28532//   s/{cache_id}`.
28533func (r *OrganizationsEnvironmentsCachesService) Delete(name string) *OrganizationsEnvironmentsCachesDeleteCall {
28534	c := &OrganizationsEnvironmentsCachesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28535	c.name = name
28536	return c
28537}
28538
28539// Fields allows partial responses to be retrieved. See
28540// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
28541// for more information.
28542func (c *OrganizationsEnvironmentsCachesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsCachesDeleteCall {
28543	c.urlParams_.Set("fields", googleapi.CombineFields(s))
28544	return c
28545}
28546
28547// Context sets the context to be used in this call's Do method. Any
28548// pending HTTP request will be aborted if the provided context is
28549// canceled.
28550func (c *OrganizationsEnvironmentsCachesDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsCachesDeleteCall {
28551	c.ctx_ = ctx
28552	return c
28553}
28554
28555// Header returns an http.Header that can be modified by the caller to
28556// add HTTP headers to the request.
28557func (c *OrganizationsEnvironmentsCachesDeleteCall) Header() http.Header {
28558	if c.header_ == nil {
28559		c.header_ = make(http.Header)
28560	}
28561	return c.header_
28562}
28563
28564func (c *OrganizationsEnvironmentsCachesDeleteCall) doRequest(alt string) (*http.Response, error) {
28565	reqHeaders := make(http.Header)
28566	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
28567	for k, v := range c.header_ {
28568		reqHeaders[k] = v
28569	}
28570	reqHeaders.Set("User-Agent", c.s.userAgent())
28571	var body io.Reader = nil
28572	c.urlParams_.Set("alt", alt)
28573	c.urlParams_.Set("prettyPrint", "false")
28574	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
28575	urls += "?" + c.urlParams_.Encode()
28576	req, err := http.NewRequest("DELETE", urls, body)
28577	if err != nil {
28578		return nil, err
28579	}
28580	req.Header = reqHeaders
28581	googleapi.Expand(req.URL, map[string]string{
28582		"name": c.name,
28583	})
28584	return gensupport.SendRequest(c.ctx_, c.s.client, req)
28585}
28586
28587// Do executes the "apigee.organizations.environments.caches.delete" call.
28588// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
28589// non-2xx status code is an error. Response headers are in either
28590// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
28591// returned at all) in error.(*googleapi.Error).Header. Use
28592// googleapi.IsNotModified to check whether the returned error was
28593// because http.StatusNotModified was returned.
28594func (c *OrganizationsEnvironmentsCachesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
28595	gensupport.SetOptions(c.urlParams_, opts...)
28596	res, err := c.doRequest("json")
28597	if res != nil && res.StatusCode == http.StatusNotModified {
28598		if res.Body != nil {
28599			res.Body.Close()
28600		}
28601		return nil, &googleapi.Error{
28602			Code:   res.StatusCode,
28603			Header: res.Header,
28604		}
28605	}
28606	if err != nil {
28607		return nil, err
28608	}
28609	defer googleapi.CloseBody(res)
28610	if err := googleapi.CheckResponse(res); err != nil {
28611		return nil, err
28612	}
28613	ret := &GoogleProtobufEmpty{
28614		ServerResponse: googleapi.ServerResponse{
28615			Header:         res.Header,
28616			HTTPStatusCode: res.StatusCode,
28617		},
28618	}
28619	target := &ret
28620	if err := gensupport.DecodeResponse(target, res); err != nil {
28621		return nil, err
28622	}
28623	return ret, nil
28624	// {
28625	//   "description": "Deletes a cache.",
28626	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/caches/{cachesId}",
28627	//   "httpMethod": "DELETE",
28628	//   "id": "apigee.organizations.environments.caches.delete",
28629	//   "parameterOrder": [
28630	//     "name"
28631	//   ],
28632	//   "parameters": {
28633	//     "name": {
28634	//       "description": "Required. Cache resource name of the form: `organizations/{organization_id}/environments/{environment_id}/caches/{cache_id}`",
28635	//       "location": "path",
28636	//       "pattern": "^organizations/[^/]+/environments/[^/]+/caches/[^/]+$",
28637	//       "required": true,
28638	//       "type": "string"
28639	//     }
28640	//   },
28641	//   "path": "v1/{+name}",
28642	//   "response": {
28643	//     "$ref": "GoogleProtobufEmpty"
28644	//   },
28645	//   "scopes": [
28646	//     "https://www.googleapis.com/auth/cloud-platform"
28647	//   ]
28648	// }
28649
28650}
28651
28652// method id "apigee.organizations.environments.deployments.list":
28653
28654type OrganizationsEnvironmentsDeploymentsListCall struct {
28655	s            *Service
28656	parent       string
28657	urlParams_   gensupport.URLParams
28658	ifNoneMatch_ string
28659	ctx_         context.Context
28660	header_      http.Header
28661}
28662
28663// List: Lists all deployments of API proxies or shared flows in an
28664// environment.
28665//
28666// - parent: Name of the environment for which to return deployment
28667//   information in the following format:
28668//   `organizations/{org}/environments/{env}`.
28669func (r *OrganizationsEnvironmentsDeploymentsService) List(parent string) *OrganizationsEnvironmentsDeploymentsListCall {
28670	c := &OrganizationsEnvironmentsDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28671	c.parent = parent
28672	return c
28673}
28674
28675// SharedFlows sets the optional parameter "sharedFlows": Flag that
28676// specifies whether to return shared flow or API proxy deployments. Set
28677// to `true` to return shared flow deployments; set to `false` to return
28678// API proxy deployments. Defaults to `false`.
28679func (c *OrganizationsEnvironmentsDeploymentsListCall) SharedFlows(sharedFlows bool) *OrganizationsEnvironmentsDeploymentsListCall {
28680	c.urlParams_.Set("sharedFlows", fmt.Sprint(sharedFlows))
28681	return c
28682}
28683
28684// Fields allows partial responses to be retrieved. See
28685// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
28686// for more information.
28687func (c *OrganizationsEnvironmentsDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsDeploymentsListCall {
28688	c.urlParams_.Set("fields", googleapi.CombineFields(s))
28689	return c
28690}
28691
28692// IfNoneMatch sets the optional parameter which makes the operation
28693// fail if the object's ETag matches the given value. This is useful for
28694// getting updates only after the object has changed since the last
28695// request. Use googleapi.IsNotModified to check whether the response
28696// error from Do is the result of In-None-Match.
28697func (c *OrganizationsEnvironmentsDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsDeploymentsListCall {
28698	c.ifNoneMatch_ = entityTag
28699	return c
28700}
28701
28702// Context sets the context to be used in this call's Do method. Any
28703// pending HTTP request will be aborted if the provided context is
28704// canceled.
28705func (c *OrganizationsEnvironmentsDeploymentsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsDeploymentsListCall {
28706	c.ctx_ = ctx
28707	return c
28708}
28709
28710// Header returns an http.Header that can be modified by the caller to
28711// add HTTP headers to the request.
28712func (c *OrganizationsEnvironmentsDeploymentsListCall) Header() http.Header {
28713	if c.header_ == nil {
28714		c.header_ = make(http.Header)
28715	}
28716	return c.header_
28717}
28718
28719func (c *OrganizationsEnvironmentsDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
28720	reqHeaders := make(http.Header)
28721	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
28722	for k, v := range c.header_ {
28723		reqHeaders[k] = v
28724	}
28725	reqHeaders.Set("User-Agent", c.s.userAgent())
28726	if c.ifNoneMatch_ != "" {
28727		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
28728	}
28729	var body io.Reader = nil
28730	c.urlParams_.Set("alt", alt)
28731	c.urlParams_.Set("prettyPrint", "false")
28732	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
28733	urls += "?" + c.urlParams_.Encode()
28734	req, err := http.NewRequest("GET", urls, body)
28735	if err != nil {
28736		return nil, err
28737	}
28738	req.Header = reqHeaders
28739	googleapi.Expand(req.URL, map[string]string{
28740		"parent": c.parent,
28741	})
28742	return gensupport.SendRequest(c.ctx_, c.s.client, req)
28743}
28744
28745// Do executes the "apigee.organizations.environments.deployments.list" call.
28746// Exactly one of *GoogleCloudApigeeV1ListDeploymentsResponse or error
28747// will be non-nil. Any non-2xx status code is an error. Response
28748// headers are in either
28749// *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or
28750// (if a response was returned at all) in
28751// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
28752// whether the returned error was because http.StatusNotModified was
28753// returned.
28754func (c *OrganizationsEnvironmentsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
28755	gensupport.SetOptions(c.urlParams_, opts...)
28756	res, err := c.doRequest("json")
28757	if res != nil && res.StatusCode == http.StatusNotModified {
28758		if res.Body != nil {
28759			res.Body.Close()
28760		}
28761		return nil, &googleapi.Error{
28762			Code:   res.StatusCode,
28763			Header: res.Header,
28764		}
28765	}
28766	if err != nil {
28767		return nil, err
28768	}
28769	defer googleapi.CloseBody(res)
28770	if err := googleapi.CheckResponse(res); err != nil {
28771		return nil, err
28772	}
28773	ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
28774		ServerResponse: googleapi.ServerResponse{
28775			Header:         res.Header,
28776			HTTPStatusCode: res.StatusCode,
28777		},
28778	}
28779	target := &ret
28780	if err := gensupport.DecodeResponse(target, res); err != nil {
28781		return nil, err
28782	}
28783	return ret, nil
28784	// {
28785	//   "description": "Lists all deployments of API proxies or shared flows in an environment.",
28786	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/deployments",
28787	//   "httpMethod": "GET",
28788	//   "id": "apigee.organizations.environments.deployments.list",
28789	//   "parameterOrder": [
28790	//     "parent"
28791	//   ],
28792	//   "parameters": {
28793	//     "parent": {
28794	//       "description": "Required. Name of the environment for which to return deployment information in the following format: `organizations/{org}/environments/{env}`",
28795	//       "location": "path",
28796	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
28797	//       "required": true,
28798	//       "type": "string"
28799	//     },
28800	//     "sharedFlows": {
28801	//       "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`.",
28802	//       "location": "query",
28803	//       "type": "boolean"
28804	//     }
28805	//   },
28806	//   "path": "v1/{+parent}/deployments",
28807	//   "response": {
28808	//     "$ref": "GoogleCloudApigeeV1ListDeploymentsResponse"
28809	//   },
28810	//   "scopes": [
28811	//     "https://www.googleapis.com/auth/cloud-platform"
28812	//   ]
28813	// }
28814
28815}
28816
28817// method id "apigee.organizations.environments.flowhooks.attachSharedFlowToFlowHook":
28818
28819type OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall struct {
28820	s                           *Service
28821	name                        string
28822	googlecloudapigeev1flowhook *GoogleCloudApigeeV1FlowHook
28823	urlParams_                  gensupport.URLParams
28824	ctx_                        context.Context
28825	header_                     http.Header
28826}
28827
28828// AttachSharedFlowToFlowHook: Attaches a shared flow to a flow hook.
28829//
28830// - name: Name of the flow hook to which the shared flow should be
28831//   attached in the following format:
28832//   `organizations/{org}/environments/{env}/flowhooks/{flowhook}`.
28833func (r *OrganizationsEnvironmentsFlowhooksService) AttachSharedFlowToFlowHook(name string, googlecloudapigeev1flowhook *GoogleCloudApigeeV1FlowHook) *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall {
28834	c := &OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28835	c.name = name
28836	c.googlecloudapigeev1flowhook = googlecloudapigeev1flowhook
28837	return c
28838}
28839
28840// Fields allows partial responses to be retrieved. See
28841// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
28842// for more information.
28843func (c *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall {
28844	c.urlParams_.Set("fields", googleapi.CombineFields(s))
28845	return c
28846}
28847
28848// Context sets the context to be used in this call's Do method. Any
28849// pending HTTP request will be aborted if the provided context is
28850// canceled.
28851func (c *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall) Context(ctx context.Context) *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall {
28852	c.ctx_ = ctx
28853	return c
28854}
28855
28856// Header returns an http.Header that can be modified by the caller to
28857// add HTTP headers to the request.
28858func (c *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall) Header() http.Header {
28859	if c.header_ == nil {
28860		c.header_ = make(http.Header)
28861	}
28862	return c.header_
28863}
28864
28865func (c *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall) doRequest(alt string) (*http.Response, error) {
28866	reqHeaders := make(http.Header)
28867	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
28868	for k, v := range c.header_ {
28869		reqHeaders[k] = v
28870	}
28871	reqHeaders.Set("User-Agent", c.s.userAgent())
28872	var body io.Reader = nil
28873	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1flowhook)
28874	if err != nil {
28875		return nil, err
28876	}
28877	reqHeaders.Set("Content-Type", "application/json")
28878	c.urlParams_.Set("alt", alt)
28879	c.urlParams_.Set("prettyPrint", "false")
28880	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
28881	urls += "?" + c.urlParams_.Encode()
28882	req, err := http.NewRequest("PUT", urls, body)
28883	if err != nil {
28884		return nil, err
28885	}
28886	req.Header = reqHeaders
28887	googleapi.Expand(req.URL, map[string]string{
28888		"name": c.name,
28889	})
28890	return gensupport.SendRequest(c.ctx_, c.s.client, req)
28891}
28892
28893// Do executes the "apigee.organizations.environments.flowhooks.attachSharedFlowToFlowHook" call.
28894// Exactly one of *GoogleCloudApigeeV1FlowHook or error will be non-nil.
28895// Any non-2xx status code is an error. Response headers are in either
28896// *GoogleCloudApigeeV1FlowHook.ServerResponse.Header or (if a response
28897// was returned at all) in error.(*googleapi.Error).Header. Use
28898// googleapi.IsNotModified to check whether the returned error was
28899// because http.StatusNotModified was returned.
28900func (c *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1FlowHook, error) {
28901	gensupport.SetOptions(c.urlParams_, opts...)
28902	res, err := c.doRequest("json")
28903	if res != nil && res.StatusCode == http.StatusNotModified {
28904		if res.Body != nil {
28905			res.Body.Close()
28906		}
28907		return nil, &googleapi.Error{
28908			Code:   res.StatusCode,
28909			Header: res.Header,
28910		}
28911	}
28912	if err != nil {
28913		return nil, err
28914	}
28915	defer googleapi.CloseBody(res)
28916	if err := googleapi.CheckResponse(res); err != nil {
28917		return nil, err
28918	}
28919	ret := &GoogleCloudApigeeV1FlowHook{
28920		ServerResponse: googleapi.ServerResponse{
28921			Header:         res.Header,
28922			HTTPStatusCode: res.StatusCode,
28923		},
28924	}
28925	target := &ret
28926	if err := gensupport.DecodeResponse(target, res); err != nil {
28927		return nil, err
28928	}
28929	return ret, nil
28930	// {
28931	//   "description": "Attaches a shared flow to a flow hook.",
28932	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/flowhooks/{flowhooksId}",
28933	//   "httpMethod": "PUT",
28934	//   "id": "apigee.organizations.environments.flowhooks.attachSharedFlowToFlowHook",
28935	//   "parameterOrder": [
28936	//     "name"
28937	//   ],
28938	//   "parameters": {
28939	//     "name": {
28940	//       "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}`",
28941	//       "location": "path",
28942	//       "pattern": "^organizations/[^/]+/environments/[^/]+/flowhooks/[^/]+$",
28943	//       "required": true,
28944	//       "type": "string"
28945	//     }
28946	//   },
28947	//   "path": "v1/{+name}",
28948	//   "request": {
28949	//     "$ref": "GoogleCloudApigeeV1FlowHook"
28950	//   },
28951	//   "response": {
28952	//     "$ref": "GoogleCloudApigeeV1FlowHook"
28953	//   },
28954	//   "scopes": [
28955	//     "https://www.googleapis.com/auth/cloud-platform"
28956	//   ]
28957	// }
28958
28959}
28960
28961// method id "apigee.organizations.environments.flowhooks.detachSharedFlowFromFlowHook":
28962
28963type OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall struct {
28964	s          *Service
28965	name       string
28966	urlParams_ gensupport.URLParams
28967	ctx_       context.Context
28968	header_    http.Header
28969}
28970
28971// DetachSharedFlowFromFlowHook: Detaches a shared flow from a flow
28972// hook.
28973//
28974// - name: Name of the flow hook to detach in the following format:
28975//   `organizations/{org}/environments/{env}/flowhooks/{flowhook}`.
28976func (r *OrganizationsEnvironmentsFlowhooksService) DetachSharedFlowFromFlowHook(name string) *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall {
28977	c := &OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28978	c.name = name
28979	return c
28980}
28981
28982// Fields allows partial responses to be retrieved. See
28983// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
28984// for more information.
28985func (c *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall {
28986	c.urlParams_.Set("fields", googleapi.CombineFields(s))
28987	return c
28988}
28989
28990// Context sets the context to be used in this call's Do method. Any
28991// pending HTTP request will be aborted if the provided context is
28992// canceled.
28993func (c *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall) Context(ctx context.Context) *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall {
28994	c.ctx_ = ctx
28995	return c
28996}
28997
28998// Header returns an http.Header that can be modified by the caller to
28999// add HTTP headers to the request.
29000func (c *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall) Header() http.Header {
29001	if c.header_ == nil {
29002		c.header_ = make(http.Header)
29003	}
29004	return c.header_
29005}
29006
29007func (c *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall) doRequest(alt string) (*http.Response, error) {
29008	reqHeaders := make(http.Header)
29009	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
29010	for k, v := range c.header_ {
29011		reqHeaders[k] = v
29012	}
29013	reqHeaders.Set("User-Agent", c.s.userAgent())
29014	var body io.Reader = nil
29015	c.urlParams_.Set("alt", alt)
29016	c.urlParams_.Set("prettyPrint", "false")
29017	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
29018	urls += "?" + c.urlParams_.Encode()
29019	req, err := http.NewRequest("DELETE", urls, body)
29020	if err != nil {
29021		return nil, err
29022	}
29023	req.Header = reqHeaders
29024	googleapi.Expand(req.URL, map[string]string{
29025		"name": c.name,
29026	})
29027	return gensupport.SendRequest(c.ctx_, c.s.client, req)
29028}
29029
29030// Do executes the "apigee.organizations.environments.flowhooks.detachSharedFlowFromFlowHook" call.
29031// Exactly one of *GoogleCloudApigeeV1FlowHook or error will be non-nil.
29032// Any non-2xx status code is an error. Response headers are in either
29033// *GoogleCloudApigeeV1FlowHook.ServerResponse.Header or (if a response
29034// was returned at all) in error.(*googleapi.Error).Header. Use
29035// googleapi.IsNotModified to check whether the returned error was
29036// because http.StatusNotModified was returned.
29037func (c *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1FlowHook, error) {
29038	gensupport.SetOptions(c.urlParams_, opts...)
29039	res, err := c.doRequest("json")
29040	if res != nil && res.StatusCode == http.StatusNotModified {
29041		if res.Body != nil {
29042			res.Body.Close()
29043		}
29044		return nil, &googleapi.Error{
29045			Code:   res.StatusCode,
29046			Header: res.Header,
29047		}
29048	}
29049	if err != nil {
29050		return nil, err
29051	}
29052	defer googleapi.CloseBody(res)
29053	if err := googleapi.CheckResponse(res); err != nil {
29054		return nil, err
29055	}
29056	ret := &GoogleCloudApigeeV1FlowHook{
29057		ServerResponse: googleapi.ServerResponse{
29058			Header:         res.Header,
29059			HTTPStatusCode: res.StatusCode,
29060		},
29061	}
29062	target := &ret
29063	if err := gensupport.DecodeResponse(target, res); err != nil {
29064		return nil, err
29065	}
29066	return ret, nil
29067	// {
29068	//   "description": "Detaches a shared flow from a flow hook.",
29069	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/flowhooks/{flowhooksId}",
29070	//   "httpMethod": "DELETE",
29071	//   "id": "apigee.organizations.environments.flowhooks.detachSharedFlowFromFlowHook",
29072	//   "parameterOrder": [
29073	//     "name"
29074	//   ],
29075	//   "parameters": {
29076	//     "name": {
29077	//       "description": "Required. Name of the flow hook to detach in the following format: `organizations/{org}/environments/{env}/flowhooks/{flowhook}`",
29078	//       "location": "path",
29079	//       "pattern": "^organizations/[^/]+/environments/[^/]+/flowhooks/[^/]+$",
29080	//       "required": true,
29081	//       "type": "string"
29082	//     }
29083	//   },
29084	//   "path": "v1/{+name}",
29085	//   "response": {
29086	//     "$ref": "GoogleCloudApigeeV1FlowHook"
29087	//   },
29088	//   "scopes": [
29089	//     "https://www.googleapis.com/auth/cloud-platform"
29090	//   ]
29091	// }
29092
29093}
29094
29095// method id "apigee.organizations.environments.flowhooks.get":
29096
29097type OrganizationsEnvironmentsFlowhooksGetCall struct {
29098	s            *Service
29099	name         string
29100	urlParams_   gensupport.URLParams
29101	ifNoneMatch_ string
29102	ctx_         context.Context
29103	header_      http.Header
29104}
29105
29106// Get: Returns the name of the shared flow attached to the specified
29107// flow hook. If there's no shared flow attached to the flow hook, the
29108// API does not return an error; it simply does not return a name in the
29109// response.
29110//
29111// - name: Name of the flow hook in the following format:
29112//   `organizations/{org}/environments/{env}/flowhooks/{flowhook}`.
29113func (r *OrganizationsEnvironmentsFlowhooksService) Get(name string) *OrganizationsEnvironmentsFlowhooksGetCall {
29114	c := &OrganizationsEnvironmentsFlowhooksGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29115	c.name = name
29116	return c
29117}
29118
29119// Fields allows partial responses to be retrieved. See
29120// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
29121// for more information.
29122func (c *OrganizationsEnvironmentsFlowhooksGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsFlowhooksGetCall {
29123	c.urlParams_.Set("fields", googleapi.CombineFields(s))
29124	return c
29125}
29126
29127// IfNoneMatch sets the optional parameter which makes the operation
29128// fail if the object's ETag matches the given value. This is useful for
29129// getting updates only after the object has changed since the last
29130// request. Use googleapi.IsNotModified to check whether the response
29131// error from Do is the result of In-None-Match.
29132func (c *OrganizationsEnvironmentsFlowhooksGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsFlowhooksGetCall {
29133	c.ifNoneMatch_ = entityTag
29134	return c
29135}
29136
29137// Context sets the context to be used in this call's Do method. Any
29138// pending HTTP request will be aborted if the provided context is
29139// canceled.
29140func (c *OrganizationsEnvironmentsFlowhooksGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsFlowhooksGetCall {
29141	c.ctx_ = ctx
29142	return c
29143}
29144
29145// Header returns an http.Header that can be modified by the caller to
29146// add HTTP headers to the request.
29147func (c *OrganizationsEnvironmentsFlowhooksGetCall) Header() http.Header {
29148	if c.header_ == nil {
29149		c.header_ = make(http.Header)
29150	}
29151	return c.header_
29152}
29153
29154func (c *OrganizationsEnvironmentsFlowhooksGetCall) doRequest(alt string) (*http.Response, error) {
29155	reqHeaders := make(http.Header)
29156	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
29157	for k, v := range c.header_ {
29158		reqHeaders[k] = v
29159	}
29160	reqHeaders.Set("User-Agent", c.s.userAgent())
29161	if c.ifNoneMatch_ != "" {
29162		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
29163	}
29164	var body io.Reader = nil
29165	c.urlParams_.Set("alt", alt)
29166	c.urlParams_.Set("prettyPrint", "false")
29167	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
29168	urls += "?" + c.urlParams_.Encode()
29169	req, err := http.NewRequest("GET", urls, body)
29170	if err != nil {
29171		return nil, err
29172	}
29173	req.Header = reqHeaders
29174	googleapi.Expand(req.URL, map[string]string{
29175		"name": c.name,
29176	})
29177	return gensupport.SendRequest(c.ctx_, c.s.client, req)
29178}
29179
29180// Do executes the "apigee.organizations.environments.flowhooks.get" call.
29181// Exactly one of *GoogleCloudApigeeV1FlowHook or error will be non-nil.
29182// Any non-2xx status code is an error. Response headers are in either
29183// *GoogleCloudApigeeV1FlowHook.ServerResponse.Header or (if a response
29184// was returned at all) in error.(*googleapi.Error).Header. Use
29185// googleapi.IsNotModified to check whether the returned error was
29186// because http.StatusNotModified was returned.
29187func (c *OrganizationsEnvironmentsFlowhooksGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1FlowHook, error) {
29188	gensupport.SetOptions(c.urlParams_, opts...)
29189	res, err := c.doRequest("json")
29190	if res != nil && res.StatusCode == http.StatusNotModified {
29191		if res.Body != nil {
29192			res.Body.Close()
29193		}
29194		return nil, &googleapi.Error{
29195			Code:   res.StatusCode,
29196			Header: res.Header,
29197		}
29198	}
29199	if err != nil {
29200		return nil, err
29201	}
29202	defer googleapi.CloseBody(res)
29203	if err := googleapi.CheckResponse(res); err != nil {
29204		return nil, err
29205	}
29206	ret := &GoogleCloudApigeeV1FlowHook{
29207		ServerResponse: googleapi.ServerResponse{
29208			Header:         res.Header,
29209			HTTPStatusCode: res.StatusCode,
29210		},
29211	}
29212	target := &ret
29213	if err := gensupport.DecodeResponse(target, res); err != nil {
29214		return nil, err
29215	}
29216	return ret, nil
29217	// {
29218	//   "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.",
29219	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/flowhooks/{flowhooksId}",
29220	//   "httpMethod": "GET",
29221	//   "id": "apigee.organizations.environments.flowhooks.get",
29222	//   "parameterOrder": [
29223	//     "name"
29224	//   ],
29225	//   "parameters": {
29226	//     "name": {
29227	//       "description": "Required. Name of the flow hook in the following format: `organizations/{org}/environments/{env}/flowhooks/{flowhook}`",
29228	//       "location": "path",
29229	//       "pattern": "^organizations/[^/]+/environments/[^/]+/flowhooks/[^/]+$",
29230	//       "required": true,
29231	//       "type": "string"
29232	//     }
29233	//   },
29234	//   "path": "v1/{+name}",
29235	//   "response": {
29236	//     "$ref": "GoogleCloudApigeeV1FlowHook"
29237	//   },
29238	//   "scopes": [
29239	//     "https://www.googleapis.com/auth/cloud-platform"
29240	//   ]
29241	// }
29242
29243}
29244
29245// method id "apigee.organizations.environments.keystores.create":
29246
29247type OrganizationsEnvironmentsKeystoresCreateCall struct {
29248	s                           *Service
29249	parent                      string
29250	googlecloudapigeev1keystore *GoogleCloudApigeeV1Keystore
29251	urlParams_                  gensupport.URLParams
29252	ctx_                        context.Context
29253	header_                     http.Header
29254}
29255
29256// Create: Creates a keystore or truststore. - Keystore: Contains
29257// certificates and their associated keys. - Truststore: Contains
29258// trusted certificates used to validate a server's certificate. These
29259// certificates are typically self-signed certificates or certificates
29260// that are not signed by a trusted CA.
29261//
29262// - parent: Name of the environment in which to create the keystore.
29263//   Use the following format in your request:
29264//   `organizations/{org}/environments/{env}`.
29265func (r *OrganizationsEnvironmentsKeystoresService) Create(parent string, googlecloudapigeev1keystore *GoogleCloudApigeeV1Keystore) *OrganizationsEnvironmentsKeystoresCreateCall {
29266	c := &OrganizationsEnvironmentsKeystoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29267	c.parent = parent
29268	c.googlecloudapigeev1keystore = googlecloudapigeev1keystore
29269	return c
29270}
29271
29272// Name sets the optional parameter "name": Name of the keystore.
29273// Overrides the value in Keystore.
29274func (c *OrganizationsEnvironmentsKeystoresCreateCall) Name(name string) *OrganizationsEnvironmentsKeystoresCreateCall {
29275	c.urlParams_.Set("name", name)
29276	return c
29277}
29278
29279// Fields allows partial responses to be retrieved. See
29280// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
29281// for more information.
29282func (c *OrganizationsEnvironmentsKeystoresCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresCreateCall {
29283	c.urlParams_.Set("fields", googleapi.CombineFields(s))
29284	return c
29285}
29286
29287// Context sets the context to be used in this call's Do method. Any
29288// pending HTTP request will be aborted if the provided context is
29289// canceled.
29290func (c *OrganizationsEnvironmentsKeystoresCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresCreateCall {
29291	c.ctx_ = ctx
29292	return c
29293}
29294
29295// Header returns an http.Header that can be modified by the caller to
29296// add HTTP headers to the request.
29297func (c *OrganizationsEnvironmentsKeystoresCreateCall) Header() http.Header {
29298	if c.header_ == nil {
29299		c.header_ = make(http.Header)
29300	}
29301	return c.header_
29302}
29303
29304func (c *OrganizationsEnvironmentsKeystoresCreateCall) doRequest(alt string) (*http.Response, error) {
29305	reqHeaders := make(http.Header)
29306	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
29307	for k, v := range c.header_ {
29308		reqHeaders[k] = v
29309	}
29310	reqHeaders.Set("User-Agent", c.s.userAgent())
29311	var body io.Reader = nil
29312	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1keystore)
29313	if err != nil {
29314		return nil, err
29315	}
29316	reqHeaders.Set("Content-Type", "application/json")
29317	c.urlParams_.Set("alt", alt)
29318	c.urlParams_.Set("prettyPrint", "false")
29319	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keystores")
29320	urls += "?" + c.urlParams_.Encode()
29321	req, err := http.NewRequest("POST", urls, body)
29322	if err != nil {
29323		return nil, err
29324	}
29325	req.Header = reqHeaders
29326	googleapi.Expand(req.URL, map[string]string{
29327		"parent": c.parent,
29328	})
29329	return gensupport.SendRequest(c.ctx_, c.s.client, req)
29330}
29331
29332// Do executes the "apigee.organizations.environments.keystores.create" call.
29333// Exactly one of *GoogleCloudApigeeV1Keystore or error will be non-nil.
29334// Any non-2xx status code is an error. Response headers are in either
29335// *GoogleCloudApigeeV1Keystore.ServerResponse.Header or (if a response
29336// was returned at all) in error.(*googleapi.Error).Header. Use
29337// googleapi.IsNotModified to check whether the returned error was
29338// because http.StatusNotModified was returned.
29339func (c *OrganizationsEnvironmentsKeystoresCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Keystore, error) {
29340	gensupport.SetOptions(c.urlParams_, opts...)
29341	res, err := c.doRequest("json")
29342	if res != nil && res.StatusCode == http.StatusNotModified {
29343		if res.Body != nil {
29344			res.Body.Close()
29345		}
29346		return nil, &googleapi.Error{
29347			Code:   res.StatusCode,
29348			Header: res.Header,
29349		}
29350	}
29351	if err != nil {
29352		return nil, err
29353	}
29354	defer googleapi.CloseBody(res)
29355	if err := googleapi.CheckResponse(res); err != nil {
29356		return nil, err
29357	}
29358	ret := &GoogleCloudApigeeV1Keystore{
29359		ServerResponse: googleapi.ServerResponse{
29360			Header:         res.Header,
29361			HTTPStatusCode: res.StatusCode,
29362		},
29363	}
29364	target := &ret
29365	if err := gensupport.DecodeResponse(target, res); err != nil {
29366		return nil, err
29367	}
29368	return ret, nil
29369	// {
29370	//   "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.",
29371	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores",
29372	//   "httpMethod": "POST",
29373	//   "id": "apigee.organizations.environments.keystores.create",
29374	//   "parameterOrder": [
29375	//     "parent"
29376	//   ],
29377	//   "parameters": {
29378	//     "name": {
29379	//       "description": "Optional. Name of the keystore. Overrides the value in Keystore.",
29380	//       "location": "query",
29381	//       "type": "string"
29382	//     },
29383	//     "parent": {
29384	//       "description": "Required. Name of the environment in which to create the keystore. Use the following format in your request: `organizations/{org}/environments/{env}`",
29385	//       "location": "path",
29386	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
29387	//       "required": true,
29388	//       "type": "string"
29389	//     }
29390	//   },
29391	//   "path": "v1/{+parent}/keystores",
29392	//   "request": {
29393	//     "$ref": "GoogleCloudApigeeV1Keystore"
29394	//   },
29395	//   "response": {
29396	//     "$ref": "GoogleCloudApigeeV1Keystore"
29397	//   },
29398	//   "scopes": [
29399	//     "https://www.googleapis.com/auth/cloud-platform"
29400	//   ]
29401	// }
29402
29403}
29404
29405// method id "apigee.organizations.environments.keystores.delete":
29406
29407type OrganizationsEnvironmentsKeystoresDeleteCall struct {
29408	s          *Service
29409	name       string
29410	urlParams_ gensupport.URLParams
29411	ctx_       context.Context
29412	header_    http.Header
29413}
29414
29415// Delete: Deletes a keystore or truststore.
29416//
29417// - name: Name of the keystore. Use the following format in your
29418//   request:
29419//   `organizations/{org}/environments/{env}/keystores/{keystore}`.
29420func (r *OrganizationsEnvironmentsKeystoresService) Delete(name string) *OrganizationsEnvironmentsKeystoresDeleteCall {
29421	c := &OrganizationsEnvironmentsKeystoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29422	c.name = name
29423	return c
29424}
29425
29426// Fields allows partial responses to be retrieved. See
29427// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
29428// for more information.
29429func (c *OrganizationsEnvironmentsKeystoresDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresDeleteCall {
29430	c.urlParams_.Set("fields", googleapi.CombineFields(s))
29431	return c
29432}
29433
29434// Context sets the context to be used in this call's Do method. Any
29435// pending HTTP request will be aborted if the provided context is
29436// canceled.
29437func (c *OrganizationsEnvironmentsKeystoresDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresDeleteCall {
29438	c.ctx_ = ctx
29439	return c
29440}
29441
29442// Header returns an http.Header that can be modified by the caller to
29443// add HTTP headers to the request.
29444func (c *OrganizationsEnvironmentsKeystoresDeleteCall) Header() http.Header {
29445	if c.header_ == nil {
29446		c.header_ = make(http.Header)
29447	}
29448	return c.header_
29449}
29450
29451func (c *OrganizationsEnvironmentsKeystoresDeleteCall) doRequest(alt string) (*http.Response, error) {
29452	reqHeaders := make(http.Header)
29453	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
29454	for k, v := range c.header_ {
29455		reqHeaders[k] = v
29456	}
29457	reqHeaders.Set("User-Agent", c.s.userAgent())
29458	var body io.Reader = nil
29459	c.urlParams_.Set("alt", alt)
29460	c.urlParams_.Set("prettyPrint", "false")
29461	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
29462	urls += "?" + c.urlParams_.Encode()
29463	req, err := http.NewRequest("DELETE", urls, body)
29464	if err != nil {
29465		return nil, err
29466	}
29467	req.Header = reqHeaders
29468	googleapi.Expand(req.URL, map[string]string{
29469		"name": c.name,
29470	})
29471	return gensupport.SendRequest(c.ctx_, c.s.client, req)
29472}
29473
29474// Do executes the "apigee.organizations.environments.keystores.delete" call.
29475// Exactly one of *GoogleCloudApigeeV1Keystore or error will be non-nil.
29476// Any non-2xx status code is an error. Response headers are in either
29477// *GoogleCloudApigeeV1Keystore.ServerResponse.Header or (if a response
29478// was returned at all) in error.(*googleapi.Error).Header. Use
29479// googleapi.IsNotModified to check whether the returned error was
29480// because http.StatusNotModified was returned.
29481func (c *OrganizationsEnvironmentsKeystoresDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Keystore, error) {
29482	gensupport.SetOptions(c.urlParams_, opts...)
29483	res, err := c.doRequest("json")
29484	if res != nil && res.StatusCode == http.StatusNotModified {
29485		if res.Body != nil {
29486			res.Body.Close()
29487		}
29488		return nil, &googleapi.Error{
29489			Code:   res.StatusCode,
29490			Header: res.Header,
29491		}
29492	}
29493	if err != nil {
29494		return nil, err
29495	}
29496	defer googleapi.CloseBody(res)
29497	if err := googleapi.CheckResponse(res); err != nil {
29498		return nil, err
29499	}
29500	ret := &GoogleCloudApigeeV1Keystore{
29501		ServerResponse: googleapi.ServerResponse{
29502			Header:         res.Header,
29503			HTTPStatusCode: res.StatusCode,
29504		},
29505	}
29506	target := &ret
29507	if err := gensupport.DecodeResponse(target, res); err != nil {
29508		return nil, err
29509	}
29510	return ret, nil
29511	// {
29512	//   "description": "Deletes a keystore or truststore.",
29513	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}",
29514	//   "httpMethod": "DELETE",
29515	//   "id": "apigee.organizations.environments.keystores.delete",
29516	//   "parameterOrder": [
29517	//     "name"
29518	//   ],
29519	//   "parameters": {
29520	//     "name": {
29521	//       "description": "Required. Name of the keystore. Use the following format in your request: `organizations/{org}/environments/{env}/keystores/{keystore}`",
29522	//       "location": "path",
29523	//       "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+$",
29524	//       "required": true,
29525	//       "type": "string"
29526	//     }
29527	//   },
29528	//   "path": "v1/{+name}",
29529	//   "response": {
29530	//     "$ref": "GoogleCloudApigeeV1Keystore"
29531	//   },
29532	//   "scopes": [
29533	//     "https://www.googleapis.com/auth/cloud-platform"
29534	//   ]
29535	// }
29536
29537}
29538
29539// method id "apigee.organizations.environments.keystores.get":
29540
29541type OrganizationsEnvironmentsKeystoresGetCall struct {
29542	s            *Service
29543	name         string
29544	urlParams_   gensupport.URLParams
29545	ifNoneMatch_ string
29546	ctx_         context.Context
29547	header_      http.Header
29548}
29549
29550// Get: Gets a keystore or truststore.
29551//
29552// - name: Name of the keystore. Use the following format in your
29553//   request:
29554//   `organizations/{org}/environments/{env}/keystores/{keystore}`.
29555func (r *OrganizationsEnvironmentsKeystoresService) Get(name string) *OrganizationsEnvironmentsKeystoresGetCall {
29556	c := &OrganizationsEnvironmentsKeystoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29557	c.name = name
29558	return c
29559}
29560
29561// Fields allows partial responses to be retrieved. See
29562// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
29563// for more information.
29564func (c *OrganizationsEnvironmentsKeystoresGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresGetCall {
29565	c.urlParams_.Set("fields", googleapi.CombineFields(s))
29566	return c
29567}
29568
29569// IfNoneMatch sets the optional parameter which makes the operation
29570// fail if the object's ETag matches the given value. This is useful for
29571// getting updates only after the object has changed since the last
29572// request. Use googleapi.IsNotModified to check whether the response
29573// error from Do is the result of In-None-Match.
29574func (c *OrganizationsEnvironmentsKeystoresGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsKeystoresGetCall {
29575	c.ifNoneMatch_ = entityTag
29576	return c
29577}
29578
29579// Context sets the context to be used in this call's Do method. Any
29580// pending HTTP request will be aborted if the provided context is
29581// canceled.
29582func (c *OrganizationsEnvironmentsKeystoresGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresGetCall {
29583	c.ctx_ = ctx
29584	return c
29585}
29586
29587// Header returns an http.Header that can be modified by the caller to
29588// add HTTP headers to the request.
29589func (c *OrganizationsEnvironmentsKeystoresGetCall) Header() http.Header {
29590	if c.header_ == nil {
29591		c.header_ = make(http.Header)
29592	}
29593	return c.header_
29594}
29595
29596func (c *OrganizationsEnvironmentsKeystoresGetCall) doRequest(alt string) (*http.Response, error) {
29597	reqHeaders := make(http.Header)
29598	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
29599	for k, v := range c.header_ {
29600		reqHeaders[k] = v
29601	}
29602	reqHeaders.Set("User-Agent", c.s.userAgent())
29603	if c.ifNoneMatch_ != "" {
29604		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
29605	}
29606	var body io.Reader = nil
29607	c.urlParams_.Set("alt", alt)
29608	c.urlParams_.Set("prettyPrint", "false")
29609	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
29610	urls += "?" + c.urlParams_.Encode()
29611	req, err := http.NewRequest("GET", urls, body)
29612	if err != nil {
29613		return nil, err
29614	}
29615	req.Header = reqHeaders
29616	googleapi.Expand(req.URL, map[string]string{
29617		"name": c.name,
29618	})
29619	return gensupport.SendRequest(c.ctx_, c.s.client, req)
29620}
29621
29622// Do executes the "apigee.organizations.environments.keystores.get" call.
29623// Exactly one of *GoogleCloudApigeeV1Keystore or error will be non-nil.
29624// Any non-2xx status code is an error. Response headers are in either
29625// *GoogleCloudApigeeV1Keystore.ServerResponse.Header or (if a response
29626// was returned at all) in error.(*googleapi.Error).Header. Use
29627// googleapi.IsNotModified to check whether the returned error was
29628// because http.StatusNotModified was returned.
29629func (c *OrganizationsEnvironmentsKeystoresGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Keystore, error) {
29630	gensupport.SetOptions(c.urlParams_, opts...)
29631	res, err := c.doRequest("json")
29632	if res != nil && res.StatusCode == http.StatusNotModified {
29633		if res.Body != nil {
29634			res.Body.Close()
29635		}
29636		return nil, &googleapi.Error{
29637			Code:   res.StatusCode,
29638			Header: res.Header,
29639		}
29640	}
29641	if err != nil {
29642		return nil, err
29643	}
29644	defer googleapi.CloseBody(res)
29645	if err := googleapi.CheckResponse(res); err != nil {
29646		return nil, err
29647	}
29648	ret := &GoogleCloudApigeeV1Keystore{
29649		ServerResponse: googleapi.ServerResponse{
29650			Header:         res.Header,
29651			HTTPStatusCode: res.StatusCode,
29652		},
29653	}
29654	target := &ret
29655	if err := gensupport.DecodeResponse(target, res); err != nil {
29656		return nil, err
29657	}
29658	return ret, nil
29659	// {
29660	//   "description": "Gets a keystore or truststore.",
29661	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}",
29662	//   "httpMethod": "GET",
29663	//   "id": "apigee.organizations.environments.keystores.get",
29664	//   "parameterOrder": [
29665	//     "name"
29666	//   ],
29667	//   "parameters": {
29668	//     "name": {
29669	//       "description": "Required. Name of the keystore. Use the following format in your request: `organizations/{org}/environments/{env}/keystores/{keystore}`.",
29670	//       "location": "path",
29671	//       "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+$",
29672	//       "required": true,
29673	//       "type": "string"
29674	//     }
29675	//   },
29676	//   "path": "v1/{+name}",
29677	//   "response": {
29678	//     "$ref": "GoogleCloudApigeeV1Keystore"
29679	//   },
29680	//   "scopes": [
29681	//     "https://www.googleapis.com/auth/cloud-platform"
29682	//   ]
29683	// }
29684
29685}
29686
29687// method id "apigee.organizations.environments.keystores.aliases.create":
29688
29689type OrganizationsEnvironmentsKeystoresAliasesCreateCall struct {
29690	s                 *Service
29691	parent            string
29692	googleapihttpbody *GoogleApiHttpBody
29693	urlParams_        gensupport.URLParams
29694	ctx_              context.Context
29695	header_           http.Header
29696}
29697
29698// Create: Creates an alias from a key/certificate pair. The structure
29699// of the request is controlled by the `format` query parameter: -
29700// `keycertfile` - Separate PEM-encoded key and certificate files are
29701// uploaded. Set `Content-Type: multipart/form-data` and include the
29702// `keyFile`, `certFile`, and `password` (if keys are encrypted) fields
29703// in the request body. If uploading to a truststore, omit `keyFile`. -
29704// `pkcs12` - A PKCS12 file is uploaded. Set `Content-Type:
29705// multipart/form-data`, provide the file in the `file` field, and
29706// include the `password` field if the file is encrypted in the request
29707// body. - `selfsignedcert` - A new private key and certificate are
29708// generated. Set `Content-Type: application/json` and include
29709// CertificateGenerationSpec in the request body.
29710//
29711// - parent: Name of the keystore. Use the following format in your
29712//   request:
29713//   `organizations/{org}/environments/{env}/keystores/{keystore}`.
29714func (r *OrganizationsEnvironmentsKeystoresAliasesService) Create(parent string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
29715	c := &OrganizationsEnvironmentsKeystoresAliasesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29716	c.parent = parent
29717	c.googleapihttpbody = googleapihttpbody
29718	return c
29719}
29720
29721// Password sets the optional parameter "_password": DEPRECATED: For
29722// improved security, specify the password in the request body instead
29723// of using the query parameter. To specify the password in the request
29724// body, set `Content-type: multipart/form-data` part with name
29725// `password`. Password for the private key file, if required.
29726func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Password(Password string) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
29727	c.urlParams_.Set("_password", Password)
29728	return c
29729}
29730
29731// Alias sets the optional parameter "alias": Alias for the
29732// key/certificate pair. Values must match the regular expression
29733// `[\w\s-.]{1,255}`. This must be provided for all formats except
29734// `selfsignedcert`; self-signed certs may specify the alias in either
29735// this parameter or the JSON body.
29736func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Alias(alias string) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
29737	c.urlParams_.Set("alias", alias)
29738	return c
29739}
29740
29741// Format sets the optional parameter "format": Required. Format of the
29742// data. Valid values include: `selfsignedcert`, `keycertfile`, or
29743// `pkcs12`
29744func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Format(format string) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
29745	c.urlParams_.Set("format", format)
29746	return c
29747}
29748
29749// IgnoreExpiryValidation sets the optional parameter
29750// "ignoreExpiryValidation": Flag that specifies whether to ignore
29751// expiry validation. If set to `true`, no expiry validation will be
29752// performed.
29753func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) IgnoreExpiryValidation(ignoreExpiryValidation bool) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
29754	c.urlParams_.Set("ignoreExpiryValidation", fmt.Sprint(ignoreExpiryValidation))
29755	return c
29756}
29757
29758// IgnoreNewlineValidation sets the optional parameter
29759// "ignoreNewlineValidation": Flag that specifies whether to ignore
29760// newline validation. If set to `true`, no error is thrown when the
29761// file contains a certificate chain with no newline between each
29762// certificate. Defaults to `false`.
29763func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) IgnoreNewlineValidation(ignoreNewlineValidation bool) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
29764	c.urlParams_.Set("ignoreNewlineValidation", fmt.Sprint(ignoreNewlineValidation))
29765	return c
29766}
29767
29768// Fields allows partial responses to be retrieved. See
29769// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
29770// for more information.
29771func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
29772	c.urlParams_.Set("fields", googleapi.CombineFields(s))
29773	return c
29774}
29775
29776// Context sets the context to be used in this call's Do method. Any
29777// pending HTTP request will be aborted if the provided context is
29778// canceled.
29779func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
29780	c.ctx_ = ctx
29781	return c
29782}
29783
29784// Header returns an http.Header that can be modified by the caller to
29785// add HTTP headers to the request.
29786func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Header() http.Header {
29787	if c.header_ == nil {
29788		c.header_ = make(http.Header)
29789	}
29790	return c.header_
29791}
29792
29793func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) doRequest(alt string) (*http.Response, error) {
29794	reqHeaders := make(http.Header)
29795	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
29796	for k, v := range c.header_ {
29797		reqHeaders[k] = v
29798	}
29799	reqHeaders.Set("User-Agent", c.s.userAgent())
29800	var body io.Reader = nil
29801	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
29802	if err != nil {
29803		return nil, err
29804	}
29805	reqHeaders.Set("Content-Type", "application/json")
29806	c.urlParams_.Set("alt", alt)
29807	c.urlParams_.Set("prettyPrint", "false")
29808	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/aliases")
29809	urls += "?" + c.urlParams_.Encode()
29810	req, err := http.NewRequest("POST", urls, body)
29811	if err != nil {
29812		return nil, err
29813	}
29814	req.Header = reqHeaders
29815	googleapi.Expand(req.URL, map[string]string{
29816		"parent": c.parent,
29817	})
29818	return gensupport.SendRequest(c.ctx_, c.s.client, req)
29819}
29820
29821// Do executes the "apigee.organizations.environments.keystores.aliases.create" call.
29822// Exactly one of *GoogleCloudApigeeV1Alias or error will be non-nil.
29823// Any non-2xx status code is an error. Response headers are in either
29824// *GoogleCloudApigeeV1Alias.ServerResponse.Header or (if a response was
29825// returned at all) in error.(*googleapi.Error).Header. Use
29826// googleapi.IsNotModified to check whether the returned error was
29827// because http.StatusNotModified was returned.
29828func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Alias, error) {
29829	gensupport.SetOptions(c.urlParams_, opts...)
29830	res, err := c.doRequest("json")
29831	if res != nil && res.StatusCode == http.StatusNotModified {
29832		if res.Body != nil {
29833			res.Body.Close()
29834		}
29835		return nil, &googleapi.Error{
29836			Code:   res.StatusCode,
29837			Header: res.Header,
29838		}
29839	}
29840	if err != nil {
29841		return nil, err
29842	}
29843	defer googleapi.CloseBody(res)
29844	if err := googleapi.CheckResponse(res); err != nil {
29845		return nil, err
29846	}
29847	ret := &GoogleCloudApigeeV1Alias{
29848		ServerResponse: googleapi.ServerResponse{
29849			Header:         res.Header,
29850			HTTPStatusCode: res.StatusCode,
29851		},
29852	}
29853	target := &ret
29854	if err := gensupport.DecodeResponse(target, res); err != nil {
29855		return nil, err
29856	}
29857	return ret, nil
29858	// {
29859	//   "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.",
29860	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}/aliases",
29861	//   "httpMethod": "POST",
29862	//   "id": "apigee.organizations.environments.keystores.aliases.create",
29863	//   "parameterOrder": [
29864	//     "parent"
29865	//   ],
29866	//   "parameters": {
29867	//     "_password": {
29868	//       "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.",
29869	//       "location": "query",
29870	//       "type": "string"
29871	//     },
29872	//     "alias": {
29873	//       "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.",
29874	//       "location": "query",
29875	//       "type": "string"
29876	//     },
29877	//     "format": {
29878	//       "description": "Required. Format of the data. Valid values include: `selfsignedcert`, `keycertfile`, or `pkcs12`",
29879	//       "location": "query",
29880	//       "type": "string"
29881	//     },
29882	//     "ignoreExpiryValidation": {
29883	//       "description": "Flag that specifies whether to ignore expiry validation. If set to `true`, no expiry validation will be performed.",
29884	//       "location": "query",
29885	//       "type": "boolean"
29886	//     },
29887	//     "ignoreNewlineValidation": {
29888	//       "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`.",
29889	//       "location": "query",
29890	//       "type": "boolean"
29891	//     },
29892	//     "parent": {
29893	//       "description": "Required. Name of the keystore. Use the following format in your request: `organizations/{org}/environments/{env}/keystores/{keystore}`.",
29894	//       "location": "path",
29895	//       "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+$",
29896	//       "required": true,
29897	//       "type": "string"
29898	//     }
29899	//   },
29900	//   "path": "v1/{+parent}/aliases",
29901	//   "request": {
29902	//     "$ref": "GoogleApiHttpBody"
29903	//   },
29904	//   "response": {
29905	//     "$ref": "GoogleCloudApigeeV1Alias"
29906	//   },
29907	//   "scopes": [
29908	//     "https://www.googleapis.com/auth/cloud-platform"
29909	//   ]
29910	// }
29911
29912}
29913
29914// method id "apigee.organizations.environments.keystores.aliases.csr":
29915
29916type OrganizationsEnvironmentsKeystoresAliasesCsrCall struct {
29917	s            *Service
29918	name         string
29919	urlParams_   gensupport.URLParams
29920	ifNoneMatch_ string
29921	ctx_         context.Context
29922	header_      http.Header
29923}
29924
29925// Csr: Generates a PKCS #10 Certificate Signing Request for the private
29926// key in an alias.
29927//
29928// - name: Name of the alias. Use the following format in your request:
29929//   `organizations/{org}/environments/{env}/keystores/{keystore}/aliases
29930//   /{alias}`.
29931func (r *OrganizationsEnvironmentsKeystoresAliasesService) Csr(name string) *OrganizationsEnvironmentsKeystoresAliasesCsrCall {
29932	c := &OrganizationsEnvironmentsKeystoresAliasesCsrCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29933	c.name = name
29934	return c
29935}
29936
29937// Fields allows partial responses to be retrieved. See
29938// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
29939// for more information.
29940func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesCsrCall {
29941	c.urlParams_.Set("fields", googleapi.CombineFields(s))
29942	return c
29943}
29944
29945// IfNoneMatch sets the optional parameter which makes the operation
29946// fail if the object's ETag matches the given value. This is useful for
29947// getting updates only after the object has changed since the last
29948// request. Use googleapi.IsNotModified to check whether the response
29949// error from Do is the result of In-None-Match.
29950func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsKeystoresAliasesCsrCall {
29951	c.ifNoneMatch_ = entityTag
29952	return c
29953}
29954
29955// Context sets the context to be used in this call's Do method. Any
29956// pending HTTP request will be aborted if the provided context is
29957// canceled.
29958func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesCsrCall {
29959	c.ctx_ = ctx
29960	return c
29961}
29962
29963// Header returns an http.Header that can be modified by the caller to
29964// add HTTP headers to the request.
29965func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) Header() http.Header {
29966	if c.header_ == nil {
29967		c.header_ = make(http.Header)
29968	}
29969	return c.header_
29970}
29971
29972func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) doRequest(alt string) (*http.Response, error) {
29973	reqHeaders := make(http.Header)
29974	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
29975	for k, v := range c.header_ {
29976		reqHeaders[k] = v
29977	}
29978	reqHeaders.Set("User-Agent", c.s.userAgent())
29979	if c.ifNoneMatch_ != "" {
29980		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
29981	}
29982	var body io.Reader = nil
29983	c.urlParams_.Set("alt", alt)
29984	c.urlParams_.Set("prettyPrint", "false")
29985	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/csr")
29986	urls += "?" + c.urlParams_.Encode()
29987	req, err := http.NewRequest("GET", urls, body)
29988	if err != nil {
29989		return nil, err
29990	}
29991	req.Header = reqHeaders
29992	googleapi.Expand(req.URL, map[string]string{
29993		"name": c.name,
29994	})
29995	return gensupport.SendRequest(c.ctx_, c.s.client, req)
29996}
29997
29998// Do executes the "apigee.organizations.environments.keystores.aliases.csr" call.
29999// Exactly one of *GoogleApiHttpBody or error will be non-nil. Any
30000// non-2xx status code is an error. Response headers are in either
30001// *GoogleApiHttpBody.ServerResponse.Header or (if a response was
30002// returned at all) in error.(*googleapi.Error).Header. Use
30003// googleapi.IsNotModified to check whether the returned error was
30004// because http.StatusNotModified was returned.
30005func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
30006	gensupport.SetOptions(c.urlParams_, opts...)
30007	res, err := c.doRequest("json")
30008	if res != nil && res.StatusCode == http.StatusNotModified {
30009		if res.Body != nil {
30010			res.Body.Close()
30011		}
30012		return nil, &googleapi.Error{
30013			Code:   res.StatusCode,
30014			Header: res.Header,
30015		}
30016	}
30017	if err != nil {
30018		return nil, err
30019	}
30020	defer googleapi.CloseBody(res)
30021	if err := googleapi.CheckResponse(res); err != nil {
30022		return nil, err
30023	}
30024	ret := &GoogleApiHttpBody{
30025		ServerResponse: googleapi.ServerResponse{
30026			Header:         res.Header,
30027			HTTPStatusCode: res.StatusCode,
30028		},
30029	}
30030	target := &ret
30031	if err := gensupport.DecodeResponse(target, res); err != nil {
30032		return nil, err
30033	}
30034	return ret, nil
30035	// {
30036	//   "description": "Generates a PKCS #10 Certificate Signing Request for the private key in an alias.",
30037	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}/aliases/{aliasesId}/csr",
30038	//   "httpMethod": "GET",
30039	//   "id": "apigee.organizations.environments.keystores.aliases.csr",
30040	//   "parameterOrder": [
30041	//     "name"
30042	//   ],
30043	//   "parameters": {
30044	//     "name": {
30045	//       "description": "Required. Name of the alias. Use the following format in your request: `organizations/{org}/environments/{env}/keystores/{keystore}/aliases/{alias}`.",
30046	//       "location": "path",
30047	//       "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+/aliases/[^/]+$",
30048	//       "required": true,
30049	//       "type": "string"
30050	//     }
30051	//   },
30052	//   "path": "v1/{+name}/csr",
30053	//   "response": {
30054	//     "$ref": "GoogleApiHttpBody"
30055	//   },
30056	//   "scopes": [
30057	//     "https://www.googleapis.com/auth/cloud-platform"
30058	//   ]
30059	// }
30060
30061}
30062
30063// method id "apigee.organizations.environments.keystores.aliases.delete":
30064
30065type OrganizationsEnvironmentsKeystoresAliasesDeleteCall struct {
30066	s          *Service
30067	name       string
30068	urlParams_ gensupport.URLParams
30069	ctx_       context.Context
30070	header_    http.Header
30071}
30072
30073// Delete: Deletes an alias.
30074//
30075// - name: Name of the alias. Use the following format in your request:
30076//   `organizations/{org}/environments/{env}/keystores/{keystore}/aliases
30077//   /{alias}`.
30078func (r *OrganizationsEnvironmentsKeystoresAliasesService) Delete(name string) *OrganizationsEnvironmentsKeystoresAliasesDeleteCall {
30079	c := &OrganizationsEnvironmentsKeystoresAliasesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30080	c.name = name
30081	return c
30082}
30083
30084// Fields allows partial responses to be retrieved. See
30085// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
30086// for more information.
30087func (c *OrganizationsEnvironmentsKeystoresAliasesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesDeleteCall {
30088	c.urlParams_.Set("fields", googleapi.CombineFields(s))
30089	return c
30090}
30091
30092// Context sets the context to be used in this call's Do method. Any
30093// pending HTTP request will be aborted if the provided context is
30094// canceled.
30095func (c *OrganizationsEnvironmentsKeystoresAliasesDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesDeleteCall {
30096	c.ctx_ = ctx
30097	return c
30098}
30099
30100// Header returns an http.Header that can be modified by the caller to
30101// add HTTP headers to the request.
30102func (c *OrganizationsEnvironmentsKeystoresAliasesDeleteCall) Header() http.Header {
30103	if c.header_ == nil {
30104		c.header_ = make(http.Header)
30105	}
30106	return c.header_
30107}
30108
30109func (c *OrganizationsEnvironmentsKeystoresAliasesDeleteCall) doRequest(alt string) (*http.Response, error) {
30110	reqHeaders := make(http.Header)
30111	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
30112	for k, v := range c.header_ {
30113		reqHeaders[k] = v
30114	}
30115	reqHeaders.Set("User-Agent", c.s.userAgent())
30116	var body io.Reader = nil
30117	c.urlParams_.Set("alt", alt)
30118	c.urlParams_.Set("prettyPrint", "false")
30119	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
30120	urls += "?" + c.urlParams_.Encode()
30121	req, err := http.NewRequest("DELETE", urls, body)
30122	if err != nil {
30123		return nil, err
30124	}
30125	req.Header = reqHeaders
30126	googleapi.Expand(req.URL, map[string]string{
30127		"name": c.name,
30128	})
30129	return gensupport.SendRequest(c.ctx_, c.s.client, req)
30130}
30131
30132// Do executes the "apigee.organizations.environments.keystores.aliases.delete" call.
30133// Exactly one of *GoogleCloudApigeeV1Alias or error will be non-nil.
30134// Any non-2xx status code is an error. Response headers are in either
30135// *GoogleCloudApigeeV1Alias.ServerResponse.Header or (if a response was
30136// returned at all) in error.(*googleapi.Error).Header. Use
30137// googleapi.IsNotModified to check whether the returned error was
30138// because http.StatusNotModified was returned.
30139func (c *OrganizationsEnvironmentsKeystoresAliasesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Alias, error) {
30140	gensupport.SetOptions(c.urlParams_, opts...)
30141	res, err := c.doRequest("json")
30142	if res != nil && res.StatusCode == http.StatusNotModified {
30143		if res.Body != nil {
30144			res.Body.Close()
30145		}
30146		return nil, &googleapi.Error{
30147			Code:   res.StatusCode,
30148			Header: res.Header,
30149		}
30150	}
30151	if err != nil {
30152		return nil, err
30153	}
30154	defer googleapi.CloseBody(res)
30155	if err := googleapi.CheckResponse(res); err != nil {
30156		return nil, err
30157	}
30158	ret := &GoogleCloudApigeeV1Alias{
30159		ServerResponse: googleapi.ServerResponse{
30160			Header:         res.Header,
30161			HTTPStatusCode: res.StatusCode,
30162		},
30163	}
30164	target := &ret
30165	if err := gensupport.DecodeResponse(target, res); err != nil {
30166		return nil, err
30167	}
30168	return ret, nil
30169	// {
30170	//   "description": "Deletes an alias.",
30171	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}/aliases/{aliasesId}",
30172	//   "httpMethod": "DELETE",
30173	//   "id": "apigee.organizations.environments.keystores.aliases.delete",
30174	//   "parameterOrder": [
30175	//     "name"
30176	//   ],
30177	//   "parameters": {
30178	//     "name": {
30179	//       "description": "Required. Name of the alias. Use the following format in your request: `organizations/{org}/environments/{env}/keystores/{keystore}/aliases/{alias}`.",
30180	//       "location": "path",
30181	//       "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+/aliases/[^/]+$",
30182	//       "required": true,
30183	//       "type": "string"
30184	//     }
30185	//   },
30186	//   "path": "v1/{+name}",
30187	//   "response": {
30188	//     "$ref": "GoogleCloudApigeeV1Alias"
30189	//   },
30190	//   "scopes": [
30191	//     "https://www.googleapis.com/auth/cloud-platform"
30192	//   ]
30193	// }
30194
30195}
30196
30197// method id "apigee.organizations.environments.keystores.aliases.get":
30198
30199type OrganizationsEnvironmentsKeystoresAliasesGetCall struct {
30200	s            *Service
30201	name         string
30202	urlParams_   gensupport.URLParams
30203	ifNoneMatch_ string
30204	ctx_         context.Context
30205	header_      http.Header
30206}
30207
30208// Get: Gets an alias.
30209//
30210// - name: Name of the alias. Use the following format in your request:
30211//   `organizations/{org}/environments/{env}/keystores/{keystore}/aliases
30212//   /{alias}`.
30213func (r *OrganizationsEnvironmentsKeystoresAliasesService) Get(name string) *OrganizationsEnvironmentsKeystoresAliasesGetCall {
30214	c := &OrganizationsEnvironmentsKeystoresAliasesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30215	c.name = name
30216	return c
30217}
30218
30219// Fields allows partial responses to be retrieved. See
30220// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
30221// for more information.
30222func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesGetCall {
30223	c.urlParams_.Set("fields", googleapi.CombineFields(s))
30224	return c
30225}
30226
30227// IfNoneMatch sets the optional parameter which makes the operation
30228// fail if the object's ETag matches the given value. This is useful for
30229// getting updates only after the object has changed since the last
30230// request. Use googleapi.IsNotModified to check whether the response
30231// error from Do is the result of In-None-Match.
30232func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsKeystoresAliasesGetCall {
30233	c.ifNoneMatch_ = entityTag
30234	return c
30235}
30236
30237// Context sets the context to be used in this call's Do method. Any
30238// pending HTTP request will be aborted if the provided context is
30239// canceled.
30240func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesGetCall {
30241	c.ctx_ = ctx
30242	return c
30243}
30244
30245// Header returns an http.Header that can be modified by the caller to
30246// add HTTP headers to the request.
30247func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) Header() http.Header {
30248	if c.header_ == nil {
30249		c.header_ = make(http.Header)
30250	}
30251	return c.header_
30252}
30253
30254func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) doRequest(alt string) (*http.Response, error) {
30255	reqHeaders := make(http.Header)
30256	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
30257	for k, v := range c.header_ {
30258		reqHeaders[k] = v
30259	}
30260	reqHeaders.Set("User-Agent", c.s.userAgent())
30261	if c.ifNoneMatch_ != "" {
30262		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
30263	}
30264	var body io.Reader = nil
30265	c.urlParams_.Set("alt", alt)
30266	c.urlParams_.Set("prettyPrint", "false")
30267	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
30268	urls += "?" + c.urlParams_.Encode()
30269	req, err := http.NewRequest("GET", urls, body)
30270	if err != nil {
30271		return nil, err
30272	}
30273	req.Header = reqHeaders
30274	googleapi.Expand(req.URL, map[string]string{
30275		"name": c.name,
30276	})
30277	return gensupport.SendRequest(c.ctx_, c.s.client, req)
30278}
30279
30280// Do executes the "apigee.organizations.environments.keystores.aliases.get" call.
30281// Exactly one of *GoogleCloudApigeeV1Alias or error will be non-nil.
30282// Any non-2xx status code is an error. Response headers are in either
30283// *GoogleCloudApigeeV1Alias.ServerResponse.Header or (if a response was
30284// returned at all) in error.(*googleapi.Error).Header. Use
30285// googleapi.IsNotModified to check whether the returned error was
30286// because http.StatusNotModified was returned.
30287func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Alias, error) {
30288	gensupport.SetOptions(c.urlParams_, opts...)
30289	res, err := c.doRequest("json")
30290	if res != nil && res.StatusCode == http.StatusNotModified {
30291		if res.Body != nil {
30292			res.Body.Close()
30293		}
30294		return nil, &googleapi.Error{
30295			Code:   res.StatusCode,
30296			Header: res.Header,
30297		}
30298	}
30299	if err != nil {
30300		return nil, err
30301	}
30302	defer googleapi.CloseBody(res)
30303	if err := googleapi.CheckResponse(res); err != nil {
30304		return nil, err
30305	}
30306	ret := &GoogleCloudApigeeV1Alias{
30307		ServerResponse: googleapi.ServerResponse{
30308			Header:         res.Header,
30309			HTTPStatusCode: res.StatusCode,
30310		},
30311	}
30312	target := &ret
30313	if err := gensupport.DecodeResponse(target, res); err != nil {
30314		return nil, err
30315	}
30316	return ret, nil
30317	// {
30318	//   "description": "Gets an alias.",
30319	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}/aliases/{aliasesId}",
30320	//   "httpMethod": "GET",
30321	//   "id": "apigee.organizations.environments.keystores.aliases.get",
30322	//   "parameterOrder": [
30323	//     "name"
30324	//   ],
30325	//   "parameters": {
30326	//     "name": {
30327	//       "description": "Required. Name of the alias. Use the following format in your request: `organizations/{org}/environments/{env}/keystores/{keystore}/aliases/{alias}`.",
30328	//       "location": "path",
30329	//       "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+/aliases/[^/]+$",
30330	//       "required": true,
30331	//       "type": "string"
30332	//     }
30333	//   },
30334	//   "path": "v1/{+name}",
30335	//   "response": {
30336	//     "$ref": "GoogleCloudApigeeV1Alias"
30337	//   },
30338	//   "scopes": [
30339	//     "https://www.googleapis.com/auth/cloud-platform"
30340	//   ]
30341	// }
30342
30343}
30344
30345// method id "apigee.organizations.environments.keystores.aliases.getCertificate":
30346
30347type OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall struct {
30348	s            *Service
30349	name         string
30350	urlParams_   gensupport.URLParams
30351	ifNoneMatch_ string
30352	ctx_         context.Context
30353	header_      http.Header
30354}
30355
30356// GetCertificate: Gets the certificate from an alias in PEM-encoded
30357// form.
30358//
30359// - name: Name of the alias. Use the following format in your request:
30360//   `organizations/{org}/environments/{env}/keystores/{keystore}/aliases
30361//   /{alias}`.
30362func (r *OrganizationsEnvironmentsKeystoresAliasesService) GetCertificate(name string) *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall {
30363	c := &OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30364	c.name = name
30365	return c
30366}
30367
30368// Fields allows partial responses to be retrieved. See
30369// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
30370// for more information.
30371func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall {
30372	c.urlParams_.Set("fields", googleapi.CombineFields(s))
30373	return c
30374}
30375
30376// IfNoneMatch sets the optional parameter which makes the operation
30377// fail if the object's ETag matches the given value. This is useful for
30378// getting updates only after the object has changed since the last
30379// request. Use googleapi.IsNotModified to check whether the response
30380// error from Do is the result of In-None-Match.
30381func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall {
30382	c.ifNoneMatch_ = entityTag
30383	return c
30384}
30385
30386// Context sets the context to be used in this call's Do method. Any
30387// pending HTTP request will be aborted if the provided context is
30388// canceled.
30389func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall {
30390	c.ctx_ = ctx
30391	return c
30392}
30393
30394// Header returns an http.Header that can be modified by the caller to
30395// add HTTP headers to the request.
30396func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) Header() http.Header {
30397	if c.header_ == nil {
30398		c.header_ = make(http.Header)
30399	}
30400	return c.header_
30401}
30402
30403func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) doRequest(alt string) (*http.Response, error) {
30404	reqHeaders := make(http.Header)
30405	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
30406	for k, v := range c.header_ {
30407		reqHeaders[k] = v
30408	}
30409	reqHeaders.Set("User-Agent", c.s.userAgent())
30410	if c.ifNoneMatch_ != "" {
30411		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
30412	}
30413	var body io.Reader = nil
30414	c.urlParams_.Set("alt", alt)
30415	c.urlParams_.Set("prettyPrint", "false")
30416	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/certificate")
30417	urls += "?" + c.urlParams_.Encode()
30418	req, err := http.NewRequest("GET", urls, body)
30419	if err != nil {
30420		return nil, err
30421	}
30422	req.Header = reqHeaders
30423	googleapi.Expand(req.URL, map[string]string{
30424		"name": c.name,
30425	})
30426	return gensupport.SendRequest(c.ctx_, c.s.client, req)
30427}
30428
30429// Do executes the "apigee.organizations.environments.keystores.aliases.getCertificate" call.
30430// Exactly one of *GoogleApiHttpBody or error will be non-nil. Any
30431// non-2xx status code is an error. Response headers are in either
30432// *GoogleApiHttpBody.ServerResponse.Header or (if a response was
30433// returned at all) in error.(*googleapi.Error).Header. Use
30434// googleapi.IsNotModified to check whether the returned error was
30435// because http.StatusNotModified was returned.
30436func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
30437	gensupport.SetOptions(c.urlParams_, opts...)
30438	res, err := c.doRequest("json")
30439	if res != nil && res.StatusCode == http.StatusNotModified {
30440		if res.Body != nil {
30441			res.Body.Close()
30442		}
30443		return nil, &googleapi.Error{
30444			Code:   res.StatusCode,
30445			Header: res.Header,
30446		}
30447	}
30448	if err != nil {
30449		return nil, err
30450	}
30451	defer googleapi.CloseBody(res)
30452	if err := googleapi.CheckResponse(res); err != nil {
30453		return nil, err
30454	}
30455	ret := &GoogleApiHttpBody{
30456		ServerResponse: googleapi.ServerResponse{
30457			Header:         res.Header,
30458			HTTPStatusCode: res.StatusCode,
30459		},
30460	}
30461	target := &ret
30462	if err := gensupport.DecodeResponse(target, res); err != nil {
30463		return nil, err
30464	}
30465	return ret, nil
30466	// {
30467	//   "description": "Gets the certificate from an alias in PEM-encoded form.",
30468	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}/aliases/{aliasesId}/certificate",
30469	//   "httpMethod": "GET",
30470	//   "id": "apigee.organizations.environments.keystores.aliases.getCertificate",
30471	//   "parameterOrder": [
30472	//     "name"
30473	//   ],
30474	//   "parameters": {
30475	//     "name": {
30476	//       "description": "Required. Name of the alias. Use the following format in your request: `organizations/{org}/environments/{env}/keystores/{keystore}/aliases/{alias}`.",
30477	//       "location": "path",
30478	//       "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+/aliases/[^/]+$",
30479	//       "required": true,
30480	//       "type": "string"
30481	//     }
30482	//   },
30483	//   "path": "v1/{+name}/certificate",
30484	//   "response": {
30485	//     "$ref": "GoogleApiHttpBody"
30486	//   },
30487	//   "scopes": [
30488	//     "https://www.googleapis.com/auth/cloud-platform"
30489	//   ]
30490	// }
30491
30492}
30493
30494// method id "apigee.organizations.environments.keystores.aliases.update":
30495
30496type OrganizationsEnvironmentsKeystoresAliasesUpdateCall struct {
30497	s                 *Service
30498	name              string
30499	googleapihttpbody *GoogleApiHttpBody
30500	urlParams_        gensupport.URLParams
30501	ctx_              context.Context
30502	header_           http.Header
30503}
30504
30505// Update: Updates the certificate in an alias.
30506//
30507// - name: Name of the alias. Use the following format in your request:
30508//   `organizations/{org}/environments/{env}/keystores/{keystore}/aliases
30509//   /{alias}`.
30510func (r *OrganizationsEnvironmentsKeystoresAliasesService) Update(name string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsEnvironmentsKeystoresAliasesUpdateCall {
30511	c := &OrganizationsEnvironmentsKeystoresAliasesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30512	c.name = name
30513	c.googleapihttpbody = googleapihttpbody
30514	return c
30515}
30516
30517// IgnoreExpiryValidation sets the optional parameter
30518// "ignoreExpiryValidation": Required. Flag that specifies whether to
30519// ignore expiry validation. If set to `true`, no expiry validation will
30520// be performed.
30521func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) IgnoreExpiryValidation(ignoreExpiryValidation bool) *OrganizationsEnvironmentsKeystoresAliasesUpdateCall {
30522	c.urlParams_.Set("ignoreExpiryValidation", fmt.Sprint(ignoreExpiryValidation))
30523	return c
30524}
30525
30526// IgnoreNewlineValidation sets the optional parameter
30527// "ignoreNewlineValidation": Flag that specifies whether to ignore
30528// newline validation. If set to `true`, no error is thrown when the
30529// file contains a certificate chain with no newline between each
30530// certificate. Defaults to `false`.
30531func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) IgnoreNewlineValidation(ignoreNewlineValidation bool) *OrganizationsEnvironmentsKeystoresAliasesUpdateCall {
30532	c.urlParams_.Set("ignoreNewlineValidation", fmt.Sprint(ignoreNewlineValidation))
30533	return c
30534}
30535
30536// Fields allows partial responses to be retrieved. See
30537// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
30538// for more information.
30539func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesUpdateCall {
30540	c.urlParams_.Set("fields", googleapi.CombineFields(s))
30541	return c
30542}
30543
30544// Context sets the context to be used in this call's Do method. Any
30545// pending HTTP request will be aborted if the provided context is
30546// canceled.
30547func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesUpdateCall {
30548	c.ctx_ = ctx
30549	return c
30550}
30551
30552// Header returns an http.Header that can be modified by the caller to
30553// add HTTP headers to the request.
30554func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) Header() http.Header {
30555	if c.header_ == nil {
30556		c.header_ = make(http.Header)
30557	}
30558	return c.header_
30559}
30560
30561func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) doRequest(alt string) (*http.Response, error) {
30562	reqHeaders := make(http.Header)
30563	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
30564	for k, v := range c.header_ {
30565		reqHeaders[k] = v
30566	}
30567	reqHeaders.Set("User-Agent", c.s.userAgent())
30568	var body io.Reader = nil
30569	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
30570	if err != nil {
30571		return nil, err
30572	}
30573	reqHeaders.Set("Content-Type", "application/json")
30574	c.urlParams_.Set("alt", alt)
30575	c.urlParams_.Set("prettyPrint", "false")
30576	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
30577	urls += "?" + c.urlParams_.Encode()
30578	req, err := http.NewRequest("PUT", urls, body)
30579	if err != nil {
30580		return nil, err
30581	}
30582	req.Header = reqHeaders
30583	googleapi.Expand(req.URL, map[string]string{
30584		"name": c.name,
30585	})
30586	return gensupport.SendRequest(c.ctx_, c.s.client, req)
30587}
30588
30589// Do executes the "apigee.organizations.environments.keystores.aliases.update" call.
30590// Exactly one of *GoogleCloudApigeeV1Alias or error will be non-nil.
30591// Any non-2xx status code is an error. Response headers are in either
30592// *GoogleCloudApigeeV1Alias.ServerResponse.Header or (if a response was
30593// returned at all) in error.(*googleapi.Error).Header. Use
30594// googleapi.IsNotModified to check whether the returned error was
30595// because http.StatusNotModified was returned.
30596func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Alias, error) {
30597	gensupport.SetOptions(c.urlParams_, opts...)
30598	res, err := c.doRequest("json")
30599	if res != nil && res.StatusCode == http.StatusNotModified {
30600		if res.Body != nil {
30601			res.Body.Close()
30602		}
30603		return nil, &googleapi.Error{
30604			Code:   res.StatusCode,
30605			Header: res.Header,
30606		}
30607	}
30608	if err != nil {
30609		return nil, err
30610	}
30611	defer googleapi.CloseBody(res)
30612	if err := googleapi.CheckResponse(res); err != nil {
30613		return nil, err
30614	}
30615	ret := &GoogleCloudApigeeV1Alias{
30616		ServerResponse: googleapi.ServerResponse{
30617			Header:         res.Header,
30618			HTTPStatusCode: res.StatusCode,
30619		},
30620	}
30621	target := &ret
30622	if err := gensupport.DecodeResponse(target, res); err != nil {
30623		return nil, err
30624	}
30625	return ret, nil
30626	// {
30627	//   "description": "Updates the certificate in an alias.",
30628	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}/aliases/{aliasesId}",
30629	//   "httpMethod": "PUT",
30630	//   "id": "apigee.organizations.environments.keystores.aliases.update",
30631	//   "parameterOrder": [
30632	//     "name"
30633	//   ],
30634	//   "parameters": {
30635	//     "ignoreExpiryValidation": {
30636	//       "description": "Required. Flag that specifies whether to ignore expiry validation. If set to `true`, no expiry validation will be performed.",
30637	//       "location": "query",
30638	//       "type": "boolean"
30639	//     },
30640	//     "ignoreNewlineValidation": {
30641	//       "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`.",
30642	//       "location": "query",
30643	//       "type": "boolean"
30644	//     },
30645	//     "name": {
30646	//       "description": "Required. Name of the alias. Use the following format in your request: `organizations/{org}/environments/{env}/keystores/{keystore}/aliases/{alias}`",
30647	//       "location": "path",
30648	//       "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+/aliases/[^/]+$",
30649	//       "required": true,
30650	//       "type": "string"
30651	//     }
30652	//   },
30653	//   "path": "v1/{+name}",
30654	//   "request": {
30655	//     "$ref": "GoogleApiHttpBody"
30656	//   },
30657	//   "response": {
30658	//     "$ref": "GoogleCloudApigeeV1Alias"
30659	//   },
30660	//   "scopes": [
30661	//     "https://www.googleapis.com/auth/cloud-platform"
30662	//   ]
30663	// }
30664
30665}
30666
30667// method id "apigee.organizations.environments.keyvaluemaps.create":
30668
30669type OrganizationsEnvironmentsKeyvaluemapsCreateCall struct {
30670	s                              *Service
30671	parent                         string
30672	googlecloudapigeev1keyvaluemap *GoogleCloudApigeeV1KeyValueMap
30673	urlParams_                     gensupport.URLParams
30674	ctx_                           context.Context
30675	header_                        http.Header
30676}
30677
30678// Create: Creates a key value map in an environment.
30679//
30680// - parent: The name of the environment in which to create the key
30681//   value map. Must be of the form
30682//   `organizations/{organization}/environments/{environment}`.
30683func (r *OrganizationsEnvironmentsKeyvaluemapsService) Create(parent string, googlecloudapigeev1keyvaluemap *GoogleCloudApigeeV1KeyValueMap) *OrganizationsEnvironmentsKeyvaluemapsCreateCall {
30684	c := &OrganizationsEnvironmentsKeyvaluemapsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30685	c.parent = parent
30686	c.googlecloudapigeev1keyvaluemap = googlecloudapigeev1keyvaluemap
30687	return c
30688}
30689
30690// Fields allows partial responses to be retrieved. See
30691// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
30692// for more information.
30693func (c *OrganizationsEnvironmentsKeyvaluemapsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeyvaluemapsCreateCall {
30694	c.urlParams_.Set("fields", googleapi.CombineFields(s))
30695	return c
30696}
30697
30698// Context sets the context to be used in this call's Do method. Any
30699// pending HTTP request will be aborted if the provided context is
30700// canceled.
30701func (c *OrganizationsEnvironmentsKeyvaluemapsCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeyvaluemapsCreateCall {
30702	c.ctx_ = ctx
30703	return c
30704}
30705
30706// Header returns an http.Header that can be modified by the caller to
30707// add HTTP headers to the request.
30708func (c *OrganizationsEnvironmentsKeyvaluemapsCreateCall) Header() http.Header {
30709	if c.header_ == nil {
30710		c.header_ = make(http.Header)
30711	}
30712	return c.header_
30713}
30714
30715func (c *OrganizationsEnvironmentsKeyvaluemapsCreateCall) doRequest(alt string) (*http.Response, error) {
30716	reqHeaders := make(http.Header)
30717	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
30718	for k, v := range c.header_ {
30719		reqHeaders[k] = v
30720	}
30721	reqHeaders.Set("User-Agent", c.s.userAgent())
30722	var body io.Reader = nil
30723	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1keyvaluemap)
30724	if err != nil {
30725		return nil, err
30726	}
30727	reqHeaders.Set("Content-Type", "application/json")
30728	c.urlParams_.Set("alt", alt)
30729	c.urlParams_.Set("prettyPrint", "false")
30730	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keyvaluemaps")
30731	urls += "?" + c.urlParams_.Encode()
30732	req, err := http.NewRequest("POST", urls, body)
30733	if err != nil {
30734		return nil, err
30735	}
30736	req.Header = reqHeaders
30737	googleapi.Expand(req.URL, map[string]string{
30738		"parent": c.parent,
30739	})
30740	return gensupport.SendRequest(c.ctx_, c.s.client, req)
30741}
30742
30743// Do executes the "apigee.organizations.environments.keyvaluemaps.create" call.
30744// Exactly one of *GoogleCloudApigeeV1KeyValueMap or error will be
30745// non-nil. Any non-2xx status code is an error. Response headers are in
30746// either *GoogleCloudApigeeV1KeyValueMap.ServerResponse.Header or (if a
30747// response was returned at all) in error.(*googleapi.Error).Header. Use
30748// googleapi.IsNotModified to check whether the returned error was
30749// because http.StatusNotModified was returned.
30750func (c *OrganizationsEnvironmentsKeyvaluemapsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueMap, error) {
30751	gensupport.SetOptions(c.urlParams_, opts...)
30752	res, err := c.doRequest("json")
30753	if res != nil && res.StatusCode == http.StatusNotModified {
30754		if res.Body != nil {
30755			res.Body.Close()
30756		}
30757		return nil, &googleapi.Error{
30758			Code:   res.StatusCode,
30759			Header: res.Header,
30760		}
30761	}
30762	if err != nil {
30763		return nil, err
30764	}
30765	defer googleapi.CloseBody(res)
30766	if err := googleapi.CheckResponse(res); err != nil {
30767		return nil, err
30768	}
30769	ret := &GoogleCloudApigeeV1KeyValueMap{
30770		ServerResponse: googleapi.ServerResponse{
30771			Header:         res.Header,
30772			HTTPStatusCode: res.StatusCode,
30773		},
30774	}
30775	target := &ret
30776	if err := gensupport.DecodeResponse(target, res); err != nil {
30777		return nil, err
30778	}
30779	return ret, nil
30780	// {
30781	//   "description": "Creates a key value map in an environment.",
30782	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keyvaluemaps",
30783	//   "httpMethod": "POST",
30784	//   "id": "apigee.organizations.environments.keyvaluemaps.create",
30785	//   "parameterOrder": [
30786	//     "parent"
30787	//   ],
30788	//   "parameters": {
30789	//     "parent": {
30790	//       "description": "Required. The name of the environment in which to create the key value map. Must be of the form `organizations/{organization}/environments/{environment}`.",
30791	//       "location": "path",
30792	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
30793	//       "required": true,
30794	//       "type": "string"
30795	//     }
30796	//   },
30797	//   "path": "v1/{+parent}/keyvaluemaps",
30798	//   "request": {
30799	//     "$ref": "GoogleCloudApigeeV1KeyValueMap"
30800	//   },
30801	//   "response": {
30802	//     "$ref": "GoogleCloudApigeeV1KeyValueMap"
30803	//   },
30804	//   "scopes": [
30805	//     "https://www.googleapis.com/auth/cloud-platform"
30806	//   ]
30807	// }
30808
30809}
30810
30811// method id "apigee.organizations.environments.keyvaluemaps.delete":
30812
30813type OrganizationsEnvironmentsKeyvaluemapsDeleteCall struct {
30814	s          *Service
30815	name       string
30816	urlParams_ gensupport.URLParams
30817	ctx_       context.Context
30818	header_    http.Header
30819}
30820
30821// Delete: Delete a key value map in an environment.
30822//
30823// - name: The name of the key value map. Must be of the form
30824//   `organizations/{organization}/environments/{environment}/keyvaluemap
30825//   s/{keyvaluemap}`.
30826func (r *OrganizationsEnvironmentsKeyvaluemapsService) Delete(name string) *OrganizationsEnvironmentsKeyvaluemapsDeleteCall {
30827	c := &OrganizationsEnvironmentsKeyvaluemapsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30828	c.name = name
30829	return c
30830}
30831
30832// Fields allows partial responses to be retrieved. See
30833// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
30834// for more information.
30835func (c *OrganizationsEnvironmentsKeyvaluemapsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeyvaluemapsDeleteCall {
30836	c.urlParams_.Set("fields", googleapi.CombineFields(s))
30837	return c
30838}
30839
30840// Context sets the context to be used in this call's Do method. Any
30841// pending HTTP request will be aborted if the provided context is
30842// canceled.
30843func (c *OrganizationsEnvironmentsKeyvaluemapsDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeyvaluemapsDeleteCall {
30844	c.ctx_ = ctx
30845	return c
30846}
30847
30848// Header returns an http.Header that can be modified by the caller to
30849// add HTTP headers to the request.
30850func (c *OrganizationsEnvironmentsKeyvaluemapsDeleteCall) Header() http.Header {
30851	if c.header_ == nil {
30852		c.header_ = make(http.Header)
30853	}
30854	return c.header_
30855}
30856
30857func (c *OrganizationsEnvironmentsKeyvaluemapsDeleteCall) doRequest(alt string) (*http.Response, error) {
30858	reqHeaders := make(http.Header)
30859	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
30860	for k, v := range c.header_ {
30861		reqHeaders[k] = v
30862	}
30863	reqHeaders.Set("User-Agent", c.s.userAgent())
30864	var body io.Reader = nil
30865	c.urlParams_.Set("alt", alt)
30866	c.urlParams_.Set("prettyPrint", "false")
30867	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
30868	urls += "?" + c.urlParams_.Encode()
30869	req, err := http.NewRequest("DELETE", urls, body)
30870	if err != nil {
30871		return nil, err
30872	}
30873	req.Header = reqHeaders
30874	googleapi.Expand(req.URL, map[string]string{
30875		"name": c.name,
30876	})
30877	return gensupport.SendRequest(c.ctx_, c.s.client, req)
30878}
30879
30880// Do executes the "apigee.organizations.environments.keyvaluemaps.delete" call.
30881// Exactly one of *GoogleCloudApigeeV1KeyValueMap or error will be
30882// non-nil. Any non-2xx status code is an error. Response headers are in
30883// either *GoogleCloudApigeeV1KeyValueMap.ServerResponse.Header or (if a
30884// response was returned at all) in error.(*googleapi.Error).Header. Use
30885// googleapi.IsNotModified to check whether the returned error was
30886// because http.StatusNotModified was returned.
30887func (c *OrganizationsEnvironmentsKeyvaluemapsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueMap, error) {
30888	gensupport.SetOptions(c.urlParams_, opts...)
30889	res, err := c.doRequest("json")
30890	if res != nil && res.StatusCode == http.StatusNotModified {
30891		if res.Body != nil {
30892			res.Body.Close()
30893		}
30894		return nil, &googleapi.Error{
30895			Code:   res.StatusCode,
30896			Header: res.Header,
30897		}
30898	}
30899	if err != nil {
30900		return nil, err
30901	}
30902	defer googleapi.CloseBody(res)
30903	if err := googleapi.CheckResponse(res); err != nil {
30904		return nil, err
30905	}
30906	ret := &GoogleCloudApigeeV1KeyValueMap{
30907		ServerResponse: googleapi.ServerResponse{
30908			Header:         res.Header,
30909			HTTPStatusCode: res.StatusCode,
30910		},
30911	}
30912	target := &ret
30913	if err := gensupport.DecodeResponse(target, res); err != nil {
30914		return nil, err
30915	}
30916	return ret, nil
30917	// {
30918	//   "description": "Delete a key value map in an environment.",
30919	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keyvaluemaps/{keyvaluemapsId}",
30920	//   "httpMethod": "DELETE",
30921	//   "id": "apigee.organizations.environments.keyvaluemaps.delete",
30922	//   "parameterOrder": [
30923	//     "name"
30924	//   ],
30925	//   "parameters": {
30926	//     "name": {
30927	//       "description": "Required. The name of the key value map. Must be of the form `organizations/{organization}/environments/{environment}/keyvaluemaps/{keyvaluemap}`.",
30928	//       "location": "path",
30929	//       "pattern": "^organizations/[^/]+/environments/[^/]+/keyvaluemaps/[^/]+$",
30930	//       "required": true,
30931	//       "type": "string"
30932	//     }
30933	//   },
30934	//   "path": "v1/{+name}",
30935	//   "response": {
30936	//     "$ref": "GoogleCloudApigeeV1KeyValueMap"
30937	//   },
30938	//   "scopes": [
30939	//     "https://www.googleapis.com/auth/cloud-platform"
30940	//   ]
30941	// }
30942
30943}
30944
30945// method id "apigee.organizations.environments.optimizedStats.get":
30946
30947type OrganizationsEnvironmentsOptimizedStatsGetCall struct {
30948	s            *Service
30949	name         string
30950	urlParams_   gensupport.URLParams
30951	ifNoneMatch_ string
30952	ctx_         context.Context
30953	header_      http.Header
30954}
30955
30956// Get: This api is similar to GetStats except that the response is less
30957// verbose. In the current scheme, a query parameter _optimized
30958// instructs Edge Analytics to change the response but since this
30959// behavior is not possible with protocol buffer and since this
30960// parameter is predominantly used by Edge UI, we are introducing a
30961// separate api.
30962//
30963// - name: The resource name for which the interactive query will be
30964//   executed. Must be of the form
30965//   `organizations/{organization_id}/environments/{environment_id/optimi
30966//   zedStats/{dimensions}` Dimensions let you view metrics in
30967//   meaningful groupings. E.g. apiproxy, target_host. The value of
30968//   dimensions should be comma separated list as shown below
30969//   `organizations/{org}/environments/{env}/optimizedStats/apiproxy,requ
30970//   est_verb`.
30971func (r *OrganizationsEnvironmentsOptimizedStatsService) Get(name string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
30972	c := &OrganizationsEnvironmentsOptimizedStatsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30973	c.name = name
30974	return c
30975}
30976
30977// Accuracy sets the optional parameter "accuracy": Legacy field: not
30978// used anymore.
30979func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Accuracy(accuracy string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
30980	c.urlParams_.Set("accuracy", accuracy)
30981	return c
30982}
30983
30984// AggTable sets the optional parameter "aggTable": If customers want to
30985// query custom aggregate tables, then this parameter can be used to
30986// specify the table name. If this parameter is skipped, then Edge Query
30987// will try to retrieve the data from fact tables which will be
30988// expensive.
30989func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) AggTable(aggTable string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
30990	c.urlParams_.Set("aggTable", aggTable)
30991	return c
30992}
30993
30994// Filter sets the optional parameter "filter": Enables drill-down on
30995// specific dimension values.
30996func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Filter(filter string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
30997	c.urlParams_.Set("filter", filter)
30998	return c
30999}
31000
31001// Limit sets the optional parameter "limit": This parameter is used to
31002// limit the number of result items. Default and the max value is 14400.
31003func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Limit(limit string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
31004	c.urlParams_.Set("limit", limit)
31005	return c
31006}
31007
31008// Offset sets the optional parameter "offset": Use offset with limit to
31009// enable pagination of results. For example, to display results 11-20,
31010// set limit to '10' and offset to '10'.
31011func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Offset(offset string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
31012	c.urlParams_.Set("offset", offset)
31013	return c
31014}
31015
31016// Realtime sets the optional parameter "realtime": Legacy field: not
31017// used anymore.
31018func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Realtime(realtime bool) *OrganizationsEnvironmentsOptimizedStatsGetCall {
31019	c.urlParams_.Set("realtime", fmt.Sprint(realtime))
31020	return c
31021}
31022
31023// Select sets the optional parameter "select": Required. The select
31024// parameter contains a comma separated list of metrics. E.g.
31025// sum(message_count),sum(error_count)
31026func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Select(select_ string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
31027	c.urlParams_.Set("select", select_)
31028	return c
31029}
31030
31031// Sonar sets the optional parameter "sonar": This parameter routes the
31032// query to api monitoring service for last hour.
31033func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Sonar(sonar bool) *OrganizationsEnvironmentsOptimizedStatsGetCall {
31034	c.urlParams_.Set("sonar", fmt.Sprint(sonar))
31035	return c
31036}
31037
31038// Sort sets the optional parameter "sort": This parameter specifies if
31039// the sort order should be ascending or descending Supported values are
31040// DESC and ASC.
31041func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Sort(sort string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
31042	c.urlParams_.Set("sort", sort)
31043	return c
31044}
31045
31046// Sortby sets the optional parameter "sortby": Comma separated list of
31047// columns to sort the final result.
31048func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Sortby(sortby string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
31049	c.urlParams_.Set("sortby", sortby)
31050	return c
31051}
31052
31053// TimeRange sets the optional parameter "timeRange": Required. Time
31054// interval for the interactive query. Time range is specified as
31055// start~end E.g. 04/15/2017 00:00~05/15/2017 23:59
31056func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) TimeRange(timeRange string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
31057	c.urlParams_.Set("timeRange", timeRange)
31058	return c
31059}
31060
31061// TimeUnit sets the optional parameter "timeUnit": A value of second,
31062// minute, hour, day, week, month. Time Unit specifies the granularity
31063// of metrics returned.
31064func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) TimeUnit(timeUnit string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
31065	c.urlParams_.Set("timeUnit", timeUnit)
31066	return c
31067}
31068
31069// Topk sets the optional parameter "topk": Take 'top k' results from
31070// results, for example, to return the top 5 results 'topk=5'.
31071func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Topk(topk string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
31072	c.urlParams_.Set("topk", topk)
31073	return c
31074}
31075
31076// TsAscending sets the optional parameter "tsAscending": Lists
31077// timestamps in ascending order if set to true. Recommend setting this
31078// value to true if you are using sortby with sort=DESC.
31079func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) TsAscending(tsAscending bool) *OrganizationsEnvironmentsOptimizedStatsGetCall {
31080	c.urlParams_.Set("tsAscending", fmt.Sprint(tsAscending))
31081	return c
31082}
31083
31084// Tzo sets the optional parameter "tzo": This parameters contains the
31085// timezone offset value.
31086func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Tzo(tzo string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
31087	c.urlParams_.Set("tzo", tzo)
31088	return c
31089}
31090
31091// Fields allows partial responses to be retrieved. See
31092// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
31093// for more information.
31094func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsOptimizedStatsGetCall {
31095	c.urlParams_.Set("fields", googleapi.CombineFields(s))
31096	return c
31097}
31098
31099// IfNoneMatch sets the optional parameter which makes the operation
31100// fail if the object's ETag matches the given value. This is useful for
31101// getting updates only after the object has changed since the last
31102// request. Use googleapi.IsNotModified to check whether the response
31103// error from Do is the result of In-None-Match.
31104func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
31105	c.ifNoneMatch_ = entityTag
31106	return c
31107}
31108
31109// Context sets the context to be used in this call's Do method. Any
31110// pending HTTP request will be aborted if the provided context is
31111// canceled.
31112func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsOptimizedStatsGetCall {
31113	c.ctx_ = ctx
31114	return c
31115}
31116
31117// Header returns an http.Header that can be modified by the caller to
31118// add HTTP headers to the request.
31119func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Header() http.Header {
31120	if c.header_ == nil {
31121		c.header_ = make(http.Header)
31122	}
31123	return c.header_
31124}
31125
31126func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) doRequest(alt string) (*http.Response, error) {
31127	reqHeaders := make(http.Header)
31128	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
31129	for k, v := range c.header_ {
31130		reqHeaders[k] = v
31131	}
31132	reqHeaders.Set("User-Agent", c.s.userAgent())
31133	if c.ifNoneMatch_ != "" {
31134		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
31135	}
31136	var body io.Reader = nil
31137	c.urlParams_.Set("alt", alt)
31138	c.urlParams_.Set("prettyPrint", "false")
31139	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
31140	urls += "?" + c.urlParams_.Encode()
31141	req, err := http.NewRequest("GET", urls, body)
31142	if err != nil {
31143		return nil, err
31144	}
31145	req.Header = reqHeaders
31146	googleapi.Expand(req.URL, map[string]string{
31147		"name": c.name,
31148	})
31149	return gensupport.SendRequest(c.ctx_, c.s.client, req)
31150}
31151
31152// Do executes the "apigee.organizations.environments.optimizedStats.get" call.
31153// Exactly one of *GoogleCloudApigeeV1OptimizedStats or error will be
31154// non-nil. Any non-2xx status code is an error. Response headers are in
31155// either *GoogleCloudApigeeV1OptimizedStats.ServerResponse.Header or
31156// (if a response was returned at all) in
31157// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
31158// whether the returned error was because http.StatusNotModified was
31159// returned.
31160func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1OptimizedStats, error) {
31161	gensupport.SetOptions(c.urlParams_, opts...)
31162	res, err := c.doRequest("json")
31163	if res != nil && res.StatusCode == http.StatusNotModified {
31164		if res.Body != nil {
31165			res.Body.Close()
31166		}
31167		return nil, &googleapi.Error{
31168			Code:   res.StatusCode,
31169			Header: res.Header,
31170		}
31171	}
31172	if err != nil {
31173		return nil, err
31174	}
31175	defer googleapi.CloseBody(res)
31176	if err := googleapi.CheckResponse(res); err != nil {
31177		return nil, err
31178	}
31179	ret := &GoogleCloudApigeeV1OptimizedStats{
31180		ServerResponse: googleapi.ServerResponse{
31181			Header:         res.Header,
31182			HTTPStatusCode: res.StatusCode,
31183		},
31184	}
31185	target := &ret
31186	if err := gensupport.DecodeResponse(target, res); err != nil {
31187		return nil, err
31188	}
31189	return ret, nil
31190	// {
31191	//   "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.",
31192	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/optimizedStats/{optimizedStatsId}",
31193	//   "httpMethod": "GET",
31194	//   "id": "apigee.organizations.environments.optimizedStats.get",
31195	//   "parameterOrder": [
31196	//     "name"
31197	//   ],
31198	//   "parameters": {
31199	//     "accuracy": {
31200	//       "description": "Legacy field: not used anymore.",
31201	//       "location": "query",
31202	//       "type": "string"
31203	//     },
31204	//     "aggTable": {
31205	//       "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.",
31206	//       "location": "query",
31207	//       "type": "string"
31208	//     },
31209	//     "filter": {
31210	//       "description": "Enables drill-down on specific dimension values.",
31211	//       "location": "query",
31212	//       "type": "string"
31213	//     },
31214	//     "limit": {
31215	//       "description": "This parameter is used to limit the number of result items. Default and the max value is 14400.",
31216	//       "location": "query",
31217	//       "type": "string"
31218	//     },
31219	//     "name": {
31220	//       "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`",
31221	//       "location": "path",
31222	//       "pattern": "^organizations/[^/]+/environments/[^/]+/optimizedStats/.*$",
31223	//       "required": true,
31224	//       "type": "string"
31225	//     },
31226	//     "offset": {
31227	//       "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'.",
31228	//       "location": "query",
31229	//       "type": "string"
31230	//     },
31231	//     "realtime": {
31232	//       "description": "Legacy field: not used anymore.",
31233	//       "location": "query",
31234	//       "type": "boolean"
31235	//     },
31236	//     "select": {
31237	//       "description": "Required. The select parameter contains a comma separated list of metrics. E.g. sum(message_count),sum(error_count)",
31238	//       "location": "query",
31239	//       "type": "string"
31240	//     },
31241	//     "sonar": {
31242	//       "description": "This parameter routes the query to api monitoring service for last hour.",
31243	//       "location": "query",
31244	//       "type": "boolean"
31245	//     },
31246	//     "sort": {
31247	//       "description": "This parameter specifies if the sort order should be ascending or descending Supported values are DESC and ASC.",
31248	//       "location": "query",
31249	//       "type": "string"
31250	//     },
31251	//     "sortby": {
31252	//       "description": "Comma separated list of columns to sort the final result.",
31253	//       "location": "query",
31254	//       "type": "string"
31255	//     },
31256	//     "timeRange": {
31257	//       "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",
31258	//       "location": "query",
31259	//       "type": "string"
31260	//     },
31261	//     "timeUnit": {
31262	//       "description": "A value of second, minute, hour, day, week, month. Time Unit specifies the granularity of metrics returned.",
31263	//       "location": "query",
31264	//       "type": "string"
31265	//     },
31266	//     "topk": {
31267	//       "description": "Take 'top k' results from results, for example, to return the top 5 results 'topk=5'.",
31268	//       "location": "query",
31269	//       "type": "string"
31270	//     },
31271	//     "tsAscending": {
31272	//       "description": "Lists timestamps in ascending order if set to true. Recommend setting this value to true if you are using sortby with sort=DESC.",
31273	//       "location": "query",
31274	//       "type": "boolean"
31275	//     },
31276	//     "tzo": {
31277	//       "description": "This parameters contains the timezone offset value.",
31278	//       "location": "query",
31279	//       "type": "string"
31280	//     }
31281	//   },
31282	//   "path": "v1/{+name}",
31283	//   "response": {
31284	//     "$ref": "GoogleCloudApigeeV1OptimizedStats"
31285	//   },
31286	//   "scopes": [
31287	//     "https://www.googleapis.com/auth/cloud-platform"
31288	//   ]
31289	// }
31290
31291}
31292
31293// method id "apigee.organizations.environments.queries.create":
31294
31295type OrganizationsEnvironmentsQueriesCreateCall struct {
31296	s                        *Service
31297	parent                   string
31298	googlecloudapigeev1query *GoogleCloudApigeeV1Query
31299	urlParams_               gensupport.URLParams
31300	ctx_                     context.Context
31301	header_                  http.Header
31302}
31303
31304// Create: Submit a query to be processed in the background. If the
31305// submission of the query succeeds, the API returns a 201 status and an
31306// ID that refer to the query. In addition to the HTTP status 201, the
31307// `state` of "enqueued" means that the request succeeded.
31308//
31309// - parent: The parent resource name. Must be of the form
31310//   `organizations/{org}/environments/{env}`.
31311func (r *OrganizationsEnvironmentsQueriesService) Create(parent string, googlecloudapigeev1query *GoogleCloudApigeeV1Query) *OrganizationsEnvironmentsQueriesCreateCall {
31312	c := &OrganizationsEnvironmentsQueriesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31313	c.parent = parent
31314	c.googlecloudapigeev1query = googlecloudapigeev1query
31315	return c
31316}
31317
31318// Fields allows partial responses to be retrieved. See
31319// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
31320// for more information.
31321func (c *OrganizationsEnvironmentsQueriesCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsQueriesCreateCall {
31322	c.urlParams_.Set("fields", googleapi.CombineFields(s))
31323	return c
31324}
31325
31326// Context sets the context to be used in this call's Do method. Any
31327// pending HTTP request will be aborted if the provided context is
31328// canceled.
31329func (c *OrganizationsEnvironmentsQueriesCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsQueriesCreateCall {
31330	c.ctx_ = ctx
31331	return c
31332}
31333
31334// Header returns an http.Header that can be modified by the caller to
31335// add HTTP headers to the request.
31336func (c *OrganizationsEnvironmentsQueriesCreateCall) Header() http.Header {
31337	if c.header_ == nil {
31338		c.header_ = make(http.Header)
31339	}
31340	return c.header_
31341}
31342
31343func (c *OrganizationsEnvironmentsQueriesCreateCall) doRequest(alt string) (*http.Response, error) {
31344	reqHeaders := make(http.Header)
31345	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
31346	for k, v := range c.header_ {
31347		reqHeaders[k] = v
31348	}
31349	reqHeaders.Set("User-Agent", c.s.userAgent())
31350	var body io.Reader = nil
31351	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1query)
31352	if err != nil {
31353		return nil, err
31354	}
31355	reqHeaders.Set("Content-Type", "application/json")
31356	c.urlParams_.Set("alt", alt)
31357	c.urlParams_.Set("prettyPrint", "false")
31358	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/queries")
31359	urls += "?" + c.urlParams_.Encode()
31360	req, err := http.NewRequest("POST", urls, body)
31361	if err != nil {
31362		return nil, err
31363	}
31364	req.Header = reqHeaders
31365	googleapi.Expand(req.URL, map[string]string{
31366		"parent": c.parent,
31367	})
31368	return gensupport.SendRequest(c.ctx_, c.s.client, req)
31369}
31370
31371// Do executes the "apigee.organizations.environments.queries.create" call.
31372// Exactly one of *GoogleCloudApigeeV1AsyncQuery or error will be
31373// non-nil. Any non-2xx status code is an error. Response headers are in
31374// either *GoogleCloudApigeeV1AsyncQuery.ServerResponse.Header or (if a
31375// response was returned at all) in error.(*googleapi.Error).Header. Use
31376// googleapi.IsNotModified to check whether the returned error was
31377// because http.StatusNotModified was returned.
31378func (c *OrganizationsEnvironmentsQueriesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AsyncQuery, error) {
31379	gensupport.SetOptions(c.urlParams_, opts...)
31380	res, err := c.doRequest("json")
31381	if res != nil && res.StatusCode == http.StatusNotModified {
31382		if res.Body != nil {
31383			res.Body.Close()
31384		}
31385		return nil, &googleapi.Error{
31386			Code:   res.StatusCode,
31387			Header: res.Header,
31388		}
31389	}
31390	if err != nil {
31391		return nil, err
31392	}
31393	defer googleapi.CloseBody(res)
31394	if err := googleapi.CheckResponse(res); err != nil {
31395		return nil, err
31396	}
31397	ret := &GoogleCloudApigeeV1AsyncQuery{
31398		ServerResponse: googleapi.ServerResponse{
31399			Header:         res.Header,
31400			HTTPStatusCode: res.StatusCode,
31401		},
31402	}
31403	target := &ret
31404	if err := gensupport.DecodeResponse(target, res); err != nil {
31405		return nil, err
31406	}
31407	return ret, nil
31408	// {
31409	//   "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.",
31410	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/queries",
31411	//   "httpMethod": "POST",
31412	//   "id": "apigee.organizations.environments.queries.create",
31413	//   "parameterOrder": [
31414	//     "parent"
31415	//   ],
31416	//   "parameters": {
31417	//     "parent": {
31418	//       "description": "Required. The parent resource name. Must be of the form `organizations/{org}/environments/{env}`.",
31419	//       "location": "path",
31420	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
31421	//       "required": true,
31422	//       "type": "string"
31423	//     }
31424	//   },
31425	//   "path": "v1/{+parent}/queries",
31426	//   "request": {
31427	//     "$ref": "GoogleCloudApigeeV1Query"
31428	//   },
31429	//   "response": {
31430	//     "$ref": "GoogleCloudApigeeV1AsyncQuery"
31431	//   },
31432	//   "scopes": [
31433	//     "https://www.googleapis.com/auth/cloud-platform"
31434	//   ]
31435	// }
31436
31437}
31438
31439// method id "apigee.organizations.environments.queries.get":
31440
31441type OrganizationsEnvironmentsQueriesGetCall struct {
31442	s            *Service
31443	name         string
31444	urlParams_   gensupport.URLParams
31445	ifNoneMatch_ string
31446	ctx_         context.Context
31447	header_      http.Header
31448}
31449
31450// Get: Get query status If the query is still in progress, the `state`
31451// is set to "running" After the query has completed successfully,
31452// `state` is set to "completed"
31453//
31454// - name: Name of the asynchronous query to get. Must be of the form
31455//   `organizations/{org}/environments/{env}/queries/{queryId}`.
31456func (r *OrganizationsEnvironmentsQueriesService) Get(name string) *OrganizationsEnvironmentsQueriesGetCall {
31457	c := &OrganizationsEnvironmentsQueriesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31458	c.name = name
31459	return c
31460}
31461
31462// Fields allows partial responses to be retrieved. See
31463// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
31464// for more information.
31465func (c *OrganizationsEnvironmentsQueriesGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsQueriesGetCall {
31466	c.urlParams_.Set("fields", googleapi.CombineFields(s))
31467	return c
31468}
31469
31470// IfNoneMatch sets the optional parameter which makes the operation
31471// fail if the object's ETag matches the given value. This is useful for
31472// getting updates only after the object has changed since the last
31473// request. Use googleapi.IsNotModified to check whether the response
31474// error from Do is the result of In-None-Match.
31475func (c *OrganizationsEnvironmentsQueriesGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsQueriesGetCall {
31476	c.ifNoneMatch_ = entityTag
31477	return c
31478}
31479
31480// Context sets the context to be used in this call's Do method. Any
31481// pending HTTP request will be aborted if the provided context is
31482// canceled.
31483func (c *OrganizationsEnvironmentsQueriesGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsQueriesGetCall {
31484	c.ctx_ = ctx
31485	return c
31486}
31487
31488// Header returns an http.Header that can be modified by the caller to
31489// add HTTP headers to the request.
31490func (c *OrganizationsEnvironmentsQueriesGetCall) Header() http.Header {
31491	if c.header_ == nil {
31492		c.header_ = make(http.Header)
31493	}
31494	return c.header_
31495}
31496
31497func (c *OrganizationsEnvironmentsQueriesGetCall) doRequest(alt string) (*http.Response, error) {
31498	reqHeaders := make(http.Header)
31499	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
31500	for k, v := range c.header_ {
31501		reqHeaders[k] = v
31502	}
31503	reqHeaders.Set("User-Agent", c.s.userAgent())
31504	if c.ifNoneMatch_ != "" {
31505		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
31506	}
31507	var body io.Reader = nil
31508	c.urlParams_.Set("alt", alt)
31509	c.urlParams_.Set("prettyPrint", "false")
31510	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
31511	urls += "?" + c.urlParams_.Encode()
31512	req, err := http.NewRequest("GET", urls, body)
31513	if err != nil {
31514		return nil, err
31515	}
31516	req.Header = reqHeaders
31517	googleapi.Expand(req.URL, map[string]string{
31518		"name": c.name,
31519	})
31520	return gensupport.SendRequest(c.ctx_, c.s.client, req)
31521}
31522
31523// Do executes the "apigee.organizations.environments.queries.get" call.
31524// Exactly one of *GoogleCloudApigeeV1AsyncQuery or error will be
31525// non-nil. Any non-2xx status code is an error. Response headers are in
31526// either *GoogleCloudApigeeV1AsyncQuery.ServerResponse.Header or (if a
31527// response was returned at all) in error.(*googleapi.Error).Header. Use
31528// googleapi.IsNotModified to check whether the returned error was
31529// because http.StatusNotModified was returned.
31530func (c *OrganizationsEnvironmentsQueriesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AsyncQuery, error) {
31531	gensupport.SetOptions(c.urlParams_, opts...)
31532	res, err := c.doRequest("json")
31533	if res != nil && res.StatusCode == http.StatusNotModified {
31534		if res.Body != nil {
31535			res.Body.Close()
31536		}
31537		return nil, &googleapi.Error{
31538			Code:   res.StatusCode,
31539			Header: res.Header,
31540		}
31541	}
31542	if err != nil {
31543		return nil, err
31544	}
31545	defer googleapi.CloseBody(res)
31546	if err := googleapi.CheckResponse(res); err != nil {
31547		return nil, err
31548	}
31549	ret := &GoogleCloudApigeeV1AsyncQuery{
31550		ServerResponse: googleapi.ServerResponse{
31551			Header:         res.Header,
31552			HTTPStatusCode: res.StatusCode,
31553		},
31554	}
31555	target := &ret
31556	if err := gensupport.DecodeResponse(target, res); err != nil {
31557		return nil, err
31558	}
31559	return ret, nil
31560	// {
31561	//   "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\"",
31562	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/queries/{queriesId}",
31563	//   "httpMethod": "GET",
31564	//   "id": "apigee.organizations.environments.queries.get",
31565	//   "parameterOrder": [
31566	//     "name"
31567	//   ],
31568	//   "parameters": {
31569	//     "name": {
31570	//       "description": "Required. Name of the asynchronous query to get. Must be of the form `organizations/{org}/environments/{env}/queries/{queryId}`.",
31571	//       "location": "path",
31572	//       "pattern": "^organizations/[^/]+/environments/[^/]+/queries/[^/]+$",
31573	//       "required": true,
31574	//       "type": "string"
31575	//     }
31576	//   },
31577	//   "path": "v1/{+name}",
31578	//   "response": {
31579	//     "$ref": "GoogleCloudApigeeV1AsyncQuery"
31580	//   },
31581	//   "scopes": [
31582	//     "https://www.googleapis.com/auth/cloud-platform"
31583	//   ]
31584	// }
31585
31586}
31587
31588// method id "apigee.organizations.environments.queries.getResult":
31589
31590type OrganizationsEnvironmentsQueriesGetResultCall struct {
31591	s            *Service
31592	name         string
31593	urlParams_   gensupport.URLParams
31594	ifNoneMatch_ string
31595	ctx_         context.Context
31596	header_      http.Header
31597}
31598
31599// GetResult: After the query is completed, use this API to retrieve the
31600// results. If the request succeeds, and there is a non-zero result set,
31601// the result is downloaded to the client as a zipped JSON file. The
31602// name of the downloaded file will be: OfflineQueryResult-.zip Example:
31603// `OfflineQueryResult-9cfc0d85-0f30-46d6-ae6f-318d0cb961bd.zip`
31604//
31605// - name: Name of the asynchronous query result to get. Must be of the
31606//   form
31607//   `organizations/{org}/environments/{env}/queries/{queryId}/result`.
31608func (r *OrganizationsEnvironmentsQueriesService) GetResult(name string) *OrganizationsEnvironmentsQueriesGetResultCall {
31609	c := &OrganizationsEnvironmentsQueriesGetResultCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31610	c.name = name
31611	return c
31612}
31613
31614// Fields allows partial responses to be retrieved. See
31615// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
31616// for more information.
31617func (c *OrganizationsEnvironmentsQueriesGetResultCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsQueriesGetResultCall {
31618	c.urlParams_.Set("fields", googleapi.CombineFields(s))
31619	return c
31620}
31621
31622// IfNoneMatch sets the optional parameter which makes the operation
31623// fail if the object's ETag matches the given value. This is useful for
31624// getting updates only after the object has changed since the last
31625// request. Use googleapi.IsNotModified to check whether the response
31626// error from Do is the result of In-None-Match.
31627func (c *OrganizationsEnvironmentsQueriesGetResultCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsQueriesGetResultCall {
31628	c.ifNoneMatch_ = entityTag
31629	return c
31630}
31631
31632// Context sets the context to be used in this call's Do method. Any
31633// pending HTTP request will be aborted if the provided context is
31634// canceled.
31635func (c *OrganizationsEnvironmentsQueriesGetResultCall) Context(ctx context.Context) *OrganizationsEnvironmentsQueriesGetResultCall {
31636	c.ctx_ = ctx
31637	return c
31638}
31639
31640// Header returns an http.Header that can be modified by the caller to
31641// add HTTP headers to the request.
31642func (c *OrganizationsEnvironmentsQueriesGetResultCall) Header() http.Header {
31643	if c.header_ == nil {
31644		c.header_ = make(http.Header)
31645	}
31646	return c.header_
31647}
31648
31649func (c *OrganizationsEnvironmentsQueriesGetResultCall) doRequest(alt string) (*http.Response, error) {
31650	reqHeaders := make(http.Header)
31651	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
31652	for k, v := range c.header_ {
31653		reqHeaders[k] = v
31654	}
31655	reqHeaders.Set("User-Agent", c.s.userAgent())
31656	if c.ifNoneMatch_ != "" {
31657		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
31658	}
31659	var body io.Reader = nil
31660	c.urlParams_.Set("alt", alt)
31661	c.urlParams_.Set("prettyPrint", "false")
31662	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
31663	urls += "?" + c.urlParams_.Encode()
31664	req, err := http.NewRequest("GET", urls, body)
31665	if err != nil {
31666		return nil, err
31667	}
31668	req.Header = reqHeaders
31669	googleapi.Expand(req.URL, map[string]string{
31670		"name": c.name,
31671	})
31672	return gensupport.SendRequest(c.ctx_, c.s.client, req)
31673}
31674
31675// Do executes the "apigee.organizations.environments.queries.getResult" call.
31676// Exactly one of *GoogleApiHttpBody or error will be non-nil. Any
31677// non-2xx status code is an error. Response headers are in either
31678// *GoogleApiHttpBody.ServerResponse.Header or (if a response was
31679// returned at all) in error.(*googleapi.Error).Header. Use
31680// googleapi.IsNotModified to check whether the returned error was
31681// because http.StatusNotModified was returned.
31682func (c *OrganizationsEnvironmentsQueriesGetResultCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
31683	gensupport.SetOptions(c.urlParams_, opts...)
31684	res, err := c.doRequest("json")
31685	if res != nil && res.StatusCode == http.StatusNotModified {
31686		if res.Body != nil {
31687			res.Body.Close()
31688		}
31689		return nil, &googleapi.Error{
31690			Code:   res.StatusCode,
31691			Header: res.Header,
31692		}
31693	}
31694	if err != nil {
31695		return nil, err
31696	}
31697	defer googleapi.CloseBody(res)
31698	if err := googleapi.CheckResponse(res); err != nil {
31699		return nil, err
31700	}
31701	ret := &GoogleApiHttpBody{
31702		ServerResponse: googleapi.ServerResponse{
31703			Header:         res.Header,
31704			HTTPStatusCode: res.StatusCode,
31705		},
31706	}
31707	target := &ret
31708	if err := gensupport.DecodeResponse(target, res); err != nil {
31709		return nil, err
31710	}
31711	return ret, nil
31712	// {
31713	//   "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`",
31714	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/queries/{queriesId}/result",
31715	//   "httpMethod": "GET",
31716	//   "id": "apigee.organizations.environments.queries.getResult",
31717	//   "parameterOrder": [
31718	//     "name"
31719	//   ],
31720	//   "parameters": {
31721	//     "name": {
31722	//       "description": "Required. Name of the asynchronous query result to get. Must be of the form `organizations/{org}/environments/{env}/queries/{queryId}/result`.",
31723	//       "location": "path",
31724	//       "pattern": "^organizations/[^/]+/environments/[^/]+/queries/[^/]+/result$",
31725	//       "required": true,
31726	//       "type": "string"
31727	//     }
31728	//   },
31729	//   "path": "v1/{+name}",
31730	//   "response": {
31731	//     "$ref": "GoogleApiHttpBody"
31732	//   },
31733	//   "scopes": [
31734	//     "https://www.googleapis.com/auth/cloud-platform"
31735	//   ]
31736	// }
31737
31738}
31739
31740// method id "apigee.organizations.environments.queries.list":
31741
31742type OrganizationsEnvironmentsQueriesListCall struct {
31743	s            *Service
31744	parent       string
31745	urlParams_   gensupport.URLParams
31746	ifNoneMatch_ string
31747	ctx_         context.Context
31748	header_      http.Header
31749}
31750
31751// List: Return a list of Asynchronous Queries
31752//
31753// - parent: The parent resource name. Must be of the form
31754//   `organizations/{org}/environments/{env}`.
31755func (r *OrganizationsEnvironmentsQueriesService) List(parent string) *OrganizationsEnvironmentsQueriesListCall {
31756	c := &OrganizationsEnvironmentsQueriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31757	c.parent = parent
31758	return c
31759}
31760
31761// Dataset sets the optional parameter "dataset": Filter response list
31762// by dataset. Example: `api`, `mint`
31763func (c *OrganizationsEnvironmentsQueriesListCall) Dataset(dataset string) *OrganizationsEnvironmentsQueriesListCall {
31764	c.urlParams_.Set("dataset", dataset)
31765	return c
31766}
31767
31768// From sets the optional parameter "from": Filter response list by
31769// returning asynchronous queries that created after this date time.
31770// Time must be in ISO date-time format like '2011-12-03T10:15:30Z'.
31771func (c *OrganizationsEnvironmentsQueriesListCall) From(from string) *OrganizationsEnvironmentsQueriesListCall {
31772	c.urlParams_.Set("from", from)
31773	return c
31774}
31775
31776// InclQueriesWithoutReport sets the optional parameter
31777// "inclQueriesWithoutReport": Flag to include asynchronous queries that
31778// don't have a report denifition.
31779func (c *OrganizationsEnvironmentsQueriesListCall) InclQueriesWithoutReport(inclQueriesWithoutReport string) *OrganizationsEnvironmentsQueriesListCall {
31780	c.urlParams_.Set("inclQueriesWithoutReport", inclQueriesWithoutReport)
31781	return c
31782}
31783
31784// Status sets the optional parameter "status": Filter response list by
31785// asynchronous query status.
31786func (c *OrganizationsEnvironmentsQueriesListCall) Status(status string) *OrganizationsEnvironmentsQueriesListCall {
31787	c.urlParams_.Set("status", status)
31788	return c
31789}
31790
31791// SubmittedBy sets the optional parameter "submittedBy": Filter
31792// response list by user who submitted queries.
31793func (c *OrganizationsEnvironmentsQueriesListCall) SubmittedBy(submittedBy string) *OrganizationsEnvironmentsQueriesListCall {
31794	c.urlParams_.Set("submittedBy", submittedBy)
31795	return c
31796}
31797
31798// To sets the optional parameter "to": Filter response list by
31799// returning asynchronous queries that created before this date time.
31800// Time must be in ISO date-time format like '2011-12-03T10:16:30Z'.
31801func (c *OrganizationsEnvironmentsQueriesListCall) To(to string) *OrganizationsEnvironmentsQueriesListCall {
31802	c.urlParams_.Set("to", to)
31803	return c
31804}
31805
31806// Fields allows partial responses to be retrieved. See
31807// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
31808// for more information.
31809func (c *OrganizationsEnvironmentsQueriesListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsQueriesListCall {
31810	c.urlParams_.Set("fields", googleapi.CombineFields(s))
31811	return c
31812}
31813
31814// IfNoneMatch sets the optional parameter which makes the operation
31815// fail if the object's ETag matches the given value. This is useful for
31816// getting updates only after the object has changed since the last
31817// request. Use googleapi.IsNotModified to check whether the response
31818// error from Do is the result of In-None-Match.
31819func (c *OrganizationsEnvironmentsQueriesListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsQueriesListCall {
31820	c.ifNoneMatch_ = entityTag
31821	return c
31822}
31823
31824// Context sets the context to be used in this call's Do method. Any
31825// pending HTTP request will be aborted if the provided context is
31826// canceled.
31827func (c *OrganizationsEnvironmentsQueriesListCall) Context(ctx context.Context) *OrganizationsEnvironmentsQueriesListCall {
31828	c.ctx_ = ctx
31829	return c
31830}
31831
31832// Header returns an http.Header that can be modified by the caller to
31833// add HTTP headers to the request.
31834func (c *OrganizationsEnvironmentsQueriesListCall) Header() http.Header {
31835	if c.header_ == nil {
31836		c.header_ = make(http.Header)
31837	}
31838	return c.header_
31839}
31840
31841func (c *OrganizationsEnvironmentsQueriesListCall) doRequest(alt string) (*http.Response, error) {
31842	reqHeaders := make(http.Header)
31843	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
31844	for k, v := range c.header_ {
31845		reqHeaders[k] = v
31846	}
31847	reqHeaders.Set("User-Agent", c.s.userAgent())
31848	if c.ifNoneMatch_ != "" {
31849		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
31850	}
31851	var body io.Reader = nil
31852	c.urlParams_.Set("alt", alt)
31853	c.urlParams_.Set("prettyPrint", "false")
31854	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/queries")
31855	urls += "?" + c.urlParams_.Encode()
31856	req, err := http.NewRequest("GET", 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.queries.list" call.
31868// Exactly one of *GoogleCloudApigeeV1ListAsyncQueriesResponse or error
31869// will be non-nil. Any non-2xx status code is an error. Response
31870// headers are in either
31871// *GoogleCloudApigeeV1ListAsyncQueriesResponse.ServerResponse.Header or
31872// (if a response was returned at all) in
31873// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
31874// whether the returned error was because http.StatusNotModified was
31875// returned.
31876func (c *OrganizationsEnvironmentsQueriesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListAsyncQueriesResponse, error) {
31877	gensupport.SetOptions(c.urlParams_, opts...)
31878	res, err := c.doRequest("json")
31879	if res != nil && res.StatusCode == http.StatusNotModified {
31880		if res.Body != nil {
31881			res.Body.Close()
31882		}
31883		return nil, &googleapi.Error{
31884			Code:   res.StatusCode,
31885			Header: res.Header,
31886		}
31887	}
31888	if err != nil {
31889		return nil, err
31890	}
31891	defer googleapi.CloseBody(res)
31892	if err := googleapi.CheckResponse(res); err != nil {
31893		return nil, err
31894	}
31895	ret := &GoogleCloudApigeeV1ListAsyncQueriesResponse{
31896		ServerResponse: googleapi.ServerResponse{
31897			Header:         res.Header,
31898			HTTPStatusCode: res.StatusCode,
31899		},
31900	}
31901	target := &ret
31902	if err := gensupport.DecodeResponse(target, res); err != nil {
31903		return nil, err
31904	}
31905	return ret, nil
31906	// {
31907	//   "description": "Return a list of Asynchronous Queries",
31908	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/queries",
31909	//   "httpMethod": "GET",
31910	//   "id": "apigee.organizations.environments.queries.list",
31911	//   "parameterOrder": [
31912	//     "parent"
31913	//   ],
31914	//   "parameters": {
31915	//     "dataset": {
31916	//       "description": "Filter response list by dataset. Example: `api`, `mint`",
31917	//       "location": "query",
31918	//       "type": "string"
31919	//     },
31920	//     "from": {
31921	//       "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'.",
31922	//       "location": "query",
31923	//       "type": "string"
31924	//     },
31925	//     "inclQueriesWithoutReport": {
31926	//       "description": "Flag to include asynchronous queries that don't have a report denifition.",
31927	//       "location": "query",
31928	//       "type": "string"
31929	//     },
31930	//     "parent": {
31931	//       "description": "Required. The parent resource name. Must be of the form `organizations/{org}/environments/{env}`.",
31932	//       "location": "path",
31933	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
31934	//       "required": true,
31935	//       "type": "string"
31936	//     },
31937	//     "status": {
31938	//       "description": "Filter response list by asynchronous query status.",
31939	//       "location": "query",
31940	//       "type": "string"
31941	//     },
31942	//     "submittedBy": {
31943	//       "description": "Filter response list by user who submitted queries.",
31944	//       "location": "query",
31945	//       "type": "string"
31946	//     },
31947	//     "to": {
31948	//       "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'.",
31949	//       "location": "query",
31950	//       "type": "string"
31951	//     }
31952	//   },
31953	//   "path": "v1/{+parent}/queries",
31954	//   "response": {
31955	//     "$ref": "GoogleCloudApigeeV1ListAsyncQueriesResponse"
31956	//   },
31957	//   "scopes": [
31958	//     "https://www.googleapis.com/auth/cloud-platform"
31959	//   ]
31960	// }
31961
31962}
31963
31964// method id "apigee.organizations.environments.references.create":
31965
31966type OrganizationsEnvironmentsReferencesCreateCall struct {
31967	s                            *Service
31968	parent                       string
31969	googlecloudapigeev1reference *GoogleCloudApigeeV1Reference
31970	urlParams_                   gensupport.URLParams
31971	ctx_                         context.Context
31972	header_                      http.Header
31973}
31974
31975// Create: Creates a Reference in the specified environment.
31976//
31977// - parent: The parent environment name under which the Reference will
31978//   be created. Must be of the form
31979//   `organizations/{org}/environments/{env}`.
31980func (r *OrganizationsEnvironmentsReferencesService) Create(parent string, googlecloudapigeev1reference *GoogleCloudApigeeV1Reference) *OrganizationsEnvironmentsReferencesCreateCall {
31981	c := &OrganizationsEnvironmentsReferencesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31982	c.parent = parent
31983	c.googlecloudapigeev1reference = googlecloudapigeev1reference
31984	return c
31985}
31986
31987// Fields allows partial responses to be retrieved. See
31988// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
31989// for more information.
31990func (c *OrganizationsEnvironmentsReferencesCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsReferencesCreateCall {
31991	c.urlParams_.Set("fields", googleapi.CombineFields(s))
31992	return c
31993}
31994
31995// Context sets the context to be used in this call's Do method. Any
31996// pending HTTP request will be aborted if the provided context is
31997// canceled.
31998func (c *OrganizationsEnvironmentsReferencesCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsReferencesCreateCall {
31999	c.ctx_ = ctx
32000	return c
32001}
32002
32003// Header returns an http.Header that can be modified by the caller to
32004// add HTTP headers to the request.
32005func (c *OrganizationsEnvironmentsReferencesCreateCall) Header() http.Header {
32006	if c.header_ == nil {
32007		c.header_ = make(http.Header)
32008	}
32009	return c.header_
32010}
32011
32012func (c *OrganizationsEnvironmentsReferencesCreateCall) doRequest(alt string) (*http.Response, error) {
32013	reqHeaders := make(http.Header)
32014	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
32015	for k, v := range c.header_ {
32016		reqHeaders[k] = v
32017	}
32018	reqHeaders.Set("User-Agent", c.s.userAgent())
32019	var body io.Reader = nil
32020	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1reference)
32021	if err != nil {
32022		return nil, err
32023	}
32024	reqHeaders.Set("Content-Type", "application/json")
32025	c.urlParams_.Set("alt", alt)
32026	c.urlParams_.Set("prettyPrint", "false")
32027	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/references")
32028	urls += "?" + c.urlParams_.Encode()
32029	req, err := http.NewRequest("POST", urls, body)
32030	if err != nil {
32031		return nil, err
32032	}
32033	req.Header = reqHeaders
32034	googleapi.Expand(req.URL, map[string]string{
32035		"parent": c.parent,
32036	})
32037	return gensupport.SendRequest(c.ctx_, c.s.client, req)
32038}
32039
32040// Do executes the "apigee.organizations.environments.references.create" call.
32041// Exactly one of *GoogleCloudApigeeV1Reference or error will be
32042// non-nil. Any non-2xx status code is an error. Response headers are in
32043// either *GoogleCloudApigeeV1Reference.ServerResponse.Header or (if a
32044// response was returned at all) in error.(*googleapi.Error).Header. Use
32045// googleapi.IsNotModified to check whether the returned error was
32046// because http.StatusNotModified was returned.
32047func (c *OrganizationsEnvironmentsReferencesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Reference, error) {
32048	gensupport.SetOptions(c.urlParams_, opts...)
32049	res, err := c.doRequest("json")
32050	if res != nil && res.StatusCode == http.StatusNotModified {
32051		if res.Body != nil {
32052			res.Body.Close()
32053		}
32054		return nil, &googleapi.Error{
32055			Code:   res.StatusCode,
32056			Header: res.Header,
32057		}
32058	}
32059	if err != nil {
32060		return nil, err
32061	}
32062	defer googleapi.CloseBody(res)
32063	if err := googleapi.CheckResponse(res); err != nil {
32064		return nil, err
32065	}
32066	ret := &GoogleCloudApigeeV1Reference{
32067		ServerResponse: googleapi.ServerResponse{
32068			Header:         res.Header,
32069			HTTPStatusCode: res.StatusCode,
32070		},
32071	}
32072	target := &ret
32073	if err := gensupport.DecodeResponse(target, res); err != nil {
32074		return nil, err
32075	}
32076	return ret, nil
32077	// {
32078	//   "description": "Creates a Reference in the specified environment.",
32079	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/references",
32080	//   "httpMethod": "POST",
32081	//   "id": "apigee.organizations.environments.references.create",
32082	//   "parameterOrder": [
32083	//     "parent"
32084	//   ],
32085	//   "parameters": {
32086	//     "parent": {
32087	//       "description": "Required. The parent environment name under which the Reference will be created. Must be of the form `organizations/{org}/environments/{env}`.",
32088	//       "location": "path",
32089	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
32090	//       "required": true,
32091	//       "type": "string"
32092	//     }
32093	//   },
32094	//   "path": "v1/{+parent}/references",
32095	//   "request": {
32096	//     "$ref": "GoogleCloudApigeeV1Reference"
32097	//   },
32098	//   "response": {
32099	//     "$ref": "GoogleCloudApigeeV1Reference"
32100	//   },
32101	//   "scopes": [
32102	//     "https://www.googleapis.com/auth/cloud-platform"
32103	//   ]
32104	// }
32105
32106}
32107
32108// method id "apigee.organizations.environments.references.delete":
32109
32110type OrganizationsEnvironmentsReferencesDeleteCall struct {
32111	s          *Service
32112	name       string
32113	urlParams_ gensupport.URLParams
32114	ctx_       context.Context
32115	header_    http.Header
32116}
32117
32118// Delete: Deletes a Reference from an environment. Returns the deleted
32119// Reference resource.
32120//
32121// - name: The name of the Reference to delete. Must be of the form
32122//   `organizations/{org}/environments/{env}/references/{ref}`.
32123func (r *OrganizationsEnvironmentsReferencesService) Delete(name string) *OrganizationsEnvironmentsReferencesDeleteCall {
32124	c := &OrganizationsEnvironmentsReferencesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32125	c.name = name
32126	return c
32127}
32128
32129// Fields allows partial responses to be retrieved. See
32130// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
32131// for more information.
32132func (c *OrganizationsEnvironmentsReferencesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsReferencesDeleteCall {
32133	c.urlParams_.Set("fields", googleapi.CombineFields(s))
32134	return c
32135}
32136
32137// Context sets the context to be used in this call's Do method. Any
32138// pending HTTP request will be aborted if the provided context is
32139// canceled.
32140func (c *OrganizationsEnvironmentsReferencesDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsReferencesDeleteCall {
32141	c.ctx_ = ctx
32142	return c
32143}
32144
32145// Header returns an http.Header that can be modified by the caller to
32146// add HTTP headers to the request.
32147func (c *OrganizationsEnvironmentsReferencesDeleteCall) Header() http.Header {
32148	if c.header_ == nil {
32149		c.header_ = make(http.Header)
32150	}
32151	return c.header_
32152}
32153
32154func (c *OrganizationsEnvironmentsReferencesDeleteCall) doRequest(alt string) (*http.Response, error) {
32155	reqHeaders := make(http.Header)
32156	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
32157	for k, v := range c.header_ {
32158		reqHeaders[k] = v
32159	}
32160	reqHeaders.Set("User-Agent", c.s.userAgent())
32161	var body io.Reader = nil
32162	c.urlParams_.Set("alt", alt)
32163	c.urlParams_.Set("prettyPrint", "false")
32164	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
32165	urls += "?" + c.urlParams_.Encode()
32166	req, err := http.NewRequest("DELETE", urls, body)
32167	if err != nil {
32168		return nil, err
32169	}
32170	req.Header = reqHeaders
32171	googleapi.Expand(req.URL, map[string]string{
32172		"name": c.name,
32173	})
32174	return gensupport.SendRequest(c.ctx_, c.s.client, req)
32175}
32176
32177// Do executes the "apigee.organizations.environments.references.delete" call.
32178// Exactly one of *GoogleCloudApigeeV1Reference or error will be
32179// non-nil. Any non-2xx status code is an error. Response headers are in
32180// either *GoogleCloudApigeeV1Reference.ServerResponse.Header or (if a
32181// response was returned at all) in error.(*googleapi.Error).Header. Use
32182// googleapi.IsNotModified to check whether the returned error was
32183// because http.StatusNotModified was returned.
32184func (c *OrganizationsEnvironmentsReferencesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Reference, error) {
32185	gensupport.SetOptions(c.urlParams_, opts...)
32186	res, err := c.doRequest("json")
32187	if res != nil && res.StatusCode == http.StatusNotModified {
32188		if res.Body != nil {
32189			res.Body.Close()
32190		}
32191		return nil, &googleapi.Error{
32192			Code:   res.StatusCode,
32193			Header: res.Header,
32194		}
32195	}
32196	if err != nil {
32197		return nil, err
32198	}
32199	defer googleapi.CloseBody(res)
32200	if err := googleapi.CheckResponse(res); err != nil {
32201		return nil, err
32202	}
32203	ret := &GoogleCloudApigeeV1Reference{
32204		ServerResponse: googleapi.ServerResponse{
32205			Header:         res.Header,
32206			HTTPStatusCode: res.StatusCode,
32207		},
32208	}
32209	target := &ret
32210	if err := gensupport.DecodeResponse(target, res); err != nil {
32211		return nil, err
32212	}
32213	return ret, nil
32214	// {
32215	//   "description": "Deletes a Reference from an environment. Returns the deleted Reference resource.",
32216	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/references/{referencesId}",
32217	//   "httpMethod": "DELETE",
32218	//   "id": "apigee.organizations.environments.references.delete",
32219	//   "parameterOrder": [
32220	//     "name"
32221	//   ],
32222	//   "parameters": {
32223	//     "name": {
32224	//       "description": "Required. The name of the Reference to delete. Must be of the form `organizations/{org}/environments/{env}/references/{ref}`.",
32225	//       "location": "path",
32226	//       "pattern": "^organizations/[^/]+/environments/[^/]+/references/[^/]+$",
32227	//       "required": true,
32228	//       "type": "string"
32229	//     }
32230	//   },
32231	//   "path": "v1/{+name}",
32232	//   "response": {
32233	//     "$ref": "GoogleCloudApigeeV1Reference"
32234	//   },
32235	//   "scopes": [
32236	//     "https://www.googleapis.com/auth/cloud-platform"
32237	//   ]
32238	// }
32239
32240}
32241
32242// method id "apigee.organizations.environments.references.get":
32243
32244type OrganizationsEnvironmentsReferencesGetCall struct {
32245	s            *Service
32246	name         string
32247	urlParams_   gensupport.URLParams
32248	ifNoneMatch_ string
32249	ctx_         context.Context
32250	header_      http.Header
32251}
32252
32253// Get: Gets a Reference resource.
32254//
32255// - name: The name of the Reference to get. Must be of the form
32256//   `organizations/{org}/environments/{env}/references/{ref}`.
32257func (r *OrganizationsEnvironmentsReferencesService) Get(name string) *OrganizationsEnvironmentsReferencesGetCall {
32258	c := &OrganizationsEnvironmentsReferencesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32259	c.name = name
32260	return c
32261}
32262
32263// Fields allows partial responses to be retrieved. See
32264// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
32265// for more information.
32266func (c *OrganizationsEnvironmentsReferencesGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsReferencesGetCall {
32267	c.urlParams_.Set("fields", googleapi.CombineFields(s))
32268	return c
32269}
32270
32271// IfNoneMatch sets the optional parameter which makes the operation
32272// fail if the object's ETag matches the given value. This is useful for
32273// getting updates only after the object has changed since the last
32274// request. Use googleapi.IsNotModified to check whether the response
32275// error from Do is the result of In-None-Match.
32276func (c *OrganizationsEnvironmentsReferencesGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsReferencesGetCall {
32277	c.ifNoneMatch_ = entityTag
32278	return c
32279}
32280
32281// Context sets the context to be used in this call's Do method. Any
32282// pending HTTP request will be aborted if the provided context is
32283// canceled.
32284func (c *OrganizationsEnvironmentsReferencesGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsReferencesGetCall {
32285	c.ctx_ = ctx
32286	return c
32287}
32288
32289// Header returns an http.Header that can be modified by the caller to
32290// add HTTP headers to the request.
32291func (c *OrganizationsEnvironmentsReferencesGetCall) Header() http.Header {
32292	if c.header_ == nil {
32293		c.header_ = make(http.Header)
32294	}
32295	return c.header_
32296}
32297
32298func (c *OrganizationsEnvironmentsReferencesGetCall) doRequest(alt string) (*http.Response, error) {
32299	reqHeaders := make(http.Header)
32300	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
32301	for k, v := range c.header_ {
32302		reqHeaders[k] = v
32303	}
32304	reqHeaders.Set("User-Agent", c.s.userAgent())
32305	if c.ifNoneMatch_ != "" {
32306		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
32307	}
32308	var body io.Reader = nil
32309	c.urlParams_.Set("alt", alt)
32310	c.urlParams_.Set("prettyPrint", "false")
32311	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
32312	urls += "?" + c.urlParams_.Encode()
32313	req, err := http.NewRequest("GET", urls, body)
32314	if err != nil {
32315		return nil, err
32316	}
32317	req.Header = reqHeaders
32318	googleapi.Expand(req.URL, map[string]string{
32319		"name": c.name,
32320	})
32321	return gensupport.SendRequest(c.ctx_, c.s.client, req)
32322}
32323
32324// Do executes the "apigee.organizations.environments.references.get" call.
32325// Exactly one of *GoogleCloudApigeeV1Reference or error will be
32326// non-nil. Any non-2xx status code is an error. Response headers are in
32327// either *GoogleCloudApigeeV1Reference.ServerResponse.Header or (if a
32328// response was returned at all) in error.(*googleapi.Error).Header. Use
32329// googleapi.IsNotModified to check whether the returned error was
32330// because http.StatusNotModified was returned.
32331func (c *OrganizationsEnvironmentsReferencesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Reference, error) {
32332	gensupport.SetOptions(c.urlParams_, opts...)
32333	res, err := c.doRequest("json")
32334	if res != nil && res.StatusCode == http.StatusNotModified {
32335		if res.Body != nil {
32336			res.Body.Close()
32337		}
32338		return nil, &googleapi.Error{
32339			Code:   res.StatusCode,
32340			Header: res.Header,
32341		}
32342	}
32343	if err != nil {
32344		return nil, err
32345	}
32346	defer googleapi.CloseBody(res)
32347	if err := googleapi.CheckResponse(res); err != nil {
32348		return nil, err
32349	}
32350	ret := &GoogleCloudApigeeV1Reference{
32351		ServerResponse: googleapi.ServerResponse{
32352			Header:         res.Header,
32353			HTTPStatusCode: res.StatusCode,
32354		},
32355	}
32356	target := &ret
32357	if err := gensupport.DecodeResponse(target, res); err != nil {
32358		return nil, err
32359	}
32360	return ret, nil
32361	// {
32362	//   "description": "Gets a Reference resource.",
32363	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/references/{referencesId}",
32364	//   "httpMethod": "GET",
32365	//   "id": "apigee.organizations.environments.references.get",
32366	//   "parameterOrder": [
32367	//     "name"
32368	//   ],
32369	//   "parameters": {
32370	//     "name": {
32371	//       "description": "Required. The name of the Reference to get. Must be of the form `organizations/{org}/environments/{env}/references/{ref}`.",
32372	//       "location": "path",
32373	//       "pattern": "^organizations/[^/]+/environments/[^/]+/references/[^/]+$",
32374	//       "required": true,
32375	//       "type": "string"
32376	//     }
32377	//   },
32378	//   "path": "v1/{+name}",
32379	//   "response": {
32380	//     "$ref": "GoogleCloudApigeeV1Reference"
32381	//   },
32382	//   "scopes": [
32383	//     "https://www.googleapis.com/auth/cloud-platform"
32384	//   ]
32385	// }
32386
32387}
32388
32389// method id "apigee.organizations.environments.references.update":
32390
32391type OrganizationsEnvironmentsReferencesUpdateCall struct {
32392	s                            *Service
32393	name                         string
32394	googlecloudapigeev1reference *GoogleCloudApigeeV1Reference
32395	urlParams_                   gensupport.URLParams
32396	ctx_                         context.Context
32397	header_                      http.Header
32398}
32399
32400// Update: Updates an existing Reference. Note that this operation has
32401// PUT semantics; it will replace the entirety of the existing Reference
32402// with the resource in the request body.
32403//
32404// - name: The name of the Reference to update. Must be of the form
32405//   `organizations/{org}/environments/{env}/references/{ref}`.
32406func (r *OrganizationsEnvironmentsReferencesService) Update(name string, googlecloudapigeev1reference *GoogleCloudApigeeV1Reference) *OrganizationsEnvironmentsReferencesUpdateCall {
32407	c := &OrganizationsEnvironmentsReferencesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32408	c.name = name
32409	c.googlecloudapigeev1reference = googlecloudapigeev1reference
32410	return c
32411}
32412
32413// Fields allows partial responses to be retrieved. See
32414// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
32415// for more information.
32416func (c *OrganizationsEnvironmentsReferencesUpdateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsReferencesUpdateCall {
32417	c.urlParams_.Set("fields", googleapi.CombineFields(s))
32418	return c
32419}
32420
32421// Context sets the context to be used in this call's Do method. Any
32422// pending HTTP request will be aborted if the provided context is
32423// canceled.
32424func (c *OrganizationsEnvironmentsReferencesUpdateCall) Context(ctx context.Context) *OrganizationsEnvironmentsReferencesUpdateCall {
32425	c.ctx_ = ctx
32426	return c
32427}
32428
32429// Header returns an http.Header that can be modified by the caller to
32430// add HTTP headers to the request.
32431func (c *OrganizationsEnvironmentsReferencesUpdateCall) Header() http.Header {
32432	if c.header_ == nil {
32433		c.header_ = make(http.Header)
32434	}
32435	return c.header_
32436}
32437
32438func (c *OrganizationsEnvironmentsReferencesUpdateCall) doRequest(alt string) (*http.Response, error) {
32439	reqHeaders := make(http.Header)
32440	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
32441	for k, v := range c.header_ {
32442		reqHeaders[k] = v
32443	}
32444	reqHeaders.Set("User-Agent", c.s.userAgent())
32445	var body io.Reader = nil
32446	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1reference)
32447	if err != nil {
32448		return nil, err
32449	}
32450	reqHeaders.Set("Content-Type", "application/json")
32451	c.urlParams_.Set("alt", alt)
32452	c.urlParams_.Set("prettyPrint", "false")
32453	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
32454	urls += "?" + c.urlParams_.Encode()
32455	req, err := http.NewRequest("PUT", urls, body)
32456	if err != nil {
32457		return nil, err
32458	}
32459	req.Header = reqHeaders
32460	googleapi.Expand(req.URL, map[string]string{
32461		"name": c.name,
32462	})
32463	return gensupport.SendRequest(c.ctx_, c.s.client, req)
32464}
32465
32466// Do executes the "apigee.organizations.environments.references.update" call.
32467// Exactly one of *GoogleCloudApigeeV1Reference or error will be
32468// non-nil. Any non-2xx status code is an error. Response headers are in
32469// either *GoogleCloudApigeeV1Reference.ServerResponse.Header or (if a
32470// response was returned at all) in error.(*googleapi.Error).Header. Use
32471// googleapi.IsNotModified to check whether the returned error was
32472// because http.StatusNotModified was returned.
32473func (c *OrganizationsEnvironmentsReferencesUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Reference, error) {
32474	gensupport.SetOptions(c.urlParams_, opts...)
32475	res, err := c.doRequest("json")
32476	if res != nil && res.StatusCode == http.StatusNotModified {
32477		if res.Body != nil {
32478			res.Body.Close()
32479		}
32480		return nil, &googleapi.Error{
32481			Code:   res.StatusCode,
32482			Header: res.Header,
32483		}
32484	}
32485	if err != nil {
32486		return nil, err
32487	}
32488	defer googleapi.CloseBody(res)
32489	if err := googleapi.CheckResponse(res); err != nil {
32490		return nil, err
32491	}
32492	ret := &GoogleCloudApigeeV1Reference{
32493		ServerResponse: googleapi.ServerResponse{
32494			Header:         res.Header,
32495			HTTPStatusCode: res.StatusCode,
32496		},
32497	}
32498	target := &ret
32499	if err := gensupport.DecodeResponse(target, res); err != nil {
32500		return nil, err
32501	}
32502	return ret, nil
32503	// {
32504	//   "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.",
32505	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/references/{referencesId}",
32506	//   "httpMethod": "PUT",
32507	//   "id": "apigee.organizations.environments.references.update",
32508	//   "parameterOrder": [
32509	//     "name"
32510	//   ],
32511	//   "parameters": {
32512	//     "name": {
32513	//       "description": "Required. The name of the Reference to update. Must be of the form `organizations/{org}/environments/{env}/references/{ref}`.",
32514	//       "location": "path",
32515	//       "pattern": "^organizations/[^/]+/environments/[^/]+/references/[^/]+$",
32516	//       "required": true,
32517	//       "type": "string"
32518	//     }
32519	//   },
32520	//   "path": "v1/{+name}",
32521	//   "request": {
32522	//     "$ref": "GoogleCloudApigeeV1Reference"
32523	//   },
32524	//   "response": {
32525	//     "$ref": "GoogleCloudApigeeV1Reference"
32526	//   },
32527	//   "scopes": [
32528	//     "https://www.googleapis.com/auth/cloud-platform"
32529	//   ]
32530	// }
32531
32532}
32533
32534// method id "apigee.organizations.environments.resourcefiles.create":
32535
32536type OrganizationsEnvironmentsResourcefilesCreateCall struct {
32537	s                 *Service
32538	parent            string
32539	googleapihttpbody *GoogleApiHttpBody
32540	urlParams_        gensupport.URLParams
32541	ctx_              context.Context
32542	header_           http.Header
32543}
32544
32545// Create: Creates a resource file. Specify the `Content-Type` as
32546// `application/octet-stream` or `multipart/form-data`. For more
32547// information about resource files, see Resource files
32548// (https://cloud.google.com/apigee/docs/api-platform/develop/resource-files).
32549//
32550// - parent: Name of the environment in which to create the resource
32551//   file in the following format:
32552//   `organizations/{org}/environments/{env}`.
32553func (r *OrganizationsEnvironmentsResourcefilesService) Create(parent string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsEnvironmentsResourcefilesCreateCall {
32554	c := &OrganizationsEnvironmentsResourcefilesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32555	c.parent = parent
32556	c.googleapihttpbody = googleapihttpbody
32557	return c
32558}
32559
32560// Name sets the optional parameter "name": Required. Name of the
32561// resource file. Must match the regular expression:
32562// [a-zA-Z0-9:/\\!@#$%^&{}\\ ()+\-=,.~'` ]{1,255}
32563func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Name(name string) *OrganizationsEnvironmentsResourcefilesCreateCall {
32564	c.urlParams_.Set("name", name)
32565	return c
32566}
32567
32568// Type sets the optional parameter "type": Required. Resource file
32569// type. {{ resource_file_type }}
32570func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Type(type_ string) *OrganizationsEnvironmentsResourcefilesCreateCall {
32571	c.urlParams_.Set("type", type_)
32572	return c
32573}
32574
32575// Fields allows partial responses to be retrieved. See
32576// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
32577// for more information.
32578func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesCreateCall {
32579	c.urlParams_.Set("fields", googleapi.CombineFields(s))
32580	return c
32581}
32582
32583// Context sets the context to be used in this call's Do method. Any
32584// pending HTTP request will be aborted if the provided context is
32585// canceled.
32586func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesCreateCall {
32587	c.ctx_ = ctx
32588	return c
32589}
32590
32591// Header returns an http.Header that can be modified by the caller to
32592// add HTTP headers to the request.
32593func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Header() http.Header {
32594	if c.header_ == nil {
32595		c.header_ = make(http.Header)
32596	}
32597	return c.header_
32598}
32599
32600func (c *OrganizationsEnvironmentsResourcefilesCreateCall) doRequest(alt string) (*http.Response, error) {
32601	reqHeaders := make(http.Header)
32602	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
32603	for k, v := range c.header_ {
32604		reqHeaders[k] = v
32605	}
32606	reqHeaders.Set("User-Agent", c.s.userAgent())
32607	var body io.Reader = nil
32608	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
32609	if err != nil {
32610		return nil, err
32611	}
32612	reqHeaders.Set("Content-Type", "application/json")
32613	c.urlParams_.Set("alt", alt)
32614	c.urlParams_.Set("prettyPrint", "false")
32615	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcefiles")
32616	urls += "?" + c.urlParams_.Encode()
32617	req, err := http.NewRequest("POST", urls, body)
32618	if err != nil {
32619		return nil, err
32620	}
32621	req.Header = reqHeaders
32622	googleapi.Expand(req.URL, map[string]string{
32623		"parent": c.parent,
32624	})
32625	return gensupport.SendRequest(c.ctx_, c.s.client, req)
32626}
32627
32628// Do executes the "apigee.organizations.environments.resourcefiles.create" call.
32629// Exactly one of *GoogleCloudApigeeV1ResourceFile or error will be
32630// non-nil. Any non-2xx status code is an error. Response headers are in
32631// either *GoogleCloudApigeeV1ResourceFile.ServerResponse.Header or (if
32632// a response was returned at all) in error.(*googleapi.Error).Header.
32633// Use googleapi.IsNotModified to check whether the returned error was
32634// because http.StatusNotModified was returned.
32635func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ResourceFile, error) {
32636	gensupport.SetOptions(c.urlParams_, opts...)
32637	res, err := c.doRequest("json")
32638	if res != nil && res.StatusCode == http.StatusNotModified {
32639		if res.Body != nil {
32640			res.Body.Close()
32641		}
32642		return nil, &googleapi.Error{
32643			Code:   res.StatusCode,
32644			Header: res.Header,
32645		}
32646	}
32647	if err != nil {
32648		return nil, err
32649	}
32650	defer googleapi.CloseBody(res)
32651	if err := googleapi.CheckResponse(res); err != nil {
32652		return nil, err
32653	}
32654	ret := &GoogleCloudApigeeV1ResourceFile{
32655		ServerResponse: googleapi.ServerResponse{
32656			Header:         res.Header,
32657			HTTPStatusCode: res.StatusCode,
32658		},
32659	}
32660	target := &ret
32661	if err := gensupport.DecodeResponse(target, res); err != nil {
32662		return nil, err
32663	}
32664	return ret, nil
32665	// {
32666	//   "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).",
32667	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/resourcefiles",
32668	//   "httpMethod": "POST",
32669	//   "id": "apigee.organizations.environments.resourcefiles.create",
32670	//   "parameterOrder": [
32671	//     "parent"
32672	//   ],
32673	//   "parameters": {
32674	//     "name": {
32675	//       "description": "Required. Name of the resource file. Must match the regular expression: [a-zA-Z0-9:/\\\\!@#$%^\u0026{}\\[\\]()+\\-=,.~'` ]{1,255}",
32676	//       "location": "query",
32677	//       "type": "string"
32678	//     },
32679	//     "parent": {
32680	//       "description": "Required. Name of the environment in which to create the resource file in the following format: `organizations/{org}/environments/{env}`.",
32681	//       "location": "path",
32682	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
32683	//       "required": true,
32684	//       "type": "string"
32685	//     },
32686	//     "type": {
32687	//       "description": "Required. Resource file type. {{ resource_file_type }}",
32688	//       "location": "query",
32689	//       "type": "string"
32690	//     }
32691	//   },
32692	//   "path": "v1/{+parent}/resourcefiles",
32693	//   "request": {
32694	//     "$ref": "GoogleApiHttpBody"
32695	//   },
32696	//   "response": {
32697	//     "$ref": "GoogleCloudApigeeV1ResourceFile"
32698	//   },
32699	//   "scopes": [
32700	//     "https://www.googleapis.com/auth/cloud-platform"
32701	//   ]
32702	// }
32703
32704}
32705
32706// method id "apigee.organizations.environments.resourcefiles.delete":
32707
32708type OrganizationsEnvironmentsResourcefilesDeleteCall struct {
32709	s          *Service
32710	parent     string
32711	type_      string
32712	name       string
32713	urlParams_ gensupport.URLParams
32714	ctx_       context.Context
32715	header_    http.Header
32716}
32717
32718// Delete: Deletes a resource file. For more information about resource
32719// files, see Resource files
32720// (https://cloud.google.com/apigee/docs/api-platform/develop/resource-files).
32721//
32722// - name: ID of the resource file to delete. Must match the regular
32723//   expression: [a-zA-Z0-9:/\\!@#$%^&{}\\ ()+\-=,.~'` ]{1,255}.
32724// - parent: Name of the environment in the following format:
32725//   `organizations/{org}/environments/{env}`.
32726// - type: Resource file type. {{ resource_file_type }}.
32727func (r *OrganizationsEnvironmentsResourcefilesService) Delete(parent string, type_ string, name string) *OrganizationsEnvironmentsResourcefilesDeleteCall {
32728	c := &OrganizationsEnvironmentsResourcefilesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32729	c.parent = parent
32730	c.type_ = type_
32731	c.name = name
32732	return c
32733}
32734
32735// Fields allows partial responses to be retrieved. See
32736// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
32737// for more information.
32738func (c *OrganizationsEnvironmentsResourcefilesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesDeleteCall {
32739	c.urlParams_.Set("fields", googleapi.CombineFields(s))
32740	return c
32741}
32742
32743// Context sets the context to be used in this call's Do method. Any
32744// pending HTTP request will be aborted if the provided context is
32745// canceled.
32746func (c *OrganizationsEnvironmentsResourcefilesDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesDeleteCall {
32747	c.ctx_ = ctx
32748	return c
32749}
32750
32751// Header returns an http.Header that can be modified by the caller to
32752// add HTTP headers to the request.
32753func (c *OrganizationsEnvironmentsResourcefilesDeleteCall) Header() http.Header {
32754	if c.header_ == nil {
32755		c.header_ = make(http.Header)
32756	}
32757	return c.header_
32758}
32759
32760func (c *OrganizationsEnvironmentsResourcefilesDeleteCall) doRequest(alt string) (*http.Response, error) {
32761	reqHeaders := make(http.Header)
32762	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
32763	for k, v := range c.header_ {
32764		reqHeaders[k] = v
32765	}
32766	reqHeaders.Set("User-Agent", c.s.userAgent())
32767	var body io.Reader = nil
32768	c.urlParams_.Set("alt", alt)
32769	c.urlParams_.Set("prettyPrint", "false")
32770	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcefiles/{type}/{name}")
32771	urls += "?" + c.urlParams_.Encode()
32772	req, err := http.NewRequest("DELETE", urls, body)
32773	if err != nil {
32774		return nil, err
32775	}
32776	req.Header = reqHeaders
32777	googleapi.Expand(req.URL, map[string]string{
32778		"parent": c.parent,
32779		"type":   c.type_,
32780		"name":   c.name,
32781	})
32782	return gensupport.SendRequest(c.ctx_, c.s.client, req)
32783}
32784
32785// Do executes the "apigee.organizations.environments.resourcefiles.delete" call.
32786// Exactly one of *GoogleCloudApigeeV1ResourceFile or error will be
32787// non-nil. Any non-2xx status code is an error. Response headers are in
32788// either *GoogleCloudApigeeV1ResourceFile.ServerResponse.Header or (if
32789// a response was returned at all) in error.(*googleapi.Error).Header.
32790// Use googleapi.IsNotModified to check whether the returned error was
32791// because http.StatusNotModified was returned.
32792func (c *OrganizationsEnvironmentsResourcefilesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ResourceFile, error) {
32793	gensupport.SetOptions(c.urlParams_, opts...)
32794	res, err := c.doRequest("json")
32795	if res != nil && res.StatusCode == http.StatusNotModified {
32796		if res.Body != nil {
32797			res.Body.Close()
32798		}
32799		return nil, &googleapi.Error{
32800			Code:   res.StatusCode,
32801			Header: res.Header,
32802		}
32803	}
32804	if err != nil {
32805		return nil, err
32806	}
32807	defer googleapi.CloseBody(res)
32808	if err := googleapi.CheckResponse(res); err != nil {
32809		return nil, err
32810	}
32811	ret := &GoogleCloudApigeeV1ResourceFile{
32812		ServerResponse: googleapi.ServerResponse{
32813			Header:         res.Header,
32814			HTTPStatusCode: res.StatusCode,
32815		},
32816	}
32817	target := &ret
32818	if err := gensupport.DecodeResponse(target, res); err != nil {
32819		return nil, err
32820	}
32821	return ret, nil
32822	// {
32823	//   "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).",
32824	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/resourcefiles/{type}/{name}",
32825	//   "httpMethod": "DELETE",
32826	//   "id": "apigee.organizations.environments.resourcefiles.delete",
32827	//   "parameterOrder": [
32828	//     "parent",
32829	//     "type",
32830	//     "name"
32831	//   ],
32832	//   "parameters": {
32833	//     "name": {
32834	//       "description": "Required. ID of the resource file to delete. Must match the regular expression: [a-zA-Z0-9:/\\\\!@#$%^\u0026{}\\[\\]()+\\-=,.~'` ]{1,255}",
32835	//       "location": "path",
32836	//       "required": true,
32837	//       "type": "string"
32838	//     },
32839	//     "parent": {
32840	//       "description": "Required. Name of the environment in the following format: `organizations/{org}/environments/{env}`.",
32841	//       "location": "path",
32842	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
32843	//       "required": true,
32844	//       "type": "string"
32845	//     },
32846	//     "type": {
32847	//       "description": "Required. Resource file type. {{ resource_file_type }}",
32848	//       "location": "path",
32849	//       "required": true,
32850	//       "type": "string"
32851	//     }
32852	//   },
32853	//   "path": "v1/{+parent}/resourcefiles/{type}/{name}",
32854	//   "response": {
32855	//     "$ref": "GoogleCloudApigeeV1ResourceFile"
32856	//   },
32857	//   "scopes": [
32858	//     "https://www.googleapis.com/auth/cloud-platform"
32859	//   ]
32860	// }
32861
32862}
32863
32864// method id "apigee.organizations.environments.resourcefiles.get":
32865
32866type OrganizationsEnvironmentsResourcefilesGetCall struct {
32867	s            *Service
32868	parent       string
32869	type_        string
32870	name         string
32871	urlParams_   gensupport.URLParams
32872	ifNoneMatch_ string
32873	ctx_         context.Context
32874	header_      http.Header
32875}
32876
32877// Get: Gets the contents of a resource file. For more information about
32878// resource files, see Resource files
32879// (https://cloud.google.com/apigee/docs/api-platform/develop/resource-files).
32880//
32881// - name: ID of the resource file. Must match the regular expression:
32882//   [a-zA-Z0-9:/\\!@#$%^&{}\\ ()+\-=,.~'` ]{1,255}.
32883// - parent: Name of the environment in the following format:
32884//   `organizations/{org}/environments/{env}`.
32885// - type: Resource file type. {{ resource_file_type }}.
32886func (r *OrganizationsEnvironmentsResourcefilesService) Get(parent string, type_ string, name string) *OrganizationsEnvironmentsResourcefilesGetCall {
32887	c := &OrganizationsEnvironmentsResourcefilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32888	c.parent = parent
32889	c.type_ = type_
32890	c.name = name
32891	return c
32892}
32893
32894// Fields allows partial responses to be retrieved. See
32895// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
32896// for more information.
32897func (c *OrganizationsEnvironmentsResourcefilesGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesGetCall {
32898	c.urlParams_.Set("fields", googleapi.CombineFields(s))
32899	return c
32900}
32901
32902// IfNoneMatch sets the optional parameter which makes the operation
32903// fail if the object's ETag matches the given value. This is useful for
32904// getting updates only after the object has changed since the last
32905// request. Use googleapi.IsNotModified to check whether the response
32906// error from Do is the result of In-None-Match.
32907func (c *OrganizationsEnvironmentsResourcefilesGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsResourcefilesGetCall {
32908	c.ifNoneMatch_ = entityTag
32909	return c
32910}
32911
32912// Context sets the context to be used in this call's Do method. Any
32913// pending HTTP request will be aborted if the provided context is
32914// canceled.
32915func (c *OrganizationsEnvironmentsResourcefilesGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesGetCall {
32916	c.ctx_ = ctx
32917	return c
32918}
32919
32920// Header returns an http.Header that can be modified by the caller to
32921// add HTTP headers to the request.
32922func (c *OrganizationsEnvironmentsResourcefilesGetCall) Header() http.Header {
32923	if c.header_ == nil {
32924		c.header_ = make(http.Header)
32925	}
32926	return c.header_
32927}
32928
32929func (c *OrganizationsEnvironmentsResourcefilesGetCall) doRequest(alt string) (*http.Response, error) {
32930	reqHeaders := make(http.Header)
32931	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
32932	for k, v := range c.header_ {
32933		reqHeaders[k] = v
32934	}
32935	reqHeaders.Set("User-Agent", c.s.userAgent())
32936	if c.ifNoneMatch_ != "" {
32937		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
32938	}
32939	var body io.Reader = nil
32940	c.urlParams_.Set("alt", alt)
32941	c.urlParams_.Set("prettyPrint", "false")
32942	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcefiles/{type}/{name}")
32943	urls += "?" + c.urlParams_.Encode()
32944	req, err := http.NewRequest("GET", urls, body)
32945	if err != nil {
32946		return nil, err
32947	}
32948	req.Header = reqHeaders
32949	googleapi.Expand(req.URL, map[string]string{
32950		"parent": c.parent,
32951		"type":   c.type_,
32952		"name":   c.name,
32953	})
32954	return gensupport.SendRequest(c.ctx_, c.s.client, req)
32955}
32956
32957// Do executes the "apigee.organizations.environments.resourcefiles.get" call.
32958// Exactly one of *GoogleApiHttpBody or error will be non-nil. Any
32959// non-2xx status code is an error. Response headers are in either
32960// *GoogleApiHttpBody.ServerResponse.Header or (if a response was
32961// returned at all) in error.(*googleapi.Error).Header. Use
32962// googleapi.IsNotModified to check whether the returned error was
32963// because http.StatusNotModified was returned.
32964func (c *OrganizationsEnvironmentsResourcefilesGetCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
32965	gensupport.SetOptions(c.urlParams_, opts...)
32966	res, err := c.doRequest("json")
32967	if res != nil && res.StatusCode == http.StatusNotModified {
32968		if res.Body != nil {
32969			res.Body.Close()
32970		}
32971		return nil, &googleapi.Error{
32972			Code:   res.StatusCode,
32973			Header: res.Header,
32974		}
32975	}
32976	if err != nil {
32977		return nil, err
32978	}
32979	defer googleapi.CloseBody(res)
32980	if err := googleapi.CheckResponse(res); err != nil {
32981		return nil, err
32982	}
32983	ret := &GoogleApiHttpBody{
32984		ServerResponse: googleapi.ServerResponse{
32985			Header:         res.Header,
32986			HTTPStatusCode: res.StatusCode,
32987		},
32988	}
32989	target := &ret
32990	if err := gensupport.DecodeResponse(target, res); err != nil {
32991		return nil, err
32992	}
32993	return ret, nil
32994	// {
32995	//   "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).",
32996	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/resourcefiles/{type}/{name}",
32997	//   "httpMethod": "GET",
32998	//   "id": "apigee.organizations.environments.resourcefiles.get",
32999	//   "parameterOrder": [
33000	//     "parent",
33001	//     "type",
33002	//     "name"
33003	//   ],
33004	//   "parameters": {
33005	//     "name": {
33006	//       "description": "Required. ID of the resource file. Must match the regular expression: [a-zA-Z0-9:/\\\\!@#$%^\u0026{}\\[\\]()+\\-=,.~'` ]{1,255}",
33007	//       "location": "path",
33008	//       "required": true,
33009	//       "type": "string"
33010	//     },
33011	//     "parent": {
33012	//       "description": "Required. Name of the environment in the following format: `organizations/{org}/environments/{env}`.",
33013	//       "location": "path",
33014	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
33015	//       "required": true,
33016	//       "type": "string"
33017	//     },
33018	//     "type": {
33019	//       "description": "Required. Resource file type. {{ resource_file_type }}",
33020	//       "location": "path",
33021	//       "required": true,
33022	//       "type": "string"
33023	//     }
33024	//   },
33025	//   "path": "v1/{+parent}/resourcefiles/{type}/{name}",
33026	//   "response": {
33027	//     "$ref": "GoogleApiHttpBody"
33028	//   },
33029	//   "scopes": [
33030	//     "https://www.googleapis.com/auth/cloud-platform"
33031	//   ]
33032	// }
33033
33034}
33035
33036// method id "apigee.organizations.environments.resourcefiles.list":
33037
33038type OrganizationsEnvironmentsResourcefilesListCall struct {
33039	s            *Service
33040	parent       string
33041	urlParams_   gensupport.URLParams
33042	ifNoneMatch_ string
33043	ctx_         context.Context
33044	header_      http.Header
33045}
33046
33047// List: Lists all resource files, optionally filtering by type. For
33048// more information about resource files, see Resource files
33049// (https://cloud.google.com/apigee/docs/api-platform/develop/resource-files).
33050//
33051// - parent: Name of the environment in which to list resource files in
33052//   the following format: `organizations/{org}/environments/{env}`.
33053func (r *OrganizationsEnvironmentsResourcefilesService) List(parent string) *OrganizationsEnvironmentsResourcefilesListCall {
33054	c := &OrganizationsEnvironmentsResourcefilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33055	c.parent = parent
33056	return c
33057}
33058
33059// Type sets the optional parameter "type": Type of resource files to
33060// list. {{ resource_file_type }}
33061func (c *OrganizationsEnvironmentsResourcefilesListCall) Type(type_ string) *OrganizationsEnvironmentsResourcefilesListCall {
33062	c.urlParams_.Set("type", type_)
33063	return c
33064}
33065
33066// Fields allows partial responses to be retrieved. See
33067// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
33068// for more information.
33069func (c *OrganizationsEnvironmentsResourcefilesListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesListCall {
33070	c.urlParams_.Set("fields", googleapi.CombineFields(s))
33071	return c
33072}
33073
33074// IfNoneMatch sets the optional parameter which makes the operation
33075// fail if the object's ETag matches the given value. This is useful for
33076// getting updates only after the object has changed since the last
33077// request. Use googleapi.IsNotModified to check whether the response
33078// error from Do is the result of In-None-Match.
33079func (c *OrganizationsEnvironmentsResourcefilesListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsResourcefilesListCall {
33080	c.ifNoneMatch_ = entityTag
33081	return c
33082}
33083
33084// Context sets the context to be used in this call's Do method. Any
33085// pending HTTP request will be aborted if the provided context is
33086// canceled.
33087func (c *OrganizationsEnvironmentsResourcefilesListCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesListCall {
33088	c.ctx_ = ctx
33089	return c
33090}
33091
33092// Header returns an http.Header that can be modified by the caller to
33093// add HTTP headers to the request.
33094func (c *OrganizationsEnvironmentsResourcefilesListCall) Header() http.Header {
33095	if c.header_ == nil {
33096		c.header_ = make(http.Header)
33097	}
33098	return c.header_
33099}
33100
33101func (c *OrganizationsEnvironmentsResourcefilesListCall) doRequest(alt string) (*http.Response, error) {
33102	reqHeaders := make(http.Header)
33103	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
33104	for k, v := range c.header_ {
33105		reqHeaders[k] = v
33106	}
33107	reqHeaders.Set("User-Agent", c.s.userAgent())
33108	if c.ifNoneMatch_ != "" {
33109		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
33110	}
33111	var body io.Reader = nil
33112	c.urlParams_.Set("alt", alt)
33113	c.urlParams_.Set("prettyPrint", "false")
33114	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcefiles")
33115	urls += "?" + c.urlParams_.Encode()
33116	req, err := http.NewRequest("GET", urls, body)
33117	if err != nil {
33118		return nil, err
33119	}
33120	req.Header = reqHeaders
33121	googleapi.Expand(req.URL, map[string]string{
33122		"parent": c.parent,
33123	})
33124	return gensupport.SendRequest(c.ctx_, c.s.client, req)
33125}
33126
33127// Do executes the "apigee.organizations.environments.resourcefiles.list" call.
33128// Exactly one of *GoogleCloudApigeeV1ListEnvironmentResourcesResponse
33129// or error will be non-nil. Any non-2xx status code is an error.
33130// Response headers are in either
33131// *GoogleCloudApigeeV1ListEnvironmentResourcesResponse.ServerResponse.He
33132// ader or (if a response was returned at all) in
33133// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
33134// whether the returned error was because http.StatusNotModified was
33135// returned.
33136func (c *OrganizationsEnvironmentsResourcefilesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListEnvironmentResourcesResponse, error) {
33137	gensupport.SetOptions(c.urlParams_, opts...)
33138	res, err := c.doRequest("json")
33139	if res != nil && res.StatusCode == http.StatusNotModified {
33140		if res.Body != nil {
33141			res.Body.Close()
33142		}
33143		return nil, &googleapi.Error{
33144			Code:   res.StatusCode,
33145			Header: res.Header,
33146		}
33147	}
33148	if err != nil {
33149		return nil, err
33150	}
33151	defer googleapi.CloseBody(res)
33152	if err := googleapi.CheckResponse(res); err != nil {
33153		return nil, err
33154	}
33155	ret := &GoogleCloudApigeeV1ListEnvironmentResourcesResponse{
33156		ServerResponse: googleapi.ServerResponse{
33157			Header:         res.Header,
33158			HTTPStatusCode: res.StatusCode,
33159		},
33160	}
33161	target := &ret
33162	if err := gensupport.DecodeResponse(target, res); err != nil {
33163		return nil, err
33164	}
33165	return ret, nil
33166	// {
33167	//   "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).",
33168	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/resourcefiles",
33169	//   "httpMethod": "GET",
33170	//   "id": "apigee.organizations.environments.resourcefiles.list",
33171	//   "parameterOrder": [
33172	//     "parent"
33173	//   ],
33174	//   "parameters": {
33175	//     "parent": {
33176	//       "description": "Required. Name of the environment in which to list resource files in the following format: `organizations/{org}/environments/{env}`.",
33177	//       "location": "path",
33178	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
33179	//       "required": true,
33180	//       "type": "string"
33181	//     },
33182	//     "type": {
33183	//       "description": "Optional. Type of resource files to list. {{ resource_file_type }}",
33184	//       "location": "query",
33185	//       "type": "string"
33186	//     }
33187	//   },
33188	//   "path": "v1/{+parent}/resourcefiles",
33189	//   "response": {
33190	//     "$ref": "GoogleCloudApigeeV1ListEnvironmentResourcesResponse"
33191	//   },
33192	//   "scopes": [
33193	//     "https://www.googleapis.com/auth/cloud-platform"
33194	//   ]
33195	// }
33196
33197}
33198
33199// method id "apigee.organizations.environments.resourcefiles.listEnvironmentResources":
33200
33201type OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall struct {
33202	s            *Service
33203	parent       string
33204	type_        string
33205	urlParams_   gensupport.URLParams
33206	ifNoneMatch_ string
33207	ctx_         context.Context
33208	header_      http.Header
33209}
33210
33211// ListEnvironmentResources: Lists all resource files, optionally
33212// filtering by type. For more information about resource files, see
33213// Resource files
33214// (https://cloud.google.com/apigee/docs/api-platform/develop/resource-files).
33215//
33216// - parent: Name of the environment in which to list resource files in
33217//   the following format: `organizations/{org}/environments/{env}`.
33218// - type: Optional. Type of resource files to list. {{
33219//   resource_file_type }}.
33220func (r *OrganizationsEnvironmentsResourcefilesService) ListEnvironmentResources(parent string, type_ string) *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall {
33221	c := &OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33222	c.parent = parent
33223	c.type_ = type_
33224	return c
33225}
33226
33227// Fields allows partial responses to be retrieved. See
33228// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
33229// for more information.
33230func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall {
33231	c.urlParams_.Set("fields", googleapi.CombineFields(s))
33232	return c
33233}
33234
33235// IfNoneMatch sets the optional parameter which makes the operation
33236// fail if the object's ETag matches the given value. This is useful for
33237// getting updates only after the object has changed since the last
33238// request. Use googleapi.IsNotModified to check whether the response
33239// error from Do is the result of In-None-Match.
33240func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall {
33241	c.ifNoneMatch_ = entityTag
33242	return c
33243}
33244
33245// Context sets the context to be used in this call's Do method. Any
33246// pending HTTP request will be aborted if the provided context is
33247// canceled.
33248func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall {
33249	c.ctx_ = ctx
33250	return c
33251}
33252
33253// Header returns an http.Header that can be modified by the caller to
33254// add HTTP headers to the request.
33255func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) Header() http.Header {
33256	if c.header_ == nil {
33257		c.header_ = make(http.Header)
33258	}
33259	return c.header_
33260}
33261
33262func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) doRequest(alt string) (*http.Response, error) {
33263	reqHeaders := make(http.Header)
33264	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
33265	for k, v := range c.header_ {
33266		reqHeaders[k] = v
33267	}
33268	reqHeaders.Set("User-Agent", c.s.userAgent())
33269	if c.ifNoneMatch_ != "" {
33270		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
33271	}
33272	var body io.Reader = nil
33273	c.urlParams_.Set("alt", alt)
33274	c.urlParams_.Set("prettyPrint", "false")
33275	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcefiles/{type}")
33276	urls += "?" + c.urlParams_.Encode()
33277	req, err := http.NewRequest("GET", urls, body)
33278	if err != nil {
33279		return nil, err
33280	}
33281	req.Header = reqHeaders
33282	googleapi.Expand(req.URL, map[string]string{
33283		"parent": c.parent,
33284		"type":   c.type_,
33285	})
33286	return gensupport.SendRequest(c.ctx_, c.s.client, req)
33287}
33288
33289// Do executes the "apigee.organizations.environments.resourcefiles.listEnvironmentResources" call.
33290// Exactly one of *GoogleCloudApigeeV1ListEnvironmentResourcesResponse
33291// or error will be non-nil. Any non-2xx status code is an error.
33292// Response headers are in either
33293// *GoogleCloudApigeeV1ListEnvironmentResourcesResponse.ServerResponse.He
33294// ader or (if a response was returned at all) in
33295// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
33296// whether the returned error was because http.StatusNotModified was
33297// returned.
33298func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListEnvironmentResourcesResponse, error) {
33299	gensupport.SetOptions(c.urlParams_, opts...)
33300	res, err := c.doRequest("json")
33301	if res != nil && res.StatusCode == http.StatusNotModified {
33302		if res.Body != nil {
33303			res.Body.Close()
33304		}
33305		return nil, &googleapi.Error{
33306			Code:   res.StatusCode,
33307			Header: res.Header,
33308		}
33309	}
33310	if err != nil {
33311		return nil, err
33312	}
33313	defer googleapi.CloseBody(res)
33314	if err := googleapi.CheckResponse(res); err != nil {
33315		return nil, err
33316	}
33317	ret := &GoogleCloudApigeeV1ListEnvironmentResourcesResponse{
33318		ServerResponse: googleapi.ServerResponse{
33319			Header:         res.Header,
33320			HTTPStatusCode: res.StatusCode,
33321		},
33322	}
33323	target := &ret
33324	if err := gensupport.DecodeResponse(target, res); err != nil {
33325		return nil, err
33326	}
33327	return ret, nil
33328	// {
33329	//   "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).",
33330	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/resourcefiles/{type}",
33331	//   "httpMethod": "GET",
33332	//   "id": "apigee.organizations.environments.resourcefiles.listEnvironmentResources",
33333	//   "parameterOrder": [
33334	//     "parent",
33335	//     "type"
33336	//   ],
33337	//   "parameters": {
33338	//     "parent": {
33339	//       "description": "Required. Name of the environment in which to list resource files in the following format: `organizations/{org}/environments/{env}`.",
33340	//       "location": "path",
33341	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
33342	//       "required": true,
33343	//       "type": "string"
33344	//     },
33345	//     "type": {
33346	//       "description": "Optional. Type of resource files to list. {{ resource_file_type }}",
33347	//       "location": "path",
33348	//       "required": true,
33349	//       "type": "string"
33350	//     }
33351	//   },
33352	//   "path": "v1/{+parent}/resourcefiles/{type}",
33353	//   "response": {
33354	//     "$ref": "GoogleCloudApigeeV1ListEnvironmentResourcesResponse"
33355	//   },
33356	//   "scopes": [
33357	//     "https://www.googleapis.com/auth/cloud-platform"
33358	//   ]
33359	// }
33360
33361}
33362
33363// method id "apigee.organizations.environments.resourcefiles.update":
33364
33365type OrganizationsEnvironmentsResourcefilesUpdateCall struct {
33366	s                 *Service
33367	parent            string
33368	type_             string
33369	name              string
33370	googleapihttpbody *GoogleApiHttpBody
33371	urlParams_        gensupport.URLParams
33372	ctx_              context.Context
33373	header_           http.Header
33374}
33375
33376// Update: Updates a resource file. Specify the `Content-Type` as
33377// `application/octet-stream` or `multipart/form-data`. For more
33378// information about resource files, see Resource files
33379// (https://cloud.google.com/apigee/docs/api-platform/develop/resource-files).
33380//
33381// - name: ID of the resource file to update. Must match the regular
33382//   expression: [a-zA-Z0-9:/\\!@#$%^&{}\\ ()+\-=,.~'` ]{1,255}.
33383// - parent: Name of the environment in the following format:
33384//   `organizations/{org}/environments/{env}`.
33385// - type: Resource file type. {{ resource_file_type }}.
33386func (r *OrganizationsEnvironmentsResourcefilesService) Update(parent string, type_ string, name string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsEnvironmentsResourcefilesUpdateCall {
33387	c := &OrganizationsEnvironmentsResourcefilesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33388	c.parent = parent
33389	c.type_ = type_
33390	c.name = name
33391	c.googleapihttpbody = googleapihttpbody
33392	return c
33393}
33394
33395// Fields allows partial responses to be retrieved. See
33396// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
33397// for more information.
33398func (c *OrganizationsEnvironmentsResourcefilesUpdateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesUpdateCall {
33399	c.urlParams_.Set("fields", googleapi.CombineFields(s))
33400	return c
33401}
33402
33403// Context sets the context to be used in this call's Do method. Any
33404// pending HTTP request will be aborted if the provided context is
33405// canceled.
33406func (c *OrganizationsEnvironmentsResourcefilesUpdateCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesUpdateCall {
33407	c.ctx_ = ctx
33408	return c
33409}
33410
33411// Header returns an http.Header that can be modified by the caller to
33412// add HTTP headers to the request.
33413func (c *OrganizationsEnvironmentsResourcefilesUpdateCall) Header() http.Header {
33414	if c.header_ == nil {
33415		c.header_ = make(http.Header)
33416	}
33417	return c.header_
33418}
33419
33420func (c *OrganizationsEnvironmentsResourcefilesUpdateCall) doRequest(alt string) (*http.Response, error) {
33421	reqHeaders := make(http.Header)
33422	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
33423	for k, v := range c.header_ {
33424		reqHeaders[k] = v
33425	}
33426	reqHeaders.Set("User-Agent", c.s.userAgent())
33427	var body io.Reader = nil
33428	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
33429	if err != nil {
33430		return nil, err
33431	}
33432	reqHeaders.Set("Content-Type", "application/json")
33433	c.urlParams_.Set("alt", alt)
33434	c.urlParams_.Set("prettyPrint", "false")
33435	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcefiles/{type}/{name}")
33436	urls += "?" + c.urlParams_.Encode()
33437	req, err := http.NewRequest("PUT", urls, body)
33438	if err != nil {
33439		return nil, err
33440	}
33441	req.Header = reqHeaders
33442	googleapi.Expand(req.URL, map[string]string{
33443		"parent": c.parent,
33444		"type":   c.type_,
33445		"name":   c.name,
33446	})
33447	return gensupport.SendRequest(c.ctx_, c.s.client, req)
33448}
33449
33450// Do executes the "apigee.organizations.environments.resourcefiles.update" call.
33451// Exactly one of *GoogleCloudApigeeV1ResourceFile or error will be
33452// non-nil. Any non-2xx status code is an error. Response headers are in
33453// either *GoogleCloudApigeeV1ResourceFile.ServerResponse.Header or (if
33454// a response was returned at all) in error.(*googleapi.Error).Header.
33455// Use googleapi.IsNotModified to check whether the returned error was
33456// because http.StatusNotModified was returned.
33457func (c *OrganizationsEnvironmentsResourcefilesUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ResourceFile, error) {
33458	gensupport.SetOptions(c.urlParams_, opts...)
33459	res, err := c.doRequest("json")
33460	if res != nil && res.StatusCode == http.StatusNotModified {
33461		if res.Body != nil {
33462			res.Body.Close()
33463		}
33464		return nil, &googleapi.Error{
33465			Code:   res.StatusCode,
33466			Header: res.Header,
33467		}
33468	}
33469	if err != nil {
33470		return nil, err
33471	}
33472	defer googleapi.CloseBody(res)
33473	if err := googleapi.CheckResponse(res); err != nil {
33474		return nil, err
33475	}
33476	ret := &GoogleCloudApigeeV1ResourceFile{
33477		ServerResponse: googleapi.ServerResponse{
33478			Header:         res.Header,
33479			HTTPStatusCode: res.StatusCode,
33480		},
33481	}
33482	target := &ret
33483	if err := gensupport.DecodeResponse(target, res); err != nil {
33484		return nil, err
33485	}
33486	return ret, nil
33487	// {
33488	//   "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).",
33489	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/resourcefiles/{type}/{name}",
33490	//   "httpMethod": "PUT",
33491	//   "id": "apigee.organizations.environments.resourcefiles.update",
33492	//   "parameterOrder": [
33493	//     "parent",
33494	//     "type",
33495	//     "name"
33496	//   ],
33497	//   "parameters": {
33498	//     "name": {
33499	//       "description": "Required. ID of the resource file to update. Must match the regular expression: [a-zA-Z0-9:/\\\\!@#$%^\u0026{}\\[\\]()+\\-=,.~'` ]{1,255}",
33500	//       "location": "path",
33501	//       "required": true,
33502	//       "type": "string"
33503	//     },
33504	//     "parent": {
33505	//       "description": "Required. Name of the environment in the following format: `organizations/{org}/environments/{env}`.",
33506	//       "location": "path",
33507	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
33508	//       "required": true,
33509	//       "type": "string"
33510	//     },
33511	//     "type": {
33512	//       "description": "Required. Resource file type. {{ resource_file_type }}",
33513	//       "location": "path",
33514	//       "required": true,
33515	//       "type": "string"
33516	//     }
33517	//   },
33518	//   "path": "v1/{+parent}/resourcefiles/{type}/{name}",
33519	//   "request": {
33520	//     "$ref": "GoogleApiHttpBody"
33521	//   },
33522	//   "response": {
33523	//     "$ref": "GoogleCloudApigeeV1ResourceFile"
33524	//   },
33525	//   "scopes": [
33526	//     "https://www.googleapis.com/auth/cloud-platform"
33527	//   ]
33528	// }
33529
33530}
33531
33532// method id "apigee.organizations.environments.sharedflows.deployments.list":
33533
33534type OrganizationsEnvironmentsSharedflowsDeploymentsListCall struct {
33535	s            *Service
33536	parent       string
33537	urlParams_   gensupport.URLParams
33538	ifNoneMatch_ string
33539	ctx_         context.Context
33540	header_      http.Header
33541}
33542
33543// List: Lists all deployments of a shared flow in an environment.
33544//
33545// - parent: Name representing a shared flow in an environment in the
33546//   following format:
33547//   `organizations/{org}/environments/{env}/sharedflows/{sharedflow}`.
33548func (r *OrganizationsEnvironmentsSharedflowsDeploymentsService) List(parent string) *OrganizationsEnvironmentsSharedflowsDeploymentsListCall {
33549	c := &OrganizationsEnvironmentsSharedflowsDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33550	c.parent = parent
33551	return c
33552}
33553
33554// Fields allows partial responses to be retrieved. See
33555// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
33556// for more information.
33557func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSharedflowsDeploymentsListCall {
33558	c.urlParams_.Set("fields", googleapi.CombineFields(s))
33559	return c
33560}
33561
33562// IfNoneMatch sets the optional parameter which makes the operation
33563// fail if the object's ETag matches the given value. This is useful for
33564// getting updates only after the object has changed since the last
33565// request. Use googleapi.IsNotModified to check whether the response
33566// error from Do is the result of In-None-Match.
33567func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsSharedflowsDeploymentsListCall {
33568	c.ifNoneMatch_ = entityTag
33569	return c
33570}
33571
33572// Context sets the context to be used in this call's Do method. Any
33573// pending HTTP request will be aborted if the provided context is
33574// canceled.
33575func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsSharedflowsDeploymentsListCall {
33576	c.ctx_ = ctx
33577	return c
33578}
33579
33580// Header returns an http.Header that can be modified by the caller to
33581// add HTTP headers to the request.
33582func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) Header() http.Header {
33583	if c.header_ == nil {
33584		c.header_ = make(http.Header)
33585	}
33586	return c.header_
33587}
33588
33589func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
33590	reqHeaders := make(http.Header)
33591	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
33592	for k, v := range c.header_ {
33593		reqHeaders[k] = v
33594	}
33595	reqHeaders.Set("User-Agent", c.s.userAgent())
33596	if c.ifNoneMatch_ != "" {
33597		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
33598	}
33599	var body io.Reader = nil
33600	c.urlParams_.Set("alt", alt)
33601	c.urlParams_.Set("prettyPrint", "false")
33602	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
33603	urls += "?" + c.urlParams_.Encode()
33604	req, err := http.NewRequest("GET", urls, body)
33605	if err != nil {
33606		return nil, err
33607	}
33608	req.Header = reqHeaders
33609	googleapi.Expand(req.URL, map[string]string{
33610		"parent": c.parent,
33611	})
33612	return gensupport.SendRequest(c.ctx_, c.s.client, req)
33613}
33614
33615// Do executes the "apigee.organizations.environments.sharedflows.deployments.list" call.
33616// Exactly one of *GoogleCloudApigeeV1ListDeploymentsResponse or error
33617// will be non-nil. Any non-2xx status code is an error. Response
33618// headers are in either
33619// *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or
33620// (if a response was returned at all) in
33621// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
33622// whether the returned error was because http.StatusNotModified was
33623// returned.
33624func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
33625	gensupport.SetOptions(c.urlParams_, opts...)
33626	res, err := c.doRequest("json")
33627	if res != nil && res.StatusCode == http.StatusNotModified {
33628		if res.Body != nil {
33629			res.Body.Close()
33630		}
33631		return nil, &googleapi.Error{
33632			Code:   res.StatusCode,
33633			Header: res.Header,
33634		}
33635	}
33636	if err != nil {
33637		return nil, err
33638	}
33639	defer googleapi.CloseBody(res)
33640	if err := googleapi.CheckResponse(res); err != nil {
33641		return nil, err
33642	}
33643	ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
33644		ServerResponse: googleapi.ServerResponse{
33645			Header:         res.Header,
33646			HTTPStatusCode: res.StatusCode,
33647		},
33648	}
33649	target := &ret
33650	if err := gensupport.DecodeResponse(target, res); err != nil {
33651		return nil, err
33652	}
33653	return ret, nil
33654	// {
33655	//   "description": "Lists all deployments of a shared flow in an environment.",
33656	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/sharedflows/{sharedflowsId}/deployments",
33657	//   "httpMethod": "GET",
33658	//   "id": "apigee.organizations.environments.sharedflows.deployments.list",
33659	//   "parameterOrder": [
33660	//     "parent"
33661	//   ],
33662	//   "parameters": {
33663	//     "parent": {
33664	//       "description": "Required. Name representing a shared flow in an environment in the following format: `organizations/{org}/environments/{env}/sharedflows/{sharedflow}`",
33665	//       "location": "path",
33666	//       "pattern": "^organizations/[^/]+/environments/[^/]+/sharedflows/[^/]+$",
33667	//       "required": true,
33668	//       "type": "string"
33669	//     }
33670	//   },
33671	//   "path": "v1/{+parent}/deployments",
33672	//   "response": {
33673	//     "$ref": "GoogleCloudApigeeV1ListDeploymentsResponse"
33674	//   },
33675	//   "scopes": [
33676	//     "https://www.googleapis.com/auth/cloud-platform"
33677	//   ]
33678	// }
33679
33680}
33681
33682// method id "apigee.organizations.environments.sharedflows.revisions.deploy":
33683
33684type OrganizationsEnvironmentsSharedflowsRevisionsDeployCall struct {
33685	s          *Service
33686	name       string
33687	urlParams_ gensupport.URLParams
33688	ctx_       context.Context
33689	header_    http.Header
33690}
33691
33692// Deploy: Deploys a revision of a shared flow. If another revision of
33693// the same shared flow is currently deployed, set the `override`
33694// parameter to `true` to have this revision replace the currently
33695// deployed revision. You cannot use a shared flow until it has been
33696// deployed to an environment. For a request path
33697// `organizations/{org}/environments/{env}/sharedflows/{sf}/revisions/{re
33698// v}/deployments`, two permissions are required: *
33699// `apigee.deployments.create` on the resource
33700// `organizations/{org}/environments/{env}` *
33701// `apigee.sharedflowrevisions.deploy` on the resource
33702// `organizations/{org}/sharedflows/{sf}/revisions/{rev}`
33703//
33704// - name: Name of the shared flow revision to deploy in the following
33705//   format:
33706//   `organizations/{org}/environments/{env}/sharedflows/{sharedflow}/rev
33707//   isions/{rev}`.
33708func (r *OrganizationsEnvironmentsSharedflowsRevisionsService) Deploy(name string) *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall {
33709	c := &OrganizationsEnvironmentsSharedflowsRevisionsDeployCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33710	c.name = name
33711	return c
33712}
33713
33714// Override sets the optional parameter "override": Flag that specifies
33715// whether the new deployment replaces other deployed revisions of the
33716// shared flow in the environment. Set `override` to `true` to replace
33717// other deployed revisions. By default, `override` is `false` and the
33718// deployment is rejected if other revisions of the shared flow are
33719// deployed in the environment.
33720func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) Override(override bool) *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall {
33721	c.urlParams_.Set("override", fmt.Sprint(override))
33722	return c
33723}
33724
33725// Fields allows partial responses to be retrieved. See
33726// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
33727// for more information.
33728func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall {
33729	c.urlParams_.Set("fields", googleapi.CombineFields(s))
33730	return c
33731}
33732
33733// Context sets the context to be used in this call's Do method. Any
33734// pending HTTP request will be aborted if the provided context is
33735// canceled.
33736func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) Context(ctx context.Context) *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall {
33737	c.ctx_ = ctx
33738	return c
33739}
33740
33741// Header returns an http.Header that can be modified by the caller to
33742// add HTTP headers to the request.
33743func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) Header() http.Header {
33744	if c.header_ == nil {
33745		c.header_ = make(http.Header)
33746	}
33747	return c.header_
33748}
33749
33750func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) doRequest(alt string) (*http.Response, error) {
33751	reqHeaders := make(http.Header)
33752	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
33753	for k, v := range c.header_ {
33754		reqHeaders[k] = v
33755	}
33756	reqHeaders.Set("User-Agent", c.s.userAgent())
33757	var body io.Reader = nil
33758	c.urlParams_.Set("alt", alt)
33759	c.urlParams_.Set("prettyPrint", "false")
33760	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments")
33761	urls += "?" + c.urlParams_.Encode()
33762	req, err := http.NewRequest("POST", urls, body)
33763	if err != nil {
33764		return nil, err
33765	}
33766	req.Header = reqHeaders
33767	googleapi.Expand(req.URL, map[string]string{
33768		"name": c.name,
33769	})
33770	return gensupport.SendRequest(c.ctx_, c.s.client, req)
33771}
33772
33773// Do executes the "apigee.organizations.environments.sharedflows.revisions.deploy" call.
33774// Exactly one of *GoogleCloudApigeeV1Deployment or error will be
33775// non-nil. Any non-2xx status code is an error. Response headers are in
33776// either *GoogleCloudApigeeV1Deployment.ServerResponse.Header or (if a
33777// response was returned at all) in error.(*googleapi.Error).Header. Use
33778// googleapi.IsNotModified to check whether the returned error was
33779// because http.StatusNotModified was returned.
33780func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Deployment, error) {
33781	gensupport.SetOptions(c.urlParams_, opts...)
33782	res, err := c.doRequest("json")
33783	if res != nil && res.StatusCode == http.StatusNotModified {
33784		if res.Body != nil {
33785			res.Body.Close()
33786		}
33787		return nil, &googleapi.Error{
33788			Code:   res.StatusCode,
33789			Header: res.Header,
33790		}
33791	}
33792	if err != nil {
33793		return nil, err
33794	}
33795	defer googleapi.CloseBody(res)
33796	if err := googleapi.CheckResponse(res); err != nil {
33797		return nil, err
33798	}
33799	ret := &GoogleCloudApigeeV1Deployment{
33800		ServerResponse: googleapi.ServerResponse{
33801			Header:         res.Header,
33802			HTTPStatusCode: res.StatusCode,
33803		},
33804	}
33805	target := &ret
33806	if err := gensupport.DecodeResponse(target, res); err != nil {
33807		return nil, err
33808	}
33809	return ret, nil
33810	// {
33811	//   "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}`",
33812	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/sharedflows/{sharedflowsId}/revisions/{revisionsId}/deployments",
33813	//   "httpMethod": "POST",
33814	//   "id": "apigee.organizations.environments.sharedflows.revisions.deploy",
33815	//   "parameterOrder": [
33816	//     "name"
33817	//   ],
33818	//   "parameters": {
33819	//     "name": {
33820	//       "description": "Required. Name of the shared flow revision to deploy in the following format: `organizations/{org}/environments/{env}/sharedflows/{sharedflow}/revisions/{rev}`",
33821	//       "location": "path",
33822	//       "pattern": "^organizations/[^/]+/environments/[^/]+/sharedflows/[^/]+/revisions/[^/]+$",
33823	//       "required": true,
33824	//       "type": "string"
33825	//     },
33826	//     "override": {
33827	//       "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.",
33828	//       "location": "query",
33829	//       "type": "boolean"
33830	//     }
33831	//   },
33832	//   "path": "v1/{+name}/deployments",
33833	//   "response": {
33834	//     "$ref": "GoogleCloudApigeeV1Deployment"
33835	//   },
33836	//   "scopes": [
33837	//     "https://www.googleapis.com/auth/cloud-platform"
33838	//   ]
33839	// }
33840
33841}
33842
33843// method id "apigee.organizations.environments.sharedflows.revisions.getDeployments":
33844
33845type OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall struct {
33846	s            *Service
33847	name         string
33848	urlParams_   gensupport.URLParams
33849	ifNoneMatch_ string
33850	ctx_         context.Context
33851	header_      http.Header
33852}
33853
33854// GetDeployments: Gets the deployment of a shared flow revision and
33855// actual state reported by runtime pods.
33856//
33857// - name: Name representing a shared flow in an environment in the
33858//   following format:
33859//   `organizations/{org}/environments/{env}/sharedflows/{sharedflow}/rev
33860//   isions/{rev}`.
33861func (r *OrganizationsEnvironmentsSharedflowsRevisionsService) GetDeployments(name string) *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall {
33862	c := &OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33863	c.name = name
33864	return c
33865}
33866
33867// Fields allows partial responses to be retrieved. See
33868// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
33869// for more information.
33870func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall {
33871	c.urlParams_.Set("fields", googleapi.CombineFields(s))
33872	return c
33873}
33874
33875// IfNoneMatch sets the optional parameter which makes the operation
33876// fail if the object's ETag matches the given value. This is useful for
33877// getting updates only after the object has changed since the last
33878// request. Use googleapi.IsNotModified to check whether the response
33879// error from Do is the result of In-None-Match.
33880func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall {
33881	c.ifNoneMatch_ = entityTag
33882	return c
33883}
33884
33885// Context sets the context to be used in this call's Do method. Any
33886// pending HTTP request will be aborted if the provided context is
33887// canceled.
33888func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) Context(ctx context.Context) *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall {
33889	c.ctx_ = ctx
33890	return c
33891}
33892
33893// Header returns an http.Header that can be modified by the caller to
33894// add HTTP headers to the request.
33895func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) Header() http.Header {
33896	if c.header_ == nil {
33897		c.header_ = make(http.Header)
33898	}
33899	return c.header_
33900}
33901
33902func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) doRequest(alt string) (*http.Response, error) {
33903	reqHeaders := make(http.Header)
33904	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
33905	for k, v := range c.header_ {
33906		reqHeaders[k] = v
33907	}
33908	reqHeaders.Set("User-Agent", c.s.userAgent())
33909	if c.ifNoneMatch_ != "" {
33910		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
33911	}
33912	var body io.Reader = nil
33913	c.urlParams_.Set("alt", alt)
33914	c.urlParams_.Set("prettyPrint", "false")
33915	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments")
33916	urls += "?" + c.urlParams_.Encode()
33917	req, err := http.NewRequest("GET", urls, body)
33918	if err != nil {
33919		return nil, err
33920	}
33921	req.Header = reqHeaders
33922	googleapi.Expand(req.URL, map[string]string{
33923		"name": c.name,
33924	})
33925	return gensupport.SendRequest(c.ctx_, c.s.client, req)
33926}
33927
33928// Do executes the "apigee.organizations.environments.sharedflows.revisions.getDeployments" call.
33929// Exactly one of *GoogleCloudApigeeV1Deployment or error will be
33930// non-nil. Any non-2xx status code is an error. Response headers are in
33931// either *GoogleCloudApigeeV1Deployment.ServerResponse.Header or (if a
33932// response was returned at all) in error.(*googleapi.Error).Header. Use
33933// googleapi.IsNotModified to check whether the returned error was
33934// because http.StatusNotModified was returned.
33935func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Deployment, error) {
33936	gensupport.SetOptions(c.urlParams_, opts...)
33937	res, err := c.doRequest("json")
33938	if res != nil && res.StatusCode == http.StatusNotModified {
33939		if res.Body != nil {
33940			res.Body.Close()
33941		}
33942		return nil, &googleapi.Error{
33943			Code:   res.StatusCode,
33944			Header: res.Header,
33945		}
33946	}
33947	if err != nil {
33948		return nil, err
33949	}
33950	defer googleapi.CloseBody(res)
33951	if err := googleapi.CheckResponse(res); err != nil {
33952		return nil, err
33953	}
33954	ret := &GoogleCloudApigeeV1Deployment{
33955		ServerResponse: googleapi.ServerResponse{
33956			Header:         res.Header,
33957			HTTPStatusCode: res.StatusCode,
33958		},
33959	}
33960	target := &ret
33961	if err := gensupport.DecodeResponse(target, res); err != nil {
33962		return nil, err
33963	}
33964	return ret, nil
33965	// {
33966	//   "description": "Gets the deployment of a shared flow revision and actual state reported by runtime pods.",
33967	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/sharedflows/{sharedflowsId}/revisions/{revisionsId}/deployments",
33968	//   "httpMethod": "GET",
33969	//   "id": "apigee.organizations.environments.sharedflows.revisions.getDeployments",
33970	//   "parameterOrder": [
33971	//     "name"
33972	//   ],
33973	//   "parameters": {
33974	//     "name": {
33975	//       "description": "Required. Name representing a shared flow in an environment in the following format: `organizations/{org}/environments/{env}/sharedflows/{sharedflow}/revisions/{rev}`",
33976	//       "location": "path",
33977	//       "pattern": "^organizations/[^/]+/environments/[^/]+/sharedflows/[^/]+/revisions/[^/]+$",
33978	//       "required": true,
33979	//       "type": "string"
33980	//     }
33981	//   },
33982	//   "path": "v1/{+name}/deployments",
33983	//   "response": {
33984	//     "$ref": "GoogleCloudApigeeV1Deployment"
33985	//   },
33986	//   "scopes": [
33987	//     "https://www.googleapis.com/auth/cloud-platform"
33988	//   ]
33989	// }
33990
33991}
33992
33993// method id "apigee.organizations.environments.sharedflows.revisions.undeploy":
33994
33995type OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall struct {
33996	s          *Service
33997	name       string
33998	urlParams_ gensupport.URLParams
33999	ctx_       context.Context
34000	header_    http.Header
34001}
34002
34003// Undeploy: Undeploys a shared flow revision from an environment. For a
34004// request path
34005// `organizations/{org}/environments/{env}/sharedflows/{sf}/revisions/{re
34006// v}/deployments`, two permissions are required: *
34007// `apigee.deployments.delete` on the resource
34008// `organizations/{org}/environments/{env}` *
34009// `apigee.sharedflowrevisions.undeploy` on the resource
34010// `organizations/{org}/sharedflows/{sf}/revisions/{rev}`
34011//
34012// - name: Name of the shared flow revision to undeploy in the following
34013//   format:
34014//   `organizations/{org}/environments/{env}/sharedflows/{sharedflow}/rev
34015//   isions/{rev}`.
34016func (r *OrganizationsEnvironmentsSharedflowsRevisionsService) Undeploy(name string) *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall {
34017	c := &OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34018	c.name = name
34019	return c
34020}
34021
34022// Fields allows partial responses to be retrieved. See
34023// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
34024// for more information.
34025func (c *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall {
34026	c.urlParams_.Set("fields", googleapi.CombineFields(s))
34027	return c
34028}
34029
34030// Context sets the context to be used in this call's Do method. Any
34031// pending HTTP request will be aborted if the provided context is
34032// canceled.
34033func (c *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall) Context(ctx context.Context) *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall {
34034	c.ctx_ = ctx
34035	return c
34036}
34037
34038// Header returns an http.Header that can be modified by the caller to
34039// add HTTP headers to the request.
34040func (c *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall) Header() http.Header {
34041	if c.header_ == nil {
34042		c.header_ = make(http.Header)
34043	}
34044	return c.header_
34045}
34046
34047func (c *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall) doRequest(alt string) (*http.Response, error) {
34048	reqHeaders := make(http.Header)
34049	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
34050	for k, v := range c.header_ {
34051		reqHeaders[k] = v
34052	}
34053	reqHeaders.Set("User-Agent", c.s.userAgent())
34054	var body io.Reader = nil
34055	c.urlParams_.Set("alt", alt)
34056	c.urlParams_.Set("prettyPrint", "false")
34057	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments")
34058	urls += "?" + c.urlParams_.Encode()
34059	req, err := http.NewRequest("DELETE", urls, body)
34060	if err != nil {
34061		return nil, err
34062	}
34063	req.Header = reqHeaders
34064	googleapi.Expand(req.URL, map[string]string{
34065		"name": c.name,
34066	})
34067	return gensupport.SendRequest(c.ctx_, c.s.client, req)
34068}
34069
34070// Do executes the "apigee.organizations.environments.sharedflows.revisions.undeploy" call.
34071// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
34072// non-2xx status code is an error. Response headers are in either
34073// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
34074// returned at all) in error.(*googleapi.Error).Header. Use
34075// googleapi.IsNotModified to check whether the returned error was
34076// because http.StatusNotModified was returned.
34077func (c *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
34078	gensupport.SetOptions(c.urlParams_, opts...)
34079	res, err := c.doRequest("json")
34080	if res != nil && res.StatusCode == http.StatusNotModified {
34081		if res.Body != nil {
34082			res.Body.Close()
34083		}
34084		return nil, &googleapi.Error{
34085			Code:   res.StatusCode,
34086			Header: res.Header,
34087		}
34088	}
34089	if err != nil {
34090		return nil, err
34091	}
34092	defer googleapi.CloseBody(res)
34093	if err := googleapi.CheckResponse(res); err != nil {
34094		return nil, err
34095	}
34096	ret := &GoogleProtobufEmpty{
34097		ServerResponse: googleapi.ServerResponse{
34098			Header:         res.Header,
34099			HTTPStatusCode: res.StatusCode,
34100		},
34101	}
34102	target := &ret
34103	if err := gensupport.DecodeResponse(target, res); err != nil {
34104		return nil, err
34105	}
34106	return ret, nil
34107	// {
34108	//   "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}`",
34109	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/sharedflows/{sharedflowsId}/revisions/{revisionsId}/deployments",
34110	//   "httpMethod": "DELETE",
34111	//   "id": "apigee.organizations.environments.sharedflows.revisions.undeploy",
34112	//   "parameterOrder": [
34113	//     "name"
34114	//   ],
34115	//   "parameters": {
34116	//     "name": {
34117	//       "description": "Required. Name of the shared flow revision to undeploy in the following format: `organizations/{org}/environments/{env}/sharedflows/{sharedflow}/revisions/{rev}`",
34118	//       "location": "path",
34119	//       "pattern": "^organizations/[^/]+/environments/[^/]+/sharedflows/[^/]+/revisions/[^/]+$",
34120	//       "required": true,
34121	//       "type": "string"
34122	//     }
34123	//   },
34124	//   "path": "v1/{+name}/deployments",
34125	//   "response": {
34126	//     "$ref": "GoogleProtobufEmpty"
34127	//   },
34128	//   "scopes": [
34129	//     "https://www.googleapis.com/auth/cloud-platform"
34130	//   ]
34131	// }
34132
34133}
34134
34135// method id "apigee.organizations.environments.stats.get":
34136
34137type OrganizationsEnvironmentsStatsGetCall struct {
34138	s            *Service
34139	name         string
34140	urlParams_   gensupport.URLParams
34141	ifNoneMatch_ string
34142	ctx_         context.Context
34143	header_      http.Header
34144}
34145
34146// Get: Retrieve metrics grouped by dimensions. The types of metrics you
34147// can retrieve include traffic, message counts, API call latency,
34148// response size, and cache hits and counts. Dimensions let you view
34149// metrics in meaningful groups. The stats api does accept dimensions as
34150// path params. The dimensions are optional in which case the metrics
34151// are computed on the entire data for the given timerange.
34152//
34153// - name: The resource name for which the interactive query will be
34154//   executed. Must be of the form
34155//   `organizations/{organization_id}/environments/{environment_id/stats/
34156//   {dimensions}` Dimensions let you view metrics in meaningful
34157//   groupings. E.g. apiproxy, target_host. The value of dimensions
34158//   should be comma separated list as shown below
34159//   `organizations/{org}/environments/{env}/stats/apiproxy,request_verb`.
34160func (r *OrganizationsEnvironmentsStatsService) Get(name string) *OrganizationsEnvironmentsStatsGetCall {
34161	c := &OrganizationsEnvironmentsStatsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34162	c.name = name
34163	return c
34164}
34165
34166// Accuracy sets the optional parameter "accuracy": Legacy field: not
34167// used anymore. This field is present to support UI calls which still
34168// use this parameter.
34169func (c *OrganizationsEnvironmentsStatsGetCall) Accuracy(accuracy string) *OrganizationsEnvironmentsStatsGetCall {
34170	c.urlParams_.Set("accuracy", accuracy)
34171	return c
34172}
34173
34174// AggTable sets the optional parameter "aggTable": If customers want to
34175// query custom aggregate tables, then this parameter can be used to
34176// specify the table name. If this parameter is skipped, then Edge Query
34177// will try to retrieve the data from fact tables which will be
34178// expensive.
34179func (c *OrganizationsEnvironmentsStatsGetCall) AggTable(aggTable string) *OrganizationsEnvironmentsStatsGetCall {
34180	c.urlParams_.Set("aggTable", aggTable)
34181	return c
34182}
34183
34184// Filter sets the optional parameter "filter": Enables drill-down on
34185// specific dimension values
34186func (c *OrganizationsEnvironmentsStatsGetCall) Filter(filter string) *OrganizationsEnvironmentsStatsGetCall {
34187	c.urlParams_.Set("filter", filter)
34188	return c
34189}
34190
34191// Limit sets the optional parameter "limit": This parameter is used to
34192// limit the number of result items. Default and the max value is 14400.
34193func (c *OrganizationsEnvironmentsStatsGetCall) Limit(limit string) *OrganizationsEnvironmentsStatsGetCall {
34194	c.urlParams_.Set("limit", limit)
34195	return c
34196}
34197
34198// Offset sets the optional parameter "offset": Use offset with limit to
34199// enable pagination of results. For example, to display results 11-20,
34200// set limit to '10' and offset to '10'.
34201func (c *OrganizationsEnvironmentsStatsGetCall) Offset(offset string) *OrganizationsEnvironmentsStatsGetCall {
34202	c.urlParams_.Set("offset", offset)
34203	return c
34204}
34205
34206// Realtime sets the optional parameter "realtime": Legacy field: not
34207// used anymore.
34208func (c *OrganizationsEnvironmentsStatsGetCall) Realtime(realtime bool) *OrganizationsEnvironmentsStatsGetCall {
34209	c.urlParams_.Set("realtime", fmt.Sprint(realtime))
34210	return c
34211}
34212
34213// Select sets the optional parameter "select": The select parameter
34214// contains a comma separated list of metrics. E.g.
34215// sum(message_count),sum(error_count)
34216func (c *OrganizationsEnvironmentsStatsGetCall) Select(select_ string) *OrganizationsEnvironmentsStatsGetCall {
34217	c.urlParams_.Set("select", select_)
34218	return c
34219}
34220
34221// Sonar sets the optional parameter "sonar": This parameter routes the
34222// query to api monitoring service for last hour.
34223func (c *OrganizationsEnvironmentsStatsGetCall) Sonar(sonar bool) *OrganizationsEnvironmentsStatsGetCall {
34224	c.urlParams_.Set("sonar", fmt.Sprint(sonar))
34225	return c
34226}
34227
34228// Sort sets the optional parameter "sort": This parameter specifies if
34229// the sort order should be ascending or descending Supported values are
34230// DESC and ASC.
34231func (c *OrganizationsEnvironmentsStatsGetCall) Sort(sort string) *OrganizationsEnvironmentsStatsGetCall {
34232	c.urlParams_.Set("sort", sort)
34233	return c
34234}
34235
34236// Sortby sets the optional parameter "sortby": Comma separated list of
34237// columns to sort the final result.
34238func (c *OrganizationsEnvironmentsStatsGetCall) Sortby(sortby string) *OrganizationsEnvironmentsStatsGetCall {
34239	c.urlParams_.Set("sortby", sortby)
34240	return c
34241}
34242
34243// TimeRange sets the optional parameter "timeRange": Time interval for
34244// the interactive query. Time range is specified as start~end E.g.
34245// 04/15/2017 00:00~05/15/2017 23:59
34246func (c *OrganizationsEnvironmentsStatsGetCall) TimeRange(timeRange string) *OrganizationsEnvironmentsStatsGetCall {
34247	c.urlParams_.Set("timeRange", timeRange)
34248	return c
34249}
34250
34251// TimeUnit sets the optional parameter "timeUnit": A value of second,
34252// minute, hour, day, week, month. Time Unit specifies the granularity
34253// of metrics returned.
34254func (c *OrganizationsEnvironmentsStatsGetCall) TimeUnit(timeUnit string) *OrganizationsEnvironmentsStatsGetCall {
34255	c.urlParams_.Set("timeUnit", timeUnit)
34256	return c
34257}
34258
34259// Topk sets the optional parameter "topk": Take 'top k' results from
34260// results, for example, to return the top 5 results 'topk=5'.
34261func (c *OrganizationsEnvironmentsStatsGetCall) Topk(topk string) *OrganizationsEnvironmentsStatsGetCall {
34262	c.urlParams_.Set("topk", topk)
34263	return c
34264}
34265
34266// TsAscending sets the optional parameter "tsAscending": Lists
34267// timestamps in ascending order if set to true. Recommend setting this
34268// value to true if you are using sortby with sort=DESC.
34269func (c *OrganizationsEnvironmentsStatsGetCall) TsAscending(tsAscending bool) *OrganizationsEnvironmentsStatsGetCall {
34270	c.urlParams_.Set("tsAscending", fmt.Sprint(tsAscending))
34271	return c
34272}
34273
34274// Tzo sets the optional parameter "tzo": This parameters contains the
34275// timezone offset value.
34276func (c *OrganizationsEnvironmentsStatsGetCall) Tzo(tzo string) *OrganizationsEnvironmentsStatsGetCall {
34277	c.urlParams_.Set("tzo", tzo)
34278	return c
34279}
34280
34281// Fields allows partial responses to be retrieved. See
34282// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
34283// for more information.
34284func (c *OrganizationsEnvironmentsStatsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsStatsGetCall {
34285	c.urlParams_.Set("fields", googleapi.CombineFields(s))
34286	return c
34287}
34288
34289// IfNoneMatch sets the optional parameter which makes the operation
34290// fail if the object's ETag matches the given value. This is useful for
34291// getting updates only after the object has changed since the last
34292// request. Use googleapi.IsNotModified to check whether the response
34293// error from Do is the result of In-None-Match.
34294func (c *OrganizationsEnvironmentsStatsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsStatsGetCall {
34295	c.ifNoneMatch_ = entityTag
34296	return c
34297}
34298
34299// Context sets the context to be used in this call's Do method. Any
34300// pending HTTP request will be aborted if the provided context is
34301// canceled.
34302func (c *OrganizationsEnvironmentsStatsGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsStatsGetCall {
34303	c.ctx_ = ctx
34304	return c
34305}
34306
34307// Header returns an http.Header that can be modified by the caller to
34308// add HTTP headers to the request.
34309func (c *OrganizationsEnvironmentsStatsGetCall) Header() http.Header {
34310	if c.header_ == nil {
34311		c.header_ = make(http.Header)
34312	}
34313	return c.header_
34314}
34315
34316func (c *OrganizationsEnvironmentsStatsGetCall) doRequest(alt string) (*http.Response, error) {
34317	reqHeaders := make(http.Header)
34318	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
34319	for k, v := range c.header_ {
34320		reqHeaders[k] = v
34321	}
34322	reqHeaders.Set("User-Agent", c.s.userAgent())
34323	if c.ifNoneMatch_ != "" {
34324		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
34325	}
34326	var body io.Reader = nil
34327	c.urlParams_.Set("alt", alt)
34328	c.urlParams_.Set("prettyPrint", "false")
34329	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
34330	urls += "?" + c.urlParams_.Encode()
34331	req, err := http.NewRequest("GET", urls, body)
34332	if err != nil {
34333		return nil, err
34334	}
34335	req.Header = reqHeaders
34336	googleapi.Expand(req.URL, map[string]string{
34337		"name": c.name,
34338	})
34339	return gensupport.SendRequest(c.ctx_, c.s.client, req)
34340}
34341
34342// Do executes the "apigee.organizations.environments.stats.get" call.
34343// Exactly one of *GoogleCloudApigeeV1Stats or error will be non-nil.
34344// Any non-2xx status code is an error. Response headers are in either
34345// *GoogleCloudApigeeV1Stats.ServerResponse.Header or (if a response was
34346// returned at all) in error.(*googleapi.Error).Header. Use
34347// googleapi.IsNotModified to check whether the returned error was
34348// because http.StatusNotModified was returned.
34349func (c *OrganizationsEnvironmentsStatsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Stats, error) {
34350	gensupport.SetOptions(c.urlParams_, opts...)
34351	res, err := c.doRequest("json")
34352	if res != nil && res.StatusCode == http.StatusNotModified {
34353		if res.Body != nil {
34354			res.Body.Close()
34355		}
34356		return nil, &googleapi.Error{
34357			Code:   res.StatusCode,
34358			Header: res.Header,
34359		}
34360	}
34361	if err != nil {
34362		return nil, err
34363	}
34364	defer googleapi.CloseBody(res)
34365	if err := googleapi.CheckResponse(res); err != nil {
34366		return nil, err
34367	}
34368	ret := &GoogleCloudApigeeV1Stats{
34369		ServerResponse: googleapi.ServerResponse{
34370			Header:         res.Header,
34371			HTTPStatusCode: res.StatusCode,
34372		},
34373	}
34374	target := &ret
34375	if err := gensupport.DecodeResponse(target, res); err != nil {
34376		return nil, err
34377	}
34378	return ret, nil
34379	// {
34380	//   "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.",
34381	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/stats/{statsId}",
34382	//   "httpMethod": "GET",
34383	//   "id": "apigee.organizations.environments.stats.get",
34384	//   "parameterOrder": [
34385	//     "name"
34386	//   ],
34387	//   "parameters": {
34388	//     "accuracy": {
34389	//       "description": "Legacy field: not used anymore. This field is present to support UI calls which still use this parameter.",
34390	//       "location": "query",
34391	//       "type": "string"
34392	//     },
34393	//     "aggTable": {
34394	//       "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.",
34395	//       "location": "query",
34396	//       "type": "string"
34397	//     },
34398	//     "filter": {
34399	//       "description": "Enables drill-down on specific dimension values",
34400	//       "location": "query",
34401	//       "type": "string"
34402	//     },
34403	//     "limit": {
34404	//       "description": "This parameter is used to limit the number of result items. Default and the max value is 14400.",
34405	//       "location": "query",
34406	//       "type": "string"
34407	//     },
34408	//     "name": {
34409	//       "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`",
34410	//       "location": "path",
34411	//       "pattern": "^organizations/[^/]+/environments/[^/]+/stats/.*$",
34412	//       "required": true,
34413	//       "type": "string"
34414	//     },
34415	//     "offset": {
34416	//       "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'.",
34417	//       "location": "query",
34418	//       "type": "string"
34419	//     },
34420	//     "realtime": {
34421	//       "description": "Legacy field: not used anymore.",
34422	//       "location": "query",
34423	//       "type": "boolean"
34424	//     },
34425	//     "select": {
34426	//       "description": "The select parameter contains a comma separated list of metrics. E.g. sum(message_count),sum(error_count)",
34427	//       "location": "query",
34428	//       "type": "string"
34429	//     },
34430	//     "sonar": {
34431	//       "description": "This parameter routes the query to api monitoring service for last hour.",
34432	//       "location": "query",
34433	//       "type": "boolean"
34434	//     },
34435	//     "sort": {
34436	//       "description": "This parameter specifies if the sort order should be ascending or descending Supported values are DESC and ASC.",
34437	//       "location": "query",
34438	//       "type": "string"
34439	//     },
34440	//     "sortby": {
34441	//       "description": "Comma separated list of columns to sort the final result.",
34442	//       "location": "query",
34443	//       "type": "string"
34444	//     },
34445	//     "timeRange": {
34446	//       "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",
34447	//       "location": "query",
34448	//       "type": "string"
34449	//     },
34450	//     "timeUnit": {
34451	//       "description": "A value of second, minute, hour, day, week, month. Time Unit specifies the granularity of metrics returned.",
34452	//       "location": "query",
34453	//       "type": "string"
34454	//     },
34455	//     "topk": {
34456	//       "description": "Take 'top k' results from results, for example, to return the top 5 results 'topk=5'.",
34457	//       "location": "query",
34458	//       "type": "string"
34459	//     },
34460	//     "tsAscending": {
34461	//       "description": "Lists timestamps in ascending order if set to true. Recommend setting this value to true if you are using sortby with sort=DESC.",
34462	//       "location": "query",
34463	//       "type": "boolean"
34464	//     },
34465	//     "tzo": {
34466	//       "description": "This parameters contains the timezone offset value.",
34467	//       "location": "query",
34468	//       "type": "string"
34469	//     }
34470	//   },
34471	//   "path": "v1/{+name}",
34472	//   "response": {
34473	//     "$ref": "GoogleCloudApigeeV1Stats"
34474	//   },
34475	//   "scopes": [
34476	//     "https://www.googleapis.com/auth/cloud-platform"
34477	//   ]
34478	// }
34479
34480}
34481
34482// method id "apigee.organizations.environments.targetservers.create":
34483
34484type OrganizationsEnvironmentsTargetserversCreateCall struct {
34485	s                               *Service
34486	parent                          string
34487	googlecloudapigeev1targetserver *GoogleCloudApigeeV1TargetServer
34488	urlParams_                      gensupport.URLParams
34489	ctx_                            context.Context
34490	header_                         http.Header
34491}
34492
34493// Create: Creates a TargetServer in the specified environment.
34494//
34495// - parent: The parent environment name under which the TargetServer
34496//   will be created. Must be of the form
34497//   `organizations/{org}/environments/{env}`.
34498func (r *OrganizationsEnvironmentsTargetserversService) Create(parent string, googlecloudapigeev1targetserver *GoogleCloudApigeeV1TargetServer) *OrganizationsEnvironmentsTargetserversCreateCall {
34499	c := &OrganizationsEnvironmentsTargetserversCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34500	c.parent = parent
34501	c.googlecloudapigeev1targetserver = googlecloudapigeev1targetserver
34502	return c
34503}
34504
34505// Name sets the optional parameter "name": The ID to give the
34506// TargetServer. This will overwrite the value in TargetServer.
34507func (c *OrganizationsEnvironmentsTargetserversCreateCall) Name(name string) *OrganizationsEnvironmentsTargetserversCreateCall {
34508	c.urlParams_.Set("name", name)
34509	return c
34510}
34511
34512// Fields allows partial responses to be retrieved. See
34513// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
34514// for more information.
34515func (c *OrganizationsEnvironmentsTargetserversCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTargetserversCreateCall {
34516	c.urlParams_.Set("fields", googleapi.CombineFields(s))
34517	return c
34518}
34519
34520// Context sets the context to be used in this call's Do method. Any
34521// pending HTTP request will be aborted if the provided context is
34522// canceled.
34523func (c *OrganizationsEnvironmentsTargetserversCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsTargetserversCreateCall {
34524	c.ctx_ = ctx
34525	return c
34526}
34527
34528// Header returns an http.Header that can be modified by the caller to
34529// add HTTP headers to the request.
34530func (c *OrganizationsEnvironmentsTargetserversCreateCall) Header() http.Header {
34531	if c.header_ == nil {
34532		c.header_ = make(http.Header)
34533	}
34534	return c.header_
34535}
34536
34537func (c *OrganizationsEnvironmentsTargetserversCreateCall) doRequest(alt string) (*http.Response, error) {
34538	reqHeaders := make(http.Header)
34539	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
34540	for k, v := range c.header_ {
34541		reqHeaders[k] = v
34542	}
34543	reqHeaders.Set("User-Agent", c.s.userAgent())
34544	var body io.Reader = nil
34545	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1targetserver)
34546	if err != nil {
34547		return nil, err
34548	}
34549	reqHeaders.Set("Content-Type", "application/json")
34550	c.urlParams_.Set("alt", alt)
34551	c.urlParams_.Set("prettyPrint", "false")
34552	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/targetservers")
34553	urls += "?" + c.urlParams_.Encode()
34554	req, err := http.NewRequest("POST", urls, body)
34555	if err != nil {
34556		return nil, err
34557	}
34558	req.Header = reqHeaders
34559	googleapi.Expand(req.URL, map[string]string{
34560		"parent": c.parent,
34561	})
34562	return gensupport.SendRequest(c.ctx_, c.s.client, req)
34563}
34564
34565// Do executes the "apigee.organizations.environments.targetservers.create" call.
34566// Exactly one of *GoogleCloudApigeeV1TargetServer or error will be
34567// non-nil. Any non-2xx status code is an error. Response headers are in
34568// either *GoogleCloudApigeeV1TargetServer.ServerResponse.Header or (if
34569// a response was returned at all) in error.(*googleapi.Error).Header.
34570// Use googleapi.IsNotModified to check whether the returned error was
34571// because http.StatusNotModified was returned.
34572func (c *OrganizationsEnvironmentsTargetserversCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TargetServer, error) {
34573	gensupport.SetOptions(c.urlParams_, opts...)
34574	res, err := c.doRequest("json")
34575	if res != nil && res.StatusCode == http.StatusNotModified {
34576		if res.Body != nil {
34577			res.Body.Close()
34578		}
34579		return nil, &googleapi.Error{
34580			Code:   res.StatusCode,
34581			Header: res.Header,
34582		}
34583	}
34584	if err != nil {
34585		return nil, err
34586	}
34587	defer googleapi.CloseBody(res)
34588	if err := googleapi.CheckResponse(res); err != nil {
34589		return nil, err
34590	}
34591	ret := &GoogleCloudApigeeV1TargetServer{
34592		ServerResponse: googleapi.ServerResponse{
34593			Header:         res.Header,
34594			HTTPStatusCode: res.StatusCode,
34595		},
34596	}
34597	target := &ret
34598	if err := gensupport.DecodeResponse(target, res); err != nil {
34599		return nil, err
34600	}
34601	return ret, nil
34602	// {
34603	//   "description": "Creates a TargetServer in the specified environment.",
34604	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/targetservers",
34605	//   "httpMethod": "POST",
34606	//   "id": "apigee.organizations.environments.targetservers.create",
34607	//   "parameterOrder": [
34608	//     "parent"
34609	//   ],
34610	//   "parameters": {
34611	//     "name": {
34612	//       "description": "Optional. The ID to give the TargetServer. This will overwrite the value in TargetServer.",
34613	//       "location": "query",
34614	//       "type": "string"
34615	//     },
34616	//     "parent": {
34617	//       "description": "Required. The parent environment name under which the TargetServer will be created. Must be of the form `organizations/{org}/environments/{env}`.",
34618	//       "location": "path",
34619	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
34620	//       "required": true,
34621	//       "type": "string"
34622	//     }
34623	//   },
34624	//   "path": "v1/{+parent}/targetservers",
34625	//   "request": {
34626	//     "$ref": "GoogleCloudApigeeV1TargetServer"
34627	//   },
34628	//   "response": {
34629	//     "$ref": "GoogleCloudApigeeV1TargetServer"
34630	//   },
34631	//   "scopes": [
34632	//     "https://www.googleapis.com/auth/cloud-platform"
34633	//   ]
34634	// }
34635
34636}
34637
34638// method id "apigee.organizations.environments.targetservers.delete":
34639
34640type OrganizationsEnvironmentsTargetserversDeleteCall struct {
34641	s          *Service
34642	name       string
34643	urlParams_ gensupport.URLParams
34644	ctx_       context.Context
34645	header_    http.Header
34646}
34647
34648// Delete: Deletes a TargetServer from an environment. Returns the
34649// deleted TargetServer resource.
34650//
34651// - name: The name of the TargetServer to delete. Must be of the form
34652//   `organizations/{org}/environments/{env}/targetservers/{target_server
34653//   _id}`.
34654func (r *OrganizationsEnvironmentsTargetserversService) Delete(name string) *OrganizationsEnvironmentsTargetserversDeleteCall {
34655	c := &OrganizationsEnvironmentsTargetserversDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34656	c.name = name
34657	return c
34658}
34659
34660// Fields allows partial responses to be retrieved. See
34661// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
34662// for more information.
34663func (c *OrganizationsEnvironmentsTargetserversDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTargetserversDeleteCall {
34664	c.urlParams_.Set("fields", googleapi.CombineFields(s))
34665	return c
34666}
34667
34668// Context sets the context to be used in this call's Do method. Any
34669// pending HTTP request will be aborted if the provided context is
34670// canceled.
34671func (c *OrganizationsEnvironmentsTargetserversDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsTargetserversDeleteCall {
34672	c.ctx_ = ctx
34673	return c
34674}
34675
34676// Header returns an http.Header that can be modified by the caller to
34677// add HTTP headers to the request.
34678func (c *OrganizationsEnvironmentsTargetserversDeleteCall) Header() http.Header {
34679	if c.header_ == nil {
34680		c.header_ = make(http.Header)
34681	}
34682	return c.header_
34683}
34684
34685func (c *OrganizationsEnvironmentsTargetserversDeleteCall) doRequest(alt string) (*http.Response, error) {
34686	reqHeaders := make(http.Header)
34687	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
34688	for k, v := range c.header_ {
34689		reqHeaders[k] = v
34690	}
34691	reqHeaders.Set("User-Agent", c.s.userAgent())
34692	var body io.Reader = nil
34693	c.urlParams_.Set("alt", alt)
34694	c.urlParams_.Set("prettyPrint", "false")
34695	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
34696	urls += "?" + c.urlParams_.Encode()
34697	req, err := http.NewRequest("DELETE", urls, body)
34698	if err != nil {
34699		return nil, err
34700	}
34701	req.Header = reqHeaders
34702	googleapi.Expand(req.URL, map[string]string{
34703		"name": c.name,
34704	})
34705	return gensupport.SendRequest(c.ctx_, c.s.client, req)
34706}
34707
34708// Do executes the "apigee.organizations.environments.targetservers.delete" call.
34709// Exactly one of *GoogleCloudApigeeV1TargetServer or error will be
34710// non-nil. Any non-2xx status code is an error. Response headers are in
34711// either *GoogleCloudApigeeV1TargetServer.ServerResponse.Header or (if
34712// a response was returned at all) in error.(*googleapi.Error).Header.
34713// Use googleapi.IsNotModified to check whether the returned error was
34714// because http.StatusNotModified was returned.
34715func (c *OrganizationsEnvironmentsTargetserversDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TargetServer, error) {
34716	gensupport.SetOptions(c.urlParams_, opts...)
34717	res, err := c.doRequest("json")
34718	if res != nil && res.StatusCode == http.StatusNotModified {
34719		if res.Body != nil {
34720			res.Body.Close()
34721		}
34722		return nil, &googleapi.Error{
34723			Code:   res.StatusCode,
34724			Header: res.Header,
34725		}
34726	}
34727	if err != nil {
34728		return nil, err
34729	}
34730	defer googleapi.CloseBody(res)
34731	if err := googleapi.CheckResponse(res); err != nil {
34732		return nil, err
34733	}
34734	ret := &GoogleCloudApigeeV1TargetServer{
34735		ServerResponse: googleapi.ServerResponse{
34736			Header:         res.Header,
34737			HTTPStatusCode: res.StatusCode,
34738		},
34739	}
34740	target := &ret
34741	if err := gensupport.DecodeResponse(target, res); err != nil {
34742		return nil, err
34743	}
34744	return ret, nil
34745	// {
34746	//   "description": "Deletes a TargetServer from an environment. Returns the deleted TargetServer resource.",
34747	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/targetservers/{targetserversId}",
34748	//   "httpMethod": "DELETE",
34749	//   "id": "apigee.organizations.environments.targetservers.delete",
34750	//   "parameterOrder": [
34751	//     "name"
34752	//   ],
34753	//   "parameters": {
34754	//     "name": {
34755	//       "description": "Required. The name of the TargetServer to delete. Must be of the form `organizations/{org}/environments/{env}/targetservers/{target_server_id}`.",
34756	//       "location": "path",
34757	//       "pattern": "^organizations/[^/]+/environments/[^/]+/targetservers/[^/]+$",
34758	//       "required": true,
34759	//       "type": "string"
34760	//     }
34761	//   },
34762	//   "path": "v1/{+name}",
34763	//   "response": {
34764	//     "$ref": "GoogleCloudApigeeV1TargetServer"
34765	//   },
34766	//   "scopes": [
34767	//     "https://www.googleapis.com/auth/cloud-platform"
34768	//   ]
34769	// }
34770
34771}
34772
34773// method id "apigee.organizations.environments.targetservers.get":
34774
34775type OrganizationsEnvironmentsTargetserversGetCall struct {
34776	s            *Service
34777	name         string
34778	urlParams_   gensupport.URLParams
34779	ifNoneMatch_ string
34780	ctx_         context.Context
34781	header_      http.Header
34782}
34783
34784// Get: Gets a TargetServer resource.
34785//
34786// - name: The name of the TargetServer to get. Must be of the form
34787//   `organizations/{org}/environments/{env}/targetservers/{target_server
34788//   _id}`.
34789func (r *OrganizationsEnvironmentsTargetserversService) Get(name string) *OrganizationsEnvironmentsTargetserversGetCall {
34790	c := &OrganizationsEnvironmentsTargetserversGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34791	c.name = name
34792	return c
34793}
34794
34795// Fields allows partial responses to be retrieved. See
34796// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
34797// for more information.
34798func (c *OrganizationsEnvironmentsTargetserversGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTargetserversGetCall {
34799	c.urlParams_.Set("fields", googleapi.CombineFields(s))
34800	return c
34801}
34802
34803// IfNoneMatch sets the optional parameter which makes the operation
34804// fail if the object's ETag matches the given value. This is useful for
34805// getting updates only after the object has changed since the last
34806// request. Use googleapi.IsNotModified to check whether the response
34807// error from Do is the result of In-None-Match.
34808func (c *OrganizationsEnvironmentsTargetserversGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsTargetserversGetCall {
34809	c.ifNoneMatch_ = entityTag
34810	return c
34811}
34812
34813// Context sets the context to be used in this call's Do method. Any
34814// pending HTTP request will be aborted if the provided context is
34815// canceled.
34816func (c *OrganizationsEnvironmentsTargetserversGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsTargetserversGetCall {
34817	c.ctx_ = ctx
34818	return c
34819}
34820
34821// Header returns an http.Header that can be modified by the caller to
34822// add HTTP headers to the request.
34823func (c *OrganizationsEnvironmentsTargetserversGetCall) Header() http.Header {
34824	if c.header_ == nil {
34825		c.header_ = make(http.Header)
34826	}
34827	return c.header_
34828}
34829
34830func (c *OrganizationsEnvironmentsTargetserversGetCall) doRequest(alt string) (*http.Response, error) {
34831	reqHeaders := make(http.Header)
34832	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
34833	for k, v := range c.header_ {
34834		reqHeaders[k] = v
34835	}
34836	reqHeaders.Set("User-Agent", c.s.userAgent())
34837	if c.ifNoneMatch_ != "" {
34838		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
34839	}
34840	var body io.Reader = nil
34841	c.urlParams_.Set("alt", alt)
34842	c.urlParams_.Set("prettyPrint", "false")
34843	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
34844	urls += "?" + c.urlParams_.Encode()
34845	req, err := http.NewRequest("GET", urls, body)
34846	if err != nil {
34847		return nil, err
34848	}
34849	req.Header = reqHeaders
34850	googleapi.Expand(req.URL, map[string]string{
34851		"name": c.name,
34852	})
34853	return gensupport.SendRequest(c.ctx_, c.s.client, req)
34854}
34855
34856// Do executes the "apigee.organizations.environments.targetservers.get" call.
34857// Exactly one of *GoogleCloudApigeeV1TargetServer or error will be
34858// non-nil. Any non-2xx status code is an error. Response headers are in
34859// either *GoogleCloudApigeeV1TargetServer.ServerResponse.Header or (if
34860// a response was returned at all) in error.(*googleapi.Error).Header.
34861// Use googleapi.IsNotModified to check whether the returned error was
34862// because http.StatusNotModified was returned.
34863func (c *OrganizationsEnvironmentsTargetserversGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TargetServer, error) {
34864	gensupport.SetOptions(c.urlParams_, opts...)
34865	res, err := c.doRequest("json")
34866	if res != nil && res.StatusCode == http.StatusNotModified {
34867		if res.Body != nil {
34868			res.Body.Close()
34869		}
34870		return nil, &googleapi.Error{
34871			Code:   res.StatusCode,
34872			Header: res.Header,
34873		}
34874	}
34875	if err != nil {
34876		return nil, err
34877	}
34878	defer googleapi.CloseBody(res)
34879	if err := googleapi.CheckResponse(res); err != nil {
34880		return nil, err
34881	}
34882	ret := &GoogleCloudApigeeV1TargetServer{
34883		ServerResponse: googleapi.ServerResponse{
34884			Header:         res.Header,
34885			HTTPStatusCode: res.StatusCode,
34886		},
34887	}
34888	target := &ret
34889	if err := gensupport.DecodeResponse(target, res); err != nil {
34890		return nil, err
34891	}
34892	return ret, nil
34893	// {
34894	//   "description": "Gets a TargetServer resource.",
34895	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/targetservers/{targetserversId}",
34896	//   "httpMethod": "GET",
34897	//   "id": "apigee.organizations.environments.targetservers.get",
34898	//   "parameterOrder": [
34899	//     "name"
34900	//   ],
34901	//   "parameters": {
34902	//     "name": {
34903	//       "description": "Required. The name of the TargetServer to get. Must be of the form `organizations/{org}/environments/{env}/targetservers/{target_server_id}`.",
34904	//       "location": "path",
34905	//       "pattern": "^organizations/[^/]+/environments/[^/]+/targetservers/[^/]+$",
34906	//       "required": true,
34907	//       "type": "string"
34908	//     }
34909	//   },
34910	//   "path": "v1/{+name}",
34911	//   "response": {
34912	//     "$ref": "GoogleCloudApigeeV1TargetServer"
34913	//   },
34914	//   "scopes": [
34915	//     "https://www.googleapis.com/auth/cloud-platform"
34916	//   ]
34917	// }
34918
34919}
34920
34921// method id "apigee.organizations.environments.targetservers.update":
34922
34923type OrganizationsEnvironmentsTargetserversUpdateCall struct {
34924	s                               *Service
34925	name                            string
34926	googlecloudapigeev1targetserver *GoogleCloudApigeeV1TargetServer
34927	urlParams_                      gensupport.URLParams
34928	ctx_                            context.Context
34929	header_                         http.Header
34930}
34931
34932// Update: Updates an existing TargetServer. Note that this operation
34933// has PUT semantics; it will replace the entirety of the existing
34934// TargetServer with the resource in the request body.
34935//
34936// - name: The name of the TargetServer to replace. Must be of the form
34937//   `organizations/{org}/environments/{env}/targetservers/{target_server
34938//   _id}`.
34939func (r *OrganizationsEnvironmentsTargetserversService) Update(name string, googlecloudapigeev1targetserver *GoogleCloudApigeeV1TargetServer) *OrganizationsEnvironmentsTargetserversUpdateCall {
34940	c := &OrganizationsEnvironmentsTargetserversUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34941	c.name = name
34942	c.googlecloudapigeev1targetserver = googlecloudapigeev1targetserver
34943	return c
34944}
34945
34946// Fields allows partial responses to be retrieved. See
34947// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
34948// for more information.
34949func (c *OrganizationsEnvironmentsTargetserversUpdateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTargetserversUpdateCall {
34950	c.urlParams_.Set("fields", googleapi.CombineFields(s))
34951	return c
34952}
34953
34954// Context sets the context to be used in this call's Do method. Any
34955// pending HTTP request will be aborted if the provided context is
34956// canceled.
34957func (c *OrganizationsEnvironmentsTargetserversUpdateCall) Context(ctx context.Context) *OrganizationsEnvironmentsTargetserversUpdateCall {
34958	c.ctx_ = ctx
34959	return c
34960}
34961
34962// Header returns an http.Header that can be modified by the caller to
34963// add HTTP headers to the request.
34964func (c *OrganizationsEnvironmentsTargetserversUpdateCall) Header() http.Header {
34965	if c.header_ == nil {
34966		c.header_ = make(http.Header)
34967	}
34968	return c.header_
34969}
34970
34971func (c *OrganizationsEnvironmentsTargetserversUpdateCall) doRequest(alt string) (*http.Response, error) {
34972	reqHeaders := make(http.Header)
34973	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
34974	for k, v := range c.header_ {
34975		reqHeaders[k] = v
34976	}
34977	reqHeaders.Set("User-Agent", c.s.userAgent())
34978	var body io.Reader = nil
34979	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1targetserver)
34980	if err != nil {
34981		return nil, err
34982	}
34983	reqHeaders.Set("Content-Type", "application/json")
34984	c.urlParams_.Set("alt", alt)
34985	c.urlParams_.Set("prettyPrint", "false")
34986	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
34987	urls += "?" + c.urlParams_.Encode()
34988	req, err := http.NewRequest("PUT", urls, body)
34989	if err != nil {
34990		return nil, err
34991	}
34992	req.Header = reqHeaders
34993	googleapi.Expand(req.URL, map[string]string{
34994		"name": c.name,
34995	})
34996	return gensupport.SendRequest(c.ctx_, c.s.client, req)
34997}
34998
34999// Do executes the "apigee.organizations.environments.targetservers.update" call.
35000// Exactly one of *GoogleCloudApigeeV1TargetServer or error will be
35001// non-nil. Any non-2xx status code is an error. Response headers are in
35002// either *GoogleCloudApigeeV1TargetServer.ServerResponse.Header or (if
35003// a response was returned at all) in error.(*googleapi.Error).Header.
35004// Use googleapi.IsNotModified to check whether the returned error was
35005// because http.StatusNotModified was returned.
35006func (c *OrganizationsEnvironmentsTargetserversUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TargetServer, error) {
35007	gensupport.SetOptions(c.urlParams_, opts...)
35008	res, err := c.doRequest("json")
35009	if res != nil && res.StatusCode == http.StatusNotModified {
35010		if res.Body != nil {
35011			res.Body.Close()
35012		}
35013		return nil, &googleapi.Error{
35014			Code:   res.StatusCode,
35015			Header: res.Header,
35016		}
35017	}
35018	if err != nil {
35019		return nil, err
35020	}
35021	defer googleapi.CloseBody(res)
35022	if err := googleapi.CheckResponse(res); err != nil {
35023		return nil, err
35024	}
35025	ret := &GoogleCloudApigeeV1TargetServer{
35026		ServerResponse: googleapi.ServerResponse{
35027			Header:         res.Header,
35028			HTTPStatusCode: res.StatusCode,
35029		},
35030	}
35031	target := &ret
35032	if err := gensupport.DecodeResponse(target, res); err != nil {
35033		return nil, err
35034	}
35035	return ret, nil
35036	// {
35037	//   "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.",
35038	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/targetservers/{targetserversId}",
35039	//   "httpMethod": "PUT",
35040	//   "id": "apigee.organizations.environments.targetservers.update",
35041	//   "parameterOrder": [
35042	//     "name"
35043	//   ],
35044	//   "parameters": {
35045	//     "name": {
35046	//       "description": "Required. The name of the TargetServer to replace. Must be of the form `organizations/{org}/environments/{env}/targetservers/{target_server_id}`.",
35047	//       "location": "path",
35048	//       "pattern": "^organizations/[^/]+/environments/[^/]+/targetservers/[^/]+$",
35049	//       "required": true,
35050	//       "type": "string"
35051	//     }
35052	//   },
35053	//   "path": "v1/{+name}",
35054	//   "request": {
35055	//     "$ref": "GoogleCloudApigeeV1TargetServer"
35056	//   },
35057	//   "response": {
35058	//     "$ref": "GoogleCloudApigeeV1TargetServer"
35059	//   },
35060	//   "scopes": [
35061	//     "https://www.googleapis.com/auth/cloud-platform"
35062	//   ]
35063	// }
35064
35065}
35066
35067// method id "apigee.organizations.environments.traceConfig.overrides.create":
35068
35069type OrganizationsEnvironmentsTraceConfigOverridesCreateCall struct {
35070	s                                      *Service
35071	parent                                 string
35072	googlecloudapigeev1traceconfigoverride *GoogleCloudApigeeV1TraceConfigOverride
35073	urlParams_                             gensupport.URLParams
35074	ctx_                                   context.Context
35075	header_                                http.Header
35076}
35077
35078// Create: Creates a trace configuration override. The response contains
35079// a system-generated UUID, that can be used to view, update, or delete
35080// the configuration override. Use the List API to view the existing
35081// trace configuration overrides.
35082//
35083// - parent: Parent resource of the trace configuration override. Use
35084//   the following structure in your request.
35085//   "organizations/*/environments/*/traceConfig".
35086func (r *OrganizationsEnvironmentsTraceConfigOverridesService) Create(parent string, googlecloudapigeev1traceconfigoverride *GoogleCloudApigeeV1TraceConfigOverride) *OrganizationsEnvironmentsTraceConfigOverridesCreateCall {
35087	c := &OrganizationsEnvironmentsTraceConfigOverridesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35088	c.parent = parent
35089	c.googlecloudapigeev1traceconfigoverride = googlecloudapigeev1traceconfigoverride
35090	return c
35091}
35092
35093// Fields allows partial responses to be retrieved. See
35094// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
35095// for more information.
35096func (c *OrganizationsEnvironmentsTraceConfigOverridesCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTraceConfigOverridesCreateCall {
35097	c.urlParams_.Set("fields", googleapi.CombineFields(s))
35098	return c
35099}
35100
35101// Context sets the context to be used in this call's Do method. Any
35102// pending HTTP request will be aborted if the provided context is
35103// canceled.
35104func (c *OrganizationsEnvironmentsTraceConfigOverridesCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsTraceConfigOverridesCreateCall {
35105	c.ctx_ = ctx
35106	return c
35107}
35108
35109// Header returns an http.Header that can be modified by the caller to
35110// add HTTP headers to the request.
35111func (c *OrganizationsEnvironmentsTraceConfigOverridesCreateCall) Header() http.Header {
35112	if c.header_ == nil {
35113		c.header_ = make(http.Header)
35114	}
35115	return c.header_
35116}
35117
35118func (c *OrganizationsEnvironmentsTraceConfigOverridesCreateCall) doRequest(alt string) (*http.Response, error) {
35119	reqHeaders := make(http.Header)
35120	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
35121	for k, v := range c.header_ {
35122		reqHeaders[k] = v
35123	}
35124	reqHeaders.Set("User-Agent", c.s.userAgent())
35125	var body io.Reader = nil
35126	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1traceconfigoverride)
35127	if err != nil {
35128		return nil, err
35129	}
35130	reqHeaders.Set("Content-Type", "application/json")
35131	c.urlParams_.Set("alt", alt)
35132	c.urlParams_.Set("prettyPrint", "false")
35133	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/overrides")
35134	urls += "?" + c.urlParams_.Encode()
35135	req, err := http.NewRequest("POST", urls, body)
35136	if err != nil {
35137		return nil, err
35138	}
35139	req.Header = reqHeaders
35140	googleapi.Expand(req.URL, map[string]string{
35141		"parent": c.parent,
35142	})
35143	return gensupport.SendRequest(c.ctx_, c.s.client, req)
35144}
35145
35146// Do executes the "apigee.organizations.environments.traceConfig.overrides.create" call.
35147// Exactly one of *GoogleCloudApigeeV1TraceConfigOverride or error will
35148// be non-nil. Any non-2xx status code is an error. Response headers are
35149// in either
35150// *GoogleCloudApigeeV1TraceConfigOverride.ServerResponse.Header or (if
35151// a response was returned at all) in error.(*googleapi.Error).Header.
35152// Use googleapi.IsNotModified to check whether the returned error was
35153// because http.StatusNotModified was returned.
35154func (c *OrganizationsEnvironmentsTraceConfigOverridesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TraceConfigOverride, error) {
35155	gensupport.SetOptions(c.urlParams_, opts...)
35156	res, err := c.doRequest("json")
35157	if res != nil && res.StatusCode == http.StatusNotModified {
35158		if res.Body != nil {
35159			res.Body.Close()
35160		}
35161		return nil, &googleapi.Error{
35162			Code:   res.StatusCode,
35163			Header: res.Header,
35164		}
35165	}
35166	if err != nil {
35167		return nil, err
35168	}
35169	defer googleapi.CloseBody(res)
35170	if err := googleapi.CheckResponse(res); err != nil {
35171		return nil, err
35172	}
35173	ret := &GoogleCloudApigeeV1TraceConfigOverride{
35174		ServerResponse: googleapi.ServerResponse{
35175			Header:         res.Header,
35176			HTTPStatusCode: res.StatusCode,
35177		},
35178	}
35179	target := &ret
35180	if err := gensupport.DecodeResponse(target, res); err != nil {
35181		return nil, err
35182	}
35183	return ret, nil
35184	// {
35185	//   "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.",
35186	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/traceConfig/overrides",
35187	//   "httpMethod": "POST",
35188	//   "id": "apigee.organizations.environments.traceConfig.overrides.create",
35189	//   "parameterOrder": [
35190	//     "parent"
35191	//   ],
35192	//   "parameters": {
35193	//     "parent": {
35194	//       "description": "Required. Parent resource of the trace configuration override. Use the following structure in your request. \"organizations/*/environments/*/traceConfig\".",
35195	//       "location": "path",
35196	//       "pattern": "^organizations/[^/]+/environments/[^/]+/traceConfig$",
35197	//       "required": true,
35198	//       "type": "string"
35199	//     }
35200	//   },
35201	//   "path": "v1/{+parent}/overrides",
35202	//   "request": {
35203	//     "$ref": "GoogleCloudApigeeV1TraceConfigOverride"
35204	//   },
35205	//   "response": {
35206	//     "$ref": "GoogleCloudApigeeV1TraceConfigOverride"
35207	//   },
35208	//   "scopes": [
35209	//     "https://www.googleapis.com/auth/cloud-platform"
35210	//   ]
35211	// }
35212
35213}
35214
35215// method id "apigee.organizations.environments.traceConfig.overrides.delete":
35216
35217type OrganizationsEnvironmentsTraceConfigOverridesDeleteCall struct {
35218	s          *Service
35219	name       string
35220	urlParams_ gensupport.URLParams
35221	ctx_       context.Context
35222	header_    http.Header
35223}
35224
35225// Delete: Deletes a distributed trace configuration override.
35226//
35227// - name: Name of the trace configuration override. Use the following
35228//   structure in your request:
35229//   "organizations/*/environments/*/traceConfig/overrides/*".
35230func (r *OrganizationsEnvironmentsTraceConfigOverridesService) Delete(name string) *OrganizationsEnvironmentsTraceConfigOverridesDeleteCall {
35231	c := &OrganizationsEnvironmentsTraceConfigOverridesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35232	c.name = name
35233	return c
35234}
35235
35236// Fields allows partial responses to be retrieved. See
35237// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
35238// for more information.
35239func (c *OrganizationsEnvironmentsTraceConfigOverridesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTraceConfigOverridesDeleteCall {
35240	c.urlParams_.Set("fields", googleapi.CombineFields(s))
35241	return c
35242}
35243
35244// Context sets the context to be used in this call's Do method. Any
35245// pending HTTP request will be aborted if the provided context is
35246// canceled.
35247func (c *OrganizationsEnvironmentsTraceConfigOverridesDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsTraceConfigOverridesDeleteCall {
35248	c.ctx_ = ctx
35249	return c
35250}
35251
35252// Header returns an http.Header that can be modified by the caller to
35253// add HTTP headers to the request.
35254func (c *OrganizationsEnvironmentsTraceConfigOverridesDeleteCall) Header() http.Header {
35255	if c.header_ == nil {
35256		c.header_ = make(http.Header)
35257	}
35258	return c.header_
35259}
35260
35261func (c *OrganizationsEnvironmentsTraceConfigOverridesDeleteCall) doRequest(alt string) (*http.Response, error) {
35262	reqHeaders := make(http.Header)
35263	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
35264	for k, v := range c.header_ {
35265		reqHeaders[k] = v
35266	}
35267	reqHeaders.Set("User-Agent", c.s.userAgent())
35268	var body io.Reader = nil
35269	c.urlParams_.Set("alt", alt)
35270	c.urlParams_.Set("prettyPrint", "false")
35271	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
35272	urls += "?" + c.urlParams_.Encode()
35273	req, err := http.NewRequest("DELETE", urls, body)
35274	if err != nil {
35275		return nil, err
35276	}
35277	req.Header = reqHeaders
35278	googleapi.Expand(req.URL, map[string]string{
35279		"name": c.name,
35280	})
35281	return gensupport.SendRequest(c.ctx_, c.s.client, req)
35282}
35283
35284// Do executes the "apigee.organizations.environments.traceConfig.overrides.delete" call.
35285// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
35286// non-2xx status code is an error. Response headers are in either
35287// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
35288// returned at all) in error.(*googleapi.Error).Header. Use
35289// googleapi.IsNotModified to check whether the returned error was
35290// because http.StatusNotModified was returned.
35291func (c *OrganizationsEnvironmentsTraceConfigOverridesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
35292	gensupport.SetOptions(c.urlParams_, opts...)
35293	res, err := c.doRequest("json")
35294	if res != nil && res.StatusCode == http.StatusNotModified {
35295		if res.Body != nil {
35296			res.Body.Close()
35297		}
35298		return nil, &googleapi.Error{
35299			Code:   res.StatusCode,
35300			Header: res.Header,
35301		}
35302	}
35303	if err != nil {
35304		return nil, err
35305	}
35306	defer googleapi.CloseBody(res)
35307	if err := googleapi.CheckResponse(res); err != nil {
35308		return nil, err
35309	}
35310	ret := &GoogleProtobufEmpty{
35311		ServerResponse: googleapi.ServerResponse{
35312			Header:         res.Header,
35313			HTTPStatusCode: res.StatusCode,
35314		},
35315	}
35316	target := &ret
35317	if err := gensupport.DecodeResponse(target, res); err != nil {
35318		return nil, err
35319	}
35320	return ret, nil
35321	// {
35322	//   "description": "Deletes a distributed trace configuration override.",
35323	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/traceConfig/overrides/{overridesId}",
35324	//   "httpMethod": "DELETE",
35325	//   "id": "apigee.organizations.environments.traceConfig.overrides.delete",
35326	//   "parameterOrder": [
35327	//     "name"
35328	//   ],
35329	//   "parameters": {
35330	//     "name": {
35331	//       "description": "Required. Name of the trace configuration override. Use the following structure in your request: \"organizations/*/environments/*/traceConfig/overrides/*\".",
35332	//       "location": "path",
35333	//       "pattern": "^organizations/[^/]+/environments/[^/]+/traceConfig/overrides/[^/]+$",
35334	//       "required": true,
35335	//       "type": "string"
35336	//     }
35337	//   },
35338	//   "path": "v1/{+name}",
35339	//   "response": {
35340	//     "$ref": "GoogleProtobufEmpty"
35341	//   },
35342	//   "scopes": [
35343	//     "https://www.googleapis.com/auth/cloud-platform"
35344	//   ]
35345	// }
35346
35347}
35348
35349// method id "apigee.organizations.environments.traceConfig.overrides.get":
35350
35351type OrganizationsEnvironmentsTraceConfigOverridesGetCall struct {
35352	s            *Service
35353	name         string
35354	urlParams_   gensupport.URLParams
35355	ifNoneMatch_ string
35356	ctx_         context.Context
35357	header_      http.Header
35358}
35359
35360// Get: Gets a trace configuration override.
35361//
35362// - name: Name of the trace configuration override. Use the following
35363//   structure in your request:
35364//   "organizations/*/environments/*/traceConfig/overrides/*".
35365func (r *OrganizationsEnvironmentsTraceConfigOverridesService) Get(name string) *OrganizationsEnvironmentsTraceConfigOverridesGetCall {
35366	c := &OrganizationsEnvironmentsTraceConfigOverridesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35367	c.name = name
35368	return c
35369}
35370
35371// Fields allows partial responses to be retrieved. See
35372// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
35373// for more information.
35374func (c *OrganizationsEnvironmentsTraceConfigOverridesGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTraceConfigOverridesGetCall {
35375	c.urlParams_.Set("fields", googleapi.CombineFields(s))
35376	return c
35377}
35378
35379// IfNoneMatch sets the optional parameter which makes the operation
35380// fail if the object's ETag matches the given value. This is useful for
35381// getting updates only after the object has changed since the last
35382// request. Use googleapi.IsNotModified to check whether the response
35383// error from Do is the result of In-None-Match.
35384func (c *OrganizationsEnvironmentsTraceConfigOverridesGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsTraceConfigOverridesGetCall {
35385	c.ifNoneMatch_ = entityTag
35386	return c
35387}
35388
35389// Context sets the context to be used in this call's Do method. Any
35390// pending HTTP request will be aborted if the provided context is
35391// canceled.
35392func (c *OrganizationsEnvironmentsTraceConfigOverridesGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsTraceConfigOverridesGetCall {
35393	c.ctx_ = ctx
35394	return c
35395}
35396
35397// Header returns an http.Header that can be modified by the caller to
35398// add HTTP headers to the request.
35399func (c *OrganizationsEnvironmentsTraceConfigOverridesGetCall) Header() http.Header {
35400	if c.header_ == nil {
35401		c.header_ = make(http.Header)
35402	}
35403	return c.header_
35404}
35405
35406func (c *OrganizationsEnvironmentsTraceConfigOverridesGetCall) doRequest(alt string) (*http.Response, error) {
35407	reqHeaders := make(http.Header)
35408	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
35409	for k, v := range c.header_ {
35410		reqHeaders[k] = v
35411	}
35412	reqHeaders.Set("User-Agent", c.s.userAgent())
35413	if c.ifNoneMatch_ != "" {
35414		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
35415	}
35416	var body io.Reader = nil
35417	c.urlParams_.Set("alt", alt)
35418	c.urlParams_.Set("prettyPrint", "false")
35419	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
35420	urls += "?" + c.urlParams_.Encode()
35421	req, err := http.NewRequest("GET", urls, body)
35422	if err != nil {
35423		return nil, err
35424	}
35425	req.Header = reqHeaders
35426	googleapi.Expand(req.URL, map[string]string{
35427		"name": c.name,
35428	})
35429	return gensupport.SendRequest(c.ctx_, c.s.client, req)
35430}
35431
35432// Do executes the "apigee.organizations.environments.traceConfig.overrides.get" call.
35433// Exactly one of *GoogleCloudApigeeV1TraceConfigOverride or error will
35434// be non-nil. Any non-2xx status code is an error. Response headers are
35435// in either
35436// *GoogleCloudApigeeV1TraceConfigOverride.ServerResponse.Header or (if
35437// a response was returned at all) in error.(*googleapi.Error).Header.
35438// Use googleapi.IsNotModified to check whether the returned error was
35439// because http.StatusNotModified was returned.
35440func (c *OrganizationsEnvironmentsTraceConfigOverridesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TraceConfigOverride, error) {
35441	gensupport.SetOptions(c.urlParams_, opts...)
35442	res, err := c.doRequest("json")
35443	if res != nil && res.StatusCode == http.StatusNotModified {
35444		if res.Body != nil {
35445			res.Body.Close()
35446		}
35447		return nil, &googleapi.Error{
35448			Code:   res.StatusCode,
35449			Header: res.Header,
35450		}
35451	}
35452	if err != nil {
35453		return nil, err
35454	}
35455	defer googleapi.CloseBody(res)
35456	if err := googleapi.CheckResponse(res); err != nil {
35457		return nil, err
35458	}
35459	ret := &GoogleCloudApigeeV1TraceConfigOverride{
35460		ServerResponse: googleapi.ServerResponse{
35461			Header:         res.Header,
35462			HTTPStatusCode: res.StatusCode,
35463		},
35464	}
35465	target := &ret
35466	if err := gensupport.DecodeResponse(target, res); err != nil {
35467		return nil, err
35468	}
35469	return ret, nil
35470	// {
35471	//   "description": "Gets a trace configuration override.",
35472	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/traceConfig/overrides/{overridesId}",
35473	//   "httpMethod": "GET",
35474	//   "id": "apigee.organizations.environments.traceConfig.overrides.get",
35475	//   "parameterOrder": [
35476	//     "name"
35477	//   ],
35478	//   "parameters": {
35479	//     "name": {
35480	//       "description": "Required. Name of the trace configuration override. Use the following structure in your request: \"organizations/*/environments/*/traceConfig/overrides/*\".",
35481	//       "location": "path",
35482	//       "pattern": "^organizations/[^/]+/environments/[^/]+/traceConfig/overrides/[^/]+$",
35483	//       "required": true,
35484	//       "type": "string"
35485	//     }
35486	//   },
35487	//   "path": "v1/{+name}",
35488	//   "response": {
35489	//     "$ref": "GoogleCloudApigeeV1TraceConfigOverride"
35490	//   },
35491	//   "scopes": [
35492	//     "https://www.googleapis.com/auth/cloud-platform"
35493	//   ]
35494	// }
35495
35496}
35497
35498// method id "apigee.organizations.environments.traceConfig.overrides.list":
35499
35500type OrganizationsEnvironmentsTraceConfigOverridesListCall struct {
35501	s            *Service
35502	parent       string
35503	urlParams_   gensupport.URLParams
35504	ifNoneMatch_ string
35505	ctx_         context.Context
35506	header_      http.Header
35507}
35508
35509// List: Lists all of the distributed trace configuration overrides in
35510// an environment.
35511//
35512// - parent: Parent resource of the trace configuration override. Use
35513//   the following structure in your request:
35514//   "organizations/*/environments/*/traceConfig".
35515func (r *OrganizationsEnvironmentsTraceConfigOverridesService) List(parent string) *OrganizationsEnvironmentsTraceConfigOverridesListCall {
35516	c := &OrganizationsEnvironmentsTraceConfigOverridesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35517	c.parent = parent
35518	return c
35519}
35520
35521// PageSize sets the optional parameter "pageSize": Maximum number of
35522// trace configuration overrides to return. If not specified, the
35523// maximum number returned is 25. The maximum number cannot exceed 100.
35524func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) PageSize(pageSize int64) *OrganizationsEnvironmentsTraceConfigOverridesListCall {
35525	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
35526	return c
35527}
35528
35529// PageToken sets the optional parameter "pageToken": A page token,
35530// returned from a previous `ListTraceConfigOverrides` call. Token value
35531// that can be used to retrieve the subsequent page. When paginating,
35532// all other parameters provided to `ListTraceConfigOverrides` must
35533// match those specified in the call to obtain the page token.
35534func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) PageToken(pageToken string) *OrganizationsEnvironmentsTraceConfigOverridesListCall {
35535	c.urlParams_.Set("pageToken", pageToken)
35536	return c
35537}
35538
35539// Fields allows partial responses to be retrieved. See
35540// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
35541// for more information.
35542func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTraceConfigOverridesListCall {
35543	c.urlParams_.Set("fields", googleapi.CombineFields(s))
35544	return c
35545}
35546
35547// IfNoneMatch sets the optional parameter which makes the operation
35548// fail if the object's ETag matches the given value. This is useful for
35549// getting updates only after the object has changed since the last
35550// request. Use googleapi.IsNotModified to check whether the response
35551// error from Do is the result of In-None-Match.
35552func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsTraceConfigOverridesListCall {
35553	c.ifNoneMatch_ = entityTag
35554	return c
35555}
35556
35557// Context sets the context to be used in this call's Do method. Any
35558// pending HTTP request will be aborted if the provided context is
35559// canceled.
35560func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) Context(ctx context.Context) *OrganizationsEnvironmentsTraceConfigOverridesListCall {
35561	c.ctx_ = ctx
35562	return c
35563}
35564
35565// Header returns an http.Header that can be modified by the caller to
35566// add HTTP headers to the request.
35567func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) Header() http.Header {
35568	if c.header_ == nil {
35569		c.header_ = make(http.Header)
35570	}
35571	return c.header_
35572}
35573
35574func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) doRequest(alt string) (*http.Response, error) {
35575	reqHeaders := make(http.Header)
35576	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
35577	for k, v := range c.header_ {
35578		reqHeaders[k] = v
35579	}
35580	reqHeaders.Set("User-Agent", c.s.userAgent())
35581	if c.ifNoneMatch_ != "" {
35582		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
35583	}
35584	var body io.Reader = nil
35585	c.urlParams_.Set("alt", alt)
35586	c.urlParams_.Set("prettyPrint", "false")
35587	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/overrides")
35588	urls += "?" + c.urlParams_.Encode()
35589	req, err := http.NewRequest("GET", urls, body)
35590	if err != nil {
35591		return nil, err
35592	}
35593	req.Header = reqHeaders
35594	googleapi.Expand(req.URL, map[string]string{
35595		"parent": c.parent,
35596	})
35597	return gensupport.SendRequest(c.ctx_, c.s.client, req)
35598}
35599
35600// Do executes the "apigee.organizations.environments.traceConfig.overrides.list" call.
35601// Exactly one of *GoogleCloudApigeeV1ListTraceConfigOverridesResponse
35602// or error will be non-nil. Any non-2xx status code is an error.
35603// Response headers are in either
35604// *GoogleCloudApigeeV1ListTraceConfigOverridesResponse.ServerResponse.He
35605// ader or (if a response was returned at all) in
35606// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
35607// whether the returned error was because http.StatusNotModified was
35608// returned.
35609func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListTraceConfigOverridesResponse, error) {
35610	gensupport.SetOptions(c.urlParams_, opts...)
35611	res, err := c.doRequest("json")
35612	if res != nil && res.StatusCode == http.StatusNotModified {
35613		if res.Body != nil {
35614			res.Body.Close()
35615		}
35616		return nil, &googleapi.Error{
35617			Code:   res.StatusCode,
35618			Header: res.Header,
35619		}
35620	}
35621	if err != nil {
35622		return nil, err
35623	}
35624	defer googleapi.CloseBody(res)
35625	if err := googleapi.CheckResponse(res); err != nil {
35626		return nil, err
35627	}
35628	ret := &GoogleCloudApigeeV1ListTraceConfigOverridesResponse{
35629		ServerResponse: googleapi.ServerResponse{
35630			Header:         res.Header,
35631			HTTPStatusCode: res.StatusCode,
35632		},
35633	}
35634	target := &ret
35635	if err := gensupport.DecodeResponse(target, res); err != nil {
35636		return nil, err
35637	}
35638	return ret, nil
35639	// {
35640	//   "description": "Lists all of the distributed trace configuration overrides in an environment.",
35641	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/traceConfig/overrides",
35642	//   "httpMethod": "GET",
35643	//   "id": "apigee.organizations.environments.traceConfig.overrides.list",
35644	//   "parameterOrder": [
35645	//     "parent"
35646	//   ],
35647	//   "parameters": {
35648	//     "pageSize": {
35649	//       "description": "Maximum number of trace configuration overrides to return. If not specified, the maximum number returned is 25. The maximum number cannot exceed 100.",
35650	//       "format": "int32",
35651	//       "location": "query",
35652	//       "type": "integer"
35653	//     },
35654	//     "pageToken": {
35655	//       "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.",
35656	//       "location": "query",
35657	//       "type": "string"
35658	//     },
35659	//     "parent": {
35660	//       "description": "Required. Parent resource of the trace configuration override. Use the following structure in your request: \"organizations/*/environments/*/traceConfig\".",
35661	//       "location": "path",
35662	//       "pattern": "^organizations/[^/]+/environments/[^/]+/traceConfig$",
35663	//       "required": true,
35664	//       "type": "string"
35665	//     }
35666	//   },
35667	//   "path": "v1/{+parent}/overrides",
35668	//   "response": {
35669	//     "$ref": "GoogleCloudApigeeV1ListTraceConfigOverridesResponse"
35670	//   },
35671	//   "scopes": [
35672	//     "https://www.googleapis.com/auth/cloud-platform"
35673	//   ]
35674	// }
35675
35676}
35677
35678// Pages invokes f for each page of results.
35679// A non-nil error returned from f will halt the iteration.
35680// The provided context supersedes any context provided to the Context method.
35681func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListTraceConfigOverridesResponse) error) error {
35682	c.ctx_ = ctx
35683	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
35684	for {
35685		x, err := c.Do()
35686		if err != nil {
35687			return err
35688		}
35689		if err := f(x); err != nil {
35690			return err
35691		}
35692		if x.NextPageToken == "" {
35693			return nil
35694		}
35695		c.PageToken(x.NextPageToken)
35696	}
35697}
35698
35699// method id "apigee.organizations.environments.traceConfig.overrides.patch":
35700
35701type OrganizationsEnvironmentsTraceConfigOverridesPatchCall struct {
35702	s                                      *Service
35703	name                                   string
35704	googlecloudapigeev1traceconfigoverride *GoogleCloudApigeeV1TraceConfigOverride
35705	urlParams_                             gensupport.URLParams
35706	ctx_                                   context.Context
35707	header_                                http.Header
35708}
35709
35710// Patch: Updates a distributed trace configuration override. Note that
35711// the repeated fields have replace semantics when included in the field
35712// mask and that they will be overwritten by the value of the fields in
35713// the request body.
35714//
35715// - name: Name of the trace configuration override. Use the following
35716//   structure in your request:
35717//   "organizations/*/environments/*/traceConfig/overrides/*".
35718func (r *OrganizationsEnvironmentsTraceConfigOverridesService) Patch(name string, googlecloudapigeev1traceconfigoverride *GoogleCloudApigeeV1TraceConfigOverride) *OrganizationsEnvironmentsTraceConfigOverridesPatchCall {
35719	c := &OrganizationsEnvironmentsTraceConfigOverridesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35720	c.name = name
35721	c.googlecloudapigeev1traceconfigoverride = googlecloudapigeev1traceconfigoverride
35722	return c
35723}
35724
35725// UpdateMask sets the optional parameter "updateMask": List of fields
35726// to be updated.
35727func (c *OrganizationsEnvironmentsTraceConfigOverridesPatchCall) UpdateMask(updateMask string) *OrganizationsEnvironmentsTraceConfigOverridesPatchCall {
35728	c.urlParams_.Set("updateMask", updateMask)
35729	return c
35730}
35731
35732// Fields allows partial responses to be retrieved. See
35733// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
35734// for more information.
35735func (c *OrganizationsEnvironmentsTraceConfigOverridesPatchCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTraceConfigOverridesPatchCall {
35736	c.urlParams_.Set("fields", googleapi.CombineFields(s))
35737	return c
35738}
35739
35740// Context sets the context to be used in this call's Do method. Any
35741// pending HTTP request will be aborted if the provided context is
35742// canceled.
35743func (c *OrganizationsEnvironmentsTraceConfigOverridesPatchCall) Context(ctx context.Context) *OrganizationsEnvironmentsTraceConfigOverridesPatchCall {
35744	c.ctx_ = ctx
35745	return c
35746}
35747
35748// Header returns an http.Header that can be modified by the caller to
35749// add HTTP headers to the request.
35750func (c *OrganizationsEnvironmentsTraceConfigOverridesPatchCall) Header() http.Header {
35751	if c.header_ == nil {
35752		c.header_ = make(http.Header)
35753	}
35754	return c.header_
35755}
35756
35757func (c *OrganizationsEnvironmentsTraceConfigOverridesPatchCall) doRequest(alt string) (*http.Response, error) {
35758	reqHeaders := make(http.Header)
35759	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
35760	for k, v := range c.header_ {
35761		reqHeaders[k] = v
35762	}
35763	reqHeaders.Set("User-Agent", c.s.userAgent())
35764	var body io.Reader = nil
35765	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1traceconfigoverride)
35766	if err != nil {
35767		return nil, err
35768	}
35769	reqHeaders.Set("Content-Type", "application/json")
35770	c.urlParams_.Set("alt", alt)
35771	c.urlParams_.Set("prettyPrint", "false")
35772	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
35773	urls += "?" + c.urlParams_.Encode()
35774	req, err := http.NewRequest("PATCH", urls, body)
35775	if err != nil {
35776		return nil, err
35777	}
35778	req.Header = reqHeaders
35779	googleapi.Expand(req.URL, map[string]string{
35780		"name": c.name,
35781	})
35782	return gensupport.SendRequest(c.ctx_, c.s.client, req)
35783}
35784
35785// Do executes the "apigee.organizations.environments.traceConfig.overrides.patch" call.
35786// Exactly one of *GoogleCloudApigeeV1TraceConfigOverride or error will
35787// be non-nil. Any non-2xx status code is an error. Response headers are
35788// in either
35789// *GoogleCloudApigeeV1TraceConfigOverride.ServerResponse.Header or (if
35790// a response was returned at all) in error.(*googleapi.Error).Header.
35791// Use googleapi.IsNotModified to check whether the returned error was
35792// because http.StatusNotModified was returned.
35793func (c *OrganizationsEnvironmentsTraceConfigOverridesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TraceConfigOverride, error) {
35794	gensupport.SetOptions(c.urlParams_, opts...)
35795	res, err := c.doRequest("json")
35796	if res != nil && res.StatusCode == http.StatusNotModified {
35797		if res.Body != nil {
35798			res.Body.Close()
35799		}
35800		return nil, &googleapi.Error{
35801			Code:   res.StatusCode,
35802			Header: res.Header,
35803		}
35804	}
35805	if err != nil {
35806		return nil, err
35807	}
35808	defer googleapi.CloseBody(res)
35809	if err := googleapi.CheckResponse(res); err != nil {
35810		return nil, err
35811	}
35812	ret := &GoogleCloudApigeeV1TraceConfigOverride{
35813		ServerResponse: googleapi.ServerResponse{
35814			Header:         res.Header,
35815			HTTPStatusCode: res.StatusCode,
35816		},
35817	}
35818	target := &ret
35819	if err := gensupport.DecodeResponse(target, res); err != nil {
35820		return nil, err
35821	}
35822	return ret, nil
35823	// {
35824	//   "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.",
35825	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/traceConfig/overrides/{overridesId}",
35826	//   "httpMethod": "PATCH",
35827	//   "id": "apigee.organizations.environments.traceConfig.overrides.patch",
35828	//   "parameterOrder": [
35829	//     "name"
35830	//   ],
35831	//   "parameters": {
35832	//     "name": {
35833	//       "description": "Required. Name of the trace configuration override. Use the following structure in your request: \"organizations/*/environments/*/traceConfig/overrides/*\".",
35834	//       "location": "path",
35835	//       "pattern": "^organizations/[^/]+/environments/[^/]+/traceConfig/overrides/[^/]+$",
35836	//       "required": true,
35837	//       "type": "string"
35838	//     },
35839	//     "updateMask": {
35840	//       "description": "List of fields to be updated.",
35841	//       "format": "google-fieldmask",
35842	//       "location": "query",
35843	//       "type": "string"
35844	//     }
35845	//   },
35846	//   "path": "v1/{+name}",
35847	//   "request": {
35848	//     "$ref": "GoogleCloudApigeeV1TraceConfigOverride"
35849	//   },
35850	//   "response": {
35851	//     "$ref": "GoogleCloudApigeeV1TraceConfigOverride"
35852	//   },
35853	//   "scopes": [
35854	//     "https://www.googleapis.com/auth/cloud-platform"
35855	//   ]
35856	// }
35857
35858}
35859
35860// method id "apigee.organizations.hostQueries.create":
35861
35862type OrganizationsHostQueriesCreateCall struct {
35863	s                        *Service
35864	parent                   string
35865	googlecloudapigeev1query *GoogleCloudApigeeV1Query
35866	urlParams_               gensupport.URLParams
35867	ctx_                     context.Context
35868	header_                  http.Header
35869}
35870
35871// Create: Submit a query at host level to be processed in the
35872// background. If the submission of the query succeeds, the API returns
35873// a 201 status and an ID that refer to the query. In addition to the
35874// HTTP status 201, the `state` of "enqueued" means that the request
35875// succeeded.
35876//
35877// - parent: The parent resource name. Must be of the form
35878//   `organizations/{org}`.
35879func (r *OrganizationsHostQueriesService) Create(parent string, googlecloudapigeev1query *GoogleCloudApigeeV1Query) *OrganizationsHostQueriesCreateCall {
35880	c := &OrganizationsHostQueriesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35881	c.parent = parent
35882	c.googlecloudapigeev1query = googlecloudapigeev1query
35883	return c
35884}
35885
35886// Fields allows partial responses to be retrieved. See
35887// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
35888// for more information.
35889func (c *OrganizationsHostQueriesCreateCall) Fields(s ...googleapi.Field) *OrganizationsHostQueriesCreateCall {
35890	c.urlParams_.Set("fields", googleapi.CombineFields(s))
35891	return c
35892}
35893
35894// Context sets the context to be used in this call's Do method. Any
35895// pending HTTP request will be aborted if the provided context is
35896// canceled.
35897func (c *OrganizationsHostQueriesCreateCall) Context(ctx context.Context) *OrganizationsHostQueriesCreateCall {
35898	c.ctx_ = ctx
35899	return c
35900}
35901
35902// Header returns an http.Header that can be modified by the caller to
35903// add HTTP headers to the request.
35904func (c *OrganizationsHostQueriesCreateCall) Header() http.Header {
35905	if c.header_ == nil {
35906		c.header_ = make(http.Header)
35907	}
35908	return c.header_
35909}
35910
35911func (c *OrganizationsHostQueriesCreateCall) doRequest(alt string) (*http.Response, error) {
35912	reqHeaders := make(http.Header)
35913	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
35914	for k, v := range c.header_ {
35915		reqHeaders[k] = v
35916	}
35917	reqHeaders.Set("User-Agent", c.s.userAgent())
35918	var body io.Reader = nil
35919	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1query)
35920	if err != nil {
35921		return nil, err
35922	}
35923	reqHeaders.Set("Content-Type", "application/json")
35924	c.urlParams_.Set("alt", alt)
35925	c.urlParams_.Set("prettyPrint", "false")
35926	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/hostQueries")
35927	urls += "?" + c.urlParams_.Encode()
35928	req, err := http.NewRequest("POST", urls, body)
35929	if err != nil {
35930		return nil, err
35931	}
35932	req.Header = reqHeaders
35933	googleapi.Expand(req.URL, map[string]string{
35934		"parent": c.parent,
35935	})
35936	return gensupport.SendRequest(c.ctx_, c.s.client, req)
35937}
35938
35939// Do executes the "apigee.organizations.hostQueries.create" call.
35940// Exactly one of *GoogleCloudApigeeV1AsyncQuery or error will be
35941// non-nil. Any non-2xx status code is an error. Response headers are in
35942// either *GoogleCloudApigeeV1AsyncQuery.ServerResponse.Header or (if a
35943// response was returned at all) in error.(*googleapi.Error).Header. Use
35944// googleapi.IsNotModified to check whether the returned error was
35945// because http.StatusNotModified was returned.
35946func (c *OrganizationsHostQueriesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AsyncQuery, error) {
35947	gensupport.SetOptions(c.urlParams_, opts...)
35948	res, err := c.doRequest("json")
35949	if res != nil && res.StatusCode == http.StatusNotModified {
35950		if res.Body != nil {
35951			res.Body.Close()
35952		}
35953		return nil, &googleapi.Error{
35954			Code:   res.StatusCode,
35955			Header: res.Header,
35956		}
35957	}
35958	if err != nil {
35959		return nil, err
35960	}
35961	defer googleapi.CloseBody(res)
35962	if err := googleapi.CheckResponse(res); err != nil {
35963		return nil, err
35964	}
35965	ret := &GoogleCloudApigeeV1AsyncQuery{
35966		ServerResponse: googleapi.ServerResponse{
35967			Header:         res.Header,
35968			HTTPStatusCode: res.StatusCode,
35969		},
35970	}
35971	target := &ret
35972	if err := gensupport.DecodeResponse(target, res); err != nil {
35973		return nil, err
35974	}
35975	return ret, nil
35976	// {
35977	//   "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.",
35978	//   "flatPath": "v1/organizations/{organizationsId}/hostQueries",
35979	//   "httpMethod": "POST",
35980	//   "id": "apigee.organizations.hostQueries.create",
35981	//   "parameterOrder": [
35982	//     "parent"
35983	//   ],
35984	//   "parameters": {
35985	//     "parent": {
35986	//       "description": "Required. The parent resource name. Must be of the form `organizations/{org}`.",
35987	//       "location": "path",
35988	//       "pattern": "^organizations/[^/]+$",
35989	//       "required": true,
35990	//       "type": "string"
35991	//     }
35992	//   },
35993	//   "path": "v1/{+parent}/hostQueries",
35994	//   "request": {
35995	//     "$ref": "GoogleCloudApigeeV1Query"
35996	//   },
35997	//   "response": {
35998	//     "$ref": "GoogleCloudApigeeV1AsyncQuery"
35999	//   },
36000	//   "scopes": [
36001	//     "https://www.googleapis.com/auth/cloud-platform"
36002	//   ]
36003	// }
36004
36005}
36006
36007// method id "apigee.organizations.hostQueries.get":
36008
36009type OrganizationsHostQueriesGetCall struct {
36010	s            *Service
36011	name         string
36012	urlParams_   gensupport.URLParams
36013	ifNoneMatch_ string
36014	ctx_         context.Context
36015	header_      http.Header
36016}
36017
36018// Get: Get status of a query submitted at host level. If the query is
36019// still in progress, the `state` is set to "running" After the query
36020// has completed successfully, `state` is set to "completed"
36021//
36022// - name: Name of the asynchronous query to get. Must be of the form
36023//   `organizations/{org}/queries/{queryId}`.
36024func (r *OrganizationsHostQueriesService) Get(name string) *OrganizationsHostQueriesGetCall {
36025	c := &OrganizationsHostQueriesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36026	c.name = name
36027	return c
36028}
36029
36030// Fields allows partial responses to be retrieved. See
36031// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
36032// for more information.
36033func (c *OrganizationsHostQueriesGetCall) Fields(s ...googleapi.Field) *OrganizationsHostQueriesGetCall {
36034	c.urlParams_.Set("fields", googleapi.CombineFields(s))
36035	return c
36036}
36037
36038// IfNoneMatch sets the optional parameter which makes the operation
36039// fail if the object's ETag matches the given value. This is useful for
36040// getting updates only after the object has changed since the last
36041// request. Use googleapi.IsNotModified to check whether the response
36042// error from Do is the result of In-None-Match.
36043func (c *OrganizationsHostQueriesGetCall) IfNoneMatch(entityTag string) *OrganizationsHostQueriesGetCall {
36044	c.ifNoneMatch_ = entityTag
36045	return c
36046}
36047
36048// Context sets the context to be used in this call's Do method. Any
36049// pending HTTP request will be aborted if the provided context is
36050// canceled.
36051func (c *OrganizationsHostQueriesGetCall) Context(ctx context.Context) *OrganizationsHostQueriesGetCall {
36052	c.ctx_ = ctx
36053	return c
36054}
36055
36056// Header returns an http.Header that can be modified by the caller to
36057// add HTTP headers to the request.
36058func (c *OrganizationsHostQueriesGetCall) Header() http.Header {
36059	if c.header_ == nil {
36060		c.header_ = make(http.Header)
36061	}
36062	return c.header_
36063}
36064
36065func (c *OrganizationsHostQueriesGetCall) doRequest(alt string) (*http.Response, error) {
36066	reqHeaders := make(http.Header)
36067	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
36068	for k, v := range c.header_ {
36069		reqHeaders[k] = v
36070	}
36071	reqHeaders.Set("User-Agent", c.s.userAgent())
36072	if c.ifNoneMatch_ != "" {
36073		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
36074	}
36075	var body io.Reader = nil
36076	c.urlParams_.Set("alt", alt)
36077	c.urlParams_.Set("prettyPrint", "false")
36078	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
36079	urls += "?" + c.urlParams_.Encode()
36080	req, err := http.NewRequest("GET", urls, body)
36081	if err != nil {
36082		return nil, err
36083	}
36084	req.Header = reqHeaders
36085	googleapi.Expand(req.URL, map[string]string{
36086		"name": c.name,
36087	})
36088	return gensupport.SendRequest(c.ctx_, c.s.client, req)
36089}
36090
36091// Do executes the "apigee.organizations.hostQueries.get" call.
36092// Exactly one of *GoogleCloudApigeeV1AsyncQuery or error will be
36093// non-nil. Any non-2xx status code is an error. Response headers are in
36094// either *GoogleCloudApigeeV1AsyncQuery.ServerResponse.Header or (if a
36095// response was returned at all) in error.(*googleapi.Error).Header. Use
36096// googleapi.IsNotModified to check whether the returned error was
36097// because http.StatusNotModified was returned.
36098func (c *OrganizationsHostQueriesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AsyncQuery, error) {
36099	gensupport.SetOptions(c.urlParams_, opts...)
36100	res, err := c.doRequest("json")
36101	if res != nil && res.StatusCode == http.StatusNotModified {
36102		if res.Body != nil {
36103			res.Body.Close()
36104		}
36105		return nil, &googleapi.Error{
36106			Code:   res.StatusCode,
36107			Header: res.Header,
36108		}
36109	}
36110	if err != nil {
36111		return nil, err
36112	}
36113	defer googleapi.CloseBody(res)
36114	if err := googleapi.CheckResponse(res); err != nil {
36115		return nil, err
36116	}
36117	ret := &GoogleCloudApigeeV1AsyncQuery{
36118		ServerResponse: googleapi.ServerResponse{
36119			Header:         res.Header,
36120			HTTPStatusCode: res.StatusCode,
36121		},
36122	}
36123	target := &ret
36124	if err := gensupport.DecodeResponse(target, res); err != nil {
36125		return nil, err
36126	}
36127	return ret, nil
36128	// {
36129	//   "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\"",
36130	//   "flatPath": "v1/organizations/{organizationsId}/hostQueries/{hostQueriesId}",
36131	//   "httpMethod": "GET",
36132	//   "id": "apigee.organizations.hostQueries.get",
36133	//   "parameterOrder": [
36134	//     "name"
36135	//   ],
36136	//   "parameters": {
36137	//     "name": {
36138	//       "description": "Required. Name of the asynchronous query to get. Must be of the form `organizations/{org}/queries/{queryId}`.",
36139	//       "location": "path",
36140	//       "pattern": "^organizations/[^/]+/hostQueries/[^/]+$",
36141	//       "required": true,
36142	//       "type": "string"
36143	//     }
36144	//   },
36145	//   "path": "v1/{+name}",
36146	//   "response": {
36147	//     "$ref": "GoogleCloudApigeeV1AsyncQuery"
36148	//   },
36149	//   "scopes": [
36150	//     "https://www.googleapis.com/auth/cloud-platform"
36151	//   ]
36152	// }
36153
36154}
36155
36156// method id "apigee.organizations.hostQueries.getResult":
36157
36158type OrganizationsHostQueriesGetResultCall struct {
36159	s            *Service
36160	name         string
36161	urlParams_   gensupport.URLParams
36162	ifNoneMatch_ string
36163	ctx_         context.Context
36164	header_      http.Header
36165}
36166
36167// GetResult: After the query is completed, use this API to retrieve the
36168// results. If the request succeeds, and there is a non-zero result set,
36169// the result is downloaded to the client as a zipped JSON file. The
36170// name of the downloaded file will be: OfflineQueryResult-.zip Example:
36171// `OfflineQueryResult-9cfc0d85-0f30-46d6-ae6f-318d0cb961bd.zip`
36172//
36173// - name: Name of the asynchronous query result to get. Must be of the
36174//   form `organizations/{org}/queries/{queryId}/result`.
36175func (r *OrganizationsHostQueriesService) GetResult(name string) *OrganizationsHostQueriesGetResultCall {
36176	c := &OrganizationsHostQueriesGetResultCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36177	c.name = name
36178	return c
36179}
36180
36181// Fields allows partial responses to be retrieved. See
36182// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
36183// for more information.
36184func (c *OrganizationsHostQueriesGetResultCall) Fields(s ...googleapi.Field) *OrganizationsHostQueriesGetResultCall {
36185	c.urlParams_.Set("fields", googleapi.CombineFields(s))
36186	return c
36187}
36188
36189// IfNoneMatch sets the optional parameter which makes the operation
36190// fail if the object's ETag matches the given value. This is useful for
36191// getting updates only after the object has changed since the last
36192// request. Use googleapi.IsNotModified to check whether the response
36193// error from Do is the result of In-None-Match.
36194func (c *OrganizationsHostQueriesGetResultCall) IfNoneMatch(entityTag string) *OrganizationsHostQueriesGetResultCall {
36195	c.ifNoneMatch_ = entityTag
36196	return c
36197}
36198
36199// Context sets the context to be used in this call's Do method. Any
36200// pending HTTP request will be aborted if the provided context is
36201// canceled.
36202func (c *OrganizationsHostQueriesGetResultCall) Context(ctx context.Context) *OrganizationsHostQueriesGetResultCall {
36203	c.ctx_ = ctx
36204	return c
36205}
36206
36207// Header returns an http.Header that can be modified by the caller to
36208// add HTTP headers to the request.
36209func (c *OrganizationsHostQueriesGetResultCall) Header() http.Header {
36210	if c.header_ == nil {
36211		c.header_ = make(http.Header)
36212	}
36213	return c.header_
36214}
36215
36216func (c *OrganizationsHostQueriesGetResultCall) doRequest(alt string) (*http.Response, error) {
36217	reqHeaders := make(http.Header)
36218	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
36219	for k, v := range c.header_ {
36220		reqHeaders[k] = v
36221	}
36222	reqHeaders.Set("User-Agent", c.s.userAgent())
36223	if c.ifNoneMatch_ != "" {
36224		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
36225	}
36226	var body io.Reader = nil
36227	c.urlParams_.Set("alt", alt)
36228	c.urlParams_.Set("prettyPrint", "false")
36229	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
36230	urls += "?" + c.urlParams_.Encode()
36231	req, err := http.NewRequest("GET", urls, body)
36232	if err != nil {
36233		return nil, err
36234	}
36235	req.Header = reqHeaders
36236	googleapi.Expand(req.URL, map[string]string{
36237		"name": c.name,
36238	})
36239	return gensupport.SendRequest(c.ctx_, c.s.client, req)
36240}
36241
36242// Do executes the "apigee.organizations.hostQueries.getResult" call.
36243// Exactly one of *GoogleApiHttpBody or error will be non-nil. Any
36244// non-2xx status code is an error. Response headers are in either
36245// *GoogleApiHttpBody.ServerResponse.Header or (if a response was
36246// returned at all) in error.(*googleapi.Error).Header. Use
36247// googleapi.IsNotModified to check whether the returned error was
36248// because http.StatusNotModified was returned.
36249func (c *OrganizationsHostQueriesGetResultCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
36250	gensupport.SetOptions(c.urlParams_, opts...)
36251	res, err := c.doRequest("json")
36252	if res != nil && res.StatusCode == http.StatusNotModified {
36253		if res.Body != nil {
36254			res.Body.Close()
36255		}
36256		return nil, &googleapi.Error{
36257			Code:   res.StatusCode,
36258			Header: res.Header,
36259		}
36260	}
36261	if err != nil {
36262		return nil, err
36263	}
36264	defer googleapi.CloseBody(res)
36265	if err := googleapi.CheckResponse(res); err != nil {
36266		return nil, err
36267	}
36268	ret := &GoogleApiHttpBody{
36269		ServerResponse: googleapi.ServerResponse{
36270			Header:         res.Header,
36271			HTTPStatusCode: res.StatusCode,
36272		},
36273	}
36274	target := &ret
36275	if err := gensupport.DecodeResponse(target, res); err != nil {
36276		return nil, err
36277	}
36278	return ret, nil
36279	// {
36280	//   "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`",
36281	//   "flatPath": "v1/organizations/{organizationsId}/hostQueries/{hostQueriesId}/result",
36282	//   "httpMethod": "GET",
36283	//   "id": "apigee.organizations.hostQueries.getResult",
36284	//   "parameterOrder": [
36285	//     "name"
36286	//   ],
36287	//   "parameters": {
36288	//     "name": {
36289	//       "description": "Required. Name of the asynchronous query result to get. Must be of the form `organizations/{org}/queries/{queryId}/result`.",
36290	//       "location": "path",
36291	//       "pattern": "^organizations/[^/]+/hostQueries/[^/]+/result$",
36292	//       "required": true,
36293	//       "type": "string"
36294	//     }
36295	//   },
36296	//   "path": "v1/{+name}",
36297	//   "response": {
36298	//     "$ref": "GoogleApiHttpBody"
36299	//   },
36300	//   "scopes": [
36301	//     "https://www.googleapis.com/auth/cloud-platform"
36302	//   ]
36303	// }
36304
36305}
36306
36307// method id "apigee.organizations.hostQueries.getResultView":
36308
36309type OrganizationsHostQueriesGetResultViewCall struct {
36310	s            *Service
36311	name         string
36312	urlParams_   gensupport.URLParams
36313	ifNoneMatch_ string
36314	ctx_         context.Context
36315	header_      http.Header
36316}
36317
36318// GetResultView:
36319//
36320// - name: Name of the asynchronous query result view to get. Must be of
36321//   the form `organizations/{org}/queries/{queryId}/resultView`.
36322func (r *OrganizationsHostQueriesService) GetResultView(name string) *OrganizationsHostQueriesGetResultViewCall {
36323	c := &OrganizationsHostQueriesGetResultViewCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36324	c.name = name
36325	return c
36326}
36327
36328// Fields allows partial responses to be retrieved. See
36329// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
36330// for more information.
36331func (c *OrganizationsHostQueriesGetResultViewCall) Fields(s ...googleapi.Field) *OrganizationsHostQueriesGetResultViewCall {
36332	c.urlParams_.Set("fields", googleapi.CombineFields(s))
36333	return c
36334}
36335
36336// IfNoneMatch sets the optional parameter which makes the operation
36337// fail if the object's ETag matches the given value. This is useful for
36338// getting updates only after the object has changed since the last
36339// request. Use googleapi.IsNotModified to check whether the response
36340// error from Do is the result of In-None-Match.
36341func (c *OrganizationsHostQueriesGetResultViewCall) IfNoneMatch(entityTag string) *OrganizationsHostQueriesGetResultViewCall {
36342	c.ifNoneMatch_ = entityTag
36343	return c
36344}
36345
36346// Context sets the context to be used in this call's Do method. Any
36347// pending HTTP request will be aborted if the provided context is
36348// canceled.
36349func (c *OrganizationsHostQueriesGetResultViewCall) Context(ctx context.Context) *OrganizationsHostQueriesGetResultViewCall {
36350	c.ctx_ = ctx
36351	return c
36352}
36353
36354// Header returns an http.Header that can be modified by the caller to
36355// add HTTP headers to the request.
36356func (c *OrganizationsHostQueriesGetResultViewCall) Header() http.Header {
36357	if c.header_ == nil {
36358		c.header_ = make(http.Header)
36359	}
36360	return c.header_
36361}
36362
36363func (c *OrganizationsHostQueriesGetResultViewCall) doRequest(alt string) (*http.Response, error) {
36364	reqHeaders := make(http.Header)
36365	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
36366	for k, v := range c.header_ {
36367		reqHeaders[k] = v
36368	}
36369	reqHeaders.Set("User-Agent", c.s.userAgent())
36370	if c.ifNoneMatch_ != "" {
36371		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
36372	}
36373	var body io.Reader = nil
36374	c.urlParams_.Set("alt", alt)
36375	c.urlParams_.Set("prettyPrint", "false")
36376	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
36377	urls += "?" + c.urlParams_.Encode()
36378	req, err := http.NewRequest("GET", urls, body)
36379	if err != nil {
36380		return nil, err
36381	}
36382	req.Header = reqHeaders
36383	googleapi.Expand(req.URL, map[string]string{
36384		"name": c.name,
36385	})
36386	return gensupport.SendRequest(c.ctx_, c.s.client, req)
36387}
36388
36389// Do executes the "apigee.organizations.hostQueries.getResultView" call.
36390// Exactly one of *GoogleCloudApigeeV1AsyncQueryResultView or error will
36391// be non-nil. Any non-2xx status code is an error. Response headers are
36392// in either
36393// *GoogleCloudApigeeV1AsyncQueryResultView.ServerResponse.Header or (if
36394// a response was returned at all) in error.(*googleapi.Error).Header.
36395// Use googleapi.IsNotModified to check whether the returned error was
36396// because http.StatusNotModified was returned.
36397func (c *OrganizationsHostQueriesGetResultViewCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AsyncQueryResultView, error) {
36398	gensupport.SetOptions(c.urlParams_, opts...)
36399	res, err := c.doRequest("json")
36400	if res != nil && res.StatusCode == http.StatusNotModified {
36401		if res.Body != nil {
36402			res.Body.Close()
36403		}
36404		return nil, &googleapi.Error{
36405			Code:   res.StatusCode,
36406			Header: res.Header,
36407		}
36408	}
36409	if err != nil {
36410		return nil, err
36411	}
36412	defer googleapi.CloseBody(res)
36413	if err := googleapi.CheckResponse(res); err != nil {
36414		return nil, err
36415	}
36416	ret := &GoogleCloudApigeeV1AsyncQueryResultView{
36417		ServerResponse: googleapi.ServerResponse{
36418			Header:         res.Header,
36419			HTTPStatusCode: res.StatusCode,
36420		},
36421	}
36422	target := &ret
36423	if err := gensupport.DecodeResponse(target, res); err != nil {
36424		return nil, err
36425	}
36426	return ret, nil
36427	// {
36428	//   "description": "",
36429	//   "flatPath": "v1/organizations/{organizationsId}/hostQueries/{hostQueriesId}/resultView",
36430	//   "httpMethod": "GET",
36431	//   "id": "apigee.organizations.hostQueries.getResultView",
36432	//   "parameterOrder": [
36433	//     "name"
36434	//   ],
36435	//   "parameters": {
36436	//     "name": {
36437	//       "description": "Required. Name of the asynchronous query result view to get. Must be of the form `organizations/{org}/queries/{queryId}/resultView`.",
36438	//       "location": "path",
36439	//       "pattern": "^organizations/[^/]+/hostQueries/[^/]+/resultView$",
36440	//       "required": true,
36441	//       "type": "string"
36442	//     }
36443	//   },
36444	//   "path": "v1/{+name}",
36445	//   "response": {
36446	//     "$ref": "GoogleCloudApigeeV1AsyncQueryResultView"
36447	//   },
36448	//   "scopes": [
36449	//     "https://www.googleapis.com/auth/cloud-platform"
36450	//   ]
36451	// }
36452
36453}
36454
36455// method id "apigee.organizations.hostQueries.list":
36456
36457type OrganizationsHostQueriesListCall struct {
36458	s            *Service
36459	parent       string
36460	urlParams_   gensupport.URLParams
36461	ifNoneMatch_ string
36462	ctx_         context.Context
36463	header_      http.Header
36464}
36465
36466// List: Return a list of Asynchronous Queries at host level.
36467//
36468// - parent: The parent resource name. Must be of the form
36469//   `organizations/{org}`.
36470func (r *OrganizationsHostQueriesService) List(parent string) *OrganizationsHostQueriesListCall {
36471	c := &OrganizationsHostQueriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36472	c.parent = parent
36473	return c
36474}
36475
36476// Dataset sets the optional parameter "dataset": Filter response list
36477// by dataset. Example: `api`, `mint`
36478func (c *OrganizationsHostQueriesListCall) Dataset(dataset string) *OrganizationsHostQueriesListCall {
36479	c.urlParams_.Set("dataset", dataset)
36480	return c
36481}
36482
36483// EnvgroupHostname sets the optional parameter "envgroupHostname":
36484// Required. Filter response list by hostname.
36485func (c *OrganizationsHostQueriesListCall) EnvgroupHostname(envgroupHostname string) *OrganizationsHostQueriesListCall {
36486	c.urlParams_.Set("envgroupHostname", envgroupHostname)
36487	return c
36488}
36489
36490// From sets the optional parameter "from": Filter response list by
36491// returning asynchronous queries that created after this date time.
36492// Time must be in ISO date-time format like '2011-12-03T10:15:30Z'.
36493func (c *OrganizationsHostQueriesListCall) From(from string) *OrganizationsHostQueriesListCall {
36494	c.urlParams_.Set("from", from)
36495	return c
36496}
36497
36498// InclQueriesWithoutReport sets the optional parameter
36499// "inclQueriesWithoutReport": Flag to include asynchronous queries that
36500// don't have a report denifition.
36501func (c *OrganizationsHostQueriesListCall) InclQueriesWithoutReport(inclQueriesWithoutReport string) *OrganizationsHostQueriesListCall {
36502	c.urlParams_.Set("inclQueriesWithoutReport", inclQueriesWithoutReport)
36503	return c
36504}
36505
36506// Status sets the optional parameter "status": Filter response list by
36507// asynchronous query status.
36508func (c *OrganizationsHostQueriesListCall) Status(status string) *OrganizationsHostQueriesListCall {
36509	c.urlParams_.Set("status", status)
36510	return c
36511}
36512
36513// SubmittedBy sets the optional parameter "submittedBy": Filter
36514// response list by user who submitted queries.
36515func (c *OrganizationsHostQueriesListCall) SubmittedBy(submittedBy string) *OrganizationsHostQueriesListCall {
36516	c.urlParams_.Set("submittedBy", submittedBy)
36517	return c
36518}
36519
36520// To sets the optional parameter "to": Filter response list by
36521// returning asynchronous queries that created before this date time.
36522// Time must be in ISO date-time format like '2011-12-03T10:16:30Z'.
36523func (c *OrganizationsHostQueriesListCall) To(to string) *OrganizationsHostQueriesListCall {
36524	c.urlParams_.Set("to", to)
36525	return c
36526}
36527
36528// Fields allows partial responses to be retrieved. See
36529// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
36530// for more information.
36531func (c *OrganizationsHostQueriesListCall) Fields(s ...googleapi.Field) *OrganizationsHostQueriesListCall {
36532	c.urlParams_.Set("fields", googleapi.CombineFields(s))
36533	return c
36534}
36535
36536// IfNoneMatch sets the optional parameter which makes the operation
36537// fail if the object's ETag matches the given value. This is useful for
36538// getting updates only after the object has changed since the last
36539// request. Use googleapi.IsNotModified to check whether the response
36540// error from Do is the result of In-None-Match.
36541func (c *OrganizationsHostQueriesListCall) IfNoneMatch(entityTag string) *OrganizationsHostQueriesListCall {
36542	c.ifNoneMatch_ = entityTag
36543	return c
36544}
36545
36546// Context sets the context to be used in this call's Do method. Any
36547// pending HTTP request will be aborted if the provided context is
36548// canceled.
36549func (c *OrganizationsHostQueriesListCall) Context(ctx context.Context) *OrganizationsHostQueriesListCall {
36550	c.ctx_ = ctx
36551	return c
36552}
36553
36554// Header returns an http.Header that can be modified by the caller to
36555// add HTTP headers to the request.
36556func (c *OrganizationsHostQueriesListCall) Header() http.Header {
36557	if c.header_ == nil {
36558		c.header_ = make(http.Header)
36559	}
36560	return c.header_
36561}
36562
36563func (c *OrganizationsHostQueriesListCall) doRequest(alt string) (*http.Response, error) {
36564	reqHeaders := make(http.Header)
36565	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
36566	for k, v := range c.header_ {
36567		reqHeaders[k] = v
36568	}
36569	reqHeaders.Set("User-Agent", c.s.userAgent())
36570	if c.ifNoneMatch_ != "" {
36571		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
36572	}
36573	var body io.Reader = nil
36574	c.urlParams_.Set("alt", alt)
36575	c.urlParams_.Set("prettyPrint", "false")
36576	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/hostQueries")
36577	urls += "?" + c.urlParams_.Encode()
36578	req, err := http.NewRequest("GET", urls, body)
36579	if err != nil {
36580		return nil, err
36581	}
36582	req.Header = reqHeaders
36583	googleapi.Expand(req.URL, map[string]string{
36584		"parent": c.parent,
36585	})
36586	return gensupport.SendRequest(c.ctx_, c.s.client, req)
36587}
36588
36589// Do executes the "apigee.organizations.hostQueries.list" call.
36590// Exactly one of *GoogleCloudApigeeV1ListAsyncQueriesResponse or error
36591// will be non-nil. Any non-2xx status code is an error. Response
36592// headers are in either
36593// *GoogleCloudApigeeV1ListAsyncQueriesResponse.ServerResponse.Header or
36594// (if a response was returned at all) in
36595// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
36596// whether the returned error was because http.StatusNotModified was
36597// returned.
36598func (c *OrganizationsHostQueriesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListAsyncQueriesResponse, error) {
36599	gensupport.SetOptions(c.urlParams_, opts...)
36600	res, err := c.doRequest("json")
36601	if res != nil && res.StatusCode == http.StatusNotModified {
36602		if res.Body != nil {
36603			res.Body.Close()
36604		}
36605		return nil, &googleapi.Error{
36606			Code:   res.StatusCode,
36607			Header: res.Header,
36608		}
36609	}
36610	if err != nil {
36611		return nil, err
36612	}
36613	defer googleapi.CloseBody(res)
36614	if err := googleapi.CheckResponse(res); err != nil {
36615		return nil, err
36616	}
36617	ret := &GoogleCloudApigeeV1ListAsyncQueriesResponse{
36618		ServerResponse: googleapi.ServerResponse{
36619			Header:         res.Header,
36620			HTTPStatusCode: res.StatusCode,
36621		},
36622	}
36623	target := &ret
36624	if err := gensupport.DecodeResponse(target, res); err != nil {
36625		return nil, err
36626	}
36627	return ret, nil
36628	// {
36629	//   "description": "Return a list of Asynchronous Queries at host level.",
36630	//   "flatPath": "v1/organizations/{organizationsId}/hostQueries",
36631	//   "httpMethod": "GET",
36632	//   "id": "apigee.organizations.hostQueries.list",
36633	//   "parameterOrder": [
36634	//     "parent"
36635	//   ],
36636	//   "parameters": {
36637	//     "dataset": {
36638	//       "description": "Filter response list by dataset. Example: `api`, `mint`",
36639	//       "location": "query",
36640	//       "type": "string"
36641	//     },
36642	//     "envgroupHostname": {
36643	//       "description": "Required. Filter response list by hostname.",
36644	//       "location": "query",
36645	//       "type": "string"
36646	//     },
36647	//     "from": {
36648	//       "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'.",
36649	//       "location": "query",
36650	//       "type": "string"
36651	//     },
36652	//     "inclQueriesWithoutReport": {
36653	//       "description": "Flag to include asynchronous queries that don't have a report denifition.",
36654	//       "location": "query",
36655	//       "type": "string"
36656	//     },
36657	//     "parent": {
36658	//       "description": "Required. The parent resource name. Must be of the form `organizations/{org}`.",
36659	//       "location": "path",
36660	//       "pattern": "^organizations/[^/]+$",
36661	//       "required": true,
36662	//       "type": "string"
36663	//     },
36664	//     "status": {
36665	//       "description": "Filter response list by asynchronous query status.",
36666	//       "location": "query",
36667	//       "type": "string"
36668	//     },
36669	//     "submittedBy": {
36670	//       "description": "Filter response list by user who submitted queries.",
36671	//       "location": "query",
36672	//       "type": "string"
36673	//     },
36674	//     "to": {
36675	//       "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'.",
36676	//       "location": "query",
36677	//       "type": "string"
36678	//     }
36679	//   },
36680	//   "path": "v1/{+parent}/hostQueries",
36681	//   "response": {
36682	//     "$ref": "GoogleCloudApigeeV1ListAsyncQueriesResponse"
36683	//   },
36684	//   "scopes": [
36685	//     "https://www.googleapis.com/auth/cloud-platform"
36686	//   ]
36687	// }
36688
36689}
36690
36691// method id "apigee.organizations.hostStats.get":
36692
36693type OrganizationsHostStatsGetCall struct {
36694	s            *Service
36695	name         string
36696	urlParams_   gensupport.URLParams
36697	ifNoneMatch_ string
36698	ctx_         context.Context
36699	header_      http.Header
36700}
36701
36702// Get: Retrieve metrics grouped by dimensions in host level. The types
36703// of metrics you can retrieve include traffic, message counts, API call
36704// latency, response size, and cache hits and counts. Dimensions let you
36705// view metrics in meaningful groups. The stats api does accept
36706// dimensions as path params. The dimensions are optional in which case
36707// the metrics are computed on the entire data for the given timerange.
36708//
36709// - name: The resource name for which the interactive query will be
36710//   executed. Must be of the form
36711//   `organizations/{organization_id}/hostStats/{dimensions}`.
36712//   Dimensions let you view metrics in meaningful groupings. E.g.
36713//   apiproxy, target_host. The value of dimensions should be comma
36714//   separated list as shown below
36715//   `organizations/{org}/hostStats/apiproxy,request_verb`.
36716func (r *OrganizationsHostStatsService) Get(name string) *OrganizationsHostStatsGetCall {
36717	c := &OrganizationsHostStatsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36718	c.name = name
36719	return c
36720}
36721
36722// Accuracy sets the optional parameter "accuracy": Legacy field: not
36723// used anymore.
36724func (c *OrganizationsHostStatsGetCall) Accuracy(accuracy string) *OrganizationsHostStatsGetCall {
36725	c.urlParams_.Set("accuracy", accuracy)
36726	return c
36727}
36728
36729// EnvgroupHostname sets the optional parameter "envgroupHostname":
36730// Required. The hostname for which the interactive query will be
36731// executed.
36732func (c *OrganizationsHostStatsGetCall) EnvgroupHostname(envgroupHostname string) *OrganizationsHostStatsGetCall {
36733	c.urlParams_.Set("envgroupHostname", envgroupHostname)
36734	return c
36735}
36736
36737// Filter sets the optional parameter "filter": Enables drill-down on
36738// specific dimension values.
36739func (c *OrganizationsHostStatsGetCall) Filter(filter string) *OrganizationsHostStatsGetCall {
36740	c.urlParams_.Set("filter", filter)
36741	return c
36742}
36743
36744// Limit sets the optional parameter "limit": This parameter is used to
36745// limit the number of result items. Default and the max value is 14400.
36746func (c *OrganizationsHostStatsGetCall) Limit(limit string) *OrganizationsHostStatsGetCall {
36747	c.urlParams_.Set("limit", limit)
36748	return c
36749}
36750
36751// Offset sets the optional parameter "offset": Use offset with limit to
36752// enable pagination of results. For example, to display results 11-20,
36753// set limit to '10' and offset to '10'.
36754func (c *OrganizationsHostStatsGetCall) Offset(offset string) *OrganizationsHostStatsGetCall {
36755	c.urlParams_.Set("offset", offset)
36756	return c
36757}
36758
36759// Realtime sets the optional parameter "realtime": Legacy field: not
36760// used anymore.
36761func (c *OrganizationsHostStatsGetCall) Realtime(realtime bool) *OrganizationsHostStatsGetCall {
36762	c.urlParams_.Set("realtime", fmt.Sprint(realtime))
36763	return c
36764}
36765
36766// Select sets the optional parameter "select": The select parameter
36767// contains a comma separated list of metrics. E.g.
36768// sum(message_count),sum(error_count)
36769func (c *OrganizationsHostStatsGetCall) Select(select_ string) *OrganizationsHostStatsGetCall {
36770	c.urlParams_.Set("select", select_)
36771	return c
36772}
36773
36774// Sort sets the optional parameter "sort": This parameter specifies if
36775// the sort order should be ascending or descending Supported values are
36776// DESC and ASC.
36777func (c *OrganizationsHostStatsGetCall) Sort(sort string) *OrganizationsHostStatsGetCall {
36778	c.urlParams_.Set("sort", sort)
36779	return c
36780}
36781
36782// Sortby sets the optional parameter "sortby": Comma separated list of
36783// columns to sort the final result.
36784func (c *OrganizationsHostStatsGetCall) Sortby(sortby string) *OrganizationsHostStatsGetCall {
36785	c.urlParams_.Set("sortby", sortby)
36786	return c
36787}
36788
36789// TimeRange sets the optional parameter "timeRange": Time interval for
36790// the interactive query. Time range is specified as start~end E.g.
36791// 04/15/2017 00:00~05/15/2017 23:59
36792func (c *OrganizationsHostStatsGetCall) TimeRange(timeRange string) *OrganizationsHostStatsGetCall {
36793	c.urlParams_.Set("timeRange", timeRange)
36794	return c
36795}
36796
36797// TimeUnit sets the optional parameter "timeUnit": A value of second,
36798// minute, hour, day, week, month. Time Unit specifies the granularity
36799// of metrics returned.
36800func (c *OrganizationsHostStatsGetCall) TimeUnit(timeUnit string) *OrganizationsHostStatsGetCall {
36801	c.urlParams_.Set("timeUnit", timeUnit)
36802	return c
36803}
36804
36805// Topk sets the optional parameter "topk": Take 'top k' results from
36806// results, for example, to return the top 5 results 'topk=5'.
36807func (c *OrganizationsHostStatsGetCall) Topk(topk string) *OrganizationsHostStatsGetCall {
36808	c.urlParams_.Set("topk", topk)
36809	return c
36810}
36811
36812// TsAscending sets the optional parameter "tsAscending": Lists
36813// timestamps in ascending order if set to true. Recommend setting this
36814// value to true if you are using sortby with sort=DESC.
36815func (c *OrganizationsHostStatsGetCall) TsAscending(tsAscending bool) *OrganizationsHostStatsGetCall {
36816	c.urlParams_.Set("tsAscending", fmt.Sprint(tsAscending))
36817	return c
36818}
36819
36820// Tzo sets the optional parameter "tzo": This parameters contains the
36821// timezone offset value.
36822func (c *OrganizationsHostStatsGetCall) Tzo(tzo string) *OrganizationsHostStatsGetCall {
36823	c.urlParams_.Set("tzo", tzo)
36824	return c
36825}
36826
36827// Fields allows partial responses to be retrieved. See
36828// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
36829// for more information.
36830func (c *OrganizationsHostStatsGetCall) Fields(s ...googleapi.Field) *OrganizationsHostStatsGetCall {
36831	c.urlParams_.Set("fields", googleapi.CombineFields(s))
36832	return c
36833}
36834
36835// IfNoneMatch sets the optional parameter which makes the operation
36836// fail if the object's ETag matches the given value. This is useful for
36837// getting updates only after the object has changed since the last
36838// request. Use googleapi.IsNotModified to check whether the response
36839// error from Do is the result of In-None-Match.
36840func (c *OrganizationsHostStatsGetCall) IfNoneMatch(entityTag string) *OrganizationsHostStatsGetCall {
36841	c.ifNoneMatch_ = entityTag
36842	return c
36843}
36844
36845// Context sets the context to be used in this call's Do method. Any
36846// pending HTTP request will be aborted if the provided context is
36847// canceled.
36848func (c *OrganizationsHostStatsGetCall) Context(ctx context.Context) *OrganizationsHostStatsGetCall {
36849	c.ctx_ = ctx
36850	return c
36851}
36852
36853// Header returns an http.Header that can be modified by the caller to
36854// add HTTP headers to the request.
36855func (c *OrganizationsHostStatsGetCall) Header() http.Header {
36856	if c.header_ == nil {
36857		c.header_ = make(http.Header)
36858	}
36859	return c.header_
36860}
36861
36862func (c *OrganizationsHostStatsGetCall) doRequest(alt string) (*http.Response, error) {
36863	reqHeaders := make(http.Header)
36864	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
36865	for k, v := range c.header_ {
36866		reqHeaders[k] = v
36867	}
36868	reqHeaders.Set("User-Agent", c.s.userAgent())
36869	if c.ifNoneMatch_ != "" {
36870		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
36871	}
36872	var body io.Reader = nil
36873	c.urlParams_.Set("alt", alt)
36874	c.urlParams_.Set("prettyPrint", "false")
36875	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
36876	urls += "?" + c.urlParams_.Encode()
36877	req, err := http.NewRequest("GET", urls, body)
36878	if err != nil {
36879		return nil, err
36880	}
36881	req.Header = reqHeaders
36882	googleapi.Expand(req.URL, map[string]string{
36883		"name": c.name,
36884	})
36885	return gensupport.SendRequest(c.ctx_, c.s.client, req)
36886}
36887
36888// Do executes the "apigee.organizations.hostStats.get" call.
36889// Exactly one of *GoogleCloudApigeeV1Stats or error will be non-nil.
36890// Any non-2xx status code is an error. Response headers are in either
36891// *GoogleCloudApigeeV1Stats.ServerResponse.Header or (if a response was
36892// returned at all) in error.(*googleapi.Error).Header. Use
36893// googleapi.IsNotModified to check whether the returned error was
36894// because http.StatusNotModified was returned.
36895func (c *OrganizationsHostStatsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Stats, error) {
36896	gensupport.SetOptions(c.urlParams_, opts...)
36897	res, err := c.doRequest("json")
36898	if res != nil && res.StatusCode == http.StatusNotModified {
36899		if res.Body != nil {
36900			res.Body.Close()
36901		}
36902		return nil, &googleapi.Error{
36903			Code:   res.StatusCode,
36904			Header: res.Header,
36905		}
36906	}
36907	if err != nil {
36908		return nil, err
36909	}
36910	defer googleapi.CloseBody(res)
36911	if err := googleapi.CheckResponse(res); err != nil {
36912		return nil, err
36913	}
36914	ret := &GoogleCloudApigeeV1Stats{
36915		ServerResponse: googleapi.ServerResponse{
36916			Header:         res.Header,
36917			HTTPStatusCode: res.StatusCode,
36918		},
36919	}
36920	target := &ret
36921	if err := gensupport.DecodeResponse(target, res); err != nil {
36922		return nil, err
36923	}
36924	return ret, nil
36925	// {
36926	//   "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.",
36927	//   "flatPath": "v1/organizations/{organizationsId}/hostStats/{hostStatsId}",
36928	//   "httpMethod": "GET",
36929	//   "id": "apigee.organizations.hostStats.get",
36930	//   "parameterOrder": [
36931	//     "name"
36932	//   ],
36933	//   "parameters": {
36934	//     "accuracy": {
36935	//       "description": "Legacy field: not used anymore.",
36936	//       "location": "query",
36937	//       "type": "string"
36938	//     },
36939	//     "envgroupHostname": {
36940	//       "description": "Required. The hostname for which the interactive query will be executed.",
36941	//       "location": "query",
36942	//       "type": "string"
36943	//     },
36944	//     "filter": {
36945	//       "description": "Enables drill-down on specific dimension values.",
36946	//       "location": "query",
36947	//       "type": "string"
36948	//     },
36949	//     "limit": {
36950	//       "description": "This parameter is used to limit the number of result items. Default and the max value is 14400.",
36951	//       "location": "query",
36952	//       "type": "string"
36953	//     },
36954	//     "name": {
36955	//       "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`",
36956	//       "location": "path",
36957	//       "pattern": "^organizations/[^/]+/hostStats/.*$",
36958	//       "required": true,
36959	//       "type": "string"
36960	//     },
36961	//     "offset": {
36962	//       "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'.",
36963	//       "location": "query",
36964	//       "type": "string"
36965	//     },
36966	//     "realtime": {
36967	//       "description": "Legacy field: not used anymore.",
36968	//       "location": "query",
36969	//       "type": "boolean"
36970	//     },
36971	//     "select": {
36972	//       "description": "The select parameter contains a comma separated list of metrics. E.g. sum(message_count),sum(error_count)",
36973	//       "location": "query",
36974	//       "type": "string"
36975	//     },
36976	//     "sort": {
36977	//       "description": "This parameter specifies if the sort order should be ascending or descending Supported values are DESC and ASC.",
36978	//       "location": "query",
36979	//       "type": "string"
36980	//     },
36981	//     "sortby": {
36982	//       "description": "Comma separated list of columns to sort the final result.",
36983	//       "location": "query",
36984	//       "type": "string"
36985	//     },
36986	//     "timeRange": {
36987	//       "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",
36988	//       "location": "query",
36989	//       "type": "string"
36990	//     },
36991	//     "timeUnit": {
36992	//       "description": "A value of second, minute, hour, day, week, month. Time Unit specifies the granularity of metrics returned.",
36993	//       "location": "query",
36994	//       "type": "string"
36995	//     },
36996	//     "topk": {
36997	//       "description": "Take 'top k' results from results, for example, to return the top 5 results 'topk=5'.",
36998	//       "location": "query",
36999	//       "type": "string"
37000	//     },
37001	//     "tsAscending": {
37002	//       "description": "Lists timestamps in ascending order if set to true. Recommend setting this value to true if you are using sortby with sort=DESC.",
37003	//       "location": "query",
37004	//       "type": "boolean"
37005	//     },
37006	//     "tzo": {
37007	//       "description": "This parameters contains the timezone offset value.",
37008	//       "location": "query",
37009	//       "type": "string"
37010	//     }
37011	//   },
37012	//   "path": "v1/{+name}",
37013	//   "response": {
37014	//     "$ref": "GoogleCloudApigeeV1Stats"
37015	//   },
37016	//   "scopes": [
37017	//     "https://www.googleapis.com/auth/cloud-platform"
37018	//   ]
37019	// }
37020
37021}
37022
37023// method id "apigee.organizations.instances.create":
37024
37025type OrganizationsInstancesCreateCall struct {
37026	s                           *Service
37027	parent                      string
37028	googlecloudapigeev1instance *GoogleCloudApigeeV1Instance
37029	urlParams_                  gensupport.URLParams
37030	ctx_                        context.Context
37031	header_                     http.Header
37032}
37033
37034// Create: Creates an Apigee runtime instance. The instance is
37035// accessible from the authorized network configured on the
37036// organization. **Note:** Not supported for Apigee hybrid.
37037//
37038// - parent: Name of the organization. Use the following structure in
37039//   your request: `organizations/{org}`.
37040func (r *OrganizationsInstancesService) Create(parent string, googlecloudapigeev1instance *GoogleCloudApigeeV1Instance) *OrganizationsInstancesCreateCall {
37041	c := &OrganizationsInstancesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37042	c.parent = parent
37043	c.googlecloudapigeev1instance = googlecloudapigeev1instance
37044	return c
37045}
37046
37047// Environments sets the optional parameter "environments": List of
37048// environments that will be attached to the instance during creation.
37049func (c *OrganizationsInstancesCreateCall) Environments(environments ...string) *OrganizationsInstancesCreateCall {
37050	c.urlParams_.SetMulti("environments", append([]string{}, environments...))
37051	return c
37052}
37053
37054// Fields allows partial responses to be retrieved. See
37055// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
37056// for more information.
37057func (c *OrganizationsInstancesCreateCall) Fields(s ...googleapi.Field) *OrganizationsInstancesCreateCall {
37058	c.urlParams_.Set("fields", googleapi.CombineFields(s))
37059	return c
37060}
37061
37062// Context sets the context to be used in this call's Do method. Any
37063// pending HTTP request will be aborted if the provided context is
37064// canceled.
37065func (c *OrganizationsInstancesCreateCall) Context(ctx context.Context) *OrganizationsInstancesCreateCall {
37066	c.ctx_ = ctx
37067	return c
37068}
37069
37070// Header returns an http.Header that can be modified by the caller to
37071// add HTTP headers to the request.
37072func (c *OrganizationsInstancesCreateCall) Header() http.Header {
37073	if c.header_ == nil {
37074		c.header_ = make(http.Header)
37075	}
37076	return c.header_
37077}
37078
37079func (c *OrganizationsInstancesCreateCall) doRequest(alt string) (*http.Response, error) {
37080	reqHeaders := make(http.Header)
37081	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
37082	for k, v := range c.header_ {
37083		reqHeaders[k] = v
37084	}
37085	reqHeaders.Set("User-Agent", c.s.userAgent())
37086	var body io.Reader = nil
37087	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1instance)
37088	if err != nil {
37089		return nil, err
37090	}
37091	reqHeaders.Set("Content-Type", "application/json")
37092	c.urlParams_.Set("alt", alt)
37093	c.urlParams_.Set("prettyPrint", "false")
37094	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/instances")
37095	urls += "?" + c.urlParams_.Encode()
37096	req, err := http.NewRequest("POST", urls, body)
37097	if err != nil {
37098		return nil, err
37099	}
37100	req.Header = reqHeaders
37101	googleapi.Expand(req.URL, map[string]string{
37102		"parent": c.parent,
37103	})
37104	return gensupport.SendRequest(c.ctx_, c.s.client, req)
37105}
37106
37107// Do executes the "apigee.organizations.instances.create" call.
37108// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
37109// Any non-2xx status code is an error. Response headers are in either
37110// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
37111// was returned at all) in error.(*googleapi.Error).Header. Use
37112// googleapi.IsNotModified to check whether the returned error was
37113// because http.StatusNotModified was returned.
37114func (c *OrganizationsInstancesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
37115	gensupport.SetOptions(c.urlParams_, opts...)
37116	res, err := c.doRequest("json")
37117	if res != nil && res.StatusCode == http.StatusNotModified {
37118		if res.Body != nil {
37119			res.Body.Close()
37120		}
37121		return nil, &googleapi.Error{
37122			Code:   res.StatusCode,
37123			Header: res.Header,
37124		}
37125	}
37126	if err != nil {
37127		return nil, err
37128	}
37129	defer googleapi.CloseBody(res)
37130	if err := googleapi.CheckResponse(res); err != nil {
37131		return nil, err
37132	}
37133	ret := &GoogleLongrunningOperation{
37134		ServerResponse: googleapi.ServerResponse{
37135			Header:         res.Header,
37136			HTTPStatusCode: res.StatusCode,
37137		},
37138	}
37139	target := &ret
37140	if err := gensupport.DecodeResponse(target, res); err != nil {
37141		return nil, err
37142	}
37143	return ret, nil
37144	// {
37145	//   "description": "Creates an Apigee runtime instance. The instance is accessible from the authorized network configured on the organization. **Note:** Not supported for Apigee hybrid.",
37146	//   "flatPath": "v1/organizations/{organizationsId}/instances",
37147	//   "httpMethod": "POST",
37148	//   "id": "apigee.organizations.instances.create",
37149	//   "parameterOrder": [
37150	//     "parent"
37151	//   ],
37152	//   "parameters": {
37153	//     "environments": {
37154	//       "description": "Optional. List of environments that will be attached to the instance during creation.",
37155	//       "location": "query",
37156	//       "repeated": true,
37157	//       "type": "string"
37158	//     },
37159	//     "parent": {
37160	//       "description": "Required. Name of the organization. Use the following structure in your request: `organizations/{org}`.",
37161	//       "location": "path",
37162	//       "pattern": "^organizations/[^/]+$",
37163	//       "required": true,
37164	//       "type": "string"
37165	//     }
37166	//   },
37167	//   "path": "v1/{+parent}/instances",
37168	//   "request": {
37169	//     "$ref": "GoogleCloudApigeeV1Instance"
37170	//   },
37171	//   "response": {
37172	//     "$ref": "GoogleLongrunningOperation"
37173	//   },
37174	//   "scopes": [
37175	//     "https://www.googleapis.com/auth/cloud-platform"
37176	//   ]
37177	// }
37178
37179}
37180
37181// method id "apigee.organizations.instances.delete":
37182
37183type OrganizationsInstancesDeleteCall struct {
37184	s          *Service
37185	name       string
37186	urlParams_ gensupport.URLParams
37187	ctx_       context.Context
37188	header_    http.Header
37189}
37190
37191// Delete: Deletes an Apigee runtime instance. The instance stops
37192// serving requests and the runtime data is deleted. **Note:** Not
37193// supported for Apigee hybrid.
37194//
37195// - name: Name of the instance. Use the following structure in your
37196//   request: `organizations/{org}/instances/{instance}`.
37197func (r *OrganizationsInstancesService) Delete(name string) *OrganizationsInstancesDeleteCall {
37198	c := &OrganizationsInstancesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37199	c.name = name
37200	return c
37201}
37202
37203// Fields allows partial responses to be retrieved. See
37204// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
37205// for more information.
37206func (c *OrganizationsInstancesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsInstancesDeleteCall {
37207	c.urlParams_.Set("fields", googleapi.CombineFields(s))
37208	return c
37209}
37210
37211// Context sets the context to be used in this call's Do method. Any
37212// pending HTTP request will be aborted if the provided context is
37213// canceled.
37214func (c *OrganizationsInstancesDeleteCall) Context(ctx context.Context) *OrganizationsInstancesDeleteCall {
37215	c.ctx_ = ctx
37216	return c
37217}
37218
37219// Header returns an http.Header that can be modified by the caller to
37220// add HTTP headers to the request.
37221func (c *OrganizationsInstancesDeleteCall) Header() http.Header {
37222	if c.header_ == nil {
37223		c.header_ = make(http.Header)
37224	}
37225	return c.header_
37226}
37227
37228func (c *OrganizationsInstancesDeleteCall) doRequest(alt string) (*http.Response, error) {
37229	reqHeaders := make(http.Header)
37230	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
37231	for k, v := range c.header_ {
37232		reqHeaders[k] = v
37233	}
37234	reqHeaders.Set("User-Agent", c.s.userAgent())
37235	var body io.Reader = nil
37236	c.urlParams_.Set("alt", alt)
37237	c.urlParams_.Set("prettyPrint", "false")
37238	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
37239	urls += "?" + c.urlParams_.Encode()
37240	req, err := http.NewRequest("DELETE", urls, body)
37241	if err != nil {
37242		return nil, err
37243	}
37244	req.Header = reqHeaders
37245	googleapi.Expand(req.URL, map[string]string{
37246		"name": c.name,
37247	})
37248	return gensupport.SendRequest(c.ctx_, c.s.client, req)
37249}
37250
37251// Do executes the "apigee.organizations.instances.delete" call.
37252// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
37253// Any non-2xx status code is an error. Response headers are in either
37254// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
37255// was returned at all) in error.(*googleapi.Error).Header. Use
37256// googleapi.IsNotModified to check whether the returned error was
37257// because http.StatusNotModified was returned.
37258func (c *OrganizationsInstancesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
37259	gensupport.SetOptions(c.urlParams_, opts...)
37260	res, err := c.doRequest("json")
37261	if res != nil && res.StatusCode == http.StatusNotModified {
37262		if res.Body != nil {
37263			res.Body.Close()
37264		}
37265		return nil, &googleapi.Error{
37266			Code:   res.StatusCode,
37267			Header: res.Header,
37268		}
37269	}
37270	if err != nil {
37271		return nil, err
37272	}
37273	defer googleapi.CloseBody(res)
37274	if err := googleapi.CheckResponse(res); err != nil {
37275		return nil, err
37276	}
37277	ret := &GoogleLongrunningOperation{
37278		ServerResponse: googleapi.ServerResponse{
37279			Header:         res.Header,
37280			HTTPStatusCode: res.StatusCode,
37281		},
37282	}
37283	target := &ret
37284	if err := gensupport.DecodeResponse(target, res); err != nil {
37285		return nil, err
37286	}
37287	return ret, nil
37288	// {
37289	//   "description": "Deletes an Apigee runtime instance. The instance stops serving requests and the runtime data is deleted. **Note:** Not supported for Apigee hybrid.",
37290	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}",
37291	//   "httpMethod": "DELETE",
37292	//   "id": "apigee.organizations.instances.delete",
37293	//   "parameterOrder": [
37294	//     "name"
37295	//   ],
37296	//   "parameters": {
37297	//     "name": {
37298	//       "description": "Required. Name of the instance. Use the following structure in your request: `organizations/{org}/instances/{instance}`.",
37299	//       "location": "path",
37300	//       "pattern": "^organizations/[^/]+/instances/[^/]+$",
37301	//       "required": true,
37302	//       "type": "string"
37303	//     }
37304	//   },
37305	//   "path": "v1/{+name}",
37306	//   "response": {
37307	//     "$ref": "GoogleLongrunningOperation"
37308	//   },
37309	//   "scopes": [
37310	//     "https://www.googleapis.com/auth/cloud-platform"
37311	//   ]
37312	// }
37313
37314}
37315
37316// method id "apigee.organizations.instances.get":
37317
37318type OrganizationsInstancesGetCall struct {
37319	s            *Service
37320	name         string
37321	urlParams_   gensupport.URLParams
37322	ifNoneMatch_ string
37323	ctx_         context.Context
37324	header_      http.Header
37325}
37326
37327// Get: Gets the details for an Apigee runtime instance. **Note:** Not
37328// supported for Apigee hybrid.
37329//
37330// - name: Name of the instance. Use the following structure in your
37331//   request: `organizations/{org}/instances/{instance}`.
37332func (r *OrganizationsInstancesService) Get(name string) *OrganizationsInstancesGetCall {
37333	c := &OrganizationsInstancesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37334	c.name = name
37335	return c
37336}
37337
37338// Fields allows partial responses to be retrieved. See
37339// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
37340// for more information.
37341func (c *OrganizationsInstancesGetCall) Fields(s ...googleapi.Field) *OrganizationsInstancesGetCall {
37342	c.urlParams_.Set("fields", googleapi.CombineFields(s))
37343	return c
37344}
37345
37346// IfNoneMatch sets the optional parameter which makes the operation
37347// fail if the object's ETag matches the given value. This is useful for
37348// getting updates only after the object has changed since the last
37349// request. Use googleapi.IsNotModified to check whether the response
37350// error from Do is the result of In-None-Match.
37351func (c *OrganizationsInstancesGetCall) IfNoneMatch(entityTag string) *OrganizationsInstancesGetCall {
37352	c.ifNoneMatch_ = entityTag
37353	return c
37354}
37355
37356// Context sets the context to be used in this call's Do method. Any
37357// pending HTTP request will be aborted if the provided context is
37358// canceled.
37359func (c *OrganizationsInstancesGetCall) Context(ctx context.Context) *OrganizationsInstancesGetCall {
37360	c.ctx_ = ctx
37361	return c
37362}
37363
37364// Header returns an http.Header that can be modified by the caller to
37365// add HTTP headers to the request.
37366func (c *OrganizationsInstancesGetCall) Header() http.Header {
37367	if c.header_ == nil {
37368		c.header_ = make(http.Header)
37369	}
37370	return c.header_
37371}
37372
37373func (c *OrganizationsInstancesGetCall) doRequest(alt string) (*http.Response, error) {
37374	reqHeaders := make(http.Header)
37375	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
37376	for k, v := range c.header_ {
37377		reqHeaders[k] = v
37378	}
37379	reqHeaders.Set("User-Agent", c.s.userAgent())
37380	if c.ifNoneMatch_ != "" {
37381		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
37382	}
37383	var body io.Reader = nil
37384	c.urlParams_.Set("alt", alt)
37385	c.urlParams_.Set("prettyPrint", "false")
37386	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
37387	urls += "?" + c.urlParams_.Encode()
37388	req, err := http.NewRequest("GET", urls, body)
37389	if err != nil {
37390		return nil, err
37391	}
37392	req.Header = reqHeaders
37393	googleapi.Expand(req.URL, map[string]string{
37394		"name": c.name,
37395	})
37396	return gensupport.SendRequest(c.ctx_, c.s.client, req)
37397}
37398
37399// Do executes the "apigee.organizations.instances.get" call.
37400// Exactly one of *GoogleCloudApigeeV1Instance or error will be non-nil.
37401// Any non-2xx status code is an error. Response headers are in either
37402// *GoogleCloudApigeeV1Instance.ServerResponse.Header or (if a response
37403// was returned at all) in error.(*googleapi.Error).Header. Use
37404// googleapi.IsNotModified to check whether the returned error was
37405// because http.StatusNotModified was returned.
37406func (c *OrganizationsInstancesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Instance, error) {
37407	gensupport.SetOptions(c.urlParams_, opts...)
37408	res, err := c.doRequest("json")
37409	if res != nil && res.StatusCode == http.StatusNotModified {
37410		if res.Body != nil {
37411			res.Body.Close()
37412		}
37413		return nil, &googleapi.Error{
37414			Code:   res.StatusCode,
37415			Header: res.Header,
37416		}
37417	}
37418	if err != nil {
37419		return nil, err
37420	}
37421	defer googleapi.CloseBody(res)
37422	if err := googleapi.CheckResponse(res); err != nil {
37423		return nil, err
37424	}
37425	ret := &GoogleCloudApigeeV1Instance{
37426		ServerResponse: googleapi.ServerResponse{
37427			Header:         res.Header,
37428			HTTPStatusCode: res.StatusCode,
37429		},
37430	}
37431	target := &ret
37432	if err := gensupport.DecodeResponse(target, res); err != nil {
37433		return nil, err
37434	}
37435	return ret, nil
37436	// {
37437	//   "description": "Gets the details for an Apigee runtime instance. **Note:** Not supported for Apigee hybrid.",
37438	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}",
37439	//   "httpMethod": "GET",
37440	//   "id": "apigee.organizations.instances.get",
37441	//   "parameterOrder": [
37442	//     "name"
37443	//   ],
37444	//   "parameters": {
37445	//     "name": {
37446	//       "description": "Required. Name of the instance. Use the following structure in your request: `organizations/{org}/instances/{instance}`.",
37447	//       "location": "path",
37448	//       "pattern": "^organizations/[^/]+/instances/[^/]+$",
37449	//       "required": true,
37450	//       "type": "string"
37451	//     }
37452	//   },
37453	//   "path": "v1/{+name}",
37454	//   "response": {
37455	//     "$ref": "GoogleCloudApigeeV1Instance"
37456	//   },
37457	//   "scopes": [
37458	//     "https://www.googleapis.com/auth/cloud-platform"
37459	//   ]
37460	// }
37461
37462}
37463
37464// method id "apigee.organizations.instances.list":
37465
37466type OrganizationsInstancesListCall struct {
37467	s            *Service
37468	parent       string
37469	urlParams_   gensupport.URLParams
37470	ifNoneMatch_ string
37471	ctx_         context.Context
37472	header_      http.Header
37473}
37474
37475// List: Lists all Apigee runtime instances for the organization.
37476// **Note:** Not supported for Apigee hybrid.
37477//
37478// - parent: Name of the organization. Use the following structure in
37479//   your request: `organizations/{org}`.
37480func (r *OrganizationsInstancesService) List(parent string) *OrganizationsInstancesListCall {
37481	c := &OrganizationsInstancesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37482	c.parent = parent
37483	return c
37484}
37485
37486// PageSize sets the optional parameter "pageSize": Maximum number of
37487// instances to return. Defaults to 25.
37488func (c *OrganizationsInstancesListCall) PageSize(pageSize int64) *OrganizationsInstancesListCall {
37489	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
37490	return c
37491}
37492
37493// PageToken sets the optional parameter "pageToken": Page token,
37494// returned from a previous ListInstances call, that you can use to
37495// retrieve the next page of content.
37496func (c *OrganizationsInstancesListCall) PageToken(pageToken string) *OrganizationsInstancesListCall {
37497	c.urlParams_.Set("pageToken", pageToken)
37498	return c
37499}
37500
37501// Fields allows partial responses to be retrieved. See
37502// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
37503// for more information.
37504func (c *OrganizationsInstancesListCall) Fields(s ...googleapi.Field) *OrganizationsInstancesListCall {
37505	c.urlParams_.Set("fields", googleapi.CombineFields(s))
37506	return c
37507}
37508
37509// IfNoneMatch sets the optional parameter which makes the operation
37510// fail if the object's ETag matches the given value. This is useful for
37511// getting updates only after the object has changed since the last
37512// request. Use googleapi.IsNotModified to check whether the response
37513// error from Do is the result of In-None-Match.
37514func (c *OrganizationsInstancesListCall) IfNoneMatch(entityTag string) *OrganizationsInstancesListCall {
37515	c.ifNoneMatch_ = entityTag
37516	return c
37517}
37518
37519// Context sets the context to be used in this call's Do method. Any
37520// pending HTTP request will be aborted if the provided context is
37521// canceled.
37522func (c *OrganizationsInstancesListCall) Context(ctx context.Context) *OrganizationsInstancesListCall {
37523	c.ctx_ = ctx
37524	return c
37525}
37526
37527// Header returns an http.Header that can be modified by the caller to
37528// add HTTP headers to the request.
37529func (c *OrganizationsInstancesListCall) Header() http.Header {
37530	if c.header_ == nil {
37531		c.header_ = make(http.Header)
37532	}
37533	return c.header_
37534}
37535
37536func (c *OrganizationsInstancesListCall) doRequest(alt string) (*http.Response, error) {
37537	reqHeaders := make(http.Header)
37538	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
37539	for k, v := range c.header_ {
37540		reqHeaders[k] = v
37541	}
37542	reqHeaders.Set("User-Agent", c.s.userAgent())
37543	if c.ifNoneMatch_ != "" {
37544		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
37545	}
37546	var body io.Reader = nil
37547	c.urlParams_.Set("alt", alt)
37548	c.urlParams_.Set("prettyPrint", "false")
37549	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/instances")
37550	urls += "?" + c.urlParams_.Encode()
37551	req, err := http.NewRequest("GET", urls, body)
37552	if err != nil {
37553		return nil, err
37554	}
37555	req.Header = reqHeaders
37556	googleapi.Expand(req.URL, map[string]string{
37557		"parent": c.parent,
37558	})
37559	return gensupport.SendRequest(c.ctx_, c.s.client, req)
37560}
37561
37562// Do executes the "apigee.organizations.instances.list" call.
37563// Exactly one of *GoogleCloudApigeeV1ListInstancesResponse or error
37564// will be non-nil. Any non-2xx status code is an error. Response
37565// headers are in either
37566// *GoogleCloudApigeeV1ListInstancesResponse.ServerResponse.Header or
37567// (if a response was returned at all) in
37568// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
37569// whether the returned error was because http.StatusNotModified was
37570// returned.
37571func (c *OrganizationsInstancesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListInstancesResponse, error) {
37572	gensupport.SetOptions(c.urlParams_, opts...)
37573	res, err := c.doRequest("json")
37574	if res != nil && res.StatusCode == http.StatusNotModified {
37575		if res.Body != nil {
37576			res.Body.Close()
37577		}
37578		return nil, &googleapi.Error{
37579			Code:   res.StatusCode,
37580			Header: res.Header,
37581		}
37582	}
37583	if err != nil {
37584		return nil, err
37585	}
37586	defer googleapi.CloseBody(res)
37587	if err := googleapi.CheckResponse(res); err != nil {
37588		return nil, err
37589	}
37590	ret := &GoogleCloudApigeeV1ListInstancesResponse{
37591		ServerResponse: googleapi.ServerResponse{
37592			Header:         res.Header,
37593			HTTPStatusCode: res.StatusCode,
37594		},
37595	}
37596	target := &ret
37597	if err := gensupport.DecodeResponse(target, res); err != nil {
37598		return nil, err
37599	}
37600	return ret, nil
37601	// {
37602	//   "description": "Lists all Apigee runtime instances for the organization. **Note:** Not supported for Apigee hybrid.",
37603	//   "flatPath": "v1/organizations/{organizationsId}/instances",
37604	//   "httpMethod": "GET",
37605	//   "id": "apigee.organizations.instances.list",
37606	//   "parameterOrder": [
37607	//     "parent"
37608	//   ],
37609	//   "parameters": {
37610	//     "pageSize": {
37611	//       "description": "Maximum number of instances to return. Defaults to 25.",
37612	//       "format": "int32",
37613	//       "location": "query",
37614	//       "type": "integer"
37615	//     },
37616	//     "pageToken": {
37617	//       "description": "Page token, returned from a previous ListInstances call, that you can use to retrieve the next page of content.",
37618	//       "location": "query",
37619	//       "type": "string"
37620	//     },
37621	//     "parent": {
37622	//       "description": "Required. Name of the organization. Use the following structure in your request: `organizations/{org}`.",
37623	//       "location": "path",
37624	//       "pattern": "^organizations/[^/]+$",
37625	//       "required": true,
37626	//       "type": "string"
37627	//     }
37628	//   },
37629	//   "path": "v1/{+parent}/instances",
37630	//   "response": {
37631	//     "$ref": "GoogleCloudApigeeV1ListInstancesResponse"
37632	//   },
37633	//   "scopes": [
37634	//     "https://www.googleapis.com/auth/cloud-platform"
37635	//   ]
37636	// }
37637
37638}
37639
37640// Pages invokes f for each page of results.
37641// A non-nil error returned from f will halt the iteration.
37642// The provided context supersedes any context provided to the Context method.
37643func (c *OrganizationsInstancesListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListInstancesResponse) error) error {
37644	c.ctx_ = ctx
37645	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
37646	for {
37647		x, err := c.Do()
37648		if err != nil {
37649			return err
37650		}
37651		if err := f(x); err != nil {
37652			return err
37653		}
37654		if x.NextPageToken == "" {
37655			return nil
37656		}
37657		c.PageToken(x.NextPageToken)
37658	}
37659}
37660
37661// method id "apigee.organizations.instances.reportStatus":
37662
37663type OrganizationsInstancesReportStatusCall struct {
37664	s                                              *Service
37665	instance                                       string
37666	googlecloudapigeev1reportinstancestatusrequest *GoogleCloudApigeeV1ReportInstanceStatusRequest
37667	urlParams_                                     gensupport.URLParams
37668	ctx_                                           context.Context
37669	header_                                        http.Header
37670}
37671
37672// ReportStatus: Reports the latest status for a runtime instance.
37673//
37674// - instance: The name of the instance reporting this status. For SaaS
37675//   the request will be rejected if no instance exists under this name.
37676//   Format is organizations/{org}/instances/{instance}.
37677func (r *OrganizationsInstancesService) ReportStatus(instance string, googlecloudapigeev1reportinstancestatusrequest *GoogleCloudApigeeV1ReportInstanceStatusRequest) *OrganizationsInstancesReportStatusCall {
37678	c := &OrganizationsInstancesReportStatusCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37679	c.instance = instance
37680	c.googlecloudapigeev1reportinstancestatusrequest = googlecloudapigeev1reportinstancestatusrequest
37681	return c
37682}
37683
37684// Fields allows partial responses to be retrieved. See
37685// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
37686// for more information.
37687func (c *OrganizationsInstancesReportStatusCall) Fields(s ...googleapi.Field) *OrganizationsInstancesReportStatusCall {
37688	c.urlParams_.Set("fields", googleapi.CombineFields(s))
37689	return c
37690}
37691
37692// Context sets the context to be used in this call's Do method. Any
37693// pending HTTP request will be aborted if the provided context is
37694// canceled.
37695func (c *OrganizationsInstancesReportStatusCall) Context(ctx context.Context) *OrganizationsInstancesReportStatusCall {
37696	c.ctx_ = ctx
37697	return c
37698}
37699
37700// Header returns an http.Header that can be modified by the caller to
37701// add HTTP headers to the request.
37702func (c *OrganizationsInstancesReportStatusCall) Header() http.Header {
37703	if c.header_ == nil {
37704		c.header_ = make(http.Header)
37705	}
37706	return c.header_
37707}
37708
37709func (c *OrganizationsInstancesReportStatusCall) doRequest(alt string) (*http.Response, error) {
37710	reqHeaders := make(http.Header)
37711	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
37712	for k, v := range c.header_ {
37713		reqHeaders[k] = v
37714	}
37715	reqHeaders.Set("User-Agent", c.s.userAgent())
37716	var body io.Reader = nil
37717	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1reportinstancestatusrequest)
37718	if err != nil {
37719		return nil, err
37720	}
37721	reqHeaders.Set("Content-Type", "application/json")
37722	c.urlParams_.Set("alt", alt)
37723	c.urlParams_.Set("prettyPrint", "false")
37724	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+instance}:reportStatus")
37725	urls += "?" + c.urlParams_.Encode()
37726	req, err := http.NewRequest("POST", urls, body)
37727	if err != nil {
37728		return nil, err
37729	}
37730	req.Header = reqHeaders
37731	googleapi.Expand(req.URL, map[string]string{
37732		"instance": c.instance,
37733	})
37734	return gensupport.SendRequest(c.ctx_, c.s.client, req)
37735}
37736
37737// Do executes the "apigee.organizations.instances.reportStatus" call.
37738// Exactly one of *GoogleCloudApigeeV1ReportInstanceStatusResponse or
37739// error will be non-nil. Any non-2xx status code is an error. Response
37740// headers are in either
37741// *GoogleCloudApigeeV1ReportInstanceStatusResponse.ServerResponse.Header
37742//  or (if a response was returned at all) in
37743// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
37744// whether the returned error was because http.StatusNotModified was
37745// returned.
37746func (c *OrganizationsInstancesReportStatusCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ReportInstanceStatusResponse, error) {
37747	gensupport.SetOptions(c.urlParams_, opts...)
37748	res, err := c.doRequest("json")
37749	if res != nil && res.StatusCode == http.StatusNotModified {
37750		if res.Body != nil {
37751			res.Body.Close()
37752		}
37753		return nil, &googleapi.Error{
37754			Code:   res.StatusCode,
37755			Header: res.Header,
37756		}
37757	}
37758	if err != nil {
37759		return nil, err
37760	}
37761	defer googleapi.CloseBody(res)
37762	if err := googleapi.CheckResponse(res); err != nil {
37763		return nil, err
37764	}
37765	ret := &GoogleCloudApigeeV1ReportInstanceStatusResponse{
37766		ServerResponse: googleapi.ServerResponse{
37767			Header:         res.Header,
37768			HTTPStatusCode: res.StatusCode,
37769		},
37770	}
37771	target := &ret
37772	if err := gensupport.DecodeResponse(target, res); err != nil {
37773		return nil, err
37774	}
37775	return ret, nil
37776	// {
37777	//   "description": "Reports the latest status for a runtime instance.",
37778	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}:reportStatus",
37779	//   "httpMethod": "POST",
37780	//   "id": "apigee.organizations.instances.reportStatus",
37781	//   "parameterOrder": [
37782	//     "instance"
37783	//   ],
37784	//   "parameters": {
37785	//     "instance": {
37786	//       "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}",
37787	//       "location": "path",
37788	//       "pattern": "^organizations/[^/]+/instances/[^/]+$",
37789	//       "required": true,
37790	//       "type": "string"
37791	//     }
37792	//   },
37793	//   "path": "v1/{+instance}:reportStatus",
37794	//   "request": {
37795	//     "$ref": "GoogleCloudApigeeV1ReportInstanceStatusRequest"
37796	//   },
37797	//   "response": {
37798	//     "$ref": "GoogleCloudApigeeV1ReportInstanceStatusResponse"
37799	//   },
37800	//   "scopes": [
37801	//     "https://www.googleapis.com/auth/cloud-platform"
37802	//   ]
37803	// }
37804
37805}
37806
37807// method id "apigee.organizations.instances.attachments.create":
37808
37809type OrganizationsInstancesAttachmentsCreateCall struct {
37810	s                                     *Service
37811	parent                                string
37812	googlecloudapigeev1instanceattachment *GoogleCloudApigeeV1InstanceAttachment
37813	urlParams_                            gensupport.URLParams
37814	ctx_                                  context.Context
37815	header_                               http.Header
37816}
37817
37818// Create: Creates a new attachment of an environment to an instance.
37819// **Note:** Not supported for Apigee hybrid.
37820//
37821// - parent: Name of the instance. Use the following structure in your
37822//   request: `organizations/{org}/instances/{instance}`.
37823func (r *OrganizationsInstancesAttachmentsService) Create(parent string, googlecloudapigeev1instanceattachment *GoogleCloudApigeeV1InstanceAttachment) *OrganizationsInstancesAttachmentsCreateCall {
37824	c := &OrganizationsInstancesAttachmentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37825	c.parent = parent
37826	c.googlecloudapigeev1instanceattachment = googlecloudapigeev1instanceattachment
37827	return c
37828}
37829
37830// Fields allows partial responses to be retrieved. See
37831// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
37832// for more information.
37833func (c *OrganizationsInstancesAttachmentsCreateCall) Fields(s ...googleapi.Field) *OrganizationsInstancesAttachmentsCreateCall {
37834	c.urlParams_.Set("fields", googleapi.CombineFields(s))
37835	return c
37836}
37837
37838// Context sets the context to be used in this call's Do method. Any
37839// pending HTTP request will be aborted if the provided context is
37840// canceled.
37841func (c *OrganizationsInstancesAttachmentsCreateCall) Context(ctx context.Context) *OrganizationsInstancesAttachmentsCreateCall {
37842	c.ctx_ = ctx
37843	return c
37844}
37845
37846// Header returns an http.Header that can be modified by the caller to
37847// add HTTP headers to the request.
37848func (c *OrganizationsInstancesAttachmentsCreateCall) Header() http.Header {
37849	if c.header_ == nil {
37850		c.header_ = make(http.Header)
37851	}
37852	return c.header_
37853}
37854
37855func (c *OrganizationsInstancesAttachmentsCreateCall) doRequest(alt string) (*http.Response, error) {
37856	reqHeaders := make(http.Header)
37857	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
37858	for k, v := range c.header_ {
37859		reqHeaders[k] = v
37860	}
37861	reqHeaders.Set("User-Agent", c.s.userAgent())
37862	var body io.Reader = nil
37863	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1instanceattachment)
37864	if err != nil {
37865		return nil, err
37866	}
37867	reqHeaders.Set("Content-Type", "application/json")
37868	c.urlParams_.Set("alt", alt)
37869	c.urlParams_.Set("prettyPrint", "false")
37870	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attachments")
37871	urls += "?" + c.urlParams_.Encode()
37872	req, err := http.NewRequest("POST", urls, body)
37873	if err != nil {
37874		return nil, err
37875	}
37876	req.Header = reqHeaders
37877	googleapi.Expand(req.URL, map[string]string{
37878		"parent": c.parent,
37879	})
37880	return gensupport.SendRequest(c.ctx_, c.s.client, req)
37881}
37882
37883// Do executes the "apigee.organizations.instances.attachments.create" call.
37884// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
37885// Any non-2xx status code is an error. Response headers are in either
37886// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
37887// was returned at all) in error.(*googleapi.Error).Header. Use
37888// googleapi.IsNotModified to check whether the returned error was
37889// because http.StatusNotModified was returned.
37890func (c *OrganizationsInstancesAttachmentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
37891	gensupport.SetOptions(c.urlParams_, opts...)
37892	res, err := c.doRequest("json")
37893	if res != nil && res.StatusCode == http.StatusNotModified {
37894		if res.Body != nil {
37895			res.Body.Close()
37896		}
37897		return nil, &googleapi.Error{
37898			Code:   res.StatusCode,
37899			Header: res.Header,
37900		}
37901	}
37902	if err != nil {
37903		return nil, err
37904	}
37905	defer googleapi.CloseBody(res)
37906	if err := googleapi.CheckResponse(res); err != nil {
37907		return nil, err
37908	}
37909	ret := &GoogleLongrunningOperation{
37910		ServerResponse: googleapi.ServerResponse{
37911			Header:         res.Header,
37912			HTTPStatusCode: res.StatusCode,
37913		},
37914	}
37915	target := &ret
37916	if err := gensupport.DecodeResponse(target, res); err != nil {
37917		return nil, err
37918	}
37919	return ret, nil
37920	// {
37921	//   "description": "Creates a new attachment of an environment to an instance. **Note:** Not supported for Apigee hybrid.",
37922	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/attachments",
37923	//   "httpMethod": "POST",
37924	//   "id": "apigee.organizations.instances.attachments.create",
37925	//   "parameterOrder": [
37926	//     "parent"
37927	//   ],
37928	//   "parameters": {
37929	//     "parent": {
37930	//       "description": "Required. Name of the instance. Use the following structure in your request: `organizations/{org}/instances/{instance}`.",
37931	//       "location": "path",
37932	//       "pattern": "^organizations/[^/]+/instances/[^/]+$",
37933	//       "required": true,
37934	//       "type": "string"
37935	//     }
37936	//   },
37937	//   "path": "v1/{+parent}/attachments",
37938	//   "request": {
37939	//     "$ref": "GoogleCloudApigeeV1InstanceAttachment"
37940	//   },
37941	//   "response": {
37942	//     "$ref": "GoogleLongrunningOperation"
37943	//   },
37944	//   "scopes": [
37945	//     "https://www.googleapis.com/auth/cloud-platform"
37946	//   ]
37947	// }
37948
37949}
37950
37951// method id "apigee.organizations.instances.attachments.delete":
37952
37953type OrganizationsInstancesAttachmentsDeleteCall struct {
37954	s          *Service
37955	name       string
37956	urlParams_ gensupport.URLParams
37957	ctx_       context.Context
37958	header_    http.Header
37959}
37960
37961// Delete: Deletes an attachment. **Note:** Not supported for Apigee
37962// hybrid.
37963//
37964// - name: Name of the attachment. Use the following structure in your
37965//   request:
37966//   `organizations/{org}/instances/{instance}/attachments/{attachment}`.
37967func (r *OrganizationsInstancesAttachmentsService) Delete(name string) *OrganizationsInstancesAttachmentsDeleteCall {
37968	c := &OrganizationsInstancesAttachmentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37969	c.name = name
37970	return c
37971}
37972
37973// Fields allows partial responses to be retrieved. See
37974// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
37975// for more information.
37976func (c *OrganizationsInstancesAttachmentsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsInstancesAttachmentsDeleteCall {
37977	c.urlParams_.Set("fields", googleapi.CombineFields(s))
37978	return c
37979}
37980
37981// Context sets the context to be used in this call's Do method. Any
37982// pending HTTP request will be aborted if the provided context is
37983// canceled.
37984func (c *OrganizationsInstancesAttachmentsDeleteCall) Context(ctx context.Context) *OrganizationsInstancesAttachmentsDeleteCall {
37985	c.ctx_ = ctx
37986	return c
37987}
37988
37989// Header returns an http.Header that can be modified by the caller to
37990// add HTTP headers to the request.
37991func (c *OrganizationsInstancesAttachmentsDeleteCall) Header() http.Header {
37992	if c.header_ == nil {
37993		c.header_ = make(http.Header)
37994	}
37995	return c.header_
37996}
37997
37998func (c *OrganizationsInstancesAttachmentsDeleteCall) doRequest(alt string) (*http.Response, error) {
37999	reqHeaders := make(http.Header)
38000	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
38001	for k, v := range c.header_ {
38002		reqHeaders[k] = v
38003	}
38004	reqHeaders.Set("User-Agent", c.s.userAgent())
38005	var body io.Reader = nil
38006	c.urlParams_.Set("alt", alt)
38007	c.urlParams_.Set("prettyPrint", "false")
38008	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
38009	urls += "?" + c.urlParams_.Encode()
38010	req, err := http.NewRequest("DELETE", urls, body)
38011	if err != nil {
38012		return nil, err
38013	}
38014	req.Header = reqHeaders
38015	googleapi.Expand(req.URL, map[string]string{
38016		"name": c.name,
38017	})
38018	return gensupport.SendRequest(c.ctx_, c.s.client, req)
38019}
38020
38021// Do executes the "apigee.organizations.instances.attachments.delete" call.
38022// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
38023// Any non-2xx status code is an error. Response headers are in either
38024// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
38025// was returned at all) in error.(*googleapi.Error).Header. Use
38026// googleapi.IsNotModified to check whether the returned error was
38027// because http.StatusNotModified was returned.
38028func (c *OrganizationsInstancesAttachmentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
38029	gensupport.SetOptions(c.urlParams_, opts...)
38030	res, err := c.doRequest("json")
38031	if res != nil && res.StatusCode == http.StatusNotModified {
38032		if res.Body != nil {
38033			res.Body.Close()
38034		}
38035		return nil, &googleapi.Error{
38036			Code:   res.StatusCode,
38037			Header: res.Header,
38038		}
38039	}
38040	if err != nil {
38041		return nil, err
38042	}
38043	defer googleapi.CloseBody(res)
38044	if err := googleapi.CheckResponse(res); err != nil {
38045		return nil, err
38046	}
38047	ret := &GoogleLongrunningOperation{
38048		ServerResponse: googleapi.ServerResponse{
38049			Header:         res.Header,
38050			HTTPStatusCode: res.StatusCode,
38051		},
38052	}
38053	target := &ret
38054	if err := gensupport.DecodeResponse(target, res); err != nil {
38055		return nil, err
38056	}
38057	return ret, nil
38058	// {
38059	//   "description": "Deletes an attachment. **Note:** Not supported for Apigee hybrid.",
38060	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/attachments/{attachmentsId}",
38061	//   "httpMethod": "DELETE",
38062	//   "id": "apigee.organizations.instances.attachments.delete",
38063	//   "parameterOrder": [
38064	//     "name"
38065	//   ],
38066	//   "parameters": {
38067	//     "name": {
38068	//       "description": "Required. Name of the attachment. Use the following structure in your request: `organizations/{org}/instances/{instance}/attachments/{attachment}`.",
38069	//       "location": "path",
38070	//       "pattern": "^organizations/[^/]+/instances/[^/]+/attachments/[^/]+$",
38071	//       "required": true,
38072	//       "type": "string"
38073	//     }
38074	//   },
38075	//   "path": "v1/{+name}",
38076	//   "response": {
38077	//     "$ref": "GoogleLongrunningOperation"
38078	//   },
38079	//   "scopes": [
38080	//     "https://www.googleapis.com/auth/cloud-platform"
38081	//   ]
38082	// }
38083
38084}
38085
38086// method id "apigee.organizations.instances.attachments.get":
38087
38088type OrganizationsInstancesAttachmentsGetCall struct {
38089	s            *Service
38090	name         string
38091	urlParams_   gensupport.URLParams
38092	ifNoneMatch_ string
38093	ctx_         context.Context
38094	header_      http.Header
38095}
38096
38097// Get: Gets an attachment. **Note:** Not supported for Apigee hybrid.
38098//
38099// - name: Name of the attachment. Use the following structure in your
38100//   request:
38101//   `organizations/{org}/instances/{instance}/attachments/{attachment}`.
38102func (r *OrganizationsInstancesAttachmentsService) Get(name string) *OrganizationsInstancesAttachmentsGetCall {
38103	c := &OrganizationsInstancesAttachmentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38104	c.name = name
38105	return c
38106}
38107
38108// Fields allows partial responses to be retrieved. See
38109// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
38110// for more information.
38111func (c *OrganizationsInstancesAttachmentsGetCall) Fields(s ...googleapi.Field) *OrganizationsInstancesAttachmentsGetCall {
38112	c.urlParams_.Set("fields", googleapi.CombineFields(s))
38113	return c
38114}
38115
38116// IfNoneMatch sets the optional parameter which makes the operation
38117// fail if the object's ETag matches the given value. This is useful for
38118// getting updates only after the object has changed since the last
38119// request. Use googleapi.IsNotModified to check whether the response
38120// error from Do is the result of In-None-Match.
38121func (c *OrganizationsInstancesAttachmentsGetCall) IfNoneMatch(entityTag string) *OrganizationsInstancesAttachmentsGetCall {
38122	c.ifNoneMatch_ = entityTag
38123	return c
38124}
38125
38126// Context sets the context to be used in this call's Do method. Any
38127// pending HTTP request will be aborted if the provided context is
38128// canceled.
38129func (c *OrganizationsInstancesAttachmentsGetCall) Context(ctx context.Context) *OrganizationsInstancesAttachmentsGetCall {
38130	c.ctx_ = ctx
38131	return c
38132}
38133
38134// Header returns an http.Header that can be modified by the caller to
38135// add HTTP headers to the request.
38136func (c *OrganizationsInstancesAttachmentsGetCall) Header() http.Header {
38137	if c.header_ == nil {
38138		c.header_ = make(http.Header)
38139	}
38140	return c.header_
38141}
38142
38143func (c *OrganizationsInstancesAttachmentsGetCall) doRequest(alt string) (*http.Response, error) {
38144	reqHeaders := make(http.Header)
38145	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
38146	for k, v := range c.header_ {
38147		reqHeaders[k] = v
38148	}
38149	reqHeaders.Set("User-Agent", c.s.userAgent())
38150	if c.ifNoneMatch_ != "" {
38151		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
38152	}
38153	var body io.Reader = nil
38154	c.urlParams_.Set("alt", alt)
38155	c.urlParams_.Set("prettyPrint", "false")
38156	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
38157	urls += "?" + c.urlParams_.Encode()
38158	req, err := http.NewRequest("GET", urls, body)
38159	if err != nil {
38160		return nil, err
38161	}
38162	req.Header = reqHeaders
38163	googleapi.Expand(req.URL, map[string]string{
38164		"name": c.name,
38165	})
38166	return gensupport.SendRequest(c.ctx_, c.s.client, req)
38167}
38168
38169// Do executes the "apigee.organizations.instances.attachments.get" call.
38170// Exactly one of *GoogleCloudApigeeV1InstanceAttachment or error will
38171// be non-nil. Any non-2xx status code is an error. Response headers are
38172// in either
38173// *GoogleCloudApigeeV1InstanceAttachment.ServerResponse.Header or (if a
38174// response was returned at all) in error.(*googleapi.Error).Header. Use
38175// googleapi.IsNotModified to check whether the returned error was
38176// because http.StatusNotModified was returned.
38177func (c *OrganizationsInstancesAttachmentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1InstanceAttachment, error) {
38178	gensupport.SetOptions(c.urlParams_, opts...)
38179	res, err := c.doRequest("json")
38180	if res != nil && res.StatusCode == http.StatusNotModified {
38181		if res.Body != nil {
38182			res.Body.Close()
38183		}
38184		return nil, &googleapi.Error{
38185			Code:   res.StatusCode,
38186			Header: res.Header,
38187		}
38188	}
38189	if err != nil {
38190		return nil, err
38191	}
38192	defer googleapi.CloseBody(res)
38193	if err := googleapi.CheckResponse(res); err != nil {
38194		return nil, err
38195	}
38196	ret := &GoogleCloudApigeeV1InstanceAttachment{
38197		ServerResponse: googleapi.ServerResponse{
38198			Header:         res.Header,
38199			HTTPStatusCode: res.StatusCode,
38200		},
38201	}
38202	target := &ret
38203	if err := gensupport.DecodeResponse(target, res); err != nil {
38204		return nil, err
38205	}
38206	return ret, nil
38207	// {
38208	//   "description": "Gets an attachment. **Note:** Not supported for Apigee hybrid.",
38209	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/attachments/{attachmentsId}",
38210	//   "httpMethod": "GET",
38211	//   "id": "apigee.organizations.instances.attachments.get",
38212	//   "parameterOrder": [
38213	//     "name"
38214	//   ],
38215	//   "parameters": {
38216	//     "name": {
38217	//       "description": "Required. Name of the attachment. Use the following structure in your request: `organizations/{org}/instances/{instance}/attachments/{attachment}`",
38218	//       "location": "path",
38219	//       "pattern": "^organizations/[^/]+/instances/[^/]+/attachments/[^/]+$",
38220	//       "required": true,
38221	//       "type": "string"
38222	//     }
38223	//   },
38224	//   "path": "v1/{+name}",
38225	//   "response": {
38226	//     "$ref": "GoogleCloudApigeeV1InstanceAttachment"
38227	//   },
38228	//   "scopes": [
38229	//     "https://www.googleapis.com/auth/cloud-platform"
38230	//   ]
38231	// }
38232
38233}
38234
38235// method id "apigee.organizations.instances.attachments.list":
38236
38237type OrganizationsInstancesAttachmentsListCall struct {
38238	s            *Service
38239	parent       string
38240	urlParams_   gensupport.URLParams
38241	ifNoneMatch_ string
38242	ctx_         context.Context
38243	header_      http.Header
38244}
38245
38246// List: Lists all attachments to an instance. **Note:** Not supported
38247// for Apigee hybrid.
38248//
38249// - parent: Name of the organization. Use the following structure in
38250//   your request: `organizations/{org}/instances/{instance}`.
38251func (r *OrganizationsInstancesAttachmentsService) List(parent string) *OrganizationsInstancesAttachmentsListCall {
38252	c := &OrganizationsInstancesAttachmentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38253	c.parent = parent
38254	return c
38255}
38256
38257// PageSize sets the optional parameter "pageSize": Maximum number of
38258// instance attachments to return. Defaults to 25.
38259func (c *OrganizationsInstancesAttachmentsListCall) PageSize(pageSize int64) *OrganizationsInstancesAttachmentsListCall {
38260	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
38261	return c
38262}
38263
38264// PageToken sets the optional parameter "pageToken": Page token,
38265// returned by a previous ListInstanceAttachments call, that you can use
38266// to retrieve the next page of content.
38267func (c *OrganizationsInstancesAttachmentsListCall) PageToken(pageToken string) *OrganizationsInstancesAttachmentsListCall {
38268	c.urlParams_.Set("pageToken", pageToken)
38269	return c
38270}
38271
38272// Fields allows partial responses to be retrieved. See
38273// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
38274// for more information.
38275func (c *OrganizationsInstancesAttachmentsListCall) Fields(s ...googleapi.Field) *OrganizationsInstancesAttachmentsListCall {
38276	c.urlParams_.Set("fields", googleapi.CombineFields(s))
38277	return c
38278}
38279
38280// IfNoneMatch sets the optional parameter which makes the operation
38281// fail if the object's ETag matches the given value. This is useful for
38282// getting updates only after the object has changed since the last
38283// request. Use googleapi.IsNotModified to check whether the response
38284// error from Do is the result of In-None-Match.
38285func (c *OrganizationsInstancesAttachmentsListCall) IfNoneMatch(entityTag string) *OrganizationsInstancesAttachmentsListCall {
38286	c.ifNoneMatch_ = entityTag
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 *OrganizationsInstancesAttachmentsListCall) Context(ctx context.Context) *OrganizationsInstancesAttachmentsListCall {
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 *OrganizationsInstancesAttachmentsListCall) Header() http.Header {
38301	if c.header_ == nil {
38302		c.header_ = make(http.Header)
38303	}
38304	return c.header_
38305}
38306
38307func (c *OrganizationsInstancesAttachmentsListCall) doRequest(alt string) (*http.Response, error) {
38308	reqHeaders := make(http.Header)
38309	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
38310	for k, v := range c.header_ {
38311		reqHeaders[k] = v
38312	}
38313	reqHeaders.Set("User-Agent", c.s.userAgent())
38314	if c.ifNoneMatch_ != "" {
38315		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
38316	}
38317	var body io.Reader = nil
38318	c.urlParams_.Set("alt", alt)
38319	c.urlParams_.Set("prettyPrint", "false")
38320	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attachments")
38321	urls += "?" + c.urlParams_.Encode()
38322	req, err := http.NewRequest("GET", urls, body)
38323	if err != nil {
38324		return nil, err
38325	}
38326	req.Header = reqHeaders
38327	googleapi.Expand(req.URL, map[string]string{
38328		"parent": c.parent,
38329	})
38330	return gensupport.SendRequest(c.ctx_, c.s.client, req)
38331}
38332
38333// Do executes the "apigee.organizations.instances.attachments.list" call.
38334// Exactly one of *GoogleCloudApigeeV1ListInstanceAttachmentsResponse or
38335// error will be non-nil. Any non-2xx status code is an error. Response
38336// headers are in either
38337// *GoogleCloudApigeeV1ListInstanceAttachmentsResponse.ServerResponse.Hea
38338// der or (if a response was returned at all) in
38339// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
38340// whether the returned error was because http.StatusNotModified was
38341// returned.
38342func (c *OrganizationsInstancesAttachmentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListInstanceAttachmentsResponse, error) {
38343	gensupport.SetOptions(c.urlParams_, opts...)
38344	res, err := c.doRequest("json")
38345	if res != nil && res.StatusCode == http.StatusNotModified {
38346		if res.Body != nil {
38347			res.Body.Close()
38348		}
38349		return nil, &googleapi.Error{
38350			Code:   res.StatusCode,
38351			Header: res.Header,
38352		}
38353	}
38354	if err != nil {
38355		return nil, err
38356	}
38357	defer googleapi.CloseBody(res)
38358	if err := googleapi.CheckResponse(res); err != nil {
38359		return nil, err
38360	}
38361	ret := &GoogleCloudApigeeV1ListInstanceAttachmentsResponse{
38362		ServerResponse: googleapi.ServerResponse{
38363			Header:         res.Header,
38364			HTTPStatusCode: res.StatusCode,
38365		},
38366	}
38367	target := &ret
38368	if err := gensupport.DecodeResponse(target, res); err != nil {
38369		return nil, err
38370	}
38371	return ret, nil
38372	// {
38373	//   "description": "Lists all attachments to an instance. **Note:** Not supported for Apigee hybrid.",
38374	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/attachments",
38375	//   "httpMethod": "GET",
38376	//   "id": "apigee.organizations.instances.attachments.list",
38377	//   "parameterOrder": [
38378	//     "parent"
38379	//   ],
38380	//   "parameters": {
38381	//     "pageSize": {
38382	//       "description": "Maximum number of instance attachments to return. Defaults to 25.",
38383	//       "format": "int32",
38384	//       "location": "query",
38385	//       "type": "integer"
38386	//     },
38387	//     "pageToken": {
38388	//       "description": "Page token, returned by a previous ListInstanceAttachments call, that you can use to retrieve the next page of content.",
38389	//       "location": "query",
38390	//       "type": "string"
38391	//     },
38392	//     "parent": {
38393	//       "description": "Required. Name of the organization. Use the following structure in your request: `organizations/{org}/instances/{instance}`",
38394	//       "location": "path",
38395	//       "pattern": "^organizations/[^/]+/instances/[^/]+$",
38396	//       "required": true,
38397	//       "type": "string"
38398	//     }
38399	//   },
38400	//   "path": "v1/{+parent}/attachments",
38401	//   "response": {
38402	//     "$ref": "GoogleCloudApigeeV1ListInstanceAttachmentsResponse"
38403	//   },
38404	//   "scopes": [
38405	//     "https://www.googleapis.com/auth/cloud-platform"
38406	//   ]
38407	// }
38408
38409}
38410
38411// Pages invokes f for each page of results.
38412// A non-nil error returned from f will halt the iteration.
38413// The provided context supersedes any context provided to the Context method.
38414func (c *OrganizationsInstancesAttachmentsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListInstanceAttachmentsResponse) error) error {
38415	c.ctx_ = ctx
38416	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
38417	for {
38418		x, err := c.Do()
38419		if err != nil {
38420			return err
38421		}
38422		if err := f(x); err != nil {
38423			return err
38424		}
38425		if x.NextPageToken == "" {
38426			return nil
38427		}
38428		c.PageToken(x.NextPageToken)
38429	}
38430}
38431
38432// method id "apigee.organizations.instances.canaryevaluations.create":
38433
38434type OrganizationsInstancesCanaryevaluationsCreateCall struct {
38435	s                                   *Service
38436	parent                              string
38437	googlecloudapigeev1canaryevaluation *GoogleCloudApigeeV1CanaryEvaluation
38438	urlParams_                          gensupport.URLParams
38439	ctx_                                context.Context
38440	header_                             http.Header
38441}
38442
38443// Create: Creates a new canary evaluation for an organization.
38444//
38445// - parent: Name of the organization. Use the following structure in
38446//   your request: `organizations/{org}/instances/{instance}`.
38447func (r *OrganizationsInstancesCanaryevaluationsService) Create(parent string, googlecloudapigeev1canaryevaluation *GoogleCloudApigeeV1CanaryEvaluation) *OrganizationsInstancesCanaryevaluationsCreateCall {
38448	c := &OrganizationsInstancesCanaryevaluationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38449	c.parent = parent
38450	c.googlecloudapigeev1canaryevaluation = googlecloudapigeev1canaryevaluation
38451	return c
38452}
38453
38454// Fields allows partial responses to be retrieved. See
38455// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
38456// for more information.
38457func (c *OrganizationsInstancesCanaryevaluationsCreateCall) Fields(s ...googleapi.Field) *OrganizationsInstancesCanaryevaluationsCreateCall {
38458	c.urlParams_.Set("fields", googleapi.CombineFields(s))
38459	return c
38460}
38461
38462// Context sets the context to be used in this call's Do method. Any
38463// pending HTTP request will be aborted if the provided context is
38464// canceled.
38465func (c *OrganizationsInstancesCanaryevaluationsCreateCall) Context(ctx context.Context) *OrganizationsInstancesCanaryevaluationsCreateCall {
38466	c.ctx_ = ctx
38467	return c
38468}
38469
38470// Header returns an http.Header that can be modified by the caller to
38471// add HTTP headers to the request.
38472func (c *OrganizationsInstancesCanaryevaluationsCreateCall) Header() http.Header {
38473	if c.header_ == nil {
38474		c.header_ = make(http.Header)
38475	}
38476	return c.header_
38477}
38478
38479func (c *OrganizationsInstancesCanaryevaluationsCreateCall) doRequest(alt string) (*http.Response, error) {
38480	reqHeaders := make(http.Header)
38481	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
38482	for k, v := range c.header_ {
38483		reqHeaders[k] = v
38484	}
38485	reqHeaders.Set("User-Agent", c.s.userAgent())
38486	var body io.Reader = nil
38487	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1canaryevaluation)
38488	if err != nil {
38489		return nil, err
38490	}
38491	reqHeaders.Set("Content-Type", "application/json")
38492	c.urlParams_.Set("alt", alt)
38493	c.urlParams_.Set("prettyPrint", "false")
38494	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/canaryevaluations")
38495	urls += "?" + c.urlParams_.Encode()
38496	req, err := http.NewRequest("POST", urls, body)
38497	if err != nil {
38498		return nil, err
38499	}
38500	req.Header = reqHeaders
38501	googleapi.Expand(req.URL, map[string]string{
38502		"parent": c.parent,
38503	})
38504	return gensupport.SendRequest(c.ctx_, c.s.client, req)
38505}
38506
38507// Do executes the "apigee.organizations.instances.canaryevaluations.create" call.
38508// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
38509// Any non-2xx status code is an error. Response headers are in either
38510// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
38511// was returned at all) in error.(*googleapi.Error).Header. Use
38512// googleapi.IsNotModified to check whether the returned error was
38513// because http.StatusNotModified was returned.
38514func (c *OrganizationsInstancesCanaryevaluationsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
38515	gensupport.SetOptions(c.urlParams_, opts...)
38516	res, err := c.doRequest("json")
38517	if res != nil && res.StatusCode == http.StatusNotModified {
38518		if res.Body != nil {
38519			res.Body.Close()
38520		}
38521		return nil, &googleapi.Error{
38522			Code:   res.StatusCode,
38523			Header: res.Header,
38524		}
38525	}
38526	if err != nil {
38527		return nil, err
38528	}
38529	defer googleapi.CloseBody(res)
38530	if err := googleapi.CheckResponse(res); err != nil {
38531		return nil, err
38532	}
38533	ret := &GoogleLongrunningOperation{
38534		ServerResponse: googleapi.ServerResponse{
38535			Header:         res.Header,
38536			HTTPStatusCode: res.StatusCode,
38537		},
38538	}
38539	target := &ret
38540	if err := gensupport.DecodeResponse(target, res); err != nil {
38541		return nil, err
38542	}
38543	return ret, nil
38544	// {
38545	//   "description": "Creates a new canary evaluation for an organization.",
38546	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/canaryevaluations",
38547	//   "httpMethod": "POST",
38548	//   "id": "apigee.organizations.instances.canaryevaluations.create",
38549	//   "parameterOrder": [
38550	//     "parent"
38551	//   ],
38552	//   "parameters": {
38553	//     "parent": {
38554	//       "description": "Required. Name of the organization. Use the following structure in your request: `organizations/{org}/instances/{instance}`.",
38555	//       "location": "path",
38556	//       "pattern": "^organizations/[^/]+/instances/[^/]+$",
38557	//       "required": true,
38558	//       "type": "string"
38559	//     }
38560	//   },
38561	//   "path": "v1/{+parent}/canaryevaluations",
38562	//   "request": {
38563	//     "$ref": "GoogleCloudApigeeV1CanaryEvaluation"
38564	//   },
38565	//   "response": {
38566	//     "$ref": "GoogleLongrunningOperation"
38567	//   },
38568	//   "scopes": [
38569	//     "https://www.googleapis.com/auth/cloud-platform"
38570	//   ]
38571	// }
38572
38573}
38574
38575// method id "apigee.organizations.instances.canaryevaluations.get":
38576
38577type OrganizationsInstancesCanaryevaluationsGetCall struct {
38578	s            *Service
38579	name         string
38580	urlParams_   gensupport.URLParams
38581	ifNoneMatch_ string
38582	ctx_         context.Context
38583	header_      http.Header
38584}
38585
38586// Get: Gets a CanaryEvaluation for an organization.
38587//
38588// - name: Name of the CanaryEvaluation. Use the following structure in
38589//   your request:
38590//   `organizations/{org}/instances/*/canaryevaluations/{evaluation}`.
38591func (r *OrganizationsInstancesCanaryevaluationsService) Get(name string) *OrganizationsInstancesCanaryevaluationsGetCall {
38592	c := &OrganizationsInstancesCanaryevaluationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38593	c.name = name
38594	return c
38595}
38596
38597// Fields allows partial responses to be retrieved. See
38598// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
38599// for more information.
38600func (c *OrganizationsInstancesCanaryevaluationsGetCall) Fields(s ...googleapi.Field) *OrganizationsInstancesCanaryevaluationsGetCall {
38601	c.urlParams_.Set("fields", googleapi.CombineFields(s))
38602	return c
38603}
38604
38605// IfNoneMatch sets the optional parameter which makes the operation
38606// fail if the object's ETag matches the given value. This is useful for
38607// getting updates only after the object has changed since the last
38608// request. Use googleapi.IsNotModified to check whether the response
38609// error from Do is the result of In-None-Match.
38610func (c *OrganizationsInstancesCanaryevaluationsGetCall) IfNoneMatch(entityTag string) *OrganizationsInstancesCanaryevaluationsGetCall {
38611	c.ifNoneMatch_ = entityTag
38612	return c
38613}
38614
38615// Context sets the context to be used in this call's Do method. Any
38616// pending HTTP request will be aborted if the provided context is
38617// canceled.
38618func (c *OrganizationsInstancesCanaryevaluationsGetCall) Context(ctx context.Context) *OrganizationsInstancesCanaryevaluationsGetCall {
38619	c.ctx_ = ctx
38620	return c
38621}
38622
38623// Header returns an http.Header that can be modified by the caller to
38624// add HTTP headers to the request.
38625func (c *OrganizationsInstancesCanaryevaluationsGetCall) Header() http.Header {
38626	if c.header_ == nil {
38627		c.header_ = make(http.Header)
38628	}
38629	return c.header_
38630}
38631
38632func (c *OrganizationsInstancesCanaryevaluationsGetCall) doRequest(alt string) (*http.Response, error) {
38633	reqHeaders := make(http.Header)
38634	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
38635	for k, v := range c.header_ {
38636		reqHeaders[k] = v
38637	}
38638	reqHeaders.Set("User-Agent", c.s.userAgent())
38639	if c.ifNoneMatch_ != "" {
38640		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
38641	}
38642	var body io.Reader = nil
38643	c.urlParams_.Set("alt", alt)
38644	c.urlParams_.Set("prettyPrint", "false")
38645	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
38646	urls += "?" + c.urlParams_.Encode()
38647	req, err := http.NewRequest("GET", urls, body)
38648	if err != nil {
38649		return nil, err
38650	}
38651	req.Header = reqHeaders
38652	googleapi.Expand(req.URL, map[string]string{
38653		"name": c.name,
38654	})
38655	return gensupport.SendRequest(c.ctx_, c.s.client, req)
38656}
38657
38658// Do executes the "apigee.organizations.instances.canaryevaluations.get" call.
38659// Exactly one of *GoogleCloudApigeeV1CanaryEvaluation or error will be
38660// non-nil. Any non-2xx status code is an error. Response headers are in
38661// either *GoogleCloudApigeeV1CanaryEvaluation.ServerResponse.Header or
38662// (if a response was returned at all) in
38663// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
38664// whether the returned error was because http.StatusNotModified was
38665// returned.
38666func (c *OrganizationsInstancesCanaryevaluationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1CanaryEvaluation, error) {
38667	gensupport.SetOptions(c.urlParams_, opts...)
38668	res, err := c.doRequest("json")
38669	if res != nil && res.StatusCode == http.StatusNotModified {
38670		if res.Body != nil {
38671			res.Body.Close()
38672		}
38673		return nil, &googleapi.Error{
38674			Code:   res.StatusCode,
38675			Header: res.Header,
38676		}
38677	}
38678	if err != nil {
38679		return nil, err
38680	}
38681	defer googleapi.CloseBody(res)
38682	if err := googleapi.CheckResponse(res); err != nil {
38683		return nil, err
38684	}
38685	ret := &GoogleCloudApigeeV1CanaryEvaluation{
38686		ServerResponse: googleapi.ServerResponse{
38687			Header:         res.Header,
38688			HTTPStatusCode: res.StatusCode,
38689		},
38690	}
38691	target := &ret
38692	if err := gensupport.DecodeResponse(target, res); err != nil {
38693		return nil, err
38694	}
38695	return ret, nil
38696	// {
38697	//   "description": "Gets a CanaryEvaluation for an organization.",
38698	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/canaryevaluations/{canaryevaluationsId}",
38699	//   "httpMethod": "GET",
38700	//   "id": "apigee.organizations.instances.canaryevaluations.get",
38701	//   "parameterOrder": [
38702	//     "name"
38703	//   ],
38704	//   "parameters": {
38705	//     "name": {
38706	//       "description": "Required. Name of the CanaryEvaluation. Use the following structure in your request: `organizations/{org}/instances/*/canaryevaluations/{evaluation}`",
38707	//       "location": "path",
38708	//       "pattern": "^organizations/[^/]+/instances/[^/]+/canaryevaluations/[^/]+$",
38709	//       "required": true,
38710	//       "type": "string"
38711	//     }
38712	//   },
38713	//   "path": "v1/{+name}",
38714	//   "response": {
38715	//     "$ref": "GoogleCloudApigeeV1CanaryEvaluation"
38716	//   },
38717	//   "scopes": [
38718	//     "https://www.googleapis.com/auth/cloud-platform"
38719	//   ]
38720	// }
38721
38722}
38723
38724// method id "apigee.organizations.instances.natAddresses.activate":
38725
38726type OrganizationsInstancesNatAddressesActivateCall struct {
38727	s                                            *Service
38728	name                                         string
38729	googlecloudapigeev1activatenataddressrequest *GoogleCloudApigeeV1ActivateNatAddressRequest
38730	urlParams_                                   gensupport.URLParams
38731	ctx_                                         context.Context
38732	header_                                      http.Header
38733}
38734
38735// Activate: Activates the NAT address. The Apigee instance can now use
38736// this for Internet egress traffic. **Note:** Not supported for Apigee
38737// hybrid.
38738//
38739// - name: Name of the nat address. Use the following structure in your
38740//   request:
38741//   `organizations/{org}/instances/{instances}/natAddresses/{nataddress}
38742//   ``.
38743func (r *OrganizationsInstancesNatAddressesService) Activate(name string, googlecloudapigeev1activatenataddressrequest *GoogleCloudApigeeV1ActivateNatAddressRequest) *OrganizationsInstancesNatAddressesActivateCall {
38744	c := &OrganizationsInstancesNatAddressesActivateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38745	c.name = name
38746	c.googlecloudapigeev1activatenataddressrequest = googlecloudapigeev1activatenataddressrequest
38747	return c
38748}
38749
38750// Fields allows partial responses to be retrieved. See
38751// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
38752// for more information.
38753func (c *OrganizationsInstancesNatAddressesActivateCall) Fields(s ...googleapi.Field) *OrganizationsInstancesNatAddressesActivateCall {
38754	c.urlParams_.Set("fields", googleapi.CombineFields(s))
38755	return c
38756}
38757
38758// Context sets the context to be used in this call's Do method. Any
38759// pending HTTP request will be aborted if the provided context is
38760// canceled.
38761func (c *OrganizationsInstancesNatAddressesActivateCall) Context(ctx context.Context) *OrganizationsInstancesNatAddressesActivateCall {
38762	c.ctx_ = ctx
38763	return c
38764}
38765
38766// Header returns an http.Header that can be modified by the caller to
38767// add HTTP headers to the request.
38768func (c *OrganizationsInstancesNatAddressesActivateCall) Header() http.Header {
38769	if c.header_ == nil {
38770		c.header_ = make(http.Header)
38771	}
38772	return c.header_
38773}
38774
38775func (c *OrganizationsInstancesNatAddressesActivateCall) doRequest(alt string) (*http.Response, error) {
38776	reqHeaders := make(http.Header)
38777	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
38778	for k, v := range c.header_ {
38779		reqHeaders[k] = v
38780	}
38781	reqHeaders.Set("User-Agent", c.s.userAgent())
38782	var body io.Reader = nil
38783	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1activatenataddressrequest)
38784	if err != nil {
38785		return nil, err
38786	}
38787	reqHeaders.Set("Content-Type", "application/json")
38788	c.urlParams_.Set("alt", alt)
38789	c.urlParams_.Set("prettyPrint", "false")
38790	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:activate")
38791	urls += "?" + c.urlParams_.Encode()
38792	req, err := http.NewRequest("POST", urls, body)
38793	if err != nil {
38794		return nil, err
38795	}
38796	req.Header = reqHeaders
38797	googleapi.Expand(req.URL, map[string]string{
38798		"name": c.name,
38799	})
38800	return gensupport.SendRequest(c.ctx_, c.s.client, req)
38801}
38802
38803// Do executes the "apigee.organizations.instances.natAddresses.activate" call.
38804// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
38805// Any non-2xx status code is an error. Response headers are in either
38806// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
38807// was returned at all) in error.(*googleapi.Error).Header. Use
38808// googleapi.IsNotModified to check whether the returned error was
38809// because http.StatusNotModified was returned.
38810func (c *OrganizationsInstancesNatAddressesActivateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
38811	gensupport.SetOptions(c.urlParams_, opts...)
38812	res, err := c.doRequest("json")
38813	if res != nil && res.StatusCode == http.StatusNotModified {
38814		if res.Body != nil {
38815			res.Body.Close()
38816		}
38817		return nil, &googleapi.Error{
38818			Code:   res.StatusCode,
38819			Header: res.Header,
38820		}
38821	}
38822	if err != nil {
38823		return nil, err
38824	}
38825	defer googleapi.CloseBody(res)
38826	if err := googleapi.CheckResponse(res); err != nil {
38827		return nil, err
38828	}
38829	ret := &GoogleLongrunningOperation{
38830		ServerResponse: googleapi.ServerResponse{
38831			Header:         res.Header,
38832			HTTPStatusCode: res.StatusCode,
38833		},
38834	}
38835	target := &ret
38836	if err := gensupport.DecodeResponse(target, res); err != nil {
38837		return nil, err
38838	}
38839	return ret, nil
38840	// {
38841	//   "description": "Activates the NAT address. The Apigee instance can now use this for Internet egress traffic. **Note:** Not supported for Apigee hybrid.",
38842	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/natAddresses/{natAddressesId}:activate",
38843	//   "httpMethod": "POST",
38844	//   "id": "apigee.organizations.instances.natAddresses.activate",
38845	//   "parameterOrder": [
38846	//     "name"
38847	//   ],
38848	//   "parameters": {
38849	//     "name": {
38850	//       "description": "Required. Name of the nat address. Use the following structure in your request: `organizations/{org}/instances/{instances}/natAddresses/{nataddress}``",
38851	//       "location": "path",
38852	//       "pattern": "^organizations/[^/]+/instances/[^/]+/natAddresses/[^/]+$",
38853	//       "required": true,
38854	//       "type": "string"
38855	//     }
38856	//   },
38857	//   "path": "v1/{+name}:activate",
38858	//   "request": {
38859	//     "$ref": "GoogleCloudApigeeV1ActivateNatAddressRequest"
38860	//   },
38861	//   "response": {
38862	//     "$ref": "GoogleLongrunningOperation"
38863	//   },
38864	//   "scopes": [
38865	//     "https://www.googleapis.com/auth/cloud-platform"
38866	//   ]
38867	// }
38868
38869}
38870
38871// method id "apigee.organizations.instances.natAddresses.create":
38872
38873type OrganizationsInstancesNatAddressesCreateCall struct {
38874	s                             *Service
38875	parent                        string
38876	googlecloudapigeev1nataddress *GoogleCloudApigeeV1NatAddress
38877	urlParams_                    gensupport.URLParams
38878	ctx_                          context.Context
38879	header_                       http.Header
38880}
38881
38882// Create: Creates a NAT address. The address is created in the RESERVED
38883// state and a static external IP address will be provisioned. At this
38884// time, the instance will not use this IP address for Internet egress
38885// traffic. The address can be activated for use once any required
38886// firewall IP whitelisting has been completed. **Note:** Not supported
38887// for Apigee hybrid.
38888//
38889// - parent: Name of the instance. Use the following structure in your
38890//   request: `organizations/{org}/instances/{instance}`.
38891func (r *OrganizationsInstancesNatAddressesService) Create(parent string, googlecloudapigeev1nataddress *GoogleCloudApigeeV1NatAddress) *OrganizationsInstancesNatAddressesCreateCall {
38892	c := &OrganizationsInstancesNatAddressesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38893	c.parent = parent
38894	c.googlecloudapigeev1nataddress = googlecloudapigeev1nataddress
38895	return c
38896}
38897
38898// Fields allows partial responses to be retrieved. See
38899// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
38900// for more information.
38901func (c *OrganizationsInstancesNatAddressesCreateCall) Fields(s ...googleapi.Field) *OrganizationsInstancesNatAddressesCreateCall {
38902	c.urlParams_.Set("fields", googleapi.CombineFields(s))
38903	return c
38904}
38905
38906// Context sets the context to be used in this call's Do method. Any
38907// pending HTTP request will be aborted if the provided context is
38908// canceled.
38909func (c *OrganizationsInstancesNatAddressesCreateCall) Context(ctx context.Context) *OrganizationsInstancesNatAddressesCreateCall {
38910	c.ctx_ = ctx
38911	return c
38912}
38913
38914// Header returns an http.Header that can be modified by the caller to
38915// add HTTP headers to the request.
38916func (c *OrganizationsInstancesNatAddressesCreateCall) Header() http.Header {
38917	if c.header_ == nil {
38918		c.header_ = make(http.Header)
38919	}
38920	return c.header_
38921}
38922
38923func (c *OrganizationsInstancesNatAddressesCreateCall) doRequest(alt string) (*http.Response, error) {
38924	reqHeaders := make(http.Header)
38925	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
38926	for k, v := range c.header_ {
38927		reqHeaders[k] = v
38928	}
38929	reqHeaders.Set("User-Agent", c.s.userAgent())
38930	var body io.Reader = nil
38931	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1nataddress)
38932	if err != nil {
38933		return nil, err
38934	}
38935	reqHeaders.Set("Content-Type", "application/json")
38936	c.urlParams_.Set("alt", alt)
38937	c.urlParams_.Set("prettyPrint", "false")
38938	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/natAddresses")
38939	urls += "?" + c.urlParams_.Encode()
38940	req, err := http.NewRequest("POST", urls, body)
38941	if err != nil {
38942		return nil, err
38943	}
38944	req.Header = reqHeaders
38945	googleapi.Expand(req.URL, map[string]string{
38946		"parent": c.parent,
38947	})
38948	return gensupport.SendRequest(c.ctx_, c.s.client, req)
38949}
38950
38951// Do executes the "apigee.organizations.instances.natAddresses.create" call.
38952// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
38953// Any non-2xx status code is an error. Response headers are in either
38954// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
38955// was returned at all) in error.(*googleapi.Error).Header. Use
38956// googleapi.IsNotModified to check whether the returned error was
38957// because http.StatusNotModified was returned.
38958func (c *OrganizationsInstancesNatAddressesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
38959	gensupport.SetOptions(c.urlParams_, opts...)
38960	res, err := c.doRequest("json")
38961	if res != nil && res.StatusCode == http.StatusNotModified {
38962		if res.Body != nil {
38963			res.Body.Close()
38964		}
38965		return nil, &googleapi.Error{
38966			Code:   res.StatusCode,
38967			Header: res.Header,
38968		}
38969	}
38970	if err != nil {
38971		return nil, err
38972	}
38973	defer googleapi.CloseBody(res)
38974	if err := googleapi.CheckResponse(res); err != nil {
38975		return nil, err
38976	}
38977	ret := &GoogleLongrunningOperation{
38978		ServerResponse: googleapi.ServerResponse{
38979			Header:         res.Header,
38980			HTTPStatusCode: res.StatusCode,
38981		},
38982	}
38983	target := &ret
38984	if err := gensupport.DecodeResponse(target, res); err != nil {
38985		return nil, err
38986	}
38987	return ret, nil
38988	// {
38989	//   "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.",
38990	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/natAddresses",
38991	//   "httpMethod": "POST",
38992	//   "id": "apigee.organizations.instances.natAddresses.create",
38993	//   "parameterOrder": [
38994	//     "parent"
38995	//   ],
38996	//   "parameters": {
38997	//     "parent": {
38998	//       "description": "Required. Name of the instance. Use the following structure in your request: `organizations/{org}/instances/{instance}`",
38999	//       "location": "path",
39000	//       "pattern": "^organizations/[^/]+/instances/[^/]+$",
39001	//       "required": true,
39002	//       "type": "string"
39003	//     }
39004	//   },
39005	//   "path": "v1/{+parent}/natAddresses",
39006	//   "request": {
39007	//     "$ref": "GoogleCloudApigeeV1NatAddress"
39008	//   },
39009	//   "response": {
39010	//     "$ref": "GoogleLongrunningOperation"
39011	//   },
39012	//   "scopes": [
39013	//     "https://www.googleapis.com/auth/cloud-platform"
39014	//   ]
39015	// }
39016
39017}
39018
39019// method id "apigee.organizations.instances.natAddresses.delete":
39020
39021type OrganizationsInstancesNatAddressesDeleteCall struct {
39022	s          *Service
39023	name       string
39024	urlParams_ gensupport.URLParams
39025	ctx_       context.Context
39026	header_    http.Header
39027}
39028
39029// Delete: Deletes the NAT address. Connections that are actively using
39030// the address are drained before it is removed. **Note:** Not supported
39031// for Apigee hybrid.
39032//
39033// - name: Name of the nat address. Use the following structure in your
39034//   request:
39035//   `organizations/{org}/instances/{instances}/natAddresses/{nataddress}
39036//   ``.
39037func (r *OrganizationsInstancesNatAddressesService) Delete(name string) *OrganizationsInstancesNatAddressesDeleteCall {
39038	c := &OrganizationsInstancesNatAddressesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39039	c.name = name
39040	return c
39041}
39042
39043// Fields allows partial responses to be retrieved. See
39044// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
39045// for more information.
39046func (c *OrganizationsInstancesNatAddressesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsInstancesNatAddressesDeleteCall {
39047	c.urlParams_.Set("fields", googleapi.CombineFields(s))
39048	return c
39049}
39050
39051// Context sets the context to be used in this call's Do method. Any
39052// pending HTTP request will be aborted if the provided context is
39053// canceled.
39054func (c *OrganizationsInstancesNatAddressesDeleteCall) Context(ctx context.Context) *OrganizationsInstancesNatAddressesDeleteCall {
39055	c.ctx_ = ctx
39056	return c
39057}
39058
39059// Header returns an http.Header that can be modified by the caller to
39060// add HTTP headers to the request.
39061func (c *OrganizationsInstancesNatAddressesDeleteCall) Header() http.Header {
39062	if c.header_ == nil {
39063		c.header_ = make(http.Header)
39064	}
39065	return c.header_
39066}
39067
39068func (c *OrganizationsInstancesNatAddressesDeleteCall) doRequest(alt string) (*http.Response, error) {
39069	reqHeaders := make(http.Header)
39070	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
39071	for k, v := range c.header_ {
39072		reqHeaders[k] = v
39073	}
39074	reqHeaders.Set("User-Agent", c.s.userAgent())
39075	var body io.Reader = nil
39076	c.urlParams_.Set("alt", alt)
39077	c.urlParams_.Set("prettyPrint", "false")
39078	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
39079	urls += "?" + c.urlParams_.Encode()
39080	req, err := http.NewRequest("DELETE", urls, body)
39081	if err != nil {
39082		return nil, err
39083	}
39084	req.Header = reqHeaders
39085	googleapi.Expand(req.URL, map[string]string{
39086		"name": c.name,
39087	})
39088	return gensupport.SendRequest(c.ctx_, c.s.client, req)
39089}
39090
39091// Do executes the "apigee.organizations.instances.natAddresses.delete" call.
39092// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
39093// Any non-2xx status code is an error. Response headers are in either
39094// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
39095// was returned at all) in error.(*googleapi.Error).Header. Use
39096// googleapi.IsNotModified to check whether the returned error was
39097// because http.StatusNotModified was returned.
39098func (c *OrganizationsInstancesNatAddressesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
39099	gensupport.SetOptions(c.urlParams_, opts...)
39100	res, err := c.doRequest("json")
39101	if res != nil && res.StatusCode == http.StatusNotModified {
39102		if res.Body != nil {
39103			res.Body.Close()
39104		}
39105		return nil, &googleapi.Error{
39106			Code:   res.StatusCode,
39107			Header: res.Header,
39108		}
39109	}
39110	if err != nil {
39111		return nil, err
39112	}
39113	defer googleapi.CloseBody(res)
39114	if err := googleapi.CheckResponse(res); err != nil {
39115		return nil, err
39116	}
39117	ret := &GoogleLongrunningOperation{
39118		ServerResponse: googleapi.ServerResponse{
39119			Header:         res.Header,
39120			HTTPStatusCode: res.StatusCode,
39121		},
39122	}
39123	target := &ret
39124	if err := gensupport.DecodeResponse(target, res); err != nil {
39125		return nil, err
39126	}
39127	return ret, nil
39128	// {
39129	//   "description": "Deletes the NAT address. Connections that are actively using the address are drained before it is removed. **Note:** Not supported for Apigee hybrid.",
39130	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/natAddresses/{natAddressesId}",
39131	//   "httpMethod": "DELETE",
39132	//   "id": "apigee.organizations.instances.natAddresses.delete",
39133	//   "parameterOrder": [
39134	//     "name"
39135	//   ],
39136	//   "parameters": {
39137	//     "name": {
39138	//       "description": "Required. Name of the nat address. Use the following structure in your request: `organizations/{org}/instances/{instances}/natAddresses/{nataddress}``",
39139	//       "location": "path",
39140	//       "pattern": "^organizations/[^/]+/instances/[^/]+/natAddresses/[^/]+$",
39141	//       "required": true,
39142	//       "type": "string"
39143	//     }
39144	//   },
39145	//   "path": "v1/{+name}",
39146	//   "response": {
39147	//     "$ref": "GoogleLongrunningOperation"
39148	//   },
39149	//   "scopes": [
39150	//     "https://www.googleapis.com/auth/cloud-platform"
39151	//   ]
39152	// }
39153
39154}
39155
39156// method id "apigee.organizations.instances.natAddresses.get":
39157
39158type OrganizationsInstancesNatAddressesGetCall struct {
39159	s            *Service
39160	name         string
39161	urlParams_   gensupport.URLParams
39162	ifNoneMatch_ string
39163	ctx_         context.Context
39164	header_      http.Header
39165}
39166
39167// Get: Gets the details of a NAT address. **Note:** Not supported for
39168// Apigee hybrid.
39169//
39170// - name: Name of the nat address. Use the following structure in your
39171//   request:
39172//   `organizations/{org}/instances/{instances}/natAddresses/{nataddress}
39173//   `.
39174func (r *OrganizationsInstancesNatAddressesService) Get(name string) *OrganizationsInstancesNatAddressesGetCall {
39175	c := &OrganizationsInstancesNatAddressesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39176	c.name = name
39177	return c
39178}
39179
39180// Fields allows partial responses to be retrieved. See
39181// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
39182// for more information.
39183func (c *OrganizationsInstancesNatAddressesGetCall) Fields(s ...googleapi.Field) *OrganizationsInstancesNatAddressesGetCall {
39184	c.urlParams_.Set("fields", googleapi.CombineFields(s))
39185	return c
39186}
39187
39188// IfNoneMatch sets the optional parameter which makes the operation
39189// fail if the object's ETag matches the given value. This is useful for
39190// getting updates only after the object has changed since the last
39191// request. Use googleapi.IsNotModified to check whether the response
39192// error from Do is the result of In-None-Match.
39193func (c *OrganizationsInstancesNatAddressesGetCall) IfNoneMatch(entityTag string) *OrganizationsInstancesNatAddressesGetCall {
39194	c.ifNoneMatch_ = entityTag
39195	return c
39196}
39197
39198// Context sets the context to be used in this call's Do method. Any
39199// pending HTTP request will be aborted if the provided context is
39200// canceled.
39201func (c *OrganizationsInstancesNatAddressesGetCall) Context(ctx context.Context) *OrganizationsInstancesNatAddressesGetCall {
39202	c.ctx_ = ctx
39203	return c
39204}
39205
39206// Header returns an http.Header that can be modified by the caller to
39207// add HTTP headers to the request.
39208func (c *OrganizationsInstancesNatAddressesGetCall) Header() http.Header {
39209	if c.header_ == nil {
39210		c.header_ = make(http.Header)
39211	}
39212	return c.header_
39213}
39214
39215func (c *OrganizationsInstancesNatAddressesGetCall) doRequest(alt string) (*http.Response, error) {
39216	reqHeaders := make(http.Header)
39217	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
39218	for k, v := range c.header_ {
39219		reqHeaders[k] = v
39220	}
39221	reqHeaders.Set("User-Agent", c.s.userAgent())
39222	if c.ifNoneMatch_ != "" {
39223		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
39224	}
39225	var body io.Reader = nil
39226	c.urlParams_.Set("alt", alt)
39227	c.urlParams_.Set("prettyPrint", "false")
39228	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
39229	urls += "?" + c.urlParams_.Encode()
39230	req, err := http.NewRequest("GET", urls, body)
39231	if err != nil {
39232		return nil, err
39233	}
39234	req.Header = reqHeaders
39235	googleapi.Expand(req.URL, map[string]string{
39236		"name": c.name,
39237	})
39238	return gensupport.SendRequest(c.ctx_, c.s.client, req)
39239}
39240
39241// Do executes the "apigee.organizations.instances.natAddresses.get" call.
39242// Exactly one of *GoogleCloudApigeeV1NatAddress or error will be
39243// non-nil. Any non-2xx status code is an error. Response headers are in
39244// either *GoogleCloudApigeeV1NatAddress.ServerResponse.Header or (if a
39245// response was returned at all) in error.(*googleapi.Error).Header. Use
39246// googleapi.IsNotModified to check whether the returned error was
39247// because http.StatusNotModified was returned.
39248func (c *OrganizationsInstancesNatAddressesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1NatAddress, error) {
39249	gensupport.SetOptions(c.urlParams_, opts...)
39250	res, err := c.doRequest("json")
39251	if res != nil && res.StatusCode == http.StatusNotModified {
39252		if res.Body != nil {
39253			res.Body.Close()
39254		}
39255		return nil, &googleapi.Error{
39256			Code:   res.StatusCode,
39257			Header: res.Header,
39258		}
39259	}
39260	if err != nil {
39261		return nil, err
39262	}
39263	defer googleapi.CloseBody(res)
39264	if err := googleapi.CheckResponse(res); err != nil {
39265		return nil, err
39266	}
39267	ret := &GoogleCloudApigeeV1NatAddress{
39268		ServerResponse: googleapi.ServerResponse{
39269			Header:         res.Header,
39270			HTTPStatusCode: res.StatusCode,
39271		},
39272	}
39273	target := &ret
39274	if err := gensupport.DecodeResponse(target, res); err != nil {
39275		return nil, err
39276	}
39277	return ret, nil
39278	// {
39279	//   "description": "Gets the details of a NAT address. **Note:** Not supported for Apigee hybrid.",
39280	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/natAddresses/{natAddressesId}",
39281	//   "httpMethod": "GET",
39282	//   "id": "apigee.organizations.instances.natAddresses.get",
39283	//   "parameterOrder": [
39284	//     "name"
39285	//   ],
39286	//   "parameters": {
39287	//     "name": {
39288	//       "description": "Required. Name of the nat address. Use the following structure in your request: `organizations/{org}/instances/{instances}/natAddresses/{nataddress}`",
39289	//       "location": "path",
39290	//       "pattern": "^organizations/[^/]+/instances/[^/]+/natAddresses/[^/]+$",
39291	//       "required": true,
39292	//       "type": "string"
39293	//     }
39294	//   },
39295	//   "path": "v1/{+name}",
39296	//   "response": {
39297	//     "$ref": "GoogleCloudApigeeV1NatAddress"
39298	//   },
39299	//   "scopes": [
39300	//     "https://www.googleapis.com/auth/cloud-platform"
39301	//   ]
39302	// }
39303
39304}
39305
39306// method id "apigee.organizations.instances.natAddresses.list":
39307
39308type OrganizationsInstancesNatAddressesListCall struct {
39309	s            *Service
39310	parent       string
39311	urlParams_   gensupport.URLParams
39312	ifNoneMatch_ string
39313	ctx_         context.Context
39314	header_      http.Header
39315}
39316
39317// List: Lists the NAT addresses for an Apigee instance. **Note:** Not
39318// supported for Apigee hybrid.
39319//
39320// - parent: Name of the instance. Use the following structure in your
39321//   request: `organizations/{org}/instances/{instance}`.
39322func (r *OrganizationsInstancesNatAddressesService) List(parent string) *OrganizationsInstancesNatAddressesListCall {
39323	c := &OrganizationsInstancesNatAddressesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39324	c.parent = parent
39325	return c
39326}
39327
39328// PageSize sets the optional parameter "pageSize": Maximum number of
39329// natAddresses to return. Defaults to 25.
39330func (c *OrganizationsInstancesNatAddressesListCall) PageSize(pageSize int64) *OrganizationsInstancesNatAddressesListCall {
39331	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
39332	return c
39333}
39334
39335// PageToken sets the optional parameter "pageToken": Page token,
39336// returned from a previous ListNatAddresses call, that you can use to
39337// retrieve the next page of content.
39338func (c *OrganizationsInstancesNatAddressesListCall) PageToken(pageToken string) *OrganizationsInstancesNatAddressesListCall {
39339	c.urlParams_.Set("pageToken", pageToken)
39340	return c
39341}
39342
39343// Fields allows partial responses to be retrieved. See
39344// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
39345// for more information.
39346func (c *OrganizationsInstancesNatAddressesListCall) Fields(s ...googleapi.Field) *OrganizationsInstancesNatAddressesListCall {
39347	c.urlParams_.Set("fields", googleapi.CombineFields(s))
39348	return c
39349}
39350
39351// IfNoneMatch sets the optional parameter which makes the operation
39352// fail if the object's ETag matches the given value. This is useful for
39353// getting updates only after the object has changed since the last
39354// request. Use googleapi.IsNotModified to check whether the response
39355// error from Do is the result of In-None-Match.
39356func (c *OrganizationsInstancesNatAddressesListCall) IfNoneMatch(entityTag string) *OrganizationsInstancesNatAddressesListCall {
39357	c.ifNoneMatch_ = entityTag
39358	return c
39359}
39360
39361// Context sets the context to be used in this call's Do method. Any
39362// pending HTTP request will be aborted if the provided context is
39363// canceled.
39364func (c *OrganizationsInstancesNatAddressesListCall) Context(ctx context.Context) *OrganizationsInstancesNatAddressesListCall {
39365	c.ctx_ = ctx
39366	return c
39367}
39368
39369// Header returns an http.Header that can be modified by the caller to
39370// add HTTP headers to the request.
39371func (c *OrganizationsInstancesNatAddressesListCall) Header() http.Header {
39372	if c.header_ == nil {
39373		c.header_ = make(http.Header)
39374	}
39375	return c.header_
39376}
39377
39378func (c *OrganizationsInstancesNatAddressesListCall) doRequest(alt string) (*http.Response, error) {
39379	reqHeaders := make(http.Header)
39380	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
39381	for k, v := range c.header_ {
39382		reqHeaders[k] = v
39383	}
39384	reqHeaders.Set("User-Agent", c.s.userAgent())
39385	if c.ifNoneMatch_ != "" {
39386		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
39387	}
39388	var body io.Reader = nil
39389	c.urlParams_.Set("alt", alt)
39390	c.urlParams_.Set("prettyPrint", "false")
39391	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/natAddresses")
39392	urls += "?" + c.urlParams_.Encode()
39393	req, err := http.NewRequest("GET", urls, body)
39394	if err != nil {
39395		return nil, err
39396	}
39397	req.Header = reqHeaders
39398	googleapi.Expand(req.URL, map[string]string{
39399		"parent": c.parent,
39400	})
39401	return gensupport.SendRequest(c.ctx_, c.s.client, req)
39402}
39403
39404// Do executes the "apigee.organizations.instances.natAddresses.list" call.
39405// Exactly one of *GoogleCloudApigeeV1ListNatAddressesResponse or error
39406// will be non-nil. Any non-2xx status code is an error. Response
39407// headers are in either
39408// *GoogleCloudApigeeV1ListNatAddressesResponse.ServerResponse.Header or
39409// (if a response was returned at all) in
39410// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
39411// whether the returned error was because http.StatusNotModified was
39412// returned.
39413func (c *OrganizationsInstancesNatAddressesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListNatAddressesResponse, error) {
39414	gensupport.SetOptions(c.urlParams_, opts...)
39415	res, err := c.doRequest("json")
39416	if res != nil && res.StatusCode == http.StatusNotModified {
39417		if res.Body != nil {
39418			res.Body.Close()
39419		}
39420		return nil, &googleapi.Error{
39421			Code:   res.StatusCode,
39422			Header: res.Header,
39423		}
39424	}
39425	if err != nil {
39426		return nil, err
39427	}
39428	defer googleapi.CloseBody(res)
39429	if err := googleapi.CheckResponse(res); err != nil {
39430		return nil, err
39431	}
39432	ret := &GoogleCloudApigeeV1ListNatAddressesResponse{
39433		ServerResponse: googleapi.ServerResponse{
39434			Header:         res.Header,
39435			HTTPStatusCode: res.StatusCode,
39436		},
39437	}
39438	target := &ret
39439	if err := gensupport.DecodeResponse(target, res); err != nil {
39440		return nil, err
39441	}
39442	return ret, nil
39443	// {
39444	//   "description": "Lists the NAT addresses for an Apigee instance. **Note:** Not supported for Apigee hybrid.",
39445	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/natAddresses",
39446	//   "httpMethod": "GET",
39447	//   "id": "apigee.organizations.instances.natAddresses.list",
39448	//   "parameterOrder": [
39449	//     "parent"
39450	//   ],
39451	//   "parameters": {
39452	//     "pageSize": {
39453	//       "description": "Maximum number of natAddresses to return. Defaults to 25.",
39454	//       "format": "int32",
39455	//       "location": "query",
39456	//       "type": "integer"
39457	//     },
39458	//     "pageToken": {
39459	//       "description": "Page token, returned from a previous ListNatAddresses call, that you can use to retrieve the next page of content.",
39460	//       "location": "query",
39461	//       "type": "string"
39462	//     },
39463	//     "parent": {
39464	//       "description": "Required. Name of the instance. Use the following structure in your request: `organizations/{org}/instances/{instance}`",
39465	//       "location": "path",
39466	//       "pattern": "^organizations/[^/]+/instances/[^/]+$",
39467	//       "required": true,
39468	//       "type": "string"
39469	//     }
39470	//   },
39471	//   "path": "v1/{+parent}/natAddresses",
39472	//   "response": {
39473	//     "$ref": "GoogleCloudApigeeV1ListNatAddressesResponse"
39474	//   },
39475	//   "scopes": [
39476	//     "https://www.googleapis.com/auth/cloud-platform"
39477	//   ]
39478	// }
39479
39480}
39481
39482// Pages invokes f for each page of results.
39483// A non-nil error returned from f will halt the iteration.
39484// The provided context supersedes any context provided to the Context method.
39485func (c *OrganizationsInstancesNatAddressesListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListNatAddressesResponse) error) error {
39486	c.ctx_ = ctx
39487	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
39488	for {
39489		x, err := c.Do()
39490		if err != nil {
39491			return err
39492		}
39493		if err := f(x); err != nil {
39494			return err
39495		}
39496		if x.NextPageToken == "" {
39497			return nil
39498		}
39499		c.PageToken(x.NextPageToken)
39500	}
39501}
39502
39503// method id "apigee.organizations.keyvaluemaps.create":
39504
39505type OrganizationsKeyvaluemapsCreateCall struct {
39506	s                              *Service
39507	parent                         string
39508	googlecloudapigeev1keyvaluemap *GoogleCloudApigeeV1KeyValueMap
39509	urlParams_                     gensupport.URLParams
39510	ctx_                           context.Context
39511	header_                        http.Header
39512}
39513
39514// Create: Creates a key value map in an organization.
39515//
39516// - parent: The name of the organization in which to create the key
39517//   value map file. Must be of the form `organizations/{organization}`.
39518func (r *OrganizationsKeyvaluemapsService) Create(parent string, googlecloudapigeev1keyvaluemap *GoogleCloudApigeeV1KeyValueMap) *OrganizationsKeyvaluemapsCreateCall {
39519	c := &OrganizationsKeyvaluemapsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39520	c.parent = parent
39521	c.googlecloudapigeev1keyvaluemap = googlecloudapigeev1keyvaluemap
39522	return c
39523}
39524
39525// Fields allows partial responses to be retrieved. See
39526// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
39527// for more information.
39528func (c *OrganizationsKeyvaluemapsCreateCall) Fields(s ...googleapi.Field) *OrganizationsKeyvaluemapsCreateCall {
39529	c.urlParams_.Set("fields", googleapi.CombineFields(s))
39530	return c
39531}
39532
39533// Context sets the context to be used in this call's Do method. Any
39534// pending HTTP request will be aborted if the provided context is
39535// canceled.
39536func (c *OrganizationsKeyvaluemapsCreateCall) Context(ctx context.Context) *OrganizationsKeyvaluemapsCreateCall {
39537	c.ctx_ = ctx
39538	return c
39539}
39540
39541// Header returns an http.Header that can be modified by the caller to
39542// add HTTP headers to the request.
39543func (c *OrganizationsKeyvaluemapsCreateCall) Header() http.Header {
39544	if c.header_ == nil {
39545		c.header_ = make(http.Header)
39546	}
39547	return c.header_
39548}
39549
39550func (c *OrganizationsKeyvaluemapsCreateCall) doRequest(alt string) (*http.Response, error) {
39551	reqHeaders := make(http.Header)
39552	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
39553	for k, v := range c.header_ {
39554		reqHeaders[k] = v
39555	}
39556	reqHeaders.Set("User-Agent", c.s.userAgent())
39557	var body io.Reader = nil
39558	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1keyvaluemap)
39559	if err != nil {
39560		return nil, err
39561	}
39562	reqHeaders.Set("Content-Type", "application/json")
39563	c.urlParams_.Set("alt", alt)
39564	c.urlParams_.Set("prettyPrint", "false")
39565	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keyvaluemaps")
39566	urls += "?" + c.urlParams_.Encode()
39567	req, err := http.NewRequest("POST", urls, body)
39568	if err != nil {
39569		return nil, err
39570	}
39571	req.Header = reqHeaders
39572	googleapi.Expand(req.URL, map[string]string{
39573		"parent": c.parent,
39574	})
39575	return gensupport.SendRequest(c.ctx_, c.s.client, req)
39576}
39577
39578// Do executes the "apigee.organizations.keyvaluemaps.create" call.
39579// Exactly one of *GoogleCloudApigeeV1KeyValueMap or error will be
39580// non-nil. Any non-2xx status code is an error. Response headers are in
39581// either *GoogleCloudApigeeV1KeyValueMap.ServerResponse.Header or (if a
39582// response was returned at all) in error.(*googleapi.Error).Header. Use
39583// googleapi.IsNotModified to check whether the returned error was
39584// because http.StatusNotModified was returned.
39585func (c *OrganizationsKeyvaluemapsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueMap, error) {
39586	gensupport.SetOptions(c.urlParams_, opts...)
39587	res, err := c.doRequest("json")
39588	if res != nil && res.StatusCode == http.StatusNotModified {
39589		if res.Body != nil {
39590			res.Body.Close()
39591		}
39592		return nil, &googleapi.Error{
39593			Code:   res.StatusCode,
39594			Header: res.Header,
39595		}
39596	}
39597	if err != nil {
39598		return nil, err
39599	}
39600	defer googleapi.CloseBody(res)
39601	if err := googleapi.CheckResponse(res); err != nil {
39602		return nil, err
39603	}
39604	ret := &GoogleCloudApigeeV1KeyValueMap{
39605		ServerResponse: googleapi.ServerResponse{
39606			Header:         res.Header,
39607			HTTPStatusCode: res.StatusCode,
39608		},
39609	}
39610	target := &ret
39611	if err := gensupport.DecodeResponse(target, res); err != nil {
39612		return nil, err
39613	}
39614	return ret, nil
39615	// {
39616	//   "description": "Creates a key value map in an organization.",
39617	//   "flatPath": "v1/organizations/{organizationsId}/keyvaluemaps",
39618	//   "httpMethod": "POST",
39619	//   "id": "apigee.organizations.keyvaluemaps.create",
39620	//   "parameterOrder": [
39621	//     "parent"
39622	//   ],
39623	//   "parameters": {
39624	//     "parent": {
39625	//       "description": "Required. The name of the organization in which to create the key value map file. Must be of the form `organizations/{organization}`.",
39626	//       "location": "path",
39627	//       "pattern": "^organizations/[^/]+$",
39628	//       "required": true,
39629	//       "type": "string"
39630	//     }
39631	//   },
39632	//   "path": "v1/{+parent}/keyvaluemaps",
39633	//   "request": {
39634	//     "$ref": "GoogleCloudApigeeV1KeyValueMap"
39635	//   },
39636	//   "response": {
39637	//     "$ref": "GoogleCloudApigeeV1KeyValueMap"
39638	//   },
39639	//   "scopes": [
39640	//     "https://www.googleapis.com/auth/cloud-platform"
39641	//   ]
39642	// }
39643
39644}
39645
39646// method id "apigee.organizations.keyvaluemaps.delete":
39647
39648type OrganizationsKeyvaluemapsDeleteCall struct {
39649	s          *Service
39650	name       string
39651	urlParams_ gensupport.URLParams
39652	ctx_       context.Context
39653	header_    http.Header
39654}
39655
39656// Delete: Delete a key value map in an organization.
39657//
39658// - name: The name of the key value map. Must be of the form
39659//   `organizations/{organization}/keyvaluemaps/{keyvaluemap}`.
39660func (r *OrganizationsKeyvaluemapsService) Delete(name string) *OrganizationsKeyvaluemapsDeleteCall {
39661	c := &OrganizationsKeyvaluemapsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39662	c.name = name
39663	return c
39664}
39665
39666// Fields allows partial responses to be retrieved. See
39667// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
39668// for more information.
39669func (c *OrganizationsKeyvaluemapsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsKeyvaluemapsDeleteCall {
39670	c.urlParams_.Set("fields", googleapi.CombineFields(s))
39671	return c
39672}
39673
39674// Context sets the context to be used in this call's Do method. Any
39675// pending HTTP request will be aborted if the provided context is
39676// canceled.
39677func (c *OrganizationsKeyvaluemapsDeleteCall) Context(ctx context.Context) *OrganizationsKeyvaluemapsDeleteCall {
39678	c.ctx_ = ctx
39679	return c
39680}
39681
39682// Header returns an http.Header that can be modified by the caller to
39683// add HTTP headers to the request.
39684func (c *OrganizationsKeyvaluemapsDeleteCall) Header() http.Header {
39685	if c.header_ == nil {
39686		c.header_ = make(http.Header)
39687	}
39688	return c.header_
39689}
39690
39691func (c *OrganizationsKeyvaluemapsDeleteCall) doRequest(alt string) (*http.Response, error) {
39692	reqHeaders := make(http.Header)
39693	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
39694	for k, v := range c.header_ {
39695		reqHeaders[k] = v
39696	}
39697	reqHeaders.Set("User-Agent", c.s.userAgent())
39698	var body io.Reader = nil
39699	c.urlParams_.Set("alt", alt)
39700	c.urlParams_.Set("prettyPrint", "false")
39701	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
39702	urls += "?" + c.urlParams_.Encode()
39703	req, err := http.NewRequest("DELETE", urls, body)
39704	if err != nil {
39705		return nil, err
39706	}
39707	req.Header = reqHeaders
39708	googleapi.Expand(req.URL, map[string]string{
39709		"name": c.name,
39710	})
39711	return gensupport.SendRequest(c.ctx_, c.s.client, req)
39712}
39713
39714// Do executes the "apigee.organizations.keyvaluemaps.delete" call.
39715// Exactly one of *GoogleCloudApigeeV1KeyValueMap or error will be
39716// non-nil. Any non-2xx status code is an error. Response headers are in
39717// either *GoogleCloudApigeeV1KeyValueMap.ServerResponse.Header or (if a
39718// response was returned at all) in error.(*googleapi.Error).Header. Use
39719// googleapi.IsNotModified to check whether the returned error was
39720// because http.StatusNotModified was returned.
39721func (c *OrganizationsKeyvaluemapsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueMap, error) {
39722	gensupport.SetOptions(c.urlParams_, opts...)
39723	res, err := c.doRequest("json")
39724	if res != nil && res.StatusCode == http.StatusNotModified {
39725		if res.Body != nil {
39726			res.Body.Close()
39727		}
39728		return nil, &googleapi.Error{
39729			Code:   res.StatusCode,
39730			Header: res.Header,
39731		}
39732	}
39733	if err != nil {
39734		return nil, err
39735	}
39736	defer googleapi.CloseBody(res)
39737	if err := googleapi.CheckResponse(res); err != nil {
39738		return nil, err
39739	}
39740	ret := &GoogleCloudApigeeV1KeyValueMap{
39741		ServerResponse: googleapi.ServerResponse{
39742			Header:         res.Header,
39743			HTTPStatusCode: res.StatusCode,
39744		},
39745	}
39746	target := &ret
39747	if err := gensupport.DecodeResponse(target, res); err != nil {
39748		return nil, err
39749	}
39750	return ret, nil
39751	// {
39752	//   "description": "Delete a key value map in an organization.",
39753	//   "flatPath": "v1/organizations/{organizationsId}/keyvaluemaps/{keyvaluemapsId}",
39754	//   "httpMethod": "DELETE",
39755	//   "id": "apigee.organizations.keyvaluemaps.delete",
39756	//   "parameterOrder": [
39757	//     "name"
39758	//   ],
39759	//   "parameters": {
39760	//     "name": {
39761	//       "description": "Required. The name of the key value map. Must be of the form `organizations/{organization}/keyvaluemaps/{keyvaluemap}`.",
39762	//       "location": "path",
39763	//       "pattern": "^organizations/[^/]+/keyvaluemaps/[^/]+$",
39764	//       "required": true,
39765	//       "type": "string"
39766	//     }
39767	//   },
39768	//   "path": "v1/{+name}",
39769	//   "response": {
39770	//     "$ref": "GoogleCloudApigeeV1KeyValueMap"
39771	//   },
39772	//   "scopes": [
39773	//     "https://www.googleapis.com/auth/cloud-platform"
39774	//   ]
39775	// }
39776
39777}
39778
39779// method id "apigee.organizations.operations.get":
39780
39781type OrganizationsOperationsGetCall struct {
39782	s            *Service
39783	name         string
39784	urlParams_   gensupport.URLParams
39785	ifNoneMatch_ string
39786	ctx_         context.Context
39787	header_      http.Header
39788}
39789
39790// Get: Gets the latest state of a long-running operation. Clients can
39791// use this method to poll the operation result at intervals as
39792// recommended by the API service.
39793//
39794// - name: The name of the operation resource.
39795func (r *OrganizationsOperationsService) Get(name string) *OrganizationsOperationsGetCall {
39796	c := &OrganizationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39797	c.name = name
39798	return c
39799}
39800
39801// Fields allows partial responses to be retrieved. See
39802// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
39803// for more information.
39804func (c *OrganizationsOperationsGetCall) Fields(s ...googleapi.Field) *OrganizationsOperationsGetCall {
39805	c.urlParams_.Set("fields", googleapi.CombineFields(s))
39806	return c
39807}
39808
39809// IfNoneMatch sets the optional parameter which makes the operation
39810// fail if the object's ETag matches the given value. This is useful for
39811// getting updates only after the object has changed since the last
39812// request. Use googleapi.IsNotModified to check whether the response
39813// error from Do is the result of In-None-Match.
39814func (c *OrganizationsOperationsGetCall) IfNoneMatch(entityTag string) *OrganizationsOperationsGetCall {
39815	c.ifNoneMatch_ = entityTag
39816	return c
39817}
39818
39819// Context sets the context to be used in this call's Do method. Any
39820// pending HTTP request will be aborted if the provided context is
39821// canceled.
39822func (c *OrganizationsOperationsGetCall) Context(ctx context.Context) *OrganizationsOperationsGetCall {
39823	c.ctx_ = ctx
39824	return c
39825}
39826
39827// Header returns an http.Header that can be modified by the caller to
39828// add HTTP headers to the request.
39829func (c *OrganizationsOperationsGetCall) Header() http.Header {
39830	if c.header_ == nil {
39831		c.header_ = make(http.Header)
39832	}
39833	return c.header_
39834}
39835
39836func (c *OrganizationsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
39837	reqHeaders := make(http.Header)
39838	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
39839	for k, v := range c.header_ {
39840		reqHeaders[k] = v
39841	}
39842	reqHeaders.Set("User-Agent", c.s.userAgent())
39843	if c.ifNoneMatch_ != "" {
39844		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
39845	}
39846	var body io.Reader = nil
39847	c.urlParams_.Set("alt", alt)
39848	c.urlParams_.Set("prettyPrint", "false")
39849	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
39850	urls += "?" + c.urlParams_.Encode()
39851	req, err := http.NewRequest("GET", urls, body)
39852	if err != nil {
39853		return nil, err
39854	}
39855	req.Header = reqHeaders
39856	googleapi.Expand(req.URL, map[string]string{
39857		"name": c.name,
39858	})
39859	return gensupport.SendRequest(c.ctx_, c.s.client, req)
39860}
39861
39862// Do executes the "apigee.organizations.operations.get" call.
39863// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
39864// Any non-2xx status code is an error. Response headers are in either
39865// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
39866// was returned at all) in error.(*googleapi.Error).Header. Use
39867// googleapi.IsNotModified to check whether the returned error was
39868// because http.StatusNotModified was returned.
39869func (c *OrganizationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
39870	gensupport.SetOptions(c.urlParams_, opts...)
39871	res, err := c.doRequest("json")
39872	if res != nil && res.StatusCode == http.StatusNotModified {
39873		if res.Body != nil {
39874			res.Body.Close()
39875		}
39876		return nil, &googleapi.Error{
39877			Code:   res.StatusCode,
39878			Header: res.Header,
39879		}
39880	}
39881	if err != nil {
39882		return nil, err
39883	}
39884	defer googleapi.CloseBody(res)
39885	if err := googleapi.CheckResponse(res); err != nil {
39886		return nil, err
39887	}
39888	ret := &GoogleLongrunningOperation{
39889		ServerResponse: googleapi.ServerResponse{
39890			Header:         res.Header,
39891			HTTPStatusCode: res.StatusCode,
39892		},
39893	}
39894	target := &ret
39895	if err := gensupport.DecodeResponse(target, res); err != nil {
39896		return nil, err
39897	}
39898	return ret, nil
39899	// {
39900	//   "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.",
39901	//   "flatPath": "v1/organizations/{organizationsId}/operations/{operationsId}",
39902	//   "httpMethod": "GET",
39903	//   "id": "apigee.organizations.operations.get",
39904	//   "parameterOrder": [
39905	//     "name"
39906	//   ],
39907	//   "parameters": {
39908	//     "name": {
39909	//       "description": "The name of the operation resource.",
39910	//       "location": "path",
39911	//       "pattern": "^organizations/[^/]+/operations/[^/]+$",
39912	//       "required": true,
39913	//       "type": "string"
39914	//     }
39915	//   },
39916	//   "path": "v1/{+name}",
39917	//   "response": {
39918	//     "$ref": "GoogleLongrunningOperation"
39919	//   },
39920	//   "scopes": [
39921	//     "https://www.googleapis.com/auth/cloud-platform"
39922	//   ]
39923	// }
39924
39925}
39926
39927// method id "apigee.organizations.operations.list":
39928
39929type OrganizationsOperationsListCall struct {
39930	s            *Service
39931	name         string
39932	urlParams_   gensupport.URLParams
39933	ifNoneMatch_ string
39934	ctx_         context.Context
39935	header_      http.Header
39936}
39937
39938// List: Lists operations that match the specified filter in the
39939// request. If the server doesn't support this method, it returns
39940// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to
39941// override the binding to use different resource name schemes, such as
39942// `users/*/operations`. To override the binding, API services can add a
39943// binding such as "/v1/{name=users/*}/operations" to their service
39944// configuration. For backwards compatibility, the default name includes
39945// the operations collection id, however overriding users must ensure
39946// the name binding is the parent resource, without the operations
39947// collection id.
39948//
39949// - name: The name of the operation's parent resource.
39950func (r *OrganizationsOperationsService) List(name string) *OrganizationsOperationsListCall {
39951	c := &OrganizationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39952	c.name = name
39953	return c
39954}
39955
39956// Filter sets the optional parameter "filter": The standard list
39957// filter.
39958func (c *OrganizationsOperationsListCall) Filter(filter string) *OrganizationsOperationsListCall {
39959	c.urlParams_.Set("filter", filter)
39960	return c
39961}
39962
39963// PageSize sets the optional parameter "pageSize": The standard list
39964// page size.
39965func (c *OrganizationsOperationsListCall) PageSize(pageSize int64) *OrganizationsOperationsListCall {
39966	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
39967	return c
39968}
39969
39970// PageToken sets the optional parameter "pageToken": The standard list
39971// page token.
39972func (c *OrganizationsOperationsListCall) PageToken(pageToken string) *OrganizationsOperationsListCall {
39973	c.urlParams_.Set("pageToken", pageToken)
39974	return c
39975}
39976
39977// Fields allows partial responses to be retrieved. See
39978// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
39979// for more information.
39980func (c *OrganizationsOperationsListCall) Fields(s ...googleapi.Field) *OrganizationsOperationsListCall {
39981	c.urlParams_.Set("fields", googleapi.CombineFields(s))
39982	return c
39983}
39984
39985// IfNoneMatch sets the optional parameter which makes the operation
39986// fail if the object's ETag matches the given value. This is useful for
39987// getting updates only after the object has changed since the last
39988// request. Use googleapi.IsNotModified to check whether the response
39989// error from Do is the result of In-None-Match.
39990func (c *OrganizationsOperationsListCall) IfNoneMatch(entityTag string) *OrganizationsOperationsListCall {
39991	c.ifNoneMatch_ = entityTag
39992	return c
39993}
39994
39995// Context sets the context to be used in this call's Do method. Any
39996// pending HTTP request will be aborted if the provided context is
39997// canceled.
39998func (c *OrganizationsOperationsListCall) Context(ctx context.Context) *OrganizationsOperationsListCall {
39999	c.ctx_ = ctx
40000	return c
40001}
40002
40003// Header returns an http.Header that can be modified by the caller to
40004// add HTTP headers to the request.
40005func (c *OrganizationsOperationsListCall) Header() http.Header {
40006	if c.header_ == nil {
40007		c.header_ = make(http.Header)
40008	}
40009	return c.header_
40010}
40011
40012func (c *OrganizationsOperationsListCall) doRequest(alt string) (*http.Response, error) {
40013	reqHeaders := make(http.Header)
40014	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
40015	for k, v := range c.header_ {
40016		reqHeaders[k] = v
40017	}
40018	reqHeaders.Set("User-Agent", c.s.userAgent())
40019	if c.ifNoneMatch_ != "" {
40020		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
40021	}
40022	var body io.Reader = nil
40023	c.urlParams_.Set("alt", alt)
40024	c.urlParams_.Set("prettyPrint", "false")
40025	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations")
40026	urls += "?" + c.urlParams_.Encode()
40027	req, err := http.NewRequest("GET", urls, body)
40028	if err != nil {
40029		return nil, err
40030	}
40031	req.Header = reqHeaders
40032	googleapi.Expand(req.URL, map[string]string{
40033		"name": c.name,
40034	})
40035	return gensupport.SendRequest(c.ctx_, c.s.client, req)
40036}
40037
40038// Do executes the "apigee.organizations.operations.list" call.
40039// Exactly one of *GoogleLongrunningListOperationsResponse or error will
40040// be non-nil. Any non-2xx status code is an error. Response headers are
40041// in either
40042// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if
40043// a response was returned at all) in error.(*googleapi.Error).Header.
40044// Use googleapi.IsNotModified to check whether the returned error was
40045// because http.StatusNotModified was returned.
40046func (c *OrganizationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
40047	gensupport.SetOptions(c.urlParams_, opts...)
40048	res, err := c.doRequest("json")
40049	if res != nil && res.StatusCode == http.StatusNotModified {
40050		if res.Body != nil {
40051			res.Body.Close()
40052		}
40053		return nil, &googleapi.Error{
40054			Code:   res.StatusCode,
40055			Header: res.Header,
40056		}
40057	}
40058	if err != nil {
40059		return nil, err
40060	}
40061	defer googleapi.CloseBody(res)
40062	if err := googleapi.CheckResponse(res); err != nil {
40063		return nil, err
40064	}
40065	ret := &GoogleLongrunningListOperationsResponse{
40066		ServerResponse: googleapi.ServerResponse{
40067			Header:         res.Header,
40068			HTTPStatusCode: res.StatusCode,
40069		},
40070	}
40071	target := &ret
40072	if err := gensupport.DecodeResponse(target, res); err != nil {
40073		return nil, err
40074	}
40075	return ret, nil
40076	// {
40077	//   "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.",
40078	//   "flatPath": "v1/organizations/{organizationsId}/operations",
40079	//   "httpMethod": "GET",
40080	//   "id": "apigee.organizations.operations.list",
40081	//   "parameterOrder": [
40082	//     "name"
40083	//   ],
40084	//   "parameters": {
40085	//     "filter": {
40086	//       "description": "The standard list filter.",
40087	//       "location": "query",
40088	//       "type": "string"
40089	//     },
40090	//     "name": {
40091	//       "description": "The name of the operation's parent resource.",
40092	//       "location": "path",
40093	//       "pattern": "^organizations/[^/]+$",
40094	//       "required": true,
40095	//       "type": "string"
40096	//     },
40097	//     "pageSize": {
40098	//       "description": "The standard list page size.",
40099	//       "format": "int32",
40100	//       "location": "query",
40101	//       "type": "integer"
40102	//     },
40103	//     "pageToken": {
40104	//       "description": "The standard list page token.",
40105	//       "location": "query",
40106	//       "type": "string"
40107	//     }
40108	//   },
40109	//   "path": "v1/{+name}/operations",
40110	//   "response": {
40111	//     "$ref": "GoogleLongrunningListOperationsResponse"
40112	//   },
40113	//   "scopes": [
40114	//     "https://www.googleapis.com/auth/cloud-platform"
40115	//   ]
40116	// }
40117
40118}
40119
40120// Pages invokes f for each page of results.
40121// A non-nil error returned from f will halt the iteration.
40122// The provided context supersedes any context provided to the Context method.
40123func (c *OrganizationsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
40124	c.ctx_ = ctx
40125	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
40126	for {
40127		x, err := c.Do()
40128		if err != nil {
40129			return err
40130		}
40131		if err := f(x); err != nil {
40132			return err
40133		}
40134		if x.NextPageToken == "" {
40135			return nil
40136		}
40137		c.PageToken(x.NextPageToken)
40138	}
40139}
40140
40141// method id "apigee.organizations.optimizedHostStats.get":
40142
40143type OrganizationsOptimizedHostStatsGetCall struct {
40144	s            *Service
40145	name         string
40146	urlParams_   gensupport.URLParams
40147	ifNoneMatch_ string
40148	ctx_         context.Context
40149	header_      http.Header
40150}
40151
40152// Get: This api is similar to GetHostStats except that the response is
40153// less verbose.
40154//
40155// - name: The resource name for which the interactive query will be
40156//   executed. Must be of the form
40157//   `organizations/{organization_id}/optimizedHostStats/{dimensions}`.
40158//   Dimensions let you view metrics in meaningful groupings. E.g.
40159//   apiproxy, target_host. The value of dimensions should be comma
40160//   separated list as shown below
40161//   `organizations/{org}/optimizedHostStats/apiproxy,request_verb`.
40162func (r *OrganizationsOptimizedHostStatsService) Get(name string) *OrganizationsOptimizedHostStatsGetCall {
40163	c := &OrganizationsOptimizedHostStatsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40164	c.name = name
40165	return c
40166}
40167
40168// Accuracy sets the optional parameter "accuracy": Legacy field: not
40169// used anymore.
40170func (c *OrganizationsOptimizedHostStatsGetCall) Accuracy(accuracy string) *OrganizationsOptimizedHostStatsGetCall {
40171	c.urlParams_.Set("accuracy", accuracy)
40172	return c
40173}
40174
40175// EnvgroupHostname sets the optional parameter "envgroupHostname":
40176// Required. The hostname for which the interactive query will be
40177// executed.
40178func (c *OrganizationsOptimizedHostStatsGetCall) EnvgroupHostname(envgroupHostname string) *OrganizationsOptimizedHostStatsGetCall {
40179	c.urlParams_.Set("envgroupHostname", envgroupHostname)
40180	return c
40181}
40182
40183// Filter sets the optional parameter "filter": Enables drill-down on
40184// specific dimension values.
40185func (c *OrganizationsOptimizedHostStatsGetCall) Filter(filter string) *OrganizationsOptimizedHostStatsGetCall {
40186	c.urlParams_.Set("filter", filter)
40187	return c
40188}
40189
40190// Limit sets the optional parameter "limit": This parameter is used to
40191// limit the number of result items. Default and the max value is 14400.
40192func (c *OrganizationsOptimizedHostStatsGetCall) Limit(limit string) *OrganizationsOptimizedHostStatsGetCall {
40193	c.urlParams_.Set("limit", limit)
40194	return c
40195}
40196
40197// Offset sets the optional parameter "offset": Use offset with limit to
40198// enable pagination of results. For example, to display results 11-20,
40199// set limit to '10' and offset to '10'.
40200func (c *OrganizationsOptimizedHostStatsGetCall) Offset(offset string) *OrganizationsOptimizedHostStatsGetCall {
40201	c.urlParams_.Set("offset", offset)
40202	return c
40203}
40204
40205// Realtime sets the optional parameter "realtime": Legacy field: not
40206// used anymore.
40207func (c *OrganizationsOptimizedHostStatsGetCall) Realtime(realtime bool) *OrganizationsOptimizedHostStatsGetCall {
40208	c.urlParams_.Set("realtime", fmt.Sprint(realtime))
40209	return c
40210}
40211
40212// Select sets the optional parameter "select": Required. The select
40213// parameter contains a comma separated list of metrics. E.g.
40214// sum(message_count),sum(error_count)
40215func (c *OrganizationsOptimizedHostStatsGetCall) Select(select_ string) *OrganizationsOptimizedHostStatsGetCall {
40216	c.urlParams_.Set("select", select_)
40217	return c
40218}
40219
40220// Sort sets the optional parameter "sort": This parameter specifies if
40221// the sort order should be ascending or descending Supported values are
40222// DESC and ASC.
40223func (c *OrganizationsOptimizedHostStatsGetCall) Sort(sort string) *OrganizationsOptimizedHostStatsGetCall {
40224	c.urlParams_.Set("sort", sort)
40225	return c
40226}
40227
40228// Sortby sets the optional parameter "sortby": Comma separated list of
40229// columns to sort the final result.
40230func (c *OrganizationsOptimizedHostStatsGetCall) Sortby(sortby string) *OrganizationsOptimizedHostStatsGetCall {
40231	c.urlParams_.Set("sortby", sortby)
40232	return c
40233}
40234
40235// TimeRange sets the optional parameter "timeRange": Required. Time
40236// interval for the interactive query. Time range is specified as
40237// start~end. E.g 04/15/2017 00:00~05/15/2017 23:59.
40238func (c *OrganizationsOptimizedHostStatsGetCall) TimeRange(timeRange string) *OrganizationsOptimizedHostStatsGetCall {
40239	c.urlParams_.Set("timeRange", timeRange)
40240	return c
40241}
40242
40243// TimeUnit sets the optional parameter "timeUnit": A value of second,
40244// minute, hour, day, week, month. Time Unit specifies the granularity
40245// of metrics returned.
40246func (c *OrganizationsOptimizedHostStatsGetCall) TimeUnit(timeUnit string) *OrganizationsOptimizedHostStatsGetCall {
40247	c.urlParams_.Set("timeUnit", timeUnit)
40248	return c
40249}
40250
40251// Topk sets the optional parameter "topk": Take 'top k' results from
40252// results, for example, to return the top 5 results 'topk=5'.
40253func (c *OrganizationsOptimizedHostStatsGetCall) Topk(topk string) *OrganizationsOptimizedHostStatsGetCall {
40254	c.urlParams_.Set("topk", topk)
40255	return c
40256}
40257
40258// TsAscending sets the optional parameter "tsAscending": Lists
40259// timestamps in ascending order if set to true. Recommend setting this
40260// value to true if you are using sortby with sort=DESC.
40261func (c *OrganizationsOptimizedHostStatsGetCall) TsAscending(tsAscending bool) *OrganizationsOptimizedHostStatsGetCall {
40262	c.urlParams_.Set("tsAscending", fmt.Sprint(tsAscending))
40263	return c
40264}
40265
40266// Tzo sets the optional parameter "tzo": This parameters contains the
40267// timezone offset value.
40268func (c *OrganizationsOptimizedHostStatsGetCall) Tzo(tzo string) *OrganizationsOptimizedHostStatsGetCall {
40269	c.urlParams_.Set("tzo", tzo)
40270	return c
40271}
40272
40273// Fields allows partial responses to be retrieved. See
40274// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
40275// for more information.
40276func (c *OrganizationsOptimizedHostStatsGetCall) Fields(s ...googleapi.Field) *OrganizationsOptimizedHostStatsGetCall {
40277	c.urlParams_.Set("fields", googleapi.CombineFields(s))
40278	return c
40279}
40280
40281// IfNoneMatch sets the optional parameter which makes the operation
40282// fail if the object's ETag matches the given value. This is useful for
40283// getting updates only after the object has changed since the last
40284// request. Use googleapi.IsNotModified to check whether the response
40285// error from Do is the result of In-None-Match.
40286func (c *OrganizationsOptimizedHostStatsGetCall) IfNoneMatch(entityTag string) *OrganizationsOptimizedHostStatsGetCall {
40287	c.ifNoneMatch_ = entityTag
40288	return c
40289}
40290
40291// Context sets the context to be used in this call's Do method. Any
40292// pending HTTP request will be aborted if the provided context is
40293// canceled.
40294func (c *OrganizationsOptimizedHostStatsGetCall) Context(ctx context.Context) *OrganizationsOptimizedHostStatsGetCall {
40295	c.ctx_ = ctx
40296	return c
40297}
40298
40299// Header returns an http.Header that can be modified by the caller to
40300// add HTTP headers to the request.
40301func (c *OrganizationsOptimizedHostStatsGetCall) Header() http.Header {
40302	if c.header_ == nil {
40303		c.header_ = make(http.Header)
40304	}
40305	return c.header_
40306}
40307
40308func (c *OrganizationsOptimizedHostStatsGetCall) doRequest(alt string) (*http.Response, error) {
40309	reqHeaders := make(http.Header)
40310	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
40311	for k, v := range c.header_ {
40312		reqHeaders[k] = v
40313	}
40314	reqHeaders.Set("User-Agent", c.s.userAgent())
40315	if c.ifNoneMatch_ != "" {
40316		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
40317	}
40318	var body io.Reader = nil
40319	c.urlParams_.Set("alt", alt)
40320	c.urlParams_.Set("prettyPrint", "false")
40321	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
40322	urls += "?" + c.urlParams_.Encode()
40323	req, err := http.NewRequest("GET", urls, body)
40324	if err != nil {
40325		return nil, err
40326	}
40327	req.Header = reqHeaders
40328	googleapi.Expand(req.URL, map[string]string{
40329		"name": c.name,
40330	})
40331	return gensupport.SendRequest(c.ctx_, c.s.client, req)
40332}
40333
40334// Do executes the "apigee.organizations.optimizedHostStats.get" call.
40335// Exactly one of *GoogleCloudApigeeV1OptimizedStats or error will be
40336// non-nil. Any non-2xx status code is an error. Response headers are in
40337// either *GoogleCloudApigeeV1OptimizedStats.ServerResponse.Header or
40338// (if a response was returned at all) in
40339// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
40340// whether the returned error was because http.StatusNotModified was
40341// returned.
40342func (c *OrganizationsOptimizedHostStatsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1OptimizedStats, error) {
40343	gensupport.SetOptions(c.urlParams_, opts...)
40344	res, err := c.doRequest("json")
40345	if res != nil && res.StatusCode == http.StatusNotModified {
40346		if res.Body != nil {
40347			res.Body.Close()
40348		}
40349		return nil, &googleapi.Error{
40350			Code:   res.StatusCode,
40351			Header: res.Header,
40352		}
40353	}
40354	if err != nil {
40355		return nil, err
40356	}
40357	defer googleapi.CloseBody(res)
40358	if err := googleapi.CheckResponse(res); err != nil {
40359		return nil, err
40360	}
40361	ret := &GoogleCloudApigeeV1OptimizedStats{
40362		ServerResponse: googleapi.ServerResponse{
40363			Header:         res.Header,
40364			HTTPStatusCode: res.StatusCode,
40365		},
40366	}
40367	target := &ret
40368	if err := gensupport.DecodeResponse(target, res); err != nil {
40369		return nil, err
40370	}
40371	return ret, nil
40372	// {
40373	//   "description": "This api is similar to GetHostStats except that the response is less verbose.",
40374	//   "flatPath": "v1/organizations/{organizationsId}/optimizedHostStats/{optimizedHostStatsId}",
40375	//   "httpMethod": "GET",
40376	//   "id": "apigee.organizations.optimizedHostStats.get",
40377	//   "parameterOrder": [
40378	//     "name"
40379	//   ],
40380	//   "parameters": {
40381	//     "accuracy": {
40382	//       "description": "Legacy field: not used anymore.",
40383	//       "location": "query",
40384	//       "type": "string"
40385	//     },
40386	//     "envgroupHostname": {
40387	//       "description": "Required. The hostname for which the interactive query will be executed.",
40388	//       "location": "query",
40389	//       "type": "string"
40390	//     },
40391	//     "filter": {
40392	//       "description": "Enables drill-down on specific dimension values.",
40393	//       "location": "query",
40394	//       "type": "string"
40395	//     },
40396	//     "limit": {
40397	//       "description": "This parameter is used to limit the number of result items. Default and the max value is 14400.",
40398	//       "location": "query",
40399	//       "type": "string"
40400	//     },
40401	//     "name": {
40402	//       "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`",
40403	//       "location": "path",
40404	//       "pattern": "^organizations/[^/]+/optimizedHostStats/.*$",
40405	//       "required": true,
40406	//       "type": "string"
40407	//     },
40408	//     "offset": {
40409	//       "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'.",
40410	//       "location": "query",
40411	//       "type": "string"
40412	//     },
40413	//     "realtime": {
40414	//       "description": "Legacy field: not used anymore.",
40415	//       "location": "query",
40416	//       "type": "boolean"
40417	//     },
40418	//     "select": {
40419	//       "description": "Required. The select parameter contains a comma separated list of metrics. E.g. sum(message_count),sum(error_count)",
40420	//       "location": "query",
40421	//       "type": "string"
40422	//     },
40423	//     "sort": {
40424	//       "description": "This parameter specifies if the sort order should be ascending or descending Supported values are DESC and ASC.",
40425	//       "location": "query",
40426	//       "type": "string"
40427	//     },
40428	//     "sortby": {
40429	//       "description": "Comma separated list of columns to sort the final result.",
40430	//       "location": "query",
40431	//       "type": "string"
40432	//     },
40433	//     "timeRange": {
40434	//       "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.",
40435	//       "location": "query",
40436	//       "type": "string"
40437	//     },
40438	//     "timeUnit": {
40439	//       "description": "A value of second, minute, hour, day, week, month. Time Unit specifies the granularity of metrics returned.",
40440	//       "location": "query",
40441	//       "type": "string"
40442	//     },
40443	//     "topk": {
40444	//       "description": "Take 'top k' results from results, for example, to return the top 5 results 'topk=5'.",
40445	//       "location": "query",
40446	//       "type": "string"
40447	//     },
40448	//     "tsAscending": {
40449	//       "description": "Lists timestamps in ascending order if set to true. Recommend setting this value to true if you are using sortby with sort=DESC.",
40450	//       "location": "query",
40451	//       "type": "boolean"
40452	//     },
40453	//     "tzo": {
40454	//       "description": "This parameters contains the timezone offset value.",
40455	//       "location": "query",
40456	//       "type": "string"
40457	//     }
40458	//   },
40459	//   "path": "v1/{+name}",
40460	//   "response": {
40461	//     "$ref": "GoogleCloudApigeeV1OptimizedStats"
40462	//   },
40463	//   "scopes": [
40464	//     "https://www.googleapis.com/auth/cloud-platform"
40465	//   ]
40466	// }
40467
40468}
40469
40470// method id "apigee.organizations.reports.create":
40471
40472type OrganizationsReportsCreateCall struct {
40473	s                               *Service
40474	parent                          string
40475	googlecloudapigeev1customreport *GoogleCloudApigeeV1CustomReport
40476	urlParams_                      gensupport.URLParams
40477	ctx_                            context.Context
40478	header_                         http.Header
40479}
40480
40481// Create: Creates a Custom Report for an Organization. A Custom Report
40482// provides Apigee Customers to create custom dashboards in addition to
40483// the standard dashboards which are provided. The Custom Report in its
40484// simplest form contains specifications about metrics, dimensions and
40485// filters. It is important to note that the custom report by itself
40486// does not provide an executable entity. The Edge UI converts the
40487// custom report definition into an analytics query and displays the
40488// result in a chart.
40489//
40490// - parent: The parent organization name under which the Custom Report
40491//   will be created. Must be of the form:
40492//   `organizations/{organization_id}/reports`.
40493func (r *OrganizationsReportsService) Create(parent string, googlecloudapigeev1customreport *GoogleCloudApigeeV1CustomReport) *OrganizationsReportsCreateCall {
40494	c := &OrganizationsReportsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40495	c.parent = parent
40496	c.googlecloudapigeev1customreport = googlecloudapigeev1customreport
40497	return c
40498}
40499
40500// Fields allows partial responses to be retrieved. See
40501// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
40502// for more information.
40503func (c *OrganizationsReportsCreateCall) Fields(s ...googleapi.Field) *OrganizationsReportsCreateCall {
40504	c.urlParams_.Set("fields", googleapi.CombineFields(s))
40505	return c
40506}
40507
40508// Context sets the context to be used in this call's Do method. Any
40509// pending HTTP request will be aborted if the provided context is
40510// canceled.
40511func (c *OrganizationsReportsCreateCall) Context(ctx context.Context) *OrganizationsReportsCreateCall {
40512	c.ctx_ = ctx
40513	return c
40514}
40515
40516// Header returns an http.Header that can be modified by the caller to
40517// add HTTP headers to the request.
40518func (c *OrganizationsReportsCreateCall) Header() http.Header {
40519	if c.header_ == nil {
40520		c.header_ = make(http.Header)
40521	}
40522	return c.header_
40523}
40524
40525func (c *OrganizationsReportsCreateCall) doRequest(alt string) (*http.Response, error) {
40526	reqHeaders := make(http.Header)
40527	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
40528	for k, v := range c.header_ {
40529		reqHeaders[k] = v
40530	}
40531	reqHeaders.Set("User-Agent", c.s.userAgent())
40532	var body io.Reader = nil
40533	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1customreport)
40534	if err != nil {
40535		return nil, err
40536	}
40537	reqHeaders.Set("Content-Type", "application/json")
40538	c.urlParams_.Set("alt", alt)
40539	c.urlParams_.Set("prettyPrint", "false")
40540	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/reports")
40541	urls += "?" + c.urlParams_.Encode()
40542	req, err := http.NewRequest("POST", urls, body)
40543	if err != nil {
40544		return nil, err
40545	}
40546	req.Header = reqHeaders
40547	googleapi.Expand(req.URL, map[string]string{
40548		"parent": c.parent,
40549	})
40550	return gensupport.SendRequest(c.ctx_, c.s.client, req)
40551}
40552
40553// Do executes the "apigee.organizations.reports.create" call.
40554// Exactly one of *GoogleCloudApigeeV1CustomReport or error will be
40555// non-nil. Any non-2xx status code is an error. Response headers are in
40556// either *GoogleCloudApigeeV1CustomReport.ServerResponse.Header or (if
40557// a response was returned at all) in error.(*googleapi.Error).Header.
40558// Use googleapi.IsNotModified to check whether the returned error was
40559// because http.StatusNotModified was returned.
40560func (c *OrganizationsReportsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1CustomReport, error) {
40561	gensupport.SetOptions(c.urlParams_, opts...)
40562	res, err := c.doRequest("json")
40563	if res != nil && res.StatusCode == http.StatusNotModified {
40564		if res.Body != nil {
40565			res.Body.Close()
40566		}
40567		return nil, &googleapi.Error{
40568			Code:   res.StatusCode,
40569			Header: res.Header,
40570		}
40571	}
40572	if err != nil {
40573		return nil, err
40574	}
40575	defer googleapi.CloseBody(res)
40576	if err := googleapi.CheckResponse(res); err != nil {
40577		return nil, err
40578	}
40579	ret := &GoogleCloudApigeeV1CustomReport{
40580		ServerResponse: googleapi.ServerResponse{
40581			Header:         res.Header,
40582			HTTPStatusCode: res.StatusCode,
40583		},
40584	}
40585	target := &ret
40586	if err := gensupport.DecodeResponse(target, res); err != nil {
40587		return nil, err
40588	}
40589	return ret, nil
40590	// {
40591	//   "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.",
40592	//   "flatPath": "v1/organizations/{organizationsId}/reports",
40593	//   "httpMethod": "POST",
40594	//   "id": "apigee.organizations.reports.create",
40595	//   "parameterOrder": [
40596	//     "parent"
40597	//   ],
40598	//   "parameters": {
40599	//     "parent": {
40600	//       "description": "Required. The parent organization name under which the Custom Report will be created. Must be of the form: `organizations/{organization_id}/reports`",
40601	//       "location": "path",
40602	//       "pattern": "^organizations/[^/]+$",
40603	//       "required": true,
40604	//       "type": "string"
40605	//     }
40606	//   },
40607	//   "path": "v1/{+parent}/reports",
40608	//   "request": {
40609	//     "$ref": "GoogleCloudApigeeV1CustomReport"
40610	//   },
40611	//   "response": {
40612	//     "$ref": "GoogleCloudApigeeV1CustomReport"
40613	//   },
40614	//   "scopes": [
40615	//     "https://www.googleapis.com/auth/cloud-platform"
40616	//   ]
40617	// }
40618
40619}
40620
40621// method id "apigee.organizations.reports.delete":
40622
40623type OrganizationsReportsDeleteCall struct {
40624	s          *Service
40625	name       string
40626	urlParams_ gensupport.URLParams
40627	ctx_       context.Context
40628	header_    http.Header
40629}
40630
40631// Delete: Deletes an existing custom report definition
40632//
40633// - name: Custom Report name of the form:
40634//   `organizations/{organization_id}/reports/{report_name}`.
40635func (r *OrganizationsReportsService) Delete(name string) *OrganizationsReportsDeleteCall {
40636	c := &OrganizationsReportsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40637	c.name = name
40638	return c
40639}
40640
40641// Fields allows partial responses to be retrieved. See
40642// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
40643// for more information.
40644func (c *OrganizationsReportsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsReportsDeleteCall {
40645	c.urlParams_.Set("fields", googleapi.CombineFields(s))
40646	return c
40647}
40648
40649// Context sets the context to be used in this call's Do method. Any
40650// pending HTTP request will be aborted if the provided context is
40651// canceled.
40652func (c *OrganizationsReportsDeleteCall) Context(ctx context.Context) *OrganizationsReportsDeleteCall {
40653	c.ctx_ = ctx
40654	return c
40655}
40656
40657// Header returns an http.Header that can be modified by the caller to
40658// add HTTP headers to the request.
40659func (c *OrganizationsReportsDeleteCall) Header() http.Header {
40660	if c.header_ == nil {
40661		c.header_ = make(http.Header)
40662	}
40663	return c.header_
40664}
40665
40666func (c *OrganizationsReportsDeleteCall) doRequest(alt string) (*http.Response, error) {
40667	reqHeaders := make(http.Header)
40668	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
40669	for k, v := range c.header_ {
40670		reqHeaders[k] = v
40671	}
40672	reqHeaders.Set("User-Agent", c.s.userAgent())
40673	var body io.Reader = nil
40674	c.urlParams_.Set("alt", alt)
40675	c.urlParams_.Set("prettyPrint", "false")
40676	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
40677	urls += "?" + c.urlParams_.Encode()
40678	req, err := http.NewRequest("DELETE", urls, body)
40679	if err != nil {
40680		return nil, err
40681	}
40682	req.Header = reqHeaders
40683	googleapi.Expand(req.URL, map[string]string{
40684		"name": c.name,
40685	})
40686	return gensupport.SendRequest(c.ctx_, c.s.client, req)
40687}
40688
40689// Do executes the "apigee.organizations.reports.delete" call.
40690// Exactly one of *GoogleCloudApigeeV1DeleteCustomReportResponse or
40691// error will be non-nil. Any non-2xx status code is an error. Response
40692// headers are in either
40693// *GoogleCloudApigeeV1DeleteCustomReportResponse.ServerResponse.Header
40694// or (if a response was returned at all) in
40695// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
40696// whether the returned error was because http.StatusNotModified was
40697// returned.
40698func (c *OrganizationsReportsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeleteCustomReportResponse, error) {
40699	gensupport.SetOptions(c.urlParams_, opts...)
40700	res, err := c.doRequest("json")
40701	if res != nil && res.StatusCode == http.StatusNotModified {
40702		if res.Body != nil {
40703			res.Body.Close()
40704		}
40705		return nil, &googleapi.Error{
40706			Code:   res.StatusCode,
40707			Header: res.Header,
40708		}
40709	}
40710	if err != nil {
40711		return nil, err
40712	}
40713	defer googleapi.CloseBody(res)
40714	if err := googleapi.CheckResponse(res); err != nil {
40715		return nil, err
40716	}
40717	ret := &GoogleCloudApigeeV1DeleteCustomReportResponse{
40718		ServerResponse: googleapi.ServerResponse{
40719			Header:         res.Header,
40720			HTTPStatusCode: res.StatusCode,
40721		},
40722	}
40723	target := &ret
40724	if err := gensupport.DecodeResponse(target, res); err != nil {
40725		return nil, err
40726	}
40727	return ret, nil
40728	// {
40729	//   "description": "Deletes an existing custom report definition",
40730	//   "flatPath": "v1/organizations/{organizationsId}/reports/{reportsId}",
40731	//   "httpMethod": "DELETE",
40732	//   "id": "apigee.organizations.reports.delete",
40733	//   "parameterOrder": [
40734	//     "name"
40735	//   ],
40736	//   "parameters": {
40737	//     "name": {
40738	//       "description": "Required. Custom Report name of the form: `organizations/{organization_id}/reports/{report_name}`",
40739	//       "location": "path",
40740	//       "pattern": "^organizations/[^/]+/reports/[^/]+$",
40741	//       "required": true,
40742	//       "type": "string"
40743	//     }
40744	//   },
40745	//   "path": "v1/{+name}",
40746	//   "response": {
40747	//     "$ref": "GoogleCloudApigeeV1DeleteCustomReportResponse"
40748	//   },
40749	//   "scopes": [
40750	//     "https://www.googleapis.com/auth/cloud-platform"
40751	//   ]
40752	// }
40753
40754}
40755
40756// method id "apigee.organizations.reports.get":
40757
40758type OrganizationsReportsGetCall struct {
40759	s            *Service
40760	name         string
40761	urlParams_   gensupport.URLParams
40762	ifNoneMatch_ string
40763	ctx_         context.Context
40764	header_      http.Header
40765}
40766
40767// Get: Retrieve a custom report definition.
40768//
40769// - name: Custom Report name of the form:
40770//   `organizations/{organization_id}/reports/{report_name}`.
40771func (r *OrganizationsReportsService) Get(name string) *OrganizationsReportsGetCall {
40772	c := &OrganizationsReportsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40773	c.name = name
40774	return c
40775}
40776
40777// Fields allows partial responses to be retrieved. See
40778// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
40779// for more information.
40780func (c *OrganizationsReportsGetCall) Fields(s ...googleapi.Field) *OrganizationsReportsGetCall {
40781	c.urlParams_.Set("fields", googleapi.CombineFields(s))
40782	return c
40783}
40784
40785// IfNoneMatch sets the optional parameter which makes the operation
40786// fail if the object's ETag matches the given value. This is useful for
40787// getting updates only after the object has changed since the last
40788// request. Use googleapi.IsNotModified to check whether the response
40789// error from Do is the result of In-None-Match.
40790func (c *OrganizationsReportsGetCall) IfNoneMatch(entityTag string) *OrganizationsReportsGetCall {
40791	c.ifNoneMatch_ = entityTag
40792	return c
40793}
40794
40795// Context sets the context to be used in this call's Do method. Any
40796// pending HTTP request will be aborted if the provided context is
40797// canceled.
40798func (c *OrganizationsReportsGetCall) Context(ctx context.Context) *OrganizationsReportsGetCall {
40799	c.ctx_ = ctx
40800	return c
40801}
40802
40803// Header returns an http.Header that can be modified by the caller to
40804// add HTTP headers to the request.
40805func (c *OrganizationsReportsGetCall) Header() http.Header {
40806	if c.header_ == nil {
40807		c.header_ = make(http.Header)
40808	}
40809	return c.header_
40810}
40811
40812func (c *OrganizationsReportsGetCall) doRequest(alt string) (*http.Response, error) {
40813	reqHeaders := make(http.Header)
40814	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
40815	for k, v := range c.header_ {
40816		reqHeaders[k] = v
40817	}
40818	reqHeaders.Set("User-Agent", c.s.userAgent())
40819	if c.ifNoneMatch_ != "" {
40820		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
40821	}
40822	var body io.Reader = nil
40823	c.urlParams_.Set("alt", alt)
40824	c.urlParams_.Set("prettyPrint", "false")
40825	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
40826	urls += "?" + c.urlParams_.Encode()
40827	req, err := http.NewRequest("GET", urls, body)
40828	if err != nil {
40829		return nil, err
40830	}
40831	req.Header = reqHeaders
40832	googleapi.Expand(req.URL, map[string]string{
40833		"name": c.name,
40834	})
40835	return gensupport.SendRequest(c.ctx_, c.s.client, req)
40836}
40837
40838// Do executes the "apigee.organizations.reports.get" call.
40839// Exactly one of *GoogleCloudApigeeV1CustomReport or error will be
40840// non-nil. Any non-2xx status code is an error. Response headers are in
40841// either *GoogleCloudApigeeV1CustomReport.ServerResponse.Header or (if
40842// a response was returned at all) in error.(*googleapi.Error).Header.
40843// Use googleapi.IsNotModified to check whether the returned error was
40844// because http.StatusNotModified was returned.
40845func (c *OrganizationsReportsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1CustomReport, error) {
40846	gensupport.SetOptions(c.urlParams_, opts...)
40847	res, err := c.doRequest("json")
40848	if res != nil && res.StatusCode == http.StatusNotModified {
40849		if res.Body != nil {
40850			res.Body.Close()
40851		}
40852		return nil, &googleapi.Error{
40853			Code:   res.StatusCode,
40854			Header: res.Header,
40855		}
40856	}
40857	if err != nil {
40858		return nil, err
40859	}
40860	defer googleapi.CloseBody(res)
40861	if err := googleapi.CheckResponse(res); err != nil {
40862		return nil, err
40863	}
40864	ret := &GoogleCloudApigeeV1CustomReport{
40865		ServerResponse: googleapi.ServerResponse{
40866			Header:         res.Header,
40867			HTTPStatusCode: res.StatusCode,
40868		},
40869	}
40870	target := &ret
40871	if err := gensupport.DecodeResponse(target, res); err != nil {
40872		return nil, err
40873	}
40874	return ret, nil
40875	// {
40876	//   "description": "Retrieve a custom report definition.",
40877	//   "flatPath": "v1/organizations/{organizationsId}/reports/{reportsId}",
40878	//   "httpMethod": "GET",
40879	//   "id": "apigee.organizations.reports.get",
40880	//   "parameterOrder": [
40881	//     "name"
40882	//   ],
40883	//   "parameters": {
40884	//     "name": {
40885	//       "description": "Required. Custom Report name of the form: `organizations/{organization_id}/reports/{report_name}`",
40886	//       "location": "path",
40887	//       "pattern": "^organizations/[^/]+/reports/[^/]+$",
40888	//       "required": true,
40889	//       "type": "string"
40890	//     }
40891	//   },
40892	//   "path": "v1/{+name}",
40893	//   "response": {
40894	//     "$ref": "GoogleCloudApigeeV1CustomReport"
40895	//   },
40896	//   "scopes": [
40897	//     "https://www.googleapis.com/auth/cloud-platform"
40898	//   ]
40899	// }
40900
40901}
40902
40903// method id "apigee.organizations.reports.list":
40904
40905type OrganizationsReportsListCall struct {
40906	s            *Service
40907	parent       string
40908	urlParams_   gensupport.URLParams
40909	ifNoneMatch_ string
40910	ctx_         context.Context
40911	header_      http.Header
40912}
40913
40914// List: Return a list of Custom Reports
40915//
40916// - parent: The parent organization name under which the API product
40917//   will be listed `organizations/{organization_id}/reports`.
40918func (r *OrganizationsReportsService) List(parent string) *OrganizationsReportsListCall {
40919	c := &OrganizationsReportsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40920	c.parent = parent
40921	return c
40922}
40923
40924// Expand sets the optional parameter "expand": Set to 'true' to get
40925// expanded details about each custom report.
40926func (c *OrganizationsReportsListCall) Expand(expand bool) *OrganizationsReportsListCall {
40927	c.urlParams_.Set("expand", fmt.Sprint(expand))
40928	return c
40929}
40930
40931// Fields allows partial responses to be retrieved. See
40932// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
40933// for more information.
40934func (c *OrganizationsReportsListCall) Fields(s ...googleapi.Field) *OrganizationsReportsListCall {
40935	c.urlParams_.Set("fields", googleapi.CombineFields(s))
40936	return c
40937}
40938
40939// IfNoneMatch sets the optional parameter which makes the operation
40940// fail if the object's ETag matches the given value. This is useful for
40941// getting updates only after the object has changed since the last
40942// request. Use googleapi.IsNotModified to check whether the response
40943// error from Do is the result of In-None-Match.
40944func (c *OrganizationsReportsListCall) IfNoneMatch(entityTag string) *OrganizationsReportsListCall {
40945	c.ifNoneMatch_ = entityTag
40946	return c
40947}
40948
40949// Context sets the context to be used in this call's Do method. Any
40950// pending HTTP request will be aborted if the provided context is
40951// canceled.
40952func (c *OrganizationsReportsListCall) Context(ctx context.Context) *OrganizationsReportsListCall {
40953	c.ctx_ = ctx
40954	return c
40955}
40956
40957// Header returns an http.Header that can be modified by the caller to
40958// add HTTP headers to the request.
40959func (c *OrganizationsReportsListCall) Header() http.Header {
40960	if c.header_ == nil {
40961		c.header_ = make(http.Header)
40962	}
40963	return c.header_
40964}
40965
40966func (c *OrganizationsReportsListCall) doRequest(alt string) (*http.Response, error) {
40967	reqHeaders := make(http.Header)
40968	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
40969	for k, v := range c.header_ {
40970		reqHeaders[k] = v
40971	}
40972	reqHeaders.Set("User-Agent", c.s.userAgent())
40973	if c.ifNoneMatch_ != "" {
40974		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
40975	}
40976	var body io.Reader = nil
40977	c.urlParams_.Set("alt", alt)
40978	c.urlParams_.Set("prettyPrint", "false")
40979	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/reports")
40980	urls += "?" + c.urlParams_.Encode()
40981	req, err := http.NewRequest("GET", urls, body)
40982	if err != nil {
40983		return nil, err
40984	}
40985	req.Header = reqHeaders
40986	googleapi.Expand(req.URL, map[string]string{
40987		"parent": c.parent,
40988	})
40989	return gensupport.SendRequest(c.ctx_, c.s.client, req)
40990}
40991
40992// Do executes the "apigee.organizations.reports.list" call.
40993// Exactly one of *GoogleCloudApigeeV1ListCustomReportsResponse or error
40994// will be non-nil. Any non-2xx status code is an error. Response
40995// headers are in either
40996// *GoogleCloudApigeeV1ListCustomReportsResponse.ServerResponse.Header
40997// or (if a response was returned at all) in
40998// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
40999// whether the returned error was because http.StatusNotModified was
41000// returned.
41001func (c *OrganizationsReportsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListCustomReportsResponse, error) {
41002	gensupport.SetOptions(c.urlParams_, opts...)
41003	res, err := c.doRequest("json")
41004	if res != nil && res.StatusCode == http.StatusNotModified {
41005		if res.Body != nil {
41006			res.Body.Close()
41007		}
41008		return nil, &googleapi.Error{
41009			Code:   res.StatusCode,
41010			Header: res.Header,
41011		}
41012	}
41013	if err != nil {
41014		return nil, err
41015	}
41016	defer googleapi.CloseBody(res)
41017	if err := googleapi.CheckResponse(res); err != nil {
41018		return nil, err
41019	}
41020	ret := &GoogleCloudApigeeV1ListCustomReportsResponse{
41021		ServerResponse: googleapi.ServerResponse{
41022			Header:         res.Header,
41023			HTTPStatusCode: res.StatusCode,
41024		},
41025	}
41026	target := &ret
41027	if err := gensupport.DecodeResponse(target, res); err != nil {
41028		return nil, err
41029	}
41030	return ret, nil
41031	// {
41032	//   "description": "Return a list of Custom Reports",
41033	//   "flatPath": "v1/organizations/{organizationsId}/reports",
41034	//   "httpMethod": "GET",
41035	//   "id": "apigee.organizations.reports.list",
41036	//   "parameterOrder": [
41037	//     "parent"
41038	//   ],
41039	//   "parameters": {
41040	//     "expand": {
41041	//       "description": "Set to 'true' to get expanded details about each custom report.",
41042	//       "location": "query",
41043	//       "type": "boolean"
41044	//     },
41045	//     "parent": {
41046	//       "description": "Required. The parent organization name under which the API product will be listed `organizations/{organization_id}/reports`",
41047	//       "location": "path",
41048	//       "pattern": "^organizations/[^/]+$",
41049	//       "required": true,
41050	//       "type": "string"
41051	//     }
41052	//   },
41053	//   "path": "v1/{+parent}/reports",
41054	//   "response": {
41055	//     "$ref": "GoogleCloudApigeeV1ListCustomReportsResponse"
41056	//   },
41057	//   "scopes": [
41058	//     "https://www.googleapis.com/auth/cloud-platform"
41059	//   ]
41060	// }
41061
41062}
41063
41064// method id "apigee.organizations.reports.update":
41065
41066type OrganizationsReportsUpdateCall struct {
41067	s                               *Service
41068	name                            string
41069	googlecloudapigeev1customreport *GoogleCloudApigeeV1CustomReport
41070	urlParams_                      gensupport.URLParams
41071	ctx_                            context.Context
41072	header_                         http.Header
41073}
41074
41075// Update: Update an existing custom report definition
41076//
41077// - name: Custom Report name of the form:
41078//   `organizations/{organization_id}/reports/{report_name}`.
41079func (r *OrganizationsReportsService) Update(name string, googlecloudapigeev1customreport *GoogleCloudApigeeV1CustomReport) *OrganizationsReportsUpdateCall {
41080	c := &OrganizationsReportsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41081	c.name = name
41082	c.googlecloudapigeev1customreport = googlecloudapigeev1customreport
41083	return c
41084}
41085
41086// Fields allows partial responses to be retrieved. See
41087// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
41088// for more information.
41089func (c *OrganizationsReportsUpdateCall) Fields(s ...googleapi.Field) *OrganizationsReportsUpdateCall {
41090	c.urlParams_.Set("fields", googleapi.CombineFields(s))
41091	return c
41092}
41093
41094// Context sets the context to be used in this call's Do method. Any
41095// pending HTTP request will be aborted if the provided context is
41096// canceled.
41097func (c *OrganizationsReportsUpdateCall) Context(ctx context.Context) *OrganizationsReportsUpdateCall {
41098	c.ctx_ = ctx
41099	return c
41100}
41101
41102// Header returns an http.Header that can be modified by the caller to
41103// add HTTP headers to the request.
41104func (c *OrganizationsReportsUpdateCall) Header() http.Header {
41105	if c.header_ == nil {
41106		c.header_ = make(http.Header)
41107	}
41108	return c.header_
41109}
41110
41111func (c *OrganizationsReportsUpdateCall) doRequest(alt string) (*http.Response, error) {
41112	reqHeaders := make(http.Header)
41113	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
41114	for k, v := range c.header_ {
41115		reqHeaders[k] = v
41116	}
41117	reqHeaders.Set("User-Agent", c.s.userAgent())
41118	var body io.Reader = nil
41119	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1customreport)
41120	if err != nil {
41121		return nil, err
41122	}
41123	reqHeaders.Set("Content-Type", "application/json")
41124	c.urlParams_.Set("alt", alt)
41125	c.urlParams_.Set("prettyPrint", "false")
41126	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
41127	urls += "?" + c.urlParams_.Encode()
41128	req, err := http.NewRequest("PUT", urls, body)
41129	if err != nil {
41130		return nil, err
41131	}
41132	req.Header = reqHeaders
41133	googleapi.Expand(req.URL, map[string]string{
41134		"name": c.name,
41135	})
41136	return gensupport.SendRequest(c.ctx_, c.s.client, req)
41137}
41138
41139// Do executes the "apigee.organizations.reports.update" call.
41140// Exactly one of *GoogleCloudApigeeV1CustomReport or error will be
41141// non-nil. Any non-2xx status code is an error. Response headers are in
41142// either *GoogleCloudApigeeV1CustomReport.ServerResponse.Header or (if
41143// a response was returned at all) in error.(*googleapi.Error).Header.
41144// Use googleapi.IsNotModified to check whether the returned error was
41145// because http.StatusNotModified was returned.
41146func (c *OrganizationsReportsUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1CustomReport, error) {
41147	gensupport.SetOptions(c.urlParams_, opts...)
41148	res, err := c.doRequest("json")
41149	if res != nil && res.StatusCode == http.StatusNotModified {
41150		if res.Body != nil {
41151			res.Body.Close()
41152		}
41153		return nil, &googleapi.Error{
41154			Code:   res.StatusCode,
41155			Header: res.Header,
41156		}
41157	}
41158	if err != nil {
41159		return nil, err
41160	}
41161	defer googleapi.CloseBody(res)
41162	if err := googleapi.CheckResponse(res); err != nil {
41163		return nil, err
41164	}
41165	ret := &GoogleCloudApigeeV1CustomReport{
41166		ServerResponse: googleapi.ServerResponse{
41167			Header:         res.Header,
41168			HTTPStatusCode: res.StatusCode,
41169		},
41170	}
41171	target := &ret
41172	if err := gensupport.DecodeResponse(target, res); err != nil {
41173		return nil, err
41174	}
41175	return ret, nil
41176	// {
41177	//   "description": "Update an existing custom report definition",
41178	//   "flatPath": "v1/organizations/{organizationsId}/reports/{reportsId}",
41179	//   "httpMethod": "PUT",
41180	//   "id": "apigee.organizations.reports.update",
41181	//   "parameterOrder": [
41182	//     "name"
41183	//   ],
41184	//   "parameters": {
41185	//     "name": {
41186	//       "description": "Required. Custom Report name of the form: `organizations/{organization_id}/reports/{report_name}`",
41187	//       "location": "path",
41188	//       "pattern": "^organizations/[^/]+/reports/[^/]+$",
41189	//       "required": true,
41190	//       "type": "string"
41191	//     }
41192	//   },
41193	//   "path": "v1/{+name}",
41194	//   "request": {
41195	//     "$ref": "GoogleCloudApigeeV1CustomReport"
41196	//   },
41197	//   "response": {
41198	//     "$ref": "GoogleCloudApigeeV1CustomReport"
41199	//   },
41200	//   "scopes": [
41201	//     "https://www.googleapis.com/auth/cloud-platform"
41202	//   ]
41203	// }
41204
41205}
41206
41207// method id "apigee.organizations.sharedflows.create":
41208
41209type OrganizationsSharedflowsCreateCall struct {
41210	s                 *Service
41211	parent            string
41212	googleapihttpbody *GoogleApiHttpBody
41213	urlParams_        gensupport.URLParams
41214	ctx_              context.Context
41215	header_           http.Header
41216}
41217
41218// Create: Uploads a ZIP-formatted shared flow configuration bundle to
41219// an organization. If the shared flow already exists, this creates a
41220// new revision of it. If the shared flow does not exist, this creates
41221// it. Once imported, the shared flow revision must be deployed before
41222// it can be accessed at runtime. The size limit of a shared flow bundle
41223// is 15 MB.
41224//
41225// - parent: The name of the parent organization under which to create
41226//   the shared flow. Must be of the form:
41227//   `organizations/{organization_id}`.
41228func (r *OrganizationsSharedflowsService) Create(parent string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsSharedflowsCreateCall {
41229	c := &OrganizationsSharedflowsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41230	c.parent = parent
41231	c.googleapihttpbody = googleapihttpbody
41232	return c
41233}
41234
41235// Action sets the optional parameter "action": Required. Must be set to
41236// either `import` or `validate`.
41237func (c *OrganizationsSharedflowsCreateCall) Action(action string) *OrganizationsSharedflowsCreateCall {
41238	c.urlParams_.Set("action", action)
41239	return c
41240}
41241
41242// Name sets the optional parameter "name": Required. The name to give
41243// the shared flow
41244func (c *OrganizationsSharedflowsCreateCall) Name(name string) *OrganizationsSharedflowsCreateCall {
41245	c.urlParams_.Set("name", name)
41246	return c
41247}
41248
41249// Fields allows partial responses to be retrieved. See
41250// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
41251// for more information.
41252func (c *OrganizationsSharedflowsCreateCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsCreateCall {
41253	c.urlParams_.Set("fields", googleapi.CombineFields(s))
41254	return c
41255}
41256
41257// Context sets the context to be used in this call's Do method. Any
41258// pending HTTP request will be aborted if the provided context is
41259// canceled.
41260func (c *OrganizationsSharedflowsCreateCall) Context(ctx context.Context) *OrganizationsSharedflowsCreateCall {
41261	c.ctx_ = ctx
41262	return c
41263}
41264
41265// Header returns an http.Header that can be modified by the caller to
41266// add HTTP headers to the request.
41267func (c *OrganizationsSharedflowsCreateCall) Header() http.Header {
41268	if c.header_ == nil {
41269		c.header_ = make(http.Header)
41270	}
41271	return c.header_
41272}
41273
41274func (c *OrganizationsSharedflowsCreateCall) doRequest(alt string) (*http.Response, error) {
41275	reqHeaders := make(http.Header)
41276	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
41277	for k, v := range c.header_ {
41278		reqHeaders[k] = v
41279	}
41280	reqHeaders.Set("User-Agent", c.s.userAgent())
41281	var body io.Reader = nil
41282	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
41283	if err != nil {
41284		return nil, err
41285	}
41286	reqHeaders.Set("Content-Type", "application/json")
41287	c.urlParams_.Set("alt", alt)
41288	c.urlParams_.Set("prettyPrint", "false")
41289	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/sharedflows")
41290	urls += "?" + c.urlParams_.Encode()
41291	req, err := http.NewRequest("POST", urls, body)
41292	if err != nil {
41293		return nil, err
41294	}
41295	req.Header = reqHeaders
41296	googleapi.Expand(req.URL, map[string]string{
41297		"parent": c.parent,
41298	})
41299	return gensupport.SendRequest(c.ctx_, c.s.client, req)
41300}
41301
41302// Do executes the "apigee.organizations.sharedflows.create" call.
41303// Exactly one of *GoogleCloudApigeeV1SharedFlowRevision or error will
41304// be non-nil. Any non-2xx status code is an error. Response headers are
41305// in either
41306// *GoogleCloudApigeeV1SharedFlowRevision.ServerResponse.Header or (if a
41307// response was returned at all) in error.(*googleapi.Error).Header. Use
41308// googleapi.IsNotModified to check whether the returned error was
41309// because http.StatusNotModified was returned.
41310func (c *OrganizationsSharedflowsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SharedFlowRevision, error) {
41311	gensupport.SetOptions(c.urlParams_, opts...)
41312	res, err := c.doRequest("json")
41313	if res != nil && res.StatusCode == http.StatusNotModified {
41314		if res.Body != nil {
41315			res.Body.Close()
41316		}
41317		return nil, &googleapi.Error{
41318			Code:   res.StatusCode,
41319			Header: res.Header,
41320		}
41321	}
41322	if err != nil {
41323		return nil, err
41324	}
41325	defer googleapi.CloseBody(res)
41326	if err := googleapi.CheckResponse(res); err != nil {
41327		return nil, err
41328	}
41329	ret := &GoogleCloudApigeeV1SharedFlowRevision{
41330		ServerResponse: googleapi.ServerResponse{
41331			Header:         res.Header,
41332			HTTPStatusCode: res.StatusCode,
41333		},
41334	}
41335	target := &ret
41336	if err := gensupport.DecodeResponse(target, res); err != nil {
41337		return nil, err
41338	}
41339	return ret, nil
41340	// {
41341	//   "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.",
41342	//   "flatPath": "v1/organizations/{organizationsId}/sharedflows",
41343	//   "httpMethod": "POST",
41344	//   "id": "apigee.organizations.sharedflows.create",
41345	//   "parameterOrder": [
41346	//     "parent"
41347	//   ],
41348	//   "parameters": {
41349	//     "action": {
41350	//       "description": "Required. Must be set to either `import` or `validate`.",
41351	//       "location": "query",
41352	//       "type": "string"
41353	//     },
41354	//     "name": {
41355	//       "description": "Required. The name to give the shared flow",
41356	//       "location": "query",
41357	//       "type": "string"
41358	//     },
41359	//     "parent": {
41360	//       "description": "Required. The name of the parent organization under which to create the shared flow. Must be of the form: `organizations/{organization_id}`",
41361	//       "location": "path",
41362	//       "pattern": "^organizations/[^/]+$",
41363	//       "required": true,
41364	//       "type": "string"
41365	//     }
41366	//   },
41367	//   "path": "v1/{+parent}/sharedflows",
41368	//   "request": {
41369	//     "$ref": "GoogleApiHttpBody"
41370	//   },
41371	//   "response": {
41372	//     "$ref": "GoogleCloudApigeeV1SharedFlowRevision"
41373	//   },
41374	//   "scopes": [
41375	//     "https://www.googleapis.com/auth/cloud-platform"
41376	//   ]
41377	// }
41378
41379}
41380
41381// method id "apigee.organizations.sharedflows.delete":
41382
41383type OrganizationsSharedflowsDeleteCall struct {
41384	s          *Service
41385	name       string
41386	urlParams_ gensupport.URLParams
41387	ctx_       context.Context
41388	header_    http.Header
41389}
41390
41391// Delete: Deletes a shared flow and all it's revisions. The shared flow
41392// must be undeployed before you can delete it.
41393//
41394// - name: shared flow name of the form:
41395//   `organizations/{organization_id}/sharedflows/{shared_flow_id}`.
41396func (r *OrganizationsSharedflowsService) Delete(name string) *OrganizationsSharedflowsDeleteCall {
41397	c := &OrganizationsSharedflowsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41398	c.name = name
41399	return c
41400}
41401
41402// Fields allows partial responses to be retrieved. See
41403// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
41404// for more information.
41405func (c *OrganizationsSharedflowsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsDeleteCall {
41406	c.urlParams_.Set("fields", googleapi.CombineFields(s))
41407	return c
41408}
41409
41410// Context sets the context to be used in this call's Do method. Any
41411// pending HTTP request will be aborted if the provided context is
41412// canceled.
41413func (c *OrganizationsSharedflowsDeleteCall) Context(ctx context.Context) *OrganizationsSharedflowsDeleteCall {
41414	c.ctx_ = ctx
41415	return c
41416}
41417
41418// Header returns an http.Header that can be modified by the caller to
41419// add HTTP headers to the request.
41420func (c *OrganizationsSharedflowsDeleteCall) Header() http.Header {
41421	if c.header_ == nil {
41422		c.header_ = make(http.Header)
41423	}
41424	return c.header_
41425}
41426
41427func (c *OrganizationsSharedflowsDeleteCall) doRequest(alt string) (*http.Response, error) {
41428	reqHeaders := make(http.Header)
41429	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
41430	for k, v := range c.header_ {
41431		reqHeaders[k] = v
41432	}
41433	reqHeaders.Set("User-Agent", c.s.userAgent())
41434	var body io.Reader = nil
41435	c.urlParams_.Set("alt", alt)
41436	c.urlParams_.Set("prettyPrint", "false")
41437	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
41438	urls += "?" + c.urlParams_.Encode()
41439	req, err := http.NewRequest("DELETE", urls, body)
41440	if err != nil {
41441		return nil, err
41442	}
41443	req.Header = reqHeaders
41444	googleapi.Expand(req.URL, map[string]string{
41445		"name": c.name,
41446	})
41447	return gensupport.SendRequest(c.ctx_, c.s.client, req)
41448}
41449
41450// Do executes the "apigee.organizations.sharedflows.delete" call.
41451// Exactly one of *GoogleCloudApigeeV1SharedFlow or error will be
41452// non-nil. Any non-2xx status code is an error. Response headers are in
41453// either *GoogleCloudApigeeV1SharedFlow.ServerResponse.Header or (if a
41454// response was returned at all) in error.(*googleapi.Error).Header. Use
41455// googleapi.IsNotModified to check whether the returned error was
41456// because http.StatusNotModified was returned.
41457func (c *OrganizationsSharedflowsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SharedFlow, error) {
41458	gensupport.SetOptions(c.urlParams_, opts...)
41459	res, err := c.doRequest("json")
41460	if res != nil && res.StatusCode == http.StatusNotModified {
41461		if res.Body != nil {
41462			res.Body.Close()
41463		}
41464		return nil, &googleapi.Error{
41465			Code:   res.StatusCode,
41466			Header: res.Header,
41467		}
41468	}
41469	if err != nil {
41470		return nil, err
41471	}
41472	defer googleapi.CloseBody(res)
41473	if err := googleapi.CheckResponse(res); err != nil {
41474		return nil, err
41475	}
41476	ret := &GoogleCloudApigeeV1SharedFlow{
41477		ServerResponse: googleapi.ServerResponse{
41478			Header:         res.Header,
41479			HTTPStatusCode: res.StatusCode,
41480		},
41481	}
41482	target := &ret
41483	if err := gensupport.DecodeResponse(target, res); err != nil {
41484		return nil, err
41485	}
41486	return ret, nil
41487	// {
41488	//   "description": "Deletes a shared flow and all it's revisions. The shared flow must be undeployed before you can delete it.",
41489	//   "flatPath": "v1/organizations/{organizationsId}/sharedflows/{sharedflowsId}",
41490	//   "httpMethod": "DELETE",
41491	//   "id": "apigee.organizations.sharedflows.delete",
41492	//   "parameterOrder": [
41493	//     "name"
41494	//   ],
41495	//   "parameters": {
41496	//     "name": {
41497	//       "description": "Required. shared flow name of the form: `organizations/{organization_id}/sharedflows/{shared_flow_id}`",
41498	//       "location": "path",
41499	//       "pattern": "^organizations/[^/]+/sharedflows/[^/]+$",
41500	//       "required": true,
41501	//       "type": "string"
41502	//     }
41503	//   },
41504	//   "path": "v1/{+name}",
41505	//   "response": {
41506	//     "$ref": "GoogleCloudApigeeV1SharedFlow"
41507	//   },
41508	//   "scopes": [
41509	//     "https://www.googleapis.com/auth/cloud-platform"
41510	//   ]
41511	// }
41512
41513}
41514
41515// method id "apigee.organizations.sharedflows.get":
41516
41517type OrganizationsSharedflowsGetCall struct {
41518	s            *Service
41519	name         string
41520	urlParams_   gensupport.URLParams
41521	ifNoneMatch_ string
41522	ctx_         context.Context
41523	header_      http.Header
41524}
41525
41526// Get: Gets a shared flow by name, including a list of its revisions.
41527//
41528// - name: The name of the shared flow to get. Must be of the form:
41529//   `organizations/{organization_id}/sharedflows/{shared_flow_id}`.
41530func (r *OrganizationsSharedflowsService) Get(name string) *OrganizationsSharedflowsGetCall {
41531	c := &OrganizationsSharedflowsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41532	c.name = name
41533	return c
41534}
41535
41536// Fields allows partial responses to be retrieved. See
41537// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
41538// for more information.
41539func (c *OrganizationsSharedflowsGetCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsGetCall {
41540	c.urlParams_.Set("fields", googleapi.CombineFields(s))
41541	return c
41542}
41543
41544// IfNoneMatch sets the optional parameter which makes the operation
41545// fail if the object's ETag matches the given value. This is useful for
41546// getting updates only after the object has changed since the last
41547// request. Use googleapi.IsNotModified to check whether the response
41548// error from Do is the result of In-None-Match.
41549func (c *OrganizationsSharedflowsGetCall) IfNoneMatch(entityTag string) *OrganizationsSharedflowsGetCall {
41550	c.ifNoneMatch_ = entityTag
41551	return c
41552}
41553
41554// Context sets the context to be used in this call's Do method. Any
41555// pending HTTP request will be aborted if the provided context is
41556// canceled.
41557func (c *OrganizationsSharedflowsGetCall) Context(ctx context.Context) *OrganizationsSharedflowsGetCall {
41558	c.ctx_ = ctx
41559	return c
41560}
41561
41562// Header returns an http.Header that can be modified by the caller to
41563// add HTTP headers to the request.
41564func (c *OrganizationsSharedflowsGetCall) Header() http.Header {
41565	if c.header_ == nil {
41566		c.header_ = make(http.Header)
41567	}
41568	return c.header_
41569}
41570
41571func (c *OrganizationsSharedflowsGetCall) doRequest(alt string) (*http.Response, error) {
41572	reqHeaders := make(http.Header)
41573	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
41574	for k, v := range c.header_ {
41575		reqHeaders[k] = v
41576	}
41577	reqHeaders.Set("User-Agent", c.s.userAgent())
41578	if c.ifNoneMatch_ != "" {
41579		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
41580	}
41581	var body io.Reader = nil
41582	c.urlParams_.Set("alt", alt)
41583	c.urlParams_.Set("prettyPrint", "false")
41584	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
41585	urls += "?" + c.urlParams_.Encode()
41586	req, err := http.NewRequest("GET", urls, body)
41587	if err != nil {
41588		return nil, err
41589	}
41590	req.Header = reqHeaders
41591	googleapi.Expand(req.URL, map[string]string{
41592		"name": c.name,
41593	})
41594	return gensupport.SendRequest(c.ctx_, c.s.client, req)
41595}
41596
41597// Do executes the "apigee.organizations.sharedflows.get" call.
41598// Exactly one of *GoogleCloudApigeeV1SharedFlow or error will be
41599// non-nil. Any non-2xx status code is an error. Response headers are in
41600// either *GoogleCloudApigeeV1SharedFlow.ServerResponse.Header or (if a
41601// response was returned at all) in error.(*googleapi.Error).Header. Use
41602// googleapi.IsNotModified to check whether the returned error was
41603// because http.StatusNotModified was returned.
41604func (c *OrganizationsSharedflowsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SharedFlow, error) {
41605	gensupport.SetOptions(c.urlParams_, opts...)
41606	res, err := c.doRequest("json")
41607	if res != nil && res.StatusCode == http.StatusNotModified {
41608		if res.Body != nil {
41609			res.Body.Close()
41610		}
41611		return nil, &googleapi.Error{
41612			Code:   res.StatusCode,
41613			Header: res.Header,
41614		}
41615	}
41616	if err != nil {
41617		return nil, err
41618	}
41619	defer googleapi.CloseBody(res)
41620	if err := googleapi.CheckResponse(res); err != nil {
41621		return nil, err
41622	}
41623	ret := &GoogleCloudApigeeV1SharedFlow{
41624		ServerResponse: googleapi.ServerResponse{
41625			Header:         res.Header,
41626			HTTPStatusCode: res.StatusCode,
41627		},
41628	}
41629	target := &ret
41630	if err := gensupport.DecodeResponse(target, res); err != nil {
41631		return nil, err
41632	}
41633	return ret, nil
41634	// {
41635	//   "description": "Gets a shared flow by name, including a list of its revisions.",
41636	//   "flatPath": "v1/organizations/{organizationsId}/sharedflows/{sharedflowsId}",
41637	//   "httpMethod": "GET",
41638	//   "id": "apigee.organizations.sharedflows.get",
41639	//   "parameterOrder": [
41640	//     "name"
41641	//   ],
41642	//   "parameters": {
41643	//     "name": {
41644	//       "description": "Required. The name of the shared flow to get. Must be of the form: `organizations/{organization_id}/sharedflows/{shared_flow_id}`",
41645	//       "location": "path",
41646	//       "pattern": "^organizations/[^/]+/sharedflows/[^/]+$",
41647	//       "required": true,
41648	//       "type": "string"
41649	//     }
41650	//   },
41651	//   "path": "v1/{+name}",
41652	//   "response": {
41653	//     "$ref": "GoogleCloudApigeeV1SharedFlow"
41654	//   },
41655	//   "scopes": [
41656	//     "https://www.googleapis.com/auth/cloud-platform"
41657	//   ]
41658	// }
41659
41660}
41661
41662// method id "apigee.organizations.sharedflows.list":
41663
41664type OrganizationsSharedflowsListCall struct {
41665	s            *Service
41666	parent       string
41667	urlParams_   gensupport.URLParams
41668	ifNoneMatch_ string
41669	ctx_         context.Context
41670	header_      http.Header
41671}
41672
41673// List: Lists all shared flows in the organization.
41674//
41675// - parent: The name of the parent organization under which to get
41676//   shared flows. Must be of the form:
41677//   `organizations/{organization_id}`.
41678func (r *OrganizationsSharedflowsService) List(parent string) *OrganizationsSharedflowsListCall {
41679	c := &OrganizationsSharedflowsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41680	c.parent = parent
41681	return c
41682}
41683
41684// IncludeMetaData sets the optional parameter "includeMetaData":
41685// Indicates whether to include shared flow metadata in the response.
41686func (c *OrganizationsSharedflowsListCall) IncludeMetaData(includeMetaData bool) *OrganizationsSharedflowsListCall {
41687	c.urlParams_.Set("includeMetaData", fmt.Sprint(includeMetaData))
41688	return c
41689}
41690
41691// IncludeRevisions sets the optional parameter "includeRevisions":
41692// Indicates whether to include a list of revisions in the response.
41693func (c *OrganizationsSharedflowsListCall) IncludeRevisions(includeRevisions bool) *OrganizationsSharedflowsListCall {
41694	c.urlParams_.Set("includeRevisions", fmt.Sprint(includeRevisions))
41695	return c
41696}
41697
41698// Fields allows partial responses to be retrieved. See
41699// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
41700// for more information.
41701func (c *OrganizationsSharedflowsListCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsListCall {
41702	c.urlParams_.Set("fields", googleapi.CombineFields(s))
41703	return c
41704}
41705
41706// IfNoneMatch sets the optional parameter which makes the operation
41707// fail if the object's ETag matches the given value. This is useful for
41708// getting updates only after the object has changed since the last
41709// request. Use googleapi.IsNotModified to check whether the response
41710// error from Do is the result of In-None-Match.
41711func (c *OrganizationsSharedflowsListCall) IfNoneMatch(entityTag string) *OrganizationsSharedflowsListCall {
41712	c.ifNoneMatch_ = entityTag
41713	return c
41714}
41715
41716// Context sets the context to be used in this call's Do method. Any
41717// pending HTTP request will be aborted if the provided context is
41718// canceled.
41719func (c *OrganizationsSharedflowsListCall) Context(ctx context.Context) *OrganizationsSharedflowsListCall {
41720	c.ctx_ = ctx
41721	return c
41722}
41723
41724// Header returns an http.Header that can be modified by the caller to
41725// add HTTP headers to the request.
41726func (c *OrganizationsSharedflowsListCall) Header() http.Header {
41727	if c.header_ == nil {
41728		c.header_ = make(http.Header)
41729	}
41730	return c.header_
41731}
41732
41733func (c *OrganizationsSharedflowsListCall) doRequest(alt string) (*http.Response, error) {
41734	reqHeaders := make(http.Header)
41735	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
41736	for k, v := range c.header_ {
41737		reqHeaders[k] = v
41738	}
41739	reqHeaders.Set("User-Agent", c.s.userAgent())
41740	if c.ifNoneMatch_ != "" {
41741		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
41742	}
41743	var body io.Reader = nil
41744	c.urlParams_.Set("alt", alt)
41745	c.urlParams_.Set("prettyPrint", "false")
41746	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/sharedflows")
41747	urls += "?" + c.urlParams_.Encode()
41748	req, err := http.NewRequest("GET", urls, body)
41749	if err != nil {
41750		return nil, err
41751	}
41752	req.Header = reqHeaders
41753	googleapi.Expand(req.URL, map[string]string{
41754		"parent": c.parent,
41755	})
41756	return gensupport.SendRequest(c.ctx_, c.s.client, req)
41757}
41758
41759// Do executes the "apigee.organizations.sharedflows.list" call.
41760// Exactly one of *GoogleCloudApigeeV1ListSharedFlowsResponse or error
41761// will be non-nil. Any non-2xx status code is an error. Response
41762// headers are in either
41763// *GoogleCloudApigeeV1ListSharedFlowsResponse.ServerResponse.Header or
41764// (if a response was returned at all) in
41765// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
41766// whether the returned error was because http.StatusNotModified was
41767// returned.
41768func (c *OrganizationsSharedflowsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListSharedFlowsResponse, error) {
41769	gensupport.SetOptions(c.urlParams_, opts...)
41770	res, err := c.doRequest("json")
41771	if res != nil && res.StatusCode == http.StatusNotModified {
41772		if res.Body != nil {
41773			res.Body.Close()
41774		}
41775		return nil, &googleapi.Error{
41776			Code:   res.StatusCode,
41777			Header: res.Header,
41778		}
41779	}
41780	if err != nil {
41781		return nil, err
41782	}
41783	defer googleapi.CloseBody(res)
41784	if err := googleapi.CheckResponse(res); err != nil {
41785		return nil, err
41786	}
41787	ret := &GoogleCloudApigeeV1ListSharedFlowsResponse{
41788		ServerResponse: googleapi.ServerResponse{
41789			Header:         res.Header,
41790			HTTPStatusCode: res.StatusCode,
41791		},
41792	}
41793	target := &ret
41794	if err := gensupport.DecodeResponse(target, res); err != nil {
41795		return nil, err
41796	}
41797	return ret, nil
41798	// {
41799	//   "description": "Lists all shared flows in the organization.",
41800	//   "flatPath": "v1/organizations/{organizationsId}/sharedflows",
41801	//   "httpMethod": "GET",
41802	//   "id": "apigee.organizations.sharedflows.list",
41803	//   "parameterOrder": [
41804	//     "parent"
41805	//   ],
41806	//   "parameters": {
41807	//     "includeMetaData": {
41808	//       "description": "Indicates whether to include shared flow metadata in the response.",
41809	//       "location": "query",
41810	//       "type": "boolean"
41811	//     },
41812	//     "includeRevisions": {
41813	//       "description": "Indicates whether to include a list of revisions in the response.",
41814	//       "location": "query",
41815	//       "type": "boolean"
41816	//     },
41817	//     "parent": {
41818	//       "description": "Required. The name of the parent organization under which to get shared flows. Must be of the form: `organizations/{organization_id}`",
41819	//       "location": "path",
41820	//       "pattern": "^organizations/[^/]+$",
41821	//       "required": true,
41822	//       "type": "string"
41823	//     }
41824	//   },
41825	//   "path": "v1/{+parent}/sharedflows",
41826	//   "response": {
41827	//     "$ref": "GoogleCloudApigeeV1ListSharedFlowsResponse"
41828	//   },
41829	//   "scopes": [
41830	//     "https://www.googleapis.com/auth/cloud-platform"
41831	//   ]
41832	// }
41833
41834}
41835
41836// method id "apigee.organizations.sharedflows.deployments.list":
41837
41838type OrganizationsSharedflowsDeploymentsListCall struct {
41839	s            *Service
41840	parent       string
41841	urlParams_   gensupport.URLParams
41842	ifNoneMatch_ string
41843	ctx_         context.Context
41844	header_      http.Header
41845}
41846
41847// List: Lists all deployments of a shared flow.
41848//
41849// - parent: Name of the shared flow for which to return deployment
41850//   information in the following format:
41851//   `organizations/{org}/sharedflows/{sharedflow}`.
41852func (r *OrganizationsSharedflowsDeploymentsService) List(parent string) *OrganizationsSharedflowsDeploymentsListCall {
41853	c := &OrganizationsSharedflowsDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41854	c.parent = parent
41855	return c
41856}
41857
41858// Fields allows partial responses to be retrieved. See
41859// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
41860// for more information.
41861func (c *OrganizationsSharedflowsDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsDeploymentsListCall {
41862	c.urlParams_.Set("fields", googleapi.CombineFields(s))
41863	return c
41864}
41865
41866// IfNoneMatch sets the optional parameter which makes the operation
41867// fail if the object's ETag matches the given value. This is useful for
41868// getting updates only after the object has changed since the last
41869// request. Use googleapi.IsNotModified to check whether the response
41870// error from Do is the result of In-None-Match.
41871func (c *OrganizationsSharedflowsDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsSharedflowsDeploymentsListCall {
41872	c.ifNoneMatch_ = entityTag
41873	return c
41874}
41875
41876// Context sets the context to be used in this call's Do method. Any
41877// pending HTTP request will be aborted if the provided context is
41878// canceled.
41879func (c *OrganizationsSharedflowsDeploymentsListCall) Context(ctx context.Context) *OrganizationsSharedflowsDeploymentsListCall {
41880	c.ctx_ = ctx
41881	return c
41882}
41883
41884// Header returns an http.Header that can be modified by the caller to
41885// add HTTP headers to the request.
41886func (c *OrganizationsSharedflowsDeploymentsListCall) Header() http.Header {
41887	if c.header_ == nil {
41888		c.header_ = make(http.Header)
41889	}
41890	return c.header_
41891}
41892
41893func (c *OrganizationsSharedflowsDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
41894	reqHeaders := make(http.Header)
41895	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
41896	for k, v := range c.header_ {
41897		reqHeaders[k] = v
41898	}
41899	reqHeaders.Set("User-Agent", c.s.userAgent())
41900	if c.ifNoneMatch_ != "" {
41901		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
41902	}
41903	var body io.Reader = nil
41904	c.urlParams_.Set("alt", alt)
41905	c.urlParams_.Set("prettyPrint", "false")
41906	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
41907	urls += "?" + c.urlParams_.Encode()
41908	req, err := http.NewRequest("GET", urls, body)
41909	if err != nil {
41910		return nil, err
41911	}
41912	req.Header = reqHeaders
41913	googleapi.Expand(req.URL, map[string]string{
41914		"parent": c.parent,
41915	})
41916	return gensupport.SendRequest(c.ctx_, c.s.client, req)
41917}
41918
41919// Do executes the "apigee.organizations.sharedflows.deployments.list" call.
41920// Exactly one of *GoogleCloudApigeeV1ListDeploymentsResponse or error
41921// will be non-nil. Any non-2xx status code is an error. Response
41922// headers are in either
41923// *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or
41924// (if a response was returned at all) in
41925// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
41926// whether the returned error was because http.StatusNotModified was
41927// returned.
41928func (c *OrganizationsSharedflowsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
41929	gensupport.SetOptions(c.urlParams_, opts...)
41930	res, err := c.doRequest("json")
41931	if res != nil && res.StatusCode == http.StatusNotModified {
41932		if res.Body != nil {
41933			res.Body.Close()
41934		}
41935		return nil, &googleapi.Error{
41936			Code:   res.StatusCode,
41937			Header: res.Header,
41938		}
41939	}
41940	if err != nil {
41941		return nil, err
41942	}
41943	defer googleapi.CloseBody(res)
41944	if err := googleapi.CheckResponse(res); err != nil {
41945		return nil, err
41946	}
41947	ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
41948		ServerResponse: googleapi.ServerResponse{
41949			Header:         res.Header,
41950			HTTPStatusCode: res.StatusCode,
41951		},
41952	}
41953	target := &ret
41954	if err := gensupport.DecodeResponse(target, res); err != nil {
41955		return nil, err
41956	}
41957	return ret, nil
41958	// {
41959	//   "description": "Lists all deployments of a shared flow.",
41960	//   "flatPath": "v1/organizations/{organizationsId}/sharedflows/{sharedflowsId}/deployments",
41961	//   "httpMethod": "GET",
41962	//   "id": "apigee.organizations.sharedflows.deployments.list",
41963	//   "parameterOrder": [
41964	//     "parent"
41965	//   ],
41966	//   "parameters": {
41967	//     "parent": {
41968	//       "description": "Required. Name of the shared flow for which to return deployment information in the following format: `organizations/{org}/sharedflows/{sharedflow}`",
41969	//       "location": "path",
41970	//       "pattern": "^organizations/[^/]+/sharedflows/[^/]+$",
41971	//       "required": true,
41972	//       "type": "string"
41973	//     }
41974	//   },
41975	//   "path": "v1/{+parent}/deployments",
41976	//   "response": {
41977	//     "$ref": "GoogleCloudApigeeV1ListDeploymentsResponse"
41978	//   },
41979	//   "scopes": [
41980	//     "https://www.googleapis.com/auth/cloud-platform"
41981	//   ]
41982	// }
41983
41984}
41985
41986// method id "apigee.organizations.sharedflows.revisions.delete":
41987
41988type OrganizationsSharedflowsRevisionsDeleteCall struct {
41989	s          *Service
41990	name       string
41991	urlParams_ gensupport.URLParams
41992	ctx_       context.Context
41993	header_    http.Header
41994}
41995
41996// Delete: Deletes a shared flow and all associated policies, resources,
41997// and revisions. You must undeploy the shared flow before deleting it.
41998//
41999// - name: The name of the shared flow revision to delete. Must be of
42000//   the form:
42001//   `organizations/{organization_id}/sharedflows/{shared_flow_id}/revisi
42002//   ons/{revision_id}`.
42003func (r *OrganizationsSharedflowsRevisionsService) Delete(name string) *OrganizationsSharedflowsRevisionsDeleteCall {
42004	c := &OrganizationsSharedflowsRevisionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42005	c.name = name
42006	return c
42007}
42008
42009// Fields allows partial responses to be retrieved. See
42010// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
42011// for more information.
42012func (c *OrganizationsSharedflowsRevisionsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsRevisionsDeleteCall {
42013	c.urlParams_.Set("fields", googleapi.CombineFields(s))
42014	return c
42015}
42016
42017// Context sets the context to be used in this call's Do method. Any
42018// pending HTTP request will be aborted if the provided context is
42019// canceled.
42020func (c *OrganizationsSharedflowsRevisionsDeleteCall) Context(ctx context.Context) *OrganizationsSharedflowsRevisionsDeleteCall {
42021	c.ctx_ = ctx
42022	return c
42023}
42024
42025// Header returns an http.Header that can be modified by the caller to
42026// add HTTP headers to the request.
42027func (c *OrganizationsSharedflowsRevisionsDeleteCall) Header() http.Header {
42028	if c.header_ == nil {
42029		c.header_ = make(http.Header)
42030	}
42031	return c.header_
42032}
42033
42034func (c *OrganizationsSharedflowsRevisionsDeleteCall) doRequest(alt string) (*http.Response, error) {
42035	reqHeaders := make(http.Header)
42036	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
42037	for k, v := range c.header_ {
42038		reqHeaders[k] = v
42039	}
42040	reqHeaders.Set("User-Agent", c.s.userAgent())
42041	var body io.Reader = nil
42042	c.urlParams_.Set("alt", alt)
42043	c.urlParams_.Set("prettyPrint", "false")
42044	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
42045	urls += "?" + c.urlParams_.Encode()
42046	req, err := http.NewRequest("DELETE", urls, body)
42047	if err != nil {
42048		return nil, err
42049	}
42050	req.Header = reqHeaders
42051	googleapi.Expand(req.URL, map[string]string{
42052		"name": c.name,
42053	})
42054	return gensupport.SendRequest(c.ctx_, c.s.client, req)
42055}
42056
42057// Do executes the "apigee.organizations.sharedflows.revisions.delete" call.
42058// Exactly one of *GoogleCloudApigeeV1SharedFlowRevision or error will
42059// be non-nil. Any non-2xx status code is an error. Response headers are
42060// in either
42061// *GoogleCloudApigeeV1SharedFlowRevision.ServerResponse.Header or (if a
42062// response was returned at all) in error.(*googleapi.Error).Header. Use
42063// googleapi.IsNotModified to check whether the returned error was
42064// because http.StatusNotModified was returned.
42065func (c *OrganizationsSharedflowsRevisionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SharedFlowRevision, error) {
42066	gensupport.SetOptions(c.urlParams_, opts...)
42067	res, err := c.doRequest("json")
42068	if res != nil && res.StatusCode == http.StatusNotModified {
42069		if res.Body != nil {
42070			res.Body.Close()
42071		}
42072		return nil, &googleapi.Error{
42073			Code:   res.StatusCode,
42074			Header: res.Header,
42075		}
42076	}
42077	if err != nil {
42078		return nil, err
42079	}
42080	defer googleapi.CloseBody(res)
42081	if err := googleapi.CheckResponse(res); err != nil {
42082		return nil, err
42083	}
42084	ret := &GoogleCloudApigeeV1SharedFlowRevision{
42085		ServerResponse: googleapi.ServerResponse{
42086			Header:         res.Header,
42087			HTTPStatusCode: res.StatusCode,
42088		},
42089	}
42090	target := &ret
42091	if err := gensupport.DecodeResponse(target, res); err != nil {
42092		return nil, err
42093	}
42094	return ret, nil
42095	// {
42096	//   "description": "Deletes a shared flow and all associated policies, resources, and revisions. You must undeploy the shared flow before deleting it.",
42097	//   "flatPath": "v1/organizations/{organizationsId}/sharedflows/{sharedflowsId}/revisions/{revisionsId}",
42098	//   "httpMethod": "DELETE",
42099	//   "id": "apigee.organizations.sharedflows.revisions.delete",
42100	//   "parameterOrder": [
42101	//     "name"
42102	//   ],
42103	//   "parameters": {
42104	//     "name": {
42105	//       "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}`",
42106	//       "location": "path",
42107	//       "pattern": "^organizations/[^/]+/sharedflows/[^/]+/revisions/[^/]+$",
42108	//       "required": true,
42109	//       "type": "string"
42110	//     }
42111	//   },
42112	//   "path": "v1/{+name}",
42113	//   "response": {
42114	//     "$ref": "GoogleCloudApigeeV1SharedFlowRevision"
42115	//   },
42116	//   "scopes": [
42117	//     "https://www.googleapis.com/auth/cloud-platform"
42118	//   ]
42119	// }
42120
42121}
42122
42123// method id "apigee.organizations.sharedflows.revisions.get":
42124
42125type OrganizationsSharedflowsRevisionsGetCall struct {
42126	s            *Service
42127	name         string
42128	urlParams_   gensupport.URLParams
42129	ifNoneMatch_ string
42130	ctx_         context.Context
42131	header_      http.Header
42132}
42133
42134// Get: Gets a revision of a shared flow. To download the shared flow
42135// configuration bundle for the specified revision as a zip file, set
42136// the `format` query parameter to `bundle`. If you are using curl,
42137// specify `-o filename.zip` to save the output to a file; otherwise, it
42138// displays to `stdout`. Then, develop the shared flow configuration
42139// locally and upload the updated sharedFlow configuration revision, as
42140// described in updateSharedFlowRevision (updateSharedFlowRevision).
42141//
42142// - name: The name of the shared flow revision to get. Must be of the
42143//   form:
42144//   `organizations/{organization_id}/sharedflows/{shared_flow_id}/revisi
42145//   ons/{revision_id}`.
42146func (r *OrganizationsSharedflowsRevisionsService) Get(name string) *OrganizationsSharedflowsRevisionsGetCall {
42147	c := &OrganizationsSharedflowsRevisionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42148	c.name = name
42149	return c
42150}
42151
42152// Format sets the optional parameter "format": Specify `bundle` to
42153// export the contents of the shared flow bundle. Otherwise, the bundle
42154// metadata is returned.
42155func (c *OrganizationsSharedflowsRevisionsGetCall) Format(format string) *OrganizationsSharedflowsRevisionsGetCall {
42156	c.urlParams_.Set("format", format)
42157	return c
42158}
42159
42160// Fields allows partial responses to be retrieved. See
42161// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
42162// for more information.
42163func (c *OrganizationsSharedflowsRevisionsGetCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsRevisionsGetCall {
42164	c.urlParams_.Set("fields", googleapi.CombineFields(s))
42165	return c
42166}
42167
42168// IfNoneMatch sets the optional parameter which makes the operation
42169// fail if the object's ETag matches the given value. This is useful for
42170// getting updates only after the object has changed since the last
42171// request. Use googleapi.IsNotModified to check whether the response
42172// error from Do is the result of In-None-Match.
42173func (c *OrganizationsSharedflowsRevisionsGetCall) IfNoneMatch(entityTag string) *OrganizationsSharedflowsRevisionsGetCall {
42174	c.ifNoneMatch_ = entityTag
42175	return c
42176}
42177
42178// Context sets the context to be used in this call's Do method. Any
42179// pending HTTP request will be aborted if the provided context is
42180// canceled.
42181func (c *OrganizationsSharedflowsRevisionsGetCall) Context(ctx context.Context) *OrganizationsSharedflowsRevisionsGetCall {
42182	c.ctx_ = ctx
42183	return c
42184}
42185
42186// Header returns an http.Header that can be modified by the caller to
42187// add HTTP headers to the request.
42188func (c *OrganizationsSharedflowsRevisionsGetCall) Header() http.Header {
42189	if c.header_ == nil {
42190		c.header_ = make(http.Header)
42191	}
42192	return c.header_
42193}
42194
42195func (c *OrganizationsSharedflowsRevisionsGetCall) doRequest(alt string) (*http.Response, error) {
42196	reqHeaders := make(http.Header)
42197	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
42198	for k, v := range c.header_ {
42199		reqHeaders[k] = v
42200	}
42201	reqHeaders.Set("User-Agent", c.s.userAgent())
42202	if c.ifNoneMatch_ != "" {
42203		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
42204	}
42205	var body io.Reader = nil
42206	c.urlParams_.Set("alt", alt)
42207	c.urlParams_.Set("prettyPrint", "false")
42208	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
42209	urls += "?" + c.urlParams_.Encode()
42210	req, err := http.NewRequest("GET", urls, body)
42211	if err != nil {
42212		return nil, err
42213	}
42214	req.Header = reqHeaders
42215	googleapi.Expand(req.URL, map[string]string{
42216		"name": c.name,
42217	})
42218	return gensupport.SendRequest(c.ctx_, c.s.client, req)
42219}
42220
42221// Do executes the "apigee.organizations.sharedflows.revisions.get" call.
42222// Exactly one of *GoogleApiHttpBody or error will be non-nil. Any
42223// non-2xx status code is an error. Response headers are in either
42224// *GoogleApiHttpBody.ServerResponse.Header or (if a response was
42225// returned at all) in error.(*googleapi.Error).Header. Use
42226// googleapi.IsNotModified to check whether the returned error was
42227// because http.StatusNotModified was returned.
42228func (c *OrganizationsSharedflowsRevisionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
42229	gensupport.SetOptions(c.urlParams_, opts...)
42230	res, err := c.doRequest("json")
42231	if res != nil && res.StatusCode == http.StatusNotModified {
42232		if res.Body != nil {
42233			res.Body.Close()
42234		}
42235		return nil, &googleapi.Error{
42236			Code:   res.StatusCode,
42237			Header: res.Header,
42238		}
42239	}
42240	if err != nil {
42241		return nil, err
42242	}
42243	defer googleapi.CloseBody(res)
42244	if err := googleapi.CheckResponse(res); err != nil {
42245		return nil, err
42246	}
42247	ret := &GoogleApiHttpBody{
42248		ServerResponse: googleapi.ServerResponse{
42249			Header:         res.Header,
42250			HTTPStatusCode: res.StatusCode,
42251		},
42252	}
42253	target := &ret
42254	if err := gensupport.DecodeResponse(target, res); err != nil {
42255		return nil, err
42256	}
42257	return ret, nil
42258	// {
42259	//   "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).",
42260	//   "flatPath": "v1/organizations/{organizationsId}/sharedflows/{sharedflowsId}/revisions/{revisionsId}",
42261	//   "httpMethod": "GET",
42262	//   "id": "apigee.organizations.sharedflows.revisions.get",
42263	//   "parameterOrder": [
42264	//     "name"
42265	//   ],
42266	//   "parameters": {
42267	//     "format": {
42268	//       "description": "Specify `bundle` to export the contents of the shared flow bundle. Otherwise, the bundle metadata is returned.",
42269	//       "location": "query",
42270	//       "type": "string"
42271	//     },
42272	//     "name": {
42273	//       "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}`",
42274	//       "location": "path",
42275	//       "pattern": "^organizations/[^/]+/sharedflows/[^/]+/revisions/[^/]+$",
42276	//       "required": true,
42277	//       "type": "string"
42278	//     }
42279	//   },
42280	//   "path": "v1/{+name}",
42281	//   "response": {
42282	//     "$ref": "GoogleApiHttpBody"
42283	//   },
42284	//   "scopes": [
42285	//     "https://www.googleapis.com/auth/cloud-platform"
42286	//   ]
42287	// }
42288
42289}
42290
42291// method id "apigee.organizations.sharedflows.revisions.updateSharedFlowRevision":
42292
42293type OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall struct {
42294	s                 *Service
42295	name              string
42296	googleapihttpbody *GoogleApiHttpBody
42297	urlParams_        gensupport.URLParams
42298	ctx_              context.Context
42299	header_           http.Header
42300}
42301
42302// UpdateSharedFlowRevision: Updates a shared flow revision. This
42303// operation is only allowed on revisions which have never been
42304// deployed. After deployment a revision becomes immutable, even if it
42305// becomes undeployed. The payload is a ZIP-formatted shared flow.
42306// Content type must be either multipart/form-data or
42307// application/octet-stream.
42308//
42309// - name: The name of the shared flow revision to update. Must be of
42310//   the form:
42311//   `organizations/{organization_id}/sharedflows/{shared_flow_id}/revisi
42312//   ons/{revision_id}`.
42313func (r *OrganizationsSharedflowsRevisionsService) UpdateSharedFlowRevision(name string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall {
42314	c := &OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42315	c.name = name
42316	c.googleapihttpbody = googleapihttpbody
42317	return c
42318}
42319
42320// Validate sets the optional parameter "validate": Ignored. All uploads
42321// are validated regardless of the value of this field. It is kept for
42322// compatibility with existing APIs. Must be `true` or `false` if
42323// provided.
42324func (c *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall) Validate(validate bool) *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall {
42325	c.urlParams_.Set("validate", fmt.Sprint(validate))
42326	return c
42327}
42328
42329// Fields allows partial responses to be retrieved. See
42330// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
42331// for more information.
42332func (c *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall {
42333	c.urlParams_.Set("fields", googleapi.CombineFields(s))
42334	return c
42335}
42336
42337// Context sets the context to be used in this call's Do method. Any
42338// pending HTTP request will be aborted if the provided context is
42339// canceled.
42340func (c *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall) Context(ctx context.Context) *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall {
42341	c.ctx_ = ctx
42342	return c
42343}
42344
42345// Header returns an http.Header that can be modified by the caller to
42346// add HTTP headers to the request.
42347func (c *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall) Header() http.Header {
42348	if c.header_ == nil {
42349		c.header_ = make(http.Header)
42350	}
42351	return c.header_
42352}
42353
42354func (c *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall) doRequest(alt string) (*http.Response, error) {
42355	reqHeaders := make(http.Header)
42356	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
42357	for k, v := range c.header_ {
42358		reqHeaders[k] = v
42359	}
42360	reqHeaders.Set("User-Agent", c.s.userAgent())
42361	var body io.Reader = nil
42362	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
42363	if err != nil {
42364		return nil, err
42365	}
42366	reqHeaders.Set("Content-Type", "application/json")
42367	c.urlParams_.Set("alt", alt)
42368	c.urlParams_.Set("prettyPrint", "false")
42369	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
42370	urls += "?" + c.urlParams_.Encode()
42371	req, err := http.NewRequest("POST", urls, body)
42372	if err != nil {
42373		return nil, err
42374	}
42375	req.Header = reqHeaders
42376	googleapi.Expand(req.URL, map[string]string{
42377		"name": c.name,
42378	})
42379	return gensupport.SendRequest(c.ctx_, c.s.client, req)
42380}
42381
42382// Do executes the "apigee.organizations.sharedflows.revisions.updateSharedFlowRevision" call.
42383// Exactly one of *GoogleCloudApigeeV1SharedFlowRevision or error will
42384// be non-nil. Any non-2xx status code is an error. Response headers are
42385// in either
42386// *GoogleCloudApigeeV1SharedFlowRevision.ServerResponse.Header or (if a
42387// response was returned at all) in error.(*googleapi.Error).Header. Use
42388// googleapi.IsNotModified to check whether the returned error was
42389// because http.StatusNotModified was returned.
42390func (c *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SharedFlowRevision, error) {
42391	gensupport.SetOptions(c.urlParams_, opts...)
42392	res, err := c.doRequest("json")
42393	if res != nil && res.StatusCode == http.StatusNotModified {
42394		if res.Body != nil {
42395			res.Body.Close()
42396		}
42397		return nil, &googleapi.Error{
42398			Code:   res.StatusCode,
42399			Header: res.Header,
42400		}
42401	}
42402	if err != nil {
42403		return nil, err
42404	}
42405	defer googleapi.CloseBody(res)
42406	if err := googleapi.CheckResponse(res); err != nil {
42407		return nil, err
42408	}
42409	ret := &GoogleCloudApigeeV1SharedFlowRevision{
42410		ServerResponse: googleapi.ServerResponse{
42411			Header:         res.Header,
42412			HTTPStatusCode: res.StatusCode,
42413		},
42414	}
42415	target := &ret
42416	if err := gensupport.DecodeResponse(target, res); err != nil {
42417		return nil, err
42418	}
42419	return ret, nil
42420	// {
42421	//   "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.",
42422	//   "flatPath": "v1/organizations/{organizationsId}/sharedflows/{sharedflowsId}/revisions/{revisionsId}",
42423	//   "httpMethod": "POST",
42424	//   "id": "apigee.organizations.sharedflows.revisions.updateSharedFlowRevision",
42425	//   "parameterOrder": [
42426	//     "name"
42427	//   ],
42428	//   "parameters": {
42429	//     "name": {
42430	//       "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}`",
42431	//       "location": "path",
42432	//       "pattern": "^organizations/[^/]+/sharedflows/[^/]+/revisions/[^/]+$",
42433	//       "required": true,
42434	//       "type": "string"
42435	//     },
42436	//     "validate": {
42437	//       "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.",
42438	//       "location": "query",
42439	//       "type": "boolean"
42440	//     }
42441	//   },
42442	//   "path": "v1/{+name}",
42443	//   "request": {
42444	//     "$ref": "GoogleApiHttpBody"
42445	//   },
42446	//   "response": {
42447	//     "$ref": "GoogleCloudApigeeV1SharedFlowRevision"
42448	//   },
42449	//   "scopes": [
42450	//     "https://www.googleapis.com/auth/cloud-platform"
42451	//   ]
42452	// }
42453
42454}
42455
42456// method id "apigee.organizations.sharedflows.revisions.deployments.list":
42457
42458type OrganizationsSharedflowsRevisionsDeploymentsListCall struct {
42459	s            *Service
42460	parent       string
42461	urlParams_   gensupport.URLParams
42462	ifNoneMatch_ string
42463	ctx_         context.Context
42464	header_      http.Header
42465}
42466
42467// List: Lists all deployments of a shared flow revision.
42468//
42469// - parent: Name of the API proxy revision for which to return
42470//   deployment information in the following format:
42471//   `organizations/{org}/sharedflows/{sharedflow}/revisions/{rev}`.
42472func (r *OrganizationsSharedflowsRevisionsDeploymentsService) List(parent string) *OrganizationsSharedflowsRevisionsDeploymentsListCall {
42473	c := &OrganizationsSharedflowsRevisionsDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42474	c.parent = parent
42475	return c
42476}
42477
42478// Fields allows partial responses to be retrieved. See
42479// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
42480// for more information.
42481func (c *OrganizationsSharedflowsRevisionsDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsRevisionsDeploymentsListCall {
42482	c.urlParams_.Set("fields", googleapi.CombineFields(s))
42483	return c
42484}
42485
42486// IfNoneMatch sets the optional parameter which makes the operation
42487// fail if the object's ETag matches the given value. This is useful for
42488// getting updates only after the object has changed since the last
42489// request. Use googleapi.IsNotModified to check whether the response
42490// error from Do is the result of In-None-Match.
42491func (c *OrganizationsSharedflowsRevisionsDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsSharedflowsRevisionsDeploymentsListCall {
42492	c.ifNoneMatch_ = entityTag
42493	return c
42494}
42495
42496// Context sets the context to be used in this call's Do method. Any
42497// pending HTTP request will be aborted if the provided context is
42498// canceled.
42499func (c *OrganizationsSharedflowsRevisionsDeploymentsListCall) Context(ctx context.Context) *OrganizationsSharedflowsRevisionsDeploymentsListCall {
42500	c.ctx_ = ctx
42501	return c
42502}
42503
42504// Header returns an http.Header that can be modified by the caller to
42505// add HTTP headers to the request.
42506func (c *OrganizationsSharedflowsRevisionsDeploymentsListCall) Header() http.Header {
42507	if c.header_ == nil {
42508		c.header_ = make(http.Header)
42509	}
42510	return c.header_
42511}
42512
42513func (c *OrganizationsSharedflowsRevisionsDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
42514	reqHeaders := make(http.Header)
42515	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
42516	for k, v := range c.header_ {
42517		reqHeaders[k] = v
42518	}
42519	reqHeaders.Set("User-Agent", c.s.userAgent())
42520	if c.ifNoneMatch_ != "" {
42521		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
42522	}
42523	var body io.Reader = nil
42524	c.urlParams_.Set("alt", alt)
42525	c.urlParams_.Set("prettyPrint", "false")
42526	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
42527	urls += "?" + c.urlParams_.Encode()
42528	req, err := http.NewRequest("GET", urls, body)
42529	if err != nil {
42530		return nil, err
42531	}
42532	req.Header = reqHeaders
42533	googleapi.Expand(req.URL, map[string]string{
42534		"parent": c.parent,
42535	})
42536	return gensupport.SendRequest(c.ctx_, c.s.client, req)
42537}
42538
42539// Do executes the "apigee.organizations.sharedflows.revisions.deployments.list" call.
42540// Exactly one of *GoogleCloudApigeeV1ListDeploymentsResponse or error
42541// will be non-nil. Any non-2xx status code is an error. Response
42542// headers are in either
42543// *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or
42544// (if a response was returned at all) in
42545// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
42546// whether the returned error was because http.StatusNotModified was
42547// returned.
42548func (c *OrganizationsSharedflowsRevisionsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
42549	gensupport.SetOptions(c.urlParams_, opts...)
42550	res, err := c.doRequest("json")
42551	if res != nil && res.StatusCode == http.StatusNotModified {
42552		if res.Body != nil {
42553			res.Body.Close()
42554		}
42555		return nil, &googleapi.Error{
42556			Code:   res.StatusCode,
42557			Header: res.Header,
42558		}
42559	}
42560	if err != nil {
42561		return nil, err
42562	}
42563	defer googleapi.CloseBody(res)
42564	if err := googleapi.CheckResponse(res); err != nil {
42565		return nil, err
42566	}
42567	ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
42568		ServerResponse: googleapi.ServerResponse{
42569			Header:         res.Header,
42570			HTTPStatusCode: res.StatusCode,
42571		},
42572	}
42573	target := &ret
42574	if err := gensupport.DecodeResponse(target, res); err != nil {
42575		return nil, err
42576	}
42577	return ret, nil
42578	// {
42579	//   "description": "Lists all deployments of a shared flow revision.",
42580	//   "flatPath": "v1/organizations/{organizationsId}/sharedflows/{sharedflowsId}/revisions/{revisionsId}/deployments",
42581	//   "httpMethod": "GET",
42582	//   "id": "apigee.organizations.sharedflows.revisions.deployments.list",
42583	//   "parameterOrder": [
42584	//     "parent"
42585	//   ],
42586	//   "parameters": {
42587	//     "parent": {
42588	//       "description": "Required. Name of the API proxy revision for which to return deployment information in the following format: `organizations/{org}/sharedflows/{sharedflow}/revisions/{rev}`.",
42589	//       "location": "path",
42590	//       "pattern": "^organizations/[^/]+/sharedflows/[^/]+/revisions/[^/]+$",
42591	//       "required": true,
42592	//       "type": "string"
42593	//     }
42594	//   },
42595	//   "path": "v1/{+parent}/deployments",
42596	//   "response": {
42597	//     "$ref": "GoogleCloudApigeeV1ListDeploymentsResponse"
42598	//   },
42599	//   "scopes": [
42600	//     "https://www.googleapis.com/auth/cloud-platform"
42601	//   ]
42602	// }
42603
42604}
42605
42606// method id "apigee.organizations.sites.apicategories.create":
42607
42608type OrganizationsSitesApicategoriesCreateCall struct {
42609	s                                  *Service
42610	parent                             string
42611	googlecloudapigeev1apicategorydata *GoogleCloudApigeeV1ApiCategoryData
42612	urlParams_                         gensupport.URLParams
42613	ctx_                               context.Context
42614	header_                            http.Header
42615}
42616
42617// Create: Creates a new category on the portal.
42618//
42619// - parent: Name of the portal. Use the following structure in your
42620//   request: `organizations/{org}/sites/{site}`.
42621func (r *OrganizationsSitesApicategoriesService) Create(parent string, googlecloudapigeev1apicategorydata *GoogleCloudApigeeV1ApiCategoryData) *OrganizationsSitesApicategoriesCreateCall {
42622	c := &OrganizationsSitesApicategoriesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42623	c.parent = parent
42624	c.googlecloudapigeev1apicategorydata = googlecloudapigeev1apicategorydata
42625	return c
42626}
42627
42628// Fields allows partial responses to be retrieved. See
42629// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
42630// for more information.
42631func (c *OrganizationsSitesApicategoriesCreateCall) Fields(s ...googleapi.Field) *OrganizationsSitesApicategoriesCreateCall {
42632	c.urlParams_.Set("fields", googleapi.CombineFields(s))
42633	return c
42634}
42635
42636// Context sets the context to be used in this call's Do method. Any
42637// pending HTTP request will be aborted if the provided context is
42638// canceled.
42639func (c *OrganizationsSitesApicategoriesCreateCall) Context(ctx context.Context) *OrganizationsSitesApicategoriesCreateCall {
42640	c.ctx_ = ctx
42641	return c
42642}
42643
42644// Header returns an http.Header that can be modified by the caller to
42645// add HTTP headers to the request.
42646func (c *OrganizationsSitesApicategoriesCreateCall) Header() http.Header {
42647	if c.header_ == nil {
42648		c.header_ = make(http.Header)
42649	}
42650	return c.header_
42651}
42652
42653func (c *OrganizationsSitesApicategoriesCreateCall) doRequest(alt string) (*http.Response, error) {
42654	reqHeaders := make(http.Header)
42655	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
42656	for k, v := range c.header_ {
42657		reqHeaders[k] = v
42658	}
42659	reqHeaders.Set("User-Agent", c.s.userAgent())
42660	var body io.Reader = nil
42661	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1apicategorydata)
42662	if err != nil {
42663		return nil, err
42664	}
42665	reqHeaders.Set("Content-Type", "application/json")
42666	c.urlParams_.Set("alt", alt)
42667	c.urlParams_.Set("prettyPrint", "false")
42668	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apicategories")
42669	urls += "?" + c.urlParams_.Encode()
42670	req, err := http.NewRequest("POST", urls, body)
42671	if err != nil {
42672		return nil, err
42673	}
42674	req.Header = reqHeaders
42675	googleapi.Expand(req.URL, map[string]string{
42676		"parent": c.parent,
42677	})
42678	return gensupport.SendRequest(c.ctx_, c.s.client, req)
42679}
42680
42681// Do executes the "apigee.organizations.sites.apicategories.create" call.
42682// Exactly one of *GoogleCloudApigeeV1ApiCategory or error will be
42683// non-nil. Any non-2xx status code is an error. Response headers are in
42684// either *GoogleCloudApigeeV1ApiCategory.ServerResponse.Header or (if a
42685// response was returned at all) in error.(*googleapi.Error).Header. Use
42686// googleapi.IsNotModified to check whether the returned error was
42687// because http.StatusNotModified was returned.
42688func (c *OrganizationsSitesApicategoriesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiCategory, error) {
42689	gensupport.SetOptions(c.urlParams_, opts...)
42690	res, err := c.doRequest("json")
42691	if res != nil && res.StatusCode == http.StatusNotModified {
42692		if res.Body != nil {
42693			res.Body.Close()
42694		}
42695		return nil, &googleapi.Error{
42696			Code:   res.StatusCode,
42697			Header: res.Header,
42698		}
42699	}
42700	if err != nil {
42701		return nil, err
42702	}
42703	defer googleapi.CloseBody(res)
42704	if err := googleapi.CheckResponse(res); err != nil {
42705		return nil, err
42706	}
42707	ret := &GoogleCloudApigeeV1ApiCategory{
42708		ServerResponse: googleapi.ServerResponse{
42709			Header:         res.Header,
42710			HTTPStatusCode: res.StatusCode,
42711		},
42712	}
42713	target := &ret
42714	if err := gensupport.DecodeResponse(target, res); err != nil {
42715		return nil, err
42716	}
42717	return ret, nil
42718	// {
42719	//   "description": "Creates a new category on the portal.",
42720	//   "flatPath": "v1/organizations/{organizationsId}/sites/{sitesId}/apicategories",
42721	//   "httpMethod": "POST",
42722	//   "id": "apigee.organizations.sites.apicategories.create",
42723	//   "parameterOrder": [
42724	//     "parent"
42725	//   ],
42726	//   "parameters": {
42727	//     "parent": {
42728	//       "description": "Required. Name of the portal. Use the following structure in your request: `organizations/{org}/sites/{site}`",
42729	//       "location": "path",
42730	//       "pattern": "^organizations/[^/]+/sites/[^/]+$",
42731	//       "required": true,
42732	//       "type": "string"
42733	//     }
42734	//   },
42735	//   "path": "v1/{+parent}/apicategories",
42736	//   "request": {
42737	//     "$ref": "GoogleCloudApigeeV1ApiCategoryData"
42738	//   },
42739	//   "response": {
42740	//     "$ref": "GoogleCloudApigeeV1ApiCategory"
42741	//   },
42742	//   "scopes": [
42743	//     "https://www.googleapis.com/auth/cloud-platform"
42744	//   ]
42745	// }
42746
42747}
42748
42749// method id "apigee.organizations.sites.apicategories.delete":
42750
42751type OrganizationsSitesApicategoriesDeleteCall struct {
42752	s          *Service
42753	name       string
42754	urlParams_ gensupport.URLParams
42755	ctx_       context.Context
42756	header_    http.Header
42757}
42758
42759// Delete: Deletes a category from the portal.
42760//
42761// - name: Name of the category. Use the following structure in your
42762//   request:
42763//   `organizations/{org}/sites/{site}/apicategories/{apicategory}`.
42764func (r *OrganizationsSitesApicategoriesService) Delete(name string) *OrganizationsSitesApicategoriesDeleteCall {
42765	c := &OrganizationsSitesApicategoriesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42766	c.name = name
42767	return c
42768}
42769
42770// Fields allows partial responses to be retrieved. See
42771// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
42772// for more information.
42773func (c *OrganizationsSitesApicategoriesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsSitesApicategoriesDeleteCall {
42774	c.urlParams_.Set("fields", googleapi.CombineFields(s))
42775	return c
42776}
42777
42778// Context sets the context to be used in this call's Do method. Any
42779// pending HTTP request will be aborted if the provided context is
42780// canceled.
42781func (c *OrganizationsSitesApicategoriesDeleteCall) Context(ctx context.Context) *OrganizationsSitesApicategoriesDeleteCall {
42782	c.ctx_ = ctx
42783	return c
42784}
42785
42786// Header returns an http.Header that can be modified by the caller to
42787// add HTTP headers to the request.
42788func (c *OrganizationsSitesApicategoriesDeleteCall) Header() http.Header {
42789	if c.header_ == nil {
42790		c.header_ = make(http.Header)
42791	}
42792	return c.header_
42793}
42794
42795func (c *OrganizationsSitesApicategoriesDeleteCall) doRequest(alt string) (*http.Response, error) {
42796	reqHeaders := make(http.Header)
42797	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
42798	for k, v := range c.header_ {
42799		reqHeaders[k] = v
42800	}
42801	reqHeaders.Set("User-Agent", c.s.userAgent())
42802	var body io.Reader = nil
42803	c.urlParams_.Set("alt", alt)
42804	c.urlParams_.Set("prettyPrint", "false")
42805	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
42806	urls += "?" + c.urlParams_.Encode()
42807	req, err := http.NewRequest("DELETE", urls, body)
42808	if err != nil {
42809		return nil, err
42810	}
42811	req.Header = reqHeaders
42812	googleapi.Expand(req.URL, map[string]string{
42813		"name": c.name,
42814	})
42815	return gensupport.SendRequest(c.ctx_, c.s.client, req)
42816}
42817
42818// Do executes the "apigee.organizations.sites.apicategories.delete" call.
42819// Exactly one of *GoogleCloudApigeeV1ApiResponseWrapper or error will
42820// be non-nil. Any non-2xx status code is an error. Response headers are
42821// in either
42822// *GoogleCloudApigeeV1ApiResponseWrapper.ServerResponse.Header or (if a
42823// response was returned at all) in error.(*googleapi.Error).Header. Use
42824// googleapi.IsNotModified to check whether the returned error was
42825// because http.StatusNotModified was returned.
42826func (c *OrganizationsSitesApicategoriesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiResponseWrapper, error) {
42827	gensupport.SetOptions(c.urlParams_, opts...)
42828	res, err := c.doRequest("json")
42829	if res != nil && res.StatusCode == http.StatusNotModified {
42830		if res.Body != nil {
42831			res.Body.Close()
42832		}
42833		return nil, &googleapi.Error{
42834			Code:   res.StatusCode,
42835			Header: res.Header,
42836		}
42837	}
42838	if err != nil {
42839		return nil, err
42840	}
42841	defer googleapi.CloseBody(res)
42842	if err := googleapi.CheckResponse(res); err != nil {
42843		return nil, err
42844	}
42845	ret := &GoogleCloudApigeeV1ApiResponseWrapper{
42846		ServerResponse: googleapi.ServerResponse{
42847			Header:         res.Header,
42848			HTTPStatusCode: res.StatusCode,
42849		},
42850	}
42851	target := &ret
42852	if err := gensupport.DecodeResponse(target, res); err != nil {
42853		return nil, err
42854	}
42855	return ret, nil
42856	// {
42857	//   "description": "Deletes a category from the portal.",
42858	//   "flatPath": "v1/organizations/{organizationsId}/sites/{sitesId}/apicategories/{apicategoriesId}",
42859	//   "httpMethod": "DELETE",
42860	//   "id": "apigee.organizations.sites.apicategories.delete",
42861	//   "parameterOrder": [
42862	//     "name"
42863	//   ],
42864	//   "parameters": {
42865	//     "name": {
42866	//       "description": "Required. Name of the category. Use the following structure in your request: `organizations/{org}/sites/{site}/apicategories/{apicategory}`",
42867	//       "location": "path",
42868	//       "pattern": "^organizations/[^/]+/sites/[^/]+/apicategories/[^/]+$",
42869	//       "required": true,
42870	//       "type": "string"
42871	//     }
42872	//   },
42873	//   "path": "v1/{+name}",
42874	//   "response": {
42875	//     "$ref": "GoogleCloudApigeeV1ApiResponseWrapper"
42876	//   },
42877	//   "scopes": [
42878	//     "https://www.googleapis.com/auth/cloud-platform"
42879	//   ]
42880	// }
42881
42882}
42883
42884// method id "apigee.organizations.sites.apicategories.get":
42885
42886type OrganizationsSitesApicategoriesGetCall struct {
42887	s            *Service
42888	name         string
42889	urlParams_   gensupport.URLParams
42890	ifNoneMatch_ string
42891	ctx_         context.Context
42892	header_      http.Header
42893}
42894
42895// Get: Gets a category on the portal.
42896//
42897// - name: Name of the category. Use the following structure in your
42898//   request:
42899//   `organizations/{org}/sites/{site}/apicategories/{apicategory}`.
42900func (r *OrganizationsSitesApicategoriesService) Get(name string) *OrganizationsSitesApicategoriesGetCall {
42901	c := &OrganizationsSitesApicategoriesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42902	c.name = name
42903	return c
42904}
42905
42906// Fields allows partial responses to be retrieved. See
42907// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
42908// for more information.
42909func (c *OrganizationsSitesApicategoriesGetCall) Fields(s ...googleapi.Field) *OrganizationsSitesApicategoriesGetCall {
42910	c.urlParams_.Set("fields", googleapi.CombineFields(s))
42911	return c
42912}
42913
42914// IfNoneMatch sets the optional parameter which makes the operation
42915// fail if the object's ETag matches the given value. This is useful for
42916// getting updates only after the object has changed since the last
42917// request. Use googleapi.IsNotModified to check whether the response
42918// error from Do is the result of In-None-Match.
42919func (c *OrganizationsSitesApicategoriesGetCall) IfNoneMatch(entityTag string) *OrganizationsSitesApicategoriesGetCall {
42920	c.ifNoneMatch_ = entityTag
42921	return c
42922}
42923
42924// Context sets the context to be used in this call's Do method. Any
42925// pending HTTP request will be aborted if the provided context is
42926// canceled.
42927func (c *OrganizationsSitesApicategoriesGetCall) Context(ctx context.Context) *OrganizationsSitesApicategoriesGetCall {
42928	c.ctx_ = ctx
42929	return c
42930}
42931
42932// Header returns an http.Header that can be modified by the caller to
42933// add HTTP headers to the request.
42934func (c *OrganizationsSitesApicategoriesGetCall) Header() http.Header {
42935	if c.header_ == nil {
42936		c.header_ = make(http.Header)
42937	}
42938	return c.header_
42939}
42940
42941func (c *OrganizationsSitesApicategoriesGetCall) doRequest(alt string) (*http.Response, error) {
42942	reqHeaders := make(http.Header)
42943	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
42944	for k, v := range c.header_ {
42945		reqHeaders[k] = v
42946	}
42947	reqHeaders.Set("User-Agent", c.s.userAgent())
42948	if c.ifNoneMatch_ != "" {
42949		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
42950	}
42951	var body io.Reader = nil
42952	c.urlParams_.Set("alt", alt)
42953	c.urlParams_.Set("prettyPrint", "false")
42954	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
42955	urls += "?" + c.urlParams_.Encode()
42956	req, err := http.NewRequest("GET", urls, body)
42957	if err != nil {
42958		return nil, err
42959	}
42960	req.Header = reqHeaders
42961	googleapi.Expand(req.URL, map[string]string{
42962		"name": c.name,
42963	})
42964	return gensupport.SendRequest(c.ctx_, c.s.client, req)
42965}
42966
42967// Do executes the "apigee.organizations.sites.apicategories.get" call.
42968// Exactly one of *GoogleCloudApigeeV1ApiCategory or error will be
42969// non-nil. Any non-2xx status code is an error. Response headers are in
42970// either *GoogleCloudApigeeV1ApiCategory.ServerResponse.Header or (if a
42971// response was returned at all) in error.(*googleapi.Error).Header. Use
42972// googleapi.IsNotModified to check whether the returned error was
42973// because http.StatusNotModified was returned.
42974func (c *OrganizationsSitesApicategoriesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiCategory, error) {
42975	gensupport.SetOptions(c.urlParams_, opts...)
42976	res, err := c.doRequest("json")
42977	if res != nil && res.StatusCode == http.StatusNotModified {
42978		if res.Body != nil {
42979			res.Body.Close()
42980		}
42981		return nil, &googleapi.Error{
42982			Code:   res.StatusCode,
42983			Header: res.Header,
42984		}
42985	}
42986	if err != nil {
42987		return nil, err
42988	}
42989	defer googleapi.CloseBody(res)
42990	if err := googleapi.CheckResponse(res); err != nil {
42991		return nil, err
42992	}
42993	ret := &GoogleCloudApigeeV1ApiCategory{
42994		ServerResponse: googleapi.ServerResponse{
42995			Header:         res.Header,
42996			HTTPStatusCode: res.StatusCode,
42997		},
42998	}
42999	target := &ret
43000	if err := gensupport.DecodeResponse(target, res); err != nil {
43001		return nil, err
43002	}
43003	return ret, nil
43004	// {
43005	//   "description": "Gets a category on the portal.",
43006	//   "flatPath": "v1/organizations/{organizationsId}/sites/{sitesId}/apicategories/{apicategoriesId}",
43007	//   "httpMethod": "GET",
43008	//   "id": "apigee.organizations.sites.apicategories.get",
43009	//   "parameterOrder": [
43010	//     "name"
43011	//   ],
43012	//   "parameters": {
43013	//     "name": {
43014	//       "description": "Required. Name of the category. Use the following structure in your request: `organizations/{org}/sites/{site}/apicategories/{apicategory}`",
43015	//       "location": "path",
43016	//       "pattern": "^organizations/[^/]+/sites/[^/]+/apicategories/[^/]+$",
43017	//       "required": true,
43018	//       "type": "string"
43019	//     }
43020	//   },
43021	//   "path": "v1/{+name}",
43022	//   "response": {
43023	//     "$ref": "GoogleCloudApigeeV1ApiCategory"
43024	//   },
43025	//   "scopes": [
43026	//     "https://www.googleapis.com/auth/cloud-platform"
43027	//   ]
43028	// }
43029
43030}
43031
43032// method id "apigee.organizations.sites.apicategories.list":
43033
43034type OrganizationsSitesApicategoriesListCall struct {
43035	s            *Service
43036	parent       string
43037	urlParams_   gensupport.URLParams
43038	ifNoneMatch_ string
43039	ctx_         context.Context
43040	header_      http.Header
43041}
43042
43043// List: Lists the categories on the portal.
43044//
43045// - parent: Name of the portal. Use the following structure in your
43046//   request: `organizations/{org}/sites/{site}`.
43047func (r *OrganizationsSitesApicategoriesService) List(parent string) *OrganizationsSitesApicategoriesListCall {
43048	c := &OrganizationsSitesApicategoriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43049	c.parent = parent
43050	return c
43051}
43052
43053// Fields allows partial responses to be retrieved. See
43054// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
43055// for more information.
43056func (c *OrganizationsSitesApicategoriesListCall) Fields(s ...googleapi.Field) *OrganizationsSitesApicategoriesListCall {
43057	c.urlParams_.Set("fields", googleapi.CombineFields(s))
43058	return c
43059}
43060
43061// IfNoneMatch sets the optional parameter which makes the operation
43062// fail if the object's ETag matches the given value. This is useful for
43063// getting updates only after the object has changed since the last
43064// request. Use googleapi.IsNotModified to check whether the response
43065// error from Do is the result of In-None-Match.
43066func (c *OrganizationsSitesApicategoriesListCall) IfNoneMatch(entityTag string) *OrganizationsSitesApicategoriesListCall {
43067	c.ifNoneMatch_ = entityTag
43068	return c
43069}
43070
43071// Context sets the context to be used in this call's Do method. Any
43072// pending HTTP request will be aborted if the provided context is
43073// canceled.
43074func (c *OrganizationsSitesApicategoriesListCall) Context(ctx context.Context) *OrganizationsSitesApicategoriesListCall {
43075	c.ctx_ = ctx
43076	return c
43077}
43078
43079// Header returns an http.Header that can be modified by the caller to
43080// add HTTP headers to the request.
43081func (c *OrganizationsSitesApicategoriesListCall) Header() http.Header {
43082	if c.header_ == nil {
43083		c.header_ = make(http.Header)
43084	}
43085	return c.header_
43086}
43087
43088func (c *OrganizationsSitesApicategoriesListCall) doRequest(alt string) (*http.Response, error) {
43089	reqHeaders := make(http.Header)
43090	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
43091	for k, v := range c.header_ {
43092		reqHeaders[k] = v
43093	}
43094	reqHeaders.Set("User-Agent", c.s.userAgent())
43095	if c.ifNoneMatch_ != "" {
43096		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
43097	}
43098	var body io.Reader = nil
43099	c.urlParams_.Set("alt", alt)
43100	c.urlParams_.Set("prettyPrint", "false")
43101	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apicategories")
43102	urls += "?" + c.urlParams_.Encode()
43103	req, err := http.NewRequest("GET", urls, body)
43104	if err != nil {
43105		return nil, err
43106	}
43107	req.Header = reqHeaders
43108	googleapi.Expand(req.URL, map[string]string{
43109		"parent": c.parent,
43110	})
43111	return gensupport.SendRequest(c.ctx_, c.s.client, req)
43112}
43113
43114// Do executes the "apigee.organizations.sites.apicategories.list" call.
43115// Exactly one of *GoogleCloudApigeeV1ListApiCategoriesResponse or error
43116// will be non-nil. Any non-2xx status code is an error. Response
43117// headers are in either
43118// *GoogleCloudApigeeV1ListApiCategoriesResponse.ServerResponse.Header
43119// or (if a response was returned at all) in
43120// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
43121// whether the returned error was because http.StatusNotModified was
43122// returned.
43123func (c *OrganizationsSitesApicategoriesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListApiCategoriesResponse, error) {
43124	gensupport.SetOptions(c.urlParams_, opts...)
43125	res, err := c.doRequest("json")
43126	if res != nil && res.StatusCode == http.StatusNotModified {
43127		if res.Body != nil {
43128			res.Body.Close()
43129		}
43130		return nil, &googleapi.Error{
43131			Code:   res.StatusCode,
43132			Header: res.Header,
43133		}
43134	}
43135	if err != nil {
43136		return nil, err
43137	}
43138	defer googleapi.CloseBody(res)
43139	if err := googleapi.CheckResponse(res); err != nil {
43140		return nil, err
43141	}
43142	ret := &GoogleCloudApigeeV1ListApiCategoriesResponse{
43143		ServerResponse: googleapi.ServerResponse{
43144			Header:         res.Header,
43145			HTTPStatusCode: res.StatusCode,
43146		},
43147	}
43148	target := &ret
43149	if err := gensupport.DecodeResponse(target, res); err != nil {
43150		return nil, err
43151	}
43152	return ret, nil
43153	// {
43154	//   "description": "Lists the categories on the portal.",
43155	//   "flatPath": "v1/organizations/{organizationsId}/sites/{sitesId}/apicategories",
43156	//   "httpMethod": "GET",
43157	//   "id": "apigee.organizations.sites.apicategories.list",
43158	//   "parameterOrder": [
43159	//     "parent"
43160	//   ],
43161	//   "parameters": {
43162	//     "parent": {
43163	//       "description": "Required. Name of the portal. Use the following structure in your request: `organizations/{org}/sites/{site}`",
43164	//       "location": "path",
43165	//       "pattern": "^organizations/[^/]+/sites/[^/]+$",
43166	//       "required": true,
43167	//       "type": "string"
43168	//     }
43169	//   },
43170	//   "path": "v1/{+parent}/apicategories",
43171	//   "response": {
43172	//     "$ref": "GoogleCloudApigeeV1ListApiCategoriesResponse"
43173	//   },
43174	//   "scopes": [
43175	//     "https://www.googleapis.com/auth/cloud-platform"
43176	//   ]
43177	// }
43178
43179}
43180
43181// method id "apigee.organizations.sites.apicategories.patch":
43182
43183type OrganizationsSitesApicategoriesPatchCall struct {
43184	s                                  *Service
43185	name                               string
43186	googlecloudapigeev1apicategorydata *GoogleCloudApigeeV1ApiCategoryData
43187	urlParams_                         gensupport.URLParams
43188	ctx_                               context.Context
43189	header_                            http.Header
43190}
43191
43192// Patch: Updates a category on the portal.
43193//
43194// - name: Name of the category. Use the following structure in your
43195//   request:
43196//   `organizations/{org}/sites/{site}/apicategories/{apicategory}`.
43197func (r *OrganizationsSitesApicategoriesService) Patch(name string, googlecloudapigeev1apicategorydata *GoogleCloudApigeeV1ApiCategoryData) *OrganizationsSitesApicategoriesPatchCall {
43198	c := &OrganizationsSitesApicategoriesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43199	c.name = name
43200	c.googlecloudapigeev1apicategorydata = googlecloudapigeev1apicategorydata
43201	return c
43202}
43203
43204// Fields allows partial responses to be retrieved. See
43205// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
43206// for more information.
43207func (c *OrganizationsSitesApicategoriesPatchCall) Fields(s ...googleapi.Field) *OrganizationsSitesApicategoriesPatchCall {
43208	c.urlParams_.Set("fields", googleapi.CombineFields(s))
43209	return c
43210}
43211
43212// Context sets the context to be used in this call's Do method. Any
43213// pending HTTP request will be aborted if the provided context is
43214// canceled.
43215func (c *OrganizationsSitesApicategoriesPatchCall) Context(ctx context.Context) *OrganizationsSitesApicategoriesPatchCall {
43216	c.ctx_ = ctx
43217	return c
43218}
43219
43220// Header returns an http.Header that can be modified by the caller to
43221// add HTTP headers to the request.
43222func (c *OrganizationsSitesApicategoriesPatchCall) Header() http.Header {
43223	if c.header_ == nil {
43224		c.header_ = make(http.Header)
43225	}
43226	return c.header_
43227}
43228
43229func (c *OrganizationsSitesApicategoriesPatchCall) doRequest(alt string) (*http.Response, error) {
43230	reqHeaders := make(http.Header)
43231	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
43232	for k, v := range c.header_ {
43233		reqHeaders[k] = v
43234	}
43235	reqHeaders.Set("User-Agent", c.s.userAgent())
43236	var body io.Reader = nil
43237	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1apicategorydata)
43238	if err != nil {
43239		return nil, err
43240	}
43241	reqHeaders.Set("Content-Type", "application/json")
43242	c.urlParams_.Set("alt", alt)
43243	c.urlParams_.Set("prettyPrint", "false")
43244	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
43245	urls += "?" + c.urlParams_.Encode()
43246	req, err := http.NewRequest("PATCH", urls, body)
43247	if err != nil {
43248		return nil, err
43249	}
43250	req.Header = reqHeaders
43251	googleapi.Expand(req.URL, map[string]string{
43252		"name": c.name,
43253	})
43254	return gensupport.SendRequest(c.ctx_, c.s.client, req)
43255}
43256
43257// Do executes the "apigee.organizations.sites.apicategories.patch" call.
43258// Exactly one of *GoogleCloudApigeeV1ApiCategory or error will be
43259// non-nil. Any non-2xx status code is an error. Response headers are in
43260// either *GoogleCloudApigeeV1ApiCategory.ServerResponse.Header or (if a
43261// response was returned at all) in error.(*googleapi.Error).Header. Use
43262// googleapi.IsNotModified to check whether the returned error was
43263// because http.StatusNotModified was returned.
43264func (c *OrganizationsSitesApicategoriesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiCategory, error) {
43265	gensupport.SetOptions(c.urlParams_, opts...)
43266	res, err := c.doRequest("json")
43267	if res != nil && res.StatusCode == http.StatusNotModified {
43268		if res.Body != nil {
43269			res.Body.Close()
43270		}
43271		return nil, &googleapi.Error{
43272			Code:   res.StatusCode,
43273			Header: res.Header,
43274		}
43275	}
43276	if err != nil {
43277		return nil, err
43278	}
43279	defer googleapi.CloseBody(res)
43280	if err := googleapi.CheckResponse(res); err != nil {
43281		return nil, err
43282	}
43283	ret := &GoogleCloudApigeeV1ApiCategory{
43284		ServerResponse: googleapi.ServerResponse{
43285			Header:         res.Header,
43286			HTTPStatusCode: res.StatusCode,
43287		},
43288	}
43289	target := &ret
43290	if err := gensupport.DecodeResponse(target, res); err != nil {
43291		return nil, err
43292	}
43293	return ret, nil
43294	// {
43295	//   "description": "Updates a category on the portal.",
43296	//   "flatPath": "v1/organizations/{organizationsId}/sites/{sitesId}/apicategories/{apicategoriesId}",
43297	//   "httpMethod": "PATCH",
43298	//   "id": "apigee.organizations.sites.apicategories.patch",
43299	//   "parameterOrder": [
43300	//     "name"
43301	//   ],
43302	//   "parameters": {
43303	//     "name": {
43304	//       "description": "Required. Name of the category. Use the following structure in your request: `organizations/{org}/sites/{site}/apicategories/{apicategory}`",
43305	//       "location": "path",
43306	//       "pattern": "^organizations/[^/]+/sites/[^/]+/apicategories/[^/]+$",
43307	//       "required": true,
43308	//       "type": "string"
43309	//     }
43310	//   },
43311	//   "path": "v1/{+name}",
43312	//   "request": {
43313	//     "$ref": "GoogleCloudApigeeV1ApiCategoryData"
43314	//   },
43315	//   "response": {
43316	//     "$ref": "GoogleCloudApigeeV1ApiCategory"
43317	//   },
43318	//   "scopes": [
43319	//     "https://www.googleapis.com/auth/cloud-platform"
43320	//   ]
43321	// }
43322
43323}
43324
43325// method id "apigee.projects.provisionOrganization":
43326
43327type ProjectsProvisionOrganizationCall struct {
43328	s                                               *Service
43329	project                                         string
43330	googlecloudapigeev1provisionorganizationrequest *GoogleCloudApigeeV1ProvisionOrganizationRequest
43331	urlParams_                                      gensupport.URLParams
43332	ctx_                                            context.Context
43333	header_                                         http.Header
43334}
43335
43336// ProvisionOrganization: Provisions a new Apigee organization with a
43337// functioning runtime. This is the standard way to create trial
43338// organizations for a free Apigee trial.
43339//
43340// - project: Name of the GCP project with which to associate the Apigee
43341//   organization.
43342func (r *ProjectsService) ProvisionOrganization(project string, googlecloudapigeev1provisionorganizationrequest *GoogleCloudApigeeV1ProvisionOrganizationRequest) *ProjectsProvisionOrganizationCall {
43343	c := &ProjectsProvisionOrganizationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43344	c.project = project
43345	c.googlecloudapigeev1provisionorganizationrequest = googlecloudapigeev1provisionorganizationrequest
43346	return c
43347}
43348
43349// Fields allows partial responses to be retrieved. See
43350// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
43351// for more information.
43352func (c *ProjectsProvisionOrganizationCall) Fields(s ...googleapi.Field) *ProjectsProvisionOrganizationCall {
43353	c.urlParams_.Set("fields", googleapi.CombineFields(s))
43354	return c
43355}
43356
43357// Context sets the context to be used in this call's Do method. Any
43358// pending HTTP request will be aborted if the provided context is
43359// canceled.
43360func (c *ProjectsProvisionOrganizationCall) Context(ctx context.Context) *ProjectsProvisionOrganizationCall {
43361	c.ctx_ = ctx
43362	return c
43363}
43364
43365// Header returns an http.Header that can be modified by the caller to
43366// add HTTP headers to the request.
43367func (c *ProjectsProvisionOrganizationCall) Header() http.Header {
43368	if c.header_ == nil {
43369		c.header_ = make(http.Header)
43370	}
43371	return c.header_
43372}
43373
43374func (c *ProjectsProvisionOrganizationCall) doRequest(alt string) (*http.Response, error) {
43375	reqHeaders := make(http.Header)
43376	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210410")
43377	for k, v := range c.header_ {
43378		reqHeaders[k] = v
43379	}
43380	reqHeaders.Set("User-Agent", c.s.userAgent())
43381	var body io.Reader = nil
43382	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1provisionorganizationrequest)
43383	if err != nil {
43384		return nil, err
43385	}
43386	reqHeaders.Set("Content-Type", "application/json")
43387	c.urlParams_.Set("alt", alt)
43388	c.urlParams_.Set("prettyPrint", "false")
43389	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+project}:provisionOrganization")
43390	urls += "?" + c.urlParams_.Encode()
43391	req, err := http.NewRequest("POST", urls, body)
43392	if err != nil {
43393		return nil, err
43394	}
43395	req.Header = reqHeaders
43396	googleapi.Expand(req.URL, map[string]string{
43397		"project": c.project,
43398	})
43399	return gensupport.SendRequest(c.ctx_, c.s.client, req)
43400}
43401
43402// Do executes the "apigee.projects.provisionOrganization" call.
43403// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
43404// Any non-2xx status code is an error. Response headers are in either
43405// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
43406// was returned at all) in error.(*googleapi.Error).Header. Use
43407// googleapi.IsNotModified to check whether the returned error was
43408// because http.StatusNotModified was returned.
43409func (c *ProjectsProvisionOrganizationCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
43410	gensupport.SetOptions(c.urlParams_, opts...)
43411	res, err := c.doRequest("json")
43412	if res != nil && res.StatusCode == http.StatusNotModified {
43413		if res.Body != nil {
43414			res.Body.Close()
43415		}
43416		return nil, &googleapi.Error{
43417			Code:   res.StatusCode,
43418			Header: res.Header,
43419		}
43420	}
43421	if err != nil {
43422		return nil, err
43423	}
43424	defer googleapi.CloseBody(res)
43425	if err := googleapi.CheckResponse(res); err != nil {
43426		return nil, err
43427	}
43428	ret := &GoogleLongrunningOperation{
43429		ServerResponse: googleapi.ServerResponse{
43430			Header:         res.Header,
43431			HTTPStatusCode: res.StatusCode,
43432		},
43433	}
43434	target := &ret
43435	if err := gensupport.DecodeResponse(target, res); err != nil {
43436		return nil, err
43437	}
43438	return ret, nil
43439	// {
43440	//   "description": "Provisions a new Apigee organization with a functioning runtime. This is the standard way to create trial organizations for a free Apigee trial.",
43441	//   "flatPath": "v1/projects/{projectsId}:provisionOrganization",
43442	//   "httpMethod": "POST",
43443	//   "id": "apigee.projects.provisionOrganization",
43444	//   "parameterOrder": [
43445	//     "project"
43446	//   ],
43447	//   "parameters": {
43448	//     "project": {
43449	//       "description": "Required. Name of the GCP project with which to associate the Apigee organization.",
43450	//       "location": "path",
43451	//       "pattern": "^projects/[^/]+$",
43452	//       "required": true,
43453	//       "type": "string"
43454	//     }
43455	//   },
43456	//   "path": "v1/{+project}:provisionOrganization",
43457	//   "request": {
43458	//     "$ref": "GoogleCloudApigeeV1ProvisionOrganizationRequest"
43459	//   },
43460	//   "response": {
43461	//     "$ref": "GoogleLongrunningOperation"
43462	//   },
43463	//   "scopes": [
43464	//     "https://www.googleapis.com/auth/cloud-platform"
43465	//   ]
43466	// }
43467
43468}
43469