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
3197// GoogleCloudApigeeV1DeploymentConfig: NEXT ID: 9
3198type GoogleCloudApigeeV1DeploymentConfig struct {
3199	// Attributes: Additional key-value metadata for the deployment.
3200	Attributes map[string]string `json:"attributes,omitempty"`
3201
3202	// BasePath: Base path where the application will be hosted. Defaults to
3203	// "/".
3204	BasePath string `json:"basePath,omitempty"`
3205
3206	// Location: Location of the API proxy bundle as a URI.
3207	Location string `json:"location,omitempty"`
3208
3209	// Name: Name of the API or shared flow revision to be deployed in the
3210	// following format: `organizations/{org}/apis/{api}/revisions/{rev}` or
3211	// `organizations/{org}/sharedflows/{sharedflow}/revisions/{rev}`
3212	Name string `json:"name,omitempty"`
3213
3214	// ProxyUid: Unique ID of the API proxy revision.
3215	ProxyUid string `json:"proxyUid,omitempty"`
3216
3217	// ServiceAccount: The service account identity associated with this
3218	// deployment. If non-empty, will be in the following format:
3219	// `projects/-/serviceAccounts/{account_email}`
3220	ServiceAccount string `json:"serviceAccount,omitempty"`
3221
3222	// Uid: Unique ID. The ID will only change if the deployment is deleted
3223	// and recreated.
3224	Uid string `json:"uid,omitempty"`
3225
3226	// ForceSendFields is a list of field names (e.g. "Attributes") to
3227	// unconditionally include in API requests. By default, fields with
3228	// empty values are omitted from API requests. However, any non-pointer,
3229	// non-interface field appearing in ForceSendFields will be sent to the
3230	// server regardless of whether the field is empty or not. This may be
3231	// used to include empty fields in Patch requests.
3232	ForceSendFields []string `json:"-"`
3233
3234	// NullFields is a list of field names (e.g. "Attributes") to include in
3235	// API requests with the JSON null value. By default, fields with empty
3236	// values are omitted from API requests. However, any field with an
3237	// empty value appearing in NullFields will be sent to the server as
3238	// null. It is an error if a field in this list has a non-empty value.
3239	// This may be used to include null fields in Patch requests.
3240	NullFields []string `json:"-"`
3241}
3242
3243func (s *GoogleCloudApigeeV1DeploymentConfig) MarshalJSON() ([]byte, error) {
3244	type NoMethod GoogleCloudApigeeV1DeploymentConfig
3245	raw := NoMethod(*s)
3246	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3247}
3248
3249type GoogleCloudApigeeV1Developer struct {
3250	// AccessType: Access type.
3251	AccessType string `json:"accessType,omitempty"`
3252
3253	// AppFamily: Developer app family.
3254	AppFamily string `json:"appFamily,omitempty"`
3255
3256	// Apps: List of apps associated with the developer.
3257	Apps []string `json:"apps,omitempty"`
3258
3259	// Attributes: Optional. Developer attributes (name/value pairs). The
3260	// custom attribute limit is 18.
3261	Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
3262
3263	// Companies: List of companies associated with the developer.
3264	Companies []string `json:"companies,omitempty"`
3265
3266	// CreatedAt: Output only. Time at which the developer was created in
3267	// milliseconds since epoch.
3268	CreatedAt int64 `json:"createdAt,omitempty,string"`
3269
3270	// DeveloperId: ID of the developer. **Note**: IDs are generated
3271	// internally by Apigee and are not guaranteed to stay the same over
3272	// time.
3273	DeveloperId string `json:"developerId,omitempty"`
3274
3275	// Email: Required. Email address of the developer. This value is used
3276	// to uniquely identify the developer in Apigee hybrid. Note that the
3277	// email address has to be in lowercase only.
3278	Email string `json:"email,omitempty"`
3279
3280	// FirstName: Required. First name of the developer.
3281	FirstName string `json:"firstName,omitempty"`
3282
3283	// LastModifiedAt: Output only. Time at which the developer was last
3284	// modified in milliseconds since epoch.
3285	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
3286
3287	// LastName: Required. Last name of the developer.
3288	LastName string `json:"lastName,omitempty"`
3289
3290	// OrganizationName: Output only. Name of the Apigee organization in
3291	// which the developer resides.
3292	OrganizationName string `json:"organizationName,omitempty"`
3293
3294	// Status: Output only. Status of the developer. Valid values are
3295	// `active` and `inactive`.
3296	Status string `json:"status,omitempty"`
3297
3298	// UserName: Required. User name of the developer. Not used by Apigee
3299	// hybrid.
3300	UserName string `json:"userName,omitempty"`
3301
3302	// ServerResponse contains the HTTP response code and headers from the
3303	// server.
3304	googleapi.ServerResponse `json:"-"`
3305
3306	// ForceSendFields is a list of field names (e.g. "AccessType") to
3307	// unconditionally include in API requests. By default, fields with
3308	// empty values are omitted from API requests. However, any non-pointer,
3309	// non-interface field appearing in ForceSendFields will be sent to the
3310	// server regardless of whether the field is empty or not. This may be
3311	// used to include empty fields in Patch requests.
3312	ForceSendFields []string `json:"-"`
3313
3314	// NullFields is a list of field names (e.g. "AccessType") to include in
3315	// API requests with the JSON null value. By default, fields with empty
3316	// values are omitted from API requests. However, any field with an
3317	// empty value appearing in NullFields will be sent to the server as
3318	// null. It is an error if a field in this list has a non-empty value.
3319	// This may be used to include null fields in Patch requests.
3320	NullFields []string `json:"-"`
3321}
3322
3323func (s *GoogleCloudApigeeV1Developer) MarshalJSON() ([]byte, error) {
3324	type NoMethod GoogleCloudApigeeV1Developer
3325	raw := NoMethod(*s)
3326	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3327}
3328
3329type GoogleCloudApigeeV1DeveloperApp struct {
3330	// ApiProducts: List of API products associated with the developer app.
3331	ApiProducts []string `json:"apiProducts,omitempty"`
3332
3333	// AppFamily: Developer app family.
3334	AppFamily string `json:"appFamily,omitempty"`
3335
3336	// AppId: ID of the developer app.
3337	AppId string `json:"appId,omitempty"`
3338
3339	// Attributes: List of attributes for the developer app.
3340	Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
3341
3342	// CallbackUrl: Callback URL used by OAuth 2.0 authorization servers to
3343	// communicate authorization codes back to developer apps.
3344	CallbackUrl string `json:"callbackUrl,omitempty"`
3345
3346	// CreatedAt: Output only. Time the developer app was created in
3347	// milliseconds since epoch.
3348	CreatedAt int64 `json:"createdAt,omitempty,string"`
3349
3350	// Credentials: Output only. Set of credentials for the developer app
3351	// consisting of the consumer key/secret pairs associated with the API
3352	// products.
3353	Credentials []*GoogleCloudApigeeV1Credential `json:"credentials,omitempty"`
3354
3355	// DeveloperId: ID of the developer.
3356	DeveloperId string `json:"developerId,omitempty"`
3357
3358	// KeyExpiresIn: Expiration time, in milliseconds, for the consumer key
3359	// that is generated for the developer app. If not set or left to the
3360	// default value of `-1`, the API key never expires. The expiration time
3361	// can't be updated after it is set.
3362	KeyExpiresIn int64 `json:"keyExpiresIn,omitempty,string"`
3363
3364	// LastModifiedAt: Output only. Time the developer app was modified in
3365	// milliseconds since epoch.
3366	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
3367
3368	// Name: Name of the developer app.
3369	Name string `json:"name,omitempty"`
3370
3371	// Scopes: Scopes to apply to the developer app. The specified scopes
3372	// must already exist for the API product that you associate with the
3373	// developer app.
3374	Scopes []string `json:"scopes,omitempty"`
3375
3376	// Status: Status of the credential. Valid values include `approved` or
3377	// `revoked`.
3378	Status string `json:"status,omitempty"`
3379
3380	// ServerResponse contains the HTTP response code and headers from the
3381	// server.
3382	googleapi.ServerResponse `json:"-"`
3383
3384	// ForceSendFields is a list of field names (e.g. "ApiProducts") to
3385	// unconditionally include in API requests. By default, fields with
3386	// empty values are omitted from API requests. However, any non-pointer,
3387	// non-interface field appearing in ForceSendFields will be sent to the
3388	// server regardless of whether the field is empty or not. This may be
3389	// used to include empty fields in Patch requests.
3390	ForceSendFields []string `json:"-"`
3391
3392	// NullFields is a list of field names (e.g. "ApiProducts") to include
3393	// in API requests with the JSON null value. By default, fields with
3394	// empty values are omitted from API requests. However, any field with
3395	// an empty value appearing in NullFields will be sent to the server as
3396	// null. It is an error if a field in this list has a non-empty value.
3397	// This may be used to include null fields in Patch requests.
3398	NullFields []string `json:"-"`
3399}
3400
3401func (s *GoogleCloudApigeeV1DeveloperApp) MarshalJSON() ([]byte, error) {
3402	type NoMethod GoogleCloudApigeeV1DeveloperApp
3403	raw := NoMethod(*s)
3404	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3405}
3406
3407type GoogleCloudApigeeV1DeveloperAppKey struct {
3408	// ApiProducts: List of API products for which the credential can be
3409	// used. **Note**: Do not specify the list of API products when creating
3410	// a consumer key and secret for a developer app. Instead, use the
3411	// UpdateDeveloperAppKey API to make the association after the consumer
3412	// key and secret are created.
3413	ApiProducts []interface{} `json:"apiProducts,omitempty"`
3414
3415	// Attributes: List of attributes associated with the credential.
3416	Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
3417
3418	// ConsumerKey: Consumer key.
3419	ConsumerKey string `json:"consumerKey,omitempty"`
3420
3421	// ConsumerSecret: Secret key.
3422	ConsumerSecret string `json:"consumerSecret,omitempty"`
3423
3424	// ExpiresAt: Time the developer app expires in milliseconds since
3425	// epoch.
3426	ExpiresAt int64 `json:"expiresAt,omitempty,string"`
3427
3428	// ExpiresInSeconds: Input only. Expiration time, in seconds, for the
3429	// consumer key. If not set or left to the default value of `-1`, the
3430	// API key never expires. The expiration time can't be updated after it
3431	// is set.
3432	ExpiresInSeconds int64 `json:"expiresInSeconds,omitempty,string"`
3433
3434	// IssuedAt: Time the developer app was created in milliseconds since
3435	// epoch.
3436	IssuedAt int64 `json:"issuedAt,omitempty,string"`
3437
3438	// Scopes: Scopes to apply to the app. The specified scope names must
3439	// already be defined for the API product that you associate with the
3440	// app.
3441	Scopes []string `json:"scopes,omitempty"`
3442
3443	// Status: Status of the credential. Valid values include `approved` or
3444	// `revoked`.
3445	Status string `json:"status,omitempty"`
3446
3447	// ServerResponse contains the HTTP response code and headers from the
3448	// server.
3449	googleapi.ServerResponse `json:"-"`
3450
3451	// ForceSendFields is a list of field names (e.g. "ApiProducts") to
3452	// unconditionally include in API requests. By default, fields with
3453	// empty values are omitted from API requests. However, any non-pointer,
3454	// non-interface field appearing in ForceSendFields will be sent to the
3455	// server regardless of whether the field is empty or not. This may be
3456	// used to include empty fields in Patch requests.
3457	ForceSendFields []string `json:"-"`
3458
3459	// NullFields is a list of field names (e.g. "ApiProducts") to include
3460	// in API requests with the JSON null value. By default, fields with
3461	// empty values are omitted from API requests. However, any field with
3462	// an empty value appearing in NullFields will be sent to the server as
3463	// null. It is an error if a field in this list has a non-empty value.
3464	// This may be used to include null fields in Patch requests.
3465	NullFields []string `json:"-"`
3466}
3467
3468func (s *GoogleCloudApigeeV1DeveloperAppKey) MarshalJSON() ([]byte, error) {
3469	type NoMethod GoogleCloudApigeeV1DeveloperAppKey
3470	raw := NoMethod(*s)
3471	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3472}
3473
3474// GoogleCloudApigeeV1DeveloperSubscription: Structure of a
3475// DeveloperSubscription.
3476type GoogleCloudApigeeV1DeveloperSubscription struct {
3477	// Apiproduct: Name of the API product for which the developer is
3478	// purchasing a subscription.
3479	Apiproduct string `json:"apiproduct,omitempty"`
3480
3481	// CreatedAt: Output only. Time when the API product subscription was
3482	// created in milliseconds since epoch.
3483	CreatedAt int64 `json:"createdAt,omitempty,string"`
3484
3485	// EndTime: Time when the API product subscription ends in milliseconds
3486	// since epoch.
3487	EndTime int64 `json:"endTime,omitempty,string"`
3488
3489	// LastModifiedAt: Output only. Time when the API product subscription
3490	// was last modified in milliseconds since epoch.
3491	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
3492
3493	// Name: Output only. Name of the API product subscription.
3494	Name string `json:"name,omitempty"`
3495
3496	// StartTime: Time when the API product subscription starts in
3497	// milliseconds since epoch.
3498	StartTime int64 `json:"startTime,omitempty,string"`
3499
3500	// ServerResponse contains the HTTP response code and headers from the
3501	// server.
3502	googleapi.ServerResponse `json:"-"`
3503
3504	// ForceSendFields is a list of field names (e.g. "Apiproduct") to
3505	// unconditionally include in API requests. By default, fields with
3506	// empty values are omitted from API requests. However, any non-pointer,
3507	// non-interface field appearing in ForceSendFields will be sent to the
3508	// server regardless of whether the field is empty or not. This may be
3509	// used to include empty fields in Patch requests.
3510	ForceSendFields []string `json:"-"`
3511
3512	// NullFields is a list of field names (e.g. "Apiproduct") to include in
3513	// API requests with the JSON null value. By default, fields with empty
3514	// values are omitted from API requests. However, any field with an
3515	// empty value appearing in NullFields will be sent to the server as
3516	// null. It is an error if a field in this list has a non-empty value.
3517	// This may be used to include null fields in Patch requests.
3518	NullFields []string `json:"-"`
3519}
3520
3521func (s *GoogleCloudApigeeV1DeveloperSubscription) MarshalJSON() ([]byte, error) {
3522	type NoMethod GoogleCloudApigeeV1DeveloperSubscription
3523	raw := NoMethod(*s)
3524	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3525}
3526
3527// GoogleCloudApigeeV1DimensionMetric: This message type encapsulates a
3528// metric grouped by dimension.
3529type GoogleCloudApigeeV1DimensionMetric struct {
3530	// Metrics: This field contains a list of metrics.
3531	Metrics []*GoogleCloudApigeeV1Metric `json:"metrics,omitempty"`
3532
3533	// Name: This field contains the name of the dimension.
3534	Name string `json:"name,omitempty"`
3535
3536	// ForceSendFields is a list of field names (e.g. "Metrics") to
3537	// unconditionally include in API requests. By default, fields with
3538	// empty values are omitted from API requests. However, any non-pointer,
3539	// non-interface field appearing in ForceSendFields will be sent to the
3540	// server regardless of whether the field is empty or not. This may be
3541	// used to include empty fields in Patch requests.
3542	ForceSendFields []string `json:"-"`
3543
3544	// NullFields is a list of field names (e.g. "Metrics") to include in
3545	// API requests with the JSON null value. By default, fields with empty
3546	// values are omitted from API requests. However, any field with an
3547	// empty value appearing in NullFields will be sent to the server as
3548	// null. It is an error if a field in this list has a non-empty value.
3549	// This may be used to include null fields in Patch requests.
3550	NullFields []string `json:"-"`
3551}
3552
3553func (s *GoogleCloudApigeeV1DimensionMetric) MarshalJSON() ([]byte, error) {
3554	type NoMethod GoogleCloudApigeeV1DimensionMetric
3555	raw := NoMethod(*s)
3556	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3557}
3558
3559// GoogleCloudApigeeV1EntityMetadata: Metadata common to many entities
3560// in this API.
3561type GoogleCloudApigeeV1EntityMetadata struct {
3562	// CreatedAt: Time at which the API proxy was created, in milliseconds
3563	// since epoch.
3564	CreatedAt int64 `json:"createdAt,omitempty,string"`
3565
3566	// LastModifiedAt: Time at which the API proxy was most recently
3567	// modified, in milliseconds since epoch.
3568	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
3569
3570	// SubType: The type of entity described
3571	SubType string `json:"subType,omitempty"`
3572
3573	// ForceSendFields is a list of field names (e.g. "CreatedAt") to
3574	// unconditionally include in API requests. By default, fields with
3575	// empty values are omitted from API requests. However, any non-pointer,
3576	// non-interface field appearing in ForceSendFields will be sent to the
3577	// server regardless of whether the field is empty or not. This may be
3578	// used to include empty fields in Patch requests.
3579	ForceSendFields []string `json:"-"`
3580
3581	// NullFields is a list of field names (e.g. "CreatedAt") to include in
3582	// API requests with the JSON null value. By default, fields with empty
3583	// values are omitted from API requests. However, any field with an
3584	// empty value appearing in NullFields will be sent to the server as
3585	// null. It is an error if a field in this list has a non-empty value.
3586	// This may be used to include null fields in Patch requests.
3587	NullFields []string `json:"-"`
3588}
3589
3590func (s *GoogleCloudApigeeV1EntityMetadata) MarshalJSON() ([]byte, error) {
3591	type NoMethod GoogleCloudApigeeV1EntityMetadata
3592	raw := NoMethod(*s)
3593	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3594}
3595
3596type GoogleCloudApigeeV1Environment struct {
3597	// CreatedAt: Output only. Creation time of this environment as
3598	// milliseconds since epoch.
3599	CreatedAt int64 `json:"createdAt,omitempty,string"`
3600
3601	// Description: Optional. Description of the environment.
3602	Description string `json:"description,omitempty"`
3603
3604	// DisplayName: Optional. Display name for this environment.
3605	DisplayName string `json:"displayName,omitempty"`
3606
3607	// LastModifiedAt: Output only. Last modification time of this
3608	// environment as milliseconds since epoch.
3609	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
3610
3611	// Name: Required. Name of the environment. Values must match the
3612	// regular expression `^[.\\p{Alnum}-_]{1,255}$`
3613	Name string `json:"name,omitempty"`
3614
3615	// Properties: Optional. Key-value pairs that may be used for
3616	// customizing the environment.
3617	Properties *GoogleCloudApigeeV1Properties `json:"properties,omitempty"`
3618
3619	// State: Output only. State of the environment. Values other than
3620	// ACTIVE means the resource is not ready to use.
3621	//
3622	// Possible values:
3623	//   "STATE_UNSPECIFIED" - Resource is in an unspecified state.
3624	//   "CREATING" - Resource is being created.
3625	//   "ACTIVE" - Resource is provisioned and ready to use.
3626	//   "DELETING" - The resource is being deleted.
3627	//   "UPDATING" - The resource is being updated.
3628	State string `json:"state,omitempty"`
3629
3630	// ServerResponse contains the HTTP response code and headers from the
3631	// server.
3632	googleapi.ServerResponse `json:"-"`
3633
3634	// ForceSendFields is a list of field names (e.g. "CreatedAt") to
3635	// unconditionally include in API requests. By default, fields with
3636	// empty values are omitted from API requests. However, any non-pointer,
3637	// non-interface field appearing in ForceSendFields will be sent to the
3638	// server regardless of whether the field is empty or not. This may be
3639	// used to include empty fields in Patch requests.
3640	ForceSendFields []string `json:"-"`
3641
3642	// NullFields is a list of field names (e.g. "CreatedAt") to include in
3643	// API requests with the JSON null value. By default, fields with empty
3644	// values are omitted from API requests. However, any field with an
3645	// empty value appearing in NullFields will be sent to the server as
3646	// null. It is an error if a field in this list has a non-empty value.
3647	// This may be used to include null fields in Patch requests.
3648	NullFields []string `json:"-"`
3649}
3650
3651func (s *GoogleCloudApigeeV1Environment) MarshalJSON() ([]byte, error) {
3652	type NoMethod GoogleCloudApigeeV1Environment
3653	raw := NoMethod(*s)
3654	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3655}
3656
3657type GoogleCloudApigeeV1EnvironmentConfig struct {
3658	// CreateTime: Time that the environment configuration was created.
3659	CreateTime string `json:"createTime,omitempty"`
3660
3661	// DataCollectors: List of data collectors used by the deployments in
3662	// the environment.
3663	DataCollectors []*GoogleCloudApigeeV1DataCollectorConfig `json:"dataCollectors,omitempty"`
3664
3665	// DebugMask: Debug mask that applies to all deployments in the
3666	// environment.
3667	DebugMask *GoogleCloudApigeeV1DebugMask `json:"debugMask,omitempty"`
3668
3669	// Deployments: List of deployments in the environment.
3670	Deployments []*GoogleCloudApigeeV1DeploymentConfig `json:"deployments,omitempty"`
3671
3672	// FeatureFlags: Feature flags inherited from the organization and
3673	// environment.
3674	FeatureFlags map[string]string `json:"featureFlags,omitempty"`
3675
3676	// Flowhooks: List of flow hooks in the environment.
3677	Flowhooks []*GoogleCloudApigeeV1FlowHookConfig `json:"flowhooks,omitempty"`
3678
3679	// Keystores: List of keystores in the environment.
3680	Keystores []*GoogleCloudApigeeV1KeystoreConfig `json:"keystores,omitempty"`
3681
3682	// Name: Name of the environment configuration in the following format:
3683	// `organizations/{org}/environments/{env}/configs/{config}`
3684	Name string `json:"name,omitempty"`
3685
3686	// Provider: Used by the Control plane to add context information to
3687	// help detect the source of the document during diagnostics and
3688	// debugging.
3689	Provider string `json:"provider,omitempty"`
3690
3691	// PubsubTopic: Name of the PubSub topic for the environment.
3692	PubsubTopic string `json:"pubsubTopic,omitempty"`
3693
3694	// ResourceReferences: List of resource references in the environment.
3695	ResourceReferences []*GoogleCloudApigeeV1ReferenceConfig `json:"resourceReferences,omitempty"`
3696
3697	// Resources: List of resource versions in the environment.
3698	Resources []*GoogleCloudApigeeV1ResourceConfig `json:"resources,omitempty"`
3699
3700	// RevisionId: Revision ID of the environment configuration. The higher
3701	// the value, the more recently the configuration was deployed.
3702	RevisionId int64 `json:"revisionId,omitempty,string"`
3703
3704	// SequenceNumber: DEPRECATED: Use revision_id.
3705	SequenceNumber int64 `json:"sequenceNumber,omitempty,string"`
3706
3707	// Targets: List of target servers in the environment. Disabled target
3708	// servers are not displayed.
3709	Targets []*GoogleCloudApigeeV1TargetServerConfig `json:"targets,omitempty"`
3710
3711	// TraceConfig: Trace configurations. Contains config for the
3712	// environment and config overrides for specific API proxies.
3713	TraceConfig *GoogleCloudApigeeV1RuntimeTraceConfig `json:"traceConfig,omitempty"`
3714
3715	// Uid: Unique ID for the environment configuration. The ID will only
3716	// change if the environment is deleted and recreated.
3717	Uid string `json:"uid,omitempty"`
3718
3719	// ServerResponse contains the HTTP response code and headers from the
3720	// server.
3721	googleapi.ServerResponse `json:"-"`
3722
3723	// ForceSendFields is a list of field names (e.g. "CreateTime") to
3724	// unconditionally include in API requests. By default, fields with
3725	// empty values are omitted from API requests. However, any non-pointer,
3726	// non-interface field appearing in ForceSendFields will be sent to the
3727	// server regardless of whether the field is empty or not. This may be
3728	// used to include empty fields in Patch requests.
3729	ForceSendFields []string `json:"-"`
3730
3731	// NullFields is a list of field names (e.g. "CreateTime") to include in
3732	// API requests with the JSON null value. By default, fields with empty
3733	// values are omitted from API requests. However, any field with an
3734	// empty value appearing in NullFields will be sent to the server as
3735	// null. It is an error if a field in this list has a non-empty value.
3736	// This may be used to include null fields in Patch requests.
3737	NullFields []string `json:"-"`
3738}
3739
3740func (s *GoogleCloudApigeeV1EnvironmentConfig) MarshalJSON() ([]byte, error) {
3741	type NoMethod GoogleCloudApigeeV1EnvironmentConfig
3742	raw := NoMethod(*s)
3743	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3744}
3745
3746// GoogleCloudApigeeV1EnvironmentGroup: EnvironmentGroup configuration.
3747// An environment group is used to group one or more Apigee environments
3748// under a single host name.
3749type GoogleCloudApigeeV1EnvironmentGroup struct {
3750	// CreatedAt: Output only. The time at which the environment group was
3751	// created as milliseconds since epoch.
3752	CreatedAt int64 `json:"createdAt,omitempty,string"`
3753
3754	// Hostnames: Required. Host names for this environment group.
3755	Hostnames []string `json:"hostnames,omitempty"`
3756
3757	// LastModifiedAt: Output only. The time at which the environment group
3758	// was last updated as milliseconds since epoch.
3759	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
3760
3761	// Name: ID of the environment group.
3762	Name string `json:"name,omitempty"`
3763
3764	// State: Output only. State of the environment group. Values other than
3765	// ACTIVE means the resource is not ready to use.
3766	//
3767	// Possible values:
3768	//   "STATE_UNSPECIFIED" - Resource is in an unspecified state.
3769	//   "CREATING" - Resource is being created.
3770	//   "ACTIVE" - Resource is provisioned and ready to use.
3771	//   "DELETING" - The resource is being deleted.
3772	//   "UPDATING" - The resource is being updated.
3773	State string `json:"state,omitempty"`
3774
3775	// ServerResponse contains the HTTP response code and headers from the
3776	// server.
3777	googleapi.ServerResponse `json:"-"`
3778
3779	// ForceSendFields is a list of field names (e.g. "CreatedAt") to
3780	// unconditionally include in API requests. By default, fields with
3781	// empty values are omitted from API requests. However, any non-pointer,
3782	// non-interface field appearing in ForceSendFields will be sent to the
3783	// server regardless of whether the field is empty or not. This may be
3784	// used to include empty fields in Patch requests.
3785	ForceSendFields []string `json:"-"`
3786
3787	// NullFields is a list of field names (e.g. "CreatedAt") to include in
3788	// API requests with the JSON null value. By default, fields with empty
3789	// values are omitted from API requests. However, any field with an
3790	// empty value appearing in NullFields will be sent to the server as
3791	// null. It is an error if a field in this list has a non-empty value.
3792	// This may be used to include null fields in Patch requests.
3793	NullFields []string `json:"-"`
3794}
3795
3796func (s *GoogleCloudApigeeV1EnvironmentGroup) MarshalJSON() ([]byte, error) {
3797	type NoMethod GoogleCloudApigeeV1EnvironmentGroup
3798	raw := NoMethod(*s)
3799	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3800}
3801
3802// GoogleCloudApigeeV1EnvironmentGroupAttachment:
3803// EnvironmentGroupAttachment is a resource which defines an attachment
3804// of an environment to an environment group.
3805type GoogleCloudApigeeV1EnvironmentGroupAttachment struct {
3806	// CreatedAt: Output only. The time at which the environment group
3807	// attachment was created as milliseconds since epoch.
3808	CreatedAt int64 `json:"createdAt,omitempty,string"`
3809
3810	// Environment: Required. ID of the attached environment.
3811	Environment string `json:"environment,omitempty"`
3812
3813	// Name: ID of the environment group attachment.
3814	Name string `json:"name,omitempty"`
3815
3816	// ServerResponse contains the HTTP response code and headers from the
3817	// server.
3818	googleapi.ServerResponse `json:"-"`
3819
3820	// ForceSendFields is a list of field names (e.g. "CreatedAt") to
3821	// unconditionally include in API requests. By default, fields with
3822	// empty values are omitted from API requests. However, any non-pointer,
3823	// non-interface field appearing in ForceSendFields will be sent to the
3824	// server regardless of whether the field is empty or not. This may be
3825	// used to include empty fields in Patch requests.
3826	ForceSendFields []string `json:"-"`
3827
3828	// NullFields is a list of field names (e.g. "CreatedAt") to include in
3829	// API requests with the JSON null value. By default, fields with empty
3830	// values are omitted from API requests. However, any field with an
3831	// empty value appearing in NullFields will be sent to the server as
3832	// null. It is an error if a field in this list has a non-empty value.
3833	// This may be used to include null fields in Patch requests.
3834	NullFields []string `json:"-"`
3835}
3836
3837func (s *GoogleCloudApigeeV1EnvironmentGroupAttachment) MarshalJSON() ([]byte, error) {
3838	type NoMethod GoogleCloudApigeeV1EnvironmentGroupAttachment
3839	raw := NoMethod(*s)
3840	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3841}
3842
3843// GoogleCloudApigeeV1EnvironmentGroupConfig: EnvironmentGroupConfig is
3844// a revisioned snapshot of an EnvironmentGroup and its associated
3845// routing rules.
3846type GoogleCloudApigeeV1EnvironmentGroupConfig struct {
3847	// Hostnames: Host names for the environment group.
3848	Hostnames []string `json:"hostnames,omitempty"`
3849
3850	// Name: Name of the environment group in the following format:
3851	// `organizations/{org}/envgroups/{envgroup}`.
3852	Name string `json:"name,omitempty"`
3853
3854	// RevisionId: Revision id that defines the ordering of the
3855	// EnvironmentGroupConfig resource. The higher the revision, the more
3856	// recently the configuration was deployed.
3857	RevisionId int64 `json:"revisionId,omitempty,string"`
3858
3859	// RoutingRules: Ordered list of routing rules defining how traffic to
3860	// this environment group's hostnames should be routed to different
3861	// environments.
3862	RoutingRules []*GoogleCloudApigeeV1RoutingRule `json:"routingRules,omitempty"`
3863
3864	// Uid: A unique id for the environment group config that will only
3865	// change if the environment group is deleted and recreated.
3866	Uid string `json:"uid,omitempty"`
3867
3868	// ForceSendFields is a list of field names (e.g. "Hostnames") to
3869	// unconditionally include in API requests. By default, fields with
3870	// empty values are omitted from API requests. However, any non-pointer,
3871	// non-interface field appearing in ForceSendFields will be sent to the
3872	// server regardless of whether the field is empty or not. This may be
3873	// used to include empty fields in Patch requests.
3874	ForceSendFields []string `json:"-"`
3875
3876	// NullFields is a list of field names (e.g. "Hostnames") to include in
3877	// API requests with the JSON null value. By default, fields with empty
3878	// values are omitted from API requests. However, any field with an
3879	// empty value appearing in NullFields will be sent to the server as
3880	// null. It is an error if a field in this list has a non-empty value.
3881	// This may be used to include null fields in Patch requests.
3882	NullFields []string `json:"-"`
3883}
3884
3885func (s *GoogleCloudApigeeV1EnvironmentGroupConfig) MarshalJSON() ([]byte, error) {
3886	type NoMethod GoogleCloudApigeeV1EnvironmentGroupConfig
3887	raw := NoMethod(*s)
3888	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3889}
3890
3891// GoogleCloudApigeeV1ExpireDeveloperSubscriptionRequest: Request for
3892// ExpireDeveloperSubscription.
3893type GoogleCloudApigeeV1ExpireDeveloperSubscriptionRequest struct {
3894}
3895
3896// GoogleCloudApigeeV1Export: Details of an export job.
3897type GoogleCloudApigeeV1Export struct {
3898	// Created: Output only. Time the export job was created.
3899	Created string `json:"created,omitempty"`
3900
3901	// DatastoreName: Name of the datastore that is the destination of the
3902	// export job [datastore]
3903	DatastoreName string `json:"datastoreName,omitempty"`
3904
3905	// Description: Description of the export job.
3906	Description string `json:"description,omitempty"`
3907
3908	// Error: Output only. Error is set when export fails
3909	Error string `json:"error,omitempty"`
3910
3911	// ExecutionTime: Output only. Execution time for this export job. If
3912	// the job is still in progress, it will be set to the amount of time
3913	// that has elapsed since`created`, in seconds. Else, it will set to
3914	// (`updated` - `created`), in seconds.
3915	ExecutionTime string `json:"executionTime,omitempty"`
3916
3917	// Name: Display name of the export job.
3918	Name string `json:"name,omitempty"`
3919
3920	// Self: Output only. Self link of the export job. A URI that can be
3921	// used to retrieve the status of an export job. Example:
3922	// `/organizations/myorg/environments/myenv/analytics/exports/9cfc0d85-0f
3923	// 30-46d6-ae6f-318d0cb961bd`
3924	Self string `json:"self,omitempty"`
3925
3926	// State: Output only. Status of the export job. Valid values include
3927	// `enqueued`, `running`, `completed`, and `failed`.
3928	State string `json:"state,omitempty"`
3929
3930	// Updated: Output only. Time the export job was last updated.
3931	Updated string `json:"updated,omitempty"`
3932
3933	// ServerResponse contains the HTTP response code and headers from the
3934	// server.
3935	googleapi.ServerResponse `json:"-"`
3936
3937	// ForceSendFields is a list of field names (e.g. "Created") to
3938	// unconditionally include in API requests. By default, fields with
3939	// empty values are omitted from API requests. However, any non-pointer,
3940	// non-interface field appearing in ForceSendFields will be sent to the
3941	// server regardless of whether the field is empty or not. This may be
3942	// used to include empty fields in Patch requests.
3943	ForceSendFields []string `json:"-"`
3944
3945	// NullFields is a list of field names (e.g. "Created") to include in
3946	// API requests with the JSON null value. By default, fields with empty
3947	// values are omitted from API requests. However, any field with an
3948	// empty value appearing in NullFields will be sent to the server as
3949	// null. It is an error if a field in this list has a non-empty value.
3950	// This may be used to include null fields in Patch requests.
3951	NullFields []string `json:"-"`
3952}
3953
3954func (s *GoogleCloudApigeeV1Export) MarshalJSON() ([]byte, error) {
3955	type NoMethod GoogleCloudApigeeV1Export
3956	raw := NoMethod(*s)
3957	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3958}
3959
3960// GoogleCloudApigeeV1ExportRequest: Request body for
3961// [CreateExportRequest]
3962type GoogleCloudApigeeV1ExportRequest struct {
3963	// CsvDelimiter: Optional. Delimiter used in the CSV file, if
3964	// `outputFormat` is set to `csv`. Defaults to the `,` (comma)
3965	// character. Supported delimiter characters include comma (`,`), pipe
3966	// (`|`), and tab (`\t`).
3967	CsvDelimiter string `json:"csvDelimiter,omitempty"`
3968
3969	// DatastoreName: Required. Name of the preconfigured datastore.
3970	DatastoreName string `json:"datastoreName,omitempty"`
3971
3972	// DateRange: Required. Date range of the data to export.
3973	DateRange *GoogleCloudApigeeV1DateRange `json:"dateRange,omitempty"`
3974
3975	// Description: Optional. Description of the export job.
3976	Description string `json:"description,omitempty"`
3977
3978	// Name: Required. Display name of the export job.
3979	Name string `json:"name,omitempty"`
3980
3981	// OutputFormat: Optional. Output format of the export. Valid values
3982	// include: `csv` or `json`. Defaults to `json`. Note: Configure the
3983	// delimiter for CSV output using the `csvDelimiter` property.
3984	OutputFormat string `json:"outputFormat,omitempty"`
3985
3986	// ForceSendFields is a list of field names (e.g. "CsvDelimiter") to
3987	// unconditionally include in API requests. By default, fields with
3988	// empty values are omitted from API requests. However, any non-pointer,
3989	// non-interface field appearing in ForceSendFields will be sent to the
3990	// server regardless of whether the field is empty or not. This may be
3991	// used to include empty fields in Patch requests.
3992	ForceSendFields []string `json:"-"`
3993
3994	// NullFields is a list of field names (e.g. "CsvDelimiter") to include
3995	// in API requests with the JSON null value. By default, fields with
3996	// empty values are omitted from API requests. However, any field with
3997	// an empty value appearing in NullFields will be sent to the server as
3998	// null. It is an error if a field in this list has a non-empty value.
3999	// This may be used to include null fields in Patch requests.
4000	NullFields []string `json:"-"`
4001}
4002
4003func (s *GoogleCloudApigeeV1ExportRequest) MarshalJSON() ([]byte, error) {
4004	type NoMethod GoogleCloudApigeeV1ExportRequest
4005	raw := NoMethod(*s)
4006	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4007}
4008
4009type GoogleCloudApigeeV1FlowHook struct {
4010	// ContinueOnError: Optional. Flag that specifies whether execution
4011	// should continue if the flow hook throws an exception. Set to `true`
4012	// to continue execution. Set to `false` to stop execution if the flow
4013	// hook throws an exception. Defaults to `true`.
4014	ContinueOnError bool `json:"continueOnError,omitempty"`
4015
4016	// Description: Description of the flow hook.
4017	Description string `json:"description,omitempty"`
4018
4019	// FlowHookPoint: Output only. Where in the API call flow the flow hook
4020	// is invoked. Must be one of `PreProxyFlowHook`, `PostProxyFlowHook`,
4021	// `PreTargetFlowHook`, or `PostTargetFlowHook`.
4022	FlowHookPoint string `json:"flowHookPoint,omitempty"`
4023
4024	// SharedFlow: Shared flow attached to this flow hook, or empty if there
4025	// is none attached.
4026	SharedFlow string `json:"sharedFlow,omitempty"`
4027
4028	// ServerResponse contains the HTTP response code and headers from the
4029	// server.
4030	googleapi.ServerResponse `json:"-"`
4031
4032	// ForceSendFields is a list of field names (e.g. "ContinueOnError") to
4033	// unconditionally include in API requests. By default, fields with
4034	// empty values are omitted from API requests. However, any non-pointer,
4035	// non-interface field appearing in ForceSendFields will be sent to the
4036	// server regardless of whether the field is empty or not. This may be
4037	// used to include empty fields in Patch requests.
4038	ForceSendFields []string `json:"-"`
4039
4040	// NullFields is a list of field names (e.g. "ContinueOnError") to
4041	// include in API requests with the JSON null value. By default, fields
4042	// with empty values are omitted from API requests. However, any field
4043	// with an empty value appearing in NullFields will be sent to the
4044	// server as null. It is an error if a field in this list has a
4045	// non-empty value. This may be used to include null fields in Patch
4046	// requests.
4047	NullFields []string `json:"-"`
4048}
4049
4050func (s *GoogleCloudApigeeV1FlowHook) MarshalJSON() ([]byte, error) {
4051	type NoMethod GoogleCloudApigeeV1FlowHook
4052	raw := NoMethod(*s)
4053	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4054}
4055
4056type GoogleCloudApigeeV1FlowHookConfig struct {
4057	// ContinueOnError: Flag that specifies whether the flow should abort
4058	// after an error in the flow hook. Defaults to `true` (continue on
4059	// error).
4060	ContinueOnError bool `json:"continueOnError,omitempty"`
4061
4062	// Name: Name of the flow hook in the following format:
4063	// `organizations/{org}/environments/{env}/flowhooks/{point}`. Valid
4064	// `point` values include: `PreProxyFlowHook`, `PostProxyFlowHook`,
4065	// `PreTargetFlowHook`, and `PostTargetFlowHook`
4066	Name string `json:"name,omitempty"`
4067
4068	// SharedFlowName: Name of the shared flow to invoke in the following
4069	// format: `organizations/{org}/sharedflows/{sharedflow}`
4070	SharedFlowName string `json:"sharedFlowName,omitempty"`
4071
4072	// ForceSendFields is a list of field names (e.g. "ContinueOnError") to
4073	// unconditionally include in API requests. By default, fields with
4074	// empty values are omitted from API requests. However, any non-pointer,
4075	// non-interface field appearing in ForceSendFields will be sent to the
4076	// server regardless of whether the field is empty or not. This may be
4077	// used to include empty fields in Patch requests.
4078	ForceSendFields []string `json:"-"`
4079
4080	// NullFields is a list of field names (e.g. "ContinueOnError") to
4081	// include in API requests with the JSON null value. By default, fields
4082	// with empty values are omitted from API requests. However, any field
4083	// with an empty value appearing in NullFields will be sent to the
4084	// server as null. It is an error if a field in this list has a
4085	// non-empty value. This may be used to include null fields in Patch
4086	// requests.
4087	NullFields []string `json:"-"`
4088}
4089
4090func (s *GoogleCloudApigeeV1FlowHookConfig) MarshalJSON() ([]byte, error) {
4091	type NoMethod GoogleCloudApigeeV1FlowHookConfig
4092	raw := NoMethod(*s)
4093	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4094}
4095
4096// GoogleCloudApigeeV1GetSyncAuthorizationRequest: Request for
4097// GetSyncAuthorization.
4098type GoogleCloudApigeeV1GetSyncAuthorizationRequest struct {
4099}
4100
4101// GoogleCloudApigeeV1GraphQLOperation: Represents the pairing of
4102// GraphQL operation types and the GraphQL operation name.
4103type GoogleCloudApigeeV1GraphQLOperation struct {
4104	// Operation: GraphQL operation name. The name and operation type will
4105	// be used to apply quotas. If no name is specified, the quota will be
4106	// applied to all GraphQL operations irrespective of their operation
4107	// names in the payload.
4108	Operation string `json:"operation,omitempty"`
4109
4110	// OperationTypes: Required. GraphQL operation types. Valid values
4111	// include `query` or `mutation`. **Note**: Apigee does not currently
4112	// support `subscription` types.
4113	OperationTypes []string `json:"operationTypes,omitempty"`
4114
4115	// ForceSendFields is a list of field names (e.g. "Operation") to
4116	// unconditionally include in API requests. By default, fields with
4117	// empty values are omitted from API requests. However, any non-pointer,
4118	// non-interface field appearing in ForceSendFields will be sent to the
4119	// server regardless of whether the field is empty or not. This may be
4120	// used to include empty fields in Patch requests.
4121	ForceSendFields []string `json:"-"`
4122
4123	// NullFields is a list of field names (e.g. "Operation") to include in
4124	// API requests with the JSON null value. By default, fields with empty
4125	// values are omitted from API requests. However, any field with an
4126	// empty value appearing in NullFields will be sent to the server as
4127	// null. It is an error if a field in this list has a non-empty value.
4128	// This may be used to include null fields in Patch requests.
4129	NullFields []string `json:"-"`
4130}
4131
4132func (s *GoogleCloudApigeeV1GraphQLOperation) MarshalJSON() ([]byte, error) {
4133	type NoMethod GoogleCloudApigeeV1GraphQLOperation
4134	raw := NoMethod(*s)
4135	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4136}
4137
4138// GoogleCloudApigeeV1GraphQLOperationConfig: Binds the resources in a
4139// proxy or remote service with the GraphQL operation and its associated
4140// quota enforcement.
4141type GoogleCloudApigeeV1GraphQLOperationConfig struct {
4142	// ApiSource: Required. Name of the API proxy endpoint or remote service
4143	// with which the GraphQL operation and quota are associated.
4144	ApiSource string `json:"apiSource,omitempty"`
4145
4146	// Attributes: Custom attributes associated with the operation.
4147	Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
4148
4149	// Operations: Required. List of GraphQL name/operation type pairs for
4150	// the proxy or remote service to which quota will be applied. If only
4151	// operation types are specified, the quota will be applied to all
4152	// GraphQL requests irrespective of the GraphQL name. **Note**:
4153	// Currently, you can specify only a single GraphQLOperation. Specifying
4154	// more than one will cause the operation to fail.
4155	Operations []*GoogleCloudApigeeV1GraphQLOperation `json:"operations,omitempty"`
4156
4157	// Quota: Quota parameters to be enforced for the resources, methods,
4158	// and API source combination. If none are specified, quota enforcement
4159	// will not be done.
4160	Quota *GoogleCloudApigeeV1Quota `json:"quota,omitempty"`
4161
4162	// ForceSendFields is a list of field names (e.g. "ApiSource") to
4163	// unconditionally include in API requests. By default, fields with
4164	// empty values are omitted from API requests. However, any non-pointer,
4165	// non-interface field appearing in ForceSendFields will be sent to the
4166	// server regardless of whether the field is empty or not. This may be
4167	// used to include empty fields in Patch requests.
4168	ForceSendFields []string `json:"-"`
4169
4170	// NullFields is a list of field names (e.g. "ApiSource") to include in
4171	// API requests with the JSON null value. By default, fields with empty
4172	// values are omitted from API requests. However, any field with an
4173	// empty value appearing in NullFields will be sent to the server as
4174	// null. It is an error if a field in this list has a non-empty value.
4175	// This may be used to include null fields in Patch requests.
4176	NullFields []string `json:"-"`
4177}
4178
4179func (s *GoogleCloudApigeeV1GraphQLOperationConfig) MarshalJSON() ([]byte, error) {
4180	type NoMethod GoogleCloudApigeeV1GraphQLOperationConfig
4181	raw := NoMethod(*s)
4182	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4183}
4184
4185// GoogleCloudApigeeV1GraphQLOperationGroup: List of graphQL operation
4186// configuration details associated with Apigee API proxies or remote
4187// services. Remote services are non-Apigee proxies, such as
4188// Istio-Envoy.
4189type GoogleCloudApigeeV1GraphQLOperationGroup struct {
4190	// OperationConfigType: Flag that specifies whether the configuration is
4191	// for Apigee API proxy or a remote service. Valid values include
4192	// `proxy` or `remoteservice`. Defaults to `proxy`. Set to `proxy` when
4193	// Apigee API proxies are associated with the API product. Set to
4194	// `remoteservice` when non-Apigee proxies like Istio-Envoy are
4195	// associated with the API product.
4196	OperationConfigType string `json:"operationConfigType,omitempty"`
4197
4198	// OperationConfigs: Required. List of operation configurations for
4199	// either Apigee API proxies or other remote services that are
4200	// associated with this API product.
4201	OperationConfigs []*GoogleCloudApigeeV1GraphQLOperationConfig `json:"operationConfigs,omitempty"`
4202
4203	// ForceSendFields is a list of field names (e.g. "OperationConfigType")
4204	// to unconditionally include in API requests. By default, fields with
4205	// empty values are omitted from API requests. However, any non-pointer,
4206	// non-interface field appearing in ForceSendFields will be sent to the
4207	// server regardless of whether the field is empty or not. This may be
4208	// used to include empty fields in Patch requests.
4209	ForceSendFields []string `json:"-"`
4210
4211	// NullFields is a list of field names (e.g. "OperationConfigType") to
4212	// include in API requests with the JSON null value. By default, fields
4213	// with empty values are omitted from API requests. However, any field
4214	// with an empty value appearing in NullFields will be sent to the
4215	// server as null. It is an error if a field in this list has a
4216	// non-empty value. This may be used to include null fields in Patch
4217	// requests.
4218	NullFields []string `json:"-"`
4219}
4220
4221func (s *GoogleCloudApigeeV1GraphQLOperationGroup) MarshalJSON() ([]byte, error) {
4222	type NoMethod GoogleCloudApigeeV1GraphQLOperationGroup
4223	raw := NoMethod(*s)
4224	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4225}
4226
4227type GoogleCloudApigeeV1IngressConfig struct {
4228	// EnvironmentGroups: List of environment groups in the organization.
4229	EnvironmentGroups []*GoogleCloudApigeeV1EnvironmentGroupConfig `json:"environmentGroups,omitempty"`
4230
4231	// Name: Name of the resource in the following format:
4232	// `organizations/{org}/deployedIngressConfig`.
4233	Name string `json:"name,omitempty"`
4234
4235	// RevisionCreateTime: Time at which the IngressConfig revision was
4236	// created.
4237	RevisionCreateTime string `json:"revisionCreateTime,omitempty"`
4238
4239	// RevisionId: Revision id that defines the ordering on IngressConfig
4240	// resources. The higher the revision, the more recently the
4241	// configuration was deployed.
4242	RevisionId int64 `json:"revisionId,omitempty,string"`
4243
4244	// Uid: A unique id for the ingress config that will only change if the
4245	// organization is deleted and recreated.
4246	Uid string `json:"uid,omitempty"`
4247
4248	// ServerResponse contains the HTTP response code and headers from the
4249	// server.
4250	googleapi.ServerResponse `json:"-"`
4251
4252	// ForceSendFields is a list of field names (e.g. "EnvironmentGroups")
4253	// to unconditionally include in API requests. By default, fields with
4254	// empty values are omitted from API requests. However, any non-pointer,
4255	// non-interface field appearing in ForceSendFields will be sent to the
4256	// server regardless of whether the field is empty or not. This may be
4257	// used to include empty fields in Patch requests.
4258	ForceSendFields []string `json:"-"`
4259
4260	// NullFields is a list of field names (e.g. "EnvironmentGroups") to
4261	// include in API requests with the JSON null value. By default, fields
4262	// with empty values are omitted from API requests. However, any field
4263	// with an empty value appearing in NullFields will be sent to the
4264	// server as null. It is an error if a field in this list has a
4265	// non-empty value. This may be used to include null fields in Patch
4266	// requests.
4267	NullFields []string `json:"-"`
4268}
4269
4270func (s *GoogleCloudApigeeV1IngressConfig) MarshalJSON() ([]byte, error) {
4271	type NoMethod GoogleCloudApigeeV1IngressConfig
4272	raw := NoMethod(*s)
4273	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4274}
4275
4276// GoogleCloudApigeeV1Instance: Apigee runtime instance.
4277type GoogleCloudApigeeV1Instance struct {
4278	// CreatedAt: Output only. Time the instance was created in milliseconds
4279	// since epoch.
4280	CreatedAt int64 `json:"createdAt,omitempty,string"`
4281
4282	// Description: Optional. Description of the instance.
4283	Description string `json:"description,omitempty"`
4284
4285	// DiskEncryptionKeyName: Customer Managed Encryption Key (CMEK) used
4286	// for disk and volume encryption. Required for Apigee paid
4287	// subscriptions only. Use the following format:
4288	// `projects/([^/]+)/locations/([^/]+)/keyRings/([^/]+)/cryptoKeys/([^/]+
4289	// )`
4290	DiskEncryptionKeyName string `json:"diskEncryptionKeyName,omitempty"`
4291
4292	// DisplayName: Optional. Display name for the instance.
4293	DisplayName string `json:"displayName,omitempty"`
4294
4295	// Host: Output only. Internal hostname or IP address of the Apigee
4296	// endpoint used by clients to connect to the service.
4297	Host string `json:"host,omitempty"`
4298
4299	// LastModifiedAt: Output only. Time the instance was last modified in
4300	// milliseconds since epoch.
4301	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
4302
4303	// Location: Required. Compute Engine location where the instance
4304	// resides.
4305	Location string `json:"location,omitempty"`
4306
4307	// Name: Required. Resource ID of the instance. Values must match the
4308	// regular expression `^a-z{0,30}[a-z\d]$`.
4309	Name string `json:"name,omitempty"`
4310
4311	// PeeringCidrRange: Optional. Size of the CIDR block range that will be
4312	// reserved by the instance. PAID organizations support `SLASH_16` to
4313	// `SLASH_20` and defaults to `SLASH_16`. Evaluation organizations
4314	// support only `SLASH_23`.
4315	//
4316	// Possible values:
4317	//   "CIDR_RANGE_UNSPECIFIED" - Range not specified.
4318	//   "SLASH_16" - `/16` CIDR range.
4319	//   "SLASH_17" - `/17` CIDR range.
4320	//   "SLASH_18" - `/18` CIDR range.
4321	//   "SLASH_19" - `/19` CIDR range.
4322	//   "SLASH_20" - `/20` CIDR range.
4323	//   "SLASH_23" - `/23` CIDR range. Supported for evaluation only.
4324	PeeringCidrRange string `json:"peeringCidrRange,omitempty"`
4325
4326	// Port: Output only. Port number of the exposed Apigee endpoint.
4327	Port string `json:"port,omitempty"`
4328
4329	// State: Output only. State of the instance. Values other than `ACTIVE`
4330	// means the resource is not ready to use.
4331	//
4332	// Possible values:
4333	//   "STATE_UNSPECIFIED" - Resource is in an unspecified state.
4334	//   "CREATING" - Resource is being created.
4335	//   "ACTIVE" - Resource is provisioned and ready to use.
4336	//   "DELETING" - The resource is being deleted.
4337	//   "UPDATING" - The resource is being updated.
4338	State string `json:"state,omitempty"`
4339
4340	// ServerResponse contains the HTTP response code and headers from the
4341	// server.
4342	googleapi.ServerResponse `json:"-"`
4343
4344	// ForceSendFields is a list of field names (e.g. "CreatedAt") to
4345	// unconditionally include in API requests. By default, fields with
4346	// empty values are omitted from API requests. However, any non-pointer,
4347	// non-interface field appearing in ForceSendFields will be sent to the
4348	// server regardless of whether the field is empty or not. This may be
4349	// used to include empty fields in Patch requests.
4350	ForceSendFields []string `json:"-"`
4351
4352	// NullFields is a list of field names (e.g. "CreatedAt") to include in
4353	// API requests with the JSON null value. By default, fields with empty
4354	// values are omitted from API requests. However, any field with an
4355	// empty value appearing in NullFields will be sent to the server as
4356	// null. It is an error if a field in this list has a non-empty value.
4357	// This may be used to include null fields in Patch requests.
4358	NullFields []string `json:"-"`
4359}
4360
4361func (s *GoogleCloudApigeeV1Instance) MarshalJSON() ([]byte, error) {
4362	type NoMethod GoogleCloudApigeeV1Instance
4363	raw := NoMethod(*s)
4364	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4365}
4366
4367// GoogleCloudApigeeV1InstanceAttachment: InstanceAttachment represents
4368// the installation of an environment onto an instance.
4369type GoogleCloudApigeeV1InstanceAttachment struct {
4370	// CreatedAt: Output only. Time the attachment was created in
4371	// milliseconds since epoch.
4372	CreatedAt int64 `json:"createdAt,omitempty,string"`
4373
4374	// Environment: ID of the attached environment.
4375	Environment string `json:"environment,omitempty"`
4376
4377	// Name: Output only. ID of the attachment.
4378	Name string `json:"name,omitempty"`
4379
4380	// ServerResponse contains the HTTP response code and headers from the
4381	// server.
4382	googleapi.ServerResponse `json:"-"`
4383
4384	// ForceSendFields is a list of field names (e.g. "CreatedAt") to
4385	// unconditionally include in API requests. By default, fields with
4386	// empty values are omitted from API requests. However, any non-pointer,
4387	// non-interface field appearing in ForceSendFields will be sent to the
4388	// server regardless of whether the field is empty or not. This may be
4389	// used to include empty fields in Patch requests.
4390	ForceSendFields []string `json:"-"`
4391
4392	// NullFields is a list of field names (e.g. "CreatedAt") to include in
4393	// API requests with the JSON null value. By default, fields with empty
4394	// values are omitted from API requests. However, any field with an
4395	// empty value appearing in NullFields will be sent to the server as
4396	// null. It is an error if a field in this list has a non-empty value.
4397	// This may be used to include null fields in Patch requests.
4398	NullFields []string `json:"-"`
4399}
4400
4401func (s *GoogleCloudApigeeV1InstanceAttachment) MarshalJSON() ([]byte, error) {
4402	type NoMethod GoogleCloudApigeeV1InstanceAttachment
4403	raw := NoMethod(*s)
4404	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4405}
4406
4407// GoogleCloudApigeeV1InstanceDeploymentStatus: The status of a
4408// deployment as reported by a single instance.
4409type GoogleCloudApigeeV1InstanceDeploymentStatus struct {
4410	// DeployedRevisions: Revisions currently deployed in MPs.
4411	DeployedRevisions []*GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRevision `json:"deployedRevisions,omitempty"`
4412
4413	// DeployedRoutes: Current routes deployed in the ingress routing table.
4414	// A route which is missing will appear in `missing_routes`.
4415	DeployedRoutes []*GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRoute `json:"deployedRoutes,omitempty"`
4416
4417	// Instance: ID of the instance reporting the status.
4418	Instance string `json:"instance,omitempty"`
4419
4420	// ForceSendFields is a list of field names (e.g. "DeployedRevisions")
4421	// to unconditionally include in API requests. By default, fields with
4422	// empty values are omitted from API requests. However, any non-pointer,
4423	// non-interface field appearing in ForceSendFields will be sent to the
4424	// server regardless of whether the field is empty or not. This may be
4425	// used to include empty fields in Patch requests.
4426	ForceSendFields []string `json:"-"`
4427
4428	// NullFields is a list of field names (e.g. "DeployedRevisions") to
4429	// include in API requests with the JSON null value. By default, fields
4430	// with empty values are omitted from API requests. However, any field
4431	// with an empty value appearing in NullFields will be sent to the
4432	// server as null. It is an error if a field in this list has a
4433	// non-empty value. This may be used to include null fields in Patch
4434	// requests.
4435	NullFields []string `json:"-"`
4436}
4437
4438func (s *GoogleCloudApigeeV1InstanceDeploymentStatus) MarshalJSON() ([]byte, error) {
4439	type NoMethod GoogleCloudApigeeV1InstanceDeploymentStatus
4440	raw := NoMethod(*s)
4441	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4442}
4443
4444// GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRevision:
4445// Revisions deployed in the MPs.
4446type GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRevision struct {
4447	// Percentage: Percentage of MP replicas reporting this revision.
4448	Percentage int64 `json:"percentage,omitempty"`
4449
4450	// Revision: API proxy revision reported as deployed.
4451	Revision string `json:"revision,omitempty"`
4452
4453	// ForceSendFields is a list of field names (e.g. "Percentage") to
4454	// unconditionally include in API requests. By default, fields with
4455	// empty values are omitted from API requests. However, any non-pointer,
4456	// non-interface field appearing in ForceSendFields will be sent to the
4457	// server regardless of whether the field is empty or not. This may be
4458	// used to include empty fields in Patch requests.
4459	ForceSendFields []string `json:"-"`
4460
4461	// NullFields is a list of field names (e.g. "Percentage") to include in
4462	// API requests with the JSON null value. By default, fields with empty
4463	// values are omitted from API requests. However, any field with an
4464	// empty value appearing in NullFields will be sent to the server as
4465	// null. It is an error if a field in this list has a non-empty value.
4466	// This may be used to include null fields in Patch requests.
4467	NullFields []string `json:"-"`
4468}
4469
4470func (s *GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRevision) MarshalJSON() ([]byte, error) {
4471	type NoMethod GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRevision
4472	raw := NoMethod(*s)
4473	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4474}
4475
4476// GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRoute: Route
4477// deployed in the ingress routing table.
4478type GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRoute struct {
4479	// Basepath: Base path in the routing table.
4480	Basepath string `json:"basepath,omitempty"`
4481
4482	// Envgroup: Environment group where this route is installed.
4483	Envgroup string `json:"envgroup,omitempty"`
4484
4485	// Environment: Destination environment. This will be empty if the route
4486	// is not yet reported.
4487	Environment string `json:"environment,omitempty"`
4488
4489	// Percentage: Percentage of ingress replicas reporting this route.
4490	Percentage int64 `json:"percentage,omitempty"`
4491
4492	// ForceSendFields is a list of field names (e.g. "Basepath") to
4493	// unconditionally include in API requests. By default, fields with
4494	// empty values are omitted from API requests. However, any non-pointer,
4495	// non-interface field appearing in ForceSendFields will be sent to the
4496	// server regardless of whether the field is empty or not. This may be
4497	// used to include empty fields in Patch requests.
4498	ForceSendFields []string `json:"-"`
4499
4500	// NullFields is a list of field names (e.g. "Basepath") to include in
4501	// API requests with the JSON null value. By default, fields with empty
4502	// values are omitted from API requests. However, any field with an
4503	// empty value appearing in NullFields will be sent to the server as
4504	// null. It is an error if a field in this list has a non-empty value.
4505	// This may be used to include null fields in Patch requests.
4506	NullFields []string `json:"-"`
4507}
4508
4509func (s *GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRoute) MarshalJSON() ([]byte, error) {
4510	type NoMethod GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRoute
4511	raw := NoMethod(*s)
4512	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4513}
4514
4515// GoogleCloudApigeeV1IntegrationConfig: Configuration for the
4516// Integration add-on.
4517type GoogleCloudApigeeV1IntegrationConfig struct {
4518	// Enabled: Flag that specifies whether the Integration add-on is
4519	// enabled.
4520	Enabled bool `json:"enabled,omitempty"`
4521
4522	// ForceSendFields is a list of field names (e.g. "Enabled") to
4523	// unconditionally include in API requests. By default, fields with
4524	// empty values are omitted from API requests. However, any non-pointer,
4525	// non-interface field appearing in ForceSendFields will be sent to the
4526	// server regardless of whether the field is empty or not. This may be
4527	// used to include empty fields in Patch requests.
4528	ForceSendFields []string `json:"-"`
4529
4530	// NullFields is a list of field names (e.g. "Enabled") to include in
4531	// API requests with the JSON null value. By default, fields with empty
4532	// values are omitted from API requests. However, any field with an
4533	// empty value appearing in NullFields will be sent to the server as
4534	// null. It is an error if a field in this list has a non-empty value.
4535	// This may be used to include null fields in Patch requests.
4536	NullFields []string `json:"-"`
4537}
4538
4539func (s *GoogleCloudApigeeV1IntegrationConfig) MarshalJSON() ([]byte, error) {
4540	type NoMethod GoogleCloudApigeeV1IntegrationConfig
4541	raw := NoMethod(*s)
4542	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4543}
4544
4545type GoogleCloudApigeeV1KeyAliasReference struct {
4546	// AliasId: Alias ID. Must exist in the keystore referred to by the
4547	// reference.
4548	AliasId string `json:"aliasId,omitempty"`
4549
4550	// Reference: Reference name in the following format:
4551	// `organizations/{org}/environments/{env}/references/{reference}`
4552	Reference string `json:"reference,omitempty"`
4553
4554	// ForceSendFields is a list of field names (e.g. "AliasId") to
4555	// unconditionally include in API requests. By default, fields with
4556	// empty values are omitted from API requests. However, any non-pointer,
4557	// non-interface field appearing in ForceSendFields will be sent to the
4558	// server regardless of whether the field is empty or not. This may be
4559	// used to include empty fields in Patch requests.
4560	ForceSendFields []string `json:"-"`
4561
4562	// NullFields is a list of field names (e.g. "AliasId") to include in
4563	// API requests with the JSON null value. By default, fields with empty
4564	// values are omitted from API requests. However, any field with an
4565	// empty value appearing in NullFields will be sent to the server as
4566	// null. It is an error if a field in this list has a non-empty value.
4567	// This may be used to include null fields in Patch requests.
4568	NullFields []string `json:"-"`
4569}
4570
4571func (s *GoogleCloudApigeeV1KeyAliasReference) MarshalJSON() ([]byte, error) {
4572	type NoMethod GoogleCloudApigeeV1KeyAliasReference
4573	raw := NoMethod(*s)
4574	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4575}
4576
4577// GoogleCloudApigeeV1KeyValueMap: A collection of key, value string
4578// pairs
4579type GoogleCloudApigeeV1KeyValueMap struct {
4580	// Encrypted: Optional. If `true` entry values will be encrypted.
4581	Encrypted bool `json:"encrypted,omitempty"`
4582
4583	// Name: Required. The id of the key value map.
4584	Name string `json:"name,omitempty"`
4585
4586	// ServerResponse contains the HTTP response code and headers from the
4587	// server.
4588	googleapi.ServerResponse `json:"-"`
4589
4590	// ForceSendFields is a list of field names (e.g. "Encrypted") to
4591	// unconditionally include in API requests. By default, fields with
4592	// empty values are omitted from API requests. However, any non-pointer,
4593	// non-interface field appearing in ForceSendFields will be sent to the
4594	// server regardless of whether the field is empty or not. This may be
4595	// used to include empty fields in Patch requests.
4596	ForceSendFields []string `json:"-"`
4597
4598	// NullFields is a list of field names (e.g. "Encrypted") to include in
4599	// API requests with the JSON null value. By default, fields with empty
4600	// values are omitted from API requests. However, any field with an
4601	// empty value appearing in NullFields will be sent to the server as
4602	// null. It is an error if a field in this list has a non-empty value.
4603	// This may be used to include null fields in Patch requests.
4604	NullFields []string `json:"-"`
4605}
4606
4607func (s *GoogleCloudApigeeV1KeyValueMap) MarshalJSON() ([]byte, error) {
4608	type NoMethod GoogleCloudApigeeV1KeyValueMap
4609	raw := NoMethod(*s)
4610	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4611}
4612
4613// GoogleCloudApigeeV1Keystore: Datastore for Certificates and Aliases.
4614type GoogleCloudApigeeV1Keystore struct {
4615	// Aliases: Output only. Aliases in this keystore.
4616	Aliases []string `json:"aliases,omitempty"`
4617
4618	// Name: Required. Resource ID for this keystore. Values must match the
4619	// regular expression `[\w[:space:]-.]{1,255}`.
4620	Name string `json:"name,omitempty"`
4621
4622	// ServerResponse contains the HTTP response code and headers from the
4623	// server.
4624	googleapi.ServerResponse `json:"-"`
4625
4626	// ForceSendFields is a list of field names (e.g. "Aliases") to
4627	// unconditionally include in API requests. By default, fields with
4628	// empty values are omitted from API requests. However, any non-pointer,
4629	// non-interface field appearing in ForceSendFields will be sent to the
4630	// server regardless of whether the field is empty or not. This may be
4631	// used to include empty fields in Patch requests.
4632	ForceSendFields []string `json:"-"`
4633
4634	// NullFields is a list of field names (e.g. "Aliases") to include in
4635	// API requests with the JSON null value. By default, fields with empty
4636	// values are omitted from API requests. However, any field with an
4637	// empty value appearing in NullFields will be sent to the server as
4638	// null. It is an error if a field in this list has a non-empty value.
4639	// This may be used to include null fields in Patch requests.
4640	NullFields []string `json:"-"`
4641}
4642
4643func (s *GoogleCloudApigeeV1Keystore) MarshalJSON() ([]byte, error) {
4644	type NoMethod GoogleCloudApigeeV1Keystore
4645	raw := NoMethod(*s)
4646	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4647}
4648
4649type GoogleCloudApigeeV1KeystoreConfig struct {
4650	// Aliases: Aliases in the keystore.
4651	Aliases []*GoogleCloudApigeeV1AliasRevisionConfig `json:"aliases,omitempty"`
4652
4653	// Name: Resource name in the following format:
4654	// `organizations/{org}/environments/{env}/keystores/{keystore}`
4655	Name string `json:"name,omitempty"`
4656
4657	// ForceSendFields is a list of field names (e.g. "Aliases") to
4658	// unconditionally include in API requests. By default, fields with
4659	// empty values are omitted from API requests. However, any non-pointer,
4660	// non-interface field appearing in ForceSendFields will be sent to the
4661	// server regardless of whether the field is empty or not. This may be
4662	// used to include empty fields in Patch requests.
4663	ForceSendFields []string `json:"-"`
4664
4665	// NullFields is a list of field names (e.g. "Aliases") to include in
4666	// API requests with the JSON null value. By default, fields with empty
4667	// values are omitted from API requests. However, any field with an
4668	// empty value appearing in NullFields will be sent to the server as
4669	// null. It is an error if a field in this list has a non-empty value.
4670	// This may be used to include null fields in Patch requests.
4671	NullFields []string `json:"-"`
4672}
4673
4674func (s *GoogleCloudApigeeV1KeystoreConfig) MarshalJSON() ([]byte, error) {
4675	type NoMethod GoogleCloudApigeeV1KeystoreConfig
4676	raw := NoMethod(*s)
4677	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4678}
4679
4680// GoogleCloudApigeeV1ListApiCategoriesResponse: the response for
4681// ListApiCategoriesRequest.
4682type GoogleCloudApigeeV1ListApiCategoriesResponse struct {
4683	// Data: Details of categories.
4684	Data []*GoogleCloudApigeeV1ApiCategoryData `json:"data,omitempty"`
4685
4686	// ErrorCode: ID that can be used to find errors in the log files.
4687	ErrorCode string `json:"errorCode,omitempty"`
4688
4689	// Message: Description of the operation.
4690	Message string `json:"message,omitempty"`
4691
4692	// RequestId: ID that can be used to find request details in the log
4693	// files.
4694	RequestId string `json:"requestId,omitempty"`
4695
4696	// Status: Status of the operation.
4697	Status string `json:"status,omitempty"`
4698
4699	// ServerResponse contains the HTTP response code and headers from the
4700	// server.
4701	googleapi.ServerResponse `json:"-"`
4702
4703	// ForceSendFields is a list of field names (e.g. "Data") to
4704	// unconditionally include in API requests. By default, fields with
4705	// empty values are omitted from API requests. However, any non-pointer,
4706	// non-interface field appearing in ForceSendFields will be sent to the
4707	// server regardless of whether the field is empty or not. This may be
4708	// used to include empty fields in Patch requests.
4709	ForceSendFields []string `json:"-"`
4710
4711	// NullFields is a list of field names (e.g. "Data") to include in API
4712	// requests with the JSON null value. By default, fields with empty
4713	// values are omitted from API requests. However, any field with an
4714	// empty value appearing in NullFields will be sent to the server as
4715	// null. It is an error if a field in this list has a non-empty value.
4716	// This may be used to include null fields in Patch requests.
4717	NullFields []string `json:"-"`
4718}
4719
4720func (s *GoogleCloudApigeeV1ListApiCategoriesResponse) MarshalJSON() ([]byte, error) {
4721	type NoMethod GoogleCloudApigeeV1ListApiCategoriesResponse
4722	raw := NoMethod(*s)
4723	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4724}
4725
4726type GoogleCloudApigeeV1ListApiProductsResponse struct {
4727	// ApiProduct: Lists all API product names defined for an organization.
4728	ApiProduct []*GoogleCloudApigeeV1ApiProduct `json:"apiProduct,omitempty"`
4729
4730	// ServerResponse contains the HTTP response code and headers from the
4731	// server.
4732	googleapi.ServerResponse `json:"-"`
4733
4734	// ForceSendFields is a list of field names (e.g. "ApiProduct") to
4735	// unconditionally include in API requests. By default, fields with
4736	// empty values are omitted from API requests. However, any non-pointer,
4737	// non-interface field appearing in ForceSendFields will be sent to the
4738	// server regardless of whether the field is empty or not. This may be
4739	// used to include empty fields in Patch requests.
4740	ForceSendFields []string `json:"-"`
4741
4742	// NullFields is a list of field names (e.g. "ApiProduct") to include in
4743	// API requests with the JSON null value. By default, fields with empty
4744	// values are omitted from API requests. However, any field with an
4745	// empty value appearing in NullFields will be sent to the server as
4746	// null. It is an error if a field in this list has a non-empty value.
4747	// This may be used to include null fields in Patch requests.
4748	NullFields []string `json:"-"`
4749}
4750
4751func (s *GoogleCloudApigeeV1ListApiProductsResponse) MarshalJSON() ([]byte, error) {
4752	type NoMethod GoogleCloudApigeeV1ListApiProductsResponse
4753	raw := NoMethod(*s)
4754	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4755}
4756
4757type GoogleCloudApigeeV1ListApiProxiesResponse struct {
4758	Proxies []*GoogleCloudApigeeV1ApiProxy `json:"proxies,omitempty"`
4759
4760	// ServerResponse contains the HTTP response code and headers from the
4761	// server.
4762	googleapi.ServerResponse `json:"-"`
4763
4764	// ForceSendFields is a list of field names (e.g. "Proxies") to
4765	// unconditionally include in API requests. By default, fields with
4766	// empty values are omitted from API requests. However, any non-pointer,
4767	// non-interface field appearing in ForceSendFields will be sent to the
4768	// server regardless of whether the field is empty or not. This may be
4769	// used to include empty fields in Patch requests.
4770	ForceSendFields []string `json:"-"`
4771
4772	// NullFields is a list of field names (e.g. "Proxies") to include in
4773	// API requests with the JSON null value. By default, fields with empty
4774	// values are omitted from API requests. However, any field with an
4775	// empty value appearing in NullFields will be sent to the server as
4776	// null. It is an error if a field in this list has a non-empty value.
4777	// This may be used to include null fields in Patch requests.
4778	NullFields []string `json:"-"`
4779}
4780
4781func (s *GoogleCloudApigeeV1ListApiProxiesResponse) MarshalJSON() ([]byte, error) {
4782	type NoMethod GoogleCloudApigeeV1ListApiProxiesResponse
4783	raw := NoMethod(*s)
4784	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4785}
4786
4787type GoogleCloudApigeeV1ListAppsResponse struct {
4788	App []*GoogleCloudApigeeV1App `json:"app,omitempty"`
4789
4790	// ServerResponse contains the HTTP response code and headers from the
4791	// server.
4792	googleapi.ServerResponse `json:"-"`
4793
4794	// ForceSendFields is a list of field names (e.g. "App") to
4795	// unconditionally include in API requests. By default, fields with
4796	// empty values are omitted from API requests. However, any non-pointer,
4797	// non-interface field appearing in ForceSendFields will be sent to the
4798	// server regardless of whether the field is empty or not. This may be
4799	// used to include empty fields in Patch requests.
4800	ForceSendFields []string `json:"-"`
4801
4802	// NullFields is a list of field names (e.g. "App") to include in API
4803	// requests with the JSON null value. By default, fields with empty
4804	// values are omitted from API requests. However, any field with an
4805	// empty value appearing in NullFields will be sent to the server as
4806	// null. It is an error if a field in this list has a non-empty value.
4807	// This may be used to include null fields in Patch requests.
4808	NullFields []string `json:"-"`
4809}
4810
4811func (s *GoogleCloudApigeeV1ListAppsResponse) MarshalJSON() ([]byte, error) {
4812	type NoMethod GoogleCloudApigeeV1ListAppsResponse
4813	raw := NoMethod(*s)
4814	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4815}
4816
4817// GoogleCloudApigeeV1ListAsyncQueriesResponse: The response for
4818// ListAsyncQueries.
4819type GoogleCloudApigeeV1ListAsyncQueriesResponse struct {
4820	// Queries: The asynchronous queries belong to requested resource name.
4821	Queries []*GoogleCloudApigeeV1AsyncQuery `json:"queries,omitempty"`
4822
4823	// ServerResponse contains the HTTP response code and headers from the
4824	// server.
4825	googleapi.ServerResponse `json:"-"`
4826
4827	// ForceSendFields is a list of field names (e.g. "Queries") to
4828	// unconditionally include in API requests. By default, fields with
4829	// empty values are omitted from API requests. However, any non-pointer,
4830	// non-interface field appearing in ForceSendFields will be sent to the
4831	// server regardless of whether the field is empty or not. This may be
4832	// used to include empty fields in Patch requests.
4833	ForceSendFields []string `json:"-"`
4834
4835	// NullFields is a list of field names (e.g. "Queries") to include in
4836	// API requests with the JSON null value. By default, fields with empty
4837	// values are omitted from API requests. However, any field with an
4838	// empty value appearing in NullFields will be sent to the server as
4839	// null. It is an error if a field in this list has a non-empty value.
4840	// This may be used to include null fields in Patch requests.
4841	NullFields []string `json:"-"`
4842}
4843
4844func (s *GoogleCloudApigeeV1ListAsyncQueriesResponse) MarshalJSON() ([]byte, error) {
4845	type NoMethod GoogleCloudApigeeV1ListAsyncQueriesResponse
4846	raw := NoMethod(*s)
4847	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4848}
4849
4850// GoogleCloudApigeeV1ListCustomReportsResponse: This message
4851// encapsulates a list of custom report definitions
4852type GoogleCloudApigeeV1ListCustomReportsResponse struct {
4853	Qualifier []*GoogleCloudApigeeV1CustomReport `json:"qualifier,omitempty"`
4854
4855	// ServerResponse contains the HTTP response code and headers from the
4856	// server.
4857	googleapi.ServerResponse `json:"-"`
4858
4859	// ForceSendFields is a list of field names (e.g. "Qualifier") to
4860	// unconditionally include in API requests. By default, fields with
4861	// empty values are omitted from API requests. However, any non-pointer,
4862	// non-interface field appearing in ForceSendFields will be sent to the
4863	// server regardless of whether the field is empty or not. This may be
4864	// used to include empty fields in Patch requests.
4865	ForceSendFields []string `json:"-"`
4866
4867	// NullFields is a list of field names (e.g. "Qualifier") to include in
4868	// API requests with the JSON null value. By default, fields with empty
4869	// values are omitted from API requests. However, any field with an
4870	// empty value appearing in NullFields will be sent to the server as
4871	// null. It is an error if a field in this list has a non-empty value.
4872	// This may be used to include null fields in Patch requests.
4873	NullFields []string `json:"-"`
4874}
4875
4876func (s *GoogleCloudApigeeV1ListCustomReportsResponse) MarshalJSON() ([]byte, error) {
4877	type NoMethod GoogleCloudApigeeV1ListCustomReportsResponse
4878	raw := NoMethod(*s)
4879	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4880}
4881
4882// GoogleCloudApigeeV1ListDataCollectorsResponse: Response for
4883// ListDataCollectors.
4884type GoogleCloudApigeeV1ListDataCollectorsResponse struct {
4885	// DataCollectors: Data collectors in the specified organization.
4886	DataCollectors []*GoogleCloudApigeeV1DataCollector `json:"dataCollectors,omitempty"`
4887
4888	// NextPageToken: Page token that you can include in a
4889	// ListDataCollectors request to retrieve the next page. If omitted, no
4890	// subsequent pages exist.
4891	NextPageToken string `json:"nextPageToken,omitempty"`
4892
4893	// ServerResponse contains the HTTP response code and headers from the
4894	// server.
4895	googleapi.ServerResponse `json:"-"`
4896
4897	// ForceSendFields is a list of field names (e.g. "DataCollectors") to
4898	// unconditionally include in API requests. By default, fields with
4899	// empty values are omitted from API requests. However, any non-pointer,
4900	// non-interface field appearing in ForceSendFields will be sent to the
4901	// server regardless of whether the field is empty or not. This may be
4902	// used to include empty fields in Patch requests.
4903	ForceSendFields []string `json:"-"`
4904
4905	// NullFields is a list of field names (e.g. "DataCollectors") to
4906	// include in API requests with the JSON null value. By default, fields
4907	// with empty values are omitted from API requests. However, any field
4908	// with an empty value appearing in NullFields will be sent to the
4909	// server as null. It is an error if a field in this list has a
4910	// non-empty value. This may be used to include null fields in Patch
4911	// requests.
4912	NullFields []string `json:"-"`
4913}
4914
4915func (s *GoogleCloudApigeeV1ListDataCollectorsResponse) MarshalJSON() ([]byte, error) {
4916	type NoMethod GoogleCloudApigeeV1ListDataCollectorsResponse
4917	raw := NoMethod(*s)
4918	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4919}
4920
4921// GoogleCloudApigeeV1ListDatastoresResponse: The response for
4922// ListDatastores
4923type GoogleCloudApigeeV1ListDatastoresResponse struct {
4924	// Datastores: A list of datastores
4925	Datastores []*GoogleCloudApigeeV1Datastore `json:"datastores,omitempty"`
4926
4927	// ServerResponse contains the HTTP response code and headers from the
4928	// server.
4929	googleapi.ServerResponse `json:"-"`
4930
4931	// ForceSendFields is a list of field names (e.g. "Datastores") to
4932	// unconditionally include in API requests. By default, fields with
4933	// empty values are omitted from API requests. However, any non-pointer,
4934	// non-interface field appearing in ForceSendFields will be sent to the
4935	// server regardless of whether the field is empty or not. This may be
4936	// used to include empty fields in Patch requests.
4937	ForceSendFields []string `json:"-"`
4938
4939	// NullFields is a list of field names (e.g. "Datastores") to include in
4940	// API requests with the JSON null value. By default, fields with empty
4941	// values are omitted from API requests. However, any field with an
4942	// empty value appearing in NullFields will be sent to the server as
4943	// null. It is an error if a field in this list has a non-empty value.
4944	// This may be used to include null fields in Patch requests.
4945	NullFields []string `json:"-"`
4946}
4947
4948func (s *GoogleCloudApigeeV1ListDatastoresResponse) MarshalJSON() ([]byte, error) {
4949	type NoMethod GoogleCloudApigeeV1ListDatastoresResponse
4950	raw := NoMethod(*s)
4951	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4952}
4953
4954type GoogleCloudApigeeV1ListDebugSessionsResponse struct {
4955	// NextPageToken: Page token that you can include in a
4956	// ListDebugSessionsRequest to retrieve the next page. If omitted, no
4957	// subsequent pages exist.
4958	NextPageToken string `json:"nextPageToken,omitempty"`
4959
4960	// Sessions: Session info that includes debug session ID and the first
4961	// transaction creation timestamp.
4962	Sessions []*GoogleCloudApigeeV1Session `json:"sessions,omitempty"`
4963
4964	// ServerResponse contains the HTTP response code and headers from the
4965	// server.
4966	googleapi.ServerResponse `json:"-"`
4967
4968	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
4969	// unconditionally include in API requests. By default, fields with
4970	// empty values are omitted from API requests. However, any non-pointer,
4971	// non-interface field appearing in ForceSendFields will be sent to the
4972	// server regardless of whether the field is empty or not. This may be
4973	// used to include empty fields in Patch requests.
4974	ForceSendFields []string `json:"-"`
4975
4976	// NullFields is a list of field names (e.g. "NextPageToken") to include
4977	// in API requests with the JSON null value. By default, fields with
4978	// empty values are omitted from API requests. However, any field with
4979	// an empty value appearing in NullFields will be sent to the server as
4980	// null. It is an error if a field in this list has a non-empty value.
4981	// This may be used to include null fields in Patch requests.
4982	NullFields []string `json:"-"`
4983}
4984
4985func (s *GoogleCloudApigeeV1ListDebugSessionsResponse) MarshalJSON() ([]byte, error) {
4986	type NoMethod GoogleCloudApigeeV1ListDebugSessionsResponse
4987	raw := NoMethod(*s)
4988	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4989}
4990
4991type GoogleCloudApigeeV1ListDeploymentsResponse struct {
4992	// Deployments: List of deployments.
4993	Deployments []*GoogleCloudApigeeV1Deployment `json:"deployments,omitempty"`
4994
4995	// ServerResponse contains the HTTP response code and headers from the
4996	// server.
4997	googleapi.ServerResponse `json:"-"`
4998
4999	// ForceSendFields is a list of field names (e.g. "Deployments") to
5000	// unconditionally include in API requests. By default, fields with
5001	// empty values are omitted from API requests. However, any non-pointer,
5002	// non-interface field appearing in ForceSendFields will be sent to the
5003	// server regardless of whether the field is empty or not. This may be
5004	// used to include empty fields in Patch requests.
5005	ForceSendFields []string `json:"-"`
5006
5007	// NullFields is a list of field names (e.g. "Deployments") to include
5008	// in API requests with the JSON null value. By default, fields with
5009	// empty values are omitted from API requests. However, any field with
5010	// an empty value appearing in NullFields will be sent to the server as
5011	// null. It is an error if a field in this list has a non-empty value.
5012	// This may be used to include null fields in Patch requests.
5013	NullFields []string `json:"-"`
5014}
5015
5016func (s *GoogleCloudApigeeV1ListDeploymentsResponse) MarshalJSON() ([]byte, error) {
5017	type NoMethod GoogleCloudApigeeV1ListDeploymentsResponse
5018	raw := NoMethod(*s)
5019	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5020}
5021
5022type GoogleCloudApigeeV1ListDeveloperAppsResponse struct {
5023	// App: List of developer apps and their credentials.
5024	App []*GoogleCloudApigeeV1DeveloperApp `json:"app,omitempty"`
5025
5026	// ServerResponse contains the HTTP response code and headers from the
5027	// server.
5028	googleapi.ServerResponse `json:"-"`
5029
5030	// ForceSendFields is a list of field names (e.g. "App") to
5031	// unconditionally include in API requests. By default, fields with
5032	// empty values are omitted from API requests. However, any non-pointer,
5033	// non-interface field appearing in ForceSendFields will be sent to the
5034	// server regardless of whether the field is empty or not. This may be
5035	// used to include empty fields in Patch requests.
5036	ForceSendFields []string `json:"-"`
5037
5038	// NullFields is a list of field names (e.g. "App") to include in API
5039	// requests with the JSON null value. By default, fields with empty
5040	// values are omitted from API requests. However, any field with an
5041	// empty value appearing in NullFields will be sent to the server as
5042	// null. It is an error if a field in this list has a non-empty value.
5043	// This may be used to include null fields in Patch requests.
5044	NullFields []string `json:"-"`
5045}
5046
5047func (s *GoogleCloudApigeeV1ListDeveloperAppsResponse) MarshalJSON() ([]byte, error) {
5048	type NoMethod GoogleCloudApigeeV1ListDeveloperAppsResponse
5049	raw := NoMethod(*s)
5050	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5051}
5052
5053// GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse: Response for
5054// ListDeveloperSubscriptions.
5055type GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse struct {
5056	// DeveloperSubscriptions: List of all subscriptions.
5057	DeveloperSubscriptions []*GoogleCloudApigeeV1DeveloperSubscription `json:"developerSubscriptions,omitempty"`
5058
5059	// NextStartKey: Value that can be sent as `startKey` to retrieve the
5060	// next page of content. If this field is omitted, there are no
5061	// subsequent pages.
5062	NextStartKey string `json:"nextStartKey,omitempty"`
5063
5064	// ServerResponse contains the HTTP response code and headers from the
5065	// server.
5066	googleapi.ServerResponse `json:"-"`
5067
5068	// ForceSendFields is a list of field names (e.g.
5069	// "DeveloperSubscriptions") to unconditionally include in API requests.
5070	// By default, fields with empty values are omitted from API requests.
5071	// However, any non-pointer, non-interface field appearing in
5072	// ForceSendFields will be sent to the server regardless of whether the
5073	// field is empty or not. This may be used to include empty fields in
5074	// Patch requests.
5075	ForceSendFields []string `json:"-"`
5076
5077	// NullFields is a list of field names (e.g. "DeveloperSubscriptions")
5078	// to include in API requests with the JSON null value. By default,
5079	// fields with empty values are omitted from API requests. However, any
5080	// field with an empty value appearing in NullFields will be sent to the
5081	// server as null. It is an error if a field in this list has a
5082	// non-empty value. This may be used to include null fields in Patch
5083	// requests.
5084	NullFields []string `json:"-"`
5085}
5086
5087func (s *GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse) MarshalJSON() ([]byte, error) {
5088	type NoMethod GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse
5089	raw := NoMethod(*s)
5090	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5091}
5092
5093// GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse: Response
5094// for ListEnvironmentGroupAttachments.
5095type GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse struct {
5096	// EnvironmentGroupAttachments: EnvironmentGroupAttachments for the
5097	// specified environment group.
5098	EnvironmentGroupAttachments []*GoogleCloudApigeeV1EnvironmentGroupAttachment `json:"environmentGroupAttachments,omitempty"`
5099
5100	// NextPageToken: Page token that you can include in a
5101	// ListEnvironmentGroupAttachments request to retrieve the next page. If
5102	// omitted, no subsequent pages exist.
5103	NextPageToken string `json:"nextPageToken,omitempty"`
5104
5105	// ServerResponse contains the HTTP response code and headers from the
5106	// server.
5107	googleapi.ServerResponse `json:"-"`
5108
5109	// ForceSendFields is a list of field names (e.g.
5110	// "EnvironmentGroupAttachments") to unconditionally include in API
5111	// requests. By default, fields with empty values are omitted from API
5112	// requests. However, any non-pointer, non-interface field appearing in
5113	// ForceSendFields will be sent to the server regardless of whether the
5114	// field is empty or not. This may be used to include empty fields in
5115	// Patch requests.
5116	ForceSendFields []string `json:"-"`
5117
5118	// NullFields is a list of field names (e.g.
5119	// "EnvironmentGroupAttachments") to include in API requests with the
5120	// JSON null value. By default, fields with empty values are omitted
5121	// from API requests. However, any field with an empty value appearing
5122	// in NullFields will be sent to the server as null. It is an error if a
5123	// field in this list has a non-empty value. This may be used to include
5124	// null fields in Patch requests.
5125	NullFields []string `json:"-"`
5126}
5127
5128func (s *GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse) MarshalJSON() ([]byte, error) {
5129	type NoMethod GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse
5130	raw := NoMethod(*s)
5131	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5132}
5133
5134// GoogleCloudApigeeV1ListEnvironmentGroupsResponse: Response for
5135// ListEnvironmentGroups.
5136type GoogleCloudApigeeV1ListEnvironmentGroupsResponse struct {
5137	// EnvironmentGroups: EnvironmentGroups in the specified organization.
5138	EnvironmentGroups []*GoogleCloudApigeeV1EnvironmentGroup `json:"environmentGroups,omitempty"`
5139
5140	// NextPageToken: Page token that you can include in a
5141	// ListEnvironmentGroups request to retrieve the next page. If omitted,
5142	// no subsequent pages exist.
5143	NextPageToken string `json:"nextPageToken,omitempty"`
5144
5145	// ServerResponse contains the HTTP response code and headers from the
5146	// server.
5147	googleapi.ServerResponse `json:"-"`
5148
5149	// ForceSendFields is a list of field names (e.g. "EnvironmentGroups")
5150	// to unconditionally include in API requests. By default, fields with
5151	// empty values are omitted from API requests. However, any non-pointer,
5152	// non-interface field appearing in ForceSendFields will be sent to the
5153	// server regardless of whether the field is empty or not. This may be
5154	// used to include empty fields in Patch requests.
5155	ForceSendFields []string `json:"-"`
5156
5157	// NullFields is a list of field names (e.g. "EnvironmentGroups") to
5158	// include in API requests with the JSON null value. By default, fields
5159	// with empty values are omitted from API requests. However, any field
5160	// with an empty value appearing in NullFields will be sent to the
5161	// server as null. It is an error if a field in this list has a
5162	// non-empty value. This may be used to include null fields in Patch
5163	// requests.
5164	NullFields []string `json:"-"`
5165}
5166
5167func (s *GoogleCloudApigeeV1ListEnvironmentGroupsResponse) MarshalJSON() ([]byte, error) {
5168	type NoMethod GoogleCloudApigeeV1ListEnvironmentGroupsResponse
5169	raw := NoMethod(*s)
5170	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5171}
5172
5173// GoogleCloudApigeeV1ListEnvironmentResourcesResponse: Response for
5174// ListEnvironmentResources
5175type GoogleCloudApigeeV1ListEnvironmentResourcesResponse struct {
5176	// ResourceFile: List of resources files.
5177	ResourceFile []*GoogleCloudApigeeV1ResourceFile `json:"resourceFile,omitempty"`
5178
5179	// ServerResponse contains the HTTP response code and headers from the
5180	// server.
5181	googleapi.ServerResponse `json:"-"`
5182
5183	// ForceSendFields is a list of field names (e.g. "ResourceFile") to
5184	// unconditionally include in API requests. By default, fields with
5185	// empty values are omitted from API requests. However, any non-pointer,
5186	// non-interface field appearing in ForceSendFields will be sent to the
5187	// server regardless of whether the field is empty or not. This may be
5188	// used to include empty fields in Patch requests.
5189	ForceSendFields []string `json:"-"`
5190
5191	// NullFields is a list of field names (e.g. "ResourceFile") to include
5192	// in API requests with the JSON null value. By default, fields with
5193	// empty values are omitted from API requests. However, any field with
5194	// an empty value appearing in NullFields will be sent to the server as
5195	// null. It is an error if a field in this list has a non-empty value.
5196	// This may be used to include null fields in Patch requests.
5197	NullFields []string `json:"-"`
5198}
5199
5200func (s *GoogleCloudApigeeV1ListEnvironmentResourcesResponse) MarshalJSON() ([]byte, error) {
5201	type NoMethod GoogleCloudApigeeV1ListEnvironmentResourcesResponse
5202	raw := NoMethod(*s)
5203	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5204}
5205
5206// GoogleCloudApigeeV1ListExportsResponse: The response for ListExports
5207type GoogleCloudApigeeV1ListExportsResponse struct {
5208	// Exports: Details of the export jobs.
5209	Exports []*GoogleCloudApigeeV1Export `json:"exports,omitempty"`
5210
5211	// ServerResponse contains the HTTP response code and headers from the
5212	// server.
5213	googleapi.ServerResponse `json:"-"`
5214
5215	// ForceSendFields is a list of field names (e.g. "Exports") to
5216	// unconditionally include in API requests. By default, fields with
5217	// empty values are omitted from API requests. However, any non-pointer,
5218	// non-interface field appearing in ForceSendFields will be sent to the
5219	// server regardless of whether the field is empty or not. This may be
5220	// used to include empty fields in Patch requests.
5221	ForceSendFields []string `json:"-"`
5222
5223	// NullFields is a list of field names (e.g. "Exports") to include in
5224	// API requests with the JSON null value. By default, fields with empty
5225	// values are omitted from API requests. However, any field with an
5226	// empty value appearing in NullFields will be sent to the server as
5227	// null. It is an error if a field in this list has a non-empty value.
5228	// This may be used to include null fields in Patch requests.
5229	NullFields []string `json:"-"`
5230}
5231
5232func (s *GoogleCloudApigeeV1ListExportsResponse) MarshalJSON() ([]byte, error) {
5233	type NoMethod GoogleCloudApigeeV1ListExportsResponse
5234	raw := NoMethod(*s)
5235	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5236}
5237
5238type GoogleCloudApigeeV1ListHybridIssuersResponse struct {
5239	// Issuers: Lists of hybrid services and its trusted issuer email ids.
5240	Issuers []*GoogleCloudApigeeV1ServiceIssuersMapping `json:"issuers,omitempty"`
5241
5242	// ServerResponse contains the HTTP response code and headers from the
5243	// server.
5244	googleapi.ServerResponse `json:"-"`
5245
5246	// ForceSendFields is a list of field names (e.g. "Issuers") to
5247	// unconditionally include in API requests. By default, fields with
5248	// empty values are omitted from API requests. However, any non-pointer,
5249	// non-interface field appearing in ForceSendFields will be sent to the
5250	// server regardless of whether the field is empty or not. This may be
5251	// used to include empty fields in Patch requests.
5252	ForceSendFields []string `json:"-"`
5253
5254	// NullFields is a list of field names (e.g. "Issuers") to include in
5255	// API requests with the JSON null value. By default, fields with empty
5256	// values are omitted from API requests. However, any field with an
5257	// empty value appearing in NullFields will be sent to the server as
5258	// null. It is an error if a field in this list has a non-empty value.
5259	// This may be used to include null fields in Patch requests.
5260	NullFields []string `json:"-"`
5261}
5262
5263func (s *GoogleCloudApigeeV1ListHybridIssuersResponse) MarshalJSON() ([]byte, error) {
5264	type NoMethod GoogleCloudApigeeV1ListHybridIssuersResponse
5265	raw := NoMethod(*s)
5266	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5267}
5268
5269// GoogleCloudApigeeV1ListInstanceAttachmentsResponse: Response for
5270// ListInstanceAttachments.
5271type GoogleCloudApigeeV1ListInstanceAttachmentsResponse struct {
5272	// Attachments: Attachments for the instance.
5273	Attachments []*GoogleCloudApigeeV1InstanceAttachment `json:"attachments,omitempty"`
5274
5275	// NextPageToken: Page token that you can include in a
5276	// ListInstanceAttachments request to retrieve the next page of content.
5277	// If omitted, no subsequent pages exist.
5278	NextPageToken string `json:"nextPageToken,omitempty"`
5279
5280	// ServerResponse contains the HTTP response code and headers from the
5281	// server.
5282	googleapi.ServerResponse `json:"-"`
5283
5284	// ForceSendFields is a list of field names (e.g. "Attachments") to
5285	// unconditionally include in API requests. By default, fields with
5286	// empty values are omitted from API requests. However, any non-pointer,
5287	// non-interface field appearing in ForceSendFields will be sent to the
5288	// server regardless of whether the field is empty or not. This may be
5289	// used to include empty fields in Patch requests.
5290	ForceSendFields []string `json:"-"`
5291
5292	// NullFields is a list of field names (e.g. "Attachments") to include
5293	// in API requests with the JSON null value. By default, fields with
5294	// empty values are omitted from API requests. However, any field with
5295	// an empty value appearing in NullFields will be sent to the server as
5296	// null. It is an error if a field in this list has a non-empty value.
5297	// This may be used to include null fields in Patch requests.
5298	NullFields []string `json:"-"`
5299}
5300
5301func (s *GoogleCloudApigeeV1ListInstanceAttachmentsResponse) MarshalJSON() ([]byte, error) {
5302	type NoMethod GoogleCloudApigeeV1ListInstanceAttachmentsResponse
5303	raw := NoMethod(*s)
5304	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5305}
5306
5307// GoogleCloudApigeeV1ListInstancesResponse: Response for ListInstances.
5308type GoogleCloudApigeeV1ListInstancesResponse struct {
5309	// Instances: Instances in the specified organization.
5310	Instances []*GoogleCloudApigeeV1Instance `json:"instances,omitempty"`
5311
5312	// NextPageToken: Page token that you can include in a ListInstance
5313	// request to retrieve the next page of content. If omitted, no
5314	// subsequent pages exist.
5315	NextPageToken string `json:"nextPageToken,omitempty"`
5316
5317	// ServerResponse contains the HTTP response code and headers from the
5318	// server.
5319	googleapi.ServerResponse `json:"-"`
5320
5321	// ForceSendFields is a list of field names (e.g. "Instances") to
5322	// unconditionally include in API requests. By default, fields with
5323	// empty values are omitted from API requests. However, any non-pointer,
5324	// non-interface field appearing in ForceSendFields will be sent to the
5325	// server regardless of whether the field is empty or not. This may be
5326	// used to include empty fields in Patch requests.
5327	ForceSendFields []string `json:"-"`
5328
5329	// NullFields is a list of field names (e.g. "Instances") to include in
5330	// API requests with the JSON null value. By default, fields with empty
5331	// values are omitted from API requests. However, any field with an
5332	// empty value appearing in NullFields will be sent to the server as
5333	// null. It is an error if a field in this list has a non-empty value.
5334	// This may be used to include null fields in Patch requests.
5335	NullFields []string `json:"-"`
5336}
5337
5338func (s *GoogleCloudApigeeV1ListInstancesResponse) MarshalJSON() ([]byte, error) {
5339	type NoMethod GoogleCloudApigeeV1ListInstancesResponse
5340	raw := NoMethod(*s)
5341	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5342}
5343
5344// GoogleCloudApigeeV1ListNatAddressesResponse: Response for
5345// ListNatAddresses.
5346type GoogleCloudApigeeV1ListNatAddressesResponse struct {
5347	// NatAddresses: List of NAT Addresses for the instance.
5348	NatAddresses []*GoogleCloudApigeeV1NatAddress `json:"natAddresses,omitempty"`
5349
5350	// NextPageToken: Page token that you can include in a ListNatAddresses
5351	// request to retrieve the next page of content. If omitted, no
5352	// subsequent pages exist.
5353	NextPageToken string `json:"nextPageToken,omitempty"`
5354
5355	// ServerResponse contains the HTTP response code and headers from the
5356	// server.
5357	googleapi.ServerResponse `json:"-"`
5358
5359	// ForceSendFields is a list of field names (e.g. "NatAddresses") to
5360	// unconditionally include in API requests. By default, fields with
5361	// empty values are omitted from API requests. However, any non-pointer,
5362	// non-interface field appearing in ForceSendFields will be sent to the
5363	// server regardless of whether the field is empty or not. This may be
5364	// used to include empty fields in Patch requests.
5365	ForceSendFields []string `json:"-"`
5366
5367	// NullFields is a list of field names (e.g. "NatAddresses") to include
5368	// in API requests with the JSON null value. By default, fields with
5369	// empty values are omitted from API requests. However, any field with
5370	// an empty value appearing in NullFields will be sent to the server as
5371	// null. It is an error if a field in this list has a non-empty value.
5372	// This may be used to include null fields in Patch requests.
5373	NullFields []string `json:"-"`
5374}
5375
5376func (s *GoogleCloudApigeeV1ListNatAddressesResponse) MarshalJSON() ([]byte, error) {
5377	type NoMethod GoogleCloudApigeeV1ListNatAddressesResponse
5378	raw := NoMethod(*s)
5379	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5380}
5381
5382type GoogleCloudApigeeV1ListOfDevelopersResponse struct {
5383	// Developer: List of developers.
5384	Developer []*GoogleCloudApigeeV1Developer `json:"developer,omitempty"`
5385
5386	// ServerResponse contains the HTTP response code and headers from the
5387	// server.
5388	googleapi.ServerResponse `json:"-"`
5389
5390	// ForceSendFields is a list of field names (e.g. "Developer") to
5391	// unconditionally include in API requests. By default, fields with
5392	// empty values are omitted from API requests. However, any non-pointer,
5393	// non-interface field appearing in ForceSendFields will be sent to the
5394	// server regardless of whether the field is empty or not. This may be
5395	// used to include empty fields in Patch requests.
5396	ForceSendFields []string `json:"-"`
5397
5398	// NullFields is a list of field names (e.g. "Developer") to include in
5399	// API requests with the JSON null value. By default, fields with empty
5400	// values are omitted from API requests. However, any field with an
5401	// empty value appearing in NullFields will be sent to the server as
5402	// null. It is an error if a field in this list has a non-empty value.
5403	// This may be used to include null fields in Patch requests.
5404	NullFields []string `json:"-"`
5405}
5406
5407func (s *GoogleCloudApigeeV1ListOfDevelopersResponse) MarshalJSON() ([]byte, error) {
5408	type NoMethod GoogleCloudApigeeV1ListOfDevelopersResponse
5409	raw := NoMethod(*s)
5410	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5411}
5412
5413type GoogleCloudApigeeV1ListOrganizationsResponse struct {
5414	// Organizations: List of Apigee organizations and associated GCP
5415	// projects.
5416	Organizations []*GoogleCloudApigeeV1OrganizationProjectMapping `json:"organizations,omitempty"`
5417
5418	// ServerResponse contains the HTTP response code and headers from the
5419	// server.
5420	googleapi.ServerResponse `json:"-"`
5421
5422	// ForceSendFields is a list of field names (e.g. "Organizations") to
5423	// unconditionally include in API requests. By default, fields with
5424	// empty values are omitted from API requests. However, any non-pointer,
5425	// non-interface field appearing in ForceSendFields will be sent to the
5426	// server regardless of whether the field is empty or not. This may be
5427	// used to include empty fields in Patch requests.
5428	ForceSendFields []string `json:"-"`
5429
5430	// NullFields is a list of field names (e.g. "Organizations") to include
5431	// in API requests with the JSON null value. By default, fields with
5432	// empty values are omitted from API requests. However, any field with
5433	// an empty value appearing in NullFields will be sent to the server as
5434	// null. It is an error if a field in this list has a non-empty value.
5435	// This may be used to include null fields in Patch requests.
5436	NullFields []string `json:"-"`
5437}
5438
5439func (s *GoogleCloudApigeeV1ListOrganizationsResponse) MarshalJSON() ([]byte, error) {
5440	type NoMethod GoogleCloudApigeeV1ListOrganizationsResponse
5441	raw := NoMethod(*s)
5442	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5443}
5444
5445// GoogleCloudApigeeV1ListRatePlansResponse: Response for ListRatePlans.
5446type GoogleCloudApigeeV1ListRatePlansResponse struct {
5447	// NextStartKey: Value that can be sent as `startKey` to retrieve the
5448	// next page of content. If this field is omitted, there are no
5449	// subsequent pages.
5450	NextStartKey string `json:"nextStartKey,omitempty"`
5451
5452	// RatePlans: List of rate plans in an organization.
5453	RatePlans []*GoogleCloudApigeeV1RatePlan `json:"ratePlans,omitempty"`
5454
5455	// ServerResponse contains the HTTP response code and headers from the
5456	// server.
5457	googleapi.ServerResponse `json:"-"`
5458
5459	// ForceSendFields is a list of field names (e.g. "NextStartKey") to
5460	// unconditionally include in API requests. By default, fields with
5461	// empty values are omitted from API requests. However, any non-pointer,
5462	// non-interface field appearing in ForceSendFields will be sent to the
5463	// server regardless of whether the field is empty or not. This may be
5464	// used to include empty fields in Patch requests.
5465	ForceSendFields []string `json:"-"`
5466
5467	// NullFields is a list of field names (e.g. "NextStartKey") to include
5468	// in API requests with the JSON null value. By default, fields with
5469	// empty values are omitted from API requests. However, any field with
5470	// an empty value appearing in NullFields will be sent to the server as
5471	// null. It is an error if a field in this list has a non-empty value.
5472	// This may be used to include null fields in Patch requests.
5473	NullFields []string `json:"-"`
5474}
5475
5476func (s *GoogleCloudApigeeV1ListRatePlansResponse) MarshalJSON() ([]byte, error) {
5477	type NoMethod GoogleCloudApigeeV1ListRatePlansResponse
5478	raw := NoMethod(*s)
5479	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5480}
5481
5482type GoogleCloudApigeeV1ListSharedFlowsResponse struct {
5483	SharedFlows []*GoogleCloudApigeeV1SharedFlow `json:"sharedFlows,omitempty"`
5484
5485	// ServerResponse contains the HTTP response code and headers from the
5486	// server.
5487	googleapi.ServerResponse `json:"-"`
5488
5489	// ForceSendFields is a list of field names (e.g. "SharedFlows") to
5490	// unconditionally include in API requests. By default, fields with
5491	// empty values are omitted from API requests. However, any non-pointer,
5492	// non-interface field appearing in ForceSendFields will be sent to the
5493	// server regardless of whether the field is empty or not. This may be
5494	// used to include empty fields in Patch requests.
5495	ForceSendFields []string `json:"-"`
5496
5497	// NullFields is a list of field names (e.g. "SharedFlows") to include
5498	// in API requests with the JSON null value. By default, fields with
5499	// empty values are omitted from API requests. However, any field with
5500	// an empty value appearing in NullFields will be sent to the server as
5501	// null. It is an error if a field in this list has a non-empty value.
5502	// This may be used to include null fields in Patch requests.
5503	NullFields []string `json:"-"`
5504}
5505
5506func (s *GoogleCloudApigeeV1ListSharedFlowsResponse) MarshalJSON() ([]byte, error) {
5507	type NoMethod GoogleCloudApigeeV1ListSharedFlowsResponse
5508	raw := NoMethod(*s)
5509	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5510}
5511
5512// GoogleCloudApigeeV1ListTraceConfigOverridesResponse: Response for
5513// ListTraceConfigOverrides.
5514type GoogleCloudApigeeV1ListTraceConfigOverridesResponse struct {
5515	// NextPageToken: Token value that can be passed as `page_token` to
5516	// retrieve the next page of content.
5517	NextPageToken string `json:"nextPageToken,omitempty"`
5518
5519	// TraceConfigOverrides: List all trace configuration overrides in an
5520	// environment.
5521	TraceConfigOverrides []*GoogleCloudApigeeV1TraceConfigOverride `json:"traceConfigOverrides,omitempty"`
5522
5523	// ServerResponse contains the HTTP response code and headers from the
5524	// server.
5525	googleapi.ServerResponse `json:"-"`
5526
5527	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
5528	// unconditionally include in API requests. By default, fields with
5529	// empty values are omitted from API requests. However, any non-pointer,
5530	// non-interface field appearing in ForceSendFields will be sent to the
5531	// server regardless of whether the field is empty or not. This may be
5532	// used to include empty fields in Patch requests.
5533	ForceSendFields []string `json:"-"`
5534
5535	// NullFields is a list of field names (e.g. "NextPageToken") to include
5536	// in API requests with the JSON null value. By default, fields with
5537	// empty values are omitted from API requests. However, any field with
5538	// an empty value appearing in NullFields will be sent to the server as
5539	// null. It is an error if a field in this list has a non-empty value.
5540	// This may be used to include null fields in Patch requests.
5541	NullFields []string `json:"-"`
5542}
5543
5544func (s *GoogleCloudApigeeV1ListTraceConfigOverridesResponse) MarshalJSON() ([]byte, error) {
5545	type NoMethod GoogleCloudApigeeV1ListTraceConfigOverridesResponse
5546	raw := NoMethod(*s)
5547	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5548}
5549
5550// GoogleCloudApigeeV1Metadata: This message type encapsulates
5551// additional information about query execution.
5552type GoogleCloudApigeeV1Metadata struct {
5553	// Errors: List of error messages as strings.
5554	Errors []string `json:"errors,omitempty"`
5555
5556	// Notices: List of additional information such as data source, if
5557	// result was truncated etc. E.g "notices": [ "Source:Postgres", "PG
5558	// Host:uappg0rw.e2e.apigeeks.net", "query served
5559	// by:4b64601e-40de-4eb1-bfb9-eeee7ac929ed", "Table used:
5560	// edge.api.uapgroup2.agg_api" ]
5561	Notices []string `json:"notices,omitempty"`
5562
5563	// ForceSendFields is a list of field names (e.g. "Errors") to
5564	// unconditionally include in API requests. By default, fields with
5565	// empty values are omitted from API requests. However, any non-pointer,
5566	// non-interface field appearing in ForceSendFields will be sent to the
5567	// server regardless of whether the field is empty or not. This may be
5568	// used to include empty fields in Patch requests.
5569	ForceSendFields []string `json:"-"`
5570
5571	// NullFields is a list of field names (e.g. "Errors") to include in API
5572	// requests with the JSON null value. By default, fields with empty
5573	// values are omitted from API requests. However, any field with an
5574	// empty value appearing in NullFields will be sent to the server as
5575	// null. It is an error if a field in this list has a non-empty value.
5576	// This may be used to include null fields in Patch requests.
5577	NullFields []string `json:"-"`
5578}
5579
5580func (s *GoogleCloudApigeeV1Metadata) MarshalJSON() ([]byte, error) {
5581	type NoMethod GoogleCloudApigeeV1Metadata
5582	raw := NoMethod(*s)
5583	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5584}
5585
5586// GoogleCloudApigeeV1Metric: This message type encapsulates the metric
5587// data point. Example: { "name": "sum(message_count)", "values" : [ {
5588// "timestamp": 1549004400000, "value": "39.0" }, { "timestamp" :
5589// 1548997200000, "value" : "0.0" } ] } or { "name":
5590// "sum(message_count)", "values" : ["39.0"] }
5591type GoogleCloudApigeeV1Metric struct {
5592	// Name: This field contains the metric name.
5593	Name string `json:"name,omitempty"`
5594
5595	// Values: List of metric values. Possible value format:
5596	// "values":["39.0"] or "values":[ { "value": "39.0", "timestamp":
5597	// 1232434354} ]
5598	Values []interface{} `json:"values,omitempty"`
5599
5600	// ForceSendFields is a list of field names (e.g. "Name") to
5601	// unconditionally include in API requests. By default, fields with
5602	// empty values are omitted from API requests. However, any non-pointer,
5603	// non-interface field appearing in ForceSendFields will be sent to the
5604	// server regardless of whether the field is empty or not. This may be
5605	// used to include empty fields in Patch requests.
5606	ForceSendFields []string `json:"-"`
5607
5608	// NullFields is a list of field names (e.g. "Name") to include in API
5609	// requests with the JSON null value. By default, fields with empty
5610	// values are omitted from API requests. However, any field with an
5611	// empty value appearing in NullFields will be sent to the server as
5612	// null. It is an error if a field in this list has a non-empty value.
5613	// This may be used to include null fields in Patch requests.
5614	NullFields []string `json:"-"`
5615}
5616
5617func (s *GoogleCloudApigeeV1Metric) MarshalJSON() ([]byte, error) {
5618	type NoMethod GoogleCloudApigeeV1Metric
5619	raw := NoMethod(*s)
5620	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5621}
5622
5623// GoogleCloudApigeeV1MonetizationConfig: Configuration for the
5624// Monetization add-on.
5625type GoogleCloudApigeeV1MonetizationConfig struct {
5626	// Enabled: Flag that specifies whether the Monetization add-on is
5627	// enabled.
5628	Enabled bool `json:"enabled,omitempty"`
5629
5630	// ForceSendFields is a list of field names (e.g. "Enabled") to
5631	// unconditionally include in API requests. By default, fields with
5632	// empty values are omitted from API requests. However, any non-pointer,
5633	// non-interface field appearing in ForceSendFields will be sent to the
5634	// server regardless of whether the field is empty or not. This may be
5635	// used to include empty fields in Patch requests.
5636	ForceSendFields []string `json:"-"`
5637
5638	// NullFields is a list of field names (e.g. "Enabled") to include in
5639	// API requests with the JSON null value. By default, fields with empty
5640	// values are omitted from API requests. However, any field with an
5641	// empty value appearing in NullFields will be sent to the server as
5642	// null. It is an error if a field in this list has a non-empty value.
5643	// This may be used to include null fields in Patch requests.
5644	NullFields []string `json:"-"`
5645}
5646
5647func (s *GoogleCloudApigeeV1MonetizationConfig) MarshalJSON() ([]byte, error) {
5648	type NoMethod GoogleCloudApigeeV1MonetizationConfig
5649	raw := NoMethod(*s)
5650	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5651}
5652
5653// GoogleCloudApigeeV1NatAddress: Apigee NAT(network address
5654// translation) address. A NAT address is a static external IP address
5655// used for Internet egress traffic.
5656type GoogleCloudApigeeV1NatAddress struct {
5657	// IpAddress: Output only. The static IPV4 address.
5658	IpAddress string `json:"ipAddress,omitempty"`
5659
5660	// Name: Required. Resource ID of the NAT address.
5661	Name string `json:"name,omitempty"`
5662
5663	// State: Output only. State of the nat address.
5664	//
5665	// Possible values:
5666	//   "STATE_UNSPECIFIED" - The resource is in an unspecified state.
5667	//   "CREATING" - The NAT address is being created.
5668	//   "RESERVED" - The NAT address is reserved but not yet used for
5669	// Internet egress.
5670	//   "ACTIVE" - The NAT address is active and used for Internet egress.
5671	//   "DELETING" - The NAT address is being deleted.
5672	State string `json:"state,omitempty"`
5673
5674	// ServerResponse contains the HTTP response code and headers from the
5675	// server.
5676	googleapi.ServerResponse `json:"-"`
5677
5678	// ForceSendFields is a list of field names (e.g. "IpAddress") to
5679	// unconditionally include in API requests. By default, fields with
5680	// empty values are omitted from API requests. However, any non-pointer,
5681	// non-interface field appearing in ForceSendFields will be sent to the
5682	// server regardless of whether the field is empty or not. This may be
5683	// used to include empty fields in Patch requests.
5684	ForceSendFields []string `json:"-"`
5685
5686	// NullFields is a list of field names (e.g. "IpAddress") to include in
5687	// API requests with the JSON null value. By default, fields with empty
5688	// values are omitted from API requests. However, any field with an
5689	// empty value appearing in NullFields will be sent to the server as
5690	// null. It is an error if a field in this list has a non-empty value.
5691	// This may be used to include null fields in Patch requests.
5692	NullFields []string `json:"-"`
5693}
5694
5695func (s *GoogleCloudApigeeV1NatAddress) MarshalJSON() ([]byte, error) {
5696	type NoMethod GoogleCloudApigeeV1NatAddress
5697	raw := NoMethod(*s)
5698	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5699}
5700
5701// GoogleCloudApigeeV1Operation: Represents the pairing of REST resource
5702// path and the actions (verbs) allowed on the resource path.
5703type GoogleCloudApigeeV1Operation struct {
5704	// Methods: methods refers to the REST verbs as in
5705	// https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html. When none
5706	// specified, all verb types are allowed.
5707	Methods []string `json:"methods,omitempty"`
5708
5709	// Resource: Required. REST resource path associated with the API proxy
5710	// or remote service.
5711	Resource string `json:"resource,omitempty"`
5712
5713	// ForceSendFields is a list of field names (e.g. "Methods") to
5714	// unconditionally include in API requests. By default, fields with
5715	// empty values are omitted from API requests. However, any non-pointer,
5716	// non-interface field appearing in ForceSendFields will be sent to the
5717	// server regardless of whether the field is empty or not. This may be
5718	// used to include empty fields in Patch requests.
5719	ForceSendFields []string `json:"-"`
5720
5721	// NullFields is a list of field names (e.g. "Methods") to include in
5722	// API requests with the JSON null value. By default, fields with empty
5723	// values are omitted from API requests. However, any field with an
5724	// empty value appearing in NullFields will be sent to the server as
5725	// null. It is an error if a field in this list has a non-empty value.
5726	// This may be used to include null fields in Patch requests.
5727	NullFields []string `json:"-"`
5728}
5729
5730func (s *GoogleCloudApigeeV1Operation) MarshalJSON() ([]byte, error) {
5731	type NoMethod GoogleCloudApigeeV1Operation
5732	raw := NoMethod(*s)
5733	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5734}
5735
5736// GoogleCloudApigeeV1OperationConfig: Binds the resources in an API
5737// proxy or remote service with the allowed REST methods and associated
5738// quota enforcement.
5739type GoogleCloudApigeeV1OperationConfig struct {
5740	// ApiSource: Required. Name of the API proxy or remote service with
5741	// which the resources, methods, and quota are associated.
5742	ApiSource string `json:"apiSource,omitempty"`
5743
5744	// Attributes: Custom attributes associated with the operation.
5745	Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
5746
5747	// Operations: List of resource/method pairs for the API proxy or remote
5748	// service to which quota will applied. **Note**: Currently, you can
5749	// specify only a single resource/method pair. The call will fail if
5750	// more than one resource/method pair is provided.
5751	Operations []*GoogleCloudApigeeV1Operation `json:"operations,omitempty"`
5752
5753	// Quota: Quota parameters to be enforced for the resources, methods,
5754	// and API source combination. If none are specified, quota enforcement
5755	// will not be done.
5756	Quota *GoogleCloudApigeeV1Quota `json:"quota,omitempty"`
5757
5758	// ForceSendFields is a list of field names (e.g. "ApiSource") to
5759	// unconditionally include in API requests. By default, fields with
5760	// empty values are omitted from API requests. However, any non-pointer,
5761	// non-interface field appearing in ForceSendFields will be sent to the
5762	// server regardless of whether the field is empty or not. This may be
5763	// used to include empty fields in Patch requests.
5764	ForceSendFields []string `json:"-"`
5765
5766	// NullFields is a list of field names (e.g. "ApiSource") to include in
5767	// API requests with the JSON null value. By default, fields with empty
5768	// values are omitted from API requests. However, any field with an
5769	// empty value appearing in NullFields will be sent to the server as
5770	// null. It is an error if a field in this list has a non-empty value.
5771	// This may be used to include null fields in Patch requests.
5772	NullFields []string `json:"-"`
5773}
5774
5775func (s *GoogleCloudApigeeV1OperationConfig) MarshalJSON() ([]byte, error) {
5776	type NoMethod GoogleCloudApigeeV1OperationConfig
5777	raw := NoMethod(*s)
5778	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5779}
5780
5781// GoogleCloudApigeeV1OperationGroup: List of operation configuration
5782// details associated with Apigee API proxies or remote services. Remote
5783// services are non-Apigee proxies, such as Istio-Envoy.
5784type GoogleCloudApigeeV1OperationGroup struct {
5785	// OperationConfigType: Flag that specifes whether the configuration is
5786	// for Apigee API proxy or a remote service. Valid values include
5787	// `proxy` or `remoteservice`. Defaults to `proxy`. Set to `proxy` when
5788	// Apigee API proxies are associated with the API product. Set to
5789	// `remoteservice` when non-Apigee proxies like Istio-Envoy are
5790	// associated with the API product.
5791	OperationConfigType string `json:"operationConfigType,omitempty"`
5792
5793	// OperationConfigs: Required. List of operation configurations for
5794	// either Apigee API proxies or other remote services that are
5795	// associated with this API product.
5796	OperationConfigs []*GoogleCloudApigeeV1OperationConfig `json:"operationConfigs,omitempty"`
5797
5798	// ForceSendFields is a list of field names (e.g. "OperationConfigType")
5799	// to unconditionally include in API requests. By default, fields with
5800	// empty values are omitted from API requests. However, any non-pointer,
5801	// non-interface field appearing in ForceSendFields will be sent to the
5802	// server regardless of whether the field is empty or not. This may be
5803	// used to include empty fields in Patch requests.
5804	ForceSendFields []string `json:"-"`
5805
5806	// NullFields is a list of field names (e.g. "OperationConfigType") to
5807	// include in API requests with the JSON null value. By default, fields
5808	// with empty values are omitted from API requests. However, any field
5809	// with an empty value appearing in NullFields will be sent to the
5810	// server as null. It is an error if a field in this list has a
5811	// non-empty value. This may be used to include null fields in Patch
5812	// requests.
5813	NullFields []string `json:"-"`
5814}
5815
5816func (s *GoogleCloudApigeeV1OperationGroup) MarshalJSON() ([]byte, error) {
5817	type NoMethod GoogleCloudApigeeV1OperationGroup
5818	raw := NoMethod(*s)
5819	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5820}
5821
5822// GoogleCloudApigeeV1OperationMetadata: Metadata describing an
5823// Operation.
5824type GoogleCloudApigeeV1OperationMetadata struct {
5825	// Possible values:
5826	//   "OPERATION_TYPE_UNSPECIFIED"
5827	//   "INSERT"
5828	//   "DELETE"
5829	//   "UPDATE"
5830	OperationType string `json:"operationType,omitempty"`
5831
5832	// Progress: Progress of the operation.
5833	Progress *GoogleCloudApigeeV1OperationMetadataProgress `json:"progress,omitempty"`
5834
5835	// Possible values:
5836	//   "STATE_UNSPECIFIED"
5837	//   "NOT_STARTED"
5838	//   "IN_PROGRESS"
5839	//   "FINISHED"
5840	State string `json:"state,omitempty"`
5841
5842	// TargetResourceName: Name of the resource for which the operation is
5843	// operating on.
5844	TargetResourceName string `json:"targetResourceName,omitempty"`
5845
5846	// ForceSendFields is a list of field names (e.g. "OperationType") to
5847	// unconditionally include in API requests. By default, fields with
5848	// empty values are omitted from API requests. However, any non-pointer,
5849	// non-interface field appearing in ForceSendFields will be sent to the
5850	// server regardless of whether the field is empty or not. This may be
5851	// used to include empty fields in Patch requests.
5852	ForceSendFields []string `json:"-"`
5853
5854	// NullFields is a list of field names (e.g. "OperationType") to include
5855	// in API requests with the JSON null value. By default, fields with
5856	// empty values are omitted from API requests. However, any field with
5857	// an empty value appearing in NullFields will be sent to the server as
5858	// null. It is an error if a field in this list has a non-empty value.
5859	// This may be used to include null fields in Patch requests.
5860	NullFields []string `json:"-"`
5861}
5862
5863func (s *GoogleCloudApigeeV1OperationMetadata) MarshalJSON() ([]byte, error) {
5864	type NoMethod GoogleCloudApigeeV1OperationMetadata
5865	raw := NoMethod(*s)
5866	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5867}
5868
5869// GoogleCloudApigeeV1OperationMetadataProgress: Information about
5870// operation progress.
5871type GoogleCloudApigeeV1OperationMetadataProgress struct {
5872	// Description: Description of the operation's progress.
5873	Description string `json:"description,omitempty"`
5874
5875	// Details: The additional details of the progress.
5876	Details googleapi.RawMessage `json:"details,omitempty"`
5877
5878	// PercentDone: The percentage of the operation progress.
5879	PercentDone int64 `json:"percentDone,omitempty"`
5880
5881	// State: State of the operation.
5882	//
5883	// Possible values:
5884	//   "STATE_UNSPECIFIED"
5885	//   "NOT_STARTED"
5886	//   "IN_PROGRESS"
5887	//   "FINISHED"
5888	State string `json:"state,omitempty"`
5889
5890	// ForceSendFields is a list of field names (e.g. "Description") to
5891	// unconditionally include in API requests. By default, fields with
5892	// empty values are omitted from API requests. However, any non-pointer,
5893	// non-interface field appearing in ForceSendFields will be sent to the
5894	// server regardless of whether the field is empty or not. This may be
5895	// used to include empty fields in Patch requests.
5896	ForceSendFields []string `json:"-"`
5897
5898	// NullFields is a list of field names (e.g. "Description") to include
5899	// in API requests with the JSON null value. By default, fields with
5900	// empty values are omitted from API requests. However, any field with
5901	// an empty value appearing in NullFields will be sent to the server as
5902	// null. It is an error if a field in this list has a non-empty value.
5903	// This may be used to include null fields in Patch requests.
5904	NullFields []string `json:"-"`
5905}
5906
5907func (s *GoogleCloudApigeeV1OperationMetadataProgress) MarshalJSON() ([]byte, error) {
5908	type NoMethod GoogleCloudApigeeV1OperationMetadataProgress
5909	raw := NoMethod(*s)
5910	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5911}
5912
5913type GoogleCloudApigeeV1OptimizedStats struct {
5914	// Response: This field wraps the stats response for Js Optimized
5915	// Scenario with a Response key. E.g. { "Response": { "TimeUnit": [],
5916	// "metaData": { "errors": [], "notices": [ "Source:Postgres", "Table
5917	// used: edge.api.aaxgroup001.agg_api", "PG
5918	// Host:ruappg08-ro.production.apigeeks.net", "query served
5919	// by:80c4ebca-6a10-4a2e-8faf-c60c1ee306ca" ] }, "resultTruncated":
5920	// false, "stats": { "data": [ { "identifier": { "names": [ "apiproxy"
5921	// ], "values": [ "sirjee" ] }, "metric": [ { "env": "prod", "name":
5922	// "sum(message_count)", "values": [ 36.0 ] }, { "env": "prod", "name":
5923	// "sum(is_error)", "values": [ 36.0 ] } ] } ] } } }
5924	Response *GoogleCloudApigeeV1OptimizedStatsResponse `json:"Response,omitempty"`
5925
5926	// ServerResponse contains the HTTP response code and headers from the
5927	// server.
5928	googleapi.ServerResponse `json:"-"`
5929
5930	// ForceSendFields is a list of field names (e.g. "Response") to
5931	// unconditionally include in API requests. By default, fields with
5932	// empty values are omitted from API requests. However, any non-pointer,
5933	// non-interface field appearing in ForceSendFields will be sent to the
5934	// server regardless of whether the field is empty or not. This may be
5935	// used to include empty fields in Patch requests.
5936	ForceSendFields []string `json:"-"`
5937
5938	// NullFields is a list of field names (e.g. "Response") to include in
5939	// API requests with the JSON null value. By default, fields with empty
5940	// values are omitted from API requests. However, any field with an
5941	// empty value appearing in NullFields will be sent to the server as
5942	// null. It is an error if a field in this list has a non-empty value.
5943	// This may be used to include null fields in Patch requests.
5944	NullFields []string `json:"-"`
5945}
5946
5947func (s *GoogleCloudApigeeV1OptimizedStats) MarshalJSON() ([]byte, error) {
5948	type NoMethod GoogleCloudApigeeV1OptimizedStats
5949	raw := NoMethod(*s)
5950	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5951}
5952
5953// GoogleCloudApigeeV1OptimizedStatsNode: This message type encapsulates
5954// a data node as represented below: { "identifier": { "names": [
5955// "apiproxy" ], "values": [ "sirjee" ] }, "metric": [ { "env": "prod",
5956// "name": "sum(message_count)", "values": [ 36.0 ] } ] } OR { "env":
5957// "prod", "name": "sum(message_count)", "values": [ 36.0 ] } Depending
5958// on whether a dimension is present in the query or not the data node
5959// type can be a simple metric value or dimension identifier with list
5960// of metrics.
5961type GoogleCloudApigeeV1OptimizedStatsNode struct {
5962	Data []interface{} `json:"data,omitempty"`
5963
5964	// ForceSendFields is a list of field names (e.g. "Data") to
5965	// unconditionally include in API requests. By default, fields with
5966	// empty values are omitted from API requests. However, any non-pointer,
5967	// non-interface field appearing in ForceSendFields will be sent to the
5968	// server regardless of whether the field is empty or not. This may be
5969	// used to include empty fields in Patch requests.
5970	ForceSendFields []string `json:"-"`
5971
5972	// NullFields is a list of field names (e.g. "Data") to include in API
5973	// requests with the JSON null value. By default, fields with empty
5974	// values are omitted from API requests. However, any field with an
5975	// empty value appearing in NullFields will be sent to the server as
5976	// null. It is an error if a field in this list has a non-empty value.
5977	// This may be used to include null fields in Patch requests.
5978	NullFields []string `json:"-"`
5979}
5980
5981func (s *GoogleCloudApigeeV1OptimizedStatsNode) MarshalJSON() ([]byte, error) {
5982	type NoMethod GoogleCloudApigeeV1OptimizedStatsNode
5983	raw := NoMethod(*s)
5984	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5985}
5986
5987// GoogleCloudApigeeV1OptimizedStatsResponse: This message type
5988// encapsulates a response format for Js Optimized Scenario.
5989type GoogleCloudApigeeV1OptimizedStatsResponse struct {
5990	// TimeUnit: This field contains a list of time unit values. Time unit
5991	// refers to an epoch timestamp value.
5992	TimeUnit googleapi.Int64s `json:"TimeUnit,omitempty"`
5993
5994	// MetaData: This field contains metadata information about the query
5995	// executed
5996	MetaData *GoogleCloudApigeeV1Metadata `json:"metaData,omitempty"`
5997
5998	// ResultTruncated: This ia a boolean field to indicate if the results
5999	// were truncated based on the limit parameter.
6000	ResultTruncated bool `json:"resultTruncated,omitempty"`
6001
6002	// Stats: This field contains a stats results.
6003	Stats *GoogleCloudApigeeV1OptimizedStatsNode `json:"stats,omitempty"`
6004
6005	// ForceSendFields is a list of field names (e.g. "TimeUnit") to
6006	// unconditionally include in API requests. By default, fields with
6007	// empty values are omitted from API requests. However, any non-pointer,
6008	// non-interface field appearing in ForceSendFields will be sent to the
6009	// server regardless of whether the field is empty or not. This may be
6010	// used to include empty fields in Patch requests.
6011	ForceSendFields []string `json:"-"`
6012
6013	// NullFields is a list of field names (e.g. "TimeUnit") to include in
6014	// API requests with the JSON null value. By default, fields with empty
6015	// values are omitted from API requests. However, any field with an
6016	// empty value appearing in NullFields will be sent to the server as
6017	// null. It is an error if a field in this list has a non-empty value.
6018	// This may be used to include null fields in Patch requests.
6019	NullFields []string `json:"-"`
6020}
6021
6022func (s *GoogleCloudApigeeV1OptimizedStatsResponse) MarshalJSON() ([]byte, error) {
6023	type NoMethod GoogleCloudApigeeV1OptimizedStatsResponse
6024	raw := NoMethod(*s)
6025	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6026}
6027
6028type GoogleCloudApigeeV1Organization struct {
6029	// AddonsConfig: Addon configurations of the Apigee organization.
6030	AddonsConfig *GoogleCloudApigeeV1AddonsConfig `json:"addonsConfig,omitempty"`
6031
6032	// AnalyticsRegion: Required. Primary GCP region for analytics data
6033	// storage. For valid values, see Create an Apigee organization
6034	// (https://cloud.google.com/apigee/docs/api-platform/get-started/create-org).
6035	AnalyticsRegion string `json:"analyticsRegion,omitempty"`
6036
6037	// Attributes: Not used by Apigee.
6038	Attributes []string `json:"attributes,omitempty"`
6039
6040	// AuthorizedNetwork: Compute Engine network used for Service Networking
6041	// to be peered with Apigee runtime instances. See Getting started with
6042	// the Service Networking API
6043	// (https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started).
6044	// Valid only when RuntimeType (#RuntimeType) is set to `CLOUD`. The
6045	// value must be set before the creation of a runtime instance and can
6046	// be updated only when there are no runtime instances. For example:
6047	// `default`. Apigee also supports shared VPC (that is, the host network
6048	// project is not the same as the one that is peering with Apigee). See
6049	// Shared VPC overview (https://cloud.google.com/vpc/docs/shared-vpc).
6050	// To use a shared VPC network, use the following format:
6051	// `projects/{host-project-id}/{region}/networks/{network-name}`. For
6052	// example: `projects/my-sharedvpc-host/global/networks/mynetwork`
6053	// **Note:** Not supported for Apigee hybrid.
6054	AuthorizedNetwork string `json:"authorizedNetwork,omitempty"`
6055
6056	// BillingType: Billing type of the Apigee organization. See Apigee
6057	// pricing (https://cloud.google.com/apigee/pricing).
6058	//
6059	// Possible values:
6060	//   "BILLING_TYPE_UNSPECIFIED" - Billing type not specified.
6061	//   "SUBSCRIPTION" - A pre-paid subscription to Apigee.
6062	//   "EVALUATION" - Free and limited access to Apigee for evaluation
6063	// purposes only. only.
6064	BillingType string `json:"billingType,omitempty"`
6065
6066	// CaCertificate: Output only. Base64-encoded public certificate for the
6067	// root CA of the Apigee organization. Valid only when RuntimeType
6068	// (#RuntimeType) is `CLOUD`.
6069	CaCertificate string `json:"caCertificate,omitempty"`
6070
6071	// CreatedAt: Output only. Time that the Apigee organization was created
6072	// in milliseconds since epoch.
6073	CreatedAt int64 `json:"createdAt,omitempty,string"`
6074
6075	// CustomerName: Not used by Apigee.
6076	CustomerName string `json:"customerName,omitempty"`
6077
6078	// Description: Description of the Apigee organization.
6079	Description string `json:"description,omitempty"`
6080
6081	DisplayName string `json:"displayName,omitempty"`
6082
6083	// Environments: Output only. List of environments in the Apigee
6084	// organization.
6085	Environments []string `json:"environments,omitempty"`
6086
6087	// ExpiresAt: Output only. Time that the Apigee organization is
6088	// scheduled for deletion.
6089	ExpiresAt int64 `json:"expiresAt,omitempty,string"`
6090
6091	// LastModifiedAt: Output only. Time that the Apigee organization was
6092	// last modified in milliseconds since epoch.
6093	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
6094
6095	// Name: Output only. Name of the Apigee organization.
6096	Name string `json:"name,omitempty"`
6097
6098	// ProjectId: Output only. Project ID associated with the Apigee
6099	// organization.
6100	ProjectId string `json:"projectId,omitempty"`
6101
6102	// Properties: Properties defined in the Apigee organization profile.
6103	Properties *GoogleCloudApigeeV1Properties `json:"properties,omitempty"`
6104
6105	// RuntimeDatabaseEncryptionKeyName: Cloud KMS key name used for
6106	// encrypting the data that is stored and replicated across runtime
6107	// instances. Update is not allowed after the organization is created.
6108	// Required when RuntimeType (#RuntimeType) is `CLOUD`. If not specified
6109	// when RuntimeType (#RuntimeType) is `TRIAL`, a Google-Managed
6110	// encryption key will be used. For example:
6111	// "projects/foo/locations/us/keyRings/bar/cryptoKeys/baz". **Note:**
6112	// Not supported for Apigee hybrid.
6113	RuntimeDatabaseEncryptionKeyName string `json:"runtimeDatabaseEncryptionKeyName,omitempty"`
6114
6115	// RuntimeType: Required. Runtime type of the Apigee organization based
6116	// on the Apigee subscription purchased.
6117	//
6118	// Possible values:
6119	//   "RUNTIME_TYPE_UNSPECIFIED" - Runtime type not specified.
6120	//   "CLOUD" - Google-managed Apigee runtime.
6121	//   "HYBRID" - User-managed Apigee hybrid runtime.
6122	RuntimeType string `json:"runtimeType,omitempty"`
6123
6124	// State: Output only. State of the organization. Values other than
6125	// ACTIVE means the resource is not ready to use.
6126	//
6127	// Possible values:
6128	//   "STATE_UNSPECIFIED" - Resource is in an unspecified state.
6129	//   "CREATING" - Resource is being created.
6130	//   "ACTIVE" - Resource is provisioned and ready to use.
6131	//   "DELETING" - The resource is being deleted.
6132	//   "UPDATING" - The resource is being updated.
6133	State string `json:"state,omitempty"`
6134
6135	// SubscriptionType: Output only. DEPRECATED: This will eventually be
6136	// replaced by BillingType. Subscription type of the Apigee
6137	// organization. Valid values include trial (free, limited, and for
6138	// evaluation purposes only) or paid (full subscription has been
6139	// purchased). See Apigee pricing
6140	// (https://cloud.google.com/apigee/pricing/).
6141	//
6142	// Possible values:
6143	//   "SUBSCRIPTION_TYPE_UNSPECIFIED" - Subscription type not specified.
6144	//   "PAID" - Full subscription to Apigee has been purchased.
6145	//   "TRIAL" - Subscription to Apigee is free, limited, and used for
6146	// evaluation purposes only.
6147	SubscriptionType string `json:"subscriptionType,omitempty"`
6148
6149	// Type: Not used by Apigee.
6150	//
6151	// Possible values:
6152	//   "TYPE_UNSPECIFIED" - Subscription type not specified.
6153	//   "TYPE_TRIAL" - Subscription to Apigee is free, limited, and used
6154	// for evaluation purposes only.
6155	//   "TYPE_PAID" - Full subscription to Apigee has been purchased. See
6156	// [Apigee pricing](https://cloud.google.com/apigee/pricing/).
6157	//   "TYPE_INTERNAL" - For internal users only.
6158	Type string `json:"type,omitempty"`
6159
6160	// ServerResponse contains the HTTP response code and headers from the
6161	// server.
6162	googleapi.ServerResponse `json:"-"`
6163
6164	// ForceSendFields is a list of field names (e.g. "AddonsConfig") to
6165	// unconditionally include in API requests. By default, fields with
6166	// empty values are omitted from API requests. However, any non-pointer,
6167	// non-interface field appearing in ForceSendFields will be sent to the
6168	// server regardless of whether the field is empty or not. This may be
6169	// used to include empty fields in Patch requests.
6170	ForceSendFields []string `json:"-"`
6171
6172	// NullFields is a list of field names (e.g. "AddonsConfig") to include
6173	// in API requests with the JSON null value. By default, fields with
6174	// empty values are omitted from API requests. However, any field with
6175	// an empty value appearing in NullFields will be sent to the server as
6176	// null. It is an error if a field in this list has a non-empty value.
6177	// This may be used to include null fields in Patch requests.
6178	NullFields []string `json:"-"`
6179}
6180
6181func (s *GoogleCloudApigeeV1Organization) MarshalJSON() ([]byte, error) {
6182	type NoMethod GoogleCloudApigeeV1Organization
6183	raw := NoMethod(*s)
6184	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6185}
6186
6187type GoogleCloudApigeeV1OrganizationProjectMapping struct {
6188	// Organization: Name of the Apigee organization.
6189	Organization string `json:"organization,omitempty"`
6190
6191	// ProjectIds: List of GCP projects associated with the Apigee
6192	// organization.
6193	ProjectIds []string `json:"projectIds,omitempty"`
6194
6195	// ForceSendFields is a list of field names (e.g. "Organization") to
6196	// unconditionally include in API requests. By default, fields with
6197	// empty values are omitted from API requests. However, any non-pointer,
6198	// non-interface field appearing in ForceSendFields will be sent to the
6199	// server regardless of whether the field is empty or not. This may be
6200	// used to include empty fields in Patch requests.
6201	ForceSendFields []string `json:"-"`
6202
6203	// NullFields is a list of field names (e.g. "Organization") to include
6204	// in API requests with the JSON null value. By default, fields with
6205	// empty values are omitted from API requests. However, any field with
6206	// an empty value appearing in NullFields will be sent to the server as
6207	// null. It is an error if a field in this list has a non-empty value.
6208	// This may be used to include null fields in Patch requests.
6209	NullFields []string `json:"-"`
6210}
6211
6212func (s *GoogleCloudApigeeV1OrganizationProjectMapping) MarshalJSON() ([]byte, error) {
6213	type NoMethod GoogleCloudApigeeV1OrganizationProjectMapping
6214	raw := NoMethod(*s)
6215	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6216}
6217
6218type GoogleCloudApigeeV1PodStatus struct {
6219	// AppVersion: Version of the application running in the pod.
6220	AppVersion string `json:"appVersion,omitempty"`
6221
6222	// DeploymentStatus: Status of the deployment. Valid values include: -
6223	// `deployed`: Successful. - `error` : Failed. - `pending` : Pod has not
6224	// yet reported on the deployment.
6225	DeploymentStatus string `json:"deploymentStatus,omitempty"`
6226
6227	// DeploymentStatusTime: Time the deployment status was reported in
6228	// milliseconds since epoch.
6229	DeploymentStatusTime int64 `json:"deploymentStatusTime,omitempty,string"`
6230
6231	// DeploymentTime: Time the proxy was deployed in milliseconds since
6232	// epoch.
6233	DeploymentTime int64 `json:"deploymentTime,omitempty,string"`
6234
6235	// PodName: Name of the pod which is reporting the status.
6236	PodName string `json:"podName,omitempty"`
6237
6238	// PodStatus: Overall status of the pod (not this specific deployment).
6239	// Valid values include: - `active`: Up to date. - `stale` : Recently
6240	// out of date. Pods that have not reported status in a long time are
6241	// excluded from the output.
6242	PodStatus string `json:"podStatus,omitempty"`
6243
6244	// PodStatusTime: Time the pod status was reported in milliseconds since
6245	// epoch.
6246	PodStatusTime int64 `json:"podStatusTime,omitempty,string"`
6247
6248	// StatusCode: Code associated with the deployment status.
6249	StatusCode string `json:"statusCode,omitempty"`
6250
6251	// StatusCodeDetails: Human-readable message associated with the status
6252	// code.
6253	StatusCodeDetails string `json:"statusCodeDetails,omitempty"`
6254
6255	// ForceSendFields is a list of field names (e.g. "AppVersion") to
6256	// unconditionally include in API requests. By default, fields with
6257	// empty values are omitted from API requests. However, any non-pointer,
6258	// non-interface field appearing in ForceSendFields will be sent to the
6259	// server regardless of whether the field is empty or not. This may be
6260	// used to include empty fields in Patch requests.
6261	ForceSendFields []string `json:"-"`
6262
6263	// NullFields is a list of field names (e.g. "AppVersion") to include in
6264	// API requests with the JSON null value. By default, fields with empty
6265	// values are omitted from API requests. However, any field with an
6266	// empty value appearing in NullFields will be sent to the server as
6267	// null. It is an error if a field in this list has a non-empty value.
6268	// This may be used to include null fields in Patch requests.
6269	NullFields []string `json:"-"`
6270}
6271
6272func (s *GoogleCloudApigeeV1PodStatus) MarshalJSON() ([]byte, error) {
6273	type NoMethod GoogleCloudApigeeV1PodStatus
6274	raw := NoMethod(*s)
6275	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6276}
6277
6278// GoogleCloudApigeeV1Point: Point is a group of information collected
6279// by runtime plane at critical points of the message flow of the
6280// processed API request. This is a list of supported point IDs,
6281// categorized to three major buckets. For each category, debug points
6282// that we are currently supporting are listed below: - Flow status
6283// debug points: StateChange FlowInfo Condition Execution DebugMask
6284// Error - Flow control debug points: FlowCallout Paused Resumed
6285// FlowReturn BreakFlow Error - Runtime debug points: ScriptExecutor
6286// FlowCalloutStepDefinition CustomTarget StepDefinition
6287// Oauth2ServicePoint RaiseFault NodeJS The detail information of the
6288// given debug point is stored in a list of results.
6289type GoogleCloudApigeeV1Point struct {
6290	// Id: Name of a step in the transaction.
6291	Id string `json:"id,omitempty"`
6292
6293	// Results: List of results extracted from a given debug point.
6294	Results []*GoogleCloudApigeeV1Result `json:"results,omitempty"`
6295
6296	// ForceSendFields is a list of field names (e.g. "Id") to
6297	// unconditionally include in API requests. By default, fields with
6298	// empty values are omitted from API requests. However, any non-pointer,
6299	// non-interface field appearing in ForceSendFields will be sent to the
6300	// server regardless of whether the field is empty or not. This may be
6301	// used to include empty fields in Patch requests.
6302	ForceSendFields []string `json:"-"`
6303
6304	// NullFields is a list of field names (e.g. "Id") to include in API
6305	// requests with the JSON null value. By default, fields with empty
6306	// values are omitted from API requests. However, any field with an
6307	// empty value appearing in NullFields will be sent to the server as
6308	// null. It is an error if a field in this list has a non-empty value.
6309	// This may be used to include null fields in Patch requests.
6310	NullFields []string `json:"-"`
6311}
6312
6313func (s *GoogleCloudApigeeV1Point) MarshalJSON() ([]byte, error) {
6314	type NoMethod GoogleCloudApigeeV1Point
6315	raw := NoMethod(*s)
6316	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6317}
6318
6319// GoogleCloudApigeeV1Properties: Message for compatibility with legacy
6320// Edge specification for Java Properties object in JSON.
6321type GoogleCloudApigeeV1Properties struct {
6322	// Property: List of all properties in the object
6323	Property []*GoogleCloudApigeeV1Property `json:"property,omitempty"`
6324
6325	// ForceSendFields is a list of field names (e.g. "Property") to
6326	// unconditionally include in API requests. By default, fields with
6327	// empty values are omitted from API requests. However, any non-pointer,
6328	// non-interface field appearing in ForceSendFields will be sent to the
6329	// server regardless of whether the field is empty or not. This may be
6330	// used to include empty fields in Patch requests.
6331	ForceSendFields []string `json:"-"`
6332
6333	// NullFields is a list of field names (e.g. "Property") to include in
6334	// API requests with the JSON null value. By default, fields with empty
6335	// values are omitted from API requests. However, any field with an
6336	// empty value appearing in NullFields will be sent to the server as
6337	// null. It is an error if a field in this list has a non-empty value.
6338	// This may be used to include null fields in Patch requests.
6339	NullFields []string `json:"-"`
6340}
6341
6342func (s *GoogleCloudApigeeV1Properties) MarshalJSON() ([]byte, error) {
6343	type NoMethod GoogleCloudApigeeV1Properties
6344	raw := NoMethod(*s)
6345	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6346}
6347
6348// GoogleCloudApigeeV1Property: A single property entry in the
6349// Properties message.
6350type GoogleCloudApigeeV1Property struct {
6351	// Name: The property key
6352	Name string `json:"name,omitempty"`
6353
6354	// Value: The property value
6355	Value string `json:"value,omitempty"`
6356
6357	// ForceSendFields is a list of field names (e.g. "Name") to
6358	// unconditionally include in API requests. By default, fields with
6359	// empty values are omitted from API requests. However, any non-pointer,
6360	// non-interface field appearing in ForceSendFields will be sent to the
6361	// server regardless of whether the field is empty or not. This may be
6362	// used to include empty fields in Patch requests.
6363	ForceSendFields []string `json:"-"`
6364
6365	// NullFields is a list of field names (e.g. "Name") to include in API
6366	// requests with the JSON null value. By default, fields with empty
6367	// values are omitted from API requests. However, any field with an
6368	// empty value appearing in NullFields will be sent to the server as
6369	// null. It is an error if a field in this list has a non-empty value.
6370	// This may be used to include null fields in Patch requests.
6371	NullFields []string `json:"-"`
6372}
6373
6374func (s *GoogleCloudApigeeV1Property) MarshalJSON() ([]byte, error) {
6375	type NoMethod GoogleCloudApigeeV1Property
6376	raw := NoMethod(*s)
6377	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6378}
6379
6380// GoogleCloudApigeeV1ProvisionOrganizationRequest: Request for
6381// ProvisionOrganization.
6382type GoogleCloudApigeeV1ProvisionOrganizationRequest struct {
6383	// AnalyticsRegion: Primary Cloud Platform region for analytics data
6384	// storage. For valid values, see Create an organization
6385	// (https://cloud.google.com/apigee/docs/hybrid/latest/precog-provision).
6386	// Defaults to `us-west1`.
6387	AnalyticsRegion string `json:"analyticsRegion,omitempty"`
6388
6389	// AuthorizedNetwork: Name of the customer project's VPC network. If
6390	// provided, the network needs to be peered through Service Networking.
6391	// If none is provided, the organization will have access only to the
6392	// public internet.
6393	AuthorizedNetwork string `json:"authorizedNetwork,omitempty"`
6394
6395	// RuntimeLocation: Cloud Platform location for the runtime instance.
6396	// Defaults to zone `us-west1-a`. If a region is provided, `EVAL`
6397	// organizations will use the region for automatically selecting a zone
6398	// for the runtime instance.
6399	RuntimeLocation string `json:"runtimeLocation,omitempty"`
6400
6401	// ForceSendFields is a list of field names (e.g. "AnalyticsRegion") to
6402	// unconditionally include in API requests. By default, fields with
6403	// empty values are omitted from API requests. However, any non-pointer,
6404	// non-interface field appearing in ForceSendFields will be sent to the
6405	// server regardless of whether the field is empty or not. This may be
6406	// used to include empty fields in Patch requests.
6407	ForceSendFields []string `json:"-"`
6408
6409	// NullFields is a list of field names (e.g. "AnalyticsRegion") to
6410	// include in API requests with the JSON null value. By default, fields
6411	// with empty values are omitted from API requests. However, any field
6412	// with an empty value appearing in NullFields will be sent to the
6413	// server as null. It is an error if a field in this list has a
6414	// non-empty value. This may be used to include null fields in Patch
6415	// requests.
6416	NullFields []string `json:"-"`
6417}
6418
6419func (s *GoogleCloudApigeeV1ProvisionOrganizationRequest) MarshalJSON() ([]byte, error) {
6420	type NoMethod GoogleCloudApigeeV1ProvisionOrganizationRequest
6421	raw := NoMethod(*s)
6422	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6423}
6424
6425type GoogleCloudApigeeV1Query struct {
6426	// CsvDelimiter: Delimiter used in the CSV file, if `outputFormat` is
6427	// set to `csv`. Defaults to the `,` (comma) character. Supported
6428	// delimiter characters include comma (`,`), pipe (`|`), and tab (`\t`).
6429	CsvDelimiter string `json:"csvDelimiter,omitempty"`
6430
6431	// Dimensions: A list of dimensions.
6432	// https://docs.apigee.com/api-platform/analytics/analytics-reference#dimensions
6433	Dimensions []string `json:"dimensions,omitempty"`
6434
6435	// EnvgroupHostname: Hostname needs to be specified if query intends to
6436	// run at host level. This field is only allowed when query is submitted
6437	// by CreateHostAsyncQuery where analytics data will be grouped by
6438	// organization and hostname.
6439	EnvgroupHostname string `json:"envgroupHostname,omitempty"`
6440
6441	// Filter: Boolean expression that can be used to filter data. Filter
6442	// expressions can be combined using AND/OR terms and should be fully
6443	// parenthesized to avoid ambiguity. See Analytics metrics, dimensions,
6444	// and filters reference
6445	// https://docs.apigee.com/api-platform/analytics/analytics-reference
6446	// for more information on the fields available to filter on. For more
6447	// information on the tokens that you use to build filter expressions,
6448	// see Filter expression syntax.
6449	// https://docs.apigee.com/api-platform/analytics/asynch-reports-api#filter-expression-syntax
6450	Filter string `json:"filter,omitempty"`
6451
6452	// GroupByTimeUnit: Time unit used to group the result set. Valid values
6453	// include: second, minute, hour, day, week, or month. If a query
6454	// includes groupByTimeUnit, then the result is an aggregation based on
6455	// the specified time unit and the resultant timestamp does not include
6456	// milliseconds precision. If a query omits groupByTimeUnit, then the
6457	// resultant timestamp includes milliseconds precision.
6458	GroupByTimeUnit string `json:"groupByTimeUnit,omitempty"`
6459
6460	// Limit: Maximum number of rows that can be returned in the result.
6461	Limit int64 `json:"limit,omitempty"`
6462
6463	// Metrics: A list of Metrics.
6464	Metrics []*GoogleCloudApigeeV1QueryMetric `json:"metrics,omitempty"`
6465
6466	// Name: Asynchronous Query Name.
6467	Name string `json:"name,omitempty"`
6468
6469	// OutputFormat: Valid values include: `csv` or `json`. Defaults to
6470	// `json`. Note: Configure the delimiter for CSV output using the
6471	// csvDelimiter property.
6472	OutputFormat string `json:"outputFormat,omitempty"`
6473
6474	// ReportDefinitionId: Asynchronous Report ID.
6475	ReportDefinitionId string `json:"reportDefinitionId,omitempty"`
6476
6477	// TimeRange: Required. Time range for the query. Can use the following
6478	// predefined strings to specify the time range: `last60minutes`
6479	// `last24hours` `last7days` Or, specify the timeRange as a structure
6480	// describing start and end timestamps in the ISO format:
6481	// yyyy-mm-ddThh:mm:ssZ. Example: "timeRange": { "start":
6482	// "2018-07-29T00:13:00Z", "end": "2018-08-01T00:18:00Z" }
6483	TimeRange interface{} `json:"timeRange,omitempty"`
6484
6485	// ForceSendFields is a list of field names (e.g. "CsvDelimiter") to
6486	// unconditionally include in API requests. By default, fields with
6487	// empty values are omitted from API requests. However, any non-pointer,
6488	// non-interface field appearing in ForceSendFields will be sent to the
6489	// server regardless of whether the field is empty or not. This may be
6490	// used to include empty fields in Patch requests.
6491	ForceSendFields []string `json:"-"`
6492
6493	// NullFields is a list of field names (e.g. "CsvDelimiter") to include
6494	// in API requests with the JSON null value. By default, fields with
6495	// empty values are omitted from API requests. However, any field with
6496	// an empty value appearing in NullFields will be sent to the server as
6497	// null. It is an error if a field in this list has a non-empty value.
6498	// This may be used to include null fields in Patch requests.
6499	NullFields []string `json:"-"`
6500}
6501
6502func (s *GoogleCloudApigeeV1Query) MarshalJSON() ([]byte, error) {
6503	type NoMethod GoogleCloudApigeeV1Query
6504	raw := NoMethod(*s)
6505	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6506}
6507
6508type GoogleCloudApigeeV1QueryMetadata struct {
6509	// Dimensions: Dimensions of the AsyncQuery.
6510	Dimensions []string `json:"dimensions,omitempty"`
6511
6512	// EndTimestamp: End timestamp of the query range.
6513	EndTimestamp string `json:"endTimestamp,omitempty"`
6514
6515	// Metrics: Metrics of the AsyncQuery. Example:
6516	// ["name:message_count,func:sum,alias:sum_message_count"]
6517	Metrics []string `json:"metrics,omitempty"`
6518
6519	// OutputFormat: Output format.
6520	OutputFormat string `json:"outputFormat,omitempty"`
6521
6522	// StartTimestamp: Start timestamp of the query range.
6523	StartTimestamp string `json:"startTimestamp,omitempty"`
6524
6525	// TimeUnit: Query GroupBy time unit.
6526	TimeUnit string `json:"timeUnit,omitempty"`
6527
6528	// ForceSendFields is a list of field names (e.g. "Dimensions") to
6529	// unconditionally include in API requests. By default, fields with
6530	// empty values are omitted from API requests. However, any non-pointer,
6531	// non-interface field appearing in ForceSendFields will be sent to the
6532	// server regardless of whether the field is empty or not. This may be
6533	// used to include empty fields in Patch requests.
6534	ForceSendFields []string `json:"-"`
6535
6536	// NullFields is a list of field names (e.g. "Dimensions") to include in
6537	// API requests with the JSON null value. By default, fields with empty
6538	// values are omitted from API requests. However, any field with an
6539	// empty value appearing in NullFields will be sent to the server as
6540	// null. It is an error if a field in this list has a non-empty value.
6541	// This may be used to include null fields in Patch requests.
6542	NullFields []string `json:"-"`
6543}
6544
6545func (s *GoogleCloudApigeeV1QueryMetadata) MarshalJSON() ([]byte, error) {
6546	type NoMethod GoogleCloudApigeeV1QueryMetadata
6547	raw := NoMethod(*s)
6548	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6549}
6550
6551// GoogleCloudApigeeV1QueryMetric: More info about Metric:
6552// https://docs.apigee.com/api-platform/analytics/analytics-reference#metrics
6553type GoogleCloudApigeeV1QueryMetric struct {
6554	// Alias: Alias for the metric. Alias will be used to replace metric
6555	// name in query results.
6556	Alias string `json:"alias,omitempty"`
6557
6558	// Function: Aggregation function: avg, min, max, or sum.
6559	Function string `json:"function,omitempty"`
6560
6561	// Name: Required. Metric name.
6562	Name string `json:"name,omitempty"`
6563
6564	// Operator: One of `+`, `-`, `/`, `%`, `*`.
6565	Operator string `json:"operator,omitempty"`
6566
6567	// Value: Operand value should be provided when operator is set.
6568	Value string `json:"value,omitempty"`
6569
6570	// ForceSendFields is a list of field names (e.g. "Alias") to
6571	// unconditionally include in API requests. By default, fields with
6572	// empty values are omitted from API requests. However, any non-pointer,
6573	// non-interface field appearing in ForceSendFields will be sent to the
6574	// server regardless of whether the field is empty or not. This may be
6575	// used to include empty fields in Patch requests.
6576	ForceSendFields []string `json:"-"`
6577
6578	// NullFields is a list of field names (e.g. "Alias") to include in API
6579	// requests with the JSON null value. By default, fields with empty
6580	// values are omitted from API requests. However, any field with an
6581	// empty value appearing in NullFields will be sent to the server as
6582	// null. It is an error if a field in this list has a non-empty value.
6583	// This may be used to include null fields in Patch requests.
6584	NullFields []string `json:"-"`
6585}
6586
6587func (s *GoogleCloudApigeeV1QueryMetric) MarshalJSON() ([]byte, error) {
6588	type NoMethod GoogleCloudApigeeV1QueryMetric
6589	raw := NoMethod(*s)
6590	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6591}
6592
6593// GoogleCloudApigeeV1Quota: Quota contains the essential parameters
6594// needed that can be applied on the resources, methods, API source
6595// combination associated with this API product. While Quota is
6596// optional, setting it prevents requests from exceeding the provisioned
6597// parameters.
6598type GoogleCloudApigeeV1Quota struct {
6599	// Interval: Required. Time interval over which the number of request
6600	// messages is calculated.
6601	Interval string `json:"interval,omitempty"`
6602
6603	// Limit: Required. Upper limit allowed for the time interval and time
6604	// unit specified. Requests exceeding this limit will be rejected.
6605	Limit string `json:"limit,omitempty"`
6606
6607	// TimeUnit: Time unit defined for the `interval`. Valid values include
6608	// `minute`, `hour`, `day`, or `month`. If `limit` and `interval` are
6609	// valid, the default value is `hour`; otherwise, the default is null.
6610	TimeUnit string `json:"timeUnit,omitempty"`
6611
6612	// ForceSendFields is a list of field names (e.g. "Interval") to
6613	// unconditionally include in API requests. By default, fields with
6614	// empty values are omitted from API requests. However, any non-pointer,
6615	// non-interface field appearing in ForceSendFields will be sent to the
6616	// server regardless of whether the field is empty or not. This may be
6617	// used to include empty fields in Patch requests.
6618	ForceSendFields []string `json:"-"`
6619
6620	// NullFields is a list of field names (e.g. "Interval") to include in
6621	// API requests with the JSON null value. By default, fields with empty
6622	// values are omitted from API requests. However, any field with an
6623	// empty value appearing in NullFields will be sent to the server as
6624	// null. It is an error if a field in this list has a non-empty value.
6625	// This may be used to include null fields in Patch requests.
6626	NullFields []string `json:"-"`
6627}
6628
6629func (s *GoogleCloudApigeeV1Quota) MarshalJSON() ([]byte, error) {
6630	type NoMethod GoogleCloudApigeeV1Quota
6631	raw := NoMethod(*s)
6632	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6633}
6634
6635// GoogleCloudApigeeV1RatePlan: Rate plan details.
6636type GoogleCloudApigeeV1RatePlan struct {
6637	// Apiproduct: Name of the API product that the rate plan is associated
6638	// with.
6639	Apiproduct string `json:"apiproduct,omitempty"`
6640
6641	// BillingPeriod: Frequency at which the customer will be billed.
6642	//
6643	// Possible values:
6644	//   "BILLING_PERIOD_UNSPECIFIED" - Billing period not specified.
6645	//   "WEEKLY" - Weekly billing period. **Note**: Not supported by Apigee
6646	// at this time.
6647	//   "MONTHLY" - Monthly billing period.
6648	BillingPeriod string `json:"billingPeriod,omitempty"`
6649
6650	// ConsumptionPricingRates: API call volume ranges and the fees charged
6651	// when the total number of API calls is within a given range. The
6652	// method used to calculate the final fee depends on the selected
6653	// pricing model. For example, if the pricing model is `STAIRSTEP` and
6654	// the ranges are defined as follows: ``` { "start": 1, "end": 100,
6655	// "fee": 75 }, { "start": 101, "end": 200, "fee": 100 }, } ``` Then the
6656	// following fees would be charged based on the total number of API
6657	// calls (assuming the currency selected is `USD`): * 1 call costs $75 *
6658	// 50 calls cost $75 * 150 calls cost $100 The number of API calls
6659	// cannot exceed 200.
6660	ConsumptionPricingRates []*GoogleCloudApigeeV1RateRange `json:"consumptionPricingRates,omitempty"`
6661
6662	// ConsumptionPricingType: Pricing model used for consumption-based
6663	// charges.
6664	//
6665	// Possible values:
6666	//   "CONSUMPTION_PRICING_TYPE_UNSPECIFIED" - Pricing model not
6667	// specified. This is the default.
6668	//   "FIXED_PER_UNIT" - Fixed rate charged for each API call.
6669	//   "BANDED" - Variable rate charged based on the total volume of API
6670	// calls. Example: * 1-100 calls cost $2 per call * 101-200 calls cost
6671	// $1.50 per call * 201-300 calls cost $1 per call * Total price for 50
6672	// calls: 50 x $2 = $100 * Total price for 150 calls: 150 x $1.5 = $225
6673	// * Total price for 250 calls: 250 x $1 = $250. **Note**: Not supported
6674	// by Apigee at this time.
6675	//   "TIERED" - Variable rate charged for each API call based on price
6676	// tiers. Example: * 1-100 calls cost $2 per call * 101-200 calls cost
6677	// $1.50 per call * 201-300 calls cost $1 per call * Total price for 50
6678	// calls: 50 x $2 = $100 * Total price for 150 calls: 100 x $2 + 50 x
6679	// $1.5 = $275 * Total price for 250 calls: 100 x $2 + 100 x $1.5 + 50 x
6680	// $1 = $400. **Note**: Not supported by Apigee at this time.
6681	//   "STAIRSTEP" - Flat rate charged for a bundle of API calls whether
6682	// or not the entire bundle is used. Example: * 1-100 calls cost $75
6683	// flat fee * 101-200 calls cost $100 flat free * 201-300 calls cost
6684	// $150 flat fee * Total price for 1 call: $75 * Total price for 50
6685	// calls: $75 * Total price for 150 calls: $100 * Total price for 250
6686	// calls: $150. **Note**: Not supported by Apigee at this time.
6687	ConsumptionPricingType string `json:"consumptionPricingType,omitempty"`
6688
6689	// CreatedAt: Output only. Time that the rate plan was created in
6690	// milliseconds since epoch.
6691	CreatedAt int64 `json:"createdAt,omitempty,string"`
6692
6693	// CurrencyCode: Currency to be used for billing. Consists of a
6694	// three-letter code as defined by the ISO 4217
6695	// (https://en.wikipedia.org/wiki/ISO_4217) standard.
6696	CurrencyCode string `json:"currencyCode,omitempty"`
6697
6698	// Description: Description of the rate plan.
6699	Description string `json:"description,omitempty"`
6700
6701	// DisplayName: Display name of the rate plan.
6702	DisplayName string `json:"displayName,omitempty"`
6703
6704	// EndTime: Time when the rate plan will expire in milliseconds since
6705	// epoch. Set to 0 or `null` to indicate that the rate plan should never
6706	// expire.
6707	EndTime int64 `json:"endTime,omitempty,string"`
6708
6709	// FixedFeeFrequency: Frequency at which the fixed fee is charged.
6710	FixedFeeFrequency int64 `json:"fixedFeeFrequency,omitempty"`
6711
6712	// FixedRecurringFee: Fixed amount that is charged at a defined interval
6713	// and billed in advance of use of the API product. The fee will be
6714	// prorated for the first billing period.
6715	FixedRecurringFee *GoogleTypeMoney `json:"fixedRecurringFee,omitempty"`
6716
6717	// LastModifiedAt: Output only. Time the rate plan was last modified in
6718	// milliseconds since epoch.
6719	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
6720
6721	// Name: Output only. Name of the rate plan.
6722	Name string `json:"name,omitempty"`
6723
6724	// PaymentFundingModel: Flag that specifies the billing account type,
6725	// prepaid or postpaid.
6726	//
6727	// Possible values:
6728	//   "PAYMENT_FUNDING_MODEL_UNSPECIFIED" - Billing account type not
6729	// specified.
6730	//   "PREPAID" - Prepaid billing account type. Developer pays in advance
6731	// for the use of your API products. Funds are deducted from their
6732	// prepaid account balance. **Note**: Not supported by Apigee at this
6733	// time.
6734	//   "POSTPAID" - Postpaid billing account type. Developer is billed
6735	// through an invoice after using your API products.
6736	PaymentFundingModel string `json:"paymentFundingModel,omitempty"`
6737
6738	// RevenueShareRates: Details of the revenue sharing model.
6739	RevenueShareRates []*GoogleCloudApigeeV1RevenueShareRange `json:"revenueShareRates,omitempty"`
6740
6741	// RevenueShareType: Method used to calculate the revenue that is shared
6742	// with developers.
6743	//
6744	// Possible values:
6745	//   "REVENUE_SHARE_TYPE_UNSPECIFIED" - Revenue share type is not
6746	// specified.
6747	//   "FIXED" - Fixed percentage of the total revenue will be shared. The
6748	// percentage to be shared can be configured by the API provider.
6749	//   "VOLUME_BANDED" - Amount of revenue shared depends on the number of
6750	// API calls. The API call volume ranges and the revenue share
6751	// percentage for each volume can be configured by the API provider.
6752	// **Note**: Not supported by Apigee at this time.
6753	RevenueShareType string `json:"revenueShareType,omitempty"`
6754
6755	// SetupFee: Initial, one-time fee paid when purchasing the API product.
6756	SetupFee *GoogleTypeMoney `json:"setupFee,omitempty"`
6757
6758	// StartTime: Time when the rate plan becomes active in milliseconds
6759	// since epoch.
6760	StartTime int64 `json:"startTime,omitempty,string"`
6761
6762	// State: Current state of the rate plan (draft or published).
6763	//
6764	// Possible values:
6765	//   "STATE_UNSPECIFIED" - State of the rate plan is not specified.
6766	//   "DRAFT" - Rate plan is in draft mode and only visible to API
6767	// providers.
6768	//   "PUBLISHED" - Rate plan is published and will become visible to
6769	// developers for the configured duration (between `startTime` and
6770	// `endTime`).
6771	State string `json:"state,omitempty"`
6772
6773	// ServerResponse contains the HTTP response code and headers from the
6774	// server.
6775	googleapi.ServerResponse `json:"-"`
6776
6777	// ForceSendFields is a list of field names (e.g. "Apiproduct") to
6778	// unconditionally include in API requests. By default, fields with
6779	// empty values are omitted from API requests. However, any non-pointer,
6780	// non-interface field appearing in ForceSendFields will be sent to the
6781	// server regardless of whether the field is empty or not. This may be
6782	// used to include empty fields in Patch requests.
6783	ForceSendFields []string `json:"-"`
6784
6785	// NullFields is a list of field names (e.g. "Apiproduct") to include in
6786	// API requests with the JSON null value. By default, fields with empty
6787	// values are omitted from API requests. However, any field with an
6788	// empty value appearing in NullFields will be sent to the server as
6789	// null. It is an error if a field in this list has a non-empty value.
6790	// This may be used to include null fields in Patch requests.
6791	NullFields []string `json:"-"`
6792}
6793
6794func (s *GoogleCloudApigeeV1RatePlan) MarshalJSON() ([]byte, error) {
6795	type NoMethod GoogleCloudApigeeV1RatePlan
6796	raw := NoMethod(*s)
6797	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6798}
6799
6800// GoogleCloudApigeeV1RateRange: API call volume range and the fees
6801// charged when the total number of API calls is within the range.
6802type GoogleCloudApigeeV1RateRange struct {
6803	// End: Ending value of the range. Set to 0 or `null` for the last range
6804	// of values.
6805	End int64 `json:"end,omitempty,string"`
6806
6807	// Fee: Fee to charge when total number of API calls falls within this
6808	// range.
6809	Fee *GoogleTypeMoney `json:"fee,omitempty"`
6810
6811	// Start: Starting value of the range. Set to 0 or `null` for the
6812	// initial range of values.
6813	Start int64 `json:"start,omitempty,string"`
6814
6815	// ForceSendFields is a list of field names (e.g. "End") to
6816	// unconditionally include in API requests. By default, fields with
6817	// empty values are omitted from API requests. However, any non-pointer,
6818	// non-interface field appearing in ForceSendFields will be sent to the
6819	// server regardless of whether the field is empty or not. This may be
6820	// used to include empty fields in Patch requests.
6821	ForceSendFields []string `json:"-"`
6822
6823	// NullFields is a list of field names (e.g. "End") to include in API
6824	// requests with the JSON null value. By default, fields with empty
6825	// values are omitted from API requests. However, any field with an
6826	// empty value appearing in NullFields will be sent to the server as
6827	// null. It is an error if a field in this list has a non-empty value.
6828	// This may be used to include null fields in Patch requests.
6829	NullFields []string `json:"-"`
6830}
6831
6832func (s *GoogleCloudApigeeV1RateRange) MarshalJSON() ([]byte, error) {
6833	type NoMethod GoogleCloudApigeeV1RateRange
6834	raw := NoMethod(*s)
6835	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6836}
6837
6838// GoogleCloudApigeeV1Reference: A Reference configuration. References
6839// must refer to a keystore that also exists in the parent environment.
6840type GoogleCloudApigeeV1Reference struct {
6841	// Description: Optional. A human-readable description of this
6842	// reference.
6843	Description string `json:"description,omitempty"`
6844
6845	// Name: Required. The resource id of this reference. Values must match
6846	// the regular expression [\w\s\-.]+.
6847	Name string `json:"name,omitempty"`
6848
6849	// Refers: Required. The id of the resource to which this reference
6850	// refers. Must be the id of a resource that exists in the parent
6851	// environment and is of the given resource_type.
6852	Refers string `json:"refers,omitempty"`
6853
6854	// ResourceType: The type of resource referred to by this reference.
6855	// Valid values are 'KeyStore' or 'TrustStore'.
6856	ResourceType string `json:"resourceType,omitempty"`
6857
6858	// ServerResponse contains the HTTP response code and headers from the
6859	// server.
6860	googleapi.ServerResponse `json:"-"`
6861
6862	// ForceSendFields is a list of field names (e.g. "Description") to
6863	// unconditionally include in API requests. By default, fields with
6864	// empty values are omitted from API requests. However, any non-pointer,
6865	// non-interface field appearing in ForceSendFields will be sent to the
6866	// server regardless of whether the field is empty or not. This may be
6867	// used to include empty fields in Patch requests.
6868	ForceSendFields []string `json:"-"`
6869
6870	// NullFields is a list of field names (e.g. "Description") to include
6871	// in API requests with the JSON null value. By default, fields with
6872	// empty values are omitted from API requests. However, any field with
6873	// an empty value appearing in NullFields will be sent to the server as
6874	// null. It is an error if a field in this list has a non-empty value.
6875	// This may be used to include null fields in Patch requests.
6876	NullFields []string `json:"-"`
6877}
6878
6879func (s *GoogleCloudApigeeV1Reference) MarshalJSON() ([]byte, error) {
6880	type NoMethod GoogleCloudApigeeV1Reference
6881	raw := NoMethod(*s)
6882	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6883}
6884
6885type GoogleCloudApigeeV1ReferenceConfig struct {
6886	// Name: Name of the reference in the following format:
6887	// `organizations/{org}/environments/{env}/references/{reference}`
6888	Name string `json:"name,omitempty"`
6889
6890	// ResourceName: Name of the referenced resource in the following
6891	// format: `organizations/{org}/environments/{env}/keystores/{keystore}`
6892	// Only references to keystore resources are supported.
6893	ResourceName string `json:"resourceName,omitempty"`
6894
6895	// ForceSendFields is a list of field names (e.g. "Name") to
6896	// unconditionally include in API requests. By default, fields with
6897	// empty values are omitted from API requests. However, any non-pointer,
6898	// non-interface field appearing in ForceSendFields will be sent to the
6899	// server regardless of whether the field is empty or not. This may be
6900	// used to include empty fields in Patch requests.
6901	ForceSendFields []string `json:"-"`
6902
6903	// NullFields is a list of field names (e.g. "Name") to include in API
6904	// requests with the JSON null value. By default, fields with empty
6905	// values are omitted from API requests. However, any field with an
6906	// empty value appearing in NullFields will be sent to the server as
6907	// null. It is an error if a field in this list has a non-empty value.
6908	// This may be used to include null fields in Patch requests.
6909	NullFields []string `json:"-"`
6910}
6911
6912func (s *GoogleCloudApigeeV1ReferenceConfig) MarshalJSON() ([]byte, error) {
6913	type NoMethod GoogleCloudApigeeV1ReferenceConfig
6914	raw := NoMethod(*s)
6915	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6916}
6917
6918// GoogleCloudApigeeV1ReportInstanceStatusRequest: Request for
6919// ReportInstanceStatus.
6920type GoogleCloudApigeeV1ReportInstanceStatusRequest struct {
6921	// InstanceUid: A unique ID for the instance which is guaranteed to be
6922	// unique in case the user installs multiple hybrid runtimes with the
6923	// same instance ID.
6924	InstanceUid string `json:"instanceUid,omitempty"`
6925
6926	// ReportTime: The time the report was generated in the runtime. Used to
6927	// prevent an old status from overwriting a newer one. An instance
6928	// should space out it's status reports so that clock skew does not play
6929	// a factor.
6930	ReportTime string `json:"reportTime,omitempty"`
6931
6932	// Resources: Status for config resources
6933	Resources []*GoogleCloudApigeeV1ResourceStatus `json:"resources,omitempty"`
6934
6935	// ForceSendFields is a list of field names (e.g. "InstanceUid") to
6936	// unconditionally include in API requests. By default, fields with
6937	// empty values are omitted from API requests. However, any non-pointer,
6938	// non-interface field appearing in ForceSendFields will be sent to the
6939	// server regardless of whether the field is empty or not. This may be
6940	// used to include empty fields in Patch requests.
6941	ForceSendFields []string `json:"-"`
6942
6943	// NullFields is a list of field names (e.g. "InstanceUid") to include
6944	// in API requests with the JSON null value. By default, fields with
6945	// empty values are omitted from API requests. However, any field with
6946	// an empty value appearing in NullFields will be sent to the server as
6947	// null. It is an error if a field in this list has a non-empty value.
6948	// This may be used to include null fields in Patch requests.
6949	NullFields []string `json:"-"`
6950}
6951
6952func (s *GoogleCloudApigeeV1ReportInstanceStatusRequest) MarshalJSON() ([]byte, error) {
6953	type NoMethod GoogleCloudApigeeV1ReportInstanceStatusRequest
6954	raw := NoMethod(*s)
6955	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6956}
6957
6958// GoogleCloudApigeeV1ReportInstanceStatusResponse: Placeholder for
6959// future enhancements to status reporting protocol
6960type GoogleCloudApigeeV1ReportInstanceStatusResponse struct {
6961	// ServerResponse contains the HTTP response code and headers from the
6962	// server.
6963	googleapi.ServerResponse `json:"-"`
6964}
6965
6966type GoogleCloudApigeeV1ReportProperty struct {
6967	// Property: name of the property
6968	Property string `json:"property,omitempty"`
6969
6970	// Value: property values
6971	Value []*GoogleCloudApigeeV1Attribute `json:"value,omitempty"`
6972
6973	// ForceSendFields is a list of field names (e.g. "Property") to
6974	// unconditionally include in API requests. By default, fields with
6975	// empty values are omitted from API requests. However, any non-pointer,
6976	// non-interface field appearing in ForceSendFields will be sent to the
6977	// server regardless of whether the field is empty or not. This may be
6978	// used to include empty fields in Patch requests.
6979	ForceSendFields []string `json:"-"`
6980
6981	// NullFields is a list of field names (e.g. "Property") to include in
6982	// API requests with the JSON null value. By default, fields with empty
6983	// values are omitted from API requests. However, any field with an
6984	// empty value appearing in NullFields will be sent to the server as
6985	// null. It is an error if a field in this list has a non-empty value.
6986	// This may be used to include null fields in Patch requests.
6987	NullFields []string `json:"-"`
6988}
6989
6990func (s *GoogleCloudApigeeV1ReportProperty) MarshalJSON() ([]byte, error) {
6991	type NoMethod GoogleCloudApigeeV1ReportProperty
6992	raw := NoMethod(*s)
6993	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6994}
6995
6996type GoogleCloudApigeeV1ResourceConfig struct {
6997	// Location: Location of the resource as a URI.
6998	Location string `json:"location,omitempty"`
6999
7000	// Name: Resource name in the following format:
7001	// `organizations/{org}/environments/{env}/resourcefiles/{type}/{file}/re
7002	// visions/{rev}` Only environment-scoped resource files are supported.
7003	Name string `json:"name,omitempty"`
7004
7005	// ForceSendFields is a list of field names (e.g. "Location") to
7006	// unconditionally include in API requests. By default, fields with
7007	// empty values are omitted from API requests. However, any non-pointer,
7008	// non-interface field appearing in ForceSendFields will be sent to the
7009	// server regardless of whether the field is empty or not. This may be
7010	// used to include empty fields in Patch requests.
7011	ForceSendFields []string `json:"-"`
7012
7013	// NullFields is a list of field names (e.g. "Location") to include in
7014	// API requests with the JSON null value. By default, fields with empty
7015	// values are omitted from API requests. However, any field with an
7016	// empty value appearing in NullFields will be sent to the server as
7017	// null. It is an error if a field in this list has a non-empty value.
7018	// This may be used to include null fields in Patch requests.
7019	NullFields []string `json:"-"`
7020}
7021
7022func (s *GoogleCloudApigeeV1ResourceConfig) MarshalJSON() ([]byte, error) {
7023	type NoMethod GoogleCloudApigeeV1ResourceConfig
7024	raw := NoMethod(*s)
7025	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7026}
7027
7028// GoogleCloudApigeeV1ResourceFile: Metadata about a resource file.
7029type GoogleCloudApigeeV1ResourceFile struct {
7030	// Name: ID of the resource file.
7031	Name string `json:"name,omitempty"`
7032
7033	// Type: Resource file type. {{ resource_file_type }}
7034	Type string `json:"type,omitempty"`
7035
7036	// ServerResponse contains the HTTP response code and headers from the
7037	// server.
7038	googleapi.ServerResponse `json:"-"`
7039
7040	// ForceSendFields is a list of field names (e.g. "Name") to
7041	// unconditionally include in API requests. By default, fields with
7042	// empty values are omitted from API requests. However, any non-pointer,
7043	// non-interface field appearing in ForceSendFields will be sent to the
7044	// server regardless of whether the field is empty or not. This may be
7045	// used to include empty fields in Patch requests.
7046	ForceSendFields []string `json:"-"`
7047
7048	// NullFields is a list of field names (e.g. "Name") to include in API
7049	// requests with the JSON null value. By default, fields with empty
7050	// values are omitted from API requests. However, any field with an
7051	// empty value appearing in NullFields will be sent to the server as
7052	// null. It is an error if a field in this list has a non-empty value.
7053	// This may be used to include null fields in Patch requests.
7054	NullFields []string `json:"-"`
7055}
7056
7057func (s *GoogleCloudApigeeV1ResourceFile) MarshalJSON() ([]byte, error) {
7058	type NoMethod GoogleCloudApigeeV1ResourceFile
7059	raw := NoMethod(*s)
7060	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7061}
7062
7063// GoogleCloudApigeeV1ResourceFiles: List of resource files.
7064type GoogleCloudApigeeV1ResourceFiles struct {
7065	// ResourceFile: List of resource files.
7066	ResourceFile []*GoogleCloudApigeeV1ResourceFile `json:"resourceFile,omitempty"`
7067
7068	// ForceSendFields is a list of field names (e.g. "ResourceFile") to
7069	// unconditionally include in API requests. By default, fields with
7070	// empty values are omitted from API requests. However, any non-pointer,
7071	// non-interface field appearing in ForceSendFields will be sent to the
7072	// server regardless of whether the field is empty or not. This may be
7073	// used to include empty fields in Patch requests.
7074	ForceSendFields []string `json:"-"`
7075
7076	// NullFields is a list of field names (e.g. "ResourceFile") to include
7077	// in API requests with the JSON null value. By default, fields with
7078	// empty values are omitted from API requests. However, any field with
7079	// an empty value appearing in NullFields will be sent to the server as
7080	// null. It is an error if a field in this list has a non-empty value.
7081	// This may be used to include null fields in Patch requests.
7082	NullFields []string `json:"-"`
7083}
7084
7085func (s *GoogleCloudApigeeV1ResourceFiles) MarshalJSON() ([]byte, error) {
7086	type NoMethod GoogleCloudApigeeV1ResourceFiles
7087	raw := NoMethod(*s)
7088	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7089}
7090
7091// GoogleCloudApigeeV1ResourceStatus: The status of a resource loaded in
7092// the runtime.
7093type GoogleCloudApigeeV1ResourceStatus struct {
7094	// Resource: The resource name. Currently only two resources are
7095	// supported: EnvironmentGroup -
7096	// organizations/{org}/envgroups/{envgroup} EnvironmentConfig -
7097	// organizations/{org}/environments/{environment}/deployedConfig
7098	Resource string `json:"resource,omitempty"`
7099
7100	// Revisions: Revisions of the resource currently deployed in the
7101	// instance.
7102	Revisions []*GoogleCloudApigeeV1RevisionStatus `json:"revisions,omitempty"`
7103
7104	// TotalReplicas: The total number of replicas that should have this
7105	// resource.
7106	TotalReplicas int64 `json:"totalReplicas,omitempty"`
7107
7108	// Uid: The uid of the resource. In the unexpected case that the
7109	// instance has multiple uids for the same name, they should be reported
7110	// under separate ResourceStatuses.
7111	Uid string `json:"uid,omitempty"`
7112
7113	// ForceSendFields is a list of field names (e.g. "Resource") to
7114	// unconditionally include in API requests. By default, fields with
7115	// empty values are omitted from API requests. However, any non-pointer,
7116	// non-interface field appearing in ForceSendFields will be sent to the
7117	// server regardless of whether the field is empty or not. This may be
7118	// used to include empty fields in Patch requests.
7119	ForceSendFields []string `json:"-"`
7120
7121	// NullFields is a list of field names (e.g. "Resource") to include in
7122	// API requests with the JSON null value. By default, fields with empty
7123	// values are omitted from API requests. However, any field with an
7124	// empty value appearing in NullFields will be sent to the server as
7125	// null. It is an error if a field in this list has a non-empty value.
7126	// This may be used to include null fields in Patch requests.
7127	NullFields []string `json:"-"`
7128}
7129
7130func (s *GoogleCloudApigeeV1ResourceStatus) MarshalJSON() ([]byte, error) {
7131	type NoMethod GoogleCloudApigeeV1ResourceStatus
7132	raw := NoMethod(*s)
7133	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7134}
7135
7136// GoogleCloudApigeeV1Result: Result is short for "action result", could
7137// be different types identified by "action_result" field. Supported
7138// types: 1. DebugInfo : generic debug info collected by runtime
7139// recorded as a list of properties. For example, the contents could be
7140// virtual host info, state change result, or execution metadata.
7141// Required fields : properties, timestamp 2. RequestMessage:
7142// information of a http request. Contains headers, request URI and http
7143// methods type.Required fields : headers, uri, verb 3. ResponseMessage:
7144// information of a http response. Contains headers, reason phrase and
7145// http status code. Required fields : headers, reasonPhrase, statusCode
7146// 4. ErrorMessage: information of a http error message. Contains detail
7147// error message, reason phrase and status code. Required fields :
7148// content, headers, reasonPhrase, statusCode 5. VariableAccess: a list
7149// of variable access actions, can be Get, Set and Remove. Required
7150// fields : accessList
7151type GoogleCloudApigeeV1Result struct {
7152	// ActionResult: Type of the action result. Can be one of the five:
7153	// DebugInfo, RequestMessage, ResponseMessage, ErrorMessage,
7154	// VariableAccess
7155	ActionResult string `json:"ActionResult,omitempty"`
7156
7157	// AccessList: A list of variable access actions agaist the api proxy.
7158	// Supported values: Get, Set, Remove.
7159	AccessList []*GoogleCloudApigeeV1Access `json:"accessList,omitempty"`
7160
7161	// Content: Error message content. for example, "content" :
7162	// "{\"fault\":{\"faultstring\":\"API timed
7163	// out\",\"detail\":{\"errorcode\":\"flow.APITimedOut\"}}}"
7164	Content string `json:"content,omitempty"`
7165
7166	// Headers: A list of HTTP headers. for example, '"headers" : [ { "name"
7167	// : "Content-Length", "value" : "83" }, { "name" : "Content-Type",
7168	// "value" : "application/json" } ]'
7169	Headers []*GoogleCloudApigeeV1Property `json:"headers,omitempty"`
7170
7171	// Properties: Name value pairs used for DebugInfo ActionResult.
7172	Properties *GoogleCloudApigeeV1Properties `json:"properties,omitempty"`
7173
7174	// ReasonPhrase: HTTP response phrase
7175	ReasonPhrase string `json:"reasonPhrase,omitempty"`
7176
7177	// StatusCode: HTTP response code
7178	StatusCode string `json:"statusCode,omitempty"`
7179
7180	// Timestamp: Timestamp of when the result is recorded. Its format is
7181	// dd-mm-yy hh:mm:ss:xxx. For example, "timestamp" : "12-08-19
7182	// 00:31:59:960"
7183	Timestamp string `json:"timestamp,omitempty"`
7184
7185	// URI: The relative path of the api proxy. for example, "uRI" :
7186	// "/iloveapis"
7187	URI string `json:"uRI,omitempty"`
7188
7189	// Verb: HTTP method verb
7190	Verb string `json:"verb,omitempty"`
7191
7192	// ForceSendFields is a list of field names (e.g. "ActionResult") to
7193	// unconditionally include in API requests. By default, fields with
7194	// empty values are omitted from API requests. However, any non-pointer,
7195	// non-interface field appearing in ForceSendFields will be sent to the
7196	// server regardless of whether the field is empty or not. This may be
7197	// used to include empty fields in Patch requests.
7198	ForceSendFields []string `json:"-"`
7199
7200	// NullFields is a list of field names (e.g. "ActionResult") to include
7201	// in API requests with the JSON null value. By default, fields with
7202	// empty values are omitted from API requests. However, any field with
7203	// an empty value appearing in NullFields will be sent to the server as
7204	// null. It is an error if a field in this list has a non-empty value.
7205	// This may be used to include null fields in Patch requests.
7206	NullFields []string `json:"-"`
7207}
7208
7209func (s *GoogleCloudApigeeV1Result) MarshalJSON() ([]byte, error) {
7210	type NoMethod GoogleCloudApigeeV1Result
7211	raw := NoMethod(*s)
7212	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7213}
7214
7215// GoogleCloudApigeeV1RevenueShareRange: API call volume range and the
7216// percentage of revenue to share with the developer when the total
7217// number of API calls is within the range.
7218type GoogleCloudApigeeV1RevenueShareRange struct {
7219	// End: Ending value of the range. Set to 0 or `null` for the last range
7220	// of values.
7221	End int64 `json:"end,omitempty,string"`
7222
7223	// SharePercentage: Percentage of the revenue to be shared with the
7224	// developer. For example, to share 21 percent of the total revenue with
7225	// the developer, set this value to 21. Specify a decimal number with a
7226	// maximum of two digits following the decimal point.
7227	SharePercentage float64 `json:"sharePercentage,omitempty"`
7228
7229	// Start: Starting value of the range. Set to 0 or `null` for the
7230	// initial range of values.
7231	Start int64 `json:"start,omitempty,string"`
7232
7233	// ForceSendFields is a list of field names (e.g. "End") to
7234	// unconditionally include in API requests. By default, fields with
7235	// empty values are omitted from API requests. However, any non-pointer,
7236	// non-interface field appearing in ForceSendFields will be sent to the
7237	// server regardless of whether the field is empty or not. This may be
7238	// used to include empty fields in Patch requests.
7239	ForceSendFields []string `json:"-"`
7240
7241	// NullFields is a list of field names (e.g. "End") to include in API
7242	// requests with the JSON null value. By default, fields with empty
7243	// values are omitted from API requests. However, any field with an
7244	// empty value appearing in NullFields will be sent to the server as
7245	// null. It is an error if a field in this list has a non-empty value.
7246	// This may be used to include null fields in Patch requests.
7247	NullFields []string `json:"-"`
7248}
7249
7250func (s *GoogleCloudApigeeV1RevenueShareRange) MarshalJSON() ([]byte, error) {
7251	type NoMethod GoogleCloudApigeeV1RevenueShareRange
7252	raw := NoMethod(*s)
7253	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7254}
7255
7256func (s *GoogleCloudApigeeV1RevenueShareRange) UnmarshalJSON(data []byte) error {
7257	type NoMethod GoogleCloudApigeeV1RevenueShareRange
7258	var s1 struct {
7259		SharePercentage gensupport.JSONFloat64 `json:"sharePercentage"`
7260		*NoMethod
7261	}
7262	s1.NoMethod = (*NoMethod)(s)
7263	if err := json.Unmarshal(data, &s1); err != nil {
7264		return err
7265	}
7266	s.SharePercentage = float64(s1.SharePercentage)
7267	return nil
7268}
7269
7270// GoogleCloudApigeeV1RevisionStatus: The status of a specific resource
7271// revision.
7272type GoogleCloudApigeeV1RevisionStatus struct {
7273	// Errors: Errors reported when attempting to load this revision.
7274	Errors []*GoogleCloudApigeeV1UpdateError `json:"errors,omitempty"`
7275
7276	// JsonSpec: The json content of the resource revision. Large specs
7277	// should be sent individually via the spec field to avoid hitting
7278	// request size limits.
7279	JsonSpec string `json:"jsonSpec,omitempty"`
7280
7281	// Replicas: The number of replicas that have successfully loaded this
7282	// revision.
7283	Replicas int64 `json:"replicas,omitempty"`
7284
7285	// RevisionId: The revision of the resource.
7286	RevisionId string `json:"revisionId,omitempty"`
7287
7288	// ForceSendFields is a list of field names (e.g. "Errors") to
7289	// unconditionally include in API requests. By default, fields with
7290	// empty values are omitted from API requests. However, any non-pointer,
7291	// non-interface field appearing in ForceSendFields will be sent to the
7292	// server regardless of whether the field is empty or not. This may be
7293	// used to include empty fields in Patch requests.
7294	ForceSendFields []string `json:"-"`
7295
7296	// NullFields is a list of field names (e.g. "Errors") to include in API
7297	// requests with the JSON null value. By default, fields with empty
7298	// values are omitted from API requests. However, any field with an
7299	// empty value appearing in NullFields will be sent to the server as
7300	// null. It is an error if a field in this list has a non-empty value.
7301	// This may be used to include null fields in Patch requests.
7302	NullFields []string `json:"-"`
7303}
7304
7305func (s *GoogleCloudApigeeV1RevisionStatus) MarshalJSON() ([]byte, error) {
7306	type NoMethod GoogleCloudApigeeV1RevisionStatus
7307	raw := NoMethod(*s)
7308	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7309}
7310
7311type GoogleCloudApigeeV1RoutingRule struct {
7312	// Basepath: URI path prefix used to route to the specified environment.
7313	// May contain one or more wildcards. For example, path segments
7314	// consisting of a single `*` character will match any string.
7315	Basepath string `json:"basepath,omitempty"`
7316
7317	// EnvGroupRevision: The env group config revision_id when this rule was
7318	// added or last updated. This value is set when the rule is created and
7319	// will only update if the the environment_id changes. It is used to
7320	// determine if the runtime is up to date with respect to this rule.
7321	// This field is omitted from the IngressConfig unless the
7322	// GetDeployedIngressConfig API is called with view=FULL.
7323	EnvGroupRevision int64 `json:"envGroupRevision,omitempty,string"`
7324
7325	// Environment: Name of an environment bound to the environment group in
7326	// the following format: `organizations/{org}/environments/{env}`.
7327	Environment string `json:"environment,omitempty"`
7328
7329	// Receiver: The resource name of the proxy revision that is receiving
7330	// this basepath in the following format:
7331	// `organizations/{org}/apis/{api}/revisions/{rev}`. This field is
7332	// omitted from the IngressConfig unless the GetDeployedIngressConfig
7333	// API is called with view=FULL.
7334	Receiver string `json:"receiver,omitempty"`
7335
7336	// UpdateTime: The unix timestamp when this rule was updated. This is
7337	// updated whenever env_group_revision is updated. This field is omitted
7338	// from the IngressConfig unless the GetDeployedIngressConfig API is
7339	// called with view=FULL.
7340	UpdateTime string `json:"updateTime,omitempty"`
7341
7342	// ForceSendFields is a list of field names (e.g. "Basepath") to
7343	// unconditionally include in API requests. By default, fields with
7344	// empty values are omitted from API requests. However, any non-pointer,
7345	// non-interface field appearing in ForceSendFields will be sent to the
7346	// server regardless of whether the field is empty or not. This may be
7347	// used to include empty fields in Patch requests.
7348	ForceSendFields []string `json:"-"`
7349
7350	// NullFields is a list of field names (e.g. "Basepath") to include in
7351	// API requests with the JSON null value. By default, fields with empty
7352	// values are omitted from API requests. However, any field with an
7353	// empty value appearing in NullFields will be sent to the server as
7354	// null. It is an error if a field in this list has a non-empty value.
7355	// This may be used to include null fields in Patch requests.
7356	NullFields []string `json:"-"`
7357}
7358
7359func (s *GoogleCloudApigeeV1RoutingRule) MarshalJSON() ([]byte, error) {
7360	type NoMethod GoogleCloudApigeeV1RoutingRule
7361	raw := NoMethod(*s)
7362	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7363}
7364
7365// GoogleCloudApigeeV1RuntimeConfig: Runtime configuration for the
7366// organization. Response for GetRuntimeConfig.
7367type GoogleCloudApigeeV1RuntimeConfig struct {
7368	// AnalyticsBucket: Cloud Storage bucket used for uploading Analytics
7369	// records.
7370	AnalyticsBucket string `json:"analyticsBucket,omitempty"`
7371
7372	// Name: Name of the resource in the following format:
7373	// `organizations/{org}/runtimeConfig`.
7374	Name string `json:"name,omitempty"`
7375
7376	// TenantProjectId: Output only. Tenant project ID associated with the
7377	// Apigee organization. The tenant project is used to host
7378	// Google-managed resources that are dedicated to this Apigee
7379	// organization. Clients have limited access to resources within the
7380	// tenant project used to support Apigee runtime instances. Access to
7381	// the tenant project is managed using SetSyncAuthorization. It can be
7382	// empty if the tenant project hasn't been created yet.
7383	TenantProjectId string `json:"tenantProjectId,omitempty"`
7384
7385	// TraceBucket: Cloud Storage bucket used for uploading Trace records.
7386	TraceBucket string `json:"traceBucket,omitempty"`
7387
7388	// ServerResponse contains the HTTP response code and headers from the
7389	// server.
7390	googleapi.ServerResponse `json:"-"`
7391
7392	// ForceSendFields is a list of field names (e.g. "AnalyticsBucket") to
7393	// unconditionally include in API requests. By default, fields with
7394	// empty values are omitted from API requests. However, any non-pointer,
7395	// non-interface field appearing in ForceSendFields will be sent to the
7396	// server regardless of whether the field is empty or not. This may be
7397	// used to include empty fields in Patch requests.
7398	ForceSendFields []string `json:"-"`
7399
7400	// NullFields is a list of field names (e.g. "AnalyticsBucket") to
7401	// include in API requests with the JSON null value. By default, fields
7402	// with empty values are omitted from API requests. However, any field
7403	// with an empty value appearing in NullFields will be sent to the
7404	// server as null. It is an error if a field in this list has a
7405	// non-empty value. This may be used to include null fields in Patch
7406	// requests.
7407	NullFields []string `json:"-"`
7408}
7409
7410func (s *GoogleCloudApigeeV1RuntimeConfig) MarshalJSON() ([]byte, error) {
7411	type NoMethod GoogleCloudApigeeV1RuntimeConfig
7412	raw := NoMethod(*s)
7413	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7414}
7415
7416// GoogleCloudApigeeV1RuntimeTraceConfig: NEXT ID: 8 RuntimeTraceConfig
7417// defines the configurations for distributed trace in an environment.
7418type GoogleCloudApigeeV1RuntimeTraceConfig struct {
7419	// Endpoint: Endpoint of the exporter.
7420	Endpoint string `json:"endpoint,omitempty"`
7421
7422	// Exporter: Exporter that is used to view the distributed trace
7423	// captured using OpenCensus. An exporter sends traces to any backend
7424	// that is capable of consuming them. Recorded spans can be exported by
7425	// registered exporters.
7426	//
7427	// Possible values:
7428	//   "EXPORTER_UNSPECIFIED" - Exporter unspecified
7429	//   "JAEGER" - Jaeger exporter
7430	//   "CLOUD_TRACE" - Cloudtrace exporter
7431	Exporter string `json:"exporter,omitempty"`
7432
7433	// Name: Name of the trace config in the following format:
7434	// `organizations/{org}/environment/{env}/traceConfig`
7435	Name string `json:"name,omitempty"`
7436
7437	// Overrides: List of trace configuration overrides for spicific API
7438	// proxies.
7439	Overrides []*GoogleCloudApigeeV1RuntimeTraceConfigOverride `json:"overrides,omitempty"`
7440
7441	// RevisionCreateTime: The timestamp that the revision was created or
7442	// updated.
7443	RevisionCreateTime string `json:"revisionCreateTime,omitempty"`
7444
7445	// RevisionId: Revision number which can be used by the runtime to
7446	// detect if the trace config has changed between two versions.
7447	RevisionId string `json:"revisionId,omitempty"`
7448
7449	// SamplingConfig: Trace configuration for all API proxies in an
7450	// environment.
7451	SamplingConfig *GoogleCloudApigeeV1RuntimeTraceSamplingConfig `json:"samplingConfig,omitempty"`
7452
7453	// ForceSendFields is a list of field names (e.g. "Endpoint") to
7454	// unconditionally include in API requests. By default, fields with
7455	// empty values are omitted from API requests. However, any non-pointer,
7456	// non-interface field appearing in ForceSendFields will be sent to the
7457	// server regardless of whether the field is empty or not. This may be
7458	// used to include empty fields in Patch requests.
7459	ForceSendFields []string `json:"-"`
7460
7461	// NullFields is a list of field names (e.g. "Endpoint") to include in
7462	// API requests with the JSON null value. By default, fields with empty
7463	// values are omitted from API requests. However, any field with an
7464	// empty value appearing in NullFields will be sent to the server as
7465	// null. It is an error if a field in this list has a non-empty value.
7466	// This may be used to include null fields in Patch requests.
7467	NullFields []string `json:"-"`
7468}
7469
7470func (s *GoogleCloudApigeeV1RuntimeTraceConfig) MarshalJSON() ([]byte, error) {
7471	type NoMethod GoogleCloudApigeeV1RuntimeTraceConfig
7472	raw := NoMethod(*s)
7473	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7474}
7475
7476// GoogleCloudApigeeV1RuntimeTraceConfigOverride: NEXT ID: 7 Trace
7477// configuration override for a specific API proxy in an environment.
7478type GoogleCloudApigeeV1RuntimeTraceConfigOverride struct {
7479	// ApiProxy: Name of the API proxy that will have its trace
7480	// configuration overridden following format:
7481	// `organizations/{org}/apis/{api}`
7482	ApiProxy string `json:"apiProxy,omitempty"`
7483
7484	// Name: Name of the trace config override in the following format:
7485	// `organizations/{org}/environment/{env}/traceConfig/overrides/{override
7486	// }`
7487	Name string `json:"name,omitempty"`
7488
7489	// RevisionCreateTime: The timestamp that the revision was created or
7490	// updated.
7491	RevisionCreateTime string `json:"revisionCreateTime,omitempty"`
7492
7493	// RevisionId: Revision number which can be used by the runtime to
7494	// detect if the trace config override has changed between two versions.
7495	RevisionId string `json:"revisionId,omitempty"`
7496
7497	// SamplingConfig: Trace configuration override for a specific API proxy
7498	// in an environment.
7499	SamplingConfig *GoogleCloudApigeeV1RuntimeTraceSamplingConfig `json:"samplingConfig,omitempty"`
7500
7501	// Uid: Unique ID for the configuration override. The ID will only
7502	// change if the override is deleted and recreated. Corresponds to
7503	// name's "override" field.
7504	Uid string `json:"uid,omitempty"`
7505
7506	// ForceSendFields is a list of field names (e.g. "ApiProxy") to
7507	// unconditionally include in API requests. By default, fields with
7508	// empty values are omitted from API requests. However, any non-pointer,
7509	// non-interface field appearing in ForceSendFields will be sent to the
7510	// server regardless of whether the field is empty or not. This may be
7511	// used to include empty fields in Patch requests.
7512	ForceSendFields []string `json:"-"`
7513
7514	// NullFields is a list of field names (e.g. "ApiProxy") to include in
7515	// API requests with the JSON null value. By default, fields with empty
7516	// values are omitted from API requests. However, any field with an
7517	// empty value appearing in NullFields will be sent to the server as
7518	// null. It is an error if a field in this list has a non-empty value.
7519	// This may be used to include null fields in Patch requests.
7520	NullFields []string `json:"-"`
7521}
7522
7523func (s *GoogleCloudApigeeV1RuntimeTraceConfigOverride) MarshalJSON() ([]byte, error) {
7524	type NoMethod GoogleCloudApigeeV1RuntimeTraceConfigOverride
7525	raw := NoMethod(*s)
7526	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7527}
7528
7529// GoogleCloudApigeeV1RuntimeTraceSamplingConfig: NEXT ID: 3
7530// RuntimeTraceSamplingConfig represents the detail settings of
7531// distributed tracing. Only the fields that are defined in the
7532// distributed trace configuration can be overridden using the
7533// distribute trace configuration override APIs.
7534type GoogleCloudApigeeV1RuntimeTraceSamplingConfig struct {
7535	// Sampler: Sampler of distributed tracing. OFF is the default value.
7536	//
7537	// Possible values:
7538	//   "SAMPLER_UNSPECIFIED" - Sampler unspecified.
7539	//   "OFF" - OFF means distributed trace is disabled, or the sampling
7540	// probability is 0.
7541	//   "PROBABILITY" - PROBABILITY means traces are captured on a
7542	// probability that defined by sampling_rate. The sampling rate is
7543	// limited to 0 to 0.5 when this is set.
7544	Sampler string `json:"sampler,omitempty"`
7545
7546	// SamplingRate: Field sampling rate. This value is only applicable when
7547	// using the PROBABILITY sampler. The supported values are > 0 and <=
7548	// 0.5.
7549	SamplingRate float64 `json:"samplingRate,omitempty"`
7550
7551	// ForceSendFields is a list of field names (e.g. "Sampler") to
7552	// unconditionally include in API requests. By default, fields with
7553	// empty values are omitted from API requests. However, any non-pointer,
7554	// non-interface field appearing in ForceSendFields will be sent to the
7555	// server regardless of whether the field is empty or not. This may be
7556	// used to include empty fields in Patch requests.
7557	ForceSendFields []string `json:"-"`
7558
7559	// NullFields is a list of field names (e.g. "Sampler") to include in
7560	// API requests with the JSON null value. By default, fields with empty
7561	// values are omitted from API requests. However, any field with an
7562	// empty value appearing in NullFields will be sent to the server as
7563	// null. It is an error if a field in this list has a non-empty value.
7564	// This may be used to include null fields in Patch requests.
7565	NullFields []string `json:"-"`
7566}
7567
7568func (s *GoogleCloudApigeeV1RuntimeTraceSamplingConfig) MarshalJSON() ([]byte, error) {
7569	type NoMethod GoogleCloudApigeeV1RuntimeTraceSamplingConfig
7570	raw := NoMethod(*s)
7571	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7572}
7573
7574func (s *GoogleCloudApigeeV1RuntimeTraceSamplingConfig) UnmarshalJSON(data []byte) error {
7575	type NoMethod GoogleCloudApigeeV1RuntimeTraceSamplingConfig
7576	var s1 struct {
7577		SamplingRate gensupport.JSONFloat64 `json:"samplingRate"`
7578		*NoMethod
7579	}
7580	s1.NoMethod = (*NoMethod)(s)
7581	if err := json.Unmarshal(data, &s1); err != nil {
7582		return err
7583	}
7584	s.SamplingRate = float64(s1.SamplingRate)
7585	return nil
7586}
7587
7588// GoogleCloudApigeeV1Schema: Response for Schema call
7589type GoogleCloudApigeeV1Schema struct {
7590	// Dimensions: List of schema fields grouped as dimensions.
7591	Dimensions []*GoogleCloudApigeeV1SchemaSchemaElement `json:"dimensions,omitempty"`
7592
7593	// Meta: Additional metadata associated with schema. This is a legacy
7594	// field and usually consists of an empty array of strings.
7595	Meta []string `json:"meta,omitempty"`
7596
7597	// Metrics: List of schema fields grouped as dimensions that can be used
7598	// with an aggregate function such as `sum`, `avg`, `min`, and `max`.
7599	Metrics []*GoogleCloudApigeeV1SchemaSchemaElement `json:"metrics,omitempty"`
7600
7601	// ServerResponse contains the HTTP response code and headers from the
7602	// server.
7603	googleapi.ServerResponse `json:"-"`
7604
7605	// ForceSendFields is a list of field names (e.g. "Dimensions") to
7606	// unconditionally include in API requests. By default, fields with
7607	// empty values are omitted from API requests. However, any non-pointer,
7608	// non-interface field appearing in ForceSendFields will be sent to the
7609	// server regardless of whether the field is empty or not. This may be
7610	// used to include empty fields in Patch requests.
7611	ForceSendFields []string `json:"-"`
7612
7613	// NullFields is a list of field names (e.g. "Dimensions") to include in
7614	// API requests with the JSON null value. By default, fields with empty
7615	// values are omitted from API requests. However, any field with an
7616	// empty value appearing in NullFields will be sent to the server as
7617	// null. It is an error if a field in this list has a non-empty value.
7618	// This may be used to include null fields in Patch requests.
7619	NullFields []string `json:"-"`
7620}
7621
7622func (s *GoogleCloudApigeeV1Schema) MarshalJSON() ([]byte, error) {
7623	type NoMethod GoogleCloudApigeeV1Schema
7624	raw := NoMethod(*s)
7625	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7626}
7627
7628// GoogleCloudApigeeV1SchemaSchemaElement: Message type for the schema
7629// element
7630type GoogleCloudApigeeV1SchemaSchemaElement struct {
7631	// Name: Name of the field.
7632	Name string `json:"name,omitempty"`
7633
7634	// Properties: Properties for the schema field. For example: {
7635	// "createTime": "2016-02-26T10:23:09.592Z", "custom": "false", "type":
7636	// "string" }
7637	Properties *GoogleCloudApigeeV1SchemaSchemaProperty `json:"properties,omitempty"`
7638
7639	// ForceSendFields is a list of field names (e.g. "Name") to
7640	// unconditionally include in API requests. By default, fields with
7641	// empty values are omitted from API requests. However, any non-pointer,
7642	// non-interface field appearing in ForceSendFields will be sent to the
7643	// server regardless of whether the field is empty or not. This may be
7644	// used to include empty fields in Patch requests.
7645	ForceSendFields []string `json:"-"`
7646
7647	// NullFields is a list of field names (e.g. "Name") to include in API
7648	// requests with the JSON null value. By default, fields with empty
7649	// values are omitted from API requests. However, any field with an
7650	// empty value appearing in NullFields will be sent to the server as
7651	// null. It is an error if a field in this list has a non-empty value.
7652	// This may be used to include null fields in Patch requests.
7653	NullFields []string `json:"-"`
7654}
7655
7656func (s *GoogleCloudApigeeV1SchemaSchemaElement) MarshalJSON() ([]byte, error) {
7657	type NoMethod GoogleCloudApigeeV1SchemaSchemaElement
7658	raw := NoMethod(*s)
7659	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7660}
7661
7662// GoogleCloudApigeeV1SchemaSchemaProperty: Properties for the schema
7663// field.
7664type GoogleCloudApigeeV1SchemaSchemaProperty struct {
7665	// CreateTime: Time the field was created in RFC3339 string form. For
7666	// example: `2016-02-26T10:23:09.592Z`.
7667	CreateTime string `json:"createTime,omitempty"`
7668
7669	// Custom: Flag that specifies whether the field is standard in the
7670	// dataset or a custom field created by the customer. `true` indicates
7671	// that it is a custom field.
7672	Custom string `json:"custom,omitempty"`
7673
7674	// Type: Data type of the field.
7675	Type string `json:"type,omitempty"`
7676
7677	// ForceSendFields is a list of field names (e.g. "CreateTime") 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. "CreateTime") to include in
7686	// API 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 *GoogleCloudApigeeV1SchemaSchemaProperty) MarshalJSON() ([]byte, error) {
7695	type NoMethod GoogleCloudApigeeV1SchemaSchemaProperty
7696	raw := NoMethod(*s)
7697	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7698}
7699
7700type GoogleCloudApigeeV1ServiceIssuersMapping struct {
7701	// EmailIds: List of trusted issuer email ids.
7702	EmailIds []string `json:"emailIds,omitempty"`
7703
7704	// Service: String indicating the Apigee service name.
7705	Service string `json:"service,omitempty"`
7706
7707	// ForceSendFields is a list of field names (e.g. "EmailIds") to
7708	// unconditionally include in API requests. By default, fields with
7709	// empty values are omitted from API requests. However, any non-pointer,
7710	// non-interface field appearing in ForceSendFields will be sent to the
7711	// server regardless of whether the field is empty or not. This may be
7712	// used to include empty fields in Patch requests.
7713	ForceSendFields []string `json:"-"`
7714
7715	// NullFields is a list of field names (e.g. "EmailIds") to include in
7716	// API requests with the JSON null value. By default, fields with empty
7717	// values are omitted from API requests. However, any field with an
7718	// empty value appearing in NullFields will be sent to the server as
7719	// null. It is an error if a field in this list has a non-empty value.
7720	// This may be used to include null fields in Patch requests.
7721	NullFields []string `json:"-"`
7722}
7723
7724func (s *GoogleCloudApigeeV1ServiceIssuersMapping) MarshalJSON() ([]byte, error) {
7725	type NoMethod GoogleCloudApigeeV1ServiceIssuersMapping
7726	raw := NoMethod(*s)
7727	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7728}
7729
7730// GoogleCloudApigeeV1Session: Session carries the debug session id and
7731// its creation time.
7732type GoogleCloudApigeeV1Session struct {
7733	// Id: The debug session ID.
7734	Id string `json:"id,omitempty"`
7735
7736	// TimestampMs: The first transaction creation timestamp in millisecond,
7737	// recoreded by UAP.
7738	TimestampMs int64 `json:"timestampMs,omitempty,string"`
7739
7740	// ForceSendFields is a list of field names (e.g. "Id") to
7741	// unconditionally include in API requests. By default, fields with
7742	// empty values are omitted from API requests. However, any non-pointer,
7743	// non-interface field appearing in ForceSendFields will be sent to the
7744	// server regardless of whether the field is empty or not. This may be
7745	// used to include empty fields in Patch requests.
7746	ForceSendFields []string `json:"-"`
7747
7748	// NullFields is a list of field names (e.g. "Id") to include in API
7749	// requests with the JSON null value. By default, fields with empty
7750	// values are omitted from API requests. However, any field with an
7751	// empty value appearing in NullFields will be sent to the server as
7752	// null. It is an error if a field in this list has a non-empty value.
7753	// This may be used to include null fields in Patch requests.
7754	NullFields []string `json:"-"`
7755}
7756
7757func (s *GoogleCloudApigeeV1Session) MarshalJSON() ([]byte, error) {
7758	type NoMethod GoogleCloudApigeeV1Session
7759	raw := NoMethod(*s)
7760	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7761}
7762
7763// GoogleCloudApigeeV1SetAddonsRequest: Request for SetAddons.
7764type GoogleCloudApigeeV1SetAddonsRequest struct {
7765	// AddonsConfig: Required. Add-on configurations.
7766	AddonsConfig *GoogleCloudApigeeV1AddonsConfig `json:"addonsConfig,omitempty"`
7767
7768	// ForceSendFields is a list of field names (e.g. "AddonsConfig") to
7769	// unconditionally include in API requests. By default, fields with
7770	// empty values are omitted from API requests. However, any non-pointer,
7771	// non-interface field appearing in ForceSendFields will be sent to the
7772	// server regardless of whether the field is empty or not. This may be
7773	// used to include empty fields in Patch requests.
7774	ForceSendFields []string `json:"-"`
7775
7776	// NullFields is a list of field names (e.g. "AddonsConfig") to include
7777	// in API requests with the JSON null value. By default, fields with
7778	// empty values are omitted from API requests. However, any field with
7779	// an empty value appearing in NullFields will be sent to the server as
7780	// null. It is an error if a field in this list has a non-empty value.
7781	// This may be used to include null fields in Patch requests.
7782	NullFields []string `json:"-"`
7783}
7784
7785func (s *GoogleCloudApigeeV1SetAddonsRequest) MarshalJSON() ([]byte, error) {
7786	type NoMethod GoogleCloudApigeeV1SetAddonsRequest
7787	raw := NoMethod(*s)
7788	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7789}
7790
7791// GoogleCloudApigeeV1SharedFlow: The metadata describing a shared flow
7792type GoogleCloudApigeeV1SharedFlow struct {
7793	// LatestRevisionId: The id of the most recently created revision for
7794	// this shared flow.
7795	LatestRevisionId string `json:"latestRevisionId,omitempty"`
7796
7797	// MetaData: Metadata describing the shared flow.
7798	MetaData *GoogleCloudApigeeV1EntityMetadata `json:"metaData,omitempty"`
7799
7800	// Name: The ID of the shared flow.
7801	Name string `json:"name,omitempty"`
7802
7803	// Revision: A list of revisions of this shared flow.
7804	Revision []string `json:"revision,omitempty"`
7805
7806	// ServerResponse contains the HTTP response code and headers from the
7807	// server.
7808	googleapi.ServerResponse `json:"-"`
7809
7810	// ForceSendFields is a list of field names (e.g. "LatestRevisionId") to
7811	// unconditionally include in API requests. By default, fields with
7812	// empty values are omitted from API requests. However, any non-pointer,
7813	// non-interface field appearing in ForceSendFields will be sent to the
7814	// server regardless of whether the field is empty or not. This may be
7815	// used to include empty fields in Patch requests.
7816	ForceSendFields []string `json:"-"`
7817
7818	// NullFields is a list of field names (e.g. "LatestRevisionId") to
7819	// include in API requests with the JSON null value. By default, fields
7820	// with empty values are omitted from API requests. However, any field
7821	// with an empty value appearing in NullFields will be sent to the
7822	// server as null. It is an error if a field in this list has a
7823	// non-empty value. This may be used to include null fields in Patch
7824	// requests.
7825	NullFields []string `json:"-"`
7826}
7827
7828func (s *GoogleCloudApigeeV1SharedFlow) MarshalJSON() ([]byte, error) {
7829	type NoMethod GoogleCloudApigeeV1SharedFlow
7830	raw := NoMethod(*s)
7831	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7832}
7833
7834// GoogleCloudApigeeV1SharedFlowRevision: The metadata describing a
7835// shared flow revision.
7836type GoogleCloudApigeeV1SharedFlowRevision struct {
7837	// ConfigurationVersion: The version of the configuration schema to
7838	// which this shared flow conforms. The only supported value currently
7839	// is majorVersion 4 and minorVersion 0. This setting may be used in the
7840	// future to enable evolution of the shared flow format.
7841	ConfigurationVersion *GoogleCloudApigeeV1ConfigVersion `json:"configurationVersion,omitempty"`
7842
7843	// ContextInfo: A textual description of the shared flow revision.
7844	ContextInfo string `json:"contextInfo,omitempty"`
7845
7846	// CreatedAt: Time at which this shared flow revision was created, in
7847	// milliseconds since epoch.
7848	CreatedAt int64 `json:"createdAt,omitempty,string"`
7849
7850	// Description: Description of the shared flow revision.
7851	Description string `json:"description,omitempty"`
7852
7853	// DisplayName: The human readable name of this shared flow.
7854	DisplayName string `json:"displayName,omitempty"`
7855
7856	// EntityMetaDataAsProperties: A Key-Value map of metadata about this
7857	// shared flow revision.
7858	EntityMetaDataAsProperties map[string]string `json:"entityMetaDataAsProperties,omitempty"`
7859
7860	// LastModifiedAt: Time at which this shared flow revision was most
7861	// recently modified, in milliseconds since epoch.
7862	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
7863
7864	// Name: The resource ID of the parent shared flow.
7865	Name string `json:"name,omitempty"`
7866
7867	// Policies: A list of policy names included in this shared flow
7868	// revision.
7869	Policies []string `json:"policies,omitempty"`
7870
7871	// ResourceFiles: The resource files included in this shared flow
7872	// revision.
7873	ResourceFiles *GoogleCloudApigeeV1ResourceFiles `json:"resourceFiles,omitempty"`
7874
7875	// Resources: A list of the resources included in this shared flow
7876	// revision formatted as "{type}://{name}".
7877	Resources []string `json:"resources,omitempty"`
7878
7879	// Revision: The resource ID of this revision.
7880	Revision string `json:"revision,omitempty"`
7881
7882	// SharedFlows: A list of the shared flow names included in this shared
7883	// flow revision.
7884	SharedFlows []string `json:"sharedFlows,omitempty"`
7885
7886	// Type: The string "Application"
7887	Type string `json:"type,omitempty"`
7888
7889	// ServerResponse contains the HTTP response code and headers from the
7890	// server.
7891	googleapi.ServerResponse `json:"-"`
7892
7893	// ForceSendFields is a list of field names (e.g.
7894	// "ConfigurationVersion") to unconditionally include in API requests.
7895	// By default, fields with empty values are omitted from API requests.
7896	// However, any non-pointer, non-interface field appearing in
7897	// ForceSendFields will be sent to the server regardless of whether the
7898	// field is empty or not. This may be used to include empty fields in
7899	// Patch requests.
7900	ForceSendFields []string `json:"-"`
7901
7902	// NullFields is a list of field names (e.g. "ConfigurationVersion") to
7903	// include in API requests with the JSON null value. By default, fields
7904	// with empty values are omitted from API requests. However, any field
7905	// with an empty value appearing in NullFields will be sent to the
7906	// server as null. It is an error if a field in this list has a
7907	// non-empty value. This may be used to include null fields in Patch
7908	// requests.
7909	NullFields []string `json:"-"`
7910}
7911
7912func (s *GoogleCloudApigeeV1SharedFlowRevision) MarshalJSON() ([]byte, error) {
7913	type NoMethod GoogleCloudApigeeV1SharedFlowRevision
7914	raw := NoMethod(*s)
7915	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7916}
7917
7918// GoogleCloudApigeeV1Stats: This message type encapsulates a stats
7919// response.
7920type GoogleCloudApigeeV1Stats struct {
7921	// Environments: This field contains a list of query results on
7922	// environment level.
7923	Environments []*GoogleCloudApigeeV1StatsEnvironmentStats `json:"environments,omitempty"`
7924
7925	// Hosts: This field contains a list of query results grouped by host.
7926	Hosts []*GoogleCloudApigeeV1StatsHostStats `json:"hosts,omitempty"`
7927
7928	// MetaData: This field contains the metadata information.
7929	MetaData *GoogleCloudApigeeV1Metadata `json:"metaData,omitempty"`
7930
7931	// ServerResponse contains the HTTP response code and headers from the
7932	// server.
7933	googleapi.ServerResponse `json:"-"`
7934
7935	// ForceSendFields is a list of field names (e.g. "Environments") to
7936	// unconditionally include in API requests. By default, fields with
7937	// empty values are omitted from API requests. However, any non-pointer,
7938	// non-interface field appearing in ForceSendFields will be sent to the
7939	// server regardless of whether the field is empty or not. This may be
7940	// used to include empty fields in Patch requests.
7941	ForceSendFields []string `json:"-"`
7942
7943	// NullFields is a list of field names (e.g. "Environments") to include
7944	// in API requests with the JSON null value. By default, fields with
7945	// empty values are omitted from API requests. However, any field with
7946	// an empty value appearing in NullFields will be sent to the server as
7947	// null. It is an error if a field in this list has a non-empty value.
7948	// This may be used to include null fields in Patch requests.
7949	NullFields []string `json:"-"`
7950}
7951
7952func (s *GoogleCloudApigeeV1Stats) MarshalJSON() ([]byte, error) {
7953	type NoMethod GoogleCloudApigeeV1Stats
7954	raw := NoMethod(*s)
7955	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7956}
7957
7958// GoogleCloudApigeeV1StatsEnvironmentStats: This message type
7959// encapsulates the environment wrapper: "environments": [ { "metrics":
7960// [ { "name": "sum(message_count)", "values": [ "2.52056245E8" ] } ],
7961// "name": "prod" } ]
7962type GoogleCloudApigeeV1StatsEnvironmentStats struct {
7963	// Dimensions: This field contains the list of metrics grouped under
7964	// dimensions.
7965	Dimensions []*GoogleCloudApigeeV1DimensionMetric `json:"dimensions,omitempty"`
7966
7967	// Metrics: In the final response, only one of the following fields will
7968	// be present based on the dimensions provided. If no dimensions are
7969	// provided, then only a top level metrics is provided. If dimensions
7970	// are included, then there will be a top level dimensions field under
7971	// environments which will contain metrics values and the dimension
7972	// name. Example: "environments": [ { "dimensions": [ { "metrics": [ {
7973	// "name": "sum(message_count)", "values": [ "2.14049521E8" ] } ],
7974	// "name": "nit_proxy" } ], "name": "prod" } ] OR "environments": [ {
7975	// "metrics": [ { "name": "sum(message_count)", "values": [
7976	// "2.19026331E8" ] } ], "name": "prod" } ] This field contains the list
7977	// of metric values.
7978	Metrics []*GoogleCloudApigeeV1Metric `json:"metrics,omitempty"`
7979
7980	Name string `json:"name,omitempty"`
7981
7982	// ForceSendFields is a list of field names (e.g. "Dimensions") to
7983	// unconditionally include in API requests. By default, fields with
7984	// empty values are omitted from API requests. However, any non-pointer,
7985	// non-interface field appearing in ForceSendFields will be sent to the
7986	// server regardless of whether the field is empty or not. This may be
7987	// used to include empty fields in Patch requests.
7988	ForceSendFields []string `json:"-"`
7989
7990	// NullFields is a list of field names (e.g. "Dimensions") to include in
7991	// API requests with the JSON null value. By default, fields with empty
7992	// values are omitted from API requests. However, any field with an
7993	// empty value appearing in NullFields will be sent to the server as
7994	// null. It is an error if a field in this list has a non-empty value.
7995	// This may be used to include null fields in Patch requests.
7996	NullFields []string `json:"-"`
7997}
7998
7999func (s *GoogleCloudApigeeV1StatsEnvironmentStats) MarshalJSON() ([]byte, error) {
8000	type NoMethod GoogleCloudApigeeV1StatsEnvironmentStats
8001	raw := NoMethod(*s)
8002	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8003}
8004
8005// GoogleCloudApigeeV1StatsHostStats: This message type encapsulates the
8006// hostname wrapper: "hosts": [ { "metrics": [ { "name":
8007// "sum(message_count)", "values": [ "2.52056245E8" ] } ], "name":
8008// "example.com" } ]
8009type GoogleCloudApigeeV1StatsHostStats struct {
8010	// Dimensions: This field contains the list of metrics grouped under
8011	// dimensions.
8012	Dimensions []*GoogleCloudApigeeV1DimensionMetric `json:"dimensions,omitempty"`
8013
8014	// Metrics: In the final response, only one of the following fields will
8015	// be present based on the dimensions provided. If no dimensions are
8016	// provided, then only a top level metrics is provided. If dimensions
8017	// are included, then there will be a top level dimensions field under
8018	// hostnames which will contain metrics values and the dimension name.
8019	// Example: "hosts": [ { "dimensions": [ { "metrics": [ { "name":
8020	// "sum(message_count)", "values": [ "2.14049521E8" ] } ], "name":
8021	// "nit_proxy" } ], "name": "example.com" } ] OR "hosts": [ { "metrics":
8022	// [ { "name": "sum(message_count)", "values": [ "2.19026331E8" ] } ],
8023	// "name": "example.com" } ] This field contains the list of metric
8024	// values.
8025	Metrics []*GoogleCloudApigeeV1Metric `json:"metrics,omitempty"`
8026
8027	// Name: This field contains the hostname used in query.
8028	Name string `json:"name,omitempty"`
8029
8030	// ForceSendFields is a list of field names (e.g. "Dimensions") to
8031	// unconditionally include in API requests. By default, fields with
8032	// empty values are omitted from API requests. However, any non-pointer,
8033	// non-interface field appearing in ForceSendFields will be sent to the
8034	// server regardless of whether the field is empty or not. This may be
8035	// used to include empty fields in Patch requests.
8036	ForceSendFields []string `json:"-"`
8037
8038	// NullFields is a list of field names (e.g. "Dimensions") to include in
8039	// API requests with the JSON null value. By default, fields with empty
8040	// values are omitted from API requests. However, any field with an
8041	// empty value appearing in NullFields will be sent to the server as
8042	// null. It is an error if a field in this list has a non-empty value.
8043	// This may be used to include null fields in Patch requests.
8044	NullFields []string `json:"-"`
8045}
8046
8047func (s *GoogleCloudApigeeV1StatsHostStats) MarshalJSON() ([]byte, error) {
8048	type NoMethod GoogleCloudApigeeV1StatsHostStats
8049	raw := NoMethod(*s)
8050	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8051}
8052
8053// GoogleCloudApigeeV1Subscription: Pub/Sub subscription of an
8054// environment.
8055type GoogleCloudApigeeV1Subscription struct {
8056	// Name: Full name of the Pub/Sub subcription. Use the following
8057	// structure in your request: `subscription
8058	// "projects/foo/subscription/bar"
8059	Name string `json:"name,omitempty"`
8060
8061	// ServerResponse contains the HTTP response code and headers from the
8062	// server.
8063	googleapi.ServerResponse `json:"-"`
8064
8065	// ForceSendFields is a list of field names (e.g. "Name") to
8066	// unconditionally include in API requests. By default, fields with
8067	// empty values are omitted from API requests. However, any non-pointer,
8068	// non-interface field appearing in ForceSendFields will be sent to the
8069	// server regardless of whether the field is empty or not. This may be
8070	// used to include empty fields in Patch requests.
8071	ForceSendFields []string `json:"-"`
8072
8073	// NullFields is a list of field names (e.g. "Name") to include in API
8074	// requests with the JSON null value. By default, fields with empty
8075	// values are omitted from API requests. However, any field with an
8076	// empty value appearing in NullFields will be sent to the server as
8077	// null. It is an error if a field in this list has a non-empty value.
8078	// This may be used to include null fields in Patch requests.
8079	NullFields []string `json:"-"`
8080}
8081
8082func (s *GoogleCloudApigeeV1Subscription) MarshalJSON() ([]byte, error) {
8083	type NoMethod GoogleCloudApigeeV1Subscription
8084	raw := NoMethod(*s)
8085	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8086}
8087
8088type GoogleCloudApigeeV1SyncAuthorization struct {
8089	// Etag: Entity tag (ETag) used for optimistic concurrency control as a
8090	// way to help prevent simultaneous updates from overwriting each other.
8091	// For example, when you call getSyncAuthorization
8092	// (organizations/getSyncAuthorization) an ETag is returned in the
8093	// response. Pass that ETag when calling the setSyncAuthorization
8094	// (organizations/setSyncAuthorization) to ensure that you are updating
8095	// the correct version. If you don't pass the ETag in the call to
8096	// `setSyncAuthorization`, then the existing authorization is
8097	// overwritten indiscriminately. **Note**: We strongly recommend that
8098	// you use the ETag in the read-modify-write cycle to avoid race
8099	// conditions.
8100	Etag string `json:"etag,omitempty"`
8101
8102	// Identities: Required. Array of service accounts to grant access to
8103	// control plane resources, each specified using the following format:
8104	// `serviceAccount:` service-account-name. The service-account-name is
8105	// formatted like an email address. For example:
8106	// `my-synchronizer-manager-service_account@my_project_id.iam.gserviceacc
8107	// ount.com` You might specify multiple service accounts, for example,
8108	// if you have multiple environments and wish to assign a unique service
8109	// account to each one. The service accounts must have **Apigee
8110	// Synchronizer Manager** role. See also Create service accounts
8111	// (https://cloud.google.com/apigee/docs/hybrid/latest/sa-about#create-the-service-accounts).
8112	Identities []string `json:"identities,omitempty"`
8113
8114	// ServerResponse contains the HTTP response code and headers from the
8115	// server.
8116	googleapi.ServerResponse `json:"-"`
8117
8118	// ForceSendFields is a list of field names (e.g. "Etag") to
8119	// unconditionally include in API requests. By default, fields with
8120	// empty values are omitted from API requests. However, any non-pointer,
8121	// non-interface field appearing in ForceSendFields will be sent to the
8122	// server regardless of whether the field is empty or not. This may be
8123	// used to include empty fields in Patch requests.
8124	ForceSendFields []string `json:"-"`
8125
8126	// NullFields is a list of field names (e.g. "Etag") to include in API
8127	// requests with the JSON null value. By default, fields with empty
8128	// values are omitted from API requests. However, any field with an
8129	// empty value appearing in NullFields will be sent to the server as
8130	// null. It is an error if a field in this list has a non-empty value.
8131	// This may be used to include null fields in Patch requests.
8132	NullFields []string `json:"-"`
8133}
8134
8135func (s *GoogleCloudApigeeV1SyncAuthorization) MarshalJSON() ([]byte, error) {
8136	type NoMethod GoogleCloudApigeeV1SyncAuthorization
8137	raw := NoMethod(*s)
8138	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8139}
8140
8141// GoogleCloudApigeeV1TargetServer: TargetServer configuration.
8142// TargetServers are used to decouple a proxy's TargetEndpoint
8143// HTTPTargetConnections from concrete URLs for backend services.
8144type GoogleCloudApigeeV1TargetServer struct {
8145	// Description: Optional. A human-readable description of this
8146	// TargetServer.
8147	Description string `json:"description,omitempty"`
8148
8149	// Host: Required. The host name this target connects to. Value must be
8150	// a valid hostname as described by RFC-1123.
8151	Host string `json:"host,omitempty"`
8152
8153	// IsEnabled: Optional. Enabling/disabling a TargetServer is useful when
8154	// TargetServers are used in load balancing configurations, and one or
8155	// more TargetServers need to taken out of rotation periodically.
8156	// Defaults to true.
8157	IsEnabled bool `json:"isEnabled,omitempty"`
8158
8159	// Name: Required. The resource id of this target server. Values must
8160	// match the regular expression
8161	Name string `json:"name,omitempty"`
8162
8163	// Port: Required. The port number this target connects to on the given
8164	// host. Value must be between 1 and 65535, inclusive.
8165	Port int64 `json:"port,omitempty"`
8166
8167	// Protocol: Immutable. The protocol used by this TargetServer.
8168	//
8169	// Possible values:
8170	//   "PROTOCOL_UNSPECIFIED" - UNSPECIFIED defaults to HTTP for backwards
8171	// compatibility.
8172	//   "HTTP" - The TargetServer uses HTTP.
8173	//   "GRPC" - The TargetServer uses GRPC.
8174	Protocol string `json:"protocol,omitempty"`
8175
8176	// SSLInfo: Optional. Specifies TLS configuration info for this
8177	// TargetServer. The JSON name is `sSLInfo` for legacy/backwards
8178	// compatibility reasons -- Edge originally supported SSL, and the name
8179	// is still used for TLS configuration.
8180	SSLInfo *GoogleCloudApigeeV1TlsInfo `json:"sSLInfo,omitempty"`
8181
8182	// ServerResponse contains the HTTP response code and headers from the
8183	// server.
8184	googleapi.ServerResponse `json:"-"`
8185
8186	// ForceSendFields is a list of field names (e.g. "Description") to
8187	// unconditionally include in API requests. By default, fields with
8188	// empty values are omitted from API requests. However, any non-pointer,
8189	// non-interface field appearing in ForceSendFields will be sent to the
8190	// server regardless of whether the field is empty or not. This may be
8191	// used to include empty fields in Patch requests.
8192	ForceSendFields []string `json:"-"`
8193
8194	// NullFields is a list of field names (e.g. "Description") to include
8195	// in API requests with the JSON null value. By default, fields with
8196	// empty values are omitted from API requests. However, any field with
8197	// an empty value appearing in NullFields will be sent to the server as
8198	// null. It is an error if a field in this list has a non-empty value.
8199	// This may be used to include null fields in Patch requests.
8200	NullFields []string `json:"-"`
8201}
8202
8203func (s *GoogleCloudApigeeV1TargetServer) MarshalJSON() ([]byte, error) {
8204	type NoMethod GoogleCloudApigeeV1TargetServer
8205	raw := NoMethod(*s)
8206	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8207}
8208
8209type GoogleCloudApigeeV1TargetServerConfig struct {
8210	// Host: Host name of the target server.
8211	Host string `json:"host,omitempty"`
8212
8213	// Name: Target server revision name in the following format:
8214	// `organizations/{org}/environments/{env}/targetservers/{targetserver}/r
8215	// evisions/{rev}`
8216	Name string `json:"name,omitempty"`
8217
8218	// Port: Port number for the target server.
8219	Port int64 `json:"port,omitempty"`
8220
8221	// Protocol: The protocol used by this target server.
8222	//
8223	// Possible values:
8224	//   "PROTOCOL_UNSPECIFIED" - UNSPECIFIED defaults to HTTP for backwards
8225	// compatibility.
8226	//   "HTTP" - The TargetServer uses HTTP.
8227	//   "GRPC" - The TargetServer uses GRPC.
8228	Protocol string `json:"protocol,omitempty"`
8229
8230	// TlsInfo: TLS settings for the target server.
8231	TlsInfo *GoogleCloudApigeeV1TlsInfoConfig `json:"tlsInfo,omitempty"`
8232
8233	// ForceSendFields is a list of field names (e.g. "Host") to
8234	// unconditionally include in API requests. By default, fields with
8235	// empty values are omitted from API requests. However, any non-pointer,
8236	// non-interface field appearing in ForceSendFields will be sent to the
8237	// server regardless of whether the field is empty or not. This may be
8238	// used to include empty fields in Patch requests.
8239	ForceSendFields []string `json:"-"`
8240
8241	// NullFields is a list of field names (e.g. "Host") to include in API
8242	// requests with the JSON null value. By default, fields with empty
8243	// values are omitted from API requests. However, any field with an
8244	// empty value appearing in NullFields will be sent to the server as
8245	// null. It is an error if a field in this list has a non-empty value.
8246	// This may be used to include null fields in Patch requests.
8247	NullFields []string `json:"-"`
8248}
8249
8250func (s *GoogleCloudApigeeV1TargetServerConfig) MarshalJSON() ([]byte, error) {
8251	type NoMethod GoogleCloudApigeeV1TargetServerConfig
8252	raw := NoMethod(*s)
8253	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8254}
8255
8256// GoogleCloudApigeeV1TestDatastoreResponse: The response for
8257// TestDatastore
8258type GoogleCloudApigeeV1TestDatastoreResponse struct {
8259	// Error: Output only. Error message of test connection failure
8260	Error string `json:"error,omitempty"`
8261
8262	// State: Output only. It could be `completed` or `failed`
8263	State string `json:"state,omitempty"`
8264
8265	// ServerResponse contains the HTTP response code and headers from the
8266	// server.
8267	googleapi.ServerResponse `json:"-"`
8268
8269	// ForceSendFields is a list of field names (e.g. "Error") to
8270	// unconditionally include in API requests. By default, fields with
8271	// empty values are omitted from API requests. However, any non-pointer,
8272	// non-interface field appearing in ForceSendFields will be sent to the
8273	// server regardless of whether the field is empty or not. This may be
8274	// used to include empty fields in Patch requests.
8275	ForceSendFields []string `json:"-"`
8276
8277	// NullFields is a list of field names (e.g. "Error") to include in API
8278	// requests with the JSON null value. By default, fields with empty
8279	// values are omitted from API requests. However, any field with an
8280	// empty value appearing in NullFields will be sent to the server as
8281	// null. It is an error if a field in this list has a non-empty value.
8282	// This may be used to include null fields in Patch requests.
8283	NullFields []string `json:"-"`
8284}
8285
8286func (s *GoogleCloudApigeeV1TestDatastoreResponse) MarshalJSON() ([]byte, error) {
8287	type NoMethod GoogleCloudApigeeV1TestDatastoreResponse
8288	raw := NoMethod(*s)
8289	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8290}
8291
8292// GoogleCloudApigeeV1TlsInfo: TLS configuration information for
8293// VirtualHosts and TargetServers.
8294type GoogleCloudApigeeV1TlsInfo struct {
8295	// Ciphers: The SSL/TLS cipher suites to be used. Must be one of the
8296	// cipher suite names listed in:
8297	// http://docs.oracle.com/javase/8/docs/technotes/guides/security/StandardNames.html#ciphersuites
8298	Ciphers []string `json:"ciphers,omitempty"`
8299
8300	// ClientAuthEnabled: Optional. Enables two-way TLS.
8301	ClientAuthEnabled bool `json:"clientAuthEnabled,omitempty"`
8302
8303	// CommonName: The TLS Common Name of the certificate.
8304	CommonName *GoogleCloudApigeeV1TlsInfoCommonName `json:"commonName,omitempty"`
8305
8306	// Enabled: Required. Enables TLS. If false, neither one-way nor two-way
8307	// TLS will be enabled.
8308	Enabled bool `json:"enabled,omitempty"`
8309
8310	// IgnoreValidationErrors: If true, Edge ignores TLS certificate errors.
8311	// Valid when configuring TLS for target servers and target endpoints,
8312	// and when configuring virtual hosts that use 2-way TLS. When used with
8313	// a target endpoint/target server, if the backend system uses SNI and
8314	// returns a cert with a subject Distinguished Name (DN) that does not
8315	// match the hostname, there is no way to ignore the error and the
8316	// connection fails.
8317	IgnoreValidationErrors bool `json:"ignoreValidationErrors,omitempty"`
8318
8319	// KeyAlias: Required if `client_auth_enabled` is true. The resource ID
8320	// for the alias containing the private key and cert.
8321	KeyAlias string `json:"keyAlias,omitempty"`
8322
8323	// KeyStore: Required if `client_auth_enabled` is true. The resource ID
8324	// of the keystore. References not yet supported.
8325	KeyStore string `json:"keyStore,omitempty"`
8326
8327	// Protocols: The TLS versioins to be used.
8328	Protocols []string `json:"protocols,omitempty"`
8329
8330	// TrustStore: The resource ID of the truststore. References not yet
8331	// supported.
8332	TrustStore string `json:"trustStore,omitempty"`
8333
8334	// ForceSendFields is a list of field names (e.g. "Ciphers") to
8335	// unconditionally include in API requests. By default, fields with
8336	// empty values are omitted from API requests. However, any non-pointer,
8337	// non-interface field appearing in ForceSendFields will be sent to the
8338	// server regardless of whether the field is empty or not. This may be
8339	// used to include empty fields in Patch requests.
8340	ForceSendFields []string `json:"-"`
8341
8342	// NullFields is a list of field names (e.g. "Ciphers") to include in
8343	// API requests with the JSON null value. By default, fields with empty
8344	// values are omitted from API requests. However, any field with an
8345	// empty value appearing in NullFields will be sent to the server as
8346	// null. It is an error if a field in this list has a non-empty value.
8347	// This may be used to include null fields in Patch requests.
8348	NullFields []string `json:"-"`
8349}
8350
8351func (s *GoogleCloudApigeeV1TlsInfo) MarshalJSON() ([]byte, error) {
8352	type NoMethod GoogleCloudApigeeV1TlsInfo
8353	raw := NoMethod(*s)
8354	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8355}
8356
8357type GoogleCloudApigeeV1TlsInfoCommonName struct {
8358	// Value: The TLS Common Name string of the certificate.
8359	Value string `json:"value,omitempty"`
8360
8361	// WildcardMatch: Indicates whether the cert should be matched against
8362	// as a wildcard cert.
8363	WildcardMatch bool `json:"wildcardMatch,omitempty"`
8364
8365	// ForceSendFields is a list of field names (e.g. "Value") to
8366	// unconditionally include in API requests. By default, fields with
8367	// empty values are omitted from API requests. However, any non-pointer,
8368	// non-interface field appearing in ForceSendFields will be sent to the
8369	// server regardless of whether the field is empty or not. This may be
8370	// used to include empty fields in Patch requests.
8371	ForceSendFields []string `json:"-"`
8372
8373	// NullFields is a list of field names (e.g. "Value") to include in API
8374	// requests with the JSON null value. By default, fields with empty
8375	// values are omitted from API requests. However, any field with an
8376	// empty value appearing in NullFields will be sent to the server as
8377	// null. It is an error if a field in this list has a non-empty value.
8378	// This may be used to include null fields in Patch requests.
8379	NullFields []string `json:"-"`
8380}
8381
8382func (s *GoogleCloudApigeeV1TlsInfoCommonName) MarshalJSON() ([]byte, error) {
8383	type NoMethod GoogleCloudApigeeV1TlsInfoCommonName
8384	raw := NoMethod(*s)
8385	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8386}
8387
8388type GoogleCloudApigeeV1TlsInfoConfig struct {
8389	// Ciphers: List of ciphers that are granted access.
8390	Ciphers []string `json:"ciphers,omitempty"`
8391
8392	// ClientAuthEnabled: Flag that specifies whether client-side
8393	// authentication is enabled for the target server. Enables two-way TLS.
8394	ClientAuthEnabled bool `json:"clientAuthEnabled,omitempty"`
8395
8396	// CommonName: Common name to validate the target server against.
8397	CommonName *GoogleCloudApigeeV1CommonNameConfig `json:"commonName,omitempty"`
8398
8399	// Enabled: Flag that specifies whether one-way TLS is enabled. Set to
8400	// `true` to enable one-way TLS.
8401	Enabled bool `json:"enabled,omitempty"`
8402
8403	// IgnoreValidationErrors: Flag that specifies whether to ignore TLS
8404	// certificate validation errors. Set to `true` to ignore errors.
8405	IgnoreValidationErrors bool `json:"ignoreValidationErrors,omitempty"`
8406
8407	// KeyAlias: Name of the alias used for client-side authentication in
8408	// the following format:
8409	// `organizations/{org}/environments/{env}/keystores/{keystore}/aliases/{
8410	// alias}`
8411	KeyAlias string `json:"keyAlias,omitempty"`
8412
8413	// KeyAliasReference: Reference name and alias pair to use for
8414	// client-side authentication.
8415	KeyAliasReference *GoogleCloudApigeeV1KeyAliasReference `json:"keyAliasReference,omitempty"`
8416
8417	// Protocols: List of TLS protocols that are granted access.
8418	Protocols []string `json:"protocols,omitempty"`
8419
8420	// TrustStore: Name of the keystore or keystore reference containing
8421	// trusted certificates for the server in the following format:
8422	// `organizations/{org}/environments/{env}/keystores/{keystore}` or
8423	// `organizations/{org}/environments/{env}/references/{reference}`
8424	TrustStore string `json:"trustStore,omitempty"`
8425
8426	// ForceSendFields is a list of field names (e.g. "Ciphers") to
8427	// unconditionally include in API requests. By default, fields with
8428	// empty values are omitted from API requests. However, any non-pointer,
8429	// non-interface field appearing in ForceSendFields will be sent to the
8430	// server regardless of whether the field is empty or not. This may be
8431	// used to include empty fields in Patch requests.
8432	ForceSendFields []string `json:"-"`
8433
8434	// NullFields is a list of field names (e.g. "Ciphers") to include in
8435	// API requests with the JSON null value. By default, fields with empty
8436	// values are omitted from API requests. However, any field with an
8437	// empty value appearing in NullFields will be sent to the server as
8438	// null. It is an error if a field in this list has a non-empty value.
8439	// This may be used to include null fields in Patch requests.
8440	NullFields []string `json:"-"`
8441}
8442
8443func (s *GoogleCloudApigeeV1TlsInfoConfig) MarshalJSON() ([]byte, error) {
8444	type NoMethod GoogleCloudApigeeV1TlsInfoConfig
8445	raw := NoMethod(*s)
8446	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8447}
8448
8449// GoogleCloudApigeeV1TraceConfig: TraceConfig defines the
8450// configurations in an environment of distributed trace.
8451type GoogleCloudApigeeV1TraceConfig struct {
8452	// Endpoint: Required. Endpoint of the exporter.
8453	Endpoint string `json:"endpoint,omitempty"`
8454
8455	// Exporter: Required. Exporter that is used to view the distributed
8456	// trace captured using OpenCensus. An exporter sends traces to any
8457	// backend that is capable of consuming them. Recorded spans can be
8458	// exported by registered exporters.
8459	//
8460	// Possible values:
8461	//   "EXPORTER_UNSPECIFIED" - Exporter unspecified
8462	//   "JAEGER" - Jaeger exporter
8463	//   "CLOUD_TRACE" - Cloudtrace exporter
8464	Exporter string `json:"exporter,omitempty"`
8465
8466	// SamplingConfig: Distributed trace configuration for all API proxies
8467	// in an environment. You can also override the configuration for a
8468	// specific API proxy using the distributed trace configuration
8469	// overrides API.
8470	SamplingConfig *GoogleCloudApigeeV1TraceSamplingConfig `json:"samplingConfig,omitempty"`
8471
8472	// ServerResponse contains the HTTP response code and headers from the
8473	// server.
8474	googleapi.ServerResponse `json:"-"`
8475
8476	// ForceSendFields is a list of field names (e.g. "Endpoint") to
8477	// unconditionally include in API requests. By default, fields with
8478	// empty values are omitted from API requests. However, any non-pointer,
8479	// non-interface field appearing in ForceSendFields will be sent to the
8480	// server regardless of whether the field is empty or not. This may be
8481	// used to include empty fields in Patch requests.
8482	ForceSendFields []string `json:"-"`
8483
8484	// NullFields is a list of field names (e.g. "Endpoint") to include in
8485	// API requests with the JSON null value. By default, fields with empty
8486	// values are omitted from API requests. However, any field with an
8487	// empty value appearing in NullFields will be sent to the server as
8488	// null. It is an error if a field in this list has a non-empty value.
8489	// This may be used to include null fields in Patch requests.
8490	NullFields []string `json:"-"`
8491}
8492
8493func (s *GoogleCloudApigeeV1TraceConfig) MarshalJSON() ([]byte, error) {
8494	type NoMethod GoogleCloudApigeeV1TraceConfig
8495	raw := NoMethod(*s)
8496	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8497}
8498
8499// GoogleCloudApigeeV1TraceConfigOverride: A representation of a
8500// configuration override.
8501type GoogleCloudApigeeV1TraceConfigOverride struct {
8502	// ApiProxy: ID of the API proxy that will have its trace configuration
8503	// overridden.
8504	ApiProxy string `json:"apiProxy,omitempty"`
8505
8506	// Name: ID of the trace configuration override specified as a
8507	// system-generated UUID.
8508	Name string `json:"name,omitempty"`
8509
8510	// SamplingConfig: Trace configuration to override.
8511	SamplingConfig *GoogleCloudApigeeV1TraceSamplingConfig `json:"samplingConfig,omitempty"`
8512
8513	// ServerResponse contains the HTTP response code and headers from the
8514	// server.
8515	googleapi.ServerResponse `json:"-"`
8516
8517	// ForceSendFields is a list of field names (e.g. "ApiProxy") to
8518	// unconditionally include in API requests. By default, fields with
8519	// empty values are omitted from API requests. However, any non-pointer,
8520	// non-interface field appearing in ForceSendFields will be sent to the
8521	// server regardless of whether the field is empty or not. This may be
8522	// used to include empty fields in Patch requests.
8523	ForceSendFields []string `json:"-"`
8524
8525	// NullFields is a list of field names (e.g. "ApiProxy") to include in
8526	// API requests with the JSON null value. By default, fields with empty
8527	// values are omitted from API requests. However, any field with an
8528	// empty value appearing in NullFields will be sent to the server as
8529	// null. It is an error if a field in this list has a non-empty value.
8530	// This may be used to include null fields in Patch requests.
8531	NullFields []string `json:"-"`
8532}
8533
8534func (s *GoogleCloudApigeeV1TraceConfigOverride) MarshalJSON() ([]byte, error) {
8535	type NoMethod GoogleCloudApigeeV1TraceConfigOverride
8536	raw := NoMethod(*s)
8537	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8538}
8539
8540// GoogleCloudApigeeV1TraceSamplingConfig: TraceSamplingConfig
8541// represents the detail settings of distributed tracing. Only the
8542// fields that are defined in the distributed trace configuration can be
8543// overridden using the distribute trace configuration override APIs.
8544type GoogleCloudApigeeV1TraceSamplingConfig struct {
8545	// Sampler: Sampler of distributed tracing. OFF is the default value.
8546	//
8547	// Possible values:
8548	//   "SAMPLER_UNSPECIFIED" - Sampler unspecified.
8549	//   "OFF" - OFF means distributed trace is disabled, or the sampling
8550	// probability is 0.
8551	//   "PROBABILITY" - PROBABILITY means traces are captured on a
8552	// probability that defined by sampling_rate. The sampling rate is
8553	// limited to 0 to 0.5 when this is set.
8554	Sampler string `json:"sampler,omitempty"`
8555
8556	// SamplingRate: Field sampling rate. This value is only applicable when
8557	// using the PROBABILITY sampler. The supported values are > 0 and <=
8558	// 0.5.
8559	SamplingRate float64 `json:"samplingRate,omitempty"`
8560
8561	// ForceSendFields is a list of field names (e.g. "Sampler") to
8562	// unconditionally include in API requests. By default, fields with
8563	// empty values are omitted from API requests. However, any non-pointer,
8564	// non-interface field appearing in ForceSendFields will be sent to the
8565	// server regardless of whether the field is empty or not. This may be
8566	// used to include empty fields in Patch requests.
8567	ForceSendFields []string `json:"-"`
8568
8569	// NullFields is a list of field names (e.g. "Sampler") to include in
8570	// API requests with the JSON null value. By default, fields with empty
8571	// values are omitted from API requests. However, any field with an
8572	// empty value appearing in NullFields will be sent to the server as
8573	// null. It is an error if a field in this list has a non-empty value.
8574	// This may be used to include null fields in Patch requests.
8575	NullFields []string `json:"-"`
8576}
8577
8578func (s *GoogleCloudApigeeV1TraceSamplingConfig) MarshalJSON() ([]byte, error) {
8579	type NoMethod GoogleCloudApigeeV1TraceSamplingConfig
8580	raw := NoMethod(*s)
8581	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8582}
8583
8584func (s *GoogleCloudApigeeV1TraceSamplingConfig) UnmarshalJSON(data []byte) error {
8585	type NoMethod GoogleCloudApigeeV1TraceSamplingConfig
8586	var s1 struct {
8587		SamplingRate gensupport.JSONFloat64 `json:"samplingRate"`
8588		*NoMethod
8589	}
8590	s1.NoMethod = (*NoMethod)(s)
8591	if err := json.Unmarshal(data, &s1); err != nil {
8592		return err
8593	}
8594	s.SamplingRate = float64(s1.SamplingRate)
8595	return nil
8596}
8597
8598// GoogleCloudApigeeV1UpdateError: Details on why a resource update
8599// failed in the runtime.
8600type GoogleCloudApigeeV1UpdateError struct {
8601	// Code: Status code.
8602	//
8603	// Possible values:
8604	//   "OK" - Not an error; returned on success HTTP Mapping: 200 OK
8605	//   "CANCELLED" - The operation was cancelled, typically by the caller.
8606	// HTTP Mapping: 499 Client Closed Request
8607	//   "UNKNOWN" - Unknown error. For example, this error may be returned
8608	// when a `Status` value received from another address space belongs to
8609	// an error space that is not known in this address space. Also errors
8610	// raised by APIs that do not return enough error information may be
8611	// converted to this error. HTTP Mapping: 500 Internal Server Error
8612	//   "INVALID_ARGUMENT" - The client specified an invalid argument. Note
8613	// that this differs from `FAILED_PRECONDITION`. `INVALID_ARGUMENT`
8614	// indicates arguments that are problematic regardless of the state of
8615	// the system (e.g., a malformed file name). HTTP Mapping: 400 Bad
8616	// Request
8617	//   "DEADLINE_EXCEEDED" - The deadline expired before the operation
8618	// could complete. For operations that change the state of the system,
8619	// this error may be returned even if the operation has completed
8620	// successfully. For example, a successful response from a server could
8621	// have been delayed long enough for the deadline to expire. HTTP
8622	// Mapping: 504 Gateway Timeout
8623	//   "NOT_FOUND" - Some requested entity (e.g., file or directory) was
8624	// not found. Note to server developers: if a request is denied for an
8625	// entire class of users, such as gradual feature rollout or
8626	// undocumented allowlist, `NOT_FOUND` may be used. If a request is
8627	// denied for some users within a class of users, such as user-based
8628	// access control, `PERMISSION_DENIED` must be used. HTTP Mapping: 404
8629	// Not Found
8630	//   "ALREADY_EXISTS" - The entity that a client attempted to create
8631	// (e.g., file or directory) already exists. HTTP Mapping: 409 Conflict
8632	//   "PERMISSION_DENIED" - The caller does not have permission to
8633	// execute the specified operation. `PERMISSION_DENIED` must not be used
8634	// for rejections caused by exhausting some resource (use
8635	// `RESOURCE_EXHAUSTED` instead for those errors). `PERMISSION_DENIED`
8636	// must not be used if the caller can not be identified (use
8637	// `UNAUTHENTICATED` instead for those errors). This error code does not
8638	// imply the request is valid or the requested entity exists or
8639	// satisfies other pre-conditions. HTTP Mapping: 403 Forbidden
8640	//   "UNAUTHENTICATED" - The request does not have valid authentication
8641	// credentials for the operation. HTTP Mapping: 401 Unauthorized
8642	//   "RESOURCE_EXHAUSTED" - Some resource has been exhausted, perhaps a
8643	// per-user quota, or perhaps the entire file system is out of space.
8644	// HTTP Mapping: 429 Too Many Requests
8645	//   "FAILED_PRECONDITION" - The operation was rejected because the
8646	// system is not in a state required for the operation's execution. For
8647	// example, the directory to be deleted is non-empty, an rmdir operation
8648	// is applied to a non-directory, etc. Service implementors can use the
8649	// following guidelines to decide between `FAILED_PRECONDITION`,
8650	// `ABORTED`, and `UNAVAILABLE`: (a) Use `UNAVAILABLE` if the client can
8651	// retry just the failing call. (b) Use `ABORTED` if the client should
8652	// retry at a higher level. For example, when a client-specified
8653	// test-and-set fails, indicating the client should restart a
8654	// read-modify-write sequence. (c) Use `FAILED_PRECONDITION` if the
8655	// client should not retry until the system state has been explicitly
8656	// fixed. For example, if an "rmdir" fails because the directory is
8657	// non-empty, `FAILED_PRECONDITION` should be returned since the client
8658	// should not retry unless the files are deleted from the directory.
8659	// HTTP Mapping: 400 Bad Request
8660	//   "ABORTED" - The operation was aborted, typically due to a
8661	// concurrency issue such as a sequencer check failure or transaction
8662	// abort. See the guidelines above for deciding between
8663	// `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`. HTTP Mapping:
8664	// 409 Conflict
8665	//   "OUT_OF_RANGE" - The operation was attempted past the valid range.
8666	// E.g., seeking or reading past end-of-file. Unlike `INVALID_ARGUMENT`,
8667	// this error indicates a problem that may be fixed if the system state
8668	// changes. For example, a 32-bit file system will generate
8669	// `INVALID_ARGUMENT` if asked to read at an offset that is not in the
8670	// range [0,2^32-1], but it will generate `OUT_OF_RANGE` if asked to
8671	// read from an offset past the current file size. There is a fair bit
8672	// of overlap between `FAILED_PRECONDITION` and `OUT_OF_RANGE`. We
8673	// recommend using `OUT_OF_RANGE` (the more specific error) when it
8674	// applies so that callers who are iterating through a space can easily
8675	// look for an `OUT_OF_RANGE` error to detect when they are done. HTTP
8676	// Mapping: 400 Bad Request
8677	//   "UNIMPLEMENTED" - The operation is not implemented or is not
8678	// supported/enabled in this service. HTTP Mapping: 501 Not Implemented
8679	//   "INTERNAL" - Internal errors. This means that some invariants
8680	// expected by the underlying system have been broken. This error code
8681	// is reserved for serious errors. HTTP Mapping: 500 Internal Server
8682	// Error
8683	//   "UNAVAILABLE" - The service is currently unavailable. This is most
8684	// likely a transient condition, which can be corrected by retrying with
8685	// a backoff. Note that it is not always safe to retry non-idempotent
8686	// operations. See the guidelines above for deciding between
8687	// `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`. HTTP Mapping:
8688	// 503 Service Unavailable
8689	//   "DATA_LOSS" - Unrecoverable data loss or corruption. HTTP Mapping:
8690	// 500 Internal Server Error
8691	Code string `json:"code,omitempty"`
8692
8693	// Message: User-friendly error message.
8694	Message string `json:"message,omitempty"`
8695
8696	// Resource: The sub resource specific to this error (e.g. a proxy
8697	// deployed within the EnvironmentConfig). If empty the error refers to
8698	// the top level resource.
8699	Resource string `json:"resource,omitempty"`
8700
8701	// Type: A string that uniquely identifies the type of error. This
8702	// provides a more reliable means to deduplicate errors across revisions
8703	// and instances.
8704	Type string `json:"type,omitempty"`
8705
8706	// ForceSendFields is a list of field names (e.g. "Code") to
8707	// unconditionally include in API requests. By default, fields with
8708	// empty values are omitted from API requests. However, any non-pointer,
8709	// non-interface field appearing in ForceSendFields will be sent to the
8710	// server regardless of whether the field is empty or not. This may be
8711	// used to include empty fields in Patch requests.
8712	ForceSendFields []string `json:"-"`
8713
8714	// NullFields is a list of field names (e.g. "Code") to include in API
8715	// requests with the JSON null value. By default, fields with empty
8716	// values are omitted from API requests. However, any field with an
8717	// empty value appearing in NullFields will be sent to the server as
8718	// null. It is an error if a field in this list has a non-empty value.
8719	// This may be used to include null fields in Patch requests.
8720	NullFields []string `json:"-"`
8721}
8722
8723func (s *GoogleCloudApigeeV1UpdateError) MarshalJSON() ([]byte, error) {
8724	type NoMethod GoogleCloudApigeeV1UpdateError
8725	raw := NoMethod(*s)
8726	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8727}
8728
8729// GoogleIamV1AuditConfig: Specifies the audit configuration for a
8730// service. The configuration determines which permission types are
8731// logged, and what identities, if any, are exempted from logging. An
8732// AuditConfig must have one or more AuditLogConfigs. If there are
8733// AuditConfigs for both `allServices` and a specific service, the union
8734// of the two AuditConfigs is used for that service: the log_types
8735// specified in each AuditConfig are enabled, and the exempted_members
8736// in each AuditLogConfig are exempted. Example Policy with multiple
8737// AuditConfigs: { "audit_configs": [ { "service": "allServices",
8738// "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members":
8739// [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, {
8740// "log_type": "ADMIN_READ" } ] }, { "service":
8741// "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type":
8742// "DATA_READ" }, { "log_type": "DATA_WRITE", "exempted_members": [
8743// "user:aliya@example.com" ] } ] } ] } For sampleservice, this policy
8744// enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts
8745// jose@example.com from DATA_READ logging, and aliya@example.com from
8746// DATA_WRITE logging.
8747type GoogleIamV1AuditConfig struct {
8748	// AuditLogConfigs: The configuration for logging of each type of
8749	// permission.
8750	AuditLogConfigs []*GoogleIamV1AuditLogConfig `json:"auditLogConfigs,omitempty"`
8751
8752	// Service: Specifies a service that will be enabled for audit logging.
8753	// For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
8754	// `allServices` is a special value that covers all services.
8755	Service string `json:"service,omitempty"`
8756
8757	// ForceSendFields is a list of field names (e.g. "AuditLogConfigs") to
8758	// unconditionally include in API requests. By default, fields with
8759	// empty values are omitted from API requests. However, any non-pointer,
8760	// non-interface field appearing in ForceSendFields will be sent to the
8761	// server regardless of whether the field is empty or not. This may be
8762	// used to include empty fields in Patch requests.
8763	ForceSendFields []string `json:"-"`
8764
8765	// NullFields is a list of field names (e.g. "AuditLogConfigs") to
8766	// include in API requests with the JSON null value. By default, fields
8767	// with empty values are omitted from API requests. However, any field
8768	// with an empty value appearing in NullFields will be sent to the
8769	// server as null. It is an error if a field in this list has a
8770	// non-empty value. This may be used to include null fields in Patch
8771	// requests.
8772	NullFields []string `json:"-"`
8773}
8774
8775func (s *GoogleIamV1AuditConfig) MarshalJSON() ([]byte, error) {
8776	type NoMethod GoogleIamV1AuditConfig
8777	raw := NoMethod(*s)
8778	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8779}
8780
8781// GoogleIamV1AuditLogConfig: Provides the configuration for logging a
8782// type of permissions. Example: { "audit_log_configs": [ { "log_type":
8783// "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, {
8784// "log_type": "DATA_WRITE" } ] } This enables 'DATA_READ' and
8785// 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ
8786// logging.
8787type GoogleIamV1AuditLogConfig struct {
8788	// ExemptedMembers: Specifies the identities that do not cause logging
8789	// for this type of permission. Follows the same format of
8790	// Binding.members.
8791	ExemptedMembers []string `json:"exemptedMembers,omitempty"`
8792
8793	// LogType: The log type that this config enables.
8794	//
8795	// Possible values:
8796	//   "LOG_TYPE_UNSPECIFIED" - Default case. Should never be this.
8797	//   "ADMIN_READ" - Admin reads. Example: CloudIAM getIamPolicy
8798	//   "DATA_WRITE" - Data writes. Example: CloudSQL Users create
8799	//   "DATA_READ" - Data reads. Example: CloudSQL Users list
8800	LogType string `json:"logType,omitempty"`
8801
8802	// ForceSendFields is a list of field names (e.g. "ExemptedMembers") to
8803	// unconditionally include in API requests. By default, fields with
8804	// empty values are omitted from API requests. However, any non-pointer,
8805	// non-interface field appearing in ForceSendFields will be sent to the
8806	// server regardless of whether the field is empty or not. This may be
8807	// used to include empty fields in Patch requests.
8808	ForceSendFields []string `json:"-"`
8809
8810	// NullFields is a list of field names (e.g. "ExemptedMembers") to
8811	// include in API requests with the JSON null value. By default, fields
8812	// with empty values are omitted from API requests. However, any field
8813	// with an empty value appearing in NullFields will be sent to the
8814	// server as null. It is an error if a field in this list has a
8815	// non-empty value. This may be used to include null fields in Patch
8816	// requests.
8817	NullFields []string `json:"-"`
8818}
8819
8820func (s *GoogleIamV1AuditLogConfig) MarshalJSON() ([]byte, error) {
8821	type NoMethod GoogleIamV1AuditLogConfig
8822	raw := NoMethod(*s)
8823	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8824}
8825
8826// GoogleIamV1Binding: Associates `members` with a `role`.
8827type GoogleIamV1Binding struct {
8828	// Condition: The condition that is associated with this binding. If the
8829	// condition evaluates to `true`, then this binding applies to the
8830	// current request. If the condition evaluates to `false`, then this
8831	// binding does not apply to the current request. However, a different
8832	// role binding might grant the same role to one or more of the members
8833	// in this binding. To learn which resources support conditions in their
8834	// IAM policies, see the IAM documentation
8835	// (https://cloud.google.com/iam/help/conditions/resource-policies).
8836	Condition *GoogleTypeExpr `json:"condition,omitempty"`
8837
8838	// Members: Specifies the identities requesting access for a Cloud
8839	// Platform resource. `members` can have the following values: *
8840	// `allUsers`: A special identifier that represents anyone who is on the
8841	// internet; with or without a Google account. *
8842	// `allAuthenticatedUsers`: A special identifier that represents anyone
8843	// who is authenticated with a Google account or a service account. *
8844	// `user:{emailid}`: An email address that represents a specific Google
8845	// account. For example, `alice@example.com` . *
8846	// `serviceAccount:{emailid}`: An email address that represents a
8847	// service account. For example,
8848	// `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An
8849	// email address that represents a Google group. For example,
8850	// `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An
8851	// email address (plus unique identifier) representing a user that has
8852	// been recently deleted. For example,
8853	// `alice@example.com?uid=123456789012345678901`. If the user is
8854	// recovered, this value reverts to `user:{emailid}` and the recovered
8855	// user retains the role in the binding. *
8856	// `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address
8857	// (plus unique identifier) representing a service account that has been
8858	// recently deleted. For example,
8859	// `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
8860	// If the service account is undeleted, this value reverts to
8861	// `serviceAccount:{emailid}` and the undeleted service account retains
8862	// the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`:
8863	// An email address (plus unique identifier) representing a Google group
8864	// that has been recently deleted. For example,
8865	// `admins@example.com?uid=123456789012345678901`. If the group is
8866	// recovered, this value reverts to `group:{emailid}` and the recovered
8867	// group retains the role in the binding. * `domain:{domain}`: The G
8868	// Suite domain (primary) that represents all the users of that domain.
8869	// For example, `google.com` or `example.com`.
8870	Members []string `json:"members,omitempty"`
8871
8872	// Role: Role that is assigned to `members`. For example,
8873	// `roles/viewer`, `roles/editor`, or `roles/owner`.
8874	Role string `json:"role,omitempty"`
8875
8876	// ForceSendFields is a list of field names (e.g. "Condition") to
8877	// unconditionally include in API requests. By default, fields with
8878	// empty values are omitted from API requests. However, any non-pointer,
8879	// non-interface field appearing in ForceSendFields will be sent to the
8880	// server regardless of whether the field is empty or not. This may be
8881	// used to include empty fields in Patch requests.
8882	ForceSendFields []string `json:"-"`
8883
8884	// NullFields is a list of field names (e.g. "Condition") to include in
8885	// API requests with the JSON null value. By default, fields with empty
8886	// values are omitted from API requests. However, any field with an
8887	// empty value appearing in NullFields will be sent to the server as
8888	// null. It is an error if a field in this list has a non-empty value.
8889	// This may be used to include null fields in Patch requests.
8890	NullFields []string `json:"-"`
8891}
8892
8893func (s *GoogleIamV1Binding) MarshalJSON() ([]byte, error) {
8894	type NoMethod GoogleIamV1Binding
8895	raw := NoMethod(*s)
8896	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8897}
8898
8899// GoogleIamV1Policy: An Identity and Access Management (IAM) policy,
8900// which specifies access controls for Google Cloud resources. A
8901// `Policy` is a collection of `bindings`. A `binding` binds one or more
8902// `members` to a single `role`. Members can be user accounts, service
8903// accounts, Google groups, and domains (such as G Suite). A `role` is a
8904// named list of permissions; each `role` can be an IAM predefined role
8905// or a user-created custom role. For some types of Google Cloud
8906// resources, a `binding` can also specify a `condition`, which is a
8907// logical expression that allows access to a resource only if the
8908// expression evaluates to `true`. A condition can add constraints based
8909// on attributes of the request, the resource, or both. To learn which
8910// resources support conditions in their IAM policies, see the IAM
8911// documentation
8912// (https://cloud.google.com/iam/help/conditions/resource-policies).
8913// **JSON example:** { "bindings": [ { "role":
8914// "roles/resourcemanager.organizationAdmin", "members": [
8915// "user:mike@example.com", "group:admins@example.com",
8916// "domain:google.com",
8917// "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, {
8918// "role": "roles/resourcemanager.organizationViewer", "members": [
8919// "user:eve@example.com" ], "condition": { "title": "expirable access",
8920// "description": "Does not grant access after Sep 2020", "expression":
8921// "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ],
8922// "etag": "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: -
8923// members: - user:mike@example.com - group:admins@example.com -
8924// domain:google.com -
8925// serviceAccount:my-project-id@appspot.gserviceaccount.com role:
8926// roles/resourcemanager.organizationAdmin - members: -
8927// user:eve@example.com role: roles/resourcemanager.organizationViewer
8928// condition: title: expirable access description: Does not grant access
8929// after Sep 2020 expression: request.time <
8930// timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version:
8931// 3 For a description of IAM and its features, see the IAM
8932// documentation (https://cloud.google.com/iam/docs/).
8933type GoogleIamV1Policy struct {
8934	// AuditConfigs: Specifies cloud audit logging configuration for this
8935	// policy.
8936	AuditConfigs []*GoogleIamV1AuditConfig `json:"auditConfigs,omitempty"`
8937
8938	// Bindings: Associates a list of `members` to a `role`. Optionally, may
8939	// specify a `condition` that determines how and when the `bindings` are
8940	// applied. Each of the `bindings` must contain at least one member.
8941	Bindings []*GoogleIamV1Binding `json:"bindings,omitempty"`
8942
8943	// Etag: `etag` is used for optimistic concurrency control as a way to
8944	// help prevent simultaneous updates of a policy from overwriting each
8945	// other. It is strongly suggested that systems make use of the `etag`
8946	// in the read-modify-write cycle to perform policy updates in order to
8947	// avoid race conditions: An `etag` is returned in the response to
8948	// `getIamPolicy`, and systems are expected to put that etag in the
8949	// request to `setIamPolicy` to ensure that their change will be applied
8950	// to the same version of the policy. **Important:** If you use IAM
8951	// Conditions, you must include the `etag` field whenever you call
8952	// `setIamPolicy`. If you omit this field, then IAM allows you to
8953	// overwrite a version `3` policy with a version `1` policy, and all of
8954	// the conditions in the version `3` policy are lost.
8955	Etag string `json:"etag,omitempty"`
8956
8957	// Version: Specifies the format of the policy. Valid values are `0`,
8958	// `1`, and `3`. Requests that specify an invalid value are rejected.
8959	// Any operation that affects conditional role bindings must specify
8960	// version `3`. This requirement applies to the following operations: *
8961	// Getting a policy that includes a conditional role binding * Adding a
8962	// conditional role binding to a policy * Changing a conditional role
8963	// binding in a policy * Removing any role binding, with or without a
8964	// condition, from a policy that includes conditions **Important:** If
8965	// you use IAM Conditions, you must include the `etag` field whenever
8966	// you call `setIamPolicy`. If you omit this field, then IAM allows you
8967	// to overwrite a version `3` policy with a version `1` policy, and all
8968	// of the conditions in the version `3` policy are lost. If a policy
8969	// does not include any conditions, operations on that policy may
8970	// specify any valid version or leave the field unset. To learn which
8971	// resources support conditions in their IAM policies, see the IAM
8972	// documentation
8973	// (https://cloud.google.com/iam/help/conditions/resource-policies).
8974	Version int64 `json:"version,omitempty"`
8975
8976	// ServerResponse contains the HTTP response code and headers from the
8977	// server.
8978	googleapi.ServerResponse `json:"-"`
8979
8980	// ForceSendFields is a list of field names (e.g. "AuditConfigs") to
8981	// unconditionally include in API requests. By default, fields with
8982	// empty values are omitted from API requests. However, any non-pointer,
8983	// non-interface field appearing in ForceSendFields will be sent to the
8984	// server regardless of whether the field is empty or not. This may be
8985	// used to include empty fields in Patch requests.
8986	ForceSendFields []string `json:"-"`
8987
8988	// NullFields is a list of field names (e.g. "AuditConfigs") to include
8989	// in API requests with the JSON null value. By default, fields with
8990	// empty values are omitted from API requests. However, any field with
8991	// an empty value appearing in NullFields will be sent to the server as
8992	// null. It is an error if a field in this list has a non-empty value.
8993	// This may be used to include null fields in Patch requests.
8994	NullFields []string `json:"-"`
8995}
8996
8997func (s *GoogleIamV1Policy) MarshalJSON() ([]byte, error) {
8998	type NoMethod GoogleIamV1Policy
8999	raw := NoMethod(*s)
9000	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9001}
9002
9003// GoogleIamV1SetIamPolicyRequest: Request message for `SetIamPolicy`
9004// method.
9005type GoogleIamV1SetIamPolicyRequest struct {
9006	// Policy: REQUIRED: The complete policy to be applied to the
9007	// `resource`. The size of the policy is limited to a few 10s of KB. An
9008	// empty policy is a valid policy but certain Cloud Platform services
9009	// (such as Projects) might reject them.
9010	Policy *GoogleIamV1Policy `json:"policy,omitempty"`
9011
9012	// UpdateMask: OPTIONAL: A FieldMask specifying which fields of the
9013	// policy to modify. Only the fields in the mask will be modified. If no
9014	// mask is provided, the following default mask is used: `paths:
9015	// "bindings, etag"
9016	UpdateMask string `json:"updateMask,omitempty"`
9017
9018	// ForceSendFields is a list of field names (e.g. "Policy") to
9019	// unconditionally include in API requests. By default, fields with
9020	// empty values are omitted from API requests. However, any non-pointer,
9021	// non-interface field appearing in ForceSendFields will be sent to the
9022	// server regardless of whether the field is empty or not. This may be
9023	// used to include empty fields in Patch requests.
9024	ForceSendFields []string `json:"-"`
9025
9026	// NullFields is a list of field names (e.g. "Policy") to include in API
9027	// requests with the JSON null value. By default, fields with empty
9028	// values are omitted from API requests. However, any field with an
9029	// empty value appearing in NullFields will be sent to the server as
9030	// null. It is an error if a field in this list has a non-empty value.
9031	// This may be used to include null fields in Patch requests.
9032	NullFields []string `json:"-"`
9033}
9034
9035func (s *GoogleIamV1SetIamPolicyRequest) MarshalJSON() ([]byte, error) {
9036	type NoMethod GoogleIamV1SetIamPolicyRequest
9037	raw := NoMethod(*s)
9038	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9039}
9040
9041// GoogleIamV1TestIamPermissionsRequest: Request message for
9042// `TestIamPermissions` method.
9043type GoogleIamV1TestIamPermissionsRequest struct {
9044	// Permissions: The set of permissions to check for the `resource`.
9045	// Permissions with wildcards (such as '*' or 'storage.*') are not
9046	// allowed. For more information see IAM Overview
9047	// (https://cloud.google.com/iam/docs/overview#permissions).
9048	Permissions []string `json:"permissions,omitempty"`
9049
9050	// ForceSendFields is a list of field names (e.g. "Permissions") to
9051	// unconditionally include in API requests. By default, fields with
9052	// empty values are omitted from API requests. However, any non-pointer,
9053	// non-interface field appearing in ForceSendFields will be sent to the
9054	// server regardless of whether the field is empty or not. This may be
9055	// used to include empty fields in Patch requests.
9056	ForceSendFields []string `json:"-"`
9057
9058	// NullFields is a list of field names (e.g. "Permissions") to include
9059	// in API requests with the JSON null value. By default, fields with
9060	// empty values are omitted from API requests. However, any field with
9061	// an empty value appearing in NullFields will be sent to the server as
9062	// null. It is an error if a field in this list has a non-empty value.
9063	// This may be used to include null fields in Patch requests.
9064	NullFields []string `json:"-"`
9065}
9066
9067func (s *GoogleIamV1TestIamPermissionsRequest) MarshalJSON() ([]byte, error) {
9068	type NoMethod GoogleIamV1TestIamPermissionsRequest
9069	raw := NoMethod(*s)
9070	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9071}
9072
9073// GoogleIamV1TestIamPermissionsResponse: Response message for
9074// `TestIamPermissions` method.
9075type GoogleIamV1TestIamPermissionsResponse struct {
9076	// Permissions: A subset of `TestPermissionsRequest.permissions` that
9077	// the caller is allowed.
9078	Permissions []string `json:"permissions,omitempty"`
9079
9080	// ServerResponse contains the HTTP response code and headers from the
9081	// server.
9082	googleapi.ServerResponse `json:"-"`
9083
9084	// ForceSendFields is a list of field names (e.g. "Permissions") to
9085	// unconditionally include in API requests. By default, fields with
9086	// empty values are omitted from API requests. However, any non-pointer,
9087	// non-interface field appearing in ForceSendFields will be sent to the
9088	// server regardless of whether the field is empty or not. This may be
9089	// used to include empty fields in Patch requests.
9090	ForceSendFields []string `json:"-"`
9091
9092	// NullFields is a list of field names (e.g. "Permissions") to include
9093	// in API requests with the JSON null value. By default, fields with
9094	// empty values are omitted from API requests. However, any field with
9095	// an empty value appearing in NullFields will be sent to the server as
9096	// null. It is an error if a field in this list has a non-empty value.
9097	// This may be used to include null fields in Patch requests.
9098	NullFields []string `json:"-"`
9099}
9100
9101func (s *GoogleIamV1TestIamPermissionsResponse) MarshalJSON() ([]byte, error) {
9102	type NoMethod GoogleIamV1TestIamPermissionsResponse
9103	raw := NoMethod(*s)
9104	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9105}
9106
9107// GoogleLongrunningListOperationsResponse: The response message for
9108// Operations.ListOperations.
9109type GoogleLongrunningListOperationsResponse struct {
9110	// NextPageToken: The standard List next-page token.
9111	NextPageToken string `json:"nextPageToken,omitempty"`
9112
9113	// Operations: A list of operations that matches the specified filter in
9114	// the request.
9115	Operations []*GoogleLongrunningOperation `json:"operations,omitempty"`
9116
9117	// ServerResponse contains the HTTP response code and headers from the
9118	// server.
9119	googleapi.ServerResponse `json:"-"`
9120
9121	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
9122	// unconditionally include in API requests. By default, fields with
9123	// empty values are omitted from API requests. However, any non-pointer,
9124	// non-interface field appearing in ForceSendFields will be sent to the
9125	// server regardless of whether the field is empty or not. This may be
9126	// used to include empty fields in Patch requests.
9127	ForceSendFields []string `json:"-"`
9128
9129	// NullFields is a list of field names (e.g. "NextPageToken") to include
9130	// in API requests with the JSON null value. By default, fields with
9131	// empty values are omitted from API requests. However, any field with
9132	// an empty value appearing in NullFields will be sent to the server as
9133	// null. It is an error if a field in this list has a non-empty value.
9134	// This may be used to include null fields in Patch requests.
9135	NullFields []string `json:"-"`
9136}
9137
9138func (s *GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) {
9139	type NoMethod GoogleLongrunningListOperationsResponse
9140	raw := NoMethod(*s)
9141	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9142}
9143
9144// GoogleLongrunningOperation: This resource represents a long-running
9145// operation that is the result of a network API call.
9146type GoogleLongrunningOperation struct {
9147	// Done: If the value is `false`, it means the operation is still in
9148	// progress. If `true`, the operation is completed, and either `error`
9149	// or `response` is available.
9150	Done bool `json:"done,omitempty"`
9151
9152	// Error: The error result of the operation in case of failure or
9153	// cancellation.
9154	Error *GoogleRpcStatus `json:"error,omitempty"`
9155
9156	// Metadata: Service-specific metadata associated with the operation. It
9157	// typically contains progress information and common metadata such as
9158	// create time. Some services might not provide such metadata. Any
9159	// method that returns a long-running operation should document the
9160	// metadata type, if any.
9161	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
9162
9163	// Name: The server-assigned name, which is only unique within the same
9164	// service that originally returns it. If you use the default HTTP
9165	// mapping, the `name` should be a resource name ending with
9166	// `operations/{unique_id}`.
9167	Name string `json:"name,omitempty"`
9168
9169	// Response: The normal response of the operation in case of success. If
9170	// the original method returns no data on success, such as `Delete`, the
9171	// response is `google.protobuf.Empty`. If the original method is
9172	// standard `Get`/`Create`/`Update`, the response should be the
9173	// resource. For other methods, the response should have the type
9174	// `XxxResponse`, where `Xxx` is the original method name. For example,
9175	// if the original method name is `TakeSnapshot()`, the inferred
9176	// response type is `TakeSnapshotResponse`.
9177	Response googleapi.RawMessage `json:"response,omitempty"`
9178
9179	// ServerResponse contains the HTTP response code and headers from the
9180	// server.
9181	googleapi.ServerResponse `json:"-"`
9182
9183	// ForceSendFields is a list of field names (e.g. "Done") to
9184	// unconditionally include in API requests. By default, fields with
9185	// empty values are omitted from API requests. However, any non-pointer,
9186	// non-interface field appearing in ForceSendFields will be sent to the
9187	// server regardless of whether the field is empty or not. This may be
9188	// used to include empty fields in Patch requests.
9189	ForceSendFields []string `json:"-"`
9190
9191	// NullFields is a list of field names (e.g. "Done") to include in API
9192	// requests with the JSON null value. By default, fields with empty
9193	// values are omitted from API requests. However, any field with an
9194	// empty value appearing in NullFields will be sent to the server as
9195	// null. It is an error if a field in this list has a non-empty value.
9196	// This may be used to include null fields in Patch requests.
9197	NullFields []string `json:"-"`
9198}
9199
9200func (s *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) {
9201	type NoMethod GoogleLongrunningOperation
9202	raw := NoMethod(*s)
9203	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9204}
9205
9206// GoogleProtobufEmpty: A generic empty message that you can re-use to
9207// avoid defining duplicated empty messages in your APIs. A typical
9208// example is to use it as the request or the response type of an API
9209// method. For instance: service Foo { rpc Bar(google.protobuf.Empty)
9210// returns (google.protobuf.Empty); } The JSON representation for
9211// `Empty` is empty JSON object `{}`.
9212type GoogleProtobufEmpty struct {
9213	// ServerResponse contains the HTTP response code and headers from the
9214	// server.
9215	googleapi.ServerResponse `json:"-"`
9216}
9217
9218// GoogleRpcPreconditionFailure: Describes what preconditions have
9219// failed. For example, if an RPC failed because it required the Terms
9220// of Service to be acknowledged, it could list the terms of service
9221// violation in the PreconditionFailure message.
9222type GoogleRpcPreconditionFailure struct {
9223	// Violations: Describes all precondition violations.
9224	Violations []*GoogleRpcPreconditionFailureViolation `json:"violations,omitempty"`
9225
9226	// ForceSendFields is a list of field names (e.g. "Violations") to
9227	// unconditionally include in API requests. By default, fields with
9228	// empty values are omitted from API requests. However, any non-pointer,
9229	// non-interface field appearing in ForceSendFields will be sent to the
9230	// server regardless of whether the field is empty or not. This may be
9231	// used to include empty fields in Patch requests.
9232	ForceSendFields []string `json:"-"`
9233
9234	// NullFields is a list of field names (e.g. "Violations") to include in
9235	// API requests with the JSON null value. By default, fields with empty
9236	// values are omitted from API requests. However, any field with an
9237	// empty value appearing in NullFields will be sent to the server as
9238	// null. It is an error if a field in this list has a non-empty value.
9239	// This may be used to include null fields in Patch requests.
9240	NullFields []string `json:"-"`
9241}
9242
9243func (s *GoogleRpcPreconditionFailure) MarshalJSON() ([]byte, error) {
9244	type NoMethod GoogleRpcPreconditionFailure
9245	raw := NoMethod(*s)
9246	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9247}
9248
9249// GoogleRpcPreconditionFailureViolation: A message type used to
9250// describe a single precondition failure.
9251type GoogleRpcPreconditionFailureViolation struct {
9252	// Description: A description of how the precondition failed. Developers
9253	// can use this description to understand how to fix the failure. For
9254	// example: "Terms of service not accepted".
9255	Description string `json:"description,omitempty"`
9256
9257	// Subject: The subject, relative to the type, that failed. For example,
9258	// "google.com/cloud" relative to the "TOS" type would indicate which
9259	// terms of service is being referenced.
9260	Subject string `json:"subject,omitempty"`
9261
9262	// Type: The type of PreconditionFailure. We recommend using a
9263	// service-specific enum type to define the supported precondition
9264	// violation subjects. For example, "TOS" for "Terms of Service
9265	// violation".
9266	Type string `json:"type,omitempty"`
9267
9268	// ForceSendFields is a list of field names (e.g. "Description") to
9269	// unconditionally include in API requests. By default, fields with
9270	// empty values are omitted from API requests. However, any non-pointer,
9271	// non-interface field appearing in ForceSendFields will be sent to the
9272	// server regardless of whether the field is empty or not. This may be
9273	// used to include empty fields in Patch requests.
9274	ForceSendFields []string `json:"-"`
9275
9276	// NullFields is a list of field names (e.g. "Description") to include
9277	// in API requests with the JSON null value. By default, fields with
9278	// empty values are omitted from API requests. However, any field with
9279	// an empty value appearing in NullFields will be sent to the server as
9280	// null. It is an error if a field in this list has a non-empty value.
9281	// This may be used to include null fields in Patch requests.
9282	NullFields []string `json:"-"`
9283}
9284
9285func (s *GoogleRpcPreconditionFailureViolation) MarshalJSON() ([]byte, error) {
9286	type NoMethod GoogleRpcPreconditionFailureViolation
9287	raw := NoMethod(*s)
9288	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9289}
9290
9291// GoogleRpcStatus: The `Status` type defines a logical error model that
9292// is suitable for different programming environments, including REST
9293// APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each
9294// `Status` message contains three pieces of data: error code, error
9295// message, and error details. You can find out more about this error
9296// model and how to work with it in the API Design Guide
9297// (https://cloud.google.com/apis/design/errors).
9298type GoogleRpcStatus struct {
9299	// Code: The status code, which should be an enum value of
9300	// google.rpc.Code.
9301	Code int64 `json:"code,omitempty"`
9302
9303	// Details: A list of messages that carry the error details. There is a
9304	// common set of message types for APIs to use.
9305	Details []googleapi.RawMessage `json:"details,omitempty"`
9306
9307	// Message: A developer-facing error message, which should be in
9308	// English. Any user-facing error message should be localized and sent
9309	// in the google.rpc.Status.details field, or localized by the client.
9310	Message string `json:"message,omitempty"`
9311
9312	// ForceSendFields is a list of field names (e.g. "Code") to
9313	// unconditionally include in API requests. By default, fields with
9314	// empty values are omitted from API requests. However, any non-pointer,
9315	// non-interface field appearing in ForceSendFields will be sent to the
9316	// server regardless of whether the field is empty or not. This may be
9317	// used to include empty fields in Patch requests.
9318	ForceSendFields []string `json:"-"`
9319
9320	// NullFields is a list of field names (e.g. "Code") to include in API
9321	// requests with the JSON null value. By default, fields with empty
9322	// values are omitted from API requests. However, any field with an
9323	// empty value appearing in NullFields will be sent to the server as
9324	// null. It is an error if a field in this list has a non-empty value.
9325	// This may be used to include null fields in Patch requests.
9326	NullFields []string `json:"-"`
9327}
9328
9329func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) {
9330	type NoMethod GoogleRpcStatus
9331	raw := NoMethod(*s)
9332	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9333}
9334
9335// GoogleTypeExpr: Represents a textual expression in the Common
9336// Expression Language (CEL) syntax. CEL is a C-like expression
9337// language. The syntax and semantics of CEL are documented at
9338// https://github.com/google/cel-spec. Example (Comparison): title:
9339// "Summary size limit" description: "Determines if a summary is less
9340// than 100 chars" expression: "document.summary.size() < 100" Example
9341// (Equality): title: "Requestor is owner" description: "Determines if
9342// requestor is the document owner" expression: "document.owner ==
9343// request.auth.claims.email" Example (Logic): title: "Public documents"
9344// description: "Determine whether the document should be publicly
9345// visible" expression: "document.type != 'private' && document.type !=
9346// 'internal'" Example (Data Manipulation): title: "Notification string"
9347// description: "Create a notification string with a timestamp."
9348// expression: "'New message received at ' +
9349// string(document.create_time)" The exact variables and functions that
9350// may be referenced within an expression are determined by the service
9351// that evaluates it. See the service documentation for additional
9352// information.
9353type GoogleTypeExpr struct {
9354	// Description: Optional. Description of the expression. This is a
9355	// longer text which describes the expression, e.g. when hovered over it
9356	// in a UI.
9357	Description string `json:"description,omitempty"`
9358
9359	// Expression: Textual representation of an expression in Common
9360	// Expression Language syntax.
9361	Expression string `json:"expression,omitempty"`
9362
9363	// Location: Optional. String indicating the location of the expression
9364	// for error reporting, e.g. a file name and a position in the file.
9365	Location string `json:"location,omitempty"`
9366
9367	// Title: Optional. Title for the expression, i.e. a short string
9368	// describing its purpose. This can be used e.g. in UIs which allow to
9369	// enter the expression.
9370	Title string `json:"title,omitempty"`
9371
9372	// ForceSendFields is a list of field names (e.g. "Description") to
9373	// unconditionally include in API requests. By default, fields with
9374	// empty values are omitted from API requests. However, any non-pointer,
9375	// non-interface field appearing in ForceSendFields will be sent to the
9376	// server regardless of whether the field is empty or not. This may be
9377	// used to include empty fields in Patch requests.
9378	ForceSendFields []string `json:"-"`
9379
9380	// NullFields is a list of field names (e.g. "Description") to include
9381	// in API requests with the JSON null value. By default, fields with
9382	// empty values are omitted from API requests. However, any field with
9383	// an empty value appearing in NullFields will be sent to the server as
9384	// null. It is an error if a field in this list has a non-empty value.
9385	// This may be used to include null fields in Patch requests.
9386	NullFields []string `json:"-"`
9387}
9388
9389func (s *GoogleTypeExpr) MarshalJSON() ([]byte, error) {
9390	type NoMethod GoogleTypeExpr
9391	raw := NoMethod(*s)
9392	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9393}
9394
9395// GoogleTypeMoney: Represents an amount of money with its currency
9396// type.
9397type GoogleTypeMoney struct {
9398	// CurrencyCode: The three-letter currency code defined in ISO 4217.
9399	CurrencyCode string `json:"currencyCode,omitempty"`
9400
9401	// Nanos: Number of nano (10^-9) units of the amount. The value must be
9402	// between -999,999,999 and +999,999,999 inclusive. If `units` is
9403	// positive, `nanos` must be positive or zero. If `units` is zero,
9404	// `nanos` can be positive, zero, or negative. If `units` is negative,
9405	// `nanos` must be negative or zero. For example $-1.75 is represented
9406	// as `units`=-1 and `nanos`=-750,000,000.
9407	Nanos int64 `json:"nanos,omitempty"`
9408
9409	// Units: The whole units of the amount. For example if `currencyCode`
9410	// is "USD", then 1 unit is one US dollar.
9411	Units int64 `json:"units,omitempty,string"`
9412
9413	// ForceSendFields is a list of field names (e.g. "CurrencyCode") to
9414	// unconditionally include in API requests. By default, fields with
9415	// empty values are omitted from API requests. However, any non-pointer,
9416	// non-interface field appearing in ForceSendFields will be sent to the
9417	// server regardless of whether the field is empty or not. This may be
9418	// used to include empty fields in Patch requests.
9419	ForceSendFields []string `json:"-"`
9420
9421	// NullFields is a list of field names (e.g. "CurrencyCode") to include
9422	// in API requests with the JSON null value. By default, fields with
9423	// empty values are omitted from API requests. However, any field with
9424	// an empty value appearing in NullFields will be sent to the server as
9425	// null. It is an error if a field in this list has a non-empty value.
9426	// This may be used to include null fields in Patch requests.
9427	NullFields []string `json:"-"`
9428}
9429
9430func (s *GoogleTypeMoney) MarshalJSON() ([]byte, error) {
9431	type NoMethod GoogleTypeMoney
9432	raw := NoMethod(*s)
9433	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9434}
9435
9436// method id "apigee.hybrid.issuers.list":
9437
9438type HybridIssuersListCall struct {
9439	s            *Service
9440	name         string
9441	urlParams_   gensupport.URLParams
9442	ifNoneMatch_ string
9443	ctx_         context.Context
9444	header_      http.Header
9445}
9446
9447// List: Lists hybrid services and its trusted issuers service account
9448// ids. This api is authenticated and unauthorized(allow all the users)
9449// and used by runtime authn-authz service to query control plane's
9450// issuer service account ids.
9451//
9452// - name: Must be of the form `hybrid/issuers`.
9453func (r *HybridIssuersService) List(name string) *HybridIssuersListCall {
9454	c := &HybridIssuersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9455	c.name = name
9456	return c
9457}
9458
9459// Fields allows partial responses to be retrieved. See
9460// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9461// for more information.
9462func (c *HybridIssuersListCall) Fields(s ...googleapi.Field) *HybridIssuersListCall {
9463	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9464	return c
9465}
9466
9467// IfNoneMatch sets the optional parameter which makes the operation
9468// fail if the object's ETag matches the given value. This is useful for
9469// getting updates only after the object has changed since the last
9470// request. Use googleapi.IsNotModified to check whether the response
9471// error from Do is the result of In-None-Match.
9472func (c *HybridIssuersListCall) IfNoneMatch(entityTag string) *HybridIssuersListCall {
9473	c.ifNoneMatch_ = entityTag
9474	return c
9475}
9476
9477// Context sets the context to be used in this call's Do method. Any
9478// pending HTTP request will be aborted if the provided context is
9479// canceled.
9480func (c *HybridIssuersListCall) Context(ctx context.Context) *HybridIssuersListCall {
9481	c.ctx_ = ctx
9482	return c
9483}
9484
9485// Header returns an http.Header that can be modified by the caller to
9486// add HTTP headers to the request.
9487func (c *HybridIssuersListCall) Header() http.Header {
9488	if c.header_ == nil {
9489		c.header_ = make(http.Header)
9490	}
9491	return c.header_
9492}
9493
9494func (c *HybridIssuersListCall) doRequest(alt string) (*http.Response, error) {
9495	reqHeaders := make(http.Header)
9496	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
9497	for k, v := range c.header_ {
9498		reqHeaders[k] = v
9499	}
9500	reqHeaders.Set("User-Agent", c.s.userAgent())
9501	if c.ifNoneMatch_ != "" {
9502		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9503	}
9504	var body io.Reader = nil
9505	c.urlParams_.Set("alt", alt)
9506	c.urlParams_.Set("prettyPrint", "false")
9507	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
9508	urls += "?" + c.urlParams_.Encode()
9509	req, err := http.NewRequest("GET", urls, body)
9510	if err != nil {
9511		return nil, err
9512	}
9513	req.Header = reqHeaders
9514	googleapi.Expand(req.URL, map[string]string{
9515		"name": c.name,
9516	})
9517	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9518}
9519
9520// Do executes the "apigee.hybrid.issuers.list" call.
9521// Exactly one of *GoogleCloudApigeeV1ListHybridIssuersResponse or error
9522// will be non-nil. Any non-2xx status code is an error. Response
9523// headers are in either
9524// *GoogleCloudApigeeV1ListHybridIssuersResponse.ServerResponse.Header
9525// or (if a response was returned at all) in
9526// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
9527// whether the returned error was because http.StatusNotModified was
9528// returned.
9529func (c *HybridIssuersListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListHybridIssuersResponse, error) {
9530	gensupport.SetOptions(c.urlParams_, opts...)
9531	res, err := c.doRequest("json")
9532	if res != nil && res.StatusCode == http.StatusNotModified {
9533		if res.Body != nil {
9534			res.Body.Close()
9535		}
9536		return nil, &googleapi.Error{
9537			Code:   res.StatusCode,
9538			Header: res.Header,
9539		}
9540	}
9541	if err != nil {
9542		return nil, err
9543	}
9544	defer googleapi.CloseBody(res)
9545	if err := googleapi.CheckResponse(res); err != nil {
9546		return nil, err
9547	}
9548	ret := &GoogleCloudApigeeV1ListHybridIssuersResponse{
9549		ServerResponse: googleapi.ServerResponse{
9550			Header:         res.Header,
9551			HTTPStatusCode: res.StatusCode,
9552		},
9553	}
9554	target := &ret
9555	if err := gensupport.DecodeResponse(target, res); err != nil {
9556		return nil, err
9557	}
9558	return ret, nil
9559	// {
9560	//   "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.",
9561	//   "flatPath": "v1/hybrid/issuers",
9562	//   "httpMethod": "GET",
9563	//   "id": "apigee.hybrid.issuers.list",
9564	//   "parameterOrder": [
9565	//     "name"
9566	//   ],
9567	//   "parameters": {
9568	//     "name": {
9569	//       "description": "Required. Must be of the form `hybrid/issuers`.",
9570	//       "location": "path",
9571	//       "pattern": "^hybrid/issuers$",
9572	//       "required": true,
9573	//       "type": "string"
9574	//     }
9575	//   },
9576	//   "path": "v1/{+name}",
9577	//   "response": {
9578	//     "$ref": "GoogleCloudApigeeV1ListHybridIssuersResponse"
9579	//   },
9580	//   "scopes": [
9581	//     "https://www.googleapis.com/auth/cloud-platform"
9582	//   ]
9583	// }
9584
9585}
9586
9587// method id "apigee.organizations.create":
9588
9589type OrganizationsCreateCall struct {
9590	s                               *Service
9591	googlecloudapigeev1organization *GoogleCloudApigeeV1Organization
9592	urlParams_                      gensupport.URLParams
9593	ctx_                            context.Context
9594	header_                         http.Header
9595}
9596
9597// Create: Creates an Apigee organization. See Create an Apigee
9598// organization
9599// (https://cloud.google.com/apigee/docs/api-platform/get-started/create-org).
9600func (r *OrganizationsService) Create(googlecloudapigeev1organization *GoogleCloudApigeeV1Organization) *OrganizationsCreateCall {
9601	c := &OrganizationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9602	c.googlecloudapigeev1organization = googlecloudapigeev1organization
9603	return c
9604}
9605
9606// Parent sets the optional parameter "parent": Required. Name of the
9607// GCP project in which to associate the Apigee organization. Pass the
9608// information as a query parameter using the following structure in
9609// your request: `projects/`
9610func (c *OrganizationsCreateCall) Parent(parent string) *OrganizationsCreateCall {
9611	c.urlParams_.Set("parent", parent)
9612	return c
9613}
9614
9615// Fields allows partial responses to be retrieved. See
9616// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9617// for more information.
9618func (c *OrganizationsCreateCall) Fields(s ...googleapi.Field) *OrganizationsCreateCall {
9619	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9620	return c
9621}
9622
9623// Context sets the context to be used in this call's Do method. Any
9624// pending HTTP request will be aborted if the provided context is
9625// canceled.
9626func (c *OrganizationsCreateCall) Context(ctx context.Context) *OrganizationsCreateCall {
9627	c.ctx_ = ctx
9628	return c
9629}
9630
9631// Header returns an http.Header that can be modified by the caller to
9632// add HTTP headers to the request.
9633func (c *OrganizationsCreateCall) Header() http.Header {
9634	if c.header_ == nil {
9635		c.header_ = make(http.Header)
9636	}
9637	return c.header_
9638}
9639
9640func (c *OrganizationsCreateCall) doRequest(alt string) (*http.Response, error) {
9641	reqHeaders := make(http.Header)
9642	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
9643	for k, v := range c.header_ {
9644		reqHeaders[k] = v
9645	}
9646	reqHeaders.Set("User-Agent", c.s.userAgent())
9647	var body io.Reader = nil
9648	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1organization)
9649	if err != nil {
9650		return nil, err
9651	}
9652	reqHeaders.Set("Content-Type", "application/json")
9653	c.urlParams_.Set("alt", alt)
9654	c.urlParams_.Set("prettyPrint", "false")
9655	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/organizations")
9656	urls += "?" + c.urlParams_.Encode()
9657	req, err := http.NewRequest("POST", urls, body)
9658	if err != nil {
9659		return nil, err
9660	}
9661	req.Header = reqHeaders
9662	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9663}
9664
9665// Do executes the "apigee.organizations.create" call.
9666// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
9667// Any non-2xx status code is an error. Response headers are in either
9668// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
9669// was returned at all) in error.(*googleapi.Error).Header. Use
9670// googleapi.IsNotModified to check whether the returned error was
9671// because http.StatusNotModified was returned.
9672func (c *OrganizationsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
9673	gensupport.SetOptions(c.urlParams_, opts...)
9674	res, err := c.doRequest("json")
9675	if res != nil && res.StatusCode == http.StatusNotModified {
9676		if res.Body != nil {
9677			res.Body.Close()
9678		}
9679		return nil, &googleapi.Error{
9680			Code:   res.StatusCode,
9681			Header: res.Header,
9682		}
9683	}
9684	if err != nil {
9685		return nil, err
9686	}
9687	defer googleapi.CloseBody(res)
9688	if err := googleapi.CheckResponse(res); err != nil {
9689		return nil, err
9690	}
9691	ret := &GoogleLongrunningOperation{
9692		ServerResponse: googleapi.ServerResponse{
9693			Header:         res.Header,
9694			HTTPStatusCode: res.StatusCode,
9695		},
9696	}
9697	target := &ret
9698	if err := gensupport.DecodeResponse(target, res); err != nil {
9699		return nil, err
9700	}
9701	return ret, nil
9702	// {
9703	//   "description": "Creates an Apigee organization. See [Create an Apigee organization](https://cloud.google.com/apigee/docs/api-platform/get-started/create-org).",
9704	//   "flatPath": "v1/organizations",
9705	//   "httpMethod": "POST",
9706	//   "id": "apigee.organizations.create",
9707	//   "parameterOrder": [],
9708	//   "parameters": {
9709	//     "parent": {
9710	//       "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/`",
9711	//       "location": "query",
9712	//       "type": "string"
9713	//     }
9714	//   },
9715	//   "path": "v1/organizations",
9716	//   "request": {
9717	//     "$ref": "GoogleCloudApigeeV1Organization"
9718	//   },
9719	//   "response": {
9720	//     "$ref": "GoogleLongrunningOperation"
9721	//   },
9722	//   "scopes": [
9723	//     "https://www.googleapis.com/auth/cloud-platform"
9724	//   ]
9725	// }
9726
9727}
9728
9729// method id "apigee.organizations.delete":
9730
9731type OrganizationsDeleteCall struct {
9732	s          *Service
9733	name       string
9734	urlParams_ gensupport.URLParams
9735	ctx_       context.Context
9736	header_    http.Header
9737}
9738
9739// Delete: Delete an Apigee organization. Only supported for
9740// SubscriptionType TRIAL.
9741//
9742// - name: Name of the organization. Use the following structure in your
9743//   request: `organizations/{org}`.
9744func (r *OrganizationsService) Delete(name string) *OrganizationsDeleteCall {
9745	c := &OrganizationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9746	c.name = name
9747	return c
9748}
9749
9750// Fields allows partial responses to be retrieved. See
9751// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9752// for more information.
9753func (c *OrganizationsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDeleteCall {
9754	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9755	return c
9756}
9757
9758// Context sets the context to be used in this call's Do method. Any
9759// pending HTTP request will be aborted if the provided context is
9760// canceled.
9761func (c *OrganizationsDeleteCall) Context(ctx context.Context) *OrganizationsDeleteCall {
9762	c.ctx_ = ctx
9763	return c
9764}
9765
9766// Header returns an http.Header that can be modified by the caller to
9767// add HTTP headers to the request.
9768func (c *OrganizationsDeleteCall) Header() http.Header {
9769	if c.header_ == nil {
9770		c.header_ = make(http.Header)
9771	}
9772	return c.header_
9773}
9774
9775func (c *OrganizationsDeleteCall) doRequest(alt string) (*http.Response, error) {
9776	reqHeaders := make(http.Header)
9777	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
9778	for k, v := range c.header_ {
9779		reqHeaders[k] = v
9780	}
9781	reqHeaders.Set("User-Agent", c.s.userAgent())
9782	var body io.Reader = nil
9783	c.urlParams_.Set("alt", alt)
9784	c.urlParams_.Set("prettyPrint", "false")
9785	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
9786	urls += "?" + c.urlParams_.Encode()
9787	req, err := http.NewRequest("DELETE", urls, body)
9788	if err != nil {
9789		return nil, err
9790	}
9791	req.Header = reqHeaders
9792	googleapi.Expand(req.URL, map[string]string{
9793		"name": c.name,
9794	})
9795	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9796}
9797
9798// Do executes the "apigee.organizations.delete" call.
9799// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
9800// Any non-2xx status code is an error. Response headers are in either
9801// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
9802// was returned at all) in error.(*googleapi.Error).Header. Use
9803// googleapi.IsNotModified to check whether the returned error was
9804// because http.StatusNotModified was returned.
9805func (c *OrganizationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
9806	gensupport.SetOptions(c.urlParams_, opts...)
9807	res, err := c.doRequest("json")
9808	if res != nil && res.StatusCode == http.StatusNotModified {
9809		if res.Body != nil {
9810			res.Body.Close()
9811		}
9812		return nil, &googleapi.Error{
9813			Code:   res.StatusCode,
9814			Header: res.Header,
9815		}
9816	}
9817	if err != nil {
9818		return nil, err
9819	}
9820	defer googleapi.CloseBody(res)
9821	if err := googleapi.CheckResponse(res); err != nil {
9822		return nil, err
9823	}
9824	ret := &GoogleLongrunningOperation{
9825		ServerResponse: googleapi.ServerResponse{
9826			Header:         res.Header,
9827			HTTPStatusCode: res.StatusCode,
9828		},
9829	}
9830	target := &ret
9831	if err := gensupport.DecodeResponse(target, res); err != nil {
9832		return nil, err
9833	}
9834	return ret, nil
9835	// {
9836	//   "description": "Delete an Apigee organization. Only supported for SubscriptionType TRIAL.",
9837	//   "flatPath": "v1/organizations/{organizationsId}",
9838	//   "httpMethod": "DELETE",
9839	//   "id": "apigee.organizations.delete",
9840	//   "parameterOrder": [
9841	//     "name"
9842	//   ],
9843	//   "parameters": {
9844	//     "name": {
9845	//       "description": "Required. Name of the organization. Use the following structure in your request: `organizations/{org}`",
9846	//       "location": "path",
9847	//       "pattern": "^organizations/[^/]+$",
9848	//       "required": true,
9849	//       "type": "string"
9850	//     }
9851	//   },
9852	//   "path": "v1/{+name}",
9853	//   "response": {
9854	//     "$ref": "GoogleLongrunningOperation"
9855	//   },
9856	//   "scopes": [
9857	//     "https://www.googleapis.com/auth/cloud-platform"
9858	//   ]
9859	// }
9860
9861}
9862
9863// method id "apigee.organizations.get":
9864
9865type OrganizationsGetCall struct {
9866	s            *Service
9867	name         string
9868	urlParams_   gensupport.URLParams
9869	ifNoneMatch_ string
9870	ctx_         context.Context
9871	header_      http.Header
9872}
9873
9874// Get: Gets the profile for an Apigee organization. See Understanding
9875// organizations
9876// (https://cloud.google.com/apigee/docs/api-platform/fundamentals/organization-structure).
9877//
9878// - name: Apigee organization name in the following format:
9879//   `organizations/{org}`.
9880func (r *OrganizationsService) Get(name string) *OrganizationsGetCall {
9881	c := &OrganizationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9882	c.name = name
9883	return c
9884}
9885
9886// Fields allows partial responses to be retrieved. See
9887// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9888// for more information.
9889func (c *OrganizationsGetCall) Fields(s ...googleapi.Field) *OrganizationsGetCall {
9890	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9891	return c
9892}
9893
9894// IfNoneMatch sets the optional parameter which makes the operation
9895// fail if the object's ETag matches the given value. This is useful for
9896// getting updates only after the object has changed since the last
9897// request. Use googleapi.IsNotModified to check whether the response
9898// error from Do is the result of In-None-Match.
9899func (c *OrganizationsGetCall) IfNoneMatch(entityTag string) *OrganizationsGetCall {
9900	c.ifNoneMatch_ = entityTag
9901	return c
9902}
9903
9904// Context sets the context to be used in this call's Do method. Any
9905// pending HTTP request will be aborted if the provided context is
9906// canceled.
9907func (c *OrganizationsGetCall) Context(ctx context.Context) *OrganizationsGetCall {
9908	c.ctx_ = ctx
9909	return c
9910}
9911
9912// Header returns an http.Header that can be modified by the caller to
9913// add HTTP headers to the request.
9914func (c *OrganizationsGetCall) Header() http.Header {
9915	if c.header_ == nil {
9916		c.header_ = make(http.Header)
9917	}
9918	return c.header_
9919}
9920
9921func (c *OrganizationsGetCall) doRequest(alt string) (*http.Response, error) {
9922	reqHeaders := make(http.Header)
9923	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
9924	for k, v := range c.header_ {
9925		reqHeaders[k] = v
9926	}
9927	reqHeaders.Set("User-Agent", c.s.userAgent())
9928	if c.ifNoneMatch_ != "" {
9929		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9930	}
9931	var body io.Reader = nil
9932	c.urlParams_.Set("alt", alt)
9933	c.urlParams_.Set("prettyPrint", "false")
9934	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
9935	urls += "?" + c.urlParams_.Encode()
9936	req, err := http.NewRequest("GET", urls, body)
9937	if err != nil {
9938		return nil, err
9939	}
9940	req.Header = reqHeaders
9941	googleapi.Expand(req.URL, map[string]string{
9942		"name": c.name,
9943	})
9944	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9945}
9946
9947// Do executes the "apigee.organizations.get" call.
9948// Exactly one of *GoogleCloudApigeeV1Organization or error will be
9949// non-nil. Any non-2xx status code is an error. Response headers are in
9950// either *GoogleCloudApigeeV1Organization.ServerResponse.Header or (if
9951// a response was returned at all) in error.(*googleapi.Error).Header.
9952// Use googleapi.IsNotModified to check whether the returned error was
9953// because http.StatusNotModified was returned.
9954func (c *OrganizationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Organization, error) {
9955	gensupport.SetOptions(c.urlParams_, opts...)
9956	res, err := c.doRequest("json")
9957	if res != nil && res.StatusCode == http.StatusNotModified {
9958		if res.Body != nil {
9959			res.Body.Close()
9960		}
9961		return nil, &googleapi.Error{
9962			Code:   res.StatusCode,
9963			Header: res.Header,
9964		}
9965	}
9966	if err != nil {
9967		return nil, err
9968	}
9969	defer googleapi.CloseBody(res)
9970	if err := googleapi.CheckResponse(res); err != nil {
9971		return nil, err
9972	}
9973	ret := &GoogleCloudApigeeV1Organization{
9974		ServerResponse: googleapi.ServerResponse{
9975			Header:         res.Header,
9976			HTTPStatusCode: res.StatusCode,
9977		},
9978	}
9979	target := &ret
9980	if err := gensupport.DecodeResponse(target, res); err != nil {
9981		return nil, err
9982	}
9983	return ret, nil
9984	// {
9985	//   "description": "Gets the profile for an Apigee organization. See [Understanding organizations](https://cloud.google.com/apigee/docs/api-platform/fundamentals/organization-structure).",
9986	//   "flatPath": "v1/organizations/{organizationsId}",
9987	//   "httpMethod": "GET",
9988	//   "id": "apigee.organizations.get",
9989	//   "parameterOrder": [
9990	//     "name"
9991	//   ],
9992	//   "parameters": {
9993	//     "name": {
9994	//       "description": "Required. Apigee organization name in the following format: `organizations/{org}`",
9995	//       "location": "path",
9996	//       "pattern": "^organizations/[^/]+$",
9997	//       "required": true,
9998	//       "type": "string"
9999	//     }
10000	//   },
10001	//   "path": "v1/{+name}",
10002	//   "response": {
10003	//     "$ref": "GoogleCloudApigeeV1Organization"
10004	//   },
10005	//   "scopes": [
10006	//     "https://www.googleapis.com/auth/cloud-platform"
10007	//   ]
10008	// }
10009
10010}
10011
10012// method id "apigee.organizations.getDeployedIngressConfig":
10013
10014type OrganizationsGetDeployedIngressConfigCall struct {
10015	s            *Service
10016	name         string
10017	urlParams_   gensupport.URLParams
10018	ifNoneMatch_ string
10019	ctx_         context.Context
10020	header_      http.Header
10021}
10022
10023// GetDeployedIngressConfig: Gets the deployed ingress configuration for
10024// an organization.
10025//
10026// - name: Name of the deployed configuration for the organization in
10027//   the following format: 'organizations/{org}/deployedIngressConfig'.
10028func (r *OrganizationsService) GetDeployedIngressConfig(name string) *OrganizationsGetDeployedIngressConfigCall {
10029	c := &OrganizationsGetDeployedIngressConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10030	c.name = name
10031	return c
10032}
10033
10034// View sets the optional parameter "view": When set to FULL, additional
10035// details about the specific deployments receiving traffic will be
10036// included in the IngressConfig response's RoutingRules.
10037//
10038// Possible values:
10039//   "INGRESS_CONFIG_VIEW_UNSPECIFIED" - The default/unset value. The
10040// API will default to the BASIC view.
10041//   "BASIC" - Include all ingress config data necessary for the runtime
10042// to configure ingress, but no more. Routing rules will include only
10043// basepath and destination environment. This the default value.
10044//   "FULL" - Include all ingress config data, including internal debug
10045// info for each routing rule such as the proxy claiming a particular
10046// basepath and when the routing rule first appeared in the env group.
10047func (c *OrganizationsGetDeployedIngressConfigCall) View(view string) *OrganizationsGetDeployedIngressConfigCall {
10048	c.urlParams_.Set("view", view)
10049	return c
10050}
10051
10052// Fields allows partial responses to be retrieved. See
10053// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10054// for more information.
10055func (c *OrganizationsGetDeployedIngressConfigCall) Fields(s ...googleapi.Field) *OrganizationsGetDeployedIngressConfigCall {
10056	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10057	return c
10058}
10059
10060// IfNoneMatch sets the optional parameter which makes the operation
10061// fail if the object's ETag matches the given value. This is useful for
10062// getting updates only after the object has changed since the last
10063// request. Use googleapi.IsNotModified to check whether the response
10064// error from Do is the result of In-None-Match.
10065func (c *OrganizationsGetDeployedIngressConfigCall) IfNoneMatch(entityTag string) *OrganizationsGetDeployedIngressConfigCall {
10066	c.ifNoneMatch_ = entityTag
10067	return c
10068}
10069
10070// Context sets the context to be used in this call's Do method. Any
10071// pending HTTP request will be aborted if the provided context is
10072// canceled.
10073func (c *OrganizationsGetDeployedIngressConfigCall) Context(ctx context.Context) *OrganizationsGetDeployedIngressConfigCall {
10074	c.ctx_ = ctx
10075	return c
10076}
10077
10078// Header returns an http.Header that can be modified by the caller to
10079// add HTTP headers to the request.
10080func (c *OrganizationsGetDeployedIngressConfigCall) Header() http.Header {
10081	if c.header_ == nil {
10082		c.header_ = make(http.Header)
10083	}
10084	return c.header_
10085}
10086
10087func (c *OrganizationsGetDeployedIngressConfigCall) doRequest(alt string) (*http.Response, error) {
10088	reqHeaders := make(http.Header)
10089	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
10090	for k, v := range c.header_ {
10091		reqHeaders[k] = v
10092	}
10093	reqHeaders.Set("User-Agent", c.s.userAgent())
10094	if c.ifNoneMatch_ != "" {
10095		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10096	}
10097	var body io.Reader = nil
10098	c.urlParams_.Set("alt", alt)
10099	c.urlParams_.Set("prettyPrint", "false")
10100	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
10101	urls += "?" + c.urlParams_.Encode()
10102	req, err := http.NewRequest("GET", urls, body)
10103	if err != nil {
10104		return nil, err
10105	}
10106	req.Header = reqHeaders
10107	googleapi.Expand(req.URL, map[string]string{
10108		"name": c.name,
10109	})
10110	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10111}
10112
10113// Do executes the "apigee.organizations.getDeployedIngressConfig" call.
10114// Exactly one of *GoogleCloudApigeeV1IngressConfig or error will be
10115// non-nil. Any non-2xx status code is an error. Response headers are in
10116// either *GoogleCloudApigeeV1IngressConfig.ServerResponse.Header or (if
10117// a response was returned at all) in error.(*googleapi.Error).Header.
10118// Use googleapi.IsNotModified to check whether the returned error was
10119// because http.StatusNotModified was returned.
10120func (c *OrganizationsGetDeployedIngressConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1IngressConfig, error) {
10121	gensupport.SetOptions(c.urlParams_, opts...)
10122	res, err := c.doRequest("json")
10123	if res != nil && res.StatusCode == http.StatusNotModified {
10124		if res.Body != nil {
10125			res.Body.Close()
10126		}
10127		return nil, &googleapi.Error{
10128			Code:   res.StatusCode,
10129			Header: res.Header,
10130		}
10131	}
10132	if err != nil {
10133		return nil, err
10134	}
10135	defer googleapi.CloseBody(res)
10136	if err := googleapi.CheckResponse(res); err != nil {
10137		return nil, err
10138	}
10139	ret := &GoogleCloudApigeeV1IngressConfig{
10140		ServerResponse: googleapi.ServerResponse{
10141			Header:         res.Header,
10142			HTTPStatusCode: res.StatusCode,
10143		},
10144	}
10145	target := &ret
10146	if err := gensupport.DecodeResponse(target, res); err != nil {
10147		return nil, err
10148	}
10149	return ret, nil
10150	// {
10151	//   "description": "Gets the deployed ingress configuration for an organization.",
10152	//   "flatPath": "v1/organizations/{organizationsId}/deployedIngressConfig",
10153	//   "httpMethod": "GET",
10154	//   "id": "apigee.organizations.getDeployedIngressConfig",
10155	//   "parameterOrder": [
10156	//     "name"
10157	//   ],
10158	//   "parameters": {
10159	//     "name": {
10160	//       "description": "Required. Name of the deployed configuration for the organization in the following format: 'organizations/{org}/deployedIngressConfig'.",
10161	//       "location": "path",
10162	//       "pattern": "^organizations/[^/]+/deployedIngressConfig$",
10163	//       "required": true,
10164	//       "type": "string"
10165	//     },
10166	//     "view": {
10167	//       "description": "When set to FULL, additional details about the specific deployments receiving traffic will be included in the IngressConfig response's RoutingRules.",
10168	//       "enum": [
10169	//         "INGRESS_CONFIG_VIEW_UNSPECIFIED",
10170	//         "BASIC",
10171	//         "FULL"
10172	//       ],
10173	//       "enumDescriptions": [
10174	//         "The default/unset value. The API will default to the BASIC view.",
10175	//         "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.",
10176	//         "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."
10177	//       ],
10178	//       "location": "query",
10179	//       "type": "string"
10180	//     }
10181	//   },
10182	//   "path": "v1/{+name}",
10183	//   "response": {
10184	//     "$ref": "GoogleCloudApigeeV1IngressConfig"
10185	//   },
10186	//   "scopes": [
10187	//     "https://www.googleapis.com/auth/cloud-platform"
10188	//   ]
10189	// }
10190
10191}
10192
10193// method id "apigee.organizations.getRuntimeConfig":
10194
10195type OrganizationsGetRuntimeConfigCall struct {
10196	s            *Service
10197	name         string
10198	urlParams_   gensupport.URLParams
10199	ifNoneMatch_ string
10200	ctx_         context.Context
10201	header_      http.Header
10202}
10203
10204// GetRuntimeConfig: Get runtime config for an organization.
10205//
10206// - name: Name of the runtime config for the organization in the
10207//   following format: 'organizations/{org}/runtimeConfig'.
10208func (r *OrganizationsService) GetRuntimeConfig(name string) *OrganizationsGetRuntimeConfigCall {
10209	c := &OrganizationsGetRuntimeConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10210	c.name = name
10211	return c
10212}
10213
10214// Fields allows partial responses to be retrieved. See
10215// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10216// for more information.
10217func (c *OrganizationsGetRuntimeConfigCall) Fields(s ...googleapi.Field) *OrganizationsGetRuntimeConfigCall {
10218	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10219	return c
10220}
10221
10222// IfNoneMatch sets the optional parameter which makes the operation
10223// fail if the object's ETag matches the given value. This is useful for
10224// getting updates only after the object has changed since the last
10225// request. Use googleapi.IsNotModified to check whether the response
10226// error from Do is the result of In-None-Match.
10227func (c *OrganizationsGetRuntimeConfigCall) IfNoneMatch(entityTag string) *OrganizationsGetRuntimeConfigCall {
10228	c.ifNoneMatch_ = entityTag
10229	return c
10230}
10231
10232// Context sets the context to be used in this call's Do method. Any
10233// pending HTTP request will be aborted if the provided context is
10234// canceled.
10235func (c *OrganizationsGetRuntimeConfigCall) Context(ctx context.Context) *OrganizationsGetRuntimeConfigCall {
10236	c.ctx_ = ctx
10237	return c
10238}
10239
10240// Header returns an http.Header that can be modified by the caller to
10241// add HTTP headers to the request.
10242func (c *OrganizationsGetRuntimeConfigCall) Header() http.Header {
10243	if c.header_ == nil {
10244		c.header_ = make(http.Header)
10245	}
10246	return c.header_
10247}
10248
10249func (c *OrganizationsGetRuntimeConfigCall) doRequest(alt string) (*http.Response, error) {
10250	reqHeaders := make(http.Header)
10251	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
10252	for k, v := range c.header_ {
10253		reqHeaders[k] = v
10254	}
10255	reqHeaders.Set("User-Agent", c.s.userAgent())
10256	if c.ifNoneMatch_ != "" {
10257		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10258	}
10259	var body io.Reader = nil
10260	c.urlParams_.Set("alt", alt)
10261	c.urlParams_.Set("prettyPrint", "false")
10262	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
10263	urls += "?" + c.urlParams_.Encode()
10264	req, err := http.NewRequest("GET", urls, body)
10265	if err != nil {
10266		return nil, err
10267	}
10268	req.Header = reqHeaders
10269	googleapi.Expand(req.URL, map[string]string{
10270		"name": c.name,
10271	})
10272	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10273}
10274
10275// Do executes the "apigee.organizations.getRuntimeConfig" call.
10276// Exactly one of *GoogleCloudApigeeV1RuntimeConfig or error will be
10277// non-nil. Any non-2xx status code is an error. Response headers are in
10278// either *GoogleCloudApigeeV1RuntimeConfig.ServerResponse.Header or (if
10279// a response was returned at all) in error.(*googleapi.Error).Header.
10280// Use googleapi.IsNotModified to check whether the returned error was
10281// because http.StatusNotModified was returned.
10282func (c *OrganizationsGetRuntimeConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1RuntimeConfig, error) {
10283	gensupport.SetOptions(c.urlParams_, opts...)
10284	res, err := c.doRequest("json")
10285	if res != nil && res.StatusCode == http.StatusNotModified {
10286		if res.Body != nil {
10287			res.Body.Close()
10288		}
10289		return nil, &googleapi.Error{
10290			Code:   res.StatusCode,
10291			Header: res.Header,
10292		}
10293	}
10294	if err != nil {
10295		return nil, err
10296	}
10297	defer googleapi.CloseBody(res)
10298	if err := googleapi.CheckResponse(res); err != nil {
10299		return nil, err
10300	}
10301	ret := &GoogleCloudApigeeV1RuntimeConfig{
10302		ServerResponse: googleapi.ServerResponse{
10303			Header:         res.Header,
10304			HTTPStatusCode: res.StatusCode,
10305		},
10306	}
10307	target := &ret
10308	if err := gensupport.DecodeResponse(target, res); err != nil {
10309		return nil, err
10310	}
10311	return ret, nil
10312	// {
10313	//   "description": "Get runtime config for an organization.",
10314	//   "flatPath": "v1/organizations/{organizationsId}/runtimeConfig",
10315	//   "httpMethod": "GET",
10316	//   "id": "apigee.organizations.getRuntimeConfig",
10317	//   "parameterOrder": [
10318	//     "name"
10319	//   ],
10320	//   "parameters": {
10321	//     "name": {
10322	//       "description": "Required. Name of the runtime config for the organization in the following format: 'organizations/{org}/runtimeConfig'.",
10323	//       "location": "path",
10324	//       "pattern": "^organizations/[^/]+/runtimeConfig$",
10325	//       "required": true,
10326	//       "type": "string"
10327	//     }
10328	//   },
10329	//   "path": "v1/{+name}",
10330	//   "response": {
10331	//     "$ref": "GoogleCloudApigeeV1RuntimeConfig"
10332	//   },
10333	//   "scopes": [
10334	//     "https://www.googleapis.com/auth/cloud-platform"
10335	//   ]
10336	// }
10337
10338}
10339
10340// method id "apigee.organizations.getSyncAuthorization":
10341
10342type OrganizationsGetSyncAuthorizationCall struct {
10343	s                                              *Service
10344	name                                           string
10345	googlecloudapigeev1getsyncauthorizationrequest *GoogleCloudApigeeV1GetSyncAuthorizationRequest
10346	urlParams_                                     gensupport.URLParams
10347	ctx_                                           context.Context
10348	header_                                        http.Header
10349}
10350
10351// GetSyncAuthorization: Lists the service accounts with the permissions
10352// required to allow the Synchronizer to download environment data from
10353// the control plane. An ETag is returned in the response to
10354// `getSyncAuthorization`. Pass that ETag when calling
10355// setSyncAuthorization (setSyncAuthorization) to ensure that you are
10356// updating the correct version. If you don't pass the ETag in the call
10357// to `setSyncAuthorization`, then the existing authorization is
10358// overwritten indiscriminately. For more information, see Configure the
10359// Synchronizer
10360// (https://cloud.google.com/apigee/docs/hybrid/latest/synchronizer-access).
10361// **Note**: Available to Apigee hybrid only.
10362//
10363// - name: Name of the Apigee organization. Use the following structure
10364//   in your request: `organizations/{org}`.
10365func (r *OrganizationsService) GetSyncAuthorization(name string, googlecloudapigeev1getsyncauthorizationrequest *GoogleCloudApigeeV1GetSyncAuthorizationRequest) *OrganizationsGetSyncAuthorizationCall {
10366	c := &OrganizationsGetSyncAuthorizationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10367	c.name = name
10368	c.googlecloudapigeev1getsyncauthorizationrequest = googlecloudapigeev1getsyncauthorizationrequest
10369	return c
10370}
10371
10372// Fields allows partial responses to be retrieved. See
10373// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10374// for more information.
10375func (c *OrganizationsGetSyncAuthorizationCall) Fields(s ...googleapi.Field) *OrganizationsGetSyncAuthorizationCall {
10376	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10377	return c
10378}
10379
10380// Context sets the context to be used in this call's Do method. Any
10381// pending HTTP request will be aborted if the provided context is
10382// canceled.
10383func (c *OrganizationsGetSyncAuthorizationCall) Context(ctx context.Context) *OrganizationsGetSyncAuthorizationCall {
10384	c.ctx_ = ctx
10385	return c
10386}
10387
10388// Header returns an http.Header that can be modified by the caller to
10389// add HTTP headers to the request.
10390func (c *OrganizationsGetSyncAuthorizationCall) Header() http.Header {
10391	if c.header_ == nil {
10392		c.header_ = make(http.Header)
10393	}
10394	return c.header_
10395}
10396
10397func (c *OrganizationsGetSyncAuthorizationCall) doRequest(alt string) (*http.Response, error) {
10398	reqHeaders := make(http.Header)
10399	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
10400	for k, v := range c.header_ {
10401		reqHeaders[k] = v
10402	}
10403	reqHeaders.Set("User-Agent", c.s.userAgent())
10404	var body io.Reader = nil
10405	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1getsyncauthorizationrequest)
10406	if err != nil {
10407		return nil, err
10408	}
10409	reqHeaders.Set("Content-Type", "application/json")
10410	c.urlParams_.Set("alt", alt)
10411	c.urlParams_.Set("prettyPrint", "false")
10412	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:getSyncAuthorization")
10413	urls += "?" + c.urlParams_.Encode()
10414	req, err := http.NewRequest("POST", urls, body)
10415	if err != nil {
10416		return nil, err
10417	}
10418	req.Header = reqHeaders
10419	googleapi.Expand(req.URL, map[string]string{
10420		"name": c.name,
10421	})
10422	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10423}
10424
10425// Do executes the "apigee.organizations.getSyncAuthorization" call.
10426// Exactly one of *GoogleCloudApigeeV1SyncAuthorization or error will be
10427// non-nil. Any non-2xx status code is an error. Response headers are in
10428// either *GoogleCloudApigeeV1SyncAuthorization.ServerResponse.Header or
10429// (if a response was returned at all) in
10430// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
10431// whether the returned error was because http.StatusNotModified was
10432// returned.
10433func (c *OrganizationsGetSyncAuthorizationCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SyncAuthorization, error) {
10434	gensupport.SetOptions(c.urlParams_, opts...)
10435	res, err := c.doRequest("json")
10436	if res != nil && res.StatusCode == http.StatusNotModified {
10437		if res.Body != nil {
10438			res.Body.Close()
10439		}
10440		return nil, &googleapi.Error{
10441			Code:   res.StatusCode,
10442			Header: res.Header,
10443		}
10444	}
10445	if err != nil {
10446		return nil, err
10447	}
10448	defer googleapi.CloseBody(res)
10449	if err := googleapi.CheckResponse(res); err != nil {
10450		return nil, err
10451	}
10452	ret := &GoogleCloudApigeeV1SyncAuthorization{
10453		ServerResponse: googleapi.ServerResponse{
10454			Header:         res.Header,
10455			HTTPStatusCode: res.StatusCode,
10456		},
10457	}
10458	target := &ret
10459	if err := gensupport.DecodeResponse(target, res); err != nil {
10460		return nil, err
10461	}
10462	return ret, nil
10463	// {
10464	//   "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.",
10465	//   "flatPath": "v1/organizations/{organizationsId}:getSyncAuthorization",
10466	//   "httpMethod": "POST",
10467	//   "id": "apigee.organizations.getSyncAuthorization",
10468	//   "parameterOrder": [
10469	//     "name"
10470	//   ],
10471	//   "parameters": {
10472	//     "name": {
10473	//       "description": "Required. Name of the Apigee organization. Use the following structure in your request: `organizations/{org}`",
10474	//       "location": "path",
10475	//       "pattern": "^organizations/[^/]+$",
10476	//       "required": true,
10477	//       "type": "string"
10478	//     }
10479	//   },
10480	//   "path": "v1/{+name}:getSyncAuthorization",
10481	//   "request": {
10482	//     "$ref": "GoogleCloudApigeeV1GetSyncAuthorizationRequest"
10483	//   },
10484	//   "response": {
10485	//     "$ref": "GoogleCloudApigeeV1SyncAuthorization"
10486	//   },
10487	//   "scopes": [
10488	//     "https://www.googleapis.com/auth/cloud-platform"
10489	//   ]
10490	// }
10491
10492}
10493
10494// method id "apigee.organizations.list":
10495
10496type OrganizationsListCall struct {
10497	s            *Service
10498	parent       string
10499	urlParams_   gensupport.URLParams
10500	ifNoneMatch_ string
10501	ctx_         context.Context
10502	header_      http.Header
10503}
10504
10505// List: Lists the Apigee organizations and associated GCP projects that
10506// you have permission to access. See Understanding organizations
10507// (https://cloud.google.com/apigee/docs/api-platform/fundamentals/organization-structure).
10508//
10509// - parent: Use the following structure in your request:
10510//   `organizations`.
10511func (r *OrganizationsService) List(parent string) *OrganizationsListCall {
10512	c := &OrganizationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10513	c.parent = parent
10514	return c
10515}
10516
10517// Fields allows partial responses to be retrieved. See
10518// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10519// for more information.
10520func (c *OrganizationsListCall) Fields(s ...googleapi.Field) *OrganizationsListCall {
10521	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10522	return c
10523}
10524
10525// IfNoneMatch sets the optional parameter which makes the operation
10526// fail if the object's ETag matches the given value. This is useful for
10527// getting updates only after the object has changed since the last
10528// request. Use googleapi.IsNotModified to check whether the response
10529// error from Do is the result of In-None-Match.
10530func (c *OrganizationsListCall) IfNoneMatch(entityTag string) *OrganizationsListCall {
10531	c.ifNoneMatch_ = entityTag
10532	return c
10533}
10534
10535// Context sets the context to be used in this call's Do method. Any
10536// pending HTTP request will be aborted if the provided context is
10537// canceled.
10538func (c *OrganizationsListCall) Context(ctx context.Context) *OrganizationsListCall {
10539	c.ctx_ = ctx
10540	return c
10541}
10542
10543// Header returns an http.Header that can be modified by the caller to
10544// add HTTP headers to the request.
10545func (c *OrganizationsListCall) Header() http.Header {
10546	if c.header_ == nil {
10547		c.header_ = make(http.Header)
10548	}
10549	return c.header_
10550}
10551
10552func (c *OrganizationsListCall) doRequest(alt string) (*http.Response, error) {
10553	reqHeaders := make(http.Header)
10554	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
10555	for k, v := range c.header_ {
10556		reqHeaders[k] = v
10557	}
10558	reqHeaders.Set("User-Agent", c.s.userAgent())
10559	if c.ifNoneMatch_ != "" {
10560		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10561	}
10562	var body io.Reader = nil
10563	c.urlParams_.Set("alt", alt)
10564	c.urlParams_.Set("prettyPrint", "false")
10565	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}")
10566	urls += "?" + c.urlParams_.Encode()
10567	req, err := http.NewRequest("GET", urls, body)
10568	if err != nil {
10569		return nil, err
10570	}
10571	req.Header = reqHeaders
10572	googleapi.Expand(req.URL, map[string]string{
10573		"parent": c.parent,
10574	})
10575	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10576}
10577
10578// Do executes the "apigee.organizations.list" call.
10579// Exactly one of *GoogleCloudApigeeV1ListOrganizationsResponse or error
10580// will be non-nil. Any non-2xx status code is an error. Response
10581// headers are in either
10582// *GoogleCloudApigeeV1ListOrganizationsResponse.ServerResponse.Header
10583// or (if a response was returned at all) in
10584// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
10585// whether the returned error was because http.StatusNotModified was
10586// returned.
10587func (c *OrganizationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListOrganizationsResponse, error) {
10588	gensupport.SetOptions(c.urlParams_, opts...)
10589	res, err := c.doRequest("json")
10590	if res != nil && res.StatusCode == http.StatusNotModified {
10591		if res.Body != nil {
10592			res.Body.Close()
10593		}
10594		return nil, &googleapi.Error{
10595			Code:   res.StatusCode,
10596			Header: res.Header,
10597		}
10598	}
10599	if err != nil {
10600		return nil, err
10601	}
10602	defer googleapi.CloseBody(res)
10603	if err := googleapi.CheckResponse(res); err != nil {
10604		return nil, err
10605	}
10606	ret := &GoogleCloudApigeeV1ListOrganizationsResponse{
10607		ServerResponse: googleapi.ServerResponse{
10608			Header:         res.Header,
10609			HTTPStatusCode: res.StatusCode,
10610		},
10611	}
10612	target := &ret
10613	if err := gensupport.DecodeResponse(target, res); err != nil {
10614		return nil, err
10615	}
10616	return ret, nil
10617	// {
10618	//   "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).",
10619	//   "flatPath": "v1/organizations",
10620	//   "httpMethod": "GET",
10621	//   "id": "apigee.organizations.list",
10622	//   "parameterOrder": [
10623	//     "parent"
10624	//   ],
10625	//   "parameters": {
10626	//     "parent": {
10627	//       "description": "Required. Use the following structure in your request: `organizations`",
10628	//       "location": "path",
10629	//       "pattern": "^organizations$",
10630	//       "required": true,
10631	//       "type": "string"
10632	//     }
10633	//   },
10634	//   "path": "v1/{+parent}",
10635	//   "response": {
10636	//     "$ref": "GoogleCloudApigeeV1ListOrganizationsResponse"
10637	//   },
10638	//   "scopes": [
10639	//     "https://www.googleapis.com/auth/cloud-platform"
10640	//   ]
10641	// }
10642
10643}
10644
10645// method id "apigee.organizations.setAddons":
10646
10647type OrganizationsSetAddonsCall struct {
10648	s                                   *Service
10649	org                                 string
10650	googlecloudapigeev1setaddonsrequest *GoogleCloudApigeeV1SetAddonsRequest
10651	urlParams_                          gensupport.URLParams
10652	ctx_                                context.Context
10653	header_                             http.Header
10654}
10655
10656// SetAddons: Configures the add-ons for the Apigee organization. The
10657// existing add-on configuration will be fully replaced.
10658//
10659// - org: Name of the organization. Use the following structure in your
10660//   request: `organizations/{org}`.
10661func (r *OrganizationsService) SetAddons(org string, googlecloudapigeev1setaddonsrequest *GoogleCloudApigeeV1SetAddonsRequest) *OrganizationsSetAddonsCall {
10662	c := &OrganizationsSetAddonsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10663	c.org = org
10664	c.googlecloudapigeev1setaddonsrequest = googlecloudapigeev1setaddonsrequest
10665	return c
10666}
10667
10668// Fields allows partial responses to be retrieved. See
10669// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10670// for more information.
10671func (c *OrganizationsSetAddonsCall) Fields(s ...googleapi.Field) *OrganizationsSetAddonsCall {
10672	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10673	return c
10674}
10675
10676// Context sets the context to be used in this call's Do method. Any
10677// pending HTTP request will be aborted if the provided context is
10678// canceled.
10679func (c *OrganizationsSetAddonsCall) Context(ctx context.Context) *OrganizationsSetAddonsCall {
10680	c.ctx_ = ctx
10681	return c
10682}
10683
10684// Header returns an http.Header that can be modified by the caller to
10685// add HTTP headers to the request.
10686func (c *OrganizationsSetAddonsCall) Header() http.Header {
10687	if c.header_ == nil {
10688		c.header_ = make(http.Header)
10689	}
10690	return c.header_
10691}
10692
10693func (c *OrganizationsSetAddonsCall) doRequest(alt string) (*http.Response, error) {
10694	reqHeaders := make(http.Header)
10695	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
10696	for k, v := range c.header_ {
10697		reqHeaders[k] = v
10698	}
10699	reqHeaders.Set("User-Agent", c.s.userAgent())
10700	var body io.Reader = nil
10701	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1setaddonsrequest)
10702	if err != nil {
10703		return nil, err
10704	}
10705	reqHeaders.Set("Content-Type", "application/json")
10706	c.urlParams_.Set("alt", alt)
10707	c.urlParams_.Set("prettyPrint", "false")
10708	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+org}:setAddons")
10709	urls += "?" + c.urlParams_.Encode()
10710	req, err := http.NewRequest("POST", urls, body)
10711	if err != nil {
10712		return nil, err
10713	}
10714	req.Header = reqHeaders
10715	googleapi.Expand(req.URL, map[string]string{
10716		"org": c.org,
10717	})
10718	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10719}
10720
10721// Do executes the "apigee.organizations.setAddons" call.
10722// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
10723// Any non-2xx status code is an error. Response headers are in either
10724// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
10725// was returned at all) in error.(*googleapi.Error).Header. Use
10726// googleapi.IsNotModified to check whether the returned error was
10727// because http.StatusNotModified was returned.
10728func (c *OrganizationsSetAddonsCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
10729	gensupport.SetOptions(c.urlParams_, opts...)
10730	res, err := c.doRequest("json")
10731	if res != nil && res.StatusCode == http.StatusNotModified {
10732		if res.Body != nil {
10733			res.Body.Close()
10734		}
10735		return nil, &googleapi.Error{
10736			Code:   res.StatusCode,
10737			Header: res.Header,
10738		}
10739	}
10740	if err != nil {
10741		return nil, err
10742	}
10743	defer googleapi.CloseBody(res)
10744	if err := googleapi.CheckResponse(res); err != nil {
10745		return nil, err
10746	}
10747	ret := &GoogleLongrunningOperation{
10748		ServerResponse: googleapi.ServerResponse{
10749			Header:         res.Header,
10750			HTTPStatusCode: res.StatusCode,
10751		},
10752	}
10753	target := &ret
10754	if err := gensupport.DecodeResponse(target, res); err != nil {
10755		return nil, err
10756	}
10757	return ret, nil
10758	// {
10759	//   "description": "Configures the add-ons for the Apigee organization. The existing add-on configuration will be fully replaced.",
10760	//   "flatPath": "v1/organizations/{organizationsId}:setAddons",
10761	//   "httpMethod": "POST",
10762	//   "id": "apigee.organizations.setAddons",
10763	//   "parameterOrder": [
10764	//     "org"
10765	//   ],
10766	//   "parameters": {
10767	//     "org": {
10768	//       "description": "Required. Name of the organization. Use the following structure in your request: `organizations/{org}`",
10769	//       "location": "path",
10770	//       "pattern": "^organizations/[^/]+$",
10771	//       "required": true,
10772	//       "type": "string"
10773	//     }
10774	//   },
10775	//   "path": "v1/{+org}:setAddons",
10776	//   "request": {
10777	//     "$ref": "GoogleCloudApigeeV1SetAddonsRequest"
10778	//   },
10779	//   "response": {
10780	//     "$ref": "GoogleLongrunningOperation"
10781	//   },
10782	//   "scopes": [
10783	//     "https://www.googleapis.com/auth/cloud-platform"
10784	//   ]
10785	// }
10786
10787}
10788
10789// method id "apigee.organizations.setSyncAuthorization":
10790
10791type OrganizationsSetSyncAuthorizationCall struct {
10792	s                                    *Service
10793	name                                 string
10794	googlecloudapigeev1syncauthorization *GoogleCloudApigeeV1SyncAuthorization
10795	urlParams_                           gensupport.URLParams
10796	ctx_                                 context.Context
10797	header_                              http.Header
10798}
10799
10800// SetSyncAuthorization: Sets the permissions required to allow the
10801// Synchronizer to download environment data from the control plane. You
10802// must call this API to enable proper functioning of hybrid. Pass the
10803// ETag when calling `setSyncAuthorization` to ensure that you are
10804// updating the correct version. To get an ETag, call
10805// getSyncAuthorization (getSyncAuthorization). If you don't pass the
10806// ETag in the call to `setSyncAuthorization`, then the existing
10807// authorization is overwritten indiscriminately. For more information,
10808// see Configure the Synchronizer
10809// (https://cloud.google.com/apigee/docs/hybrid/latest/synchronizer-access).
10810// **Note**: Available to Apigee hybrid only.
10811//
10812// - name: Name of the Apigee organization. Use the following structure
10813//   in your request: `organizations/{org}`.
10814func (r *OrganizationsService) SetSyncAuthorization(name string, googlecloudapigeev1syncauthorization *GoogleCloudApigeeV1SyncAuthorization) *OrganizationsSetSyncAuthorizationCall {
10815	c := &OrganizationsSetSyncAuthorizationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10816	c.name = name
10817	c.googlecloudapigeev1syncauthorization = googlecloudapigeev1syncauthorization
10818	return c
10819}
10820
10821// Fields allows partial responses to be retrieved. See
10822// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10823// for more information.
10824func (c *OrganizationsSetSyncAuthorizationCall) Fields(s ...googleapi.Field) *OrganizationsSetSyncAuthorizationCall {
10825	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10826	return c
10827}
10828
10829// Context sets the context to be used in this call's Do method. Any
10830// pending HTTP request will be aborted if the provided context is
10831// canceled.
10832func (c *OrganizationsSetSyncAuthorizationCall) Context(ctx context.Context) *OrganizationsSetSyncAuthorizationCall {
10833	c.ctx_ = ctx
10834	return c
10835}
10836
10837// Header returns an http.Header that can be modified by the caller to
10838// add HTTP headers to the request.
10839func (c *OrganizationsSetSyncAuthorizationCall) Header() http.Header {
10840	if c.header_ == nil {
10841		c.header_ = make(http.Header)
10842	}
10843	return c.header_
10844}
10845
10846func (c *OrganizationsSetSyncAuthorizationCall) doRequest(alt string) (*http.Response, error) {
10847	reqHeaders := make(http.Header)
10848	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
10849	for k, v := range c.header_ {
10850		reqHeaders[k] = v
10851	}
10852	reqHeaders.Set("User-Agent", c.s.userAgent())
10853	var body io.Reader = nil
10854	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1syncauthorization)
10855	if err != nil {
10856		return nil, err
10857	}
10858	reqHeaders.Set("Content-Type", "application/json")
10859	c.urlParams_.Set("alt", alt)
10860	c.urlParams_.Set("prettyPrint", "false")
10861	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:setSyncAuthorization")
10862	urls += "?" + c.urlParams_.Encode()
10863	req, err := http.NewRequest("POST", urls, body)
10864	if err != nil {
10865		return nil, err
10866	}
10867	req.Header = reqHeaders
10868	googleapi.Expand(req.URL, map[string]string{
10869		"name": c.name,
10870	})
10871	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10872}
10873
10874// Do executes the "apigee.organizations.setSyncAuthorization" call.
10875// Exactly one of *GoogleCloudApigeeV1SyncAuthorization or error will be
10876// non-nil. Any non-2xx status code is an error. Response headers are in
10877// either *GoogleCloudApigeeV1SyncAuthorization.ServerResponse.Header or
10878// (if a response was returned at all) in
10879// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
10880// whether the returned error was because http.StatusNotModified was
10881// returned.
10882func (c *OrganizationsSetSyncAuthorizationCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SyncAuthorization, error) {
10883	gensupport.SetOptions(c.urlParams_, opts...)
10884	res, err := c.doRequest("json")
10885	if res != nil && res.StatusCode == http.StatusNotModified {
10886		if res.Body != nil {
10887			res.Body.Close()
10888		}
10889		return nil, &googleapi.Error{
10890			Code:   res.StatusCode,
10891			Header: res.Header,
10892		}
10893	}
10894	if err != nil {
10895		return nil, err
10896	}
10897	defer googleapi.CloseBody(res)
10898	if err := googleapi.CheckResponse(res); err != nil {
10899		return nil, err
10900	}
10901	ret := &GoogleCloudApigeeV1SyncAuthorization{
10902		ServerResponse: googleapi.ServerResponse{
10903			Header:         res.Header,
10904			HTTPStatusCode: res.StatusCode,
10905		},
10906	}
10907	target := &ret
10908	if err := gensupport.DecodeResponse(target, res); err != nil {
10909		return nil, err
10910	}
10911	return ret, nil
10912	// {
10913	//   "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.",
10914	//   "flatPath": "v1/organizations/{organizationsId}:setSyncAuthorization",
10915	//   "httpMethod": "POST",
10916	//   "id": "apigee.organizations.setSyncAuthorization",
10917	//   "parameterOrder": [
10918	//     "name"
10919	//   ],
10920	//   "parameters": {
10921	//     "name": {
10922	//       "description": "Required. Name of the Apigee organization. Use the following structure in your request: `organizations/{org}`",
10923	//       "location": "path",
10924	//       "pattern": "^organizations/[^/]+$",
10925	//       "required": true,
10926	//       "type": "string"
10927	//     }
10928	//   },
10929	//   "path": "v1/{+name}:setSyncAuthorization",
10930	//   "request": {
10931	//     "$ref": "GoogleCloudApigeeV1SyncAuthorization"
10932	//   },
10933	//   "response": {
10934	//     "$ref": "GoogleCloudApigeeV1SyncAuthorization"
10935	//   },
10936	//   "scopes": [
10937	//     "https://www.googleapis.com/auth/cloud-platform"
10938	//   ]
10939	// }
10940
10941}
10942
10943// method id "apigee.organizations.update":
10944
10945type OrganizationsUpdateCall struct {
10946	s                               *Service
10947	name                            string
10948	googlecloudapigeev1organization *GoogleCloudApigeeV1Organization
10949	urlParams_                      gensupport.URLParams
10950	ctx_                            context.Context
10951	header_                         http.Header
10952}
10953
10954// Update: Updates the properties for an Apigee organization. No other
10955// fields in the organization profile will be updated.
10956//
10957// - name: Apigee organization name in the following format:
10958//   `organizations/{org}`.
10959func (r *OrganizationsService) Update(name string, googlecloudapigeev1organization *GoogleCloudApigeeV1Organization) *OrganizationsUpdateCall {
10960	c := &OrganizationsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10961	c.name = name
10962	c.googlecloudapigeev1organization = googlecloudapigeev1organization
10963	return c
10964}
10965
10966// Fields allows partial responses to be retrieved. See
10967// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10968// for more information.
10969func (c *OrganizationsUpdateCall) Fields(s ...googleapi.Field) *OrganizationsUpdateCall {
10970	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10971	return c
10972}
10973
10974// Context sets the context to be used in this call's Do method. Any
10975// pending HTTP request will be aborted if the provided context is
10976// canceled.
10977func (c *OrganizationsUpdateCall) Context(ctx context.Context) *OrganizationsUpdateCall {
10978	c.ctx_ = ctx
10979	return c
10980}
10981
10982// Header returns an http.Header that can be modified by the caller to
10983// add HTTP headers to the request.
10984func (c *OrganizationsUpdateCall) Header() http.Header {
10985	if c.header_ == nil {
10986		c.header_ = make(http.Header)
10987	}
10988	return c.header_
10989}
10990
10991func (c *OrganizationsUpdateCall) doRequest(alt string) (*http.Response, error) {
10992	reqHeaders := make(http.Header)
10993	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
10994	for k, v := range c.header_ {
10995		reqHeaders[k] = v
10996	}
10997	reqHeaders.Set("User-Agent", c.s.userAgent())
10998	var body io.Reader = nil
10999	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1organization)
11000	if err != nil {
11001		return nil, err
11002	}
11003	reqHeaders.Set("Content-Type", "application/json")
11004	c.urlParams_.Set("alt", alt)
11005	c.urlParams_.Set("prettyPrint", "false")
11006	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
11007	urls += "?" + c.urlParams_.Encode()
11008	req, err := http.NewRequest("PUT", urls, body)
11009	if err != nil {
11010		return nil, err
11011	}
11012	req.Header = reqHeaders
11013	googleapi.Expand(req.URL, map[string]string{
11014		"name": c.name,
11015	})
11016	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11017}
11018
11019// Do executes the "apigee.organizations.update" call.
11020// Exactly one of *GoogleCloudApigeeV1Organization or error will be
11021// non-nil. Any non-2xx status code is an error. Response headers are in
11022// either *GoogleCloudApigeeV1Organization.ServerResponse.Header or (if
11023// a response was returned at all) in error.(*googleapi.Error).Header.
11024// Use googleapi.IsNotModified to check whether the returned error was
11025// because http.StatusNotModified was returned.
11026func (c *OrganizationsUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Organization, error) {
11027	gensupport.SetOptions(c.urlParams_, opts...)
11028	res, err := c.doRequest("json")
11029	if res != nil && res.StatusCode == http.StatusNotModified {
11030		if res.Body != nil {
11031			res.Body.Close()
11032		}
11033		return nil, &googleapi.Error{
11034			Code:   res.StatusCode,
11035			Header: res.Header,
11036		}
11037	}
11038	if err != nil {
11039		return nil, err
11040	}
11041	defer googleapi.CloseBody(res)
11042	if err := googleapi.CheckResponse(res); err != nil {
11043		return nil, err
11044	}
11045	ret := &GoogleCloudApigeeV1Organization{
11046		ServerResponse: googleapi.ServerResponse{
11047			Header:         res.Header,
11048			HTTPStatusCode: res.StatusCode,
11049		},
11050	}
11051	target := &ret
11052	if err := gensupport.DecodeResponse(target, res); err != nil {
11053		return nil, err
11054	}
11055	return ret, nil
11056	// {
11057	//   "description": "Updates the properties for an Apigee organization. No other fields in the organization profile will be updated.",
11058	//   "flatPath": "v1/organizations/{organizationsId}",
11059	//   "httpMethod": "PUT",
11060	//   "id": "apigee.organizations.update",
11061	//   "parameterOrder": [
11062	//     "name"
11063	//   ],
11064	//   "parameters": {
11065	//     "name": {
11066	//       "description": "Required. Apigee organization name in the following format: `organizations/{org}`",
11067	//       "location": "path",
11068	//       "pattern": "^organizations/[^/]+$",
11069	//       "required": true,
11070	//       "type": "string"
11071	//     }
11072	//   },
11073	//   "path": "v1/{+name}",
11074	//   "request": {
11075	//     "$ref": "GoogleCloudApigeeV1Organization"
11076	//   },
11077	//   "response": {
11078	//     "$ref": "GoogleCloudApigeeV1Organization"
11079	//   },
11080	//   "scopes": [
11081	//     "https://www.googleapis.com/auth/cloud-platform"
11082	//   ]
11083	// }
11084
11085}
11086
11087// method id "apigee.organizations.analytics.datastores.create":
11088
11089type OrganizationsAnalyticsDatastoresCreateCall struct {
11090	s                            *Service
11091	parent                       string
11092	googlecloudapigeev1datastore *GoogleCloudApigeeV1Datastore
11093	urlParams_                   gensupport.URLParams
11094	ctx_                         context.Context
11095	header_                      http.Header
11096}
11097
11098// Create: Create a Datastore for an org
11099//
11100// - parent: The parent organization name. Must be of the form
11101//   `organizations/{org}`.
11102func (r *OrganizationsAnalyticsDatastoresService) Create(parent string, googlecloudapigeev1datastore *GoogleCloudApigeeV1Datastore) *OrganizationsAnalyticsDatastoresCreateCall {
11103	c := &OrganizationsAnalyticsDatastoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11104	c.parent = parent
11105	c.googlecloudapigeev1datastore = googlecloudapigeev1datastore
11106	return c
11107}
11108
11109// Fields allows partial responses to be retrieved. See
11110// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11111// for more information.
11112func (c *OrganizationsAnalyticsDatastoresCreateCall) Fields(s ...googleapi.Field) *OrganizationsAnalyticsDatastoresCreateCall {
11113	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11114	return c
11115}
11116
11117// Context sets the context to be used in this call's Do method. Any
11118// pending HTTP request will be aborted if the provided context is
11119// canceled.
11120func (c *OrganizationsAnalyticsDatastoresCreateCall) Context(ctx context.Context) *OrganizationsAnalyticsDatastoresCreateCall {
11121	c.ctx_ = ctx
11122	return c
11123}
11124
11125// Header returns an http.Header that can be modified by the caller to
11126// add HTTP headers to the request.
11127func (c *OrganizationsAnalyticsDatastoresCreateCall) Header() http.Header {
11128	if c.header_ == nil {
11129		c.header_ = make(http.Header)
11130	}
11131	return c.header_
11132}
11133
11134func (c *OrganizationsAnalyticsDatastoresCreateCall) doRequest(alt string) (*http.Response, error) {
11135	reqHeaders := make(http.Header)
11136	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
11137	for k, v := range c.header_ {
11138		reqHeaders[k] = v
11139	}
11140	reqHeaders.Set("User-Agent", c.s.userAgent())
11141	var body io.Reader = nil
11142	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1datastore)
11143	if err != nil {
11144		return nil, err
11145	}
11146	reqHeaders.Set("Content-Type", "application/json")
11147	c.urlParams_.Set("alt", alt)
11148	c.urlParams_.Set("prettyPrint", "false")
11149	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/analytics/datastores")
11150	urls += "?" + c.urlParams_.Encode()
11151	req, err := http.NewRequest("POST", urls, body)
11152	if err != nil {
11153		return nil, err
11154	}
11155	req.Header = reqHeaders
11156	googleapi.Expand(req.URL, map[string]string{
11157		"parent": c.parent,
11158	})
11159	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11160}
11161
11162// Do executes the "apigee.organizations.analytics.datastores.create" call.
11163// Exactly one of *GoogleCloudApigeeV1Datastore or error will be
11164// non-nil. Any non-2xx status code is an error. Response headers are in
11165// either *GoogleCloudApigeeV1Datastore.ServerResponse.Header or (if a
11166// response was returned at all) in error.(*googleapi.Error).Header. Use
11167// googleapi.IsNotModified to check whether the returned error was
11168// because http.StatusNotModified was returned.
11169func (c *OrganizationsAnalyticsDatastoresCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Datastore, error) {
11170	gensupport.SetOptions(c.urlParams_, opts...)
11171	res, err := c.doRequest("json")
11172	if res != nil && res.StatusCode == http.StatusNotModified {
11173		if res.Body != nil {
11174			res.Body.Close()
11175		}
11176		return nil, &googleapi.Error{
11177			Code:   res.StatusCode,
11178			Header: res.Header,
11179		}
11180	}
11181	if err != nil {
11182		return nil, err
11183	}
11184	defer googleapi.CloseBody(res)
11185	if err := googleapi.CheckResponse(res); err != nil {
11186		return nil, err
11187	}
11188	ret := &GoogleCloudApigeeV1Datastore{
11189		ServerResponse: googleapi.ServerResponse{
11190			Header:         res.Header,
11191			HTTPStatusCode: res.StatusCode,
11192		},
11193	}
11194	target := &ret
11195	if err := gensupport.DecodeResponse(target, res); err != nil {
11196		return nil, err
11197	}
11198	return ret, nil
11199	// {
11200	//   "description": "Create a Datastore for an org",
11201	//   "flatPath": "v1/organizations/{organizationsId}/analytics/datastores",
11202	//   "httpMethod": "POST",
11203	//   "id": "apigee.organizations.analytics.datastores.create",
11204	//   "parameterOrder": [
11205	//     "parent"
11206	//   ],
11207	//   "parameters": {
11208	//     "parent": {
11209	//       "description": "Required. The parent organization name. Must be of the form `organizations/{org}`.",
11210	//       "location": "path",
11211	//       "pattern": "^organizations/[^/]+$",
11212	//       "required": true,
11213	//       "type": "string"
11214	//     }
11215	//   },
11216	//   "path": "v1/{+parent}/analytics/datastores",
11217	//   "request": {
11218	//     "$ref": "GoogleCloudApigeeV1Datastore"
11219	//   },
11220	//   "response": {
11221	//     "$ref": "GoogleCloudApigeeV1Datastore"
11222	//   },
11223	//   "scopes": [
11224	//     "https://www.googleapis.com/auth/cloud-platform"
11225	//   ]
11226	// }
11227
11228}
11229
11230// method id "apigee.organizations.analytics.datastores.delete":
11231
11232type OrganizationsAnalyticsDatastoresDeleteCall struct {
11233	s          *Service
11234	name       string
11235	urlParams_ gensupport.URLParams
11236	ctx_       context.Context
11237	header_    http.Header
11238}
11239
11240// Delete: Delete a Datastore from an org.
11241//
11242// - name: Resource name of the Datastore to be deleted. Must be of the
11243//   form `organizations/{org}/analytics/datastores/{datastoreId}`.
11244func (r *OrganizationsAnalyticsDatastoresService) Delete(name string) *OrganizationsAnalyticsDatastoresDeleteCall {
11245	c := &OrganizationsAnalyticsDatastoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11246	c.name = name
11247	return c
11248}
11249
11250// Fields allows partial responses to be retrieved. See
11251// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11252// for more information.
11253func (c *OrganizationsAnalyticsDatastoresDeleteCall) Fields(s ...googleapi.Field) *OrganizationsAnalyticsDatastoresDeleteCall {
11254	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11255	return c
11256}
11257
11258// Context sets the context to be used in this call's Do method. Any
11259// pending HTTP request will be aborted if the provided context is
11260// canceled.
11261func (c *OrganizationsAnalyticsDatastoresDeleteCall) Context(ctx context.Context) *OrganizationsAnalyticsDatastoresDeleteCall {
11262	c.ctx_ = ctx
11263	return c
11264}
11265
11266// Header returns an http.Header that can be modified by the caller to
11267// add HTTP headers to the request.
11268func (c *OrganizationsAnalyticsDatastoresDeleteCall) Header() http.Header {
11269	if c.header_ == nil {
11270		c.header_ = make(http.Header)
11271	}
11272	return c.header_
11273}
11274
11275func (c *OrganizationsAnalyticsDatastoresDeleteCall) doRequest(alt string) (*http.Response, error) {
11276	reqHeaders := make(http.Header)
11277	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
11278	for k, v := range c.header_ {
11279		reqHeaders[k] = v
11280	}
11281	reqHeaders.Set("User-Agent", c.s.userAgent())
11282	var body io.Reader = nil
11283	c.urlParams_.Set("alt", alt)
11284	c.urlParams_.Set("prettyPrint", "false")
11285	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
11286	urls += "?" + c.urlParams_.Encode()
11287	req, err := http.NewRequest("DELETE", urls, body)
11288	if err != nil {
11289		return nil, err
11290	}
11291	req.Header = reqHeaders
11292	googleapi.Expand(req.URL, map[string]string{
11293		"name": c.name,
11294	})
11295	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11296}
11297
11298// Do executes the "apigee.organizations.analytics.datastores.delete" call.
11299// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
11300// non-2xx status code is an error. Response headers are in either
11301// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
11302// returned at all) in error.(*googleapi.Error).Header. Use
11303// googleapi.IsNotModified to check whether the returned error was
11304// because http.StatusNotModified was returned.
11305func (c *OrganizationsAnalyticsDatastoresDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
11306	gensupport.SetOptions(c.urlParams_, opts...)
11307	res, err := c.doRequest("json")
11308	if res != nil && res.StatusCode == http.StatusNotModified {
11309		if res.Body != nil {
11310			res.Body.Close()
11311		}
11312		return nil, &googleapi.Error{
11313			Code:   res.StatusCode,
11314			Header: res.Header,
11315		}
11316	}
11317	if err != nil {
11318		return nil, err
11319	}
11320	defer googleapi.CloseBody(res)
11321	if err := googleapi.CheckResponse(res); err != nil {
11322		return nil, err
11323	}
11324	ret := &GoogleProtobufEmpty{
11325		ServerResponse: googleapi.ServerResponse{
11326			Header:         res.Header,
11327			HTTPStatusCode: res.StatusCode,
11328		},
11329	}
11330	target := &ret
11331	if err := gensupport.DecodeResponse(target, res); err != nil {
11332		return nil, err
11333	}
11334	return ret, nil
11335	// {
11336	//   "description": "Delete a Datastore from an org.",
11337	//   "flatPath": "v1/organizations/{organizationsId}/analytics/datastores/{datastoresId}",
11338	//   "httpMethod": "DELETE",
11339	//   "id": "apigee.organizations.analytics.datastores.delete",
11340	//   "parameterOrder": [
11341	//     "name"
11342	//   ],
11343	//   "parameters": {
11344	//     "name": {
11345	//       "description": "Required. Resource name of the Datastore to be deleted. Must be of the form `organizations/{org}/analytics/datastores/{datastoreId}`",
11346	//       "location": "path",
11347	//       "pattern": "^organizations/[^/]+/analytics/datastores/[^/]+$",
11348	//       "required": true,
11349	//       "type": "string"
11350	//     }
11351	//   },
11352	//   "path": "v1/{+name}",
11353	//   "response": {
11354	//     "$ref": "GoogleProtobufEmpty"
11355	//   },
11356	//   "scopes": [
11357	//     "https://www.googleapis.com/auth/cloud-platform"
11358	//   ]
11359	// }
11360
11361}
11362
11363// method id "apigee.organizations.analytics.datastores.get":
11364
11365type OrganizationsAnalyticsDatastoresGetCall struct {
11366	s            *Service
11367	name         string
11368	urlParams_   gensupport.URLParams
11369	ifNoneMatch_ string
11370	ctx_         context.Context
11371	header_      http.Header
11372}
11373
11374// Get: Get a Datastore
11375//
11376// - name: Resource name of the Datastore to be get. Must be of the form
11377//   `organizations/{org}/analytics/datastores/{datastoreId}`.
11378func (r *OrganizationsAnalyticsDatastoresService) Get(name string) *OrganizationsAnalyticsDatastoresGetCall {
11379	c := &OrganizationsAnalyticsDatastoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11380	c.name = name
11381	return c
11382}
11383
11384// Fields allows partial responses to be retrieved. See
11385// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11386// for more information.
11387func (c *OrganizationsAnalyticsDatastoresGetCall) Fields(s ...googleapi.Field) *OrganizationsAnalyticsDatastoresGetCall {
11388	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11389	return c
11390}
11391
11392// IfNoneMatch sets the optional parameter which makes the operation
11393// fail if the object's ETag matches the given value. This is useful for
11394// getting updates only after the object has changed since the last
11395// request. Use googleapi.IsNotModified to check whether the response
11396// error from Do is the result of In-None-Match.
11397func (c *OrganizationsAnalyticsDatastoresGetCall) IfNoneMatch(entityTag string) *OrganizationsAnalyticsDatastoresGetCall {
11398	c.ifNoneMatch_ = entityTag
11399	return c
11400}
11401
11402// Context sets the context to be used in this call's Do method. Any
11403// pending HTTP request will be aborted if the provided context is
11404// canceled.
11405func (c *OrganizationsAnalyticsDatastoresGetCall) Context(ctx context.Context) *OrganizationsAnalyticsDatastoresGetCall {
11406	c.ctx_ = ctx
11407	return c
11408}
11409
11410// Header returns an http.Header that can be modified by the caller to
11411// add HTTP headers to the request.
11412func (c *OrganizationsAnalyticsDatastoresGetCall) Header() http.Header {
11413	if c.header_ == nil {
11414		c.header_ = make(http.Header)
11415	}
11416	return c.header_
11417}
11418
11419func (c *OrganizationsAnalyticsDatastoresGetCall) doRequest(alt string) (*http.Response, error) {
11420	reqHeaders := make(http.Header)
11421	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
11422	for k, v := range c.header_ {
11423		reqHeaders[k] = v
11424	}
11425	reqHeaders.Set("User-Agent", c.s.userAgent())
11426	if c.ifNoneMatch_ != "" {
11427		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11428	}
11429	var body io.Reader = nil
11430	c.urlParams_.Set("alt", alt)
11431	c.urlParams_.Set("prettyPrint", "false")
11432	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
11433	urls += "?" + c.urlParams_.Encode()
11434	req, err := http.NewRequest("GET", urls, body)
11435	if err != nil {
11436		return nil, err
11437	}
11438	req.Header = reqHeaders
11439	googleapi.Expand(req.URL, map[string]string{
11440		"name": c.name,
11441	})
11442	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11443}
11444
11445// Do executes the "apigee.organizations.analytics.datastores.get" call.
11446// Exactly one of *GoogleCloudApigeeV1Datastore or error will be
11447// non-nil. Any non-2xx status code is an error. Response headers are in
11448// either *GoogleCloudApigeeV1Datastore.ServerResponse.Header or (if a
11449// response was returned at all) in error.(*googleapi.Error).Header. Use
11450// googleapi.IsNotModified to check whether the returned error was
11451// because http.StatusNotModified was returned.
11452func (c *OrganizationsAnalyticsDatastoresGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Datastore, error) {
11453	gensupport.SetOptions(c.urlParams_, opts...)
11454	res, err := c.doRequest("json")
11455	if res != nil && res.StatusCode == http.StatusNotModified {
11456		if res.Body != nil {
11457			res.Body.Close()
11458		}
11459		return nil, &googleapi.Error{
11460			Code:   res.StatusCode,
11461			Header: res.Header,
11462		}
11463	}
11464	if err != nil {
11465		return nil, err
11466	}
11467	defer googleapi.CloseBody(res)
11468	if err := googleapi.CheckResponse(res); err != nil {
11469		return nil, err
11470	}
11471	ret := &GoogleCloudApigeeV1Datastore{
11472		ServerResponse: googleapi.ServerResponse{
11473			Header:         res.Header,
11474			HTTPStatusCode: res.StatusCode,
11475		},
11476	}
11477	target := &ret
11478	if err := gensupport.DecodeResponse(target, res); err != nil {
11479		return nil, err
11480	}
11481	return ret, nil
11482	// {
11483	//   "description": "Get a Datastore",
11484	//   "flatPath": "v1/organizations/{organizationsId}/analytics/datastores/{datastoresId}",
11485	//   "httpMethod": "GET",
11486	//   "id": "apigee.organizations.analytics.datastores.get",
11487	//   "parameterOrder": [
11488	//     "name"
11489	//   ],
11490	//   "parameters": {
11491	//     "name": {
11492	//       "description": "Required. Resource name of the Datastore to be get. Must be of the form `organizations/{org}/analytics/datastores/{datastoreId}`",
11493	//       "location": "path",
11494	//       "pattern": "^organizations/[^/]+/analytics/datastores/[^/]+$",
11495	//       "required": true,
11496	//       "type": "string"
11497	//     }
11498	//   },
11499	//   "path": "v1/{+name}",
11500	//   "response": {
11501	//     "$ref": "GoogleCloudApigeeV1Datastore"
11502	//   },
11503	//   "scopes": [
11504	//     "https://www.googleapis.com/auth/cloud-platform"
11505	//   ]
11506	// }
11507
11508}
11509
11510// method id "apigee.organizations.analytics.datastores.list":
11511
11512type OrganizationsAnalyticsDatastoresListCall struct {
11513	s            *Service
11514	parent       string
11515	urlParams_   gensupport.URLParams
11516	ifNoneMatch_ string
11517	ctx_         context.Context
11518	header_      http.Header
11519}
11520
11521// List: List Datastores
11522//
11523// - parent: The parent organization name. Must be of the form
11524//   `organizations/{org}`.
11525func (r *OrganizationsAnalyticsDatastoresService) List(parent string) *OrganizationsAnalyticsDatastoresListCall {
11526	c := &OrganizationsAnalyticsDatastoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11527	c.parent = parent
11528	return c
11529}
11530
11531// TargetType sets the optional parameter "targetType": TargetType is
11532// used to fetch all Datastores that match the type
11533func (c *OrganizationsAnalyticsDatastoresListCall) TargetType(targetType string) *OrganizationsAnalyticsDatastoresListCall {
11534	c.urlParams_.Set("targetType", targetType)
11535	return c
11536}
11537
11538// Fields allows partial responses to be retrieved. See
11539// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11540// for more information.
11541func (c *OrganizationsAnalyticsDatastoresListCall) Fields(s ...googleapi.Field) *OrganizationsAnalyticsDatastoresListCall {
11542	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11543	return c
11544}
11545
11546// IfNoneMatch sets the optional parameter which makes the operation
11547// fail if the object's ETag matches the given value. This is useful for
11548// getting updates only after the object has changed since the last
11549// request. Use googleapi.IsNotModified to check whether the response
11550// error from Do is the result of In-None-Match.
11551func (c *OrganizationsAnalyticsDatastoresListCall) IfNoneMatch(entityTag string) *OrganizationsAnalyticsDatastoresListCall {
11552	c.ifNoneMatch_ = entityTag
11553	return c
11554}
11555
11556// Context sets the context to be used in this call's Do method. Any
11557// pending HTTP request will be aborted if the provided context is
11558// canceled.
11559func (c *OrganizationsAnalyticsDatastoresListCall) Context(ctx context.Context) *OrganizationsAnalyticsDatastoresListCall {
11560	c.ctx_ = ctx
11561	return c
11562}
11563
11564// Header returns an http.Header that can be modified by the caller to
11565// add HTTP headers to the request.
11566func (c *OrganizationsAnalyticsDatastoresListCall) Header() http.Header {
11567	if c.header_ == nil {
11568		c.header_ = make(http.Header)
11569	}
11570	return c.header_
11571}
11572
11573func (c *OrganizationsAnalyticsDatastoresListCall) doRequest(alt string) (*http.Response, error) {
11574	reqHeaders := make(http.Header)
11575	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
11576	for k, v := range c.header_ {
11577		reqHeaders[k] = v
11578	}
11579	reqHeaders.Set("User-Agent", c.s.userAgent())
11580	if c.ifNoneMatch_ != "" {
11581		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11582	}
11583	var body io.Reader = nil
11584	c.urlParams_.Set("alt", alt)
11585	c.urlParams_.Set("prettyPrint", "false")
11586	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/analytics/datastores")
11587	urls += "?" + c.urlParams_.Encode()
11588	req, err := http.NewRequest("GET", urls, body)
11589	if err != nil {
11590		return nil, err
11591	}
11592	req.Header = reqHeaders
11593	googleapi.Expand(req.URL, map[string]string{
11594		"parent": c.parent,
11595	})
11596	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11597}
11598
11599// Do executes the "apigee.organizations.analytics.datastores.list" call.
11600// Exactly one of *GoogleCloudApigeeV1ListDatastoresResponse or error
11601// will be non-nil. Any non-2xx status code is an error. Response
11602// headers are in either
11603// *GoogleCloudApigeeV1ListDatastoresResponse.ServerResponse.Header or
11604// (if a response was returned at all) in
11605// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
11606// whether the returned error was because http.StatusNotModified was
11607// returned.
11608func (c *OrganizationsAnalyticsDatastoresListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDatastoresResponse, error) {
11609	gensupport.SetOptions(c.urlParams_, opts...)
11610	res, err := c.doRequest("json")
11611	if res != nil && res.StatusCode == http.StatusNotModified {
11612		if res.Body != nil {
11613			res.Body.Close()
11614		}
11615		return nil, &googleapi.Error{
11616			Code:   res.StatusCode,
11617			Header: res.Header,
11618		}
11619	}
11620	if err != nil {
11621		return nil, err
11622	}
11623	defer googleapi.CloseBody(res)
11624	if err := googleapi.CheckResponse(res); err != nil {
11625		return nil, err
11626	}
11627	ret := &GoogleCloudApigeeV1ListDatastoresResponse{
11628		ServerResponse: googleapi.ServerResponse{
11629			Header:         res.Header,
11630			HTTPStatusCode: res.StatusCode,
11631		},
11632	}
11633	target := &ret
11634	if err := gensupport.DecodeResponse(target, res); err != nil {
11635		return nil, err
11636	}
11637	return ret, nil
11638	// {
11639	//   "description": "List Datastores",
11640	//   "flatPath": "v1/organizations/{organizationsId}/analytics/datastores",
11641	//   "httpMethod": "GET",
11642	//   "id": "apigee.organizations.analytics.datastores.list",
11643	//   "parameterOrder": [
11644	//     "parent"
11645	//   ],
11646	//   "parameters": {
11647	//     "parent": {
11648	//       "description": "Required. The parent organization name. Must be of the form `organizations/{org}`.",
11649	//       "location": "path",
11650	//       "pattern": "^organizations/[^/]+$",
11651	//       "required": true,
11652	//       "type": "string"
11653	//     },
11654	//     "targetType": {
11655	//       "description": "Optional. TargetType is used to fetch all Datastores that match the type",
11656	//       "location": "query",
11657	//       "type": "string"
11658	//     }
11659	//   },
11660	//   "path": "v1/{+parent}/analytics/datastores",
11661	//   "response": {
11662	//     "$ref": "GoogleCloudApigeeV1ListDatastoresResponse"
11663	//   },
11664	//   "scopes": [
11665	//     "https://www.googleapis.com/auth/cloud-platform"
11666	//   ]
11667	// }
11668
11669}
11670
11671// method id "apigee.organizations.analytics.datastores.test":
11672
11673type OrganizationsAnalyticsDatastoresTestCall struct {
11674	s                            *Service
11675	parent                       string
11676	googlecloudapigeev1datastore *GoogleCloudApigeeV1Datastore
11677	urlParams_                   gensupport.URLParams
11678	ctx_                         context.Context
11679	header_                      http.Header
11680}
11681
11682// Test: Test if Datastore configuration is correct. This includes
11683// checking if credentials provided by customer have required
11684// permissions in target destination storage
11685//
11686// - parent: The parent organization name Must be of the form
11687//   `organizations/{org}`.
11688func (r *OrganizationsAnalyticsDatastoresService) Test(parent string, googlecloudapigeev1datastore *GoogleCloudApigeeV1Datastore) *OrganizationsAnalyticsDatastoresTestCall {
11689	c := &OrganizationsAnalyticsDatastoresTestCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11690	c.parent = parent
11691	c.googlecloudapigeev1datastore = googlecloudapigeev1datastore
11692	return c
11693}
11694
11695// Fields allows partial responses to be retrieved. See
11696// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11697// for more information.
11698func (c *OrganizationsAnalyticsDatastoresTestCall) Fields(s ...googleapi.Field) *OrganizationsAnalyticsDatastoresTestCall {
11699	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11700	return c
11701}
11702
11703// Context sets the context to be used in this call's Do method. Any
11704// pending HTTP request will be aborted if the provided context is
11705// canceled.
11706func (c *OrganizationsAnalyticsDatastoresTestCall) Context(ctx context.Context) *OrganizationsAnalyticsDatastoresTestCall {
11707	c.ctx_ = ctx
11708	return c
11709}
11710
11711// Header returns an http.Header that can be modified by the caller to
11712// add HTTP headers to the request.
11713func (c *OrganizationsAnalyticsDatastoresTestCall) Header() http.Header {
11714	if c.header_ == nil {
11715		c.header_ = make(http.Header)
11716	}
11717	return c.header_
11718}
11719
11720func (c *OrganizationsAnalyticsDatastoresTestCall) doRequest(alt string) (*http.Response, error) {
11721	reqHeaders := make(http.Header)
11722	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
11723	for k, v := range c.header_ {
11724		reqHeaders[k] = v
11725	}
11726	reqHeaders.Set("User-Agent", c.s.userAgent())
11727	var body io.Reader = nil
11728	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1datastore)
11729	if err != nil {
11730		return nil, err
11731	}
11732	reqHeaders.Set("Content-Type", "application/json")
11733	c.urlParams_.Set("alt", alt)
11734	c.urlParams_.Set("prettyPrint", "false")
11735	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/analytics/datastores:test")
11736	urls += "?" + c.urlParams_.Encode()
11737	req, err := http.NewRequest("POST", urls, body)
11738	if err != nil {
11739		return nil, err
11740	}
11741	req.Header = reqHeaders
11742	googleapi.Expand(req.URL, map[string]string{
11743		"parent": c.parent,
11744	})
11745	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11746}
11747
11748// Do executes the "apigee.organizations.analytics.datastores.test" call.
11749// Exactly one of *GoogleCloudApigeeV1TestDatastoreResponse or error
11750// will be non-nil. Any non-2xx status code is an error. Response
11751// headers are in either
11752// *GoogleCloudApigeeV1TestDatastoreResponse.ServerResponse.Header or
11753// (if a response was returned at all) in
11754// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
11755// whether the returned error was because http.StatusNotModified was
11756// returned.
11757func (c *OrganizationsAnalyticsDatastoresTestCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TestDatastoreResponse, error) {
11758	gensupport.SetOptions(c.urlParams_, opts...)
11759	res, err := c.doRequest("json")
11760	if res != nil && res.StatusCode == http.StatusNotModified {
11761		if res.Body != nil {
11762			res.Body.Close()
11763		}
11764		return nil, &googleapi.Error{
11765			Code:   res.StatusCode,
11766			Header: res.Header,
11767		}
11768	}
11769	if err != nil {
11770		return nil, err
11771	}
11772	defer googleapi.CloseBody(res)
11773	if err := googleapi.CheckResponse(res); err != nil {
11774		return nil, err
11775	}
11776	ret := &GoogleCloudApigeeV1TestDatastoreResponse{
11777		ServerResponse: googleapi.ServerResponse{
11778			Header:         res.Header,
11779			HTTPStatusCode: res.StatusCode,
11780		},
11781	}
11782	target := &ret
11783	if err := gensupport.DecodeResponse(target, res); err != nil {
11784		return nil, err
11785	}
11786	return ret, nil
11787	// {
11788	//   "description": "Test if Datastore configuration is correct. This includes checking if credentials provided by customer have required permissions in target destination storage",
11789	//   "flatPath": "v1/organizations/{organizationsId}/analytics/datastores:test",
11790	//   "httpMethod": "POST",
11791	//   "id": "apigee.organizations.analytics.datastores.test",
11792	//   "parameterOrder": [
11793	//     "parent"
11794	//   ],
11795	//   "parameters": {
11796	//     "parent": {
11797	//       "description": "Required. The parent organization name Must be of the form `organizations/{org}`",
11798	//       "location": "path",
11799	//       "pattern": "^organizations/[^/]+$",
11800	//       "required": true,
11801	//       "type": "string"
11802	//     }
11803	//   },
11804	//   "path": "v1/{+parent}/analytics/datastores:test",
11805	//   "request": {
11806	//     "$ref": "GoogleCloudApigeeV1Datastore"
11807	//   },
11808	//   "response": {
11809	//     "$ref": "GoogleCloudApigeeV1TestDatastoreResponse"
11810	//   },
11811	//   "scopes": [
11812	//     "https://www.googleapis.com/auth/cloud-platform"
11813	//   ]
11814	// }
11815
11816}
11817
11818// method id "apigee.organizations.analytics.datastores.update":
11819
11820type OrganizationsAnalyticsDatastoresUpdateCall struct {
11821	s                            *Service
11822	name                         string
11823	googlecloudapigeev1datastore *GoogleCloudApigeeV1Datastore
11824	urlParams_                   gensupport.URLParams
11825	ctx_                         context.Context
11826	header_                      http.Header
11827}
11828
11829// Update: Update a Datastore
11830//
11831// - name: The resource name of datastore to be updated. Must be of the
11832//   form `organizations/{org}/analytics/datastores/{datastoreId}`.
11833func (r *OrganizationsAnalyticsDatastoresService) Update(name string, googlecloudapigeev1datastore *GoogleCloudApigeeV1Datastore) *OrganizationsAnalyticsDatastoresUpdateCall {
11834	c := &OrganizationsAnalyticsDatastoresUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11835	c.name = name
11836	c.googlecloudapigeev1datastore = googlecloudapigeev1datastore
11837	return c
11838}
11839
11840// Fields allows partial responses to be retrieved. See
11841// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11842// for more information.
11843func (c *OrganizationsAnalyticsDatastoresUpdateCall) Fields(s ...googleapi.Field) *OrganizationsAnalyticsDatastoresUpdateCall {
11844	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11845	return c
11846}
11847
11848// Context sets the context to be used in this call's Do method. Any
11849// pending HTTP request will be aborted if the provided context is
11850// canceled.
11851func (c *OrganizationsAnalyticsDatastoresUpdateCall) Context(ctx context.Context) *OrganizationsAnalyticsDatastoresUpdateCall {
11852	c.ctx_ = ctx
11853	return c
11854}
11855
11856// Header returns an http.Header that can be modified by the caller to
11857// add HTTP headers to the request.
11858func (c *OrganizationsAnalyticsDatastoresUpdateCall) Header() http.Header {
11859	if c.header_ == nil {
11860		c.header_ = make(http.Header)
11861	}
11862	return c.header_
11863}
11864
11865func (c *OrganizationsAnalyticsDatastoresUpdateCall) doRequest(alt string) (*http.Response, error) {
11866	reqHeaders := make(http.Header)
11867	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
11868	for k, v := range c.header_ {
11869		reqHeaders[k] = v
11870	}
11871	reqHeaders.Set("User-Agent", c.s.userAgent())
11872	var body io.Reader = nil
11873	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1datastore)
11874	if err != nil {
11875		return nil, err
11876	}
11877	reqHeaders.Set("Content-Type", "application/json")
11878	c.urlParams_.Set("alt", alt)
11879	c.urlParams_.Set("prettyPrint", "false")
11880	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
11881	urls += "?" + c.urlParams_.Encode()
11882	req, err := http.NewRequest("PUT", urls, body)
11883	if err != nil {
11884		return nil, err
11885	}
11886	req.Header = reqHeaders
11887	googleapi.Expand(req.URL, map[string]string{
11888		"name": c.name,
11889	})
11890	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11891}
11892
11893// Do executes the "apigee.organizations.analytics.datastores.update" call.
11894// Exactly one of *GoogleCloudApigeeV1Datastore or error will be
11895// non-nil. Any non-2xx status code is an error. Response headers are in
11896// either *GoogleCloudApigeeV1Datastore.ServerResponse.Header or (if a
11897// response was returned at all) in error.(*googleapi.Error).Header. Use
11898// googleapi.IsNotModified to check whether the returned error was
11899// because http.StatusNotModified was returned.
11900func (c *OrganizationsAnalyticsDatastoresUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Datastore, error) {
11901	gensupport.SetOptions(c.urlParams_, opts...)
11902	res, err := c.doRequest("json")
11903	if res != nil && res.StatusCode == http.StatusNotModified {
11904		if res.Body != nil {
11905			res.Body.Close()
11906		}
11907		return nil, &googleapi.Error{
11908			Code:   res.StatusCode,
11909			Header: res.Header,
11910		}
11911	}
11912	if err != nil {
11913		return nil, err
11914	}
11915	defer googleapi.CloseBody(res)
11916	if err := googleapi.CheckResponse(res); err != nil {
11917		return nil, err
11918	}
11919	ret := &GoogleCloudApigeeV1Datastore{
11920		ServerResponse: googleapi.ServerResponse{
11921			Header:         res.Header,
11922			HTTPStatusCode: res.StatusCode,
11923		},
11924	}
11925	target := &ret
11926	if err := gensupport.DecodeResponse(target, res); err != nil {
11927		return nil, err
11928	}
11929	return ret, nil
11930	// {
11931	//   "description": "Update a Datastore",
11932	//   "flatPath": "v1/organizations/{organizationsId}/analytics/datastores/{datastoresId}",
11933	//   "httpMethod": "PUT",
11934	//   "id": "apigee.organizations.analytics.datastores.update",
11935	//   "parameterOrder": [
11936	//     "name"
11937	//   ],
11938	//   "parameters": {
11939	//     "name": {
11940	//       "description": "Required. The resource name of datastore to be updated. Must be of the form `organizations/{org}/analytics/datastores/{datastoreId}`",
11941	//       "location": "path",
11942	//       "pattern": "^organizations/[^/]+/analytics/datastores/[^/]+$",
11943	//       "required": true,
11944	//       "type": "string"
11945	//     }
11946	//   },
11947	//   "path": "v1/{+name}",
11948	//   "request": {
11949	//     "$ref": "GoogleCloudApigeeV1Datastore"
11950	//   },
11951	//   "response": {
11952	//     "$ref": "GoogleCloudApigeeV1Datastore"
11953	//   },
11954	//   "scopes": [
11955	//     "https://www.googleapis.com/auth/cloud-platform"
11956	//   ]
11957	// }
11958
11959}
11960
11961// method id "apigee.organizations.apiproducts.attributes":
11962
11963type OrganizationsApiproductsAttributesCall struct {
11964	s                             *Service
11965	name                          string
11966	googlecloudapigeev1attributes *GoogleCloudApigeeV1Attributes
11967	urlParams_                    gensupport.URLParams
11968	ctx_                          context.Context
11969	header_                       http.Header
11970}
11971
11972// Attributes: Updates or creates API product attributes. This API
11973// **replaces** the current list of attributes with the attributes
11974// specified in the request body. In this way, you can update existing
11975// attributes, add new attributes, or delete existing attributes by
11976// omitting them from the request body. **Note**: OAuth access tokens
11977// and Key Management Service (KMS) entities (apps, developers, and API
11978// products) are cached for 180 seconds (current default). Any custom
11979// attributes associated with entities also get cached for at least 180
11980// seconds after entity is accessed during runtime. In this case, the
11981// `ExpiresIn` element on the OAuthV2 policy won't be able to expire an
11982// access token in less than 180 seconds.
11983//
11984// - name: Name of the API product. Use the following structure in your
11985//   request: `organizations/{org}/apiproducts/{apiproduct}`.
11986func (r *OrganizationsApiproductsService) Attributes(name string, googlecloudapigeev1attributes *GoogleCloudApigeeV1Attributes) *OrganizationsApiproductsAttributesCall {
11987	c := &OrganizationsApiproductsAttributesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11988	c.name = name
11989	c.googlecloudapigeev1attributes = googlecloudapigeev1attributes
11990	return c
11991}
11992
11993// Fields allows partial responses to be retrieved. See
11994// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11995// for more information.
11996func (c *OrganizationsApiproductsAttributesCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsAttributesCall {
11997	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11998	return c
11999}
12000
12001// Context sets the context to be used in this call's Do method. Any
12002// pending HTTP request will be aborted if the provided context is
12003// canceled.
12004func (c *OrganizationsApiproductsAttributesCall) Context(ctx context.Context) *OrganizationsApiproductsAttributesCall {
12005	c.ctx_ = ctx
12006	return c
12007}
12008
12009// Header returns an http.Header that can be modified by the caller to
12010// add HTTP headers to the request.
12011func (c *OrganizationsApiproductsAttributesCall) Header() http.Header {
12012	if c.header_ == nil {
12013		c.header_ = make(http.Header)
12014	}
12015	return c.header_
12016}
12017
12018func (c *OrganizationsApiproductsAttributesCall) doRequest(alt string) (*http.Response, error) {
12019	reqHeaders := make(http.Header)
12020	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
12021	for k, v := range c.header_ {
12022		reqHeaders[k] = v
12023	}
12024	reqHeaders.Set("User-Agent", c.s.userAgent())
12025	var body io.Reader = nil
12026	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1attributes)
12027	if err != nil {
12028		return nil, err
12029	}
12030	reqHeaders.Set("Content-Type", "application/json")
12031	c.urlParams_.Set("alt", alt)
12032	c.urlParams_.Set("prettyPrint", "false")
12033	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/attributes")
12034	urls += "?" + c.urlParams_.Encode()
12035	req, err := http.NewRequest("POST", urls, body)
12036	if err != nil {
12037		return nil, err
12038	}
12039	req.Header = reqHeaders
12040	googleapi.Expand(req.URL, map[string]string{
12041		"name": c.name,
12042	})
12043	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12044}
12045
12046// Do executes the "apigee.organizations.apiproducts.attributes" call.
12047// Exactly one of *GoogleCloudApigeeV1Attributes or error will be
12048// non-nil. Any non-2xx status code is an error. Response headers are in
12049// either *GoogleCloudApigeeV1Attributes.ServerResponse.Header or (if a
12050// response was returned at all) in error.(*googleapi.Error).Header. Use
12051// googleapi.IsNotModified to check whether the returned error was
12052// because http.StatusNotModified was returned.
12053func (c *OrganizationsApiproductsAttributesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attributes, error) {
12054	gensupport.SetOptions(c.urlParams_, opts...)
12055	res, err := c.doRequest("json")
12056	if res != nil && res.StatusCode == http.StatusNotModified {
12057		if res.Body != nil {
12058			res.Body.Close()
12059		}
12060		return nil, &googleapi.Error{
12061			Code:   res.StatusCode,
12062			Header: res.Header,
12063		}
12064	}
12065	if err != nil {
12066		return nil, err
12067	}
12068	defer googleapi.CloseBody(res)
12069	if err := googleapi.CheckResponse(res); err != nil {
12070		return nil, err
12071	}
12072	ret := &GoogleCloudApigeeV1Attributes{
12073		ServerResponse: googleapi.ServerResponse{
12074			Header:         res.Header,
12075			HTTPStatusCode: res.StatusCode,
12076		},
12077	}
12078	target := &ret
12079	if err := gensupport.DecodeResponse(target, res); err != nil {
12080		return nil, err
12081	}
12082	return ret, nil
12083	// {
12084	//   "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.",
12085	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}/attributes",
12086	//   "httpMethod": "POST",
12087	//   "id": "apigee.organizations.apiproducts.attributes",
12088	//   "parameterOrder": [
12089	//     "name"
12090	//   ],
12091	//   "parameters": {
12092	//     "name": {
12093	//       "description": "Required. Name of the API product. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}`",
12094	//       "location": "path",
12095	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+$",
12096	//       "required": true,
12097	//       "type": "string"
12098	//     }
12099	//   },
12100	//   "path": "v1/{+name}/attributes",
12101	//   "request": {
12102	//     "$ref": "GoogleCloudApigeeV1Attributes"
12103	//   },
12104	//   "response": {
12105	//     "$ref": "GoogleCloudApigeeV1Attributes"
12106	//   },
12107	//   "scopes": [
12108	//     "https://www.googleapis.com/auth/cloud-platform"
12109	//   ]
12110	// }
12111
12112}
12113
12114// method id "apigee.organizations.apiproducts.create":
12115
12116type OrganizationsApiproductsCreateCall struct {
12117	s                             *Service
12118	parent                        string
12119	googlecloudapigeev1apiproduct *GoogleCloudApigeeV1ApiProduct
12120	urlParams_                    gensupport.URLParams
12121	ctx_                          context.Context
12122	header_                       http.Header
12123}
12124
12125// Create: Creates an API product in an organization. You create API
12126// products after you have proxied backend services using API proxies.
12127// An API product is a collection of API resources combined with quota
12128// settings and metadata that you can use to deliver customized and
12129// productized API bundles to your developer community. This metadata
12130// can include: - Scope - Environments - API proxies - Extensible
12131// profile API products enable you repackage APIs on the fly, without
12132// having to do any additional coding or configuration. Apigee
12133// recommends that you start with a simple API product including only
12134// required elements. You then provision credentials to apps to enable
12135// them to start testing your APIs. After you have authentication and
12136// authorization working against a simple API product, you can iterate
12137// to create finer-grained API products, defining different sets of API
12138// resources for each API product. **WARNING:** - If you don't specify
12139// an API proxy in the request body, *any* app associated with the
12140// product can make calls to *any* API in your entire organization. - If
12141// you don't specify an environment in the request body, the product
12142// allows access to all environments. For more information, see What is
12143// an API product?
12144//
12145// - parent: Name of the organization in which the API product will be
12146//   created. Use the following structure in your request:
12147//   `organizations/{org}`.
12148func (r *OrganizationsApiproductsService) Create(parent string, googlecloudapigeev1apiproduct *GoogleCloudApigeeV1ApiProduct) *OrganizationsApiproductsCreateCall {
12149	c := &OrganizationsApiproductsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12150	c.parent = parent
12151	c.googlecloudapigeev1apiproduct = googlecloudapigeev1apiproduct
12152	return c
12153}
12154
12155// Fields allows partial responses to be retrieved. See
12156// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12157// for more information.
12158func (c *OrganizationsApiproductsCreateCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsCreateCall {
12159	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12160	return c
12161}
12162
12163// Context sets the context to be used in this call's Do method. Any
12164// pending HTTP request will be aborted if the provided context is
12165// canceled.
12166func (c *OrganizationsApiproductsCreateCall) Context(ctx context.Context) *OrganizationsApiproductsCreateCall {
12167	c.ctx_ = ctx
12168	return c
12169}
12170
12171// Header returns an http.Header that can be modified by the caller to
12172// add HTTP headers to the request.
12173func (c *OrganizationsApiproductsCreateCall) Header() http.Header {
12174	if c.header_ == nil {
12175		c.header_ = make(http.Header)
12176	}
12177	return c.header_
12178}
12179
12180func (c *OrganizationsApiproductsCreateCall) doRequest(alt string) (*http.Response, error) {
12181	reqHeaders := make(http.Header)
12182	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
12183	for k, v := range c.header_ {
12184		reqHeaders[k] = v
12185	}
12186	reqHeaders.Set("User-Agent", c.s.userAgent())
12187	var body io.Reader = nil
12188	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1apiproduct)
12189	if err != nil {
12190		return nil, err
12191	}
12192	reqHeaders.Set("Content-Type", "application/json")
12193	c.urlParams_.Set("alt", alt)
12194	c.urlParams_.Set("prettyPrint", "false")
12195	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apiproducts")
12196	urls += "?" + c.urlParams_.Encode()
12197	req, err := http.NewRequest("POST", urls, body)
12198	if err != nil {
12199		return nil, err
12200	}
12201	req.Header = reqHeaders
12202	googleapi.Expand(req.URL, map[string]string{
12203		"parent": c.parent,
12204	})
12205	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12206}
12207
12208// Do executes the "apigee.organizations.apiproducts.create" call.
12209// Exactly one of *GoogleCloudApigeeV1ApiProduct or error will be
12210// non-nil. Any non-2xx status code is an error. Response headers are in
12211// either *GoogleCloudApigeeV1ApiProduct.ServerResponse.Header or (if a
12212// response was returned at all) in error.(*googleapi.Error).Header. Use
12213// googleapi.IsNotModified to check whether the returned error was
12214// because http.StatusNotModified was returned.
12215func (c *OrganizationsApiproductsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProduct, error) {
12216	gensupport.SetOptions(c.urlParams_, opts...)
12217	res, err := c.doRequest("json")
12218	if res != nil && res.StatusCode == http.StatusNotModified {
12219		if res.Body != nil {
12220			res.Body.Close()
12221		}
12222		return nil, &googleapi.Error{
12223			Code:   res.StatusCode,
12224			Header: res.Header,
12225		}
12226	}
12227	if err != nil {
12228		return nil, err
12229	}
12230	defer googleapi.CloseBody(res)
12231	if err := googleapi.CheckResponse(res); err != nil {
12232		return nil, err
12233	}
12234	ret := &GoogleCloudApigeeV1ApiProduct{
12235		ServerResponse: googleapi.ServerResponse{
12236			Header:         res.Header,
12237			HTTPStatusCode: res.StatusCode,
12238		},
12239	}
12240	target := &ret
12241	if err := gensupport.DecodeResponse(target, res); err != nil {
12242		return nil, err
12243	}
12244	return ret, nil
12245	// {
12246	//   "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?",
12247	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts",
12248	//   "httpMethod": "POST",
12249	//   "id": "apigee.organizations.apiproducts.create",
12250	//   "parameterOrder": [
12251	//     "parent"
12252	//   ],
12253	//   "parameters": {
12254	//     "parent": {
12255	//       "description": "Required. Name of the organization in which the API product will be created. Use the following structure in your request: `organizations/{org}`",
12256	//       "location": "path",
12257	//       "pattern": "^organizations/[^/]+$",
12258	//       "required": true,
12259	//       "type": "string"
12260	//     }
12261	//   },
12262	//   "path": "v1/{+parent}/apiproducts",
12263	//   "request": {
12264	//     "$ref": "GoogleCloudApigeeV1ApiProduct"
12265	//   },
12266	//   "response": {
12267	//     "$ref": "GoogleCloudApigeeV1ApiProduct"
12268	//   },
12269	//   "scopes": [
12270	//     "https://www.googleapis.com/auth/cloud-platform"
12271	//   ]
12272	// }
12273
12274}
12275
12276// method id "apigee.organizations.apiproducts.delete":
12277
12278type OrganizationsApiproductsDeleteCall struct {
12279	s          *Service
12280	name       string
12281	urlParams_ gensupport.URLParams
12282	ctx_       context.Context
12283	header_    http.Header
12284}
12285
12286// Delete: Deletes an API product from an organization. Deleting an API
12287// product causes app requests to the resource URIs defined in the API
12288// product to fail. Ensure that you create a new API product to serve
12289// existing apps, unless your intention is to disable access to the
12290// resources defined in the API product. The API product name required
12291// in the request URL is the internal name of the product, not the
12292// display name. While they may be the same, it depends on whether the
12293// API product was created via the UI or the API. View the list of API
12294// products to verify the internal name.
12295//
12296// - name: Name of the API product. Use the following structure in your
12297//   request: `organizations/{org}/apiproducts/{apiproduct}`.
12298func (r *OrganizationsApiproductsService) Delete(name string) *OrganizationsApiproductsDeleteCall {
12299	c := &OrganizationsApiproductsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12300	c.name = name
12301	return c
12302}
12303
12304// Fields allows partial responses to be retrieved. See
12305// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12306// for more information.
12307func (c *OrganizationsApiproductsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsDeleteCall {
12308	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12309	return c
12310}
12311
12312// Context sets the context to be used in this call's Do method. Any
12313// pending HTTP request will be aborted if the provided context is
12314// canceled.
12315func (c *OrganizationsApiproductsDeleteCall) Context(ctx context.Context) *OrganizationsApiproductsDeleteCall {
12316	c.ctx_ = ctx
12317	return c
12318}
12319
12320// Header returns an http.Header that can be modified by the caller to
12321// add HTTP headers to the request.
12322func (c *OrganizationsApiproductsDeleteCall) Header() http.Header {
12323	if c.header_ == nil {
12324		c.header_ = make(http.Header)
12325	}
12326	return c.header_
12327}
12328
12329func (c *OrganizationsApiproductsDeleteCall) doRequest(alt string) (*http.Response, error) {
12330	reqHeaders := make(http.Header)
12331	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
12332	for k, v := range c.header_ {
12333		reqHeaders[k] = v
12334	}
12335	reqHeaders.Set("User-Agent", c.s.userAgent())
12336	var body io.Reader = nil
12337	c.urlParams_.Set("alt", alt)
12338	c.urlParams_.Set("prettyPrint", "false")
12339	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
12340	urls += "?" + c.urlParams_.Encode()
12341	req, err := http.NewRequest("DELETE", urls, body)
12342	if err != nil {
12343		return nil, err
12344	}
12345	req.Header = reqHeaders
12346	googleapi.Expand(req.URL, map[string]string{
12347		"name": c.name,
12348	})
12349	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12350}
12351
12352// Do executes the "apigee.organizations.apiproducts.delete" call.
12353// Exactly one of *GoogleCloudApigeeV1ApiProduct or error will be
12354// non-nil. Any non-2xx status code is an error. Response headers are in
12355// either *GoogleCloudApigeeV1ApiProduct.ServerResponse.Header or (if a
12356// response was returned at all) in error.(*googleapi.Error).Header. Use
12357// googleapi.IsNotModified to check whether the returned error was
12358// because http.StatusNotModified was returned.
12359func (c *OrganizationsApiproductsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProduct, error) {
12360	gensupport.SetOptions(c.urlParams_, opts...)
12361	res, err := c.doRequest("json")
12362	if res != nil && res.StatusCode == http.StatusNotModified {
12363		if res.Body != nil {
12364			res.Body.Close()
12365		}
12366		return nil, &googleapi.Error{
12367			Code:   res.StatusCode,
12368			Header: res.Header,
12369		}
12370	}
12371	if err != nil {
12372		return nil, err
12373	}
12374	defer googleapi.CloseBody(res)
12375	if err := googleapi.CheckResponse(res); err != nil {
12376		return nil, err
12377	}
12378	ret := &GoogleCloudApigeeV1ApiProduct{
12379		ServerResponse: googleapi.ServerResponse{
12380			Header:         res.Header,
12381			HTTPStatusCode: res.StatusCode,
12382		},
12383	}
12384	target := &ret
12385	if err := gensupport.DecodeResponse(target, res); err != nil {
12386		return nil, err
12387	}
12388	return ret, nil
12389	// {
12390	//   "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.",
12391	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}",
12392	//   "httpMethod": "DELETE",
12393	//   "id": "apigee.organizations.apiproducts.delete",
12394	//   "parameterOrder": [
12395	//     "name"
12396	//   ],
12397	//   "parameters": {
12398	//     "name": {
12399	//       "description": "Required. Name of the API product. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}`",
12400	//       "location": "path",
12401	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+$",
12402	//       "required": true,
12403	//       "type": "string"
12404	//     }
12405	//   },
12406	//   "path": "v1/{+name}",
12407	//   "response": {
12408	//     "$ref": "GoogleCloudApigeeV1ApiProduct"
12409	//   },
12410	//   "scopes": [
12411	//     "https://www.googleapis.com/auth/cloud-platform"
12412	//   ]
12413	// }
12414
12415}
12416
12417// method id "apigee.organizations.apiproducts.get":
12418
12419type OrganizationsApiproductsGetCall struct {
12420	s            *Service
12421	name         string
12422	urlParams_   gensupport.URLParams
12423	ifNoneMatch_ string
12424	ctx_         context.Context
12425	header_      http.Header
12426}
12427
12428// Get: Gets configuration details for an API product. The API product
12429// name required in the request URL is the internal name of the product,
12430// not the display name. While they may be the same, it depends on
12431// whether the API product was created via the UI or the API. View the
12432// list of API products to verify the internal name.
12433//
12434// - name: Name of the API product. Use the following structure in your
12435//   request: `organizations/{org}/apiproducts/{apiproduct}`.
12436func (r *OrganizationsApiproductsService) Get(name string) *OrganizationsApiproductsGetCall {
12437	c := &OrganizationsApiproductsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12438	c.name = name
12439	return c
12440}
12441
12442// Fields allows partial responses to be retrieved. See
12443// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12444// for more information.
12445func (c *OrganizationsApiproductsGetCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsGetCall {
12446	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12447	return c
12448}
12449
12450// IfNoneMatch sets the optional parameter which makes the operation
12451// fail if the object's ETag matches the given value. This is useful for
12452// getting updates only after the object has changed since the last
12453// request. Use googleapi.IsNotModified to check whether the response
12454// error from Do is the result of In-None-Match.
12455func (c *OrganizationsApiproductsGetCall) IfNoneMatch(entityTag string) *OrganizationsApiproductsGetCall {
12456	c.ifNoneMatch_ = entityTag
12457	return c
12458}
12459
12460// Context sets the context to be used in this call's Do method. Any
12461// pending HTTP request will be aborted if the provided context is
12462// canceled.
12463func (c *OrganizationsApiproductsGetCall) Context(ctx context.Context) *OrganizationsApiproductsGetCall {
12464	c.ctx_ = ctx
12465	return c
12466}
12467
12468// Header returns an http.Header that can be modified by the caller to
12469// add HTTP headers to the request.
12470func (c *OrganizationsApiproductsGetCall) Header() http.Header {
12471	if c.header_ == nil {
12472		c.header_ = make(http.Header)
12473	}
12474	return c.header_
12475}
12476
12477func (c *OrganizationsApiproductsGetCall) doRequest(alt string) (*http.Response, error) {
12478	reqHeaders := make(http.Header)
12479	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
12480	for k, v := range c.header_ {
12481		reqHeaders[k] = v
12482	}
12483	reqHeaders.Set("User-Agent", c.s.userAgent())
12484	if c.ifNoneMatch_ != "" {
12485		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12486	}
12487	var body io.Reader = nil
12488	c.urlParams_.Set("alt", alt)
12489	c.urlParams_.Set("prettyPrint", "false")
12490	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
12491	urls += "?" + c.urlParams_.Encode()
12492	req, err := http.NewRequest("GET", urls, body)
12493	if err != nil {
12494		return nil, err
12495	}
12496	req.Header = reqHeaders
12497	googleapi.Expand(req.URL, map[string]string{
12498		"name": c.name,
12499	})
12500	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12501}
12502
12503// Do executes the "apigee.organizations.apiproducts.get" call.
12504// Exactly one of *GoogleCloudApigeeV1ApiProduct or error will be
12505// non-nil. Any non-2xx status code is an error. Response headers are in
12506// either *GoogleCloudApigeeV1ApiProduct.ServerResponse.Header or (if a
12507// response was returned at all) in error.(*googleapi.Error).Header. Use
12508// googleapi.IsNotModified to check whether the returned error was
12509// because http.StatusNotModified was returned.
12510func (c *OrganizationsApiproductsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProduct, error) {
12511	gensupport.SetOptions(c.urlParams_, opts...)
12512	res, err := c.doRequest("json")
12513	if res != nil && res.StatusCode == http.StatusNotModified {
12514		if res.Body != nil {
12515			res.Body.Close()
12516		}
12517		return nil, &googleapi.Error{
12518			Code:   res.StatusCode,
12519			Header: res.Header,
12520		}
12521	}
12522	if err != nil {
12523		return nil, err
12524	}
12525	defer googleapi.CloseBody(res)
12526	if err := googleapi.CheckResponse(res); err != nil {
12527		return nil, err
12528	}
12529	ret := &GoogleCloudApigeeV1ApiProduct{
12530		ServerResponse: googleapi.ServerResponse{
12531			Header:         res.Header,
12532			HTTPStatusCode: res.StatusCode,
12533		},
12534	}
12535	target := &ret
12536	if err := gensupport.DecodeResponse(target, res); err != nil {
12537		return nil, err
12538	}
12539	return ret, nil
12540	// {
12541	//   "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.",
12542	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}",
12543	//   "httpMethod": "GET",
12544	//   "id": "apigee.organizations.apiproducts.get",
12545	//   "parameterOrder": [
12546	//     "name"
12547	//   ],
12548	//   "parameters": {
12549	//     "name": {
12550	//       "description": "Required. Name of the API product. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}`",
12551	//       "location": "path",
12552	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+$",
12553	//       "required": true,
12554	//       "type": "string"
12555	//     }
12556	//   },
12557	//   "path": "v1/{+name}",
12558	//   "response": {
12559	//     "$ref": "GoogleCloudApigeeV1ApiProduct"
12560	//   },
12561	//   "scopes": [
12562	//     "https://www.googleapis.com/auth/cloud-platform"
12563	//   ]
12564	// }
12565
12566}
12567
12568// method id "apigee.organizations.apiproducts.list":
12569
12570type OrganizationsApiproductsListCall struct {
12571	s            *Service
12572	parent       string
12573	urlParams_   gensupport.URLParams
12574	ifNoneMatch_ string
12575	ctx_         context.Context
12576	header_      http.Header
12577}
12578
12579// List: Lists all API product names for an organization. Filter the
12580// list by passing an `attributename` and `attibutevalue`. The maximum
12581// number of API products returned is 1000. You can paginate the list of
12582// API products returned using the `startKey` and `count` query
12583// parameters.
12584//
12585// - parent: Name of the organization. Use the following structure in
12586//   your request: `organizations/{org}`.
12587func (r *OrganizationsApiproductsService) List(parent string) *OrganizationsApiproductsListCall {
12588	c := &OrganizationsApiproductsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12589	c.parent = parent
12590	return c
12591}
12592
12593// Attributename sets the optional parameter "attributename": Name of
12594// the attribute used to filter the search.
12595func (c *OrganizationsApiproductsListCall) Attributename(attributename string) *OrganizationsApiproductsListCall {
12596	c.urlParams_.Set("attributename", attributename)
12597	return c
12598}
12599
12600// Attributevalue sets the optional parameter "attributevalue": Value of
12601// the attribute used to filter the search.
12602func (c *OrganizationsApiproductsListCall) Attributevalue(attributevalue string) *OrganizationsApiproductsListCall {
12603	c.urlParams_.Set("attributevalue", attributevalue)
12604	return c
12605}
12606
12607// Count sets the optional parameter "count": Enter the number of API
12608// products you want returned in the API call. The limit is 1000.
12609func (c *OrganizationsApiproductsListCall) Count(count int64) *OrganizationsApiproductsListCall {
12610	c.urlParams_.Set("count", fmt.Sprint(count))
12611	return c
12612}
12613
12614// Expand sets the optional parameter "expand": Flag that specifies
12615// whether to expand the results. Set to `true` to get expanded details
12616// about each API.
12617func (c *OrganizationsApiproductsListCall) Expand(expand bool) *OrganizationsApiproductsListCall {
12618	c.urlParams_.Set("expand", fmt.Sprint(expand))
12619	return c
12620}
12621
12622// StartKey sets the optional parameter "startKey": Gets a list of API
12623// products starting with a specific API product in the list. For
12624// example, if you're returning 50 API products at a time (using the
12625// `count` query parameter), you can view products 50-99 by entering the
12626// name of the 50th API product in the first API (without using
12627// `startKey`). Product name is case sensitive.
12628func (c *OrganizationsApiproductsListCall) StartKey(startKey string) *OrganizationsApiproductsListCall {
12629	c.urlParams_.Set("startKey", startKey)
12630	return c
12631}
12632
12633// Fields allows partial responses to be retrieved. See
12634// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12635// for more information.
12636func (c *OrganizationsApiproductsListCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsListCall {
12637	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12638	return c
12639}
12640
12641// IfNoneMatch sets the optional parameter which makes the operation
12642// fail if the object's ETag matches the given value. This is useful for
12643// getting updates only after the object has changed since the last
12644// request. Use googleapi.IsNotModified to check whether the response
12645// error from Do is the result of In-None-Match.
12646func (c *OrganizationsApiproductsListCall) IfNoneMatch(entityTag string) *OrganizationsApiproductsListCall {
12647	c.ifNoneMatch_ = entityTag
12648	return c
12649}
12650
12651// Context sets the context to be used in this call's Do method. Any
12652// pending HTTP request will be aborted if the provided context is
12653// canceled.
12654func (c *OrganizationsApiproductsListCall) Context(ctx context.Context) *OrganizationsApiproductsListCall {
12655	c.ctx_ = ctx
12656	return c
12657}
12658
12659// Header returns an http.Header that can be modified by the caller to
12660// add HTTP headers to the request.
12661func (c *OrganizationsApiproductsListCall) Header() http.Header {
12662	if c.header_ == nil {
12663		c.header_ = make(http.Header)
12664	}
12665	return c.header_
12666}
12667
12668func (c *OrganizationsApiproductsListCall) doRequest(alt string) (*http.Response, error) {
12669	reqHeaders := make(http.Header)
12670	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
12671	for k, v := range c.header_ {
12672		reqHeaders[k] = v
12673	}
12674	reqHeaders.Set("User-Agent", c.s.userAgent())
12675	if c.ifNoneMatch_ != "" {
12676		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12677	}
12678	var body io.Reader = nil
12679	c.urlParams_.Set("alt", alt)
12680	c.urlParams_.Set("prettyPrint", "false")
12681	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apiproducts")
12682	urls += "?" + c.urlParams_.Encode()
12683	req, err := http.NewRequest("GET", urls, body)
12684	if err != nil {
12685		return nil, err
12686	}
12687	req.Header = reqHeaders
12688	googleapi.Expand(req.URL, map[string]string{
12689		"parent": c.parent,
12690	})
12691	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12692}
12693
12694// Do executes the "apigee.organizations.apiproducts.list" call.
12695// Exactly one of *GoogleCloudApigeeV1ListApiProductsResponse or error
12696// will be non-nil. Any non-2xx status code is an error. Response
12697// headers are in either
12698// *GoogleCloudApigeeV1ListApiProductsResponse.ServerResponse.Header or
12699// (if a response was returned at all) in
12700// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
12701// whether the returned error was because http.StatusNotModified was
12702// returned.
12703func (c *OrganizationsApiproductsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListApiProductsResponse, error) {
12704	gensupport.SetOptions(c.urlParams_, opts...)
12705	res, err := c.doRequest("json")
12706	if res != nil && res.StatusCode == http.StatusNotModified {
12707		if res.Body != nil {
12708			res.Body.Close()
12709		}
12710		return nil, &googleapi.Error{
12711			Code:   res.StatusCode,
12712			Header: res.Header,
12713		}
12714	}
12715	if err != nil {
12716		return nil, err
12717	}
12718	defer googleapi.CloseBody(res)
12719	if err := googleapi.CheckResponse(res); err != nil {
12720		return nil, err
12721	}
12722	ret := &GoogleCloudApigeeV1ListApiProductsResponse{
12723		ServerResponse: googleapi.ServerResponse{
12724			Header:         res.Header,
12725			HTTPStatusCode: res.StatusCode,
12726		},
12727	}
12728	target := &ret
12729	if err := gensupport.DecodeResponse(target, res); err != nil {
12730		return nil, err
12731	}
12732	return ret, nil
12733	// {
12734	//   "description": "Lists all API product names for an organization. Filter the list by passing an `attributename` and `attibutevalue`. The maximum number of API products returned is 1000. You can paginate the list of API products returned using the `startKey` and `count` query parameters.",
12735	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts",
12736	//   "httpMethod": "GET",
12737	//   "id": "apigee.organizations.apiproducts.list",
12738	//   "parameterOrder": [
12739	//     "parent"
12740	//   ],
12741	//   "parameters": {
12742	//     "attributename": {
12743	//       "description": "Name of the attribute used to filter the search.",
12744	//       "location": "query",
12745	//       "type": "string"
12746	//     },
12747	//     "attributevalue": {
12748	//       "description": "Value of the attribute used to filter the search.",
12749	//       "location": "query",
12750	//       "type": "string"
12751	//     },
12752	//     "count": {
12753	//       "description": "Enter the number of API products you want returned in the API call. The limit is 1000.",
12754	//       "format": "int64",
12755	//       "location": "query",
12756	//       "type": "string"
12757	//     },
12758	//     "expand": {
12759	//       "description": "Flag that specifies whether to expand the results. Set to `true` to get expanded details about each API.",
12760	//       "location": "query",
12761	//       "type": "boolean"
12762	//     },
12763	//     "parent": {
12764	//       "description": "Required. Name of the organization. Use the following structure in your request: `organizations/{org}`",
12765	//       "location": "path",
12766	//       "pattern": "^organizations/[^/]+$",
12767	//       "required": true,
12768	//       "type": "string"
12769	//     },
12770	//     "startKey": {
12771	//       "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.",
12772	//       "location": "query",
12773	//       "type": "string"
12774	//     }
12775	//   },
12776	//   "path": "v1/{+parent}/apiproducts",
12777	//   "response": {
12778	//     "$ref": "GoogleCloudApigeeV1ListApiProductsResponse"
12779	//   },
12780	//   "scopes": [
12781	//     "https://www.googleapis.com/auth/cloud-platform"
12782	//   ]
12783	// }
12784
12785}
12786
12787// method id "apigee.organizations.apiproducts.update":
12788
12789type OrganizationsApiproductsUpdateCall struct {
12790	s                             *Service
12791	name                          string
12792	googlecloudapigeev1apiproduct *GoogleCloudApigeeV1ApiProduct
12793	urlParams_                    gensupport.URLParams
12794	ctx_                          context.Context
12795	header_                       http.Header
12796}
12797
12798// Update: Updates an existing API product. You must include all
12799// required values, whether or not you are updating them, as well as any
12800// optional values that you are updating. The API product name required
12801// in the request URL is the internal name of the product, not the
12802// display name. While they may be the same, it depends on whether the
12803// API product was created via UI or API. View the list of API products
12804// to identify their internal names.
12805//
12806// - name: Name of the API product. Use the following structure in your
12807//   request: `organizations/{org}/apiproducts/{apiproduct}`.
12808func (r *OrganizationsApiproductsService) Update(name string, googlecloudapigeev1apiproduct *GoogleCloudApigeeV1ApiProduct) *OrganizationsApiproductsUpdateCall {
12809	c := &OrganizationsApiproductsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12810	c.name = name
12811	c.googlecloudapigeev1apiproduct = googlecloudapigeev1apiproduct
12812	return c
12813}
12814
12815// Fields allows partial responses to be retrieved. See
12816// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12817// for more information.
12818func (c *OrganizationsApiproductsUpdateCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsUpdateCall {
12819	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12820	return c
12821}
12822
12823// Context sets the context to be used in this call's Do method. Any
12824// pending HTTP request will be aborted if the provided context is
12825// canceled.
12826func (c *OrganizationsApiproductsUpdateCall) Context(ctx context.Context) *OrganizationsApiproductsUpdateCall {
12827	c.ctx_ = ctx
12828	return c
12829}
12830
12831// Header returns an http.Header that can be modified by the caller to
12832// add HTTP headers to the request.
12833func (c *OrganizationsApiproductsUpdateCall) Header() http.Header {
12834	if c.header_ == nil {
12835		c.header_ = make(http.Header)
12836	}
12837	return c.header_
12838}
12839
12840func (c *OrganizationsApiproductsUpdateCall) doRequest(alt string) (*http.Response, error) {
12841	reqHeaders := make(http.Header)
12842	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
12843	for k, v := range c.header_ {
12844		reqHeaders[k] = v
12845	}
12846	reqHeaders.Set("User-Agent", c.s.userAgent())
12847	var body io.Reader = nil
12848	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1apiproduct)
12849	if err != nil {
12850		return nil, err
12851	}
12852	reqHeaders.Set("Content-Type", "application/json")
12853	c.urlParams_.Set("alt", alt)
12854	c.urlParams_.Set("prettyPrint", "false")
12855	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
12856	urls += "?" + c.urlParams_.Encode()
12857	req, err := http.NewRequest("PUT", urls, body)
12858	if err != nil {
12859		return nil, err
12860	}
12861	req.Header = reqHeaders
12862	googleapi.Expand(req.URL, map[string]string{
12863		"name": c.name,
12864	})
12865	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12866}
12867
12868// Do executes the "apigee.organizations.apiproducts.update" call.
12869// Exactly one of *GoogleCloudApigeeV1ApiProduct or error will be
12870// non-nil. Any non-2xx status code is an error. Response headers are in
12871// either *GoogleCloudApigeeV1ApiProduct.ServerResponse.Header or (if a
12872// response was returned at all) in error.(*googleapi.Error).Header. Use
12873// googleapi.IsNotModified to check whether the returned error was
12874// because http.StatusNotModified was returned.
12875func (c *OrganizationsApiproductsUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProduct, error) {
12876	gensupport.SetOptions(c.urlParams_, opts...)
12877	res, err := c.doRequest("json")
12878	if res != nil && res.StatusCode == http.StatusNotModified {
12879		if res.Body != nil {
12880			res.Body.Close()
12881		}
12882		return nil, &googleapi.Error{
12883			Code:   res.StatusCode,
12884			Header: res.Header,
12885		}
12886	}
12887	if err != nil {
12888		return nil, err
12889	}
12890	defer googleapi.CloseBody(res)
12891	if err := googleapi.CheckResponse(res); err != nil {
12892		return nil, err
12893	}
12894	ret := &GoogleCloudApigeeV1ApiProduct{
12895		ServerResponse: googleapi.ServerResponse{
12896			Header:         res.Header,
12897			HTTPStatusCode: res.StatusCode,
12898		},
12899	}
12900	target := &ret
12901	if err := gensupport.DecodeResponse(target, res); err != nil {
12902		return nil, err
12903	}
12904	return ret, nil
12905	// {
12906	//   "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.",
12907	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}",
12908	//   "httpMethod": "PUT",
12909	//   "id": "apigee.organizations.apiproducts.update",
12910	//   "parameterOrder": [
12911	//     "name"
12912	//   ],
12913	//   "parameters": {
12914	//     "name": {
12915	//       "description": "Required. Name of the API product. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}`",
12916	//       "location": "path",
12917	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+$",
12918	//       "required": true,
12919	//       "type": "string"
12920	//     }
12921	//   },
12922	//   "path": "v1/{+name}",
12923	//   "request": {
12924	//     "$ref": "GoogleCloudApigeeV1ApiProduct"
12925	//   },
12926	//   "response": {
12927	//     "$ref": "GoogleCloudApigeeV1ApiProduct"
12928	//   },
12929	//   "scopes": [
12930	//     "https://www.googleapis.com/auth/cloud-platform"
12931	//   ]
12932	// }
12933
12934}
12935
12936// method id "apigee.organizations.apiproducts.attributes.delete":
12937
12938type OrganizationsApiproductsAttributesDeleteCall struct {
12939	s          *Service
12940	name       string
12941	urlParams_ gensupport.URLParams
12942	ctx_       context.Context
12943	header_    http.Header
12944}
12945
12946// Delete: Deletes an API product attribute.
12947//
12948// - name: Name of the API product attribute. Use the following
12949//   structure in your request:
12950//   `organizations/{org}/apiproducts/{apiproduct}/attributes/{attribute}
12951//   `.
12952func (r *OrganizationsApiproductsAttributesService) Delete(name string) *OrganizationsApiproductsAttributesDeleteCall {
12953	c := &OrganizationsApiproductsAttributesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12954	c.name = name
12955	return c
12956}
12957
12958// Fields allows partial responses to be retrieved. See
12959// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12960// for more information.
12961func (c *OrganizationsApiproductsAttributesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsAttributesDeleteCall {
12962	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12963	return c
12964}
12965
12966// Context sets the context to be used in this call's Do method. Any
12967// pending HTTP request will be aborted if the provided context is
12968// canceled.
12969func (c *OrganizationsApiproductsAttributesDeleteCall) Context(ctx context.Context) *OrganizationsApiproductsAttributesDeleteCall {
12970	c.ctx_ = ctx
12971	return c
12972}
12973
12974// Header returns an http.Header that can be modified by the caller to
12975// add HTTP headers to the request.
12976func (c *OrganizationsApiproductsAttributesDeleteCall) Header() http.Header {
12977	if c.header_ == nil {
12978		c.header_ = make(http.Header)
12979	}
12980	return c.header_
12981}
12982
12983func (c *OrganizationsApiproductsAttributesDeleteCall) doRequest(alt string) (*http.Response, error) {
12984	reqHeaders := make(http.Header)
12985	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
12986	for k, v := range c.header_ {
12987		reqHeaders[k] = v
12988	}
12989	reqHeaders.Set("User-Agent", c.s.userAgent())
12990	var body io.Reader = nil
12991	c.urlParams_.Set("alt", alt)
12992	c.urlParams_.Set("prettyPrint", "false")
12993	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
12994	urls += "?" + c.urlParams_.Encode()
12995	req, err := http.NewRequest("DELETE", urls, body)
12996	if err != nil {
12997		return nil, err
12998	}
12999	req.Header = reqHeaders
13000	googleapi.Expand(req.URL, map[string]string{
13001		"name": c.name,
13002	})
13003	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13004}
13005
13006// Do executes the "apigee.organizations.apiproducts.attributes.delete" call.
13007// Exactly one of *GoogleCloudApigeeV1Attribute or error will be
13008// non-nil. Any non-2xx status code is an error. Response headers are in
13009// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a
13010// response was returned at all) in error.(*googleapi.Error).Header. Use
13011// googleapi.IsNotModified to check whether the returned error was
13012// because http.StatusNotModified was returned.
13013func (c *OrganizationsApiproductsAttributesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
13014	gensupport.SetOptions(c.urlParams_, opts...)
13015	res, err := c.doRequest("json")
13016	if res != nil && res.StatusCode == http.StatusNotModified {
13017		if res.Body != nil {
13018			res.Body.Close()
13019		}
13020		return nil, &googleapi.Error{
13021			Code:   res.StatusCode,
13022			Header: res.Header,
13023		}
13024	}
13025	if err != nil {
13026		return nil, err
13027	}
13028	defer googleapi.CloseBody(res)
13029	if err := googleapi.CheckResponse(res); err != nil {
13030		return nil, err
13031	}
13032	ret := &GoogleCloudApigeeV1Attribute{
13033		ServerResponse: googleapi.ServerResponse{
13034			Header:         res.Header,
13035			HTTPStatusCode: res.StatusCode,
13036		},
13037	}
13038	target := &ret
13039	if err := gensupport.DecodeResponse(target, res); err != nil {
13040		return nil, err
13041	}
13042	return ret, nil
13043	// {
13044	//   "description": "Deletes an API product attribute.",
13045	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}/attributes/{attributesId}",
13046	//   "httpMethod": "DELETE",
13047	//   "id": "apigee.organizations.apiproducts.attributes.delete",
13048	//   "parameterOrder": [
13049	//     "name"
13050	//   ],
13051	//   "parameters": {
13052	//     "name": {
13053	//       "description": "Required. Name of the API product attribute. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}/attributes/{attribute}`",
13054	//       "location": "path",
13055	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+/attributes/[^/]+$",
13056	//       "required": true,
13057	//       "type": "string"
13058	//     }
13059	//   },
13060	//   "path": "v1/{+name}",
13061	//   "response": {
13062	//     "$ref": "GoogleCloudApigeeV1Attribute"
13063	//   },
13064	//   "scopes": [
13065	//     "https://www.googleapis.com/auth/cloud-platform"
13066	//   ]
13067	// }
13068
13069}
13070
13071// method id "apigee.organizations.apiproducts.attributes.get":
13072
13073type OrganizationsApiproductsAttributesGetCall struct {
13074	s            *Service
13075	name         string
13076	urlParams_   gensupport.URLParams
13077	ifNoneMatch_ string
13078	ctx_         context.Context
13079	header_      http.Header
13080}
13081
13082// Get: Gets the value of an API product attribute.
13083//
13084// - name: Name of the API product attribute. Use the following
13085//   structure in your request:
13086//   `organizations/{org}/apiproducts/{apiproduct}/attributes/{attribute}
13087//   `.
13088func (r *OrganizationsApiproductsAttributesService) Get(name string) *OrganizationsApiproductsAttributesGetCall {
13089	c := &OrganizationsApiproductsAttributesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13090	c.name = name
13091	return c
13092}
13093
13094// Fields allows partial responses to be retrieved. See
13095// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13096// for more information.
13097func (c *OrganizationsApiproductsAttributesGetCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsAttributesGetCall {
13098	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13099	return c
13100}
13101
13102// IfNoneMatch sets the optional parameter which makes the operation
13103// fail if the object's ETag matches the given value. This is useful for
13104// getting updates only after the object has changed since the last
13105// request. Use googleapi.IsNotModified to check whether the response
13106// error from Do is the result of In-None-Match.
13107func (c *OrganizationsApiproductsAttributesGetCall) IfNoneMatch(entityTag string) *OrganizationsApiproductsAttributesGetCall {
13108	c.ifNoneMatch_ = entityTag
13109	return c
13110}
13111
13112// Context sets the context to be used in this call's Do method. Any
13113// pending HTTP request will be aborted if the provided context is
13114// canceled.
13115func (c *OrganizationsApiproductsAttributesGetCall) Context(ctx context.Context) *OrganizationsApiproductsAttributesGetCall {
13116	c.ctx_ = ctx
13117	return c
13118}
13119
13120// Header returns an http.Header that can be modified by the caller to
13121// add HTTP headers to the request.
13122func (c *OrganizationsApiproductsAttributesGetCall) Header() http.Header {
13123	if c.header_ == nil {
13124		c.header_ = make(http.Header)
13125	}
13126	return c.header_
13127}
13128
13129func (c *OrganizationsApiproductsAttributesGetCall) doRequest(alt string) (*http.Response, error) {
13130	reqHeaders := make(http.Header)
13131	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
13132	for k, v := range c.header_ {
13133		reqHeaders[k] = v
13134	}
13135	reqHeaders.Set("User-Agent", c.s.userAgent())
13136	if c.ifNoneMatch_ != "" {
13137		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13138	}
13139	var body io.Reader = nil
13140	c.urlParams_.Set("alt", alt)
13141	c.urlParams_.Set("prettyPrint", "false")
13142	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
13143	urls += "?" + c.urlParams_.Encode()
13144	req, err := http.NewRequest("GET", urls, body)
13145	if err != nil {
13146		return nil, err
13147	}
13148	req.Header = reqHeaders
13149	googleapi.Expand(req.URL, map[string]string{
13150		"name": c.name,
13151	})
13152	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13153}
13154
13155// Do executes the "apigee.organizations.apiproducts.attributes.get" call.
13156// Exactly one of *GoogleCloudApigeeV1Attribute or error will be
13157// non-nil. Any non-2xx status code is an error. Response headers are in
13158// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a
13159// response was returned at all) in error.(*googleapi.Error).Header. Use
13160// googleapi.IsNotModified to check whether the returned error was
13161// because http.StatusNotModified was returned.
13162func (c *OrganizationsApiproductsAttributesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
13163	gensupport.SetOptions(c.urlParams_, opts...)
13164	res, err := c.doRequest("json")
13165	if res != nil && res.StatusCode == http.StatusNotModified {
13166		if res.Body != nil {
13167			res.Body.Close()
13168		}
13169		return nil, &googleapi.Error{
13170			Code:   res.StatusCode,
13171			Header: res.Header,
13172		}
13173	}
13174	if err != nil {
13175		return nil, err
13176	}
13177	defer googleapi.CloseBody(res)
13178	if err := googleapi.CheckResponse(res); err != nil {
13179		return nil, err
13180	}
13181	ret := &GoogleCloudApigeeV1Attribute{
13182		ServerResponse: googleapi.ServerResponse{
13183			Header:         res.Header,
13184			HTTPStatusCode: res.StatusCode,
13185		},
13186	}
13187	target := &ret
13188	if err := gensupport.DecodeResponse(target, res); err != nil {
13189		return nil, err
13190	}
13191	return ret, nil
13192	// {
13193	//   "description": "Gets the value of an API product attribute.",
13194	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}/attributes/{attributesId}",
13195	//   "httpMethod": "GET",
13196	//   "id": "apigee.organizations.apiproducts.attributes.get",
13197	//   "parameterOrder": [
13198	//     "name"
13199	//   ],
13200	//   "parameters": {
13201	//     "name": {
13202	//       "description": "Required. Name of the API product attribute. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}/attributes/{attribute}`",
13203	//       "location": "path",
13204	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+/attributes/[^/]+$",
13205	//       "required": true,
13206	//       "type": "string"
13207	//     }
13208	//   },
13209	//   "path": "v1/{+name}",
13210	//   "response": {
13211	//     "$ref": "GoogleCloudApigeeV1Attribute"
13212	//   },
13213	//   "scopes": [
13214	//     "https://www.googleapis.com/auth/cloud-platform"
13215	//   ]
13216	// }
13217
13218}
13219
13220// method id "apigee.organizations.apiproducts.attributes.list":
13221
13222type OrganizationsApiproductsAttributesListCall struct {
13223	s            *Service
13224	parent       string
13225	urlParams_   gensupport.URLParams
13226	ifNoneMatch_ string
13227	ctx_         context.Context
13228	header_      http.Header
13229}
13230
13231// List: Lists all API product attributes.
13232//
13233// - parent: Name of the API product. Use the following structure in
13234//   your request: `organizations/{org}/apiproducts/{apiproduct}`.
13235func (r *OrganizationsApiproductsAttributesService) List(parent string) *OrganizationsApiproductsAttributesListCall {
13236	c := &OrganizationsApiproductsAttributesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13237	c.parent = parent
13238	return c
13239}
13240
13241// Fields allows partial responses to be retrieved. See
13242// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13243// for more information.
13244func (c *OrganizationsApiproductsAttributesListCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsAttributesListCall {
13245	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13246	return c
13247}
13248
13249// IfNoneMatch sets the optional parameter which makes the operation
13250// fail if the object's ETag matches the given value. This is useful for
13251// getting updates only after the object has changed since the last
13252// request. Use googleapi.IsNotModified to check whether the response
13253// error from Do is the result of In-None-Match.
13254func (c *OrganizationsApiproductsAttributesListCall) IfNoneMatch(entityTag string) *OrganizationsApiproductsAttributesListCall {
13255	c.ifNoneMatch_ = entityTag
13256	return c
13257}
13258
13259// Context sets the context to be used in this call's Do method. Any
13260// pending HTTP request will be aborted if the provided context is
13261// canceled.
13262func (c *OrganizationsApiproductsAttributesListCall) Context(ctx context.Context) *OrganizationsApiproductsAttributesListCall {
13263	c.ctx_ = ctx
13264	return c
13265}
13266
13267// Header returns an http.Header that can be modified by the caller to
13268// add HTTP headers to the request.
13269func (c *OrganizationsApiproductsAttributesListCall) Header() http.Header {
13270	if c.header_ == nil {
13271		c.header_ = make(http.Header)
13272	}
13273	return c.header_
13274}
13275
13276func (c *OrganizationsApiproductsAttributesListCall) doRequest(alt string) (*http.Response, error) {
13277	reqHeaders := make(http.Header)
13278	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
13279	for k, v := range c.header_ {
13280		reqHeaders[k] = v
13281	}
13282	reqHeaders.Set("User-Agent", c.s.userAgent())
13283	if c.ifNoneMatch_ != "" {
13284		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13285	}
13286	var body io.Reader = nil
13287	c.urlParams_.Set("alt", alt)
13288	c.urlParams_.Set("prettyPrint", "false")
13289	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attributes")
13290	urls += "?" + c.urlParams_.Encode()
13291	req, err := http.NewRequest("GET", urls, body)
13292	if err != nil {
13293		return nil, err
13294	}
13295	req.Header = reqHeaders
13296	googleapi.Expand(req.URL, map[string]string{
13297		"parent": c.parent,
13298	})
13299	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13300}
13301
13302// Do executes the "apigee.organizations.apiproducts.attributes.list" call.
13303// Exactly one of *GoogleCloudApigeeV1Attributes or error will be
13304// non-nil. Any non-2xx status code is an error. Response headers are in
13305// either *GoogleCloudApigeeV1Attributes.ServerResponse.Header or (if a
13306// response was returned at all) in error.(*googleapi.Error).Header. Use
13307// googleapi.IsNotModified to check whether the returned error was
13308// because http.StatusNotModified was returned.
13309func (c *OrganizationsApiproductsAttributesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attributes, error) {
13310	gensupport.SetOptions(c.urlParams_, opts...)
13311	res, err := c.doRequest("json")
13312	if res != nil && res.StatusCode == http.StatusNotModified {
13313		if res.Body != nil {
13314			res.Body.Close()
13315		}
13316		return nil, &googleapi.Error{
13317			Code:   res.StatusCode,
13318			Header: res.Header,
13319		}
13320	}
13321	if err != nil {
13322		return nil, err
13323	}
13324	defer googleapi.CloseBody(res)
13325	if err := googleapi.CheckResponse(res); err != nil {
13326		return nil, err
13327	}
13328	ret := &GoogleCloudApigeeV1Attributes{
13329		ServerResponse: googleapi.ServerResponse{
13330			Header:         res.Header,
13331			HTTPStatusCode: res.StatusCode,
13332		},
13333	}
13334	target := &ret
13335	if err := gensupport.DecodeResponse(target, res); err != nil {
13336		return nil, err
13337	}
13338	return ret, nil
13339	// {
13340	//   "description": "Lists all API product attributes.",
13341	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}/attributes",
13342	//   "httpMethod": "GET",
13343	//   "id": "apigee.organizations.apiproducts.attributes.list",
13344	//   "parameterOrder": [
13345	//     "parent"
13346	//   ],
13347	//   "parameters": {
13348	//     "parent": {
13349	//       "description": "Required. Name of the API product. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}`",
13350	//       "location": "path",
13351	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+$",
13352	//       "required": true,
13353	//       "type": "string"
13354	//     }
13355	//   },
13356	//   "path": "v1/{+parent}/attributes",
13357	//   "response": {
13358	//     "$ref": "GoogleCloudApigeeV1Attributes"
13359	//   },
13360	//   "scopes": [
13361	//     "https://www.googleapis.com/auth/cloud-platform"
13362	//   ]
13363	// }
13364
13365}
13366
13367// method id "apigee.organizations.apiproducts.attributes.updateApiProductAttribute":
13368
13369type OrganizationsApiproductsAttributesUpdateApiProductAttributeCall struct {
13370	s                            *Service
13371	name                         string
13372	googlecloudapigeev1attribute *GoogleCloudApigeeV1Attribute
13373	urlParams_                   gensupport.URLParams
13374	ctx_                         context.Context
13375	header_                      http.Header
13376}
13377
13378// UpdateApiProductAttribute: Updates the value of an API product
13379// attribute. **Note**: OAuth access tokens and Key Management Service
13380// (KMS) entities (apps, developers, and API products) are cached for
13381// 180 seconds (current default). Any custom attributes associated with
13382// entities also get cached for at least 180 seconds after entity is
13383// accessed during runtime. In this case, the `ExpiresIn` element on the
13384// OAuthV2 policy won't be able to expire an access token in less than
13385// 180 seconds.
13386//
13387// - name: Name of the API product. Use the following structure in your
13388//   request: `organizations/{org}/apiproducts/{apiproduct}`.
13389func (r *OrganizationsApiproductsAttributesService) UpdateApiProductAttribute(name string, googlecloudapigeev1attribute *GoogleCloudApigeeV1Attribute) *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall {
13390	c := &OrganizationsApiproductsAttributesUpdateApiProductAttributeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13391	c.name = name
13392	c.googlecloudapigeev1attribute = googlecloudapigeev1attribute
13393	return c
13394}
13395
13396// Fields allows partial responses to be retrieved. See
13397// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13398// for more information.
13399func (c *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall {
13400	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13401	return c
13402}
13403
13404// Context sets the context to be used in this call's Do method. Any
13405// pending HTTP request will be aborted if the provided context is
13406// canceled.
13407func (c *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall) Context(ctx context.Context) *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall {
13408	c.ctx_ = ctx
13409	return c
13410}
13411
13412// Header returns an http.Header that can be modified by the caller to
13413// add HTTP headers to the request.
13414func (c *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall) Header() http.Header {
13415	if c.header_ == nil {
13416		c.header_ = make(http.Header)
13417	}
13418	return c.header_
13419}
13420
13421func (c *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall) doRequest(alt string) (*http.Response, error) {
13422	reqHeaders := make(http.Header)
13423	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
13424	for k, v := range c.header_ {
13425		reqHeaders[k] = v
13426	}
13427	reqHeaders.Set("User-Agent", c.s.userAgent())
13428	var body io.Reader = nil
13429	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1attribute)
13430	if err != nil {
13431		return nil, err
13432	}
13433	reqHeaders.Set("Content-Type", "application/json")
13434	c.urlParams_.Set("alt", alt)
13435	c.urlParams_.Set("prettyPrint", "false")
13436	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
13437	urls += "?" + c.urlParams_.Encode()
13438	req, err := http.NewRequest("POST", urls, body)
13439	if err != nil {
13440		return nil, err
13441	}
13442	req.Header = reqHeaders
13443	googleapi.Expand(req.URL, map[string]string{
13444		"name": c.name,
13445	})
13446	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13447}
13448
13449// Do executes the "apigee.organizations.apiproducts.attributes.updateApiProductAttribute" call.
13450// Exactly one of *GoogleCloudApigeeV1Attribute or error will be
13451// non-nil. Any non-2xx status code is an error. Response headers are in
13452// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a
13453// response was returned at all) in error.(*googleapi.Error).Header. Use
13454// googleapi.IsNotModified to check whether the returned error was
13455// because http.StatusNotModified was returned.
13456func (c *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
13457	gensupport.SetOptions(c.urlParams_, opts...)
13458	res, err := c.doRequest("json")
13459	if res != nil && res.StatusCode == http.StatusNotModified {
13460		if res.Body != nil {
13461			res.Body.Close()
13462		}
13463		return nil, &googleapi.Error{
13464			Code:   res.StatusCode,
13465			Header: res.Header,
13466		}
13467	}
13468	if err != nil {
13469		return nil, err
13470	}
13471	defer googleapi.CloseBody(res)
13472	if err := googleapi.CheckResponse(res); err != nil {
13473		return nil, err
13474	}
13475	ret := &GoogleCloudApigeeV1Attribute{
13476		ServerResponse: googleapi.ServerResponse{
13477			Header:         res.Header,
13478			HTTPStatusCode: res.StatusCode,
13479		},
13480	}
13481	target := &ret
13482	if err := gensupport.DecodeResponse(target, res); err != nil {
13483		return nil, err
13484	}
13485	return ret, nil
13486	// {
13487	//   "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.",
13488	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}/attributes/{attributesId}",
13489	//   "httpMethod": "POST",
13490	//   "id": "apigee.organizations.apiproducts.attributes.updateApiProductAttribute",
13491	//   "parameterOrder": [
13492	//     "name"
13493	//   ],
13494	//   "parameters": {
13495	//     "name": {
13496	//       "description": "Required. Name of the API product. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}`",
13497	//       "location": "path",
13498	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+/attributes/[^/]+$",
13499	//       "required": true,
13500	//       "type": "string"
13501	//     }
13502	//   },
13503	//   "path": "v1/{+name}",
13504	//   "request": {
13505	//     "$ref": "GoogleCloudApigeeV1Attribute"
13506	//   },
13507	//   "response": {
13508	//     "$ref": "GoogleCloudApigeeV1Attribute"
13509	//   },
13510	//   "scopes": [
13511	//     "https://www.googleapis.com/auth/cloud-platform"
13512	//   ]
13513	// }
13514
13515}
13516
13517// method id "apigee.organizations.apiproducts.rateplans.create":
13518
13519type OrganizationsApiproductsRateplansCreateCall struct {
13520	s                           *Service
13521	parent                      string
13522	googlecloudapigeev1rateplan *GoogleCloudApigeeV1RatePlan
13523	urlParams_                  gensupport.URLParams
13524	ctx_                        context.Context
13525	header_                     http.Header
13526}
13527
13528// Create: Create a rate plan that is associated with an API product in
13529// an organization. Using rate plans, API product owners can monetize
13530// their API products by configuring one or more of the following: -
13531// Billing frequency - Initial setup fees for using an API product -
13532// Payment funding model (postpaid only) - Fixed recurring or
13533// consumption-based charges for using an API product - Revenue sharing
13534// with developer partners An API product can have multiple rate plans
13535// associated with it but *only one* rate plan can be active at any
13536// point of time. **Note: From the developer's perspective, they
13537// purchase API products not rate plans.
13538//
13539// - parent: Name of the API product that is associated with the rate
13540//   plan. Use the following structure in your request:
13541//   `organizations/{org}/apiproducts/{apiproduct}`.
13542func (r *OrganizationsApiproductsRateplansService) Create(parent string, googlecloudapigeev1rateplan *GoogleCloudApigeeV1RatePlan) *OrganizationsApiproductsRateplansCreateCall {
13543	c := &OrganizationsApiproductsRateplansCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13544	c.parent = parent
13545	c.googlecloudapigeev1rateplan = googlecloudapigeev1rateplan
13546	return c
13547}
13548
13549// Fields allows partial responses to be retrieved. See
13550// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13551// for more information.
13552func (c *OrganizationsApiproductsRateplansCreateCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsRateplansCreateCall {
13553	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13554	return c
13555}
13556
13557// Context sets the context to be used in this call's Do method. Any
13558// pending HTTP request will be aborted if the provided context is
13559// canceled.
13560func (c *OrganizationsApiproductsRateplansCreateCall) Context(ctx context.Context) *OrganizationsApiproductsRateplansCreateCall {
13561	c.ctx_ = ctx
13562	return c
13563}
13564
13565// Header returns an http.Header that can be modified by the caller to
13566// add HTTP headers to the request.
13567func (c *OrganizationsApiproductsRateplansCreateCall) Header() http.Header {
13568	if c.header_ == nil {
13569		c.header_ = make(http.Header)
13570	}
13571	return c.header_
13572}
13573
13574func (c *OrganizationsApiproductsRateplansCreateCall) doRequest(alt string) (*http.Response, error) {
13575	reqHeaders := make(http.Header)
13576	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
13577	for k, v := range c.header_ {
13578		reqHeaders[k] = v
13579	}
13580	reqHeaders.Set("User-Agent", c.s.userAgent())
13581	var body io.Reader = nil
13582	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1rateplan)
13583	if err != nil {
13584		return nil, err
13585	}
13586	reqHeaders.Set("Content-Type", "application/json")
13587	c.urlParams_.Set("alt", alt)
13588	c.urlParams_.Set("prettyPrint", "false")
13589	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/rateplans")
13590	urls += "?" + c.urlParams_.Encode()
13591	req, err := http.NewRequest("POST", urls, body)
13592	if err != nil {
13593		return nil, err
13594	}
13595	req.Header = reqHeaders
13596	googleapi.Expand(req.URL, map[string]string{
13597		"parent": c.parent,
13598	})
13599	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13600}
13601
13602// Do executes the "apigee.organizations.apiproducts.rateplans.create" call.
13603// Exactly one of *GoogleCloudApigeeV1RatePlan or error will be non-nil.
13604// Any non-2xx status code is an error. Response headers are in either
13605// *GoogleCloudApigeeV1RatePlan.ServerResponse.Header or (if a response
13606// was returned at all) in error.(*googleapi.Error).Header. Use
13607// googleapi.IsNotModified to check whether the returned error was
13608// because http.StatusNotModified was returned.
13609func (c *OrganizationsApiproductsRateplansCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1RatePlan, error) {
13610	gensupport.SetOptions(c.urlParams_, opts...)
13611	res, err := c.doRequest("json")
13612	if res != nil && res.StatusCode == http.StatusNotModified {
13613		if res.Body != nil {
13614			res.Body.Close()
13615		}
13616		return nil, &googleapi.Error{
13617			Code:   res.StatusCode,
13618			Header: res.Header,
13619		}
13620	}
13621	if err != nil {
13622		return nil, err
13623	}
13624	defer googleapi.CloseBody(res)
13625	if err := googleapi.CheckResponse(res); err != nil {
13626		return nil, err
13627	}
13628	ret := &GoogleCloudApigeeV1RatePlan{
13629		ServerResponse: googleapi.ServerResponse{
13630			Header:         res.Header,
13631			HTTPStatusCode: res.StatusCode,
13632		},
13633	}
13634	target := &ret
13635	if err := gensupport.DecodeResponse(target, res); err != nil {
13636		return nil, err
13637	}
13638	return ret, nil
13639	// {
13640	//   "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.",
13641	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}/rateplans",
13642	//   "httpMethod": "POST",
13643	//   "id": "apigee.organizations.apiproducts.rateplans.create",
13644	//   "parameterOrder": [
13645	//     "parent"
13646	//   ],
13647	//   "parameters": {
13648	//     "parent": {
13649	//       "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}`",
13650	//       "location": "path",
13651	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+$",
13652	//       "required": true,
13653	//       "type": "string"
13654	//     }
13655	//   },
13656	//   "path": "v1/{+parent}/rateplans",
13657	//   "request": {
13658	//     "$ref": "GoogleCloudApigeeV1RatePlan"
13659	//   },
13660	//   "response": {
13661	//     "$ref": "GoogleCloudApigeeV1RatePlan"
13662	//   },
13663	//   "scopes": [
13664	//     "https://www.googleapis.com/auth/cloud-platform"
13665	//   ]
13666	// }
13667
13668}
13669
13670// method id "apigee.organizations.apiproducts.rateplans.delete":
13671
13672type OrganizationsApiproductsRateplansDeleteCall struct {
13673	s          *Service
13674	name       string
13675	urlParams_ gensupport.URLParams
13676	ctx_       context.Context
13677	header_    http.Header
13678}
13679
13680// Delete: Deletes a rate plan.
13681//
13682// - name: ID of the rate plan. Use the following structure in your
13683//   request:
13684//   `organizations/{org}/apiproducts/{apiproduct}/rateplans/{rateplan}`.
13685func (r *OrganizationsApiproductsRateplansService) Delete(name string) *OrganizationsApiproductsRateplansDeleteCall {
13686	c := &OrganizationsApiproductsRateplansDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13687	c.name = name
13688	return c
13689}
13690
13691// Fields allows partial responses to be retrieved. See
13692// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13693// for more information.
13694func (c *OrganizationsApiproductsRateplansDeleteCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsRateplansDeleteCall {
13695	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13696	return c
13697}
13698
13699// Context sets the context to be used in this call's Do method. Any
13700// pending HTTP request will be aborted if the provided context is
13701// canceled.
13702func (c *OrganizationsApiproductsRateplansDeleteCall) Context(ctx context.Context) *OrganizationsApiproductsRateplansDeleteCall {
13703	c.ctx_ = ctx
13704	return c
13705}
13706
13707// Header returns an http.Header that can be modified by the caller to
13708// add HTTP headers to the request.
13709func (c *OrganizationsApiproductsRateplansDeleteCall) Header() http.Header {
13710	if c.header_ == nil {
13711		c.header_ = make(http.Header)
13712	}
13713	return c.header_
13714}
13715
13716func (c *OrganizationsApiproductsRateplansDeleteCall) doRequest(alt string) (*http.Response, error) {
13717	reqHeaders := make(http.Header)
13718	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
13719	for k, v := range c.header_ {
13720		reqHeaders[k] = v
13721	}
13722	reqHeaders.Set("User-Agent", c.s.userAgent())
13723	var body io.Reader = nil
13724	c.urlParams_.Set("alt", alt)
13725	c.urlParams_.Set("prettyPrint", "false")
13726	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
13727	urls += "?" + c.urlParams_.Encode()
13728	req, err := http.NewRequest("DELETE", urls, body)
13729	if err != nil {
13730		return nil, err
13731	}
13732	req.Header = reqHeaders
13733	googleapi.Expand(req.URL, map[string]string{
13734		"name": c.name,
13735	})
13736	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13737}
13738
13739// Do executes the "apigee.organizations.apiproducts.rateplans.delete" call.
13740// Exactly one of *GoogleCloudApigeeV1RatePlan or error will be non-nil.
13741// Any non-2xx status code is an error. Response headers are in either
13742// *GoogleCloudApigeeV1RatePlan.ServerResponse.Header or (if a response
13743// was returned at all) in error.(*googleapi.Error).Header. Use
13744// googleapi.IsNotModified to check whether the returned error was
13745// because http.StatusNotModified was returned.
13746func (c *OrganizationsApiproductsRateplansDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1RatePlan, error) {
13747	gensupport.SetOptions(c.urlParams_, opts...)
13748	res, err := c.doRequest("json")
13749	if res != nil && res.StatusCode == http.StatusNotModified {
13750		if res.Body != nil {
13751			res.Body.Close()
13752		}
13753		return nil, &googleapi.Error{
13754			Code:   res.StatusCode,
13755			Header: res.Header,
13756		}
13757	}
13758	if err != nil {
13759		return nil, err
13760	}
13761	defer googleapi.CloseBody(res)
13762	if err := googleapi.CheckResponse(res); err != nil {
13763		return nil, err
13764	}
13765	ret := &GoogleCloudApigeeV1RatePlan{
13766		ServerResponse: googleapi.ServerResponse{
13767			Header:         res.Header,
13768			HTTPStatusCode: res.StatusCode,
13769		},
13770	}
13771	target := &ret
13772	if err := gensupport.DecodeResponse(target, res); err != nil {
13773		return nil, err
13774	}
13775	return ret, nil
13776	// {
13777	//   "description": "Deletes a rate plan.",
13778	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}/rateplans/{rateplansId}",
13779	//   "httpMethod": "DELETE",
13780	//   "id": "apigee.organizations.apiproducts.rateplans.delete",
13781	//   "parameterOrder": [
13782	//     "name"
13783	//   ],
13784	//   "parameters": {
13785	//     "name": {
13786	//       "description": "Required. ID of the rate plan. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}/rateplans/{rateplan}`",
13787	//       "location": "path",
13788	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+/rateplans/[^/]+$",
13789	//       "required": true,
13790	//       "type": "string"
13791	//     }
13792	//   },
13793	//   "path": "v1/{+name}",
13794	//   "response": {
13795	//     "$ref": "GoogleCloudApigeeV1RatePlan"
13796	//   },
13797	//   "scopes": [
13798	//     "https://www.googleapis.com/auth/cloud-platform"
13799	//   ]
13800	// }
13801
13802}
13803
13804// method id "apigee.organizations.apiproducts.rateplans.get":
13805
13806type OrganizationsApiproductsRateplansGetCall struct {
13807	s            *Service
13808	name         string
13809	urlParams_   gensupport.URLParams
13810	ifNoneMatch_ string
13811	ctx_         context.Context
13812	header_      http.Header
13813}
13814
13815// Get: Gets the details of a rate plan.
13816//
13817// - name: Name of the rate plan. Use the following structure in your
13818//   request:
13819//   `organizations/{org}/apiproducts/{apiproduct}/rateplans/{rateplan}`.
13820func (r *OrganizationsApiproductsRateplansService) Get(name string) *OrganizationsApiproductsRateplansGetCall {
13821	c := &OrganizationsApiproductsRateplansGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13822	c.name = name
13823	return c
13824}
13825
13826// Fields allows partial responses to be retrieved. See
13827// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13828// for more information.
13829func (c *OrganizationsApiproductsRateplansGetCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsRateplansGetCall {
13830	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13831	return c
13832}
13833
13834// IfNoneMatch sets the optional parameter which makes the operation
13835// fail if the object's ETag matches the given value. This is useful for
13836// getting updates only after the object has changed since the last
13837// request. Use googleapi.IsNotModified to check whether the response
13838// error from Do is the result of In-None-Match.
13839func (c *OrganizationsApiproductsRateplansGetCall) IfNoneMatch(entityTag string) *OrganizationsApiproductsRateplansGetCall {
13840	c.ifNoneMatch_ = entityTag
13841	return c
13842}
13843
13844// Context sets the context to be used in this call's Do method. Any
13845// pending HTTP request will be aborted if the provided context is
13846// canceled.
13847func (c *OrganizationsApiproductsRateplansGetCall) Context(ctx context.Context) *OrganizationsApiproductsRateplansGetCall {
13848	c.ctx_ = ctx
13849	return c
13850}
13851
13852// Header returns an http.Header that can be modified by the caller to
13853// add HTTP headers to the request.
13854func (c *OrganizationsApiproductsRateplansGetCall) Header() http.Header {
13855	if c.header_ == nil {
13856		c.header_ = make(http.Header)
13857	}
13858	return c.header_
13859}
13860
13861func (c *OrganizationsApiproductsRateplansGetCall) doRequest(alt string) (*http.Response, error) {
13862	reqHeaders := make(http.Header)
13863	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
13864	for k, v := range c.header_ {
13865		reqHeaders[k] = v
13866	}
13867	reqHeaders.Set("User-Agent", c.s.userAgent())
13868	if c.ifNoneMatch_ != "" {
13869		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13870	}
13871	var body io.Reader = nil
13872	c.urlParams_.Set("alt", alt)
13873	c.urlParams_.Set("prettyPrint", "false")
13874	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
13875	urls += "?" + c.urlParams_.Encode()
13876	req, err := http.NewRequest("GET", urls, body)
13877	if err != nil {
13878		return nil, err
13879	}
13880	req.Header = reqHeaders
13881	googleapi.Expand(req.URL, map[string]string{
13882		"name": c.name,
13883	})
13884	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13885}
13886
13887// Do executes the "apigee.organizations.apiproducts.rateplans.get" call.
13888// Exactly one of *GoogleCloudApigeeV1RatePlan or error will be non-nil.
13889// Any non-2xx status code is an error. Response headers are in either
13890// *GoogleCloudApigeeV1RatePlan.ServerResponse.Header or (if a response
13891// was returned at all) in error.(*googleapi.Error).Header. Use
13892// googleapi.IsNotModified to check whether the returned error was
13893// because http.StatusNotModified was returned.
13894func (c *OrganizationsApiproductsRateplansGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1RatePlan, error) {
13895	gensupport.SetOptions(c.urlParams_, opts...)
13896	res, err := c.doRequest("json")
13897	if res != nil && res.StatusCode == http.StatusNotModified {
13898		if res.Body != nil {
13899			res.Body.Close()
13900		}
13901		return nil, &googleapi.Error{
13902			Code:   res.StatusCode,
13903			Header: res.Header,
13904		}
13905	}
13906	if err != nil {
13907		return nil, err
13908	}
13909	defer googleapi.CloseBody(res)
13910	if err := googleapi.CheckResponse(res); err != nil {
13911		return nil, err
13912	}
13913	ret := &GoogleCloudApigeeV1RatePlan{
13914		ServerResponse: googleapi.ServerResponse{
13915			Header:         res.Header,
13916			HTTPStatusCode: res.StatusCode,
13917		},
13918	}
13919	target := &ret
13920	if err := gensupport.DecodeResponse(target, res); err != nil {
13921		return nil, err
13922	}
13923	return ret, nil
13924	// {
13925	//   "description": "Gets the details of a rate plan.",
13926	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}/rateplans/{rateplansId}",
13927	//   "httpMethod": "GET",
13928	//   "id": "apigee.organizations.apiproducts.rateplans.get",
13929	//   "parameterOrder": [
13930	//     "name"
13931	//   ],
13932	//   "parameters": {
13933	//     "name": {
13934	//       "description": "Required. Name of the rate plan. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}/rateplans/{rateplan}`",
13935	//       "location": "path",
13936	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+/rateplans/[^/]+$",
13937	//       "required": true,
13938	//       "type": "string"
13939	//     }
13940	//   },
13941	//   "path": "v1/{+name}",
13942	//   "response": {
13943	//     "$ref": "GoogleCloudApigeeV1RatePlan"
13944	//   },
13945	//   "scopes": [
13946	//     "https://www.googleapis.com/auth/cloud-platform"
13947	//   ]
13948	// }
13949
13950}
13951
13952// method id "apigee.organizations.apiproducts.rateplans.list":
13953
13954type OrganizationsApiproductsRateplansListCall struct {
13955	s            *Service
13956	parent       string
13957	urlParams_   gensupport.URLParams
13958	ifNoneMatch_ string
13959	ctx_         context.Context
13960	header_      http.Header
13961}
13962
13963// List: Lists all the rate plans for an API product.
13964//
13965// - parent: Name of the API product. Use the following structure in
13966//   your request: `organizations/{org}/apiproducts/{apiproduct}` Use
13967//   `organizations/{org}/apiproducts/-` to return rate plans for all
13968//   API products within the organization.
13969func (r *OrganizationsApiproductsRateplansService) List(parent string) *OrganizationsApiproductsRateplansListCall {
13970	c := &OrganizationsApiproductsRateplansListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13971	c.parent = parent
13972	return c
13973}
13974
13975// Count sets the optional parameter "count": Number of rate plans to
13976// return in the API call. Use with the `startKey` parameter to provide
13977// more targeted filtering. The maximum limit is 1000. Defaults to 100.
13978func (c *OrganizationsApiproductsRateplansListCall) Count(count int64) *OrganizationsApiproductsRateplansListCall {
13979	c.urlParams_.Set("count", fmt.Sprint(count))
13980	return c
13981}
13982
13983// Expand sets the optional parameter "expand": Flag that specifies
13984// whether to expand the results. Set to `true` to get expanded details
13985// about each API. Defaults to `false`.
13986func (c *OrganizationsApiproductsRateplansListCall) Expand(expand bool) *OrganizationsApiproductsRateplansListCall {
13987	c.urlParams_.Set("expand", fmt.Sprint(expand))
13988	return c
13989}
13990
13991// OrderBy sets the optional parameter "orderBy": Name of the attribute
13992// used for sorting. Valid values include: * `name`: Name of the rate
13993// plan. * `state`: State of the rate plan (`DRAFT`, `PUBLISHED`). *
13994// `startTime`: Time when the rate plan becomes active. * `endTime`:
13995// Time when the rate plan expires. **Note**: Not supported by Apigee at
13996// this time.
13997func (c *OrganizationsApiproductsRateplansListCall) OrderBy(orderBy string) *OrganizationsApiproductsRateplansListCall {
13998	c.urlParams_.Set("orderBy", orderBy)
13999	return c
14000}
14001
14002// StartKey sets the optional parameter "startKey": Name of the rate
14003// plan from which to start displaying the list of rate plans. If
14004// omitted, the list starts from the first item. For example, to view
14005// the rate plans from 51-150, set the value of `startKey` to the name
14006// of the 51st rate plan and set the value of `count` to 100.
14007func (c *OrganizationsApiproductsRateplansListCall) StartKey(startKey string) *OrganizationsApiproductsRateplansListCall {
14008	c.urlParams_.Set("startKey", startKey)
14009	return c
14010}
14011
14012// State sets the optional parameter "state": State of the rate plans
14013// (`DRAFT`, `PUBLISHED`) that you want to display.
14014//
14015// Possible values:
14016//   "STATE_UNSPECIFIED" - State of the rate plan is not specified.
14017//   "DRAFT" - Rate plan is in draft mode and only visible to API
14018// providers.
14019//   "PUBLISHED" - Rate plan is published and will become visible to
14020// developers for the configured duration (between `startTime` and
14021// `endTime`).
14022func (c *OrganizationsApiproductsRateplansListCall) State(state string) *OrganizationsApiproductsRateplansListCall {
14023	c.urlParams_.Set("state", state)
14024	return c
14025}
14026
14027// Fields allows partial responses to be retrieved. See
14028// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
14029// for more information.
14030func (c *OrganizationsApiproductsRateplansListCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsRateplansListCall {
14031	c.urlParams_.Set("fields", googleapi.CombineFields(s))
14032	return c
14033}
14034
14035// IfNoneMatch sets the optional parameter which makes the operation
14036// fail if the object's ETag matches the given value. This is useful for
14037// getting updates only after the object has changed since the last
14038// request. Use googleapi.IsNotModified to check whether the response
14039// error from Do is the result of In-None-Match.
14040func (c *OrganizationsApiproductsRateplansListCall) IfNoneMatch(entityTag string) *OrganizationsApiproductsRateplansListCall {
14041	c.ifNoneMatch_ = entityTag
14042	return c
14043}
14044
14045// Context sets the context to be used in this call's Do method. Any
14046// pending HTTP request will be aborted if the provided context is
14047// canceled.
14048func (c *OrganizationsApiproductsRateplansListCall) Context(ctx context.Context) *OrganizationsApiproductsRateplansListCall {
14049	c.ctx_ = ctx
14050	return c
14051}
14052
14053// Header returns an http.Header that can be modified by the caller to
14054// add HTTP headers to the request.
14055func (c *OrganizationsApiproductsRateplansListCall) Header() http.Header {
14056	if c.header_ == nil {
14057		c.header_ = make(http.Header)
14058	}
14059	return c.header_
14060}
14061
14062func (c *OrganizationsApiproductsRateplansListCall) doRequest(alt string) (*http.Response, error) {
14063	reqHeaders := make(http.Header)
14064	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
14065	for k, v := range c.header_ {
14066		reqHeaders[k] = v
14067	}
14068	reqHeaders.Set("User-Agent", c.s.userAgent())
14069	if c.ifNoneMatch_ != "" {
14070		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14071	}
14072	var body io.Reader = nil
14073	c.urlParams_.Set("alt", alt)
14074	c.urlParams_.Set("prettyPrint", "false")
14075	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/rateplans")
14076	urls += "?" + c.urlParams_.Encode()
14077	req, err := http.NewRequest("GET", urls, body)
14078	if err != nil {
14079		return nil, err
14080	}
14081	req.Header = reqHeaders
14082	googleapi.Expand(req.URL, map[string]string{
14083		"parent": c.parent,
14084	})
14085	return gensupport.SendRequest(c.ctx_, c.s.client, req)
14086}
14087
14088// Do executes the "apigee.organizations.apiproducts.rateplans.list" call.
14089// Exactly one of *GoogleCloudApigeeV1ListRatePlansResponse or error
14090// will be non-nil. Any non-2xx status code is an error. Response
14091// headers are in either
14092// *GoogleCloudApigeeV1ListRatePlansResponse.ServerResponse.Header or
14093// (if a response was returned at all) in
14094// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
14095// whether the returned error was because http.StatusNotModified was
14096// returned.
14097func (c *OrganizationsApiproductsRateplansListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListRatePlansResponse, error) {
14098	gensupport.SetOptions(c.urlParams_, opts...)
14099	res, err := c.doRequest("json")
14100	if res != nil && res.StatusCode == http.StatusNotModified {
14101		if res.Body != nil {
14102			res.Body.Close()
14103		}
14104		return nil, &googleapi.Error{
14105			Code:   res.StatusCode,
14106			Header: res.Header,
14107		}
14108	}
14109	if err != nil {
14110		return nil, err
14111	}
14112	defer googleapi.CloseBody(res)
14113	if err := googleapi.CheckResponse(res); err != nil {
14114		return nil, err
14115	}
14116	ret := &GoogleCloudApigeeV1ListRatePlansResponse{
14117		ServerResponse: googleapi.ServerResponse{
14118			Header:         res.Header,
14119			HTTPStatusCode: res.StatusCode,
14120		},
14121	}
14122	target := &ret
14123	if err := gensupport.DecodeResponse(target, res); err != nil {
14124		return nil, err
14125	}
14126	return ret, nil
14127	// {
14128	//   "description": "Lists all the rate plans for an API product.",
14129	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}/rateplans",
14130	//   "httpMethod": "GET",
14131	//   "id": "apigee.organizations.apiproducts.rateplans.list",
14132	//   "parameterOrder": [
14133	//     "parent"
14134	//   ],
14135	//   "parameters": {
14136	//     "count": {
14137	//       "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.",
14138	//       "format": "int32",
14139	//       "location": "query",
14140	//       "type": "integer"
14141	//     },
14142	//     "expand": {
14143	//       "description": "Flag that specifies whether to expand the results. Set to `true` to get expanded details about each API. Defaults to `false`.",
14144	//       "location": "query",
14145	//       "type": "boolean"
14146	//     },
14147	//     "orderBy": {
14148	//       "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.",
14149	//       "location": "query",
14150	//       "type": "string"
14151	//     },
14152	//     "parent": {
14153	//       "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.",
14154	//       "location": "path",
14155	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+$",
14156	//       "required": true,
14157	//       "type": "string"
14158	//     },
14159	//     "startKey": {
14160	//       "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.",
14161	//       "location": "query",
14162	//       "type": "string"
14163	//     },
14164	//     "state": {
14165	//       "description": "State of the rate plans (`DRAFT`, `PUBLISHED`) that you want to display.",
14166	//       "enum": [
14167	//         "STATE_UNSPECIFIED",
14168	//         "DRAFT",
14169	//         "PUBLISHED"
14170	//       ],
14171	//       "enumDescriptions": [
14172	//         "State of the rate plan is not specified.",
14173	//         "Rate plan is in draft mode and only visible to API providers.",
14174	//         "Rate plan is published and will become visible to developers for the configured duration (between `startTime` and `endTime`)."
14175	//       ],
14176	//       "location": "query",
14177	//       "type": "string"
14178	//     }
14179	//   },
14180	//   "path": "v1/{+parent}/rateplans",
14181	//   "response": {
14182	//     "$ref": "GoogleCloudApigeeV1ListRatePlansResponse"
14183	//   },
14184	//   "scopes": [
14185	//     "https://www.googleapis.com/auth/cloud-platform"
14186	//   ]
14187	// }
14188
14189}
14190
14191// method id "apigee.organizations.apiproducts.rateplans.update":
14192
14193type OrganizationsApiproductsRateplansUpdateCall struct {
14194	s                           *Service
14195	name                        string
14196	googlecloudapigeev1rateplan *GoogleCloudApigeeV1RatePlan
14197	urlParams_                  gensupport.URLParams
14198	ctx_                        context.Context
14199	header_                     http.Header
14200}
14201
14202// Update: Updates an existing rate plan.
14203//
14204// - name: Name of the rate plan. Use the following structure in your
14205//   request:
14206//   `organizations/{org}/apiproducts/{apiproduct}/rateplans/{rateplan}`.
14207func (r *OrganizationsApiproductsRateplansService) Update(name string, googlecloudapigeev1rateplan *GoogleCloudApigeeV1RatePlan) *OrganizationsApiproductsRateplansUpdateCall {
14208	c := &OrganizationsApiproductsRateplansUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14209	c.name = name
14210	c.googlecloudapigeev1rateplan = googlecloudapigeev1rateplan
14211	return c
14212}
14213
14214// Fields allows partial responses to be retrieved. See
14215// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
14216// for more information.
14217func (c *OrganizationsApiproductsRateplansUpdateCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsRateplansUpdateCall {
14218	c.urlParams_.Set("fields", googleapi.CombineFields(s))
14219	return c
14220}
14221
14222// Context sets the context to be used in this call's Do method. Any
14223// pending HTTP request will be aborted if the provided context is
14224// canceled.
14225func (c *OrganizationsApiproductsRateplansUpdateCall) Context(ctx context.Context) *OrganizationsApiproductsRateplansUpdateCall {
14226	c.ctx_ = ctx
14227	return c
14228}
14229
14230// Header returns an http.Header that can be modified by the caller to
14231// add HTTP headers to the request.
14232func (c *OrganizationsApiproductsRateplansUpdateCall) Header() http.Header {
14233	if c.header_ == nil {
14234		c.header_ = make(http.Header)
14235	}
14236	return c.header_
14237}
14238
14239func (c *OrganizationsApiproductsRateplansUpdateCall) doRequest(alt string) (*http.Response, error) {
14240	reqHeaders := make(http.Header)
14241	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
14242	for k, v := range c.header_ {
14243		reqHeaders[k] = v
14244	}
14245	reqHeaders.Set("User-Agent", c.s.userAgent())
14246	var body io.Reader = nil
14247	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1rateplan)
14248	if err != nil {
14249		return nil, err
14250	}
14251	reqHeaders.Set("Content-Type", "application/json")
14252	c.urlParams_.Set("alt", alt)
14253	c.urlParams_.Set("prettyPrint", "false")
14254	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
14255	urls += "?" + c.urlParams_.Encode()
14256	req, err := http.NewRequest("PUT", urls, body)
14257	if err != nil {
14258		return nil, err
14259	}
14260	req.Header = reqHeaders
14261	googleapi.Expand(req.URL, map[string]string{
14262		"name": c.name,
14263	})
14264	return gensupport.SendRequest(c.ctx_, c.s.client, req)
14265}
14266
14267// Do executes the "apigee.organizations.apiproducts.rateplans.update" call.
14268// Exactly one of *GoogleCloudApigeeV1RatePlan or error will be non-nil.
14269// Any non-2xx status code is an error. Response headers are in either
14270// *GoogleCloudApigeeV1RatePlan.ServerResponse.Header or (if a response
14271// was returned at all) in error.(*googleapi.Error).Header. Use
14272// googleapi.IsNotModified to check whether the returned error was
14273// because http.StatusNotModified was returned.
14274func (c *OrganizationsApiproductsRateplansUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1RatePlan, error) {
14275	gensupport.SetOptions(c.urlParams_, opts...)
14276	res, err := c.doRequest("json")
14277	if res != nil && res.StatusCode == http.StatusNotModified {
14278		if res.Body != nil {
14279			res.Body.Close()
14280		}
14281		return nil, &googleapi.Error{
14282			Code:   res.StatusCode,
14283			Header: res.Header,
14284		}
14285	}
14286	if err != nil {
14287		return nil, err
14288	}
14289	defer googleapi.CloseBody(res)
14290	if err := googleapi.CheckResponse(res); err != nil {
14291		return nil, err
14292	}
14293	ret := &GoogleCloudApigeeV1RatePlan{
14294		ServerResponse: googleapi.ServerResponse{
14295			Header:         res.Header,
14296			HTTPStatusCode: res.StatusCode,
14297		},
14298	}
14299	target := &ret
14300	if err := gensupport.DecodeResponse(target, res); err != nil {
14301		return nil, err
14302	}
14303	return ret, nil
14304	// {
14305	//   "description": "Updates an existing rate plan.",
14306	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}/rateplans/{rateplansId}",
14307	//   "httpMethod": "PUT",
14308	//   "id": "apigee.organizations.apiproducts.rateplans.update",
14309	//   "parameterOrder": [
14310	//     "name"
14311	//   ],
14312	//   "parameters": {
14313	//     "name": {
14314	//       "description": "Required. Name of the rate plan. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}/rateplans/{rateplan}`",
14315	//       "location": "path",
14316	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+/rateplans/[^/]+$",
14317	//       "required": true,
14318	//       "type": "string"
14319	//     }
14320	//   },
14321	//   "path": "v1/{+name}",
14322	//   "request": {
14323	//     "$ref": "GoogleCloudApigeeV1RatePlan"
14324	//   },
14325	//   "response": {
14326	//     "$ref": "GoogleCloudApigeeV1RatePlan"
14327	//   },
14328	//   "scopes": [
14329	//     "https://www.googleapis.com/auth/cloud-platform"
14330	//   ]
14331	// }
14332
14333}
14334
14335// method id "apigee.organizations.apis.create":
14336
14337type OrganizationsApisCreateCall struct {
14338	s                 *Service
14339	parent            string
14340	googleapihttpbody *GoogleApiHttpBody
14341	urlParams_        gensupport.URLParams
14342	ctx_              context.Context
14343	header_           http.Header
14344}
14345
14346// Create: Creates an API proxy. The API proxy created will not be
14347// accessible at runtime until it is deployed to an environment. Create
14348// a new API proxy by setting the `name` query parameter to the name of
14349// the API proxy. Import an API proxy configuration bundle stored in zip
14350// format on your local machine to your organization by doing the
14351// following: * Set the `name` query parameter to the name of the API
14352// proxy. * Set the `action` query parameter to `import`. * Set the
14353// `Content-Type` header to `multipart/form-data`. * Pass as a file the
14354// name of API proxy configuration bundle stored in zip format on your
14355// local machine using the `file` form field. **Note**: To validate the
14356// API proxy configuration bundle only without importing it, set the
14357// `action` query parameter to `validate`. When importing an API proxy
14358// configuration bundle, if the API proxy does not exist, it will be
14359// created. If the API proxy exists, then a new revision is created.
14360// Invalid API proxy configurations are rejected, and a list of
14361// validation errors is returned to the client.
14362//
14363// - parent: Name of the organization in the following format:
14364//   `organizations/{org}`.
14365func (r *OrganizationsApisService) Create(parent string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsApisCreateCall {
14366	c := &OrganizationsApisCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14367	c.parent = parent
14368	c.googleapihttpbody = googleapihttpbody
14369	return c
14370}
14371
14372// Action sets the optional parameter "action": Action to perform when
14373// importing an API proxy configuration bundle. Set this parameter to
14374// one of the following values: * `import` to import the API proxy
14375// configuration bundle. * `validate` to validate the API proxy
14376// configuration bundle without importing it.
14377func (c *OrganizationsApisCreateCall) Action(action string) *OrganizationsApisCreateCall {
14378	c.urlParams_.Set("action", action)
14379	return c
14380}
14381
14382// Name sets the optional parameter "name": Name of the API proxy.
14383// Restrict the characters used to: A-Za-z0-9._-
14384func (c *OrganizationsApisCreateCall) Name(name string) *OrganizationsApisCreateCall {
14385	c.urlParams_.Set("name", name)
14386	return c
14387}
14388
14389// Validate sets the optional parameter "validate": Ignored. All uploads
14390// are validated regardless of the value of this field. Maintained for
14391// compatibility with Apigee Edge API.
14392func (c *OrganizationsApisCreateCall) Validate(validate bool) *OrganizationsApisCreateCall {
14393	c.urlParams_.Set("validate", fmt.Sprint(validate))
14394	return c
14395}
14396
14397// Fields allows partial responses to be retrieved. See
14398// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
14399// for more information.
14400func (c *OrganizationsApisCreateCall) Fields(s ...googleapi.Field) *OrganizationsApisCreateCall {
14401	c.urlParams_.Set("fields", googleapi.CombineFields(s))
14402	return c
14403}
14404
14405// Context sets the context to be used in this call's Do method. Any
14406// pending HTTP request will be aborted if the provided context is
14407// canceled.
14408func (c *OrganizationsApisCreateCall) Context(ctx context.Context) *OrganizationsApisCreateCall {
14409	c.ctx_ = ctx
14410	return c
14411}
14412
14413// Header returns an http.Header that can be modified by the caller to
14414// add HTTP headers to the request.
14415func (c *OrganizationsApisCreateCall) Header() http.Header {
14416	if c.header_ == nil {
14417		c.header_ = make(http.Header)
14418	}
14419	return c.header_
14420}
14421
14422func (c *OrganizationsApisCreateCall) doRequest(alt string) (*http.Response, error) {
14423	reqHeaders := make(http.Header)
14424	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
14425	for k, v := range c.header_ {
14426		reqHeaders[k] = v
14427	}
14428	reqHeaders.Set("User-Agent", c.s.userAgent())
14429	var body io.Reader = nil
14430	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
14431	if err != nil {
14432		return nil, err
14433	}
14434	reqHeaders.Set("Content-Type", "application/json")
14435	c.urlParams_.Set("alt", alt)
14436	c.urlParams_.Set("prettyPrint", "false")
14437	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apis")
14438	urls += "?" + c.urlParams_.Encode()
14439	req, err := http.NewRequest("POST", urls, body)
14440	if err != nil {
14441		return nil, err
14442	}
14443	req.Header = reqHeaders
14444	googleapi.Expand(req.URL, map[string]string{
14445		"parent": c.parent,
14446	})
14447	return gensupport.SendRequest(c.ctx_, c.s.client, req)
14448}
14449
14450// Do executes the "apigee.organizations.apis.create" call.
14451// Exactly one of *GoogleCloudApigeeV1ApiProxyRevision or error will be
14452// non-nil. Any non-2xx status code is an error. Response headers are in
14453// either *GoogleCloudApigeeV1ApiProxyRevision.ServerResponse.Header or
14454// (if a response was returned at all) in
14455// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
14456// whether the returned error was because http.StatusNotModified was
14457// returned.
14458func (c *OrganizationsApisCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProxyRevision, error) {
14459	gensupport.SetOptions(c.urlParams_, opts...)
14460	res, err := c.doRequest("json")
14461	if res != nil && res.StatusCode == http.StatusNotModified {
14462		if res.Body != nil {
14463			res.Body.Close()
14464		}
14465		return nil, &googleapi.Error{
14466			Code:   res.StatusCode,
14467			Header: res.Header,
14468		}
14469	}
14470	if err != nil {
14471		return nil, err
14472	}
14473	defer googleapi.CloseBody(res)
14474	if err := googleapi.CheckResponse(res); err != nil {
14475		return nil, err
14476	}
14477	ret := &GoogleCloudApigeeV1ApiProxyRevision{
14478		ServerResponse: googleapi.ServerResponse{
14479			Header:         res.Header,
14480			HTTPStatusCode: res.StatusCode,
14481		},
14482	}
14483	target := &ret
14484	if err := gensupport.DecodeResponse(target, res); err != nil {
14485		return nil, err
14486	}
14487	return ret, nil
14488	// {
14489	//   "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.",
14490	//   "flatPath": "v1/organizations/{organizationsId}/apis",
14491	//   "httpMethod": "POST",
14492	//   "id": "apigee.organizations.apis.create",
14493	//   "parameterOrder": [
14494	//     "parent"
14495	//   ],
14496	//   "parameters": {
14497	//     "action": {
14498	//       "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.",
14499	//       "location": "query",
14500	//       "type": "string"
14501	//     },
14502	//     "name": {
14503	//       "description": "Name of the API proxy. Restrict the characters used to: A-Za-z0-9._-",
14504	//       "location": "query",
14505	//       "type": "string"
14506	//     },
14507	//     "parent": {
14508	//       "description": "Required. Name of the organization in the following format: `organizations/{org}`",
14509	//       "location": "path",
14510	//       "pattern": "^organizations/[^/]+$",
14511	//       "required": true,
14512	//       "type": "string"
14513	//     },
14514	//     "validate": {
14515	//       "description": "Ignored. All uploads are validated regardless of the value of this field. Maintained for compatibility with Apigee Edge API.",
14516	//       "location": "query",
14517	//       "type": "boolean"
14518	//     }
14519	//   },
14520	//   "path": "v1/{+parent}/apis",
14521	//   "request": {
14522	//     "$ref": "GoogleApiHttpBody"
14523	//   },
14524	//   "response": {
14525	//     "$ref": "GoogleCloudApigeeV1ApiProxyRevision"
14526	//   },
14527	//   "scopes": [
14528	//     "https://www.googleapis.com/auth/cloud-platform"
14529	//   ]
14530	// }
14531
14532}
14533
14534// method id "apigee.organizations.apis.delete":
14535
14536type OrganizationsApisDeleteCall struct {
14537	s          *Service
14538	name       string
14539	urlParams_ gensupport.URLParams
14540	ctx_       context.Context
14541	header_    http.Header
14542}
14543
14544// Delete: Deletes an API proxy and all associated endpoints, policies,
14545// resources, and revisions. The API proxy must be undeployed before you
14546// can delete it.
14547//
14548// - name: Name of the API proxy in the following format:
14549//   `organizations/{org}/apis/{api}`.
14550func (r *OrganizationsApisService) Delete(name string) *OrganizationsApisDeleteCall {
14551	c := &OrganizationsApisDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14552	c.name = name
14553	return c
14554}
14555
14556// Fields allows partial responses to be retrieved. See
14557// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
14558// for more information.
14559func (c *OrganizationsApisDeleteCall) Fields(s ...googleapi.Field) *OrganizationsApisDeleteCall {
14560	c.urlParams_.Set("fields", googleapi.CombineFields(s))
14561	return c
14562}
14563
14564// Context sets the context to be used in this call's Do method. Any
14565// pending HTTP request will be aborted if the provided context is
14566// canceled.
14567func (c *OrganizationsApisDeleteCall) Context(ctx context.Context) *OrganizationsApisDeleteCall {
14568	c.ctx_ = ctx
14569	return c
14570}
14571
14572// Header returns an http.Header that can be modified by the caller to
14573// add HTTP headers to the request.
14574func (c *OrganizationsApisDeleteCall) Header() http.Header {
14575	if c.header_ == nil {
14576		c.header_ = make(http.Header)
14577	}
14578	return c.header_
14579}
14580
14581func (c *OrganizationsApisDeleteCall) doRequest(alt string) (*http.Response, error) {
14582	reqHeaders := make(http.Header)
14583	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
14584	for k, v := range c.header_ {
14585		reqHeaders[k] = v
14586	}
14587	reqHeaders.Set("User-Agent", c.s.userAgent())
14588	var body io.Reader = nil
14589	c.urlParams_.Set("alt", alt)
14590	c.urlParams_.Set("prettyPrint", "false")
14591	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
14592	urls += "?" + c.urlParams_.Encode()
14593	req, err := http.NewRequest("DELETE", urls, body)
14594	if err != nil {
14595		return nil, err
14596	}
14597	req.Header = reqHeaders
14598	googleapi.Expand(req.URL, map[string]string{
14599		"name": c.name,
14600	})
14601	return gensupport.SendRequest(c.ctx_, c.s.client, req)
14602}
14603
14604// Do executes the "apigee.organizations.apis.delete" call.
14605// Exactly one of *GoogleCloudApigeeV1ApiProxy or error will be non-nil.
14606// Any non-2xx status code is an error. Response headers are in either
14607// *GoogleCloudApigeeV1ApiProxy.ServerResponse.Header or (if a response
14608// was returned at all) in error.(*googleapi.Error).Header. Use
14609// googleapi.IsNotModified to check whether the returned error was
14610// because http.StatusNotModified was returned.
14611func (c *OrganizationsApisDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProxy, error) {
14612	gensupport.SetOptions(c.urlParams_, opts...)
14613	res, err := c.doRequest("json")
14614	if res != nil && res.StatusCode == http.StatusNotModified {
14615		if res.Body != nil {
14616			res.Body.Close()
14617		}
14618		return nil, &googleapi.Error{
14619			Code:   res.StatusCode,
14620			Header: res.Header,
14621		}
14622	}
14623	if err != nil {
14624		return nil, err
14625	}
14626	defer googleapi.CloseBody(res)
14627	if err := googleapi.CheckResponse(res); err != nil {
14628		return nil, err
14629	}
14630	ret := &GoogleCloudApigeeV1ApiProxy{
14631		ServerResponse: googleapi.ServerResponse{
14632			Header:         res.Header,
14633			HTTPStatusCode: res.StatusCode,
14634		},
14635	}
14636	target := &ret
14637	if err := gensupport.DecodeResponse(target, res); err != nil {
14638		return nil, err
14639	}
14640	return ret, nil
14641	// {
14642	//   "description": "Deletes an API proxy and all associated endpoints, policies, resources, and revisions. The API proxy must be undeployed before you can delete it.",
14643	//   "flatPath": "v1/organizations/{organizationsId}/apis/{apisId}",
14644	//   "httpMethod": "DELETE",
14645	//   "id": "apigee.organizations.apis.delete",
14646	//   "parameterOrder": [
14647	//     "name"
14648	//   ],
14649	//   "parameters": {
14650	//     "name": {
14651	//       "description": "Required. Name of the API proxy in the following format: `organizations/{org}/apis/{api}`",
14652	//       "location": "path",
14653	//       "pattern": "^organizations/[^/]+/apis/[^/]+$",
14654	//       "required": true,
14655	//       "type": "string"
14656	//     }
14657	//   },
14658	//   "path": "v1/{+name}",
14659	//   "response": {
14660	//     "$ref": "GoogleCloudApigeeV1ApiProxy"
14661	//   },
14662	//   "scopes": [
14663	//     "https://www.googleapis.com/auth/cloud-platform"
14664	//   ]
14665	// }
14666
14667}
14668
14669// method id "apigee.organizations.apis.get":
14670
14671type OrganizationsApisGetCall struct {
14672	s            *Service
14673	name         string
14674	urlParams_   gensupport.URLParams
14675	ifNoneMatch_ string
14676	ctx_         context.Context
14677	header_      http.Header
14678}
14679
14680// Get: Gets an API proxy including a list of existing revisions.
14681//
14682// - name: Name of the API proxy in the following format:
14683//   `organizations/{org}/apis/{api}`.
14684func (r *OrganizationsApisService) Get(name string) *OrganizationsApisGetCall {
14685	c := &OrganizationsApisGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14686	c.name = name
14687	return c
14688}
14689
14690// Fields allows partial responses to be retrieved. See
14691// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
14692// for more information.
14693func (c *OrganizationsApisGetCall) Fields(s ...googleapi.Field) *OrganizationsApisGetCall {
14694	c.urlParams_.Set("fields", googleapi.CombineFields(s))
14695	return c
14696}
14697
14698// IfNoneMatch sets the optional parameter which makes the operation
14699// fail if the object's ETag matches the given value. This is useful for
14700// getting updates only after the object has changed since the last
14701// request. Use googleapi.IsNotModified to check whether the response
14702// error from Do is the result of In-None-Match.
14703func (c *OrganizationsApisGetCall) IfNoneMatch(entityTag string) *OrganizationsApisGetCall {
14704	c.ifNoneMatch_ = entityTag
14705	return c
14706}
14707
14708// Context sets the context to be used in this call's Do method. Any
14709// pending HTTP request will be aborted if the provided context is
14710// canceled.
14711func (c *OrganizationsApisGetCall) Context(ctx context.Context) *OrganizationsApisGetCall {
14712	c.ctx_ = ctx
14713	return c
14714}
14715
14716// Header returns an http.Header that can be modified by the caller to
14717// add HTTP headers to the request.
14718func (c *OrganizationsApisGetCall) Header() http.Header {
14719	if c.header_ == nil {
14720		c.header_ = make(http.Header)
14721	}
14722	return c.header_
14723}
14724
14725func (c *OrganizationsApisGetCall) doRequest(alt string) (*http.Response, error) {
14726	reqHeaders := make(http.Header)
14727	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
14728	for k, v := range c.header_ {
14729		reqHeaders[k] = v
14730	}
14731	reqHeaders.Set("User-Agent", c.s.userAgent())
14732	if c.ifNoneMatch_ != "" {
14733		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14734	}
14735	var body io.Reader = nil
14736	c.urlParams_.Set("alt", alt)
14737	c.urlParams_.Set("prettyPrint", "false")
14738	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
14739	urls += "?" + c.urlParams_.Encode()
14740	req, err := http.NewRequest("GET", urls, body)
14741	if err != nil {
14742		return nil, err
14743	}
14744	req.Header = reqHeaders
14745	googleapi.Expand(req.URL, map[string]string{
14746		"name": c.name,
14747	})
14748	return gensupport.SendRequest(c.ctx_, c.s.client, req)
14749}
14750
14751// Do executes the "apigee.organizations.apis.get" call.
14752// Exactly one of *GoogleCloudApigeeV1ApiProxy or error will be non-nil.
14753// Any non-2xx status code is an error. Response headers are in either
14754// *GoogleCloudApigeeV1ApiProxy.ServerResponse.Header or (if a response
14755// was returned at all) in error.(*googleapi.Error).Header. Use
14756// googleapi.IsNotModified to check whether the returned error was
14757// because http.StatusNotModified was returned.
14758func (c *OrganizationsApisGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProxy, error) {
14759	gensupport.SetOptions(c.urlParams_, opts...)
14760	res, err := c.doRequest("json")
14761	if res != nil && res.StatusCode == http.StatusNotModified {
14762		if res.Body != nil {
14763			res.Body.Close()
14764		}
14765		return nil, &googleapi.Error{
14766			Code:   res.StatusCode,
14767			Header: res.Header,
14768		}
14769	}
14770	if err != nil {
14771		return nil, err
14772	}
14773	defer googleapi.CloseBody(res)
14774	if err := googleapi.CheckResponse(res); err != nil {
14775		return nil, err
14776	}
14777	ret := &GoogleCloudApigeeV1ApiProxy{
14778		ServerResponse: googleapi.ServerResponse{
14779			Header:         res.Header,
14780			HTTPStatusCode: res.StatusCode,
14781		},
14782	}
14783	target := &ret
14784	if err := gensupport.DecodeResponse(target, res); err != nil {
14785		return nil, err
14786	}
14787	return ret, nil
14788	// {
14789	//   "description": "Gets an API proxy including a list of existing revisions.",
14790	//   "flatPath": "v1/organizations/{organizationsId}/apis/{apisId}",
14791	//   "httpMethod": "GET",
14792	//   "id": "apigee.organizations.apis.get",
14793	//   "parameterOrder": [
14794	//     "name"
14795	//   ],
14796	//   "parameters": {
14797	//     "name": {
14798	//       "description": "Required. Name of the API proxy in the following format: `organizations/{org}/apis/{api}`",
14799	//       "location": "path",
14800	//       "pattern": "^organizations/[^/]+/apis/[^/]+$",
14801	//       "required": true,
14802	//       "type": "string"
14803	//     }
14804	//   },
14805	//   "path": "v1/{+name}",
14806	//   "response": {
14807	//     "$ref": "GoogleCloudApigeeV1ApiProxy"
14808	//   },
14809	//   "scopes": [
14810	//     "https://www.googleapis.com/auth/cloud-platform"
14811	//   ]
14812	// }
14813
14814}
14815
14816// method id "apigee.organizations.apis.list":
14817
14818type OrganizationsApisListCall struct {
14819	s            *Service
14820	parent       string
14821	urlParams_   gensupport.URLParams
14822	ifNoneMatch_ string
14823	ctx_         context.Context
14824	header_      http.Header
14825}
14826
14827// List: Lists the names of all API proxies in an organization. The
14828// names returned correspond to the names defined in the configuration
14829// files for each API proxy.
14830//
14831// - parent: Name of the organization in the following format:
14832//   `organizations/{org}`.
14833func (r *OrganizationsApisService) List(parent string) *OrganizationsApisListCall {
14834	c := &OrganizationsApisListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14835	c.parent = parent
14836	return c
14837}
14838
14839// IncludeMetaData sets the optional parameter "includeMetaData": Flag
14840// that specifies whether to include API proxy metadata in the response.
14841func (c *OrganizationsApisListCall) IncludeMetaData(includeMetaData bool) *OrganizationsApisListCall {
14842	c.urlParams_.Set("includeMetaData", fmt.Sprint(includeMetaData))
14843	return c
14844}
14845
14846// IncludeRevisions sets the optional parameter "includeRevisions": Flag
14847// that specifies whether to include a list of revisions in the
14848// response.
14849func (c *OrganizationsApisListCall) IncludeRevisions(includeRevisions bool) *OrganizationsApisListCall {
14850	c.urlParams_.Set("includeRevisions", fmt.Sprint(includeRevisions))
14851	return c
14852}
14853
14854// Fields allows partial responses to be retrieved. See
14855// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
14856// for more information.
14857func (c *OrganizationsApisListCall) Fields(s ...googleapi.Field) *OrganizationsApisListCall {
14858	c.urlParams_.Set("fields", googleapi.CombineFields(s))
14859	return c
14860}
14861
14862// IfNoneMatch sets the optional parameter which makes the operation
14863// fail if the object's ETag matches the given value. This is useful for
14864// getting updates only after the object has changed since the last
14865// request. Use googleapi.IsNotModified to check whether the response
14866// error from Do is the result of In-None-Match.
14867func (c *OrganizationsApisListCall) IfNoneMatch(entityTag string) *OrganizationsApisListCall {
14868	c.ifNoneMatch_ = entityTag
14869	return c
14870}
14871
14872// Context sets the context to be used in this call's Do method. Any
14873// pending HTTP request will be aborted if the provided context is
14874// canceled.
14875func (c *OrganizationsApisListCall) Context(ctx context.Context) *OrganizationsApisListCall {
14876	c.ctx_ = ctx
14877	return c
14878}
14879
14880// Header returns an http.Header that can be modified by the caller to
14881// add HTTP headers to the request.
14882func (c *OrganizationsApisListCall) Header() http.Header {
14883	if c.header_ == nil {
14884		c.header_ = make(http.Header)
14885	}
14886	return c.header_
14887}
14888
14889func (c *OrganizationsApisListCall) doRequest(alt string) (*http.Response, error) {
14890	reqHeaders := make(http.Header)
14891	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
14892	for k, v := range c.header_ {
14893		reqHeaders[k] = v
14894	}
14895	reqHeaders.Set("User-Agent", c.s.userAgent())
14896	if c.ifNoneMatch_ != "" {
14897		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14898	}
14899	var body io.Reader = nil
14900	c.urlParams_.Set("alt", alt)
14901	c.urlParams_.Set("prettyPrint", "false")
14902	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apis")
14903	urls += "?" + c.urlParams_.Encode()
14904	req, err := http.NewRequest("GET", urls, body)
14905	if err != nil {
14906		return nil, err
14907	}
14908	req.Header = reqHeaders
14909	googleapi.Expand(req.URL, map[string]string{
14910		"parent": c.parent,
14911	})
14912	return gensupport.SendRequest(c.ctx_, c.s.client, req)
14913}
14914
14915// Do executes the "apigee.organizations.apis.list" call.
14916// Exactly one of *GoogleCloudApigeeV1ListApiProxiesResponse or error
14917// will be non-nil. Any non-2xx status code is an error. Response
14918// headers are in either
14919// *GoogleCloudApigeeV1ListApiProxiesResponse.ServerResponse.Header or
14920// (if a response was returned at all) in
14921// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
14922// whether the returned error was because http.StatusNotModified was
14923// returned.
14924func (c *OrganizationsApisListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListApiProxiesResponse, error) {
14925	gensupport.SetOptions(c.urlParams_, opts...)
14926	res, err := c.doRequest("json")
14927	if res != nil && res.StatusCode == http.StatusNotModified {
14928		if res.Body != nil {
14929			res.Body.Close()
14930		}
14931		return nil, &googleapi.Error{
14932			Code:   res.StatusCode,
14933			Header: res.Header,
14934		}
14935	}
14936	if err != nil {
14937		return nil, err
14938	}
14939	defer googleapi.CloseBody(res)
14940	if err := googleapi.CheckResponse(res); err != nil {
14941		return nil, err
14942	}
14943	ret := &GoogleCloudApigeeV1ListApiProxiesResponse{
14944		ServerResponse: googleapi.ServerResponse{
14945			Header:         res.Header,
14946			HTTPStatusCode: res.StatusCode,
14947		},
14948	}
14949	target := &ret
14950	if err := gensupport.DecodeResponse(target, res); err != nil {
14951		return nil, err
14952	}
14953	return ret, nil
14954	// {
14955	//   "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.",
14956	//   "flatPath": "v1/organizations/{organizationsId}/apis",
14957	//   "httpMethod": "GET",
14958	//   "id": "apigee.organizations.apis.list",
14959	//   "parameterOrder": [
14960	//     "parent"
14961	//   ],
14962	//   "parameters": {
14963	//     "includeMetaData": {
14964	//       "description": "Flag that specifies whether to include API proxy metadata in the response.",
14965	//       "location": "query",
14966	//       "type": "boolean"
14967	//     },
14968	//     "includeRevisions": {
14969	//       "description": "Flag that specifies whether to include a list of revisions in the response.",
14970	//       "location": "query",
14971	//       "type": "boolean"
14972	//     },
14973	//     "parent": {
14974	//       "description": "Required. Name of the organization in the following format: `organizations/{org}`",
14975	//       "location": "path",
14976	//       "pattern": "^organizations/[^/]+$",
14977	//       "required": true,
14978	//       "type": "string"
14979	//     }
14980	//   },
14981	//   "path": "v1/{+parent}/apis",
14982	//   "response": {
14983	//     "$ref": "GoogleCloudApigeeV1ListApiProxiesResponse"
14984	//   },
14985	//   "scopes": [
14986	//     "https://www.googleapis.com/auth/cloud-platform"
14987	//   ]
14988	// }
14989
14990}
14991
14992// method id "apigee.organizations.apis.deployments.list":
14993
14994type OrganizationsApisDeploymentsListCall struct {
14995	s            *Service
14996	parent       string
14997	urlParams_   gensupport.URLParams
14998	ifNoneMatch_ string
14999	ctx_         context.Context
15000	header_      http.Header
15001}
15002
15003// List: Lists all deployments of an API proxy.
15004//
15005// - parent: Name of the API proxy for which to return deployment
15006//   information in the following format:
15007//   `organizations/{org}/apis/{api}`.
15008func (r *OrganizationsApisDeploymentsService) List(parent string) *OrganizationsApisDeploymentsListCall {
15009	c := &OrganizationsApisDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15010	c.parent = parent
15011	return c
15012}
15013
15014// Fields allows partial responses to be retrieved. See
15015// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
15016// for more information.
15017func (c *OrganizationsApisDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsApisDeploymentsListCall {
15018	c.urlParams_.Set("fields", googleapi.CombineFields(s))
15019	return c
15020}
15021
15022// IfNoneMatch sets the optional parameter which makes the operation
15023// fail if the object's ETag matches the given value. This is useful for
15024// getting updates only after the object has changed since the last
15025// request. Use googleapi.IsNotModified to check whether the response
15026// error from Do is the result of In-None-Match.
15027func (c *OrganizationsApisDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsApisDeploymentsListCall {
15028	c.ifNoneMatch_ = entityTag
15029	return c
15030}
15031
15032// Context sets the context to be used in this call's Do method. Any
15033// pending HTTP request will be aborted if the provided context is
15034// canceled.
15035func (c *OrganizationsApisDeploymentsListCall) Context(ctx context.Context) *OrganizationsApisDeploymentsListCall {
15036	c.ctx_ = ctx
15037	return c
15038}
15039
15040// Header returns an http.Header that can be modified by the caller to
15041// add HTTP headers to the request.
15042func (c *OrganizationsApisDeploymentsListCall) Header() http.Header {
15043	if c.header_ == nil {
15044		c.header_ = make(http.Header)
15045	}
15046	return c.header_
15047}
15048
15049func (c *OrganizationsApisDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
15050	reqHeaders := make(http.Header)
15051	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
15052	for k, v := range c.header_ {
15053		reqHeaders[k] = v
15054	}
15055	reqHeaders.Set("User-Agent", c.s.userAgent())
15056	if c.ifNoneMatch_ != "" {
15057		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
15058	}
15059	var body io.Reader = nil
15060	c.urlParams_.Set("alt", alt)
15061	c.urlParams_.Set("prettyPrint", "false")
15062	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
15063	urls += "?" + c.urlParams_.Encode()
15064	req, err := http.NewRequest("GET", urls, body)
15065	if err != nil {
15066		return nil, err
15067	}
15068	req.Header = reqHeaders
15069	googleapi.Expand(req.URL, map[string]string{
15070		"parent": c.parent,
15071	})
15072	return gensupport.SendRequest(c.ctx_, c.s.client, req)
15073}
15074
15075// Do executes the "apigee.organizations.apis.deployments.list" call.
15076// Exactly one of *GoogleCloudApigeeV1ListDeploymentsResponse or error
15077// will be non-nil. Any non-2xx status code is an error. Response
15078// headers are in either
15079// *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or
15080// (if a response was returned at all) in
15081// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
15082// whether the returned error was because http.StatusNotModified was
15083// returned.
15084func (c *OrganizationsApisDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
15085	gensupport.SetOptions(c.urlParams_, opts...)
15086	res, err := c.doRequest("json")
15087	if res != nil && res.StatusCode == http.StatusNotModified {
15088		if res.Body != nil {
15089			res.Body.Close()
15090		}
15091		return nil, &googleapi.Error{
15092			Code:   res.StatusCode,
15093			Header: res.Header,
15094		}
15095	}
15096	if err != nil {
15097		return nil, err
15098	}
15099	defer googleapi.CloseBody(res)
15100	if err := googleapi.CheckResponse(res); err != nil {
15101		return nil, err
15102	}
15103	ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
15104		ServerResponse: googleapi.ServerResponse{
15105			Header:         res.Header,
15106			HTTPStatusCode: res.StatusCode,
15107		},
15108	}
15109	target := &ret
15110	if err := gensupport.DecodeResponse(target, res); err != nil {
15111		return nil, err
15112	}
15113	return ret, nil
15114	// {
15115	//   "description": "Lists all deployments of an API proxy.",
15116	//   "flatPath": "v1/organizations/{organizationsId}/apis/{apisId}/deployments",
15117	//   "httpMethod": "GET",
15118	//   "id": "apigee.organizations.apis.deployments.list",
15119	//   "parameterOrder": [
15120	//     "parent"
15121	//   ],
15122	//   "parameters": {
15123	//     "parent": {
15124	//       "description": "Required. Name of the API proxy for which to return deployment information in the following format: `organizations/{org}/apis/{api}`",
15125	//       "location": "path",
15126	//       "pattern": "^organizations/[^/]+/apis/[^/]+$",
15127	//       "required": true,
15128	//       "type": "string"
15129	//     }
15130	//   },
15131	//   "path": "v1/{+parent}/deployments",
15132	//   "response": {
15133	//     "$ref": "GoogleCloudApigeeV1ListDeploymentsResponse"
15134	//   },
15135	//   "scopes": [
15136	//     "https://www.googleapis.com/auth/cloud-platform"
15137	//   ]
15138	// }
15139
15140}
15141
15142// method id "apigee.organizations.apis.keyvaluemaps.create":
15143
15144type OrganizationsApisKeyvaluemapsCreateCall struct {
15145	s                              *Service
15146	parent                         string
15147	googlecloudapigeev1keyvaluemap *GoogleCloudApigeeV1KeyValueMap
15148	urlParams_                     gensupport.URLParams
15149	ctx_                           context.Context
15150	header_                        http.Header
15151}
15152
15153// Create: Creates a key value map in an api proxy.
15154//
15155// - parent: The name of the environment in which to create the key
15156//   value map. Must be of the form
15157//   `organizations/{organization}/apis/{api}`.
15158func (r *OrganizationsApisKeyvaluemapsService) Create(parent string, googlecloudapigeev1keyvaluemap *GoogleCloudApigeeV1KeyValueMap) *OrganizationsApisKeyvaluemapsCreateCall {
15159	c := &OrganizationsApisKeyvaluemapsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15160	c.parent = parent
15161	c.googlecloudapigeev1keyvaluemap = googlecloudapigeev1keyvaluemap
15162	return c
15163}
15164
15165// Fields allows partial responses to be retrieved. See
15166// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
15167// for more information.
15168func (c *OrganizationsApisKeyvaluemapsCreateCall) Fields(s ...googleapi.Field) *OrganizationsApisKeyvaluemapsCreateCall {
15169	c.urlParams_.Set("fields", googleapi.CombineFields(s))
15170	return c
15171}
15172
15173// Context sets the context to be used in this call's Do method. Any
15174// pending HTTP request will be aborted if the provided context is
15175// canceled.
15176func (c *OrganizationsApisKeyvaluemapsCreateCall) Context(ctx context.Context) *OrganizationsApisKeyvaluemapsCreateCall {
15177	c.ctx_ = ctx
15178	return c
15179}
15180
15181// Header returns an http.Header that can be modified by the caller to
15182// add HTTP headers to the request.
15183func (c *OrganizationsApisKeyvaluemapsCreateCall) Header() http.Header {
15184	if c.header_ == nil {
15185		c.header_ = make(http.Header)
15186	}
15187	return c.header_
15188}
15189
15190func (c *OrganizationsApisKeyvaluemapsCreateCall) doRequest(alt string) (*http.Response, error) {
15191	reqHeaders := make(http.Header)
15192	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
15193	for k, v := range c.header_ {
15194		reqHeaders[k] = v
15195	}
15196	reqHeaders.Set("User-Agent", c.s.userAgent())
15197	var body io.Reader = nil
15198	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1keyvaluemap)
15199	if err != nil {
15200		return nil, err
15201	}
15202	reqHeaders.Set("Content-Type", "application/json")
15203	c.urlParams_.Set("alt", alt)
15204	c.urlParams_.Set("prettyPrint", "false")
15205	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keyvaluemaps")
15206	urls += "?" + c.urlParams_.Encode()
15207	req, err := http.NewRequest("POST", urls, body)
15208	if err != nil {
15209		return nil, err
15210	}
15211	req.Header = reqHeaders
15212	googleapi.Expand(req.URL, map[string]string{
15213		"parent": c.parent,
15214	})
15215	return gensupport.SendRequest(c.ctx_, c.s.client, req)
15216}
15217
15218// Do executes the "apigee.organizations.apis.keyvaluemaps.create" call.
15219// Exactly one of *GoogleCloudApigeeV1KeyValueMap or error will be
15220// non-nil. Any non-2xx status code is an error. Response headers are in
15221// either *GoogleCloudApigeeV1KeyValueMap.ServerResponse.Header or (if a
15222// response was returned at all) in error.(*googleapi.Error).Header. Use
15223// googleapi.IsNotModified to check whether the returned error was
15224// because http.StatusNotModified was returned.
15225func (c *OrganizationsApisKeyvaluemapsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueMap, error) {
15226	gensupport.SetOptions(c.urlParams_, opts...)
15227	res, err := c.doRequest("json")
15228	if res != nil && res.StatusCode == http.StatusNotModified {
15229		if res.Body != nil {
15230			res.Body.Close()
15231		}
15232		return nil, &googleapi.Error{
15233			Code:   res.StatusCode,
15234			Header: res.Header,
15235		}
15236	}
15237	if err != nil {
15238		return nil, err
15239	}
15240	defer googleapi.CloseBody(res)
15241	if err := googleapi.CheckResponse(res); err != nil {
15242		return nil, err
15243	}
15244	ret := &GoogleCloudApigeeV1KeyValueMap{
15245		ServerResponse: googleapi.ServerResponse{
15246			Header:         res.Header,
15247			HTTPStatusCode: res.StatusCode,
15248		},
15249	}
15250	target := &ret
15251	if err := gensupport.DecodeResponse(target, res); err != nil {
15252		return nil, err
15253	}
15254	return ret, nil
15255	// {
15256	//   "description": "Creates a key value map in an api proxy.",
15257	//   "flatPath": "v1/organizations/{organizationsId}/apis/{apisId}/keyvaluemaps",
15258	//   "httpMethod": "POST",
15259	//   "id": "apigee.organizations.apis.keyvaluemaps.create",
15260	//   "parameterOrder": [
15261	//     "parent"
15262	//   ],
15263	//   "parameters": {
15264	//     "parent": {
15265	//       "description": "Required. The name of the environment in which to create the key value map. Must be of the form `organizations/{organization}/apis/{api}`.",
15266	//       "location": "path",
15267	//       "pattern": "^organizations/[^/]+/apis/[^/]+$",
15268	//       "required": true,
15269	//       "type": "string"
15270	//     }
15271	//   },
15272	//   "path": "v1/{+parent}/keyvaluemaps",
15273	//   "request": {
15274	//     "$ref": "GoogleCloudApigeeV1KeyValueMap"
15275	//   },
15276	//   "response": {
15277	//     "$ref": "GoogleCloudApigeeV1KeyValueMap"
15278	//   },
15279	//   "scopes": [
15280	//     "https://www.googleapis.com/auth/cloud-platform"
15281	//   ]
15282	// }
15283
15284}
15285
15286// method id "apigee.organizations.apis.keyvaluemaps.delete":
15287
15288type OrganizationsApisKeyvaluemapsDeleteCall struct {
15289	s          *Service
15290	name       string
15291	urlParams_ gensupport.URLParams
15292	ctx_       context.Context
15293	header_    http.Header
15294}
15295
15296// Delete: Delete a key value map in an api proxy.
15297//
15298// - name: The name of the key value map. Must be of the form
15299//   `organizations/{organization}/apis/{api}/keyvaluemaps/{keyvaluemap}`
15300//   .
15301func (r *OrganizationsApisKeyvaluemapsService) Delete(name string) *OrganizationsApisKeyvaluemapsDeleteCall {
15302	c := &OrganizationsApisKeyvaluemapsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15303	c.name = name
15304	return c
15305}
15306
15307// Fields allows partial responses to be retrieved. See
15308// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
15309// for more information.
15310func (c *OrganizationsApisKeyvaluemapsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsApisKeyvaluemapsDeleteCall {
15311	c.urlParams_.Set("fields", googleapi.CombineFields(s))
15312	return c
15313}
15314
15315// Context sets the context to be used in this call's Do method. Any
15316// pending HTTP request will be aborted if the provided context is
15317// canceled.
15318func (c *OrganizationsApisKeyvaluemapsDeleteCall) Context(ctx context.Context) *OrganizationsApisKeyvaluemapsDeleteCall {
15319	c.ctx_ = ctx
15320	return c
15321}
15322
15323// Header returns an http.Header that can be modified by the caller to
15324// add HTTP headers to the request.
15325func (c *OrganizationsApisKeyvaluemapsDeleteCall) Header() http.Header {
15326	if c.header_ == nil {
15327		c.header_ = make(http.Header)
15328	}
15329	return c.header_
15330}
15331
15332func (c *OrganizationsApisKeyvaluemapsDeleteCall) doRequest(alt string) (*http.Response, error) {
15333	reqHeaders := make(http.Header)
15334	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
15335	for k, v := range c.header_ {
15336		reqHeaders[k] = v
15337	}
15338	reqHeaders.Set("User-Agent", c.s.userAgent())
15339	var body io.Reader = nil
15340	c.urlParams_.Set("alt", alt)
15341	c.urlParams_.Set("prettyPrint", "false")
15342	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
15343	urls += "?" + c.urlParams_.Encode()
15344	req, err := http.NewRequest("DELETE", urls, body)
15345	if err != nil {
15346		return nil, err
15347	}
15348	req.Header = reqHeaders
15349	googleapi.Expand(req.URL, map[string]string{
15350		"name": c.name,
15351	})
15352	return gensupport.SendRequest(c.ctx_, c.s.client, req)
15353}
15354
15355// Do executes the "apigee.organizations.apis.keyvaluemaps.delete" call.
15356// Exactly one of *GoogleCloudApigeeV1KeyValueMap or error will be
15357// non-nil. Any non-2xx status code is an error. Response headers are in
15358// either *GoogleCloudApigeeV1KeyValueMap.ServerResponse.Header or (if a
15359// response was returned at all) in error.(*googleapi.Error).Header. Use
15360// googleapi.IsNotModified to check whether the returned error was
15361// because http.StatusNotModified was returned.
15362func (c *OrganizationsApisKeyvaluemapsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueMap, error) {
15363	gensupport.SetOptions(c.urlParams_, opts...)
15364	res, err := c.doRequest("json")
15365	if res != nil && res.StatusCode == http.StatusNotModified {
15366		if res.Body != nil {
15367			res.Body.Close()
15368		}
15369		return nil, &googleapi.Error{
15370			Code:   res.StatusCode,
15371			Header: res.Header,
15372		}
15373	}
15374	if err != nil {
15375		return nil, err
15376	}
15377	defer googleapi.CloseBody(res)
15378	if err := googleapi.CheckResponse(res); err != nil {
15379		return nil, err
15380	}
15381	ret := &GoogleCloudApigeeV1KeyValueMap{
15382		ServerResponse: googleapi.ServerResponse{
15383			Header:         res.Header,
15384			HTTPStatusCode: res.StatusCode,
15385		},
15386	}
15387	target := &ret
15388	if err := gensupport.DecodeResponse(target, res); err != nil {
15389		return nil, err
15390	}
15391	return ret, nil
15392	// {
15393	//   "description": "Delete a key value map in an api proxy.",
15394	//   "flatPath": "v1/organizations/{organizationsId}/apis/{apisId}/keyvaluemaps/{keyvaluemapsId}",
15395	//   "httpMethod": "DELETE",
15396	//   "id": "apigee.organizations.apis.keyvaluemaps.delete",
15397	//   "parameterOrder": [
15398	//     "name"
15399	//   ],
15400	//   "parameters": {
15401	//     "name": {
15402	//       "description": "Required. The name of the key value map. Must be of the form `organizations/{organization}/apis/{api}/keyvaluemaps/{keyvaluemap}`.",
15403	//       "location": "path",
15404	//       "pattern": "^organizations/[^/]+/apis/[^/]+/keyvaluemaps/[^/]+$",
15405	//       "required": true,
15406	//       "type": "string"
15407	//     }
15408	//   },
15409	//   "path": "v1/{+name}",
15410	//   "response": {
15411	//     "$ref": "GoogleCloudApigeeV1KeyValueMap"
15412	//   },
15413	//   "scopes": [
15414	//     "https://www.googleapis.com/auth/cloud-platform"
15415	//   ]
15416	// }
15417
15418}
15419
15420// method id "apigee.organizations.apis.revisions.delete":
15421
15422type OrganizationsApisRevisionsDeleteCall struct {
15423	s          *Service
15424	name       string
15425	urlParams_ gensupport.URLParams
15426	ctx_       context.Context
15427	header_    http.Header
15428}
15429
15430// Delete: Deletes an API proxy revision and all policies, resources,
15431// endpoints, and revisions associated with it. The API proxy revision
15432// must be undeployed before you can delete it.
15433//
15434// - name: API proxy revision in the following format:
15435//   `organizations/{org}/apis/{api}/revisions/{rev}`.
15436func (r *OrganizationsApisRevisionsService) Delete(name string) *OrganizationsApisRevisionsDeleteCall {
15437	c := &OrganizationsApisRevisionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15438	c.name = name
15439	return c
15440}
15441
15442// Fields allows partial responses to be retrieved. See
15443// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
15444// for more information.
15445func (c *OrganizationsApisRevisionsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsApisRevisionsDeleteCall {
15446	c.urlParams_.Set("fields", googleapi.CombineFields(s))
15447	return c
15448}
15449
15450// Context sets the context to be used in this call's Do method. Any
15451// pending HTTP request will be aborted if the provided context is
15452// canceled.
15453func (c *OrganizationsApisRevisionsDeleteCall) Context(ctx context.Context) *OrganizationsApisRevisionsDeleteCall {
15454	c.ctx_ = ctx
15455	return c
15456}
15457
15458// Header returns an http.Header that can be modified by the caller to
15459// add HTTP headers to the request.
15460func (c *OrganizationsApisRevisionsDeleteCall) Header() http.Header {
15461	if c.header_ == nil {
15462		c.header_ = make(http.Header)
15463	}
15464	return c.header_
15465}
15466
15467func (c *OrganizationsApisRevisionsDeleteCall) doRequest(alt string) (*http.Response, error) {
15468	reqHeaders := make(http.Header)
15469	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
15470	for k, v := range c.header_ {
15471		reqHeaders[k] = v
15472	}
15473	reqHeaders.Set("User-Agent", c.s.userAgent())
15474	var body io.Reader = nil
15475	c.urlParams_.Set("alt", alt)
15476	c.urlParams_.Set("prettyPrint", "false")
15477	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
15478	urls += "?" + c.urlParams_.Encode()
15479	req, err := http.NewRequest("DELETE", urls, body)
15480	if err != nil {
15481		return nil, err
15482	}
15483	req.Header = reqHeaders
15484	googleapi.Expand(req.URL, map[string]string{
15485		"name": c.name,
15486	})
15487	return gensupport.SendRequest(c.ctx_, c.s.client, req)
15488}
15489
15490// Do executes the "apigee.organizations.apis.revisions.delete" call.
15491// Exactly one of *GoogleCloudApigeeV1ApiProxyRevision or error will be
15492// non-nil. Any non-2xx status code is an error. Response headers are in
15493// either *GoogleCloudApigeeV1ApiProxyRevision.ServerResponse.Header or
15494// (if a response was returned at all) in
15495// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
15496// whether the returned error was because http.StatusNotModified was
15497// returned.
15498func (c *OrganizationsApisRevisionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProxyRevision, error) {
15499	gensupport.SetOptions(c.urlParams_, opts...)
15500	res, err := c.doRequest("json")
15501	if res != nil && res.StatusCode == http.StatusNotModified {
15502		if res.Body != nil {
15503			res.Body.Close()
15504		}
15505		return nil, &googleapi.Error{
15506			Code:   res.StatusCode,
15507			Header: res.Header,
15508		}
15509	}
15510	if err != nil {
15511		return nil, err
15512	}
15513	defer googleapi.CloseBody(res)
15514	if err := googleapi.CheckResponse(res); err != nil {
15515		return nil, err
15516	}
15517	ret := &GoogleCloudApigeeV1ApiProxyRevision{
15518		ServerResponse: googleapi.ServerResponse{
15519			Header:         res.Header,
15520			HTTPStatusCode: res.StatusCode,
15521		},
15522	}
15523	target := &ret
15524	if err := gensupport.DecodeResponse(target, res); err != nil {
15525		return nil, err
15526	}
15527	return ret, nil
15528	// {
15529	//   "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.",
15530	//   "flatPath": "v1/organizations/{organizationsId}/apis/{apisId}/revisions/{revisionsId}",
15531	//   "httpMethod": "DELETE",
15532	//   "id": "apigee.organizations.apis.revisions.delete",
15533	//   "parameterOrder": [
15534	//     "name"
15535	//   ],
15536	//   "parameters": {
15537	//     "name": {
15538	//       "description": "Required. API proxy revision in the following format: `organizations/{org}/apis/{api}/revisions/{rev}`",
15539	//       "location": "path",
15540	//       "pattern": "^organizations/[^/]+/apis/[^/]+/revisions/[^/]+$",
15541	//       "required": true,
15542	//       "type": "string"
15543	//     }
15544	//   },
15545	//   "path": "v1/{+name}",
15546	//   "response": {
15547	//     "$ref": "GoogleCloudApigeeV1ApiProxyRevision"
15548	//   },
15549	//   "scopes": [
15550	//     "https://www.googleapis.com/auth/cloud-platform"
15551	//   ]
15552	// }
15553
15554}
15555
15556// method id "apigee.organizations.apis.revisions.get":
15557
15558type OrganizationsApisRevisionsGetCall struct {
15559	s            *Service
15560	name         string
15561	urlParams_   gensupport.URLParams
15562	ifNoneMatch_ string
15563	ctx_         context.Context
15564	header_      http.Header
15565}
15566
15567// Get: Gets an API proxy revision. To download the API proxy
15568// configuration bundle for the specified revision as a zip file, set
15569// the `format` query parameter to `bundle`. If you are using curl,
15570// specify `-o filename.zip` to save the output to a file; otherwise, it
15571// displays to `stdout`. Then, develop the API proxy configuration
15572// locally and upload the updated API proxy configuration revision, as
15573// described in updateApiProxyRevision (updateApiProxyRevision).
15574//
15575// - name: API proxy revision in the following format:
15576//   `organizations/{org}/apis/{api}/revisions/{rev}`.
15577func (r *OrganizationsApisRevisionsService) Get(name string) *OrganizationsApisRevisionsGetCall {
15578	c := &OrganizationsApisRevisionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15579	c.name = name
15580	return c
15581}
15582
15583// Format sets the optional parameter "format": Format used when
15584// downloading the API proxy configuration revision. Set to `bundle` to
15585// download the API proxy configuration revision as a zip file.
15586func (c *OrganizationsApisRevisionsGetCall) Format(format string) *OrganizationsApisRevisionsGetCall {
15587	c.urlParams_.Set("format", format)
15588	return c
15589}
15590
15591// Fields allows partial responses to be retrieved. See
15592// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
15593// for more information.
15594func (c *OrganizationsApisRevisionsGetCall) Fields(s ...googleapi.Field) *OrganizationsApisRevisionsGetCall {
15595	c.urlParams_.Set("fields", googleapi.CombineFields(s))
15596	return c
15597}
15598
15599// IfNoneMatch sets the optional parameter which makes the operation
15600// fail if the object's ETag matches the given value. This is useful for
15601// getting updates only after the object has changed since the last
15602// request. Use googleapi.IsNotModified to check whether the response
15603// error from Do is the result of In-None-Match.
15604func (c *OrganizationsApisRevisionsGetCall) IfNoneMatch(entityTag string) *OrganizationsApisRevisionsGetCall {
15605	c.ifNoneMatch_ = entityTag
15606	return c
15607}
15608
15609// Context sets the context to be used in this call's Do method. Any
15610// pending HTTP request will be aborted if the provided context is
15611// canceled.
15612func (c *OrganizationsApisRevisionsGetCall) Context(ctx context.Context) *OrganizationsApisRevisionsGetCall {
15613	c.ctx_ = ctx
15614	return c
15615}
15616
15617// Header returns an http.Header that can be modified by the caller to
15618// add HTTP headers to the request.
15619func (c *OrganizationsApisRevisionsGetCall) Header() http.Header {
15620	if c.header_ == nil {
15621		c.header_ = make(http.Header)
15622	}
15623	return c.header_
15624}
15625
15626func (c *OrganizationsApisRevisionsGetCall) doRequest(alt string) (*http.Response, error) {
15627	reqHeaders := make(http.Header)
15628	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
15629	for k, v := range c.header_ {
15630		reqHeaders[k] = v
15631	}
15632	reqHeaders.Set("User-Agent", c.s.userAgent())
15633	if c.ifNoneMatch_ != "" {
15634		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
15635	}
15636	var body io.Reader = nil
15637	c.urlParams_.Set("alt", alt)
15638	c.urlParams_.Set("prettyPrint", "false")
15639	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
15640	urls += "?" + c.urlParams_.Encode()
15641	req, err := http.NewRequest("GET", urls, body)
15642	if err != nil {
15643		return nil, err
15644	}
15645	req.Header = reqHeaders
15646	googleapi.Expand(req.URL, map[string]string{
15647		"name": c.name,
15648	})
15649	return gensupport.SendRequest(c.ctx_, c.s.client, req)
15650}
15651
15652// Do executes the "apigee.organizations.apis.revisions.get" call.
15653// Exactly one of *GoogleApiHttpBody or error will be non-nil. Any
15654// non-2xx status code is an error. Response headers are in either
15655// *GoogleApiHttpBody.ServerResponse.Header or (if a response was
15656// returned at all) in error.(*googleapi.Error).Header. Use
15657// googleapi.IsNotModified to check whether the returned error was
15658// because http.StatusNotModified was returned.
15659func (c *OrganizationsApisRevisionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
15660	gensupport.SetOptions(c.urlParams_, opts...)
15661	res, err := c.doRequest("json")
15662	if res != nil && res.StatusCode == http.StatusNotModified {
15663		if res.Body != nil {
15664			res.Body.Close()
15665		}
15666		return nil, &googleapi.Error{
15667			Code:   res.StatusCode,
15668			Header: res.Header,
15669		}
15670	}
15671	if err != nil {
15672		return nil, err
15673	}
15674	defer googleapi.CloseBody(res)
15675	if err := googleapi.CheckResponse(res); err != nil {
15676		return nil, err
15677	}
15678	ret := &GoogleApiHttpBody{
15679		ServerResponse: googleapi.ServerResponse{
15680			Header:         res.Header,
15681			HTTPStatusCode: res.StatusCode,
15682		},
15683	}
15684	target := &ret
15685	if err := gensupport.DecodeResponse(target, res); err != nil {
15686		return nil, err
15687	}
15688	return ret, nil
15689	// {
15690	//   "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).",
15691	//   "flatPath": "v1/organizations/{organizationsId}/apis/{apisId}/revisions/{revisionsId}",
15692	//   "httpMethod": "GET",
15693	//   "id": "apigee.organizations.apis.revisions.get",
15694	//   "parameterOrder": [
15695	//     "name"
15696	//   ],
15697	//   "parameters": {
15698	//     "format": {
15699	//       "description": "Format used when downloading the API proxy configuration revision. Set to `bundle` to download the API proxy configuration revision as a zip file.",
15700	//       "location": "query",
15701	//       "type": "string"
15702	//     },
15703	//     "name": {
15704	//       "description": "Required. API proxy revision in the following format: `organizations/{org}/apis/{api}/revisions/{rev}`",
15705	//       "location": "path",
15706	//       "pattern": "^organizations/[^/]+/apis/[^/]+/revisions/[^/]+$",
15707	//       "required": true,
15708	//       "type": "string"
15709	//     }
15710	//   },
15711	//   "path": "v1/{+name}",
15712	//   "response": {
15713	//     "$ref": "GoogleApiHttpBody"
15714	//   },
15715	//   "scopes": [
15716	//     "https://www.googleapis.com/auth/cloud-platform"
15717	//   ]
15718	// }
15719
15720}
15721
15722// method id "apigee.organizations.apis.revisions.updateApiProxyRevision":
15723
15724type OrganizationsApisRevisionsUpdateApiProxyRevisionCall struct {
15725	s                 *Service
15726	name              string
15727	googleapihttpbody *GoogleApiHttpBody
15728	urlParams_        gensupport.URLParams
15729	ctx_              context.Context
15730	header_           http.Header
15731}
15732
15733// UpdateApiProxyRevision: Updates an existing API proxy revision by
15734// uploading the API proxy configuration bundle as a zip file from your
15735// local machine. You can update only API proxy revisions that have
15736// never been deployed. After deployment, an API proxy revision becomes
15737// immutable, even if it is undeployed. Set the `Content-Type` header to
15738// either `multipart/form-data` or `application/octet-stream`.
15739//
15740// - name: API proxy revision to update in the following format:
15741//   `organizations/{org}/apis/{api}/revisions/{rev}`.
15742func (r *OrganizationsApisRevisionsService) UpdateApiProxyRevision(name string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsApisRevisionsUpdateApiProxyRevisionCall {
15743	c := &OrganizationsApisRevisionsUpdateApiProxyRevisionCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15744	c.name = name
15745	c.googleapihttpbody = googleapihttpbody
15746	return c
15747}
15748
15749// Validate sets the optional parameter "validate": Ignored. All uploads
15750// are validated regardless of the value of this field. Maintained for
15751// compatibility with Apigee Edge API.
15752func (c *OrganizationsApisRevisionsUpdateApiProxyRevisionCall) Validate(validate bool) *OrganizationsApisRevisionsUpdateApiProxyRevisionCall {
15753	c.urlParams_.Set("validate", fmt.Sprint(validate))
15754	return c
15755}
15756
15757// Fields allows partial responses to be retrieved. See
15758// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
15759// for more information.
15760func (c *OrganizationsApisRevisionsUpdateApiProxyRevisionCall) Fields(s ...googleapi.Field) *OrganizationsApisRevisionsUpdateApiProxyRevisionCall {
15761	c.urlParams_.Set("fields", googleapi.CombineFields(s))
15762	return c
15763}
15764
15765// Context sets the context to be used in this call's Do method. Any
15766// pending HTTP request will be aborted if the provided context is
15767// canceled.
15768func (c *OrganizationsApisRevisionsUpdateApiProxyRevisionCall) Context(ctx context.Context) *OrganizationsApisRevisionsUpdateApiProxyRevisionCall {
15769	c.ctx_ = ctx
15770	return c
15771}
15772
15773// Header returns an http.Header that can be modified by the caller to
15774// add HTTP headers to the request.
15775func (c *OrganizationsApisRevisionsUpdateApiProxyRevisionCall) Header() http.Header {
15776	if c.header_ == nil {
15777		c.header_ = make(http.Header)
15778	}
15779	return c.header_
15780}
15781
15782func (c *OrganizationsApisRevisionsUpdateApiProxyRevisionCall) doRequest(alt string) (*http.Response, error) {
15783	reqHeaders := make(http.Header)
15784	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
15785	for k, v := range c.header_ {
15786		reqHeaders[k] = v
15787	}
15788	reqHeaders.Set("User-Agent", c.s.userAgent())
15789	var body io.Reader = nil
15790	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
15791	if err != nil {
15792		return nil, err
15793	}
15794	reqHeaders.Set("Content-Type", "application/json")
15795	c.urlParams_.Set("alt", alt)
15796	c.urlParams_.Set("prettyPrint", "false")
15797	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
15798	urls += "?" + c.urlParams_.Encode()
15799	req, err := http.NewRequest("POST", urls, body)
15800	if err != nil {
15801		return nil, err
15802	}
15803	req.Header = reqHeaders
15804	googleapi.Expand(req.URL, map[string]string{
15805		"name": c.name,
15806	})
15807	return gensupport.SendRequest(c.ctx_, c.s.client, req)
15808}
15809
15810// Do executes the "apigee.organizations.apis.revisions.updateApiProxyRevision" call.
15811// Exactly one of *GoogleCloudApigeeV1ApiProxyRevision or error will be
15812// non-nil. Any non-2xx status code is an error. Response headers are in
15813// either *GoogleCloudApigeeV1ApiProxyRevision.ServerResponse.Header or
15814// (if a response was returned at all) in
15815// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
15816// whether the returned error was because http.StatusNotModified was
15817// returned.
15818func (c *OrganizationsApisRevisionsUpdateApiProxyRevisionCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProxyRevision, error) {
15819	gensupport.SetOptions(c.urlParams_, opts...)
15820	res, err := c.doRequest("json")
15821	if res != nil && res.StatusCode == http.StatusNotModified {
15822		if res.Body != nil {
15823			res.Body.Close()
15824		}
15825		return nil, &googleapi.Error{
15826			Code:   res.StatusCode,
15827			Header: res.Header,
15828		}
15829	}
15830	if err != nil {
15831		return nil, err
15832	}
15833	defer googleapi.CloseBody(res)
15834	if err := googleapi.CheckResponse(res); err != nil {
15835		return nil, err
15836	}
15837	ret := &GoogleCloudApigeeV1ApiProxyRevision{
15838		ServerResponse: googleapi.ServerResponse{
15839			Header:         res.Header,
15840			HTTPStatusCode: res.StatusCode,
15841		},
15842	}
15843	target := &ret
15844	if err := gensupport.DecodeResponse(target, res); err != nil {
15845		return nil, err
15846	}
15847	return ret, nil
15848	// {
15849	//   "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`.",
15850	//   "flatPath": "v1/organizations/{organizationsId}/apis/{apisId}/revisions/{revisionsId}",
15851	//   "httpMethod": "POST",
15852	//   "id": "apigee.organizations.apis.revisions.updateApiProxyRevision",
15853	//   "parameterOrder": [
15854	//     "name"
15855	//   ],
15856	//   "parameters": {
15857	//     "name": {
15858	//       "description": "Required. API proxy revision to update in the following format: `organizations/{org}/apis/{api}/revisions/{rev}`",
15859	//       "location": "path",
15860	//       "pattern": "^organizations/[^/]+/apis/[^/]+/revisions/[^/]+$",
15861	//       "required": true,
15862	//       "type": "string"
15863	//     },
15864	//     "validate": {
15865	//       "description": "Ignored. All uploads are validated regardless of the value of this field. Maintained for compatibility with Apigee Edge API.",
15866	//       "location": "query",
15867	//       "type": "boolean"
15868	//     }
15869	//   },
15870	//   "path": "v1/{+name}",
15871	//   "request": {
15872	//     "$ref": "GoogleApiHttpBody"
15873	//   },
15874	//   "response": {
15875	//     "$ref": "GoogleCloudApigeeV1ApiProxyRevision"
15876	//   },
15877	//   "scopes": [
15878	//     "https://www.googleapis.com/auth/cloud-platform"
15879	//   ]
15880	// }
15881
15882}
15883
15884// method id "apigee.organizations.apis.revisions.deployments.list":
15885
15886type OrganizationsApisRevisionsDeploymentsListCall struct {
15887	s            *Service
15888	parent       string
15889	urlParams_   gensupport.URLParams
15890	ifNoneMatch_ string
15891	ctx_         context.Context
15892	header_      http.Header
15893}
15894
15895// List: Lists all deployments of an API proxy revision.
15896//
15897// - parent: Name of the API proxy revision for which to return
15898//   deployment information in the following format:
15899//   `organizations/{org}/apis/{api}/revisions/{rev}`.
15900func (r *OrganizationsApisRevisionsDeploymentsService) List(parent string) *OrganizationsApisRevisionsDeploymentsListCall {
15901	c := &OrganizationsApisRevisionsDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15902	c.parent = parent
15903	return c
15904}
15905
15906// Fields allows partial responses to be retrieved. See
15907// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
15908// for more information.
15909func (c *OrganizationsApisRevisionsDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsApisRevisionsDeploymentsListCall {
15910	c.urlParams_.Set("fields", googleapi.CombineFields(s))
15911	return c
15912}
15913
15914// IfNoneMatch sets the optional parameter which makes the operation
15915// fail if the object's ETag matches the given value. This is useful for
15916// getting updates only after the object has changed since the last
15917// request. Use googleapi.IsNotModified to check whether the response
15918// error from Do is the result of In-None-Match.
15919func (c *OrganizationsApisRevisionsDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsApisRevisionsDeploymentsListCall {
15920	c.ifNoneMatch_ = entityTag
15921	return c
15922}
15923
15924// Context sets the context to be used in this call's Do method. Any
15925// pending HTTP request will be aborted if the provided context is
15926// canceled.
15927func (c *OrganizationsApisRevisionsDeploymentsListCall) Context(ctx context.Context) *OrganizationsApisRevisionsDeploymentsListCall {
15928	c.ctx_ = ctx
15929	return c
15930}
15931
15932// Header returns an http.Header that can be modified by the caller to
15933// add HTTP headers to the request.
15934func (c *OrganizationsApisRevisionsDeploymentsListCall) Header() http.Header {
15935	if c.header_ == nil {
15936		c.header_ = make(http.Header)
15937	}
15938	return c.header_
15939}
15940
15941func (c *OrganizationsApisRevisionsDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
15942	reqHeaders := make(http.Header)
15943	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
15944	for k, v := range c.header_ {
15945		reqHeaders[k] = v
15946	}
15947	reqHeaders.Set("User-Agent", c.s.userAgent())
15948	if c.ifNoneMatch_ != "" {
15949		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
15950	}
15951	var body io.Reader = nil
15952	c.urlParams_.Set("alt", alt)
15953	c.urlParams_.Set("prettyPrint", "false")
15954	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
15955	urls += "?" + c.urlParams_.Encode()
15956	req, err := http.NewRequest("GET", urls, body)
15957	if err != nil {
15958		return nil, err
15959	}
15960	req.Header = reqHeaders
15961	googleapi.Expand(req.URL, map[string]string{
15962		"parent": c.parent,
15963	})
15964	return gensupport.SendRequest(c.ctx_, c.s.client, req)
15965}
15966
15967// Do executes the "apigee.organizations.apis.revisions.deployments.list" call.
15968// Exactly one of *GoogleCloudApigeeV1ListDeploymentsResponse or error
15969// will be non-nil. Any non-2xx status code is an error. Response
15970// headers are in either
15971// *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or
15972// (if a response was returned at all) in
15973// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
15974// whether the returned error was because http.StatusNotModified was
15975// returned.
15976func (c *OrganizationsApisRevisionsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
15977	gensupport.SetOptions(c.urlParams_, opts...)
15978	res, err := c.doRequest("json")
15979	if res != nil && res.StatusCode == http.StatusNotModified {
15980		if res.Body != nil {
15981			res.Body.Close()
15982		}
15983		return nil, &googleapi.Error{
15984			Code:   res.StatusCode,
15985			Header: res.Header,
15986		}
15987	}
15988	if err != nil {
15989		return nil, err
15990	}
15991	defer googleapi.CloseBody(res)
15992	if err := googleapi.CheckResponse(res); err != nil {
15993		return nil, err
15994	}
15995	ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
15996		ServerResponse: googleapi.ServerResponse{
15997			Header:         res.Header,
15998			HTTPStatusCode: res.StatusCode,
15999		},
16000	}
16001	target := &ret
16002	if err := gensupport.DecodeResponse(target, res); err != nil {
16003		return nil, err
16004	}
16005	return ret, nil
16006	// {
16007	//   "description": "Lists all deployments of an API proxy revision.",
16008	//   "flatPath": "v1/organizations/{organizationsId}/apis/{apisId}/revisions/{revisionsId}/deployments",
16009	//   "httpMethod": "GET",
16010	//   "id": "apigee.organizations.apis.revisions.deployments.list",
16011	//   "parameterOrder": [
16012	//     "parent"
16013	//   ],
16014	//   "parameters": {
16015	//     "parent": {
16016	//       "description": "Required. Name of the API proxy revision for which to return deployment information in the following format: `organizations/{org}/apis/{api}/revisions/{rev}`.",
16017	//       "location": "path",
16018	//       "pattern": "^organizations/[^/]+/apis/[^/]+/revisions/[^/]+$",
16019	//       "required": true,
16020	//       "type": "string"
16021	//     }
16022	//   },
16023	//   "path": "v1/{+parent}/deployments",
16024	//   "response": {
16025	//     "$ref": "GoogleCloudApigeeV1ListDeploymentsResponse"
16026	//   },
16027	//   "scopes": [
16028	//     "https://www.googleapis.com/auth/cloud-platform"
16029	//   ]
16030	// }
16031
16032}
16033
16034// method id "apigee.organizations.apps.get":
16035
16036type OrganizationsAppsGetCall struct {
16037	s            *Service
16038	name         string
16039	urlParams_   gensupport.URLParams
16040	ifNoneMatch_ string
16041	ctx_         context.Context
16042	header_      http.Header
16043}
16044
16045// Get: Gets the app profile for the specified app ID.
16046//
16047// - name: App ID in the following format:
16048//   `organizations/{org}/apps/{app}`.
16049func (r *OrganizationsAppsService) Get(name string) *OrganizationsAppsGetCall {
16050	c := &OrganizationsAppsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16051	c.name = name
16052	return c
16053}
16054
16055// Fields allows partial responses to be retrieved. See
16056// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
16057// for more information.
16058func (c *OrganizationsAppsGetCall) Fields(s ...googleapi.Field) *OrganizationsAppsGetCall {
16059	c.urlParams_.Set("fields", googleapi.CombineFields(s))
16060	return c
16061}
16062
16063// IfNoneMatch sets the optional parameter which makes the operation
16064// fail if the object's ETag matches the given value. This is useful for
16065// getting updates only after the object has changed since the last
16066// request. Use googleapi.IsNotModified to check whether the response
16067// error from Do is the result of In-None-Match.
16068func (c *OrganizationsAppsGetCall) IfNoneMatch(entityTag string) *OrganizationsAppsGetCall {
16069	c.ifNoneMatch_ = entityTag
16070	return c
16071}
16072
16073// Context sets the context to be used in this call's Do method. Any
16074// pending HTTP request will be aborted if the provided context is
16075// canceled.
16076func (c *OrganizationsAppsGetCall) Context(ctx context.Context) *OrganizationsAppsGetCall {
16077	c.ctx_ = ctx
16078	return c
16079}
16080
16081// Header returns an http.Header that can be modified by the caller to
16082// add HTTP headers to the request.
16083func (c *OrganizationsAppsGetCall) Header() http.Header {
16084	if c.header_ == nil {
16085		c.header_ = make(http.Header)
16086	}
16087	return c.header_
16088}
16089
16090func (c *OrganizationsAppsGetCall) doRequest(alt string) (*http.Response, error) {
16091	reqHeaders := make(http.Header)
16092	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
16093	for k, v := range c.header_ {
16094		reqHeaders[k] = v
16095	}
16096	reqHeaders.Set("User-Agent", c.s.userAgent())
16097	if c.ifNoneMatch_ != "" {
16098		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16099	}
16100	var body io.Reader = nil
16101	c.urlParams_.Set("alt", alt)
16102	c.urlParams_.Set("prettyPrint", "false")
16103	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
16104	urls += "?" + c.urlParams_.Encode()
16105	req, err := http.NewRequest("GET", urls, body)
16106	if err != nil {
16107		return nil, err
16108	}
16109	req.Header = reqHeaders
16110	googleapi.Expand(req.URL, map[string]string{
16111		"name": c.name,
16112	})
16113	return gensupport.SendRequest(c.ctx_, c.s.client, req)
16114}
16115
16116// Do executes the "apigee.organizations.apps.get" call.
16117// Exactly one of *GoogleCloudApigeeV1App or error will be non-nil. Any
16118// non-2xx status code is an error. Response headers are in either
16119// *GoogleCloudApigeeV1App.ServerResponse.Header or (if a response was
16120// returned at all) in error.(*googleapi.Error).Header. Use
16121// googleapi.IsNotModified to check whether the returned error was
16122// because http.StatusNotModified was returned.
16123func (c *OrganizationsAppsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1App, error) {
16124	gensupport.SetOptions(c.urlParams_, opts...)
16125	res, err := c.doRequest("json")
16126	if res != nil && res.StatusCode == http.StatusNotModified {
16127		if res.Body != nil {
16128			res.Body.Close()
16129		}
16130		return nil, &googleapi.Error{
16131			Code:   res.StatusCode,
16132			Header: res.Header,
16133		}
16134	}
16135	if err != nil {
16136		return nil, err
16137	}
16138	defer googleapi.CloseBody(res)
16139	if err := googleapi.CheckResponse(res); err != nil {
16140		return nil, err
16141	}
16142	ret := &GoogleCloudApigeeV1App{
16143		ServerResponse: googleapi.ServerResponse{
16144			Header:         res.Header,
16145			HTTPStatusCode: res.StatusCode,
16146		},
16147	}
16148	target := &ret
16149	if err := gensupport.DecodeResponse(target, res); err != nil {
16150		return nil, err
16151	}
16152	return ret, nil
16153	// {
16154	//   "description": "Gets the app profile for the specified app ID.",
16155	//   "flatPath": "v1/organizations/{organizationsId}/apps/{appsId}",
16156	//   "httpMethod": "GET",
16157	//   "id": "apigee.organizations.apps.get",
16158	//   "parameterOrder": [
16159	//     "name"
16160	//   ],
16161	//   "parameters": {
16162	//     "name": {
16163	//       "description": "Required. App ID in the following format: `organizations/{org}/apps/{app}`",
16164	//       "location": "path",
16165	//       "pattern": "^organizations/[^/]+/apps/[^/]+$",
16166	//       "required": true,
16167	//       "type": "string"
16168	//     }
16169	//   },
16170	//   "path": "v1/{+name}",
16171	//   "response": {
16172	//     "$ref": "GoogleCloudApigeeV1App"
16173	//   },
16174	//   "scopes": [
16175	//     "https://www.googleapis.com/auth/cloud-platform"
16176	//   ]
16177	// }
16178
16179}
16180
16181// method id "apigee.organizations.apps.list":
16182
16183type OrganizationsAppsListCall struct {
16184	s            *Service
16185	parent       string
16186	urlParams_   gensupport.URLParams
16187	ifNoneMatch_ string
16188	ctx_         context.Context
16189	header_      http.Header
16190}
16191
16192// List: Lists IDs of apps within an organization that have the
16193// specified app status (approved or revoked) or are of the specified
16194// app type (developer or company).
16195//
16196// - parent: Resource path of the parent in the following format:
16197//   `organizations/{org}`.
16198func (r *OrganizationsAppsService) List(parent string) *OrganizationsAppsListCall {
16199	c := &OrganizationsAppsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16200	c.parent = parent
16201	return c
16202}
16203
16204// ApiProduct sets the optional parameter "apiProduct": API product.
16205func (c *OrganizationsAppsListCall) ApiProduct(apiProduct string) *OrganizationsAppsListCall {
16206	c.urlParams_.Set("apiProduct", apiProduct)
16207	return c
16208}
16209
16210// Apptype sets the optional parameter "apptype": Filter by the type of
16211// the app. Valid values are `company` or `developer`. Defaults to
16212// `developer`.
16213func (c *OrganizationsAppsListCall) Apptype(apptype string) *OrganizationsAppsListCall {
16214	c.urlParams_.Set("apptype", apptype)
16215	return c
16216}
16217
16218// Expand sets the optional parameter "expand": Flag that specifies
16219// whether to return an expanded list of apps for the organization.
16220// Defaults to `false`.
16221func (c *OrganizationsAppsListCall) Expand(expand bool) *OrganizationsAppsListCall {
16222	c.urlParams_.Set("expand", fmt.Sprint(expand))
16223	return c
16224}
16225
16226// Ids sets the optional parameter "ids": Comma-separated list of app
16227// IDs on which to filter.
16228func (c *OrganizationsAppsListCall) Ids(ids string) *OrganizationsAppsListCall {
16229	c.urlParams_.Set("ids", ids)
16230	return c
16231}
16232
16233// IncludeCred sets the optional parameter "includeCred": Flag that
16234// specifies whether to include credentials in the response.
16235func (c *OrganizationsAppsListCall) IncludeCred(includeCred bool) *OrganizationsAppsListCall {
16236	c.urlParams_.Set("includeCred", fmt.Sprint(includeCred))
16237	return c
16238}
16239
16240// KeyStatus sets the optional parameter "keyStatus": Key status of the
16241// app. Valid values include `approved` or `revoked`. Defaults to
16242// `approved`.
16243func (c *OrganizationsAppsListCall) KeyStatus(keyStatus string) *OrganizationsAppsListCall {
16244	c.urlParams_.Set("keyStatus", keyStatus)
16245	return c
16246}
16247
16248// Rows sets the optional parameter "rows": Maximum number of app IDs to
16249// return. Defaults to 10000.
16250func (c *OrganizationsAppsListCall) Rows(rows int64) *OrganizationsAppsListCall {
16251	c.urlParams_.Set("rows", fmt.Sprint(rows))
16252	return c
16253}
16254
16255// StartKey sets the optional parameter "startKey": Returns the list of
16256// apps starting from the specified app ID.
16257func (c *OrganizationsAppsListCall) StartKey(startKey string) *OrganizationsAppsListCall {
16258	c.urlParams_.Set("startKey", startKey)
16259	return c
16260}
16261
16262// Status sets the optional parameter "status": Filter by the status of
16263// the app. Valid values are `approved` or `revoked`. Defaults to
16264// `approved`.
16265func (c *OrganizationsAppsListCall) Status(status string) *OrganizationsAppsListCall {
16266	c.urlParams_.Set("status", status)
16267	return c
16268}
16269
16270// Fields allows partial responses to be retrieved. See
16271// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
16272// for more information.
16273func (c *OrganizationsAppsListCall) Fields(s ...googleapi.Field) *OrganizationsAppsListCall {
16274	c.urlParams_.Set("fields", googleapi.CombineFields(s))
16275	return c
16276}
16277
16278// IfNoneMatch sets the optional parameter which makes the operation
16279// fail if the object's ETag matches the given value. This is useful for
16280// getting updates only after the object has changed since the last
16281// request. Use googleapi.IsNotModified to check whether the response
16282// error from Do is the result of In-None-Match.
16283func (c *OrganizationsAppsListCall) IfNoneMatch(entityTag string) *OrganizationsAppsListCall {
16284	c.ifNoneMatch_ = entityTag
16285	return c
16286}
16287
16288// Context sets the context to be used in this call's Do method. Any
16289// pending HTTP request will be aborted if the provided context is
16290// canceled.
16291func (c *OrganizationsAppsListCall) Context(ctx context.Context) *OrganizationsAppsListCall {
16292	c.ctx_ = ctx
16293	return c
16294}
16295
16296// Header returns an http.Header that can be modified by the caller to
16297// add HTTP headers to the request.
16298func (c *OrganizationsAppsListCall) Header() http.Header {
16299	if c.header_ == nil {
16300		c.header_ = make(http.Header)
16301	}
16302	return c.header_
16303}
16304
16305func (c *OrganizationsAppsListCall) doRequest(alt string) (*http.Response, error) {
16306	reqHeaders := make(http.Header)
16307	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
16308	for k, v := range c.header_ {
16309		reqHeaders[k] = v
16310	}
16311	reqHeaders.Set("User-Agent", c.s.userAgent())
16312	if c.ifNoneMatch_ != "" {
16313		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16314	}
16315	var body io.Reader = nil
16316	c.urlParams_.Set("alt", alt)
16317	c.urlParams_.Set("prettyPrint", "false")
16318	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apps")
16319	urls += "?" + c.urlParams_.Encode()
16320	req, err := http.NewRequest("GET", urls, body)
16321	if err != nil {
16322		return nil, err
16323	}
16324	req.Header = reqHeaders
16325	googleapi.Expand(req.URL, map[string]string{
16326		"parent": c.parent,
16327	})
16328	return gensupport.SendRequest(c.ctx_, c.s.client, req)
16329}
16330
16331// Do executes the "apigee.organizations.apps.list" call.
16332// Exactly one of *GoogleCloudApigeeV1ListAppsResponse or error will be
16333// non-nil. Any non-2xx status code is an error. Response headers are in
16334// either *GoogleCloudApigeeV1ListAppsResponse.ServerResponse.Header or
16335// (if a response was returned at all) in
16336// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
16337// whether the returned error was because http.StatusNotModified was
16338// returned.
16339func (c *OrganizationsAppsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListAppsResponse, error) {
16340	gensupport.SetOptions(c.urlParams_, opts...)
16341	res, err := c.doRequest("json")
16342	if res != nil && res.StatusCode == http.StatusNotModified {
16343		if res.Body != nil {
16344			res.Body.Close()
16345		}
16346		return nil, &googleapi.Error{
16347			Code:   res.StatusCode,
16348			Header: res.Header,
16349		}
16350	}
16351	if err != nil {
16352		return nil, err
16353	}
16354	defer googleapi.CloseBody(res)
16355	if err := googleapi.CheckResponse(res); err != nil {
16356		return nil, err
16357	}
16358	ret := &GoogleCloudApigeeV1ListAppsResponse{
16359		ServerResponse: googleapi.ServerResponse{
16360			Header:         res.Header,
16361			HTTPStatusCode: res.StatusCode,
16362		},
16363	}
16364	target := &ret
16365	if err := gensupport.DecodeResponse(target, res); err != nil {
16366		return nil, err
16367	}
16368	return ret, nil
16369	// {
16370	//   "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).",
16371	//   "flatPath": "v1/organizations/{organizationsId}/apps",
16372	//   "httpMethod": "GET",
16373	//   "id": "apigee.organizations.apps.list",
16374	//   "parameterOrder": [
16375	//     "parent"
16376	//   ],
16377	//   "parameters": {
16378	//     "apiProduct": {
16379	//       "description": "API product.",
16380	//       "location": "query",
16381	//       "type": "string"
16382	//     },
16383	//     "apptype": {
16384	//       "description": "Optional. Filter by the type of the app. Valid values are `company` or `developer`. Defaults to `developer`.",
16385	//       "location": "query",
16386	//       "type": "string"
16387	//     },
16388	//     "expand": {
16389	//       "description": "Optional. Flag that specifies whether to return an expanded list of apps for the organization. Defaults to `false`.",
16390	//       "location": "query",
16391	//       "type": "boolean"
16392	//     },
16393	//     "ids": {
16394	//       "description": "Optional. Comma-separated list of app IDs on which to filter.",
16395	//       "location": "query",
16396	//       "type": "string"
16397	//     },
16398	//     "includeCred": {
16399	//       "description": "Optional. Flag that specifies whether to include credentials in the response.",
16400	//       "location": "query",
16401	//       "type": "boolean"
16402	//     },
16403	//     "keyStatus": {
16404	//       "description": "Optional. Key status of the app. Valid values include `approved` or `revoked`. Defaults to `approved`.",
16405	//       "location": "query",
16406	//       "type": "string"
16407	//     },
16408	//     "parent": {
16409	//       "description": "Required. Resource path of the parent in the following format: `organizations/{org}`",
16410	//       "location": "path",
16411	//       "pattern": "^organizations/[^/]+$",
16412	//       "required": true,
16413	//       "type": "string"
16414	//     },
16415	//     "rows": {
16416	//       "description": "Optional. Maximum number of app IDs to return. Defaults to 10000.",
16417	//       "format": "int64",
16418	//       "location": "query",
16419	//       "type": "string"
16420	//     },
16421	//     "startKey": {
16422	//       "description": "Returns the list of apps starting from the specified app ID.",
16423	//       "location": "query",
16424	//       "type": "string"
16425	//     },
16426	//     "status": {
16427	//       "description": "Optional. Filter by the status of the app. Valid values are `approved` or `revoked`. Defaults to `approved`.",
16428	//       "location": "query",
16429	//       "type": "string"
16430	//     }
16431	//   },
16432	//   "path": "v1/{+parent}/apps",
16433	//   "response": {
16434	//     "$ref": "GoogleCloudApigeeV1ListAppsResponse"
16435	//   },
16436	//   "scopes": [
16437	//     "https://www.googleapis.com/auth/cloud-platform"
16438	//   ]
16439	// }
16440
16441}
16442
16443// method id "apigee.organizations.datacollectors.create":
16444
16445type OrganizationsDatacollectorsCreateCall struct {
16446	s                                *Service
16447	parent                           string
16448	googlecloudapigeev1datacollector *GoogleCloudApigeeV1DataCollector
16449	urlParams_                       gensupport.URLParams
16450	ctx_                             context.Context
16451	header_                          http.Header
16452}
16453
16454// Create: Creates a new data collector.
16455//
16456// - parent: Name of the organization in which to create the data
16457//   collector in the following format: `organizations/{org}`.
16458func (r *OrganizationsDatacollectorsService) Create(parent string, googlecloudapigeev1datacollector *GoogleCloudApigeeV1DataCollector) *OrganizationsDatacollectorsCreateCall {
16459	c := &OrganizationsDatacollectorsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16460	c.parent = parent
16461	c.googlecloudapigeev1datacollector = googlecloudapigeev1datacollector
16462	return c
16463}
16464
16465// DataCollectorId sets the optional parameter "dataCollectorId": ID of
16466// the data collector. Overrides any ID in the data collector resource.
16467// Must begin with `dc_`.
16468func (c *OrganizationsDatacollectorsCreateCall) DataCollectorId(dataCollectorId string) *OrganizationsDatacollectorsCreateCall {
16469	c.urlParams_.Set("dataCollectorId", dataCollectorId)
16470	return c
16471}
16472
16473// Fields allows partial responses to be retrieved. See
16474// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
16475// for more information.
16476func (c *OrganizationsDatacollectorsCreateCall) Fields(s ...googleapi.Field) *OrganizationsDatacollectorsCreateCall {
16477	c.urlParams_.Set("fields", googleapi.CombineFields(s))
16478	return c
16479}
16480
16481// Context sets the context to be used in this call's Do method. Any
16482// pending HTTP request will be aborted if the provided context is
16483// canceled.
16484func (c *OrganizationsDatacollectorsCreateCall) Context(ctx context.Context) *OrganizationsDatacollectorsCreateCall {
16485	c.ctx_ = ctx
16486	return c
16487}
16488
16489// Header returns an http.Header that can be modified by the caller to
16490// add HTTP headers to the request.
16491func (c *OrganizationsDatacollectorsCreateCall) Header() http.Header {
16492	if c.header_ == nil {
16493		c.header_ = make(http.Header)
16494	}
16495	return c.header_
16496}
16497
16498func (c *OrganizationsDatacollectorsCreateCall) doRequest(alt string) (*http.Response, error) {
16499	reqHeaders := make(http.Header)
16500	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
16501	for k, v := range c.header_ {
16502		reqHeaders[k] = v
16503	}
16504	reqHeaders.Set("User-Agent", c.s.userAgent())
16505	var body io.Reader = nil
16506	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1datacollector)
16507	if err != nil {
16508		return nil, err
16509	}
16510	reqHeaders.Set("Content-Type", "application/json")
16511	c.urlParams_.Set("alt", alt)
16512	c.urlParams_.Set("prettyPrint", "false")
16513	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/datacollectors")
16514	urls += "?" + c.urlParams_.Encode()
16515	req, err := http.NewRequest("POST", urls, body)
16516	if err != nil {
16517		return nil, err
16518	}
16519	req.Header = reqHeaders
16520	googleapi.Expand(req.URL, map[string]string{
16521		"parent": c.parent,
16522	})
16523	return gensupport.SendRequest(c.ctx_, c.s.client, req)
16524}
16525
16526// Do executes the "apigee.organizations.datacollectors.create" call.
16527// Exactly one of *GoogleCloudApigeeV1DataCollector or error will be
16528// non-nil. Any non-2xx status code is an error. Response headers are in
16529// either *GoogleCloudApigeeV1DataCollector.ServerResponse.Header or (if
16530// a response was returned at all) in error.(*googleapi.Error).Header.
16531// Use googleapi.IsNotModified to check whether the returned error was
16532// because http.StatusNotModified was returned.
16533func (c *OrganizationsDatacollectorsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DataCollector, error) {
16534	gensupport.SetOptions(c.urlParams_, opts...)
16535	res, err := c.doRequest("json")
16536	if res != nil && res.StatusCode == http.StatusNotModified {
16537		if res.Body != nil {
16538			res.Body.Close()
16539		}
16540		return nil, &googleapi.Error{
16541			Code:   res.StatusCode,
16542			Header: res.Header,
16543		}
16544	}
16545	if err != nil {
16546		return nil, err
16547	}
16548	defer googleapi.CloseBody(res)
16549	if err := googleapi.CheckResponse(res); err != nil {
16550		return nil, err
16551	}
16552	ret := &GoogleCloudApigeeV1DataCollector{
16553		ServerResponse: googleapi.ServerResponse{
16554			Header:         res.Header,
16555			HTTPStatusCode: res.StatusCode,
16556		},
16557	}
16558	target := &ret
16559	if err := gensupport.DecodeResponse(target, res); err != nil {
16560		return nil, err
16561	}
16562	return ret, nil
16563	// {
16564	//   "description": "Creates a new data collector.",
16565	//   "flatPath": "v1/organizations/{organizationsId}/datacollectors",
16566	//   "httpMethod": "POST",
16567	//   "id": "apigee.organizations.datacollectors.create",
16568	//   "parameterOrder": [
16569	//     "parent"
16570	//   ],
16571	//   "parameters": {
16572	//     "dataCollectorId": {
16573	//       "description": "ID of the data collector. Overrides any ID in the data collector resource. Must begin with `dc_`.",
16574	//       "location": "query",
16575	//       "type": "string"
16576	//     },
16577	//     "parent": {
16578	//       "description": "Required. Name of the organization in which to create the data collector in the following format: `organizations/{org}`.",
16579	//       "location": "path",
16580	//       "pattern": "^organizations/[^/]+$",
16581	//       "required": true,
16582	//       "type": "string"
16583	//     }
16584	//   },
16585	//   "path": "v1/{+parent}/datacollectors",
16586	//   "request": {
16587	//     "$ref": "GoogleCloudApigeeV1DataCollector"
16588	//   },
16589	//   "response": {
16590	//     "$ref": "GoogleCloudApigeeV1DataCollector"
16591	//   },
16592	//   "scopes": [
16593	//     "https://www.googleapis.com/auth/cloud-platform"
16594	//   ]
16595	// }
16596
16597}
16598
16599// method id "apigee.organizations.datacollectors.delete":
16600
16601type OrganizationsDatacollectorsDeleteCall struct {
16602	s          *Service
16603	name       string
16604	urlParams_ gensupport.URLParams
16605	ctx_       context.Context
16606	header_    http.Header
16607}
16608
16609// Delete: Deletes a data collector.
16610//
16611// - name: Name of the data collector in the following format:
16612//   `organizations/{org}/datacollectors/{data_collector_id}`.
16613func (r *OrganizationsDatacollectorsService) Delete(name string) *OrganizationsDatacollectorsDeleteCall {
16614	c := &OrganizationsDatacollectorsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16615	c.name = name
16616	return c
16617}
16618
16619// Fields allows partial responses to be retrieved. See
16620// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
16621// for more information.
16622func (c *OrganizationsDatacollectorsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDatacollectorsDeleteCall {
16623	c.urlParams_.Set("fields", googleapi.CombineFields(s))
16624	return c
16625}
16626
16627// Context sets the context to be used in this call's Do method. Any
16628// pending HTTP request will be aborted if the provided context is
16629// canceled.
16630func (c *OrganizationsDatacollectorsDeleteCall) Context(ctx context.Context) *OrganizationsDatacollectorsDeleteCall {
16631	c.ctx_ = ctx
16632	return c
16633}
16634
16635// Header returns an http.Header that can be modified by the caller to
16636// add HTTP headers to the request.
16637func (c *OrganizationsDatacollectorsDeleteCall) Header() http.Header {
16638	if c.header_ == nil {
16639		c.header_ = make(http.Header)
16640	}
16641	return c.header_
16642}
16643
16644func (c *OrganizationsDatacollectorsDeleteCall) doRequest(alt string) (*http.Response, error) {
16645	reqHeaders := make(http.Header)
16646	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
16647	for k, v := range c.header_ {
16648		reqHeaders[k] = v
16649	}
16650	reqHeaders.Set("User-Agent", c.s.userAgent())
16651	var body io.Reader = nil
16652	c.urlParams_.Set("alt", alt)
16653	c.urlParams_.Set("prettyPrint", "false")
16654	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
16655	urls += "?" + c.urlParams_.Encode()
16656	req, err := http.NewRequest("DELETE", urls, body)
16657	if err != nil {
16658		return nil, err
16659	}
16660	req.Header = reqHeaders
16661	googleapi.Expand(req.URL, map[string]string{
16662		"name": c.name,
16663	})
16664	return gensupport.SendRequest(c.ctx_, c.s.client, req)
16665}
16666
16667// Do executes the "apigee.organizations.datacollectors.delete" call.
16668// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
16669// non-2xx status code is an error. Response headers are in either
16670// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
16671// returned at all) in error.(*googleapi.Error).Header. Use
16672// googleapi.IsNotModified to check whether the returned error was
16673// because http.StatusNotModified was returned.
16674func (c *OrganizationsDatacollectorsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
16675	gensupport.SetOptions(c.urlParams_, opts...)
16676	res, err := c.doRequest("json")
16677	if res != nil && res.StatusCode == http.StatusNotModified {
16678		if res.Body != nil {
16679			res.Body.Close()
16680		}
16681		return nil, &googleapi.Error{
16682			Code:   res.StatusCode,
16683			Header: res.Header,
16684		}
16685	}
16686	if err != nil {
16687		return nil, err
16688	}
16689	defer googleapi.CloseBody(res)
16690	if err := googleapi.CheckResponse(res); err != nil {
16691		return nil, err
16692	}
16693	ret := &GoogleProtobufEmpty{
16694		ServerResponse: googleapi.ServerResponse{
16695			Header:         res.Header,
16696			HTTPStatusCode: res.StatusCode,
16697		},
16698	}
16699	target := &ret
16700	if err := gensupport.DecodeResponse(target, res); err != nil {
16701		return nil, err
16702	}
16703	return ret, nil
16704	// {
16705	//   "description": "Deletes a data collector.",
16706	//   "flatPath": "v1/organizations/{organizationsId}/datacollectors/{datacollectorsId}",
16707	//   "httpMethod": "DELETE",
16708	//   "id": "apigee.organizations.datacollectors.delete",
16709	//   "parameterOrder": [
16710	//     "name"
16711	//   ],
16712	//   "parameters": {
16713	//     "name": {
16714	//       "description": "Required. Name of the data collector in the following format: `organizations/{org}/datacollectors/{data_collector_id}`.",
16715	//       "location": "path",
16716	//       "pattern": "^organizations/[^/]+/datacollectors/[^/]+$",
16717	//       "required": true,
16718	//       "type": "string"
16719	//     }
16720	//   },
16721	//   "path": "v1/{+name}",
16722	//   "response": {
16723	//     "$ref": "GoogleProtobufEmpty"
16724	//   },
16725	//   "scopes": [
16726	//     "https://www.googleapis.com/auth/cloud-platform"
16727	//   ]
16728	// }
16729
16730}
16731
16732// method id "apigee.organizations.datacollectors.get":
16733
16734type OrganizationsDatacollectorsGetCall struct {
16735	s            *Service
16736	name         string
16737	urlParams_   gensupport.URLParams
16738	ifNoneMatch_ string
16739	ctx_         context.Context
16740	header_      http.Header
16741}
16742
16743// Get: Gets a data collector.
16744//
16745// - name: Name of the data collector in the following format:
16746//   `organizations/{org}/datacollectors/{data_collector_id}`.
16747func (r *OrganizationsDatacollectorsService) Get(name string) *OrganizationsDatacollectorsGetCall {
16748	c := &OrganizationsDatacollectorsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16749	c.name = name
16750	return c
16751}
16752
16753// Fields allows partial responses to be retrieved. See
16754// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
16755// for more information.
16756func (c *OrganizationsDatacollectorsGetCall) Fields(s ...googleapi.Field) *OrganizationsDatacollectorsGetCall {
16757	c.urlParams_.Set("fields", googleapi.CombineFields(s))
16758	return c
16759}
16760
16761// IfNoneMatch sets the optional parameter which makes the operation
16762// fail if the object's ETag matches the given value. This is useful for
16763// getting updates only after the object has changed since the last
16764// request. Use googleapi.IsNotModified to check whether the response
16765// error from Do is the result of In-None-Match.
16766func (c *OrganizationsDatacollectorsGetCall) IfNoneMatch(entityTag string) *OrganizationsDatacollectorsGetCall {
16767	c.ifNoneMatch_ = entityTag
16768	return c
16769}
16770
16771// Context sets the context to be used in this call's Do method. Any
16772// pending HTTP request will be aborted if the provided context is
16773// canceled.
16774func (c *OrganizationsDatacollectorsGetCall) Context(ctx context.Context) *OrganizationsDatacollectorsGetCall {
16775	c.ctx_ = ctx
16776	return c
16777}
16778
16779// Header returns an http.Header that can be modified by the caller to
16780// add HTTP headers to the request.
16781func (c *OrganizationsDatacollectorsGetCall) Header() http.Header {
16782	if c.header_ == nil {
16783		c.header_ = make(http.Header)
16784	}
16785	return c.header_
16786}
16787
16788func (c *OrganizationsDatacollectorsGetCall) doRequest(alt string) (*http.Response, error) {
16789	reqHeaders := make(http.Header)
16790	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
16791	for k, v := range c.header_ {
16792		reqHeaders[k] = v
16793	}
16794	reqHeaders.Set("User-Agent", c.s.userAgent())
16795	if c.ifNoneMatch_ != "" {
16796		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16797	}
16798	var body io.Reader = nil
16799	c.urlParams_.Set("alt", alt)
16800	c.urlParams_.Set("prettyPrint", "false")
16801	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
16802	urls += "?" + c.urlParams_.Encode()
16803	req, err := http.NewRequest("GET", urls, body)
16804	if err != nil {
16805		return nil, err
16806	}
16807	req.Header = reqHeaders
16808	googleapi.Expand(req.URL, map[string]string{
16809		"name": c.name,
16810	})
16811	return gensupport.SendRequest(c.ctx_, c.s.client, req)
16812}
16813
16814// Do executes the "apigee.organizations.datacollectors.get" call.
16815// Exactly one of *GoogleCloudApigeeV1DataCollector or error will be
16816// non-nil. Any non-2xx status code is an error. Response headers are in
16817// either *GoogleCloudApigeeV1DataCollector.ServerResponse.Header or (if
16818// a response was returned at all) in error.(*googleapi.Error).Header.
16819// Use googleapi.IsNotModified to check whether the returned error was
16820// because http.StatusNotModified was returned.
16821func (c *OrganizationsDatacollectorsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DataCollector, error) {
16822	gensupport.SetOptions(c.urlParams_, opts...)
16823	res, err := c.doRequest("json")
16824	if res != nil && res.StatusCode == http.StatusNotModified {
16825		if res.Body != nil {
16826			res.Body.Close()
16827		}
16828		return nil, &googleapi.Error{
16829			Code:   res.StatusCode,
16830			Header: res.Header,
16831		}
16832	}
16833	if err != nil {
16834		return nil, err
16835	}
16836	defer googleapi.CloseBody(res)
16837	if err := googleapi.CheckResponse(res); err != nil {
16838		return nil, err
16839	}
16840	ret := &GoogleCloudApigeeV1DataCollector{
16841		ServerResponse: googleapi.ServerResponse{
16842			Header:         res.Header,
16843			HTTPStatusCode: res.StatusCode,
16844		},
16845	}
16846	target := &ret
16847	if err := gensupport.DecodeResponse(target, res); err != nil {
16848		return nil, err
16849	}
16850	return ret, nil
16851	// {
16852	//   "description": "Gets a data collector.",
16853	//   "flatPath": "v1/organizations/{organizationsId}/datacollectors/{datacollectorsId}",
16854	//   "httpMethod": "GET",
16855	//   "id": "apigee.organizations.datacollectors.get",
16856	//   "parameterOrder": [
16857	//     "name"
16858	//   ],
16859	//   "parameters": {
16860	//     "name": {
16861	//       "description": "Required. Name of the data collector in the following format: `organizations/{org}/datacollectors/{data_collector_id}`.",
16862	//       "location": "path",
16863	//       "pattern": "^organizations/[^/]+/datacollectors/[^/]+$",
16864	//       "required": true,
16865	//       "type": "string"
16866	//     }
16867	//   },
16868	//   "path": "v1/{+name}",
16869	//   "response": {
16870	//     "$ref": "GoogleCloudApigeeV1DataCollector"
16871	//   },
16872	//   "scopes": [
16873	//     "https://www.googleapis.com/auth/cloud-platform"
16874	//   ]
16875	// }
16876
16877}
16878
16879// method id "apigee.organizations.datacollectors.list":
16880
16881type OrganizationsDatacollectorsListCall struct {
16882	s            *Service
16883	parent       string
16884	urlParams_   gensupport.URLParams
16885	ifNoneMatch_ string
16886	ctx_         context.Context
16887	header_      http.Header
16888}
16889
16890// List: Lists all data collectors.
16891//
16892// - parent: Name of the organization for which to list data collectors
16893//   in the following format: `organizations/{org}`.
16894func (r *OrganizationsDatacollectorsService) List(parent string) *OrganizationsDatacollectorsListCall {
16895	c := &OrganizationsDatacollectorsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16896	c.parent = parent
16897	return c
16898}
16899
16900// PageSize sets the optional parameter "pageSize": Maximum number of
16901// data collectors to return. The page size defaults to 25.
16902func (c *OrganizationsDatacollectorsListCall) PageSize(pageSize int64) *OrganizationsDatacollectorsListCall {
16903	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
16904	return c
16905}
16906
16907// PageToken sets the optional parameter "pageToken": Page token,
16908// returned from a previous ListDataCollectors call, that you can use to
16909// retrieve the next page.
16910func (c *OrganizationsDatacollectorsListCall) PageToken(pageToken string) *OrganizationsDatacollectorsListCall {
16911	c.urlParams_.Set("pageToken", pageToken)
16912	return c
16913}
16914
16915// Fields allows partial responses to be retrieved. See
16916// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
16917// for more information.
16918func (c *OrganizationsDatacollectorsListCall) Fields(s ...googleapi.Field) *OrganizationsDatacollectorsListCall {
16919	c.urlParams_.Set("fields", googleapi.CombineFields(s))
16920	return c
16921}
16922
16923// IfNoneMatch sets the optional parameter which makes the operation
16924// fail if the object's ETag matches the given value. This is useful for
16925// getting updates only after the object has changed since the last
16926// request. Use googleapi.IsNotModified to check whether the response
16927// error from Do is the result of In-None-Match.
16928func (c *OrganizationsDatacollectorsListCall) IfNoneMatch(entityTag string) *OrganizationsDatacollectorsListCall {
16929	c.ifNoneMatch_ = entityTag
16930	return c
16931}
16932
16933// Context sets the context to be used in this call's Do method. Any
16934// pending HTTP request will be aborted if the provided context is
16935// canceled.
16936func (c *OrganizationsDatacollectorsListCall) Context(ctx context.Context) *OrganizationsDatacollectorsListCall {
16937	c.ctx_ = ctx
16938	return c
16939}
16940
16941// Header returns an http.Header that can be modified by the caller to
16942// add HTTP headers to the request.
16943func (c *OrganizationsDatacollectorsListCall) Header() http.Header {
16944	if c.header_ == nil {
16945		c.header_ = make(http.Header)
16946	}
16947	return c.header_
16948}
16949
16950func (c *OrganizationsDatacollectorsListCall) doRequest(alt string) (*http.Response, error) {
16951	reqHeaders := make(http.Header)
16952	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
16953	for k, v := range c.header_ {
16954		reqHeaders[k] = v
16955	}
16956	reqHeaders.Set("User-Agent", c.s.userAgent())
16957	if c.ifNoneMatch_ != "" {
16958		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16959	}
16960	var body io.Reader = nil
16961	c.urlParams_.Set("alt", alt)
16962	c.urlParams_.Set("prettyPrint", "false")
16963	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/datacollectors")
16964	urls += "?" + c.urlParams_.Encode()
16965	req, err := http.NewRequest("GET", urls, body)
16966	if err != nil {
16967		return nil, err
16968	}
16969	req.Header = reqHeaders
16970	googleapi.Expand(req.URL, map[string]string{
16971		"parent": c.parent,
16972	})
16973	return gensupport.SendRequest(c.ctx_, c.s.client, req)
16974}
16975
16976// Do executes the "apigee.organizations.datacollectors.list" call.
16977// Exactly one of *GoogleCloudApigeeV1ListDataCollectorsResponse or
16978// error will be non-nil. Any non-2xx status code is an error. Response
16979// headers are in either
16980// *GoogleCloudApigeeV1ListDataCollectorsResponse.ServerResponse.Header
16981// or (if a response was returned at all) in
16982// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
16983// whether the returned error was because http.StatusNotModified was
16984// returned.
16985func (c *OrganizationsDatacollectorsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDataCollectorsResponse, error) {
16986	gensupport.SetOptions(c.urlParams_, opts...)
16987	res, err := c.doRequest("json")
16988	if res != nil && res.StatusCode == http.StatusNotModified {
16989		if res.Body != nil {
16990			res.Body.Close()
16991		}
16992		return nil, &googleapi.Error{
16993			Code:   res.StatusCode,
16994			Header: res.Header,
16995		}
16996	}
16997	if err != nil {
16998		return nil, err
16999	}
17000	defer googleapi.CloseBody(res)
17001	if err := googleapi.CheckResponse(res); err != nil {
17002		return nil, err
17003	}
17004	ret := &GoogleCloudApigeeV1ListDataCollectorsResponse{
17005		ServerResponse: googleapi.ServerResponse{
17006			Header:         res.Header,
17007			HTTPStatusCode: res.StatusCode,
17008		},
17009	}
17010	target := &ret
17011	if err := gensupport.DecodeResponse(target, res); err != nil {
17012		return nil, err
17013	}
17014	return ret, nil
17015	// {
17016	//   "description": "Lists all data collectors.",
17017	//   "flatPath": "v1/organizations/{organizationsId}/datacollectors",
17018	//   "httpMethod": "GET",
17019	//   "id": "apigee.organizations.datacollectors.list",
17020	//   "parameterOrder": [
17021	//     "parent"
17022	//   ],
17023	//   "parameters": {
17024	//     "pageSize": {
17025	//       "description": "Maximum number of data collectors to return. The page size defaults to 25.",
17026	//       "format": "int32",
17027	//       "location": "query",
17028	//       "type": "integer"
17029	//     },
17030	//     "pageToken": {
17031	//       "description": "Page token, returned from a previous ListDataCollectors call, that you can use to retrieve the next page.",
17032	//       "location": "query",
17033	//       "type": "string"
17034	//     },
17035	//     "parent": {
17036	//       "description": "Required. Name of the organization for which to list data collectors in the following format: `organizations/{org}`.",
17037	//       "location": "path",
17038	//       "pattern": "^organizations/[^/]+$",
17039	//       "required": true,
17040	//       "type": "string"
17041	//     }
17042	//   },
17043	//   "path": "v1/{+parent}/datacollectors",
17044	//   "response": {
17045	//     "$ref": "GoogleCloudApigeeV1ListDataCollectorsResponse"
17046	//   },
17047	//   "scopes": [
17048	//     "https://www.googleapis.com/auth/cloud-platform"
17049	//   ]
17050	// }
17051
17052}
17053
17054// Pages invokes f for each page of results.
17055// A non-nil error returned from f will halt the iteration.
17056// The provided context supersedes any context provided to the Context method.
17057func (c *OrganizationsDatacollectorsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListDataCollectorsResponse) error) error {
17058	c.ctx_ = ctx
17059	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
17060	for {
17061		x, err := c.Do()
17062		if err != nil {
17063			return err
17064		}
17065		if err := f(x); err != nil {
17066			return err
17067		}
17068		if x.NextPageToken == "" {
17069			return nil
17070		}
17071		c.PageToken(x.NextPageToken)
17072	}
17073}
17074
17075// method id "apigee.organizations.datacollectors.patch":
17076
17077type OrganizationsDatacollectorsPatchCall struct {
17078	s                                *Service
17079	name                             string
17080	googlecloudapigeev1datacollector *GoogleCloudApigeeV1DataCollector
17081	urlParams_                       gensupport.URLParams
17082	ctx_                             context.Context
17083	header_                          http.Header
17084}
17085
17086// Patch: Updates a data collector.
17087//
17088// - name: Name of the data collector in the following format:
17089//   `organizations/{org}/datacollectors/{data_collector_id}`.
17090func (r *OrganizationsDatacollectorsService) Patch(name string, googlecloudapigeev1datacollector *GoogleCloudApigeeV1DataCollector) *OrganizationsDatacollectorsPatchCall {
17091	c := &OrganizationsDatacollectorsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17092	c.name = name
17093	c.googlecloudapigeev1datacollector = googlecloudapigeev1datacollector
17094	return c
17095}
17096
17097// UpdateMask sets the optional parameter "updateMask": List of fields
17098// to be updated.
17099func (c *OrganizationsDatacollectorsPatchCall) UpdateMask(updateMask string) *OrganizationsDatacollectorsPatchCall {
17100	c.urlParams_.Set("updateMask", updateMask)
17101	return c
17102}
17103
17104// Fields allows partial responses to be retrieved. See
17105// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
17106// for more information.
17107func (c *OrganizationsDatacollectorsPatchCall) Fields(s ...googleapi.Field) *OrganizationsDatacollectorsPatchCall {
17108	c.urlParams_.Set("fields", googleapi.CombineFields(s))
17109	return c
17110}
17111
17112// Context sets the context to be used in this call's Do method. Any
17113// pending HTTP request will be aborted if the provided context is
17114// canceled.
17115func (c *OrganizationsDatacollectorsPatchCall) Context(ctx context.Context) *OrganizationsDatacollectorsPatchCall {
17116	c.ctx_ = ctx
17117	return c
17118}
17119
17120// Header returns an http.Header that can be modified by the caller to
17121// add HTTP headers to the request.
17122func (c *OrganizationsDatacollectorsPatchCall) Header() http.Header {
17123	if c.header_ == nil {
17124		c.header_ = make(http.Header)
17125	}
17126	return c.header_
17127}
17128
17129func (c *OrganizationsDatacollectorsPatchCall) doRequest(alt string) (*http.Response, error) {
17130	reqHeaders := make(http.Header)
17131	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
17132	for k, v := range c.header_ {
17133		reqHeaders[k] = v
17134	}
17135	reqHeaders.Set("User-Agent", c.s.userAgent())
17136	var body io.Reader = nil
17137	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1datacollector)
17138	if err != nil {
17139		return nil, err
17140	}
17141	reqHeaders.Set("Content-Type", "application/json")
17142	c.urlParams_.Set("alt", alt)
17143	c.urlParams_.Set("prettyPrint", "false")
17144	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
17145	urls += "?" + c.urlParams_.Encode()
17146	req, err := http.NewRequest("PATCH", urls, body)
17147	if err != nil {
17148		return nil, err
17149	}
17150	req.Header = reqHeaders
17151	googleapi.Expand(req.URL, map[string]string{
17152		"name": c.name,
17153	})
17154	return gensupport.SendRequest(c.ctx_, c.s.client, req)
17155}
17156
17157// Do executes the "apigee.organizations.datacollectors.patch" call.
17158// Exactly one of *GoogleCloudApigeeV1DataCollector or error will be
17159// non-nil. Any non-2xx status code is an error. Response headers are in
17160// either *GoogleCloudApigeeV1DataCollector.ServerResponse.Header or (if
17161// a response was returned at all) in error.(*googleapi.Error).Header.
17162// Use googleapi.IsNotModified to check whether the returned error was
17163// because http.StatusNotModified was returned.
17164func (c *OrganizationsDatacollectorsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DataCollector, error) {
17165	gensupport.SetOptions(c.urlParams_, opts...)
17166	res, err := c.doRequest("json")
17167	if res != nil && res.StatusCode == http.StatusNotModified {
17168		if res.Body != nil {
17169			res.Body.Close()
17170		}
17171		return nil, &googleapi.Error{
17172			Code:   res.StatusCode,
17173			Header: res.Header,
17174		}
17175	}
17176	if err != nil {
17177		return nil, err
17178	}
17179	defer googleapi.CloseBody(res)
17180	if err := googleapi.CheckResponse(res); err != nil {
17181		return nil, err
17182	}
17183	ret := &GoogleCloudApigeeV1DataCollector{
17184		ServerResponse: googleapi.ServerResponse{
17185			Header:         res.Header,
17186			HTTPStatusCode: res.StatusCode,
17187		},
17188	}
17189	target := &ret
17190	if err := gensupport.DecodeResponse(target, res); err != nil {
17191		return nil, err
17192	}
17193	return ret, nil
17194	// {
17195	//   "description": "Updates a data collector.",
17196	//   "flatPath": "v1/organizations/{organizationsId}/datacollectors/{datacollectorsId}",
17197	//   "httpMethod": "PATCH",
17198	//   "id": "apigee.organizations.datacollectors.patch",
17199	//   "parameterOrder": [
17200	//     "name"
17201	//   ],
17202	//   "parameters": {
17203	//     "name": {
17204	//       "description": "Required. Name of the data collector in the following format: `organizations/{org}/datacollectors/{data_collector_id}`.",
17205	//       "location": "path",
17206	//       "pattern": "^organizations/[^/]+/datacollectors/[^/]+$",
17207	//       "required": true,
17208	//       "type": "string"
17209	//     },
17210	//     "updateMask": {
17211	//       "description": "List of fields to be updated.",
17212	//       "format": "google-fieldmask",
17213	//       "location": "query",
17214	//       "type": "string"
17215	//     }
17216	//   },
17217	//   "path": "v1/{+name}",
17218	//   "request": {
17219	//     "$ref": "GoogleCloudApigeeV1DataCollector"
17220	//   },
17221	//   "response": {
17222	//     "$ref": "GoogleCloudApigeeV1DataCollector"
17223	//   },
17224	//   "scopes": [
17225	//     "https://www.googleapis.com/auth/cloud-platform"
17226	//   ]
17227	// }
17228
17229}
17230
17231// method id "apigee.organizations.deployments.list":
17232
17233type OrganizationsDeploymentsListCall struct {
17234	s            *Service
17235	parent       string
17236	urlParams_   gensupport.URLParams
17237	ifNoneMatch_ string
17238	ctx_         context.Context
17239	header_      http.Header
17240}
17241
17242// List: Lists all deployments of API proxies or shared flows.
17243//
17244// - parent: Name of the organization for which to return deployment
17245//   information in the following format: `organizations/{org}`.
17246func (r *OrganizationsDeploymentsService) List(parent string) *OrganizationsDeploymentsListCall {
17247	c := &OrganizationsDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17248	c.parent = parent
17249	return c
17250}
17251
17252// SharedFlows sets the optional parameter "sharedFlows": Flag that
17253// specifies whether to return shared flow or API proxy deployments. Set
17254// to `true` to return shared flow deployments; set to `false` to return
17255// API proxy deployments. Defaults to `false`.
17256func (c *OrganizationsDeploymentsListCall) SharedFlows(sharedFlows bool) *OrganizationsDeploymentsListCall {
17257	c.urlParams_.Set("sharedFlows", fmt.Sprint(sharedFlows))
17258	return c
17259}
17260
17261// Fields allows partial responses to be retrieved. See
17262// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
17263// for more information.
17264func (c *OrganizationsDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsDeploymentsListCall {
17265	c.urlParams_.Set("fields", googleapi.CombineFields(s))
17266	return c
17267}
17268
17269// IfNoneMatch sets the optional parameter which makes the operation
17270// fail if the object's ETag matches the given value. This is useful for
17271// getting updates only after the object has changed since the last
17272// request. Use googleapi.IsNotModified to check whether the response
17273// error from Do is the result of In-None-Match.
17274func (c *OrganizationsDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsDeploymentsListCall {
17275	c.ifNoneMatch_ = entityTag
17276	return c
17277}
17278
17279// Context sets the context to be used in this call's Do method. Any
17280// pending HTTP request will be aborted if the provided context is
17281// canceled.
17282func (c *OrganizationsDeploymentsListCall) Context(ctx context.Context) *OrganizationsDeploymentsListCall {
17283	c.ctx_ = ctx
17284	return c
17285}
17286
17287// Header returns an http.Header that can be modified by the caller to
17288// add HTTP headers to the request.
17289func (c *OrganizationsDeploymentsListCall) Header() http.Header {
17290	if c.header_ == nil {
17291		c.header_ = make(http.Header)
17292	}
17293	return c.header_
17294}
17295
17296func (c *OrganizationsDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
17297	reqHeaders := make(http.Header)
17298	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
17299	for k, v := range c.header_ {
17300		reqHeaders[k] = v
17301	}
17302	reqHeaders.Set("User-Agent", c.s.userAgent())
17303	if c.ifNoneMatch_ != "" {
17304		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
17305	}
17306	var body io.Reader = nil
17307	c.urlParams_.Set("alt", alt)
17308	c.urlParams_.Set("prettyPrint", "false")
17309	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
17310	urls += "?" + c.urlParams_.Encode()
17311	req, err := http.NewRequest("GET", urls, body)
17312	if err != nil {
17313		return nil, err
17314	}
17315	req.Header = reqHeaders
17316	googleapi.Expand(req.URL, map[string]string{
17317		"parent": c.parent,
17318	})
17319	return gensupport.SendRequest(c.ctx_, c.s.client, req)
17320}
17321
17322// Do executes the "apigee.organizations.deployments.list" call.
17323// Exactly one of *GoogleCloudApigeeV1ListDeploymentsResponse or error
17324// will be non-nil. Any non-2xx status code is an error. Response
17325// headers are in either
17326// *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or
17327// (if a response was returned at all) in
17328// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
17329// whether the returned error was because http.StatusNotModified was
17330// returned.
17331func (c *OrganizationsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
17332	gensupport.SetOptions(c.urlParams_, opts...)
17333	res, err := c.doRequest("json")
17334	if res != nil && res.StatusCode == http.StatusNotModified {
17335		if res.Body != nil {
17336			res.Body.Close()
17337		}
17338		return nil, &googleapi.Error{
17339			Code:   res.StatusCode,
17340			Header: res.Header,
17341		}
17342	}
17343	if err != nil {
17344		return nil, err
17345	}
17346	defer googleapi.CloseBody(res)
17347	if err := googleapi.CheckResponse(res); err != nil {
17348		return nil, err
17349	}
17350	ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
17351		ServerResponse: googleapi.ServerResponse{
17352			Header:         res.Header,
17353			HTTPStatusCode: res.StatusCode,
17354		},
17355	}
17356	target := &ret
17357	if err := gensupport.DecodeResponse(target, res); err != nil {
17358		return nil, err
17359	}
17360	return ret, nil
17361	// {
17362	//   "description": "Lists all deployments of API proxies or shared flows.",
17363	//   "flatPath": "v1/organizations/{organizationsId}/deployments",
17364	//   "httpMethod": "GET",
17365	//   "id": "apigee.organizations.deployments.list",
17366	//   "parameterOrder": [
17367	//     "parent"
17368	//   ],
17369	//   "parameters": {
17370	//     "parent": {
17371	//       "description": "Required. Name of the organization for which to return deployment information in the following format: `organizations/{org}`",
17372	//       "location": "path",
17373	//       "pattern": "^organizations/[^/]+$",
17374	//       "required": true,
17375	//       "type": "string"
17376	//     },
17377	//     "sharedFlows": {
17378	//       "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`.",
17379	//       "location": "query",
17380	//       "type": "boolean"
17381	//     }
17382	//   },
17383	//   "path": "v1/{+parent}/deployments",
17384	//   "response": {
17385	//     "$ref": "GoogleCloudApigeeV1ListDeploymentsResponse"
17386	//   },
17387	//   "scopes": [
17388	//     "https://www.googleapis.com/auth/cloud-platform"
17389	//   ]
17390	// }
17391
17392}
17393
17394// method id "apigee.organizations.developers.attributes":
17395
17396type OrganizationsDevelopersAttributesCall struct {
17397	s                             *Service
17398	parent                        string
17399	googlecloudapigeev1attributes *GoogleCloudApigeeV1Attributes
17400	urlParams_                    gensupport.URLParams
17401	ctx_                          context.Context
17402	header_                       http.Header
17403}
17404
17405// Attributes: Updates developer attributes. This API replaces the
17406// existing attributes with those specified in the request. Add new
17407// attributes, and include or exclude any existing attributes that you
17408// want to retain or remove, respectively. The custom attribute limit is
17409// 18. **Note**: OAuth access tokens and Key Management Service (KMS)
17410// entities (apps, developers, and API products) are cached for 180
17411// seconds (default). Any custom attributes associated with these
17412// entities are cached for at least 180 seconds after the entity is
17413// accessed at runtime. Therefore, an `ExpiresIn` element on the OAuthV2
17414// policy won't be able to expire an access token in less than 180
17415// seconds.
17416//
17417// - parent: Email address of the developer for which attributes are
17418//   being updated in the following format:
17419//   `organizations/{org}/developers/{developer_email}`.
17420func (r *OrganizationsDevelopersService) Attributes(parent string, googlecloudapigeev1attributes *GoogleCloudApigeeV1Attributes) *OrganizationsDevelopersAttributesCall {
17421	c := &OrganizationsDevelopersAttributesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17422	c.parent = parent
17423	c.googlecloudapigeev1attributes = googlecloudapigeev1attributes
17424	return c
17425}
17426
17427// Fields allows partial responses to be retrieved. See
17428// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
17429// for more information.
17430func (c *OrganizationsDevelopersAttributesCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAttributesCall {
17431	c.urlParams_.Set("fields", googleapi.CombineFields(s))
17432	return c
17433}
17434
17435// Context sets the context to be used in this call's Do method. Any
17436// pending HTTP request will be aborted if the provided context is
17437// canceled.
17438func (c *OrganizationsDevelopersAttributesCall) Context(ctx context.Context) *OrganizationsDevelopersAttributesCall {
17439	c.ctx_ = ctx
17440	return c
17441}
17442
17443// Header returns an http.Header that can be modified by the caller to
17444// add HTTP headers to the request.
17445func (c *OrganizationsDevelopersAttributesCall) Header() http.Header {
17446	if c.header_ == nil {
17447		c.header_ = make(http.Header)
17448	}
17449	return c.header_
17450}
17451
17452func (c *OrganizationsDevelopersAttributesCall) doRequest(alt string) (*http.Response, error) {
17453	reqHeaders := make(http.Header)
17454	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
17455	for k, v := range c.header_ {
17456		reqHeaders[k] = v
17457	}
17458	reqHeaders.Set("User-Agent", c.s.userAgent())
17459	var body io.Reader = nil
17460	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1attributes)
17461	if err != nil {
17462		return nil, err
17463	}
17464	reqHeaders.Set("Content-Type", "application/json")
17465	c.urlParams_.Set("alt", alt)
17466	c.urlParams_.Set("prettyPrint", "false")
17467	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attributes")
17468	urls += "?" + c.urlParams_.Encode()
17469	req, err := http.NewRequest("POST", urls, body)
17470	if err != nil {
17471		return nil, err
17472	}
17473	req.Header = reqHeaders
17474	googleapi.Expand(req.URL, map[string]string{
17475		"parent": c.parent,
17476	})
17477	return gensupport.SendRequest(c.ctx_, c.s.client, req)
17478}
17479
17480// Do executes the "apigee.organizations.developers.attributes" call.
17481// Exactly one of *GoogleCloudApigeeV1Attributes or error will be
17482// non-nil. Any non-2xx status code is an error. Response headers are in
17483// either *GoogleCloudApigeeV1Attributes.ServerResponse.Header or (if a
17484// response was returned at all) in error.(*googleapi.Error).Header. Use
17485// googleapi.IsNotModified to check whether the returned error was
17486// because http.StatusNotModified was returned.
17487func (c *OrganizationsDevelopersAttributesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attributes, error) {
17488	gensupport.SetOptions(c.urlParams_, opts...)
17489	res, err := c.doRequest("json")
17490	if res != nil && res.StatusCode == http.StatusNotModified {
17491		if res.Body != nil {
17492			res.Body.Close()
17493		}
17494		return nil, &googleapi.Error{
17495			Code:   res.StatusCode,
17496			Header: res.Header,
17497		}
17498	}
17499	if err != nil {
17500		return nil, err
17501	}
17502	defer googleapi.CloseBody(res)
17503	if err := googleapi.CheckResponse(res); err != nil {
17504		return nil, err
17505	}
17506	ret := &GoogleCloudApigeeV1Attributes{
17507		ServerResponse: googleapi.ServerResponse{
17508			Header:         res.Header,
17509			HTTPStatusCode: res.StatusCode,
17510		},
17511	}
17512	target := &ret
17513	if err := gensupport.DecodeResponse(target, res); err != nil {
17514		return nil, err
17515	}
17516	return ret, nil
17517	// {
17518	//   "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.",
17519	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/attributes",
17520	//   "httpMethod": "POST",
17521	//   "id": "apigee.organizations.developers.attributes",
17522	//   "parameterOrder": [
17523	//     "parent"
17524	//   ],
17525	//   "parameters": {
17526	//     "parent": {
17527	//       "description": "Required. Email address of the developer for which attributes are being updated in the following format: `organizations/{org}/developers/{developer_email}`",
17528	//       "location": "path",
17529	//       "pattern": "^organizations/[^/]+/developers/[^/]+$",
17530	//       "required": true,
17531	//       "type": "string"
17532	//     }
17533	//   },
17534	//   "path": "v1/{+parent}/attributes",
17535	//   "request": {
17536	//     "$ref": "GoogleCloudApigeeV1Attributes"
17537	//   },
17538	//   "response": {
17539	//     "$ref": "GoogleCloudApigeeV1Attributes"
17540	//   },
17541	//   "scopes": [
17542	//     "https://www.googleapis.com/auth/cloud-platform"
17543	//   ]
17544	// }
17545
17546}
17547
17548// method id "apigee.organizations.developers.create":
17549
17550type OrganizationsDevelopersCreateCall struct {
17551	s                            *Service
17552	parent                       string
17553	googlecloudapigeev1developer *GoogleCloudApigeeV1Developer
17554	urlParams_                   gensupport.URLParams
17555	ctx_                         context.Context
17556	header_                      http.Header
17557}
17558
17559// Create: Creates a developer. Once created, the developer can register
17560// an app and obtain an API key. At creation time, a developer is set as
17561// `active`. To change the developer status, use the SetDeveloperStatus
17562// API.
17563//
17564// - parent: Name of the Apigee organization in which the developer is
17565//   created. Use the following structure in your request:
17566//   `organizations/{org}`.
17567func (r *OrganizationsDevelopersService) Create(parent string, googlecloudapigeev1developer *GoogleCloudApigeeV1Developer) *OrganizationsDevelopersCreateCall {
17568	c := &OrganizationsDevelopersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17569	c.parent = parent
17570	c.googlecloudapigeev1developer = googlecloudapigeev1developer
17571	return c
17572}
17573
17574// Fields allows partial responses to be retrieved. See
17575// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
17576// for more information.
17577func (c *OrganizationsDevelopersCreateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersCreateCall {
17578	c.urlParams_.Set("fields", googleapi.CombineFields(s))
17579	return c
17580}
17581
17582// Context sets the context to be used in this call's Do method. Any
17583// pending HTTP request will be aborted if the provided context is
17584// canceled.
17585func (c *OrganizationsDevelopersCreateCall) Context(ctx context.Context) *OrganizationsDevelopersCreateCall {
17586	c.ctx_ = ctx
17587	return c
17588}
17589
17590// Header returns an http.Header that can be modified by the caller to
17591// add HTTP headers to the request.
17592func (c *OrganizationsDevelopersCreateCall) Header() http.Header {
17593	if c.header_ == nil {
17594		c.header_ = make(http.Header)
17595	}
17596	return c.header_
17597}
17598
17599func (c *OrganizationsDevelopersCreateCall) doRequest(alt string) (*http.Response, error) {
17600	reqHeaders := make(http.Header)
17601	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
17602	for k, v := range c.header_ {
17603		reqHeaders[k] = v
17604	}
17605	reqHeaders.Set("User-Agent", c.s.userAgent())
17606	var body io.Reader = nil
17607	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developer)
17608	if err != nil {
17609		return nil, err
17610	}
17611	reqHeaders.Set("Content-Type", "application/json")
17612	c.urlParams_.Set("alt", alt)
17613	c.urlParams_.Set("prettyPrint", "false")
17614	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/developers")
17615	urls += "?" + c.urlParams_.Encode()
17616	req, err := http.NewRequest("POST", urls, body)
17617	if err != nil {
17618		return nil, err
17619	}
17620	req.Header = reqHeaders
17621	googleapi.Expand(req.URL, map[string]string{
17622		"parent": c.parent,
17623	})
17624	return gensupport.SendRequest(c.ctx_, c.s.client, req)
17625}
17626
17627// Do executes the "apigee.organizations.developers.create" call.
17628// Exactly one of *GoogleCloudApigeeV1Developer or error will be
17629// non-nil. Any non-2xx status code is an error. Response headers are in
17630// either *GoogleCloudApigeeV1Developer.ServerResponse.Header or (if a
17631// response was returned at all) in error.(*googleapi.Error).Header. Use
17632// googleapi.IsNotModified to check whether the returned error was
17633// because http.StatusNotModified was returned.
17634func (c *OrganizationsDevelopersCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Developer, error) {
17635	gensupport.SetOptions(c.urlParams_, opts...)
17636	res, err := c.doRequest("json")
17637	if res != nil && res.StatusCode == http.StatusNotModified {
17638		if res.Body != nil {
17639			res.Body.Close()
17640		}
17641		return nil, &googleapi.Error{
17642			Code:   res.StatusCode,
17643			Header: res.Header,
17644		}
17645	}
17646	if err != nil {
17647		return nil, err
17648	}
17649	defer googleapi.CloseBody(res)
17650	if err := googleapi.CheckResponse(res); err != nil {
17651		return nil, err
17652	}
17653	ret := &GoogleCloudApigeeV1Developer{
17654		ServerResponse: googleapi.ServerResponse{
17655			Header:         res.Header,
17656			HTTPStatusCode: res.StatusCode,
17657		},
17658	}
17659	target := &ret
17660	if err := gensupport.DecodeResponse(target, res); err != nil {
17661		return nil, err
17662	}
17663	return ret, nil
17664	// {
17665	//   "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.",
17666	//   "flatPath": "v1/organizations/{organizationsId}/developers",
17667	//   "httpMethod": "POST",
17668	//   "id": "apigee.organizations.developers.create",
17669	//   "parameterOrder": [
17670	//     "parent"
17671	//   ],
17672	//   "parameters": {
17673	//     "parent": {
17674	//       "description": "Required. Name of the Apigee organization in which the developer is created. Use the following structure in your request: `organizations/{org}`.",
17675	//       "location": "path",
17676	//       "pattern": "^organizations/[^/]+$",
17677	//       "required": true,
17678	//       "type": "string"
17679	//     }
17680	//   },
17681	//   "path": "v1/{+parent}/developers",
17682	//   "request": {
17683	//     "$ref": "GoogleCloudApigeeV1Developer"
17684	//   },
17685	//   "response": {
17686	//     "$ref": "GoogleCloudApigeeV1Developer"
17687	//   },
17688	//   "scopes": [
17689	//     "https://www.googleapis.com/auth/cloud-platform"
17690	//   ]
17691	// }
17692
17693}
17694
17695// method id "apigee.organizations.developers.delete":
17696
17697type OrganizationsDevelopersDeleteCall struct {
17698	s          *Service
17699	name       string
17700	urlParams_ gensupport.URLParams
17701	ctx_       context.Context
17702	header_    http.Header
17703}
17704
17705// Delete: Deletes a developer. All apps and API keys associated with
17706// the developer are also removed. **Warning**: This API will
17707// permanently delete the developer and related artifacts. To avoid
17708// permanently deleting developers and their artifacts, set the
17709// developer status to `inactive` using the SetDeveloperStatus API.
17710// **Note**: The delete operation is asynchronous. The developer app is
17711// deleted immediately, but its associated resources, such as apps and
17712// API keys, may take anywhere from a few seconds to a few minutes to be
17713// deleted.
17714//
17715// - name: Email address of the developer. Use the following structure
17716//   in your request: `organizations/{org}/developers/{developer_email}`.
17717func (r *OrganizationsDevelopersService) Delete(name string) *OrganizationsDevelopersDeleteCall {
17718	c := &OrganizationsDevelopersDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17719	c.name = name
17720	return c
17721}
17722
17723// Fields allows partial responses to be retrieved. See
17724// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
17725// for more information.
17726func (c *OrganizationsDevelopersDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersDeleteCall {
17727	c.urlParams_.Set("fields", googleapi.CombineFields(s))
17728	return c
17729}
17730
17731// Context sets the context to be used in this call's Do method. Any
17732// pending HTTP request will be aborted if the provided context is
17733// canceled.
17734func (c *OrganizationsDevelopersDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersDeleteCall {
17735	c.ctx_ = ctx
17736	return c
17737}
17738
17739// Header returns an http.Header that can be modified by the caller to
17740// add HTTP headers to the request.
17741func (c *OrganizationsDevelopersDeleteCall) Header() http.Header {
17742	if c.header_ == nil {
17743		c.header_ = make(http.Header)
17744	}
17745	return c.header_
17746}
17747
17748func (c *OrganizationsDevelopersDeleteCall) doRequest(alt string) (*http.Response, error) {
17749	reqHeaders := make(http.Header)
17750	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
17751	for k, v := range c.header_ {
17752		reqHeaders[k] = v
17753	}
17754	reqHeaders.Set("User-Agent", c.s.userAgent())
17755	var body io.Reader = nil
17756	c.urlParams_.Set("alt", alt)
17757	c.urlParams_.Set("prettyPrint", "false")
17758	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
17759	urls += "?" + c.urlParams_.Encode()
17760	req, err := http.NewRequest("DELETE", urls, body)
17761	if err != nil {
17762		return nil, err
17763	}
17764	req.Header = reqHeaders
17765	googleapi.Expand(req.URL, map[string]string{
17766		"name": c.name,
17767	})
17768	return gensupport.SendRequest(c.ctx_, c.s.client, req)
17769}
17770
17771// Do executes the "apigee.organizations.developers.delete" call.
17772// Exactly one of *GoogleCloudApigeeV1Developer or error will be
17773// non-nil. Any non-2xx status code is an error. Response headers are in
17774// either *GoogleCloudApigeeV1Developer.ServerResponse.Header or (if a
17775// response was returned at all) in error.(*googleapi.Error).Header. Use
17776// googleapi.IsNotModified to check whether the returned error was
17777// because http.StatusNotModified was returned.
17778func (c *OrganizationsDevelopersDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Developer, error) {
17779	gensupport.SetOptions(c.urlParams_, opts...)
17780	res, err := c.doRequest("json")
17781	if res != nil && res.StatusCode == http.StatusNotModified {
17782		if res.Body != nil {
17783			res.Body.Close()
17784		}
17785		return nil, &googleapi.Error{
17786			Code:   res.StatusCode,
17787			Header: res.Header,
17788		}
17789	}
17790	if err != nil {
17791		return nil, err
17792	}
17793	defer googleapi.CloseBody(res)
17794	if err := googleapi.CheckResponse(res); err != nil {
17795		return nil, err
17796	}
17797	ret := &GoogleCloudApigeeV1Developer{
17798		ServerResponse: googleapi.ServerResponse{
17799			Header:         res.Header,
17800			HTTPStatusCode: res.StatusCode,
17801		},
17802	}
17803	target := &ret
17804	if err := gensupport.DecodeResponse(target, res); err != nil {
17805		return nil, err
17806	}
17807	return ret, nil
17808	// {
17809	//   "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.",
17810	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}",
17811	//   "httpMethod": "DELETE",
17812	//   "id": "apigee.organizations.developers.delete",
17813	//   "parameterOrder": [
17814	//     "name"
17815	//   ],
17816	//   "parameters": {
17817	//     "name": {
17818	//       "description": "Required. Email address of the developer. Use the following structure in your request: `organizations/{org}/developers/{developer_email}`",
17819	//       "location": "path",
17820	//       "pattern": "^organizations/[^/]+/developers/[^/]+$",
17821	//       "required": true,
17822	//       "type": "string"
17823	//     }
17824	//   },
17825	//   "path": "v1/{+name}",
17826	//   "response": {
17827	//     "$ref": "GoogleCloudApigeeV1Developer"
17828	//   },
17829	//   "scopes": [
17830	//     "https://www.googleapis.com/auth/cloud-platform"
17831	//   ]
17832	// }
17833
17834}
17835
17836// method id "apigee.organizations.developers.get":
17837
17838type OrganizationsDevelopersGetCall struct {
17839	s            *Service
17840	name         string
17841	urlParams_   gensupport.URLParams
17842	ifNoneMatch_ string
17843	ctx_         context.Context
17844	header_      http.Header
17845}
17846
17847// Get: Returns the developer details, including the developer's name,
17848// email address, apps, and other information. **Note**: The response
17849// includes only the first 100 developer apps.
17850//
17851// - name: Email address of the developer. Use the following structure
17852//   in your request: `organizations/{org}/developers/{developer_email}`.
17853func (r *OrganizationsDevelopersService) Get(name string) *OrganizationsDevelopersGetCall {
17854	c := &OrganizationsDevelopersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17855	c.name = name
17856	return c
17857}
17858
17859// Action sets the optional parameter "action": Status of the developer.
17860// Valid values are `active` or `inactive`.
17861func (c *OrganizationsDevelopersGetCall) Action(action string) *OrganizationsDevelopersGetCall {
17862	c.urlParams_.Set("action", action)
17863	return c
17864}
17865
17866// Fields allows partial responses to be retrieved. See
17867// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
17868// for more information.
17869func (c *OrganizationsDevelopersGetCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersGetCall {
17870	c.urlParams_.Set("fields", googleapi.CombineFields(s))
17871	return c
17872}
17873
17874// IfNoneMatch sets the optional parameter which makes the operation
17875// fail if the object's ETag matches the given value. This is useful for
17876// getting updates only after the object has changed since the last
17877// request. Use googleapi.IsNotModified to check whether the response
17878// error from Do is the result of In-None-Match.
17879func (c *OrganizationsDevelopersGetCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersGetCall {
17880	c.ifNoneMatch_ = entityTag
17881	return c
17882}
17883
17884// Context sets the context to be used in this call's Do method. Any
17885// pending HTTP request will be aborted if the provided context is
17886// canceled.
17887func (c *OrganizationsDevelopersGetCall) Context(ctx context.Context) *OrganizationsDevelopersGetCall {
17888	c.ctx_ = ctx
17889	return c
17890}
17891
17892// Header returns an http.Header that can be modified by the caller to
17893// add HTTP headers to the request.
17894func (c *OrganizationsDevelopersGetCall) Header() http.Header {
17895	if c.header_ == nil {
17896		c.header_ = make(http.Header)
17897	}
17898	return c.header_
17899}
17900
17901func (c *OrganizationsDevelopersGetCall) doRequest(alt string) (*http.Response, error) {
17902	reqHeaders := make(http.Header)
17903	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
17904	for k, v := range c.header_ {
17905		reqHeaders[k] = v
17906	}
17907	reqHeaders.Set("User-Agent", c.s.userAgent())
17908	if c.ifNoneMatch_ != "" {
17909		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
17910	}
17911	var body io.Reader = nil
17912	c.urlParams_.Set("alt", alt)
17913	c.urlParams_.Set("prettyPrint", "false")
17914	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
17915	urls += "?" + c.urlParams_.Encode()
17916	req, err := http.NewRequest("GET", urls, body)
17917	if err != nil {
17918		return nil, err
17919	}
17920	req.Header = reqHeaders
17921	googleapi.Expand(req.URL, map[string]string{
17922		"name": c.name,
17923	})
17924	return gensupport.SendRequest(c.ctx_, c.s.client, req)
17925}
17926
17927// Do executes the "apigee.organizations.developers.get" call.
17928// Exactly one of *GoogleCloudApigeeV1Developer or error will be
17929// non-nil. Any non-2xx status code is an error. Response headers are in
17930// either *GoogleCloudApigeeV1Developer.ServerResponse.Header or (if a
17931// response was returned at all) in error.(*googleapi.Error).Header. Use
17932// googleapi.IsNotModified to check whether the returned error was
17933// because http.StatusNotModified was returned.
17934func (c *OrganizationsDevelopersGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Developer, error) {
17935	gensupport.SetOptions(c.urlParams_, opts...)
17936	res, err := c.doRequest("json")
17937	if res != nil && res.StatusCode == http.StatusNotModified {
17938		if res.Body != nil {
17939			res.Body.Close()
17940		}
17941		return nil, &googleapi.Error{
17942			Code:   res.StatusCode,
17943			Header: res.Header,
17944		}
17945	}
17946	if err != nil {
17947		return nil, err
17948	}
17949	defer googleapi.CloseBody(res)
17950	if err := googleapi.CheckResponse(res); err != nil {
17951		return nil, err
17952	}
17953	ret := &GoogleCloudApigeeV1Developer{
17954		ServerResponse: googleapi.ServerResponse{
17955			Header:         res.Header,
17956			HTTPStatusCode: res.StatusCode,
17957		},
17958	}
17959	target := &ret
17960	if err := gensupport.DecodeResponse(target, res); err != nil {
17961		return nil, err
17962	}
17963	return ret, nil
17964	// {
17965	//   "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.",
17966	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}",
17967	//   "httpMethod": "GET",
17968	//   "id": "apigee.organizations.developers.get",
17969	//   "parameterOrder": [
17970	//     "name"
17971	//   ],
17972	//   "parameters": {
17973	//     "action": {
17974	//       "description": "Status of the developer. Valid values are `active` or `inactive`.",
17975	//       "location": "query",
17976	//       "type": "string"
17977	//     },
17978	//     "name": {
17979	//       "description": "Required. Email address of the developer. Use the following structure in your request: `organizations/{org}/developers/{developer_email}`",
17980	//       "location": "path",
17981	//       "pattern": "^organizations/[^/]+/developers/[^/]+$",
17982	//       "required": true,
17983	//       "type": "string"
17984	//     }
17985	//   },
17986	//   "path": "v1/{+name}",
17987	//   "response": {
17988	//     "$ref": "GoogleCloudApigeeV1Developer"
17989	//   },
17990	//   "scopes": [
17991	//     "https://www.googleapis.com/auth/cloud-platform"
17992	//   ]
17993	// }
17994
17995}
17996
17997// method id "apigee.organizations.developers.list":
17998
17999type OrganizationsDevelopersListCall struct {
18000	s            *Service
18001	parent       string
18002	urlParams_   gensupport.URLParams
18003	ifNoneMatch_ string
18004	ctx_         context.Context
18005	header_      http.Header
18006}
18007
18008// List: Lists all developers in an organization by email address. By
18009// default, the response does not include company developers. Set the
18010// `includeCompany` query parameter to `true` to include company
18011// developers. **Note**: A maximum of 1000 developers are returned in
18012// the response. You paginate the list of developers returned using the
18013// `startKey` and `count` query parameters.
18014//
18015// - parent: Name of the Apigee organization. Use the following
18016//   structure in your request: `organizations/{org}`.
18017func (r *OrganizationsDevelopersService) List(parent string) *OrganizationsDevelopersListCall {
18018	c := &OrganizationsDevelopersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18019	c.parent = parent
18020	return c
18021}
18022
18023// App sets the optional parameter "app": List only Developers that are
18024// associated with the app. Note that start_key, count are not
18025// applicable for this filter criteria.
18026func (c *OrganizationsDevelopersListCall) App(app string) *OrganizationsDevelopersListCall {
18027	c.urlParams_.Set("app", app)
18028	return c
18029}
18030
18031// Count sets the optional parameter "count": Number of developers to
18032// return in the API call. Use with the `startKey` parameter to provide
18033// more targeted filtering. The limit is 1000.
18034func (c *OrganizationsDevelopersListCall) Count(count int64) *OrganizationsDevelopersListCall {
18035	c.urlParams_.Set("count", fmt.Sprint(count))
18036	return c
18037}
18038
18039// Expand sets the optional parameter "expand": Specifies whether to
18040// expand the results. Set to `true` to expand the results. This query
18041// parameter is not valid if you use the `count` or `startKey` query
18042// parameters.
18043func (c *OrganizationsDevelopersListCall) Expand(expand bool) *OrganizationsDevelopersListCall {
18044	c.urlParams_.Set("expand", fmt.Sprint(expand))
18045	return c
18046}
18047
18048// Ids sets the optional parameter "ids": List of IDs to include,
18049// separated by commas.
18050func (c *OrganizationsDevelopersListCall) Ids(ids string) *OrganizationsDevelopersListCall {
18051	c.urlParams_.Set("ids", ids)
18052	return c
18053}
18054
18055// IncludeCompany sets the optional parameter "includeCompany": Flag
18056// that specifies whether to include company details in the response.
18057func (c *OrganizationsDevelopersListCall) IncludeCompany(includeCompany bool) *OrganizationsDevelopersListCall {
18058	c.urlParams_.Set("includeCompany", fmt.Sprint(includeCompany))
18059	return c
18060}
18061
18062// StartKey sets the optional parameter "startKey": **Note**: Must be
18063// used in conjunction with the `count` parameter. Email address of the
18064// developer from which to start displaying the list of developers. For
18065// example, if the an unfiltered list returns: ``` westley@example.com
18066// fezzik@example.com buttercup@example.com ``` and your `startKey` is
18067// `fezzik@example.com`, the list returned will be ```
18068// fezzik@example.com buttercup@example.com ```
18069func (c *OrganizationsDevelopersListCall) StartKey(startKey string) *OrganizationsDevelopersListCall {
18070	c.urlParams_.Set("startKey", startKey)
18071	return c
18072}
18073
18074// Fields allows partial responses to be retrieved. See
18075// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18076// for more information.
18077func (c *OrganizationsDevelopersListCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersListCall {
18078	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18079	return c
18080}
18081
18082// IfNoneMatch sets the optional parameter which makes the operation
18083// fail if the object's ETag matches the given value. This is useful for
18084// getting updates only after the object has changed since the last
18085// request. Use googleapi.IsNotModified to check whether the response
18086// error from Do is the result of In-None-Match.
18087func (c *OrganizationsDevelopersListCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersListCall {
18088	c.ifNoneMatch_ = entityTag
18089	return c
18090}
18091
18092// Context sets the context to be used in this call's Do method. Any
18093// pending HTTP request will be aborted if the provided context is
18094// canceled.
18095func (c *OrganizationsDevelopersListCall) Context(ctx context.Context) *OrganizationsDevelopersListCall {
18096	c.ctx_ = ctx
18097	return c
18098}
18099
18100// Header returns an http.Header that can be modified by the caller to
18101// add HTTP headers to the request.
18102func (c *OrganizationsDevelopersListCall) Header() http.Header {
18103	if c.header_ == nil {
18104		c.header_ = make(http.Header)
18105	}
18106	return c.header_
18107}
18108
18109func (c *OrganizationsDevelopersListCall) doRequest(alt string) (*http.Response, error) {
18110	reqHeaders := make(http.Header)
18111	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
18112	for k, v := range c.header_ {
18113		reqHeaders[k] = v
18114	}
18115	reqHeaders.Set("User-Agent", c.s.userAgent())
18116	if c.ifNoneMatch_ != "" {
18117		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18118	}
18119	var body io.Reader = nil
18120	c.urlParams_.Set("alt", alt)
18121	c.urlParams_.Set("prettyPrint", "false")
18122	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/developers")
18123	urls += "?" + c.urlParams_.Encode()
18124	req, err := http.NewRequest("GET", urls, body)
18125	if err != nil {
18126		return nil, err
18127	}
18128	req.Header = reqHeaders
18129	googleapi.Expand(req.URL, map[string]string{
18130		"parent": c.parent,
18131	})
18132	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18133}
18134
18135// Do executes the "apigee.organizations.developers.list" call.
18136// Exactly one of *GoogleCloudApigeeV1ListOfDevelopersResponse or error
18137// will be non-nil. Any non-2xx status code is an error. Response
18138// headers are in either
18139// *GoogleCloudApigeeV1ListOfDevelopersResponse.ServerResponse.Header or
18140// (if a response was returned at all) in
18141// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
18142// whether the returned error was because http.StatusNotModified was
18143// returned.
18144func (c *OrganizationsDevelopersListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListOfDevelopersResponse, error) {
18145	gensupport.SetOptions(c.urlParams_, opts...)
18146	res, err := c.doRequest("json")
18147	if res != nil && res.StatusCode == http.StatusNotModified {
18148		if res.Body != nil {
18149			res.Body.Close()
18150		}
18151		return nil, &googleapi.Error{
18152			Code:   res.StatusCode,
18153			Header: res.Header,
18154		}
18155	}
18156	if err != nil {
18157		return nil, err
18158	}
18159	defer googleapi.CloseBody(res)
18160	if err := googleapi.CheckResponse(res); err != nil {
18161		return nil, err
18162	}
18163	ret := &GoogleCloudApigeeV1ListOfDevelopersResponse{
18164		ServerResponse: googleapi.ServerResponse{
18165			Header:         res.Header,
18166			HTTPStatusCode: res.StatusCode,
18167		},
18168	}
18169	target := &ret
18170	if err := gensupport.DecodeResponse(target, res); err != nil {
18171		return nil, err
18172	}
18173	return ret, nil
18174	// {
18175	//   "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.",
18176	//   "flatPath": "v1/organizations/{organizationsId}/developers",
18177	//   "httpMethod": "GET",
18178	//   "id": "apigee.organizations.developers.list",
18179	//   "parameterOrder": [
18180	//     "parent"
18181	//   ],
18182	//   "parameters": {
18183	//     "app": {
18184	//       "description": "Optional. List only Developers that are associated with the app. Note that start_key, count are not applicable for this filter criteria.",
18185	//       "location": "query",
18186	//       "type": "string"
18187	//     },
18188	//     "count": {
18189	//       "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.",
18190	//       "format": "int64",
18191	//       "location": "query",
18192	//       "type": "string"
18193	//     },
18194	//     "expand": {
18195	//       "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.",
18196	//       "location": "query",
18197	//       "type": "boolean"
18198	//     },
18199	//     "ids": {
18200	//       "description": "Optional. List of IDs to include, separated by commas.",
18201	//       "location": "query",
18202	//       "type": "string"
18203	//     },
18204	//     "includeCompany": {
18205	//       "description": "Flag that specifies whether to include company details in the response.",
18206	//       "location": "query",
18207	//       "type": "boolean"
18208	//     },
18209	//     "parent": {
18210	//       "description": "Required. Name of the Apigee organization. Use the following structure in your request: `organizations/{org}`.",
18211	//       "location": "path",
18212	//       "pattern": "^organizations/[^/]+$",
18213	//       "required": true,
18214	//       "type": "string"
18215	//     },
18216	//     "startKey": {
18217	//       "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 ```",
18218	//       "location": "query",
18219	//       "type": "string"
18220	//     }
18221	//   },
18222	//   "path": "v1/{+parent}/developers",
18223	//   "response": {
18224	//     "$ref": "GoogleCloudApigeeV1ListOfDevelopersResponse"
18225	//   },
18226	//   "scopes": [
18227	//     "https://www.googleapis.com/auth/cloud-platform"
18228	//   ]
18229	// }
18230
18231}
18232
18233// method id "apigee.organizations.developers.setDeveloperStatus":
18234
18235type OrganizationsDevelopersSetDeveloperStatusCall struct {
18236	s          *Service
18237	name       string
18238	urlParams_ gensupport.URLParams
18239	ctx_       context.Context
18240	header_    http.Header
18241}
18242
18243// SetDeveloperStatus: Sets the status of a developer. Valid values are
18244// `active` or `inactive`. A developer is `active` by default. If you
18245// set a developer's status to `inactive`, the API keys assigned to the
18246// developer apps are no longer valid even though the API keys are set
18247// to `approved`. Inactive developers can still sign in to the developer
18248// portal and create apps; however, any new API keys generated during
18249// app creation won't work. If successful, the API call returns the
18250// following HTTP status code: `204 No Content`
18251//
18252// - name: Email address of the developer. Use the following structure
18253//   in your request: `organizations/{org}/developers/{developer_email}`.
18254func (r *OrganizationsDevelopersService) SetDeveloperStatus(name string) *OrganizationsDevelopersSetDeveloperStatusCall {
18255	c := &OrganizationsDevelopersSetDeveloperStatusCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18256	c.name = name
18257	return c
18258}
18259
18260// Action sets the optional parameter "action": Status of the developer.
18261// Valid values are `active` and `inactive`.
18262func (c *OrganizationsDevelopersSetDeveloperStatusCall) Action(action string) *OrganizationsDevelopersSetDeveloperStatusCall {
18263	c.urlParams_.Set("action", action)
18264	return c
18265}
18266
18267// Fields allows partial responses to be retrieved. See
18268// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18269// for more information.
18270func (c *OrganizationsDevelopersSetDeveloperStatusCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersSetDeveloperStatusCall {
18271	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18272	return c
18273}
18274
18275// Context sets the context to be used in this call's Do method. Any
18276// pending HTTP request will be aborted if the provided context is
18277// canceled.
18278func (c *OrganizationsDevelopersSetDeveloperStatusCall) Context(ctx context.Context) *OrganizationsDevelopersSetDeveloperStatusCall {
18279	c.ctx_ = ctx
18280	return c
18281}
18282
18283// Header returns an http.Header that can be modified by the caller to
18284// add HTTP headers to the request.
18285func (c *OrganizationsDevelopersSetDeveloperStatusCall) Header() http.Header {
18286	if c.header_ == nil {
18287		c.header_ = make(http.Header)
18288	}
18289	return c.header_
18290}
18291
18292func (c *OrganizationsDevelopersSetDeveloperStatusCall) doRequest(alt string) (*http.Response, error) {
18293	reqHeaders := make(http.Header)
18294	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
18295	for k, v := range c.header_ {
18296		reqHeaders[k] = v
18297	}
18298	reqHeaders.Set("User-Agent", c.s.userAgent())
18299	var body io.Reader = nil
18300	c.urlParams_.Set("alt", alt)
18301	c.urlParams_.Set("prettyPrint", "false")
18302	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
18303	urls += "?" + c.urlParams_.Encode()
18304	req, err := http.NewRequest("POST", urls, body)
18305	if err != nil {
18306		return nil, err
18307	}
18308	req.Header = reqHeaders
18309	googleapi.Expand(req.URL, map[string]string{
18310		"name": c.name,
18311	})
18312	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18313}
18314
18315// Do executes the "apigee.organizations.developers.setDeveloperStatus" call.
18316// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
18317// non-2xx status code is an error. Response headers are in either
18318// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
18319// returned at all) in error.(*googleapi.Error).Header. Use
18320// googleapi.IsNotModified to check whether the returned error was
18321// because http.StatusNotModified was returned.
18322func (c *OrganizationsDevelopersSetDeveloperStatusCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
18323	gensupport.SetOptions(c.urlParams_, opts...)
18324	res, err := c.doRequest("json")
18325	if res != nil && res.StatusCode == http.StatusNotModified {
18326		if res.Body != nil {
18327			res.Body.Close()
18328		}
18329		return nil, &googleapi.Error{
18330			Code:   res.StatusCode,
18331			Header: res.Header,
18332		}
18333	}
18334	if err != nil {
18335		return nil, err
18336	}
18337	defer googleapi.CloseBody(res)
18338	if err := googleapi.CheckResponse(res); err != nil {
18339		return nil, err
18340	}
18341	ret := &GoogleProtobufEmpty{
18342		ServerResponse: googleapi.ServerResponse{
18343			Header:         res.Header,
18344			HTTPStatusCode: res.StatusCode,
18345		},
18346	}
18347	target := &ret
18348	if err := gensupport.DecodeResponse(target, res); err != nil {
18349		return nil, err
18350	}
18351	return ret, nil
18352	// {
18353	//   "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`",
18354	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}",
18355	//   "httpMethod": "POST",
18356	//   "id": "apigee.organizations.developers.setDeveloperStatus",
18357	//   "parameterOrder": [
18358	//     "name"
18359	//   ],
18360	//   "parameters": {
18361	//     "action": {
18362	//       "description": "Status of the developer. Valid values are `active` and `inactive`.",
18363	//       "location": "query",
18364	//       "type": "string"
18365	//     },
18366	//     "name": {
18367	//       "description": "Required. Email address of the developer. Use the following structure in your request: `organizations/{org}/developers/{developer_email}`",
18368	//       "location": "path",
18369	//       "pattern": "^organizations/[^/]+/developers/[^/]+$",
18370	//       "required": true,
18371	//       "type": "string"
18372	//     }
18373	//   },
18374	//   "path": "v1/{+name}",
18375	//   "response": {
18376	//     "$ref": "GoogleProtobufEmpty"
18377	//   },
18378	//   "scopes": [
18379	//     "https://www.googleapis.com/auth/cloud-platform"
18380	//   ]
18381	// }
18382
18383}
18384
18385// method id "apigee.organizations.developers.update":
18386
18387type OrganizationsDevelopersUpdateCall struct {
18388	s                            *Service
18389	name                         string
18390	googlecloudapigeev1developer *GoogleCloudApigeeV1Developer
18391	urlParams_                   gensupport.URLParams
18392	ctx_                         context.Context
18393	header_                      http.Header
18394}
18395
18396// Update: Updates a developer. This API replaces the existing developer
18397// details with those specified in the request. Include or exclude any
18398// existing details that you want to retain or delete, respectively. The
18399// custom attribute limit is 18. **Note**: OAuth access tokens and Key
18400// Management Service (KMS) entities (apps, developers, and API
18401// products) are cached for 180 seconds (current default). Any custom
18402// attributes associated with these entities are cached for at least 180
18403// seconds after the entity is accessed at runtime. Therefore, an
18404// `ExpiresIn` element on the OAuthV2 policy won't be able to expire an
18405// access token in less than 180 seconds.
18406//
18407// - name: Email address of the developer. Use the following structure
18408//   in your request: `organizations/{org}/developers/{developer_email}`.
18409func (r *OrganizationsDevelopersService) Update(name string, googlecloudapigeev1developer *GoogleCloudApigeeV1Developer) *OrganizationsDevelopersUpdateCall {
18410	c := &OrganizationsDevelopersUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18411	c.name = name
18412	c.googlecloudapigeev1developer = googlecloudapigeev1developer
18413	return c
18414}
18415
18416// Fields allows partial responses to be retrieved. See
18417// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18418// for more information.
18419func (c *OrganizationsDevelopersUpdateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersUpdateCall {
18420	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18421	return c
18422}
18423
18424// Context sets the context to be used in this call's Do method. Any
18425// pending HTTP request will be aborted if the provided context is
18426// canceled.
18427func (c *OrganizationsDevelopersUpdateCall) Context(ctx context.Context) *OrganizationsDevelopersUpdateCall {
18428	c.ctx_ = ctx
18429	return c
18430}
18431
18432// Header returns an http.Header that can be modified by the caller to
18433// add HTTP headers to the request.
18434func (c *OrganizationsDevelopersUpdateCall) Header() http.Header {
18435	if c.header_ == nil {
18436		c.header_ = make(http.Header)
18437	}
18438	return c.header_
18439}
18440
18441func (c *OrganizationsDevelopersUpdateCall) doRequest(alt string) (*http.Response, error) {
18442	reqHeaders := make(http.Header)
18443	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
18444	for k, v := range c.header_ {
18445		reqHeaders[k] = v
18446	}
18447	reqHeaders.Set("User-Agent", c.s.userAgent())
18448	var body io.Reader = nil
18449	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developer)
18450	if err != nil {
18451		return nil, err
18452	}
18453	reqHeaders.Set("Content-Type", "application/json")
18454	c.urlParams_.Set("alt", alt)
18455	c.urlParams_.Set("prettyPrint", "false")
18456	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
18457	urls += "?" + c.urlParams_.Encode()
18458	req, err := http.NewRequest("PUT", urls, body)
18459	if err != nil {
18460		return nil, err
18461	}
18462	req.Header = reqHeaders
18463	googleapi.Expand(req.URL, map[string]string{
18464		"name": c.name,
18465	})
18466	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18467}
18468
18469// Do executes the "apigee.organizations.developers.update" call.
18470// Exactly one of *GoogleCloudApigeeV1Developer or error will be
18471// non-nil. Any non-2xx status code is an error. Response headers are in
18472// either *GoogleCloudApigeeV1Developer.ServerResponse.Header or (if a
18473// response was returned at all) in error.(*googleapi.Error).Header. Use
18474// googleapi.IsNotModified to check whether the returned error was
18475// because http.StatusNotModified was returned.
18476func (c *OrganizationsDevelopersUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Developer, error) {
18477	gensupport.SetOptions(c.urlParams_, opts...)
18478	res, err := c.doRequest("json")
18479	if res != nil && res.StatusCode == http.StatusNotModified {
18480		if res.Body != nil {
18481			res.Body.Close()
18482		}
18483		return nil, &googleapi.Error{
18484			Code:   res.StatusCode,
18485			Header: res.Header,
18486		}
18487	}
18488	if err != nil {
18489		return nil, err
18490	}
18491	defer googleapi.CloseBody(res)
18492	if err := googleapi.CheckResponse(res); err != nil {
18493		return nil, err
18494	}
18495	ret := &GoogleCloudApigeeV1Developer{
18496		ServerResponse: googleapi.ServerResponse{
18497			Header:         res.Header,
18498			HTTPStatusCode: res.StatusCode,
18499		},
18500	}
18501	target := &ret
18502	if err := gensupport.DecodeResponse(target, res); err != nil {
18503		return nil, err
18504	}
18505	return ret, nil
18506	// {
18507	//   "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.",
18508	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}",
18509	//   "httpMethod": "PUT",
18510	//   "id": "apigee.organizations.developers.update",
18511	//   "parameterOrder": [
18512	//     "name"
18513	//   ],
18514	//   "parameters": {
18515	//     "name": {
18516	//       "description": "Required. Email address of the developer. Use the following structure in your request: `organizations/{org}/developers/{developer_email}`",
18517	//       "location": "path",
18518	//       "pattern": "^organizations/[^/]+/developers/[^/]+$",
18519	//       "required": true,
18520	//       "type": "string"
18521	//     }
18522	//   },
18523	//   "path": "v1/{+name}",
18524	//   "request": {
18525	//     "$ref": "GoogleCloudApigeeV1Developer"
18526	//   },
18527	//   "response": {
18528	//     "$ref": "GoogleCloudApigeeV1Developer"
18529	//   },
18530	//   "scopes": [
18531	//     "https://www.googleapis.com/auth/cloud-platform"
18532	//   ]
18533	// }
18534
18535}
18536
18537// method id "apigee.organizations.developers.apps.attributes":
18538
18539type OrganizationsDevelopersAppsAttributesCall struct {
18540	s                             *Service
18541	name                          string
18542	googlecloudapigeev1attributes *GoogleCloudApigeeV1Attributes
18543	urlParams_                    gensupport.URLParams
18544	ctx_                          context.Context
18545	header_                       http.Header
18546}
18547
18548// Attributes: Updates attributes for a developer app. This API replaces
18549// the current attributes with those specified in the request.
18550//
18551// - name: Name of the developer app. Use the following structure in
18552//   your request:
18553//   `organizations/{org}/developers/{developer_email}/apps/{app}`.
18554func (r *OrganizationsDevelopersAppsService) Attributes(name string, googlecloudapigeev1attributes *GoogleCloudApigeeV1Attributes) *OrganizationsDevelopersAppsAttributesCall {
18555	c := &OrganizationsDevelopersAppsAttributesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18556	c.name = name
18557	c.googlecloudapigeev1attributes = googlecloudapigeev1attributes
18558	return c
18559}
18560
18561// Fields allows partial responses to be retrieved. See
18562// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18563// for more information.
18564func (c *OrganizationsDevelopersAppsAttributesCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsAttributesCall {
18565	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18566	return c
18567}
18568
18569// Context sets the context to be used in this call's Do method. Any
18570// pending HTTP request will be aborted if the provided context is
18571// canceled.
18572func (c *OrganizationsDevelopersAppsAttributesCall) Context(ctx context.Context) *OrganizationsDevelopersAppsAttributesCall {
18573	c.ctx_ = ctx
18574	return c
18575}
18576
18577// Header returns an http.Header that can be modified by the caller to
18578// add HTTP headers to the request.
18579func (c *OrganizationsDevelopersAppsAttributesCall) Header() http.Header {
18580	if c.header_ == nil {
18581		c.header_ = make(http.Header)
18582	}
18583	return c.header_
18584}
18585
18586func (c *OrganizationsDevelopersAppsAttributesCall) doRequest(alt string) (*http.Response, error) {
18587	reqHeaders := make(http.Header)
18588	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
18589	for k, v := range c.header_ {
18590		reqHeaders[k] = v
18591	}
18592	reqHeaders.Set("User-Agent", c.s.userAgent())
18593	var body io.Reader = nil
18594	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1attributes)
18595	if err != nil {
18596		return nil, err
18597	}
18598	reqHeaders.Set("Content-Type", "application/json")
18599	c.urlParams_.Set("alt", alt)
18600	c.urlParams_.Set("prettyPrint", "false")
18601	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/attributes")
18602	urls += "?" + c.urlParams_.Encode()
18603	req, err := http.NewRequest("POST", urls, body)
18604	if err != nil {
18605		return nil, err
18606	}
18607	req.Header = reqHeaders
18608	googleapi.Expand(req.URL, map[string]string{
18609		"name": c.name,
18610	})
18611	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18612}
18613
18614// Do executes the "apigee.organizations.developers.apps.attributes" call.
18615// Exactly one of *GoogleCloudApigeeV1Attributes or error will be
18616// non-nil. Any non-2xx status code is an error. Response headers are in
18617// either *GoogleCloudApigeeV1Attributes.ServerResponse.Header or (if a
18618// response was returned at all) in error.(*googleapi.Error).Header. Use
18619// googleapi.IsNotModified to check whether the returned error was
18620// because http.StatusNotModified was returned.
18621func (c *OrganizationsDevelopersAppsAttributesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attributes, error) {
18622	gensupport.SetOptions(c.urlParams_, opts...)
18623	res, err := c.doRequest("json")
18624	if res != nil && res.StatusCode == http.StatusNotModified {
18625		if res.Body != nil {
18626			res.Body.Close()
18627		}
18628		return nil, &googleapi.Error{
18629			Code:   res.StatusCode,
18630			Header: res.Header,
18631		}
18632	}
18633	if err != nil {
18634		return nil, err
18635	}
18636	defer googleapi.CloseBody(res)
18637	if err := googleapi.CheckResponse(res); err != nil {
18638		return nil, err
18639	}
18640	ret := &GoogleCloudApigeeV1Attributes{
18641		ServerResponse: googleapi.ServerResponse{
18642			Header:         res.Header,
18643			HTTPStatusCode: res.StatusCode,
18644		},
18645	}
18646	target := &ret
18647	if err := gensupport.DecodeResponse(target, res); err != nil {
18648		return nil, err
18649	}
18650	return ret, nil
18651	// {
18652	//   "description": "Updates attributes for a developer app. This API replaces the current attributes with those specified in the request.",
18653	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/attributes",
18654	//   "httpMethod": "POST",
18655	//   "id": "apigee.organizations.developers.apps.attributes",
18656	//   "parameterOrder": [
18657	//     "name"
18658	//   ],
18659	//   "parameters": {
18660	//     "name": {
18661	//       "description": "Required. Name of the developer app. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}`",
18662	//       "location": "path",
18663	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$",
18664	//       "required": true,
18665	//       "type": "string"
18666	//     }
18667	//   },
18668	//   "path": "v1/{+name}/attributes",
18669	//   "request": {
18670	//     "$ref": "GoogleCloudApigeeV1Attributes"
18671	//   },
18672	//   "response": {
18673	//     "$ref": "GoogleCloudApigeeV1Attributes"
18674	//   },
18675	//   "scopes": [
18676	//     "https://www.googleapis.com/auth/cloud-platform"
18677	//   ]
18678	// }
18679
18680}
18681
18682// method id "apigee.organizations.developers.apps.create":
18683
18684type OrganizationsDevelopersAppsCreateCall struct {
18685	s                               *Service
18686	parent                          string
18687	googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp
18688	urlParams_                      gensupport.URLParams
18689	ctx_                            context.Context
18690	header_                         http.Header
18691}
18692
18693// Create: Creates an app associated with a developer. This API
18694// associates the developer app with the specified API product and
18695// auto-generates an API key for the app to use in calls to API proxies
18696// inside that API product. The `name` is the unique ID of the app that
18697// you can use in API calls. The `DisplayName` (set as an attribute)
18698// appears in the UI. If you don't set the `DisplayName` attribute, the
18699// `name` appears in the UI.
18700//
18701// - parent: Name of the developer. Use the following structure in your
18702//   request: `organizations/{org}/developers/{developer_email}`.
18703func (r *OrganizationsDevelopersAppsService) Create(parent string, googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp) *OrganizationsDevelopersAppsCreateCall {
18704	c := &OrganizationsDevelopersAppsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18705	c.parent = parent
18706	c.googlecloudapigeev1developerapp = googlecloudapigeev1developerapp
18707	return c
18708}
18709
18710// Fields allows partial responses to be retrieved. See
18711// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18712// for more information.
18713func (c *OrganizationsDevelopersAppsCreateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsCreateCall {
18714	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18715	return c
18716}
18717
18718// Context sets the context to be used in this call's Do method. Any
18719// pending HTTP request will be aborted if the provided context is
18720// canceled.
18721func (c *OrganizationsDevelopersAppsCreateCall) Context(ctx context.Context) *OrganizationsDevelopersAppsCreateCall {
18722	c.ctx_ = ctx
18723	return c
18724}
18725
18726// Header returns an http.Header that can be modified by the caller to
18727// add HTTP headers to the request.
18728func (c *OrganizationsDevelopersAppsCreateCall) Header() http.Header {
18729	if c.header_ == nil {
18730		c.header_ = make(http.Header)
18731	}
18732	return c.header_
18733}
18734
18735func (c *OrganizationsDevelopersAppsCreateCall) doRequest(alt string) (*http.Response, error) {
18736	reqHeaders := make(http.Header)
18737	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
18738	for k, v := range c.header_ {
18739		reqHeaders[k] = v
18740	}
18741	reqHeaders.Set("User-Agent", c.s.userAgent())
18742	var body io.Reader = nil
18743	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerapp)
18744	if err != nil {
18745		return nil, err
18746	}
18747	reqHeaders.Set("Content-Type", "application/json")
18748	c.urlParams_.Set("alt", alt)
18749	c.urlParams_.Set("prettyPrint", "false")
18750	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apps")
18751	urls += "?" + c.urlParams_.Encode()
18752	req, err := http.NewRequest("POST", urls, body)
18753	if err != nil {
18754		return nil, err
18755	}
18756	req.Header = reqHeaders
18757	googleapi.Expand(req.URL, map[string]string{
18758		"parent": c.parent,
18759	})
18760	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18761}
18762
18763// Do executes the "apigee.organizations.developers.apps.create" call.
18764// Exactly one of *GoogleCloudApigeeV1DeveloperApp or error will be
18765// non-nil. Any non-2xx status code is an error. Response headers are in
18766// either *GoogleCloudApigeeV1DeveloperApp.ServerResponse.Header or (if
18767// a response was returned at all) in error.(*googleapi.Error).Header.
18768// Use googleapi.IsNotModified to check whether the returned error was
18769// because http.StatusNotModified was returned.
18770func (c *OrganizationsDevelopersAppsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperApp, error) {
18771	gensupport.SetOptions(c.urlParams_, opts...)
18772	res, err := c.doRequest("json")
18773	if res != nil && res.StatusCode == http.StatusNotModified {
18774		if res.Body != nil {
18775			res.Body.Close()
18776		}
18777		return nil, &googleapi.Error{
18778			Code:   res.StatusCode,
18779			Header: res.Header,
18780		}
18781	}
18782	if err != nil {
18783		return nil, err
18784	}
18785	defer googleapi.CloseBody(res)
18786	if err := googleapi.CheckResponse(res); err != nil {
18787		return nil, err
18788	}
18789	ret := &GoogleCloudApigeeV1DeveloperApp{
18790		ServerResponse: googleapi.ServerResponse{
18791			Header:         res.Header,
18792			HTTPStatusCode: res.StatusCode,
18793		},
18794	}
18795	target := &ret
18796	if err := gensupport.DecodeResponse(target, res); err != nil {
18797		return nil, err
18798	}
18799	return ret, nil
18800	// {
18801	//   "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.",
18802	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps",
18803	//   "httpMethod": "POST",
18804	//   "id": "apigee.organizations.developers.apps.create",
18805	//   "parameterOrder": [
18806	//     "parent"
18807	//   ],
18808	//   "parameters": {
18809	//     "parent": {
18810	//       "description": "Required. Name of the developer. Use the following structure in your request: `organizations/{org}/developers/{developer_email}`",
18811	//       "location": "path",
18812	//       "pattern": "^organizations/[^/]+/developers/[^/]+$",
18813	//       "required": true,
18814	//       "type": "string"
18815	//     }
18816	//   },
18817	//   "path": "v1/{+parent}/apps",
18818	//   "request": {
18819	//     "$ref": "GoogleCloudApigeeV1DeveloperApp"
18820	//   },
18821	//   "response": {
18822	//     "$ref": "GoogleCloudApigeeV1DeveloperApp"
18823	//   },
18824	//   "scopes": [
18825	//     "https://www.googleapis.com/auth/cloud-platform"
18826	//   ]
18827	// }
18828
18829}
18830
18831// method id "apigee.organizations.developers.apps.delete":
18832
18833type OrganizationsDevelopersAppsDeleteCall struct {
18834	s          *Service
18835	name       string
18836	urlParams_ gensupport.URLParams
18837	ctx_       context.Context
18838	header_    http.Header
18839}
18840
18841// Delete: Deletes a developer app. **Note**: The delete operation is
18842// asynchronous. The developer app is deleted immediately, but its
18843// associated resources, such as app keys or access tokens, may take
18844// anywhere from a few seconds to a few minutes to be deleted.
18845//
18846// - name: Name of the developer app. Use the following structure in
18847//   your request:
18848//   `organizations/{org}/developers/{developer_email}/apps/{app}`.
18849func (r *OrganizationsDevelopersAppsService) Delete(name string) *OrganizationsDevelopersAppsDeleteCall {
18850	c := &OrganizationsDevelopersAppsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18851	c.name = name
18852	return c
18853}
18854
18855// Fields allows partial responses to be retrieved. See
18856// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18857// for more information.
18858func (c *OrganizationsDevelopersAppsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsDeleteCall {
18859	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18860	return c
18861}
18862
18863// Context sets the context to be used in this call's Do method. Any
18864// pending HTTP request will be aborted if the provided context is
18865// canceled.
18866func (c *OrganizationsDevelopersAppsDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersAppsDeleteCall {
18867	c.ctx_ = ctx
18868	return c
18869}
18870
18871// Header returns an http.Header that can be modified by the caller to
18872// add HTTP headers to the request.
18873func (c *OrganizationsDevelopersAppsDeleteCall) Header() http.Header {
18874	if c.header_ == nil {
18875		c.header_ = make(http.Header)
18876	}
18877	return c.header_
18878}
18879
18880func (c *OrganizationsDevelopersAppsDeleteCall) doRequest(alt string) (*http.Response, error) {
18881	reqHeaders := make(http.Header)
18882	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
18883	for k, v := range c.header_ {
18884		reqHeaders[k] = v
18885	}
18886	reqHeaders.Set("User-Agent", c.s.userAgent())
18887	var body io.Reader = nil
18888	c.urlParams_.Set("alt", alt)
18889	c.urlParams_.Set("prettyPrint", "false")
18890	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
18891	urls += "?" + c.urlParams_.Encode()
18892	req, err := http.NewRequest("DELETE", urls, body)
18893	if err != nil {
18894		return nil, err
18895	}
18896	req.Header = reqHeaders
18897	googleapi.Expand(req.URL, map[string]string{
18898		"name": c.name,
18899	})
18900	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18901}
18902
18903// Do executes the "apigee.organizations.developers.apps.delete" call.
18904// Exactly one of *GoogleCloudApigeeV1DeveloperApp or error will be
18905// non-nil. Any non-2xx status code is an error. Response headers are in
18906// either *GoogleCloudApigeeV1DeveloperApp.ServerResponse.Header or (if
18907// a response was returned at all) in error.(*googleapi.Error).Header.
18908// Use googleapi.IsNotModified to check whether the returned error was
18909// because http.StatusNotModified was returned.
18910func (c *OrganizationsDevelopersAppsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperApp, error) {
18911	gensupport.SetOptions(c.urlParams_, opts...)
18912	res, err := c.doRequest("json")
18913	if res != nil && res.StatusCode == http.StatusNotModified {
18914		if res.Body != nil {
18915			res.Body.Close()
18916		}
18917		return nil, &googleapi.Error{
18918			Code:   res.StatusCode,
18919			Header: res.Header,
18920		}
18921	}
18922	if err != nil {
18923		return nil, err
18924	}
18925	defer googleapi.CloseBody(res)
18926	if err := googleapi.CheckResponse(res); err != nil {
18927		return nil, err
18928	}
18929	ret := &GoogleCloudApigeeV1DeveloperApp{
18930		ServerResponse: googleapi.ServerResponse{
18931			Header:         res.Header,
18932			HTTPStatusCode: res.StatusCode,
18933		},
18934	}
18935	target := &ret
18936	if err := gensupport.DecodeResponse(target, res); err != nil {
18937		return nil, err
18938	}
18939	return ret, nil
18940	// {
18941	//   "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.",
18942	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}",
18943	//   "httpMethod": "DELETE",
18944	//   "id": "apigee.organizations.developers.apps.delete",
18945	//   "parameterOrder": [
18946	//     "name"
18947	//   ],
18948	//   "parameters": {
18949	//     "name": {
18950	//       "description": "Required. Name of the developer app. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}`",
18951	//       "location": "path",
18952	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$",
18953	//       "required": true,
18954	//       "type": "string"
18955	//     }
18956	//   },
18957	//   "path": "v1/{+name}",
18958	//   "response": {
18959	//     "$ref": "GoogleCloudApigeeV1DeveloperApp"
18960	//   },
18961	//   "scopes": [
18962	//     "https://www.googleapis.com/auth/cloud-platform"
18963	//   ]
18964	// }
18965
18966}
18967
18968// method id "apigee.organizations.developers.apps.generateKeyPairOrUpdateDeveloperAppStatus":
18969
18970type OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall struct {
18971	s                               *Service
18972	name                            string
18973	googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp
18974	urlParams_                      gensupport.URLParams
18975	ctx_                            context.Context
18976	header_                         http.Header
18977}
18978
18979// GenerateKeyPairOrUpdateDeveloperAppStatus: Manages access to a
18980// developer app by enabling you to: * Approve or revoke a developer app
18981// * Generate a new consumer key and secret for a developer app To
18982// approve or revoke a developer app, set the `action` query parameter
18983// to `approved` or `revoked`, respectively, and the `Content-Type`
18984// header to `application/octet-stream`. If a developer app is revoked,
18985// none of its API keys are valid for API calls even though the keys are
18986// still `approved`. If successful, the API call returns the following
18987// HTTP status code: `204 No Content` To generate a new consumer key and
18988// secret for a developer app, pass the new key/secret details. Rather
18989// than replace an existing key, this API generates a new key. In this
18990// case, multiple key pairs may be associated with a single developer
18991// app. Each key pair has an independent status (`approved` or
18992// `revoked`) and expiration time. Any approved, non-expired key can be
18993// used in an API call. For example, if you're using API key rotation,
18994// you can generate new keys with expiration times that overlap keys
18995// that are going to expire. You might also generate a new consumer
18996// key/secret if the security of the original key/secret is compromised.
18997// The `keyExpiresIn` property defines the expiration time for the API
18998// key in milliseconds. If you don't set this property or set it to
18999// `-1`, the API key never expires. **Notes**: * When generating a new
19000// key/secret, this API replaces the existing attributes, notes, and
19001// callback URLs with those specified in the request. Include or exclude
19002// any existing information that you want to retain or delete,
19003// respectively. * To migrate existing consumer keys and secrets to
19004// hybrid from another system, see the CreateDeveloperAppKey API.
19005//
19006// - name: Name of the developer app. Use the following structure in
19007//   your request:
19008//   `organizations/{org}/developers/{developer_email}/apps/{app}`.
19009func (r *OrganizationsDevelopersAppsService) GenerateKeyPairOrUpdateDeveloperAppStatus(name string, googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp) *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall {
19010	c := &OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19011	c.name = name
19012	c.googlecloudapigeev1developerapp = googlecloudapigeev1developerapp
19013	return c
19014}
19015
19016// Action sets the optional parameter "action": Action. Valid values are
19017// `approve` or `revoke`.
19018func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) Action(action string) *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall {
19019	c.urlParams_.Set("action", action)
19020	return c
19021}
19022
19023// Fields allows partial responses to be retrieved. See
19024// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19025// for more information.
19026func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall {
19027	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19028	return c
19029}
19030
19031// Context sets the context to be used in this call's Do method. Any
19032// pending HTTP request will be aborted if the provided context is
19033// canceled.
19034func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) Context(ctx context.Context) *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall {
19035	c.ctx_ = ctx
19036	return c
19037}
19038
19039// Header returns an http.Header that can be modified by the caller to
19040// add HTTP headers to the request.
19041func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) Header() http.Header {
19042	if c.header_ == nil {
19043		c.header_ = make(http.Header)
19044	}
19045	return c.header_
19046}
19047
19048func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) doRequest(alt string) (*http.Response, error) {
19049	reqHeaders := make(http.Header)
19050	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
19051	for k, v := range c.header_ {
19052		reqHeaders[k] = v
19053	}
19054	reqHeaders.Set("User-Agent", c.s.userAgent())
19055	var body io.Reader = nil
19056	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerapp)
19057	if err != nil {
19058		return nil, err
19059	}
19060	reqHeaders.Set("Content-Type", "application/json")
19061	c.urlParams_.Set("alt", alt)
19062	c.urlParams_.Set("prettyPrint", "false")
19063	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
19064	urls += "?" + c.urlParams_.Encode()
19065	req, err := http.NewRequest("POST", urls, body)
19066	if err != nil {
19067		return nil, err
19068	}
19069	req.Header = reqHeaders
19070	googleapi.Expand(req.URL, map[string]string{
19071		"name": c.name,
19072	})
19073	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19074}
19075
19076// Do executes the "apigee.organizations.developers.apps.generateKeyPairOrUpdateDeveloperAppStatus" call.
19077// Exactly one of *GoogleCloudApigeeV1DeveloperApp or error will be
19078// non-nil. Any non-2xx status code is an error. Response headers are in
19079// either *GoogleCloudApigeeV1DeveloperApp.ServerResponse.Header or (if
19080// a response was returned at all) in error.(*googleapi.Error).Header.
19081// Use googleapi.IsNotModified to check whether the returned error was
19082// because http.StatusNotModified was returned.
19083func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperApp, error) {
19084	gensupport.SetOptions(c.urlParams_, opts...)
19085	res, err := c.doRequest("json")
19086	if res != nil && res.StatusCode == http.StatusNotModified {
19087		if res.Body != nil {
19088			res.Body.Close()
19089		}
19090		return nil, &googleapi.Error{
19091			Code:   res.StatusCode,
19092			Header: res.Header,
19093		}
19094	}
19095	if err != nil {
19096		return nil, err
19097	}
19098	defer googleapi.CloseBody(res)
19099	if err := googleapi.CheckResponse(res); err != nil {
19100		return nil, err
19101	}
19102	ret := &GoogleCloudApigeeV1DeveloperApp{
19103		ServerResponse: googleapi.ServerResponse{
19104			Header:         res.Header,
19105			HTTPStatusCode: res.StatusCode,
19106		},
19107	}
19108	target := &ret
19109	if err := gensupport.DecodeResponse(target, res); err != nil {
19110		return nil, err
19111	}
19112	return ret, nil
19113	// {
19114	//   "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.",
19115	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}",
19116	//   "httpMethod": "POST",
19117	//   "id": "apigee.organizations.developers.apps.generateKeyPairOrUpdateDeveloperAppStatus",
19118	//   "parameterOrder": [
19119	//     "name"
19120	//   ],
19121	//   "parameters": {
19122	//     "action": {
19123	//       "description": "Action. Valid values are `approve` or `revoke`.",
19124	//       "location": "query",
19125	//       "type": "string"
19126	//     },
19127	//     "name": {
19128	//       "description": "Required. Name of the developer app. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}`",
19129	//       "location": "path",
19130	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$",
19131	//       "required": true,
19132	//       "type": "string"
19133	//     }
19134	//   },
19135	//   "path": "v1/{+name}",
19136	//   "request": {
19137	//     "$ref": "GoogleCloudApigeeV1DeveloperApp"
19138	//   },
19139	//   "response": {
19140	//     "$ref": "GoogleCloudApigeeV1DeveloperApp"
19141	//   },
19142	//   "scopes": [
19143	//     "https://www.googleapis.com/auth/cloud-platform"
19144	//   ]
19145	// }
19146
19147}
19148
19149// method id "apigee.organizations.developers.apps.get":
19150
19151type OrganizationsDevelopersAppsGetCall struct {
19152	s            *Service
19153	name         string
19154	urlParams_   gensupport.URLParams
19155	ifNoneMatch_ string
19156	ctx_         context.Context
19157	header_      http.Header
19158}
19159
19160// Get: Returns the details for a developer app.
19161//
19162// - name: Name of the developer app. Use the following structure in
19163//   your request:
19164//   `organizations/{org}/developers/{developer_email}/apps/{app}`.
19165func (r *OrganizationsDevelopersAppsService) Get(name string) *OrganizationsDevelopersAppsGetCall {
19166	c := &OrganizationsDevelopersAppsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19167	c.name = name
19168	return c
19169}
19170
19171// Entity sets the optional parameter "entity": **Note**: Must be used
19172// in conjunction with the `query` parameter. Set to `apiresources` to
19173// return the number of API resources that have been approved for access
19174// by a developer app in the specified Apigee organization.
19175func (c *OrganizationsDevelopersAppsGetCall) Entity(entity string) *OrganizationsDevelopersAppsGetCall {
19176	c.urlParams_.Set("entity", entity)
19177	return c
19178}
19179
19180// Query sets the optional parameter "query": **Note**: Must be used in
19181// conjunction with the `entity` parameter. Set to `count` to return the
19182// number of API resources that have been approved for access by a
19183// developer app in the specified Apigee organization.
19184func (c *OrganizationsDevelopersAppsGetCall) Query(query string) *OrganizationsDevelopersAppsGetCall {
19185	c.urlParams_.Set("query", query)
19186	return c
19187}
19188
19189// Fields allows partial responses to be retrieved. See
19190// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19191// for more information.
19192func (c *OrganizationsDevelopersAppsGetCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsGetCall {
19193	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19194	return c
19195}
19196
19197// IfNoneMatch sets the optional parameter which makes the operation
19198// fail if the object's ETag matches the given value. This is useful for
19199// getting updates only after the object has changed since the last
19200// request. Use googleapi.IsNotModified to check whether the response
19201// error from Do is the result of In-None-Match.
19202func (c *OrganizationsDevelopersAppsGetCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAppsGetCall {
19203	c.ifNoneMatch_ = entityTag
19204	return c
19205}
19206
19207// Context sets the context to be used in this call's Do method. Any
19208// pending HTTP request will be aborted if the provided context is
19209// canceled.
19210func (c *OrganizationsDevelopersAppsGetCall) Context(ctx context.Context) *OrganizationsDevelopersAppsGetCall {
19211	c.ctx_ = ctx
19212	return c
19213}
19214
19215// Header returns an http.Header that can be modified by the caller to
19216// add HTTP headers to the request.
19217func (c *OrganizationsDevelopersAppsGetCall) Header() http.Header {
19218	if c.header_ == nil {
19219		c.header_ = make(http.Header)
19220	}
19221	return c.header_
19222}
19223
19224func (c *OrganizationsDevelopersAppsGetCall) doRequest(alt string) (*http.Response, error) {
19225	reqHeaders := make(http.Header)
19226	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
19227	for k, v := range c.header_ {
19228		reqHeaders[k] = v
19229	}
19230	reqHeaders.Set("User-Agent", c.s.userAgent())
19231	if c.ifNoneMatch_ != "" {
19232		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19233	}
19234	var body io.Reader = nil
19235	c.urlParams_.Set("alt", alt)
19236	c.urlParams_.Set("prettyPrint", "false")
19237	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
19238	urls += "?" + c.urlParams_.Encode()
19239	req, err := http.NewRequest("GET", urls, body)
19240	if err != nil {
19241		return nil, err
19242	}
19243	req.Header = reqHeaders
19244	googleapi.Expand(req.URL, map[string]string{
19245		"name": c.name,
19246	})
19247	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19248}
19249
19250// Do executes the "apigee.organizations.developers.apps.get" call.
19251// Exactly one of *GoogleCloudApigeeV1DeveloperApp or error will be
19252// non-nil. Any non-2xx status code is an error. Response headers are in
19253// either *GoogleCloudApigeeV1DeveloperApp.ServerResponse.Header or (if
19254// a response was returned at all) in error.(*googleapi.Error).Header.
19255// Use googleapi.IsNotModified to check whether the returned error was
19256// because http.StatusNotModified was returned.
19257func (c *OrganizationsDevelopersAppsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperApp, error) {
19258	gensupport.SetOptions(c.urlParams_, opts...)
19259	res, err := c.doRequest("json")
19260	if res != nil && res.StatusCode == http.StatusNotModified {
19261		if res.Body != nil {
19262			res.Body.Close()
19263		}
19264		return nil, &googleapi.Error{
19265			Code:   res.StatusCode,
19266			Header: res.Header,
19267		}
19268	}
19269	if err != nil {
19270		return nil, err
19271	}
19272	defer googleapi.CloseBody(res)
19273	if err := googleapi.CheckResponse(res); err != nil {
19274		return nil, err
19275	}
19276	ret := &GoogleCloudApigeeV1DeveloperApp{
19277		ServerResponse: googleapi.ServerResponse{
19278			Header:         res.Header,
19279			HTTPStatusCode: res.StatusCode,
19280		},
19281	}
19282	target := &ret
19283	if err := gensupport.DecodeResponse(target, res); err != nil {
19284		return nil, err
19285	}
19286	return ret, nil
19287	// {
19288	//   "description": "Returns the details for a developer app.",
19289	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}",
19290	//   "httpMethod": "GET",
19291	//   "id": "apigee.organizations.developers.apps.get",
19292	//   "parameterOrder": [
19293	//     "name"
19294	//   ],
19295	//   "parameters": {
19296	//     "entity": {
19297	//       "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.",
19298	//       "location": "query",
19299	//       "type": "string"
19300	//     },
19301	//     "name": {
19302	//       "description": "Required. Name of the developer app. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}`",
19303	//       "location": "path",
19304	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$",
19305	//       "required": true,
19306	//       "type": "string"
19307	//     },
19308	//     "query": {
19309	//       "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.",
19310	//       "location": "query",
19311	//       "type": "string"
19312	//     }
19313	//   },
19314	//   "path": "v1/{+name}",
19315	//   "response": {
19316	//     "$ref": "GoogleCloudApigeeV1DeveloperApp"
19317	//   },
19318	//   "scopes": [
19319	//     "https://www.googleapis.com/auth/cloud-platform"
19320	//   ]
19321	// }
19322
19323}
19324
19325// method id "apigee.organizations.developers.apps.list":
19326
19327type OrganizationsDevelopersAppsListCall struct {
19328	s            *Service
19329	parent       string
19330	urlParams_   gensupport.URLParams
19331	ifNoneMatch_ string
19332	ctx_         context.Context
19333	header_      http.Header
19334}
19335
19336// List: Lists all apps created by a developer in an Apigee
19337// organization. Optionally, you can request an expanded view of the
19338// developer apps. A maximum of 100 developer apps are returned per API
19339// call. You can paginate the list of deveoper apps returned using the
19340// `startKey` and `count` query parameters.
19341//
19342// - parent: Name of the developer. Use the following structure in your
19343//   request: `organizations/{org}/developers/{developer_email}`.
19344func (r *OrganizationsDevelopersAppsService) List(parent string) *OrganizationsDevelopersAppsListCall {
19345	c := &OrganizationsDevelopersAppsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19346	c.parent = parent
19347	return c
19348}
19349
19350// Count sets the optional parameter "count": Number of developer apps
19351// to return in the API call. Use with the `startKey` parameter to
19352// provide more targeted filtering. The limit is 1000.
19353func (c *OrganizationsDevelopersAppsListCall) Count(count int64) *OrganizationsDevelopersAppsListCall {
19354	c.urlParams_.Set("count", fmt.Sprint(count))
19355	return c
19356}
19357
19358// Expand sets the optional parameter "expand": Specifies whether to
19359// expand the results. Set to `true` to expand the results. This query
19360// parameter is not valid if you use the `count` or `startKey` query
19361// parameters.
19362func (c *OrganizationsDevelopersAppsListCall) Expand(expand bool) *OrganizationsDevelopersAppsListCall {
19363	c.urlParams_.Set("expand", fmt.Sprint(expand))
19364	return c
19365}
19366
19367// ShallowExpand sets the optional parameter "shallowExpand": Specifies
19368// whether to expand the results in shallow mode. Set to `true` to
19369// expand the results in shallow mode.
19370func (c *OrganizationsDevelopersAppsListCall) ShallowExpand(shallowExpand bool) *OrganizationsDevelopersAppsListCall {
19371	c.urlParams_.Set("shallowExpand", fmt.Sprint(shallowExpand))
19372	return c
19373}
19374
19375// StartKey sets the optional parameter "startKey": **Note**: Must be
19376// used in conjunction with the `count` parameter. Name of the developer
19377// app from which to start displaying the list of developer apps. For
19378// example, if you're returning 50 developer apps at a time (using the
19379// `count` query parameter), you can view developer apps 50-99 by
19380// entering the name of the 50th developer app. The developer app name
19381// is case sensitive.
19382func (c *OrganizationsDevelopersAppsListCall) StartKey(startKey string) *OrganizationsDevelopersAppsListCall {
19383	c.urlParams_.Set("startKey", startKey)
19384	return c
19385}
19386
19387// Fields allows partial responses to be retrieved. See
19388// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19389// for more information.
19390func (c *OrganizationsDevelopersAppsListCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsListCall {
19391	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19392	return c
19393}
19394
19395// IfNoneMatch sets the optional parameter which makes the operation
19396// fail if the object's ETag matches the given value. This is useful for
19397// getting updates only after the object has changed since the last
19398// request. Use googleapi.IsNotModified to check whether the response
19399// error from Do is the result of In-None-Match.
19400func (c *OrganizationsDevelopersAppsListCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAppsListCall {
19401	c.ifNoneMatch_ = entityTag
19402	return c
19403}
19404
19405// Context sets the context to be used in this call's Do method. Any
19406// pending HTTP request will be aborted if the provided context is
19407// canceled.
19408func (c *OrganizationsDevelopersAppsListCall) Context(ctx context.Context) *OrganizationsDevelopersAppsListCall {
19409	c.ctx_ = ctx
19410	return c
19411}
19412
19413// Header returns an http.Header that can be modified by the caller to
19414// add HTTP headers to the request.
19415func (c *OrganizationsDevelopersAppsListCall) Header() http.Header {
19416	if c.header_ == nil {
19417		c.header_ = make(http.Header)
19418	}
19419	return c.header_
19420}
19421
19422func (c *OrganizationsDevelopersAppsListCall) doRequest(alt string) (*http.Response, error) {
19423	reqHeaders := make(http.Header)
19424	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
19425	for k, v := range c.header_ {
19426		reqHeaders[k] = v
19427	}
19428	reqHeaders.Set("User-Agent", c.s.userAgent())
19429	if c.ifNoneMatch_ != "" {
19430		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19431	}
19432	var body io.Reader = nil
19433	c.urlParams_.Set("alt", alt)
19434	c.urlParams_.Set("prettyPrint", "false")
19435	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apps")
19436	urls += "?" + c.urlParams_.Encode()
19437	req, err := http.NewRequest("GET", urls, body)
19438	if err != nil {
19439		return nil, err
19440	}
19441	req.Header = reqHeaders
19442	googleapi.Expand(req.URL, map[string]string{
19443		"parent": c.parent,
19444	})
19445	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19446}
19447
19448// Do executes the "apigee.organizations.developers.apps.list" call.
19449// Exactly one of *GoogleCloudApigeeV1ListDeveloperAppsResponse or error
19450// will be non-nil. Any non-2xx status code is an error. Response
19451// headers are in either
19452// *GoogleCloudApigeeV1ListDeveloperAppsResponse.ServerResponse.Header
19453// or (if a response was returned at all) in
19454// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
19455// whether the returned error was because http.StatusNotModified was
19456// returned.
19457func (c *OrganizationsDevelopersAppsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeveloperAppsResponse, error) {
19458	gensupport.SetOptions(c.urlParams_, opts...)
19459	res, err := c.doRequest("json")
19460	if res != nil && res.StatusCode == http.StatusNotModified {
19461		if res.Body != nil {
19462			res.Body.Close()
19463		}
19464		return nil, &googleapi.Error{
19465			Code:   res.StatusCode,
19466			Header: res.Header,
19467		}
19468	}
19469	if err != nil {
19470		return nil, err
19471	}
19472	defer googleapi.CloseBody(res)
19473	if err := googleapi.CheckResponse(res); err != nil {
19474		return nil, err
19475	}
19476	ret := &GoogleCloudApigeeV1ListDeveloperAppsResponse{
19477		ServerResponse: googleapi.ServerResponse{
19478			Header:         res.Header,
19479			HTTPStatusCode: res.StatusCode,
19480		},
19481	}
19482	target := &ret
19483	if err := gensupport.DecodeResponse(target, res); err != nil {
19484		return nil, err
19485	}
19486	return ret, nil
19487	// {
19488	//   "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.",
19489	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps",
19490	//   "httpMethod": "GET",
19491	//   "id": "apigee.organizations.developers.apps.list",
19492	//   "parameterOrder": [
19493	//     "parent"
19494	//   ],
19495	//   "parameters": {
19496	//     "count": {
19497	//       "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.",
19498	//       "format": "int64",
19499	//       "location": "query",
19500	//       "type": "string"
19501	//     },
19502	//     "expand": {
19503	//       "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.",
19504	//       "location": "query",
19505	//       "type": "boolean"
19506	//     },
19507	//     "parent": {
19508	//       "description": "Required. Name of the developer. Use the following structure in your request: `organizations/{org}/developers/{developer_email}`",
19509	//       "location": "path",
19510	//       "pattern": "^organizations/[^/]+/developers/[^/]+$",
19511	//       "required": true,
19512	//       "type": "string"
19513	//     },
19514	//     "shallowExpand": {
19515	//       "description": "Optional. Specifies whether to expand the results in shallow mode. Set to `true` to expand the results in shallow mode.",
19516	//       "location": "query",
19517	//       "type": "boolean"
19518	//     },
19519	//     "startKey": {
19520	//       "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.",
19521	//       "location": "query",
19522	//       "type": "string"
19523	//     }
19524	//   },
19525	//   "path": "v1/{+parent}/apps",
19526	//   "response": {
19527	//     "$ref": "GoogleCloudApigeeV1ListDeveloperAppsResponse"
19528	//   },
19529	//   "scopes": [
19530	//     "https://www.googleapis.com/auth/cloud-platform"
19531	//   ]
19532	// }
19533
19534}
19535
19536// method id "apigee.organizations.developers.apps.update":
19537
19538type OrganizationsDevelopersAppsUpdateCall struct {
19539	s                               *Service
19540	name                            string
19541	googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp
19542	urlParams_                      gensupport.URLParams
19543	ctx_                            context.Context
19544	header_                         http.Header
19545}
19546
19547// Update: Updates the details for a developer app. In addition, you can
19548// add an API product to a developer app and automatically generate an
19549// API key for the app to use when calling APIs in the API product. If
19550// you want to use an existing API key for the API product, add the API
19551// product to the API key using the UpdateDeveloperAppKey API. Using
19552// this API, you cannot update the following: * App name as it is the
19553// primary key used to identify the app and cannot be changed. * Scopes
19554// associated with the app. Instead, use the ReplaceDeveloperAppKey API.
19555// This API replaces the existing attributes with those specified in the
19556// request. Include or exclude any existing attributes that you want to
19557// retain or delete, respectively.
19558//
19559// - name: Name of the developer app. Use the following structure in
19560//   your request:
19561//   `organizations/{org}/developers/{developer_email}/apps/{app}`.
19562func (r *OrganizationsDevelopersAppsService) Update(name string, googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp) *OrganizationsDevelopersAppsUpdateCall {
19563	c := &OrganizationsDevelopersAppsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19564	c.name = name
19565	c.googlecloudapigeev1developerapp = googlecloudapigeev1developerapp
19566	return c
19567}
19568
19569// Fields allows partial responses to be retrieved. See
19570// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19571// for more information.
19572func (c *OrganizationsDevelopersAppsUpdateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsUpdateCall {
19573	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19574	return c
19575}
19576
19577// Context sets the context to be used in this call's Do method. Any
19578// pending HTTP request will be aborted if the provided context is
19579// canceled.
19580func (c *OrganizationsDevelopersAppsUpdateCall) Context(ctx context.Context) *OrganizationsDevelopersAppsUpdateCall {
19581	c.ctx_ = ctx
19582	return c
19583}
19584
19585// Header returns an http.Header that can be modified by the caller to
19586// add HTTP headers to the request.
19587func (c *OrganizationsDevelopersAppsUpdateCall) Header() http.Header {
19588	if c.header_ == nil {
19589		c.header_ = make(http.Header)
19590	}
19591	return c.header_
19592}
19593
19594func (c *OrganizationsDevelopersAppsUpdateCall) doRequest(alt string) (*http.Response, error) {
19595	reqHeaders := make(http.Header)
19596	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
19597	for k, v := range c.header_ {
19598		reqHeaders[k] = v
19599	}
19600	reqHeaders.Set("User-Agent", c.s.userAgent())
19601	var body io.Reader = nil
19602	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerapp)
19603	if err != nil {
19604		return nil, err
19605	}
19606	reqHeaders.Set("Content-Type", "application/json")
19607	c.urlParams_.Set("alt", alt)
19608	c.urlParams_.Set("prettyPrint", "false")
19609	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
19610	urls += "?" + c.urlParams_.Encode()
19611	req, err := http.NewRequest("PUT", urls, body)
19612	if err != nil {
19613		return nil, err
19614	}
19615	req.Header = reqHeaders
19616	googleapi.Expand(req.URL, map[string]string{
19617		"name": c.name,
19618	})
19619	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19620}
19621
19622// Do executes the "apigee.organizations.developers.apps.update" call.
19623// Exactly one of *GoogleCloudApigeeV1DeveloperApp or error will be
19624// non-nil. Any non-2xx status code is an error. Response headers are in
19625// either *GoogleCloudApigeeV1DeveloperApp.ServerResponse.Header or (if
19626// a response was returned at all) in error.(*googleapi.Error).Header.
19627// Use googleapi.IsNotModified to check whether the returned error was
19628// because http.StatusNotModified was returned.
19629func (c *OrganizationsDevelopersAppsUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperApp, error) {
19630	gensupport.SetOptions(c.urlParams_, opts...)
19631	res, err := c.doRequest("json")
19632	if res != nil && res.StatusCode == http.StatusNotModified {
19633		if res.Body != nil {
19634			res.Body.Close()
19635		}
19636		return nil, &googleapi.Error{
19637			Code:   res.StatusCode,
19638			Header: res.Header,
19639		}
19640	}
19641	if err != nil {
19642		return nil, err
19643	}
19644	defer googleapi.CloseBody(res)
19645	if err := googleapi.CheckResponse(res); err != nil {
19646		return nil, err
19647	}
19648	ret := &GoogleCloudApigeeV1DeveloperApp{
19649		ServerResponse: googleapi.ServerResponse{
19650			Header:         res.Header,
19651			HTTPStatusCode: res.StatusCode,
19652		},
19653	}
19654	target := &ret
19655	if err := gensupport.DecodeResponse(target, res); err != nil {
19656		return nil, err
19657	}
19658	return ret, nil
19659	// {
19660	//   "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.",
19661	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}",
19662	//   "httpMethod": "PUT",
19663	//   "id": "apigee.organizations.developers.apps.update",
19664	//   "parameterOrder": [
19665	//     "name"
19666	//   ],
19667	//   "parameters": {
19668	//     "name": {
19669	//       "description": "Required. Name of the developer app. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}`",
19670	//       "location": "path",
19671	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$",
19672	//       "required": true,
19673	//       "type": "string"
19674	//     }
19675	//   },
19676	//   "path": "v1/{+name}",
19677	//   "request": {
19678	//     "$ref": "GoogleCloudApigeeV1DeveloperApp"
19679	//   },
19680	//   "response": {
19681	//     "$ref": "GoogleCloudApigeeV1DeveloperApp"
19682	//   },
19683	//   "scopes": [
19684	//     "https://www.googleapis.com/auth/cloud-platform"
19685	//   ]
19686	// }
19687
19688}
19689
19690// method id "apigee.organizations.developers.apps.attributes.delete":
19691
19692type OrganizationsDevelopersAppsAttributesDeleteCall struct {
19693	s          *Service
19694	name       string
19695	urlParams_ gensupport.URLParams
19696	ctx_       context.Context
19697	header_    http.Header
19698}
19699
19700// Delete: Deletes a developer app attribute.
19701//
19702// - name: Name of the developer app attribute. Use the following
19703//   structure in your request:
19704//   `organizations/{org}/developers/{developer_email}/apps/{app}/attribu
19705//   tes/{attribute}`.
19706func (r *OrganizationsDevelopersAppsAttributesService) Delete(name string) *OrganizationsDevelopersAppsAttributesDeleteCall {
19707	c := &OrganizationsDevelopersAppsAttributesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19708	c.name = name
19709	return c
19710}
19711
19712// Fields allows partial responses to be retrieved. See
19713// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19714// for more information.
19715func (c *OrganizationsDevelopersAppsAttributesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsAttributesDeleteCall {
19716	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19717	return c
19718}
19719
19720// Context sets the context to be used in this call's Do method. Any
19721// pending HTTP request will be aborted if the provided context is
19722// canceled.
19723func (c *OrganizationsDevelopersAppsAttributesDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersAppsAttributesDeleteCall {
19724	c.ctx_ = ctx
19725	return c
19726}
19727
19728// Header returns an http.Header that can be modified by the caller to
19729// add HTTP headers to the request.
19730func (c *OrganizationsDevelopersAppsAttributesDeleteCall) Header() http.Header {
19731	if c.header_ == nil {
19732		c.header_ = make(http.Header)
19733	}
19734	return c.header_
19735}
19736
19737func (c *OrganizationsDevelopersAppsAttributesDeleteCall) doRequest(alt string) (*http.Response, error) {
19738	reqHeaders := make(http.Header)
19739	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
19740	for k, v := range c.header_ {
19741		reqHeaders[k] = v
19742	}
19743	reqHeaders.Set("User-Agent", c.s.userAgent())
19744	var body io.Reader = nil
19745	c.urlParams_.Set("alt", alt)
19746	c.urlParams_.Set("prettyPrint", "false")
19747	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
19748	urls += "?" + c.urlParams_.Encode()
19749	req, err := http.NewRequest("DELETE", urls, body)
19750	if err != nil {
19751		return nil, err
19752	}
19753	req.Header = reqHeaders
19754	googleapi.Expand(req.URL, map[string]string{
19755		"name": c.name,
19756	})
19757	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19758}
19759
19760// Do executes the "apigee.organizations.developers.apps.attributes.delete" call.
19761// Exactly one of *GoogleCloudApigeeV1Attribute or error will be
19762// non-nil. Any non-2xx status code is an error. Response headers are in
19763// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a
19764// response was returned at all) in error.(*googleapi.Error).Header. Use
19765// googleapi.IsNotModified to check whether the returned error was
19766// because http.StatusNotModified was returned.
19767func (c *OrganizationsDevelopersAppsAttributesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
19768	gensupport.SetOptions(c.urlParams_, opts...)
19769	res, err := c.doRequest("json")
19770	if res != nil && res.StatusCode == http.StatusNotModified {
19771		if res.Body != nil {
19772			res.Body.Close()
19773		}
19774		return nil, &googleapi.Error{
19775			Code:   res.StatusCode,
19776			Header: res.Header,
19777		}
19778	}
19779	if err != nil {
19780		return nil, err
19781	}
19782	defer googleapi.CloseBody(res)
19783	if err := googleapi.CheckResponse(res); err != nil {
19784		return nil, err
19785	}
19786	ret := &GoogleCloudApigeeV1Attribute{
19787		ServerResponse: googleapi.ServerResponse{
19788			Header:         res.Header,
19789			HTTPStatusCode: res.StatusCode,
19790		},
19791	}
19792	target := &ret
19793	if err := gensupport.DecodeResponse(target, res); err != nil {
19794		return nil, err
19795	}
19796	return ret, nil
19797	// {
19798	//   "description": "Deletes a developer app attribute.",
19799	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/attributes/{attributesId}",
19800	//   "httpMethod": "DELETE",
19801	//   "id": "apigee.organizations.developers.apps.attributes.delete",
19802	//   "parameterOrder": [
19803	//     "name"
19804	//   ],
19805	//   "parameters": {
19806	//     "name": {
19807	//       "description": "Required. Name of the developer app attribute. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}/attributes/{attribute}`",
19808	//       "location": "path",
19809	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/attributes/[^/]+$",
19810	//       "required": true,
19811	//       "type": "string"
19812	//     }
19813	//   },
19814	//   "path": "v1/{+name}",
19815	//   "response": {
19816	//     "$ref": "GoogleCloudApigeeV1Attribute"
19817	//   },
19818	//   "scopes": [
19819	//     "https://www.googleapis.com/auth/cloud-platform"
19820	//   ]
19821	// }
19822
19823}
19824
19825// method id "apigee.organizations.developers.apps.attributes.get":
19826
19827type OrganizationsDevelopersAppsAttributesGetCall struct {
19828	s            *Service
19829	name         string
19830	urlParams_   gensupport.URLParams
19831	ifNoneMatch_ string
19832	ctx_         context.Context
19833	header_      http.Header
19834}
19835
19836// Get: Returns a developer app attribute.
19837//
19838// - name: Name of the developer app attribute. Use the following
19839//   structure in your request:
19840//   `organizations/{org}/developers/{developer_email}/apps/{app}/attribu
19841//   tes/{attribute}`.
19842func (r *OrganizationsDevelopersAppsAttributesService) Get(name string) *OrganizationsDevelopersAppsAttributesGetCall {
19843	c := &OrganizationsDevelopersAppsAttributesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19844	c.name = name
19845	return c
19846}
19847
19848// Fields allows partial responses to be retrieved. See
19849// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19850// for more information.
19851func (c *OrganizationsDevelopersAppsAttributesGetCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsAttributesGetCall {
19852	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19853	return c
19854}
19855
19856// IfNoneMatch sets the optional parameter which makes the operation
19857// fail if the object's ETag matches the given value. This is useful for
19858// getting updates only after the object has changed since the last
19859// request. Use googleapi.IsNotModified to check whether the response
19860// error from Do is the result of In-None-Match.
19861func (c *OrganizationsDevelopersAppsAttributesGetCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAppsAttributesGetCall {
19862	c.ifNoneMatch_ = entityTag
19863	return c
19864}
19865
19866// Context sets the context to be used in this call's Do method. Any
19867// pending HTTP request will be aborted if the provided context is
19868// canceled.
19869func (c *OrganizationsDevelopersAppsAttributesGetCall) Context(ctx context.Context) *OrganizationsDevelopersAppsAttributesGetCall {
19870	c.ctx_ = ctx
19871	return c
19872}
19873
19874// Header returns an http.Header that can be modified by the caller to
19875// add HTTP headers to the request.
19876func (c *OrganizationsDevelopersAppsAttributesGetCall) Header() http.Header {
19877	if c.header_ == nil {
19878		c.header_ = make(http.Header)
19879	}
19880	return c.header_
19881}
19882
19883func (c *OrganizationsDevelopersAppsAttributesGetCall) doRequest(alt string) (*http.Response, error) {
19884	reqHeaders := make(http.Header)
19885	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
19886	for k, v := range c.header_ {
19887		reqHeaders[k] = v
19888	}
19889	reqHeaders.Set("User-Agent", c.s.userAgent())
19890	if c.ifNoneMatch_ != "" {
19891		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19892	}
19893	var body io.Reader = nil
19894	c.urlParams_.Set("alt", alt)
19895	c.urlParams_.Set("prettyPrint", "false")
19896	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
19897	urls += "?" + c.urlParams_.Encode()
19898	req, err := http.NewRequest("GET", urls, body)
19899	if err != nil {
19900		return nil, err
19901	}
19902	req.Header = reqHeaders
19903	googleapi.Expand(req.URL, map[string]string{
19904		"name": c.name,
19905	})
19906	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19907}
19908
19909// Do executes the "apigee.organizations.developers.apps.attributes.get" call.
19910// Exactly one of *GoogleCloudApigeeV1Attribute or error will be
19911// non-nil. Any non-2xx status code is an error. Response headers are in
19912// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a
19913// response was returned at all) in error.(*googleapi.Error).Header. Use
19914// googleapi.IsNotModified to check whether the returned error was
19915// because http.StatusNotModified was returned.
19916func (c *OrganizationsDevelopersAppsAttributesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
19917	gensupport.SetOptions(c.urlParams_, opts...)
19918	res, err := c.doRequest("json")
19919	if res != nil && res.StatusCode == http.StatusNotModified {
19920		if res.Body != nil {
19921			res.Body.Close()
19922		}
19923		return nil, &googleapi.Error{
19924			Code:   res.StatusCode,
19925			Header: res.Header,
19926		}
19927	}
19928	if err != nil {
19929		return nil, err
19930	}
19931	defer googleapi.CloseBody(res)
19932	if err := googleapi.CheckResponse(res); err != nil {
19933		return nil, err
19934	}
19935	ret := &GoogleCloudApigeeV1Attribute{
19936		ServerResponse: googleapi.ServerResponse{
19937			Header:         res.Header,
19938			HTTPStatusCode: res.StatusCode,
19939		},
19940	}
19941	target := &ret
19942	if err := gensupport.DecodeResponse(target, res); err != nil {
19943		return nil, err
19944	}
19945	return ret, nil
19946	// {
19947	//   "description": "Returns a developer app attribute.",
19948	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/attributes/{attributesId}",
19949	//   "httpMethod": "GET",
19950	//   "id": "apigee.organizations.developers.apps.attributes.get",
19951	//   "parameterOrder": [
19952	//     "name"
19953	//   ],
19954	//   "parameters": {
19955	//     "name": {
19956	//       "description": "Required. Name of the developer app attribute. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}/attributes/{attribute}`",
19957	//       "location": "path",
19958	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/attributes/[^/]+$",
19959	//       "required": true,
19960	//       "type": "string"
19961	//     }
19962	//   },
19963	//   "path": "v1/{+name}",
19964	//   "response": {
19965	//     "$ref": "GoogleCloudApigeeV1Attribute"
19966	//   },
19967	//   "scopes": [
19968	//     "https://www.googleapis.com/auth/cloud-platform"
19969	//   ]
19970	// }
19971
19972}
19973
19974// method id "apigee.organizations.developers.apps.attributes.list":
19975
19976type OrganizationsDevelopersAppsAttributesListCall struct {
19977	s            *Service
19978	parent       string
19979	urlParams_   gensupport.URLParams
19980	ifNoneMatch_ string
19981	ctx_         context.Context
19982	header_      http.Header
19983}
19984
19985// List: Returns a list of all developer app attributes.
19986//
19987// - parent: Name of the developer app. Use the following structure in
19988//   your request:
19989//   `organizations/{org}/developers/{developer_email}/apps/{app}`.
19990func (r *OrganizationsDevelopersAppsAttributesService) List(parent string) *OrganizationsDevelopersAppsAttributesListCall {
19991	c := &OrganizationsDevelopersAppsAttributesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19992	c.parent = parent
19993	return c
19994}
19995
19996// Fields allows partial responses to be retrieved. See
19997// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19998// for more information.
19999func (c *OrganizationsDevelopersAppsAttributesListCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsAttributesListCall {
20000	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20001	return c
20002}
20003
20004// IfNoneMatch sets the optional parameter which makes the operation
20005// fail if the object's ETag matches the given value. This is useful for
20006// getting updates only after the object has changed since the last
20007// request. Use googleapi.IsNotModified to check whether the response
20008// error from Do is the result of In-None-Match.
20009func (c *OrganizationsDevelopersAppsAttributesListCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAppsAttributesListCall {
20010	c.ifNoneMatch_ = entityTag
20011	return c
20012}
20013
20014// Context sets the context to be used in this call's Do method. Any
20015// pending HTTP request will be aborted if the provided context is
20016// canceled.
20017func (c *OrganizationsDevelopersAppsAttributesListCall) Context(ctx context.Context) *OrganizationsDevelopersAppsAttributesListCall {
20018	c.ctx_ = ctx
20019	return c
20020}
20021
20022// Header returns an http.Header that can be modified by the caller to
20023// add HTTP headers to the request.
20024func (c *OrganizationsDevelopersAppsAttributesListCall) Header() http.Header {
20025	if c.header_ == nil {
20026		c.header_ = make(http.Header)
20027	}
20028	return c.header_
20029}
20030
20031func (c *OrganizationsDevelopersAppsAttributesListCall) doRequest(alt string) (*http.Response, error) {
20032	reqHeaders := make(http.Header)
20033	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
20034	for k, v := range c.header_ {
20035		reqHeaders[k] = v
20036	}
20037	reqHeaders.Set("User-Agent", c.s.userAgent())
20038	if c.ifNoneMatch_ != "" {
20039		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
20040	}
20041	var body io.Reader = nil
20042	c.urlParams_.Set("alt", alt)
20043	c.urlParams_.Set("prettyPrint", "false")
20044	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attributes")
20045	urls += "?" + c.urlParams_.Encode()
20046	req, err := http.NewRequest("GET", urls, body)
20047	if err != nil {
20048		return nil, err
20049	}
20050	req.Header = reqHeaders
20051	googleapi.Expand(req.URL, map[string]string{
20052		"parent": c.parent,
20053	})
20054	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20055}
20056
20057// Do executes the "apigee.organizations.developers.apps.attributes.list" call.
20058// Exactly one of *GoogleCloudApigeeV1Attributes or error will be
20059// non-nil. Any non-2xx status code is an error. Response headers are in
20060// either *GoogleCloudApigeeV1Attributes.ServerResponse.Header or (if a
20061// response was returned at all) in error.(*googleapi.Error).Header. Use
20062// googleapi.IsNotModified to check whether the returned error was
20063// because http.StatusNotModified was returned.
20064func (c *OrganizationsDevelopersAppsAttributesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attributes, error) {
20065	gensupport.SetOptions(c.urlParams_, opts...)
20066	res, err := c.doRequest("json")
20067	if res != nil && res.StatusCode == http.StatusNotModified {
20068		if res.Body != nil {
20069			res.Body.Close()
20070		}
20071		return nil, &googleapi.Error{
20072			Code:   res.StatusCode,
20073			Header: res.Header,
20074		}
20075	}
20076	if err != nil {
20077		return nil, err
20078	}
20079	defer googleapi.CloseBody(res)
20080	if err := googleapi.CheckResponse(res); err != nil {
20081		return nil, err
20082	}
20083	ret := &GoogleCloudApigeeV1Attributes{
20084		ServerResponse: googleapi.ServerResponse{
20085			Header:         res.Header,
20086			HTTPStatusCode: res.StatusCode,
20087		},
20088	}
20089	target := &ret
20090	if err := gensupport.DecodeResponse(target, res); err != nil {
20091		return nil, err
20092	}
20093	return ret, nil
20094	// {
20095	//   "description": "Returns a list of all developer app attributes.",
20096	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/attributes",
20097	//   "httpMethod": "GET",
20098	//   "id": "apigee.organizations.developers.apps.attributes.list",
20099	//   "parameterOrder": [
20100	//     "parent"
20101	//   ],
20102	//   "parameters": {
20103	//     "parent": {
20104	//       "description": "Required. Name of the developer app. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}`",
20105	//       "location": "path",
20106	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$",
20107	//       "required": true,
20108	//       "type": "string"
20109	//     }
20110	//   },
20111	//   "path": "v1/{+parent}/attributes",
20112	//   "response": {
20113	//     "$ref": "GoogleCloudApigeeV1Attributes"
20114	//   },
20115	//   "scopes": [
20116	//     "https://www.googleapis.com/auth/cloud-platform"
20117	//   ]
20118	// }
20119
20120}
20121
20122// method id "apigee.organizations.developers.apps.attributes.updateDeveloperAppAttribute":
20123
20124type OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall struct {
20125	s                            *Service
20126	name                         string
20127	googlecloudapigeev1attribute *GoogleCloudApigeeV1Attribute
20128	urlParams_                   gensupport.URLParams
20129	ctx_                         context.Context
20130	header_                      http.Header
20131}
20132
20133// UpdateDeveloperAppAttribute: Updates a developer app attribute.
20134// **Note**: OAuth access tokens and Key Management Service (KMS)
20135// entities (apps, developers, and API products) are cached for 180
20136// seconds (current default). Any custom attributes associated with
20137// these entities are cached for at least 180 seconds after the entity
20138// is accessed at runtime. Therefore, an `ExpiresIn` element on the
20139// OAuthV2 policy won't be able to expire an access token in less than
20140// 180 seconds.
20141//
20142// - name: Name of the developer app attribute. Use the following
20143//   structure in your request:
20144//   `organizations/{org}/developers/{developer_email}/apps/{app}/attribu
20145//   tes/{attribute}`.
20146func (r *OrganizationsDevelopersAppsAttributesService) UpdateDeveloperAppAttribute(name string, googlecloudapigeev1attribute *GoogleCloudApigeeV1Attribute) *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall {
20147	c := &OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20148	c.name = name
20149	c.googlecloudapigeev1attribute = googlecloudapigeev1attribute
20150	return c
20151}
20152
20153// Fields allows partial responses to be retrieved. See
20154// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20155// for more information.
20156func (c *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall {
20157	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20158	return c
20159}
20160
20161// Context sets the context to be used in this call's Do method. Any
20162// pending HTTP request will be aborted if the provided context is
20163// canceled.
20164func (c *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall) Context(ctx context.Context) *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall {
20165	c.ctx_ = ctx
20166	return c
20167}
20168
20169// Header returns an http.Header that can be modified by the caller to
20170// add HTTP headers to the request.
20171func (c *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall) Header() http.Header {
20172	if c.header_ == nil {
20173		c.header_ = make(http.Header)
20174	}
20175	return c.header_
20176}
20177
20178func (c *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall) doRequest(alt string) (*http.Response, error) {
20179	reqHeaders := make(http.Header)
20180	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
20181	for k, v := range c.header_ {
20182		reqHeaders[k] = v
20183	}
20184	reqHeaders.Set("User-Agent", c.s.userAgent())
20185	var body io.Reader = nil
20186	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1attribute)
20187	if err != nil {
20188		return nil, err
20189	}
20190	reqHeaders.Set("Content-Type", "application/json")
20191	c.urlParams_.Set("alt", alt)
20192	c.urlParams_.Set("prettyPrint", "false")
20193	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
20194	urls += "?" + c.urlParams_.Encode()
20195	req, err := http.NewRequest("POST", urls, body)
20196	if err != nil {
20197		return nil, err
20198	}
20199	req.Header = reqHeaders
20200	googleapi.Expand(req.URL, map[string]string{
20201		"name": c.name,
20202	})
20203	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20204}
20205
20206// Do executes the "apigee.organizations.developers.apps.attributes.updateDeveloperAppAttribute" call.
20207// Exactly one of *GoogleCloudApigeeV1Attribute or error will be
20208// non-nil. Any non-2xx status code is an error. Response headers are in
20209// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a
20210// response was returned at all) in error.(*googleapi.Error).Header. Use
20211// googleapi.IsNotModified to check whether the returned error was
20212// because http.StatusNotModified was returned.
20213func (c *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
20214	gensupport.SetOptions(c.urlParams_, opts...)
20215	res, err := c.doRequest("json")
20216	if res != nil && res.StatusCode == http.StatusNotModified {
20217		if res.Body != nil {
20218			res.Body.Close()
20219		}
20220		return nil, &googleapi.Error{
20221			Code:   res.StatusCode,
20222			Header: res.Header,
20223		}
20224	}
20225	if err != nil {
20226		return nil, err
20227	}
20228	defer googleapi.CloseBody(res)
20229	if err := googleapi.CheckResponse(res); err != nil {
20230		return nil, err
20231	}
20232	ret := &GoogleCloudApigeeV1Attribute{
20233		ServerResponse: googleapi.ServerResponse{
20234			Header:         res.Header,
20235			HTTPStatusCode: res.StatusCode,
20236		},
20237	}
20238	target := &ret
20239	if err := gensupport.DecodeResponse(target, res); err != nil {
20240		return nil, err
20241	}
20242	return ret, nil
20243	// {
20244	//   "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.",
20245	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/attributes/{attributesId}",
20246	//   "httpMethod": "POST",
20247	//   "id": "apigee.organizations.developers.apps.attributes.updateDeveloperAppAttribute",
20248	//   "parameterOrder": [
20249	//     "name"
20250	//   ],
20251	//   "parameters": {
20252	//     "name": {
20253	//       "description": "Required. Name of the developer app attribute. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}/attributes/{attribute}`",
20254	//       "location": "path",
20255	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/attributes/[^/]+$",
20256	//       "required": true,
20257	//       "type": "string"
20258	//     }
20259	//   },
20260	//   "path": "v1/{+name}",
20261	//   "request": {
20262	//     "$ref": "GoogleCloudApigeeV1Attribute"
20263	//   },
20264	//   "response": {
20265	//     "$ref": "GoogleCloudApigeeV1Attribute"
20266	//   },
20267	//   "scopes": [
20268	//     "https://www.googleapis.com/auth/cloud-platform"
20269	//   ]
20270	// }
20271
20272}
20273
20274// method id "apigee.organizations.developers.apps.keys.create":
20275
20276type OrganizationsDevelopersAppsKeysCreateCall struct {
20277	s                                  *Service
20278	parent                             string
20279	googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey
20280	urlParams_                         gensupport.URLParams
20281	ctx_                               context.Context
20282	header_                            http.Header
20283}
20284
20285// Create: Creates a custom consumer key and secret for a developer app.
20286// This is particularly useful if you want to migrate existing consumer
20287// keys and secrets to Apigee from another system. Consumer keys and
20288// secrets can contain letters, numbers, underscores, and hyphens. No
20289// other special characters are allowed. To avoid service disruptions, a
20290// consumer key and secret should not exceed 2 KBs each. **Note**: When
20291// creating the consumer key and secret, an association to API products
20292// will not be made. Therefore, you should not specify the associated
20293// API products in your request. Instead, use the UpdateDeveloperAppKey
20294// API to make the association after the consumer key and secret are
20295// created. If a consumer key and secret already exist, you can keep
20296// them or delete them using the DeleteDeveloperAppKey API.
20297//
20298// - parent: Parent of the developer app key. Use the following
20299//   structure in your request:
20300//   `organizations/{org}/developers/{developer_email}/apps`.
20301func (r *OrganizationsDevelopersAppsKeysService) Create(parent string, googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey) *OrganizationsDevelopersAppsKeysCreateCall {
20302	c := &OrganizationsDevelopersAppsKeysCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20303	c.parent = parent
20304	c.googlecloudapigeev1developerappkey = googlecloudapigeev1developerappkey
20305	return c
20306}
20307
20308// Fields allows partial responses to be retrieved. See
20309// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20310// for more information.
20311func (c *OrganizationsDevelopersAppsKeysCreateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysCreateCall {
20312	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20313	return c
20314}
20315
20316// Context sets the context to be used in this call's Do method. Any
20317// pending HTTP request will be aborted if the provided context is
20318// canceled.
20319func (c *OrganizationsDevelopersAppsKeysCreateCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysCreateCall {
20320	c.ctx_ = ctx
20321	return c
20322}
20323
20324// Header returns an http.Header that can be modified by the caller to
20325// add HTTP headers to the request.
20326func (c *OrganizationsDevelopersAppsKeysCreateCall) Header() http.Header {
20327	if c.header_ == nil {
20328		c.header_ = make(http.Header)
20329	}
20330	return c.header_
20331}
20332
20333func (c *OrganizationsDevelopersAppsKeysCreateCall) doRequest(alt string) (*http.Response, error) {
20334	reqHeaders := make(http.Header)
20335	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
20336	for k, v := range c.header_ {
20337		reqHeaders[k] = v
20338	}
20339	reqHeaders.Set("User-Agent", c.s.userAgent())
20340	var body io.Reader = nil
20341	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerappkey)
20342	if err != nil {
20343		return nil, err
20344	}
20345	reqHeaders.Set("Content-Type", "application/json")
20346	c.urlParams_.Set("alt", alt)
20347	c.urlParams_.Set("prettyPrint", "false")
20348	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keys")
20349	urls += "?" + c.urlParams_.Encode()
20350	req, err := http.NewRequest("POST", urls, body)
20351	if err != nil {
20352		return nil, err
20353	}
20354	req.Header = reqHeaders
20355	googleapi.Expand(req.URL, map[string]string{
20356		"parent": c.parent,
20357	})
20358	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20359}
20360
20361// Do executes the "apigee.organizations.developers.apps.keys.create" call.
20362// Exactly one of *GoogleCloudApigeeV1DeveloperAppKey or error will be
20363// non-nil. Any non-2xx status code is an error. Response headers are in
20364// either *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or
20365// (if a response was returned at all) in
20366// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
20367// whether the returned error was because http.StatusNotModified was
20368// returned.
20369func (c *OrganizationsDevelopersAppsKeysCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) {
20370	gensupport.SetOptions(c.urlParams_, opts...)
20371	res, err := c.doRequest("json")
20372	if res != nil && res.StatusCode == http.StatusNotModified {
20373		if res.Body != nil {
20374			res.Body.Close()
20375		}
20376		return nil, &googleapi.Error{
20377			Code:   res.StatusCode,
20378			Header: res.Header,
20379		}
20380	}
20381	if err != nil {
20382		return nil, err
20383	}
20384	defer googleapi.CloseBody(res)
20385	if err := googleapi.CheckResponse(res); err != nil {
20386		return nil, err
20387	}
20388	ret := &GoogleCloudApigeeV1DeveloperAppKey{
20389		ServerResponse: googleapi.ServerResponse{
20390			Header:         res.Header,
20391			HTTPStatusCode: res.StatusCode,
20392		},
20393	}
20394	target := &ret
20395	if err := gensupport.DecodeResponse(target, res); err != nil {
20396		return nil, err
20397	}
20398	return ret, nil
20399	// {
20400	//   "description": "Creates a custom consumer key and secret for a developer app. This is particularly useful if you want to migrate existing consumer keys and secrets to Apigee from another system. Consumer keys and secrets can contain letters, numbers, underscores, and hyphens. No other special characters are allowed. To avoid service disruptions, a consumer key and secret should not exceed 2 KBs each. **Note**: When creating the consumer key and secret, an association to API products will not be made. Therefore, you should not specify the associated API products in your request. Instead, use the UpdateDeveloperAppKey API to make the association after the consumer key and secret are created. If a consumer key and secret already exist, you can keep them or delete them using the DeleteDeveloperAppKey API.",
20401	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys",
20402	//   "httpMethod": "POST",
20403	//   "id": "apigee.organizations.developers.apps.keys.create",
20404	//   "parameterOrder": [
20405	//     "parent"
20406	//   ],
20407	//   "parameters": {
20408	//     "parent": {
20409	//       "description": "Parent of the developer app key. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps`",
20410	//       "location": "path",
20411	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$",
20412	//       "required": true,
20413	//       "type": "string"
20414	//     }
20415	//   },
20416	//   "path": "v1/{+parent}/keys",
20417	//   "request": {
20418	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
20419	//   },
20420	//   "response": {
20421	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
20422	//   },
20423	//   "scopes": [
20424	//     "https://www.googleapis.com/auth/cloud-platform"
20425	//   ]
20426	// }
20427
20428}
20429
20430// method id "apigee.organizations.developers.apps.keys.delete":
20431
20432type OrganizationsDevelopersAppsKeysDeleteCall struct {
20433	s          *Service
20434	name       string
20435	urlParams_ gensupport.URLParams
20436	ctx_       context.Context
20437	header_    http.Header
20438}
20439
20440// Delete: Deletes an app's consumer key and removes all API products
20441// associated with the app. After the consumer key is deleted, it cannot
20442// be used to access any APIs. **Note**: After you delete a consumer
20443// key, you may want to: 1. Create a new consumer key and secret for the
20444// developer app using the CreateDeveloperAppKey API, and subsequently
20445// add an API product to the key using the UpdateDeveloperAppKey API. 2.
20446// Delete the developer app, if it is no longer required.
20447//
20448// - name: Name of the developer app key. Use the following structure in
20449//   your request:
20450//   `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{k
20451//   ey}`.
20452func (r *OrganizationsDevelopersAppsKeysService) Delete(name string) *OrganizationsDevelopersAppsKeysDeleteCall {
20453	c := &OrganizationsDevelopersAppsKeysDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20454	c.name = name
20455	return c
20456}
20457
20458// Fields allows partial responses to be retrieved. See
20459// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20460// for more information.
20461func (c *OrganizationsDevelopersAppsKeysDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysDeleteCall {
20462	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20463	return c
20464}
20465
20466// Context sets the context to be used in this call's Do method. Any
20467// pending HTTP request will be aborted if the provided context is
20468// canceled.
20469func (c *OrganizationsDevelopersAppsKeysDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysDeleteCall {
20470	c.ctx_ = ctx
20471	return c
20472}
20473
20474// Header returns an http.Header that can be modified by the caller to
20475// add HTTP headers to the request.
20476func (c *OrganizationsDevelopersAppsKeysDeleteCall) Header() http.Header {
20477	if c.header_ == nil {
20478		c.header_ = make(http.Header)
20479	}
20480	return c.header_
20481}
20482
20483func (c *OrganizationsDevelopersAppsKeysDeleteCall) doRequest(alt string) (*http.Response, error) {
20484	reqHeaders := make(http.Header)
20485	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
20486	for k, v := range c.header_ {
20487		reqHeaders[k] = v
20488	}
20489	reqHeaders.Set("User-Agent", c.s.userAgent())
20490	var body io.Reader = nil
20491	c.urlParams_.Set("alt", alt)
20492	c.urlParams_.Set("prettyPrint", "false")
20493	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
20494	urls += "?" + c.urlParams_.Encode()
20495	req, err := http.NewRequest("DELETE", urls, body)
20496	if err != nil {
20497		return nil, err
20498	}
20499	req.Header = reqHeaders
20500	googleapi.Expand(req.URL, map[string]string{
20501		"name": c.name,
20502	})
20503	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20504}
20505
20506// Do executes the "apigee.organizations.developers.apps.keys.delete" call.
20507// Exactly one of *GoogleCloudApigeeV1DeveloperAppKey or error will be
20508// non-nil. Any non-2xx status code is an error. Response headers are in
20509// either *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or
20510// (if a response was returned at all) in
20511// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
20512// whether the returned error was because http.StatusNotModified was
20513// returned.
20514func (c *OrganizationsDevelopersAppsKeysDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) {
20515	gensupport.SetOptions(c.urlParams_, opts...)
20516	res, err := c.doRequest("json")
20517	if res != nil && res.StatusCode == http.StatusNotModified {
20518		if res.Body != nil {
20519			res.Body.Close()
20520		}
20521		return nil, &googleapi.Error{
20522			Code:   res.StatusCode,
20523			Header: res.Header,
20524		}
20525	}
20526	if err != nil {
20527		return nil, err
20528	}
20529	defer googleapi.CloseBody(res)
20530	if err := googleapi.CheckResponse(res); err != nil {
20531		return nil, err
20532	}
20533	ret := &GoogleCloudApigeeV1DeveloperAppKey{
20534		ServerResponse: googleapi.ServerResponse{
20535			Header:         res.Header,
20536			HTTPStatusCode: res.StatusCode,
20537		},
20538	}
20539	target := &ret
20540	if err := gensupport.DecodeResponse(target, res); err != nil {
20541		return nil, err
20542	}
20543	return ret, nil
20544	// {
20545	//   "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.",
20546	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys/{keysId}",
20547	//   "httpMethod": "DELETE",
20548	//   "id": "apigee.organizations.developers.apps.keys.delete",
20549	//   "parameterOrder": [
20550	//     "name"
20551	//   ],
20552	//   "parameters": {
20553	//     "name": {
20554	//       "description": "Name of the developer app key. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{key}`",
20555	//       "location": "path",
20556	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/keys/[^/]+$",
20557	//       "required": true,
20558	//       "type": "string"
20559	//     }
20560	//   },
20561	//   "path": "v1/{+name}",
20562	//   "response": {
20563	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
20564	//   },
20565	//   "scopes": [
20566	//     "https://www.googleapis.com/auth/cloud-platform"
20567	//   ]
20568	// }
20569
20570}
20571
20572// method id "apigee.organizations.developers.apps.keys.get":
20573
20574type OrganizationsDevelopersAppsKeysGetCall struct {
20575	s            *Service
20576	name         string
20577	urlParams_   gensupport.URLParams
20578	ifNoneMatch_ string
20579	ctx_         context.Context
20580	header_      http.Header
20581}
20582
20583// Get: Gets details for a consumer key for a developer app, including
20584// the key and secret value, associated API products, and other
20585// information.
20586//
20587// - name: Name of the developer app key. Use the following structure in
20588//   your request:
20589//   `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{k
20590//   ey}`.
20591func (r *OrganizationsDevelopersAppsKeysService) Get(name string) *OrganizationsDevelopersAppsKeysGetCall {
20592	c := &OrganizationsDevelopersAppsKeysGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20593	c.name = name
20594	return c
20595}
20596
20597// Fields allows partial responses to be retrieved. See
20598// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20599// for more information.
20600func (c *OrganizationsDevelopersAppsKeysGetCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysGetCall {
20601	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20602	return c
20603}
20604
20605// IfNoneMatch sets the optional parameter which makes the operation
20606// fail if the object's ETag matches the given value. This is useful for
20607// getting updates only after the object has changed since the last
20608// request. Use googleapi.IsNotModified to check whether the response
20609// error from Do is the result of In-None-Match.
20610func (c *OrganizationsDevelopersAppsKeysGetCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAppsKeysGetCall {
20611	c.ifNoneMatch_ = entityTag
20612	return c
20613}
20614
20615// Context sets the context to be used in this call's Do method. Any
20616// pending HTTP request will be aborted if the provided context is
20617// canceled.
20618func (c *OrganizationsDevelopersAppsKeysGetCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysGetCall {
20619	c.ctx_ = ctx
20620	return c
20621}
20622
20623// Header returns an http.Header that can be modified by the caller to
20624// add HTTP headers to the request.
20625func (c *OrganizationsDevelopersAppsKeysGetCall) Header() http.Header {
20626	if c.header_ == nil {
20627		c.header_ = make(http.Header)
20628	}
20629	return c.header_
20630}
20631
20632func (c *OrganizationsDevelopersAppsKeysGetCall) doRequest(alt string) (*http.Response, error) {
20633	reqHeaders := make(http.Header)
20634	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
20635	for k, v := range c.header_ {
20636		reqHeaders[k] = v
20637	}
20638	reqHeaders.Set("User-Agent", c.s.userAgent())
20639	if c.ifNoneMatch_ != "" {
20640		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
20641	}
20642	var body io.Reader = nil
20643	c.urlParams_.Set("alt", alt)
20644	c.urlParams_.Set("prettyPrint", "false")
20645	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
20646	urls += "?" + c.urlParams_.Encode()
20647	req, err := http.NewRequest("GET", urls, body)
20648	if err != nil {
20649		return nil, err
20650	}
20651	req.Header = reqHeaders
20652	googleapi.Expand(req.URL, map[string]string{
20653		"name": c.name,
20654	})
20655	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20656}
20657
20658// Do executes the "apigee.organizations.developers.apps.keys.get" call.
20659// Exactly one of *GoogleCloudApigeeV1DeveloperAppKey or error will be
20660// non-nil. Any non-2xx status code is an error. Response headers are in
20661// either *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or
20662// (if a response was returned at all) in
20663// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
20664// whether the returned error was because http.StatusNotModified was
20665// returned.
20666func (c *OrganizationsDevelopersAppsKeysGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) {
20667	gensupport.SetOptions(c.urlParams_, opts...)
20668	res, err := c.doRequest("json")
20669	if res != nil && res.StatusCode == http.StatusNotModified {
20670		if res.Body != nil {
20671			res.Body.Close()
20672		}
20673		return nil, &googleapi.Error{
20674			Code:   res.StatusCode,
20675			Header: res.Header,
20676		}
20677	}
20678	if err != nil {
20679		return nil, err
20680	}
20681	defer googleapi.CloseBody(res)
20682	if err := googleapi.CheckResponse(res); err != nil {
20683		return nil, err
20684	}
20685	ret := &GoogleCloudApigeeV1DeveloperAppKey{
20686		ServerResponse: googleapi.ServerResponse{
20687			Header:         res.Header,
20688			HTTPStatusCode: res.StatusCode,
20689		},
20690	}
20691	target := &ret
20692	if err := gensupport.DecodeResponse(target, res); err != nil {
20693		return nil, err
20694	}
20695	return ret, nil
20696	// {
20697	//   "description": "Gets details for a consumer key for a developer app, including the key and secret value, associated API products, and other information.",
20698	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys/{keysId}",
20699	//   "httpMethod": "GET",
20700	//   "id": "apigee.organizations.developers.apps.keys.get",
20701	//   "parameterOrder": [
20702	//     "name"
20703	//   ],
20704	//   "parameters": {
20705	//     "name": {
20706	//       "description": "Name of the developer app key. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{key}`",
20707	//       "location": "path",
20708	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/keys/[^/]+$",
20709	//       "required": true,
20710	//       "type": "string"
20711	//     }
20712	//   },
20713	//   "path": "v1/{+name}",
20714	//   "response": {
20715	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
20716	//   },
20717	//   "scopes": [
20718	//     "https://www.googleapis.com/auth/cloud-platform"
20719	//   ]
20720	// }
20721
20722}
20723
20724// method id "apigee.organizations.developers.apps.keys.replaceDeveloperAppKey":
20725
20726type OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall struct {
20727	s                                  *Service
20728	name                               string
20729	googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey
20730	urlParams_                         gensupport.URLParams
20731	ctx_                               context.Context
20732	header_                            http.Header
20733}
20734
20735// ReplaceDeveloperAppKey: Updates the scope of an app. This API
20736// replaces the existing scopes with those specified in the request.
20737// Include or exclude any existing scopes that you want to retain or
20738// delete, respectively. The specified scopes must already be defined
20739// for the API products associated with the app. This API sets the
20740// `scopes` element under the `apiProducts` element in the attributes of
20741// the app.
20742//
20743// - name: Name of the developer app key. Use the following structure in
20744//   your request:
20745//   `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{k
20746//   ey}`.
20747func (r *OrganizationsDevelopersAppsKeysService) ReplaceDeveloperAppKey(name string, googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey) *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall {
20748	c := &OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20749	c.name = name
20750	c.googlecloudapigeev1developerappkey = googlecloudapigeev1developerappkey
20751	return c
20752}
20753
20754// Fields allows partial responses to be retrieved. See
20755// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20756// for more information.
20757func (c *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall {
20758	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20759	return c
20760}
20761
20762// Context sets the context to be used in this call's Do method. Any
20763// pending HTTP request will be aborted if the provided context is
20764// canceled.
20765func (c *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall {
20766	c.ctx_ = ctx
20767	return c
20768}
20769
20770// Header returns an http.Header that can be modified by the caller to
20771// add HTTP headers to the request.
20772func (c *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall) Header() http.Header {
20773	if c.header_ == nil {
20774		c.header_ = make(http.Header)
20775	}
20776	return c.header_
20777}
20778
20779func (c *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall) doRequest(alt string) (*http.Response, error) {
20780	reqHeaders := make(http.Header)
20781	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
20782	for k, v := range c.header_ {
20783		reqHeaders[k] = v
20784	}
20785	reqHeaders.Set("User-Agent", c.s.userAgent())
20786	var body io.Reader = nil
20787	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerappkey)
20788	if err != nil {
20789		return nil, err
20790	}
20791	reqHeaders.Set("Content-Type", "application/json")
20792	c.urlParams_.Set("alt", alt)
20793	c.urlParams_.Set("prettyPrint", "false")
20794	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
20795	urls += "?" + c.urlParams_.Encode()
20796	req, err := http.NewRequest("PUT", urls, body)
20797	if err != nil {
20798		return nil, err
20799	}
20800	req.Header = reqHeaders
20801	googleapi.Expand(req.URL, map[string]string{
20802		"name": c.name,
20803	})
20804	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20805}
20806
20807// Do executes the "apigee.organizations.developers.apps.keys.replaceDeveloperAppKey" call.
20808// Exactly one of *GoogleCloudApigeeV1DeveloperAppKey or error will be
20809// non-nil. Any non-2xx status code is an error. Response headers are in
20810// either *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or
20811// (if a response was returned at all) in
20812// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
20813// whether the returned error was because http.StatusNotModified was
20814// returned.
20815func (c *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) {
20816	gensupport.SetOptions(c.urlParams_, opts...)
20817	res, err := c.doRequest("json")
20818	if res != nil && res.StatusCode == http.StatusNotModified {
20819		if res.Body != nil {
20820			res.Body.Close()
20821		}
20822		return nil, &googleapi.Error{
20823			Code:   res.StatusCode,
20824			Header: res.Header,
20825		}
20826	}
20827	if err != nil {
20828		return nil, err
20829	}
20830	defer googleapi.CloseBody(res)
20831	if err := googleapi.CheckResponse(res); err != nil {
20832		return nil, err
20833	}
20834	ret := &GoogleCloudApigeeV1DeveloperAppKey{
20835		ServerResponse: googleapi.ServerResponse{
20836			Header:         res.Header,
20837			HTTPStatusCode: res.StatusCode,
20838		},
20839	}
20840	target := &ret
20841	if err := gensupport.DecodeResponse(target, res); err != nil {
20842		return nil, err
20843	}
20844	return ret, nil
20845	// {
20846	//   "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.",
20847	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys/{keysId}",
20848	//   "httpMethod": "PUT",
20849	//   "id": "apigee.organizations.developers.apps.keys.replaceDeveloperAppKey",
20850	//   "parameterOrder": [
20851	//     "name"
20852	//   ],
20853	//   "parameters": {
20854	//     "name": {
20855	//       "description": "Name of the developer app key. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{key}`",
20856	//       "location": "path",
20857	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/keys/[^/]+$",
20858	//       "required": true,
20859	//       "type": "string"
20860	//     }
20861	//   },
20862	//   "path": "v1/{+name}",
20863	//   "request": {
20864	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
20865	//   },
20866	//   "response": {
20867	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
20868	//   },
20869	//   "scopes": [
20870	//     "https://www.googleapis.com/auth/cloud-platform"
20871	//   ]
20872	// }
20873
20874}
20875
20876// method id "apigee.organizations.developers.apps.keys.updateDeveloperAppKey":
20877
20878type OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall struct {
20879	s                                  *Service
20880	name                               string
20881	googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey
20882	urlParams_                         gensupport.URLParams
20883	ctx_                               context.Context
20884	header_                            http.Header
20885}
20886
20887// UpdateDeveloperAppKey: Adds an API product to a developer app key,
20888// enabling the app that holds the key to access the API resources
20889// bundled in the API product. In addition, you can add attributes to a
20890// developer app key. This API replaces the existing attributes with
20891// those specified in the request. Include or exclude any existing
20892// attributes that you want to retain or delete, respectively. You can
20893// use the same key to access all API products associated with the app.
20894//
20895// - name: Name of the developer app key. Use the following structure in
20896//   your request:
20897//   `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{k
20898//   ey}`.
20899func (r *OrganizationsDevelopersAppsKeysService) UpdateDeveloperAppKey(name string, googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey) *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall {
20900	c := &OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20901	c.name = name
20902	c.googlecloudapigeev1developerappkey = googlecloudapigeev1developerappkey
20903	return c
20904}
20905
20906// Action sets the optional parameter "action": Approve or revoke the
20907// consumer key by setting this value to `approve` or `revoke`,
20908// respectively.
20909func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) Action(action string) *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall {
20910	c.urlParams_.Set("action", action)
20911	return c
20912}
20913
20914// Fields allows partial responses to be retrieved. See
20915// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20916// for more information.
20917func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall {
20918	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20919	return c
20920}
20921
20922// Context sets the context to be used in this call's Do method. Any
20923// pending HTTP request will be aborted if the provided context is
20924// canceled.
20925func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall {
20926	c.ctx_ = ctx
20927	return c
20928}
20929
20930// Header returns an http.Header that can be modified by the caller to
20931// add HTTP headers to the request.
20932func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) Header() http.Header {
20933	if c.header_ == nil {
20934		c.header_ = make(http.Header)
20935	}
20936	return c.header_
20937}
20938
20939func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) doRequest(alt string) (*http.Response, error) {
20940	reqHeaders := make(http.Header)
20941	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
20942	for k, v := range c.header_ {
20943		reqHeaders[k] = v
20944	}
20945	reqHeaders.Set("User-Agent", c.s.userAgent())
20946	var body io.Reader = nil
20947	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerappkey)
20948	if err != nil {
20949		return nil, err
20950	}
20951	reqHeaders.Set("Content-Type", "application/json")
20952	c.urlParams_.Set("alt", alt)
20953	c.urlParams_.Set("prettyPrint", "false")
20954	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
20955	urls += "?" + c.urlParams_.Encode()
20956	req, err := http.NewRequest("POST", urls, body)
20957	if err != nil {
20958		return nil, err
20959	}
20960	req.Header = reqHeaders
20961	googleapi.Expand(req.URL, map[string]string{
20962		"name": c.name,
20963	})
20964	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20965}
20966
20967// Do executes the "apigee.organizations.developers.apps.keys.updateDeveloperAppKey" call.
20968// Exactly one of *GoogleCloudApigeeV1DeveloperAppKey or error will be
20969// non-nil. Any non-2xx status code is an error. Response headers are in
20970// either *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or
20971// (if a response was returned at all) in
20972// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
20973// whether the returned error was because http.StatusNotModified was
20974// returned.
20975func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) {
20976	gensupport.SetOptions(c.urlParams_, opts...)
20977	res, err := c.doRequest("json")
20978	if res != nil && res.StatusCode == http.StatusNotModified {
20979		if res.Body != nil {
20980			res.Body.Close()
20981		}
20982		return nil, &googleapi.Error{
20983			Code:   res.StatusCode,
20984			Header: res.Header,
20985		}
20986	}
20987	if err != nil {
20988		return nil, err
20989	}
20990	defer googleapi.CloseBody(res)
20991	if err := googleapi.CheckResponse(res); err != nil {
20992		return nil, err
20993	}
20994	ret := &GoogleCloudApigeeV1DeveloperAppKey{
20995		ServerResponse: googleapi.ServerResponse{
20996			Header:         res.Header,
20997			HTTPStatusCode: res.StatusCode,
20998		},
20999	}
21000	target := &ret
21001	if err := gensupport.DecodeResponse(target, res); err != nil {
21002		return nil, err
21003	}
21004	return ret, nil
21005	// {
21006	//   "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.",
21007	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys/{keysId}",
21008	//   "httpMethod": "POST",
21009	//   "id": "apigee.organizations.developers.apps.keys.updateDeveloperAppKey",
21010	//   "parameterOrder": [
21011	//     "name"
21012	//   ],
21013	//   "parameters": {
21014	//     "action": {
21015	//       "description": "Approve or revoke the consumer key by setting this value to `approve` or `revoke`, respectively.",
21016	//       "location": "query",
21017	//       "type": "string"
21018	//     },
21019	//     "name": {
21020	//       "description": "Name of the developer app key. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{key}`",
21021	//       "location": "path",
21022	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/keys/[^/]+$",
21023	//       "required": true,
21024	//       "type": "string"
21025	//     }
21026	//   },
21027	//   "path": "v1/{+name}",
21028	//   "request": {
21029	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
21030	//   },
21031	//   "response": {
21032	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
21033	//   },
21034	//   "scopes": [
21035	//     "https://www.googleapis.com/auth/cloud-platform"
21036	//   ]
21037	// }
21038
21039}
21040
21041// method id "apigee.organizations.developers.apps.keys.apiproducts.delete":
21042
21043type OrganizationsDevelopersAppsKeysApiproductsDeleteCall struct {
21044	s          *Service
21045	name       string
21046	urlParams_ gensupport.URLParams
21047	ctx_       context.Context
21048	header_    http.Header
21049}
21050
21051// Delete: Removes an API product from an app's consumer key. After the
21052// API product is removed, the app cannot access the API resources
21053// defined in that API product. **Note**: The consumer key is not
21054// removed, only its association with the API product.
21055//
21056// - name: Name of the API product in the developer app key in the
21057//   following format:
21058//   `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{k
21059//   ey}/apiproducts/{apiproduct}`.
21060func (r *OrganizationsDevelopersAppsKeysApiproductsService) Delete(name string) *OrganizationsDevelopersAppsKeysApiproductsDeleteCall {
21061	c := &OrganizationsDevelopersAppsKeysApiproductsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21062	c.name = name
21063	return c
21064}
21065
21066// Fields allows partial responses to be retrieved. See
21067// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21068// for more information.
21069func (c *OrganizationsDevelopersAppsKeysApiproductsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysApiproductsDeleteCall {
21070	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21071	return c
21072}
21073
21074// Context sets the context to be used in this call's Do method. Any
21075// pending HTTP request will be aborted if the provided context is
21076// canceled.
21077func (c *OrganizationsDevelopersAppsKeysApiproductsDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysApiproductsDeleteCall {
21078	c.ctx_ = ctx
21079	return c
21080}
21081
21082// Header returns an http.Header that can be modified by the caller to
21083// add HTTP headers to the request.
21084func (c *OrganizationsDevelopersAppsKeysApiproductsDeleteCall) Header() http.Header {
21085	if c.header_ == nil {
21086		c.header_ = make(http.Header)
21087	}
21088	return c.header_
21089}
21090
21091func (c *OrganizationsDevelopersAppsKeysApiproductsDeleteCall) doRequest(alt string) (*http.Response, error) {
21092	reqHeaders := make(http.Header)
21093	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
21094	for k, v := range c.header_ {
21095		reqHeaders[k] = v
21096	}
21097	reqHeaders.Set("User-Agent", c.s.userAgent())
21098	var body io.Reader = nil
21099	c.urlParams_.Set("alt", alt)
21100	c.urlParams_.Set("prettyPrint", "false")
21101	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
21102	urls += "?" + c.urlParams_.Encode()
21103	req, err := http.NewRequest("DELETE", urls, body)
21104	if err != nil {
21105		return nil, err
21106	}
21107	req.Header = reqHeaders
21108	googleapi.Expand(req.URL, map[string]string{
21109		"name": c.name,
21110	})
21111	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21112}
21113
21114// Do executes the "apigee.organizations.developers.apps.keys.apiproducts.delete" call.
21115// Exactly one of *GoogleCloudApigeeV1DeveloperAppKey or error will be
21116// non-nil. Any non-2xx status code is an error. Response headers are in
21117// either *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or
21118// (if a response was returned at all) in
21119// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
21120// whether the returned error was because http.StatusNotModified was
21121// returned.
21122func (c *OrganizationsDevelopersAppsKeysApiproductsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) {
21123	gensupport.SetOptions(c.urlParams_, opts...)
21124	res, err := c.doRequest("json")
21125	if res != nil && res.StatusCode == http.StatusNotModified {
21126		if res.Body != nil {
21127			res.Body.Close()
21128		}
21129		return nil, &googleapi.Error{
21130			Code:   res.StatusCode,
21131			Header: res.Header,
21132		}
21133	}
21134	if err != nil {
21135		return nil, err
21136	}
21137	defer googleapi.CloseBody(res)
21138	if err := googleapi.CheckResponse(res); err != nil {
21139		return nil, err
21140	}
21141	ret := &GoogleCloudApigeeV1DeveloperAppKey{
21142		ServerResponse: googleapi.ServerResponse{
21143			Header:         res.Header,
21144			HTTPStatusCode: res.StatusCode,
21145		},
21146	}
21147	target := &ret
21148	if err := gensupport.DecodeResponse(target, res); err != nil {
21149		return nil, err
21150	}
21151	return ret, nil
21152	// {
21153	//   "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.",
21154	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys/{keysId}/apiproducts/{apiproductsId}",
21155	//   "httpMethod": "DELETE",
21156	//   "id": "apigee.organizations.developers.apps.keys.apiproducts.delete",
21157	//   "parameterOrder": [
21158	//     "name"
21159	//   ],
21160	//   "parameters": {
21161	//     "name": {
21162	//       "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}`",
21163	//       "location": "path",
21164	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/keys/[^/]+/apiproducts/[^/]+$",
21165	//       "required": true,
21166	//       "type": "string"
21167	//     }
21168	//   },
21169	//   "path": "v1/{+name}",
21170	//   "response": {
21171	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
21172	//   },
21173	//   "scopes": [
21174	//     "https://www.googleapis.com/auth/cloud-platform"
21175	//   ]
21176	// }
21177
21178}
21179
21180// method id "apigee.organizations.developers.apps.keys.apiproducts.updateDeveloperAppKeyApiProduct":
21181
21182type OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall struct {
21183	s          *Service
21184	name       string
21185	urlParams_ gensupport.URLParams
21186	ctx_       context.Context
21187	header_    http.Header
21188}
21189
21190// UpdateDeveloperAppKeyApiProduct: Approves or revokes the consumer key
21191// for an API product. After a consumer key is approved, the app can use
21192// it to access APIs. A consumer key that is revoked or pending cannot
21193// be used to access an API. Any access tokens associated with a revoked
21194// consumer key will remain active. However, Apigee checks the status of
21195// the consumer key and if set to `revoked` will not allow access to the
21196// API.
21197//
21198// - name: Name of the API product in the developer app key in the
21199//   following format:
21200//   `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{k
21201//   ey}/apiproducts/{apiproduct}`.
21202func (r *OrganizationsDevelopersAppsKeysApiproductsService) UpdateDeveloperAppKeyApiProduct(name string) *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall {
21203	c := &OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21204	c.name = name
21205	return c
21206}
21207
21208// Action sets the optional parameter "action": Approve or revoke the
21209// consumer key by setting this value to `approve` or `revoke`,
21210// respectively.
21211func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) Action(action string) *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall {
21212	c.urlParams_.Set("action", action)
21213	return c
21214}
21215
21216// Fields allows partial responses to be retrieved. See
21217// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21218// for more information.
21219func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall {
21220	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21221	return c
21222}
21223
21224// Context sets the context to be used in this call's Do method. Any
21225// pending HTTP request will be aborted if the provided context is
21226// canceled.
21227func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall {
21228	c.ctx_ = ctx
21229	return c
21230}
21231
21232// Header returns an http.Header that can be modified by the caller to
21233// add HTTP headers to the request.
21234func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) Header() http.Header {
21235	if c.header_ == nil {
21236		c.header_ = make(http.Header)
21237	}
21238	return c.header_
21239}
21240
21241func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) doRequest(alt string) (*http.Response, error) {
21242	reqHeaders := make(http.Header)
21243	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
21244	for k, v := range c.header_ {
21245		reqHeaders[k] = v
21246	}
21247	reqHeaders.Set("User-Agent", c.s.userAgent())
21248	var body io.Reader = nil
21249	c.urlParams_.Set("alt", alt)
21250	c.urlParams_.Set("prettyPrint", "false")
21251	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
21252	urls += "?" + c.urlParams_.Encode()
21253	req, err := http.NewRequest("POST", urls, body)
21254	if err != nil {
21255		return nil, err
21256	}
21257	req.Header = reqHeaders
21258	googleapi.Expand(req.URL, map[string]string{
21259		"name": c.name,
21260	})
21261	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21262}
21263
21264// Do executes the "apigee.organizations.developers.apps.keys.apiproducts.updateDeveloperAppKeyApiProduct" call.
21265// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
21266// non-2xx status code is an error. Response headers are in either
21267// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
21268// returned at all) in error.(*googleapi.Error).Header. Use
21269// googleapi.IsNotModified to check whether the returned error was
21270// because http.StatusNotModified was returned.
21271func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
21272	gensupport.SetOptions(c.urlParams_, opts...)
21273	res, err := c.doRequest("json")
21274	if res != nil && res.StatusCode == http.StatusNotModified {
21275		if res.Body != nil {
21276			res.Body.Close()
21277		}
21278		return nil, &googleapi.Error{
21279			Code:   res.StatusCode,
21280			Header: res.Header,
21281		}
21282	}
21283	if err != nil {
21284		return nil, err
21285	}
21286	defer googleapi.CloseBody(res)
21287	if err := googleapi.CheckResponse(res); err != nil {
21288		return nil, err
21289	}
21290	ret := &GoogleProtobufEmpty{
21291		ServerResponse: googleapi.ServerResponse{
21292			Header:         res.Header,
21293			HTTPStatusCode: res.StatusCode,
21294		},
21295	}
21296	target := &ret
21297	if err := gensupport.DecodeResponse(target, res); err != nil {
21298		return nil, err
21299	}
21300	return ret, nil
21301	// {
21302	//   "description": "Approves or revokes the consumer key for an API product. After a consumer key is approved, the app can use it to access APIs. A consumer key that is revoked or pending cannot be used to access an API. Any access tokens associated with a revoked consumer key will remain active. However, Apigee checks the status of the consumer key and if set to `revoked` will not allow access to the API.",
21303	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys/{keysId}/apiproducts/{apiproductsId}",
21304	//   "httpMethod": "POST",
21305	//   "id": "apigee.organizations.developers.apps.keys.apiproducts.updateDeveloperAppKeyApiProduct",
21306	//   "parameterOrder": [
21307	//     "name"
21308	//   ],
21309	//   "parameters": {
21310	//     "action": {
21311	//       "description": "Approve or revoke the consumer key by setting this value to `approve` or `revoke`, respectively.",
21312	//       "location": "query",
21313	//       "type": "string"
21314	//     },
21315	//     "name": {
21316	//       "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}`",
21317	//       "location": "path",
21318	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/keys/[^/]+/apiproducts/[^/]+$",
21319	//       "required": true,
21320	//       "type": "string"
21321	//     }
21322	//   },
21323	//   "path": "v1/{+name}",
21324	//   "response": {
21325	//     "$ref": "GoogleProtobufEmpty"
21326	//   },
21327	//   "scopes": [
21328	//     "https://www.googleapis.com/auth/cloud-platform"
21329	//   ]
21330	// }
21331
21332}
21333
21334// method id "apigee.organizations.developers.apps.keys.create.create":
21335
21336type OrganizationsDevelopersAppsKeysCreateCreateCall struct {
21337	s                                  *Service
21338	parent                             string
21339	googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey
21340	urlParams_                         gensupport.URLParams
21341	ctx_                               context.Context
21342	header_                            http.Header
21343}
21344
21345// Create: Creates a custom consumer key and secret for a developer app.
21346// This is particularly useful if you want to migrate existing consumer
21347// keys and secrets to Apigee from another system. Consumer keys and
21348// secrets can contain letters, numbers, underscores, and hyphens. No
21349// other special characters are allowed. To avoid service disruptions, a
21350// consumer key and secret should not exceed 2 KBs each. **Note**: When
21351// creating the consumer key and secret, an association to API products
21352// will not be made. Therefore, you should not specify the associated
21353// API products in your request. Instead, use the UpdateDeveloperAppKey
21354// API to make the association after the consumer key and secret are
21355// created. If a consumer key and secret already exist, you can keep
21356// them or delete them using the DeleteDeveloperAppKey API.
21357//
21358// - parent: Parent of the developer app key. Use the following
21359//   structure in your request:
21360//   `organizations/{org}/developers/{developer_email}/apps`.
21361func (r *OrganizationsDevelopersAppsKeysCreateService) Create(parent string, googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey) *OrganizationsDevelopersAppsKeysCreateCreateCall {
21362	c := &OrganizationsDevelopersAppsKeysCreateCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21363	c.parent = parent
21364	c.googlecloudapigeev1developerappkey = googlecloudapigeev1developerappkey
21365	return c
21366}
21367
21368// Fields allows partial responses to be retrieved. See
21369// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21370// for more information.
21371func (c *OrganizationsDevelopersAppsKeysCreateCreateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysCreateCreateCall {
21372	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21373	return c
21374}
21375
21376// Context sets the context to be used in this call's Do method. Any
21377// pending HTTP request will be aborted if the provided context is
21378// canceled.
21379func (c *OrganizationsDevelopersAppsKeysCreateCreateCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysCreateCreateCall {
21380	c.ctx_ = ctx
21381	return c
21382}
21383
21384// Header returns an http.Header that can be modified by the caller to
21385// add HTTP headers to the request.
21386func (c *OrganizationsDevelopersAppsKeysCreateCreateCall) Header() http.Header {
21387	if c.header_ == nil {
21388		c.header_ = make(http.Header)
21389	}
21390	return c.header_
21391}
21392
21393func (c *OrganizationsDevelopersAppsKeysCreateCreateCall) doRequest(alt string) (*http.Response, error) {
21394	reqHeaders := make(http.Header)
21395	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
21396	for k, v := range c.header_ {
21397		reqHeaders[k] = v
21398	}
21399	reqHeaders.Set("User-Agent", c.s.userAgent())
21400	var body io.Reader = nil
21401	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerappkey)
21402	if err != nil {
21403		return nil, err
21404	}
21405	reqHeaders.Set("Content-Type", "application/json")
21406	c.urlParams_.Set("alt", alt)
21407	c.urlParams_.Set("prettyPrint", "false")
21408	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keys/create")
21409	urls += "?" + c.urlParams_.Encode()
21410	req, err := http.NewRequest("POST", urls, body)
21411	if err != nil {
21412		return nil, err
21413	}
21414	req.Header = reqHeaders
21415	googleapi.Expand(req.URL, map[string]string{
21416		"parent": c.parent,
21417	})
21418	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21419}
21420
21421// Do executes the "apigee.organizations.developers.apps.keys.create.create" call.
21422// Exactly one of *GoogleCloudApigeeV1DeveloperAppKey or error will be
21423// non-nil. Any non-2xx status code is an error. Response headers are in
21424// either *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or
21425// (if a response was returned at all) in
21426// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
21427// whether the returned error was because http.StatusNotModified was
21428// returned.
21429func (c *OrganizationsDevelopersAppsKeysCreateCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) {
21430	gensupport.SetOptions(c.urlParams_, opts...)
21431	res, err := c.doRequest("json")
21432	if res != nil && res.StatusCode == http.StatusNotModified {
21433		if res.Body != nil {
21434			res.Body.Close()
21435		}
21436		return nil, &googleapi.Error{
21437			Code:   res.StatusCode,
21438			Header: res.Header,
21439		}
21440	}
21441	if err != nil {
21442		return nil, err
21443	}
21444	defer googleapi.CloseBody(res)
21445	if err := googleapi.CheckResponse(res); err != nil {
21446		return nil, err
21447	}
21448	ret := &GoogleCloudApigeeV1DeveloperAppKey{
21449		ServerResponse: googleapi.ServerResponse{
21450			Header:         res.Header,
21451			HTTPStatusCode: res.StatusCode,
21452		},
21453	}
21454	target := &ret
21455	if err := gensupport.DecodeResponse(target, res); err != nil {
21456		return nil, err
21457	}
21458	return ret, nil
21459	// {
21460	//   "description": "Creates a custom consumer key and secret for a developer app. This is particularly useful if you want to migrate existing consumer keys and secrets to Apigee from another system. Consumer keys and secrets can contain letters, numbers, underscores, and hyphens. No other special characters are allowed. To avoid service disruptions, a consumer key and secret should not exceed 2 KBs each. **Note**: When creating the consumer key and secret, an association to API products will not be made. Therefore, you should not specify the associated API products in your request. Instead, use the UpdateDeveloperAppKey API to make the association after the consumer key and secret are created. If a consumer key and secret already exist, you can keep them or delete them using the DeleteDeveloperAppKey API.",
21461	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys/create",
21462	//   "httpMethod": "POST",
21463	//   "id": "apigee.organizations.developers.apps.keys.create.create",
21464	//   "parameterOrder": [
21465	//     "parent"
21466	//   ],
21467	//   "parameters": {
21468	//     "parent": {
21469	//       "description": "Parent of the developer app key. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps`",
21470	//       "location": "path",
21471	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$",
21472	//       "required": true,
21473	//       "type": "string"
21474	//     }
21475	//   },
21476	//   "path": "v1/{+parent}/keys/create",
21477	//   "request": {
21478	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
21479	//   },
21480	//   "response": {
21481	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
21482	//   },
21483	//   "scopes": [
21484	//     "https://www.googleapis.com/auth/cloud-platform"
21485	//   ]
21486	// }
21487
21488}
21489
21490// method id "apigee.organizations.developers.attributes.delete":
21491
21492type OrganizationsDevelopersAttributesDeleteCall struct {
21493	s          *Service
21494	name       string
21495	urlParams_ gensupport.URLParams
21496	ctx_       context.Context
21497	header_    http.Header
21498}
21499
21500// Delete: Deletes a developer attribute.
21501//
21502// - name: Name of the developer attribute. Use the following structure
21503//   in your request:
21504//   `organizations/{org}/developers/{developer_email}/attributes/{attrib
21505//   ute}`.
21506func (r *OrganizationsDevelopersAttributesService) Delete(name string) *OrganizationsDevelopersAttributesDeleteCall {
21507	c := &OrganizationsDevelopersAttributesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21508	c.name = name
21509	return c
21510}
21511
21512// Fields allows partial responses to be retrieved. See
21513// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21514// for more information.
21515func (c *OrganizationsDevelopersAttributesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAttributesDeleteCall {
21516	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21517	return c
21518}
21519
21520// Context sets the context to be used in this call's Do method. Any
21521// pending HTTP request will be aborted if the provided context is
21522// canceled.
21523func (c *OrganizationsDevelopersAttributesDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersAttributesDeleteCall {
21524	c.ctx_ = ctx
21525	return c
21526}
21527
21528// Header returns an http.Header that can be modified by the caller to
21529// add HTTP headers to the request.
21530func (c *OrganizationsDevelopersAttributesDeleteCall) Header() http.Header {
21531	if c.header_ == nil {
21532		c.header_ = make(http.Header)
21533	}
21534	return c.header_
21535}
21536
21537func (c *OrganizationsDevelopersAttributesDeleteCall) doRequest(alt string) (*http.Response, error) {
21538	reqHeaders := make(http.Header)
21539	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
21540	for k, v := range c.header_ {
21541		reqHeaders[k] = v
21542	}
21543	reqHeaders.Set("User-Agent", c.s.userAgent())
21544	var body io.Reader = nil
21545	c.urlParams_.Set("alt", alt)
21546	c.urlParams_.Set("prettyPrint", "false")
21547	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
21548	urls += "?" + c.urlParams_.Encode()
21549	req, err := http.NewRequest("DELETE", urls, body)
21550	if err != nil {
21551		return nil, err
21552	}
21553	req.Header = reqHeaders
21554	googleapi.Expand(req.URL, map[string]string{
21555		"name": c.name,
21556	})
21557	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21558}
21559
21560// Do executes the "apigee.organizations.developers.attributes.delete" call.
21561// Exactly one of *GoogleCloudApigeeV1Attribute or error will be
21562// non-nil. Any non-2xx status code is an error. Response headers are in
21563// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a
21564// response was returned at all) in error.(*googleapi.Error).Header. Use
21565// googleapi.IsNotModified to check whether the returned error was
21566// because http.StatusNotModified was returned.
21567func (c *OrganizationsDevelopersAttributesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
21568	gensupport.SetOptions(c.urlParams_, opts...)
21569	res, err := c.doRequest("json")
21570	if res != nil && res.StatusCode == http.StatusNotModified {
21571		if res.Body != nil {
21572			res.Body.Close()
21573		}
21574		return nil, &googleapi.Error{
21575			Code:   res.StatusCode,
21576			Header: res.Header,
21577		}
21578	}
21579	if err != nil {
21580		return nil, err
21581	}
21582	defer googleapi.CloseBody(res)
21583	if err := googleapi.CheckResponse(res); err != nil {
21584		return nil, err
21585	}
21586	ret := &GoogleCloudApigeeV1Attribute{
21587		ServerResponse: googleapi.ServerResponse{
21588			Header:         res.Header,
21589			HTTPStatusCode: res.StatusCode,
21590		},
21591	}
21592	target := &ret
21593	if err := gensupport.DecodeResponse(target, res); err != nil {
21594		return nil, err
21595	}
21596	return ret, nil
21597	// {
21598	//   "description": "Deletes a developer attribute.",
21599	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/attributes/{attributesId}",
21600	//   "httpMethod": "DELETE",
21601	//   "id": "apigee.organizations.developers.attributes.delete",
21602	//   "parameterOrder": [
21603	//     "name"
21604	//   ],
21605	//   "parameters": {
21606	//     "name": {
21607	//       "description": "Required. Name of the developer attribute. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/attributes/{attribute}`",
21608	//       "location": "path",
21609	//       "pattern": "^organizations/[^/]+/developers/[^/]+/attributes/[^/]+$",
21610	//       "required": true,
21611	//       "type": "string"
21612	//     }
21613	//   },
21614	//   "path": "v1/{+name}",
21615	//   "response": {
21616	//     "$ref": "GoogleCloudApigeeV1Attribute"
21617	//   },
21618	//   "scopes": [
21619	//     "https://www.googleapis.com/auth/cloud-platform"
21620	//   ]
21621	// }
21622
21623}
21624
21625// method id "apigee.organizations.developers.attributes.get":
21626
21627type OrganizationsDevelopersAttributesGetCall struct {
21628	s            *Service
21629	name         string
21630	urlParams_   gensupport.URLParams
21631	ifNoneMatch_ string
21632	ctx_         context.Context
21633	header_      http.Header
21634}
21635
21636// Get: Returns the value of the specified developer attribute.
21637//
21638// - name: Name of the developer attribute. Use the following structure
21639//   in your request:
21640//   `organizations/{org}/developers/{developer_email}/attributes/{attrib
21641//   ute}`.
21642func (r *OrganizationsDevelopersAttributesService) Get(name string) *OrganizationsDevelopersAttributesGetCall {
21643	c := &OrganizationsDevelopersAttributesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21644	c.name = name
21645	return c
21646}
21647
21648// Fields allows partial responses to be retrieved. See
21649// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21650// for more information.
21651func (c *OrganizationsDevelopersAttributesGetCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAttributesGetCall {
21652	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21653	return c
21654}
21655
21656// IfNoneMatch sets the optional parameter which makes the operation
21657// fail if the object's ETag matches the given value. This is useful for
21658// getting updates only after the object has changed since the last
21659// request. Use googleapi.IsNotModified to check whether the response
21660// error from Do is the result of In-None-Match.
21661func (c *OrganizationsDevelopersAttributesGetCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAttributesGetCall {
21662	c.ifNoneMatch_ = entityTag
21663	return c
21664}
21665
21666// Context sets the context to be used in this call's Do method. Any
21667// pending HTTP request will be aborted if the provided context is
21668// canceled.
21669func (c *OrganizationsDevelopersAttributesGetCall) Context(ctx context.Context) *OrganizationsDevelopersAttributesGetCall {
21670	c.ctx_ = ctx
21671	return c
21672}
21673
21674// Header returns an http.Header that can be modified by the caller to
21675// add HTTP headers to the request.
21676func (c *OrganizationsDevelopersAttributesGetCall) Header() http.Header {
21677	if c.header_ == nil {
21678		c.header_ = make(http.Header)
21679	}
21680	return c.header_
21681}
21682
21683func (c *OrganizationsDevelopersAttributesGetCall) doRequest(alt string) (*http.Response, error) {
21684	reqHeaders := make(http.Header)
21685	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
21686	for k, v := range c.header_ {
21687		reqHeaders[k] = v
21688	}
21689	reqHeaders.Set("User-Agent", c.s.userAgent())
21690	if c.ifNoneMatch_ != "" {
21691		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21692	}
21693	var body io.Reader = nil
21694	c.urlParams_.Set("alt", alt)
21695	c.urlParams_.Set("prettyPrint", "false")
21696	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
21697	urls += "?" + c.urlParams_.Encode()
21698	req, err := http.NewRequest("GET", urls, body)
21699	if err != nil {
21700		return nil, err
21701	}
21702	req.Header = reqHeaders
21703	googleapi.Expand(req.URL, map[string]string{
21704		"name": c.name,
21705	})
21706	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21707}
21708
21709// Do executes the "apigee.organizations.developers.attributes.get" call.
21710// Exactly one of *GoogleCloudApigeeV1Attribute or error will be
21711// non-nil. Any non-2xx status code is an error. Response headers are in
21712// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a
21713// response was returned at all) in error.(*googleapi.Error).Header. Use
21714// googleapi.IsNotModified to check whether the returned error was
21715// because http.StatusNotModified was returned.
21716func (c *OrganizationsDevelopersAttributesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
21717	gensupport.SetOptions(c.urlParams_, opts...)
21718	res, err := c.doRequest("json")
21719	if res != nil && res.StatusCode == http.StatusNotModified {
21720		if res.Body != nil {
21721			res.Body.Close()
21722		}
21723		return nil, &googleapi.Error{
21724			Code:   res.StatusCode,
21725			Header: res.Header,
21726		}
21727	}
21728	if err != nil {
21729		return nil, err
21730	}
21731	defer googleapi.CloseBody(res)
21732	if err := googleapi.CheckResponse(res); err != nil {
21733		return nil, err
21734	}
21735	ret := &GoogleCloudApigeeV1Attribute{
21736		ServerResponse: googleapi.ServerResponse{
21737			Header:         res.Header,
21738			HTTPStatusCode: res.StatusCode,
21739		},
21740	}
21741	target := &ret
21742	if err := gensupport.DecodeResponse(target, res); err != nil {
21743		return nil, err
21744	}
21745	return ret, nil
21746	// {
21747	//   "description": "Returns the value of the specified developer attribute.",
21748	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/attributes/{attributesId}",
21749	//   "httpMethod": "GET",
21750	//   "id": "apigee.organizations.developers.attributes.get",
21751	//   "parameterOrder": [
21752	//     "name"
21753	//   ],
21754	//   "parameters": {
21755	//     "name": {
21756	//       "description": "Required. Name of the developer attribute. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/attributes/{attribute}`",
21757	//       "location": "path",
21758	//       "pattern": "^organizations/[^/]+/developers/[^/]+/attributes/[^/]+$",
21759	//       "required": true,
21760	//       "type": "string"
21761	//     }
21762	//   },
21763	//   "path": "v1/{+name}",
21764	//   "response": {
21765	//     "$ref": "GoogleCloudApigeeV1Attribute"
21766	//   },
21767	//   "scopes": [
21768	//     "https://www.googleapis.com/auth/cloud-platform"
21769	//   ]
21770	// }
21771
21772}
21773
21774// method id "apigee.organizations.developers.attributes.list":
21775
21776type OrganizationsDevelopersAttributesListCall struct {
21777	s            *Service
21778	parent       string
21779	urlParams_   gensupport.URLParams
21780	ifNoneMatch_ string
21781	ctx_         context.Context
21782	header_      http.Header
21783}
21784
21785// List: Returns a list of all developer attributes.
21786//
21787// - parent: Email address of the developer for which attributes are
21788//   being listed in the following format:
21789//   `organizations/{org}/developers/{developer_email}`.
21790func (r *OrganizationsDevelopersAttributesService) List(parent string) *OrganizationsDevelopersAttributesListCall {
21791	c := &OrganizationsDevelopersAttributesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21792	c.parent = parent
21793	return c
21794}
21795
21796// Fields allows partial responses to be retrieved. See
21797// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21798// for more information.
21799func (c *OrganizationsDevelopersAttributesListCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAttributesListCall {
21800	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21801	return c
21802}
21803
21804// IfNoneMatch sets the optional parameter which makes the operation
21805// fail if the object's ETag matches the given value. This is useful for
21806// getting updates only after the object has changed since the last
21807// request. Use googleapi.IsNotModified to check whether the response
21808// error from Do is the result of In-None-Match.
21809func (c *OrganizationsDevelopersAttributesListCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAttributesListCall {
21810	c.ifNoneMatch_ = entityTag
21811	return c
21812}
21813
21814// Context sets the context to be used in this call's Do method. Any
21815// pending HTTP request will be aborted if the provided context is
21816// canceled.
21817func (c *OrganizationsDevelopersAttributesListCall) Context(ctx context.Context) *OrganizationsDevelopersAttributesListCall {
21818	c.ctx_ = ctx
21819	return c
21820}
21821
21822// Header returns an http.Header that can be modified by the caller to
21823// add HTTP headers to the request.
21824func (c *OrganizationsDevelopersAttributesListCall) Header() http.Header {
21825	if c.header_ == nil {
21826		c.header_ = make(http.Header)
21827	}
21828	return c.header_
21829}
21830
21831func (c *OrganizationsDevelopersAttributesListCall) doRequest(alt string) (*http.Response, error) {
21832	reqHeaders := make(http.Header)
21833	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
21834	for k, v := range c.header_ {
21835		reqHeaders[k] = v
21836	}
21837	reqHeaders.Set("User-Agent", c.s.userAgent())
21838	if c.ifNoneMatch_ != "" {
21839		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21840	}
21841	var body io.Reader = nil
21842	c.urlParams_.Set("alt", alt)
21843	c.urlParams_.Set("prettyPrint", "false")
21844	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attributes")
21845	urls += "?" + c.urlParams_.Encode()
21846	req, err := http.NewRequest("GET", urls, body)
21847	if err != nil {
21848		return nil, err
21849	}
21850	req.Header = reqHeaders
21851	googleapi.Expand(req.URL, map[string]string{
21852		"parent": c.parent,
21853	})
21854	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21855}
21856
21857// Do executes the "apigee.organizations.developers.attributes.list" call.
21858// Exactly one of *GoogleCloudApigeeV1Attributes or error will be
21859// non-nil. Any non-2xx status code is an error. Response headers are in
21860// either *GoogleCloudApigeeV1Attributes.ServerResponse.Header or (if a
21861// response was returned at all) in error.(*googleapi.Error).Header. Use
21862// googleapi.IsNotModified to check whether the returned error was
21863// because http.StatusNotModified was returned.
21864func (c *OrganizationsDevelopersAttributesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attributes, error) {
21865	gensupport.SetOptions(c.urlParams_, opts...)
21866	res, err := c.doRequest("json")
21867	if res != nil && res.StatusCode == http.StatusNotModified {
21868		if res.Body != nil {
21869			res.Body.Close()
21870		}
21871		return nil, &googleapi.Error{
21872			Code:   res.StatusCode,
21873			Header: res.Header,
21874		}
21875	}
21876	if err != nil {
21877		return nil, err
21878	}
21879	defer googleapi.CloseBody(res)
21880	if err := googleapi.CheckResponse(res); err != nil {
21881		return nil, err
21882	}
21883	ret := &GoogleCloudApigeeV1Attributes{
21884		ServerResponse: googleapi.ServerResponse{
21885			Header:         res.Header,
21886			HTTPStatusCode: res.StatusCode,
21887		},
21888	}
21889	target := &ret
21890	if err := gensupport.DecodeResponse(target, res); err != nil {
21891		return nil, err
21892	}
21893	return ret, nil
21894	// {
21895	//   "description": "Returns a list of all developer attributes.",
21896	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/attributes",
21897	//   "httpMethod": "GET",
21898	//   "id": "apigee.organizations.developers.attributes.list",
21899	//   "parameterOrder": [
21900	//     "parent"
21901	//   ],
21902	//   "parameters": {
21903	//     "parent": {
21904	//       "description": "Required. Email address of the developer for which attributes are being listed in the following format: `organizations/{org}/developers/{developer_email}`",
21905	//       "location": "path",
21906	//       "pattern": "^organizations/[^/]+/developers/[^/]+$",
21907	//       "required": true,
21908	//       "type": "string"
21909	//     }
21910	//   },
21911	//   "path": "v1/{+parent}/attributes",
21912	//   "response": {
21913	//     "$ref": "GoogleCloudApigeeV1Attributes"
21914	//   },
21915	//   "scopes": [
21916	//     "https://www.googleapis.com/auth/cloud-platform"
21917	//   ]
21918	// }
21919
21920}
21921
21922// method id "apigee.organizations.developers.attributes.updateDeveloperAttribute":
21923
21924type OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall struct {
21925	s                            *Service
21926	name                         string
21927	googlecloudapigeev1attribute *GoogleCloudApigeeV1Attribute
21928	urlParams_                   gensupport.URLParams
21929	ctx_                         context.Context
21930	header_                      http.Header
21931}
21932
21933// UpdateDeveloperAttribute: Updates a developer attribute. **Note**:
21934// OAuth access tokens and Key Management Service (KMS) entities (apps,
21935// developers, and API products) are cached for 180 seconds (default).
21936// Any custom attributes associated with these entities are cached for
21937// at least 180 seconds after the entity is accessed at runtime.
21938// Therefore, an `ExpiresIn` element on the OAuthV2 policy won't be able
21939// to expire an access token in less than 180 seconds.
21940//
21941// - name: Name of the developer attribute. Use the following structure
21942//   in your request:
21943//   `organizations/{org}/developers/{developer_email}/attributes/{attrib
21944//   ute}`.
21945func (r *OrganizationsDevelopersAttributesService) UpdateDeveloperAttribute(name string, googlecloudapigeev1attribute *GoogleCloudApigeeV1Attribute) *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall {
21946	c := &OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21947	c.name = name
21948	c.googlecloudapigeev1attribute = googlecloudapigeev1attribute
21949	return c
21950}
21951
21952// Fields allows partial responses to be retrieved. See
21953// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21954// for more information.
21955func (c *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall {
21956	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21957	return c
21958}
21959
21960// Context sets the context to be used in this call's Do method. Any
21961// pending HTTP request will be aborted if the provided context is
21962// canceled.
21963func (c *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall) Context(ctx context.Context) *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall {
21964	c.ctx_ = ctx
21965	return c
21966}
21967
21968// Header returns an http.Header that can be modified by the caller to
21969// add HTTP headers to the request.
21970func (c *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall) Header() http.Header {
21971	if c.header_ == nil {
21972		c.header_ = make(http.Header)
21973	}
21974	return c.header_
21975}
21976
21977func (c *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall) doRequest(alt string) (*http.Response, error) {
21978	reqHeaders := make(http.Header)
21979	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
21980	for k, v := range c.header_ {
21981		reqHeaders[k] = v
21982	}
21983	reqHeaders.Set("User-Agent", c.s.userAgent())
21984	var body io.Reader = nil
21985	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1attribute)
21986	if err != nil {
21987		return nil, err
21988	}
21989	reqHeaders.Set("Content-Type", "application/json")
21990	c.urlParams_.Set("alt", alt)
21991	c.urlParams_.Set("prettyPrint", "false")
21992	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
21993	urls += "?" + c.urlParams_.Encode()
21994	req, err := http.NewRequest("POST", urls, body)
21995	if err != nil {
21996		return nil, err
21997	}
21998	req.Header = reqHeaders
21999	googleapi.Expand(req.URL, map[string]string{
22000		"name": c.name,
22001	})
22002	return gensupport.SendRequest(c.ctx_, c.s.client, req)
22003}
22004
22005// Do executes the "apigee.organizations.developers.attributes.updateDeveloperAttribute" call.
22006// Exactly one of *GoogleCloudApigeeV1Attribute or error will be
22007// non-nil. Any non-2xx status code is an error. Response headers are in
22008// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a
22009// response was returned at all) in error.(*googleapi.Error).Header. Use
22010// googleapi.IsNotModified to check whether the returned error was
22011// because http.StatusNotModified was returned.
22012func (c *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
22013	gensupport.SetOptions(c.urlParams_, opts...)
22014	res, err := c.doRequest("json")
22015	if res != nil && res.StatusCode == http.StatusNotModified {
22016		if res.Body != nil {
22017			res.Body.Close()
22018		}
22019		return nil, &googleapi.Error{
22020			Code:   res.StatusCode,
22021			Header: res.Header,
22022		}
22023	}
22024	if err != nil {
22025		return nil, err
22026	}
22027	defer googleapi.CloseBody(res)
22028	if err := googleapi.CheckResponse(res); err != nil {
22029		return nil, err
22030	}
22031	ret := &GoogleCloudApigeeV1Attribute{
22032		ServerResponse: googleapi.ServerResponse{
22033			Header:         res.Header,
22034			HTTPStatusCode: res.StatusCode,
22035		},
22036	}
22037	target := &ret
22038	if err := gensupport.DecodeResponse(target, res); err != nil {
22039		return nil, err
22040	}
22041	return ret, nil
22042	// {
22043	//   "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.",
22044	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/attributes/{attributesId}",
22045	//   "httpMethod": "POST",
22046	//   "id": "apigee.organizations.developers.attributes.updateDeveloperAttribute",
22047	//   "parameterOrder": [
22048	//     "name"
22049	//   ],
22050	//   "parameters": {
22051	//     "name": {
22052	//       "description": "Required. Name of the developer attribute. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/attributes/{attribute}`",
22053	//       "location": "path",
22054	//       "pattern": "^organizations/[^/]+/developers/[^/]+/attributes/[^/]+$",
22055	//       "required": true,
22056	//       "type": "string"
22057	//     }
22058	//   },
22059	//   "path": "v1/{+name}",
22060	//   "request": {
22061	//     "$ref": "GoogleCloudApigeeV1Attribute"
22062	//   },
22063	//   "response": {
22064	//     "$ref": "GoogleCloudApigeeV1Attribute"
22065	//   },
22066	//   "scopes": [
22067	//     "https://www.googleapis.com/auth/cloud-platform"
22068	//   ]
22069	// }
22070
22071}
22072
22073// method id "apigee.organizations.developers.subscriptions.create":
22074
22075type OrganizationsDevelopersSubscriptionsCreateCall struct {
22076	s                                        *Service
22077	parent                                   string
22078	googlecloudapigeev1developersubscription *GoogleCloudApigeeV1DeveloperSubscription
22079	urlParams_                               gensupport.URLParams
22080	ctx_                                     context.Context
22081	header_                                  http.Header
22082}
22083
22084// Create: Creates a subscription to an API product.
22085//
22086// - parent: Email address of the developer that is purchasing a
22087//   subscription to the API product. Use the following structure in
22088//   your request: `organizations/{org}/developers/{developer_email}`.
22089func (r *OrganizationsDevelopersSubscriptionsService) Create(parent string, googlecloudapigeev1developersubscription *GoogleCloudApigeeV1DeveloperSubscription) *OrganizationsDevelopersSubscriptionsCreateCall {
22090	c := &OrganizationsDevelopersSubscriptionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22091	c.parent = parent
22092	c.googlecloudapigeev1developersubscription = googlecloudapigeev1developersubscription
22093	return c
22094}
22095
22096// Fields allows partial responses to be retrieved. See
22097// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
22098// for more information.
22099func (c *OrganizationsDevelopersSubscriptionsCreateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersSubscriptionsCreateCall {
22100	c.urlParams_.Set("fields", googleapi.CombineFields(s))
22101	return c
22102}
22103
22104// Context sets the context to be used in this call's Do method. Any
22105// pending HTTP request will be aborted if the provided context is
22106// canceled.
22107func (c *OrganizationsDevelopersSubscriptionsCreateCall) Context(ctx context.Context) *OrganizationsDevelopersSubscriptionsCreateCall {
22108	c.ctx_ = ctx
22109	return c
22110}
22111
22112// Header returns an http.Header that can be modified by the caller to
22113// add HTTP headers to the request.
22114func (c *OrganizationsDevelopersSubscriptionsCreateCall) Header() http.Header {
22115	if c.header_ == nil {
22116		c.header_ = make(http.Header)
22117	}
22118	return c.header_
22119}
22120
22121func (c *OrganizationsDevelopersSubscriptionsCreateCall) doRequest(alt string) (*http.Response, error) {
22122	reqHeaders := make(http.Header)
22123	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
22124	for k, v := range c.header_ {
22125		reqHeaders[k] = v
22126	}
22127	reqHeaders.Set("User-Agent", c.s.userAgent())
22128	var body io.Reader = nil
22129	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developersubscription)
22130	if err != nil {
22131		return nil, err
22132	}
22133	reqHeaders.Set("Content-Type", "application/json")
22134	c.urlParams_.Set("alt", alt)
22135	c.urlParams_.Set("prettyPrint", "false")
22136	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/subscriptions")
22137	urls += "?" + c.urlParams_.Encode()
22138	req, err := http.NewRequest("POST", urls, body)
22139	if err != nil {
22140		return nil, err
22141	}
22142	req.Header = reqHeaders
22143	googleapi.Expand(req.URL, map[string]string{
22144		"parent": c.parent,
22145	})
22146	return gensupport.SendRequest(c.ctx_, c.s.client, req)
22147}
22148
22149// Do executes the "apigee.organizations.developers.subscriptions.create" call.
22150// Exactly one of *GoogleCloudApigeeV1DeveloperSubscription or error
22151// will be non-nil. Any non-2xx status code is an error. Response
22152// headers are in either
22153// *GoogleCloudApigeeV1DeveloperSubscription.ServerResponse.Header or
22154// (if a response was returned at all) in
22155// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
22156// whether the returned error was because http.StatusNotModified was
22157// returned.
22158func (c *OrganizationsDevelopersSubscriptionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperSubscription, error) {
22159	gensupport.SetOptions(c.urlParams_, opts...)
22160	res, err := c.doRequest("json")
22161	if res != nil && res.StatusCode == http.StatusNotModified {
22162		if res.Body != nil {
22163			res.Body.Close()
22164		}
22165		return nil, &googleapi.Error{
22166			Code:   res.StatusCode,
22167			Header: res.Header,
22168		}
22169	}
22170	if err != nil {
22171		return nil, err
22172	}
22173	defer googleapi.CloseBody(res)
22174	if err := googleapi.CheckResponse(res); err != nil {
22175		return nil, err
22176	}
22177	ret := &GoogleCloudApigeeV1DeveloperSubscription{
22178		ServerResponse: googleapi.ServerResponse{
22179			Header:         res.Header,
22180			HTTPStatusCode: res.StatusCode,
22181		},
22182	}
22183	target := &ret
22184	if err := gensupport.DecodeResponse(target, res); err != nil {
22185		return nil, err
22186	}
22187	return ret, nil
22188	// {
22189	//   "description": "Creates a subscription to an API product. ",
22190	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/subscriptions",
22191	//   "httpMethod": "POST",
22192	//   "id": "apigee.organizations.developers.subscriptions.create",
22193	//   "parameterOrder": [
22194	//     "parent"
22195	//   ],
22196	//   "parameters": {
22197	//     "parent": {
22198	//       "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}`",
22199	//       "location": "path",
22200	//       "pattern": "^organizations/[^/]+/developers/[^/]+$",
22201	//       "required": true,
22202	//       "type": "string"
22203	//     }
22204	//   },
22205	//   "path": "v1/{+parent}/subscriptions",
22206	//   "request": {
22207	//     "$ref": "GoogleCloudApigeeV1DeveloperSubscription"
22208	//   },
22209	//   "response": {
22210	//     "$ref": "GoogleCloudApigeeV1DeveloperSubscription"
22211	//   },
22212	//   "scopes": [
22213	//     "https://www.googleapis.com/auth/cloud-platform"
22214	//   ]
22215	// }
22216
22217}
22218
22219// method id "apigee.organizations.developers.subscriptions.expire":
22220
22221type OrganizationsDevelopersSubscriptionsExpireCall struct {
22222	s                                                     *Service
22223	name                                                  string
22224	googlecloudapigeev1expiredevelopersubscriptionrequest *GoogleCloudApigeeV1ExpireDeveloperSubscriptionRequest
22225	urlParams_                                            gensupport.URLParams
22226	ctx_                                                  context.Context
22227	header_                                               http.Header
22228}
22229
22230// Expire: Expires an API product subscription immediately.
22231//
22232// - name: Name of the API product subscription. Use the following
22233//   structure in your request:
22234//   `organizations/{org}/developers/{developer_email}/subscriptions/{sub
22235//   scription}`.
22236func (r *OrganizationsDevelopersSubscriptionsService) Expire(name string, googlecloudapigeev1expiredevelopersubscriptionrequest *GoogleCloudApigeeV1ExpireDeveloperSubscriptionRequest) *OrganizationsDevelopersSubscriptionsExpireCall {
22237	c := &OrganizationsDevelopersSubscriptionsExpireCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22238	c.name = name
22239	c.googlecloudapigeev1expiredevelopersubscriptionrequest = googlecloudapigeev1expiredevelopersubscriptionrequest
22240	return c
22241}
22242
22243// Fields allows partial responses to be retrieved. See
22244// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
22245// for more information.
22246func (c *OrganizationsDevelopersSubscriptionsExpireCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersSubscriptionsExpireCall {
22247	c.urlParams_.Set("fields", googleapi.CombineFields(s))
22248	return c
22249}
22250
22251// Context sets the context to be used in this call's Do method. Any
22252// pending HTTP request will be aborted if the provided context is
22253// canceled.
22254func (c *OrganizationsDevelopersSubscriptionsExpireCall) Context(ctx context.Context) *OrganizationsDevelopersSubscriptionsExpireCall {
22255	c.ctx_ = ctx
22256	return c
22257}
22258
22259// Header returns an http.Header that can be modified by the caller to
22260// add HTTP headers to the request.
22261func (c *OrganizationsDevelopersSubscriptionsExpireCall) Header() http.Header {
22262	if c.header_ == nil {
22263		c.header_ = make(http.Header)
22264	}
22265	return c.header_
22266}
22267
22268func (c *OrganizationsDevelopersSubscriptionsExpireCall) doRequest(alt string) (*http.Response, error) {
22269	reqHeaders := make(http.Header)
22270	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
22271	for k, v := range c.header_ {
22272		reqHeaders[k] = v
22273	}
22274	reqHeaders.Set("User-Agent", c.s.userAgent())
22275	var body io.Reader = nil
22276	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1expiredevelopersubscriptionrequest)
22277	if err != nil {
22278		return nil, err
22279	}
22280	reqHeaders.Set("Content-Type", "application/json")
22281	c.urlParams_.Set("alt", alt)
22282	c.urlParams_.Set("prettyPrint", "false")
22283	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:expire")
22284	urls += "?" + c.urlParams_.Encode()
22285	req, err := http.NewRequest("POST", urls, body)
22286	if err != nil {
22287		return nil, err
22288	}
22289	req.Header = reqHeaders
22290	googleapi.Expand(req.URL, map[string]string{
22291		"name": c.name,
22292	})
22293	return gensupport.SendRequest(c.ctx_, c.s.client, req)
22294}
22295
22296// Do executes the "apigee.organizations.developers.subscriptions.expire" call.
22297// Exactly one of *GoogleCloudApigeeV1DeveloperSubscription or error
22298// will be non-nil. Any non-2xx status code is an error. Response
22299// headers are in either
22300// *GoogleCloudApigeeV1DeveloperSubscription.ServerResponse.Header or
22301// (if a response was returned at all) in
22302// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
22303// whether the returned error was because http.StatusNotModified was
22304// returned.
22305func (c *OrganizationsDevelopersSubscriptionsExpireCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperSubscription, error) {
22306	gensupport.SetOptions(c.urlParams_, opts...)
22307	res, err := c.doRequest("json")
22308	if res != nil && res.StatusCode == http.StatusNotModified {
22309		if res.Body != nil {
22310			res.Body.Close()
22311		}
22312		return nil, &googleapi.Error{
22313			Code:   res.StatusCode,
22314			Header: res.Header,
22315		}
22316	}
22317	if err != nil {
22318		return nil, err
22319	}
22320	defer googleapi.CloseBody(res)
22321	if err := googleapi.CheckResponse(res); err != nil {
22322		return nil, err
22323	}
22324	ret := &GoogleCloudApigeeV1DeveloperSubscription{
22325		ServerResponse: googleapi.ServerResponse{
22326			Header:         res.Header,
22327			HTTPStatusCode: res.StatusCode,
22328		},
22329	}
22330	target := &ret
22331	if err := gensupport.DecodeResponse(target, res); err != nil {
22332		return nil, err
22333	}
22334	return ret, nil
22335	// {
22336	//   "description": "Expires an API product subscription immediately.",
22337	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/subscriptions/{subscriptionsId}:expire",
22338	//   "httpMethod": "POST",
22339	//   "id": "apigee.organizations.developers.subscriptions.expire",
22340	//   "parameterOrder": [
22341	//     "name"
22342	//   ],
22343	//   "parameters": {
22344	//     "name": {
22345	//       "description": "Required. Name of the API product subscription. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/subscriptions/{subscription}`",
22346	//       "location": "path",
22347	//       "pattern": "^organizations/[^/]+/developers/[^/]+/subscriptions/[^/]+$",
22348	//       "required": true,
22349	//       "type": "string"
22350	//     }
22351	//   },
22352	//   "path": "v1/{+name}:expire",
22353	//   "request": {
22354	//     "$ref": "GoogleCloudApigeeV1ExpireDeveloperSubscriptionRequest"
22355	//   },
22356	//   "response": {
22357	//     "$ref": "GoogleCloudApigeeV1DeveloperSubscription"
22358	//   },
22359	//   "scopes": [
22360	//     "https://www.googleapis.com/auth/cloud-platform"
22361	//   ]
22362	// }
22363
22364}
22365
22366// method id "apigee.organizations.developers.subscriptions.get":
22367
22368type OrganizationsDevelopersSubscriptionsGetCall struct {
22369	s            *Service
22370	name         string
22371	urlParams_   gensupport.URLParams
22372	ifNoneMatch_ string
22373	ctx_         context.Context
22374	header_      http.Header
22375}
22376
22377// Get: Gets details for an API product subscription.
22378//
22379// - name: Name of the API product subscription. Use the following
22380//   structure in your request:
22381//   `organizations/{org}/developers/{developer_email}/subscriptions/{sub
22382//   scription}`.
22383func (r *OrganizationsDevelopersSubscriptionsService) Get(name string) *OrganizationsDevelopersSubscriptionsGetCall {
22384	c := &OrganizationsDevelopersSubscriptionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22385	c.name = name
22386	return c
22387}
22388
22389// Fields allows partial responses to be retrieved. See
22390// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
22391// for more information.
22392func (c *OrganizationsDevelopersSubscriptionsGetCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersSubscriptionsGetCall {
22393	c.urlParams_.Set("fields", googleapi.CombineFields(s))
22394	return c
22395}
22396
22397// IfNoneMatch sets the optional parameter which makes the operation
22398// fail if the object's ETag matches the given value. This is useful for
22399// getting updates only after the object has changed since the last
22400// request. Use googleapi.IsNotModified to check whether the response
22401// error from Do is the result of In-None-Match.
22402func (c *OrganizationsDevelopersSubscriptionsGetCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersSubscriptionsGetCall {
22403	c.ifNoneMatch_ = entityTag
22404	return c
22405}
22406
22407// Context sets the context to be used in this call's Do method. Any
22408// pending HTTP request will be aborted if the provided context is
22409// canceled.
22410func (c *OrganizationsDevelopersSubscriptionsGetCall) Context(ctx context.Context) *OrganizationsDevelopersSubscriptionsGetCall {
22411	c.ctx_ = ctx
22412	return c
22413}
22414
22415// Header returns an http.Header that can be modified by the caller to
22416// add HTTP headers to the request.
22417func (c *OrganizationsDevelopersSubscriptionsGetCall) Header() http.Header {
22418	if c.header_ == nil {
22419		c.header_ = make(http.Header)
22420	}
22421	return c.header_
22422}
22423
22424func (c *OrganizationsDevelopersSubscriptionsGetCall) doRequest(alt string) (*http.Response, error) {
22425	reqHeaders := make(http.Header)
22426	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
22427	for k, v := range c.header_ {
22428		reqHeaders[k] = v
22429	}
22430	reqHeaders.Set("User-Agent", c.s.userAgent())
22431	if c.ifNoneMatch_ != "" {
22432		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22433	}
22434	var body io.Reader = nil
22435	c.urlParams_.Set("alt", alt)
22436	c.urlParams_.Set("prettyPrint", "false")
22437	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
22438	urls += "?" + c.urlParams_.Encode()
22439	req, err := http.NewRequest("GET", urls, body)
22440	if err != nil {
22441		return nil, err
22442	}
22443	req.Header = reqHeaders
22444	googleapi.Expand(req.URL, map[string]string{
22445		"name": c.name,
22446	})
22447	return gensupport.SendRequest(c.ctx_, c.s.client, req)
22448}
22449
22450// Do executes the "apigee.organizations.developers.subscriptions.get" call.
22451// Exactly one of *GoogleCloudApigeeV1DeveloperSubscription or error
22452// will be non-nil. Any non-2xx status code is an error. Response
22453// headers are in either
22454// *GoogleCloudApigeeV1DeveloperSubscription.ServerResponse.Header or
22455// (if a response was returned at all) in
22456// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
22457// whether the returned error was because http.StatusNotModified was
22458// returned.
22459func (c *OrganizationsDevelopersSubscriptionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperSubscription, error) {
22460	gensupport.SetOptions(c.urlParams_, opts...)
22461	res, err := c.doRequest("json")
22462	if res != nil && res.StatusCode == http.StatusNotModified {
22463		if res.Body != nil {
22464			res.Body.Close()
22465		}
22466		return nil, &googleapi.Error{
22467			Code:   res.StatusCode,
22468			Header: res.Header,
22469		}
22470	}
22471	if err != nil {
22472		return nil, err
22473	}
22474	defer googleapi.CloseBody(res)
22475	if err := googleapi.CheckResponse(res); err != nil {
22476		return nil, err
22477	}
22478	ret := &GoogleCloudApigeeV1DeveloperSubscription{
22479		ServerResponse: googleapi.ServerResponse{
22480			Header:         res.Header,
22481			HTTPStatusCode: res.StatusCode,
22482		},
22483	}
22484	target := &ret
22485	if err := gensupport.DecodeResponse(target, res); err != nil {
22486		return nil, err
22487	}
22488	return ret, nil
22489	// {
22490	//   "description": "Gets details for an API product subscription.",
22491	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/subscriptions/{subscriptionsId}",
22492	//   "httpMethod": "GET",
22493	//   "id": "apigee.organizations.developers.subscriptions.get",
22494	//   "parameterOrder": [
22495	//     "name"
22496	//   ],
22497	//   "parameters": {
22498	//     "name": {
22499	//       "description": "Required. Name of the API product subscription. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/subscriptions/{subscription}`",
22500	//       "location": "path",
22501	//       "pattern": "^organizations/[^/]+/developers/[^/]+/subscriptions/[^/]+$",
22502	//       "required": true,
22503	//       "type": "string"
22504	//     }
22505	//   },
22506	//   "path": "v1/{+name}",
22507	//   "response": {
22508	//     "$ref": "GoogleCloudApigeeV1DeveloperSubscription"
22509	//   },
22510	//   "scopes": [
22511	//     "https://www.googleapis.com/auth/cloud-platform"
22512	//   ]
22513	// }
22514
22515}
22516
22517// method id "apigee.organizations.developers.subscriptions.list":
22518
22519type OrganizationsDevelopersSubscriptionsListCall struct {
22520	s            *Service
22521	parent       string
22522	urlParams_   gensupport.URLParams
22523	ifNoneMatch_ string
22524	ctx_         context.Context
22525	header_      http.Header
22526}
22527
22528// List: Lists all API product subscriptions for a developer.
22529//
22530// - parent: Email address of the developer. Use the following structure
22531//   in your request: `organizations/{org}/developers/{developer_email}`.
22532func (r *OrganizationsDevelopersSubscriptionsService) List(parent string) *OrganizationsDevelopersSubscriptionsListCall {
22533	c := &OrganizationsDevelopersSubscriptionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22534	c.parent = parent
22535	return c
22536}
22537
22538// Count sets the optional parameter "count": Number of API product
22539// subscriptions to return in the API call. Use with `startKey` to
22540// provide more targeted filtering. Defaults to 100. The maximum limit
22541// is 1000.
22542func (c *OrganizationsDevelopersSubscriptionsListCall) Count(count int64) *OrganizationsDevelopersSubscriptionsListCall {
22543	c.urlParams_.Set("count", fmt.Sprint(count))
22544	return c
22545}
22546
22547// StartKey sets the optional parameter "startKey": Name of the API
22548// product subscription from which to start displaying the list of
22549// subscriptions. If omitted, the list starts from the first item. For
22550// example, to view the API product subscriptions from 51-150, set the
22551// value of `startKey` to the name of the 51st subscription and set the
22552// value of `count` to 100.
22553func (c *OrganizationsDevelopersSubscriptionsListCall) StartKey(startKey string) *OrganizationsDevelopersSubscriptionsListCall {
22554	c.urlParams_.Set("startKey", startKey)
22555	return c
22556}
22557
22558// Fields allows partial responses to be retrieved. See
22559// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
22560// for more information.
22561func (c *OrganizationsDevelopersSubscriptionsListCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersSubscriptionsListCall {
22562	c.urlParams_.Set("fields", googleapi.CombineFields(s))
22563	return c
22564}
22565
22566// IfNoneMatch sets the optional parameter which makes the operation
22567// fail if the object's ETag matches the given value. This is useful for
22568// getting updates only after the object has changed since the last
22569// request. Use googleapi.IsNotModified to check whether the response
22570// error from Do is the result of In-None-Match.
22571func (c *OrganizationsDevelopersSubscriptionsListCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersSubscriptionsListCall {
22572	c.ifNoneMatch_ = entityTag
22573	return c
22574}
22575
22576// Context sets the context to be used in this call's Do method. Any
22577// pending HTTP request will be aborted if the provided context is
22578// canceled.
22579func (c *OrganizationsDevelopersSubscriptionsListCall) Context(ctx context.Context) *OrganizationsDevelopersSubscriptionsListCall {
22580	c.ctx_ = ctx
22581	return c
22582}
22583
22584// Header returns an http.Header that can be modified by the caller to
22585// add HTTP headers to the request.
22586func (c *OrganizationsDevelopersSubscriptionsListCall) Header() http.Header {
22587	if c.header_ == nil {
22588		c.header_ = make(http.Header)
22589	}
22590	return c.header_
22591}
22592
22593func (c *OrganizationsDevelopersSubscriptionsListCall) doRequest(alt string) (*http.Response, error) {
22594	reqHeaders := make(http.Header)
22595	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
22596	for k, v := range c.header_ {
22597		reqHeaders[k] = v
22598	}
22599	reqHeaders.Set("User-Agent", c.s.userAgent())
22600	if c.ifNoneMatch_ != "" {
22601		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22602	}
22603	var body io.Reader = nil
22604	c.urlParams_.Set("alt", alt)
22605	c.urlParams_.Set("prettyPrint", "false")
22606	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/subscriptions")
22607	urls += "?" + c.urlParams_.Encode()
22608	req, err := http.NewRequest("GET", urls, body)
22609	if err != nil {
22610		return nil, err
22611	}
22612	req.Header = reqHeaders
22613	googleapi.Expand(req.URL, map[string]string{
22614		"parent": c.parent,
22615	})
22616	return gensupport.SendRequest(c.ctx_, c.s.client, req)
22617}
22618
22619// Do executes the "apigee.organizations.developers.subscriptions.list" call.
22620// Exactly one of *GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse
22621// or error will be non-nil. Any non-2xx status code is an error.
22622// Response headers are in either
22623// *GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse.ServerResponse.
22624// Header or (if a response was returned at all) in
22625// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
22626// whether the returned error was because http.StatusNotModified was
22627// returned.
22628func (c *OrganizationsDevelopersSubscriptionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse, error) {
22629	gensupport.SetOptions(c.urlParams_, opts...)
22630	res, err := c.doRequest("json")
22631	if res != nil && res.StatusCode == http.StatusNotModified {
22632		if res.Body != nil {
22633			res.Body.Close()
22634		}
22635		return nil, &googleapi.Error{
22636			Code:   res.StatusCode,
22637			Header: res.Header,
22638		}
22639	}
22640	if err != nil {
22641		return nil, err
22642	}
22643	defer googleapi.CloseBody(res)
22644	if err := googleapi.CheckResponse(res); err != nil {
22645		return nil, err
22646	}
22647	ret := &GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse{
22648		ServerResponse: googleapi.ServerResponse{
22649			Header:         res.Header,
22650			HTTPStatusCode: res.StatusCode,
22651		},
22652	}
22653	target := &ret
22654	if err := gensupport.DecodeResponse(target, res); err != nil {
22655		return nil, err
22656	}
22657	return ret, nil
22658	// {
22659	//   "description": "Lists all API product subscriptions for a developer.",
22660	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/subscriptions",
22661	//   "httpMethod": "GET",
22662	//   "id": "apigee.organizations.developers.subscriptions.list",
22663	//   "parameterOrder": [
22664	//     "parent"
22665	//   ],
22666	//   "parameters": {
22667	//     "count": {
22668	//       "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.",
22669	//       "format": "int32",
22670	//       "location": "query",
22671	//       "type": "integer"
22672	//     },
22673	//     "parent": {
22674	//       "description": "Required. Email address of the developer. Use the following structure in your request: `organizations/{org}/developers/{developer_email}`",
22675	//       "location": "path",
22676	//       "pattern": "^organizations/[^/]+/developers/[^/]+$",
22677	//       "required": true,
22678	//       "type": "string"
22679	//     },
22680	//     "startKey": {
22681	//       "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.",
22682	//       "location": "query",
22683	//       "type": "string"
22684	//     }
22685	//   },
22686	//   "path": "v1/{+parent}/subscriptions",
22687	//   "response": {
22688	//     "$ref": "GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse"
22689	//   },
22690	//   "scopes": [
22691	//     "https://www.googleapis.com/auth/cloud-platform"
22692	//   ]
22693	// }
22694
22695}
22696
22697// method id "apigee.organizations.envgroups.create":
22698
22699type OrganizationsEnvgroupsCreateCall struct {
22700	s                                   *Service
22701	parent                              string
22702	googlecloudapigeev1environmentgroup *GoogleCloudApigeeV1EnvironmentGroup
22703	urlParams_                          gensupport.URLParams
22704	ctx_                                context.Context
22705	header_                             http.Header
22706}
22707
22708// Create: Creates a new environment group.
22709//
22710// - parent: Name of the organization in which to create the environment
22711//   group in the following format: `organizations/{org}`.
22712func (r *OrganizationsEnvgroupsService) Create(parent string, googlecloudapigeev1environmentgroup *GoogleCloudApigeeV1EnvironmentGroup) *OrganizationsEnvgroupsCreateCall {
22713	c := &OrganizationsEnvgroupsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22714	c.parent = parent
22715	c.googlecloudapigeev1environmentgroup = googlecloudapigeev1environmentgroup
22716	return c
22717}
22718
22719// Name sets the optional parameter "name": ID of the environment group.
22720// Overrides any ID in the environment_group resource.
22721func (c *OrganizationsEnvgroupsCreateCall) Name(name string) *OrganizationsEnvgroupsCreateCall {
22722	c.urlParams_.Set("name", name)
22723	return c
22724}
22725
22726// Fields allows partial responses to be retrieved. See
22727// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
22728// for more information.
22729func (c *OrganizationsEnvgroupsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsCreateCall {
22730	c.urlParams_.Set("fields", googleapi.CombineFields(s))
22731	return c
22732}
22733
22734// Context sets the context to be used in this call's Do method. Any
22735// pending HTTP request will be aborted if the provided context is
22736// canceled.
22737func (c *OrganizationsEnvgroupsCreateCall) Context(ctx context.Context) *OrganizationsEnvgroupsCreateCall {
22738	c.ctx_ = ctx
22739	return c
22740}
22741
22742// Header returns an http.Header that can be modified by the caller to
22743// add HTTP headers to the request.
22744func (c *OrganizationsEnvgroupsCreateCall) Header() http.Header {
22745	if c.header_ == nil {
22746		c.header_ = make(http.Header)
22747	}
22748	return c.header_
22749}
22750
22751func (c *OrganizationsEnvgroupsCreateCall) doRequest(alt string) (*http.Response, error) {
22752	reqHeaders := make(http.Header)
22753	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
22754	for k, v := range c.header_ {
22755		reqHeaders[k] = v
22756	}
22757	reqHeaders.Set("User-Agent", c.s.userAgent())
22758	var body io.Reader = nil
22759	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1environmentgroup)
22760	if err != nil {
22761		return nil, err
22762	}
22763	reqHeaders.Set("Content-Type", "application/json")
22764	c.urlParams_.Set("alt", alt)
22765	c.urlParams_.Set("prettyPrint", "false")
22766	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/envgroups")
22767	urls += "?" + c.urlParams_.Encode()
22768	req, err := http.NewRequest("POST", urls, body)
22769	if err != nil {
22770		return nil, err
22771	}
22772	req.Header = reqHeaders
22773	googleapi.Expand(req.URL, map[string]string{
22774		"parent": c.parent,
22775	})
22776	return gensupport.SendRequest(c.ctx_, c.s.client, req)
22777}
22778
22779// Do executes the "apigee.organizations.envgroups.create" call.
22780// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
22781// Any non-2xx status code is an error. Response headers are in either
22782// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
22783// was returned at all) in error.(*googleapi.Error).Header. Use
22784// googleapi.IsNotModified to check whether the returned error was
22785// because http.StatusNotModified was returned.
22786func (c *OrganizationsEnvgroupsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
22787	gensupport.SetOptions(c.urlParams_, opts...)
22788	res, err := c.doRequest("json")
22789	if res != nil && res.StatusCode == http.StatusNotModified {
22790		if res.Body != nil {
22791			res.Body.Close()
22792		}
22793		return nil, &googleapi.Error{
22794			Code:   res.StatusCode,
22795			Header: res.Header,
22796		}
22797	}
22798	if err != nil {
22799		return nil, err
22800	}
22801	defer googleapi.CloseBody(res)
22802	if err := googleapi.CheckResponse(res); err != nil {
22803		return nil, err
22804	}
22805	ret := &GoogleLongrunningOperation{
22806		ServerResponse: googleapi.ServerResponse{
22807			Header:         res.Header,
22808			HTTPStatusCode: res.StatusCode,
22809		},
22810	}
22811	target := &ret
22812	if err := gensupport.DecodeResponse(target, res); err != nil {
22813		return nil, err
22814	}
22815	return ret, nil
22816	// {
22817	//   "description": "Creates a new environment group.",
22818	//   "flatPath": "v1/organizations/{organizationsId}/envgroups",
22819	//   "httpMethod": "POST",
22820	//   "id": "apigee.organizations.envgroups.create",
22821	//   "parameterOrder": [
22822	//     "parent"
22823	//   ],
22824	//   "parameters": {
22825	//     "name": {
22826	//       "description": "ID of the environment group. Overrides any ID in the environment_group resource.",
22827	//       "location": "query",
22828	//       "type": "string"
22829	//     },
22830	//     "parent": {
22831	//       "description": "Required. Name of the organization in which to create the environment group in the following format: `organizations/{org}`.",
22832	//       "location": "path",
22833	//       "pattern": "^organizations/[^/]+$",
22834	//       "required": true,
22835	//       "type": "string"
22836	//     }
22837	//   },
22838	//   "path": "v1/{+parent}/envgroups",
22839	//   "request": {
22840	//     "$ref": "GoogleCloudApigeeV1EnvironmentGroup"
22841	//   },
22842	//   "response": {
22843	//     "$ref": "GoogleLongrunningOperation"
22844	//   },
22845	//   "scopes": [
22846	//     "https://www.googleapis.com/auth/cloud-platform"
22847	//   ]
22848	// }
22849
22850}
22851
22852// method id "apigee.organizations.envgroups.delete":
22853
22854type OrganizationsEnvgroupsDeleteCall struct {
22855	s          *Service
22856	name       string
22857	urlParams_ gensupport.URLParams
22858	ctx_       context.Context
22859	header_    http.Header
22860}
22861
22862// Delete: Deletes an environment group.
22863//
22864// - name: Name of the environment group in the following format:
22865//   `organizations/{org}/envgroups/{envgroup}`.
22866func (r *OrganizationsEnvgroupsService) Delete(name string) *OrganizationsEnvgroupsDeleteCall {
22867	c := &OrganizationsEnvgroupsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22868	c.name = name
22869	return c
22870}
22871
22872// Fields allows partial responses to be retrieved. See
22873// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
22874// for more information.
22875func (c *OrganizationsEnvgroupsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsDeleteCall {
22876	c.urlParams_.Set("fields", googleapi.CombineFields(s))
22877	return c
22878}
22879
22880// Context sets the context to be used in this call's Do method. Any
22881// pending HTTP request will be aborted if the provided context is
22882// canceled.
22883func (c *OrganizationsEnvgroupsDeleteCall) Context(ctx context.Context) *OrganizationsEnvgroupsDeleteCall {
22884	c.ctx_ = ctx
22885	return c
22886}
22887
22888// Header returns an http.Header that can be modified by the caller to
22889// add HTTP headers to the request.
22890func (c *OrganizationsEnvgroupsDeleteCall) Header() http.Header {
22891	if c.header_ == nil {
22892		c.header_ = make(http.Header)
22893	}
22894	return c.header_
22895}
22896
22897func (c *OrganizationsEnvgroupsDeleteCall) doRequest(alt string) (*http.Response, error) {
22898	reqHeaders := make(http.Header)
22899	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
22900	for k, v := range c.header_ {
22901		reqHeaders[k] = v
22902	}
22903	reqHeaders.Set("User-Agent", c.s.userAgent())
22904	var body io.Reader = nil
22905	c.urlParams_.Set("alt", alt)
22906	c.urlParams_.Set("prettyPrint", "false")
22907	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
22908	urls += "?" + c.urlParams_.Encode()
22909	req, err := http.NewRequest("DELETE", urls, body)
22910	if err != nil {
22911		return nil, err
22912	}
22913	req.Header = reqHeaders
22914	googleapi.Expand(req.URL, map[string]string{
22915		"name": c.name,
22916	})
22917	return gensupport.SendRequest(c.ctx_, c.s.client, req)
22918}
22919
22920// Do executes the "apigee.organizations.envgroups.delete" call.
22921// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
22922// Any non-2xx status code is an error. Response headers are in either
22923// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
22924// was returned at all) in error.(*googleapi.Error).Header. Use
22925// googleapi.IsNotModified to check whether the returned error was
22926// because http.StatusNotModified was returned.
22927func (c *OrganizationsEnvgroupsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
22928	gensupport.SetOptions(c.urlParams_, opts...)
22929	res, err := c.doRequest("json")
22930	if res != nil && res.StatusCode == http.StatusNotModified {
22931		if res.Body != nil {
22932			res.Body.Close()
22933		}
22934		return nil, &googleapi.Error{
22935			Code:   res.StatusCode,
22936			Header: res.Header,
22937		}
22938	}
22939	if err != nil {
22940		return nil, err
22941	}
22942	defer googleapi.CloseBody(res)
22943	if err := googleapi.CheckResponse(res); err != nil {
22944		return nil, err
22945	}
22946	ret := &GoogleLongrunningOperation{
22947		ServerResponse: googleapi.ServerResponse{
22948			Header:         res.Header,
22949			HTTPStatusCode: res.StatusCode,
22950		},
22951	}
22952	target := &ret
22953	if err := gensupport.DecodeResponse(target, res); err != nil {
22954		return nil, err
22955	}
22956	return ret, nil
22957	// {
22958	//   "description": "Deletes an environment group.",
22959	//   "flatPath": "v1/organizations/{organizationsId}/envgroups/{envgroupsId}",
22960	//   "httpMethod": "DELETE",
22961	//   "id": "apigee.organizations.envgroups.delete",
22962	//   "parameterOrder": [
22963	//     "name"
22964	//   ],
22965	//   "parameters": {
22966	//     "name": {
22967	//       "description": "Required. Name of the environment group in the following format: `organizations/{org}/envgroups/{envgroup}`.",
22968	//       "location": "path",
22969	//       "pattern": "^organizations/[^/]+/envgroups/[^/]+$",
22970	//       "required": true,
22971	//       "type": "string"
22972	//     }
22973	//   },
22974	//   "path": "v1/{+name}",
22975	//   "response": {
22976	//     "$ref": "GoogleLongrunningOperation"
22977	//   },
22978	//   "scopes": [
22979	//     "https://www.googleapis.com/auth/cloud-platform"
22980	//   ]
22981	// }
22982
22983}
22984
22985// method id "apigee.organizations.envgroups.get":
22986
22987type OrganizationsEnvgroupsGetCall struct {
22988	s            *Service
22989	name         string
22990	urlParams_   gensupport.URLParams
22991	ifNoneMatch_ string
22992	ctx_         context.Context
22993	header_      http.Header
22994}
22995
22996// Get: Gets an environment group.
22997//
22998// - name: Name of the environment group in the following format:
22999//   `organizations/{org}/envgroups/{envgroup}`.
23000func (r *OrganizationsEnvgroupsService) Get(name string) *OrganizationsEnvgroupsGetCall {
23001	c := &OrganizationsEnvgroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23002	c.name = name
23003	return c
23004}
23005
23006// Fields allows partial responses to be retrieved. See
23007// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
23008// for more information.
23009func (c *OrganizationsEnvgroupsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsGetCall {
23010	c.urlParams_.Set("fields", googleapi.CombineFields(s))
23011	return c
23012}
23013
23014// IfNoneMatch sets the optional parameter which makes the operation
23015// fail if the object's ETag matches the given value. This is useful for
23016// getting updates only after the object has changed since the last
23017// request. Use googleapi.IsNotModified to check whether the response
23018// error from Do is the result of In-None-Match.
23019func (c *OrganizationsEnvgroupsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvgroupsGetCall {
23020	c.ifNoneMatch_ = entityTag
23021	return c
23022}
23023
23024// Context sets the context to be used in this call's Do method. Any
23025// pending HTTP request will be aborted if the provided context is
23026// canceled.
23027func (c *OrganizationsEnvgroupsGetCall) Context(ctx context.Context) *OrganizationsEnvgroupsGetCall {
23028	c.ctx_ = ctx
23029	return c
23030}
23031
23032// Header returns an http.Header that can be modified by the caller to
23033// add HTTP headers to the request.
23034func (c *OrganizationsEnvgroupsGetCall) Header() http.Header {
23035	if c.header_ == nil {
23036		c.header_ = make(http.Header)
23037	}
23038	return c.header_
23039}
23040
23041func (c *OrganizationsEnvgroupsGetCall) doRequest(alt string) (*http.Response, error) {
23042	reqHeaders := make(http.Header)
23043	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
23044	for k, v := range c.header_ {
23045		reqHeaders[k] = v
23046	}
23047	reqHeaders.Set("User-Agent", c.s.userAgent())
23048	if c.ifNoneMatch_ != "" {
23049		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23050	}
23051	var body io.Reader = nil
23052	c.urlParams_.Set("alt", alt)
23053	c.urlParams_.Set("prettyPrint", "false")
23054	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
23055	urls += "?" + c.urlParams_.Encode()
23056	req, err := http.NewRequest("GET", urls, body)
23057	if err != nil {
23058		return nil, err
23059	}
23060	req.Header = reqHeaders
23061	googleapi.Expand(req.URL, map[string]string{
23062		"name": c.name,
23063	})
23064	return gensupport.SendRequest(c.ctx_, c.s.client, req)
23065}
23066
23067// Do executes the "apigee.organizations.envgroups.get" call.
23068// Exactly one of *GoogleCloudApigeeV1EnvironmentGroup or error will be
23069// non-nil. Any non-2xx status code is an error. Response headers are in
23070// either *GoogleCloudApigeeV1EnvironmentGroup.ServerResponse.Header or
23071// (if a response was returned at all) in
23072// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
23073// whether the returned error was because http.StatusNotModified was
23074// returned.
23075func (c *OrganizationsEnvgroupsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1EnvironmentGroup, error) {
23076	gensupport.SetOptions(c.urlParams_, opts...)
23077	res, err := c.doRequest("json")
23078	if res != nil && res.StatusCode == http.StatusNotModified {
23079		if res.Body != nil {
23080			res.Body.Close()
23081		}
23082		return nil, &googleapi.Error{
23083			Code:   res.StatusCode,
23084			Header: res.Header,
23085		}
23086	}
23087	if err != nil {
23088		return nil, err
23089	}
23090	defer googleapi.CloseBody(res)
23091	if err := googleapi.CheckResponse(res); err != nil {
23092		return nil, err
23093	}
23094	ret := &GoogleCloudApigeeV1EnvironmentGroup{
23095		ServerResponse: googleapi.ServerResponse{
23096			Header:         res.Header,
23097			HTTPStatusCode: res.StatusCode,
23098		},
23099	}
23100	target := &ret
23101	if err := gensupport.DecodeResponse(target, res); err != nil {
23102		return nil, err
23103	}
23104	return ret, nil
23105	// {
23106	//   "description": "Gets an environment group.",
23107	//   "flatPath": "v1/organizations/{organizationsId}/envgroups/{envgroupsId}",
23108	//   "httpMethod": "GET",
23109	//   "id": "apigee.organizations.envgroups.get",
23110	//   "parameterOrder": [
23111	//     "name"
23112	//   ],
23113	//   "parameters": {
23114	//     "name": {
23115	//       "description": "Required. Name of the environment group in the following format: `organizations/{org}/envgroups/{envgroup}`.",
23116	//       "location": "path",
23117	//       "pattern": "^organizations/[^/]+/envgroups/[^/]+$",
23118	//       "required": true,
23119	//       "type": "string"
23120	//     }
23121	//   },
23122	//   "path": "v1/{+name}",
23123	//   "response": {
23124	//     "$ref": "GoogleCloudApigeeV1EnvironmentGroup"
23125	//   },
23126	//   "scopes": [
23127	//     "https://www.googleapis.com/auth/cloud-platform"
23128	//   ]
23129	// }
23130
23131}
23132
23133// method id "apigee.organizations.envgroups.list":
23134
23135type OrganizationsEnvgroupsListCall struct {
23136	s            *Service
23137	parent       string
23138	urlParams_   gensupport.URLParams
23139	ifNoneMatch_ string
23140	ctx_         context.Context
23141	header_      http.Header
23142}
23143
23144// List: Lists all environment groups.
23145//
23146// - parent: Name of the organization for which to list environment
23147//   groups in the following format: `organizations/{org}`.
23148func (r *OrganizationsEnvgroupsService) List(parent string) *OrganizationsEnvgroupsListCall {
23149	c := &OrganizationsEnvgroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23150	c.parent = parent
23151	return c
23152}
23153
23154// PageSize sets the optional parameter "pageSize": Maximum number of
23155// environment groups to return. The page size defaults to 25.
23156func (c *OrganizationsEnvgroupsListCall) PageSize(pageSize int64) *OrganizationsEnvgroupsListCall {
23157	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
23158	return c
23159}
23160
23161// PageToken sets the optional parameter "pageToken": Page token,
23162// returned from a previous ListEnvironmentGroups call, that you can use
23163// to retrieve the next page.
23164func (c *OrganizationsEnvgroupsListCall) PageToken(pageToken string) *OrganizationsEnvgroupsListCall {
23165	c.urlParams_.Set("pageToken", pageToken)
23166	return c
23167}
23168
23169// Fields allows partial responses to be retrieved. See
23170// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
23171// for more information.
23172func (c *OrganizationsEnvgroupsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsListCall {
23173	c.urlParams_.Set("fields", googleapi.CombineFields(s))
23174	return c
23175}
23176
23177// IfNoneMatch sets the optional parameter which makes the operation
23178// fail if the object's ETag matches the given value. This is useful for
23179// getting updates only after the object has changed since the last
23180// request. Use googleapi.IsNotModified to check whether the response
23181// error from Do is the result of In-None-Match.
23182func (c *OrganizationsEnvgroupsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvgroupsListCall {
23183	c.ifNoneMatch_ = entityTag
23184	return c
23185}
23186
23187// Context sets the context to be used in this call's Do method. Any
23188// pending HTTP request will be aborted if the provided context is
23189// canceled.
23190func (c *OrganizationsEnvgroupsListCall) Context(ctx context.Context) *OrganizationsEnvgroupsListCall {
23191	c.ctx_ = ctx
23192	return c
23193}
23194
23195// Header returns an http.Header that can be modified by the caller to
23196// add HTTP headers to the request.
23197func (c *OrganizationsEnvgroupsListCall) Header() http.Header {
23198	if c.header_ == nil {
23199		c.header_ = make(http.Header)
23200	}
23201	return c.header_
23202}
23203
23204func (c *OrganizationsEnvgroupsListCall) doRequest(alt string) (*http.Response, error) {
23205	reqHeaders := make(http.Header)
23206	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
23207	for k, v := range c.header_ {
23208		reqHeaders[k] = v
23209	}
23210	reqHeaders.Set("User-Agent", c.s.userAgent())
23211	if c.ifNoneMatch_ != "" {
23212		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23213	}
23214	var body io.Reader = nil
23215	c.urlParams_.Set("alt", alt)
23216	c.urlParams_.Set("prettyPrint", "false")
23217	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/envgroups")
23218	urls += "?" + c.urlParams_.Encode()
23219	req, err := http.NewRequest("GET", urls, body)
23220	if err != nil {
23221		return nil, err
23222	}
23223	req.Header = reqHeaders
23224	googleapi.Expand(req.URL, map[string]string{
23225		"parent": c.parent,
23226	})
23227	return gensupport.SendRequest(c.ctx_, c.s.client, req)
23228}
23229
23230// Do executes the "apigee.organizations.envgroups.list" call.
23231// Exactly one of *GoogleCloudApigeeV1ListEnvironmentGroupsResponse or
23232// error will be non-nil. Any non-2xx status code is an error. Response
23233// headers are in either
23234// *GoogleCloudApigeeV1ListEnvironmentGroupsResponse.ServerResponse.Heade
23235// r or (if a response was returned at all) in
23236// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
23237// whether the returned error was because http.StatusNotModified was
23238// returned.
23239func (c *OrganizationsEnvgroupsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListEnvironmentGroupsResponse, error) {
23240	gensupport.SetOptions(c.urlParams_, opts...)
23241	res, err := c.doRequest("json")
23242	if res != nil && res.StatusCode == http.StatusNotModified {
23243		if res.Body != nil {
23244			res.Body.Close()
23245		}
23246		return nil, &googleapi.Error{
23247			Code:   res.StatusCode,
23248			Header: res.Header,
23249		}
23250	}
23251	if err != nil {
23252		return nil, err
23253	}
23254	defer googleapi.CloseBody(res)
23255	if err := googleapi.CheckResponse(res); err != nil {
23256		return nil, err
23257	}
23258	ret := &GoogleCloudApigeeV1ListEnvironmentGroupsResponse{
23259		ServerResponse: googleapi.ServerResponse{
23260			Header:         res.Header,
23261			HTTPStatusCode: res.StatusCode,
23262		},
23263	}
23264	target := &ret
23265	if err := gensupport.DecodeResponse(target, res); err != nil {
23266		return nil, err
23267	}
23268	return ret, nil
23269	// {
23270	//   "description": "Lists all environment groups.",
23271	//   "flatPath": "v1/organizations/{organizationsId}/envgroups",
23272	//   "httpMethod": "GET",
23273	//   "id": "apigee.organizations.envgroups.list",
23274	//   "parameterOrder": [
23275	//     "parent"
23276	//   ],
23277	//   "parameters": {
23278	//     "pageSize": {
23279	//       "description": "Maximum number of environment groups to return. The page size defaults to 25.",
23280	//       "format": "int32",
23281	//       "location": "query",
23282	//       "type": "integer"
23283	//     },
23284	//     "pageToken": {
23285	//       "description": "Page token, returned from a previous ListEnvironmentGroups call, that you can use to retrieve the next page.",
23286	//       "location": "query",
23287	//       "type": "string"
23288	//     },
23289	//     "parent": {
23290	//       "description": "Required. Name of the organization for which to list environment groups in the following format: `organizations/{org}`.",
23291	//       "location": "path",
23292	//       "pattern": "^organizations/[^/]+$",
23293	//       "required": true,
23294	//       "type": "string"
23295	//     }
23296	//   },
23297	//   "path": "v1/{+parent}/envgroups",
23298	//   "response": {
23299	//     "$ref": "GoogleCloudApigeeV1ListEnvironmentGroupsResponse"
23300	//   },
23301	//   "scopes": [
23302	//     "https://www.googleapis.com/auth/cloud-platform"
23303	//   ]
23304	// }
23305
23306}
23307
23308// Pages invokes f for each page of results.
23309// A non-nil error returned from f will halt the iteration.
23310// The provided context supersedes any context provided to the Context method.
23311func (c *OrganizationsEnvgroupsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListEnvironmentGroupsResponse) error) error {
23312	c.ctx_ = ctx
23313	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
23314	for {
23315		x, err := c.Do()
23316		if err != nil {
23317			return err
23318		}
23319		if err := f(x); err != nil {
23320			return err
23321		}
23322		if x.NextPageToken == "" {
23323			return nil
23324		}
23325		c.PageToken(x.NextPageToken)
23326	}
23327}
23328
23329// method id "apigee.organizations.envgroups.patch":
23330
23331type OrganizationsEnvgroupsPatchCall struct {
23332	s                                   *Service
23333	name                                string
23334	googlecloudapigeev1environmentgroup *GoogleCloudApigeeV1EnvironmentGroup
23335	urlParams_                          gensupport.URLParams
23336	ctx_                                context.Context
23337	header_                             http.Header
23338}
23339
23340// Patch: Updates an environment group.
23341//
23342// - name: Name of the environment group to update in the format:
23343//   `organizations/{org}/envgroups/{envgroup}.
23344func (r *OrganizationsEnvgroupsService) Patch(name string, googlecloudapigeev1environmentgroup *GoogleCloudApigeeV1EnvironmentGroup) *OrganizationsEnvgroupsPatchCall {
23345	c := &OrganizationsEnvgroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23346	c.name = name
23347	c.googlecloudapigeev1environmentgroup = googlecloudapigeev1environmentgroup
23348	return c
23349}
23350
23351// UpdateMask sets the optional parameter "updateMask": List of fields
23352// to be updated.
23353func (c *OrganizationsEnvgroupsPatchCall) UpdateMask(updateMask string) *OrganizationsEnvgroupsPatchCall {
23354	c.urlParams_.Set("updateMask", updateMask)
23355	return c
23356}
23357
23358// Fields allows partial responses to be retrieved. See
23359// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
23360// for more information.
23361func (c *OrganizationsEnvgroupsPatchCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsPatchCall {
23362	c.urlParams_.Set("fields", googleapi.CombineFields(s))
23363	return c
23364}
23365
23366// Context sets the context to be used in this call's Do method. Any
23367// pending HTTP request will be aborted if the provided context is
23368// canceled.
23369func (c *OrganizationsEnvgroupsPatchCall) Context(ctx context.Context) *OrganizationsEnvgroupsPatchCall {
23370	c.ctx_ = ctx
23371	return c
23372}
23373
23374// Header returns an http.Header that can be modified by the caller to
23375// add HTTP headers to the request.
23376func (c *OrganizationsEnvgroupsPatchCall) Header() http.Header {
23377	if c.header_ == nil {
23378		c.header_ = make(http.Header)
23379	}
23380	return c.header_
23381}
23382
23383func (c *OrganizationsEnvgroupsPatchCall) doRequest(alt string) (*http.Response, error) {
23384	reqHeaders := make(http.Header)
23385	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
23386	for k, v := range c.header_ {
23387		reqHeaders[k] = v
23388	}
23389	reqHeaders.Set("User-Agent", c.s.userAgent())
23390	var body io.Reader = nil
23391	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1environmentgroup)
23392	if err != nil {
23393		return nil, err
23394	}
23395	reqHeaders.Set("Content-Type", "application/json")
23396	c.urlParams_.Set("alt", alt)
23397	c.urlParams_.Set("prettyPrint", "false")
23398	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
23399	urls += "?" + c.urlParams_.Encode()
23400	req, err := http.NewRequest("PATCH", urls, body)
23401	if err != nil {
23402		return nil, err
23403	}
23404	req.Header = reqHeaders
23405	googleapi.Expand(req.URL, map[string]string{
23406		"name": c.name,
23407	})
23408	return gensupport.SendRequest(c.ctx_, c.s.client, req)
23409}
23410
23411// Do executes the "apigee.organizations.envgroups.patch" call.
23412// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
23413// Any non-2xx status code is an error. Response headers are in either
23414// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
23415// was returned at all) in error.(*googleapi.Error).Header. Use
23416// googleapi.IsNotModified to check whether the returned error was
23417// because http.StatusNotModified was returned.
23418func (c *OrganizationsEnvgroupsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
23419	gensupport.SetOptions(c.urlParams_, opts...)
23420	res, err := c.doRequest("json")
23421	if res != nil && res.StatusCode == http.StatusNotModified {
23422		if res.Body != nil {
23423			res.Body.Close()
23424		}
23425		return nil, &googleapi.Error{
23426			Code:   res.StatusCode,
23427			Header: res.Header,
23428		}
23429	}
23430	if err != nil {
23431		return nil, err
23432	}
23433	defer googleapi.CloseBody(res)
23434	if err := googleapi.CheckResponse(res); err != nil {
23435		return nil, err
23436	}
23437	ret := &GoogleLongrunningOperation{
23438		ServerResponse: googleapi.ServerResponse{
23439			Header:         res.Header,
23440			HTTPStatusCode: res.StatusCode,
23441		},
23442	}
23443	target := &ret
23444	if err := gensupport.DecodeResponse(target, res); err != nil {
23445		return nil, err
23446	}
23447	return ret, nil
23448	// {
23449	//   "description": "Updates an environment group.",
23450	//   "flatPath": "v1/organizations/{organizationsId}/envgroups/{envgroupsId}",
23451	//   "httpMethod": "PATCH",
23452	//   "id": "apigee.organizations.envgroups.patch",
23453	//   "parameterOrder": [
23454	//     "name"
23455	//   ],
23456	//   "parameters": {
23457	//     "name": {
23458	//       "description": "Required. Name of the environment group to update in the format: `organizations/{org}/envgroups/{envgroup}.",
23459	//       "location": "path",
23460	//       "pattern": "^organizations/[^/]+/envgroups/[^/]+$",
23461	//       "required": true,
23462	//       "type": "string"
23463	//     },
23464	//     "updateMask": {
23465	//       "description": "List of fields to be updated.",
23466	//       "format": "google-fieldmask",
23467	//       "location": "query",
23468	//       "type": "string"
23469	//     }
23470	//   },
23471	//   "path": "v1/{+name}",
23472	//   "request": {
23473	//     "$ref": "GoogleCloudApigeeV1EnvironmentGroup"
23474	//   },
23475	//   "response": {
23476	//     "$ref": "GoogleLongrunningOperation"
23477	//   },
23478	//   "scopes": [
23479	//     "https://www.googleapis.com/auth/cloud-platform"
23480	//   ]
23481	// }
23482
23483}
23484
23485// method id "apigee.organizations.envgroups.attachments.create":
23486
23487type OrganizationsEnvgroupsAttachmentsCreateCall struct {
23488	s                                             *Service
23489	parent                                        string
23490	googlecloudapigeev1environmentgroupattachment *GoogleCloudApigeeV1EnvironmentGroupAttachment
23491	urlParams_                                    gensupport.URLParams
23492	ctx_                                          context.Context
23493	header_                                       http.Header
23494}
23495
23496// Create: Creates a new attachment of an environment to an environment
23497// group.
23498//
23499// - parent: EnvironmentGroup under which to create the attachment in
23500//   the following format: `organizations/{org}/envgroups/{envgroup}`.
23501func (r *OrganizationsEnvgroupsAttachmentsService) Create(parent string, googlecloudapigeev1environmentgroupattachment *GoogleCloudApigeeV1EnvironmentGroupAttachment) *OrganizationsEnvgroupsAttachmentsCreateCall {
23502	c := &OrganizationsEnvgroupsAttachmentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23503	c.parent = parent
23504	c.googlecloudapigeev1environmentgroupattachment = googlecloudapigeev1environmentgroupattachment
23505	return c
23506}
23507
23508// Fields allows partial responses to be retrieved. See
23509// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
23510// for more information.
23511func (c *OrganizationsEnvgroupsAttachmentsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsAttachmentsCreateCall {
23512	c.urlParams_.Set("fields", googleapi.CombineFields(s))
23513	return c
23514}
23515
23516// Context sets the context to be used in this call's Do method. Any
23517// pending HTTP request will be aborted if the provided context is
23518// canceled.
23519func (c *OrganizationsEnvgroupsAttachmentsCreateCall) Context(ctx context.Context) *OrganizationsEnvgroupsAttachmentsCreateCall {
23520	c.ctx_ = ctx
23521	return c
23522}
23523
23524// Header returns an http.Header that can be modified by the caller to
23525// add HTTP headers to the request.
23526func (c *OrganizationsEnvgroupsAttachmentsCreateCall) Header() http.Header {
23527	if c.header_ == nil {
23528		c.header_ = make(http.Header)
23529	}
23530	return c.header_
23531}
23532
23533func (c *OrganizationsEnvgroupsAttachmentsCreateCall) doRequest(alt string) (*http.Response, error) {
23534	reqHeaders := make(http.Header)
23535	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
23536	for k, v := range c.header_ {
23537		reqHeaders[k] = v
23538	}
23539	reqHeaders.Set("User-Agent", c.s.userAgent())
23540	var body io.Reader = nil
23541	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1environmentgroupattachment)
23542	if err != nil {
23543		return nil, err
23544	}
23545	reqHeaders.Set("Content-Type", "application/json")
23546	c.urlParams_.Set("alt", alt)
23547	c.urlParams_.Set("prettyPrint", "false")
23548	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attachments")
23549	urls += "?" + c.urlParams_.Encode()
23550	req, err := http.NewRequest("POST", urls, body)
23551	if err != nil {
23552		return nil, err
23553	}
23554	req.Header = reqHeaders
23555	googleapi.Expand(req.URL, map[string]string{
23556		"parent": c.parent,
23557	})
23558	return gensupport.SendRequest(c.ctx_, c.s.client, req)
23559}
23560
23561// Do executes the "apigee.organizations.envgroups.attachments.create" call.
23562// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
23563// Any non-2xx status code is an error. Response headers are in either
23564// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
23565// was returned at all) in error.(*googleapi.Error).Header. Use
23566// googleapi.IsNotModified to check whether the returned error was
23567// because http.StatusNotModified was returned.
23568func (c *OrganizationsEnvgroupsAttachmentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
23569	gensupport.SetOptions(c.urlParams_, opts...)
23570	res, err := c.doRequest("json")
23571	if res != nil && res.StatusCode == http.StatusNotModified {
23572		if res.Body != nil {
23573			res.Body.Close()
23574		}
23575		return nil, &googleapi.Error{
23576			Code:   res.StatusCode,
23577			Header: res.Header,
23578		}
23579	}
23580	if err != nil {
23581		return nil, err
23582	}
23583	defer googleapi.CloseBody(res)
23584	if err := googleapi.CheckResponse(res); err != nil {
23585		return nil, err
23586	}
23587	ret := &GoogleLongrunningOperation{
23588		ServerResponse: googleapi.ServerResponse{
23589			Header:         res.Header,
23590			HTTPStatusCode: res.StatusCode,
23591		},
23592	}
23593	target := &ret
23594	if err := gensupport.DecodeResponse(target, res); err != nil {
23595		return nil, err
23596	}
23597	return ret, nil
23598	// {
23599	//   "description": "Creates a new attachment of an environment to an environment group.",
23600	//   "flatPath": "v1/organizations/{organizationsId}/envgroups/{envgroupsId}/attachments",
23601	//   "httpMethod": "POST",
23602	//   "id": "apigee.organizations.envgroups.attachments.create",
23603	//   "parameterOrder": [
23604	//     "parent"
23605	//   ],
23606	//   "parameters": {
23607	//     "parent": {
23608	//       "description": "Required. EnvironmentGroup under which to create the attachment in the following format: `organizations/{org}/envgroups/{envgroup}`.",
23609	//       "location": "path",
23610	//       "pattern": "^organizations/[^/]+/envgroups/[^/]+$",
23611	//       "required": true,
23612	//       "type": "string"
23613	//     }
23614	//   },
23615	//   "path": "v1/{+parent}/attachments",
23616	//   "request": {
23617	//     "$ref": "GoogleCloudApigeeV1EnvironmentGroupAttachment"
23618	//   },
23619	//   "response": {
23620	//     "$ref": "GoogleLongrunningOperation"
23621	//   },
23622	//   "scopes": [
23623	//     "https://www.googleapis.com/auth/cloud-platform"
23624	//   ]
23625	// }
23626
23627}
23628
23629// method id "apigee.organizations.envgroups.attachments.delete":
23630
23631type OrganizationsEnvgroupsAttachmentsDeleteCall struct {
23632	s          *Service
23633	name       string
23634	urlParams_ gensupport.URLParams
23635	ctx_       context.Context
23636	header_    http.Header
23637}
23638
23639// Delete: Deletes an environment group attachment.
23640//
23641// - name: Name of the environment group attachment to delete in the
23642//   following format:
23643//   `organizations/{org}/envgroups/{envgroup}/attachments/{attachment}`.
23644func (r *OrganizationsEnvgroupsAttachmentsService) Delete(name string) *OrganizationsEnvgroupsAttachmentsDeleteCall {
23645	c := &OrganizationsEnvgroupsAttachmentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23646	c.name = name
23647	return c
23648}
23649
23650// Fields allows partial responses to be retrieved. See
23651// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
23652// for more information.
23653func (c *OrganizationsEnvgroupsAttachmentsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsAttachmentsDeleteCall {
23654	c.urlParams_.Set("fields", googleapi.CombineFields(s))
23655	return c
23656}
23657
23658// Context sets the context to be used in this call's Do method. Any
23659// pending HTTP request will be aborted if the provided context is
23660// canceled.
23661func (c *OrganizationsEnvgroupsAttachmentsDeleteCall) Context(ctx context.Context) *OrganizationsEnvgroupsAttachmentsDeleteCall {
23662	c.ctx_ = ctx
23663	return c
23664}
23665
23666// Header returns an http.Header that can be modified by the caller to
23667// add HTTP headers to the request.
23668func (c *OrganizationsEnvgroupsAttachmentsDeleteCall) Header() http.Header {
23669	if c.header_ == nil {
23670		c.header_ = make(http.Header)
23671	}
23672	return c.header_
23673}
23674
23675func (c *OrganizationsEnvgroupsAttachmentsDeleteCall) doRequest(alt string) (*http.Response, error) {
23676	reqHeaders := make(http.Header)
23677	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
23678	for k, v := range c.header_ {
23679		reqHeaders[k] = v
23680	}
23681	reqHeaders.Set("User-Agent", c.s.userAgent())
23682	var body io.Reader = nil
23683	c.urlParams_.Set("alt", alt)
23684	c.urlParams_.Set("prettyPrint", "false")
23685	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
23686	urls += "?" + c.urlParams_.Encode()
23687	req, err := http.NewRequest("DELETE", urls, body)
23688	if err != nil {
23689		return nil, err
23690	}
23691	req.Header = reqHeaders
23692	googleapi.Expand(req.URL, map[string]string{
23693		"name": c.name,
23694	})
23695	return gensupport.SendRequest(c.ctx_, c.s.client, req)
23696}
23697
23698// Do executes the "apigee.organizations.envgroups.attachments.delete" call.
23699// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
23700// Any non-2xx status code is an error. Response headers are in either
23701// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
23702// was returned at all) in error.(*googleapi.Error).Header. Use
23703// googleapi.IsNotModified to check whether the returned error was
23704// because http.StatusNotModified was returned.
23705func (c *OrganizationsEnvgroupsAttachmentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
23706	gensupport.SetOptions(c.urlParams_, opts...)
23707	res, err := c.doRequest("json")
23708	if res != nil && res.StatusCode == http.StatusNotModified {
23709		if res.Body != nil {
23710			res.Body.Close()
23711		}
23712		return nil, &googleapi.Error{
23713			Code:   res.StatusCode,
23714			Header: res.Header,
23715		}
23716	}
23717	if err != nil {
23718		return nil, err
23719	}
23720	defer googleapi.CloseBody(res)
23721	if err := googleapi.CheckResponse(res); err != nil {
23722		return nil, err
23723	}
23724	ret := &GoogleLongrunningOperation{
23725		ServerResponse: googleapi.ServerResponse{
23726			Header:         res.Header,
23727			HTTPStatusCode: res.StatusCode,
23728		},
23729	}
23730	target := &ret
23731	if err := gensupport.DecodeResponse(target, res); err != nil {
23732		return nil, err
23733	}
23734	return ret, nil
23735	// {
23736	//   "description": "Deletes an environment group attachment.",
23737	//   "flatPath": "v1/organizations/{organizationsId}/envgroups/{envgroupsId}/attachments/{attachmentsId}",
23738	//   "httpMethod": "DELETE",
23739	//   "id": "apigee.organizations.envgroups.attachments.delete",
23740	//   "parameterOrder": [
23741	//     "name"
23742	//   ],
23743	//   "parameters": {
23744	//     "name": {
23745	//       "description": "Required. Name of the environment group attachment to delete in the following format: `organizations/{org}/envgroups/{envgroup}/attachments/{attachment}`.",
23746	//       "location": "path",
23747	//       "pattern": "^organizations/[^/]+/envgroups/[^/]+/attachments/[^/]+$",
23748	//       "required": true,
23749	//       "type": "string"
23750	//     }
23751	//   },
23752	//   "path": "v1/{+name}",
23753	//   "response": {
23754	//     "$ref": "GoogleLongrunningOperation"
23755	//   },
23756	//   "scopes": [
23757	//     "https://www.googleapis.com/auth/cloud-platform"
23758	//   ]
23759	// }
23760
23761}
23762
23763// method id "apigee.organizations.envgroups.attachments.get":
23764
23765type OrganizationsEnvgroupsAttachmentsGetCall struct {
23766	s            *Service
23767	name         string
23768	urlParams_   gensupport.URLParams
23769	ifNoneMatch_ string
23770	ctx_         context.Context
23771	header_      http.Header
23772}
23773
23774// Get: Gets an environment group attachment.
23775//
23776// - name: Name of the environment group attachment in the following
23777//   format:
23778//   `organizations/{org}/envgroups/{envgroup}/attachments/{attachment}`.
23779func (r *OrganizationsEnvgroupsAttachmentsService) Get(name string) *OrganizationsEnvgroupsAttachmentsGetCall {
23780	c := &OrganizationsEnvgroupsAttachmentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23781	c.name = name
23782	return c
23783}
23784
23785// Fields allows partial responses to be retrieved. See
23786// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
23787// for more information.
23788func (c *OrganizationsEnvgroupsAttachmentsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsAttachmentsGetCall {
23789	c.urlParams_.Set("fields", googleapi.CombineFields(s))
23790	return c
23791}
23792
23793// IfNoneMatch sets the optional parameter which makes the operation
23794// fail if the object's ETag matches the given value. This is useful for
23795// getting updates only after the object has changed since the last
23796// request. Use googleapi.IsNotModified to check whether the response
23797// error from Do is the result of In-None-Match.
23798func (c *OrganizationsEnvgroupsAttachmentsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvgroupsAttachmentsGetCall {
23799	c.ifNoneMatch_ = entityTag
23800	return c
23801}
23802
23803// Context sets the context to be used in this call's Do method. Any
23804// pending HTTP request will be aborted if the provided context is
23805// canceled.
23806func (c *OrganizationsEnvgroupsAttachmentsGetCall) Context(ctx context.Context) *OrganizationsEnvgroupsAttachmentsGetCall {
23807	c.ctx_ = ctx
23808	return c
23809}
23810
23811// Header returns an http.Header that can be modified by the caller to
23812// add HTTP headers to the request.
23813func (c *OrganizationsEnvgroupsAttachmentsGetCall) Header() http.Header {
23814	if c.header_ == nil {
23815		c.header_ = make(http.Header)
23816	}
23817	return c.header_
23818}
23819
23820func (c *OrganizationsEnvgroupsAttachmentsGetCall) doRequest(alt string) (*http.Response, error) {
23821	reqHeaders := make(http.Header)
23822	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
23823	for k, v := range c.header_ {
23824		reqHeaders[k] = v
23825	}
23826	reqHeaders.Set("User-Agent", c.s.userAgent())
23827	if c.ifNoneMatch_ != "" {
23828		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23829	}
23830	var body io.Reader = nil
23831	c.urlParams_.Set("alt", alt)
23832	c.urlParams_.Set("prettyPrint", "false")
23833	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
23834	urls += "?" + c.urlParams_.Encode()
23835	req, err := http.NewRequest("GET", urls, body)
23836	if err != nil {
23837		return nil, err
23838	}
23839	req.Header = reqHeaders
23840	googleapi.Expand(req.URL, map[string]string{
23841		"name": c.name,
23842	})
23843	return gensupport.SendRequest(c.ctx_, c.s.client, req)
23844}
23845
23846// Do executes the "apigee.organizations.envgroups.attachments.get" call.
23847// Exactly one of *GoogleCloudApigeeV1EnvironmentGroupAttachment or
23848// error will be non-nil. Any non-2xx status code is an error. Response
23849// headers are in either
23850// *GoogleCloudApigeeV1EnvironmentGroupAttachment.ServerResponse.Header
23851// or (if a response was returned at all) in
23852// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
23853// whether the returned error was because http.StatusNotModified was
23854// returned.
23855func (c *OrganizationsEnvgroupsAttachmentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1EnvironmentGroupAttachment, error) {
23856	gensupport.SetOptions(c.urlParams_, opts...)
23857	res, err := c.doRequest("json")
23858	if res != nil && res.StatusCode == http.StatusNotModified {
23859		if res.Body != nil {
23860			res.Body.Close()
23861		}
23862		return nil, &googleapi.Error{
23863			Code:   res.StatusCode,
23864			Header: res.Header,
23865		}
23866	}
23867	if err != nil {
23868		return nil, err
23869	}
23870	defer googleapi.CloseBody(res)
23871	if err := googleapi.CheckResponse(res); err != nil {
23872		return nil, err
23873	}
23874	ret := &GoogleCloudApigeeV1EnvironmentGroupAttachment{
23875		ServerResponse: googleapi.ServerResponse{
23876			Header:         res.Header,
23877			HTTPStatusCode: res.StatusCode,
23878		},
23879	}
23880	target := &ret
23881	if err := gensupport.DecodeResponse(target, res); err != nil {
23882		return nil, err
23883	}
23884	return ret, nil
23885	// {
23886	//   "description": "Gets an environment group attachment.",
23887	//   "flatPath": "v1/organizations/{organizationsId}/envgroups/{envgroupsId}/attachments/{attachmentsId}",
23888	//   "httpMethod": "GET",
23889	//   "id": "apigee.organizations.envgroups.attachments.get",
23890	//   "parameterOrder": [
23891	//     "name"
23892	//   ],
23893	//   "parameters": {
23894	//     "name": {
23895	//       "description": "Required. Name of the environment group attachment in the following format: `organizations/{org}/envgroups/{envgroup}/attachments/{attachment}`",
23896	//       "location": "path",
23897	//       "pattern": "^organizations/[^/]+/envgroups/[^/]+/attachments/[^/]+$",
23898	//       "required": true,
23899	//       "type": "string"
23900	//     }
23901	//   },
23902	//   "path": "v1/{+name}",
23903	//   "response": {
23904	//     "$ref": "GoogleCloudApigeeV1EnvironmentGroupAttachment"
23905	//   },
23906	//   "scopes": [
23907	//     "https://www.googleapis.com/auth/cloud-platform"
23908	//   ]
23909	// }
23910
23911}
23912
23913// method id "apigee.organizations.envgroups.attachments.list":
23914
23915type OrganizationsEnvgroupsAttachmentsListCall struct {
23916	s            *Service
23917	parent       string
23918	urlParams_   gensupport.URLParams
23919	ifNoneMatch_ string
23920	ctx_         context.Context
23921	header_      http.Header
23922}
23923
23924// List: Lists all attachments of an environment group.
23925//
23926// - parent: Name of the environment group in the following format:
23927//   `organizations/{org}/envgroups/{envgroup}`.
23928func (r *OrganizationsEnvgroupsAttachmentsService) List(parent string) *OrganizationsEnvgroupsAttachmentsListCall {
23929	c := &OrganizationsEnvgroupsAttachmentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23930	c.parent = parent
23931	return c
23932}
23933
23934// PageSize sets the optional parameter "pageSize": Maximum number of
23935// environment group attachments to return. The page size defaults to
23936// 25.
23937func (c *OrganizationsEnvgroupsAttachmentsListCall) PageSize(pageSize int64) *OrganizationsEnvgroupsAttachmentsListCall {
23938	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
23939	return c
23940}
23941
23942// PageToken sets the optional parameter "pageToken": Page token,
23943// returned by a previous ListEnvironmentGroupAttachments call, that you
23944// can use to retrieve the next page.
23945func (c *OrganizationsEnvgroupsAttachmentsListCall) PageToken(pageToken string) *OrganizationsEnvgroupsAttachmentsListCall {
23946	c.urlParams_.Set("pageToken", pageToken)
23947	return c
23948}
23949
23950// Fields allows partial responses to be retrieved. See
23951// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
23952// for more information.
23953func (c *OrganizationsEnvgroupsAttachmentsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsAttachmentsListCall {
23954	c.urlParams_.Set("fields", googleapi.CombineFields(s))
23955	return c
23956}
23957
23958// IfNoneMatch sets the optional parameter which makes the operation
23959// fail if the object's ETag matches the given value. This is useful for
23960// getting updates only after the object has changed since the last
23961// request. Use googleapi.IsNotModified to check whether the response
23962// error from Do is the result of In-None-Match.
23963func (c *OrganizationsEnvgroupsAttachmentsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvgroupsAttachmentsListCall {
23964	c.ifNoneMatch_ = entityTag
23965	return c
23966}
23967
23968// Context sets the context to be used in this call's Do method. Any
23969// pending HTTP request will be aborted if the provided context is
23970// canceled.
23971func (c *OrganizationsEnvgroupsAttachmentsListCall) Context(ctx context.Context) *OrganizationsEnvgroupsAttachmentsListCall {
23972	c.ctx_ = ctx
23973	return c
23974}
23975
23976// Header returns an http.Header that can be modified by the caller to
23977// add HTTP headers to the request.
23978func (c *OrganizationsEnvgroupsAttachmentsListCall) Header() http.Header {
23979	if c.header_ == nil {
23980		c.header_ = make(http.Header)
23981	}
23982	return c.header_
23983}
23984
23985func (c *OrganizationsEnvgroupsAttachmentsListCall) doRequest(alt string) (*http.Response, error) {
23986	reqHeaders := make(http.Header)
23987	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
23988	for k, v := range c.header_ {
23989		reqHeaders[k] = v
23990	}
23991	reqHeaders.Set("User-Agent", c.s.userAgent())
23992	if c.ifNoneMatch_ != "" {
23993		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23994	}
23995	var body io.Reader = nil
23996	c.urlParams_.Set("alt", alt)
23997	c.urlParams_.Set("prettyPrint", "false")
23998	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attachments")
23999	urls += "?" + c.urlParams_.Encode()
24000	req, err := http.NewRequest("GET", urls, body)
24001	if err != nil {
24002		return nil, err
24003	}
24004	req.Header = reqHeaders
24005	googleapi.Expand(req.URL, map[string]string{
24006		"parent": c.parent,
24007	})
24008	return gensupport.SendRequest(c.ctx_, c.s.client, req)
24009}
24010
24011// Do executes the "apigee.organizations.envgroups.attachments.list" call.
24012// Exactly one of
24013// *GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse or error
24014// will be non-nil. Any non-2xx status code is an error. Response
24015// headers are in either
24016// *GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse.ServerResp
24017// onse.Header or (if a response was returned at all) in
24018// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
24019// whether the returned error was because http.StatusNotModified was
24020// returned.
24021func (c *OrganizationsEnvgroupsAttachmentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse, error) {
24022	gensupport.SetOptions(c.urlParams_, opts...)
24023	res, err := c.doRequest("json")
24024	if res != nil && res.StatusCode == http.StatusNotModified {
24025		if res.Body != nil {
24026			res.Body.Close()
24027		}
24028		return nil, &googleapi.Error{
24029			Code:   res.StatusCode,
24030			Header: res.Header,
24031		}
24032	}
24033	if err != nil {
24034		return nil, err
24035	}
24036	defer googleapi.CloseBody(res)
24037	if err := googleapi.CheckResponse(res); err != nil {
24038		return nil, err
24039	}
24040	ret := &GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse{
24041		ServerResponse: googleapi.ServerResponse{
24042			Header:         res.Header,
24043			HTTPStatusCode: res.StatusCode,
24044		},
24045	}
24046	target := &ret
24047	if err := gensupport.DecodeResponse(target, res); err != nil {
24048		return nil, err
24049	}
24050	return ret, nil
24051	// {
24052	//   "description": "Lists all attachments of an environment group.",
24053	//   "flatPath": "v1/organizations/{organizationsId}/envgroups/{envgroupsId}/attachments",
24054	//   "httpMethod": "GET",
24055	//   "id": "apigee.organizations.envgroups.attachments.list",
24056	//   "parameterOrder": [
24057	//     "parent"
24058	//   ],
24059	//   "parameters": {
24060	//     "pageSize": {
24061	//       "description": "Maximum number of environment group attachments to return. The page size defaults to 25.",
24062	//       "format": "int32",
24063	//       "location": "query",
24064	//       "type": "integer"
24065	//     },
24066	//     "pageToken": {
24067	//       "description": "Page token, returned by a previous ListEnvironmentGroupAttachments call, that you can use to retrieve the next page.",
24068	//       "location": "query",
24069	//       "type": "string"
24070	//     },
24071	//     "parent": {
24072	//       "description": "Required. Name of the environment group in the following format: `organizations/{org}/envgroups/{envgroup}`.",
24073	//       "location": "path",
24074	//       "pattern": "^organizations/[^/]+/envgroups/[^/]+$",
24075	//       "required": true,
24076	//       "type": "string"
24077	//     }
24078	//   },
24079	//   "path": "v1/{+parent}/attachments",
24080	//   "response": {
24081	//     "$ref": "GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse"
24082	//   },
24083	//   "scopes": [
24084	//     "https://www.googleapis.com/auth/cloud-platform"
24085	//   ]
24086	// }
24087
24088}
24089
24090// Pages invokes f for each page of results.
24091// A non-nil error returned from f will halt the iteration.
24092// The provided context supersedes any context provided to the Context method.
24093func (c *OrganizationsEnvgroupsAttachmentsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse) error) error {
24094	c.ctx_ = ctx
24095	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
24096	for {
24097		x, err := c.Do()
24098		if err != nil {
24099			return err
24100		}
24101		if err := f(x); err != nil {
24102			return err
24103		}
24104		if x.NextPageToken == "" {
24105			return nil
24106		}
24107		c.PageToken(x.NextPageToken)
24108	}
24109}
24110
24111// method id "apigee.organizations.environments.create":
24112
24113type OrganizationsEnvironmentsCreateCall struct {
24114	s                              *Service
24115	parent                         string
24116	googlecloudapigeev1environment *GoogleCloudApigeeV1Environment
24117	urlParams_                     gensupport.URLParams
24118	ctx_                           context.Context
24119	header_                        http.Header
24120}
24121
24122// Create: Creates an environment in an organization.
24123//
24124// - parent: Name of the organization in which the environment will be
24125//   created. Use the following structure in your request:
24126//   `organizations/{org}`.
24127func (r *OrganizationsEnvironmentsService) Create(parent string, googlecloudapigeev1environment *GoogleCloudApigeeV1Environment) *OrganizationsEnvironmentsCreateCall {
24128	c := &OrganizationsEnvironmentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24129	c.parent = parent
24130	c.googlecloudapigeev1environment = googlecloudapigeev1environment
24131	return c
24132}
24133
24134// Name sets the optional parameter "name": Name of the environment.
24135// Alternatively, the name may be specified in the request body in the
24136// name field.
24137func (c *OrganizationsEnvironmentsCreateCall) Name(name string) *OrganizationsEnvironmentsCreateCall {
24138	c.urlParams_.Set("name", name)
24139	return c
24140}
24141
24142// Fields allows partial responses to be retrieved. See
24143// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
24144// for more information.
24145func (c *OrganizationsEnvironmentsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsCreateCall {
24146	c.urlParams_.Set("fields", googleapi.CombineFields(s))
24147	return c
24148}
24149
24150// Context sets the context to be used in this call's Do method. Any
24151// pending HTTP request will be aborted if the provided context is
24152// canceled.
24153func (c *OrganizationsEnvironmentsCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsCreateCall {
24154	c.ctx_ = ctx
24155	return c
24156}
24157
24158// Header returns an http.Header that can be modified by the caller to
24159// add HTTP headers to the request.
24160func (c *OrganizationsEnvironmentsCreateCall) Header() http.Header {
24161	if c.header_ == nil {
24162		c.header_ = make(http.Header)
24163	}
24164	return c.header_
24165}
24166
24167func (c *OrganizationsEnvironmentsCreateCall) doRequest(alt string) (*http.Response, error) {
24168	reqHeaders := make(http.Header)
24169	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
24170	for k, v := range c.header_ {
24171		reqHeaders[k] = v
24172	}
24173	reqHeaders.Set("User-Agent", c.s.userAgent())
24174	var body io.Reader = nil
24175	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1environment)
24176	if err != nil {
24177		return nil, err
24178	}
24179	reqHeaders.Set("Content-Type", "application/json")
24180	c.urlParams_.Set("alt", alt)
24181	c.urlParams_.Set("prettyPrint", "false")
24182	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/environments")
24183	urls += "?" + c.urlParams_.Encode()
24184	req, err := http.NewRequest("POST", urls, body)
24185	if err != nil {
24186		return nil, err
24187	}
24188	req.Header = reqHeaders
24189	googleapi.Expand(req.URL, map[string]string{
24190		"parent": c.parent,
24191	})
24192	return gensupport.SendRequest(c.ctx_, c.s.client, req)
24193}
24194
24195// Do executes the "apigee.organizations.environments.create" call.
24196// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
24197// Any non-2xx status code is an error. Response headers are in either
24198// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
24199// was returned at all) in error.(*googleapi.Error).Header. Use
24200// googleapi.IsNotModified to check whether the returned error was
24201// because http.StatusNotModified was returned.
24202func (c *OrganizationsEnvironmentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
24203	gensupport.SetOptions(c.urlParams_, opts...)
24204	res, err := c.doRequest("json")
24205	if res != nil && res.StatusCode == http.StatusNotModified {
24206		if res.Body != nil {
24207			res.Body.Close()
24208		}
24209		return nil, &googleapi.Error{
24210			Code:   res.StatusCode,
24211			Header: res.Header,
24212		}
24213	}
24214	if err != nil {
24215		return nil, err
24216	}
24217	defer googleapi.CloseBody(res)
24218	if err := googleapi.CheckResponse(res); err != nil {
24219		return nil, err
24220	}
24221	ret := &GoogleLongrunningOperation{
24222		ServerResponse: googleapi.ServerResponse{
24223			Header:         res.Header,
24224			HTTPStatusCode: res.StatusCode,
24225		},
24226	}
24227	target := &ret
24228	if err := gensupport.DecodeResponse(target, res); err != nil {
24229		return nil, err
24230	}
24231	return ret, nil
24232	// {
24233	//   "description": "Creates an environment in an organization.",
24234	//   "flatPath": "v1/organizations/{organizationsId}/environments",
24235	//   "httpMethod": "POST",
24236	//   "id": "apigee.organizations.environments.create",
24237	//   "parameterOrder": [
24238	//     "parent"
24239	//   ],
24240	//   "parameters": {
24241	//     "name": {
24242	//       "description": "Optional. Name of the environment. Alternatively, the name may be specified in the request body in the name field.",
24243	//       "location": "query",
24244	//       "type": "string"
24245	//     },
24246	//     "parent": {
24247	//       "description": "Required. Name of the organization in which the environment will be created. Use the following structure in your request: `organizations/{org}`",
24248	//       "location": "path",
24249	//       "pattern": "^organizations/[^/]+$",
24250	//       "required": true,
24251	//       "type": "string"
24252	//     }
24253	//   },
24254	//   "path": "v1/{+parent}/environments",
24255	//   "request": {
24256	//     "$ref": "GoogleCloudApigeeV1Environment"
24257	//   },
24258	//   "response": {
24259	//     "$ref": "GoogleLongrunningOperation"
24260	//   },
24261	//   "scopes": [
24262	//     "https://www.googleapis.com/auth/cloud-platform"
24263	//   ]
24264	// }
24265
24266}
24267
24268// method id "apigee.organizations.environments.delete":
24269
24270type OrganizationsEnvironmentsDeleteCall struct {
24271	s          *Service
24272	name       string
24273	urlParams_ gensupport.URLParams
24274	ctx_       context.Context
24275	header_    http.Header
24276}
24277
24278// Delete: Deletes an environment from an organization.
24279//
24280// - name: Name of the environment. Use the following structure in your
24281//   request: `organizations/{org}/environments/{env}`.
24282func (r *OrganizationsEnvironmentsService) Delete(name string) *OrganizationsEnvironmentsDeleteCall {
24283	c := &OrganizationsEnvironmentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24284	c.name = name
24285	return c
24286}
24287
24288// Fields allows partial responses to be retrieved. See
24289// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
24290// for more information.
24291func (c *OrganizationsEnvironmentsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsDeleteCall {
24292	c.urlParams_.Set("fields", googleapi.CombineFields(s))
24293	return c
24294}
24295
24296// Context sets the context to be used in this call's Do method. Any
24297// pending HTTP request will be aborted if the provided context is
24298// canceled.
24299func (c *OrganizationsEnvironmentsDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsDeleteCall {
24300	c.ctx_ = ctx
24301	return c
24302}
24303
24304// Header returns an http.Header that can be modified by the caller to
24305// add HTTP headers to the request.
24306func (c *OrganizationsEnvironmentsDeleteCall) Header() http.Header {
24307	if c.header_ == nil {
24308		c.header_ = make(http.Header)
24309	}
24310	return c.header_
24311}
24312
24313func (c *OrganizationsEnvironmentsDeleteCall) doRequest(alt string) (*http.Response, error) {
24314	reqHeaders := make(http.Header)
24315	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
24316	for k, v := range c.header_ {
24317		reqHeaders[k] = v
24318	}
24319	reqHeaders.Set("User-Agent", c.s.userAgent())
24320	var body io.Reader = nil
24321	c.urlParams_.Set("alt", alt)
24322	c.urlParams_.Set("prettyPrint", "false")
24323	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
24324	urls += "?" + c.urlParams_.Encode()
24325	req, err := http.NewRequest("DELETE", urls, body)
24326	if err != nil {
24327		return nil, err
24328	}
24329	req.Header = reqHeaders
24330	googleapi.Expand(req.URL, map[string]string{
24331		"name": c.name,
24332	})
24333	return gensupport.SendRequest(c.ctx_, c.s.client, req)
24334}
24335
24336// Do executes the "apigee.organizations.environments.delete" call.
24337// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
24338// Any non-2xx status code is an error. Response headers are in either
24339// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
24340// was returned at all) in error.(*googleapi.Error).Header. Use
24341// googleapi.IsNotModified to check whether the returned error was
24342// because http.StatusNotModified was returned.
24343func (c *OrganizationsEnvironmentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
24344	gensupport.SetOptions(c.urlParams_, opts...)
24345	res, err := c.doRequest("json")
24346	if res != nil && res.StatusCode == http.StatusNotModified {
24347		if res.Body != nil {
24348			res.Body.Close()
24349		}
24350		return nil, &googleapi.Error{
24351			Code:   res.StatusCode,
24352			Header: res.Header,
24353		}
24354	}
24355	if err != nil {
24356		return nil, err
24357	}
24358	defer googleapi.CloseBody(res)
24359	if err := googleapi.CheckResponse(res); err != nil {
24360		return nil, err
24361	}
24362	ret := &GoogleLongrunningOperation{
24363		ServerResponse: googleapi.ServerResponse{
24364			Header:         res.Header,
24365			HTTPStatusCode: res.StatusCode,
24366		},
24367	}
24368	target := &ret
24369	if err := gensupport.DecodeResponse(target, res); err != nil {
24370		return nil, err
24371	}
24372	return ret, nil
24373	// {
24374	//   "description": "Deletes an environment from an organization.",
24375	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}",
24376	//   "httpMethod": "DELETE",
24377	//   "id": "apigee.organizations.environments.delete",
24378	//   "parameterOrder": [
24379	//     "name"
24380	//   ],
24381	//   "parameters": {
24382	//     "name": {
24383	//       "description": "Required. Name of the environment. Use the following structure in your request: `organizations/{org}/environments/{env}`",
24384	//       "location": "path",
24385	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
24386	//       "required": true,
24387	//       "type": "string"
24388	//     }
24389	//   },
24390	//   "path": "v1/{+name}",
24391	//   "response": {
24392	//     "$ref": "GoogleLongrunningOperation"
24393	//   },
24394	//   "scopes": [
24395	//     "https://www.googleapis.com/auth/cloud-platform"
24396	//   ]
24397	// }
24398
24399}
24400
24401// method id "apigee.organizations.environments.get":
24402
24403type OrganizationsEnvironmentsGetCall struct {
24404	s            *Service
24405	name         string
24406	urlParams_   gensupport.URLParams
24407	ifNoneMatch_ string
24408	ctx_         context.Context
24409	header_      http.Header
24410}
24411
24412// Get: Gets environment details.
24413//
24414// - name: Name of the environment. Use the following structure in your
24415//   request: `organizations/{org}/environments/{env}`.
24416func (r *OrganizationsEnvironmentsService) Get(name string) *OrganizationsEnvironmentsGetCall {
24417	c := &OrganizationsEnvironmentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24418	c.name = name
24419	return c
24420}
24421
24422// Fields allows partial responses to be retrieved. See
24423// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
24424// for more information.
24425func (c *OrganizationsEnvironmentsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsGetCall {
24426	c.urlParams_.Set("fields", googleapi.CombineFields(s))
24427	return c
24428}
24429
24430// IfNoneMatch sets the optional parameter which makes the operation
24431// fail if the object's ETag matches the given value. This is useful for
24432// getting updates only after the object has changed since the last
24433// request. Use googleapi.IsNotModified to check whether the response
24434// error from Do is the result of In-None-Match.
24435func (c *OrganizationsEnvironmentsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsGetCall {
24436	c.ifNoneMatch_ = entityTag
24437	return c
24438}
24439
24440// Context sets the context to be used in this call's Do method. Any
24441// pending HTTP request will be aborted if the provided context is
24442// canceled.
24443func (c *OrganizationsEnvironmentsGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsGetCall {
24444	c.ctx_ = ctx
24445	return c
24446}
24447
24448// Header returns an http.Header that can be modified by the caller to
24449// add HTTP headers to the request.
24450func (c *OrganizationsEnvironmentsGetCall) Header() http.Header {
24451	if c.header_ == nil {
24452		c.header_ = make(http.Header)
24453	}
24454	return c.header_
24455}
24456
24457func (c *OrganizationsEnvironmentsGetCall) doRequest(alt string) (*http.Response, error) {
24458	reqHeaders := make(http.Header)
24459	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
24460	for k, v := range c.header_ {
24461		reqHeaders[k] = v
24462	}
24463	reqHeaders.Set("User-Agent", c.s.userAgent())
24464	if c.ifNoneMatch_ != "" {
24465		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24466	}
24467	var body io.Reader = nil
24468	c.urlParams_.Set("alt", alt)
24469	c.urlParams_.Set("prettyPrint", "false")
24470	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
24471	urls += "?" + c.urlParams_.Encode()
24472	req, err := http.NewRequest("GET", urls, body)
24473	if err != nil {
24474		return nil, err
24475	}
24476	req.Header = reqHeaders
24477	googleapi.Expand(req.URL, map[string]string{
24478		"name": c.name,
24479	})
24480	return gensupport.SendRequest(c.ctx_, c.s.client, req)
24481}
24482
24483// Do executes the "apigee.organizations.environments.get" call.
24484// Exactly one of *GoogleCloudApigeeV1Environment or error will be
24485// non-nil. Any non-2xx status code is an error. Response headers are in
24486// either *GoogleCloudApigeeV1Environment.ServerResponse.Header or (if a
24487// response was returned at all) in error.(*googleapi.Error).Header. Use
24488// googleapi.IsNotModified to check whether the returned error was
24489// because http.StatusNotModified was returned.
24490func (c *OrganizationsEnvironmentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Environment, error) {
24491	gensupport.SetOptions(c.urlParams_, opts...)
24492	res, err := c.doRequest("json")
24493	if res != nil && res.StatusCode == http.StatusNotModified {
24494		if res.Body != nil {
24495			res.Body.Close()
24496		}
24497		return nil, &googleapi.Error{
24498			Code:   res.StatusCode,
24499			Header: res.Header,
24500		}
24501	}
24502	if err != nil {
24503		return nil, err
24504	}
24505	defer googleapi.CloseBody(res)
24506	if err := googleapi.CheckResponse(res); err != nil {
24507		return nil, err
24508	}
24509	ret := &GoogleCloudApigeeV1Environment{
24510		ServerResponse: googleapi.ServerResponse{
24511			Header:         res.Header,
24512			HTTPStatusCode: res.StatusCode,
24513		},
24514	}
24515	target := &ret
24516	if err := gensupport.DecodeResponse(target, res); err != nil {
24517		return nil, err
24518	}
24519	return ret, nil
24520	// {
24521	//   "description": "Gets environment details.",
24522	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}",
24523	//   "httpMethod": "GET",
24524	//   "id": "apigee.organizations.environments.get",
24525	//   "parameterOrder": [
24526	//     "name"
24527	//   ],
24528	//   "parameters": {
24529	//     "name": {
24530	//       "description": "Required. Name of the environment. Use the following structure in your request: `organizations/{org}/environments/{env}`",
24531	//       "location": "path",
24532	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
24533	//       "required": true,
24534	//       "type": "string"
24535	//     }
24536	//   },
24537	//   "path": "v1/{+name}",
24538	//   "response": {
24539	//     "$ref": "GoogleCloudApigeeV1Environment"
24540	//   },
24541	//   "scopes": [
24542	//     "https://www.googleapis.com/auth/cloud-platform"
24543	//   ]
24544	// }
24545
24546}
24547
24548// method id "apigee.organizations.environments.getDebugmask":
24549
24550type OrganizationsEnvironmentsGetDebugmaskCall struct {
24551	s            *Service
24552	name         string
24553	urlParams_   gensupport.URLParams
24554	ifNoneMatch_ string
24555	ctx_         context.Context
24556	header_      http.Header
24557}
24558
24559// GetDebugmask: Gets the debug mask singleton resource for an
24560// environment.
24561//
24562// - name: Name of the debug mask. Use the following structure in your
24563//   request: `organizations/{org}/environments/{env}/debugmask`.
24564func (r *OrganizationsEnvironmentsService) GetDebugmask(name string) *OrganizationsEnvironmentsGetDebugmaskCall {
24565	c := &OrganizationsEnvironmentsGetDebugmaskCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24566	c.name = name
24567	return c
24568}
24569
24570// Fields allows partial responses to be retrieved. See
24571// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
24572// for more information.
24573func (c *OrganizationsEnvironmentsGetDebugmaskCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsGetDebugmaskCall {
24574	c.urlParams_.Set("fields", googleapi.CombineFields(s))
24575	return c
24576}
24577
24578// IfNoneMatch sets the optional parameter which makes the operation
24579// fail if the object's ETag matches the given value. This is useful for
24580// getting updates only after the object has changed since the last
24581// request. Use googleapi.IsNotModified to check whether the response
24582// error from Do is the result of In-None-Match.
24583func (c *OrganizationsEnvironmentsGetDebugmaskCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsGetDebugmaskCall {
24584	c.ifNoneMatch_ = entityTag
24585	return c
24586}
24587
24588// Context sets the context to be used in this call's Do method. Any
24589// pending HTTP request will be aborted if the provided context is
24590// canceled.
24591func (c *OrganizationsEnvironmentsGetDebugmaskCall) Context(ctx context.Context) *OrganizationsEnvironmentsGetDebugmaskCall {
24592	c.ctx_ = ctx
24593	return c
24594}
24595
24596// Header returns an http.Header that can be modified by the caller to
24597// add HTTP headers to the request.
24598func (c *OrganizationsEnvironmentsGetDebugmaskCall) Header() http.Header {
24599	if c.header_ == nil {
24600		c.header_ = make(http.Header)
24601	}
24602	return c.header_
24603}
24604
24605func (c *OrganizationsEnvironmentsGetDebugmaskCall) doRequest(alt string) (*http.Response, error) {
24606	reqHeaders := make(http.Header)
24607	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
24608	for k, v := range c.header_ {
24609		reqHeaders[k] = v
24610	}
24611	reqHeaders.Set("User-Agent", c.s.userAgent())
24612	if c.ifNoneMatch_ != "" {
24613		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24614	}
24615	var body io.Reader = nil
24616	c.urlParams_.Set("alt", alt)
24617	c.urlParams_.Set("prettyPrint", "false")
24618	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
24619	urls += "?" + c.urlParams_.Encode()
24620	req, err := http.NewRequest("GET", urls, body)
24621	if err != nil {
24622		return nil, err
24623	}
24624	req.Header = reqHeaders
24625	googleapi.Expand(req.URL, map[string]string{
24626		"name": c.name,
24627	})
24628	return gensupport.SendRequest(c.ctx_, c.s.client, req)
24629}
24630
24631// Do executes the "apigee.organizations.environments.getDebugmask" call.
24632// Exactly one of *GoogleCloudApigeeV1DebugMask or error will be
24633// non-nil. Any non-2xx status code is an error. Response headers are in
24634// either *GoogleCloudApigeeV1DebugMask.ServerResponse.Header or (if a
24635// response was returned at all) in error.(*googleapi.Error).Header. Use
24636// googleapi.IsNotModified to check whether the returned error was
24637// because http.StatusNotModified was returned.
24638func (c *OrganizationsEnvironmentsGetDebugmaskCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DebugMask, error) {
24639	gensupport.SetOptions(c.urlParams_, opts...)
24640	res, err := c.doRequest("json")
24641	if res != nil && res.StatusCode == http.StatusNotModified {
24642		if res.Body != nil {
24643			res.Body.Close()
24644		}
24645		return nil, &googleapi.Error{
24646			Code:   res.StatusCode,
24647			Header: res.Header,
24648		}
24649	}
24650	if err != nil {
24651		return nil, err
24652	}
24653	defer googleapi.CloseBody(res)
24654	if err := googleapi.CheckResponse(res); err != nil {
24655		return nil, err
24656	}
24657	ret := &GoogleCloudApigeeV1DebugMask{
24658		ServerResponse: googleapi.ServerResponse{
24659			Header:         res.Header,
24660			HTTPStatusCode: res.StatusCode,
24661		},
24662	}
24663	target := &ret
24664	if err := gensupport.DecodeResponse(target, res); err != nil {
24665		return nil, err
24666	}
24667	return ret, nil
24668	// {
24669	//   "description": "Gets the debug mask singleton resource for an environment.",
24670	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/debugmask",
24671	//   "httpMethod": "GET",
24672	//   "id": "apigee.organizations.environments.getDebugmask",
24673	//   "parameterOrder": [
24674	//     "name"
24675	//   ],
24676	//   "parameters": {
24677	//     "name": {
24678	//       "description": "Required. Name of the debug mask. Use the following structure in your request: `organizations/{org}/environments/{env}/debugmask`.",
24679	//       "location": "path",
24680	//       "pattern": "^organizations/[^/]+/environments/[^/]+/debugmask$",
24681	//       "required": true,
24682	//       "type": "string"
24683	//     }
24684	//   },
24685	//   "path": "v1/{+name}",
24686	//   "response": {
24687	//     "$ref": "GoogleCloudApigeeV1DebugMask"
24688	//   },
24689	//   "scopes": [
24690	//     "https://www.googleapis.com/auth/cloud-platform"
24691	//   ]
24692	// }
24693
24694}
24695
24696// method id "apigee.organizations.environments.getDeployedConfig":
24697
24698type OrganizationsEnvironmentsGetDeployedConfigCall struct {
24699	s            *Service
24700	name         string
24701	urlParams_   gensupport.URLParams
24702	ifNoneMatch_ string
24703	ctx_         context.Context
24704	header_      http.Header
24705}
24706
24707// GetDeployedConfig: Gets the deployed configuration for an
24708// environment.
24709//
24710// - name: Name of the environment deployed configuration resource. Use
24711//   the following structure in your request:
24712//   `organizations/{org}/environments/{env}/deployedConfig`.
24713func (r *OrganizationsEnvironmentsService) GetDeployedConfig(name string) *OrganizationsEnvironmentsGetDeployedConfigCall {
24714	c := &OrganizationsEnvironmentsGetDeployedConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24715	c.name = name
24716	return c
24717}
24718
24719// Fields allows partial responses to be retrieved. See
24720// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
24721// for more information.
24722func (c *OrganizationsEnvironmentsGetDeployedConfigCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsGetDeployedConfigCall {
24723	c.urlParams_.Set("fields", googleapi.CombineFields(s))
24724	return c
24725}
24726
24727// IfNoneMatch sets the optional parameter which makes the operation
24728// fail if the object's ETag matches the given value. This is useful for
24729// getting updates only after the object has changed since the last
24730// request. Use googleapi.IsNotModified to check whether the response
24731// error from Do is the result of In-None-Match.
24732func (c *OrganizationsEnvironmentsGetDeployedConfigCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsGetDeployedConfigCall {
24733	c.ifNoneMatch_ = entityTag
24734	return c
24735}
24736
24737// Context sets the context to be used in this call's Do method. Any
24738// pending HTTP request will be aborted if the provided context is
24739// canceled.
24740func (c *OrganizationsEnvironmentsGetDeployedConfigCall) Context(ctx context.Context) *OrganizationsEnvironmentsGetDeployedConfigCall {
24741	c.ctx_ = ctx
24742	return c
24743}
24744
24745// Header returns an http.Header that can be modified by the caller to
24746// add HTTP headers to the request.
24747func (c *OrganizationsEnvironmentsGetDeployedConfigCall) Header() http.Header {
24748	if c.header_ == nil {
24749		c.header_ = make(http.Header)
24750	}
24751	return c.header_
24752}
24753
24754func (c *OrganizationsEnvironmentsGetDeployedConfigCall) doRequest(alt string) (*http.Response, error) {
24755	reqHeaders := make(http.Header)
24756	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
24757	for k, v := range c.header_ {
24758		reqHeaders[k] = v
24759	}
24760	reqHeaders.Set("User-Agent", c.s.userAgent())
24761	if c.ifNoneMatch_ != "" {
24762		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24763	}
24764	var body io.Reader = nil
24765	c.urlParams_.Set("alt", alt)
24766	c.urlParams_.Set("prettyPrint", "false")
24767	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
24768	urls += "?" + c.urlParams_.Encode()
24769	req, err := http.NewRequest("GET", urls, body)
24770	if err != nil {
24771		return nil, err
24772	}
24773	req.Header = reqHeaders
24774	googleapi.Expand(req.URL, map[string]string{
24775		"name": c.name,
24776	})
24777	return gensupport.SendRequest(c.ctx_, c.s.client, req)
24778}
24779
24780// Do executes the "apigee.organizations.environments.getDeployedConfig" call.
24781// Exactly one of *GoogleCloudApigeeV1EnvironmentConfig or error will be
24782// non-nil. Any non-2xx status code is an error. Response headers are in
24783// either *GoogleCloudApigeeV1EnvironmentConfig.ServerResponse.Header or
24784// (if a response was returned at all) in
24785// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
24786// whether the returned error was because http.StatusNotModified was
24787// returned.
24788func (c *OrganizationsEnvironmentsGetDeployedConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1EnvironmentConfig, error) {
24789	gensupport.SetOptions(c.urlParams_, opts...)
24790	res, err := c.doRequest("json")
24791	if res != nil && res.StatusCode == http.StatusNotModified {
24792		if res.Body != nil {
24793			res.Body.Close()
24794		}
24795		return nil, &googleapi.Error{
24796			Code:   res.StatusCode,
24797			Header: res.Header,
24798		}
24799	}
24800	if err != nil {
24801		return nil, err
24802	}
24803	defer googleapi.CloseBody(res)
24804	if err := googleapi.CheckResponse(res); err != nil {
24805		return nil, err
24806	}
24807	ret := &GoogleCloudApigeeV1EnvironmentConfig{
24808		ServerResponse: googleapi.ServerResponse{
24809			Header:         res.Header,
24810			HTTPStatusCode: res.StatusCode,
24811		},
24812	}
24813	target := &ret
24814	if err := gensupport.DecodeResponse(target, res); err != nil {
24815		return nil, err
24816	}
24817	return ret, nil
24818	// {
24819	//   "description": "Gets the deployed configuration for an environment.",
24820	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/deployedConfig",
24821	//   "httpMethod": "GET",
24822	//   "id": "apigee.organizations.environments.getDeployedConfig",
24823	//   "parameterOrder": [
24824	//     "name"
24825	//   ],
24826	//   "parameters": {
24827	//     "name": {
24828	//       "description": "Required. Name of the environment deployed configuration resource. Use the following structure in your request: `organizations/{org}/environments/{env}/deployedConfig`",
24829	//       "location": "path",
24830	//       "pattern": "^organizations/[^/]+/environments/[^/]+/deployedConfig$",
24831	//       "required": true,
24832	//       "type": "string"
24833	//     }
24834	//   },
24835	//   "path": "v1/{+name}",
24836	//   "response": {
24837	//     "$ref": "GoogleCloudApigeeV1EnvironmentConfig"
24838	//   },
24839	//   "scopes": [
24840	//     "https://www.googleapis.com/auth/cloud-platform"
24841	//   ]
24842	// }
24843
24844}
24845
24846// method id "apigee.organizations.environments.getIamPolicy":
24847
24848type OrganizationsEnvironmentsGetIamPolicyCall struct {
24849	s            *Service
24850	resource     string
24851	urlParams_   gensupport.URLParams
24852	ifNoneMatch_ string
24853	ctx_         context.Context
24854	header_      http.Header
24855}
24856
24857// GetIamPolicy: Gets the IAM policy on an environment. For more
24858// information, see Manage users, roles, and permissions using the API
24859// (https://cloud.google.com/apigee/docs/api-platform/system-administration/manage-users-roles).
24860// You must have the `apigee.environments.getIamPolicy` permission to
24861// call this API.
24862//
24863// - resource: REQUIRED: The resource for which the policy is being
24864//   requested. See the operation documentation for the appropriate
24865//   value for this field.
24866func (r *OrganizationsEnvironmentsService) GetIamPolicy(resource string) *OrganizationsEnvironmentsGetIamPolicyCall {
24867	c := &OrganizationsEnvironmentsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24868	c.resource = resource
24869	return c
24870}
24871
24872// OptionsRequestedPolicyVersion sets the optional parameter
24873// "options.requestedPolicyVersion": The policy format version to be
24874// returned. Valid values are 0, 1, and 3. Requests specifying an
24875// invalid value will be rejected. Requests for policies with any
24876// conditional bindings must specify version 3. Policies without any
24877// conditional bindings may specify any valid value or leave the field
24878// unset. To learn which resources support conditions in their IAM
24879// policies, see the IAM documentation
24880// (https://cloud.google.com/iam/help/conditions/resource-policies).
24881func (c *OrganizationsEnvironmentsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *OrganizationsEnvironmentsGetIamPolicyCall {
24882	c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
24883	return c
24884}
24885
24886// Fields allows partial responses to be retrieved. See
24887// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
24888// for more information.
24889func (c *OrganizationsEnvironmentsGetIamPolicyCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsGetIamPolicyCall {
24890	c.urlParams_.Set("fields", googleapi.CombineFields(s))
24891	return c
24892}
24893
24894// IfNoneMatch sets the optional parameter which makes the operation
24895// fail if the object's ETag matches the given value. This is useful for
24896// getting updates only after the object has changed since the last
24897// request. Use googleapi.IsNotModified to check whether the response
24898// error from Do is the result of In-None-Match.
24899func (c *OrganizationsEnvironmentsGetIamPolicyCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsGetIamPolicyCall {
24900	c.ifNoneMatch_ = entityTag
24901	return c
24902}
24903
24904// Context sets the context to be used in this call's Do method. Any
24905// pending HTTP request will be aborted if the provided context is
24906// canceled.
24907func (c *OrganizationsEnvironmentsGetIamPolicyCall) Context(ctx context.Context) *OrganizationsEnvironmentsGetIamPolicyCall {
24908	c.ctx_ = ctx
24909	return c
24910}
24911
24912// Header returns an http.Header that can be modified by the caller to
24913// add HTTP headers to the request.
24914func (c *OrganizationsEnvironmentsGetIamPolicyCall) Header() http.Header {
24915	if c.header_ == nil {
24916		c.header_ = make(http.Header)
24917	}
24918	return c.header_
24919}
24920
24921func (c *OrganizationsEnvironmentsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
24922	reqHeaders := make(http.Header)
24923	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
24924	for k, v := range c.header_ {
24925		reqHeaders[k] = v
24926	}
24927	reqHeaders.Set("User-Agent", c.s.userAgent())
24928	if c.ifNoneMatch_ != "" {
24929		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24930	}
24931	var body io.Reader = nil
24932	c.urlParams_.Set("alt", alt)
24933	c.urlParams_.Set("prettyPrint", "false")
24934	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
24935	urls += "?" + c.urlParams_.Encode()
24936	req, err := http.NewRequest("GET", urls, body)
24937	if err != nil {
24938		return nil, err
24939	}
24940	req.Header = reqHeaders
24941	googleapi.Expand(req.URL, map[string]string{
24942		"resource": c.resource,
24943	})
24944	return gensupport.SendRequest(c.ctx_, c.s.client, req)
24945}
24946
24947// Do executes the "apigee.organizations.environments.getIamPolicy" call.
24948// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any
24949// non-2xx status code is an error. Response headers are in either
24950// *GoogleIamV1Policy.ServerResponse.Header or (if a response was
24951// returned at all) in error.(*googleapi.Error).Header. Use
24952// googleapi.IsNotModified to check whether the returned error was
24953// because http.StatusNotModified was returned.
24954func (c *OrganizationsEnvironmentsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
24955	gensupport.SetOptions(c.urlParams_, opts...)
24956	res, err := c.doRequest("json")
24957	if res != nil && res.StatusCode == http.StatusNotModified {
24958		if res.Body != nil {
24959			res.Body.Close()
24960		}
24961		return nil, &googleapi.Error{
24962			Code:   res.StatusCode,
24963			Header: res.Header,
24964		}
24965	}
24966	if err != nil {
24967		return nil, err
24968	}
24969	defer googleapi.CloseBody(res)
24970	if err := googleapi.CheckResponse(res); err != nil {
24971		return nil, err
24972	}
24973	ret := &GoogleIamV1Policy{
24974		ServerResponse: googleapi.ServerResponse{
24975			Header:         res.Header,
24976			HTTPStatusCode: res.StatusCode,
24977		},
24978	}
24979	target := &ret
24980	if err := gensupport.DecodeResponse(target, res); err != nil {
24981		return nil, err
24982	}
24983	return ret, nil
24984	// {
24985	//   "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.",
24986	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}:getIamPolicy",
24987	//   "httpMethod": "GET",
24988	//   "id": "apigee.organizations.environments.getIamPolicy",
24989	//   "parameterOrder": [
24990	//     "resource"
24991	//   ],
24992	//   "parameters": {
24993	//     "options.requestedPolicyVersion": {
24994	//       "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).",
24995	//       "format": "int32",
24996	//       "location": "query",
24997	//       "type": "integer"
24998	//     },
24999	//     "resource": {
25000	//       "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.",
25001	//       "location": "path",
25002	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
25003	//       "required": true,
25004	//       "type": "string"
25005	//     }
25006	//   },
25007	//   "path": "v1/{+resource}:getIamPolicy",
25008	//   "response": {
25009	//     "$ref": "GoogleIamV1Policy"
25010	//   },
25011	//   "scopes": [
25012	//     "https://www.googleapis.com/auth/cloud-platform"
25013	//   ]
25014	// }
25015
25016}
25017
25018// method id "apigee.organizations.environments.getTraceConfig":
25019
25020type OrganizationsEnvironmentsGetTraceConfigCall struct {
25021	s            *Service
25022	name         string
25023	urlParams_   gensupport.URLParams
25024	ifNoneMatch_ string
25025	ctx_         context.Context
25026	header_      http.Header
25027}
25028
25029// GetTraceConfig: Get distributed trace configuration in an
25030// environment.
25031//
25032// - name: Name of the trace configuration. Use the following structure
25033//   in your request: "organizations/*/environments/*/traceConfig".
25034func (r *OrganizationsEnvironmentsService) GetTraceConfig(name string) *OrganizationsEnvironmentsGetTraceConfigCall {
25035	c := &OrganizationsEnvironmentsGetTraceConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25036	c.name = name
25037	return c
25038}
25039
25040// Fields allows partial responses to be retrieved. See
25041// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
25042// for more information.
25043func (c *OrganizationsEnvironmentsGetTraceConfigCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsGetTraceConfigCall {
25044	c.urlParams_.Set("fields", googleapi.CombineFields(s))
25045	return c
25046}
25047
25048// IfNoneMatch sets the optional parameter which makes the operation
25049// fail if the object's ETag matches the given value. This is useful for
25050// getting updates only after the object has changed since the last
25051// request. Use googleapi.IsNotModified to check whether the response
25052// error from Do is the result of In-None-Match.
25053func (c *OrganizationsEnvironmentsGetTraceConfigCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsGetTraceConfigCall {
25054	c.ifNoneMatch_ = entityTag
25055	return c
25056}
25057
25058// Context sets the context to be used in this call's Do method. Any
25059// pending HTTP request will be aborted if the provided context is
25060// canceled.
25061func (c *OrganizationsEnvironmentsGetTraceConfigCall) Context(ctx context.Context) *OrganizationsEnvironmentsGetTraceConfigCall {
25062	c.ctx_ = ctx
25063	return c
25064}
25065
25066// Header returns an http.Header that can be modified by the caller to
25067// add HTTP headers to the request.
25068func (c *OrganizationsEnvironmentsGetTraceConfigCall) Header() http.Header {
25069	if c.header_ == nil {
25070		c.header_ = make(http.Header)
25071	}
25072	return c.header_
25073}
25074
25075func (c *OrganizationsEnvironmentsGetTraceConfigCall) doRequest(alt string) (*http.Response, error) {
25076	reqHeaders := make(http.Header)
25077	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
25078	for k, v := range c.header_ {
25079		reqHeaders[k] = v
25080	}
25081	reqHeaders.Set("User-Agent", c.s.userAgent())
25082	if c.ifNoneMatch_ != "" {
25083		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25084	}
25085	var body io.Reader = nil
25086	c.urlParams_.Set("alt", alt)
25087	c.urlParams_.Set("prettyPrint", "false")
25088	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
25089	urls += "?" + c.urlParams_.Encode()
25090	req, err := http.NewRequest("GET", urls, body)
25091	if err != nil {
25092		return nil, err
25093	}
25094	req.Header = reqHeaders
25095	googleapi.Expand(req.URL, map[string]string{
25096		"name": c.name,
25097	})
25098	return gensupport.SendRequest(c.ctx_, c.s.client, req)
25099}
25100
25101// Do executes the "apigee.organizations.environments.getTraceConfig" call.
25102// Exactly one of *GoogleCloudApigeeV1TraceConfig or error will be
25103// non-nil. Any non-2xx status code is an error. Response headers are in
25104// either *GoogleCloudApigeeV1TraceConfig.ServerResponse.Header or (if a
25105// response was returned at all) in error.(*googleapi.Error).Header. Use
25106// googleapi.IsNotModified to check whether the returned error was
25107// because http.StatusNotModified was returned.
25108func (c *OrganizationsEnvironmentsGetTraceConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TraceConfig, error) {
25109	gensupport.SetOptions(c.urlParams_, opts...)
25110	res, err := c.doRequest("json")
25111	if res != nil && res.StatusCode == http.StatusNotModified {
25112		if res.Body != nil {
25113			res.Body.Close()
25114		}
25115		return nil, &googleapi.Error{
25116			Code:   res.StatusCode,
25117			Header: res.Header,
25118		}
25119	}
25120	if err != nil {
25121		return nil, err
25122	}
25123	defer googleapi.CloseBody(res)
25124	if err := googleapi.CheckResponse(res); err != nil {
25125		return nil, err
25126	}
25127	ret := &GoogleCloudApigeeV1TraceConfig{
25128		ServerResponse: googleapi.ServerResponse{
25129			Header:         res.Header,
25130			HTTPStatusCode: res.StatusCode,
25131		},
25132	}
25133	target := &ret
25134	if err := gensupport.DecodeResponse(target, res); err != nil {
25135		return nil, err
25136	}
25137	return ret, nil
25138	// {
25139	//   "description": "Get distributed trace configuration in an environment.",
25140	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/traceConfig",
25141	//   "httpMethod": "GET",
25142	//   "id": "apigee.organizations.environments.getTraceConfig",
25143	//   "parameterOrder": [
25144	//     "name"
25145	//   ],
25146	//   "parameters": {
25147	//     "name": {
25148	//       "description": "Required. Name of the trace configuration. Use the following structure in your request: \"organizations/*/environments/*/traceConfig\".",
25149	//       "location": "path",
25150	//       "pattern": "^organizations/[^/]+/environments/[^/]+/traceConfig$",
25151	//       "required": true,
25152	//       "type": "string"
25153	//     }
25154	//   },
25155	//   "path": "v1/{+name}",
25156	//   "response": {
25157	//     "$ref": "GoogleCloudApigeeV1TraceConfig"
25158	//   },
25159	//   "scopes": [
25160	//     "https://www.googleapis.com/auth/cloud-platform"
25161	//   ]
25162	// }
25163
25164}
25165
25166// method id "apigee.organizations.environments.setIamPolicy":
25167
25168type OrganizationsEnvironmentsSetIamPolicyCall struct {
25169	s                              *Service
25170	resource                       string
25171	googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest
25172	urlParams_                     gensupport.URLParams
25173	ctx_                           context.Context
25174	header_                        http.Header
25175}
25176
25177// SetIamPolicy: Sets the IAM policy on an environment, if the policy
25178// already exists it will be replaced. For more information, see Manage
25179// users, roles, and permissions using the API
25180// (https://cloud.google.com/apigee/docs/api-platform/system-administration/manage-users-roles).
25181// You must have the `apigee.environments.setIamPolicy` permission to
25182// call this API.
25183//
25184// - resource: REQUIRED: The resource for which the policy is being
25185//   specified. See the operation documentation for the appropriate
25186//   value for this field.
25187func (r *OrganizationsEnvironmentsService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *OrganizationsEnvironmentsSetIamPolicyCall {
25188	c := &OrganizationsEnvironmentsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25189	c.resource = resource
25190	c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest
25191	return c
25192}
25193
25194// Fields allows partial responses to be retrieved. See
25195// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
25196// for more information.
25197func (c *OrganizationsEnvironmentsSetIamPolicyCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSetIamPolicyCall {
25198	c.urlParams_.Set("fields", googleapi.CombineFields(s))
25199	return c
25200}
25201
25202// Context sets the context to be used in this call's Do method. Any
25203// pending HTTP request will be aborted if the provided context is
25204// canceled.
25205func (c *OrganizationsEnvironmentsSetIamPolicyCall) Context(ctx context.Context) *OrganizationsEnvironmentsSetIamPolicyCall {
25206	c.ctx_ = ctx
25207	return c
25208}
25209
25210// Header returns an http.Header that can be modified by the caller to
25211// add HTTP headers to the request.
25212func (c *OrganizationsEnvironmentsSetIamPolicyCall) Header() http.Header {
25213	if c.header_ == nil {
25214		c.header_ = make(http.Header)
25215	}
25216	return c.header_
25217}
25218
25219func (c *OrganizationsEnvironmentsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
25220	reqHeaders := make(http.Header)
25221	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
25222	for k, v := range c.header_ {
25223		reqHeaders[k] = v
25224	}
25225	reqHeaders.Set("User-Agent", c.s.userAgent())
25226	var body io.Reader = nil
25227	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest)
25228	if err != nil {
25229		return nil, err
25230	}
25231	reqHeaders.Set("Content-Type", "application/json")
25232	c.urlParams_.Set("alt", alt)
25233	c.urlParams_.Set("prettyPrint", "false")
25234	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
25235	urls += "?" + c.urlParams_.Encode()
25236	req, err := http.NewRequest("POST", urls, body)
25237	if err != nil {
25238		return nil, err
25239	}
25240	req.Header = reqHeaders
25241	googleapi.Expand(req.URL, map[string]string{
25242		"resource": c.resource,
25243	})
25244	return gensupport.SendRequest(c.ctx_, c.s.client, req)
25245}
25246
25247// Do executes the "apigee.organizations.environments.setIamPolicy" call.
25248// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any
25249// non-2xx status code is an error. Response headers are in either
25250// *GoogleIamV1Policy.ServerResponse.Header or (if a response was
25251// returned at all) in error.(*googleapi.Error).Header. Use
25252// googleapi.IsNotModified to check whether the returned error was
25253// because http.StatusNotModified was returned.
25254func (c *OrganizationsEnvironmentsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
25255	gensupport.SetOptions(c.urlParams_, opts...)
25256	res, err := c.doRequest("json")
25257	if res != nil && res.StatusCode == http.StatusNotModified {
25258		if res.Body != nil {
25259			res.Body.Close()
25260		}
25261		return nil, &googleapi.Error{
25262			Code:   res.StatusCode,
25263			Header: res.Header,
25264		}
25265	}
25266	if err != nil {
25267		return nil, err
25268	}
25269	defer googleapi.CloseBody(res)
25270	if err := googleapi.CheckResponse(res); err != nil {
25271		return nil, err
25272	}
25273	ret := &GoogleIamV1Policy{
25274		ServerResponse: googleapi.ServerResponse{
25275			Header:         res.Header,
25276			HTTPStatusCode: res.StatusCode,
25277		},
25278	}
25279	target := &ret
25280	if err := gensupport.DecodeResponse(target, res); err != nil {
25281		return nil, err
25282	}
25283	return ret, nil
25284	// {
25285	//   "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.",
25286	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}:setIamPolicy",
25287	//   "httpMethod": "POST",
25288	//   "id": "apigee.organizations.environments.setIamPolicy",
25289	//   "parameterOrder": [
25290	//     "resource"
25291	//   ],
25292	//   "parameters": {
25293	//     "resource": {
25294	//       "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.",
25295	//       "location": "path",
25296	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
25297	//       "required": true,
25298	//       "type": "string"
25299	//     }
25300	//   },
25301	//   "path": "v1/{+resource}:setIamPolicy",
25302	//   "request": {
25303	//     "$ref": "GoogleIamV1SetIamPolicyRequest"
25304	//   },
25305	//   "response": {
25306	//     "$ref": "GoogleIamV1Policy"
25307	//   },
25308	//   "scopes": [
25309	//     "https://www.googleapis.com/auth/cloud-platform"
25310	//   ]
25311	// }
25312
25313}
25314
25315// method id "apigee.organizations.environments.subscribe":
25316
25317type OrganizationsEnvironmentsSubscribeCall struct {
25318	s          *Service
25319	parent     string
25320	urlParams_ gensupport.URLParams
25321	ctx_       context.Context
25322	header_    http.Header
25323}
25324
25325// Subscribe: Creates a subscription for the environment's Pub/Sub
25326// topic. The server will assign a random name for this subscription.
25327// The "name" and "push_config" must *not* be specified.
25328//
25329// - parent: Name of the environment. Use the following structure in
25330//   your request: `organizations/{org}/environments/{env}`.
25331func (r *OrganizationsEnvironmentsService) Subscribe(parent string) *OrganizationsEnvironmentsSubscribeCall {
25332	c := &OrganizationsEnvironmentsSubscribeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25333	c.parent = parent
25334	return c
25335}
25336
25337// Fields allows partial responses to be retrieved. See
25338// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
25339// for more information.
25340func (c *OrganizationsEnvironmentsSubscribeCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSubscribeCall {
25341	c.urlParams_.Set("fields", googleapi.CombineFields(s))
25342	return c
25343}
25344
25345// Context sets the context to be used in this call's Do method. Any
25346// pending HTTP request will be aborted if the provided context is
25347// canceled.
25348func (c *OrganizationsEnvironmentsSubscribeCall) Context(ctx context.Context) *OrganizationsEnvironmentsSubscribeCall {
25349	c.ctx_ = ctx
25350	return c
25351}
25352
25353// Header returns an http.Header that can be modified by the caller to
25354// add HTTP headers to the request.
25355func (c *OrganizationsEnvironmentsSubscribeCall) Header() http.Header {
25356	if c.header_ == nil {
25357		c.header_ = make(http.Header)
25358	}
25359	return c.header_
25360}
25361
25362func (c *OrganizationsEnvironmentsSubscribeCall) doRequest(alt string) (*http.Response, error) {
25363	reqHeaders := make(http.Header)
25364	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
25365	for k, v := range c.header_ {
25366		reqHeaders[k] = v
25367	}
25368	reqHeaders.Set("User-Agent", c.s.userAgent())
25369	var body io.Reader = nil
25370	c.urlParams_.Set("alt", alt)
25371	c.urlParams_.Set("prettyPrint", "false")
25372	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}:subscribe")
25373	urls += "?" + c.urlParams_.Encode()
25374	req, err := http.NewRequest("POST", urls, body)
25375	if err != nil {
25376		return nil, err
25377	}
25378	req.Header = reqHeaders
25379	googleapi.Expand(req.URL, map[string]string{
25380		"parent": c.parent,
25381	})
25382	return gensupport.SendRequest(c.ctx_, c.s.client, req)
25383}
25384
25385// Do executes the "apigee.organizations.environments.subscribe" call.
25386// Exactly one of *GoogleCloudApigeeV1Subscription or error will be
25387// non-nil. Any non-2xx status code is an error. Response headers are in
25388// either *GoogleCloudApigeeV1Subscription.ServerResponse.Header or (if
25389// a response was returned at all) in error.(*googleapi.Error).Header.
25390// Use googleapi.IsNotModified to check whether the returned error was
25391// because http.StatusNotModified was returned.
25392func (c *OrganizationsEnvironmentsSubscribeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Subscription, error) {
25393	gensupport.SetOptions(c.urlParams_, opts...)
25394	res, err := c.doRequest("json")
25395	if res != nil && res.StatusCode == http.StatusNotModified {
25396		if res.Body != nil {
25397			res.Body.Close()
25398		}
25399		return nil, &googleapi.Error{
25400			Code:   res.StatusCode,
25401			Header: res.Header,
25402		}
25403	}
25404	if err != nil {
25405		return nil, err
25406	}
25407	defer googleapi.CloseBody(res)
25408	if err := googleapi.CheckResponse(res); err != nil {
25409		return nil, err
25410	}
25411	ret := &GoogleCloudApigeeV1Subscription{
25412		ServerResponse: googleapi.ServerResponse{
25413			Header:         res.Header,
25414			HTTPStatusCode: res.StatusCode,
25415		},
25416	}
25417	target := &ret
25418	if err := gensupport.DecodeResponse(target, res); err != nil {
25419		return nil, err
25420	}
25421	return ret, nil
25422	// {
25423	//   "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.",
25424	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}:subscribe",
25425	//   "httpMethod": "POST",
25426	//   "id": "apigee.organizations.environments.subscribe",
25427	//   "parameterOrder": [
25428	//     "parent"
25429	//   ],
25430	//   "parameters": {
25431	//     "parent": {
25432	//       "description": "Required. Name of the environment. Use the following structure in your request: `organizations/{org}/environments/{env}`",
25433	//       "location": "path",
25434	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
25435	//       "required": true,
25436	//       "type": "string"
25437	//     }
25438	//   },
25439	//   "path": "v1/{+parent}:subscribe",
25440	//   "response": {
25441	//     "$ref": "GoogleCloudApigeeV1Subscription"
25442	//   },
25443	//   "scopes": [
25444	//     "https://www.googleapis.com/auth/cloud-platform"
25445	//   ]
25446	// }
25447
25448}
25449
25450// method id "apigee.organizations.environments.testIamPermissions":
25451
25452type OrganizationsEnvironmentsTestIamPermissionsCall struct {
25453	s                                    *Service
25454	resource                             string
25455	googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest
25456	urlParams_                           gensupport.URLParams
25457	ctx_                                 context.Context
25458	header_                              http.Header
25459}
25460
25461// TestIamPermissions: Tests the permissions of a user on an
25462// environment, and returns a subset of permissions that the user has on
25463// the environment. If the environment does not exist, an empty
25464// permission set is returned (a NOT_FOUND error is not returned).
25465//
25466// - resource: REQUIRED: The resource for which the policy detail is
25467//   being requested. See the operation documentation for the
25468//   appropriate value for this field.
25469func (r *OrganizationsEnvironmentsService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *OrganizationsEnvironmentsTestIamPermissionsCall {
25470	c := &OrganizationsEnvironmentsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25471	c.resource = resource
25472	c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest
25473	return c
25474}
25475
25476// Fields allows partial responses to be retrieved. See
25477// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
25478// for more information.
25479func (c *OrganizationsEnvironmentsTestIamPermissionsCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTestIamPermissionsCall {
25480	c.urlParams_.Set("fields", googleapi.CombineFields(s))
25481	return c
25482}
25483
25484// Context sets the context to be used in this call's Do method. Any
25485// pending HTTP request will be aborted if the provided context is
25486// canceled.
25487func (c *OrganizationsEnvironmentsTestIamPermissionsCall) Context(ctx context.Context) *OrganizationsEnvironmentsTestIamPermissionsCall {
25488	c.ctx_ = ctx
25489	return c
25490}
25491
25492// Header returns an http.Header that can be modified by the caller to
25493// add HTTP headers to the request.
25494func (c *OrganizationsEnvironmentsTestIamPermissionsCall) Header() http.Header {
25495	if c.header_ == nil {
25496		c.header_ = make(http.Header)
25497	}
25498	return c.header_
25499}
25500
25501func (c *OrganizationsEnvironmentsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
25502	reqHeaders := make(http.Header)
25503	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
25504	for k, v := range c.header_ {
25505		reqHeaders[k] = v
25506	}
25507	reqHeaders.Set("User-Agent", c.s.userAgent())
25508	var body io.Reader = nil
25509	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest)
25510	if err != nil {
25511		return nil, err
25512	}
25513	reqHeaders.Set("Content-Type", "application/json")
25514	c.urlParams_.Set("alt", alt)
25515	c.urlParams_.Set("prettyPrint", "false")
25516	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
25517	urls += "?" + c.urlParams_.Encode()
25518	req, err := http.NewRequest("POST", urls, body)
25519	if err != nil {
25520		return nil, err
25521	}
25522	req.Header = reqHeaders
25523	googleapi.Expand(req.URL, map[string]string{
25524		"resource": c.resource,
25525	})
25526	return gensupport.SendRequest(c.ctx_, c.s.client, req)
25527}
25528
25529// Do executes the "apigee.organizations.environments.testIamPermissions" call.
25530// Exactly one of *GoogleIamV1TestIamPermissionsResponse or error will
25531// be non-nil. Any non-2xx status code is an error. Response headers are
25532// in either
25533// *GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if a
25534// response was returned at all) in error.(*googleapi.Error).Header. Use
25535// googleapi.IsNotModified to check whether the returned error was
25536// because http.StatusNotModified was returned.
25537func (c *OrganizationsEnvironmentsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) {
25538	gensupport.SetOptions(c.urlParams_, opts...)
25539	res, err := c.doRequest("json")
25540	if res != nil && res.StatusCode == http.StatusNotModified {
25541		if res.Body != nil {
25542			res.Body.Close()
25543		}
25544		return nil, &googleapi.Error{
25545			Code:   res.StatusCode,
25546			Header: res.Header,
25547		}
25548	}
25549	if err != nil {
25550		return nil, err
25551	}
25552	defer googleapi.CloseBody(res)
25553	if err := googleapi.CheckResponse(res); err != nil {
25554		return nil, err
25555	}
25556	ret := &GoogleIamV1TestIamPermissionsResponse{
25557		ServerResponse: googleapi.ServerResponse{
25558			Header:         res.Header,
25559			HTTPStatusCode: res.StatusCode,
25560		},
25561	}
25562	target := &ret
25563	if err := gensupport.DecodeResponse(target, res); err != nil {
25564		return nil, err
25565	}
25566	return ret, nil
25567	// {
25568	//   "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).",
25569	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}:testIamPermissions",
25570	//   "httpMethod": "POST",
25571	//   "id": "apigee.organizations.environments.testIamPermissions",
25572	//   "parameterOrder": [
25573	//     "resource"
25574	//   ],
25575	//   "parameters": {
25576	//     "resource": {
25577	//       "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.",
25578	//       "location": "path",
25579	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
25580	//       "required": true,
25581	//       "type": "string"
25582	//     }
25583	//   },
25584	//   "path": "v1/{+resource}:testIamPermissions",
25585	//   "request": {
25586	//     "$ref": "GoogleIamV1TestIamPermissionsRequest"
25587	//   },
25588	//   "response": {
25589	//     "$ref": "GoogleIamV1TestIamPermissionsResponse"
25590	//   },
25591	//   "scopes": [
25592	//     "https://www.googleapis.com/auth/cloud-platform"
25593	//   ]
25594	// }
25595
25596}
25597
25598// method id "apigee.organizations.environments.unsubscribe":
25599
25600type OrganizationsEnvironmentsUnsubscribeCall struct {
25601	s                               *Service
25602	parent                          string
25603	googlecloudapigeev1subscription *GoogleCloudApigeeV1Subscription
25604	urlParams_                      gensupport.URLParams
25605	ctx_                            context.Context
25606	header_                         http.Header
25607}
25608
25609// Unsubscribe: Deletes a subscription for the environment's Pub/Sub
25610// topic.
25611//
25612// - parent: Name of the environment. Use the following structure in
25613//   your request: `organizations/{org}/environments/{env}`.
25614func (r *OrganizationsEnvironmentsService) Unsubscribe(parent string, googlecloudapigeev1subscription *GoogleCloudApigeeV1Subscription) *OrganizationsEnvironmentsUnsubscribeCall {
25615	c := &OrganizationsEnvironmentsUnsubscribeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25616	c.parent = parent
25617	c.googlecloudapigeev1subscription = googlecloudapigeev1subscription
25618	return c
25619}
25620
25621// Fields allows partial responses to be retrieved. See
25622// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
25623// for more information.
25624func (c *OrganizationsEnvironmentsUnsubscribeCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsUnsubscribeCall {
25625	c.urlParams_.Set("fields", googleapi.CombineFields(s))
25626	return c
25627}
25628
25629// Context sets the context to be used in this call's Do method. Any
25630// pending HTTP request will be aborted if the provided context is
25631// canceled.
25632func (c *OrganizationsEnvironmentsUnsubscribeCall) Context(ctx context.Context) *OrganizationsEnvironmentsUnsubscribeCall {
25633	c.ctx_ = ctx
25634	return c
25635}
25636
25637// Header returns an http.Header that can be modified by the caller to
25638// add HTTP headers to the request.
25639func (c *OrganizationsEnvironmentsUnsubscribeCall) Header() http.Header {
25640	if c.header_ == nil {
25641		c.header_ = make(http.Header)
25642	}
25643	return c.header_
25644}
25645
25646func (c *OrganizationsEnvironmentsUnsubscribeCall) doRequest(alt string) (*http.Response, error) {
25647	reqHeaders := make(http.Header)
25648	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
25649	for k, v := range c.header_ {
25650		reqHeaders[k] = v
25651	}
25652	reqHeaders.Set("User-Agent", c.s.userAgent())
25653	var body io.Reader = nil
25654	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1subscription)
25655	if err != nil {
25656		return nil, err
25657	}
25658	reqHeaders.Set("Content-Type", "application/json")
25659	c.urlParams_.Set("alt", alt)
25660	c.urlParams_.Set("prettyPrint", "false")
25661	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}:unsubscribe")
25662	urls += "?" + c.urlParams_.Encode()
25663	req, err := http.NewRequest("POST", urls, body)
25664	if err != nil {
25665		return nil, err
25666	}
25667	req.Header = reqHeaders
25668	googleapi.Expand(req.URL, map[string]string{
25669		"parent": c.parent,
25670	})
25671	return gensupport.SendRequest(c.ctx_, c.s.client, req)
25672}
25673
25674// Do executes the "apigee.organizations.environments.unsubscribe" call.
25675// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
25676// non-2xx status code is an error. Response headers are in either
25677// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
25678// returned at all) in error.(*googleapi.Error).Header. Use
25679// googleapi.IsNotModified to check whether the returned error was
25680// because http.StatusNotModified was returned.
25681func (c *OrganizationsEnvironmentsUnsubscribeCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
25682	gensupport.SetOptions(c.urlParams_, opts...)
25683	res, err := c.doRequest("json")
25684	if res != nil && res.StatusCode == http.StatusNotModified {
25685		if res.Body != nil {
25686			res.Body.Close()
25687		}
25688		return nil, &googleapi.Error{
25689			Code:   res.StatusCode,
25690			Header: res.Header,
25691		}
25692	}
25693	if err != nil {
25694		return nil, err
25695	}
25696	defer googleapi.CloseBody(res)
25697	if err := googleapi.CheckResponse(res); err != nil {
25698		return nil, err
25699	}
25700	ret := &GoogleProtobufEmpty{
25701		ServerResponse: googleapi.ServerResponse{
25702			Header:         res.Header,
25703			HTTPStatusCode: res.StatusCode,
25704		},
25705	}
25706	target := &ret
25707	if err := gensupport.DecodeResponse(target, res); err != nil {
25708		return nil, err
25709	}
25710	return ret, nil
25711	// {
25712	//   "description": "Deletes a subscription for the environment's Pub/Sub topic.",
25713	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}:unsubscribe",
25714	//   "httpMethod": "POST",
25715	//   "id": "apigee.organizations.environments.unsubscribe",
25716	//   "parameterOrder": [
25717	//     "parent"
25718	//   ],
25719	//   "parameters": {
25720	//     "parent": {
25721	//       "description": "Required. Name of the environment. Use the following structure in your request: `organizations/{org}/environments/{env}`",
25722	//       "location": "path",
25723	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
25724	//       "required": true,
25725	//       "type": "string"
25726	//     }
25727	//   },
25728	//   "path": "v1/{+parent}:unsubscribe",
25729	//   "request": {
25730	//     "$ref": "GoogleCloudApigeeV1Subscription"
25731	//   },
25732	//   "response": {
25733	//     "$ref": "GoogleProtobufEmpty"
25734	//   },
25735	//   "scopes": [
25736	//     "https://www.googleapis.com/auth/cloud-platform"
25737	//   ]
25738	// }
25739
25740}
25741
25742// method id "apigee.organizations.environments.update":
25743
25744type OrganizationsEnvironmentsUpdateCall struct {
25745	s                              *Service
25746	name                           string
25747	googlecloudapigeev1environment *GoogleCloudApigeeV1Environment
25748	urlParams_                     gensupport.URLParams
25749	ctx_                           context.Context
25750	header_                        http.Header
25751}
25752
25753// Update: Updates an existing environment. When updating properties,
25754// you must pass all existing properties to the API, even if they are
25755// not being changed. If you omit properties from the payload, the
25756// properties are removed. To get the current list of properties for the
25757// environment, use the Get Environment API (get).
25758//
25759// - name: Name of the environment. Use the following structure in your
25760//   request: `organizations/{org}/environments/{env}`.
25761func (r *OrganizationsEnvironmentsService) Update(name string, googlecloudapigeev1environment *GoogleCloudApigeeV1Environment) *OrganizationsEnvironmentsUpdateCall {
25762	c := &OrganizationsEnvironmentsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25763	c.name = name
25764	c.googlecloudapigeev1environment = googlecloudapigeev1environment
25765	return c
25766}
25767
25768// Fields allows partial responses to be retrieved. See
25769// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
25770// for more information.
25771func (c *OrganizationsEnvironmentsUpdateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsUpdateCall {
25772	c.urlParams_.Set("fields", googleapi.CombineFields(s))
25773	return c
25774}
25775
25776// Context sets the context to be used in this call's Do method. Any
25777// pending HTTP request will be aborted if the provided context is
25778// canceled.
25779func (c *OrganizationsEnvironmentsUpdateCall) Context(ctx context.Context) *OrganizationsEnvironmentsUpdateCall {
25780	c.ctx_ = ctx
25781	return c
25782}
25783
25784// Header returns an http.Header that can be modified by the caller to
25785// add HTTP headers to the request.
25786func (c *OrganizationsEnvironmentsUpdateCall) Header() http.Header {
25787	if c.header_ == nil {
25788		c.header_ = make(http.Header)
25789	}
25790	return c.header_
25791}
25792
25793func (c *OrganizationsEnvironmentsUpdateCall) doRequest(alt string) (*http.Response, error) {
25794	reqHeaders := make(http.Header)
25795	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
25796	for k, v := range c.header_ {
25797		reqHeaders[k] = v
25798	}
25799	reqHeaders.Set("User-Agent", c.s.userAgent())
25800	var body io.Reader = nil
25801	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1environment)
25802	if err != nil {
25803		return nil, err
25804	}
25805	reqHeaders.Set("Content-Type", "application/json")
25806	c.urlParams_.Set("alt", alt)
25807	c.urlParams_.Set("prettyPrint", "false")
25808	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
25809	urls += "?" + c.urlParams_.Encode()
25810	req, err := http.NewRequest("PUT", urls, body)
25811	if err != nil {
25812		return nil, err
25813	}
25814	req.Header = reqHeaders
25815	googleapi.Expand(req.URL, map[string]string{
25816		"name": c.name,
25817	})
25818	return gensupport.SendRequest(c.ctx_, c.s.client, req)
25819}
25820
25821// Do executes the "apigee.organizations.environments.update" call.
25822// Exactly one of *GoogleCloudApigeeV1Environment or error will be
25823// non-nil. Any non-2xx status code is an error. Response headers are in
25824// either *GoogleCloudApigeeV1Environment.ServerResponse.Header or (if a
25825// response was returned at all) in error.(*googleapi.Error).Header. Use
25826// googleapi.IsNotModified to check whether the returned error was
25827// because http.StatusNotModified was returned.
25828func (c *OrganizationsEnvironmentsUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Environment, error) {
25829	gensupport.SetOptions(c.urlParams_, opts...)
25830	res, err := c.doRequest("json")
25831	if res != nil && res.StatusCode == http.StatusNotModified {
25832		if res.Body != nil {
25833			res.Body.Close()
25834		}
25835		return nil, &googleapi.Error{
25836			Code:   res.StatusCode,
25837			Header: res.Header,
25838		}
25839	}
25840	if err != nil {
25841		return nil, err
25842	}
25843	defer googleapi.CloseBody(res)
25844	if err := googleapi.CheckResponse(res); err != nil {
25845		return nil, err
25846	}
25847	ret := &GoogleCloudApigeeV1Environment{
25848		ServerResponse: googleapi.ServerResponse{
25849			Header:         res.Header,
25850			HTTPStatusCode: res.StatusCode,
25851		},
25852	}
25853	target := &ret
25854	if err := gensupport.DecodeResponse(target, res); err != nil {
25855		return nil, err
25856	}
25857	return ret, nil
25858	// {
25859	//   "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).",
25860	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}",
25861	//   "httpMethod": "PUT",
25862	//   "id": "apigee.organizations.environments.update",
25863	//   "parameterOrder": [
25864	//     "name"
25865	//   ],
25866	//   "parameters": {
25867	//     "name": {
25868	//       "description": "Required. Name of the environment. Use the following structure in your request: `organizations/{org}/environments/{env}`",
25869	//       "location": "path",
25870	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
25871	//       "required": true,
25872	//       "type": "string"
25873	//     }
25874	//   },
25875	//   "path": "v1/{+name}",
25876	//   "request": {
25877	//     "$ref": "GoogleCloudApigeeV1Environment"
25878	//   },
25879	//   "response": {
25880	//     "$ref": "GoogleCloudApigeeV1Environment"
25881	//   },
25882	//   "scopes": [
25883	//     "https://www.googleapis.com/auth/cloud-platform"
25884	//   ]
25885	// }
25886
25887}
25888
25889// method id "apigee.organizations.environments.updateDebugmask":
25890
25891type OrganizationsEnvironmentsUpdateDebugmaskCall struct {
25892	s                            *Service
25893	name                         string
25894	googlecloudapigeev1debugmask *GoogleCloudApigeeV1DebugMask
25895	urlParams_                   gensupport.URLParams
25896	ctx_                         context.Context
25897	header_                      http.Header
25898}
25899
25900// UpdateDebugmask: Updates the debug mask singleton resource for an
25901// environment.
25902//
25903// - name: Name of the debug mask.
25904func (r *OrganizationsEnvironmentsService) UpdateDebugmask(name string, googlecloudapigeev1debugmask *GoogleCloudApigeeV1DebugMask) *OrganizationsEnvironmentsUpdateDebugmaskCall {
25905	c := &OrganizationsEnvironmentsUpdateDebugmaskCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25906	c.name = name
25907	c.googlecloudapigeev1debugmask = googlecloudapigeev1debugmask
25908	return c
25909}
25910
25911// ReplaceRepeatedFields sets the optional parameter
25912// "replaceRepeatedFields": Boolean flag that specifies whether to
25913// replace existing values in the debug mask when doing an update. Set
25914// to true to replace existing values. The default behavior is to append
25915// the values (false).
25916func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) ReplaceRepeatedFields(replaceRepeatedFields bool) *OrganizationsEnvironmentsUpdateDebugmaskCall {
25917	c.urlParams_.Set("replaceRepeatedFields", fmt.Sprint(replaceRepeatedFields))
25918	return c
25919}
25920
25921// UpdateMask sets the optional parameter "updateMask": Field debug mask
25922// to support partial updates.
25923func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) UpdateMask(updateMask string) *OrganizationsEnvironmentsUpdateDebugmaskCall {
25924	c.urlParams_.Set("updateMask", updateMask)
25925	return c
25926}
25927
25928// Fields allows partial responses to be retrieved. See
25929// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
25930// for more information.
25931func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsUpdateDebugmaskCall {
25932	c.urlParams_.Set("fields", googleapi.CombineFields(s))
25933	return c
25934}
25935
25936// Context sets the context to be used in this call's Do method. Any
25937// pending HTTP request will be aborted if the provided context is
25938// canceled.
25939func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) Context(ctx context.Context) *OrganizationsEnvironmentsUpdateDebugmaskCall {
25940	c.ctx_ = ctx
25941	return c
25942}
25943
25944// Header returns an http.Header that can be modified by the caller to
25945// add HTTP headers to the request.
25946func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) Header() http.Header {
25947	if c.header_ == nil {
25948		c.header_ = make(http.Header)
25949	}
25950	return c.header_
25951}
25952
25953func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) doRequest(alt string) (*http.Response, error) {
25954	reqHeaders := make(http.Header)
25955	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
25956	for k, v := range c.header_ {
25957		reqHeaders[k] = v
25958	}
25959	reqHeaders.Set("User-Agent", c.s.userAgent())
25960	var body io.Reader = nil
25961	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1debugmask)
25962	if err != nil {
25963		return nil, err
25964	}
25965	reqHeaders.Set("Content-Type", "application/json")
25966	c.urlParams_.Set("alt", alt)
25967	c.urlParams_.Set("prettyPrint", "false")
25968	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
25969	urls += "?" + c.urlParams_.Encode()
25970	req, err := http.NewRequest("PATCH", urls, body)
25971	if err != nil {
25972		return nil, err
25973	}
25974	req.Header = reqHeaders
25975	googleapi.Expand(req.URL, map[string]string{
25976		"name": c.name,
25977	})
25978	return gensupport.SendRequest(c.ctx_, c.s.client, req)
25979}
25980
25981// Do executes the "apigee.organizations.environments.updateDebugmask" call.
25982// Exactly one of *GoogleCloudApigeeV1DebugMask or error will be
25983// non-nil. Any non-2xx status code is an error. Response headers are in
25984// either *GoogleCloudApigeeV1DebugMask.ServerResponse.Header or (if a
25985// response was returned at all) in error.(*googleapi.Error).Header. Use
25986// googleapi.IsNotModified to check whether the returned error was
25987// because http.StatusNotModified was returned.
25988func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DebugMask, error) {
25989	gensupport.SetOptions(c.urlParams_, opts...)
25990	res, err := c.doRequest("json")
25991	if res != nil && res.StatusCode == http.StatusNotModified {
25992		if res.Body != nil {
25993			res.Body.Close()
25994		}
25995		return nil, &googleapi.Error{
25996			Code:   res.StatusCode,
25997			Header: res.Header,
25998		}
25999	}
26000	if err != nil {
26001		return nil, err
26002	}
26003	defer googleapi.CloseBody(res)
26004	if err := googleapi.CheckResponse(res); err != nil {
26005		return nil, err
26006	}
26007	ret := &GoogleCloudApigeeV1DebugMask{
26008		ServerResponse: googleapi.ServerResponse{
26009			Header:         res.Header,
26010			HTTPStatusCode: res.StatusCode,
26011		},
26012	}
26013	target := &ret
26014	if err := gensupport.DecodeResponse(target, res); err != nil {
26015		return nil, err
26016	}
26017	return ret, nil
26018	// {
26019	//   "description": "Updates the debug mask singleton resource for an environment.",
26020	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/debugmask",
26021	//   "httpMethod": "PATCH",
26022	//   "id": "apigee.organizations.environments.updateDebugmask",
26023	//   "parameterOrder": [
26024	//     "name"
26025	//   ],
26026	//   "parameters": {
26027	//     "name": {
26028	//       "description": "Name of the debug mask.",
26029	//       "location": "path",
26030	//       "pattern": "^organizations/[^/]+/environments/[^/]+/debugmask$",
26031	//       "required": true,
26032	//       "type": "string"
26033	//     },
26034	//     "replaceRepeatedFields": {
26035	//       "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).",
26036	//       "location": "query",
26037	//       "type": "boolean"
26038	//     },
26039	//     "updateMask": {
26040	//       "description": "Field debug mask to support partial updates.",
26041	//       "format": "google-fieldmask",
26042	//       "location": "query",
26043	//       "type": "string"
26044	//     }
26045	//   },
26046	//   "path": "v1/{+name}",
26047	//   "request": {
26048	//     "$ref": "GoogleCloudApigeeV1DebugMask"
26049	//   },
26050	//   "response": {
26051	//     "$ref": "GoogleCloudApigeeV1DebugMask"
26052	//   },
26053	//   "scopes": [
26054	//     "https://www.googleapis.com/auth/cloud-platform"
26055	//   ]
26056	// }
26057
26058}
26059
26060// method id "apigee.organizations.environments.updateEnvironment":
26061
26062type OrganizationsEnvironmentsUpdateEnvironmentCall struct {
26063	s                              *Service
26064	name                           string
26065	googlecloudapigeev1environment *GoogleCloudApigeeV1Environment
26066	urlParams_                     gensupport.URLParams
26067	ctx_                           context.Context
26068	header_                        http.Header
26069}
26070
26071// UpdateEnvironment: Updates an existing environment. When updating
26072// properties, you must pass all existing properties to the API, even if
26073// they are not being changed. If you omit properties from the payload,
26074// the properties are removed. To get the current list of properties for
26075// the environment, use the Get Environment API (get).
26076//
26077// - name: Name of the environment. Use the following structure in your
26078//   request: `organizations/{org}/environments/{env}`.
26079func (r *OrganizationsEnvironmentsService) UpdateEnvironment(name string, googlecloudapigeev1environment *GoogleCloudApigeeV1Environment) *OrganizationsEnvironmentsUpdateEnvironmentCall {
26080	c := &OrganizationsEnvironmentsUpdateEnvironmentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26081	c.name = name
26082	c.googlecloudapigeev1environment = googlecloudapigeev1environment
26083	return c
26084}
26085
26086// Fields allows partial responses to be retrieved. See
26087// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
26088// for more information.
26089func (c *OrganizationsEnvironmentsUpdateEnvironmentCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsUpdateEnvironmentCall {
26090	c.urlParams_.Set("fields", googleapi.CombineFields(s))
26091	return c
26092}
26093
26094// Context sets the context to be used in this call's Do method. Any
26095// pending HTTP request will be aborted if the provided context is
26096// canceled.
26097func (c *OrganizationsEnvironmentsUpdateEnvironmentCall) Context(ctx context.Context) *OrganizationsEnvironmentsUpdateEnvironmentCall {
26098	c.ctx_ = ctx
26099	return c
26100}
26101
26102// Header returns an http.Header that can be modified by the caller to
26103// add HTTP headers to the request.
26104func (c *OrganizationsEnvironmentsUpdateEnvironmentCall) Header() http.Header {
26105	if c.header_ == nil {
26106		c.header_ = make(http.Header)
26107	}
26108	return c.header_
26109}
26110
26111func (c *OrganizationsEnvironmentsUpdateEnvironmentCall) doRequest(alt string) (*http.Response, error) {
26112	reqHeaders := make(http.Header)
26113	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
26114	for k, v := range c.header_ {
26115		reqHeaders[k] = v
26116	}
26117	reqHeaders.Set("User-Agent", c.s.userAgent())
26118	var body io.Reader = nil
26119	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1environment)
26120	if err != nil {
26121		return nil, err
26122	}
26123	reqHeaders.Set("Content-Type", "application/json")
26124	c.urlParams_.Set("alt", alt)
26125	c.urlParams_.Set("prettyPrint", "false")
26126	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
26127	urls += "?" + c.urlParams_.Encode()
26128	req, err := http.NewRequest("POST", urls, body)
26129	if err != nil {
26130		return nil, err
26131	}
26132	req.Header = reqHeaders
26133	googleapi.Expand(req.URL, map[string]string{
26134		"name": c.name,
26135	})
26136	return gensupport.SendRequest(c.ctx_, c.s.client, req)
26137}
26138
26139// Do executes the "apigee.organizations.environments.updateEnvironment" call.
26140// Exactly one of *GoogleCloudApigeeV1Environment or error will be
26141// non-nil. Any non-2xx status code is an error. Response headers are in
26142// either *GoogleCloudApigeeV1Environment.ServerResponse.Header or (if a
26143// response was returned at all) in error.(*googleapi.Error).Header. Use
26144// googleapi.IsNotModified to check whether the returned error was
26145// because http.StatusNotModified was returned.
26146func (c *OrganizationsEnvironmentsUpdateEnvironmentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Environment, error) {
26147	gensupport.SetOptions(c.urlParams_, opts...)
26148	res, err := c.doRequest("json")
26149	if res != nil && res.StatusCode == http.StatusNotModified {
26150		if res.Body != nil {
26151			res.Body.Close()
26152		}
26153		return nil, &googleapi.Error{
26154			Code:   res.StatusCode,
26155			Header: res.Header,
26156		}
26157	}
26158	if err != nil {
26159		return nil, err
26160	}
26161	defer googleapi.CloseBody(res)
26162	if err := googleapi.CheckResponse(res); err != nil {
26163		return nil, err
26164	}
26165	ret := &GoogleCloudApigeeV1Environment{
26166		ServerResponse: googleapi.ServerResponse{
26167			Header:         res.Header,
26168			HTTPStatusCode: res.StatusCode,
26169		},
26170	}
26171	target := &ret
26172	if err := gensupport.DecodeResponse(target, res); err != nil {
26173		return nil, err
26174	}
26175	return ret, nil
26176	// {
26177	//   "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).",
26178	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}",
26179	//   "httpMethod": "POST",
26180	//   "id": "apigee.organizations.environments.updateEnvironment",
26181	//   "parameterOrder": [
26182	//     "name"
26183	//   ],
26184	//   "parameters": {
26185	//     "name": {
26186	//       "description": "Required. Name of the environment. Use the following structure in your request: `organizations/{org}/environments/{env}`",
26187	//       "location": "path",
26188	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
26189	//       "required": true,
26190	//       "type": "string"
26191	//     }
26192	//   },
26193	//   "path": "v1/{+name}",
26194	//   "request": {
26195	//     "$ref": "GoogleCloudApigeeV1Environment"
26196	//   },
26197	//   "response": {
26198	//     "$ref": "GoogleCloudApigeeV1Environment"
26199	//   },
26200	//   "scopes": [
26201	//     "https://www.googleapis.com/auth/cloud-platform"
26202	//   ]
26203	// }
26204
26205}
26206
26207// method id "apigee.organizations.environments.updateTraceConfig":
26208
26209type OrganizationsEnvironmentsUpdateTraceConfigCall struct {
26210	s                              *Service
26211	name                           string
26212	googlecloudapigeev1traceconfig *GoogleCloudApigeeV1TraceConfig
26213	urlParams_                     gensupport.URLParams
26214	ctx_                           context.Context
26215	header_                        http.Header
26216}
26217
26218// UpdateTraceConfig: Updates the trace configurations in an
26219// environment. Note that the repeated fields have replace semantics
26220// when included in the field mask and that they will be overwritten by
26221// the value of the fields in the request body.
26222//
26223// - name: Name of the trace configuration. Use the following structure
26224//   in your request: "organizations/*/environments/*/traceConfig".
26225func (r *OrganizationsEnvironmentsService) UpdateTraceConfig(name string, googlecloudapigeev1traceconfig *GoogleCloudApigeeV1TraceConfig) *OrganizationsEnvironmentsUpdateTraceConfigCall {
26226	c := &OrganizationsEnvironmentsUpdateTraceConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26227	c.name = name
26228	c.googlecloudapigeev1traceconfig = googlecloudapigeev1traceconfig
26229	return c
26230}
26231
26232// UpdateMask sets the optional parameter "updateMask": List of fields
26233// to be updated.
26234func (c *OrganizationsEnvironmentsUpdateTraceConfigCall) UpdateMask(updateMask string) *OrganizationsEnvironmentsUpdateTraceConfigCall {
26235	c.urlParams_.Set("updateMask", updateMask)
26236	return c
26237}
26238
26239// Fields allows partial responses to be retrieved. See
26240// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
26241// for more information.
26242func (c *OrganizationsEnvironmentsUpdateTraceConfigCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsUpdateTraceConfigCall {
26243	c.urlParams_.Set("fields", googleapi.CombineFields(s))
26244	return c
26245}
26246
26247// Context sets the context to be used in this call's Do method. Any
26248// pending HTTP request will be aborted if the provided context is
26249// canceled.
26250func (c *OrganizationsEnvironmentsUpdateTraceConfigCall) Context(ctx context.Context) *OrganizationsEnvironmentsUpdateTraceConfigCall {
26251	c.ctx_ = ctx
26252	return c
26253}
26254
26255// Header returns an http.Header that can be modified by the caller to
26256// add HTTP headers to the request.
26257func (c *OrganizationsEnvironmentsUpdateTraceConfigCall) Header() http.Header {
26258	if c.header_ == nil {
26259		c.header_ = make(http.Header)
26260	}
26261	return c.header_
26262}
26263
26264func (c *OrganizationsEnvironmentsUpdateTraceConfigCall) doRequest(alt string) (*http.Response, error) {
26265	reqHeaders := make(http.Header)
26266	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
26267	for k, v := range c.header_ {
26268		reqHeaders[k] = v
26269	}
26270	reqHeaders.Set("User-Agent", c.s.userAgent())
26271	var body io.Reader = nil
26272	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1traceconfig)
26273	if err != nil {
26274		return nil, err
26275	}
26276	reqHeaders.Set("Content-Type", "application/json")
26277	c.urlParams_.Set("alt", alt)
26278	c.urlParams_.Set("prettyPrint", "false")
26279	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
26280	urls += "?" + c.urlParams_.Encode()
26281	req, err := http.NewRequest("PATCH", urls, body)
26282	if err != nil {
26283		return nil, err
26284	}
26285	req.Header = reqHeaders
26286	googleapi.Expand(req.URL, map[string]string{
26287		"name": c.name,
26288	})
26289	return gensupport.SendRequest(c.ctx_, c.s.client, req)
26290}
26291
26292// Do executes the "apigee.organizations.environments.updateTraceConfig" call.
26293// Exactly one of *GoogleCloudApigeeV1TraceConfig or error will be
26294// non-nil. Any non-2xx status code is an error. Response headers are in
26295// either *GoogleCloudApigeeV1TraceConfig.ServerResponse.Header or (if a
26296// response was returned at all) in error.(*googleapi.Error).Header. Use
26297// googleapi.IsNotModified to check whether the returned error was
26298// because http.StatusNotModified was returned.
26299func (c *OrganizationsEnvironmentsUpdateTraceConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TraceConfig, error) {
26300	gensupport.SetOptions(c.urlParams_, opts...)
26301	res, err := c.doRequest("json")
26302	if res != nil && res.StatusCode == http.StatusNotModified {
26303		if res.Body != nil {
26304			res.Body.Close()
26305		}
26306		return nil, &googleapi.Error{
26307			Code:   res.StatusCode,
26308			Header: res.Header,
26309		}
26310	}
26311	if err != nil {
26312		return nil, err
26313	}
26314	defer googleapi.CloseBody(res)
26315	if err := googleapi.CheckResponse(res); err != nil {
26316		return nil, err
26317	}
26318	ret := &GoogleCloudApigeeV1TraceConfig{
26319		ServerResponse: googleapi.ServerResponse{
26320			Header:         res.Header,
26321			HTTPStatusCode: res.StatusCode,
26322		},
26323	}
26324	target := &ret
26325	if err := gensupport.DecodeResponse(target, res); err != nil {
26326		return nil, err
26327	}
26328	return ret, nil
26329	// {
26330	//   "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.",
26331	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/traceConfig",
26332	//   "httpMethod": "PATCH",
26333	//   "id": "apigee.organizations.environments.updateTraceConfig",
26334	//   "parameterOrder": [
26335	//     "name"
26336	//   ],
26337	//   "parameters": {
26338	//     "name": {
26339	//       "description": "Required. Name of the trace configuration. Use the following structure in your request: \"organizations/*/environments/*/traceConfig\".",
26340	//       "location": "path",
26341	//       "pattern": "^organizations/[^/]+/environments/[^/]+/traceConfig$",
26342	//       "required": true,
26343	//       "type": "string"
26344	//     },
26345	//     "updateMask": {
26346	//       "description": "List of fields to be updated.",
26347	//       "format": "google-fieldmask",
26348	//       "location": "query",
26349	//       "type": "string"
26350	//     }
26351	//   },
26352	//   "path": "v1/{+name}",
26353	//   "request": {
26354	//     "$ref": "GoogleCloudApigeeV1TraceConfig"
26355	//   },
26356	//   "response": {
26357	//     "$ref": "GoogleCloudApigeeV1TraceConfig"
26358	//   },
26359	//   "scopes": [
26360	//     "https://www.googleapis.com/auth/cloud-platform"
26361	//   ]
26362	// }
26363
26364}
26365
26366// method id "apigee.organizations.environments.analytics.admin.getSchemav2":
26367
26368type OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call struct {
26369	s            *Service
26370	name         string
26371	urlParams_   gensupport.URLParams
26372	ifNoneMatch_ string
26373	ctx_         context.Context
26374	header_      http.Header
26375}
26376
26377// GetSchemav2: Gets a list of metrics and dimensions that can be used
26378// to create analytics queries and reports. Each schema element contains
26379// the name of the field, its associated type, and a flag indicating
26380// whether it is a standard or custom field.
26381//
26382// - name: Path to the schema. Use the following structure in your
26383//   request:
26384//   `organizations/{org}/environments/{env}/analytics/admin/schemav2`.
26385func (r *OrganizationsEnvironmentsAnalyticsAdminService) GetSchemav2(name string) *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call {
26386	c := &OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call{s: r.s, urlParams_: make(gensupport.URLParams)}
26387	c.name = name
26388	return c
26389}
26390
26391// DisableCache sets the optional parameter "disableCache": Flag that
26392// specifies whether the schema is be read from the database or cache.
26393// Set to `true` to read the schema from the database. Defaults to
26394// cache.
26395func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) DisableCache(disableCache bool) *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call {
26396	c.urlParams_.Set("disableCache", fmt.Sprint(disableCache))
26397	return c
26398}
26399
26400// Type sets the optional parameter "type": Required. Name of the
26401// dataset for which you want to retrieve the schema. For example:
26402// `fact` or `agg_cus1`
26403func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) Type(type_ string) *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call {
26404	c.urlParams_.Set("type", type_)
26405	return c
26406}
26407
26408// Fields allows partial responses to be retrieved. See
26409// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
26410// for more information.
26411func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call {
26412	c.urlParams_.Set("fields", googleapi.CombineFields(s))
26413	return c
26414}
26415
26416// IfNoneMatch sets the optional parameter which makes the operation
26417// fail if the object's ETag matches the given value. This is useful for
26418// getting updates only after the object has changed since the last
26419// request. Use googleapi.IsNotModified to check whether the response
26420// error from Do is the result of In-None-Match.
26421func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call {
26422	c.ifNoneMatch_ = entityTag
26423	return c
26424}
26425
26426// Context sets the context to be used in this call's Do method. Any
26427// pending HTTP request will be aborted if the provided context is
26428// canceled.
26429func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) Context(ctx context.Context) *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call {
26430	c.ctx_ = ctx
26431	return c
26432}
26433
26434// Header returns an http.Header that can be modified by the caller to
26435// add HTTP headers to the request.
26436func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) Header() http.Header {
26437	if c.header_ == nil {
26438		c.header_ = make(http.Header)
26439	}
26440	return c.header_
26441}
26442
26443func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) doRequest(alt string) (*http.Response, error) {
26444	reqHeaders := make(http.Header)
26445	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
26446	for k, v := range c.header_ {
26447		reqHeaders[k] = v
26448	}
26449	reqHeaders.Set("User-Agent", c.s.userAgent())
26450	if c.ifNoneMatch_ != "" {
26451		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
26452	}
26453	var body io.Reader = nil
26454	c.urlParams_.Set("alt", alt)
26455	c.urlParams_.Set("prettyPrint", "false")
26456	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
26457	urls += "?" + c.urlParams_.Encode()
26458	req, err := http.NewRequest("GET", urls, body)
26459	if err != nil {
26460		return nil, err
26461	}
26462	req.Header = reqHeaders
26463	googleapi.Expand(req.URL, map[string]string{
26464		"name": c.name,
26465	})
26466	return gensupport.SendRequest(c.ctx_, c.s.client, req)
26467}
26468
26469// Do executes the "apigee.organizations.environments.analytics.admin.getSchemav2" call.
26470// Exactly one of *GoogleCloudApigeeV1Schema or error will be non-nil.
26471// Any non-2xx status code is an error. Response headers are in either
26472// *GoogleCloudApigeeV1Schema.ServerResponse.Header or (if a response
26473// was returned at all) in error.(*googleapi.Error).Header. Use
26474// googleapi.IsNotModified to check whether the returned error was
26475// because http.StatusNotModified was returned.
26476func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Schema, error) {
26477	gensupport.SetOptions(c.urlParams_, opts...)
26478	res, err := c.doRequest("json")
26479	if res != nil && res.StatusCode == http.StatusNotModified {
26480		if res.Body != nil {
26481			res.Body.Close()
26482		}
26483		return nil, &googleapi.Error{
26484			Code:   res.StatusCode,
26485			Header: res.Header,
26486		}
26487	}
26488	if err != nil {
26489		return nil, err
26490	}
26491	defer googleapi.CloseBody(res)
26492	if err := googleapi.CheckResponse(res); err != nil {
26493		return nil, err
26494	}
26495	ret := &GoogleCloudApigeeV1Schema{
26496		ServerResponse: googleapi.ServerResponse{
26497			Header:         res.Header,
26498			HTTPStatusCode: res.StatusCode,
26499		},
26500	}
26501	target := &ret
26502	if err := gensupport.DecodeResponse(target, res); err != nil {
26503		return nil, err
26504	}
26505	return ret, nil
26506	// {
26507	//   "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.",
26508	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/analytics/admin/schemav2",
26509	//   "httpMethod": "GET",
26510	//   "id": "apigee.organizations.environments.analytics.admin.getSchemav2",
26511	//   "parameterOrder": [
26512	//     "name"
26513	//   ],
26514	//   "parameters": {
26515	//     "disableCache": {
26516	//       "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.",
26517	//       "location": "query",
26518	//       "type": "boolean"
26519	//     },
26520	//     "name": {
26521	//       "description": "Required. Path to the schema. Use the following structure in your request: `organizations/{org}/environments/{env}/analytics/admin/schemav2`.",
26522	//       "location": "path",
26523	//       "pattern": "^organizations/[^/]+/environments/[^/]+/analytics/admin/schemav2$",
26524	//       "required": true,
26525	//       "type": "string"
26526	//     },
26527	//     "type": {
26528	//       "description": "Required. Name of the dataset for which you want to retrieve the schema. For example: `fact` or `agg_cus1`",
26529	//       "location": "query",
26530	//       "type": "string"
26531	//     }
26532	//   },
26533	//   "path": "v1/{+name}",
26534	//   "response": {
26535	//     "$ref": "GoogleCloudApigeeV1Schema"
26536	//   },
26537	//   "scopes": [
26538	//     "https://www.googleapis.com/auth/cloud-platform"
26539	//   ]
26540	// }
26541
26542}
26543
26544// method id "apigee.organizations.environments.analytics.exports.create":
26545
26546type OrganizationsEnvironmentsAnalyticsExportsCreateCall struct {
26547	s                                *Service
26548	parent                           string
26549	googlecloudapigeev1exportrequest *GoogleCloudApigeeV1ExportRequest
26550	urlParams_                       gensupport.URLParams
26551	ctx_                             context.Context
26552	header_                          http.Header
26553}
26554
26555// Create: Submit a data export job to be processed in the background.
26556// If the request is successful, the API returns a 201 status, a URI
26557// that can be used to retrieve the status of the export job, and the
26558// `state` value of "enqueued".
26559//
26560// - parent: Names of the parent organization and environment. Must be
26561//   of the form `organizations/{org}/environments/{env}`.
26562func (r *OrganizationsEnvironmentsAnalyticsExportsService) Create(parent string, googlecloudapigeev1exportrequest *GoogleCloudApigeeV1ExportRequest) *OrganizationsEnvironmentsAnalyticsExportsCreateCall {
26563	c := &OrganizationsEnvironmentsAnalyticsExportsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26564	c.parent = parent
26565	c.googlecloudapigeev1exportrequest = googlecloudapigeev1exportrequest
26566	return c
26567}
26568
26569// Fields allows partial responses to be retrieved. See
26570// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
26571// for more information.
26572func (c *OrganizationsEnvironmentsAnalyticsExportsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsAnalyticsExportsCreateCall {
26573	c.urlParams_.Set("fields", googleapi.CombineFields(s))
26574	return c
26575}
26576
26577// Context sets the context to be used in this call's Do method. Any
26578// pending HTTP request will be aborted if the provided context is
26579// canceled.
26580func (c *OrganizationsEnvironmentsAnalyticsExportsCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsAnalyticsExportsCreateCall {
26581	c.ctx_ = ctx
26582	return c
26583}
26584
26585// Header returns an http.Header that can be modified by the caller to
26586// add HTTP headers to the request.
26587func (c *OrganizationsEnvironmentsAnalyticsExportsCreateCall) Header() http.Header {
26588	if c.header_ == nil {
26589		c.header_ = make(http.Header)
26590	}
26591	return c.header_
26592}
26593
26594func (c *OrganizationsEnvironmentsAnalyticsExportsCreateCall) doRequest(alt string) (*http.Response, error) {
26595	reqHeaders := make(http.Header)
26596	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
26597	for k, v := range c.header_ {
26598		reqHeaders[k] = v
26599	}
26600	reqHeaders.Set("User-Agent", c.s.userAgent())
26601	var body io.Reader = nil
26602	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1exportrequest)
26603	if err != nil {
26604		return nil, err
26605	}
26606	reqHeaders.Set("Content-Type", "application/json")
26607	c.urlParams_.Set("alt", alt)
26608	c.urlParams_.Set("prettyPrint", "false")
26609	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/analytics/exports")
26610	urls += "?" + c.urlParams_.Encode()
26611	req, err := http.NewRequest("POST", urls, body)
26612	if err != nil {
26613		return nil, err
26614	}
26615	req.Header = reqHeaders
26616	googleapi.Expand(req.URL, map[string]string{
26617		"parent": c.parent,
26618	})
26619	return gensupport.SendRequest(c.ctx_, c.s.client, req)
26620}
26621
26622// Do executes the "apigee.organizations.environments.analytics.exports.create" call.
26623// Exactly one of *GoogleCloudApigeeV1Export or error will be non-nil.
26624// Any non-2xx status code is an error. Response headers are in either
26625// *GoogleCloudApigeeV1Export.ServerResponse.Header or (if a response
26626// was returned at all) in error.(*googleapi.Error).Header. Use
26627// googleapi.IsNotModified to check whether the returned error was
26628// because http.StatusNotModified was returned.
26629func (c *OrganizationsEnvironmentsAnalyticsExportsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Export, error) {
26630	gensupport.SetOptions(c.urlParams_, opts...)
26631	res, err := c.doRequest("json")
26632	if res != nil && res.StatusCode == http.StatusNotModified {
26633		if res.Body != nil {
26634			res.Body.Close()
26635		}
26636		return nil, &googleapi.Error{
26637			Code:   res.StatusCode,
26638			Header: res.Header,
26639		}
26640	}
26641	if err != nil {
26642		return nil, err
26643	}
26644	defer googleapi.CloseBody(res)
26645	if err := googleapi.CheckResponse(res); err != nil {
26646		return nil, err
26647	}
26648	ret := &GoogleCloudApigeeV1Export{
26649		ServerResponse: googleapi.ServerResponse{
26650			Header:         res.Header,
26651			HTTPStatusCode: res.StatusCode,
26652		},
26653	}
26654	target := &ret
26655	if err := gensupport.DecodeResponse(target, res); err != nil {
26656		return nil, err
26657	}
26658	return ret, nil
26659	// {
26660	//   "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\".",
26661	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/analytics/exports",
26662	//   "httpMethod": "POST",
26663	//   "id": "apigee.organizations.environments.analytics.exports.create",
26664	//   "parameterOrder": [
26665	//     "parent"
26666	//   ],
26667	//   "parameters": {
26668	//     "parent": {
26669	//       "description": "Required. Names of the parent organization and environment. Must be of the form `organizations/{org}/environments/{env}`.",
26670	//       "location": "path",
26671	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
26672	//       "required": true,
26673	//       "type": "string"
26674	//     }
26675	//   },
26676	//   "path": "v1/{+parent}/analytics/exports",
26677	//   "request": {
26678	//     "$ref": "GoogleCloudApigeeV1ExportRequest"
26679	//   },
26680	//   "response": {
26681	//     "$ref": "GoogleCloudApigeeV1Export"
26682	//   },
26683	//   "scopes": [
26684	//     "https://www.googleapis.com/auth/cloud-platform"
26685	//   ]
26686	// }
26687
26688}
26689
26690// method id "apigee.organizations.environments.analytics.exports.get":
26691
26692type OrganizationsEnvironmentsAnalyticsExportsGetCall struct {
26693	s            *Service
26694	name         string
26695	urlParams_   gensupport.URLParams
26696	ifNoneMatch_ string
26697	ctx_         context.Context
26698	header_      http.Header
26699}
26700
26701// Get: Gets the details and status of an analytics export job. If the
26702// export job is still in progress, its `state` is set to "running".
26703// After the export job has completed successfully, its `state` is set
26704// to "completed". If the export job fails, its `state` is set to
26705// `failed`.
26706//
26707// - name: Resource name of the export to get.
26708func (r *OrganizationsEnvironmentsAnalyticsExportsService) Get(name string) *OrganizationsEnvironmentsAnalyticsExportsGetCall {
26709	c := &OrganizationsEnvironmentsAnalyticsExportsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26710	c.name = name
26711	return c
26712}
26713
26714// Fields allows partial responses to be retrieved. See
26715// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
26716// for more information.
26717func (c *OrganizationsEnvironmentsAnalyticsExportsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsAnalyticsExportsGetCall {
26718	c.urlParams_.Set("fields", googleapi.CombineFields(s))
26719	return c
26720}
26721
26722// IfNoneMatch sets the optional parameter which makes the operation
26723// fail if the object's ETag matches the given value. This is useful for
26724// getting updates only after the object has changed since the last
26725// request. Use googleapi.IsNotModified to check whether the response
26726// error from Do is the result of In-None-Match.
26727func (c *OrganizationsEnvironmentsAnalyticsExportsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsAnalyticsExportsGetCall {
26728	c.ifNoneMatch_ = entityTag
26729	return c
26730}
26731
26732// Context sets the context to be used in this call's Do method. Any
26733// pending HTTP request will be aborted if the provided context is
26734// canceled.
26735func (c *OrganizationsEnvironmentsAnalyticsExportsGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsAnalyticsExportsGetCall {
26736	c.ctx_ = ctx
26737	return c
26738}
26739
26740// Header returns an http.Header that can be modified by the caller to
26741// add HTTP headers to the request.
26742func (c *OrganizationsEnvironmentsAnalyticsExportsGetCall) Header() http.Header {
26743	if c.header_ == nil {
26744		c.header_ = make(http.Header)
26745	}
26746	return c.header_
26747}
26748
26749func (c *OrganizationsEnvironmentsAnalyticsExportsGetCall) doRequest(alt string) (*http.Response, error) {
26750	reqHeaders := make(http.Header)
26751	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
26752	for k, v := range c.header_ {
26753		reqHeaders[k] = v
26754	}
26755	reqHeaders.Set("User-Agent", c.s.userAgent())
26756	if c.ifNoneMatch_ != "" {
26757		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
26758	}
26759	var body io.Reader = nil
26760	c.urlParams_.Set("alt", alt)
26761	c.urlParams_.Set("prettyPrint", "false")
26762	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
26763	urls += "?" + c.urlParams_.Encode()
26764	req, err := http.NewRequest("GET", urls, body)
26765	if err != nil {
26766		return nil, err
26767	}
26768	req.Header = reqHeaders
26769	googleapi.Expand(req.URL, map[string]string{
26770		"name": c.name,
26771	})
26772	return gensupport.SendRequest(c.ctx_, c.s.client, req)
26773}
26774
26775// Do executes the "apigee.organizations.environments.analytics.exports.get" call.
26776// Exactly one of *GoogleCloudApigeeV1Export or error will be non-nil.
26777// Any non-2xx status code is an error. Response headers are in either
26778// *GoogleCloudApigeeV1Export.ServerResponse.Header or (if a response
26779// was returned at all) in error.(*googleapi.Error).Header. Use
26780// googleapi.IsNotModified to check whether the returned error was
26781// because http.StatusNotModified was returned.
26782func (c *OrganizationsEnvironmentsAnalyticsExportsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Export, error) {
26783	gensupport.SetOptions(c.urlParams_, opts...)
26784	res, err := c.doRequest("json")
26785	if res != nil && res.StatusCode == http.StatusNotModified {
26786		if res.Body != nil {
26787			res.Body.Close()
26788		}
26789		return nil, &googleapi.Error{
26790			Code:   res.StatusCode,
26791			Header: res.Header,
26792		}
26793	}
26794	if err != nil {
26795		return nil, err
26796	}
26797	defer googleapi.CloseBody(res)
26798	if err := googleapi.CheckResponse(res); err != nil {
26799		return nil, err
26800	}
26801	ret := &GoogleCloudApigeeV1Export{
26802		ServerResponse: googleapi.ServerResponse{
26803			Header:         res.Header,
26804			HTTPStatusCode: res.StatusCode,
26805		},
26806	}
26807	target := &ret
26808	if err := gensupport.DecodeResponse(target, res); err != nil {
26809		return nil, err
26810	}
26811	return ret, nil
26812	// {
26813	//   "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`.",
26814	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/analytics/exports/{exportsId}",
26815	//   "httpMethod": "GET",
26816	//   "id": "apigee.organizations.environments.analytics.exports.get",
26817	//   "parameterOrder": [
26818	//     "name"
26819	//   ],
26820	//   "parameters": {
26821	//     "name": {
26822	//       "description": "Required. Resource name of the export to get.",
26823	//       "location": "path",
26824	//       "pattern": "^organizations/[^/]+/environments/[^/]+/analytics/exports/[^/]+$",
26825	//       "required": true,
26826	//       "type": "string"
26827	//     }
26828	//   },
26829	//   "path": "v1/{+name}",
26830	//   "response": {
26831	//     "$ref": "GoogleCloudApigeeV1Export"
26832	//   },
26833	//   "scopes": [
26834	//     "https://www.googleapis.com/auth/cloud-platform"
26835	//   ]
26836	// }
26837
26838}
26839
26840// method id "apigee.organizations.environments.analytics.exports.list":
26841
26842type OrganizationsEnvironmentsAnalyticsExportsListCall struct {
26843	s            *Service
26844	parent       string
26845	urlParams_   gensupport.URLParams
26846	ifNoneMatch_ string
26847	ctx_         context.Context
26848	header_      http.Header
26849}
26850
26851// List: Lists the details and status of all analytics export jobs
26852// belonging to the parent organization and environment.
26853//
26854// - parent: Names of the parent organization and environment. Must be
26855//   of the form `organizations/{org}/environments/{env}`.
26856func (r *OrganizationsEnvironmentsAnalyticsExportsService) List(parent string) *OrganizationsEnvironmentsAnalyticsExportsListCall {
26857	c := &OrganizationsEnvironmentsAnalyticsExportsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26858	c.parent = parent
26859	return c
26860}
26861
26862// Fields allows partial responses to be retrieved. See
26863// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
26864// for more information.
26865func (c *OrganizationsEnvironmentsAnalyticsExportsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsAnalyticsExportsListCall {
26866	c.urlParams_.Set("fields", googleapi.CombineFields(s))
26867	return c
26868}
26869
26870// IfNoneMatch sets the optional parameter which makes the operation
26871// fail if the object's ETag matches the given value. This is useful for
26872// getting updates only after the object has changed since the last
26873// request. Use googleapi.IsNotModified to check whether the response
26874// error from Do is the result of In-None-Match.
26875func (c *OrganizationsEnvironmentsAnalyticsExportsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsAnalyticsExportsListCall {
26876	c.ifNoneMatch_ = entityTag
26877	return c
26878}
26879
26880// Context sets the context to be used in this call's Do method. Any
26881// pending HTTP request will be aborted if the provided context is
26882// canceled.
26883func (c *OrganizationsEnvironmentsAnalyticsExportsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsAnalyticsExportsListCall {
26884	c.ctx_ = ctx
26885	return c
26886}
26887
26888// Header returns an http.Header that can be modified by the caller to
26889// add HTTP headers to the request.
26890func (c *OrganizationsEnvironmentsAnalyticsExportsListCall) Header() http.Header {
26891	if c.header_ == nil {
26892		c.header_ = make(http.Header)
26893	}
26894	return c.header_
26895}
26896
26897func (c *OrganizationsEnvironmentsAnalyticsExportsListCall) doRequest(alt string) (*http.Response, error) {
26898	reqHeaders := make(http.Header)
26899	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
26900	for k, v := range c.header_ {
26901		reqHeaders[k] = v
26902	}
26903	reqHeaders.Set("User-Agent", c.s.userAgent())
26904	if c.ifNoneMatch_ != "" {
26905		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
26906	}
26907	var body io.Reader = nil
26908	c.urlParams_.Set("alt", alt)
26909	c.urlParams_.Set("prettyPrint", "false")
26910	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/analytics/exports")
26911	urls += "?" + c.urlParams_.Encode()
26912	req, err := http.NewRequest("GET", urls, body)
26913	if err != nil {
26914		return nil, err
26915	}
26916	req.Header = reqHeaders
26917	googleapi.Expand(req.URL, map[string]string{
26918		"parent": c.parent,
26919	})
26920	return gensupport.SendRequest(c.ctx_, c.s.client, req)
26921}
26922
26923// Do executes the "apigee.organizations.environments.analytics.exports.list" call.
26924// Exactly one of *GoogleCloudApigeeV1ListExportsResponse or error will
26925// be non-nil. Any non-2xx status code is an error. Response headers are
26926// in either
26927// *GoogleCloudApigeeV1ListExportsResponse.ServerResponse.Header or (if
26928// a response was returned at all) in error.(*googleapi.Error).Header.
26929// Use googleapi.IsNotModified to check whether the returned error was
26930// because http.StatusNotModified was returned.
26931func (c *OrganizationsEnvironmentsAnalyticsExportsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListExportsResponse, error) {
26932	gensupport.SetOptions(c.urlParams_, opts...)
26933	res, err := c.doRequest("json")
26934	if res != nil && res.StatusCode == http.StatusNotModified {
26935		if res.Body != nil {
26936			res.Body.Close()
26937		}
26938		return nil, &googleapi.Error{
26939			Code:   res.StatusCode,
26940			Header: res.Header,
26941		}
26942	}
26943	if err != nil {
26944		return nil, err
26945	}
26946	defer googleapi.CloseBody(res)
26947	if err := googleapi.CheckResponse(res); err != nil {
26948		return nil, err
26949	}
26950	ret := &GoogleCloudApigeeV1ListExportsResponse{
26951		ServerResponse: googleapi.ServerResponse{
26952			Header:         res.Header,
26953			HTTPStatusCode: res.StatusCode,
26954		},
26955	}
26956	target := &ret
26957	if err := gensupport.DecodeResponse(target, res); err != nil {
26958		return nil, err
26959	}
26960	return ret, nil
26961	// {
26962	//   "description": "Lists the details and status of all analytics export jobs belonging to the parent organization and environment.",
26963	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/analytics/exports",
26964	//   "httpMethod": "GET",
26965	//   "id": "apigee.organizations.environments.analytics.exports.list",
26966	//   "parameterOrder": [
26967	//     "parent"
26968	//   ],
26969	//   "parameters": {
26970	//     "parent": {
26971	//       "description": "Required. Names of the parent organization and environment. Must be of the form `organizations/{org}/environments/{env}`.",
26972	//       "location": "path",
26973	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
26974	//       "required": true,
26975	//       "type": "string"
26976	//     }
26977	//   },
26978	//   "path": "v1/{+parent}/analytics/exports",
26979	//   "response": {
26980	//     "$ref": "GoogleCloudApigeeV1ListExportsResponse"
26981	//   },
26982	//   "scopes": [
26983	//     "https://www.googleapis.com/auth/cloud-platform"
26984	//   ]
26985	// }
26986
26987}
26988
26989// method id "apigee.organizations.environments.apis.deployments.list":
26990
26991type OrganizationsEnvironmentsApisDeploymentsListCall struct {
26992	s            *Service
26993	parent       string
26994	urlParams_   gensupport.URLParams
26995	ifNoneMatch_ string
26996	ctx_         context.Context
26997	header_      http.Header
26998}
26999
27000// List: Lists all deployments of an API proxy in an environment.
27001//
27002// - parent: Name representing an API proxy in an environment in the
27003//   following format:
27004//   `organizations/{org}/environments/{env}/apis/{api}`.
27005func (r *OrganizationsEnvironmentsApisDeploymentsService) List(parent string) *OrganizationsEnvironmentsApisDeploymentsListCall {
27006	c := &OrganizationsEnvironmentsApisDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27007	c.parent = parent
27008	return c
27009}
27010
27011// Fields allows partial responses to be retrieved. See
27012// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
27013// for more information.
27014func (c *OrganizationsEnvironmentsApisDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisDeploymentsListCall {
27015	c.urlParams_.Set("fields", googleapi.CombineFields(s))
27016	return c
27017}
27018
27019// IfNoneMatch sets the optional parameter which makes the operation
27020// fail if the object's ETag matches the given value. This is useful for
27021// getting updates only after the object has changed since the last
27022// request. Use googleapi.IsNotModified to check whether the response
27023// error from Do is the result of In-None-Match.
27024func (c *OrganizationsEnvironmentsApisDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsApisDeploymentsListCall {
27025	c.ifNoneMatch_ = entityTag
27026	return c
27027}
27028
27029// Context sets the context to be used in this call's Do method. Any
27030// pending HTTP request will be aborted if the provided context is
27031// canceled.
27032func (c *OrganizationsEnvironmentsApisDeploymentsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisDeploymentsListCall {
27033	c.ctx_ = ctx
27034	return c
27035}
27036
27037// Header returns an http.Header that can be modified by the caller to
27038// add HTTP headers to the request.
27039func (c *OrganizationsEnvironmentsApisDeploymentsListCall) Header() http.Header {
27040	if c.header_ == nil {
27041		c.header_ = make(http.Header)
27042	}
27043	return c.header_
27044}
27045
27046func (c *OrganizationsEnvironmentsApisDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
27047	reqHeaders := make(http.Header)
27048	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
27049	for k, v := range c.header_ {
27050		reqHeaders[k] = v
27051	}
27052	reqHeaders.Set("User-Agent", c.s.userAgent())
27053	if c.ifNoneMatch_ != "" {
27054		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
27055	}
27056	var body io.Reader = nil
27057	c.urlParams_.Set("alt", alt)
27058	c.urlParams_.Set("prettyPrint", "false")
27059	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
27060	urls += "?" + c.urlParams_.Encode()
27061	req, err := http.NewRequest("GET", urls, body)
27062	if err != nil {
27063		return nil, err
27064	}
27065	req.Header = reqHeaders
27066	googleapi.Expand(req.URL, map[string]string{
27067		"parent": c.parent,
27068	})
27069	return gensupport.SendRequest(c.ctx_, c.s.client, req)
27070}
27071
27072// Do executes the "apigee.organizations.environments.apis.deployments.list" call.
27073// Exactly one of *GoogleCloudApigeeV1ListDeploymentsResponse or error
27074// will be non-nil. Any non-2xx status code is an error. Response
27075// headers are in either
27076// *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or
27077// (if a response was returned at all) in
27078// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
27079// whether the returned error was because http.StatusNotModified was
27080// returned.
27081func (c *OrganizationsEnvironmentsApisDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
27082	gensupport.SetOptions(c.urlParams_, opts...)
27083	res, err := c.doRequest("json")
27084	if res != nil && res.StatusCode == http.StatusNotModified {
27085		if res.Body != nil {
27086			res.Body.Close()
27087		}
27088		return nil, &googleapi.Error{
27089			Code:   res.StatusCode,
27090			Header: res.Header,
27091		}
27092	}
27093	if err != nil {
27094		return nil, err
27095	}
27096	defer googleapi.CloseBody(res)
27097	if err := googleapi.CheckResponse(res); err != nil {
27098		return nil, err
27099	}
27100	ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
27101		ServerResponse: googleapi.ServerResponse{
27102			Header:         res.Header,
27103			HTTPStatusCode: res.StatusCode,
27104		},
27105	}
27106	target := &ret
27107	if err := gensupport.DecodeResponse(target, res); err != nil {
27108		return nil, err
27109	}
27110	return ret, nil
27111	// {
27112	//   "description": "Lists all deployments of an API proxy in an environment.",
27113	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/deployments",
27114	//   "httpMethod": "GET",
27115	//   "id": "apigee.organizations.environments.apis.deployments.list",
27116	//   "parameterOrder": [
27117	//     "parent"
27118	//   ],
27119	//   "parameters": {
27120	//     "parent": {
27121	//       "description": "Required. Name representing an API proxy in an environment in the following format: `organizations/{org}/environments/{env}/apis/{api}`",
27122	//       "location": "path",
27123	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+$",
27124	//       "required": true,
27125	//       "type": "string"
27126	//     }
27127	//   },
27128	//   "path": "v1/{+parent}/deployments",
27129	//   "response": {
27130	//     "$ref": "GoogleCloudApigeeV1ListDeploymentsResponse"
27131	//   },
27132	//   "scopes": [
27133	//     "https://www.googleapis.com/auth/cloud-platform"
27134	//   ]
27135	// }
27136
27137}
27138
27139// method id "apigee.organizations.environments.apis.revisions.deploy":
27140
27141type OrganizationsEnvironmentsApisRevisionsDeployCall struct {
27142	s          *Service
27143	name       string
27144	urlParams_ gensupport.URLParams
27145	ctx_       context.Context
27146	header_    http.Header
27147}
27148
27149// Deploy: Deploys a revision of an API proxy. If another revision of
27150// the same API proxy revision is currently deployed, set the `override`
27151// parameter to `true` to have this revision replace the currently
27152// deployed revision. You cannot invoke an API proxy until it has been
27153// deployed to an environment. After you deploy an API proxy revision,
27154// you cannot edit it. To edit the API proxy, you must create and deploy
27155// a new revision. For a request path
27156// `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}/dep
27157// loyments`, two permissions are required: *
27158// `apigee.deployments.create` on the resource
27159// `organizations/{org}/environments/{env}` *
27160// `apigee.proxyrevisions.deploy` on the resource
27161// `organizations/{org}/apis/{api}/revisions/{rev}`
27162//
27163// - name: Name of the API proxy revision deployment in the following
27164//   format:
27165//   `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`.
27166func (r *OrganizationsEnvironmentsApisRevisionsService) Deploy(name string) *OrganizationsEnvironmentsApisRevisionsDeployCall {
27167	c := &OrganizationsEnvironmentsApisRevisionsDeployCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27168	c.name = name
27169	return c
27170}
27171
27172// Override sets the optional parameter "override": Flag that specifies
27173// whether the new deployment replaces other deployed revisions of the
27174// API proxy in the environment. Set `override` to `true` to replace
27175// other deployed revisions. By default, `override` is `false` and the
27176// deployment is rejected if other revisions of the API proxy are
27177// deployed in the environment.
27178func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) Override(override bool) *OrganizationsEnvironmentsApisRevisionsDeployCall {
27179	c.urlParams_.Set("override", fmt.Sprint(override))
27180	return c
27181}
27182
27183// SequencedRollout sets the optional parameter "sequencedRollout": Flag
27184// that specifies whether to enable sequenced rollout. If set to `true`,
27185// a best-effort attempt will be made to roll out the routing rules
27186// corresponding to this deployment and the environment changes to add
27187// this deployment in a safe order. This reduces the risk of downtime
27188// that could be caused by changing the environment group's routing
27189// before the new destination for the affected traffic is ready to
27190// receive it. This should only be necessary if the new deployment will
27191// be capturing traffic from another environment under a shared
27192// environment group or if traffic will be rerouted to a different
27193// environment due to a base path removal. The
27194// GenerateDeployChangeReport API (GenerateDeployChangeReport) may be
27195// used to examine routing changes before issuing the deployment
27196// request, and its response will indicate if a sequenced rollout is
27197// recommended for the deployment.
27198func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) SequencedRollout(sequencedRollout bool) *OrganizationsEnvironmentsApisRevisionsDeployCall {
27199	c.urlParams_.Set("sequencedRollout", fmt.Sprint(sequencedRollout))
27200	return c
27201}
27202
27203// Fields allows partial responses to be retrieved. See
27204// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
27205// for more information.
27206func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDeployCall {
27207	c.urlParams_.Set("fields", googleapi.CombineFields(s))
27208	return c
27209}
27210
27211// Context sets the context to be used in this call's Do method. Any
27212// pending HTTP request will be aborted if the provided context is
27213// canceled.
27214func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDeployCall {
27215	c.ctx_ = ctx
27216	return c
27217}
27218
27219// Header returns an http.Header that can be modified by the caller to
27220// add HTTP headers to the request.
27221func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) Header() http.Header {
27222	if c.header_ == nil {
27223		c.header_ = make(http.Header)
27224	}
27225	return c.header_
27226}
27227
27228func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) doRequest(alt string) (*http.Response, error) {
27229	reqHeaders := make(http.Header)
27230	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
27231	for k, v := range c.header_ {
27232		reqHeaders[k] = v
27233	}
27234	reqHeaders.Set("User-Agent", c.s.userAgent())
27235	var body io.Reader = nil
27236	c.urlParams_.Set("alt", alt)
27237	c.urlParams_.Set("prettyPrint", "false")
27238	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments")
27239	urls += "?" + c.urlParams_.Encode()
27240	req, err := http.NewRequest("POST", urls, body)
27241	if err != nil {
27242		return nil, err
27243	}
27244	req.Header = reqHeaders
27245	googleapi.Expand(req.URL, map[string]string{
27246		"name": c.name,
27247	})
27248	return gensupport.SendRequest(c.ctx_, c.s.client, req)
27249}
27250
27251// Do executes the "apigee.organizations.environments.apis.revisions.deploy" call.
27252// Exactly one of *GoogleCloudApigeeV1Deployment or error will be
27253// non-nil. Any non-2xx status code is an error. Response headers are in
27254// either *GoogleCloudApigeeV1Deployment.ServerResponse.Header or (if a
27255// response was returned at all) in error.(*googleapi.Error).Header. Use
27256// googleapi.IsNotModified to check whether the returned error was
27257// because http.StatusNotModified was returned.
27258func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Deployment, error) {
27259	gensupport.SetOptions(c.urlParams_, opts...)
27260	res, err := c.doRequest("json")
27261	if res != nil && res.StatusCode == http.StatusNotModified {
27262		if res.Body != nil {
27263			res.Body.Close()
27264		}
27265		return nil, &googleapi.Error{
27266			Code:   res.StatusCode,
27267			Header: res.Header,
27268		}
27269	}
27270	if err != nil {
27271		return nil, err
27272	}
27273	defer googleapi.CloseBody(res)
27274	if err := googleapi.CheckResponse(res); err != nil {
27275		return nil, err
27276	}
27277	ret := &GoogleCloudApigeeV1Deployment{
27278		ServerResponse: googleapi.ServerResponse{
27279			Header:         res.Header,
27280			HTTPStatusCode: res.StatusCode,
27281		},
27282	}
27283	target := &ret
27284	if err := gensupport.DecodeResponse(target, res); err != nil {
27285		return nil, err
27286	}
27287	return ret, nil
27288	// {
27289	//   "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}` ",
27290	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/deployments",
27291	//   "httpMethod": "POST",
27292	//   "id": "apigee.organizations.environments.apis.revisions.deploy",
27293	//   "parameterOrder": [
27294	//     "name"
27295	//   ],
27296	//   "parameters": {
27297	//     "name": {
27298	//       "description": "Required. Name of the API proxy revision deployment in the following format: `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`",
27299	//       "location": "path",
27300	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+$",
27301	//       "required": true,
27302	//       "type": "string"
27303	//     },
27304	//     "override": {
27305	//       "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.",
27306	//       "location": "query",
27307	//       "type": "boolean"
27308	//     },
27309	//     "sequencedRollout": {
27310	//       "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.",
27311	//       "location": "query",
27312	//       "type": "boolean"
27313	//     }
27314	//   },
27315	//   "path": "v1/{+name}/deployments",
27316	//   "response": {
27317	//     "$ref": "GoogleCloudApigeeV1Deployment"
27318	//   },
27319	//   "scopes": [
27320	//     "https://www.googleapis.com/auth/cloud-platform"
27321	//   ]
27322	// }
27323
27324}
27325
27326// method id "apigee.organizations.environments.apis.revisions.getDeployments":
27327
27328type OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall struct {
27329	s            *Service
27330	name         string
27331	urlParams_   gensupport.URLParams
27332	ifNoneMatch_ string
27333	ctx_         context.Context
27334	header_      http.Header
27335}
27336
27337// GetDeployments: Gets the deployment of an API proxy revision and
27338// actual state reported by runtime pods.
27339//
27340// - name: Name representing an API proxy revision in an environment in
27341//   the following format:
27342//   `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`.
27343func (r *OrganizationsEnvironmentsApisRevisionsService) GetDeployments(name string) *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall {
27344	c := &OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27345	c.name = name
27346	return c
27347}
27348
27349// Fields allows partial responses to be retrieved. See
27350// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
27351// for more information.
27352func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall {
27353	c.urlParams_.Set("fields", googleapi.CombineFields(s))
27354	return c
27355}
27356
27357// IfNoneMatch sets the optional parameter which makes the operation
27358// fail if the object's ETag matches the given value. This is useful for
27359// getting updates only after the object has changed since the last
27360// request. Use googleapi.IsNotModified to check whether the response
27361// error from Do is the result of In-None-Match.
27362func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall {
27363	c.ifNoneMatch_ = entityTag
27364	return c
27365}
27366
27367// Context sets the context to be used in this call's Do method. Any
27368// pending HTTP request will be aborted if the provided context is
27369// canceled.
27370func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall {
27371	c.ctx_ = ctx
27372	return c
27373}
27374
27375// Header returns an http.Header that can be modified by the caller to
27376// add HTTP headers to the request.
27377func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) Header() http.Header {
27378	if c.header_ == nil {
27379		c.header_ = make(http.Header)
27380	}
27381	return c.header_
27382}
27383
27384func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) doRequest(alt string) (*http.Response, error) {
27385	reqHeaders := make(http.Header)
27386	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
27387	for k, v := range c.header_ {
27388		reqHeaders[k] = v
27389	}
27390	reqHeaders.Set("User-Agent", c.s.userAgent())
27391	if c.ifNoneMatch_ != "" {
27392		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
27393	}
27394	var body io.Reader = nil
27395	c.urlParams_.Set("alt", alt)
27396	c.urlParams_.Set("prettyPrint", "false")
27397	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments")
27398	urls += "?" + c.urlParams_.Encode()
27399	req, err := http.NewRequest("GET", urls, body)
27400	if err != nil {
27401		return nil, err
27402	}
27403	req.Header = reqHeaders
27404	googleapi.Expand(req.URL, map[string]string{
27405		"name": c.name,
27406	})
27407	return gensupport.SendRequest(c.ctx_, c.s.client, req)
27408}
27409
27410// Do executes the "apigee.organizations.environments.apis.revisions.getDeployments" call.
27411// Exactly one of *GoogleCloudApigeeV1Deployment or error will be
27412// non-nil. Any non-2xx status code is an error. Response headers are in
27413// either *GoogleCloudApigeeV1Deployment.ServerResponse.Header or (if a
27414// response was returned at all) in error.(*googleapi.Error).Header. Use
27415// googleapi.IsNotModified to check whether the returned error was
27416// because http.StatusNotModified was returned.
27417func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Deployment, error) {
27418	gensupport.SetOptions(c.urlParams_, opts...)
27419	res, err := c.doRequest("json")
27420	if res != nil && res.StatusCode == http.StatusNotModified {
27421		if res.Body != nil {
27422			res.Body.Close()
27423		}
27424		return nil, &googleapi.Error{
27425			Code:   res.StatusCode,
27426			Header: res.Header,
27427		}
27428	}
27429	if err != nil {
27430		return nil, err
27431	}
27432	defer googleapi.CloseBody(res)
27433	if err := googleapi.CheckResponse(res); err != nil {
27434		return nil, err
27435	}
27436	ret := &GoogleCloudApigeeV1Deployment{
27437		ServerResponse: googleapi.ServerResponse{
27438			Header:         res.Header,
27439			HTTPStatusCode: res.StatusCode,
27440		},
27441	}
27442	target := &ret
27443	if err := gensupport.DecodeResponse(target, res); err != nil {
27444		return nil, err
27445	}
27446	return ret, nil
27447	// {
27448	//   "description": "Gets the deployment of an API proxy revision and actual state reported by runtime pods.",
27449	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/deployments",
27450	//   "httpMethod": "GET",
27451	//   "id": "apigee.organizations.environments.apis.revisions.getDeployments",
27452	//   "parameterOrder": [
27453	//     "name"
27454	//   ],
27455	//   "parameters": {
27456	//     "name": {
27457	//       "description": "Required. Name representing an API proxy revision in an environment in the following format: `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`",
27458	//       "location": "path",
27459	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+$",
27460	//       "required": true,
27461	//       "type": "string"
27462	//     }
27463	//   },
27464	//   "path": "v1/{+name}/deployments",
27465	//   "response": {
27466	//     "$ref": "GoogleCloudApigeeV1Deployment"
27467	//   },
27468	//   "scopes": [
27469	//     "https://www.googleapis.com/auth/cloud-platform"
27470	//   ]
27471	// }
27472
27473}
27474
27475// method id "apigee.organizations.environments.apis.revisions.undeploy":
27476
27477type OrganizationsEnvironmentsApisRevisionsUndeployCall struct {
27478	s          *Service
27479	name       string
27480	urlParams_ gensupport.URLParams
27481	ctx_       context.Context
27482	header_    http.Header
27483}
27484
27485// Undeploy: Undeploys an API proxy revision from an environment. For a
27486// request path
27487// `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}/dep
27488// loyments`, two permissions are required: *
27489// `apigee.deployments.delete` on the resource
27490// `organizations/{org}/environments/{env}` *
27491// `apigee.proxyrevisions.undeploy` on the resource
27492// `organizations/{org}/apis/{api}/revisions/{rev}`
27493//
27494// - name: Name of the API proxy revision deployment in the following
27495//   format:
27496//   `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`.
27497func (r *OrganizationsEnvironmentsApisRevisionsService) Undeploy(name string) *OrganizationsEnvironmentsApisRevisionsUndeployCall {
27498	c := &OrganizationsEnvironmentsApisRevisionsUndeployCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27499	c.name = name
27500	return c
27501}
27502
27503// SequencedRollout sets the optional parameter "sequencedRollout": Flag
27504// that specifies whether to enable sequenced rollout. If set to `true`,
27505// a best-effort attempt will be made to remove the environment group
27506// routing rules corresponding to this deployment before removing the
27507// deployment from the runtime. This is likely to be a rare use case; it
27508// is only needed when the intended effect of undeploying this proxy is
27509// to cause the traffic it currently handles to be rerouted to some
27510// other existing proxy in the environment group. The
27511// GenerateUndeployChangeReport API (GenerateUndeployChangeReport) may
27512// be used to examine routing changes before issuing the undeployment
27513// request, and its response will indicate if a sequenced rollout is
27514// recommended for the undeployment.
27515func (c *OrganizationsEnvironmentsApisRevisionsUndeployCall) SequencedRollout(sequencedRollout bool) *OrganizationsEnvironmentsApisRevisionsUndeployCall {
27516	c.urlParams_.Set("sequencedRollout", fmt.Sprint(sequencedRollout))
27517	return c
27518}
27519
27520// Fields allows partial responses to be retrieved. See
27521// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
27522// for more information.
27523func (c *OrganizationsEnvironmentsApisRevisionsUndeployCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsUndeployCall {
27524	c.urlParams_.Set("fields", googleapi.CombineFields(s))
27525	return c
27526}
27527
27528// Context sets the context to be used in this call's Do method. Any
27529// pending HTTP request will be aborted if the provided context is
27530// canceled.
27531func (c *OrganizationsEnvironmentsApisRevisionsUndeployCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsUndeployCall {
27532	c.ctx_ = ctx
27533	return c
27534}
27535
27536// Header returns an http.Header that can be modified by the caller to
27537// add HTTP headers to the request.
27538func (c *OrganizationsEnvironmentsApisRevisionsUndeployCall) Header() http.Header {
27539	if c.header_ == nil {
27540		c.header_ = make(http.Header)
27541	}
27542	return c.header_
27543}
27544
27545func (c *OrganizationsEnvironmentsApisRevisionsUndeployCall) doRequest(alt string) (*http.Response, error) {
27546	reqHeaders := make(http.Header)
27547	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
27548	for k, v := range c.header_ {
27549		reqHeaders[k] = v
27550	}
27551	reqHeaders.Set("User-Agent", c.s.userAgent())
27552	var body io.Reader = nil
27553	c.urlParams_.Set("alt", alt)
27554	c.urlParams_.Set("prettyPrint", "false")
27555	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments")
27556	urls += "?" + c.urlParams_.Encode()
27557	req, err := http.NewRequest("DELETE", urls, body)
27558	if err != nil {
27559		return nil, err
27560	}
27561	req.Header = reqHeaders
27562	googleapi.Expand(req.URL, map[string]string{
27563		"name": c.name,
27564	})
27565	return gensupport.SendRequest(c.ctx_, c.s.client, req)
27566}
27567
27568// Do executes the "apigee.organizations.environments.apis.revisions.undeploy" call.
27569// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
27570// non-2xx status code is an error. Response headers are in either
27571// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
27572// returned at all) in error.(*googleapi.Error).Header. Use
27573// googleapi.IsNotModified to check whether the returned error was
27574// because http.StatusNotModified was returned.
27575func (c *OrganizationsEnvironmentsApisRevisionsUndeployCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
27576	gensupport.SetOptions(c.urlParams_, opts...)
27577	res, err := c.doRequest("json")
27578	if res != nil && res.StatusCode == http.StatusNotModified {
27579		if res.Body != nil {
27580			res.Body.Close()
27581		}
27582		return nil, &googleapi.Error{
27583			Code:   res.StatusCode,
27584			Header: res.Header,
27585		}
27586	}
27587	if err != nil {
27588		return nil, err
27589	}
27590	defer googleapi.CloseBody(res)
27591	if err := googleapi.CheckResponse(res); err != nil {
27592		return nil, err
27593	}
27594	ret := &GoogleProtobufEmpty{
27595		ServerResponse: googleapi.ServerResponse{
27596			Header:         res.Header,
27597			HTTPStatusCode: res.StatusCode,
27598		},
27599	}
27600	target := &ret
27601	if err := gensupport.DecodeResponse(target, res); err != nil {
27602		return nil, err
27603	}
27604	return ret, nil
27605	// {
27606	//   "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}`",
27607	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/deployments",
27608	//   "httpMethod": "DELETE",
27609	//   "id": "apigee.organizations.environments.apis.revisions.undeploy",
27610	//   "parameterOrder": [
27611	//     "name"
27612	//   ],
27613	//   "parameters": {
27614	//     "name": {
27615	//       "description": "Required. Name of the API proxy revision deployment in the following format: `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`",
27616	//       "location": "path",
27617	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+$",
27618	//       "required": true,
27619	//       "type": "string"
27620	//     },
27621	//     "sequencedRollout": {
27622	//       "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.",
27623	//       "location": "query",
27624	//       "type": "boolean"
27625	//     }
27626	//   },
27627	//   "path": "v1/{+name}/deployments",
27628	//   "response": {
27629	//     "$ref": "GoogleProtobufEmpty"
27630	//   },
27631	//   "scopes": [
27632	//     "https://www.googleapis.com/auth/cloud-platform"
27633	//   ]
27634	// }
27635
27636}
27637
27638// method id "apigee.organizations.environments.apis.revisions.debugsessions.create":
27639
27640type OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall struct {
27641	s                               *Service
27642	parent                          string
27643	googlecloudapigeev1debugsession *GoogleCloudApigeeV1DebugSession
27644	urlParams_                      gensupport.URLParams
27645	ctx_                            context.Context
27646	header_                         http.Header
27647}
27648
27649// Create: Creates a debug session for a deployed API Proxy revision.
27650//
27651// - parent: The resource name of the API Proxy revision deployment for
27652//   which to create the DebugSession. Must be of the form
27653//   `organizations/{organization}/environments/{environment}/apis/{api}/
27654//   revisions/{revision}`.
27655func (r *OrganizationsEnvironmentsApisRevisionsDebugsessionsService) Create(parent string, googlecloudapigeev1debugsession *GoogleCloudApigeeV1DebugSession) *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall {
27656	c := &OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27657	c.parent = parent
27658	c.googlecloudapigeev1debugsession = googlecloudapigeev1debugsession
27659	return c
27660}
27661
27662// Timeout sets the optional parameter "timeout": The time in seconds
27663// after which this DebugSession should end. A timeout specified in
27664// DebugSession will overwrite this value.
27665func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) Timeout(timeout int64) *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall {
27666	c.urlParams_.Set("timeout", fmt.Sprint(timeout))
27667	return c
27668}
27669
27670// Fields allows partial responses to be retrieved. See
27671// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
27672// for more information.
27673func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall {
27674	c.urlParams_.Set("fields", googleapi.CombineFields(s))
27675	return c
27676}
27677
27678// Context sets the context to be used in this call's Do method. Any
27679// pending HTTP request will be aborted if the provided context is
27680// canceled.
27681func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall {
27682	c.ctx_ = ctx
27683	return c
27684}
27685
27686// Header returns an http.Header that can be modified by the caller to
27687// add HTTP headers to the request.
27688func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) Header() http.Header {
27689	if c.header_ == nil {
27690		c.header_ = make(http.Header)
27691	}
27692	return c.header_
27693}
27694
27695func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) doRequest(alt string) (*http.Response, error) {
27696	reqHeaders := make(http.Header)
27697	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
27698	for k, v := range c.header_ {
27699		reqHeaders[k] = v
27700	}
27701	reqHeaders.Set("User-Agent", c.s.userAgent())
27702	var body io.Reader = nil
27703	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1debugsession)
27704	if err != nil {
27705		return nil, err
27706	}
27707	reqHeaders.Set("Content-Type", "application/json")
27708	c.urlParams_.Set("alt", alt)
27709	c.urlParams_.Set("prettyPrint", "false")
27710	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/debugsessions")
27711	urls += "?" + c.urlParams_.Encode()
27712	req, err := http.NewRequest("POST", urls, body)
27713	if err != nil {
27714		return nil, err
27715	}
27716	req.Header = reqHeaders
27717	googleapi.Expand(req.URL, map[string]string{
27718		"parent": c.parent,
27719	})
27720	return gensupport.SendRequest(c.ctx_, c.s.client, req)
27721}
27722
27723// Do executes the "apigee.organizations.environments.apis.revisions.debugsessions.create" call.
27724// Exactly one of *GoogleCloudApigeeV1DebugSession or error will be
27725// non-nil. Any non-2xx status code is an error. Response headers are in
27726// either *GoogleCloudApigeeV1DebugSession.ServerResponse.Header or (if
27727// a response was returned at all) in error.(*googleapi.Error).Header.
27728// Use googleapi.IsNotModified to check whether the returned error was
27729// because http.StatusNotModified was returned.
27730func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DebugSession, error) {
27731	gensupport.SetOptions(c.urlParams_, opts...)
27732	res, err := c.doRequest("json")
27733	if res != nil && res.StatusCode == http.StatusNotModified {
27734		if res.Body != nil {
27735			res.Body.Close()
27736		}
27737		return nil, &googleapi.Error{
27738			Code:   res.StatusCode,
27739			Header: res.Header,
27740		}
27741	}
27742	if err != nil {
27743		return nil, err
27744	}
27745	defer googleapi.CloseBody(res)
27746	if err := googleapi.CheckResponse(res); err != nil {
27747		return nil, err
27748	}
27749	ret := &GoogleCloudApigeeV1DebugSession{
27750		ServerResponse: googleapi.ServerResponse{
27751			Header:         res.Header,
27752			HTTPStatusCode: res.StatusCode,
27753		},
27754	}
27755	target := &ret
27756	if err := gensupport.DecodeResponse(target, res); err != nil {
27757		return nil, err
27758	}
27759	return ret, nil
27760	// {
27761	//   "description": "Creates a debug session for a deployed API Proxy revision.",
27762	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/debugsessions",
27763	//   "httpMethod": "POST",
27764	//   "id": "apigee.organizations.environments.apis.revisions.debugsessions.create",
27765	//   "parameterOrder": [
27766	//     "parent"
27767	//   ],
27768	//   "parameters": {
27769	//     "parent": {
27770	//       "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}`.",
27771	//       "location": "path",
27772	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+$",
27773	//       "required": true,
27774	//       "type": "string"
27775	//     },
27776	//     "timeout": {
27777	//       "description": "Optional. The time in seconds after which this DebugSession should end. A timeout specified in DebugSession will overwrite this value.",
27778	//       "format": "int64",
27779	//       "location": "query",
27780	//       "type": "string"
27781	//     }
27782	//   },
27783	//   "path": "v1/{+parent}/debugsessions",
27784	//   "request": {
27785	//     "$ref": "GoogleCloudApigeeV1DebugSession"
27786	//   },
27787	//   "response": {
27788	//     "$ref": "GoogleCloudApigeeV1DebugSession"
27789	//   },
27790	//   "scopes": [
27791	//     "https://www.googleapis.com/auth/cloud-platform"
27792	//   ]
27793	// }
27794
27795}
27796
27797// method id "apigee.organizations.environments.apis.revisions.debugsessions.deleteData":
27798
27799type OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall struct {
27800	s          *Service
27801	name       string
27802	urlParams_ gensupport.URLParams
27803	ctx_       context.Context
27804	header_    http.Header
27805}
27806
27807// DeleteData: Deletes the data from a debug session. This does not
27808// cancel the debug session or prevent further data from being collected
27809// if the session is still active in runtime pods.
27810//
27811// - name: The name of the debug session to delete. Must be of the form:
27812//   `organizations/{organization}/environments/{environment}/apis/{api}/
27813//   revisions/{revision}/debugsessions/{debugsession}`.
27814func (r *OrganizationsEnvironmentsApisRevisionsDebugsessionsService) DeleteData(name string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall {
27815	c := &OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27816	c.name = name
27817	return c
27818}
27819
27820// Fields allows partial responses to be retrieved. See
27821// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
27822// for more information.
27823func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall {
27824	c.urlParams_.Set("fields", googleapi.CombineFields(s))
27825	return c
27826}
27827
27828// Context sets the context to be used in this call's Do method. Any
27829// pending HTTP request will be aborted if the provided context is
27830// canceled.
27831func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall {
27832	c.ctx_ = ctx
27833	return c
27834}
27835
27836// Header returns an http.Header that can be modified by the caller to
27837// add HTTP headers to the request.
27838func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall) Header() http.Header {
27839	if c.header_ == nil {
27840		c.header_ = make(http.Header)
27841	}
27842	return c.header_
27843}
27844
27845func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall) doRequest(alt string) (*http.Response, error) {
27846	reqHeaders := make(http.Header)
27847	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
27848	for k, v := range c.header_ {
27849		reqHeaders[k] = v
27850	}
27851	reqHeaders.Set("User-Agent", c.s.userAgent())
27852	var body io.Reader = nil
27853	c.urlParams_.Set("alt", alt)
27854	c.urlParams_.Set("prettyPrint", "false")
27855	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/data")
27856	urls += "?" + c.urlParams_.Encode()
27857	req, err := http.NewRequest("DELETE", urls, body)
27858	if err != nil {
27859		return nil, err
27860	}
27861	req.Header = reqHeaders
27862	googleapi.Expand(req.URL, map[string]string{
27863		"name": c.name,
27864	})
27865	return gensupport.SendRequest(c.ctx_, c.s.client, req)
27866}
27867
27868// Do executes the "apigee.organizations.environments.apis.revisions.debugsessions.deleteData" call.
27869// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
27870// non-2xx status code is an error. Response headers are in either
27871// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
27872// returned at all) in error.(*googleapi.Error).Header. Use
27873// googleapi.IsNotModified to check whether the returned error was
27874// because http.StatusNotModified was returned.
27875func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
27876	gensupport.SetOptions(c.urlParams_, opts...)
27877	res, err := c.doRequest("json")
27878	if res != nil && res.StatusCode == http.StatusNotModified {
27879		if res.Body != nil {
27880			res.Body.Close()
27881		}
27882		return nil, &googleapi.Error{
27883			Code:   res.StatusCode,
27884			Header: res.Header,
27885		}
27886	}
27887	if err != nil {
27888		return nil, err
27889	}
27890	defer googleapi.CloseBody(res)
27891	if err := googleapi.CheckResponse(res); err != nil {
27892		return nil, err
27893	}
27894	ret := &GoogleProtobufEmpty{
27895		ServerResponse: googleapi.ServerResponse{
27896			Header:         res.Header,
27897			HTTPStatusCode: res.StatusCode,
27898		},
27899	}
27900	target := &ret
27901	if err := gensupport.DecodeResponse(target, res); err != nil {
27902		return nil, err
27903	}
27904	return ret, nil
27905	// {
27906	//   "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.",
27907	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/debugsessions/{debugsessionsId}/data",
27908	//   "httpMethod": "DELETE",
27909	//   "id": "apigee.organizations.environments.apis.revisions.debugsessions.deleteData",
27910	//   "parameterOrder": [
27911	//     "name"
27912	//   ],
27913	//   "parameters": {
27914	//     "name": {
27915	//       "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}`.",
27916	//       "location": "path",
27917	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+/debugsessions/[^/]+$",
27918	//       "required": true,
27919	//       "type": "string"
27920	//     }
27921	//   },
27922	//   "path": "v1/{+name}/data",
27923	//   "response": {
27924	//     "$ref": "GoogleProtobufEmpty"
27925	//   },
27926	//   "scopes": [
27927	//     "https://www.googleapis.com/auth/cloud-platform"
27928	//   ]
27929	// }
27930
27931}
27932
27933// method id "apigee.organizations.environments.apis.revisions.debugsessions.get":
27934
27935type OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall struct {
27936	s            *Service
27937	name         string
27938	urlParams_   gensupport.URLParams
27939	ifNoneMatch_ string
27940	ctx_         context.Context
27941	header_      http.Header
27942}
27943
27944// Get: Retrieves a debug session.
27945//
27946// - name: The name of the debug session to retrieve. Must be of the
27947//   form:
27948//   `organizations/{organization}/environments/{environment}/apis/{api}/
27949//   revisions/{revision}/debugsessions/{session}`.
27950func (r *OrganizationsEnvironmentsApisRevisionsDebugsessionsService) Get(name string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall {
27951	c := &OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27952	c.name = name
27953	return c
27954}
27955
27956// Fields allows partial responses to be retrieved. See
27957// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
27958// for more information.
27959func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall {
27960	c.urlParams_.Set("fields", googleapi.CombineFields(s))
27961	return c
27962}
27963
27964// IfNoneMatch sets the optional parameter which makes the operation
27965// fail if the object's ETag matches the given value. This is useful for
27966// getting updates only after the object has changed since the last
27967// request. Use googleapi.IsNotModified to check whether the response
27968// error from Do is the result of In-None-Match.
27969func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall {
27970	c.ifNoneMatch_ = entityTag
27971	return c
27972}
27973
27974// Context sets the context to be used in this call's Do method. Any
27975// pending HTTP request will be aborted if the provided context is
27976// canceled.
27977func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall {
27978	c.ctx_ = ctx
27979	return c
27980}
27981
27982// Header returns an http.Header that can be modified by the caller to
27983// add HTTP headers to the request.
27984func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall) Header() http.Header {
27985	if c.header_ == nil {
27986		c.header_ = make(http.Header)
27987	}
27988	return c.header_
27989}
27990
27991func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall) doRequest(alt string) (*http.Response, error) {
27992	reqHeaders := make(http.Header)
27993	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
27994	for k, v := range c.header_ {
27995		reqHeaders[k] = v
27996	}
27997	reqHeaders.Set("User-Agent", c.s.userAgent())
27998	if c.ifNoneMatch_ != "" {
27999		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
28000	}
28001	var body io.Reader = nil
28002	c.urlParams_.Set("alt", alt)
28003	c.urlParams_.Set("prettyPrint", "false")
28004	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
28005	urls += "?" + c.urlParams_.Encode()
28006	req, err := http.NewRequest("GET", urls, body)
28007	if err != nil {
28008		return nil, err
28009	}
28010	req.Header = reqHeaders
28011	googleapi.Expand(req.URL, map[string]string{
28012		"name": c.name,
28013	})
28014	return gensupport.SendRequest(c.ctx_, c.s.client, req)
28015}
28016
28017// Do executes the "apigee.organizations.environments.apis.revisions.debugsessions.get" call.
28018// Exactly one of *GoogleCloudApigeeV1DebugSession or error will be
28019// non-nil. Any non-2xx status code is an error. Response headers are in
28020// either *GoogleCloudApigeeV1DebugSession.ServerResponse.Header or (if
28021// a response was returned at all) in error.(*googleapi.Error).Header.
28022// Use googleapi.IsNotModified to check whether the returned error was
28023// because http.StatusNotModified was returned.
28024func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DebugSession, error) {
28025	gensupport.SetOptions(c.urlParams_, opts...)
28026	res, err := c.doRequest("json")
28027	if res != nil && res.StatusCode == http.StatusNotModified {
28028		if res.Body != nil {
28029			res.Body.Close()
28030		}
28031		return nil, &googleapi.Error{
28032			Code:   res.StatusCode,
28033			Header: res.Header,
28034		}
28035	}
28036	if err != nil {
28037		return nil, err
28038	}
28039	defer googleapi.CloseBody(res)
28040	if err := googleapi.CheckResponse(res); err != nil {
28041		return nil, err
28042	}
28043	ret := &GoogleCloudApigeeV1DebugSession{
28044		ServerResponse: googleapi.ServerResponse{
28045			Header:         res.Header,
28046			HTTPStatusCode: res.StatusCode,
28047		},
28048	}
28049	target := &ret
28050	if err := gensupport.DecodeResponse(target, res); err != nil {
28051		return nil, err
28052	}
28053	return ret, nil
28054	// {
28055	//   "description": "Retrieves a debug session.",
28056	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/debugsessions/{debugsessionsId}",
28057	//   "httpMethod": "GET",
28058	//   "id": "apigee.organizations.environments.apis.revisions.debugsessions.get",
28059	//   "parameterOrder": [
28060	//     "name"
28061	//   ],
28062	//   "parameters": {
28063	//     "name": {
28064	//       "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}`.",
28065	//       "location": "path",
28066	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+/debugsessions/[^/]+$",
28067	//       "required": true,
28068	//       "type": "string"
28069	//     }
28070	//   },
28071	//   "path": "v1/{+name}",
28072	//   "response": {
28073	//     "$ref": "GoogleCloudApigeeV1DebugSession"
28074	//   },
28075	//   "scopes": [
28076	//     "https://www.googleapis.com/auth/cloud-platform"
28077	//   ]
28078	// }
28079
28080}
28081
28082// method id "apigee.organizations.environments.apis.revisions.debugsessions.list":
28083
28084type OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall struct {
28085	s            *Service
28086	parent       string
28087	urlParams_   gensupport.URLParams
28088	ifNoneMatch_ string
28089	ctx_         context.Context
28090	header_      http.Header
28091}
28092
28093// List: Lists debug sessions that are currently active in the given API
28094// Proxy revision.
28095//
28096// - parent: The name of the API Proxy revision deployment for which to
28097//   list debug sessions. Must be of the form:
28098//   `organizations/{organization}/environments/{environment}/apis/{api}/
28099//   revisions/{revision}`.
28100func (r *OrganizationsEnvironmentsApisRevisionsDebugsessionsService) List(parent string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall {
28101	c := &OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28102	c.parent = parent
28103	return c
28104}
28105
28106// PageSize sets the optional parameter "pageSize": Maximum number of
28107// debug sessions to return. The page size defaults to 25.
28108func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) PageSize(pageSize int64) *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall {
28109	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
28110	return c
28111}
28112
28113// PageToken sets the optional parameter "pageToken": Page token,
28114// returned from a previous ListDebugSessions call, that you can use to
28115// retrieve the next page.
28116func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) PageToken(pageToken string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall {
28117	c.urlParams_.Set("pageToken", pageToken)
28118	return c
28119}
28120
28121// Fields allows partial responses to be retrieved. See
28122// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
28123// for more information.
28124func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall {
28125	c.urlParams_.Set("fields", googleapi.CombineFields(s))
28126	return c
28127}
28128
28129// IfNoneMatch sets the optional parameter which makes the operation
28130// fail if the object's ETag matches the given value. This is useful for
28131// getting updates only after the object has changed since the last
28132// request. Use googleapi.IsNotModified to check whether the response
28133// error from Do is the result of In-None-Match.
28134func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall {
28135	c.ifNoneMatch_ = entityTag
28136	return c
28137}
28138
28139// Context sets the context to be used in this call's Do method. Any
28140// pending HTTP request will be aborted if the provided context is
28141// canceled.
28142func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall {
28143	c.ctx_ = ctx
28144	return c
28145}
28146
28147// Header returns an http.Header that can be modified by the caller to
28148// add HTTP headers to the request.
28149func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) Header() http.Header {
28150	if c.header_ == nil {
28151		c.header_ = make(http.Header)
28152	}
28153	return c.header_
28154}
28155
28156func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) doRequest(alt string) (*http.Response, error) {
28157	reqHeaders := make(http.Header)
28158	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
28159	for k, v := range c.header_ {
28160		reqHeaders[k] = v
28161	}
28162	reqHeaders.Set("User-Agent", c.s.userAgent())
28163	if c.ifNoneMatch_ != "" {
28164		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
28165	}
28166	var body io.Reader = nil
28167	c.urlParams_.Set("alt", alt)
28168	c.urlParams_.Set("prettyPrint", "false")
28169	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/debugsessions")
28170	urls += "?" + c.urlParams_.Encode()
28171	req, err := http.NewRequest("GET", urls, body)
28172	if err != nil {
28173		return nil, err
28174	}
28175	req.Header = reqHeaders
28176	googleapi.Expand(req.URL, map[string]string{
28177		"parent": c.parent,
28178	})
28179	return gensupport.SendRequest(c.ctx_, c.s.client, req)
28180}
28181
28182// Do executes the "apigee.organizations.environments.apis.revisions.debugsessions.list" call.
28183// Exactly one of *GoogleCloudApigeeV1ListDebugSessionsResponse or error
28184// will be non-nil. Any non-2xx status code is an error. Response
28185// headers are in either
28186// *GoogleCloudApigeeV1ListDebugSessionsResponse.ServerResponse.Header
28187// or (if a response was returned at all) in
28188// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
28189// whether the returned error was because http.StatusNotModified was
28190// returned.
28191func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDebugSessionsResponse, error) {
28192	gensupport.SetOptions(c.urlParams_, opts...)
28193	res, err := c.doRequest("json")
28194	if res != nil && res.StatusCode == http.StatusNotModified {
28195		if res.Body != nil {
28196			res.Body.Close()
28197		}
28198		return nil, &googleapi.Error{
28199			Code:   res.StatusCode,
28200			Header: res.Header,
28201		}
28202	}
28203	if err != nil {
28204		return nil, err
28205	}
28206	defer googleapi.CloseBody(res)
28207	if err := googleapi.CheckResponse(res); err != nil {
28208		return nil, err
28209	}
28210	ret := &GoogleCloudApigeeV1ListDebugSessionsResponse{
28211		ServerResponse: googleapi.ServerResponse{
28212			Header:         res.Header,
28213			HTTPStatusCode: res.StatusCode,
28214		},
28215	}
28216	target := &ret
28217	if err := gensupport.DecodeResponse(target, res); err != nil {
28218		return nil, err
28219	}
28220	return ret, nil
28221	// {
28222	//   "description": "Lists debug sessions that are currently active in the given API Proxy revision.",
28223	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/debugsessions",
28224	//   "httpMethod": "GET",
28225	//   "id": "apigee.organizations.environments.apis.revisions.debugsessions.list",
28226	//   "parameterOrder": [
28227	//     "parent"
28228	//   ],
28229	//   "parameters": {
28230	//     "pageSize": {
28231	//       "description": "Maximum number of debug sessions to return. The page size defaults to 25.",
28232	//       "format": "int32",
28233	//       "location": "query",
28234	//       "type": "integer"
28235	//     },
28236	//     "pageToken": {
28237	//       "description": "Page token, returned from a previous ListDebugSessions call, that you can use to retrieve the next page.",
28238	//       "location": "query",
28239	//       "type": "string"
28240	//     },
28241	//     "parent": {
28242	//       "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}`.",
28243	//       "location": "path",
28244	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+$",
28245	//       "required": true,
28246	//       "type": "string"
28247	//     }
28248	//   },
28249	//   "path": "v1/{+parent}/debugsessions",
28250	//   "response": {
28251	//     "$ref": "GoogleCloudApigeeV1ListDebugSessionsResponse"
28252	//   },
28253	//   "scopes": [
28254	//     "https://www.googleapis.com/auth/cloud-platform"
28255	//   ]
28256	// }
28257
28258}
28259
28260// Pages invokes f for each page of results.
28261// A non-nil error returned from f will halt the iteration.
28262// The provided context supersedes any context provided to the Context method.
28263func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListDebugSessionsResponse) error) error {
28264	c.ctx_ = ctx
28265	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
28266	for {
28267		x, err := c.Do()
28268		if err != nil {
28269			return err
28270		}
28271		if err := f(x); err != nil {
28272			return err
28273		}
28274		if x.NextPageToken == "" {
28275			return nil
28276		}
28277		c.PageToken(x.NextPageToken)
28278	}
28279}
28280
28281// method id "apigee.organizations.environments.apis.revisions.debugsessions.data.get":
28282
28283type OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall struct {
28284	s            *Service
28285	name         string
28286	urlParams_   gensupport.URLParams
28287	ifNoneMatch_ string
28288	ctx_         context.Context
28289	header_      http.Header
28290}
28291
28292// Get: Gets the debug data from a transaction.
28293//
28294// - name: The name of the debug session transaction. Must be of the
28295//   form:
28296//   `organizations/{organization}/environments/{environment}/apis/{api}/
28297//   revisions/{revision}/debugsessions/{session}/data/{transaction}`.
28298func (r *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataService) Get(name string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall {
28299	c := &OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28300	c.name = name
28301	return c
28302}
28303
28304// Fields allows partial responses to be retrieved. See
28305// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
28306// for more information.
28307func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall {
28308	c.urlParams_.Set("fields", googleapi.CombineFields(s))
28309	return c
28310}
28311
28312// IfNoneMatch sets the optional parameter which makes the operation
28313// fail if the object's ETag matches the given value. This is useful for
28314// getting updates only after the object has changed since the last
28315// request. Use googleapi.IsNotModified to check whether the response
28316// error from Do is the result of In-None-Match.
28317func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall {
28318	c.ifNoneMatch_ = entityTag
28319	return c
28320}
28321
28322// Context sets the context to be used in this call's Do method. Any
28323// pending HTTP request will be aborted if the provided context is
28324// canceled.
28325func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall {
28326	c.ctx_ = ctx
28327	return c
28328}
28329
28330// Header returns an http.Header that can be modified by the caller to
28331// add HTTP headers to the request.
28332func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) Header() http.Header {
28333	if c.header_ == nil {
28334		c.header_ = make(http.Header)
28335	}
28336	return c.header_
28337}
28338
28339func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) doRequest(alt string) (*http.Response, error) {
28340	reqHeaders := make(http.Header)
28341	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
28342	for k, v := range c.header_ {
28343		reqHeaders[k] = v
28344	}
28345	reqHeaders.Set("User-Agent", c.s.userAgent())
28346	if c.ifNoneMatch_ != "" {
28347		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
28348	}
28349	var body io.Reader = nil
28350	c.urlParams_.Set("alt", alt)
28351	c.urlParams_.Set("prettyPrint", "false")
28352	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
28353	urls += "?" + c.urlParams_.Encode()
28354	req, err := http.NewRequest("GET", urls, body)
28355	if err != nil {
28356		return nil, err
28357	}
28358	req.Header = reqHeaders
28359	googleapi.Expand(req.URL, map[string]string{
28360		"name": c.name,
28361	})
28362	return gensupport.SendRequest(c.ctx_, c.s.client, req)
28363}
28364
28365// Do executes the "apigee.organizations.environments.apis.revisions.debugsessions.data.get" call.
28366// Exactly one of *GoogleCloudApigeeV1DebugSessionTransaction or error
28367// will be non-nil. Any non-2xx status code is an error. Response
28368// headers are in either
28369// *GoogleCloudApigeeV1DebugSessionTransaction.ServerResponse.Header or
28370// (if a response was returned at all) in
28371// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
28372// whether the returned error was because http.StatusNotModified was
28373// returned.
28374func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DebugSessionTransaction, error) {
28375	gensupport.SetOptions(c.urlParams_, opts...)
28376	res, err := c.doRequest("json")
28377	if res != nil && res.StatusCode == http.StatusNotModified {
28378		if res.Body != nil {
28379			res.Body.Close()
28380		}
28381		return nil, &googleapi.Error{
28382			Code:   res.StatusCode,
28383			Header: res.Header,
28384		}
28385	}
28386	if err != nil {
28387		return nil, err
28388	}
28389	defer googleapi.CloseBody(res)
28390	if err := googleapi.CheckResponse(res); err != nil {
28391		return nil, err
28392	}
28393	ret := &GoogleCloudApigeeV1DebugSessionTransaction{
28394		ServerResponse: googleapi.ServerResponse{
28395			Header:         res.Header,
28396			HTTPStatusCode: res.StatusCode,
28397		},
28398	}
28399	target := &ret
28400	if err := gensupport.DecodeResponse(target, res); err != nil {
28401		return nil, err
28402	}
28403	return ret, nil
28404	// {
28405	//   "description": "Gets the debug data from a transaction.",
28406	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/debugsessions/{debugsessionsId}/data/{dataId}",
28407	//   "httpMethod": "GET",
28408	//   "id": "apigee.organizations.environments.apis.revisions.debugsessions.data.get",
28409	//   "parameterOrder": [
28410	//     "name"
28411	//   ],
28412	//   "parameters": {
28413	//     "name": {
28414	//       "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}`.",
28415	//       "location": "path",
28416	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+/debugsessions/[^/]+/data/[^/]+$",
28417	//       "required": true,
28418	//       "type": "string"
28419	//     }
28420	//   },
28421	//   "path": "v1/{+name}",
28422	//   "response": {
28423	//     "$ref": "GoogleCloudApigeeV1DebugSessionTransaction"
28424	//   },
28425	//   "scopes": [
28426	//     "https://www.googleapis.com/auth/cloud-platform"
28427	//   ]
28428	// }
28429
28430}
28431
28432// method id "apigee.organizations.environments.apis.revisions.deployments.generateDeployChangeReport":
28433
28434type OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall struct {
28435	s          *Service
28436	name       string
28437	urlParams_ gensupport.URLParams
28438	ctx_       context.Context
28439	header_    http.Header
28440}
28441
28442// GenerateDeployChangeReport: Generates a report for a dry run analysis
28443// of a DeployApiProxy request without committing the deployment. In
28444// addition to the standard validations performed when adding
28445// deployments, additional analysis will be done to detect possible
28446// traffic routing changes that would result from this deployment being
28447// created. Any potential routing conflicts or unsafe changes will be
28448// reported in the response. This routing analysis is not performed for
28449// a non-dry-run DeployApiProxy request. For a request path
28450// `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}/dep
28451// loyments:generateDeployChangeReport`, two permissions are required: *
28452// `apigee.deployments.create` on the resource
28453// `organizations/{org}/environments/{env}` *
28454// `apigee.proxyrevisions.deploy` on the resource
28455// `organizations/{org}/apis/{api}/revisions/{rev}`
28456//
28457// - name: Name of the API proxy revision deployment in the following
28458//   format:
28459//   `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`.
28460func (r *OrganizationsEnvironmentsApisRevisionsDeploymentsService) GenerateDeployChangeReport(name string) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall {
28461	c := &OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28462	c.name = name
28463	return c
28464}
28465
28466// Override sets the optional parameter "override": Flag that specifies
28467// whether to force the deployment of the new revision over the
28468// currently deployed revision by overriding conflict checks.
28469func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall) Override(override bool) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall {
28470	c.urlParams_.Set("override", fmt.Sprint(override))
28471	return c
28472}
28473
28474// Fields allows partial responses to be retrieved. See
28475// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
28476// for more information.
28477func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall {
28478	c.urlParams_.Set("fields", googleapi.CombineFields(s))
28479	return c
28480}
28481
28482// Context sets the context to be used in this call's Do method. Any
28483// pending HTTP request will be aborted if the provided context is
28484// canceled.
28485func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall {
28486	c.ctx_ = ctx
28487	return c
28488}
28489
28490// Header returns an http.Header that can be modified by the caller to
28491// add HTTP headers to the request.
28492func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall) Header() http.Header {
28493	if c.header_ == nil {
28494		c.header_ = make(http.Header)
28495	}
28496	return c.header_
28497}
28498
28499func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall) doRequest(alt string) (*http.Response, error) {
28500	reqHeaders := make(http.Header)
28501	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
28502	for k, v := range c.header_ {
28503		reqHeaders[k] = v
28504	}
28505	reqHeaders.Set("User-Agent", c.s.userAgent())
28506	var body io.Reader = nil
28507	c.urlParams_.Set("alt", alt)
28508	c.urlParams_.Set("prettyPrint", "false")
28509	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments:generateDeployChangeReport")
28510	urls += "?" + c.urlParams_.Encode()
28511	req, err := http.NewRequest("POST", urls, body)
28512	if err != nil {
28513		return nil, err
28514	}
28515	req.Header = reqHeaders
28516	googleapi.Expand(req.URL, map[string]string{
28517		"name": c.name,
28518	})
28519	return gensupport.SendRequest(c.ctx_, c.s.client, req)
28520}
28521
28522// Do executes the "apigee.organizations.environments.apis.revisions.deployments.generateDeployChangeReport" call.
28523// Exactly one of *GoogleCloudApigeeV1DeploymentChangeReport or error
28524// will be non-nil. Any non-2xx status code is an error. Response
28525// headers are in either
28526// *GoogleCloudApigeeV1DeploymentChangeReport.ServerResponse.Header or
28527// (if a response was returned at all) in
28528// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
28529// whether the returned error was because http.StatusNotModified was
28530// returned.
28531func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeploymentChangeReport, error) {
28532	gensupport.SetOptions(c.urlParams_, opts...)
28533	res, err := c.doRequest("json")
28534	if res != nil && res.StatusCode == http.StatusNotModified {
28535		if res.Body != nil {
28536			res.Body.Close()
28537		}
28538		return nil, &googleapi.Error{
28539			Code:   res.StatusCode,
28540			Header: res.Header,
28541		}
28542	}
28543	if err != nil {
28544		return nil, err
28545	}
28546	defer googleapi.CloseBody(res)
28547	if err := googleapi.CheckResponse(res); err != nil {
28548		return nil, err
28549	}
28550	ret := &GoogleCloudApigeeV1DeploymentChangeReport{
28551		ServerResponse: googleapi.ServerResponse{
28552			Header:         res.Header,
28553			HTTPStatusCode: res.StatusCode,
28554		},
28555	}
28556	target := &ret
28557	if err := gensupport.DecodeResponse(target, res); err != nil {
28558		return nil, err
28559	}
28560	return ret, nil
28561	// {
28562	//   "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}`",
28563	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/deployments:generateDeployChangeReport",
28564	//   "httpMethod": "POST",
28565	//   "id": "apigee.organizations.environments.apis.revisions.deployments.generateDeployChangeReport",
28566	//   "parameterOrder": [
28567	//     "name"
28568	//   ],
28569	//   "parameters": {
28570	//     "name": {
28571	//       "description": "Name of the API proxy revision deployment in the following format: `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`",
28572	//       "location": "path",
28573	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+$",
28574	//       "required": true,
28575	//       "type": "string"
28576	//     },
28577	//     "override": {
28578	//       "description": "Flag that specifies whether to force the deployment of the new revision over the currently deployed revision by overriding conflict checks.",
28579	//       "location": "query",
28580	//       "type": "boolean"
28581	//     }
28582	//   },
28583	//   "path": "v1/{+name}/deployments:generateDeployChangeReport",
28584	//   "response": {
28585	//     "$ref": "GoogleCloudApigeeV1DeploymentChangeReport"
28586	//   },
28587	//   "scopes": [
28588	//     "https://www.googleapis.com/auth/cloud-platform"
28589	//   ]
28590	// }
28591
28592}
28593
28594// method id "apigee.organizations.environments.apis.revisions.deployments.generateUndeployChangeReport":
28595
28596type OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall struct {
28597	s          *Service
28598	name       string
28599	urlParams_ gensupport.URLParams
28600	ctx_       context.Context
28601	header_    http.Header
28602}
28603
28604// GenerateUndeployChangeReport: Generates a report for a dry run
28605// analysis of an UndeployApiProxy request without committing the
28606// undeploy. In addition to the standard validations performed when
28607// removing deployments, additional analysis will be done to detect
28608// possible traffic routing changes that would result from this
28609// deployment being removed. Any potential routing conflicts or unsafe
28610// changes will be reported in the response. This routing analysis is
28611// not performed for a non-dry-run UndeployApiProxy request. For a
28612// request path
28613// `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}/dep
28614// loyments:generateUndeployChangeReport`, two permissions are required:
28615// * `apigee.deployments.delete` on the resource
28616// `organizations/{org}/environments/{env}` *
28617// `apigee.proxyrevisions.undeploy` on the resource
28618// `organizations/{org}/apis/{api}/revisions/{rev}`
28619//
28620// - name: Name of the API proxy revision deployment in the following
28621//   format:
28622//   `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`.
28623func (r *OrganizationsEnvironmentsApisRevisionsDeploymentsService) GenerateUndeployChangeReport(name string) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall {
28624	c := &OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28625	c.name = name
28626	return c
28627}
28628
28629// Fields allows partial responses to be retrieved. See
28630// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
28631// for more information.
28632func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall {
28633	c.urlParams_.Set("fields", googleapi.CombineFields(s))
28634	return c
28635}
28636
28637// Context sets the context to be used in this call's Do method. Any
28638// pending HTTP request will be aborted if the provided context is
28639// canceled.
28640func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall {
28641	c.ctx_ = ctx
28642	return c
28643}
28644
28645// Header returns an http.Header that can be modified by the caller to
28646// add HTTP headers to the request.
28647func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall) Header() http.Header {
28648	if c.header_ == nil {
28649		c.header_ = make(http.Header)
28650	}
28651	return c.header_
28652}
28653
28654func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall) doRequest(alt string) (*http.Response, error) {
28655	reqHeaders := make(http.Header)
28656	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
28657	for k, v := range c.header_ {
28658		reqHeaders[k] = v
28659	}
28660	reqHeaders.Set("User-Agent", c.s.userAgent())
28661	var body io.Reader = nil
28662	c.urlParams_.Set("alt", alt)
28663	c.urlParams_.Set("prettyPrint", "false")
28664	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments:generateUndeployChangeReport")
28665	urls += "?" + c.urlParams_.Encode()
28666	req, err := http.NewRequest("POST", urls, body)
28667	if err != nil {
28668		return nil, err
28669	}
28670	req.Header = reqHeaders
28671	googleapi.Expand(req.URL, map[string]string{
28672		"name": c.name,
28673	})
28674	return gensupport.SendRequest(c.ctx_, c.s.client, req)
28675}
28676
28677// Do executes the "apigee.organizations.environments.apis.revisions.deployments.generateUndeployChangeReport" call.
28678// Exactly one of *GoogleCloudApigeeV1DeploymentChangeReport or error
28679// will be non-nil. Any non-2xx status code is an error. Response
28680// headers are in either
28681// *GoogleCloudApigeeV1DeploymentChangeReport.ServerResponse.Header or
28682// (if a response was returned at all) in
28683// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
28684// whether the returned error was because http.StatusNotModified was
28685// returned.
28686func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeploymentChangeReport, error) {
28687	gensupport.SetOptions(c.urlParams_, opts...)
28688	res, err := c.doRequest("json")
28689	if res != nil && res.StatusCode == http.StatusNotModified {
28690		if res.Body != nil {
28691			res.Body.Close()
28692		}
28693		return nil, &googleapi.Error{
28694			Code:   res.StatusCode,
28695			Header: res.Header,
28696		}
28697	}
28698	if err != nil {
28699		return nil, err
28700	}
28701	defer googleapi.CloseBody(res)
28702	if err := googleapi.CheckResponse(res); err != nil {
28703		return nil, err
28704	}
28705	ret := &GoogleCloudApigeeV1DeploymentChangeReport{
28706		ServerResponse: googleapi.ServerResponse{
28707			Header:         res.Header,
28708			HTTPStatusCode: res.StatusCode,
28709		},
28710	}
28711	target := &ret
28712	if err := gensupport.DecodeResponse(target, res); err != nil {
28713		return nil, err
28714	}
28715	return ret, nil
28716	// {
28717	//   "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}`",
28718	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/deployments:generateUndeployChangeReport",
28719	//   "httpMethod": "POST",
28720	//   "id": "apigee.organizations.environments.apis.revisions.deployments.generateUndeployChangeReport",
28721	//   "parameterOrder": [
28722	//     "name"
28723	//   ],
28724	//   "parameters": {
28725	//     "name": {
28726	//       "description": "Name of the API proxy revision deployment in the following format: `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`",
28727	//       "location": "path",
28728	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+$",
28729	//       "required": true,
28730	//       "type": "string"
28731	//     }
28732	//   },
28733	//   "path": "v1/{+name}/deployments:generateUndeployChangeReport",
28734	//   "response": {
28735	//     "$ref": "GoogleCloudApigeeV1DeploymentChangeReport"
28736	//   },
28737	//   "scopes": [
28738	//     "https://www.googleapis.com/auth/cloud-platform"
28739	//   ]
28740	// }
28741
28742}
28743
28744// method id "apigee.organizations.environments.caches.delete":
28745
28746type OrganizationsEnvironmentsCachesDeleteCall struct {
28747	s          *Service
28748	name       string
28749	urlParams_ gensupport.URLParams
28750	ctx_       context.Context
28751	header_    http.Header
28752}
28753
28754// Delete: Deletes a cache.
28755//
28756// - name: Cache resource name of the form:
28757//   `organizations/{organization_id}/environments/{environment_id}/cache
28758//   s/{cache_id}`.
28759func (r *OrganizationsEnvironmentsCachesService) Delete(name string) *OrganizationsEnvironmentsCachesDeleteCall {
28760	c := &OrganizationsEnvironmentsCachesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28761	c.name = name
28762	return c
28763}
28764
28765// Fields allows partial responses to be retrieved. See
28766// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
28767// for more information.
28768func (c *OrganizationsEnvironmentsCachesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsCachesDeleteCall {
28769	c.urlParams_.Set("fields", googleapi.CombineFields(s))
28770	return c
28771}
28772
28773// Context sets the context to be used in this call's Do method. Any
28774// pending HTTP request will be aborted if the provided context is
28775// canceled.
28776func (c *OrganizationsEnvironmentsCachesDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsCachesDeleteCall {
28777	c.ctx_ = ctx
28778	return c
28779}
28780
28781// Header returns an http.Header that can be modified by the caller to
28782// add HTTP headers to the request.
28783func (c *OrganizationsEnvironmentsCachesDeleteCall) Header() http.Header {
28784	if c.header_ == nil {
28785		c.header_ = make(http.Header)
28786	}
28787	return c.header_
28788}
28789
28790func (c *OrganizationsEnvironmentsCachesDeleteCall) doRequest(alt string) (*http.Response, error) {
28791	reqHeaders := make(http.Header)
28792	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
28793	for k, v := range c.header_ {
28794		reqHeaders[k] = v
28795	}
28796	reqHeaders.Set("User-Agent", c.s.userAgent())
28797	var body io.Reader = nil
28798	c.urlParams_.Set("alt", alt)
28799	c.urlParams_.Set("prettyPrint", "false")
28800	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
28801	urls += "?" + c.urlParams_.Encode()
28802	req, err := http.NewRequest("DELETE", urls, body)
28803	if err != nil {
28804		return nil, err
28805	}
28806	req.Header = reqHeaders
28807	googleapi.Expand(req.URL, map[string]string{
28808		"name": c.name,
28809	})
28810	return gensupport.SendRequest(c.ctx_, c.s.client, req)
28811}
28812
28813// Do executes the "apigee.organizations.environments.caches.delete" call.
28814// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
28815// non-2xx status code is an error. Response headers are in either
28816// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
28817// returned at all) in error.(*googleapi.Error).Header. Use
28818// googleapi.IsNotModified to check whether the returned error was
28819// because http.StatusNotModified was returned.
28820func (c *OrganizationsEnvironmentsCachesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
28821	gensupport.SetOptions(c.urlParams_, opts...)
28822	res, err := c.doRequest("json")
28823	if res != nil && res.StatusCode == http.StatusNotModified {
28824		if res.Body != nil {
28825			res.Body.Close()
28826		}
28827		return nil, &googleapi.Error{
28828			Code:   res.StatusCode,
28829			Header: res.Header,
28830		}
28831	}
28832	if err != nil {
28833		return nil, err
28834	}
28835	defer googleapi.CloseBody(res)
28836	if err := googleapi.CheckResponse(res); err != nil {
28837		return nil, err
28838	}
28839	ret := &GoogleProtobufEmpty{
28840		ServerResponse: googleapi.ServerResponse{
28841			Header:         res.Header,
28842			HTTPStatusCode: res.StatusCode,
28843		},
28844	}
28845	target := &ret
28846	if err := gensupport.DecodeResponse(target, res); err != nil {
28847		return nil, err
28848	}
28849	return ret, nil
28850	// {
28851	//   "description": "Deletes a cache.",
28852	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/caches/{cachesId}",
28853	//   "httpMethod": "DELETE",
28854	//   "id": "apigee.organizations.environments.caches.delete",
28855	//   "parameterOrder": [
28856	//     "name"
28857	//   ],
28858	//   "parameters": {
28859	//     "name": {
28860	//       "description": "Required. Cache resource name of the form: `organizations/{organization_id}/environments/{environment_id}/caches/{cache_id}`",
28861	//       "location": "path",
28862	//       "pattern": "^organizations/[^/]+/environments/[^/]+/caches/[^/]+$",
28863	//       "required": true,
28864	//       "type": "string"
28865	//     }
28866	//   },
28867	//   "path": "v1/{+name}",
28868	//   "response": {
28869	//     "$ref": "GoogleProtobufEmpty"
28870	//   },
28871	//   "scopes": [
28872	//     "https://www.googleapis.com/auth/cloud-platform"
28873	//   ]
28874	// }
28875
28876}
28877
28878// method id "apigee.organizations.environments.deployments.list":
28879
28880type OrganizationsEnvironmentsDeploymentsListCall struct {
28881	s            *Service
28882	parent       string
28883	urlParams_   gensupport.URLParams
28884	ifNoneMatch_ string
28885	ctx_         context.Context
28886	header_      http.Header
28887}
28888
28889// List: Lists all deployments of API proxies or shared flows in an
28890// environment.
28891//
28892// - parent: Name of the environment for which to return deployment
28893//   information in the following format:
28894//   `organizations/{org}/environments/{env}`.
28895func (r *OrganizationsEnvironmentsDeploymentsService) List(parent string) *OrganizationsEnvironmentsDeploymentsListCall {
28896	c := &OrganizationsEnvironmentsDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28897	c.parent = parent
28898	return c
28899}
28900
28901// SharedFlows sets the optional parameter "sharedFlows": Flag that
28902// specifies whether to return shared flow or API proxy deployments. Set
28903// to `true` to return shared flow deployments; set to `false` to return
28904// API proxy deployments. Defaults to `false`.
28905func (c *OrganizationsEnvironmentsDeploymentsListCall) SharedFlows(sharedFlows bool) *OrganizationsEnvironmentsDeploymentsListCall {
28906	c.urlParams_.Set("sharedFlows", fmt.Sprint(sharedFlows))
28907	return c
28908}
28909
28910// Fields allows partial responses to be retrieved. See
28911// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
28912// for more information.
28913func (c *OrganizationsEnvironmentsDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsDeploymentsListCall {
28914	c.urlParams_.Set("fields", googleapi.CombineFields(s))
28915	return c
28916}
28917
28918// IfNoneMatch sets the optional parameter which makes the operation
28919// fail if the object's ETag matches the given value. This is useful for
28920// getting updates only after the object has changed since the last
28921// request. Use googleapi.IsNotModified to check whether the response
28922// error from Do is the result of In-None-Match.
28923func (c *OrganizationsEnvironmentsDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsDeploymentsListCall {
28924	c.ifNoneMatch_ = entityTag
28925	return c
28926}
28927
28928// Context sets the context to be used in this call's Do method. Any
28929// pending HTTP request will be aborted if the provided context is
28930// canceled.
28931func (c *OrganizationsEnvironmentsDeploymentsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsDeploymentsListCall {
28932	c.ctx_ = ctx
28933	return c
28934}
28935
28936// Header returns an http.Header that can be modified by the caller to
28937// add HTTP headers to the request.
28938func (c *OrganizationsEnvironmentsDeploymentsListCall) Header() http.Header {
28939	if c.header_ == nil {
28940		c.header_ = make(http.Header)
28941	}
28942	return c.header_
28943}
28944
28945func (c *OrganizationsEnvironmentsDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
28946	reqHeaders := make(http.Header)
28947	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
28948	for k, v := range c.header_ {
28949		reqHeaders[k] = v
28950	}
28951	reqHeaders.Set("User-Agent", c.s.userAgent())
28952	if c.ifNoneMatch_ != "" {
28953		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
28954	}
28955	var body io.Reader = nil
28956	c.urlParams_.Set("alt", alt)
28957	c.urlParams_.Set("prettyPrint", "false")
28958	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
28959	urls += "?" + c.urlParams_.Encode()
28960	req, err := http.NewRequest("GET", urls, body)
28961	if err != nil {
28962		return nil, err
28963	}
28964	req.Header = reqHeaders
28965	googleapi.Expand(req.URL, map[string]string{
28966		"parent": c.parent,
28967	})
28968	return gensupport.SendRequest(c.ctx_, c.s.client, req)
28969}
28970
28971// Do executes the "apigee.organizations.environments.deployments.list" call.
28972// Exactly one of *GoogleCloudApigeeV1ListDeploymentsResponse or error
28973// will be non-nil. Any non-2xx status code is an error. Response
28974// headers are in either
28975// *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or
28976// (if a response was returned at all) in
28977// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
28978// whether the returned error was because http.StatusNotModified was
28979// returned.
28980func (c *OrganizationsEnvironmentsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
28981	gensupport.SetOptions(c.urlParams_, opts...)
28982	res, err := c.doRequest("json")
28983	if res != nil && res.StatusCode == http.StatusNotModified {
28984		if res.Body != nil {
28985			res.Body.Close()
28986		}
28987		return nil, &googleapi.Error{
28988			Code:   res.StatusCode,
28989			Header: res.Header,
28990		}
28991	}
28992	if err != nil {
28993		return nil, err
28994	}
28995	defer googleapi.CloseBody(res)
28996	if err := googleapi.CheckResponse(res); err != nil {
28997		return nil, err
28998	}
28999	ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
29000		ServerResponse: googleapi.ServerResponse{
29001			Header:         res.Header,
29002			HTTPStatusCode: res.StatusCode,
29003		},
29004	}
29005	target := &ret
29006	if err := gensupport.DecodeResponse(target, res); err != nil {
29007		return nil, err
29008	}
29009	return ret, nil
29010	// {
29011	//   "description": "Lists all deployments of API proxies or shared flows in an environment.",
29012	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/deployments",
29013	//   "httpMethod": "GET",
29014	//   "id": "apigee.organizations.environments.deployments.list",
29015	//   "parameterOrder": [
29016	//     "parent"
29017	//   ],
29018	//   "parameters": {
29019	//     "parent": {
29020	//       "description": "Required. Name of the environment for which to return deployment information in the following format: `organizations/{org}/environments/{env}`",
29021	//       "location": "path",
29022	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
29023	//       "required": true,
29024	//       "type": "string"
29025	//     },
29026	//     "sharedFlows": {
29027	//       "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`.",
29028	//       "location": "query",
29029	//       "type": "boolean"
29030	//     }
29031	//   },
29032	//   "path": "v1/{+parent}/deployments",
29033	//   "response": {
29034	//     "$ref": "GoogleCloudApigeeV1ListDeploymentsResponse"
29035	//   },
29036	//   "scopes": [
29037	//     "https://www.googleapis.com/auth/cloud-platform"
29038	//   ]
29039	// }
29040
29041}
29042
29043// method id "apigee.organizations.environments.flowhooks.attachSharedFlowToFlowHook":
29044
29045type OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall struct {
29046	s                           *Service
29047	name                        string
29048	googlecloudapigeev1flowhook *GoogleCloudApigeeV1FlowHook
29049	urlParams_                  gensupport.URLParams
29050	ctx_                        context.Context
29051	header_                     http.Header
29052}
29053
29054// AttachSharedFlowToFlowHook: Attaches a shared flow to a flow hook.
29055//
29056// - name: Name of the flow hook to which the shared flow should be
29057//   attached in the following format:
29058//   `organizations/{org}/environments/{env}/flowhooks/{flowhook}`.
29059func (r *OrganizationsEnvironmentsFlowhooksService) AttachSharedFlowToFlowHook(name string, googlecloudapigeev1flowhook *GoogleCloudApigeeV1FlowHook) *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall {
29060	c := &OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29061	c.name = name
29062	c.googlecloudapigeev1flowhook = googlecloudapigeev1flowhook
29063	return c
29064}
29065
29066// Fields allows partial responses to be retrieved. See
29067// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
29068// for more information.
29069func (c *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall {
29070	c.urlParams_.Set("fields", googleapi.CombineFields(s))
29071	return c
29072}
29073
29074// Context sets the context to be used in this call's Do method. Any
29075// pending HTTP request will be aborted if the provided context is
29076// canceled.
29077func (c *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall) Context(ctx context.Context) *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall {
29078	c.ctx_ = ctx
29079	return c
29080}
29081
29082// Header returns an http.Header that can be modified by the caller to
29083// add HTTP headers to the request.
29084func (c *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall) Header() http.Header {
29085	if c.header_ == nil {
29086		c.header_ = make(http.Header)
29087	}
29088	return c.header_
29089}
29090
29091func (c *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall) doRequest(alt string) (*http.Response, error) {
29092	reqHeaders := make(http.Header)
29093	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
29094	for k, v := range c.header_ {
29095		reqHeaders[k] = v
29096	}
29097	reqHeaders.Set("User-Agent", c.s.userAgent())
29098	var body io.Reader = nil
29099	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1flowhook)
29100	if err != nil {
29101		return nil, err
29102	}
29103	reqHeaders.Set("Content-Type", "application/json")
29104	c.urlParams_.Set("alt", alt)
29105	c.urlParams_.Set("prettyPrint", "false")
29106	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
29107	urls += "?" + c.urlParams_.Encode()
29108	req, err := http.NewRequest("PUT", urls, body)
29109	if err != nil {
29110		return nil, err
29111	}
29112	req.Header = reqHeaders
29113	googleapi.Expand(req.URL, map[string]string{
29114		"name": c.name,
29115	})
29116	return gensupport.SendRequest(c.ctx_, c.s.client, req)
29117}
29118
29119// Do executes the "apigee.organizations.environments.flowhooks.attachSharedFlowToFlowHook" call.
29120// Exactly one of *GoogleCloudApigeeV1FlowHook or error will be non-nil.
29121// Any non-2xx status code is an error. Response headers are in either
29122// *GoogleCloudApigeeV1FlowHook.ServerResponse.Header or (if a response
29123// was returned at all) in error.(*googleapi.Error).Header. Use
29124// googleapi.IsNotModified to check whether the returned error was
29125// because http.StatusNotModified was returned.
29126func (c *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1FlowHook, error) {
29127	gensupport.SetOptions(c.urlParams_, opts...)
29128	res, err := c.doRequest("json")
29129	if res != nil && res.StatusCode == http.StatusNotModified {
29130		if res.Body != nil {
29131			res.Body.Close()
29132		}
29133		return nil, &googleapi.Error{
29134			Code:   res.StatusCode,
29135			Header: res.Header,
29136		}
29137	}
29138	if err != nil {
29139		return nil, err
29140	}
29141	defer googleapi.CloseBody(res)
29142	if err := googleapi.CheckResponse(res); err != nil {
29143		return nil, err
29144	}
29145	ret := &GoogleCloudApigeeV1FlowHook{
29146		ServerResponse: googleapi.ServerResponse{
29147			Header:         res.Header,
29148			HTTPStatusCode: res.StatusCode,
29149		},
29150	}
29151	target := &ret
29152	if err := gensupport.DecodeResponse(target, res); err != nil {
29153		return nil, err
29154	}
29155	return ret, nil
29156	// {
29157	//   "description": "Attaches a shared flow to a flow hook.",
29158	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/flowhooks/{flowhooksId}",
29159	//   "httpMethod": "PUT",
29160	//   "id": "apigee.organizations.environments.flowhooks.attachSharedFlowToFlowHook",
29161	//   "parameterOrder": [
29162	//     "name"
29163	//   ],
29164	//   "parameters": {
29165	//     "name": {
29166	//       "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}`",
29167	//       "location": "path",
29168	//       "pattern": "^organizations/[^/]+/environments/[^/]+/flowhooks/[^/]+$",
29169	//       "required": true,
29170	//       "type": "string"
29171	//     }
29172	//   },
29173	//   "path": "v1/{+name}",
29174	//   "request": {
29175	//     "$ref": "GoogleCloudApigeeV1FlowHook"
29176	//   },
29177	//   "response": {
29178	//     "$ref": "GoogleCloudApigeeV1FlowHook"
29179	//   },
29180	//   "scopes": [
29181	//     "https://www.googleapis.com/auth/cloud-platform"
29182	//   ]
29183	// }
29184
29185}
29186
29187// method id "apigee.organizations.environments.flowhooks.detachSharedFlowFromFlowHook":
29188
29189type OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall struct {
29190	s          *Service
29191	name       string
29192	urlParams_ gensupport.URLParams
29193	ctx_       context.Context
29194	header_    http.Header
29195}
29196
29197// DetachSharedFlowFromFlowHook: Detaches a shared flow from a flow
29198// hook.
29199//
29200// - name: Name of the flow hook to detach in the following format:
29201//   `organizations/{org}/environments/{env}/flowhooks/{flowhook}`.
29202func (r *OrganizationsEnvironmentsFlowhooksService) DetachSharedFlowFromFlowHook(name string) *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall {
29203	c := &OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29204	c.name = name
29205	return c
29206}
29207
29208// Fields allows partial responses to be retrieved. See
29209// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
29210// for more information.
29211func (c *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall {
29212	c.urlParams_.Set("fields", googleapi.CombineFields(s))
29213	return c
29214}
29215
29216// Context sets the context to be used in this call's Do method. Any
29217// pending HTTP request will be aborted if the provided context is
29218// canceled.
29219func (c *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall) Context(ctx context.Context) *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall {
29220	c.ctx_ = ctx
29221	return c
29222}
29223
29224// Header returns an http.Header that can be modified by the caller to
29225// add HTTP headers to the request.
29226func (c *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall) Header() http.Header {
29227	if c.header_ == nil {
29228		c.header_ = make(http.Header)
29229	}
29230	return c.header_
29231}
29232
29233func (c *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall) doRequest(alt string) (*http.Response, error) {
29234	reqHeaders := make(http.Header)
29235	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
29236	for k, v := range c.header_ {
29237		reqHeaders[k] = v
29238	}
29239	reqHeaders.Set("User-Agent", c.s.userAgent())
29240	var body io.Reader = nil
29241	c.urlParams_.Set("alt", alt)
29242	c.urlParams_.Set("prettyPrint", "false")
29243	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
29244	urls += "?" + c.urlParams_.Encode()
29245	req, err := http.NewRequest("DELETE", urls, body)
29246	if err != nil {
29247		return nil, err
29248	}
29249	req.Header = reqHeaders
29250	googleapi.Expand(req.URL, map[string]string{
29251		"name": c.name,
29252	})
29253	return gensupport.SendRequest(c.ctx_, c.s.client, req)
29254}
29255
29256// Do executes the "apigee.organizations.environments.flowhooks.detachSharedFlowFromFlowHook" call.
29257// Exactly one of *GoogleCloudApigeeV1FlowHook or error will be non-nil.
29258// Any non-2xx status code is an error. Response headers are in either
29259// *GoogleCloudApigeeV1FlowHook.ServerResponse.Header or (if a response
29260// was returned at all) in error.(*googleapi.Error).Header. Use
29261// googleapi.IsNotModified to check whether the returned error was
29262// because http.StatusNotModified was returned.
29263func (c *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1FlowHook, error) {
29264	gensupport.SetOptions(c.urlParams_, opts...)
29265	res, err := c.doRequest("json")
29266	if res != nil && res.StatusCode == http.StatusNotModified {
29267		if res.Body != nil {
29268			res.Body.Close()
29269		}
29270		return nil, &googleapi.Error{
29271			Code:   res.StatusCode,
29272			Header: res.Header,
29273		}
29274	}
29275	if err != nil {
29276		return nil, err
29277	}
29278	defer googleapi.CloseBody(res)
29279	if err := googleapi.CheckResponse(res); err != nil {
29280		return nil, err
29281	}
29282	ret := &GoogleCloudApigeeV1FlowHook{
29283		ServerResponse: googleapi.ServerResponse{
29284			Header:         res.Header,
29285			HTTPStatusCode: res.StatusCode,
29286		},
29287	}
29288	target := &ret
29289	if err := gensupport.DecodeResponse(target, res); err != nil {
29290		return nil, err
29291	}
29292	return ret, nil
29293	// {
29294	//   "description": "Detaches a shared flow from a flow hook.",
29295	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/flowhooks/{flowhooksId}",
29296	//   "httpMethod": "DELETE",
29297	//   "id": "apigee.organizations.environments.flowhooks.detachSharedFlowFromFlowHook",
29298	//   "parameterOrder": [
29299	//     "name"
29300	//   ],
29301	//   "parameters": {
29302	//     "name": {
29303	//       "description": "Required. Name of the flow hook to detach in the following format: `organizations/{org}/environments/{env}/flowhooks/{flowhook}`",
29304	//       "location": "path",
29305	//       "pattern": "^organizations/[^/]+/environments/[^/]+/flowhooks/[^/]+$",
29306	//       "required": true,
29307	//       "type": "string"
29308	//     }
29309	//   },
29310	//   "path": "v1/{+name}",
29311	//   "response": {
29312	//     "$ref": "GoogleCloudApigeeV1FlowHook"
29313	//   },
29314	//   "scopes": [
29315	//     "https://www.googleapis.com/auth/cloud-platform"
29316	//   ]
29317	// }
29318
29319}
29320
29321// method id "apigee.organizations.environments.flowhooks.get":
29322
29323type OrganizationsEnvironmentsFlowhooksGetCall struct {
29324	s            *Service
29325	name         string
29326	urlParams_   gensupport.URLParams
29327	ifNoneMatch_ string
29328	ctx_         context.Context
29329	header_      http.Header
29330}
29331
29332// Get: Returns the name of the shared flow attached to the specified
29333// flow hook. If there's no shared flow attached to the flow hook, the
29334// API does not return an error; it simply does not return a name in the
29335// response.
29336//
29337// - name: Name of the flow hook in the following format:
29338//   `organizations/{org}/environments/{env}/flowhooks/{flowhook}`.
29339func (r *OrganizationsEnvironmentsFlowhooksService) Get(name string) *OrganizationsEnvironmentsFlowhooksGetCall {
29340	c := &OrganizationsEnvironmentsFlowhooksGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29341	c.name = name
29342	return c
29343}
29344
29345// Fields allows partial responses to be retrieved. See
29346// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
29347// for more information.
29348func (c *OrganizationsEnvironmentsFlowhooksGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsFlowhooksGetCall {
29349	c.urlParams_.Set("fields", googleapi.CombineFields(s))
29350	return c
29351}
29352
29353// IfNoneMatch sets the optional parameter which makes the operation
29354// fail if the object's ETag matches the given value. This is useful for
29355// getting updates only after the object has changed since the last
29356// request. Use googleapi.IsNotModified to check whether the response
29357// error from Do is the result of In-None-Match.
29358func (c *OrganizationsEnvironmentsFlowhooksGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsFlowhooksGetCall {
29359	c.ifNoneMatch_ = entityTag
29360	return c
29361}
29362
29363// Context sets the context to be used in this call's Do method. Any
29364// pending HTTP request will be aborted if the provided context is
29365// canceled.
29366func (c *OrganizationsEnvironmentsFlowhooksGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsFlowhooksGetCall {
29367	c.ctx_ = ctx
29368	return c
29369}
29370
29371// Header returns an http.Header that can be modified by the caller to
29372// add HTTP headers to the request.
29373func (c *OrganizationsEnvironmentsFlowhooksGetCall) Header() http.Header {
29374	if c.header_ == nil {
29375		c.header_ = make(http.Header)
29376	}
29377	return c.header_
29378}
29379
29380func (c *OrganizationsEnvironmentsFlowhooksGetCall) doRequest(alt string) (*http.Response, error) {
29381	reqHeaders := make(http.Header)
29382	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
29383	for k, v := range c.header_ {
29384		reqHeaders[k] = v
29385	}
29386	reqHeaders.Set("User-Agent", c.s.userAgent())
29387	if c.ifNoneMatch_ != "" {
29388		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
29389	}
29390	var body io.Reader = nil
29391	c.urlParams_.Set("alt", alt)
29392	c.urlParams_.Set("prettyPrint", "false")
29393	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
29394	urls += "?" + c.urlParams_.Encode()
29395	req, err := http.NewRequest("GET", urls, body)
29396	if err != nil {
29397		return nil, err
29398	}
29399	req.Header = reqHeaders
29400	googleapi.Expand(req.URL, map[string]string{
29401		"name": c.name,
29402	})
29403	return gensupport.SendRequest(c.ctx_, c.s.client, req)
29404}
29405
29406// Do executes the "apigee.organizations.environments.flowhooks.get" call.
29407// Exactly one of *GoogleCloudApigeeV1FlowHook or error will be non-nil.
29408// Any non-2xx status code is an error. Response headers are in either
29409// *GoogleCloudApigeeV1FlowHook.ServerResponse.Header or (if a response
29410// was returned at all) in error.(*googleapi.Error).Header. Use
29411// googleapi.IsNotModified to check whether the returned error was
29412// because http.StatusNotModified was returned.
29413func (c *OrganizationsEnvironmentsFlowhooksGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1FlowHook, error) {
29414	gensupport.SetOptions(c.urlParams_, opts...)
29415	res, err := c.doRequest("json")
29416	if res != nil && res.StatusCode == http.StatusNotModified {
29417		if res.Body != nil {
29418			res.Body.Close()
29419		}
29420		return nil, &googleapi.Error{
29421			Code:   res.StatusCode,
29422			Header: res.Header,
29423		}
29424	}
29425	if err != nil {
29426		return nil, err
29427	}
29428	defer googleapi.CloseBody(res)
29429	if err := googleapi.CheckResponse(res); err != nil {
29430		return nil, err
29431	}
29432	ret := &GoogleCloudApigeeV1FlowHook{
29433		ServerResponse: googleapi.ServerResponse{
29434			Header:         res.Header,
29435			HTTPStatusCode: res.StatusCode,
29436		},
29437	}
29438	target := &ret
29439	if err := gensupport.DecodeResponse(target, res); err != nil {
29440		return nil, err
29441	}
29442	return ret, nil
29443	// {
29444	//   "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.",
29445	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/flowhooks/{flowhooksId}",
29446	//   "httpMethod": "GET",
29447	//   "id": "apigee.organizations.environments.flowhooks.get",
29448	//   "parameterOrder": [
29449	//     "name"
29450	//   ],
29451	//   "parameters": {
29452	//     "name": {
29453	//       "description": "Required. Name of the flow hook in the following format: `organizations/{org}/environments/{env}/flowhooks/{flowhook}`",
29454	//       "location": "path",
29455	//       "pattern": "^organizations/[^/]+/environments/[^/]+/flowhooks/[^/]+$",
29456	//       "required": true,
29457	//       "type": "string"
29458	//     }
29459	//   },
29460	//   "path": "v1/{+name}",
29461	//   "response": {
29462	//     "$ref": "GoogleCloudApigeeV1FlowHook"
29463	//   },
29464	//   "scopes": [
29465	//     "https://www.googleapis.com/auth/cloud-platform"
29466	//   ]
29467	// }
29468
29469}
29470
29471// method id "apigee.organizations.environments.keystores.create":
29472
29473type OrganizationsEnvironmentsKeystoresCreateCall struct {
29474	s                           *Service
29475	parent                      string
29476	googlecloudapigeev1keystore *GoogleCloudApigeeV1Keystore
29477	urlParams_                  gensupport.URLParams
29478	ctx_                        context.Context
29479	header_                     http.Header
29480}
29481
29482// Create: Creates a keystore or truststore. - Keystore: Contains
29483// certificates and their associated keys. - Truststore: Contains
29484// trusted certificates used to validate a server's certificate. These
29485// certificates are typically self-signed certificates or certificates
29486// that are not signed by a trusted CA.
29487//
29488// - parent: Name of the environment in which to create the keystore.
29489//   Use the following format in your request:
29490//   `organizations/{org}/environments/{env}`.
29491func (r *OrganizationsEnvironmentsKeystoresService) Create(parent string, googlecloudapigeev1keystore *GoogleCloudApigeeV1Keystore) *OrganizationsEnvironmentsKeystoresCreateCall {
29492	c := &OrganizationsEnvironmentsKeystoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29493	c.parent = parent
29494	c.googlecloudapigeev1keystore = googlecloudapigeev1keystore
29495	return c
29496}
29497
29498// Name sets the optional parameter "name": Name of the keystore.
29499// Overrides the value in Keystore.
29500func (c *OrganizationsEnvironmentsKeystoresCreateCall) Name(name string) *OrganizationsEnvironmentsKeystoresCreateCall {
29501	c.urlParams_.Set("name", name)
29502	return c
29503}
29504
29505// Fields allows partial responses to be retrieved. See
29506// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
29507// for more information.
29508func (c *OrganizationsEnvironmentsKeystoresCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresCreateCall {
29509	c.urlParams_.Set("fields", googleapi.CombineFields(s))
29510	return c
29511}
29512
29513// Context sets the context to be used in this call's Do method. Any
29514// pending HTTP request will be aborted if the provided context is
29515// canceled.
29516func (c *OrganizationsEnvironmentsKeystoresCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresCreateCall {
29517	c.ctx_ = ctx
29518	return c
29519}
29520
29521// Header returns an http.Header that can be modified by the caller to
29522// add HTTP headers to the request.
29523func (c *OrganizationsEnvironmentsKeystoresCreateCall) Header() http.Header {
29524	if c.header_ == nil {
29525		c.header_ = make(http.Header)
29526	}
29527	return c.header_
29528}
29529
29530func (c *OrganizationsEnvironmentsKeystoresCreateCall) doRequest(alt string) (*http.Response, error) {
29531	reqHeaders := make(http.Header)
29532	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
29533	for k, v := range c.header_ {
29534		reqHeaders[k] = v
29535	}
29536	reqHeaders.Set("User-Agent", c.s.userAgent())
29537	var body io.Reader = nil
29538	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1keystore)
29539	if err != nil {
29540		return nil, err
29541	}
29542	reqHeaders.Set("Content-Type", "application/json")
29543	c.urlParams_.Set("alt", alt)
29544	c.urlParams_.Set("prettyPrint", "false")
29545	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keystores")
29546	urls += "?" + c.urlParams_.Encode()
29547	req, err := http.NewRequest("POST", urls, body)
29548	if err != nil {
29549		return nil, err
29550	}
29551	req.Header = reqHeaders
29552	googleapi.Expand(req.URL, map[string]string{
29553		"parent": c.parent,
29554	})
29555	return gensupport.SendRequest(c.ctx_, c.s.client, req)
29556}
29557
29558// Do executes the "apigee.organizations.environments.keystores.create" call.
29559// Exactly one of *GoogleCloudApigeeV1Keystore or error will be non-nil.
29560// Any non-2xx status code is an error. Response headers are in either
29561// *GoogleCloudApigeeV1Keystore.ServerResponse.Header or (if a response
29562// was returned at all) in error.(*googleapi.Error).Header. Use
29563// googleapi.IsNotModified to check whether the returned error was
29564// because http.StatusNotModified was returned.
29565func (c *OrganizationsEnvironmentsKeystoresCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Keystore, error) {
29566	gensupport.SetOptions(c.urlParams_, opts...)
29567	res, err := c.doRequest("json")
29568	if res != nil && res.StatusCode == http.StatusNotModified {
29569		if res.Body != nil {
29570			res.Body.Close()
29571		}
29572		return nil, &googleapi.Error{
29573			Code:   res.StatusCode,
29574			Header: res.Header,
29575		}
29576	}
29577	if err != nil {
29578		return nil, err
29579	}
29580	defer googleapi.CloseBody(res)
29581	if err := googleapi.CheckResponse(res); err != nil {
29582		return nil, err
29583	}
29584	ret := &GoogleCloudApigeeV1Keystore{
29585		ServerResponse: googleapi.ServerResponse{
29586			Header:         res.Header,
29587			HTTPStatusCode: res.StatusCode,
29588		},
29589	}
29590	target := &ret
29591	if err := gensupport.DecodeResponse(target, res); err != nil {
29592		return nil, err
29593	}
29594	return ret, nil
29595	// {
29596	//   "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.",
29597	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores",
29598	//   "httpMethod": "POST",
29599	//   "id": "apigee.organizations.environments.keystores.create",
29600	//   "parameterOrder": [
29601	//     "parent"
29602	//   ],
29603	//   "parameters": {
29604	//     "name": {
29605	//       "description": "Optional. Name of the keystore. Overrides the value in Keystore.",
29606	//       "location": "query",
29607	//       "type": "string"
29608	//     },
29609	//     "parent": {
29610	//       "description": "Required. Name of the environment in which to create the keystore. Use the following format in your request: `organizations/{org}/environments/{env}`",
29611	//       "location": "path",
29612	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
29613	//       "required": true,
29614	//       "type": "string"
29615	//     }
29616	//   },
29617	//   "path": "v1/{+parent}/keystores",
29618	//   "request": {
29619	//     "$ref": "GoogleCloudApigeeV1Keystore"
29620	//   },
29621	//   "response": {
29622	//     "$ref": "GoogleCloudApigeeV1Keystore"
29623	//   },
29624	//   "scopes": [
29625	//     "https://www.googleapis.com/auth/cloud-platform"
29626	//   ]
29627	// }
29628
29629}
29630
29631// method id "apigee.organizations.environments.keystores.delete":
29632
29633type OrganizationsEnvironmentsKeystoresDeleteCall struct {
29634	s          *Service
29635	name       string
29636	urlParams_ gensupport.URLParams
29637	ctx_       context.Context
29638	header_    http.Header
29639}
29640
29641// Delete: Deletes a keystore or truststore.
29642//
29643// - name: Name of the keystore. Use the following format in your
29644//   request:
29645//   `organizations/{org}/environments/{env}/keystores/{keystore}`.
29646func (r *OrganizationsEnvironmentsKeystoresService) Delete(name string) *OrganizationsEnvironmentsKeystoresDeleteCall {
29647	c := &OrganizationsEnvironmentsKeystoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29648	c.name = name
29649	return c
29650}
29651
29652// Fields allows partial responses to be retrieved. See
29653// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
29654// for more information.
29655func (c *OrganizationsEnvironmentsKeystoresDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresDeleteCall {
29656	c.urlParams_.Set("fields", googleapi.CombineFields(s))
29657	return c
29658}
29659
29660// Context sets the context to be used in this call's Do method. Any
29661// pending HTTP request will be aborted if the provided context is
29662// canceled.
29663func (c *OrganizationsEnvironmentsKeystoresDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresDeleteCall {
29664	c.ctx_ = ctx
29665	return c
29666}
29667
29668// Header returns an http.Header that can be modified by the caller to
29669// add HTTP headers to the request.
29670func (c *OrganizationsEnvironmentsKeystoresDeleteCall) Header() http.Header {
29671	if c.header_ == nil {
29672		c.header_ = make(http.Header)
29673	}
29674	return c.header_
29675}
29676
29677func (c *OrganizationsEnvironmentsKeystoresDeleteCall) doRequest(alt string) (*http.Response, error) {
29678	reqHeaders := make(http.Header)
29679	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
29680	for k, v := range c.header_ {
29681		reqHeaders[k] = v
29682	}
29683	reqHeaders.Set("User-Agent", c.s.userAgent())
29684	var body io.Reader = nil
29685	c.urlParams_.Set("alt", alt)
29686	c.urlParams_.Set("prettyPrint", "false")
29687	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
29688	urls += "?" + c.urlParams_.Encode()
29689	req, err := http.NewRequest("DELETE", urls, body)
29690	if err != nil {
29691		return nil, err
29692	}
29693	req.Header = reqHeaders
29694	googleapi.Expand(req.URL, map[string]string{
29695		"name": c.name,
29696	})
29697	return gensupport.SendRequest(c.ctx_, c.s.client, req)
29698}
29699
29700// Do executes the "apigee.organizations.environments.keystores.delete" call.
29701// Exactly one of *GoogleCloudApigeeV1Keystore or error will be non-nil.
29702// Any non-2xx status code is an error. Response headers are in either
29703// *GoogleCloudApigeeV1Keystore.ServerResponse.Header or (if a response
29704// was returned at all) in error.(*googleapi.Error).Header. Use
29705// googleapi.IsNotModified to check whether the returned error was
29706// because http.StatusNotModified was returned.
29707func (c *OrganizationsEnvironmentsKeystoresDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Keystore, error) {
29708	gensupport.SetOptions(c.urlParams_, opts...)
29709	res, err := c.doRequest("json")
29710	if res != nil && res.StatusCode == http.StatusNotModified {
29711		if res.Body != nil {
29712			res.Body.Close()
29713		}
29714		return nil, &googleapi.Error{
29715			Code:   res.StatusCode,
29716			Header: res.Header,
29717		}
29718	}
29719	if err != nil {
29720		return nil, err
29721	}
29722	defer googleapi.CloseBody(res)
29723	if err := googleapi.CheckResponse(res); err != nil {
29724		return nil, err
29725	}
29726	ret := &GoogleCloudApigeeV1Keystore{
29727		ServerResponse: googleapi.ServerResponse{
29728			Header:         res.Header,
29729			HTTPStatusCode: res.StatusCode,
29730		},
29731	}
29732	target := &ret
29733	if err := gensupport.DecodeResponse(target, res); err != nil {
29734		return nil, err
29735	}
29736	return ret, nil
29737	// {
29738	//   "description": "Deletes a keystore or truststore.",
29739	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}",
29740	//   "httpMethod": "DELETE",
29741	//   "id": "apigee.organizations.environments.keystores.delete",
29742	//   "parameterOrder": [
29743	//     "name"
29744	//   ],
29745	//   "parameters": {
29746	//     "name": {
29747	//       "description": "Required. Name of the keystore. Use the following format in your request: `organizations/{org}/environments/{env}/keystores/{keystore}`",
29748	//       "location": "path",
29749	//       "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+$",
29750	//       "required": true,
29751	//       "type": "string"
29752	//     }
29753	//   },
29754	//   "path": "v1/{+name}",
29755	//   "response": {
29756	//     "$ref": "GoogleCloudApigeeV1Keystore"
29757	//   },
29758	//   "scopes": [
29759	//     "https://www.googleapis.com/auth/cloud-platform"
29760	//   ]
29761	// }
29762
29763}
29764
29765// method id "apigee.organizations.environments.keystores.get":
29766
29767type OrganizationsEnvironmentsKeystoresGetCall struct {
29768	s            *Service
29769	name         string
29770	urlParams_   gensupport.URLParams
29771	ifNoneMatch_ string
29772	ctx_         context.Context
29773	header_      http.Header
29774}
29775
29776// Get: Gets a keystore or truststore.
29777//
29778// - name: Name of the keystore. Use the following format in your
29779//   request:
29780//   `organizations/{org}/environments/{env}/keystores/{keystore}`.
29781func (r *OrganizationsEnvironmentsKeystoresService) Get(name string) *OrganizationsEnvironmentsKeystoresGetCall {
29782	c := &OrganizationsEnvironmentsKeystoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29783	c.name = name
29784	return c
29785}
29786
29787// Fields allows partial responses to be retrieved. See
29788// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
29789// for more information.
29790func (c *OrganizationsEnvironmentsKeystoresGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresGetCall {
29791	c.urlParams_.Set("fields", googleapi.CombineFields(s))
29792	return c
29793}
29794
29795// IfNoneMatch sets the optional parameter which makes the operation
29796// fail if the object's ETag matches the given value. This is useful for
29797// getting updates only after the object has changed since the last
29798// request. Use googleapi.IsNotModified to check whether the response
29799// error from Do is the result of In-None-Match.
29800func (c *OrganizationsEnvironmentsKeystoresGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsKeystoresGetCall {
29801	c.ifNoneMatch_ = entityTag
29802	return c
29803}
29804
29805// Context sets the context to be used in this call's Do method. Any
29806// pending HTTP request will be aborted if the provided context is
29807// canceled.
29808func (c *OrganizationsEnvironmentsKeystoresGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresGetCall {
29809	c.ctx_ = ctx
29810	return c
29811}
29812
29813// Header returns an http.Header that can be modified by the caller to
29814// add HTTP headers to the request.
29815func (c *OrganizationsEnvironmentsKeystoresGetCall) Header() http.Header {
29816	if c.header_ == nil {
29817		c.header_ = make(http.Header)
29818	}
29819	return c.header_
29820}
29821
29822func (c *OrganizationsEnvironmentsKeystoresGetCall) doRequest(alt string) (*http.Response, error) {
29823	reqHeaders := make(http.Header)
29824	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
29825	for k, v := range c.header_ {
29826		reqHeaders[k] = v
29827	}
29828	reqHeaders.Set("User-Agent", c.s.userAgent())
29829	if c.ifNoneMatch_ != "" {
29830		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
29831	}
29832	var body io.Reader = nil
29833	c.urlParams_.Set("alt", alt)
29834	c.urlParams_.Set("prettyPrint", "false")
29835	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
29836	urls += "?" + c.urlParams_.Encode()
29837	req, err := http.NewRequest("GET", urls, body)
29838	if err != nil {
29839		return nil, err
29840	}
29841	req.Header = reqHeaders
29842	googleapi.Expand(req.URL, map[string]string{
29843		"name": c.name,
29844	})
29845	return gensupport.SendRequest(c.ctx_, c.s.client, req)
29846}
29847
29848// Do executes the "apigee.organizations.environments.keystores.get" call.
29849// Exactly one of *GoogleCloudApigeeV1Keystore or error will be non-nil.
29850// Any non-2xx status code is an error. Response headers are in either
29851// *GoogleCloudApigeeV1Keystore.ServerResponse.Header or (if a response
29852// was returned at all) in error.(*googleapi.Error).Header. Use
29853// googleapi.IsNotModified to check whether the returned error was
29854// because http.StatusNotModified was returned.
29855func (c *OrganizationsEnvironmentsKeystoresGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Keystore, error) {
29856	gensupport.SetOptions(c.urlParams_, opts...)
29857	res, err := c.doRequest("json")
29858	if res != nil && res.StatusCode == http.StatusNotModified {
29859		if res.Body != nil {
29860			res.Body.Close()
29861		}
29862		return nil, &googleapi.Error{
29863			Code:   res.StatusCode,
29864			Header: res.Header,
29865		}
29866	}
29867	if err != nil {
29868		return nil, err
29869	}
29870	defer googleapi.CloseBody(res)
29871	if err := googleapi.CheckResponse(res); err != nil {
29872		return nil, err
29873	}
29874	ret := &GoogleCloudApigeeV1Keystore{
29875		ServerResponse: googleapi.ServerResponse{
29876			Header:         res.Header,
29877			HTTPStatusCode: res.StatusCode,
29878		},
29879	}
29880	target := &ret
29881	if err := gensupport.DecodeResponse(target, res); err != nil {
29882		return nil, err
29883	}
29884	return ret, nil
29885	// {
29886	//   "description": "Gets a keystore or truststore.",
29887	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}",
29888	//   "httpMethod": "GET",
29889	//   "id": "apigee.organizations.environments.keystores.get",
29890	//   "parameterOrder": [
29891	//     "name"
29892	//   ],
29893	//   "parameters": {
29894	//     "name": {
29895	//       "description": "Required. Name of the keystore. Use the following format in your request: `organizations/{org}/environments/{env}/keystores/{keystore}`.",
29896	//       "location": "path",
29897	//       "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+$",
29898	//       "required": true,
29899	//       "type": "string"
29900	//     }
29901	//   },
29902	//   "path": "v1/{+name}",
29903	//   "response": {
29904	//     "$ref": "GoogleCloudApigeeV1Keystore"
29905	//   },
29906	//   "scopes": [
29907	//     "https://www.googleapis.com/auth/cloud-platform"
29908	//   ]
29909	// }
29910
29911}
29912
29913// method id "apigee.organizations.environments.keystores.aliases.create":
29914
29915type OrganizationsEnvironmentsKeystoresAliasesCreateCall struct {
29916	s                 *Service
29917	parent            string
29918	googleapihttpbody *GoogleApiHttpBody
29919	urlParams_        gensupport.URLParams
29920	ctx_              context.Context
29921	header_           http.Header
29922}
29923
29924// Create: Creates an alias from a key/certificate pair. The structure
29925// of the request is controlled by the `format` query parameter: -
29926// `keycertfile` - Separate PEM-encoded key and certificate files are
29927// uploaded. Set `Content-Type: multipart/form-data` and include the
29928// `keyFile`, `certFile`, and `password` (if keys are encrypted) fields
29929// in the request body. If uploading to a truststore, omit `keyFile`. -
29930// `pkcs12` - A PKCS12 file is uploaded. Set `Content-Type:
29931// multipart/form-data`, provide the file in the `file` field, and
29932// include the `password` field if the file is encrypted in the request
29933// body. - `selfsignedcert` - A new private key and certificate are
29934// generated. Set `Content-Type: application/json` and include
29935// CertificateGenerationSpec in the request body.
29936//
29937// - parent: Name of the keystore. Use the following format in your
29938//   request:
29939//   `organizations/{org}/environments/{env}/keystores/{keystore}`.
29940func (r *OrganizationsEnvironmentsKeystoresAliasesService) Create(parent string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
29941	c := &OrganizationsEnvironmentsKeystoresAliasesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29942	c.parent = parent
29943	c.googleapihttpbody = googleapihttpbody
29944	return c
29945}
29946
29947// Password sets the optional parameter "_password": DEPRECATED: For
29948// improved security, specify the password in the request body instead
29949// of using the query parameter. To specify the password in the request
29950// body, set `Content-type: multipart/form-data` part with name
29951// `password`. Password for the private key file, if required.
29952func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Password(Password string) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
29953	c.urlParams_.Set("_password", Password)
29954	return c
29955}
29956
29957// Alias sets the optional parameter "alias": Alias for the
29958// key/certificate pair. Values must match the regular expression
29959// `[\w\s-.]{1,255}`. This must be provided for all formats except
29960// `selfsignedcert`; self-signed certs may specify the alias in either
29961// this parameter or the JSON body.
29962func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Alias(alias string) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
29963	c.urlParams_.Set("alias", alias)
29964	return c
29965}
29966
29967// Format sets the optional parameter "format": Required. Format of the
29968// data. Valid values include: `selfsignedcert`, `keycertfile`, or
29969// `pkcs12`
29970func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Format(format string) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
29971	c.urlParams_.Set("format", format)
29972	return c
29973}
29974
29975// IgnoreExpiryValidation sets the optional parameter
29976// "ignoreExpiryValidation": Flag that specifies whether to ignore
29977// expiry validation. If set to `true`, no expiry validation will be
29978// performed.
29979func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) IgnoreExpiryValidation(ignoreExpiryValidation bool) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
29980	c.urlParams_.Set("ignoreExpiryValidation", fmt.Sprint(ignoreExpiryValidation))
29981	return c
29982}
29983
29984// IgnoreNewlineValidation sets the optional parameter
29985// "ignoreNewlineValidation": Flag that specifies whether to ignore
29986// newline validation. If set to `true`, no error is thrown when the
29987// file contains a certificate chain with no newline between each
29988// certificate. Defaults to `false`.
29989func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) IgnoreNewlineValidation(ignoreNewlineValidation bool) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
29990	c.urlParams_.Set("ignoreNewlineValidation", fmt.Sprint(ignoreNewlineValidation))
29991	return c
29992}
29993
29994// Fields allows partial responses to be retrieved. See
29995// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
29996// for more information.
29997func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
29998	c.urlParams_.Set("fields", googleapi.CombineFields(s))
29999	return c
30000}
30001
30002// Context sets the context to be used in this call's Do method. Any
30003// pending HTTP request will be aborted if the provided context is
30004// canceled.
30005func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
30006	c.ctx_ = ctx
30007	return c
30008}
30009
30010// Header returns an http.Header that can be modified by the caller to
30011// add HTTP headers to the request.
30012func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Header() http.Header {
30013	if c.header_ == nil {
30014		c.header_ = make(http.Header)
30015	}
30016	return c.header_
30017}
30018
30019func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) doRequest(alt string) (*http.Response, error) {
30020	reqHeaders := make(http.Header)
30021	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
30022	for k, v := range c.header_ {
30023		reqHeaders[k] = v
30024	}
30025	reqHeaders.Set("User-Agent", c.s.userAgent())
30026	var body io.Reader = nil
30027	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
30028	if err != nil {
30029		return nil, err
30030	}
30031	reqHeaders.Set("Content-Type", "application/json")
30032	c.urlParams_.Set("alt", alt)
30033	c.urlParams_.Set("prettyPrint", "false")
30034	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/aliases")
30035	urls += "?" + c.urlParams_.Encode()
30036	req, err := http.NewRequest("POST", urls, body)
30037	if err != nil {
30038		return nil, err
30039	}
30040	req.Header = reqHeaders
30041	googleapi.Expand(req.URL, map[string]string{
30042		"parent": c.parent,
30043	})
30044	return gensupport.SendRequest(c.ctx_, c.s.client, req)
30045}
30046
30047// Do executes the "apigee.organizations.environments.keystores.aliases.create" call.
30048// Exactly one of *GoogleCloudApigeeV1Alias or error will be non-nil.
30049// Any non-2xx status code is an error. Response headers are in either
30050// *GoogleCloudApigeeV1Alias.ServerResponse.Header or (if a response was
30051// returned at all) in error.(*googleapi.Error).Header. Use
30052// googleapi.IsNotModified to check whether the returned error was
30053// because http.StatusNotModified was returned.
30054func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Alias, error) {
30055	gensupport.SetOptions(c.urlParams_, opts...)
30056	res, err := c.doRequest("json")
30057	if res != nil && res.StatusCode == http.StatusNotModified {
30058		if res.Body != nil {
30059			res.Body.Close()
30060		}
30061		return nil, &googleapi.Error{
30062			Code:   res.StatusCode,
30063			Header: res.Header,
30064		}
30065	}
30066	if err != nil {
30067		return nil, err
30068	}
30069	defer googleapi.CloseBody(res)
30070	if err := googleapi.CheckResponse(res); err != nil {
30071		return nil, err
30072	}
30073	ret := &GoogleCloudApigeeV1Alias{
30074		ServerResponse: googleapi.ServerResponse{
30075			Header:         res.Header,
30076			HTTPStatusCode: res.StatusCode,
30077		},
30078	}
30079	target := &ret
30080	if err := gensupport.DecodeResponse(target, res); err != nil {
30081		return nil, err
30082	}
30083	return ret, nil
30084	// {
30085	//   "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.",
30086	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}/aliases",
30087	//   "httpMethod": "POST",
30088	//   "id": "apigee.organizations.environments.keystores.aliases.create",
30089	//   "parameterOrder": [
30090	//     "parent"
30091	//   ],
30092	//   "parameters": {
30093	//     "_password": {
30094	//       "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.",
30095	//       "location": "query",
30096	//       "type": "string"
30097	//     },
30098	//     "alias": {
30099	//       "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.",
30100	//       "location": "query",
30101	//       "type": "string"
30102	//     },
30103	//     "format": {
30104	//       "description": "Required. Format of the data. Valid values include: `selfsignedcert`, `keycertfile`, or `pkcs12`",
30105	//       "location": "query",
30106	//       "type": "string"
30107	//     },
30108	//     "ignoreExpiryValidation": {
30109	//       "description": "Flag that specifies whether to ignore expiry validation. If set to `true`, no expiry validation will be performed.",
30110	//       "location": "query",
30111	//       "type": "boolean"
30112	//     },
30113	//     "ignoreNewlineValidation": {
30114	//       "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`.",
30115	//       "location": "query",
30116	//       "type": "boolean"
30117	//     },
30118	//     "parent": {
30119	//       "description": "Required. Name of the keystore. Use the following format in your request: `organizations/{org}/environments/{env}/keystores/{keystore}`.",
30120	//       "location": "path",
30121	//       "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+$",
30122	//       "required": true,
30123	//       "type": "string"
30124	//     }
30125	//   },
30126	//   "path": "v1/{+parent}/aliases",
30127	//   "request": {
30128	//     "$ref": "GoogleApiHttpBody"
30129	//   },
30130	//   "response": {
30131	//     "$ref": "GoogleCloudApigeeV1Alias"
30132	//   },
30133	//   "scopes": [
30134	//     "https://www.googleapis.com/auth/cloud-platform"
30135	//   ]
30136	// }
30137
30138}
30139
30140// method id "apigee.organizations.environments.keystores.aliases.csr":
30141
30142type OrganizationsEnvironmentsKeystoresAliasesCsrCall struct {
30143	s            *Service
30144	name         string
30145	urlParams_   gensupport.URLParams
30146	ifNoneMatch_ string
30147	ctx_         context.Context
30148	header_      http.Header
30149}
30150
30151// Csr: Generates a PKCS #10 Certificate Signing Request for the private
30152// key in an alias.
30153//
30154// - name: Name of the alias. Use the following format in your request:
30155//   `organizations/{org}/environments/{env}/keystores/{keystore}/aliases
30156//   /{alias}`.
30157func (r *OrganizationsEnvironmentsKeystoresAliasesService) Csr(name string) *OrganizationsEnvironmentsKeystoresAliasesCsrCall {
30158	c := &OrganizationsEnvironmentsKeystoresAliasesCsrCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30159	c.name = name
30160	return c
30161}
30162
30163// Fields allows partial responses to be retrieved. See
30164// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
30165// for more information.
30166func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesCsrCall {
30167	c.urlParams_.Set("fields", googleapi.CombineFields(s))
30168	return c
30169}
30170
30171// IfNoneMatch sets the optional parameter which makes the operation
30172// fail if the object's ETag matches the given value. This is useful for
30173// getting updates only after the object has changed since the last
30174// request. Use googleapi.IsNotModified to check whether the response
30175// error from Do is the result of In-None-Match.
30176func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsKeystoresAliasesCsrCall {
30177	c.ifNoneMatch_ = entityTag
30178	return c
30179}
30180
30181// Context sets the context to be used in this call's Do method. Any
30182// pending HTTP request will be aborted if the provided context is
30183// canceled.
30184func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesCsrCall {
30185	c.ctx_ = ctx
30186	return c
30187}
30188
30189// Header returns an http.Header that can be modified by the caller to
30190// add HTTP headers to the request.
30191func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) Header() http.Header {
30192	if c.header_ == nil {
30193		c.header_ = make(http.Header)
30194	}
30195	return c.header_
30196}
30197
30198func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) doRequest(alt string) (*http.Response, error) {
30199	reqHeaders := make(http.Header)
30200	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
30201	for k, v := range c.header_ {
30202		reqHeaders[k] = v
30203	}
30204	reqHeaders.Set("User-Agent", c.s.userAgent())
30205	if c.ifNoneMatch_ != "" {
30206		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
30207	}
30208	var body io.Reader = nil
30209	c.urlParams_.Set("alt", alt)
30210	c.urlParams_.Set("prettyPrint", "false")
30211	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/csr")
30212	urls += "?" + c.urlParams_.Encode()
30213	req, err := http.NewRequest("GET", urls, body)
30214	if err != nil {
30215		return nil, err
30216	}
30217	req.Header = reqHeaders
30218	googleapi.Expand(req.URL, map[string]string{
30219		"name": c.name,
30220	})
30221	return gensupport.SendRequest(c.ctx_, c.s.client, req)
30222}
30223
30224// Do executes the "apigee.organizations.environments.keystores.aliases.csr" call.
30225// Exactly one of *GoogleApiHttpBody or error will be non-nil. Any
30226// non-2xx status code is an error. Response headers are in either
30227// *GoogleApiHttpBody.ServerResponse.Header or (if a response was
30228// returned at all) in error.(*googleapi.Error).Header. Use
30229// googleapi.IsNotModified to check whether the returned error was
30230// because http.StatusNotModified was returned.
30231func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
30232	gensupport.SetOptions(c.urlParams_, opts...)
30233	res, err := c.doRequest("json")
30234	if res != nil && res.StatusCode == http.StatusNotModified {
30235		if res.Body != nil {
30236			res.Body.Close()
30237		}
30238		return nil, &googleapi.Error{
30239			Code:   res.StatusCode,
30240			Header: res.Header,
30241		}
30242	}
30243	if err != nil {
30244		return nil, err
30245	}
30246	defer googleapi.CloseBody(res)
30247	if err := googleapi.CheckResponse(res); err != nil {
30248		return nil, err
30249	}
30250	ret := &GoogleApiHttpBody{
30251		ServerResponse: googleapi.ServerResponse{
30252			Header:         res.Header,
30253			HTTPStatusCode: res.StatusCode,
30254		},
30255	}
30256	target := &ret
30257	if err := gensupport.DecodeResponse(target, res); err != nil {
30258		return nil, err
30259	}
30260	return ret, nil
30261	// {
30262	//   "description": "Generates a PKCS #10 Certificate Signing Request for the private key in an alias.",
30263	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}/aliases/{aliasesId}/csr",
30264	//   "httpMethod": "GET",
30265	//   "id": "apigee.organizations.environments.keystores.aliases.csr",
30266	//   "parameterOrder": [
30267	//     "name"
30268	//   ],
30269	//   "parameters": {
30270	//     "name": {
30271	//       "description": "Required. Name of the alias. Use the following format in your request: `organizations/{org}/environments/{env}/keystores/{keystore}/aliases/{alias}`.",
30272	//       "location": "path",
30273	//       "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+/aliases/[^/]+$",
30274	//       "required": true,
30275	//       "type": "string"
30276	//     }
30277	//   },
30278	//   "path": "v1/{+name}/csr",
30279	//   "response": {
30280	//     "$ref": "GoogleApiHttpBody"
30281	//   },
30282	//   "scopes": [
30283	//     "https://www.googleapis.com/auth/cloud-platform"
30284	//   ]
30285	// }
30286
30287}
30288
30289// method id "apigee.organizations.environments.keystores.aliases.delete":
30290
30291type OrganizationsEnvironmentsKeystoresAliasesDeleteCall struct {
30292	s          *Service
30293	name       string
30294	urlParams_ gensupport.URLParams
30295	ctx_       context.Context
30296	header_    http.Header
30297}
30298
30299// Delete: Deletes an alias.
30300//
30301// - name: Name of the alias. Use the following format in your request:
30302//   `organizations/{org}/environments/{env}/keystores/{keystore}/aliases
30303//   /{alias}`.
30304func (r *OrganizationsEnvironmentsKeystoresAliasesService) Delete(name string) *OrganizationsEnvironmentsKeystoresAliasesDeleteCall {
30305	c := &OrganizationsEnvironmentsKeystoresAliasesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30306	c.name = name
30307	return c
30308}
30309
30310// Fields allows partial responses to be retrieved. See
30311// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
30312// for more information.
30313func (c *OrganizationsEnvironmentsKeystoresAliasesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesDeleteCall {
30314	c.urlParams_.Set("fields", googleapi.CombineFields(s))
30315	return c
30316}
30317
30318// Context sets the context to be used in this call's Do method. Any
30319// pending HTTP request will be aborted if the provided context is
30320// canceled.
30321func (c *OrganizationsEnvironmentsKeystoresAliasesDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesDeleteCall {
30322	c.ctx_ = ctx
30323	return c
30324}
30325
30326// Header returns an http.Header that can be modified by the caller to
30327// add HTTP headers to the request.
30328func (c *OrganizationsEnvironmentsKeystoresAliasesDeleteCall) Header() http.Header {
30329	if c.header_ == nil {
30330		c.header_ = make(http.Header)
30331	}
30332	return c.header_
30333}
30334
30335func (c *OrganizationsEnvironmentsKeystoresAliasesDeleteCall) doRequest(alt string) (*http.Response, error) {
30336	reqHeaders := make(http.Header)
30337	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
30338	for k, v := range c.header_ {
30339		reqHeaders[k] = v
30340	}
30341	reqHeaders.Set("User-Agent", c.s.userAgent())
30342	var body io.Reader = nil
30343	c.urlParams_.Set("alt", alt)
30344	c.urlParams_.Set("prettyPrint", "false")
30345	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
30346	urls += "?" + c.urlParams_.Encode()
30347	req, err := http.NewRequest("DELETE", urls, body)
30348	if err != nil {
30349		return nil, err
30350	}
30351	req.Header = reqHeaders
30352	googleapi.Expand(req.URL, map[string]string{
30353		"name": c.name,
30354	})
30355	return gensupport.SendRequest(c.ctx_, c.s.client, req)
30356}
30357
30358// Do executes the "apigee.organizations.environments.keystores.aliases.delete" call.
30359// Exactly one of *GoogleCloudApigeeV1Alias or error will be non-nil.
30360// Any non-2xx status code is an error. Response headers are in either
30361// *GoogleCloudApigeeV1Alias.ServerResponse.Header or (if a response was
30362// returned at all) in error.(*googleapi.Error).Header. Use
30363// googleapi.IsNotModified to check whether the returned error was
30364// because http.StatusNotModified was returned.
30365func (c *OrganizationsEnvironmentsKeystoresAliasesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Alias, error) {
30366	gensupport.SetOptions(c.urlParams_, opts...)
30367	res, err := c.doRequest("json")
30368	if res != nil && res.StatusCode == http.StatusNotModified {
30369		if res.Body != nil {
30370			res.Body.Close()
30371		}
30372		return nil, &googleapi.Error{
30373			Code:   res.StatusCode,
30374			Header: res.Header,
30375		}
30376	}
30377	if err != nil {
30378		return nil, err
30379	}
30380	defer googleapi.CloseBody(res)
30381	if err := googleapi.CheckResponse(res); err != nil {
30382		return nil, err
30383	}
30384	ret := &GoogleCloudApigeeV1Alias{
30385		ServerResponse: googleapi.ServerResponse{
30386			Header:         res.Header,
30387			HTTPStatusCode: res.StatusCode,
30388		},
30389	}
30390	target := &ret
30391	if err := gensupport.DecodeResponse(target, res); err != nil {
30392		return nil, err
30393	}
30394	return ret, nil
30395	// {
30396	//   "description": "Deletes an alias.",
30397	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}/aliases/{aliasesId}",
30398	//   "httpMethod": "DELETE",
30399	//   "id": "apigee.organizations.environments.keystores.aliases.delete",
30400	//   "parameterOrder": [
30401	//     "name"
30402	//   ],
30403	//   "parameters": {
30404	//     "name": {
30405	//       "description": "Required. Name of the alias. Use the following format in your request: `organizations/{org}/environments/{env}/keystores/{keystore}/aliases/{alias}`.",
30406	//       "location": "path",
30407	//       "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+/aliases/[^/]+$",
30408	//       "required": true,
30409	//       "type": "string"
30410	//     }
30411	//   },
30412	//   "path": "v1/{+name}",
30413	//   "response": {
30414	//     "$ref": "GoogleCloudApigeeV1Alias"
30415	//   },
30416	//   "scopes": [
30417	//     "https://www.googleapis.com/auth/cloud-platform"
30418	//   ]
30419	// }
30420
30421}
30422
30423// method id "apigee.organizations.environments.keystores.aliases.get":
30424
30425type OrganizationsEnvironmentsKeystoresAliasesGetCall struct {
30426	s            *Service
30427	name         string
30428	urlParams_   gensupport.URLParams
30429	ifNoneMatch_ string
30430	ctx_         context.Context
30431	header_      http.Header
30432}
30433
30434// Get: Gets an alias.
30435//
30436// - name: Name of the alias. Use the following format in your request:
30437//   `organizations/{org}/environments/{env}/keystores/{keystore}/aliases
30438//   /{alias}`.
30439func (r *OrganizationsEnvironmentsKeystoresAliasesService) Get(name string) *OrganizationsEnvironmentsKeystoresAliasesGetCall {
30440	c := &OrganizationsEnvironmentsKeystoresAliasesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30441	c.name = name
30442	return c
30443}
30444
30445// Fields allows partial responses to be retrieved. See
30446// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
30447// for more information.
30448func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesGetCall {
30449	c.urlParams_.Set("fields", googleapi.CombineFields(s))
30450	return c
30451}
30452
30453// IfNoneMatch sets the optional parameter which makes the operation
30454// fail if the object's ETag matches the given value. This is useful for
30455// getting updates only after the object has changed since the last
30456// request. Use googleapi.IsNotModified to check whether the response
30457// error from Do is the result of In-None-Match.
30458func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsKeystoresAliasesGetCall {
30459	c.ifNoneMatch_ = entityTag
30460	return c
30461}
30462
30463// Context sets the context to be used in this call's Do method. Any
30464// pending HTTP request will be aborted if the provided context is
30465// canceled.
30466func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesGetCall {
30467	c.ctx_ = ctx
30468	return c
30469}
30470
30471// Header returns an http.Header that can be modified by the caller to
30472// add HTTP headers to the request.
30473func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) Header() http.Header {
30474	if c.header_ == nil {
30475		c.header_ = make(http.Header)
30476	}
30477	return c.header_
30478}
30479
30480func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) doRequest(alt string) (*http.Response, error) {
30481	reqHeaders := make(http.Header)
30482	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
30483	for k, v := range c.header_ {
30484		reqHeaders[k] = v
30485	}
30486	reqHeaders.Set("User-Agent", c.s.userAgent())
30487	if c.ifNoneMatch_ != "" {
30488		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
30489	}
30490	var body io.Reader = nil
30491	c.urlParams_.Set("alt", alt)
30492	c.urlParams_.Set("prettyPrint", "false")
30493	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
30494	urls += "?" + c.urlParams_.Encode()
30495	req, err := http.NewRequest("GET", urls, body)
30496	if err != nil {
30497		return nil, err
30498	}
30499	req.Header = reqHeaders
30500	googleapi.Expand(req.URL, map[string]string{
30501		"name": c.name,
30502	})
30503	return gensupport.SendRequest(c.ctx_, c.s.client, req)
30504}
30505
30506// Do executes the "apigee.organizations.environments.keystores.aliases.get" call.
30507// Exactly one of *GoogleCloudApigeeV1Alias or error will be non-nil.
30508// Any non-2xx status code is an error. Response headers are in either
30509// *GoogleCloudApigeeV1Alias.ServerResponse.Header or (if a response was
30510// returned at all) in error.(*googleapi.Error).Header. Use
30511// googleapi.IsNotModified to check whether the returned error was
30512// because http.StatusNotModified was returned.
30513func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Alias, error) {
30514	gensupport.SetOptions(c.urlParams_, opts...)
30515	res, err := c.doRequest("json")
30516	if res != nil && res.StatusCode == http.StatusNotModified {
30517		if res.Body != nil {
30518			res.Body.Close()
30519		}
30520		return nil, &googleapi.Error{
30521			Code:   res.StatusCode,
30522			Header: res.Header,
30523		}
30524	}
30525	if err != nil {
30526		return nil, err
30527	}
30528	defer googleapi.CloseBody(res)
30529	if err := googleapi.CheckResponse(res); err != nil {
30530		return nil, err
30531	}
30532	ret := &GoogleCloudApigeeV1Alias{
30533		ServerResponse: googleapi.ServerResponse{
30534			Header:         res.Header,
30535			HTTPStatusCode: res.StatusCode,
30536		},
30537	}
30538	target := &ret
30539	if err := gensupport.DecodeResponse(target, res); err != nil {
30540		return nil, err
30541	}
30542	return ret, nil
30543	// {
30544	//   "description": "Gets an alias.",
30545	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}/aliases/{aliasesId}",
30546	//   "httpMethod": "GET",
30547	//   "id": "apigee.organizations.environments.keystores.aliases.get",
30548	//   "parameterOrder": [
30549	//     "name"
30550	//   ],
30551	//   "parameters": {
30552	//     "name": {
30553	//       "description": "Required. Name of the alias. Use the following format in your request: `organizations/{org}/environments/{env}/keystores/{keystore}/aliases/{alias}`.",
30554	//       "location": "path",
30555	//       "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+/aliases/[^/]+$",
30556	//       "required": true,
30557	//       "type": "string"
30558	//     }
30559	//   },
30560	//   "path": "v1/{+name}",
30561	//   "response": {
30562	//     "$ref": "GoogleCloudApigeeV1Alias"
30563	//   },
30564	//   "scopes": [
30565	//     "https://www.googleapis.com/auth/cloud-platform"
30566	//   ]
30567	// }
30568
30569}
30570
30571// method id "apigee.organizations.environments.keystores.aliases.getCertificate":
30572
30573type OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall struct {
30574	s            *Service
30575	name         string
30576	urlParams_   gensupport.URLParams
30577	ifNoneMatch_ string
30578	ctx_         context.Context
30579	header_      http.Header
30580}
30581
30582// GetCertificate: Gets the certificate from an alias in PEM-encoded
30583// form.
30584//
30585// - name: Name of the alias. Use the following format in your request:
30586//   `organizations/{org}/environments/{env}/keystores/{keystore}/aliases
30587//   /{alias}`.
30588func (r *OrganizationsEnvironmentsKeystoresAliasesService) GetCertificate(name string) *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall {
30589	c := &OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30590	c.name = name
30591	return c
30592}
30593
30594// Fields allows partial responses to be retrieved. See
30595// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
30596// for more information.
30597func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall {
30598	c.urlParams_.Set("fields", googleapi.CombineFields(s))
30599	return c
30600}
30601
30602// IfNoneMatch sets the optional parameter which makes the operation
30603// fail if the object's ETag matches the given value. This is useful for
30604// getting updates only after the object has changed since the last
30605// request. Use googleapi.IsNotModified to check whether the response
30606// error from Do is the result of In-None-Match.
30607func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall {
30608	c.ifNoneMatch_ = entityTag
30609	return c
30610}
30611
30612// Context sets the context to be used in this call's Do method. Any
30613// pending HTTP request will be aborted if the provided context is
30614// canceled.
30615func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall {
30616	c.ctx_ = ctx
30617	return c
30618}
30619
30620// Header returns an http.Header that can be modified by the caller to
30621// add HTTP headers to the request.
30622func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) Header() http.Header {
30623	if c.header_ == nil {
30624		c.header_ = make(http.Header)
30625	}
30626	return c.header_
30627}
30628
30629func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) doRequest(alt string) (*http.Response, error) {
30630	reqHeaders := make(http.Header)
30631	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
30632	for k, v := range c.header_ {
30633		reqHeaders[k] = v
30634	}
30635	reqHeaders.Set("User-Agent", c.s.userAgent())
30636	if c.ifNoneMatch_ != "" {
30637		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
30638	}
30639	var body io.Reader = nil
30640	c.urlParams_.Set("alt", alt)
30641	c.urlParams_.Set("prettyPrint", "false")
30642	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/certificate")
30643	urls += "?" + c.urlParams_.Encode()
30644	req, err := http.NewRequest("GET", urls, body)
30645	if err != nil {
30646		return nil, err
30647	}
30648	req.Header = reqHeaders
30649	googleapi.Expand(req.URL, map[string]string{
30650		"name": c.name,
30651	})
30652	return gensupport.SendRequest(c.ctx_, c.s.client, req)
30653}
30654
30655// Do executes the "apigee.organizations.environments.keystores.aliases.getCertificate" call.
30656// Exactly one of *GoogleApiHttpBody or error will be non-nil. Any
30657// non-2xx status code is an error. Response headers are in either
30658// *GoogleApiHttpBody.ServerResponse.Header or (if a response was
30659// returned at all) in error.(*googleapi.Error).Header. Use
30660// googleapi.IsNotModified to check whether the returned error was
30661// because http.StatusNotModified was returned.
30662func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
30663	gensupport.SetOptions(c.urlParams_, opts...)
30664	res, err := c.doRequest("json")
30665	if res != nil && res.StatusCode == http.StatusNotModified {
30666		if res.Body != nil {
30667			res.Body.Close()
30668		}
30669		return nil, &googleapi.Error{
30670			Code:   res.StatusCode,
30671			Header: res.Header,
30672		}
30673	}
30674	if err != nil {
30675		return nil, err
30676	}
30677	defer googleapi.CloseBody(res)
30678	if err := googleapi.CheckResponse(res); err != nil {
30679		return nil, err
30680	}
30681	ret := &GoogleApiHttpBody{
30682		ServerResponse: googleapi.ServerResponse{
30683			Header:         res.Header,
30684			HTTPStatusCode: res.StatusCode,
30685		},
30686	}
30687	target := &ret
30688	if err := gensupport.DecodeResponse(target, res); err != nil {
30689		return nil, err
30690	}
30691	return ret, nil
30692	// {
30693	//   "description": "Gets the certificate from an alias in PEM-encoded form.",
30694	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}/aliases/{aliasesId}/certificate",
30695	//   "httpMethod": "GET",
30696	//   "id": "apigee.organizations.environments.keystores.aliases.getCertificate",
30697	//   "parameterOrder": [
30698	//     "name"
30699	//   ],
30700	//   "parameters": {
30701	//     "name": {
30702	//       "description": "Required. Name of the alias. Use the following format in your request: `organizations/{org}/environments/{env}/keystores/{keystore}/aliases/{alias}`.",
30703	//       "location": "path",
30704	//       "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+/aliases/[^/]+$",
30705	//       "required": true,
30706	//       "type": "string"
30707	//     }
30708	//   },
30709	//   "path": "v1/{+name}/certificate",
30710	//   "response": {
30711	//     "$ref": "GoogleApiHttpBody"
30712	//   },
30713	//   "scopes": [
30714	//     "https://www.googleapis.com/auth/cloud-platform"
30715	//   ]
30716	// }
30717
30718}
30719
30720// method id "apigee.organizations.environments.keystores.aliases.update":
30721
30722type OrganizationsEnvironmentsKeystoresAliasesUpdateCall struct {
30723	s                 *Service
30724	name              string
30725	googleapihttpbody *GoogleApiHttpBody
30726	urlParams_        gensupport.URLParams
30727	ctx_              context.Context
30728	header_           http.Header
30729}
30730
30731// Update: Updates the certificate in an alias.
30732//
30733// - name: Name of the alias. Use the following format in your request:
30734//   `organizations/{org}/environments/{env}/keystores/{keystore}/aliases
30735//   /{alias}`.
30736func (r *OrganizationsEnvironmentsKeystoresAliasesService) Update(name string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsEnvironmentsKeystoresAliasesUpdateCall {
30737	c := &OrganizationsEnvironmentsKeystoresAliasesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30738	c.name = name
30739	c.googleapihttpbody = googleapihttpbody
30740	return c
30741}
30742
30743// IgnoreExpiryValidation sets the optional parameter
30744// "ignoreExpiryValidation": Required. Flag that specifies whether to
30745// ignore expiry validation. If set to `true`, no expiry validation will
30746// be performed.
30747func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) IgnoreExpiryValidation(ignoreExpiryValidation bool) *OrganizationsEnvironmentsKeystoresAliasesUpdateCall {
30748	c.urlParams_.Set("ignoreExpiryValidation", fmt.Sprint(ignoreExpiryValidation))
30749	return c
30750}
30751
30752// IgnoreNewlineValidation sets the optional parameter
30753// "ignoreNewlineValidation": Flag that specifies whether to ignore
30754// newline validation. If set to `true`, no error is thrown when the
30755// file contains a certificate chain with no newline between each
30756// certificate. Defaults to `false`.
30757func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) IgnoreNewlineValidation(ignoreNewlineValidation bool) *OrganizationsEnvironmentsKeystoresAliasesUpdateCall {
30758	c.urlParams_.Set("ignoreNewlineValidation", fmt.Sprint(ignoreNewlineValidation))
30759	return c
30760}
30761
30762// Fields allows partial responses to be retrieved. See
30763// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
30764// for more information.
30765func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesUpdateCall {
30766	c.urlParams_.Set("fields", googleapi.CombineFields(s))
30767	return c
30768}
30769
30770// Context sets the context to be used in this call's Do method. Any
30771// pending HTTP request will be aborted if the provided context is
30772// canceled.
30773func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesUpdateCall {
30774	c.ctx_ = ctx
30775	return c
30776}
30777
30778// Header returns an http.Header that can be modified by the caller to
30779// add HTTP headers to the request.
30780func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) Header() http.Header {
30781	if c.header_ == nil {
30782		c.header_ = make(http.Header)
30783	}
30784	return c.header_
30785}
30786
30787func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) doRequest(alt string) (*http.Response, error) {
30788	reqHeaders := make(http.Header)
30789	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
30790	for k, v := range c.header_ {
30791		reqHeaders[k] = v
30792	}
30793	reqHeaders.Set("User-Agent", c.s.userAgent())
30794	var body io.Reader = nil
30795	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
30796	if err != nil {
30797		return nil, err
30798	}
30799	reqHeaders.Set("Content-Type", "application/json")
30800	c.urlParams_.Set("alt", alt)
30801	c.urlParams_.Set("prettyPrint", "false")
30802	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
30803	urls += "?" + c.urlParams_.Encode()
30804	req, err := http.NewRequest("PUT", urls, body)
30805	if err != nil {
30806		return nil, err
30807	}
30808	req.Header = reqHeaders
30809	googleapi.Expand(req.URL, map[string]string{
30810		"name": c.name,
30811	})
30812	return gensupport.SendRequest(c.ctx_, c.s.client, req)
30813}
30814
30815// Do executes the "apigee.organizations.environments.keystores.aliases.update" call.
30816// Exactly one of *GoogleCloudApigeeV1Alias or error will be non-nil.
30817// Any non-2xx status code is an error. Response headers are in either
30818// *GoogleCloudApigeeV1Alias.ServerResponse.Header or (if a response was
30819// returned at all) in error.(*googleapi.Error).Header. Use
30820// googleapi.IsNotModified to check whether the returned error was
30821// because http.StatusNotModified was returned.
30822func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Alias, error) {
30823	gensupport.SetOptions(c.urlParams_, opts...)
30824	res, err := c.doRequest("json")
30825	if res != nil && res.StatusCode == http.StatusNotModified {
30826		if res.Body != nil {
30827			res.Body.Close()
30828		}
30829		return nil, &googleapi.Error{
30830			Code:   res.StatusCode,
30831			Header: res.Header,
30832		}
30833	}
30834	if err != nil {
30835		return nil, err
30836	}
30837	defer googleapi.CloseBody(res)
30838	if err := googleapi.CheckResponse(res); err != nil {
30839		return nil, err
30840	}
30841	ret := &GoogleCloudApigeeV1Alias{
30842		ServerResponse: googleapi.ServerResponse{
30843			Header:         res.Header,
30844			HTTPStatusCode: res.StatusCode,
30845		},
30846	}
30847	target := &ret
30848	if err := gensupport.DecodeResponse(target, res); err != nil {
30849		return nil, err
30850	}
30851	return ret, nil
30852	// {
30853	//   "description": "Updates the certificate in an alias.",
30854	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}/aliases/{aliasesId}",
30855	//   "httpMethod": "PUT",
30856	//   "id": "apigee.organizations.environments.keystores.aliases.update",
30857	//   "parameterOrder": [
30858	//     "name"
30859	//   ],
30860	//   "parameters": {
30861	//     "ignoreExpiryValidation": {
30862	//       "description": "Required. Flag that specifies whether to ignore expiry validation. If set to `true`, no expiry validation will be performed.",
30863	//       "location": "query",
30864	//       "type": "boolean"
30865	//     },
30866	//     "ignoreNewlineValidation": {
30867	//       "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`.",
30868	//       "location": "query",
30869	//       "type": "boolean"
30870	//     },
30871	//     "name": {
30872	//       "description": "Required. Name of the alias. Use the following format in your request: `organizations/{org}/environments/{env}/keystores/{keystore}/aliases/{alias}`",
30873	//       "location": "path",
30874	//       "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+/aliases/[^/]+$",
30875	//       "required": true,
30876	//       "type": "string"
30877	//     }
30878	//   },
30879	//   "path": "v1/{+name}",
30880	//   "request": {
30881	//     "$ref": "GoogleApiHttpBody"
30882	//   },
30883	//   "response": {
30884	//     "$ref": "GoogleCloudApigeeV1Alias"
30885	//   },
30886	//   "scopes": [
30887	//     "https://www.googleapis.com/auth/cloud-platform"
30888	//   ]
30889	// }
30890
30891}
30892
30893// method id "apigee.organizations.environments.keyvaluemaps.create":
30894
30895type OrganizationsEnvironmentsKeyvaluemapsCreateCall struct {
30896	s                              *Service
30897	parent                         string
30898	googlecloudapigeev1keyvaluemap *GoogleCloudApigeeV1KeyValueMap
30899	urlParams_                     gensupport.URLParams
30900	ctx_                           context.Context
30901	header_                        http.Header
30902}
30903
30904// Create: Creates a key value map in an environment.
30905//
30906// - parent: The name of the environment in which to create the key
30907//   value map. Must be of the form
30908//   `organizations/{organization}/environments/{environment}`.
30909func (r *OrganizationsEnvironmentsKeyvaluemapsService) Create(parent string, googlecloudapigeev1keyvaluemap *GoogleCloudApigeeV1KeyValueMap) *OrganizationsEnvironmentsKeyvaluemapsCreateCall {
30910	c := &OrganizationsEnvironmentsKeyvaluemapsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30911	c.parent = parent
30912	c.googlecloudapigeev1keyvaluemap = googlecloudapigeev1keyvaluemap
30913	return c
30914}
30915
30916// Fields allows partial responses to be retrieved. See
30917// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
30918// for more information.
30919func (c *OrganizationsEnvironmentsKeyvaluemapsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeyvaluemapsCreateCall {
30920	c.urlParams_.Set("fields", googleapi.CombineFields(s))
30921	return c
30922}
30923
30924// Context sets the context to be used in this call's Do method. Any
30925// pending HTTP request will be aborted if the provided context is
30926// canceled.
30927func (c *OrganizationsEnvironmentsKeyvaluemapsCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeyvaluemapsCreateCall {
30928	c.ctx_ = ctx
30929	return c
30930}
30931
30932// Header returns an http.Header that can be modified by the caller to
30933// add HTTP headers to the request.
30934func (c *OrganizationsEnvironmentsKeyvaluemapsCreateCall) Header() http.Header {
30935	if c.header_ == nil {
30936		c.header_ = make(http.Header)
30937	}
30938	return c.header_
30939}
30940
30941func (c *OrganizationsEnvironmentsKeyvaluemapsCreateCall) doRequest(alt string) (*http.Response, error) {
30942	reqHeaders := make(http.Header)
30943	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
30944	for k, v := range c.header_ {
30945		reqHeaders[k] = v
30946	}
30947	reqHeaders.Set("User-Agent", c.s.userAgent())
30948	var body io.Reader = nil
30949	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1keyvaluemap)
30950	if err != nil {
30951		return nil, err
30952	}
30953	reqHeaders.Set("Content-Type", "application/json")
30954	c.urlParams_.Set("alt", alt)
30955	c.urlParams_.Set("prettyPrint", "false")
30956	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keyvaluemaps")
30957	urls += "?" + c.urlParams_.Encode()
30958	req, err := http.NewRequest("POST", urls, body)
30959	if err != nil {
30960		return nil, err
30961	}
30962	req.Header = reqHeaders
30963	googleapi.Expand(req.URL, map[string]string{
30964		"parent": c.parent,
30965	})
30966	return gensupport.SendRequest(c.ctx_, c.s.client, req)
30967}
30968
30969// Do executes the "apigee.organizations.environments.keyvaluemaps.create" call.
30970// Exactly one of *GoogleCloudApigeeV1KeyValueMap or error will be
30971// non-nil. Any non-2xx status code is an error. Response headers are in
30972// either *GoogleCloudApigeeV1KeyValueMap.ServerResponse.Header or (if a
30973// response was returned at all) in error.(*googleapi.Error).Header. Use
30974// googleapi.IsNotModified to check whether the returned error was
30975// because http.StatusNotModified was returned.
30976func (c *OrganizationsEnvironmentsKeyvaluemapsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueMap, error) {
30977	gensupport.SetOptions(c.urlParams_, opts...)
30978	res, err := c.doRequest("json")
30979	if res != nil && res.StatusCode == http.StatusNotModified {
30980		if res.Body != nil {
30981			res.Body.Close()
30982		}
30983		return nil, &googleapi.Error{
30984			Code:   res.StatusCode,
30985			Header: res.Header,
30986		}
30987	}
30988	if err != nil {
30989		return nil, err
30990	}
30991	defer googleapi.CloseBody(res)
30992	if err := googleapi.CheckResponse(res); err != nil {
30993		return nil, err
30994	}
30995	ret := &GoogleCloudApigeeV1KeyValueMap{
30996		ServerResponse: googleapi.ServerResponse{
30997			Header:         res.Header,
30998			HTTPStatusCode: res.StatusCode,
30999		},
31000	}
31001	target := &ret
31002	if err := gensupport.DecodeResponse(target, res); err != nil {
31003		return nil, err
31004	}
31005	return ret, nil
31006	// {
31007	//   "description": "Creates a key value map in an environment.",
31008	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keyvaluemaps",
31009	//   "httpMethod": "POST",
31010	//   "id": "apigee.organizations.environments.keyvaluemaps.create",
31011	//   "parameterOrder": [
31012	//     "parent"
31013	//   ],
31014	//   "parameters": {
31015	//     "parent": {
31016	//       "description": "Required. The name of the environment in which to create the key value map. Must be of the form `organizations/{organization}/environments/{environment}`.",
31017	//       "location": "path",
31018	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
31019	//       "required": true,
31020	//       "type": "string"
31021	//     }
31022	//   },
31023	//   "path": "v1/{+parent}/keyvaluemaps",
31024	//   "request": {
31025	//     "$ref": "GoogleCloudApigeeV1KeyValueMap"
31026	//   },
31027	//   "response": {
31028	//     "$ref": "GoogleCloudApigeeV1KeyValueMap"
31029	//   },
31030	//   "scopes": [
31031	//     "https://www.googleapis.com/auth/cloud-platform"
31032	//   ]
31033	// }
31034
31035}
31036
31037// method id "apigee.organizations.environments.keyvaluemaps.delete":
31038
31039type OrganizationsEnvironmentsKeyvaluemapsDeleteCall struct {
31040	s          *Service
31041	name       string
31042	urlParams_ gensupport.URLParams
31043	ctx_       context.Context
31044	header_    http.Header
31045}
31046
31047// Delete: Delete a key value map in an environment.
31048//
31049// - name: The name of the key value map. Must be of the form
31050//   `organizations/{organization}/environments/{environment}/keyvaluemap
31051//   s/{keyvaluemap}`.
31052func (r *OrganizationsEnvironmentsKeyvaluemapsService) Delete(name string) *OrganizationsEnvironmentsKeyvaluemapsDeleteCall {
31053	c := &OrganizationsEnvironmentsKeyvaluemapsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31054	c.name = name
31055	return c
31056}
31057
31058// Fields allows partial responses to be retrieved. See
31059// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
31060// for more information.
31061func (c *OrganizationsEnvironmentsKeyvaluemapsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeyvaluemapsDeleteCall {
31062	c.urlParams_.Set("fields", googleapi.CombineFields(s))
31063	return c
31064}
31065
31066// Context sets the context to be used in this call's Do method. Any
31067// pending HTTP request will be aborted if the provided context is
31068// canceled.
31069func (c *OrganizationsEnvironmentsKeyvaluemapsDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeyvaluemapsDeleteCall {
31070	c.ctx_ = ctx
31071	return c
31072}
31073
31074// Header returns an http.Header that can be modified by the caller to
31075// add HTTP headers to the request.
31076func (c *OrganizationsEnvironmentsKeyvaluemapsDeleteCall) Header() http.Header {
31077	if c.header_ == nil {
31078		c.header_ = make(http.Header)
31079	}
31080	return c.header_
31081}
31082
31083func (c *OrganizationsEnvironmentsKeyvaluemapsDeleteCall) doRequest(alt string) (*http.Response, error) {
31084	reqHeaders := make(http.Header)
31085	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
31086	for k, v := range c.header_ {
31087		reqHeaders[k] = v
31088	}
31089	reqHeaders.Set("User-Agent", c.s.userAgent())
31090	var body io.Reader = nil
31091	c.urlParams_.Set("alt", alt)
31092	c.urlParams_.Set("prettyPrint", "false")
31093	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
31094	urls += "?" + c.urlParams_.Encode()
31095	req, err := http.NewRequest("DELETE", urls, body)
31096	if err != nil {
31097		return nil, err
31098	}
31099	req.Header = reqHeaders
31100	googleapi.Expand(req.URL, map[string]string{
31101		"name": c.name,
31102	})
31103	return gensupport.SendRequest(c.ctx_, c.s.client, req)
31104}
31105
31106// Do executes the "apigee.organizations.environments.keyvaluemaps.delete" call.
31107// Exactly one of *GoogleCloudApigeeV1KeyValueMap or error will be
31108// non-nil. Any non-2xx status code is an error. Response headers are in
31109// either *GoogleCloudApigeeV1KeyValueMap.ServerResponse.Header or (if a
31110// response was returned at all) in error.(*googleapi.Error).Header. Use
31111// googleapi.IsNotModified to check whether the returned error was
31112// because http.StatusNotModified was returned.
31113func (c *OrganizationsEnvironmentsKeyvaluemapsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueMap, error) {
31114	gensupport.SetOptions(c.urlParams_, opts...)
31115	res, err := c.doRequest("json")
31116	if res != nil && res.StatusCode == http.StatusNotModified {
31117		if res.Body != nil {
31118			res.Body.Close()
31119		}
31120		return nil, &googleapi.Error{
31121			Code:   res.StatusCode,
31122			Header: res.Header,
31123		}
31124	}
31125	if err != nil {
31126		return nil, err
31127	}
31128	defer googleapi.CloseBody(res)
31129	if err := googleapi.CheckResponse(res); err != nil {
31130		return nil, err
31131	}
31132	ret := &GoogleCloudApigeeV1KeyValueMap{
31133		ServerResponse: googleapi.ServerResponse{
31134			Header:         res.Header,
31135			HTTPStatusCode: res.StatusCode,
31136		},
31137	}
31138	target := &ret
31139	if err := gensupport.DecodeResponse(target, res); err != nil {
31140		return nil, err
31141	}
31142	return ret, nil
31143	// {
31144	//   "description": "Delete a key value map in an environment.",
31145	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keyvaluemaps/{keyvaluemapsId}",
31146	//   "httpMethod": "DELETE",
31147	//   "id": "apigee.organizations.environments.keyvaluemaps.delete",
31148	//   "parameterOrder": [
31149	//     "name"
31150	//   ],
31151	//   "parameters": {
31152	//     "name": {
31153	//       "description": "Required. The name of the key value map. Must be of the form `organizations/{organization}/environments/{environment}/keyvaluemaps/{keyvaluemap}`.",
31154	//       "location": "path",
31155	//       "pattern": "^organizations/[^/]+/environments/[^/]+/keyvaluemaps/[^/]+$",
31156	//       "required": true,
31157	//       "type": "string"
31158	//     }
31159	//   },
31160	//   "path": "v1/{+name}",
31161	//   "response": {
31162	//     "$ref": "GoogleCloudApigeeV1KeyValueMap"
31163	//   },
31164	//   "scopes": [
31165	//     "https://www.googleapis.com/auth/cloud-platform"
31166	//   ]
31167	// }
31168
31169}
31170
31171// method id "apigee.organizations.environments.optimizedStats.get":
31172
31173type OrganizationsEnvironmentsOptimizedStatsGetCall struct {
31174	s            *Service
31175	name         string
31176	urlParams_   gensupport.URLParams
31177	ifNoneMatch_ string
31178	ctx_         context.Context
31179	header_      http.Header
31180}
31181
31182// Get: This api is similar to GetStats except that the response is less
31183// verbose. In the current scheme, a query parameter _optimized
31184// instructs Edge Analytics to change the response but since this
31185// behavior is not possible with protocol buffer and since this
31186// parameter is predominantly used by Edge UI, we are introducing a
31187// separate api.
31188//
31189// - name: The resource name for which the interactive query will be
31190//   executed. Must be of the form
31191//   `organizations/{organization_id}/environments/{environment_id/optimi
31192//   zedStats/{dimensions}` Dimensions let you view metrics in
31193//   meaningful groupings. E.g. apiproxy, target_host. The value of
31194//   dimensions should be comma separated list as shown below
31195//   `organizations/{org}/environments/{env}/optimizedStats/apiproxy,requ
31196//   est_verb`.
31197func (r *OrganizationsEnvironmentsOptimizedStatsService) Get(name string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
31198	c := &OrganizationsEnvironmentsOptimizedStatsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31199	c.name = name
31200	return c
31201}
31202
31203// Accuracy sets the optional parameter "accuracy": Legacy field: not
31204// used anymore.
31205func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Accuracy(accuracy string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
31206	c.urlParams_.Set("accuracy", accuracy)
31207	return c
31208}
31209
31210// AggTable sets the optional parameter "aggTable": If customers want to
31211// query custom aggregate tables, then this parameter can be used to
31212// specify the table name. If this parameter is skipped, then Edge Query
31213// will try to retrieve the data from fact tables which will be
31214// expensive.
31215func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) AggTable(aggTable string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
31216	c.urlParams_.Set("aggTable", aggTable)
31217	return c
31218}
31219
31220// Filter sets the optional parameter "filter": Enables drill-down on
31221// specific dimension values.
31222func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Filter(filter string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
31223	c.urlParams_.Set("filter", filter)
31224	return c
31225}
31226
31227// Limit sets the optional parameter "limit": This parameter is used to
31228// limit the number of result items. Default and the max value is 14400.
31229func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Limit(limit string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
31230	c.urlParams_.Set("limit", limit)
31231	return c
31232}
31233
31234// Offset sets the optional parameter "offset": Use offset with limit to
31235// enable pagination of results. For example, to display results 11-20,
31236// set limit to '10' and offset to '10'.
31237func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Offset(offset string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
31238	c.urlParams_.Set("offset", offset)
31239	return c
31240}
31241
31242// Realtime sets the optional parameter "realtime": Legacy field: not
31243// used anymore.
31244func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Realtime(realtime bool) *OrganizationsEnvironmentsOptimizedStatsGetCall {
31245	c.urlParams_.Set("realtime", fmt.Sprint(realtime))
31246	return c
31247}
31248
31249// Select sets the optional parameter "select": Required. The select
31250// parameter contains a comma separated list of metrics. E.g.
31251// sum(message_count),sum(error_count)
31252func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Select(select_ string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
31253	c.urlParams_.Set("select", select_)
31254	return c
31255}
31256
31257// Sonar sets the optional parameter "sonar": This parameter routes the
31258// query to api monitoring service for last hour.
31259func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Sonar(sonar bool) *OrganizationsEnvironmentsOptimizedStatsGetCall {
31260	c.urlParams_.Set("sonar", fmt.Sprint(sonar))
31261	return c
31262}
31263
31264// Sort sets the optional parameter "sort": This parameter specifies if
31265// the sort order should be ascending or descending Supported values are
31266// DESC and ASC.
31267func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Sort(sort string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
31268	c.urlParams_.Set("sort", sort)
31269	return c
31270}
31271
31272// Sortby sets the optional parameter "sortby": Comma separated list of
31273// columns to sort the final result.
31274func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Sortby(sortby string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
31275	c.urlParams_.Set("sortby", sortby)
31276	return c
31277}
31278
31279// TimeRange sets the optional parameter "timeRange": Required. Time
31280// interval for the interactive query. Time range is specified as
31281// start~end E.g. 04/15/2017 00:00~05/15/2017 23:59
31282func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) TimeRange(timeRange string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
31283	c.urlParams_.Set("timeRange", timeRange)
31284	return c
31285}
31286
31287// TimeUnit sets the optional parameter "timeUnit": A value of second,
31288// minute, hour, day, week, month. Time Unit specifies the granularity
31289// of metrics returned.
31290func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) TimeUnit(timeUnit string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
31291	c.urlParams_.Set("timeUnit", timeUnit)
31292	return c
31293}
31294
31295// Topk sets the optional parameter "topk": Take 'top k' results from
31296// results, for example, to return the top 5 results 'topk=5'.
31297func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Topk(topk string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
31298	c.urlParams_.Set("topk", topk)
31299	return c
31300}
31301
31302// TsAscending sets the optional parameter "tsAscending": Lists
31303// timestamps in ascending order if set to true. Recommend setting this
31304// value to true if you are using sortby with sort=DESC.
31305func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) TsAscending(tsAscending bool) *OrganizationsEnvironmentsOptimizedStatsGetCall {
31306	c.urlParams_.Set("tsAscending", fmt.Sprint(tsAscending))
31307	return c
31308}
31309
31310// Tzo sets the optional parameter "tzo": This parameters contains the
31311// timezone offset value.
31312func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Tzo(tzo string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
31313	c.urlParams_.Set("tzo", tzo)
31314	return c
31315}
31316
31317// Fields allows partial responses to be retrieved. See
31318// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
31319// for more information.
31320func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsOptimizedStatsGetCall {
31321	c.urlParams_.Set("fields", googleapi.CombineFields(s))
31322	return c
31323}
31324
31325// IfNoneMatch sets the optional parameter which makes the operation
31326// fail if the object's ETag matches the given value. This is useful for
31327// getting updates only after the object has changed since the last
31328// request. Use googleapi.IsNotModified to check whether the response
31329// error from Do is the result of In-None-Match.
31330func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
31331	c.ifNoneMatch_ = entityTag
31332	return c
31333}
31334
31335// Context sets the context to be used in this call's Do method. Any
31336// pending HTTP request will be aborted if the provided context is
31337// canceled.
31338func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsOptimizedStatsGetCall {
31339	c.ctx_ = ctx
31340	return c
31341}
31342
31343// Header returns an http.Header that can be modified by the caller to
31344// add HTTP headers to the request.
31345func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Header() http.Header {
31346	if c.header_ == nil {
31347		c.header_ = make(http.Header)
31348	}
31349	return c.header_
31350}
31351
31352func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) doRequest(alt string) (*http.Response, error) {
31353	reqHeaders := make(http.Header)
31354	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
31355	for k, v := range c.header_ {
31356		reqHeaders[k] = v
31357	}
31358	reqHeaders.Set("User-Agent", c.s.userAgent())
31359	if c.ifNoneMatch_ != "" {
31360		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
31361	}
31362	var body io.Reader = nil
31363	c.urlParams_.Set("alt", alt)
31364	c.urlParams_.Set("prettyPrint", "false")
31365	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
31366	urls += "?" + c.urlParams_.Encode()
31367	req, err := http.NewRequest("GET", urls, body)
31368	if err != nil {
31369		return nil, err
31370	}
31371	req.Header = reqHeaders
31372	googleapi.Expand(req.URL, map[string]string{
31373		"name": c.name,
31374	})
31375	return gensupport.SendRequest(c.ctx_, c.s.client, req)
31376}
31377
31378// Do executes the "apigee.organizations.environments.optimizedStats.get" call.
31379// Exactly one of *GoogleCloudApigeeV1OptimizedStats or error will be
31380// non-nil. Any non-2xx status code is an error. Response headers are in
31381// either *GoogleCloudApigeeV1OptimizedStats.ServerResponse.Header or
31382// (if a response was returned at all) in
31383// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
31384// whether the returned error was because http.StatusNotModified was
31385// returned.
31386func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1OptimizedStats, error) {
31387	gensupport.SetOptions(c.urlParams_, opts...)
31388	res, err := c.doRequest("json")
31389	if res != nil && res.StatusCode == http.StatusNotModified {
31390		if res.Body != nil {
31391			res.Body.Close()
31392		}
31393		return nil, &googleapi.Error{
31394			Code:   res.StatusCode,
31395			Header: res.Header,
31396		}
31397	}
31398	if err != nil {
31399		return nil, err
31400	}
31401	defer googleapi.CloseBody(res)
31402	if err := googleapi.CheckResponse(res); err != nil {
31403		return nil, err
31404	}
31405	ret := &GoogleCloudApigeeV1OptimizedStats{
31406		ServerResponse: googleapi.ServerResponse{
31407			Header:         res.Header,
31408			HTTPStatusCode: res.StatusCode,
31409		},
31410	}
31411	target := &ret
31412	if err := gensupport.DecodeResponse(target, res); err != nil {
31413		return nil, err
31414	}
31415	return ret, nil
31416	// {
31417	//   "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.",
31418	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/optimizedStats/{optimizedStatsId}",
31419	//   "httpMethod": "GET",
31420	//   "id": "apigee.organizations.environments.optimizedStats.get",
31421	//   "parameterOrder": [
31422	//     "name"
31423	//   ],
31424	//   "parameters": {
31425	//     "accuracy": {
31426	//       "description": "Legacy field: not used anymore.",
31427	//       "location": "query",
31428	//       "type": "string"
31429	//     },
31430	//     "aggTable": {
31431	//       "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.",
31432	//       "location": "query",
31433	//       "type": "string"
31434	//     },
31435	//     "filter": {
31436	//       "description": "Enables drill-down on specific dimension values.",
31437	//       "location": "query",
31438	//       "type": "string"
31439	//     },
31440	//     "limit": {
31441	//       "description": "This parameter is used to limit the number of result items. Default and the max value is 14400.",
31442	//       "location": "query",
31443	//       "type": "string"
31444	//     },
31445	//     "name": {
31446	//       "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`",
31447	//       "location": "path",
31448	//       "pattern": "^organizations/[^/]+/environments/[^/]+/optimizedStats/.*$",
31449	//       "required": true,
31450	//       "type": "string"
31451	//     },
31452	//     "offset": {
31453	//       "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'.",
31454	//       "location": "query",
31455	//       "type": "string"
31456	//     },
31457	//     "realtime": {
31458	//       "description": "Legacy field: not used anymore.",
31459	//       "location": "query",
31460	//       "type": "boolean"
31461	//     },
31462	//     "select": {
31463	//       "description": "Required. The select parameter contains a comma separated list of metrics. E.g. sum(message_count),sum(error_count)",
31464	//       "location": "query",
31465	//       "type": "string"
31466	//     },
31467	//     "sonar": {
31468	//       "description": "This parameter routes the query to api monitoring service for last hour.",
31469	//       "location": "query",
31470	//       "type": "boolean"
31471	//     },
31472	//     "sort": {
31473	//       "description": "This parameter specifies if the sort order should be ascending or descending Supported values are DESC and ASC.",
31474	//       "location": "query",
31475	//       "type": "string"
31476	//     },
31477	//     "sortby": {
31478	//       "description": "Comma separated list of columns to sort the final result.",
31479	//       "location": "query",
31480	//       "type": "string"
31481	//     },
31482	//     "timeRange": {
31483	//       "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",
31484	//       "location": "query",
31485	//       "type": "string"
31486	//     },
31487	//     "timeUnit": {
31488	//       "description": "A value of second, minute, hour, day, week, month. Time Unit specifies the granularity of metrics returned.",
31489	//       "location": "query",
31490	//       "type": "string"
31491	//     },
31492	//     "topk": {
31493	//       "description": "Take 'top k' results from results, for example, to return the top 5 results 'topk=5'.",
31494	//       "location": "query",
31495	//       "type": "string"
31496	//     },
31497	//     "tsAscending": {
31498	//       "description": "Lists timestamps in ascending order if set to true. Recommend setting this value to true if you are using sortby with sort=DESC.",
31499	//       "location": "query",
31500	//       "type": "boolean"
31501	//     },
31502	//     "tzo": {
31503	//       "description": "This parameters contains the timezone offset value.",
31504	//       "location": "query",
31505	//       "type": "string"
31506	//     }
31507	//   },
31508	//   "path": "v1/{+name}",
31509	//   "response": {
31510	//     "$ref": "GoogleCloudApigeeV1OptimizedStats"
31511	//   },
31512	//   "scopes": [
31513	//     "https://www.googleapis.com/auth/cloud-platform"
31514	//   ]
31515	// }
31516
31517}
31518
31519// method id "apigee.organizations.environments.queries.create":
31520
31521type OrganizationsEnvironmentsQueriesCreateCall struct {
31522	s                        *Service
31523	parent                   string
31524	googlecloudapigeev1query *GoogleCloudApigeeV1Query
31525	urlParams_               gensupport.URLParams
31526	ctx_                     context.Context
31527	header_                  http.Header
31528}
31529
31530// Create: Submit a query to be processed in the background. If the
31531// submission of the query succeeds, the API returns a 201 status and an
31532// ID that refer to the query. In addition to the HTTP status 201, the
31533// `state` of "enqueued" means that the request succeeded.
31534//
31535// - parent: The parent resource name. Must be of the form
31536//   `organizations/{org}/environments/{env}`.
31537func (r *OrganizationsEnvironmentsQueriesService) Create(parent string, googlecloudapigeev1query *GoogleCloudApigeeV1Query) *OrganizationsEnvironmentsQueriesCreateCall {
31538	c := &OrganizationsEnvironmentsQueriesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31539	c.parent = parent
31540	c.googlecloudapigeev1query = googlecloudapigeev1query
31541	return c
31542}
31543
31544// Fields allows partial responses to be retrieved. See
31545// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
31546// for more information.
31547func (c *OrganizationsEnvironmentsQueriesCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsQueriesCreateCall {
31548	c.urlParams_.Set("fields", googleapi.CombineFields(s))
31549	return c
31550}
31551
31552// Context sets the context to be used in this call's Do method. Any
31553// pending HTTP request will be aborted if the provided context is
31554// canceled.
31555func (c *OrganizationsEnvironmentsQueriesCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsQueriesCreateCall {
31556	c.ctx_ = ctx
31557	return c
31558}
31559
31560// Header returns an http.Header that can be modified by the caller to
31561// add HTTP headers to the request.
31562func (c *OrganizationsEnvironmentsQueriesCreateCall) Header() http.Header {
31563	if c.header_ == nil {
31564		c.header_ = make(http.Header)
31565	}
31566	return c.header_
31567}
31568
31569func (c *OrganizationsEnvironmentsQueriesCreateCall) doRequest(alt string) (*http.Response, error) {
31570	reqHeaders := make(http.Header)
31571	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
31572	for k, v := range c.header_ {
31573		reqHeaders[k] = v
31574	}
31575	reqHeaders.Set("User-Agent", c.s.userAgent())
31576	var body io.Reader = nil
31577	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1query)
31578	if err != nil {
31579		return nil, err
31580	}
31581	reqHeaders.Set("Content-Type", "application/json")
31582	c.urlParams_.Set("alt", alt)
31583	c.urlParams_.Set("prettyPrint", "false")
31584	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/queries")
31585	urls += "?" + c.urlParams_.Encode()
31586	req, err := http.NewRequest("POST", urls, body)
31587	if err != nil {
31588		return nil, err
31589	}
31590	req.Header = reqHeaders
31591	googleapi.Expand(req.URL, map[string]string{
31592		"parent": c.parent,
31593	})
31594	return gensupport.SendRequest(c.ctx_, c.s.client, req)
31595}
31596
31597// Do executes the "apigee.organizations.environments.queries.create" call.
31598// Exactly one of *GoogleCloudApigeeV1AsyncQuery or error will be
31599// non-nil. Any non-2xx status code is an error. Response headers are in
31600// either *GoogleCloudApigeeV1AsyncQuery.ServerResponse.Header or (if a
31601// response was returned at all) in error.(*googleapi.Error).Header. Use
31602// googleapi.IsNotModified to check whether the returned error was
31603// because http.StatusNotModified was returned.
31604func (c *OrganizationsEnvironmentsQueriesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AsyncQuery, error) {
31605	gensupport.SetOptions(c.urlParams_, opts...)
31606	res, err := c.doRequest("json")
31607	if res != nil && res.StatusCode == http.StatusNotModified {
31608		if res.Body != nil {
31609			res.Body.Close()
31610		}
31611		return nil, &googleapi.Error{
31612			Code:   res.StatusCode,
31613			Header: res.Header,
31614		}
31615	}
31616	if err != nil {
31617		return nil, err
31618	}
31619	defer googleapi.CloseBody(res)
31620	if err := googleapi.CheckResponse(res); err != nil {
31621		return nil, err
31622	}
31623	ret := &GoogleCloudApigeeV1AsyncQuery{
31624		ServerResponse: googleapi.ServerResponse{
31625			Header:         res.Header,
31626			HTTPStatusCode: res.StatusCode,
31627		},
31628	}
31629	target := &ret
31630	if err := gensupport.DecodeResponse(target, res); err != nil {
31631		return nil, err
31632	}
31633	return ret, nil
31634	// {
31635	//   "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.",
31636	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/queries",
31637	//   "httpMethod": "POST",
31638	//   "id": "apigee.organizations.environments.queries.create",
31639	//   "parameterOrder": [
31640	//     "parent"
31641	//   ],
31642	//   "parameters": {
31643	//     "parent": {
31644	//       "description": "Required. The parent resource name. Must be of the form `organizations/{org}/environments/{env}`.",
31645	//       "location": "path",
31646	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
31647	//       "required": true,
31648	//       "type": "string"
31649	//     }
31650	//   },
31651	//   "path": "v1/{+parent}/queries",
31652	//   "request": {
31653	//     "$ref": "GoogleCloudApigeeV1Query"
31654	//   },
31655	//   "response": {
31656	//     "$ref": "GoogleCloudApigeeV1AsyncQuery"
31657	//   },
31658	//   "scopes": [
31659	//     "https://www.googleapis.com/auth/cloud-platform"
31660	//   ]
31661	// }
31662
31663}
31664
31665// method id "apigee.organizations.environments.queries.get":
31666
31667type OrganizationsEnvironmentsQueriesGetCall struct {
31668	s            *Service
31669	name         string
31670	urlParams_   gensupport.URLParams
31671	ifNoneMatch_ string
31672	ctx_         context.Context
31673	header_      http.Header
31674}
31675
31676// Get: Get query status If the query is still in progress, the `state`
31677// is set to "running" After the query has completed successfully,
31678// `state` is set to "completed"
31679//
31680// - name: Name of the asynchronous query to get. Must be of the form
31681//   `organizations/{org}/environments/{env}/queries/{queryId}`.
31682func (r *OrganizationsEnvironmentsQueriesService) Get(name string) *OrganizationsEnvironmentsQueriesGetCall {
31683	c := &OrganizationsEnvironmentsQueriesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31684	c.name = name
31685	return c
31686}
31687
31688// Fields allows partial responses to be retrieved. See
31689// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
31690// for more information.
31691func (c *OrganizationsEnvironmentsQueriesGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsQueriesGetCall {
31692	c.urlParams_.Set("fields", googleapi.CombineFields(s))
31693	return c
31694}
31695
31696// IfNoneMatch sets the optional parameter which makes the operation
31697// fail if the object's ETag matches the given value. This is useful for
31698// getting updates only after the object has changed since the last
31699// request. Use googleapi.IsNotModified to check whether the response
31700// error from Do is the result of In-None-Match.
31701func (c *OrganizationsEnvironmentsQueriesGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsQueriesGetCall {
31702	c.ifNoneMatch_ = entityTag
31703	return c
31704}
31705
31706// Context sets the context to be used in this call's Do method. Any
31707// pending HTTP request will be aborted if the provided context is
31708// canceled.
31709func (c *OrganizationsEnvironmentsQueriesGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsQueriesGetCall {
31710	c.ctx_ = ctx
31711	return c
31712}
31713
31714// Header returns an http.Header that can be modified by the caller to
31715// add HTTP headers to the request.
31716func (c *OrganizationsEnvironmentsQueriesGetCall) Header() http.Header {
31717	if c.header_ == nil {
31718		c.header_ = make(http.Header)
31719	}
31720	return c.header_
31721}
31722
31723func (c *OrganizationsEnvironmentsQueriesGetCall) doRequest(alt string) (*http.Response, error) {
31724	reqHeaders := make(http.Header)
31725	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
31726	for k, v := range c.header_ {
31727		reqHeaders[k] = v
31728	}
31729	reqHeaders.Set("User-Agent", c.s.userAgent())
31730	if c.ifNoneMatch_ != "" {
31731		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
31732	}
31733	var body io.Reader = nil
31734	c.urlParams_.Set("alt", alt)
31735	c.urlParams_.Set("prettyPrint", "false")
31736	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
31737	urls += "?" + c.urlParams_.Encode()
31738	req, err := http.NewRequest("GET", urls, body)
31739	if err != nil {
31740		return nil, err
31741	}
31742	req.Header = reqHeaders
31743	googleapi.Expand(req.URL, map[string]string{
31744		"name": c.name,
31745	})
31746	return gensupport.SendRequest(c.ctx_, c.s.client, req)
31747}
31748
31749// Do executes the "apigee.organizations.environments.queries.get" call.
31750// Exactly one of *GoogleCloudApigeeV1AsyncQuery or error will be
31751// non-nil. Any non-2xx status code is an error. Response headers are in
31752// either *GoogleCloudApigeeV1AsyncQuery.ServerResponse.Header or (if a
31753// response was returned at all) in error.(*googleapi.Error).Header. Use
31754// googleapi.IsNotModified to check whether the returned error was
31755// because http.StatusNotModified was returned.
31756func (c *OrganizationsEnvironmentsQueriesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AsyncQuery, error) {
31757	gensupport.SetOptions(c.urlParams_, opts...)
31758	res, err := c.doRequest("json")
31759	if res != nil && res.StatusCode == http.StatusNotModified {
31760		if res.Body != nil {
31761			res.Body.Close()
31762		}
31763		return nil, &googleapi.Error{
31764			Code:   res.StatusCode,
31765			Header: res.Header,
31766		}
31767	}
31768	if err != nil {
31769		return nil, err
31770	}
31771	defer googleapi.CloseBody(res)
31772	if err := googleapi.CheckResponse(res); err != nil {
31773		return nil, err
31774	}
31775	ret := &GoogleCloudApigeeV1AsyncQuery{
31776		ServerResponse: googleapi.ServerResponse{
31777			Header:         res.Header,
31778			HTTPStatusCode: res.StatusCode,
31779		},
31780	}
31781	target := &ret
31782	if err := gensupport.DecodeResponse(target, res); err != nil {
31783		return nil, err
31784	}
31785	return ret, nil
31786	// {
31787	//   "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\"",
31788	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/queries/{queriesId}",
31789	//   "httpMethod": "GET",
31790	//   "id": "apigee.organizations.environments.queries.get",
31791	//   "parameterOrder": [
31792	//     "name"
31793	//   ],
31794	//   "parameters": {
31795	//     "name": {
31796	//       "description": "Required. Name of the asynchronous query to get. Must be of the form `organizations/{org}/environments/{env}/queries/{queryId}`.",
31797	//       "location": "path",
31798	//       "pattern": "^organizations/[^/]+/environments/[^/]+/queries/[^/]+$",
31799	//       "required": true,
31800	//       "type": "string"
31801	//     }
31802	//   },
31803	//   "path": "v1/{+name}",
31804	//   "response": {
31805	//     "$ref": "GoogleCloudApigeeV1AsyncQuery"
31806	//   },
31807	//   "scopes": [
31808	//     "https://www.googleapis.com/auth/cloud-platform"
31809	//   ]
31810	// }
31811
31812}
31813
31814// method id "apigee.organizations.environments.queries.getResult":
31815
31816type OrganizationsEnvironmentsQueriesGetResultCall struct {
31817	s            *Service
31818	name         string
31819	urlParams_   gensupport.URLParams
31820	ifNoneMatch_ string
31821	ctx_         context.Context
31822	header_      http.Header
31823}
31824
31825// GetResult: After the query is completed, use this API to retrieve the
31826// results. If the request succeeds, and there is a non-zero result set,
31827// the result is downloaded to the client as a zipped JSON file. The
31828// name of the downloaded file will be: OfflineQueryResult-.zip Example:
31829// `OfflineQueryResult-9cfc0d85-0f30-46d6-ae6f-318d0cb961bd.zip`
31830//
31831// - name: Name of the asynchronous query result to get. Must be of the
31832//   form
31833//   `organizations/{org}/environments/{env}/queries/{queryId}/result`.
31834func (r *OrganizationsEnvironmentsQueriesService) GetResult(name string) *OrganizationsEnvironmentsQueriesGetResultCall {
31835	c := &OrganizationsEnvironmentsQueriesGetResultCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31836	c.name = name
31837	return c
31838}
31839
31840// Fields allows partial responses to be retrieved. See
31841// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
31842// for more information.
31843func (c *OrganizationsEnvironmentsQueriesGetResultCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsQueriesGetResultCall {
31844	c.urlParams_.Set("fields", googleapi.CombineFields(s))
31845	return c
31846}
31847
31848// IfNoneMatch sets the optional parameter which makes the operation
31849// fail if the object's ETag matches the given value. This is useful for
31850// getting updates only after the object has changed since the last
31851// request. Use googleapi.IsNotModified to check whether the response
31852// error from Do is the result of In-None-Match.
31853func (c *OrganizationsEnvironmentsQueriesGetResultCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsQueriesGetResultCall {
31854	c.ifNoneMatch_ = entityTag
31855	return c
31856}
31857
31858// Context sets the context to be used in this call's Do method. Any
31859// pending HTTP request will be aborted if the provided context is
31860// canceled.
31861func (c *OrganizationsEnvironmentsQueriesGetResultCall) Context(ctx context.Context) *OrganizationsEnvironmentsQueriesGetResultCall {
31862	c.ctx_ = ctx
31863	return c
31864}
31865
31866// Header returns an http.Header that can be modified by the caller to
31867// add HTTP headers to the request.
31868func (c *OrganizationsEnvironmentsQueriesGetResultCall) Header() http.Header {
31869	if c.header_ == nil {
31870		c.header_ = make(http.Header)
31871	}
31872	return c.header_
31873}
31874
31875func (c *OrganizationsEnvironmentsQueriesGetResultCall) doRequest(alt string) (*http.Response, error) {
31876	reqHeaders := make(http.Header)
31877	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
31878	for k, v := range c.header_ {
31879		reqHeaders[k] = v
31880	}
31881	reqHeaders.Set("User-Agent", c.s.userAgent())
31882	if c.ifNoneMatch_ != "" {
31883		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
31884	}
31885	var body io.Reader = nil
31886	c.urlParams_.Set("alt", alt)
31887	c.urlParams_.Set("prettyPrint", "false")
31888	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
31889	urls += "?" + c.urlParams_.Encode()
31890	req, err := http.NewRequest("GET", urls, body)
31891	if err != nil {
31892		return nil, err
31893	}
31894	req.Header = reqHeaders
31895	googleapi.Expand(req.URL, map[string]string{
31896		"name": c.name,
31897	})
31898	return gensupport.SendRequest(c.ctx_, c.s.client, req)
31899}
31900
31901// Do executes the "apigee.organizations.environments.queries.getResult" call.
31902// Exactly one of *GoogleApiHttpBody or error will be non-nil. Any
31903// non-2xx status code is an error. Response headers are in either
31904// *GoogleApiHttpBody.ServerResponse.Header or (if a response was
31905// returned at all) in error.(*googleapi.Error).Header. Use
31906// googleapi.IsNotModified to check whether the returned error was
31907// because http.StatusNotModified was returned.
31908func (c *OrganizationsEnvironmentsQueriesGetResultCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
31909	gensupport.SetOptions(c.urlParams_, opts...)
31910	res, err := c.doRequest("json")
31911	if res != nil && res.StatusCode == http.StatusNotModified {
31912		if res.Body != nil {
31913			res.Body.Close()
31914		}
31915		return nil, &googleapi.Error{
31916			Code:   res.StatusCode,
31917			Header: res.Header,
31918		}
31919	}
31920	if err != nil {
31921		return nil, err
31922	}
31923	defer googleapi.CloseBody(res)
31924	if err := googleapi.CheckResponse(res); err != nil {
31925		return nil, err
31926	}
31927	ret := &GoogleApiHttpBody{
31928		ServerResponse: googleapi.ServerResponse{
31929			Header:         res.Header,
31930			HTTPStatusCode: res.StatusCode,
31931		},
31932	}
31933	target := &ret
31934	if err := gensupport.DecodeResponse(target, res); err != nil {
31935		return nil, err
31936	}
31937	return ret, nil
31938	// {
31939	//   "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`",
31940	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/queries/{queriesId}/result",
31941	//   "httpMethod": "GET",
31942	//   "id": "apigee.organizations.environments.queries.getResult",
31943	//   "parameterOrder": [
31944	//     "name"
31945	//   ],
31946	//   "parameters": {
31947	//     "name": {
31948	//       "description": "Required. Name of the asynchronous query result to get. Must be of the form `organizations/{org}/environments/{env}/queries/{queryId}/result`.",
31949	//       "location": "path",
31950	//       "pattern": "^organizations/[^/]+/environments/[^/]+/queries/[^/]+/result$",
31951	//       "required": true,
31952	//       "type": "string"
31953	//     }
31954	//   },
31955	//   "path": "v1/{+name}",
31956	//   "response": {
31957	//     "$ref": "GoogleApiHttpBody"
31958	//   },
31959	//   "scopes": [
31960	//     "https://www.googleapis.com/auth/cloud-platform"
31961	//   ]
31962	// }
31963
31964}
31965
31966// method id "apigee.organizations.environments.queries.list":
31967
31968type OrganizationsEnvironmentsQueriesListCall struct {
31969	s            *Service
31970	parent       string
31971	urlParams_   gensupport.URLParams
31972	ifNoneMatch_ string
31973	ctx_         context.Context
31974	header_      http.Header
31975}
31976
31977// List: Return a list of Asynchronous Queries
31978//
31979// - parent: The parent resource name. Must be of the form
31980//   `organizations/{org}/environments/{env}`.
31981func (r *OrganizationsEnvironmentsQueriesService) List(parent string) *OrganizationsEnvironmentsQueriesListCall {
31982	c := &OrganizationsEnvironmentsQueriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31983	c.parent = parent
31984	return c
31985}
31986
31987// Dataset sets the optional parameter "dataset": Filter response list
31988// by dataset. Example: `api`, `mint`
31989func (c *OrganizationsEnvironmentsQueriesListCall) Dataset(dataset string) *OrganizationsEnvironmentsQueriesListCall {
31990	c.urlParams_.Set("dataset", dataset)
31991	return c
31992}
31993
31994// From sets the optional parameter "from": Filter response list by
31995// returning asynchronous queries that created after this date time.
31996// Time must be in ISO date-time format like '2011-12-03T10:15:30Z'.
31997func (c *OrganizationsEnvironmentsQueriesListCall) From(from string) *OrganizationsEnvironmentsQueriesListCall {
31998	c.urlParams_.Set("from", from)
31999	return c
32000}
32001
32002// InclQueriesWithoutReport sets the optional parameter
32003// "inclQueriesWithoutReport": Flag to include asynchronous queries that
32004// don't have a report denifition.
32005func (c *OrganizationsEnvironmentsQueriesListCall) InclQueriesWithoutReport(inclQueriesWithoutReport string) *OrganizationsEnvironmentsQueriesListCall {
32006	c.urlParams_.Set("inclQueriesWithoutReport", inclQueriesWithoutReport)
32007	return c
32008}
32009
32010// Status sets the optional parameter "status": Filter response list by
32011// asynchronous query status.
32012func (c *OrganizationsEnvironmentsQueriesListCall) Status(status string) *OrganizationsEnvironmentsQueriesListCall {
32013	c.urlParams_.Set("status", status)
32014	return c
32015}
32016
32017// SubmittedBy sets the optional parameter "submittedBy": Filter
32018// response list by user who submitted queries.
32019func (c *OrganizationsEnvironmentsQueriesListCall) SubmittedBy(submittedBy string) *OrganizationsEnvironmentsQueriesListCall {
32020	c.urlParams_.Set("submittedBy", submittedBy)
32021	return c
32022}
32023
32024// To sets the optional parameter "to": Filter response list by
32025// returning asynchronous queries that created before this date time.
32026// Time must be in ISO date-time format like '2011-12-03T10:16:30Z'.
32027func (c *OrganizationsEnvironmentsQueriesListCall) To(to string) *OrganizationsEnvironmentsQueriesListCall {
32028	c.urlParams_.Set("to", to)
32029	return c
32030}
32031
32032// Fields allows partial responses to be retrieved. See
32033// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
32034// for more information.
32035func (c *OrganizationsEnvironmentsQueriesListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsQueriesListCall {
32036	c.urlParams_.Set("fields", googleapi.CombineFields(s))
32037	return c
32038}
32039
32040// IfNoneMatch sets the optional parameter which makes the operation
32041// fail if the object's ETag matches the given value. This is useful for
32042// getting updates only after the object has changed since the last
32043// request. Use googleapi.IsNotModified to check whether the response
32044// error from Do is the result of In-None-Match.
32045func (c *OrganizationsEnvironmentsQueriesListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsQueriesListCall {
32046	c.ifNoneMatch_ = entityTag
32047	return c
32048}
32049
32050// Context sets the context to be used in this call's Do method. Any
32051// pending HTTP request will be aborted if the provided context is
32052// canceled.
32053func (c *OrganizationsEnvironmentsQueriesListCall) Context(ctx context.Context) *OrganizationsEnvironmentsQueriesListCall {
32054	c.ctx_ = ctx
32055	return c
32056}
32057
32058// Header returns an http.Header that can be modified by the caller to
32059// add HTTP headers to the request.
32060func (c *OrganizationsEnvironmentsQueriesListCall) Header() http.Header {
32061	if c.header_ == nil {
32062		c.header_ = make(http.Header)
32063	}
32064	return c.header_
32065}
32066
32067func (c *OrganizationsEnvironmentsQueriesListCall) doRequest(alt string) (*http.Response, error) {
32068	reqHeaders := make(http.Header)
32069	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
32070	for k, v := range c.header_ {
32071		reqHeaders[k] = v
32072	}
32073	reqHeaders.Set("User-Agent", c.s.userAgent())
32074	if c.ifNoneMatch_ != "" {
32075		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
32076	}
32077	var body io.Reader = nil
32078	c.urlParams_.Set("alt", alt)
32079	c.urlParams_.Set("prettyPrint", "false")
32080	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/queries")
32081	urls += "?" + c.urlParams_.Encode()
32082	req, err := http.NewRequest("GET", urls, body)
32083	if err != nil {
32084		return nil, err
32085	}
32086	req.Header = reqHeaders
32087	googleapi.Expand(req.URL, map[string]string{
32088		"parent": c.parent,
32089	})
32090	return gensupport.SendRequest(c.ctx_, c.s.client, req)
32091}
32092
32093// Do executes the "apigee.organizations.environments.queries.list" call.
32094// Exactly one of *GoogleCloudApigeeV1ListAsyncQueriesResponse or error
32095// will be non-nil. Any non-2xx status code is an error. Response
32096// headers are in either
32097// *GoogleCloudApigeeV1ListAsyncQueriesResponse.ServerResponse.Header or
32098// (if a response was returned at all) in
32099// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
32100// whether the returned error was because http.StatusNotModified was
32101// returned.
32102func (c *OrganizationsEnvironmentsQueriesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListAsyncQueriesResponse, error) {
32103	gensupport.SetOptions(c.urlParams_, opts...)
32104	res, err := c.doRequest("json")
32105	if res != nil && res.StatusCode == http.StatusNotModified {
32106		if res.Body != nil {
32107			res.Body.Close()
32108		}
32109		return nil, &googleapi.Error{
32110			Code:   res.StatusCode,
32111			Header: res.Header,
32112		}
32113	}
32114	if err != nil {
32115		return nil, err
32116	}
32117	defer googleapi.CloseBody(res)
32118	if err := googleapi.CheckResponse(res); err != nil {
32119		return nil, err
32120	}
32121	ret := &GoogleCloudApigeeV1ListAsyncQueriesResponse{
32122		ServerResponse: googleapi.ServerResponse{
32123			Header:         res.Header,
32124			HTTPStatusCode: res.StatusCode,
32125		},
32126	}
32127	target := &ret
32128	if err := gensupport.DecodeResponse(target, res); err != nil {
32129		return nil, err
32130	}
32131	return ret, nil
32132	// {
32133	//   "description": "Return a list of Asynchronous Queries",
32134	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/queries",
32135	//   "httpMethod": "GET",
32136	//   "id": "apigee.organizations.environments.queries.list",
32137	//   "parameterOrder": [
32138	//     "parent"
32139	//   ],
32140	//   "parameters": {
32141	//     "dataset": {
32142	//       "description": "Filter response list by dataset. Example: `api`, `mint`",
32143	//       "location": "query",
32144	//       "type": "string"
32145	//     },
32146	//     "from": {
32147	//       "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'.",
32148	//       "location": "query",
32149	//       "type": "string"
32150	//     },
32151	//     "inclQueriesWithoutReport": {
32152	//       "description": "Flag to include asynchronous queries that don't have a report denifition.",
32153	//       "location": "query",
32154	//       "type": "string"
32155	//     },
32156	//     "parent": {
32157	//       "description": "Required. The parent resource name. Must be of the form `organizations/{org}/environments/{env}`.",
32158	//       "location": "path",
32159	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
32160	//       "required": true,
32161	//       "type": "string"
32162	//     },
32163	//     "status": {
32164	//       "description": "Filter response list by asynchronous query status.",
32165	//       "location": "query",
32166	//       "type": "string"
32167	//     },
32168	//     "submittedBy": {
32169	//       "description": "Filter response list by user who submitted queries.",
32170	//       "location": "query",
32171	//       "type": "string"
32172	//     },
32173	//     "to": {
32174	//       "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'.",
32175	//       "location": "query",
32176	//       "type": "string"
32177	//     }
32178	//   },
32179	//   "path": "v1/{+parent}/queries",
32180	//   "response": {
32181	//     "$ref": "GoogleCloudApigeeV1ListAsyncQueriesResponse"
32182	//   },
32183	//   "scopes": [
32184	//     "https://www.googleapis.com/auth/cloud-platform"
32185	//   ]
32186	// }
32187
32188}
32189
32190// method id "apigee.organizations.environments.references.create":
32191
32192type OrganizationsEnvironmentsReferencesCreateCall struct {
32193	s                            *Service
32194	parent                       string
32195	googlecloudapigeev1reference *GoogleCloudApigeeV1Reference
32196	urlParams_                   gensupport.URLParams
32197	ctx_                         context.Context
32198	header_                      http.Header
32199}
32200
32201// Create: Creates a Reference in the specified environment.
32202//
32203// - parent: The parent environment name under which the Reference will
32204//   be created. Must be of the form
32205//   `organizations/{org}/environments/{env}`.
32206func (r *OrganizationsEnvironmentsReferencesService) Create(parent string, googlecloudapigeev1reference *GoogleCloudApigeeV1Reference) *OrganizationsEnvironmentsReferencesCreateCall {
32207	c := &OrganizationsEnvironmentsReferencesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32208	c.parent = parent
32209	c.googlecloudapigeev1reference = googlecloudapigeev1reference
32210	return c
32211}
32212
32213// Fields allows partial responses to be retrieved. See
32214// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
32215// for more information.
32216func (c *OrganizationsEnvironmentsReferencesCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsReferencesCreateCall {
32217	c.urlParams_.Set("fields", googleapi.CombineFields(s))
32218	return c
32219}
32220
32221// Context sets the context to be used in this call's Do method. Any
32222// pending HTTP request will be aborted if the provided context is
32223// canceled.
32224func (c *OrganizationsEnvironmentsReferencesCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsReferencesCreateCall {
32225	c.ctx_ = ctx
32226	return c
32227}
32228
32229// Header returns an http.Header that can be modified by the caller to
32230// add HTTP headers to the request.
32231func (c *OrganizationsEnvironmentsReferencesCreateCall) Header() http.Header {
32232	if c.header_ == nil {
32233		c.header_ = make(http.Header)
32234	}
32235	return c.header_
32236}
32237
32238func (c *OrganizationsEnvironmentsReferencesCreateCall) doRequest(alt string) (*http.Response, error) {
32239	reqHeaders := make(http.Header)
32240	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
32241	for k, v := range c.header_ {
32242		reqHeaders[k] = v
32243	}
32244	reqHeaders.Set("User-Agent", c.s.userAgent())
32245	var body io.Reader = nil
32246	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1reference)
32247	if err != nil {
32248		return nil, err
32249	}
32250	reqHeaders.Set("Content-Type", "application/json")
32251	c.urlParams_.Set("alt", alt)
32252	c.urlParams_.Set("prettyPrint", "false")
32253	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/references")
32254	urls += "?" + c.urlParams_.Encode()
32255	req, err := http.NewRequest("POST", urls, body)
32256	if err != nil {
32257		return nil, err
32258	}
32259	req.Header = reqHeaders
32260	googleapi.Expand(req.URL, map[string]string{
32261		"parent": c.parent,
32262	})
32263	return gensupport.SendRequest(c.ctx_, c.s.client, req)
32264}
32265
32266// Do executes the "apigee.organizations.environments.references.create" call.
32267// Exactly one of *GoogleCloudApigeeV1Reference or error will be
32268// non-nil. Any non-2xx status code is an error. Response headers are in
32269// either *GoogleCloudApigeeV1Reference.ServerResponse.Header or (if a
32270// response was returned at all) in error.(*googleapi.Error).Header. Use
32271// googleapi.IsNotModified to check whether the returned error was
32272// because http.StatusNotModified was returned.
32273func (c *OrganizationsEnvironmentsReferencesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Reference, error) {
32274	gensupport.SetOptions(c.urlParams_, opts...)
32275	res, err := c.doRequest("json")
32276	if res != nil && res.StatusCode == http.StatusNotModified {
32277		if res.Body != nil {
32278			res.Body.Close()
32279		}
32280		return nil, &googleapi.Error{
32281			Code:   res.StatusCode,
32282			Header: res.Header,
32283		}
32284	}
32285	if err != nil {
32286		return nil, err
32287	}
32288	defer googleapi.CloseBody(res)
32289	if err := googleapi.CheckResponse(res); err != nil {
32290		return nil, err
32291	}
32292	ret := &GoogleCloudApigeeV1Reference{
32293		ServerResponse: googleapi.ServerResponse{
32294			Header:         res.Header,
32295			HTTPStatusCode: res.StatusCode,
32296		},
32297	}
32298	target := &ret
32299	if err := gensupport.DecodeResponse(target, res); err != nil {
32300		return nil, err
32301	}
32302	return ret, nil
32303	// {
32304	//   "description": "Creates a Reference in the specified environment.",
32305	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/references",
32306	//   "httpMethod": "POST",
32307	//   "id": "apigee.organizations.environments.references.create",
32308	//   "parameterOrder": [
32309	//     "parent"
32310	//   ],
32311	//   "parameters": {
32312	//     "parent": {
32313	//       "description": "Required. The parent environment name under which the Reference will be created. Must be of the form `organizations/{org}/environments/{env}`.",
32314	//       "location": "path",
32315	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
32316	//       "required": true,
32317	//       "type": "string"
32318	//     }
32319	//   },
32320	//   "path": "v1/{+parent}/references",
32321	//   "request": {
32322	//     "$ref": "GoogleCloudApigeeV1Reference"
32323	//   },
32324	//   "response": {
32325	//     "$ref": "GoogleCloudApigeeV1Reference"
32326	//   },
32327	//   "scopes": [
32328	//     "https://www.googleapis.com/auth/cloud-platform"
32329	//   ]
32330	// }
32331
32332}
32333
32334// method id "apigee.organizations.environments.references.delete":
32335
32336type OrganizationsEnvironmentsReferencesDeleteCall struct {
32337	s          *Service
32338	name       string
32339	urlParams_ gensupport.URLParams
32340	ctx_       context.Context
32341	header_    http.Header
32342}
32343
32344// Delete: Deletes a Reference from an environment. Returns the deleted
32345// Reference resource.
32346//
32347// - name: The name of the Reference to delete. Must be of the form
32348//   `organizations/{org}/environments/{env}/references/{ref}`.
32349func (r *OrganizationsEnvironmentsReferencesService) Delete(name string) *OrganizationsEnvironmentsReferencesDeleteCall {
32350	c := &OrganizationsEnvironmentsReferencesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32351	c.name = name
32352	return c
32353}
32354
32355// Fields allows partial responses to be retrieved. See
32356// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
32357// for more information.
32358func (c *OrganizationsEnvironmentsReferencesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsReferencesDeleteCall {
32359	c.urlParams_.Set("fields", googleapi.CombineFields(s))
32360	return c
32361}
32362
32363// Context sets the context to be used in this call's Do method. Any
32364// pending HTTP request will be aborted if the provided context is
32365// canceled.
32366func (c *OrganizationsEnvironmentsReferencesDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsReferencesDeleteCall {
32367	c.ctx_ = ctx
32368	return c
32369}
32370
32371// Header returns an http.Header that can be modified by the caller to
32372// add HTTP headers to the request.
32373func (c *OrganizationsEnvironmentsReferencesDeleteCall) Header() http.Header {
32374	if c.header_ == nil {
32375		c.header_ = make(http.Header)
32376	}
32377	return c.header_
32378}
32379
32380func (c *OrganizationsEnvironmentsReferencesDeleteCall) doRequest(alt string) (*http.Response, error) {
32381	reqHeaders := make(http.Header)
32382	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
32383	for k, v := range c.header_ {
32384		reqHeaders[k] = v
32385	}
32386	reqHeaders.Set("User-Agent", c.s.userAgent())
32387	var body io.Reader = nil
32388	c.urlParams_.Set("alt", alt)
32389	c.urlParams_.Set("prettyPrint", "false")
32390	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
32391	urls += "?" + c.urlParams_.Encode()
32392	req, err := http.NewRequest("DELETE", urls, body)
32393	if err != nil {
32394		return nil, err
32395	}
32396	req.Header = reqHeaders
32397	googleapi.Expand(req.URL, map[string]string{
32398		"name": c.name,
32399	})
32400	return gensupport.SendRequest(c.ctx_, c.s.client, req)
32401}
32402
32403// Do executes the "apigee.organizations.environments.references.delete" call.
32404// Exactly one of *GoogleCloudApigeeV1Reference or error will be
32405// non-nil. Any non-2xx status code is an error. Response headers are in
32406// either *GoogleCloudApigeeV1Reference.ServerResponse.Header or (if a
32407// response was returned at all) in error.(*googleapi.Error).Header. Use
32408// googleapi.IsNotModified to check whether the returned error was
32409// because http.StatusNotModified was returned.
32410func (c *OrganizationsEnvironmentsReferencesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Reference, error) {
32411	gensupport.SetOptions(c.urlParams_, opts...)
32412	res, err := c.doRequest("json")
32413	if res != nil && res.StatusCode == http.StatusNotModified {
32414		if res.Body != nil {
32415			res.Body.Close()
32416		}
32417		return nil, &googleapi.Error{
32418			Code:   res.StatusCode,
32419			Header: res.Header,
32420		}
32421	}
32422	if err != nil {
32423		return nil, err
32424	}
32425	defer googleapi.CloseBody(res)
32426	if err := googleapi.CheckResponse(res); err != nil {
32427		return nil, err
32428	}
32429	ret := &GoogleCloudApigeeV1Reference{
32430		ServerResponse: googleapi.ServerResponse{
32431			Header:         res.Header,
32432			HTTPStatusCode: res.StatusCode,
32433		},
32434	}
32435	target := &ret
32436	if err := gensupport.DecodeResponse(target, res); err != nil {
32437		return nil, err
32438	}
32439	return ret, nil
32440	// {
32441	//   "description": "Deletes a Reference from an environment. Returns the deleted Reference resource.",
32442	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/references/{referencesId}",
32443	//   "httpMethod": "DELETE",
32444	//   "id": "apigee.organizations.environments.references.delete",
32445	//   "parameterOrder": [
32446	//     "name"
32447	//   ],
32448	//   "parameters": {
32449	//     "name": {
32450	//       "description": "Required. The name of the Reference to delete. Must be of the form `organizations/{org}/environments/{env}/references/{ref}`.",
32451	//       "location": "path",
32452	//       "pattern": "^organizations/[^/]+/environments/[^/]+/references/[^/]+$",
32453	//       "required": true,
32454	//       "type": "string"
32455	//     }
32456	//   },
32457	//   "path": "v1/{+name}",
32458	//   "response": {
32459	//     "$ref": "GoogleCloudApigeeV1Reference"
32460	//   },
32461	//   "scopes": [
32462	//     "https://www.googleapis.com/auth/cloud-platform"
32463	//   ]
32464	// }
32465
32466}
32467
32468// method id "apigee.organizations.environments.references.get":
32469
32470type OrganizationsEnvironmentsReferencesGetCall struct {
32471	s            *Service
32472	name         string
32473	urlParams_   gensupport.URLParams
32474	ifNoneMatch_ string
32475	ctx_         context.Context
32476	header_      http.Header
32477}
32478
32479// Get: Gets a Reference resource.
32480//
32481// - name: The name of the Reference to get. Must be of the form
32482//   `organizations/{org}/environments/{env}/references/{ref}`.
32483func (r *OrganizationsEnvironmentsReferencesService) Get(name string) *OrganizationsEnvironmentsReferencesGetCall {
32484	c := &OrganizationsEnvironmentsReferencesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32485	c.name = name
32486	return c
32487}
32488
32489// Fields allows partial responses to be retrieved. See
32490// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
32491// for more information.
32492func (c *OrganizationsEnvironmentsReferencesGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsReferencesGetCall {
32493	c.urlParams_.Set("fields", googleapi.CombineFields(s))
32494	return c
32495}
32496
32497// IfNoneMatch sets the optional parameter which makes the operation
32498// fail if the object's ETag matches the given value. This is useful for
32499// getting updates only after the object has changed since the last
32500// request. Use googleapi.IsNotModified to check whether the response
32501// error from Do is the result of In-None-Match.
32502func (c *OrganizationsEnvironmentsReferencesGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsReferencesGetCall {
32503	c.ifNoneMatch_ = entityTag
32504	return c
32505}
32506
32507// Context sets the context to be used in this call's Do method. Any
32508// pending HTTP request will be aborted if the provided context is
32509// canceled.
32510func (c *OrganizationsEnvironmentsReferencesGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsReferencesGetCall {
32511	c.ctx_ = ctx
32512	return c
32513}
32514
32515// Header returns an http.Header that can be modified by the caller to
32516// add HTTP headers to the request.
32517func (c *OrganizationsEnvironmentsReferencesGetCall) Header() http.Header {
32518	if c.header_ == nil {
32519		c.header_ = make(http.Header)
32520	}
32521	return c.header_
32522}
32523
32524func (c *OrganizationsEnvironmentsReferencesGetCall) doRequest(alt string) (*http.Response, error) {
32525	reqHeaders := make(http.Header)
32526	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
32527	for k, v := range c.header_ {
32528		reqHeaders[k] = v
32529	}
32530	reqHeaders.Set("User-Agent", c.s.userAgent())
32531	if c.ifNoneMatch_ != "" {
32532		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
32533	}
32534	var body io.Reader = nil
32535	c.urlParams_.Set("alt", alt)
32536	c.urlParams_.Set("prettyPrint", "false")
32537	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
32538	urls += "?" + c.urlParams_.Encode()
32539	req, err := http.NewRequest("GET", urls, body)
32540	if err != nil {
32541		return nil, err
32542	}
32543	req.Header = reqHeaders
32544	googleapi.Expand(req.URL, map[string]string{
32545		"name": c.name,
32546	})
32547	return gensupport.SendRequest(c.ctx_, c.s.client, req)
32548}
32549
32550// Do executes the "apigee.organizations.environments.references.get" call.
32551// Exactly one of *GoogleCloudApigeeV1Reference or error will be
32552// non-nil. Any non-2xx status code is an error. Response headers are in
32553// either *GoogleCloudApigeeV1Reference.ServerResponse.Header or (if a
32554// response was returned at all) in error.(*googleapi.Error).Header. Use
32555// googleapi.IsNotModified to check whether the returned error was
32556// because http.StatusNotModified was returned.
32557func (c *OrganizationsEnvironmentsReferencesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Reference, error) {
32558	gensupport.SetOptions(c.urlParams_, opts...)
32559	res, err := c.doRequest("json")
32560	if res != nil && res.StatusCode == http.StatusNotModified {
32561		if res.Body != nil {
32562			res.Body.Close()
32563		}
32564		return nil, &googleapi.Error{
32565			Code:   res.StatusCode,
32566			Header: res.Header,
32567		}
32568	}
32569	if err != nil {
32570		return nil, err
32571	}
32572	defer googleapi.CloseBody(res)
32573	if err := googleapi.CheckResponse(res); err != nil {
32574		return nil, err
32575	}
32576	ret := &GoogleCloudApigeeV1Reference{
32577		ServerResponse: googleapi.ServerResponse{
32578			Header:         res.Header,
32579			HTTPStatusCode: res.StatusCode,
32580		},
32581	}
32582	target := &ret
32583	if err := gensupport.DecodeResponse(target, res); err != nil {
32584		return nil, err
32585	}
32586	return ret, nil
32587	// {
32588	//   "description": "Gets a Reference resource.",
32589	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/references/{referencesId}",
32590	//   "httpMethod": "GET",
32591	//   "id": "apigee.organizations.environments.references.get",
32592	//   "parameterOrder": [
32593	//     "name"
32594	//   ],
32595	//   "parameters": {
32596	//     "name": {
32597	//       "description": "Required. The name of the Reference to get. Must be of the form `organizations/{org}/environments/{env}/references/{ref}`.",
32598	//       "location": "path",
32599	//       "pattern": "^organizations/[^/]+/environments/[^/]+/references/[^/]+$",
32600	//       "required": true,
32601	//       "type": "string"
32602	//     }
32603	//   },
32604	//   "path": "v1/{+name}",
32605	//   "response": {
32606	//     "$ref": "GoogleCloudApigeeV1Reference"
32607	//   },
32608	//   "scopes": [
32609	//     "https://www.googleapis.com/auth/cloud-platform"
32610	//   ]
32611	// }
32612
32613}
32614
32615// method id "apigee.organizations.environments.references.update":
32616
32617type OrganizationsEnvironmentsReferencesUpdateCall struct {
32618	s                            *Service
32619	name                         string
32620	googlecloudapigeev1reference *GoogleCloudApigeeV1Reference
32621	urlParams_                   gensupport.URLParams
32622	ctx_                         context.Context
32623	header_                      http.Header
32624}
32625
32626// Update: Updates an existing Reference. Note that this operation has
32627// PUT semantics; it will replace the entirety of the existing Reference
32628// with the resource in the request body.
32629//
32630// - name: The name of the Reference to update. Must be of the form
32631//   `organizations/{org}/environments/{env}/references/{ref}`.
32632func (r *OrganizationsEnvironmentsReferencesService) Update(name string, googlecloudapigeev1reference *GoogleCloudApigeeV1Reference) *OrganizationsEnvironmentsReferencesUpdateCall {
32633	c := &OrganizationsEnvironmentsReferencesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32634	c.name = name
32635	c.googlecloudapigeev1reference = googlecloudapigeev1reference
32636	return c
32637}
32638
32639// Fields allows partial responses to be retrieved. See
32640// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
32641// for more information.
32642func (c *OrganizationsEnvironmentsReferencesUpdateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsReferencesUpdateCall {
32643	c.urlParams_.Set("fields", googleapi.CombineFields(s))
32644	return c
32645}
32646
32647// Context sets the context to be used in this call's Do method. Any
32648// pending HTTP request will be aborted if the provided context is
32649// canceled.
32650func (c *OrganizationsEnvironmentsReferencesUpdateCall) Context(ctx context.Context) *OrganizationsEnvironmentsReferencesUpdateCall {
32651	c.ctx_ = ctx
32652	return c
32653}
32654
32655// Header returns an http.Header that can be modified by the caller to
32656// add HTTP headers to the request.
32657func (c *OrganizationsEnvironmentsReferencesUpdateCall) Header() http.Header {
32658	if c.header_ == nil {
32659		c.header_ = make(http.Header)
32660	}
32661	return c.header_
32662}
32663
32664func (c *OrganizationsEnvironmentsReferencesUpdateCall) doRequest(alt string) (*http.Response, error) {
32665	reqHeaders := make(http.Header)
32666	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
32667	for k, v := range c.header_ {
32668		reqHeaders[k] = v
32669	}
32670	reqHeaders.Set("User-Agent", c.s.userAgent())
32671	var body io.Reader = nil
32672	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1reference)
32673	if err != nil {
32674		return nil, err
32675	}
32676	reqHeaders.Set("Content-Type", "application/json")
32677	c.urlParams_.Set("alt", alt)
32678	c.urlParams_.Set("prettyPrint", "false")
32679	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
32680	urls += "?" + c.urlParams_.Encode()
32681	req, err := http.NewRequest("PUT", urls, body)
32682	if err != nil {
32683		return nil, err
32684	}
32685	req.Header = reqHeaders
32686	googleapi.Expand(req.URL, map[string]string{
32687		"name": c.name,
32688	})
32689	return gensupport.SendRequest(c.ctx_, c.s.client, req)
32690}
32691
32692// Do executes the "apigee.organizations.environments.references.update" call.
32693// Exactly one of *GoogleCloudApigeeV1Reference or error will be
32694// non-nil. Any non-2xx status code is an error. Response headers are in
32695// either *GoogleCloudApigeeV1Reference.ServerResponse.Header or (if a
32696// response was returned at all) in error.(*googleapi.Error).Header. Use
32697// googleapi.IsNotModified to check whether the returned error was
32698// because http.StatusNotModified was returned.
32699func (c *OrganizationsEnvironmentsReferencesUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Reference, error) {
32700	gensupport.SetOptions(c.urlParams_, opts...)
32701	res, err := c.doRequest("json")
32702	if res != nil && res.StatusCode == http.StatusNotModified {
32703		if res.Body != nil {
32704			res.Body.Close()
32705		}
32706		return nil, &googleapi.Error{
32707			Code:   res.StatusCode,
32708			Header: res.Header,
32709		}
32710	}
32711	if err != nil {
32712		return nil, err
32713	}
32714	defer googleapi.CloseBody(res)
32715	if err := googleapi.CheckResponse(res); err != nil {
32716		return nil, err
32717	}
32718	ret := &GoogleCloudApigeeV1Reference{
32719		ServerResponse: googleapi.ServerResponse{
32720			Header:         res.Header,
32721			HTTPStatusCode: res.StatusCode,
32722		},
32723	}
32724	target := &ret
32725	if err := gensupport.DecodeResponse(target, res); err != nil {
32726		return nil, err
32727	}
32728	return ret, nil
32729	// {
32730	//   "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.",
32731	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/references/{referencesId}",
32732	//   "httpMethod": "PUT",
32733	//   "id": "apigee.organizations.environments.references.update",
32734	//   "parameterOrder": [
32735	//     "name"
32736	//   ],
32737	//   "parameters": {
32738	//     "name": {
32739	//       "description": "Required. The name of the Reference to update. Must be of the form `organizations/{org}/environments/{env}/references/{ref}`.",
32740	//       "location": "path",
32741	//       "pattern": "^organizations/[^/]+/environments/[^/]+/references/[^/]+$",
32742	//       "required": true,
32743	//       "type": "string"
32744	//     }
32745	//   },
32746	//   "path": "v1/{+name}",
32747	//   "request": {
32748	//     "$ref": "GoogleCloudApigeeV1Reference"
32749	//   },
32750	//   "response": {
32751	//     "$ref": "GoogleCloudApigeeV1Reference"
32752	//   },
32753	//   "scopes": [
32754	//     "https://www.googleapis.com/auth/cloud-platform"
32755	//   ]
32756	// }
32757
32758}
32759
32760// method id "apigee.organizations.environments.resourcefiles.create":
32761
32762type OrganizationsEnvironmentsResourcefilesCreateCall struct {
32763	s                 *Service
32764	parent            string
32765	googleapihttpbody *GoogleApiHttpBody
32766	urlParams_        gensupport.URLParams
32767	ctx_              context.Context
32768	header_           http.Header
32769}
32770
32771// Create: Creates a resource file. Specify the `Content-Type` as
32772// `application/octet-stream` or `multipart/form-data`. For more
32773// information about resource files, see Resource files
32774// (https://cloud.google.com/apigee/docs/api-platform/develop/resource-files).
32775//
32776// - parent: Name of the environment in which to create the resource
32777//   file in the following format:
32778//   `organizations/{org}/environments/{env}`.
32779func (r *OrganizationsEnvironmentsResourcefilesService) Create(parent string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsEnvironmentsResourcefilesCreateCall {
32780	c := &OrganizationsEnvironmentsResourcefilesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32781	c.parent = parent
32782	c.googleapihttpbody = googleapihttpbody
32783	return c
32784}
32785
32786// Name sets the optional parameter "name": Required. Name of the
32787// resource file. Must match the regular expression:
32788// [a-zA-Z0-9:/\\!@#$%^&{}\\ ()+\-=,.~'` ]{1,255}
32789func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Name(name string) *OrganizationsEnvironmentsResourcefilesCreateCall {
32790	c.urlParams_.Set("name", name)
32791	return c
32792}
32793
32794// Type sets the optional parameter "type": Required. Resource file
32795// type. {{ resource_file_type }}
32796func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Type(type_ string) *OrganizationsEnvironmentsResourcefilesCreateCall {
32797	c.urlParams_.Set("type", type_)
32798	return c
32799}
32800
32801// Fields allows partial responses to be retrieved. See
32802// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
32803// for more information.
32804func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesCreateCall {
32805	c.urlParams_.Set("fields", googleapi.CombineFields(s))
32806	return c
32807}
32808
32809// Context sets the context to be used in this call's Do method. Any
32810// pending HTTP request will be aborted if the provided context is
32811// canceled.
32812func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesCreateCall {
32813	c.ctx_ = ctx
32814	return c
32815}
32816
32817// Header returns an http.Header that can be modified by the caller to
32818// add HTTP headers to the request.
32819func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Header() http.Header {
32820	if c.header_ == nil {
32821		c.header_ = make(http.Header)
32822	}
32823	return c.header_
32824}
32825
32826func (c *OrganizationsEnvironmentsResourcefilesCreateCall) doRequest(alt string) (*http.Response, error) {
32827	reqHeaders := make(http.Header)
32828	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
32829	for k, v := range c.header_ {
32830		reqHeaders[k] = v
32831	}
32832	reqHeaders.Set("User-Agent", c.s.userAgent())
32833	var body io.Reader = nil
32834	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
32835	if err != nil {
32836		return nil, err
32837	}
32838	reqHeaders.Set("Content-Type", "application/json")
32839	c.urlParams_.Set("alt", alt)
32840	c.urlParams_.Set("prettyPrint", "false")
32841	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcefiles")
32842	urls += "?" + c.urlParams_.Encode()
32843	req, err := http.NewRequest("POST", urls, body)
32844	if err != nil {
32845		return nil, err
32846	}
32847	req.Header = reqHeaders
32848	googleapi.Expand(req.URL, map[string]string{
32849		"parent": c.parent,
32850	})
32851	return gensupport.SendRequest(c.ctx_, c.s.client, req)
32852}
32853
32854// Do executes the "apigee.organizations.environments.resourcefiles.create" call.
32855// Exactly one of *GoogleCloudApigeeV1ResourceFile or error will be
32856// non-nil. Any non-2xx status code is an error. Response headers are in
32857// either *GoogleCloudApigeeV1ResourceFile.ServerResponse.Header or (if
32858// a response was returned at all) in error.(*googleapi.Error).Header.
32859// Use googleapi.IsNotModified to check whether the returned error was
32860// because http.StatusNotModified was returned.
32861func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ResourceFile, error) {
32862	gensupport.SetOptions(c.urlParams_, opts...)
32863	res, err := c.doRequest("json")
32864	if res != nil && res.StatusCode == http.StatusNotModified {
32865		if res.Body != nil {
32866			res.Body.Close()
32867		}
32868		return nil, &googleapi.Error{
32869			Code:   res.StatusCode,
32870			Header: res.Header,
32871		}
32872	}
32873	if err != nil {
32874		return nil, err
32875	}
32876	defer googleapi.CloseBody(res)
32877	if err := googleapi.CheckResponse(res); err != nil {
32878		return nil, err
32879	}
32880	ret := &GoogleCloudApigeeV1ResourceFile{
32881		ServerResponse: googleapi.ServerResponse{
32882			Header:         res.Header,
32883			HTTPStatusCode: res.StatusCode,
32884		},
32885	}
32886	target := &ret
32887	if err := gensupport.DecodeResponse(target, res); err != nil {
32888		return nil, err
32889	}
32890	return ret, nil
32891	// {
32892	//   "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).",
32893	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/resourcefiles",
32894	//   "httpMethod": "POST",
32895	//   "id": "apigee.organizations.environments.resourcefiles.create",
32896	//   "parameterOrder": [
32897	//     "parent"
32898	//   ],
32899	//   "parameters": {
32900	//     "name": {
32901	//       "description": "Required. Name of the resource file. Must match the regular expression: [a-zA-Z0-9:/\\\\!@#$%^\u0026{}\\[\\]()+\\-=,.~'` ]{1,255}",
32902	//       "location": "query",
32903	//       "type": "string"
32904	//     },
32905	//     "parent": {
32906	//       "description": "Required. Name of the environment in which to create the resource file in the following format: `organizations/{org}/environments/{env}`.",
32907	//       "location": "path",
32908	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
32909	//       "required": true,
32910	//       "type": "string"
32911	//     },
32912	//     "type": {
32913	//       "description": "Required. Resource file type. {{ resource_file_type }}",
32914	//       "location": "query",
32915	//       "type": "string"
32916	//     }
32917	//   },
32918	//   "path": "v1/{+parent}/resourcefiles",
32919	//   "request": {
32920	//     "$ref": "GoogleApiHttpBody"
32921	//   },
32922	//   "response": {
32923	//     "$ref": "GoogleCloudApigeeV1ResourceFile"
32924	//   },
32925	//   "scopes": [
32926	//     "https://www.googleapis.com/auth/cloud-platform"
32927	//   ]
32928	// }
32929
32930}
32931
32932// method id "apigee.organizations.environments.resourcefiles.delete":
32933
32934type OrganizationsEnvironmentsResourcefilesDeleteCall struct {
32935	s          *Service
32936	parent     string
32937	type_      string
32938	name       string
32939	urlParams_ gensupport.URLParams
32940	ctx_       context.Context
32941	header_    http.Header
32942}
32943
32944// Delete: Deletes a resource file. For more information about resource
32945// files, see Resource files
32946// (https://cloud.google.com/apigee/docs/api-platform/develop/resource-files).
32947//
32948// - name: ID of the resource file to delete. Must match the regular
32949//   expression: [a-zA-Z0-9:/\\!@#$%^&{}\\ ()+\-=,.~'` ]{1,255}.
32950// - parent: Name of the environment in the following format:
32951//   `organizations/{org}/environments/{env}`.
32952// - type: Resource file type. {{ resource_file_type }}.
32953func (r *OrganizationsEnvironmentsResourcefilesService) Delete(parent string, type_ string, name string) *OrganizationsEnvironmentsResourcefilesDeleteCall {
32954	c := &OrganizationsEnvironmentsResourcefilesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32955	c.parent = parent
32956	c.type_ = type_
32957	c.name = name
32958	return c
32959}
32960
32961// Fields allows partial responses to be retrieved. See
32962// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
32963// for more information.
32964func (c *OrganizationsEnvironmentsResourcefilesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesDeleteCall {
32965	c.urlParams_.Set("fields", googleapi.CombineFields(s))
32966	return c
32967}
32968
32969// Context sets the context to be used in this call's Do method. Any
32970// pending HTTP request will be aborted if the provided context is
32971// canceled.
32972func (c *OrganizationsEnvironmentsResourcefilesDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesDeleteCall {
32973	c.ctx_ = ctx
32974	return c
32975}
32976
32977// Header returns an http.Header that can be modified by the caller to
32978// add HTTP headers to the request.
32979func (c *OrganizationsEnvironmentsResourcefilesDeleteCall) Header() http.Header {
32980	if c.header_ == nil {
32981		c.header_ = make(http.Header)
32982	}
32983	return c.header_
32984}
32985
32986func (c *OrganizationsEnvironmentsResourcefilesDeleteCall) doRequest(alt string) (*http.Response, error) {
32987	reqHeaders := make(http.Header)
32988	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
32989	for k, v := range c.header_ {
32990		reqHeaders[k] = v
32991	}
32992	reqHeaders.Set("User-Agent", c.s.userAgent())
32993	var body io.Reader = nil
32994	c.urlParams_.Set("alt", alt)
32995	c.urlParams_.Set("prettyPrint", "false")
32996	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcefiles/{type}/{name}")
32997	urls += "?" + c.urlParams_.Encode()
32998	req, err := http.NewRequest("DELETE", urls, body)
32999	if err != nil {
33000		return nil, err
33001	}
33002	req.Header = reqHeaders
33003	googleapi.Expand(req.URL, map[string]string{
33004		"parent": c.parent,
33005		"type":   c.type_,
33006		"name":   c.name,
33007	})
33008	return gensupport.SendRequest(c.ctx_, c.s.client, req)
33009}
33010
33011// Do executes the "apigee.organizations.environments.resourcefiles.delete" call.
33012// Exactly one of *GoogleCloudApigeeV1ResourceFile or error will be
33013// non-nil. Any non-2xx status code is an error. Response headers are in
33014// either *GoogleCloudApigeeV1ResourceFile.ServerResponse.Header or (if
33015// a response was returned at all) in error.(*googleapi.Error).Header.
33016// Use googleapi.IsNotModified to check whether the returned error was
33017// because http.StatusNotModified was returned.
33018func (c *OrganizationsEnvironmentsResourcefilesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ResourceFile, error) {
33019	gensupport.SetOptions(c.urlParams_, opts...)
33020	res, err := c.doRequest("json")
33021	if res != nil && res.StatusCode == http.StatusNotModified {
33022		if res.Body != nil {
33023			res.Body.Close()
33024		}
33025		return nil, &googleapi.Error{
33026			Code:   res.StatusCode,
33027			Header: res.Header,
33028		}
33029	}
33030	if err != nil {
33031		return nil, err
33032	}
33033	defer googleapi.CloseBody(res)
33034	if err := googleapi.CheckResponse(res); err != nil {
33035		return nil, err
33036	}
33037	ret := &GoogleCloudApigeeV1ResourceFile{
33038		ServerResponse: googleapi.ServerResponse{
33039			Header:         res.Header,
33040			HTTPStatusCode: res.StatusCode,
33041		},
33042	}
33043	target := &ret
33044	if err := gensupport.DecodeResponse(target, res); err != nil {
33045		return nil, err
33046	}
33047	return ret, nil
33048	// {
33049	//   "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).",
33050	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/resourcefiles/{type}/{name}",
33051	//   "httpMethod": "DELETE",
33052	//   "id": "apigee.organizations.environments.resourcefiles.delete",
33053	//   "parameterOrder": [
33054	//     "parent",
33055	//     "type",
33056	//     "name"
33057	//   ],
33058	//   "parameters": {
33059	//     "name": {
33060	//       "description": "Required. ID of the resource file to delete. Must match the regular expression: [a-zA-Z0-9:/\\\\!@#$%^\u0026{}\\[\\]()+\\-=,.~'` ]{1,255}",
33061	//       "location": "path",
33062	//       "required": true,
33063	//       "type": "string"
33064	//     },
33065	//     "parent": {
33066	//       "description": "Required. Name of the environment in the following format: `organizations/{org}/environments/{env}`.",
33067	//       "location": "path",
33068	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
33069	//       "required": true,
33070	//       "type": "string"
33071	//     },
33072	//     "type": {
33073	//       "description": "Required. Resource file type. {{ resource_file_type }}",
33074	//       "location": "path",
33075	//       "required": true,
33076	//       "type": "string"
33077	//     }
33078	//   },
33079	//   "path": "v1/{+parent}/resourcefiles/{type}/{name}",
33080	//   "response": {
33081	//     "$ref": "GoogleCloudApigeeV1ResourceFile"
33082	//   },
33083	//   "scopes": [
33084	//     "https://www.googleapis.com/auth/cloud-platform"
33085	//   ]
33086	// }
33087
33088}
33089
33090// method id "apigee.organizations.environments.resourcefiles.get":
33091
33092type OrganizationsEnvironmentsResourcefilesGetCall struct {
33093	s            *Service
33094	parent       string
33095	type_        string
33096	name         string
33097	urlParams_   gensupport.URLParams
33098	ifNoneMatch_ string
33099	ctx_         context.Context
33100	header_      http.Header
33101}
33102
33103// Get: Gets the contents of a resource file. For more information about
33104// resource files, see Resource files
33105// (https://cloud.google.com/apigee/docs/api-platform/develop/resource-files).
33106//
33107// - name: ID of the resource file. Must match the regular expression:
33108//   [a-zA-Z0-9:/\\!@#$%^&{}\\ ()+\-=,.~'` ]{1,255}.
33109// - parent: Name of the environment in the following format:
33110//   `organizations/{org}/environments/{env}`.
33111// - type: Resource file type. {{ resource_file_type }}.
33112func (r *OrganizationsEnvironmentsResourcefilesService) Get(parent string, type_ string, name string) *OrganizationsEnvironmentsResourcefilesGetCall {
33113	c := &OrganizationsEnvironmentsResourcefilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33114	c.parent = parent
33115	c.type_ = type_
33116	c.name = name
33117	return c
33118}
33119
33120// Fields allows partial responses to be retrieved. See
33121// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
33122// for more information.
33123func (c *OrganizationsEnvironmentsResourcefilesGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesGetCall {
33124	c.urlParams_.Set("fields", googleapi.CombineFields(s))
33125	return c
33126}
33127
33128// IfNoneMatch sets the optional parameter which makes the operation
33129// fail if the object's ETag matches the given value. This is useful for
33130// getting updates only after the object has changed since the last
33131// request. Use googleapi.IsNotModified to check whether the response
33132// error from Do is the result of In-None-Match.
33133func (c *OrganizationsEnvironmentsResourcefilesGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsResourcefilesGetCall {
33134	c.ifNoneMatch_ = entityTag
33135	return c
33136}
33137
33138// Context sets the context to be used in this call's Do method. Any
33139// pending HTTP request will be aborted if the provided context is
33140// canceled.
33141func (c *OrganizationsEnvironmentsResourcefilesGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesGetCall {
33142	c.ctx_ = ctx
33143	return c
33144}
33145
33146// Header returns an http.Header that can be modified by the caller to
33147// add HTTP headers to the request.
33148func (c *OrganizationsEnvironmentsResourcefilesGetCall) Header() http.Header {
33149	if c.header_ == nil {
33150		c.header_ = make(http.Header)
33151	}
33152	return c.header_
33153}
33154
33155func (c *OrganizationsEnvironmentsResourcefilesGetCall) doRequest(alt string) (*http.Response, error) {
33156	reqHeaders := make(http.Header)
33157	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
33158	for k, v := range c.header_ {
33159		reqHeaders[k] = v
33160	}
33161	reqHeaders.Set("User-Agent", c.s.userAgent())
33162	if c.ifNoneMatch_ != "" {
33163		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
33164	}
33165	var body io.Reader = nil
33166	c.urlParams_.Set("alt", alt)
33167	c.urlParams_.Set("prettyPrint", "false")
33168	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcefiles/{type}/{name}")
33169	urls += "?" + c.urlParams_.Encode()
33170	req, err := http.NewRequest("GET", urls, body)
33171	if err != nil {
33172		return nil, err
33173	}
33174	req.Header = reqHeaders
33175	googleapi.Expand(req.URL, map[string]string{
33176		"parent": c.parent,
33177		"type":   c.type_,
33178		"name":   c.name,
33179	})
33180	return gensupport.SendRequest(c.ctx_, c.s.client, req)
33181}
33182
33183// Do executes the "apigee.organizations.environments.resourcefiles.get" call.
33184// Exactly one of *GoogleApiHttpBody or error will be non-nil. Any
33185// non-2xx status code is an error. Response headers are in either
33186// *GoogleApiHttpBody.ServerResponse.Header or (if a response was
33187// returned at all) in error.(*googleapi.Error).Header. Use
33188// googleapi.IsNotModified to check whether the returned error was
33189// because http.StatusNotModified was returned.
33190func (c *OrganizationsEnvironmentsResourcefilesGetCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
33191	gensupport.SetOptions(c.urlParams_, opts...)
33192	res, err := c.doRequest("json")
33193	if res != nil && res.StatusCode == http.StatusNotModified {
33194		if res.Body != nil {
33195			res.Body.Close()
33196		}
33197		return nil, &googleapi.Error{
33198			Code:   res.StatusCode,
33199			Header: res.Header,
33200		}
33201	}
33202	if err != nil {
33203		return nil, err
33204	}
33205	defer googleapi.CloseBody(res)
33206	if err := googleapi.CheckResponse(res); err != nil {
33207		return nil, err
33208	}
33209	ret := &GoogleApiHttpBody{
33210		ServerResponse: googleapi.ServerResponse{
33211			Header:         res.Header,
33212			HTTPStatusCode: res.StatusCode,
33213		},
33214	}
33215	target := &ret
33216	if err := gensupport.DecodeResponse(target, res); err != nil {
33217		return nil, err
33218	}
33219	return ret, nil
33220	// {
33221	//   "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).",
33222	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/resourcefiles/{type}/{name}",
33223	//   "httpMethod": "GET",
33224	//   "id": "apigee.organizations.environments.resourcefiles.get",
33225	//   "parameterOrder": [
33226	//     "parent",
33227	//     "type",
33228	//     "name"
33229	//   ],
33230	//   "parameters": {
33231	//     "name": {
33232	//       "description": "Required. ID of the resource file. Must match the regular expression: [a-zA-Z0-9:/\\\\!@#$%^\u0026{}\\[\\]()+\\-=,.~'` ]{1,255}",
33233	//       "location": "path",
33234	//       "required": true,
33235	//       "type": "string"
33236	//     },
33237	//     "parent": {
33238	//       "description": "Required. Name of the environment in the following format: `organizations/{org}/environments/{env}`.",
33239	//       "location": "path",
33240	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
33241	//       "required": true,
33242	//       "type": "string"
33243	//     },
33244	//     "type": {
33245	//       "description": "Required. Resource file type. {{ resource_file_type }}",
33246	//       "location": "path",
33247	//       "required": true,
33248	//       "type": "string"
33249	//     }
33250	//   },
33251	//   "path": "v1/{+parent}/resourcefiles/{type}/{name}",
33252	//   "response": {
33253	//     "$ref": "GoogleApiHttpBody"
33254	//   },
33255	//   "scopes": [
33256	//     "https://www.googleapis.com/auth/cloud-platform"
33257	//   ]
33258	// }
33259
33260}
33261
33262// method id "apigee.organizations.environments.resourcefiles.list":
33263
33264type OrganizationsEnvironmentsResourcefilesListCall struct {
33265	s            *Service
33266	parent       string
33267	urlParams_   gensupport.URLParams
33268	ifNoneMatch_ string
33269	ctx_         context.Context
33270	header_      http.Header
33271}
33272
33273// List: Lists all resource files, optionally filtering by type. For
33274// more information about resource files, see Resource files
33275// (https://cloud.google.com/apigee/docs/api-platform/develop/resource-files).
33276//
33277// - parent: Name of the environment in which to list resource files in
33278//   the following format: `organizations/{org}/environments/{env}`.
33279func (r *OrganizationsEnvironmentsResourcefilesService) List(parent string) *OrganizationsEnvironmentsResourcefilesListCall {
33280	c := &OrganizationsEnvironmentsResourcefilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33281	c.parent = parent
33282	return c
33283}
33284
33285// Type sets the optional parameter "type": Type of resource files to
33286// list. {{ resource_file_type }}
33287func (c *OrganizationsEnvironmentsResourcefilesListCall) Type(type_ string) *OrganizationsEnvironmentsResourcefilesListCall {
33288	c.urlParams_.Set("type", type_)
33289	return c
33290}
33291
33292// Fields allows partial responses to be retrieved. See
33293// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
33294// for more information.
33295func (c *OrganizationsEnvironmentsResourcefilesListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesListCall {
33296	c.urlParams_.Set("fields", googleapi.CombineFields(s))
33297	return c
33298}
33299
33300// IfNoneMatch sets the optional parameter which makes the operation
33301// fail if the object's ETag matches the given value. This is useful for
33302// getting updates only after the object has changed since the last
33303// request. Use googleapi.IsNotModified to check whether the response
33304// error from Do is the result of In-None-Match.
33305func (c *OrganizationsEnvironmentsResourcefilesListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsResourcefilesListCall {
33306	c.ifNoneMatch_ = entityTag
33307	return c
33308}
33309
33310// Context sets the context to be used in this call's Do method. Any
33311// pending HTTP request will be aborted if the provided context is
33312// canceled.
33313func (c *OrganizationsEnvironmentsResourcefilesListCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesListCall {
33314	c.ctx_ = ctx
33315	return c
33316}
33317
33318// Header returns an http.Header that can be modified by the caller to
33319// add HTTP headers to the request.
33320func (c *OrganizationsEnvironmentsResourcefilesListCall) Header() http.Header {
33321	if c.header_ == nil {
33322		c.header_ = make(http.Header)
33323	}
33324	return c.header_
33325}
33326
33327func (c *OrganizationsEnvironmentsResourcefilesListCall) doRequest(alt string) (*http.Response, error) {
33328	reqHeaders := make(http.Header)
33329	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
33330	for k, v := range c.header_ {
33331		reqHeaders[k] = v
33332	}
33333	reqHeaders.Set("User-Agent", c.s.userAgent())
33334	if c.ifNoneMatch_ != "" {
33335		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
33336	}
33337	var body io.Reader = nil
33338	c.urlParams_.Set("alt", alt)
33339	c.urlParams_.Set("prettyPrint", "false")
33340	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcefiles")
33341	urls += "?" + c.urlParams_.Encode()
33342	req, err := http.NewRequest("GET", urls, body)
33343	if err != nil {
33344		return nil, err
33345	}
33346	req.Header = reqHeaders
33347	googleapi.Expand(req.URL, map[string]string{
33348		"parent": c.parent,
33349	})
33350	return gensupport.SendRequest(c.ctx_, c.s.client, req)
33351}
33352
33353// Do executes the "apigee.organizations.environments.resourcefiles.list" call.
33354// Exactly one of *GoogleCloudApigeeV1ListEnvironmentResourcesResponse
33355// or error will be non-nil. Any non-2xx status code is an error.
33356// Response headers are in either
33357// *GoogleCloudApigeeV1ListEnvironmentResourcesResponse.ServerResponse.He
33358// ader or (if a response was returned at all) in
33359// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
33360// whether the returned error was because http.StatusNotModified was
33361// returned.
33362func (c *OrganizationsEnvironmentsResourcefilesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListEnvironmentResourcesResponse, error) {
33363	gensupport.SetOptions(c.urlParams_, opts...)
33364	res, err := c.doRequest("json")
33365	if res != nil && res.StatusCode == http.StatusNotModified {
33366		if res.Body != nil {
33367			res.Body.Close()
33368		}
33369		return nil, &googleapi.Error{
33370			Code:   res.StatusCode,
33371			Header: res.Header,
33372		}
33373	}
33374	if err != nil {
33375		return nil, err
33376	}
33377	defer googleapi.CloseBody(res)
33378	if err := googleapi.CheckResponse(res); err != nil {
33379		return nil, err
33380	}
33381	ret := &GoogleCloudApigeeV1ListEnvironmentResourcesResponse{
33382		ServerResponse: googleapi.ServerResponse{
33383			Header:         res.Header,
33384			HTTPStatusCode: res.StatusCode,
33385		},
33386	}
33387	target := &ret
33388	if err := gensupport.DecodeResponse(target, res); err != nil {
33389		return nil, err
33390	}
33391	return ret, nil
33392	// {
33393	//   "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).",
33394	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/resourcefiles",
33395	//   "httpMethod": "GET",
33396	//   "id": "apigee.organizations.environments.resourcefiles.list",
33397	//   "parameterOrder": [
33398	//     "parent"
33399	//   ],
33400	//   "parameters": {
33401	//     "parent": {
33402	//       "description": "Required. Name of the environment in which to list resource files in the following format: `organizations/{org}/environments/{env}`.",
33403	//       "location": "path",
33404	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
33405	//       "required": true,
33406	//       "type": "string"
33407	//     },
33408	//     "type": {
33409	//       "description": "Optional. Type of resource files to list. {{ resource_file_type }}",
33410	//       "location": "query",
33411	//       "type": "string"
33412	//     }
33413	//   },
33414	//   "path": "v1/{+parent}/resourcefiles",
33415	//   "response": {
33416	//     "$ref": "GoogleCloudApigeeV1ListEnvironmentResourcesResponse"
33417	//   },
33418	//   "scopes": [
33419	//     "https://www.googleapis.com/auth/cloud-platform"
33420	//   ]
33421	// }
33422
33423}
33424
33425// method id "apigee.organizations.environments.resourcefiles.listEnvironmentResources":
33426
33427type OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall struct {
33428	s            *Service
33429	parent       string
33430	type_        string
33431	urlParams_   gensupport.URLParams
33432	ifNoneMatch_ string
33433	ctx_         context.Context
33434	header_      http.Header
33435}
33436
33437// ListEnvironmentResources: Lists all resource files, optionally
33438// filtering by type. For more information about resource files, see
33439// Resource files
33440// (https://cloud.google.com/apigee/docs/api-platform/develop/resource-files).
33441//
33442// - parent: Name of the environment in which to list resource files in
33443//   the following format: `organizations/{org}/environments/{env}`.
33444// - type: Optional. Type of resource files to list. {{
33445//   resource_file_type }}.
33446func (r *OrganizationsEnvironmentsResourcefilesService) ListEnvironmentResources(parent string, type_ string) *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall {
33447	c := &OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33448	c.parent = parent
33449	c.type_ = type_
33450	return c
33451}
33452
33453// Fields allows partial responses to be retrieved. See
33454// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
33455// for more information.
33456func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall {
33457	c.urlParams_.Set("fields", googleapi.CombineFields(s))
33458	return c
33459}
33460
33461// IfNoneMatch sets the optional parameter which makes the operation
33462// fail if the object's ETag matches the given value. This is useful for
33463// getting updates only after the object has changed since the last
33464// request. Use googleapi.IsNotModified to check whether the response
33465// error from Do is the result of In-None-Match.
33466func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall {
33467	c.ifNoneMatch_ = entityTag
33468	return c
33469}
33470
33471// Context sets the context to be used in this call's Do method. Any
33472// pending HTTP request will be aborted if the provided context is
33473// canceled.
33474func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall {
33475	c.ctx_ = ctx
33476	return c
33477}
33478
33479// Header returns an http.Header that can be modified by the caller to
33480// add HTTP headers to the request.
33481func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) Header() http.Header {
33482	if c.header_ == nil {
33483		c.header_ = make(http.Header)
33484	}
33485	return c.header_
33486}
33487
33488func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) doRequest(alt string) (*http.Response, error) {
33489	reqHeaders := make(http.Header)
33490	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
33491	for k, v := range c.header_ {
33492		reqHeaders[k] = v
33493	}
33494	reqHeaders.Set("User-Agent", c.s.userAgent())
33495	if c.ifNoneMatch_ != "" {
33496		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
33497	}
33498	var body io.Reader = nil
33499	c.urlParams_.Set("alt", alt)
33500	c.urlParams_.Set("prettyPrint", "false")
33501	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcefiles/{type}")
33502	urls += "?" + c.urlParams_.Encode()
33503	req, err := http.NewRequest("GET", urls, body)
33504	if err != nil {
33505		return nil, err
33506	}
33507	req.Header = reqHeaders
33508	googleapi.Expand(req.URL, map[string]string{
33509		"parent": c.parent,
33510		"type":   c.type_,
33511	})
33512	return gensupport.SendRequest(c.ctx_, c.s.client, req)
33513}
33514
33515// Do executes the "apigee.organizations.environments.resourcefiles.listEnvironmentResources" call.
33516// Exactly one of *GoogleCloudApigeeV1ListEnvironmentResourcesResponse
33517// or error will be non-nil. Any non-2xx status code is an error.
33518// Response headers are in either
33519// *GoogleCloudApigeeV1ListEnvironmentResourcesResponse.ServerResponse.He
33520// ader or (if a response was returned at all) in
33521// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
33522// whether the returned error was because http.StatusNotModified was
33523// returned.
33524func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListEnvironmentResourcesResponse, error) {
33525	gensupport.SetOptions(c.urlParams_, opts...)
33526	res, err := c.doRequest("json")
33527	if res != nil && res.StatusCode == http.StatusNotModified {
33528		if res.Body != nil {
33529			res.Body.Close()
33530		}
33531		return nil, &googleapi.Error{
33532			Code:   res.StatusCode,
33533			Header: res.Header,
33534		}
33535	}
33536	if err != nil {
33537		return nil, err
33538	}
33539	defer googleapi.CloseBody(res)
33540	if err := googleapi.CheckResponse(res); err != nil {
33541		return nil, err
33542	}
33543	ret := &GoogleCloudApigeeV1ListEnvironmentResourcesResponse{
33544		ServerResponse: googleapi.ServerResponse{
33545			Header:         res.Header,
33546			HTTPStatusCode: res.StatusCode,
33547		},
33548	}
33549	target := &ret
33550	if err := gensupport.DecodeResponse(target, res); err != nil {
33551		return nil, err
33552	}
33553	return ret, nil
33554	// {
33555	//   "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).",
33556	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/resourcefiles/{type}",
33557	//   "httpMethod": "GET",
33558	//   "id": "apigee.organizations.environments.resourcefiles.listEnvironmentResources",
33559	//   "parameterOrder": [
33560	//     "parent",
33561	//     "type"
33562	//   ],
33563	//   "parameters": {
33564	//     "parent": {
33565	//       "description": "Required. Name of the environment in which to list resource files in the following format: `organizations/{org}/environments/{env}`.",
33566	//       "location": "path",
33567	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
33568	//       "required": true,
33569	//       "type": "string"
33570	//     },
33571	//     "type": {
33572	//       "description": "Optional. Type of resource files to list. {{ resource_file_type }}",
33573	//       "location": "path",
33574	//       "required": true,
33575	//       "type": "string"
33576	//     }
33577	//   },
33578	//   "path": "v1/{+parent}/resourcefiles/{type}",
33579	//   "response": {
33580	//     "$ref": "GoogleCloudApigeeV1ListEnvironmentResourcesResponse"
33581	//   },
33582	//   "scopes": [
33583	//     "https://www.googleapis.com/auth/cloud-platform"
33584	//   ]
33585	// }
33586
33587}
33588
33589// method id "apigee.organizations.environments.resourcefiles.update":
33590
33591type OrganizationsEnvironmentsResourcefilesUpdateCall struct {
33592	s                 *Service
33593	parent            string
33594	type_             string
33595	name              string
33596	googleapihttpbody *GoogleApiHttpBody
33597	urlParams_        gensupport.URLParams
33598	ctx_              context.Context
33599	header_           http.Header
33600}
33601
33602// Update: Updates a resource file. Specify the `Content-Type` as
33603// `application/octet-stream` or `multipart/form-data`. For more
33604// information about resource files, see Resource files
33605// (https://cloud.google.com/apigee/docs/api-platform/develop/resource-files).
33606//
33607// - name: ID of the resource file to update. Must match the regular
33608//   expression: [a-zA-Z0-9:/\\!@#$%^&{}\\ ()+\-=,.~'` ]{1,255}.
33609// - parent: Name of the environment in the following format:
33610//   `organizations/{org}/environments/{env}`.
33611// - type: Resource file type. {{ resource_file_type }}.
33612func (r *OrganizationsEnvironmentsResourcefilesService) Update(parent string, type_ string, name string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsEnvironmentsResourcefilesUpdateCall {
33613	c := &OrganizationsEnvironmentsResourcefilesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33614	c.parent = parent
33615	c.type_ = type_
33616	c.name = name
33617	c.googleapihttpbody = googleapihttpbody
33618	return c
33619}
33620
33621// Fields allows partial responses to be retrieved. See
33622// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
33623// for more information.
33624func (c *OrganizationsEnvironmentsResourcefilesUpdateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesUpdateCall {
33625	c.urlParams_.Set("fields", googleapi.CombineFields(s))
33626	return c
33627}
33628
33629// Context sets the context to be used in this call's Do method. Any
33630// pending HTTP request will be aborted if the provided context is
33631// canceled.
33632func (c *OrganizationsEnvironmentsResourcefilesUpdateCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesUpdateCall {
33633	c.ctx_ = ctx
33634	return c
33635}
33636
33637// Header returns an http.Header that can be modified by the caller to
33638// add HTTP headers to the request.
33639func (c *OrganizationsEnvironmentsResourcefilesUpdateCall) Header() http.Header {
33640	if c.header_ == nil {
33641		c.header_ = make(http.Header)
33642	}
33643	return c.header_
33644}
33645
33646func (c *OrganizationsEnvironmentsResourcefilesUpdateCall) doRequest(alt string) (*http.Response, error) {
33647	reqHeaders := make(http.Header)
33648	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
33649	for k, v := range c.header_ {
33650		reqHeaders[k] = v
33651	}
33652	reqHeaders.Set("User-Agent", c.s.userAgent())
33653	var body io.Reader = nil
33654	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
33655	if err != nil {
33656		return nil, err
33657	}
33658	reqHeaders.Set("Content-Type", "application/json")
33659	c.urlParams_.Set("alt", alt)
33660	c.urlParams_.Set("prettyPrint", "false")
33661	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcefiles/{type}/{name}")
33662	urls += "?" + c.urlParams_.Encode()
33663	req, err := http.NewRequest("PUT", urls, body)
33664	if err != nil {
33665		return nil, err
33666	}
33667	req.Header = reqHeaders
33668	googleapi.Expand(req.URL, map[string]string{
33669		"parent": c.parent,
33670		"type":   c.type_,
33671		"name":   c.name,
33672	})
33673	return gensupport.SendRequest(c.ctx_, c.s.client, req)
33674}
33675
33676// Do executes the "apigee.organizations.environments.resourcefiles.update" call.
33677// Exactly one of *GoogleCloudApigeeV1ResourceFile or error will be
33678// non-nil. Any non-2xx status code is an error. Response headers are in
33679// either *GoogleCloudApigeeV1ResourceFile.ServerResponse.Header or (if
33680// a response was returned at all) in error.(*googleapi.Error).Header.
33681// Use googleapi.IsNotModified to check whether the returned error was
33682// because http.StatusNotModified was returned.
33683func (c *OrganizationsEnvironmentsResourcefilesUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ResourceFile, error) {
33684	gensupport.SetOptions(c.urlParams_, opts...)
33685	res, err := c.doRequest("json")
33686	if res != nil && res.StatusCode == http.StatusNotModified {
33687		if res.Body != nil {
33688			res.Body.Close()
33689		}
33690		return nil, &googleapi.Error{
33691			Code:   res.StatusCode,
33692			Header: res.Header,
33693		}
33694	}
33695	if err != nil {
33696		return nil, err
33697	}
33698	defer googleapi.CloseBody(res)
33699	if err := googleapi.CheckResponse(res); err != nil {
33700		return nil, err
33701	}
33702	ret := &GoogleCloudApigeeV1ResourceFile{
33703		ServerResponse: googleapi.ServerResponse{
33704			Header:         res.Header,
33705			HTTPStatusCode: res.StatusCode,
33706		},
33707	}
33708	target := &ret
33709	if err := gensupport.DecodeResponse(target, res); err != nil {
33710		return nil, err
33711	}
33712	return ret, nil
33713	// {
33714	//   "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).",
33715	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/resourcefiles/{type}/{name}",
33716	//   "httpMethod": "PUT",
33717	//   "id": "apigee.organizations.environments.resourcefiles.update",
33718	//   "parameterOrder": [
33719	//     "parent",
33720	//     "type",
33721	//     "name"
33722	//   ],
33723	//   "parameters": {
33724	//     "name": {
33725	//       "description": "Required. ID of the resource file to update. Must match the regular expression: [a-zA-Z0-9:/\\\\!@#$%^\u0026{}\\[\\]()+\\-=,.~'` ]{1,255}",
33726	//       "location": "path",
33727	//       "required": true,
33728	//       "type": "string"
33729	//     },
33730	//     "parent": {
33731	//       "description": "Required. Name of the environment in the following format: `organizations/{org}/environments/{env}`.",
33732	//       "location": "path",
33733	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
33734	//       "required": true,
33735	//       "type": "string"
33736	//     },
33737	//     "type": {
33738	//       "description": "Required. Resource file type. {{ resource_file_type }}",
33739	//       "location": "path",
33740	//       "required": true,
33741	//       "type": "string"
33742	//     }
33743	//   },
33744	//   "path": "v1/{+parent}/resourcefiles/{type}/{name}",
33745	//   "request": {
33746	//     "$ref": "GoogleApiHttpBody"
33747	//   },
33748	//   "response": {
33749	//     "$ref": "GoogleCloudApigeeV1ResourceFile"
33750	//   },
33751	//   "scopes": [
33752	//     "https://www.googleapis.com/auth/cloud-platform"
33753	//   ]
33754	// }
33755
33756}
33757
33758// method id "apigee.organizations.environments.sharedflows.deployments.list":
33759
33760type OrganizationsEnvironmentsSharedflowsDeploymentsListCall struct {
33761	s            *Service
33762	parent       string
33763	urlParams_   gensupport.URLParams
33764	ifNoneMatch_ string
33765	ctx_         context.Context
33766	header_      http.Header
33767}
33768
33769// List: Lists all deployments of a shared flow in an environment.
33770//
33771// - parent: Name representing a shared flow in an environment in the
33772//   following format:
33773//   `organizations/{org}/environments/{env}/sharedflows/{sharedflow}`.
33774func (r *OrganizationsEnvironmentsSharedflowsDeploymentsService) List(parent string) *OrganizationsEnvironmentsSharedflowsDeploymentsListCall {
33775	c := &OrganizationsEnvironmentsSharedflowsDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33776	c.parent = parent
33777	return c
33778}
33779
33780// Fields allows partial responses to be retrieved. See
33781// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
33782// for more information.
33783func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSharedflowsDeploymentsListCall {
33784	c.urlParams_.Set("fields", googleapi.CombineFields(s))
33785	return c
33786}
33787
33788// IfNoneMatch sets the optional parameter which makes the operation
33789// fail if the object's ETag matches the given value. This is useful for
33790// getting updates only after the object has changed since the last
33791// request. Use googleapi.IsNotModified to check whether the response
33792// error from Do is the result of In-None-Match.
33793func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsSharedflowsDeploymentsListCall {
33794	c.ifNoneMatch_ = entityTag
33795	return c
33796}
33797
33798// Context sets the context to be used in this call's Do method. Any
33799// pending HTTP request will be aborted if the provided context is
33800// canceled.
33801func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsSharedflowsDeploymentsListCall {
33802	c.ctx_ = ctx
33803	return c
33804}
33805
33806// Header returns an http.Header that can be modified by the caller to
33807// add HTTP headers to the request.
33808func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) Header() http.Header {
33809	if c.header_ == nil {
33810		c.header_ = make(http.Header)
33811	}
33812	return c.header_
33813}
33814
33815func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
33816	reqHeaders := make(http.Header)
33817	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
33818	for k, v := range c.header_ {
33819		reqHeaders[k] = v
33820	}
33821	reqHeaders.Set("User-Agent", c.s.userAgent())
33822	if c.ifNoneMatch_ != "" {
33823		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
33824	}
33825	var body io.Reader = nil
33826	c.urlParams_.Set("alt", alt)
33827	c.urlParams_.Set("prettyPrint", "false")
33828	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
33829	urls += "?" + c.urlParams_.Encode()
33830	req, err := http.NewRequest("GET", urls, body)
33831	if err != nil {
33832		return nil, err
33833	}
33834	req.Header = reqHeaders
33835	googleapi.Expand(req.URL, map[string]string{
33836		"parent": c.parent,
33837	})
33838	return gensupport.SendRequest(c.ctx_, c.s.client, req)
33839}
33840
33841// Do executes the "apigee.organizations.environments.sharedflows.deployments.list" call.
33842// Exactly one of *GoogleCloudApigeeV1ListDeploymentsResponse or error
33843// will be non-nil. Any non-2xx status code is an error. Response
33844// headers are in either
33845// *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or
33846// (if a response was returned at all) in
33847// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
33848// whether the returned error was because http.StatusNotModified was
33849// returned.
33850func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
33851	gensupport.SetOptions(c.urlParams_, opts...)
33852	res, err := c.doRequest("json")
33853	if res != nil && res.StatusCode == http.StatusNotModified {
33854		if res.Body != nil {
33855			res.Body.Close()
33856		}
33857		return nil, &googleapi.Error{
33858			Code:   res.StatusCode,
33859			Header: res.Header,
33860		}
33861	}
33862	if err != nil {
33863		return nil, err
33864	}
33865	defer googleapi.CloseBody(res)
33866	if err := googleapi.CheckResponse(res); err != nil {
33867		return nil, err
33868	}
33869	ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
33870		ServerResponse: googleapi.ServerResponse{
33871			Header:         res.Header,
33872			HTTPStatusCode: res.StatusCode,
33873		},
33874	}
33875	target := &ret
33876	if err := gensupport.DecodeResponse(target, res); err != nil {
33877		return nil, err
33878	}
33879	return ret, nil
33880	// {
33881	//   "description": "Lists all deployments of a shared flow in an environment.",
33882	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/sharedflows/{sharedflowsId}/deployments",
33883	//   "httpMethod": "GET",
33884	//   "id": "apigee.organizations.environments.sharedflows.deployments.list",
33885	//   "parameterOrder": [
33886	//     "parent"
33887	//   ],
33888	//   "parameters": {
33889	//     "parent": {
33890	//       "description": "Required. Name representing a shared flow in an environment in the following format: `organizations/{org}/environments/{env}/sharedflows/{sharedflow}`",
33891	//       "location": "path",
33892	//       "pattern": "^organizations/[^/]+/environments/[^/]+/sharedflows/[^/]+$",
33893	//       "required": true,
33894	//       "type": "string"
33895	//     }
33896	//   },
33897	//   "path": "v1/{+parent}/deployments",
33898	//   "response": {
33899	//     "$ref": "GoogleCloudApigeeV1ListDeploymentsResponse"
33900	//   },
33901	//   "scopes": [
33902	//     "https://www.googleapis.com/auth/cloud-platform"
33903	//   ]
33904	// }
33905
33906}
33907
33908// method id "apigee.organizations.environments.sharedflows.revisions.deploy":
33909
33910type OrganizationsEnvironmentsSharedflowsRevisionsDeployCall struct {
33911	s          *Service
33912	name       string
33913	urlParams_ gensupport.URLParams
33914	ctx_       context.Context
33915	header_    http.Header
33916}
33917
33918// Deploy: Deploys a revision of a shared flow. If another revision of
33919// the same shared flow is currently deployed, set the `override`
33920// parameter to `true` to have this revision replace the currently
33921// deployed revision. You cannot use a shared flow until it has been
33922// deployed to an environment. For a request path
33923// `organizations/{org}/environments/{env}/sharedflows/{sf}/revisions/{re
33924// v}/deployments`, two permissions are required: *
33925// `apigee.deployments.create` on the resource
33926// `organizations/{org}/environments/{env}` *
33927// `apigee.sharedflowrevisions.deploy` on the resource
33928// `organizations/{org}/sharedflows/{sf}/revisions/{rev}`
33929//
33930// - name: Name of the shared flow revision to deploy in the following
33931//   format:
33932//   `organizations/{org}/environments/{env}/sharedflows/{sharedflow}/rev
33933//   isions/{rev}`.
33934func (r *OrganizationsEnvironmentsSharedflowsRevisionsService) Deploy(name string) *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall {
33935	c := &OrganizationsEnvironmentsSharedflowsRevisionsDeployCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33936	c.name = name
33937	return c
33938}
33939
33940// Override sets the optional parameter "override": Flag that specifies
33941// whether the new deployment replaces other deployed revisions of the
33942// shared flow in the environment. Set `override` to `true` to replace
33943// other deployed revisions. By default, `override` is `false` and the
33944// deployment is rejected if other revisions of the shared flow are
33945// deployed in the environment.
33946func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) Override(override bool) *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall {
33947	c.urlParams_.Set("override", fmt.Sprint(override))
33948	return c
33949}
33950
33951// Fields allows partial responses to be retrieved. See
33952// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
33953// for more information.
33954func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall {
33955	c.urlParams_.Set("fields", googleapi.CombineFields(s))
33956	return c
33957}
33958
33959// Context sets the context to be used in this call's Do method. Any
33960// pending HTTP request will be aborted if the provided context is
33961// canceled.
33962func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) Context(ctx context.Context) *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall {
33963	c.ctx_ = ctx
33964	return c
33965}
33966
33967// Header returns an http.Header that can be modified by the caller to
33968// add HTTP headers to the request.
33969func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) Header() http.Header {
33970	if c.header_ == nil {
33971		c.header_ = make(http.Header)
33972	}
33973	return c.header_
33974}
33975
33976func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) doRequest(alt string) (*http.Response, error) {
33977	reqHeaders := make(http.Header)
33978	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
33979	for k, v := range c.header_ {
33980		reqHeaders[k] = v
33981	}
33982	reqHeaders.Set("User-Agent", c.s.userAgent())
33983	var body io.Reader = nil
33984	c.urlParams_.Set("alt", alt)
33985	c.urlParams_.Set("prettyPrint", "false")
33986	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments")
33987	urls += "?" + c.urlParams_.Encode()
33988	req, err := http.NewRequest("POST", urls, body)
33989	if err != nil {
33990		return nil, err
33991	}
33992	req.Header = reqHeaders
33993	googleapi.Expand(req.URL, map[string]string{
33994		"name": c.name,
33995	})
33996	return gensupport.SendRequest(c.ctx_, c.s.client, req)
33997}
33998
33999// Do executes the "apigee.organizations.environments.sharedflows.revisions.deploy" call.
34000// Exactly one of *GoogleCloudApigeeV1Deployment or error will be
34001// non-nil. Any non-2xx status code is an error. Response headers are in
34002// either *GoogleCloudApigeeV1Deployment.ServerResponse.Header or (if a
34003// response was returned at all) in error.(*googleapi.Error).Header. Use
34004// googleapi.IsNotModified to check whether the returned error was
34005// because http.StatusNotModified was returned.
34006func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Deployment, error) {
34007	gensupport.SetOptions(c.urlParams_, opts...)
34008	res, err := c.doRequest("json")
34009	if res != nil && res.StatusCode == http.StatusNotModified {
34010		if res.Body != nil {
34011			res.Body.Close()
34012		}
34013		return nil, &googleapi.Error{
34014			Code:   res.StatusCode,
34015			Header: res.Header,
34016		}
34017	}
34018	if err != nil {
34019		return nil, err
34020	}
34021	defer googleapi.CloseBody(res)
34022	if err := googleapi.CheckResponse(res); err != nil {
34023		return nil, err
34024	}
34025	ret := &GoogleCloudApigeeV1Deployment{
34026		ServerResponse: googleapi.ServerResponse{
34027			Header:         res.Header,
34028			HTTPStatusCode: res.StatusCode,
34029		},
34030	}
34031	target := &ret
34032	if err := gensupport.DecodeResponse(target, res); err != nil {
34033		return nil, err
34034	}
34035	return ret, nil
34036	// {
34037	//   "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}`",
34038	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/sharedflows/{sharedflowsId}/revisions/{revisionsId}/deployments",
34039	//   "httpMethod": "POST",
34040	//   "id": "apigee.organizations.environments.sharedflows.revisions.deploy",
34041	//   "parameterOrder": [
34042	//     "name"
34043	//   ],
34044	//   "parameters": {
34045	//     "name": {
34046	//       "description": "Required. Name of the shared flow revision to deploy in the following format: `organizations/{org}/environments/{env}/sharedflows/{sharedflow}/revisions/{rev}`",
34047	//       "location": "path",
34048	//       "pattern": "^organizations/[^/]+/environments/[^/]+/sharedflows/[^/]+/revisions/[^/]+$",
34049	//       "required": true,
34050	//       "type": "string"
34051	//     },
34052	//     "override": {
34053	//       "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.",
34054	//       "location": "query",
34055	//       "type": "boolean"
34056	//     }
34057	//   },
34058	//   "path": "v1/{+name}/deployments",
34059	//   "response": {
34060	//     "$ref": "GoogleCloudApigeeV1Deployment"
34061	//   },
34062	//   "scopes": [
34063	//     "https://www.googleapis.com/auth/cloud-platform"
34064	//   ]
34065	// }
34066
34067}
34068
34069// method id "apigee.organizations.environments.sharedflows.revisions.getDeployments":
34070
34071type OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall struct {
34072	s            *Service
34073	name         string
34074	urlParams_   gensupport.URLParams
34075	ifNoneMatch_ string
34076	ctx_         context.Context
34077	header_      http.Header
34078}
34079
34080// GetDeployments: Gets the deployment of a shared flow revision and
34081// actual state reported by runtime pods.
34082//
34083// - name: Name representing a shared flow in an environment in the
34084//   following format:
34085//   `organizations/{org}/environments/{env}/sharedflows/{sharedflow}/rev
34086//   isions/{rev}`.
34087func (r *OrganizationsEnvironmentsSharedflowsRevisionsService) GetDeployments(name string) *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall {
34088	c := &OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34089	c.name = name
34090	return c
34091}
34092
34093// Fields allows partial responses to be retrieved. See
34094// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
34095// for more information.
34096func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall {
34097	c.urlParams_.Set("fields", googleapi.CombineFields(s))
34098	return c
34099}
34100
34101// IfNoneMatch sets the optional parameter which makes the operation
34102// fail if the object's ETag matches the given value. This is useful for
34103// getting updates only after the object has changed since the last
34104// request. Use googleapi.IsNotModified to check whether the response
34105// error from Do is the result of In-None-Match.
34106func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall {
34107	c.ifNoneMatch_ = entityTag
34108	return c
34109}
34110
34111// Context sets the context to be used in this call's Do method. Any
34112// pending HTTP request will be aborted if the provided context is
34113// canceled.
34114func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) Context(ctx context.Context) *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall {
34115	c.ctx_ = ctx
34116	return c
34117}
34118
34119// Header returns an http.Header that can be modified by the caller to
34120// add HTTP headers to the request.
34121func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) Header() http.Header {
34122	if c.header_ == nil {
34123		c.header_ = make(http.Header)
34124	}
34125	return c.header_
34126}
34127
34128func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) doRequest(alt string) (*http.Response, error) {
34129	reqHeaders := make(http.Header)
34130	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
34131	for k, v := range c.header_ {
34132		reqHeaders[k] = v
34133	}
34134	reqHeaders.Set("User-Agent", c.s.userAgent())
34135	if c.ifNoneMatch_ != "" {
34136		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
34137	}
34138	var body io.Reader = nil
34139	c.urlParams_.Set("alt", alt)
34140	c.urlParams_.Set("prettyPrint", "false")
34141	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments")
34142	urls += "?" + c.urlParams_.Encode()
34143	req, err := http.NewRequest("GET", urls, body)
34144	if err != nil {
34145		return nil, err
34146	}
34147	req.Header = reqHeaders
34148	googleapi.Expand(req.URL, map[string]string{
34149		"name": c.name,
34150	})
34151	return gensupport.SendRequest(c.ctx_, c.s.client, req)
34152}
34153
34154// Do executes the "apigee.organizations.environments.sharedflows.revisions.getDeployments" call.
34155// Exactly one of *GoogleCloudApigeeV1Deployment or error will be
34156// non-nil. Any non-2xx status code is an error. Response headers are in
34157// either *GoogleCloudApigeeV1Deployment.ServerResponse.Header or (if a
34158// response was returned at all) in error.(*googleapi.Error).Header. Use
34159// googleapi.IsNotModified to check whether the returned error was
34160// because http.StatusNotModified was returned.
34161func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Deployment, error) {
34162	gensupport.SetOptions(c.urlParams_, opts...)
34163	res, err := c.doRequest("json")
34164	if res != nil && res.StatusCode == http.StatusNotModified {
34165		if res.Body != nil {
34166			res.Body.Close()
34167		}
34168		return nil, &googleapi.Error{
34169			Code:   res.StatusCode,
34170			Header: res.Header,
34171		}
34172	}
34173	if err != nil {
34174		return nil, err
34175	}
34176	defer googleapi.CloseBody(res)
34177	if err := googleapi.CheckResponse(res); err != nil {
34178		return nil, err
34179	}
34180	ret := &GoogleCloudApigeeV1Deployment{
34181		ServerResponse: googleapi.ServerResponse{
34182			Header:         res.Header,
34183			HTTPStatusCode: res.StatusCode,
34184		},
34185	}
34186	target := &ret
34187	if err := gensupport.DecodeResponse(target, res); err != nil {
34188		return nil, err
34189	}
34190	return ret, nil
34191	// {
34192	//   "description": "Gets the deployment of a shared flow revision and actual state reported by runtime pods.",
34193	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/sharedflows/{sharedflowsId}/revisions/{revisionsId}/deployments",
34194	//   "httpMethod": "GET",
34195	//   "id": "apigee.organizations.environments.sharedflows.revisions.getDeployments",
34196	//   "parameterOrder": [
34197	//     "name"
34198	//   ],
34199	//   "parameters": {
34200	//     "name": {
34201	//       "description": "Required. Name representing a shared flow in an environment in the following format: `organizations/{org}/environments/{env}/sharedflows/{sharedflow}/revisions/{rev}`",
34202	//       "location": "path",
34203	//       "pattern": "^organizations/[^/]+/environments/[^/]+/sharedflows/[^/]+/revisions/[^/]+$",
34204	//       "required": true,
34205	//       "type": "string"
34206	//     }
34207	//   },
34208	//   "path": "v1/{+name}/deployments",
34209	//   "response": {
34210	//     "$ref": "GoogleCloudApigeeV1Deployment"
34211	//   },
34212	//   "scopes": [
34213	//     "https://www.googleapis.com/auth/cloud-platform"
34214	//   ]
34215	// }
34216
34217}
34218
34219// method id "apigee.organizations.environments.sharedflows.revisions.undeploy":
34220
34221type OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall struct {
34222	s          *Service
34223	name       string
34224	urlParams_ gensupport.URLParams
34225	ctx_       context.Context
34226	header_    http.Header
34227}
34228
34229// Undeploy: Undeploys a shared flow revision from an environment. For a
34230// request path
34231// `organizations/{org}/environments/{env}/sharedflows/{sf}/revisions/{re
34232// v}/deployments`, two permissions are required: *
34233// `apigee.deployments.delete` on the resource
34234// `organizations/{org}/environments/{env}` *
34235// `apigee.sharedflowrevisions.undeploy` on the resource
34236// `organizations/{org}/sharedflows/{sf}/revisions/{rev}`
34237//
34238// - name: Name of the shared flow revision to undeploy in the following
34239//   format:
34240//   `organizations/{org}/environments/{env}/sharedflows/{sharedflow}/rev
34241//   isions/{rev}`.
34242func (r *OrganizationsEnvironmentsSharedflowsRevisionsService) Undeploy(name string) *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall {
34243	c := &OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34244	c.name = name
34245	return c
34246}
34247
34248// Fields allows partial responses to be retrieved. See
34249// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
34250// for more information.
34251func (c *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall {
34252	c.urlParams_.Set("fields", googleapi.CombineFields(s))
34253	return c
34254}
34255
34256// Context sets the context to be used in this call's Do method. Any
34257// pending HTTP request will be aborted if the provided context is
34258// canceled.
34259func (c *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall) Context(ctx context.Context) *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall {
34260	c.ctx_ = ctx
34261	return c
34262}
34263
34264// Header returns an http.Header that can be modified by the caller to
34265// add HTTP headers to the request.
34266func (c *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall) Header() http.Header {
34267	if c.header_ == nil {
34268		c.header_ = make(http.Header)
34269	}
34270	return c.header_
34271}
34272
34273func (c *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall) doRequest(alt string) (*http.Response, error) {
34274	reqHeaders := make(http.Header)
34275	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
34276	for k, v := range c.header_ {
34277		reqHeaders[k] = v
34278	}
34279	reqHeaders.Set("User-Agent", c.s.userAgent())
34280	var body io.Reader = nil
34281	c.urlParams_.Set("alt", alt)
34282	c.urlParams_.Set("prettyPrint", "false")
34283	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments")
34284	urls += "?" + c.urlParams_.Encode()
34285	req, err := http.NewRequest("DELETE", urls, body)
34286	if err != nil {
34287		return nil, err
34288	}
34289	req.Header = reqHeaders
34290	googleapi.Expand(req.URL, map[string]string{
34291		"name": c.name,
34292	})
34293	return gensupport.SendRequest(c.ctx_, c.s.client, req)
34294}
34295
34296// Do executes the "apigee.organizations.environments.sharedflows.revisions.undeploy" call.
34297// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
34298// non-2xx status code is an error. Response headers are in either
34299// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
34300// returned at all) in error.(*googleapi.Error).Header. Use
34301// googleapi.IsNotModified to check whether the returned error was
34302// because http.StatusNotModified was returned.
34303func (c *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
34304	gensupport.SetOptions(c.urlParams_, opts...)
34305	res, err := c.doRequest("json")
34306	if res != nil && res.StatusCode == http.StatusNotModified {
34307		if res.Body != nil {
34308			res.Body.Close()
34309		}
34310		return nil, &googleapi.Error{
34311			Code:   res.StatusCode,
34312			Header: res.Header,
34313		}
34314	}
34315	if err != nil {
34316		return nil, err
34317	}
34318	defer googleapi.CloseBody(res)
34319	if err := googleapi.CheckResponse(res); err != nil {
34320		return nil, err
34321	}
34322	ret := &GoogleProtobufEmpty{
34323		ServerResponse: googleapi.ServerResponse{
34324			Header:         res.Header,
34325			HTTPStatusCode: res.StatusCode,
34326		},
34327	}
34328	target := &ret
34329	if err := gensupport.DecodeResponse(target, res); err != nil {
34330		return nil, err
34331	}
34332	return ret, nil
34333	// {
34334	//   "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}`",
34335	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/sharedflows/{sharedflowsId}/revisions/{revisionsId}/deployments",
34336	//   "httpMethod": "DELETE",
34337	//   "id": "apigee.organizations.environments.sharedflows.revisions.undeploy",
34338	//   "parameterOrder": [
34339	//     "name"
34340	//   ],
34341	//   "parameters": {
34342	//     "name": {
34343	//       "description": "Required. Name of the shared flow revision to undeploy in the following format: `organizations/{org}/environments/{env}/sharedflows/{sharedflow}/revisions/{rev}`",
34344	//       "location": "path",
34345	//       "pattern": "^organizations/[^/]+/environments/[^/]+/sharedflows/[^/]+/revisions/[^/]+$",
34346	//       "required": true,
34347	//       "type": "string"
34348	//     }
34349	//   },
34350	//   "path": "v1/{+name}/deployments",
34351	//   "response": {
34352	//     "$ref": "GoogleProtobufEmpty"
34353	//   },
34354	//   "scopes": [
34355	//     "https://www.googleapis.com/auth/cloud-platform"
34356	//   ]
34357	// }
34358
34359}
34360
34361// method id "apigee.organizations.environments.stats.get":
34362
34363type OrganizationsEnvironmentsStatsGetCall struct {
34364	s            *Service
34365	name         string
34366	urlParams_   gensupport.URLParams
34367	ifNoneMatch_ string
34368	ctx_         context.Context
34369	header_      http.Header
34370}
34371
34372// Get: Retrieve metrics grouped by dimensions. The types of metrics you
34373// can retrieve include traffic, message counts, API call latency,
34374// response size, and cache hits and counts. Dimensions let you view
34375// metrics in meaningful groups. The stats api does accept dimensions as
34376// path params. The dimensions are optional in which case the metrics
34377// are computed on the entire data for the given timerange.
34378//
34379// - name: The resource name for which the interactive query will be
34380//   executed. Must be of the form
34381//   `organizations/{organization_id}/environments/{environment_id/stats/
34382//   {dimensions}` Dimensions let you view metrics in meaningful
34383//   groupings. E.g. apiproxy, target_host. The value of dimensions
34384//   should be comma separated list as shown below
34385//   `organizations/{org}/environments/{env}/stats/apiproxy,request_verb`.
34386func (r *OrganizationsEnvironmentsStatsService) Get(name string) *OrganizationsEnvironmentsStatsGetCall {
34387	c := &OrganizationsEnvironmentsStatsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34388	c.name = name
34389	return c
34390}
34391
34392// Accuracy sets the optional parameter "accuracy": Legacy field: not
34393// used anymore. This field is present to support UI calls which still
34394// use this parameter.
34395func (c *OrganizationsEnvironmentsStatsGetCall) Accuracy(accuracy string) *OrganizationsEnvironmentsStatsGetCall {
34396	c.urlParams_.Set("accuracy", accuracy)
34397	return c
34398}
34399
34400// AggTable sets the optional parameter "aggTable": If customers want to
34401// query custom aggregate tables, then this parameter can be used to
34402// specify the table name. If this parameter is skipped, then Edge Query
34403// will try to retrieve the data from fact tables which will be
34404// expensive.
34405func (c *OrganizationsEnvironmentsStatsGetCall) AggTable(aggTable string) *OrganizationsEnvironmentsStatsGetCall {
34406	c.urlParams_.Set("aggTable", aggTable)
34407	return c
34408}
34409
34410// Filter sets the optional parameter "filter": Enables drill-down on
34411// specific dimension values
34412func (c *OrganizationsEnvironmentsStatsGetCall) Filter(filter string) *OrganizationsEnvironmentsStatsGetCall {
34413	c.urlParams_.Set("filter", filter)
34414	return c
34415}
34416
34417// Limit sets the optional parameter "limit": This parameter is used to
34418// limit the number of result items. Default and the max value is 14400.
34419func (c *OrganizationsEnvironmentsStatsGetCall) Limit(limit string) *OrganizationsEnvironmentsStatsGetCall {
34420	c.urlParams_.Set("limit", limit)
34421	return c
34422}
34423
34424// Offset sets the optional parameter "offset": Use offset with limit to
34425// enable pagination of results. For example, to display results 11-20,
34426// set limit to '10' and offset to '10'.
34427func (c *OrganizationsEnvironmentsStatsGetCall) Offset(offset string) *OrganizationsEnvironmentsStatsGetCall {
34428	c.urlParams_.Set("offset", offset)
34429	return c
34430}
34431
34432// Realtime sets the optional parameter "realtime": Legacy field: not
34433// used anymore.
34434func (c *OrganizationsEnvironmentsStatsGetCall) Realtime(realtime bool) *OrganizationsEnvironmentsStatsGetCall {
34435	c.urlParams_.Set("realtime", fmt.Sprint(realtime))
34436	return c
34437}
34438
34439// Select sets the optional parameter "select": The select parameter
34440// contains a comma separated list of metrics. E.g.
34441// sum(message_count),sum(error_count)
34442func (c *OrganizationsEnvironmentsStatsGetCall) Select(select_ string) *OrganizationsEnvironmentsStatsGetCall {
34443	c.urlParams_.Set("select", select_)
34444	return c
34445}
34446
34447// Sonar sets the optional parameter "sonar": This parameter routes the
34448// query to api monitoring service for last hour.
34449func (c *OrganizationsEnvironmentsStatsGetCall) Sonar(sonar bool) *OrganizationsEnvironmentsStatsGetCall {
34450	c.urlParams_.Set("sonar", fmt.Sprint(sonar))
34451	return c
34452}
34453
34454// Sort sets the optional parameter "sort": This parameter specifies if
34455// the sort order should be ascending or descending Supported values are
34456// DESC and ASC.
34457func (c *OrganizationsEnvironmentsStatsGetCall) Sort(sort string) *OrganizationsEnvironmentsStatsGetCall {
34458	c.urlParams_.Set("sort", sort)
34459	return c
34460}
34461
34462// Sortby sets the optional parameter "sortby": Comma separated list of
34463// columns to sort the final result.
34464func (c *OrganizationsEnvironmentsStatsGetCall) Sortby(sortby string) *OrganizationsEnvironmentsStatsGetCall {
34465	c.urlParams_.Set("sortby", sortby)
34466	return c
34467}
34468
34469// TimeRange sets the optional parameter "timeRange": Time interval for
34470// the interactive query. Time range is specified as start~end E.g.
34471// 04/15/2017 00:00~05/15/2017 23:59
34472func (c *OrganizationsEnvironmentsStatsGetCall) TimeRange(timeRange string) *OrganizationsEnvironmentsStatsGetCall {
34473	c.urlParams_.Set("timeRange", timeRange)
34474	return c
34475}
34476
34477// TimeUnit sets the optional parameter "timeUnit": A value of second,
34478// minute, hour, day, week, month. Time Unit specifies the granularity
34479// of metrics returned.
34480func (c *OrganizationsEnvironmentsStatsGetCall) TimeUnit(timeUnit string) *OrganizationsEnvironmentsStatsGetCall {
34481	c.urlParams_.Set("timeUnit", timeUnit)
34482	return c
34483}
34484
34485// Topk sets the optional parameter "topk": Take 'top k' results from
34486// results, for example, to return the top 5 results 'topk=5'.
34487func (c *OrganizationsEnvironmentsStatsGetCall) Topk(topk string) *OrganizationsEnvironmentsStatsGetCall {
34488	c.urlParams_.Set("topk", topk)
34489	return c
34490}
34491
34492// TsAscending sets the optional parameter "tsAscending": Lists
34493// timestamps in ascending order if set to true. Recommend setting this
34494// value to true if you are using sortby with sort=DESC.
34495func (c *OrganizationsEnvironmentsStatsGetCall) TsAscending(tsAscending bool) *OrganizationsEnvironmentsStatsGetCall {
34496	c.urlParams_.Set("tsAscending", fmt.Sprint(tsAscending))
34497	return c
34498}
34499
34500// Tzo sets the optional parameter "tzo": This parameters contains the
34501// timezone offset value.
34502func (c *OrganizationsEnvironmentsStatsGetCall) Tzo(tzo string) *OrganizationsEnvironmentsStatsGetCall {
34503	c.urlParams_.Set("tzo", tzo)
34504	return c
34505}
34506
34507// Fields allows partial responses to be retrieved. See
34508// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
34509// for more information.
34510func (c *OrganizationsEnvironmentsStatsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsStatsGetCall {
34511	c.urlParams_.Set("fields", googleapi.CombineFields(s))
34512	return c
34513}
34514
34515// IfNoneMatch sets the optional parameter which makes the operation
34516// fail if the object's ETag matches the given value. This is useful for
34517// getting updates only after the object has changed since the last
34518// request. Use googleapi.IsNotModified to check whether the response
34519// error from Do is the result of In-None-Match.
34520func (c *OrganizationsEnvironmentsStatsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsStatsGetCall {
34521	c.ifNoneMatch_ = entityTag
34522	return c
34523}
34524
34525// Context sets the context to be used in this call's Do method. Any
34526// pending HTTP request will be aborted if the provided context is
34527// canceled.
34528func (c *OrganizationsEnvironmentsStatsGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsStatsGetCall {
34529	c.ctx_ = ctx
34530	return c
34531}
34532
34533// Header returns an http.Header that can be modified by the caller to
34534// add HTTP headers to the request.
34535func (c *OrganizationsEnvironmentsStatsGetCall) Header() http.Header {
34536	if c.header_ == nil {
34537		c.header_ = make(http.Header)
34538	}
34539	return c.header_
34540}
34541
34542func (c *OrganizationsEnvironmentsStatsGetCall) doRequest(alt string) (*http.Response, error) {
34543	reqHeaders := make(http.Header)
34544	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
34545	for k, v := range c.header_ {
34546		reqHeaders[k] = v
34547	}
34548	reqHeaders.Set("User-Agent", c.s.userAgent())
34549	if c.ifNoneMatch_ != "" {
34550		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
34551	}
34552	var body io.Reader = nil
34553	c.urlParams_.Set("alt", alt)
34554	c.urlParams_.Set("prettyPrint", "false")
34555	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
34556	urls += "?" + c.urlParams_.Encode()
34557	req, err := http.NewRequest("GET", urls, body)
34558	if err != nil {
34559		return nil, err
34560	}
34561	req.Header = reqHeaders
34562	googleapi.Expand(req.URL, map[string]string{
34563		"name": c.name,
34564	})
34565	return gensupport.SendRequest(c.ctx_, c.s.client, req)
34566}
34567
34568// Do executes the "apigee.organizations.environments.stats.get" call.
34569// Exactly one of *GoogleCloudApigeeV1Stats or error will be non-nil.
34570// Any non-2xx status code is an error. Response headers are in either
34571// *GoogleCloudApigeeV1Stats.ServerResponse.Header or (if a response was
34572// returned at all) in error.(*googleapi.Error).Header. Use
34573// googleapi.IsNotModified to check whether the returned error was
34574// because http.StatusNotModified was returned.
34575func (c *OrganizationsEnvironmentsStatsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Stats, error) {
34576	gensupport.SetOptions(c.urlParams_, opts...)
34577	res, err := c.doRequest("json")
34578	if res != nil && res.StatusCode == http.StatusNotModified {
34579		if res.Body != nil {
34580			res.Body.Close()
34581		}
34582		return nil, &googleapi.Error{
34583			Code:   res.StatusCode,
34584			Header: res.Header,
34585		}
34586	}
34587	if err != nil {
34588		return nil, err
34589	}
34590	defer googleapi.CloseBody(res)
34591	if err := googleapi.CheckResponse(res); err != nil {
34592		return nil, err
34593	}
34594	ret := &GoogleCloudApigeeV1Stats{
34595		ServerResponse: googleapi.ServerResponse{
34596			Header:         res.Header,
34597			HTTPStatusCode: res.StatusCode,
34598		},
34599	}
34600	target := &ret
34601	if err := gensupport.DecodeResponse(target, res); err != nil {
34602		return nil, err
34603	}
34604	return ret, nil
34605	// {
34606	//   "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.",
34607	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/stats/{statsId}",
34608	//   "httpMethod": "GET",
34609	//   "id": "apigee.organizations.environments.stats.get",
34610	//   "parameterOrder": [
34611	//     "name"
34612	//   ],
34613	//   "parameters": {
34614	//     "accuracy": {
34615	//       "description": "Legacy field: not used anymore. This field is present to support UI calls which still use this parameter.",
34616	//       "location": "query",
34617	//       "type": "string"
34618	//     },
34619	//     "aggTable": {
34620	//       "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.",
34621	//       "location": "query",
34622	//       "type": "string"
34623	//     },
34624	//     "filter": {
34625	//       "description": "Enables drill-down on specific dimension values",
34626	//       "location": "query",
34627	//       "type": "string"
34628	//     },
34629	//     "limit": {
34630	//       "description": "This parameter is used to limit the number of result items. Default and the max value is 14400.",
34631	//       "location": "query",
34632	//       "type": "string"
34633	//     },
34634	//     "name": {
34635	//       "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`",
34636	//       "location": "path",
34637	//       "pattern": "^organizations/[^/]+/environments/[^/]+/stats/.*$",
34638	//       "required": true,
34639	//       "type": "string"
34640	//     },
34641	//     "offset": {
34642	//       "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'.",
34643	//       "location": "query",
34644	//       "type": "string"
34645	//     },
34646	//     "realtime": {
34647	//       "description": "Legacy field: not used anymore.",
34648	//       "location": "query",
34649	//       "type": "boolean"
34650	//     },
34651	//     "select": {
34652	//       "description": "The select parameter contains a comma separated list of metrics. E.g. sum(message_count),sum(error_count)",
34653	//       "location": "query",
34654	//       "type": "string"
34655	//     },
34656	//     "sonar": {
34657	//       "description": "This parameter routes the query to api monitoring service for last hour.",
34658	//       "location": "query",
34659	//       "type": "boolean"
34660	//     },
34661	//     "sort": {
34662	//       "description": "This parameter specifies if the sort order should be ascending or descending Supported values are DESC and ASC.",
34663	//       "location": "query",
34664	//       "type": "string"
34665	//     },
34666	//     "sortby": {
34667	//       "description": "Comma separated list of columns to sort the final result.",
34668	//       "location": "query",
34669	//       "type": "string"
34670	//     },
34671	//     "timeRange": {
34672	//       "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",
34673	//       "location": "query",
34674	//       "type": "string"
34675	//     },
34676	//     "timeUnit": {
34677	//       "description": "A value of second, minute, hour, day, week, month. Time Unit specifies the granularity of metrics returned.",
34678	//       "location": "query",
34679	//       "type": "string"
34680	//     },
34681	//     "topk": {
34682	//       "description": "Take 'top k' results from results, for example, to return the top 5 results 'topk=5'.",
34683	//       "location": "query",
34684	//       "type": "string"
34685	//     },
34686	//     "tsAscending": {
34687	//       "description": "Lists timestamps in ascending order if set to true. Recommend setting this value to true if you are using sortby with sort=DESC.",
34688	//       "location": "query",
34689	//       "type": "boolean"
34690	//     },
34691	//     "tzo": {
34692	//       "description": "This parameters contains the timezone offset value.",
34693	//       "location": "query",
34694	//       "type": "string"
34695	//     }
34696	//   },
34697	//   "path": "v1/{+name}",
34698	//   "response": {
34699	//     "$ref": "GoogleCloudApigeeV1Stats"
34700	//   },
34701	//   "scopes": [
34702	//     "https://www.googleapis.com/auth/cloud-platform"
34703	//   ]
34704	// }
34705
34706}
34707
34708// method id "apigee.organizations.environments.targetservers.create":
34709
34710type OrganizationsEnvironmentsTargetserversCreateCall struct {
34711	s                               *Service
34712	parent                          string
34713	googlecloudapigeev1targetserver *GoogleCloudApigeeV1TargetServer
34714	urlParams_                      gensupport.URLParams
34715	ctx_                            context.Context
34716	header_                         http.Header
34717}
34718
34719// Create: Creates a TargetServer in the specified environment.
34720//
34721// - parent: The parent environment name under which the TargetServer
34722//   will be created. Must be of the form
34723//   `organizations/{org}/environments/{env}`.
34724func (r *OrganizationsEnvironmentsTargetserversService) Create(parent string, googlecloudapigeev1targetserver *GoogleCloudApigeeV1TargetServer) *OrganizationsEnvironmentsTargetserversCreateCall {
34725	c := &OrganizationsEnvironmentsTargetserversCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34726	c.parent = parent
34727	c.googlecloudapigeev1targetserver = googlecloudapigeev1targetserver
34728	return c
34729}
34730
34731// Name sets the optional parameter "name": The ID to give the
34732// TargetServer. This will overwrite the value in TargetServer.
34733func (c *OrganizationsEnvironmentsTargetserversCreateCall) Name(name string) *OrganizationsEnvironmentsTargetserversCreateCall {
34734	c.urlParams_.Set("name", name)
34735	return c
34736}
34737
34738// Fields allows partial responses to be retrieved. See
34739// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
34740// for more information.
34741func (c *OrganizationsEnvironmentsTargetserversCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTargetserversCreateCall {
34742	c.urlParams_.Set("fields", googleapi.CombineFields(s))
34743	return c
34744}
34745
34746// Context sets the context to be used in this call's Do method. Any
34747// pending HTTP request will be aborted if the provided context is
34748// canceled.
34749func (c *OrganizationsEnvironmentsTargetserversCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsTargetserversCreateCall {
34750	c.ctx_ = ctx
34751	return c
34752}
34753
34754// Header returns an http.Header that can be modified by the caller to
34755// add HTTP headers to the request.
34756func (c *OrganizationsEnvironmentsTargetserversCreateCall) Header() http.Header {
34757	if c.header_ == nil {
34758		c.header_ = make(http.Header)
34759	}
34760	return c.header_
34761}
34762
34763func (c *OrganizationsEnvironmentsTargetserversCreateCall) doRequest(alt string) (*http.Response, error) {
34764	reqHeaders := make(http.Header)
34765	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
34766	for k, v := range c.header_ {
34767		reqHeaders[k] = v
34768	}
34769	reqHeaders.Set("User-Agent", c.s.userAgent())
34770	var body io.Reader = nil
34771	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1targetserver)
34772	if err != nil {
34773		return nil, err
34774	}
34775	reqHeaders.Set("Content-Type", "application/json")
34776	c.urlParams_.Set("alt", alt)
34777	c.urlParams_.Set("prettyPrint", "false")
34778	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/targetservers")
34779	urls += "?" + c.urlParams_.Encode()
34780	req, err := http.NewRequest("POST", urls, body)
34781	if err != nil {
34782		return nil, err
34783	}
34784	req.Header = reqHeaders
34785	googleapi.Expand(req.URL, map[string]string{
34786		"parent": c.parent,
34787	})
34788	return gensupport.SendRequest(c.ctx_, c.s.client, req)
34789}
34790
34791// Do executes the "apigee.organizations.environments.targetservers.create" call.
34792// Exactly one of *GoogleCloudApigeeV1TargetServer or error will be
34793// non-nil. Any non-2xx status code is an error. Response headers are in
34794// either *GoogleCloudApigeeV1TargetServer.ServerResponse.Header or (if
34795// a response was returned at all) in error.(*googleapi.Error).Header.
34796// Use googleapi.IsNotModified to check whether the returned error was
34797// because http.StatusNotModified was returned.
34798func (c *OrganizationsEnvironmentsTargetserversCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TargetServer, error) {
34799	gensupport.SetOptions(c.urlParams_, opts...)
34800	res, err := c.doRequest("json")
34801	if res != nil && res.StatusCode == http.StatusNotModified {
34802		if res.Body != nil {
34803			res.Body.Close()
34804		}
34805		return nil, &googleapi.Error{
34806			Code:   res.StatusCode,
34807			Header: res.Header,
34808		}
34809	}
34810	if err != nil {
34811		return nil, err
34812	}
34813	defer googleapi.CloseBody(res)
34814	if err := googleapi.CheckResponse(res); err != nil {
34815		return nil, err
34816	}
34817	ret := &GoogleCloudApigeeV1TargetServer{
34818		ServerResponse: googleapi.ServerResponse{
34819			Header:         res.Header,
34820			HTTPStatusCode: res.StatusCode,
34821		},
34822	}
34823	target := &ret
34824	if err := gensupport.DecodeResponse(target, res); err != nil {
34825		return nil, err
34826	}
34827	return ret, nil
34828	// {
34829	//   "description": "Creates a TargetServer in the specified environment.",
34830	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/targetservers",
34831	//   "httpMethod": "POST",
34832	//   "id": "apigee.organizations.environments.targetservers.create",
34833	//   "parameterOrder": [
34834	//     "parent"
34835	//   ],
34836	//   "parameters": {
34837	//     "name": {
34838	//       "description": "Optional. The ID to give the TargetServer. This will overwrite the value in TargetServer.",
34839	//       "location": "query",
34840	//       "type": "string"
34841	//     },
34842	//     "parent": {
34843	//       "description": "Required. The parent environment name under which the TargetServer will be created. Must be of the form `organizations/{org}/environments/{env}`.",
34844	//       "location": "path",
34845	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
34846	//       "required": true,
34847	//       "type": "string"
34848	//     }
34849	//   },
34850	//   "path": "v1/{+parent}/targetservers",
34851	//   "request": {
34852	//     "$ref": "GoogleCloudApigeeV1TargetServer"
34853	//   },
34854	//   "response": {
34855	//     "$ref": "GoogleCloudApigeeV1TargetServer"
34856	//   },
34857	//   "scopes": [
34858	//     "https://www.googleapis.com/auth/cloud-platform"
34859	//   ]
34860	// }
34861
34862}
34863
34864// method id "apigee.organizations.environments.targetservers.delete":
34865
34866type OrganizationsEnvironmentsTargetserversDeleteCall struct {
34867	s          *Service
34868	name       string
34869	urlParams_ gensupport.URLParams
34870	ctx_       context.Context
34871	header_    http.Header
34872}
34873
34874// Delete: Deletes a TargetServer from an environment. Returns the
34875// deleted TargetServer resource.
34876//
34877// - name: The name of the TargetServer to delete. Must be of the form
34878//   `organizations/{org}/environments/{env}/targetservers/{target_server
34879//   _id}`.
34880func (r *OrganizationsEnvironmentsTargetserversService) Delete(name string) *OrganizationsEnvironmentsTargetserversDeleteCall {
34881	c := &OrganizationsEnvironmentsTargetserversDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34882	c.name = name
34883	return c
34884}
34885
34886// Fields allows partial responses to be retrieved. See
34887// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
34888// for more information.
34889func (c *OrganizationsEnvironmentsTargetserversDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTargetserversDeleteCall {
34890	c.urlParams_.Set("fields", googleapi.CombineFields(s))
34891	return c
34892}
34893
34894// Context sets the context to be used in this call's Do method. Any
34895// pending HTTP request will be aborted if the provided context is
34896// canceled.
34897func (c *OrganizationsEnvironmentsTargetserversDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsTargetserversDeleteCall {
34898	c.ctx_ = ctx
34899	return c
34900}
34901
34902// Header returns an http.Header that can be modified by the caller to
34903// add HTTP headers to the request.
34904func (c *OrganizationsEnvironmentsTargetserversDeleteCall) Header() http.Header {
34905	if c.header_ == nil {
34906		c.header_ = make(http.Header)
34907	}
34908	return c.header_
34909}
34910
34911func (c *OrganizationsEnvironmentsTargetserversDeleteCall) doRequest(alt string) (*http.Response, error) {
34912	reqHeaders := make(http.Header)
34913	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
34914	for k, v := range c.header_ {
34915		reqHeaders[k] = v
34916	}
34917	reqHeaders.Set("User-Agent", c.s.userAgent())
34918	var body io.Reader = nil
34919	c.urlParams_.Set("alt", alt)
34920	c.urlParams_.Set("prettyPrint", "false")
34921	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
34922	urls += "?" + c.urlParams_.Encode()
34923	req, err := http.NewRequest("DELETE", urls, body)
34924	if err != nil {
34925		return nil, err
34926	}
34927	req.Header = reqHeaders
34928	googleapi.Expand(req.URL, map[string]string{
34929		"name": c.name,
34930	})
34931	return gensupport.SendRequest(c.ctx_, c.s.client, req)
34932}
34933
34934// Do executes the "apigee.organizations.environments.targetservers.delete" call.
34935// Exactly one of *GoogleCloudApigeeV1TargetServer or error will be
34936// non-nil. Any non-2xx status code is an error. Response headers are in
34937// either *GoogleCloudApigeeV1TargetServer.ServerResponse.Header or (if
34938// a response was returned at all) in error.(*googleapi.Error).Header.
34939// Use googleapi.IsNotModified to check whether the returned error was
34940// because http.StatusNotModified was returned.
34941func (c *OrganizationsEnvironmentsTargetserversDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TargetServer, error) {
34942	gensupport.SetOptions(c.urlParams_, opts...)
34943	res, err := c.doRequest("json")
34944	if res != nil && res.StatusCode == http.StatusNotModified {
34945		if res.Body != nil {
34946			res.Body.Close()
34947		}
34948		return nil, &googleapi.Error{
34949			Code:   res.StatusCode,
34950			Header: res.Header,
34951		}
34952	}
34953	if err != nil {
34954		return nil, err
34955	}
34956	defer googleapi.CloseBody(res)
34957	if err := googleapi.CheckResponse(res); err != nil {
34958		return nil, err
34959	}
34960	ret := &GoogleCloudApigeeV1TargetServer{
34961		ServerResponse: googleapi.ServerResponse{
34962			Header:         res.Header,
34963			HTTPStatusCode: res.StatusCode,
34964		},
34965	}
34966	target := &ret
34967	if err := gensupport.DecodeResponse(target, res); err != nil {
34968		return nil, err
34969	}
34970	return ret, nil
34971	// {
34972	//   "description": "Deletes a TargetServer from an environment. Returns the deleted TargetServer resource.",
34973	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/targetservers/{targetserversId}",
34974	//   "httpMethod": "DELETE",
34975	//   "id": "apigee.organizations.environments.targetservers.delete",
34976	//   "parameterOrder": [
34977	//     "name"
34978	//   ],
34979	//   "parameters": {
34980	//     "name": {
34981	//       "description": "Required. The name of the TargetServer to delete. Must be of the form `organizations/{org}/environments/{env}/targetservers/{target_server_id}`.",
34982	//       "location": "path",
34983	//       "pattern": "^organizations/[^/]+/environments/[^/]+/targetservers/[^/]+$",
34984	//       "required": true,
34985	//       "type": "string"
34986	//     }
34987	//   },
34988	//   "path": "v1/{+name}",
34989	//   "response": {
34990	//     "$ref": "GoogleCloudApigeeV1TargetServer"
34991	//   },
34992	//   "scopes": [
34993	//     "https://www.googleapis.com/auth/cloud-platform"
34994	//   ]
34995	// }
34996
34997}
34998
34999// method id "apigee.organizations.environments.targetservers.get":
35000
35001type OrganizationsEnvironmentsTargetserversGetCall struct {
35002	s            *Service
35003	name         string
35004	urlParams_   gensupport.URLParams
35005	ifNoneMatch_ string
35006	ctx_         context.Context
35007	header_      http.Header
35008}
35009
35010// Get: Gets a TargetServer resource.
35011//
35012// - name: The name of the TargetServer to get. Must be of the form
35013//   `organizations/{org}/environments/{env}/targetservers/{target_server
35014//   _id}`.
35015func (r *OrganizationsEnvironmentsTargetserversService) Get(name string) *OrganizationsEnvironmentsTargetserversGetCall {
35016	c := &OrganizationsEnvironmentsTargetserversGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35017	c.name = name
35018	return c
35019}
35020
35021// Fields allows partial responses to be retrieved. See
35022// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
35023// for more information.
35024func (c *OrganizationsEnvironmentsTargetserversGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTargetserversGetCall {
35025	c.urlParams_.Set("fields", googleapi.CombineFields(s))
35026	return c
35027}
35028
35029// IfNoneMatch sets the optional parameter which makes the operation
35030// fail if the object's ETag matches the given value. This is useful for
35031// getting updates only after the object has changed since the last
35032// request. Use googleapi.IsNotModified to check whether the response
35033// error from Do is the result of In-None-Match.
35034func (c *OrganizationsEnvironmentsTargetserversGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsTargetserversGetCall {
35035	c.ifNoneMatch_ = entityTag
35036	return c
35037}
35038
35039// Context sets the context to be used in this call's Do method. Any
35040// pending HTTP request will be aborted if the provided context is
35041// canceled.
35042func (c *OrganizationsEnvironmentsTargetserversGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsTargetserversGetCall {
35043	c.ctx_ = ctx
35044	return c
35045}
35046
35047// Header returns an http.Header that can be modified by the caller to
35048// add HTTP headers to the request.
35049func (c *OrganizationsEnvironmentsTargetserversGetCall) Header() http.Header {
35050	if c.header_ == nil {
35051		c.header_ = make(http.Header)
35052	}
35053	return c.header_
35054}
35055
35056func (c *OrganizationsEnvironmentsTargetserversGetCall) doRequest(alt string) (*http.Response, error) {
35057	reqHeaders := make(http.Header)
35058	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
35059	for k, v := range c.header_ {
35060		reqHeaders[k] = v
35061	}
35062	reqHeaders.Set("User-Agent", c.s.userAgent())
35063	if c.ifNoneMatch_ != "" {
35064		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
35065	}
35066	var body io.Reader = nil
35067	c.urlParams_.Set("alt", alt)
35068	c.urlParams_.Set("prettyPrint", "false")
35069	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
35070	urls += "?" + c.urlParams_.Encode()
35071	req, err := http.NewRequest("GET", urls, body)
35072	if err != nil {
35073		return nil, err
35074	}
35075	req.Header = reqHeaders
35076	googleapi.Expand(req.URL, map[string]string{
35077		"name": c.name,
35078	})
35079	return gensupport.SendRequest(c.ctx_, c.s.client, req)
35080}
35081
35082// Do executes the "apigee.organizations.environments.targetservers.get" call.
35083// Exactly one of *GoogleCloudApigeeV1TargetServer or error will be
35084// non-nil. Any non-2xx status code is an error. Response headers are in
35085// either *GoogleCloudApigeeV1TargetServer.ServerResponse.Header or (if
35086// a response was returned at all) in error.(*googleapi.Error).Header.
35087// Use googleapi.IsNotModified to check whether the returned error was
35088// because http.StatusNotModified was returned.
35089func (c *OrganizationsEnvironmentsTargetserversGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TargetServer, error) {
35090	gensupport.SetOptions(c.urlParams_, opts...)
35091	res, err := c.doRequest("json")
35092	if res != nil && res.StatusCode == http.StatusNotModified {
35093		if res.Body != nil {
35094			res.Body.Close()
35095		}
35096		return nil, &googleapi.Error{
35097			Code:   res.StatusCode,
35098			Header: res.Header,
35099		}
35100	}
35101	if err != nil {
35102		return nil, err
35103	}
35104	defer googleapi.CloseBody(res)
35105	if err := googleapi.CheckResponse(res); err != nil {
35106		return nil, err
35107	}
35108	ret := &GoogleCloudApigeeV1TargetServer{
35109		ServerResponse: googleapi.ServerResponse{
35110			Header:         res.Header,
35111			HTTPStatusCode: res.StatusCode,
35112		},
35113	}
35114	target := &ret
35115	if err := gensupport.DecodeResponse(target, res); err != nil {
35116		return nil, err
35117	}
35118	return ret, nil
35119	// {
35120	//   "description": "Gets a TargetServer resource.",
35121	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/targetservers/{targetserversId}",
35122	//   "httpMethod": "GET",
35123	//   "id": "apigee.organizations.environments.targetservers.get",
35124	//   "parameterOrder": [
35125	//     "name"
35126	//   ],
35127	//   "parameters": {
35128	//     "name": {
35129	//       "description": "Required. The name of the TargetServer to get. Must be of the form `organizations/{org}/environments/{env}/targetservers/{target_server_id}`.",
35130	//       "location": "path",
35131	//       "pattern": "^organizations/[^/]+/environments/[^/]+/targetservers/[^/]+$",
35132	//       "required": true,
35133	//       "type": "string"
35134	//     }
35135	//   },
35136	//   "path": "v1/{+name}",
35137	//   "response": {
35138	//     "$ref": "GoogleCloudApigeeV1TargetServer"
35139	//   },
35140	//   "scopes": [
35141	//     "https://www.googleapis.com/auth/cloud-platform"
35142	//   ]
35143	// }
35144
35145}
35146
35147// method id "apigee.organizations.environments.targetservers.update":
35148
35149type OrganizationsEnvironmentsTargetserversUpdateCall struct {
35150	s                               *Service
35151	name                            string
35152	googlecloudapigeev1targetserver *GoogleCloudApigeeV1TargetServer
35153	urlParams_                      gensupport.URLParams
35154	ctx_                            context.Context
35155	header_                         http.Header
35156}
35157
35158// Update: Updates an existing TargetServer. Note that this operation
35159// has PUT semantics; it will replace the entirety of the existing
35160// TargetServer with the resource in the request body.
35161//
35162// - name: The name of the TargetServer to replace. Must be of the form
35163//   `organizations/{org}/environments/{env}/targetservers/{target_server
35164//   _id}`.
35165func (r *OrganizationsEnvironmentsTargetserversService) Update(name string, googlecloudapigeev1targetserver *GoogleCloudApigeeV1TargetServer) *OrganizationsEnvironmentsTargetserversUpdateCall {
35166	c := &OrganizationsEnvironmentsTargetserversUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35167	c.name = name
35168	c.googlecloudapigeev1targetserver = googlecloudapigeev1targetserver
35169	return c
35170}
35171
35172// Fields allows partial responses to be retrieved. See
35173// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
35174// for more information.
35175func (c *OrganizationsEnvironmentsTargetserversUpdateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTargetserversUpdateCall {
35176	c.urlParams_.Set("fields", googleapi.CombineFields(s))
35177	return c
35178}
35179
35180// Context sets the context to be used in this call's Do method. Any
35181// pending HTTP request will be aborted if the provided context is
35182// canceled.
35183func (c *OrganizationsEnvironmentsTargetserversUpdateCall) Context(ctx context.Context) *OrganizationsEnvironmentsTargetserversUpdateCall {
35184	c.ctx_ = ctx
35185	return c
35186}
35187
35188// Header returns an http.Header that can be modified by the caller to
35189// add HTTP headers to the request.
35190func (c *OrganizationsEnvironmentsTargetserversUpdateCall) Header() http.Header {
35191	if c.header_ == nil {
35192		c.header_ = make(http.Header)
35193	}
35194	return c.header_
35195}
35196
35197func (c *OrganizationsEnvironmentsTargetserversUpdateCall) doRequest(alt string) (*http.Response, error) {
35198	reqHeaders := make(http.Header)
35199	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
35200	for k, v := range c.header_ {
35201		reqHeaders[k] = v
35202	}
35203	reqHeaders.Set("User-Agent", c.s.userAgent())
35204	var body io.Reader = nil
35205	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1targetserver)
35206	if err != nil {
35207		return nil, err
35208	}
35209	reqHeaders.Set("Content-Type", "application/json")
35210	c.urlParams_.Set("alt", alt)
35211	c.urlParams_.Set("prettyPrint", "false")
35212	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
35213	urls += "?" + c.urlParams_.Encode()
35214	req, err := http.NewRequest("PUT", urls, body)
35215	if err != nil {
35216		return nil, err
35217	}
35218	req.Header = reqHeaders
35219	googleapi.Expand(req.URL, map[string]string{
35220		"name": c.name,
35221	})
35222	return gensupport.SendRequest(c.ctx_, c.s.client, req)
35223}
35224
35225// Do executes the "apigee.organizations.environments.targetservers.update" call.
35226// Exactly one of *GoogleCloudApigeeV1TargetServer or error will be
35227// non-nil. Any non-2xx status code is an error. Response headers are in
35228// either *GoogleCloudApigeeV1TargetServer.ServerResponse.Header or (if
35229// a response was returned at all) in error.(*googleapi.Error).Header.
35230// Use googleapi.IsNotModified to check whether the returned error was
35231// because http.StatusNotModified was returned.
35232func (c *OrganizationsEnvironmentsTargetserversUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TargetServer, error) {
35233	gensupport.SetOptions(c.urlParams_, opts...)
35234	res, err := c.doRequest("json")
35235	if res != nil && res.StatusCode == http.StatusNotModified {
35236		if res.Body != nil {
35237			res.Body.Close()
35238		}
35239		return nil, &googleapi.Error{
35240			Code:   res.StatusCode,
35241			Header: res.Header,
35242		}
35243	}
35244	if err != nil {
35245		return nil, err
35246	}
35247	defer googleapi.CloseBody(res)
35248	if err := googleapi.CheckResponse(res); err != nil {
35249		return nil, err
35250	}
35251	ret := &GoogleCloudApigeeV1TargetServer{
35252		ServerResponse: googleapi.ServerResponse{
35253			Header:         res.Header,
35254			HTTPStatusCode: res.StatusCode,
35255		},
35256	}
35257	target := &ret
35258	if err := gensupport.DecodeResponse(target, res); err != nil {
35259		return nil, err
35260	}
35261	return ret, nil
35262	// {
35263	//   "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.",
35264	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/targetservers/{targetserversId}",
35265	//   "httpMethod": "PUT",
35266	//   "id": "apigee.organizations.environments.targetservers.update",
35267	//   "parameterOrder": [
35268	//     "name"
35269	//   ],
35270	//   "parameters": {
35271	//     "name": {
35272	//       "description": "Required. The name of the TargetServer to replace. Must be of the form `organizations/{org}/environments/{env}/targetservers/{target_server_id}`.",
35273	//       "location": "path",
35274	//       "pattern": "^organizations/[^/]+/environments/[^/]+/targetservers/[^/]+$",
35275	//       "required": true,
35276	//       "type": "string"
35277	//     }
35278	//   },
35279	//   "path": "v1/{+name}",
35280	//   "request": {
35281	//     "$ref": "GoogleCloudApigeeV1TargetServer"
35282	//   },
35283	//   "response": {
35284	//     "$ref": "GoogleCloudApigeeV1TargetServer"
35285	//   },
35286	//   "scopes": [
35287	//     "https://www.googleapis.com/auth/cloud-platform"
35288	//   ]
35289	// }
35290
35291}
35292
35293// method id "apigee.organizations.environments.traceConfig.overrides.create":
35294
35295type OrganizationsEnvironmentsTraceConfigOverridesCreateCall struct {
35296	s                                      *Service
35297	parent                                 string
35298	googlecloudapigeev1traceconfigoverride *GoogleCloudApigeeV1TraceConfigOverride
35299	urlParams_                             gensupport.URLParams
35300	ctx_                                   context.Context
35301	header_                                http.Header
35302}
35303
35304// Create: Creates a trace configuration override. The response contains
35305// a system-generated UUID, that can be used to view, update, or delete
35306// the configuration override. Use the List API to view the existing
35307// trace configuration overrides.
35308//
35309// - parent: Parent resource of the trace configuration override. Use
35310//   the following structure in your request.
35311//   "organizations/*/environments/*/traceConfig".
35312func (r *OrganizationsEnvironmentsTraceConfigOverridesService) Create(parent string, googlecloudapigeev1traceconfigoverride *GoogleCloudApigeeV1TraceConfigOverride) *OrganizationsEnvironmentsTraceConfigOverridesCreateCall {
35313	c := &OrganizationsEnvironmentsTraceConfigOverridesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35314	c.parent = parent
35315	c.googlecloudapigeev1traceconfigoverride = googlecloudapigeev1traceconfigoverride
35316	return c
35317}
35318
35319// Fields allows partial responses to be retrieved. See
35320// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
35321// for more information.
35322func (c *OrganizationsEnvironmentsTraceConfigOverridesCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTraceConfigOverridesCreateCall {
35323	c.urlParams_.Set("fields", googleapi.CombineFields(s))
35324	return c
35325}
35326
35327// Context sets the context to be used in this call's Do method. Any
35328// pending HTTP request will be aborted if the provided context is
35329// canceled.
35330func (c *OrganizationsEnvironmentsTraceConfigOverridesCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsTraceConfigOverridesCreateCall {
35331	c.ctx_ = ctx
35332	return c
35333}
35334
35335// Header returns an http.Header that can be modified by the caller to
35336// add HTTP headers to the request.
35337func (c *OrganizationsEnvironmentsTraceConfigOverridesCreateCall) Header() http.Header {
35338	if c.header_ == nil {
35339		c.header_ = make(http.Header)
35340	}
35341	return c.header_
35342}
35343
35344func (c *OrganizationsEnvironmentsTraceConfigOverridesCreateCall) doRequest(alt string) (*http.Response, error) {
35345	reqHeaders := make(http.Header)
35346	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
35347	for k, v := range c.header_ {
35348		reqHeaders[k] = v
35349	}
35350	reqHeaders.Set("User-Agent", c.s.userAgent())
35351	var body io.Reader = nil
35352	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1traceconfigoverride)
35353	if err != nil {
35354		return nil, err
35355	}
35356	reqHeaders.Set("Content-Type", "application/json")
35357	c.urlParams_.Set("alt", alt)
35358	c.urlParams_.Set("prettyPrint", "false")
35359	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/overrides")
35360	urls += "?" + c.urlParams_.Encode()
35361	req, err := http.NewRequest("POST", urls, body)
35362	if err != nil {
35363		return nil, err
35364	}
35365	req.Header = reqHeaders
35366	googleapi.Expand(req.URL, map[string]string{
35367		"parent": c.parent,
35368	})
35369	return gensupport.SendRequest(c.ctx_, c.s.client, req)
35370}
35371
35372// Do executes the "apigee.organizations.environments.traceConfig.overrides.create" call.
35373// Exactly one of *GoogleCloudApigeeV1TraceConfigOverride or error will
35374// be non-nil. Any non-2xx status code is an error. Response headers are
35375// in either
35376// *GoogleCloudApigeeV1TraceConfigOverride.ServerResponse.Header or (if
35377// a response was returned at all) in error.(*googleapi.Error).Header.
35378// Use googleapi.IsNotModified to check whether the returned error was
35379// because http.StatusNotModified was returned.
35380func (c *OrganizationsEnvironmentsTraceConfigOverridesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TraceConfigOverride, error) {
35381	gensupport.SetOptions(c.urlParams_, opts...)
35382	res, err := c.doRequest("json")
35383	if res != nil && res.StatusCode == http.StatusNotModified {
35384		if res.Body != nil {
35385			res.Body.Close()
35386		}
35387		return nil, &googleapi.Error{
35388			Code:   res.StatusCode,
35389			Header: res.Header,
35390		}
35391	}
35392	if err != nil {
35393		return nil, err
35394	}
35395	defer googleapi.CloseBody(res)
35396	if err := googleapi.CheckResponse(res); err != nil {
35397		return nil, err
35398	}
35399	ret := &GoogleCloudApigeeV1TraceConfigOverride{
35400		ServerResponse: googleapi.ServerResponse{
35401			Header:         res.Header,
35402			HTTPStatusCode: res.StatusCode,
35403		},
35404	}
35405	target := &ret
35406	if err := gensupport.DecodeResponse(target, res); err != nil {
35407		return nil, err
35408	}
35409	return ret, nil
35410	// {
35411	//   "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.",
35412	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/traceConfig/overrides",
35413	//   "httpMethod": "POST",
35414	//   "id": "apigee.organizations.environments.traceConfig.overrides.create",
35415	//   "parameterOrder": [
35416	//     "parent"
35417	//   ],
35418	//   "parameters": {
35419	//     "parent": {
35420	//       "description": "Required. Parent resource of the trace configuration override. Use the following structure in your request. \"organizations/*/environments/*/traceConfig\".",
35421	//       "location": "path",
35422	//       "pattern": "^organizations/[^/]+/environments/[^/]+/traceConfig$",
35423	//       "required": true,
35424	//       "type": "string"
35425	//     }
35426	//   },
35427	//   "path": "v1/{+parent}/overrides",
35428	//   "request": {
35429	//     "$ref": "GoogleCloudApigeeV1TraceConfigOverride"
35430	//   },
35431	//   "response": {
35432	//     "$ref": "GoogleCloudApigeeV1TraceConfigOverride"
35433	//   },
35434	//   "scopes": [
35435	//     "https://www.googleapis.com/auth/cloud-platform"
35436	//   ]
35437	// }
35438
35439}
35440
35441// method id "apigee.organizations.environments.traceConfig.overrides.delete":
35442
35443type OrganizationsEnvironmentsTraceConfigOverridesDeleteCall struct {
35444	s          *Service
35445	name       string
35446	urlParams_ gensupport.URLParams
35447	ctx_       context.Context
35448	header_    http.Header
35449}
35450
35451// Delete: Deletes a distributed trace configuration override.
35452//
35453// - name: Name of the trace configuration override. Use the following
35454//   structure in your request:
35455//   "organizations/*/environments/*/traceConfig/overrides/*".
35456func (r *OrganizationsEnvironmentsTraceConfigOverridesService) Delete(name string) *OrganizationsEnvironmentsTraceConfigOverridesDeleteCall {
35457	c := &OrganizationsEnvironmentsTraceConfigOverridesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35458	c.name = name
35459	return c
35460}
35461
35462// Fields allows partial responses to be retrieved. See
35463// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
35464// for more information.
35465func (c *OrganizationsEnvironmentsTraceConfigOverridesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTraceConfigOverridesDeleteCall {
35466	c.urlParams_.Set("fields", googleapi.CombineFields(s))
35467	return c
35468}
35469
35470// Context sets the context to be used in this call's Do method. Any
35471// pending HTTP request will be aborted if the provided context is
35472// canceled.
35473func (c *OrganizationsEnvironmentsTraceConfigOverridesDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsTraceConfigOverridesDeleteCall {
35474	c.ctx_ = ctx
35475	return c
35476}
35477
35478// Header returns an http.Header that can be modified by the caller to
35479// add HTTP headers to the request.
35480func (c *OrganizationsEnvironmentsTraceConfigOverridesDeleteCall) Header() http.Header {
35481	if c.header_ == nil {
35482		c.header_ = make(http.Header)
35483	}
35484	return c.header_
35485}
35486
35487func (c *OrganizationsEnvironmentsTraceConfigOverridesDeleteCall) doRequest(alt string) (*http.Response, error) {
35488	reqHeaders := make(http.Header)
35489	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
35490	for k, v := range c.header_ {
35491		reqHeaders[k] = v
35492	}
35493	reqHeaders.Set("User-Agent", c.s.userAgent())
35494	var body io.Reader = nil
35495	c.urlParams_.Set("alt", alt)
35496	c.urlParams_.Set("prettyPrint", "false")
35497	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
35498	urls += "?" + c.urlParams_.Encode()
35499	req, err := http.NewRequest("DELETE", urls, body)
35500	if err != nil {
35501		return nil, err
35502	}
35503	req.Header = reqHeaders
35504	googleapi.Expand(req.URL, map[string]string{
35505		"name": c.name,
35506	})
35507	return gensupport.SendRequest(c.ctx_, c.s.client, req)
35508}
35509
35510// Do executes the "apigee.organizations.environments.traceConfig.overrides.delete" call.
35511// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
35512// non-2xx status code is an error. Response headers are in either
35513// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
35514// returned at all) in error.(*googleapi.Error).Header. Use
35515// googleapi.IsNotModified to check whether the returned error was
35516// because http.StatusNotModified was returned.
35517func (c *OrganizationsEnvironmentsTraceConfigOverridesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
35518	gensupport.SetOptions(c.urlParams_, opts...)
35519	res, err := c.doRequest("json")
35520	if res != nil && res.StatusCode == http.StatusNotModified {
35521		if res.Body != nil {
35522			res.Body.Close()
35523		}
35524		return nil, &googleapi.Error{
35525			Code:   res.StatusCode,
35526			Header: res.Header,
35527		}
35528	}
35529	if err != nil {
35530		return nil, err
35531	}
35532	defer googleapi.CloseBody(res)
35533	if err := googleapi.CheckResponse(res); err != nil {
35534		return nil, err
35535	}
35536	ret := &GoogleProtobufEmpty{
35537		ServerResponse: googleapi.ServerResponse{
35538			Header:         res.Header,
35539			HTTPStatusCode: res.StatusCode,
35540		},
35541	}
35542	target := &ret
35543	if err := gensupport.DecodeResponse(target, res); err != nil {
35544		return nil, err
35545	}
35546	return ret, nil
35547	// {
35548	//   "description": "Deletes a distributed trace configuration override.",
35549	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/traceConfig/overrides/{overridesId}",
35550	//   "httpMethod": "DELETE",
35551	//   "id": "apigee.organizations.environments.traceConfig.overrides.delete",
35552	//   "parameterOrder": [
35553	//     "name"
35554	//   ],
35555	//   "parameters": {
35556	//     "name": {
35557	//       "description": "Required. Name of the trace configuration override. Use the following structure in your request: \"organizations/*/environments/*/traceConfig/overrides/*\".",
35558	//       "location": "path",
35559	//       "pattern": "^organizations/[^/]+/environments/[^/]+/traceConfig/overrides/[^/]+$",
35560	//       "required": true,
35561	//       "type": "string"
35562	//     }
35563	//   },
35564	//   "path": "v1/{+name}",
35565	//   "response": {
35566	//     "$ref": "GoogleProtobufEmpty"
35567	//   },
35568	//   "scopes": [
35569	//     "https://www.googleapis.com/auth/cloud-platform"
35570	//   ]
35571	// }
35572
35573}
35574
35575// method id "apigee.organizations.environments.traceConfig.overrides.get":
35576
35577type OrganizationsEnvironmentsTraceConfigOverridesGetCall struct {
35578	s            *Service
35579	name         string
35580	urlParams_   gensupport.URLParams
35581	ifNoneMatch_ string
35582	ctx_         context.Context
35583	header_      http.Header
35584}
35585
35586// Get: Gets a trace configuration override.
35587//
35588// - name: Name of the trace configuration override. Use the following
35589//   structure in your request:
35590//   "organizations/*/environments/*/traceConfig/overrides/*".
35591func (r *OrganizationsEnvironmentsTraceConfigOverridesService) Get(name string) *OrganizationsEnvironmentsTraceConfigOverridesGetCall {
35592	c := &OrganizationsEnvironmentsTraceConfigOverridesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35593	c.name = name
35594	return c
35595}
35596
35597// Fields allows partial responses to be retrieved. See
35598// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
35599// for more information.
35600func (c *OrganizationsEnvironmentsTraceConfigOverridesGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTraceConfigOverridesGetCall {
35601	c.urlParams_.Set("fields", googleapi.CombineFields(s))
35602	return c
35603}
35604
35605// IfNoneMatch sets the optional parameter which makes the operation
35606// fail if the object's ETag matches the given value. This is useful for
35607// getting updates only after the object has changed since the last
35608// request. Use googleapi.IsNotModified to check whether the response
35609// error from Do is the result of In-None-Match.
35610func (c *OrganizationsEnvironmentsTraceConfigOverridesGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsTraceConfigOverridesGetCall {
35611	c.ifNoneMatch_ = entityTag
35612	return c
35613}
35614
35615// Context sets the context to be used in this call's Do method. Any
35616// pending HTTP request will be aborted if the provided context is
35617// canceled.
35618func (c *OrganizationsEnvironmentsTraceConfigOverridesGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsTraceConfigOverridesGetCall {
35619	c.ctx_ = ctx
35620	return c
35621}
35622
35623// Header returns an http.Header that can be modified by the caller to
35624// add HTTP headers to the request.
35625func (c *OrganizationsEnvironmentsTraceConfigOverridesGetCall) Header() http.Header {
35626	if c.header_ == nil {
35627		c.header_ = make(http.Header)
35628	}
35629	return c.header_
35630}
35631
35632func (c *OrganizationsEnvironmentsTraceConfigOverridesGetCall) doRequest(alt string) (*http.Response, error) {
35633	reqHeaders := make(http.Header)
35634	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
35635	for k, v := range c.header_ {
35636		reqHeaders[k] = v
35637	}
35638	reqHeaders.Set("User-Agent", c.s.userAgent())
35639	if c.ifNoneMatch_ != "" {
35640		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
35641	}
35642	var body io.Reader = nil
35643	c.urlParams_.Set("alt", alt)
35644	c.urlParams_.Set("prettyPrint", "false")
35645	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
35646	urls += "?" + c.urlParams_.Encode()
35647	req, err := http.NewRequest("GET", urls, body)
35648	if err != nil {
35649		return nil, err
35650	}
35651	req.Header = reqHeaders
35652	googleapi.Expand(req.URL, map[string]string{
35653		"name": c.name,
35654	})
35655	return gensupport.SendRequest(c.ctx_, c.s.client, req)
35656}
35657
35658// Do executes the "apigee.organizations.environments.traceConfig.overrides.get" call.
35659// Exactly one of *GoogleCloudApigeeV1TraceConfigOverride or error will
35660// be non-nil. Any non-2xx status code is an error. Response headers are
35661// in either
35662// *GoogleCloudApigeeV1TraceConfigOverride.ServerResponse.Header or (if
35663// a response was returned at all) in error.(*googleapi.Error).Header.
35664// Use googleapi.IsNotModified to check whether the returned error was
35665// because http.StatusNotModified was returned.
35666func (c *OrganizationsEnvironmentsTraceConfigOverridesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TraceConfigOverride, error) {
35667	gensupport.SetOptions(c.urlParams_, opts...)
35668	res, err := c.doRequest("json")
35669	if res != nil && res.StatusCode == http.StatusNotModified {
35670		if res.Body != nil {
35671			res.Body.Close()
35672		}
35673		return nil, &googleapi.Error{
35674			Code:   res.StatusCode,
35675			Header: res.Header,
35676		}
35677	}
35678	if err != nil {
35679		return nil, err
35680	}
35681	defer googleapi.CloseBody(res)
35682	if err := googleapi.CheckResponse(res); err != nil {
35683		return nil, err
35684	}
35685	ret := &GoogleCloudApigeeV1TraceConfigOverride{
35686		ServerResponse: googleapi.ServerResponse{
35687			Header:         res.Header,
35688			HTTPStatusCode: res.StatusCode,
35689		},
35690	}
35691	target := &ret
35692	if err := gensupport.DecodeResponse(target, res); err != nil {
35693		return nil, err
35694	}
35695	return ret, nil
35696	// {
35697	//   "description": "Gets a trace configuration override.",
35698	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/traceConfig/overrides/{overridesId}",
35699	//   "httpMethod": "GET",
35700	//   "id": "apigee.organizations.environments.traceConfig.overrides.get",
35701	//   "parameterOrder": [
35702	//     "name"
35703	//   ],
35704	//   "parameters": {
35705	//     "name": {
35706	//       "description": "Required. Name of the trace configuration override. Use the following structure in your request: \"organizations/*/environments/*/traceConfig/overrides/*\".",
35707	//       "location": "path",
35708	//       "pattern": "^organizations/[^/]+/environments/[^/]+/traceConfig/overrides/[^/]+$",
35709	//       "required": true,
35710	//       "type": "string"
35711	//     }
35712	//   },
35713	//   "path": "v1/{+name}",
35714	//   "response": {
35715	//     "$ref": "GoogleCloudApigeeV1TraceConfigOverride"
35716	//   },
35717	//   "scopes": [
35718	//     "https://www.googleapis.com/auth/cloud-platform"
35719	//   ]
35720	// }
35721
35722}
35723
35724// method id "apigee.organizations.environments.traceConfig.overrides.list":
35725
35726type OrganizationsEnvironmentsTraceConfigOverridesListCall struct {
35727	s            *Service
35728	parent       string
35729	urlParams_   gensupport.URLParams
35730	ifNoneMatch_ string
35731	ctx_         context.Context
35732	header_      http.Header
35733}
35734
35735// List: Lists all of the distributed trace configuration overrides in
35736// an environment.
35737//
35738// - parent: Parent resource of the trace configuration override. Use
35739//   the following structure in your request:
35740//   "organizations/*/environments/*/traceConfig".
35741func (r *OrganizationsEnvironmentsTraceConfigOverridesService) List(parent string) *OrganizationsEnvironmentsTraceConfigOverridesListCall {
35742	c := &OrganizationsEnvironmentsTraceConfigOverridesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35743	c.parent = parent
35744	return c
35745}
35746
35747// PageSize sets the optional parameter "pageSize": Maximum number of
35748// trace configuration overrides to return. If not specified, the
35749// maximum number returned is 25. The maximum number cannot exceed 100.
35750func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) PageSize(pageSize int64) *OrganizationsEnvironmentsTraceConfigOverridesListCall {
35751	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
35752	return c
35753}
35754
35755// PageToken sets the optional parameter "pageToken": A page token,
35756// returned from a previous `ListTraceConfigOverrides` call. Token value
35757// that can be used to retrieve the subsequent page. When paginating,
35758// all other parameters provided to `ListTraceConfigOverrides` must
35759// match those specified in the call to obtain the page token.
35760func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) PageToken(pageToken string) *OrganizationsEnvironmentsTraceConfigOverridesListCall {
35761	c.urlParams_.Set("pageToken", pageToken)
35762	return c
35763}
35764
35765// Fields allows partial responses to be retrieved. See
35766// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
35767// for more information.
35768func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTraceConfigOverridesListCall {
35769	c.urlParams_.Set("fields", googleapi.CombineFields(s))
35770	return c
35771}
35772
35773// IfNoneMatch sets the optional parameter which makes the operation
35774// fail if the object's ETag matches the given value. This is useful for
35775// getting updates only after the object has changed since the last
35776// request. Use googleapi.IsNotModified to check whether the response
35777// error from Do is the result of In-None-Match.
35778func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsTraceConfigOverridesListCall {
35779	c.ifNoneMatch_ = entityTag
35780	return c
35781}
35782
35783// Context sets the context to be used in this call's Do method. Any
35784// pending HTTP request will be aborted if the provided context is
35785// canceled.
35786func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) Context(ctx context.Context) *OrganizationsEnvironmentsTraceConfigOverridesListCall {
35787	c.ctx_ = ctx
35788	return c
35789}
35790
35791// Header returns an http.Header that can be modified by the caller to
35792// add HTTP headers to the request.
35793func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) Header() http.Header {
35794	if c.header_ == nil {
35795		c.header_ = make(http.Header)
35796	}
35797	return c.header_
35798}
35799
35800func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) doRequest(alt string) (*http.Response, error) {
35801	reqHeaders := make(http.Header)
35802	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
35803	for k, v := range c.header_ {
35804		reqHeaders[k] = v
35805	}
35806	reqHeaders.Set("User-Agent", c.s.userAgent())
35807	if c.ifNoneMatch_ != "" {
35808		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
35809	}
35810	var body io.Reader = nil
35811	c.urlParams_.Set("alt", alt)
35812	c.urlParams_.Set("prettyPrint", "false")
35813	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/overrides")
35814	urls += "?" + c.urlParams_.Encode()
35815	req, err := http.NewRequest("GET", urls, body)
35816	if err != nil {
35817		return nil, err
35818	}
35819	req.Header = reqHeaders
35820	googleapi.Expand(req.URL, map[string]string{
35821		"parent": c.parent,
35822	})
35823	return gensupport.SendRequest(c.ctx_, c.s.client, req)
35824}
35825
35826// Do executes the "apigee.organizations.environments.traceConfig.overrides.list" call.
35827// Exactly one of *GoogleCloudApigeeV1ListTraceConfigOverridesResponse
35828// or error will be non-nil. Any non-2xx status code is an error.
35829// Response headers are in either
35830// *GoogleCloudApigeeV1ListTraceConfigOverridesResponse.ServerResponse.He
35831// ader or (if a response was returned at all) in
35832// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
35833// whether the returned error was because http.StatusNotModified was
35834// returned.
35835func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListTraceConfigOverridesResponse, error) {
35836	gensupport.SetOptions(c.urlParams_, opts...)
35837	res, err := c.doRequest("json")
35838	if res != nil && res.StatusCode == http.StatusNotModified {
35839		if res.Body != nil {
35840			res.Body.Close()
35841		}
35842		return nil, &googleapi.Error{
35843			Code:   res.StatusCode,
35844			Header: res.Header,
35845		}
35846	}
35847	if err != nil {
35848		return nil, err
35849	}
35850	defer googleapi.CloseBody(res)
35851	if err := googleapi.CheckResponse(res); err != nil {
35852		return nil, err
35853	}
35854	ret := &GoogleCloudApigeeV1ListTraceConfigOverridesResponse{
35855		ServerResponse: googleapi.ServerResponse{
35856			Header:         res.Header,
35857			HTTPStatusCode: res.StatusCode,
35858		},
35859	}
35860	target := &ret
35861	if err := gensupport.DecodeResponse(target, res); err != nil {
35862		return nil, err
35863	}
35864	return ret, nil
35865	// {
35866	//   "description": "Lists all of the distributed trace configuration overrides in an environment.",
35867	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/traceConfig/overrides",
35868	//   "httpMethod": "GET",
35869	//   "id": "apigee.organizations.environments.traceConfig.overrides.list",
35870	//   "parameterOrder": [
35871	//     "parent"
35872	//   ],
35873	//   "parameters": {
35874	//     "pageSize": {
35875	//       "description": "Maximum number of trace configuration overrides to return. If not specified, the maximum number returned is 25. The maximum number cannot exceed 100.",
35876	//       "format": "int32",
35877	//       "location": "query",
35878	//       "type": "integer"
35879	//     },
35880	//     "pageToken": {
35881	//       "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.",
35882	//       "location": "query",
35883	//       "type": "string"
35884	//     },
35885	//     "parent": {
35886	//       "description": "Required. Parent resource of the trace configuration override. Use the following structure in your request: \"organizations/*/environments/*/traceConfig\".",
35887	//       "location": "path",
35888	//       "pattern": "^organizations/[^/]+/environments/[^/]+/traceConfig$",
35889	//       "required": true,
35890	//       "type": "string"
35891	//     }
35892	//   },
35893	//   "path": "v1/{+parent}/overrides",
35894	//   "response": {
35895	//     "$ref": "GoogleCloudApigeeV1ListTraceConfigOverridesResponse"
35896	//   },
35897	//   "scopes": [
35898	//     "https://www.googleapis.com/auth/cloud-platform"
35899	//   ]
35900	// }
35901
35902}
35903
35904// Pages invokes f for each page of results.
35905// A non-nil error returned from f will halt the iteration.
35906// The provided context supersedes any context provided to the Context method.
35907func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListTraceConfigOverridesResponse) error) error {
35908	c.ctx_ = ctx
35909	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
35910	for {
35911		x, err := c.Do()
35912		if err != nil {
35913			return err
35914		}
35915		if err := f(x); err != nil {
35916			return err
35917		}
35918		if x.NextPageToken == "" {
35919			return nil
35920		}
35921		c.PageToken(x.NextPageToken)
35922	}
35923}
35924
35925// method id "apigee.organizations.environments.traceConfig.overrides.patch":
35926
35927type OrganizationsEnvironmentsTraceConfigOverridesPatchCall struct {
35928	s                                      *Service
35929	name                                   string
35930	googlecloudapigeev1traceconfigoverride *GoogleCloudApigeeV1TraceConfigOverride
35931	urlParams_                             gensupport.URLParams
35932	ctx_                                   context.Context
35933	header_                                http.Header
35934}
35935
35936// Patch: Updates a distributed trace configuration override. Note that
35937// the repeated fields have replace semantics when included in the field
35938// mask and that they will be overwritten by the value of the fields in
35939// the request body.
35940//
35941// - name: Name of the trace configuration override. Use the following
35942//   structure in your request:
35943//   "organizations/*/environments/*/traceConfig/overrides/*".
35944func (r *OrganizationsEnvironmentsTraceConfigOverridesService) Patch(name string, googlecloudapigeev1traceconfigoverride *GoogleCloudApigeeV1TraceConfigOverride) *OrganizationsEnvironmentsTraceConfigOverridesPatchCall {
35945	c := &OrganizationsEnvironmentsTraceConfigOverridesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35946	c.name = name
35947	c.googlecloudapigeev1traceconfigoverride = googlecloudapigeev1traceconfigoverride
35948	return c
35949}
35950
35951// UpdateMask sets the optional parameter "updateMask": List of fields
35952// to be updated.
35953func (c *OrganizationsEnvironmentsTraceConfigOverridesPatchCall) UpdateMask(updateMask string) *OrganizationsEnvironmentsTraceConfigOverridesPatchCall {
35954	c.urlParams_.Set("updateMask", updateMask)
35955	return c
35956}
35957
35958// Fields allows partial responses to be retrieved. See
35959// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
35960// for more information.
35961func (c *OrganizationsEnvironmentsTraceConfigOverridesPatchCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTraceConfigOverridesPatchCall {
35962	c.urlParams_.Set("fields", googleapi.CombineFields(s))
35963	return c
35964}
35965
35966// Context sets the context to be used in this call's Do method. Any
35967// pending HTTP request will be aborted if the provided context is
35968// canceled.
35969func (c *OrganizationsEnvironmentsTraceConfigOverridesPatchCall) Context(ctx context.Context) *OrganizationsEnvironmentsTraceConfigOverridesPatchCall {
35970	c.ctx_ = ctx
35971	return c
35972}
35973
35974// Header returns an http.Header that can be modified by the caller to
35975// add HTTP headers to the request.
35976func (c *OrganizationsEnvironmentsTraceConfigOverridesPatchCall) Header() http.Header {
35977	if c.header_ == nil {
35978		c.header_ = make(http.Header)
35979	}
35980	return c.header_
35981}
35982
35983func (c *OrganizationsEnvironmentsTraceConfigOverridesPatchCall) doRequest(alt string) (*http.Response, error) {
35984	reqHeaders := make(http.Header)
35985	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
35986	for k, v := range c.header_ {
35987		reqHeaders[k] = v
35988	}
35989	reqHeaders.Set("User-Agent", c.s.userAgent())
35990	var body io.Reader = nil
35991	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1traceconfigoverride)
35992	if err != nil {
35993		return nil, err
35994	}
35995	reqHeaders.Set("Content-Type", "application/json")
35996	c.urlParams_.Set("alt", alt)
35997	c.urlParams_.Set("prettyPrint", "false")
35998	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
35999	urls += "?" + c.urlParams_.Encode()
36000	req, err := http.NewRequest("PATCH", urls, body)
36001	if err != nil {
36002		return nil, err
36003	}
36004	req.Header = reqHeaders
36005	googleapi.Expand(req.URL, map[string]string{
36006		"name": c.name,
36007	})
36008	return gensupport.SendRequest(c.ctx_, c.s.client, req)
36009}
36010
36011// Do executes the "apigee.organizations.environments.traceConfig.overrides.patch" call.
36012// Exactly one of *GoogleCloudApigeeV1TraceConfigOverride or error will
36013// be non-nil. Any non-2xx status code is an error. Response headers are
36014// in either
36015// *GoogleCloudApigeeV1TraceConfigOverride.ServerResponse.Header or (if
36016// a response was returned at all) in error.(*googleapi.Error).Header.
36017// Use googleapi.IsNotModified to check whether the returned error was
36018// because http.StatusNotModified was returned.
36019func (c *OrganizationsEnvironmentsTraceConfigOverridesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TraceConfigOverride, error) {
36020	gensupport.SetOptions(c.urlParams_, opts...)
36021	res, err := c.doRequest("json")
36022	if res != nil && res.StatusCode == http.StatusNotModified {
36023		if res.Body != nil {
36024			res.Body.Close()
36025		}
36026		return nil, &googleapi.Error{
36027			Code:   res.StatusCode,
36028			Header: res.Header,
36029		}
36030	}
36031	if err != nil {
36032		return nil, err
36033	}
36034	defer googleapi.CloseBody(res)
36035	if err := googleapi.CheckResponse(res); err != nil {
36036		return nil, err
36037	}
36038	ret := &GoogleCloudApigeeV1TraceConfigOverride{
36039		ServerResponse: googleapi.ServerResponse{
36040			Header:         res.Header,
36041			HTTPStatusCode: res.StatusCode,
36042		},
36043	}
36044	target := &ret
36045	if err := gensupport.DecodeResponse(target, res); err != nil {
36046		return nil, err
36047	}
36048	return ret, nil
36049	// {
36050	//   "description": "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.",
36051	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/traceConfig/overrides/{overridesId}",
36052	//   "httpMethod": "PATCH",
36053	//   "id": "apigee.organizations.environments.traceConfig.overrides.patch",
36054	//   "parameterOrder": [
36055	//     "name"
36056	//   ],
36057	//   "parameters": {
36058	//     "name": {
36059	//       "description": "Required. Name of the trace configuration override. Use the following structure in your request: \"organizations/*/environments/*/traceConfig/overrides/*\".",
36060	//       "location": "path",
36061	//       "pattern": "^organizations/[^/]+/environments/[^/]+/traceConfig/overrides/[^/]+$",
36062	//       "required": true,
36063	//       "type": "string"
36064	//     },
36065	//     "updateMask": {
36066	//       "description": "List of fields to be updated.",
36067	//       "format": "google-fieldmask",
36068	//       "location": "query",
36069	//       "type": "string"
36070	//     }
36071	//   },
36072	//   "path": "v1/{+name}",
36073	//   "request": {
36074	//     "$ref": "GoogleCloudApigeeV1TraceConfigOverride"
36075	//   },
36076	//   "response": {
36077	//     "$ref": "GoogleCloudApigeeV1TraceConfigOverride"
36078	//   },
36079	//   "scopes": [
36080	//     "https://www.googleapis.com/auth/cloud-platform"
36081	//   ]
36082	// }
36083
36084}
36085
36086// method id "apigee.organizations.hostQueries.create":
36087
36088type OrganizationsHostQueriesCreateCall struct {
36089	s                        *Service
36090	parent                   string
36091	googlecloudapigeev1query *GoogleCloudApigeeV1Query
36092	urlParams_               gensupport.URLParams
36093	ctx_                     context.Context
36094	header_                  http.Header
36095}
36096
36097// Create: Submit a query at host level to be processed in the
36098// background. If the submission of the query succeeds, the API returns
36099// a 201 status and an ID that refer to the query. In addition to the
36100// HTTP status 201, the `state` of "enqueued" means that the request
36101// succeeded.
36102//
36103// - parent: The parent resource name. Must be of the form
36104//   `organizations/{org}`.
36105func (r *OrganizationsHostQueriesService) Create(parent string, googlecloudapigeev1query *GoogleCloudApigeeV1Query) *OrganizationsHostQueriesCreateCall {
36106	c := &OrganizationsHostQueriesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36107	c.parent = parent
36108	c.googlecloudapigeev1query = googlecloudapigeev1query
36109	return c
36110}
36111
36112// Fields allows partial responses to be retrieved. See
36113// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
36114// for more information.
36115func (c *OrganizationsHostQueriesCreateCall) Fields(s ...googleapi.Field) *OrganizationsHostQueriesCreateCall {
36116	c.urlParams_.Set("fields", googleapi.CombineFields(s))
36117	return c
36118}
36119
36120// Context sets the context to be used in this call's Do method. Any
36121// pending HTTP request will be aborted if the provided context is
36122// canceled.
36123func (c *OrganizationsHostQueriesCreateCall) Context(ctx context.Context) *OrganizationsHostQueriesCreateCall {
36124	c.ctx_ = ctx
36125	return c
36126}
36127
36128// Header returns an http.Header that can be modified by the caller to
36129// add HTTP headers to the request.
36130func (c *OrganizationsHostQueriesCreateCall) Header() http.Header {
36131	if c.header_ == nil {
36132		c.header_ = make(http.Header)
36133	}
36134	return c.header_
36135}
36136
36137func (c *OrganizationsHostQueriesCreateCall) doRequest(alt string) (*http.Response, error) {
36138	reqHeaders := make(http.Header)
36139	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
36140	for k, v := range c.header_ {
36141		reqHeaders[k] = v
36142	}
36143	reqHeaders.Set("User-Agent", c.s.userAgent())
36144	var body io.Reader = nil
36145	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1query)
36146	if err != nil {
36147		return nil, err
36148	}
36149	reqHeaders.Set("Content-Type", "application/json")
36150	c.urlParams_.Set("alt", alt)
36151	c.urlParams_.Set("prettyPrint", "false")
36152	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/hostQueries")
36153	urls += "?" + c.urlParams_.Encode()
36154	req, err := http.NewRequest("POST", urls, body)
36155	if err != nil {
36156		return nil, err
36157	}
36158	req.Header = reqHeaders
36159	googleapi.Expand(req.URL, map[string]string{
36160		"parent": c.parent,
36161	})
36162	return gensupport.SendRequest(c.ctx_, c.s.client, req)
36163}
36164
36165// Do executes the "apigee.organizations.hostQueries.create" call.
36166// Exactly one of *GoogleCloudApigeeV1AsyncQuery or error will be
36167// non-nil. Any non-2xx status code is an error. Response headers are in
36168// either *GoogleCloudApigeeV1AsyncQuery.ServerResponse.Header or (if a
36169// response was returned at all) in error.(*googleapi.Error).Header. Use
36170// googleapi.IsNotModified to check whether the returned error was
36171// because http.StatusNotModified was returned.
36172func (c *OrganizationsHostQueriesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AsyncQuery, error) {
36173	gensupport.SetOptions(c.urlParams_, opts...)
36174	res, err := c.doRequest("json")
36175	if res != nil && res.StatusCode == http.StatusNotModified {
36176		if res.Body != nil {
36177			res.Body.Close()
36178		}
36179		return nil, &googleapi.Error{
36180			Code:   res.StatusCode,
36181			Header: res.Header,
36182		}
36183	}
36184	if err != nil {
36185		return nil, err
36186	}
36187	defer googleapi.CloseBody(res)
36188	if err := googleapi.CheckResponse(res); err != nil {
36189		return nil, err
36190	}
36191	ret := &GoogleCloudApigeeV1AsyncQuery{
36192		ServerResponse: googleapi.ServerResponse{
36193			Header:         res.Header,
36194			HTTPStatusCode: res.StatusCode,
36195		},
36196	}
36197	target := &ret
36198	if err := gensupport.DecodeResponse(target, res); err != nil {
36199		return nil, err
36200	}
36201	return ret, nil
36202	// {
36203	//   "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.",
36204	//   "flatPath": "v1/organizations/{organizationsId}/hostQueries",
36205	//   "httpMethod": "POST",
36206	//   "id": "apigee.organizations.hostQueries.create",
36207	//   "parameterOrder": [
36208	//     "parent"
36209	//   ],
36210	//   "parameters": {
36211	//     "parent": {
36212	//       "description": "Required. The parent resource name. Must be of the form `organizations/{org}`.",
36213	//       "location": "path",
36214	//       "pattern": "^organizations/[^/]+$",
36215	//       "required": true,
36216	//       "type": "string"
36217	//     }
36218	//   },
36219	//   "path": "v1/{+parent}/hostQueries",
36220	//   "request": {
36221	//     "$ref": "GoogleCloudApigeeV1Query"
36222	//   },
36223	//   "response": {
36224	//     "$ref": "GoogleCloudApigeeV1AsyncQuery"
36225	//   },
36226	//   "scopes": [
36227	//     "https://www.googleapis.com/auth/cloud-platform"
36228	//   ]
36229	// }
36230
36231}
36232
36233// method id "apigee.organizations.hostQueries.get":
36234
36235type OrganizationsHostQueriesGetCall struct {
36236	s            *Service
36237	name         string
36238	urlParams_   gensupport.URLParams
36239	ifNoneMatch_ string
36240	ctx_         context.Context
36241	header_      http.Header
36242}
36243
36244// Get: Get status of a query submitted at host level. If the query is
36245// still in progress, the `state` is set to "running" After the query
36246// has completed successfully, `state` is set to "completed"
36247//
36248// - name: Name of the asynchronous query to get. Must be of the form
36249//   `organizations/{org}/queries/{queryId}`.
36250func (r *OrganizationsHostQueriesService) Get(name string) *OrganizationsHostQueriesGetCall {
36251	c := &OrganizationsHostQueriesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36252	c.name = name
36253	return c
36254}
36255
36256// Fields allows partial responses to be retrieved. See
36257// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
36258// for more information.
36259func (c *OrganizationsHostQueriesGetCall) Fields(s ...googleapi.Field) *OrganizationsHostQueriesGetCall {
36260	c.urlParams_.Set("fields", googleapi.CombineFields(s))
36261	return c
36262}
36263
36264// IfNoneMatch sets the optional parameter which makes the operation
36265// fail if the object's ETag matches the given value. This is useful for
36266// getting updates only after the object has changed since the last
36267// request. Use googleapi.IsNotModified to check whether the response
36268// error from Do is the result of In-None-Match.
36269func (c *OrganizationsHostQueriesGetCall) IfNoneMatch(entityTag string) *OrganizationsHostQueriesGetCall {
36270	c.ifNoneMatch_ = entityTag
36271	return c
36272}
36273
36274// Context sets the context to be used in this call's Do method. Any
36275// pending HTTP request will be aborted if the provided context is
36276// canceled.
36277func (c *OrganizationsHostQueriesGetCall) Context(ctx context.Context) *OrganizationsHostQueriesGetCall {
36278	c.ctx_ = ctx
36279	return c
36280}
36281
36282// Header returns an http.Header that can be modified by the caller to
36283// add HTTP headers to the request.
36284func (c *OrganizationsHostQueriesGetCall) Header() http.Header {
36285	if c.header_ == nil {
36286		c.header_ = make(http.Header)
36287	}
36288	return c.header_
36289}
36290
36291func (c *OrganizationsHostQueriesGetCall) doRequest(alt string) (*http.Response, error) {
36292	reqHeaders := make(http.Header)
36293	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
36294	for k, v := range c.header_ {
36295		reqHeaders[k] = v
36296	}
36297	reqHeaders.Set("User-Agent", c.s.userAgent())
36298	if c.ifNoneMatch_ != "" {
36299		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
36300	}
36301	var body io.Reader = nil
36302	c.urlParams_.Set("alt", alt)
36303	c.urlParams_.Set("prettyPrint", "false")
36304	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
36305	urls += "?" + c.urlParams_.Encode()
36306	req, err := http.NewRequest("GET", urls, body)
36307	if err != nil {
36308		return nil, err
36309	}
36310	req.Header = reqHeaders
36311	googleapi.Expand(req.URL, map[string]string{
36312		"name": c.name,
36313	})
36314	return gensupport.SendRequest(c.ctx_, c.s.client, req)
36315}
36316
36317// Do executes the "apigee.organizations.hostQueries.get" call.
36318// Exactly one of *GoogleCloudApigeeV1AsyncQuery or error will be
36319// non-nil. Any non-2xx status code is an error. Response headers are in
36320// either *GoogleCloudApigeeV1AsyncQuery.ServerResponse.Header or (if a
36321// response was returned at all) in error.(*googleapi.Error).Header. Use
36322// googleapi.IsNotModified to check whether the returned error was
36323// because http.StatusNotModified was returned.
36324func (c *OrganizationsHostQueriesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AsyncQuery, error) {
36325	gensupport.SetOptions(c.urlParams_, opts...)
36326	res, err := c.doRequest("json")
36327	if res != nil && res.StatusCode == http.StatusNotModified {
36328		if res.Body != nil {
36329			res.Body.Close()
36330		}
36331		return nil, &googleapi.Error{
36332			Code:   res.StatusCode,
36333			Header: res.Header,
36334		}
36335	}
36336	if err != nil {
36337		return nil, err
36338	}
36339	defer googleapi.CloseBody(res)
36340	if err := googleapi.CheckResponse(res); err != nil {
36341		return nil, err
36342	}
36343	ret := &GoogleCloudApigeeV1AsyncQuery{
36344		ServerResponse: googleapi.ServerResponse{
36345			Header:         res.Header,
36346			HTTPStatusCode: res.StatusCode,
36347		},
36348	}
36349	target := &ret
36350	if err := gensupport.DecodeResponse(target, res); err != nil {
36351		return nil, err
36352	}
36353	return ret, nil
36354	// {
36355	//   "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\"",
36356	//   "flatPath": "v1/organizations/{organizationsId}/hostQueries/{hostQueriesId}",
36357	//   "httpMethod": "GET",
36358	//   "id": "apigee.organizations.hostQueries.get",
36359	//   "parameterOrder": [
36360	//     "name"
36361	//   ],
36362	//   "parameters": {
36363	//     "name": {
36364	//       "description": "Required. Name of the asynchronous query to get. Must be of the form `organizations/{org}/queries/{queryId}`.",
36365	//       "location": "path",
36366	//       "pattern": "^organizations/[^/]+/hostQueries/[^/]+$",
36367	//       "required": true,
36368	//       "type": "string"
36369	//     }
36370	//   },
36371	//   "path": "v1/{+name}",
36372	//   "response": {
36373	//     "$ref": "GoogleCloudApigeeV1AsyncQuery"
36374	//   },
36375	//   "scopes": [
36376	//     "https://www.googleapis.com/auth/cloud-platform"
36377	//   ]
36378	// }
36379
36380}
36381
36382// method id "apigee.organizations.hostQueries.getResult":
36383
36384type OrganizationsHostQueriesGetResultCall struct {
36385	s            *Service
36386	name         string
36387	urlParams_   gensupport.URLParams
36388	ifNoneMatch_ string
36389	ctx_         context.Context
36390	header_      http.Header
36391}
36392
36393// GetResult: After the query is completed, use this API to retrieve the
36394// results. If the request succeeds, and there is a non-zero result set,
36395// the result is downloaded to the client as a zipped JSON file. The
36396// name of the downloaded file will be: OfflineQueryResult-.zip Example:
36397// `OfflineQueryResult-9cfc0d85-0f30-46d6-ae6f-318d0cb961bd.zip`
36398//
36399// - name: Name of the asynchronous query result to get. Must be of the
36400//   form `organizations/{org}/queries/{queryId}/result`.
36401func (r *OrganizationsHostQueriesService) GetResult(name string) *OrganizationsHostQueriesGetResultCall {
36402	c := &OrganizationsHostQueriesGetResultCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36403	c.name = name
36404	return c
36405}
36406
36407// Fields allows partial responses to be retrieved. See
36408// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
36409// for more information.
36410func (c *OrganizationsHostQueriesGetResultCall) Fields(s ...googleapi.Field) *OrganizationsHostQueriesGetResultCall {
36411	c.urlParams_.Set("fields", googleapi.CombineFields(s))
36412	return c
36413}
36414
36415// IfNoneMatch sets the optional parameter which makes the operation
36416// fail if the object's ETag matches the given value. This is useful for
36417// getting updates only after the object has changed since the last
36418// request. Use googleapi.IsNotModified to check whether the response
36419// error from Do is the result of In-None-Match.
36420func (c *OrganizationsHostQueriesGetResultCall) IfNoneMatch(entityTag string) *OrganizationsHostQueriesGetResultCall {
36421	c.ifNoneMatch_ = entityTag
36422	return c
36423}
36424
36425// Context sets the context to be used in this call's Do method. Any
36426// pending HTTP request will be aborted if the provided context is
36427// canceled.
36428func (c *OrganizationsHostQueriesGetResultCall) Context(ctx context.Context) *OrganizationsHostQueriesGetResultCall {
36429	c.ctx_ = ctx
36430	return c
36431}
36432
36433// Header returns an http.Header that can be modified by the caller to
36434// add HTTP headers to the request.
36435func (c *OrganizationsHostQueriesGetResultCall) Header() http.Header {
36436	if c.header_ == nil {
36437		c.header_ = make(http.Header)
36438	}
36439	return c.header_
36440}
36441
36442func (c *OrganizationsHostQueriesGetResultCall) doRequest(alt string) (*http.Response, error) {
36443	reqHeaders := make(http.Header)
36444	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
36445	for k, v := range c.header_ {
36446		reqHeaders[k] = v
36447	}
36448	reqHeaders.Set("User-Agent", c.s.userAgent())
36449	if c.ifNoneMatch_ != "" {
36450		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
36451	}
36452	var body io.Reader = nil
36453	c.urlParams_.Set("alt", alt)
36454	c.urlParams_.Set("prettyPrint", "false")
36455	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
36456	urls += "?" + c.urlParams_.Encode()
36457	req, err := http.NewRequest("GET", urls, body)
36458	if err != nil {
36459		return nil, err
36460	}
36461	req.Header = reqHeaders
36462	googleapi.Expand(req.URL, map[string]string{
36463		"name": c.name,
36464	})
36465	return gensupport.SendRequest(c.ctx_, c.s.client, req)
36466}
36467
36468// Do executes the "apigee.organizations.hostQueries.getResult" call.
36469// Exactly one of *GoogleApiHttpBody or error will be non-nil. Any
36470// non-2xx status code is an error. Response headers are in either
36471// *GoogleApiHttpBody.ServerResponse.Header or (if a response was
36472// returned at all) in error.(*googleapi.Error).Header. Use
36473// googleapi.IsNotModified to check whether the returned error was
36474// because http.StatusNotModified was returned.
36475func (c *OrganizationsHostQueriesGetResultCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
36476	gensupport.SetOptions(c.urlParams_, opts...)
36477	res, err := c.doRequest("json")
36478	if res != nil && res.StatusCode == http.StatusNotModified {
36479		if res.Body != nil {
36480			res.Body.Close()
36481		}
36482		return nil, &googleapi.Error{
36483			Code:   res.StatusCode,
36484			Header: res.Header,
36485		}
36486	}
36487	if err != nil {
36488		return nil, err
36489	}
36490	defer googleapi.CloseBody(res)
36491	if err := googleapi.CheckResponse(res); err != nil {
36492		return nil, err
36493	}
36494	ret := &GoogleApiHttpBody{
36495		ServerResponse: googleapi.ServerResponse{
36496			Header:         res.Header,
36497			HTTPStatusCode: res.StatusCode,
36498		},
36499	}
36500	target := &ret
36501	if err := gensupport.DecodeResponse(target, res); err != nil {
36502		return nil, err
36503	}
36504	return ret, nil
36505	// {
36506	//   "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`",
36507	//   "flatPath": "v1/organizations/{organizationsId}/hostQueries/{hostQueriesId}/result",
36508	//   "httpMethod": "GET",
36509	//   "id": "apigee.organizations.hostQueries.getResult",
36510	//   "parameterOrder": [
36511	//     "name"
36512	//   ],
36513	//   "parameters": {
36514	//     "name": {
36515	//       "description": "Required. Name of the asynchronous query result to get. Must be of the form `organizations/{org}/queries/{queryId}/result`.",
36516	//       "location": "path",
36517	//       "pattern": "^organizations/[^/]+/hostQueries/[^/]+/result$",
36518	//       "required": true,
36519	//       "type": "string"
36520	//     }
36521	//   },
36522	//   "path": "v1/{+name}",
36523	//   "response": {
36524	//     "$ref": "GoogleApiHttpBody"
36525	//   },
36526	//   "scopes": [
36527	//     "https://www.googleapis.com/auth/cloud-platform"
36528	//   ]
36529	// }
36530
36531}
36532
36533// method id "apigee.organizations.hostQueries.getResultView":
36534
36535type OrganizationsHostQueriesGetResultViewCall struct {
36536	s            *Service
36537	name         string
36538	urlParams_   gensupport.URLParams
36539	ifNoneMatch_ string
36540	ctx_         context.Context
36541	header_      http.Header
36542}
36543
36544// GetResultView:
36545//
36546// - name: Name of the asynchronous query result view to get. Must be of
36547//   the form `organizations/{org}/queries/{queryId}/resultView`.
36548func (r *OrganizationsHostQueriesService) GetResultView(name string) *OrganizationsHostQueriesGetResultViewCall {
36549	c := &OrganizationsHostQueriesGetResultViewCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36550	c.name = name
36551	return c
36552}
36553
36554// Fields allows partial responses to be retrieved. See
36555// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
36556// for more information.
36557func (c *OrganizationsHostQueriesGetResultViewCall) Fields(s ...googleapi.Field) *OrganizationsHostQueriesGetResultViewCall {
36558	c.urlParams_.Set("fields", googleapi.CombineFields(s))
36559	return c
36560}
36561
36562// IfNoneMatch sets the optional parameter which makes the operation
36563// fail if the object's ETag matches the given value. This is useful for
36564// getting updates only after the object has changed since the last
36565// request. Use googleapi.IsNotModified to check whether the response
36566// error from Do is the result of In-None-Match.
36567func (c *OrganizationsHostQueriesGetResultViewCall) IfNoneMatch(entityTag string) *OrganizationsHostQueriesGetResultViewCall {
36568	c.ifNoneMatch_ = entityTag
36569	return c
36570}
36571
36572// Context sets the context to be used in this call's Do method. Any
36573// pending HTTP request will be aborted if the provided context is
36574// canceled.
36575func (c *OrganizationsHostQueriesGetResultViewCall) Context(ctx context.Context) *OrganizationsHostQueriesGetResultViewCall {
36576	c.ctx_ = ctx
36577	return c
36578}
36579
36580// Header returns an http.Header that can be modified by the caller to
36581// add HTTP headers to the request.
36582func (c *OrganizationsHostQueriesGetResultViewCall) Header() http.Header {
36583	if c.header_ == nil {
36584		c.header_ = make(http.Header)
36585	}
36586	return c.header_
36587}
36588
36589func (c *OrganizationsHostQueriesGetResultViewCall) doRequest(alt string) (*http.Response, error) {
36590	reqHeaders := make(http.Header)
36591	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
36592	for k, v := range c.header_ {
36593		reqHeaders[k] = v
36594	}
36595	reqHeaders.Set("User-Agent", c.s.userAgent())
36596	if c.ifNoneMatch_ != "" {
36597		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
36598	}
36599	var body io.Reader = nil
36600	c.urlParams_.Set("alt", alt)
36601	c.urlParams_.Set("prettyPrint", "false")
36602	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
36603	urls += "?" + c.urlParams_.Encode()
36604	req, err := http.NewRequest("GET", urls, body)
36605	if err != nil {
36606		return nil, err
36607	}
36608	req.Header = reqHeaders
36609	googleapi.Expand(req.URL, map[string]string{
36610		"name": c.name,
36611	})
36612	return gensupport.SendRequest(c.ctx_, c.s.client, req)
36613}
36614
36615// Do executes the "apigee.organizations.hostQueries.getResultView" call.
36616// Exactly one of *GoogleCloudApigeeV1AsyncQueryResultView or error will
36617// be non-nil. Any non-2xx status code is an error. Response headers are
36618// in either
36619// *GoogleCloudApigeeV1AsyncQueryResultView.ServerResponse.Header or (if
36620// a response was returned at all) in error.(*googleapi.Error).Header.
36621// Use googleapi.IsNotModified to check whether the returned error was
36622// because http.StatusNotModified was returned.
36623func (c *OrganizationsHostQueriesGetResultViewCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AsyncQueryResultView, error) {
36624	gensupport.SetOptions(c.urlParams_, opts...)
36625	res, err := c.doRequest("json")
36626	if res != nil && res.StatusCode == http.StatusNotModified {
36627		if res.Body != nil {
36628			res.Body.Close()
36629		}
36630		return nil, &googleapi.Error{
36631			Code:   res.StatusCode,
36632			Header: res.Header,
36633		}
36634	}
36635	if err != nil {
36636		return nil, err
36637	}
36638	defer googleapi.CloseBody(res)
36639	if err := googleapi.CheckResponse(res); err != nil {
36640		return nil, err
36641	}
36642	ret := &GoogleCloudApigeeV1AsyncQueryResultView{
36643		ServerResponse: googleapi.ServerResponse{
36644			Header:         res.Header,
36645			HTTPStatusCode: res.StatusCode,
36646		},
36647	}
36648	target := &ret
36649	if err := gensupport.DecodeResponse(target, res); err != nil {
36650		return nil, err
36651	}
36652	return ret, nil
36653	// {
36654	//   "description": "",
36655	//   "flatPath": "v1/organizations/{organizationsId}/hostQueries/{hostQueriesId}/resultView",
36656	//   "httpMethod": "GET",
36657	//   "id": "apigee.organizations.hostQueries.getResultView",
36658	//   "parameterOrder": [
36659	//     "name"
36660	//   ],
36661	//   "parameters": {
36662	//     "name": {
36663	//       "description": "Required. Name of the asynchronous query result view to get. Must be of the form `organizations/{org}/queries/{queryId}/resultView`.",
36664	//       "location": "path",
36665	//       "pattern": "^organizations/[^/]+/hostQueries/[^/]+/resultView$",
36666	//       "required": true,
36667	//       "type": "string"
36668	//     }
36669	//   },
36670	//   "path": "v1/{+name}",
36671	//   "response": {
36672	//     "$ref": "GoogleCloudApigeeV1AsyncQueryResultView"
36673	//   },
36674	//   "scopes": [
36675	//     "https://www.googleapis.com/auth/cloud-platform"
36676	//   ]
36677	// }
36678
36679}
36680
36681// method id "apigee.organizations.hostQueries.list":
36682
36683type OrganizationsHostQueriesListCall struct {
36684	s            *Service
36685	parent       string
36686	urlParams_   gensupport.URLParams
36687	ifNoneMatch_ string
36688	ctx_         context.Context
36689	header_      http.Header
36690}
36691
36692// List: Return a list of Asynchronous Queries at host level.
36693//
36694// - parent: The parent resource name. Must be of the form
36695//   `organizations/{org}`.
36696func (r *OrganizationsHostQueriesService) List(parent string) *OrganizationsHostQueriesListCall {
36697	c := &OrganizationsHostQueriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36698	c.parent = parent
36699	return c
36700}
36701
36702// Dataset sets the optional parameter "dataset": Filter response list
36703// by dataset. Example: `api`, `mint`
36704func (c *OrganizationsHostQueriesListCall) Dataset(dataset string) *OrganizationsHostQueriesListCall {
36705	c.urlParams_.Set("dataset", dataset)
36706	return c
36707}
36708
36709// EnvgroupHostname sets the optional parameter "envgroupHostname":
36710// Required. Filter response list by hostname.
36711func (c *OrganizationsHostQueriesListCall) EnvgroupHostname(envgroupHostname string) *OrganizationsHostQueriesListCall {
36712	c.urlParams_.Set("envgroupHostname", envgroupHostname)
36713	return c
36714}
36715
36716// From sets the optional parameter "from": Filter response list by
36717// returning asynchronous queries that created after this date time.
36718// Time must be in ISO date-time format like '2011-12-03T10:15:30Z'.
36719func (c *OrganizationsHostQueriesListCall) From(from string) *OrganizationsHostQueriesListCall {
36720	c.urlParams_.Set("from", from)
36721	return c
36722}
36723
36724// InclQueriesWithoutReport sets the optional parameter
36725// "inclQueriesWithoutReport": Flag to include asynchronous queries that
36726// don't have a report denifition.
36727func (c *OrganizationsHostQueriesListCall) InclQueriesWithoutReport(inclQueriesWithoutReport string) *OrganizationsHostQueriesListCall {
36728	c.urlParams_.Set("inclQueriesWithoutReport", inclQueriesWithoutReport)
36729	return c
36730}
36731
36732// Status sets the optional parameter "status": Filter response list by
36733// asynchronous query status.
36734func (c *OrganizationsHostQueriesListCall) Status(status string) *OrganizationsHostQueriesListCall {
36735	c.urlParams_.Set("status", status)
36736	return c
36737}
36738
36739// SubmittedBy sets the optional parameter "submittedBy": Filter
36740// response list by user who submitted queries.
36741func (c *OrganizationsHostQueriesListCall) SubmittedBy(submittedBy string) *OrganizationsHostQueriesListCall {
36742	c.urlParams_.Set("submittedBy", submittedBy)
36743	return c
36744}
36745
36746// To sets the optional parameter "to": Filter response list by
36747// returning asynchronous queries that created before this date time.
36748// Time must be in ISO date-time format like '2011-12-03T10:16:30Z'.
36749func (c *OrganizationsHostQueriesListCall) To(to string) *OrganizationsHostQueriesListCall {
36750	c.urlParams_.Set("to", to)
36751	return c
36752}
36753
36754// Fields allows partial responses to be retrieved. See
36755// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
36756// for more information.
36757func (c *OrganizationsHostQueriesListCall) Fields(s ...googleapi.Field) *OrganizationsHostQueriesListCall {
36758	c.urlParams_.Set("fields", googleapi.CombineFields(s))
36759	return c
36760}
36761
36762// IfNoneMatch sets the optional parameter which makes the operation
36763// fail if the object's ETag matches the given value. This is useful for
36764// getting updates only after the object has changed since the last
36765// request. Use googleapi.IsNotModified to check whether the response
36766// error from Do is the result of In-None-Match.
36767func (c *OrganizationsHostQueriesListCall) IfNoneMatch(entityTag string) *OrganizationsHostQueriesListCall {
36768	c.ifNoneMatch_ = entityTag
36769	return c
36770}
36771
36772// Context sets the context to be used in this call's Do method. Any
36773// pending HTTP request will be aborted if the provided context is
36774// canceled.
36775func (c *OrganizationsHostQueriesListCall) Context(ctx context.Context) *OrganizationsHostQueriesListCall {
36776	c.ctx_ = ctx
36777	return c
36778}
36779
36780// Header returns an http.Header that can be modified by the caller to
36781// add HTTP headers to the request.
36782func (c *OrganizationsHostQueriesListCall) Header() http.Header {
36783	if c.header_ == nil {
36784		c.header_ = make(http.Header)
36785	}
36786	return c.header_
36787}
36788
36789func (c *OrganizationsHostQueriesListCall) doRequest(alt string) (*http.Response, error) {
36790	reqHeaders := make(http.Header)
36791	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
36792	for k, v := range c.header_ {
36793		reqHeaders[k] = v
36794	}
36795	reqHeaders.Set("User-Agent", c.s.userAgent())
36796	if c.ifNoneMatch_ != "" {
36797		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
36798	}
36799	var body io.Reader = nil
36800	c.urlParams_.Set("alt", alt)
36801	c.urlParams_.Set("prettyPrint", "false")
36802	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/hostQueries")
36803	urls += "?" + c.urlParams_.Encode()
36804	req, err := http.NewRequest("GET", urls, body)
36805	if err != nil {
36806		return nil, err
36807	}
36808	req.Header = reqHeaders
36809	googleapi.Expand(req.URL, map[string]string{
36810		"parent": c.parent,
36811	})
36812	return gensupport.SendRequest(c.ctx_, c.s.client, req)
36813}
36814
36815// Do executes the "apigee.organizations.hostQueries.list" call.
36816// Exactly one of *GoogleCloudApigeeV1ListAsyncQueriesResponse or error
36817// will be non-nil. Any non-2xx status code is an error. Response
36818// headers are in either
36819// *GoogleCloudApigeeV1ListAsyncQueriesResponse.ServerResponse.Header or
36820// (if a response was returned at all) in
36821// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
36822// whether the returned error was because http.StatusNotModified was
36823// returned.
36824func (c *OrganizationsHostQueriesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListAsyncQueriesResponse, error) {
36825	gensupport.SetOptions(c.urlParams_, opts...)
36826	res, err := c.doRequest("json")
36827	if res != nil && res.StatusCode == http.StatusNotModified {
36828		if res.Body != nil {
36829			res.Body.Close()
36830		}
36831		return nil, &googleapi.Error{
36832			Code:   res.StatusCode,
36833			Header: res.Header,
36834		}
36835	}
36836	if err != nil {
36837		return nil, err
36838	}
36839	defer googleapi.CloseBody(res)
36840	if err := googleapi.CheckResponse(res); err != nil {
36841		return nil, err
36842	}
36843	ret := &GoogleCloudApigeeV1ListAsyncQueriesResponse{
36844		ServerResponse: googleapi.ServerResponse{
36845			Header:         res.Header,
36846			HTTPStatusCode: res.StatusCode,
36847		},
36848	}
36849	target := &ret
36850	if err := gensupport.DecodeResponse(target, res); err != nil {
36851		return nil, err
36852	}
36853	return ret, nil
36854	// {
36855	//   "description": "Return a list of Asynchronous Queries at host level.",
36856	//   "flatPath": "v1/organizations/{organizationsId}/hostQueries",
36857	//   "httpMethod": "GET",
36858	//   "id": "apigee.organizations.hostQueries.list",
36859	//   "parameterOrder": [
36860	//     "parent"
36861	//   ],
36862	//   "parameters": {
36863	//     "dataset": {
36864	//       "description": "Filter response list by dataset. Example: `api`, `mint`",
36865	//       "location": "query",
36866	//       "type": "string"
36867	//     },
36868	//     "envgroupHostname": {
36869	//       "description": "Required. Filter response list by hostname.",
36870	//       "location": "query",
36871	//       "type": "string"
36872	//     },
36873	//     "from": {
36874	//       "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'.",
36875	//       "location": "query",
36876	//       "type": "string"
36877	//     },
36878	//     "inclQueriesWithoutReport": {
36879	//       "description": "Flag to include asynchronous queries that don't have a report denifition.",
36880	//       "location": "query",
36881	//       "type": "string"
36882	//     },
36883	//     "parent": {
36884	//       "description": "Required. The parent resource name. Must be of the form `organizations/{org}`.",
36885	//       "location": "path",
36886	//       "pattern": "^organizations/[^/]+$",
36887	//       "required": true,
36888	//       "type": "string"
36889	//     },
36890	//     "status": {
36891	//       "description": "Filter response list by asynchronous query status.",
36892	//       "location": "query",
36893	//       "type": "string"
36894	//     },
36895	//     "submittedBy": {
36896	//       "description": "Filter response list by user who submitted queries.",
36897	//       "location": "query",
36898	//       "type": "string"
36899	//     },
36900	//     "to": {
36901	//       "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'.",
36902	//       "location": "query",
36903	//       "type": "string"
36904	//     }
36905	//   },
36906	//   "path": "v1/{+parent}/hostQueries",
36907	//   "response": {
36908	//     "$ref": "GoogleCloudApigeeV1ListAsyncQueriesResponse"
36909	//   },
36910	//   "scopes": [
36911	//     "https://www.googleapis.com/auth/cloud-platform"
36912	//   ]
36913	// }
36914
36915}
36916
36917// method id "apigee.organizations.hostStats.get":
36918
36919type OrganizationsHostStatsGetCall struct {
36920	s            *Service
36921	name         string
36922	urlParams_   gensupport.URLParams
36923	ifNoneMatch_ string
36924	ctx_         context.Context
36925	header_      http.Header
36926}
36927
36928// Get: Retrieve metrics grouped by dimensions in host level. The types
36929// of metrics you can retrieve include traffic, message counts, API call
36930// latency, response size, and cache hits and counts. Dimensions let you
36931// view metrics in meaningful groups. The stats api does accept
36932// dimensions as path params. The dimensions are optional in which case
36933// the metrics are computed on the entire data for the given timerange.
36934//
36935// - name: The resource name for which the interactive query will be
36936//   executed. Must be of the form
36937//   `organizations/{organization_id}/hostStats/{dimensions}`.
36938//   Dimensions let you view metrics in meaningful groupings. E.g.
36939//   apiproxy, target_host. The value of dimensions should be comma
36940//   separated list as shown below
36941//   `organizations/{org}/hostStats/apiproxy,request_verb`.
36942func (r *OrganizationsHostStatsService) Get(name string) *OrganizationsHostStatsGetCall {
36943	c := &OrganizationsHostStatsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36944	c.name = name
36945	return c
36946}
36947
36948// Accuracy sets the optional parameter "accuracy": Legacy field: not
36949// used anymore.
36950func (c *OrganizationsHostStatsGetCall) Accuracy(accuracy string) *OrganizationsHostStatsGetCall {
36951	c.urlParams_.Set("accuracy", accuracy)
36952	return c
36953}
36954
36955// EnvgroupHostname sets the optional parameter "envgroupHostname":
36956// Required. The hostname for which the interactive query will be
36957// executed.
36958func (c *OrganizationsHostStatsGetCall) EnvgroupHostname(envgroupHostname string) *OrganizationsHostStatsGetCall {
36959	c.urlParams_.Set("envgroupHostname", envgroupHostname)
36960	return c
36961}
36962
36963// Filter sets the optional parameter "filter": Enables drill-down on
36964// specific dimension values.
36965func (c *OrganizationsHostStatsGetCall) Filter(filter string) *OrganizationsHostStatsGetCall {
36966	c.urlParams_.Set("filter", filter)
36967	return c
36968}
36969
36970// Limit sets the optional parameter "limit": This parameter is used to
36971// limit the number of result items. Default and the max value is 14400.
36972func (c *OrganizationsHostStatsGetCall) Limit(limit string) *OrganizationsHostStatsGetCall {
36973	c.urlParams_.Set("limit", limit)
36974	return c
36975}
36976
36977// Offset sets the optional parameter "offset": Use offset with limit to
36978// enable pagination of results. For example, to display results 11-20,
36979// set limit to '10' and offset to '10'.
36980func (c *OrganizationsHostStatsGetCall) Offset(offset string) *OrganizationsHostStatsGetCall {
36981	c.urlParams_.Set("offset", offset)
36982	return c
36983}
36984
36985// Realtime sets the optional parameter "realtime": Legacy field: not
36986// used anymore.
36987func (c *OrganizationsHostStatsGetCall) Realtime(realtime bool) *OrganizationsHostStatsGetCall {
36988	c.urlParams_.Set("realtime", fmt.Sprint(realtime))
36989	return c
36990}
36991
36992// Select sets the optional parameter "select": The select parameter
36993// contains a comma separated list of metrics. E.g.
36994// sum(message_count),sum(error_count)
36995func (c *OrganizationsHostStatsGetCall) Select(select_ string) *OrganizationsHostStatsGetCall {
36996	c.urlParams_.Set("select", select_)
36997	return c
36998}
36999
37000// Sort sets the optional parameter "sort": This parameter specifies if
37001// the sort order should be ascending or descending Supported values are
37002// DESC and ASC.
37003func (c *OrganizationsHostStatsGetCall) Sort(sort string) *OrganizationsHostStatsGetCall {
37004	c.urlParams_.Set("sort", sort)
37005	return c
37006}
37007
37008// Sortby sets the optional parameter "sortby": Comma separated list of
37009// columns to sort the final result.
37010func (c *OrganizationsHostStatsGetCall) Sortby(sortby string) *OrganizationsHostStatsGetCall {
37011	c.urlParams_.Set("sortby", sortby)
37012	return c
37013}
37014
37015// TimeRange sets the optional parameter "timeRange": Time interval for
37016// the interactive query. Time range is specified as start~end E.g.
37017// 04/15/2017 00:00~05/15/2017 23:59
37018func (c *OrganizationsHostStatsGetCall) TimeRange(timeRange string) *OrganizationsHostStatsGetCall {
37019	c.urlParams_.Set("timeRange", timeRange)
37020	return c
37021}
37022
37023// TimeUnit sets the optional parameter "timeUnit": A value of second,
37024// minute, hour, day, week, month. Time Unit specifies the granularity
37025// of metrics returned.
37026func (c *OrganizationsHostStatsGetCall) TimeUnit(timeUnit string) *OrganizationsHostStatsGetCall {
37027	c.urlParams_.Set("timeUnit", timeUnit)
37028	return c
37029}
37030
37031// Topk sets the optional parameter "topk": Take 'top k' results from
37032// results, for example, to return the top 5 results 'topk=5'.
37033func (c *OrganizationsHostStatsGetCall) Topk(topk string) *OrganizationsHostStatsGetCall {
37034	c.urlParams_.Set("topk", topk)
37035	return c
37036}
37037
37038// TsAscending sets the optional parameter "tsAscending": Lists
37039// timestamps in ascending order if set to true. Recommend setting this
37040// value to true if you are using sortby with sort=DESC.
37041func (c *OrganizationsHostStatsGetCall) TsAscending(tsAscending bool) *OrganizationsHostStatsGetCall {
37042	c.urlParams_.Set("tsAscending", fmt.Sprint(tsAscending))
37043	return c
37044}
37045
37046// Tzo sets the optional parameter "tzo": This parameters contains the
37047// timezone offset value.
37048func (c *OrganizationsHostStatsGetCall) Tzo(tzo string) *OrganizationsHostStatsGetCall {
37049	c.urlParams_.Set("tzo", tzo)
37050	return c
37051}
37052
37053// Fields allows partial responses to be retrieved. See
37054// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
37055// for more information.
37056func (c *OrganizationsHostStatsGetCall) Fields(s ...googleapi.Field) *OrganizationsHostStatsGetCall {
37057	c.urlParams_.Set("fields", googleapi.CombineFields(s))
37058	return c
37059}
37060
37061// IfNoneMatch sets the optional parameter which makes the operation
37062// fail if the object's ETag matches the given value. This is useful for
37063// getting updates only after the object has changed since the last
37064// request. Use googleapi.IsNotModified to check whether the response
37065// error from Do is the result of In-None-Match.
37066func (c *OrganizationsHostStatsGetCall) IfNoneMatch(entityTag string) *OrganizationsHostStatsGetCall {
37067	c.ifNoneMatch_ = entityTag
37068	return c
37069}
37070
37071// Context sets the context to be used in this call's Do method. Any
37072// pending HTTP request will be aborted if the provided context is
37073// canceled.
37074func (c *OrganizationsHostStatsGetCall) Context(ctx context.Context) *OrganizationsHostStatsGetCall {
37075	c.ctx_ = ctx
37076	return c
37077}
37078
37079// Header returns an http.Header that can be modified by the caller to
37080// add HTTP headers to the request.
37081func (c *OrganizationsHostStatsGetCall) Header() http.Header {
37082	if c.header_ == nil {
37083		c.header_ = make(http.Header)
37084	}
37085	return c.header_
37086}
37087
37088func (c *OrganizationsHostStatsGetCall) doRequest(alt string) (*http.Response, error) {
37089	reqHeaders := make(http.Header)
37090	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
37091	for k, v := range c.header_ {
37092		reqHeaders[k] = v
37093	}
37094	reqHeaders.Set("User-Agent", c.s.userAgent())
37095	if c.ifNoneMatch_ != "" {
37096		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
37097	}
37098	var body io.Reader = nil
37099	c.urlParams_.Set("alt", alt)
37100	c.urlParams_.Set("prettyPrint", "false")
37101	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
37102	urls += "?" + c.urlParams_.Encode()
37103	req, err := http.NewRequest("GET", urls, body)
37104	if err != nil {
37105		return nil, err
37106	}
37107	req.Header = reqHeaders
37108	googleapi.Expand(req.URL, map[string]string{
37109		"name": c.name,
37110	})
37111	return gensupport.SendRequest(c.ctx_, c.s.client, req)
37112}
37113
37114// Do executes the "apigee.organizations.hostStats.get" call.
37115// Exactly one of *GoogleCloudApigeeV1Stats or error will be non-nil.
37116// Any non-2xx status code is an error. Response headers are in either
37117// *GoogleCloudApigeeV1Stats.ServerResponse.Header or (if a response was
37118// returned at all) in error.(*googleapi.Error).Header. Use
37119// googleapi.IsNotModified to check whether the returned error was
37120// because http.StatusNotModified was returned.
37121func (c *OrganizationsHostStatsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Stats, error) {
37122	gensupport.SetOptions(c.urlParams_, opts...)
37123	res, err := c.doRequest("json")
37124	if res != nil && res.StatusCode == http.StatusNotModified {
37125		if res.Body != nil {
37126			res.Body.Close()
37127		}
37128		return nil, &googleapi.Error{
37129			Code:   res.StatusCode,
37130			Header: res.Header,
37131		}
37132	}
37133	if err != nil {
37134		return nil, err
37135	}
37136	defer googleapi.CloseBody(res)
37137	if err := googleapi.CheckResponse(res); err != nil {
37138		return nil, err
37139	}
37140	ret := &GoogleCloudApigeeV1Stats{
37141		ServerResponse: googleapi.ServerResponse{
37142			Header:         res.Header,
37143			HTTPStatusCode: res.StatusCode,
37144		},
37145	}
37146	target := &ret
37147	if err := gensupport.DecodeResponse(target, res); err != nil {
37148		return nil, err
37149	}
37150	return ret, nil
37151	// {
37152	//   "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.",
37153	//   "flatPath": "v1/organizations/{organizationsId}/hostStats/{hostStatsId}",
37154	//   "httpMethod": "GET",
37155	//   "id": "apigee.organizations.hostStats.get",
37156	//   "parameterOrder": [
37157	//     "name"
37158	//   ],
37159	//   "parameters": {
37160	//     "accuracy": {
37161	//       "description": "Legacy field: not used anymore.",
37162	//       "location": "query",
37163	//       "type": "string"
37164	//     },
37165	//     "envgroupHostname": {
37166	//       "description": "Required. The hostname for which the interactive query will be executed.",
37167	//       "location": "query",
37168	//       "type": "string"
37169	//     },
37170	//     "filter": {
37171	//       "description": "Enables drill-down on specific dimension values.",
37172	//       "location": "query",
37173	//       "type": "string"
37174	//     },
37175	//     "limit": {
37176	//       "description": "This parameter is used to limit the number of result items. Default and the max value is 14400.",
37177	//       "location": "query",
37178	//       "type": "string"
37179	//     },
37180	//     "name": {
37181	//       "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`",
37182	//       "location": "path",
37183	//       "pattern": "^organizations/[^/]+/hostStats/.*$",
37184	//       "required": true,
37185	//       "type": "string"
37186	//     },
37187	//     "offset": {
37188	//       "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'.",
37189	//       "location": "query",
37190	//       "type": "string"
37191	//     },
37192	//     "realtime": {
37193	//       "description": "Legacy field: not used anymore.",
37194	//       "location": "query",
37195	//       "type": "boolean"
37196	//     },
37197	//     "select": {
37198	//       "description": "The select parameter contains a comma separated list of metrics. E.g. sum(message_count),sum(error_count)",
37199	//       "location": "query",
37200	//       "type": "string"
37201	//     },
37202	//     "sort": {
37203	//       "description": "This parameter specifies if the sort order should be ascending or descending Supported values are DESC and ASC.",
37204	//       "location": "query",
37205	//       "type": "string"
37206	//     },
37207	//     "sortby": {
37208	//       "description": "Comma separated list of columns to sort the final result.",
37209	//       "location": "query",
37210	//       "type": "string"
37211	//     },
37212	//     "timeRange": {
37213	//       "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",
37214	//       "location": "query",
37215	//       "type": "string"
37216	//     },
37217	//     "timeUnit": {
37218	//       "description": "A value of second, minute, hour, day, week, month. Time Unit specifies the granularity of metrics returned.",
37219	//       "location": "query",
37220	//       "type": "string"
37221	//     },
37222	//     "topk": {
37223	//       "description": "Take 'top k' results from results, for example, to return the top 5 results 'topk=5'.",
37224	//       "location": "query",
37225	//       "type": "string"
37226	//     },
37227	//     "tsAscending": {
37228	//       "description": "Lists timestamps in ascending order if set to true. Recommend setting this value to true if you are using sortby with sort=DESC.",
37229	//       "location": "query",
37230	//       "type": "boolean"
37231	//     },
37232	//     "tzo": {
37233	//       "description": "This parameters contains the timezone offset value.",
37234	//       "location": "query",
37235	//       "type": "string"
37236	//     }
37237	//   },
37238	//   "path": "v1/{+name}",
37239	//   "response": {
37240	//     "$ref": "GoogleCloudApigeeV1Stats"
37241	//   },
37242	//   "scopes": [
37243	//     "https://www.googleapis.com/auth/cloud-platform"
37244	//   ]
37245	// }
37246
37247}
37248
37249// method id "apigee.organizations.instances.create":
37250
37251type OrganizationsInstancesCreateCall struct {
37252	s                           *Service
37253	parent                      string
37254	googlecloudapigeev1instance *GoogleCloudApigeeV1Instance
37255	urlParams_                  gensupport.URLParams
37256	ctx_                        context.Context
37257	header_                     http.Header
37258}
37259
37260// Create: Creates an Apigee runtime instance. The instance is
37261// accessible from the authorized network configured on the
37262// organization. **Note:** Not supported for Apigee hybrid.
37263//
37264// - parent: Name of the organization. Use the following structure in
37265//   your request: `organizations/{org}`.
37266func (r *OrganizationsInstancesService) Create(parent string, googlecloudapigeev1instance *GoogleCloudApigeeV1Instance) *OrganizationsInstancesCreateCall {
37267	c := &OrganizationsInstancesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37268	c.parent = parent
37269	c.googlecloudapigeev1instance = googlecloudapigeev1instance
37270	return c
37271}
37272
37273// Fields allows partial responses to be retrieved. See
37274// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
37275// for more information.
37276func (c *OrganizationsInstancesCreateCall) Fields(s ...googleapi.Field) *OrganizationsInstancesCreateCall {
37277	c.urlParams_.Set("fields", googleapi.CombineFields(s))
37278	return c
37279}
37280
37281// Context sets the context to be used in this call's Do method. Any
37282// pending HTTP request will be aborted if the provided context is
37283// canceled.
37284func (c *OrganizationsInstancesCreateCall) Context(ctx context.Context) *OrganizationsInstancesCreateCall {
37285	c.ctx_ = ctx
37286	return c
37287}
37288
37289// Header returns an http.Header that can be modified by the caller to
37290// add HTTP headers to the request.
37291func (c *OrganizationsInstancesCreateCall) Header() http.Header {
37292	if c.header_ == nil {
37293		c.header_ = make(http.Header)
37294	}
37295	return c.header_
37296}
37297
37298func (c *OrganizationsInstancesCreateCall) doRequest(alt string) (*http.Response, error) {
37299	reqHeaders := make(http.Header)
37300	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
37301	for k, v := range c.header_ {
37302		reqHeaders[k] = v
37303	}
37304	reqHeaders.Set("User-Agent", c.s.userAgent())
37305	var body io.Reader = nil
37306	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1instance)
37307	if err != nil {
37308		return nil, err
37309	}
37310	reqHeaders.Set("Content-Type", "application/json")
37311	c.urlParams_.Set("alt", alt)
37312	c.urlParams_.Set("prettyPrint", "false")
37313	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/instances")
37314	urls += "?" + c.urlParams_.Encode()
37315	req, err := http.NewRequest("POST", urls, body)
37316	if err != nil {
37317		return nil, err
37318	}
37319	req.Header = reqHeaders
37320	googleapi.Expand(req.URL, map[string]string{
37321		"parent": c.parent,
37322	})
37323	return gensupport.SendRequest(c.ctx_, c.s.client, req)
37324}
37325
37326// Do executes the "apigee.organizations.instances.create" call.
37327// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
37328// Any non-2xx status code is an error. Response headers are in either
37329// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
37330// was returned at all) in error.(*googleapi.Error).Header. Use
37331// googleapi.IsNotModified to check whether the returned error was
37332// because http.StatusNotModified was returned.
37333func (c *OrganizationsInstancesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
37334	gensupport.SetOptions(c.urlParams_, opts...)
37335	res, err := c.doRequest("json")
37336	if res != nil && res.StatusCode == http.StatusNotModified {
37337		if res.Body != nil {
37338			res.Body.Close()
37339		}
37340		return nil, &googleapi.Error{
37341			Code:   res.StatusCode,
37342			Header: res.Header,
37343		}
37344	}
37345	if err != nil {
37346		return nil, err
37347	}
37348	defer googleapi.CloseBody(res)
37349	if err := googleapi.CheckResponse(res); err != nil {
37350		return nil, err
37351	}
37352	ret := &GoogleLongrunningOperation{
37353		ServerResponse: googleapi.ServerResponse{
37354			Header:         res.Header,
37355			HTTPStatusCode: res.StatusCode,
37356		},
37357	}
37358	target := &ret
37359	if err := gensupport.DecodeResponse(target, res); err != nil {
37360		return nil, err
37361	}
37362	return ret, nil
37363	// {
37364	//   "description": "Creates an Apigee runtime instance. The instance is accessible from the authorized network configured on the organization. **Note:** Not supported for Apigee hybrid.",
37365	//   "flatPath": "v1/organizations/{organizationsId}/instances",
37366	//   "httpMethod": "POST",
37367	//   "id": "apigee.organizations.instances.create",
37368	//   "parameterOrder": [
37369	//     "parent"
37370	//   ],
37371	//   "parameters": {
37372	//     "parent": {
37373	//       "description": "Required. Name of the organization. Use the following structure in your request: `organizations/{org}`.",
37374	//       "location": "path",
37375	//       "pattern": "^organizations/[^/]+$",
37376	//       "required": true,
37377	//       "type": "string"
37378	//     }
37379	//   },
37380	//   "path": "v1/{+parent}/instances",
37381	//   "request": {
37382	//     "$ref": "GoogleCloudApigeeV1Instance"
37383	//   },
37384	//   "response": {
37385	//     "$ref": "GoogleLongrunningOperation"
37386	//   },
37387	//   "scopes": [
37388	//     "https://www.googleapis.com/auth/cloud-platform"
37389	//   ]
37390	// }
37391
37392}
37393
37394// method id "apigee.organizations.instances.delete":
37395
37396type OrganizationsInstancesDeleteCall struct {
37397	s          *Service
37398	name       string
37399	urlParams_ gensupport.URLParams
37400	ctx_       context.Context
37401	header_    http.Header
37402}
37403
37404// Delete: Deletes an Apigee runtime instance. The instance stops
37405// serving requests and the runtime data is deleted. **Note:** Not
37406// supported for Apigee hybrid.
37407//
37408// - name: Name of the instance. Use the following structure in your
37409//   request: `organizations/{org}/instances/{instance}`.
37410func (r *OrganizationsInstancesService) Delete(name string) *OrganizationsInstancesDeleteCall {
37411	c := &OrganizationsInstancesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37412	c.name = name
37413	return c
37414}
37415
37416// Fields allows partial responses to be retrieved. See
37417// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
37418// for more information.
37419func (c *OrganizationsInstancesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsInstancesDeleteCall {
37420	c.urlParams_.Set("fields", googleapi.CombineFields(s))
37421	return c
37422}
37423
37424// Context sets the context to be used in this call's Do method. Any
37425// pending HTTP request will be aborted if the provided context is
37426// canceled.
37427func (c *OrganizationsInstancesDeleteCall) Context(ctx context.Context) *OrganizationsInstancesDeleteCall {
37428	c.ctx_ = ctx
37429	return c
37430}
37431
37432// Header returns an http.Header that can be modified by the caller to
37433// add HTTP headers to the request.
37434func (c *OrganizationsInstancesDeleteCall) Header() http.Header {
37435	if c.header_ == nil {
37436		c.header_ = make(http.Header)
37437	}
37438	return c.header_
37439}
37440
37441func (c *OrganizationsInstancesDeleteCall) doRequest(alt string) (*http.Response, error) {
37442	reqHeaders := make(http.Header)
37443	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
37444	for k, v := range c.header_ {
37445		reqHeaders[k] = v
37446	}
37447	reqHeaders.Set("User-Agent", c.s.userAgent())
37448	var body io.Reader = nil
37449	c.urlParams_.Set("alt", alt)
37450	c.urlParams_.Set("prettyPrint", "false")
37451	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
37452	urls += "?" + c.urlParams_.Encode()
37453	req, err := http.NewRequest("DELETE", urls, body)
37454	if err != nil {
37455		return nil, err
37456	}
37457	req.Header = reqHeaders
37458	googleapi.Expand(req.URL, map[string]string{
37459		"name": c.name,
37460	})
37461	return gensupport.SendRequest(c.ctx_, c.s.client, req)
37462}
37463
37464// Do executes the "apigee.organizations.instances.delete" call.
37465// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
37466// Any non-2xx status code is an error. Response headers are in either
37467// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
37468// was returned at all) in error.(*googleapi.Error).Header. Use
37469// googleapi.IsNotModified to check whether the returned error was
37470// because http.StatusNotModified was returned.
37471func (c *OrganizationsInstancesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
37472	gensupport.SetOptions(c.urlParams_, opts...)
37473	res, err := c.doRequest("json")
37474	if res != nil && res.StatusCode == http.StatusNotModified {
37475		if res.Body != nil {
37476			res.Body.Close()
37477		}
37478		return nil, &googleapi.Error{
37479			Code:   res.StatusCode,
37480			Header: res.Header,
37481		}
37482	}
37483	if err != nil {
37484		return nil, err
37485	}
37486	defer googleapi.CloseBody(res)
37487	if err := googleapi.CheckResponse(res); err != nil {
37488		return nil, err
37489	}
37490	ret := &GoogleLongrunningOperation{
37491		ServerResponse: googleapi.ServerResponse{
37492			Header:         res.Header,
37493			HTTPStatusCode: res.StatusCode,
37494		},
37495	}
37496	target := &ret
37497	if err := gensupport.DecodeResponse(target, res); err != nil {
37498		return nil, err
37499	}
37500	return ret, nil
37501	// {
37502	//   "description": "Deletes an Apigee runtime instance. The instance stops serving requests and the runtime data is deleted. **Note:** Not supported for Apigee hybrid.",
37503	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}",
37504	//   "httpMethod": "DELETE",
37505	//   "id": "apigee.organizations.instances.delete",
37506	//   "parameterOrder": [
37507	//     "name"
37508	//   ],
37509	//   "parameters": {
37510	//     "name": {
37511	//       "description": "Required. Name of the instance. Use the following structure in your request: `organizations/{org}/instances/{instance}`.",
37512	//       "location": "path",
37513	//       "pattern": "^organizations/[^/]+/instances/[^/]+$",
37514	//       "required": true,
37515	//       "type": "string"
37516	//     }
37517	//   },
37518	//   "path": "v1/{+name}",
37519	//   "response": {
37520	//     "$ref": "GoogleLongrunningOperation"
37521	//   },
37522	//   "scopes": [
37523	//     "https://www.googleapis.com/auth/cloud-platform"
37524	//   ]
37525	// }
37526
37527}
37528
37529// method id "apigee.organizations.instances.get":
37530
37531type OrganizationsInstancesGetCall struct {
37532	s            *Service
37533	name         string
37534	urlParams_   gensupport.URLParams
37535	ifNoneMatch_ string
37536	ctx_         context.Context
37537	header_      http.Header
37538}
37539
37540// Get: Gets the details for an Apigee runtime instance. **Note:** Not
37541// supported for Apigee hybrid.
37542//
37543// - name: Name of the instance. Use the following structure in your
37544//   request: `organizations/{org}/instances/{instance}`.
37545func (r *OrganizationsInstancesService) Get(name string) *OrganizationsInstancesGetCall {
37546	c := &OrganizationsInstancesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37547	c.name = name
37548	return c
37549}
37550
37551// Fields allows partial responses to be retrieved. See
37552// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
37553// for more information.
37554func (c *OrganizationsInstancesGetCall) Fields(s ...googleapi.Field) *OrganizationsInstancesGetCall {
37555	c.urlParams_.Set("fields", googleapi.CombineFields(s))
37556	return c
37557}
37558
37559// IfNoneMatch sets the optional parameter which makes the operation
37560// fail if the object's ETag matches the given value. This is useful for
37561// getting updates only after the object has changed since the last
37562// request. Use googleapi.IsNotModified to check whether the response
37563// error from Do is the result of In-None-Match.
37564func (c *OrganizationsInstancesGetCall) IfNoneMatch(entityTag string) *OrganizationsInstancesGetCall {
37565	c.ifNoneMatch_ = entityTag
37566	return c
37567}
37568
37569// Context sets the context to be used in this call's Do method. Any
37570// pending HTTP request will be aborted if the provided context is
37571// canceled.
37572func (c *OrganizationsInstancesGetCall) Context(ctx context.Context) *OrganizationsInstancesGetCall {
37573	c.ctx_ = ctx
37574	return c
37575}
37576
37577// Header returns an http.Header that can be modified by the caller to
37578// add HTTP headers to the request.
37579func (c *OrganizationsInstancesGetCall) Header() http.Header {
37580	if c.header_ == nil {
37581		c.header_ = make(http.Header)
37582	}
37583	return c.header_
37584}
37585
37586func (c *OrganizationsInstancesGetCall) doRequest(alt string) (*http.Response, error) {
37587	reqHeaders := make(http.Header)
37588	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
37589	for k, v := range c.header_ {
37590		reqHeaders[k] = v
37591	}
37592	reqHeaders.Set("User-Agent", c.s.userAgent())
37593	if c.ifNoneMatch_ != "" {
37594		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
37595	}
37596	var body io.Reader = nil
37597	c.urlParams_.Set("alt", alt)
37598	c.urlParams_.Set("prettyPrint", "false")
37599	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
37600	urls += "?" + c.urlParams_.Encode()
37601	req, err := http.NewRequest("GET", urls, body)
37602	if err != nil {
37603		return nil, err
37604	}
37605	req.Header = reqHeaders
37606	googleapi.Expand(req.URL, map[string]string{
37607		"name": c.name,
37608	})
37609	return gensupport.SendRequest(c.ctx_, c.s.client, req)
37610}
37611
37612// Do executes the "apigee.organizations.instances.get" call.
37613// Exactly one of *GoogleCloudApigeeV1Instance or error will be non-nil.
37614// Any non-2xx status code is an error. Response headers are in either
37615// *GoogleCloudApigeeV1Instance.ServerResponse.Header or (if a response
37616// was returned at all) in error.(*googleapi.Error).Header. Use
37617// googleapi.IsNotModified to check whether the returned error was
37618// because http.StatusNotModified was returned.
37619func (c *OrganizationsInstancesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Instance, error) {
37620	gensupport.SetOptions(c.urlParams_, opts...)
37621	res, err := c.doRequest("json")
37622	if res != nil && res.StatusCode == http.StatusNotModified {
37623		if res.Body != nil {
37624			res.Body.Close()
37625		}
37626		return nil, &googleapi.Error{
37627			Code:   res.StatusCode,
37628			Header: res.Header,
37629		}
37630	}
37631	if err != nil {
37632		return nil, err
37633	}
37634	defer googleapi.CloseBody(res)
37635	if err := googleapi.CheckResponse(res); err != nil {
37636		return nil, err
37637	}
37638	ret := &GoogleCloudApigeeV1Instance{
37639		ServerResponse: googleapi.ServerResponse{
37640			Header:         res.Header,
37641			HTTPStatusCode: res.StatusCode,
37642		},
37643	}
37644	target := &ret
37645	if err := gensupport.DecodeResponse(target, res); err != nil {
37646		return nil, err
37647	}
37648	return ret, nil
37649	// {
37650	//   "description": "Gets the details for an Apigee runtime instance. **Note:** Not supported for Apigee hybrid.",
37651	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}",
37652	//   "httpMethod": "GET",
37653	//   "id": "apigee.organizations.instances.get",
37654	//   "parameterOrder": [
37655	//     "name"
37656	//   ],
37657	//   "parameters": {
37658	//     "name": {
37659	//       "description": "Required. Name of the instance. Use the following structure in your request: `organizations/{org}/instances/{instance}`.",
37660	//       "location": "path",
37661	//       "pattern": "^organizations/[^/]+/instances/[^/]+$",
37662	//       "required": true,
37663	//       "type": "string"
37664	//     }
37665	//   },
37666	//   "path": "v1/{+name}",
37667	//   "response": {
37668	//     "$ref": "GoogleCloudApigeeV1Instance"
37669	//   },
37670	//   "scopes": [
37671	//     "https://www.googleapis.com/auth/cloud-platform"
37672	//   ]
37673	// }
37674
37675}
37676
37677// method id "apigee.organizations.instances.list":
37678
37679type OrganizationsInstancesListCall struct {
37680	s            *Service
37681	parent       string
37682	urlParams_   gensupport.URLParams
37683	ifNoneMatch_ string
37684	ctx_         context.Context
37685	header_      http.Header
37686}
37687
37688// List: Lists all Apigee runtime instances for the organization.
37689// **Note:** Not supported for Apigee hybrid.
37690//
37691// - parent: Name of the organization. Use the following structure in
37692//   your request: `organizations/{org}`.
37693func (r *OrganizationsInstancesService) List(parent string) *OrganizationsInstancesListCall {
37694	c := &OrganizationsInstancesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37695	c.parent = parent
37696	return c
37697}
37698
37699// PageSize sets the optional parameter "pageSize": Maximum number of
37700// instances to return. Defaults to 25.
37701func (c *OrganizationsInstancesListCall) PageSize(pageSize int64) *OrganizationsInstancesListCall {
37702	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
37703	return c
37704}
37705
37706// PageToken sets the optional parameter "pageToken": Page token,
37707// returned from a previous ListInstances call, that you can use to
37708// retrieve the next page of content.
37709func (c *OrganizationsInstancesListCall) PageToken(pageToken string) *OrganizationsInstancesListCall {
37710	c.urlParams_.Set("pageToken", pageToken)
37711	return c
37712}
37713
37714// Fields allows partial responses to be retrieved. See
37715// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
37716// for more information.
37717func (c *OrganizationsInstancesListCall) Fields(s ...googleapi.Field) *OrganizationsInstancesListCall {
37718	c.urlParams_.Set("fields", googleapi.CombineFields(s))
37719	return c
37720}
37721
37722// IfNoneMatch sets the optional parameter which makes the operation
37723// fail if the object's ETag matches the given value. This is useful for
37724// getting updates only after the object has changed since the last
37725// request. Use googleapi.IsNotModified to check whether the response
37726// error from Do is the result of In-None-Match.
37727func (c *OrganizationsInstancesListCall) IfNoneMatch(entityTag string) *OrganizationsInstancesListCall {
37728	c.ifNoneMatch_ = entityTag
37729	return c
37730}
37731
37732// Context sets the context to be used in this call's Do method. Any
37733// pending HTTP request will be aborted if the provided context is
37734// canceled.
37735func (c *OrganizationsInstancesListCall) Context(ctx context.Context) *OrganizationsInstancesListCall {
37736	c.ctx_ = ctx
37737	return c
37738}
37739
37740// Header returns an http.Header that can be modified by the caller to
37741// add HTTP headers to the request.
37742func (c *OrganizationsInstancesListCall) Header() http.Header {
37743	if c.header_ == nil {
37744		c.header_ = make(http.Header)
37745	}
37746	return c.header_
37747}
37748
37749func (c *OrganizationsInstancesListCall) doRequest(alt string) (*http.Response, error) {
37750	reqHeaders := make(http.Header)
37751	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
37752	for k, v := range c.header_ {
37753		reqHeaders[k] = v
37754	}
37755	reqHeaders.Set("User-Agent", c.s.userAgent())
37756	if c.ifNoneMatch_ != "" {
37757		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
37758	}
37759	var body io.Reader = nil
37760	c.urlParams_.Set("alt", alt)
37761	c.urlParams_.Set("prettyPrint", "false")
37762	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/instances")
37763	urls += "?" + c.urlParams_.Encode()
37764	req, err := http.NewRequest("GET", urls, body)
37765	if err != nil {
37766		return nil, err
37767	}
37768	req.Header = reqHeaders
37769	googleapi.Expand(req.URL, map[string]string{
37770		"parent": c.parent,
37771	})
37772	return gensupport.SendRequest(c.ctx_, c.s.client, req)
37773}
37774
37775// Do executes the "apigee.organizations.instances.list" call.
37776// Exactly one of *GoogleCloudApigeeV1ListInstancesResponse or error
37777// will be non-nil. Any non-2xx status code is an error. Response
37778// headers are in either
37779// *GoogleCloudApigeeV1ListInstancesResponse.ServerResponse.Header or
37780// (if a response was returned at all) in
37781// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
37782// whether the returned error was because http.StatusNotModified was
37783// returned.
37784func (c *OrganizationsInstancesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListInstancesResponse, error) {
37785	gensupport.SetOptions(c.urlParams_, opts...)
37786	res, err := c.doRequest("json")
37787	if res != nil && res.StatusCode == http.StatusNotModified {
37788		if res.Body != nil {
37789			res.Body.Close()
37790		}
37791		return nil, &googleapi.Error{
37792			Code:   res.StatusCode,
37793			Header: res.Header,
37794		}
37795	}
37796	if err != nil {
37797		return nil, err
37798	}
37799	defer googleapi.CloseBody(res)
37800	if err := googleapi.CheckResponse(res); err != nil {
37801		return nil, err
37802	}
37803	ret := &GoogleCloudApigeeV1ListInstancesResponse{
37804		ServerResponse: googleapi.ServerResponse{
37805			Header:         res.Header,
37806			HTTPStatusCode: res.StatusCode,
37807		},
37808	}
37809	target := &ret
37810	if err := gensupport.DecodeResponse(target, res); err != nil {
37811		return nil, err
37812	}
37813	return ret, nil
37814	// {
37815	//   "description": "Lists all Apigee runtime instances for the organization. **Note:** Not supported for Apigee hybrid.",
37816	//   "flatPath": "v1/organizations/{organizationsId}/instances",
37817	//   "httpMethod": "GET",
37818	//   "id": "apigee.organizations.instances.list",
37819	//   "parameterOrder": [
37820	//     "parent"
37821	//   ],
37822	//   "parameters": {
37823	//     "pageSize": {
37824	//       "description": "Maximum number of instances to return. Defaults to 25.",
37825	//       "format": "int32",
37826	//       "location": "query",
37827	//       "type": "integer"
37828	//     },
37829	//     "pageToken": {
37830	//       "description": "Page token, returned from a previous ListInstances call, that you can use to retrieve the next page of content.",
37831	//       "location": "query",
37832	//       "type": "string"
37833	//     },
37834	//     "parent": {
37835	//       "description": "Required. Name of the organization. Use the following structure in your request: `organizations/{org}`.",
37836	//       "location": "path",
37837	//       "pattern": "^organizations/[^/]+$",
37838	//       "required": true,
37839	//       "type": "string"
37840	//     }
37841	//   },
37842	//   "path": "v1/{+parent}/instances",
37843	//   "response": {
37844	//     "$ref": "GoogleCloudApigeeV1ListInstancesResponse"
37845	//   },
37846	//   "scopes": [
37847	//     "https://www.googleapis.com/auth/cloud-platform"
37848	//   ]
37849	// }
37850
37851}
37852
37853// Pages invokes f for each page of results.
37854// A non-nil error returned from f will halt the iteration.
37855// The provided context supersedes any context provided to the Context method.
37856func (c *OrganizationsInstancesListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListInstancesResponse) error) error {
37857	c.ctx_ = ctx
37858	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
37859	for {
37860		x, err := c.Do()
37861		if err != nil {
37862			return err
37863		}
37864		if err := f(x); err != nil {
37865			return err
37866		}
37867		if x.NextPageToken == "" {
37868			return nil
37869		}
37870		c.PageToken(x.NextPageToken)
37871	}
37872}
37873
37874// method id "apigee.organizations.instances.reportStatus":
37875
37876type OrganizationsInstancesReportStatusCall struct {
37877	s                                              *Service
37878	instance                                       string
37879	googlecloudapigeev1reportinstancestatusrequest *GoogleCloudApigeeV1ReportInstanceStatusRequest
37880	urlParams_                                     gensupport.URLParams
37881	ctx_                                           context.Context
37882	header_                                        http.Header
37883}
37884
37885// ReportStatus: Reports the latest status for a runtime instance.
37886//
37887// - instance: The name of the instance reporting this status. For SaaS
37888//   the request will be rejected if no instance exists under this name.
37889//   Format is organizations/{org}/instances/{instance}.
37890func (r *OrganizationsInstancesService) ReportStatus(instance string, googlecloudapigeev1reportinstancestatusrequest *GoogleCloudApigeeV1ReportInstanceStatusRequest) *OrganizationsInstancesReportStatusCall {
37891	c := &OrganizationsInstancesReportStatusCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37892	c.instance = instance
37893	c.googlecloudapigeev1reportinstancestatusrequest = googlecloudapigeev1reportinstancestatusrequest
37894	return c
37895}
37896
37897// Fields allows partial responses to be retrieved. See
37898// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
37899// for more information.
37900func (c *OrganizationsInstancesReportStatusCall) Fields(s ...googleapi.Field) *OrganizationsInstancesReportStatusCall {
37901	c.urlParams_.Set("fields", googleapi.CombineFields(s))
37902	return c
37903}
37904
37905// Context sets the context to be used in this call's Do method. Any
37906// pending HTTP request will be aborted if the provided context is
37907// canceled.
37908func (c *OrganizationsInstancesReportStatusCall) Context(ctx context.Context) *OrganizationsInstancesReportStatusCall {
37909	c.ctx_ = ctx
37910	return c
37911}
37912
37913// Header returns an http.Header that can be modified by the caller to
37914// add HTTP headers to the request.
37915func (c *OrganizationsInstancesReportStatusCall) Header() http.Header {
37916	if c.header_ == nil {
37917		c.header_ = make(http.Header)
37918	}
37919	return c.header_
37920}
37921
37922func (c *OrganizationsInstancesReportStatusCall) doRequest(alt string) (*http.Response, error) {
37923	reqHeaders := make(http.Header)
37924	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
37925	for k, v := range c.header_ {
37926		reqHeaders[k] = v
37927	}
37928	reqHeaders.Set("User-Agent", c.s.userAgent())
37929	var body io.Reader = nil
37930	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1reportinstancestatusrequest)
37931	if err != nil {
37932		return nil, err
37933	}
37934	reqHeaders.Set("Content-Type", "application/json")
37935	c.urlParams_.Set("alt", alt)
37936	c.urlParams_.Set("prettyPrint", "false")
37937	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+instance}:reportStatus")
37938	urls += "?" + c.urlParams_.Encode()
37939	req, err := http.NewRequest("POST", urls, body)
37940	if err != nil {
37941		return nil, err
37942	}
37943	req.Header = reqHeaders
37944	googleapi.Expand(req.URL, map[string]string{
37945		"instance": c.instance,
37946	})
37947	return gensupport.SendRequest(c.ctx_, c.s.client, req)
37948}
37949
37950// Do executes the "apigee.organizations.instances.reportStatus" call.
37951// Exactly one of *GoogleCloudApigeeV1ReportInstanceStatusResponse or
37952// error will be non-nil. Any non-2xx status code is an error. Response
37953// headers are in either
37954// *GoogleCloudApigeeV1ReportInstanceStatusResponse.ServerResponse.Header
37955//  or (if a response was returned at all) in
37956// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
37957// whether the returned error was because http.StatusNotModified was
37958// returned.
37959func (c *OrganizationsInstancesReportStatusCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ReportInstanceStatusResponse, error) {
37960	gensupport.SetOptions(c.urlParams_, opts...)
37961	res, err := c.doRequest("json")
37962	if res != nil && res.StatusCode == http.StatusNotModified {
37963		if res.Body != nil {
37964			res.Body.Close()
37965		}
37966		return nil, &googleapi.Error{
37967			Code:   res.StatusCode,
37968			Header: res.Header,
37969		}
37970	}
37971	if err != nil {
37972		return nil, err
37973	}
37974	defer googleapi.CloseBody(res)
37975	if err := googleapi.CheckResponse(res); err != nil {
37976		return nil, err
37977	}
37978	ret := &GoogleCloudApigeeV1ReportInstanceStatusResponse{
37979		ServerResponse: googleapi.ServerResponse{
37980			Header:         res.Header,
37981			HTTPStatusCode: res.StatusCode,
37982		},
37983	}
37984	target := &ret
37985	if err := gensupport.DecodeResponse(target, res); err != nil {
37986		return nil, err
37987	}
37988	return ret, nil
37989	// {
37990	//   "description": "Reports the latest status for a runtime instance.",
37991	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}:reportStatus",
37992	//   "httpMethod": "POST",
37993	//   "id": "apigee.organizations.instances.reportStatus",
37994	//   "parameterOrder": [
37995	//     "instance"
37996	//   ],
37997	//   "parameters": {
37998	//     "instance": {
37999	//       "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}",
38000	//       "location": "path",
38001	//       "pattern": "^organizations/[^/]+/instances/[^/]+$",
38002	//       "required": true,
38003	//       "type": "string"
38004	//     }
38005	//   },
38006	//   "path": "v1/{+instance}:reportStatus",
38007	//   "request": {
38008	//     "$ref": "GoogleCloudApigeeV1ReportInstanceStatusRequest"
38009	//   },
38010	//   "response": {
38011	//     "$ref": "GoogleCloudApigeeV1ReportInstanceStatusResponse"
38012	//   },
38013	//   "scopes": [
38014	//     "https://www.googleapis.com/auth/cloud-platform"
38015	//   ]
38016	// }
38017
38018}
38019
38020// method id "apigee.organizations.instances.attachments.create":
38021
38022type OrganizationsInstancesAttachmentsCreateCall struct {
38023	s                                     *Service
38024	parent                                string
38025	googlecloudapigeev1instanceattachment *GoogleCloudApigeeV1InstanceAttachment
38026	urlParams_                            gensupport.URLParams
38027	ctx_                                  context.Context
38028	header_                               http.Header
38029}
38030
38031// Create: Creates a new attachment of an environment to an instance.
38032// **Note:** Not supported for Apigee hybrid.
38033//
38034// - parent: Name of the instance. Use the following structure in your
38035//   request: `organizations/{org}/instances/{instance}`.
38036func (r *OrganizationsInstancesAttachmentsService) Create(parent string, googlecloudapigeev1instanceattachment *GoogleCloudApigeeV1InstanceAttachment) *OrganizationsInstancesAttachmentsCreateCall {
38037	c := &OrganizationsInstancesAttachmentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38038	c.parent = parent
38039	c.googlecloudapigeev1instanceattachment = googlecloudapigeev1instanceattachment
38040	return c
38041}
38042
38043// Fields allows partial responses to be retrieved. See
38044// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
38045// for more information.
38046func (c *OrganizationsInstancesAttachmentsCreateCall) Fields(s ...googleapi.Field) *OrganizationsInstancesAttachmentsCreateCall {
38047	c.urlParams_.Set("fields", googleapi.CombineFields(s))
38048	return c
38049}
38050
38051// Context sets the context to be used in this call's Do method. Any
38052// pending HTTP request will be aborted if the provided context is
38053// canceled.
38054func (c *OrganizationsInstancesAttachmentsCreateCall) Context(ctx context.Context) *OrganizationsInstancesAttachmentsCreateCall {
38055	c.ctx_ = ctx
38056	return c
38057}
38058
38059// Header returns an http.Header that can be modified by the caller to
38060// add HTTP headers to the request.
38061func (c *OrganizationsInstancesAttachmentsCreateCall) Header() http.Header {
38062	if c.header_ == nil {
38063		c.header_ = make(http.Header)
38064	}
38065	return c.header_
38066}
38067
38068func (c *OrganizationsInstancesAttachmentsCreateCall) doRequest(alt string) (*http.Response, error) {
38069	reqHeaders := make(http.Header)
38070	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
38071	for k, v := range c.header_ {
38072		reqHeaders[k] = v
38073	}
38074	reqHeaders.Set("User-Agent", c.s.userAgent())
38075	var body io.Reader = nil
38076	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1instanceattachment)
38077	if err != nil {
38078		return nil, err
38079	}
38080	reqHeaders.Set("Content-Type", "application/json")
38081	c.urlParams_.Set("alt", alt)
38082	c.urlParams_.Set("prettyPrint", "false")
38083	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attachments")
38084	urls += "?" + c.urlParams_.Encode()
38085	req, err := http.NewRequest("POST", urls, body)
38086	if err != nil {
38087		return nil, err
38088	}
38089	req.Header = reqHeaders
38090	googleapi.Expand(req.URL, map[string]string{
38091		"parent": c.parent,
38092	})
38093	return gensupport.SendRequest(c.ctx_, c.s.client, req)
38094}
38095
38096// Do executes the "apigee.organizations.instances.attachments.create" call.
38097// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
38098// Any non-2xx status code is an error. Response headers are in either
38099// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
38100// was returned at all) in error.(*googleapi.Error).Header. Use
38101// googleapi.IsNotModified to check whether the returned error was
38102// because http.StatusNotModified was returned.
38103func (c *OrganizationsInstancesAttachmentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
38104	gensupport.SetOptions(c.urlParams_, opts...)
38105	res, err := c.doRequest("json")
38106	if res != nil && res.StatusCode == http.StatusNotModified {
38107		if res.Body != nil {
38108			res.Body.Close()
38109		}
38110		return nil, &googleapi.Error{
38111			Code:   res.StatusCode,
38112			Header: res.Header,
38113		}
38114	}
38115	if err != nil {
38116		return nil, err
38117	}
38118	defer googleapi.CloseBody(res)
38119	if err := googleapi.CheckResponse(res); err != nil {
38120		return nil, err
38121	}
38122	ret := &GoogleLongrunningOperation{
38123		ServerResponse: googleapi.ServerResponse{
38124			Header:         res.Header,
38125			HTTPStatusCode: res.StatusCode,
38126		},
38127	}
38128	target := &ret
38129	if err := gensupport.DecodeResponse(target, res); err != nil {
38130		return nil, err
38131	}
38132	return ret, nil
38133	// {
38134	//   "description": "Creates a new attachment of an environment to an instance. **Note:** Not supported for Apigee hybrid.",
38135	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/attachments",
38136	//   "httpMethod": "POST",
38137	//   "id": "apigee.organizations.instances.attachments.create",
38138	//   "parameterOrder": [
38139	//     "parent"
38140	//   ],
38141	//   "parameters": {
38142	//     "parent": {
38143	//       "description": "Required. Name of the instance. Use the following structure in your request: `organizations/{org}/instances/{instance}`.",
38144	//       "location": "path",
38145	//       "pattern": "^organizations/[^/]+/instances/[^/]+$",
38146	//       "required": true,
38147	//       "type": "string"
38148	//     }
38149	//   },
38150	//   "path": "v1/{+parent}/attachments",
38151	//   "request": {
38152	//     "$ref": "GoogleCloudApigeeV1InstanceAttachment"
38153	//   },
38154	//   "response": {
38155	//     "$ref": "GoogleLongrunningOperation"
38156	//   },
38157	//   "scopes": [
38158	//     "https://www.googleapis.com/auth/cloud-platform"
38159	//   ]
38160	// }
38161
38162}
38163
38164// method id "apigee.organizations.instances.attachments.delete":
38165
38166type OrganizationsInstancesAttachmentsDeleteCall struct {
38167	s          *Service
38168	name       string
38169	urlParams_ gensupport.URLParams
38170	ctx_       context.Context
38171	header_    http.Header
38172}
38173
38174// Delete: Deletes an attachment. **Note:** Not supported for Apigee
38175// hybrid.
38176//
38177// - name: Name of the attachment. Use the following structure in your
38178//   request:
38179//   `organizations/{org}/instances/{instance}/attachments/{attachment}`.
38180func (r *OrganizationsInstancesAttachmentsService) Delete(name string) *OrganizationsInstancesAttachmentsDeleteCall {
38181	c := &OrganizationsInstancesAttachmentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38182	c.name = name
38183	return c
38184}
38185
38186// Fields allows partial responses to be retrieved. See
38187// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
38188// for more information.
38189func (c *OrganizationsInstancesAttachmentsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsInstancesAttachmentsDeleteCall {
38190	c.urlParams_.Set("fields", googleapi.CombineFields(s))
38191	return c
38192}
38193
38194// Context sets the context to be used in this call's Do method. Any
38195// pending HTTP request will be aborted if the provided context is
38196// canceled.
38197func (c *OrganizationsInstancesAttachmentsDeleteCall) Context(ctx context.Context) *OrganizationsInstancesAttachmentsDeleteCall {
38198	c.ctx_ = ctx
38199	return c
38200}
38201
38202// Header returns an http.Header that can be modified by the caller to
38203// add HTTP headers to the request.
38204func (c *OrganizationsInstancesAttachmentsDeleteCall) Header() http.Header {
38205	if c.header_ == nil {
38206		c.header_ = make(http.Header)
38207	}
38208	return c.header_
38209}
38210
38211func (c *OrganizationsInstancesAttachmentsDeleteCall) doRequest(alt string) (*http.Response, error) {
38212	reqHeaders := make(http.Header)
38213	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
38214	for k, v := range c.header_ {
38215		reqHeaders[k] = v
38216	}
38217	reqHeaders.Set("User-Agent", c.s.userAgent())
38218	var body io.Reader = nil
38219	c.urlParams_.Set("alt", alt)
38220	c.urlParams_.Set("prettyPrint", "false")
38221	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
38222	urls += "?" + c.urlParams_.Encode()
38223	req, err := http.NewRequest("DELETE", urls, body)
38224	if err != nil {
38225		return nil, err
38226	}
38227	req.Header = reqHeaders
38228	googleapi.Expand(req.URL, map[string]string{
38229		"name": c.name,
38230	})
38231	return gensupport.SendRequest(c.ctx_, c.s.client, req)
38232}
38233
38234// Do executes the "apigee.organizations.instances.attachments.delete" call.
38235// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
38236// Any non-2xx status code is an error. Response headers are in either
38237// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
38238// was returned at all) in error.(*googleapi.Error).Header. Use
38239// googleapi.IsNotModified to check whether the returned error was
38240// because http.StatusNotModified was returned.
38241func (c *OrganizationsInstancesAttachmentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
38242	gensupport.SetOptions(c.urlParams_, opts...)
38243	res, err := c.doRequest("json")
38244	if res != nil && res.StatusCode == http.StatusNotModified {
38245		if res.Body != nil {
38246			res.Body.Close()
38247		}
38248		return nil, &googleapi.Error{
38249			Code:   res.StatusCode,
38250			Header: res.Header,
38251		}
38252	}
38253	if err != nil {
38254		return nil, err
38255	}
38256	defer googleapi.CloseBody(res)
38257	if err := googleapi.CheckResponse(res); err != nil {
38258		return nil, err
38259	}
38260	ret := &GoogleLongrunningOperation{
38261		ServerResponse: googleapi.ServerResponse{
38262			Header:         res.Header,
38263			HTTPStatusCode: res.StatusCode,
38264		},
38265	}
38266	target := &ret
38267	if err := gensupport.DecodeResponse(target, res); err != nil {
38268		return nil, err
38269	}
38270	return ret, nil
38271	// {
38272	//   "description": "Deletes an attachment. **Note:** Not supported for Apigee hybrid.",
38273	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/attachments/{attachmentsId}",
38274	//   "httpMethod": "DELETE",
38275	//   "id": "apigee.organizations.instances.attachments.delete",
38276	//   "parameterOrder": [
38277	//     "name"
38278	//   ],
38279	//   "parameters": {
38280	//     "name": {
38281	//       "description": "Required. Name of the attachment. Use the following structure in your request: `organizations/{org}/instances/{instance}/attachments/{attachment}`.",
38282	//       "location": "path",
38283	//       "pattern": "^organizations/[^/]+/instances/[^/]+/attachments/[^/]+$",
38284	//       "required": true,
38285	//       "type": "string"
38286	//     }
38287	//   },
38288	//   "path": "v1/{+name}",
38289	//   "response": {
38290	//     "$ref": "GoogleLongrunningOperation"
38291	//   },
38292	//   "scopes": [
38293	//     "https://www.googleapis.com/auth/cloud-platform"
38294	//   ]
38295	// }
38296
38297}
38298
38299// method id "apigee.organizations.instances.attachments.get":
38300
38301type OrganizationsInstancesAttachmentsGetCall struct {
38302	s            *Service
38303	name         string
38304	urlParams_   gensupport.URLParams
38305	ifNoneMatch_ string
38306	ctx_         context.Context
38307	header_      http.Header
38308}
38309
38310// Get: Gets an attachment. **Note:** Not supported for Apigee hybrid.
38311//
38312// - name: Name of the attachment. Use the following structure in your
38313//   request:
38314//   `organizations/{org}/instances/{instance}/attachments/{attachment}`.
38315func (r *OrganizationsInstancesAttachmentsService) Get(name string) *OrganizationsInstancesAttachmentsGetCall {
38316	c := &OrganizationsInstancesAttachmentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38317	c.name = name
38318	return c
38319}
38320
38321// Fields allows partial responses to be retrieved. See
38322// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
38323// for more information.
38324func (c *OrganizationsInstancesAttachmentsGetCall) Fields(s ...googleapi.Field) *OrganizationsInstancesAttachmentsGetCall {
38325	c.urlParams_.Set("fields", googleapi.CombineFields(s))
38326	return c
38327}
38328
38329// IfNoneMatch sets the optional parameter which makes the operation
38330// fail if the object's ETag matches the given value. This is useful for
38331// getting updates only after the object has changed since the last
38332// request. Use googleapi.IsNotModified to check whether the response
38333// error from Do is the result of In-None-Match.
38334func (c *OrganizationsInstancesAttachmentsGetCall) IfNoneMatch(entityTag string) *OrganizationsInstancesAttachmentsGetCall {
38335	c.ifNoneMatch_ = entityTag
38336	return c
38337}
38338
38339// Context sets the context to be used in this call's Do method. Any
38340// pending HTTP request will be aborted if the provided context is
38341// canceled.
38342func (c *OrganizationsInstancesAttachmentsGetCall) Context(ctx context.Context) *OrganizationsInstancesAttachmentsGetCall {
38343	c.ctx_ = ctx
38344	return c
38345}
38346
38347// Header returns an http.Header that can be modified by the caller to
38348// add HTTP headers to the request.
38349func (c *OrganizationsInstancesAttachmentsGetCall) Header() http.Header {
38350	if c.header_ == nil {
38351		c.header_ = make(http.Header)
38352	}
38353	return c.header_
38354}
38355
38356func (c *OrganizationsInstancesAttachmentsGetCall) doRequest(alt string) (*http.Response, error) {
38357	reqHeaders := make(http.Header)
38358	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
38359	for k, v := range c.header_ {
38360		reqHeaders[k] = v
38361	}
38362	reqHeaders.Set("User-Agent", c.s.userAgent())
38363	if c.ifNoneMatch_ != "" {
38364		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
38365	}
38366	var body io.Reader = nil
38367	c.urlParams_.Set("alt", alt)
38368	c.urlParams_.Set("prettyPrint", "false")
38369	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
38370	urls += "?" + c.urlParams_.Encode()
38371	req, err := http.NewRequest("GET", urls, body)
38372	if err != nil {
38373		return nil, err
38374	}
38375	req.Header = reqHeaders
38376	googleapi.Expand(req.URL, map[string]string{
38377		"name": c.name,
38378	})
38379	return gensupport.SendRequest(c.ctx_, c.s.client, req)
38380}
38381
38382// Do executes the "apigee.organizations.instances.attachments.get" call.
38383// Exactly one of *GoogleCloudApigeeV1InstanceAttachment or error will
38384// be non-nil. Any non-2xx status code is an error. Response headers are
38385// in either
38386// *GoogleCloudApigeeV1InstanceAttachment.ServerResponse.Header or (if a
38387// response was returned at all) in error.(*googleapi.Error).Header. Use
38388// googleapi.IsNotModified to check whether the returned error was
38389// because http.StatusNotModified was returned.
38390func (c *OrganizationsInstancesAttachmentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1InstanceAttachment, error) {
38391	gensupport.SetOptions(c.urlParams_, opts...)
38392	res, err := c.doRequest("json")
38393	if res != nil && res.StatusCode == http.StatusNotModified {
38394		if res.Body != nil {
38395			res.Body.Close()
38396		}
38397		return nil, &googleapi.Error{
38398			Code:   res.StatusCode,
38399			Header: res.Header,
38400		}
38401	}
38402	if err != nil {
38403		return nil, err
38404	}
38405	defer googleapi.CloseBody(res)
38406	if err := googleapi.CheckResponse(res); err != nil {
38407		return nil, err
38408	}
38409	ret := &GoogleCloudApigeeV1InstanceAttachment{
38410		ServerResponse: googleapi.ServerResponse{
38411			Header:         res.Header,
38412			HTTPStatusCode: res.StatusCode,
38413		},
38414	}
38415	target := &ret
38416	if err := gensupport.DecodeResponse(target, res); err != nil {
38417		return nil, err
38418	}
38419	return ret, nil
38420	// {
38421	//   "description": "Gets an attachment. **Note:** Not supported for Apigee hybrid.",
38422	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/attachments/{attachmentsId}",
38423	//   "httpMethod": "GET",
38424	//   "id": "apigee.organizations.instances.attachments.get",
38425	//   "parameterOrder": [
38426	//     "name"
38427	//   ],
38428	//   "parameters": {
38429	//     "name": {
38430	//       "description": "Required. Name of the attachment. Use the following structure in your request: `organizations/{org}/instances/{instance}/attachments/{attachment}`",
38431	//       "location": "path",
38432	//       "pattern": "^organizations/[^/]+/instances/[^/]+/attachments/[^/]+$",
38433	//       "required": true,
38434	//       "type": "string"
38435	//     }
38436	//   },
38437	//   "path": "v1/{+name}",
38438	//   "response": {
38439	//     "$ref": "GoogleCloudApigeeV1InstanceAttachment"
38440	//   },
38441	//   "scopes": [
38442	//     "https://www.googleapis.com/auth/cloud-platform"
38443	//   ]
38444	// }
38445
38446}
38447
38448// method id "apigee.organizations.instances.attachments.list":
38449
38450type OrganizationsInstancesAttachmentsListCall struct {
38451	s            *Service
38452	parent       string
38453	urlParams_   gensupport.URLParams
38454	ifNoneMatch_ string
38455	ctx_         context.Context
38456	header_      http.Header
38457}
38458
38459// List: Lists all attachments to an instance. **Note:** Not supported
38460// for Apigee hybrid.
38461//
38462// - parent: Name of the organization. Use the following structure in
38463//   your request: `organizations/{org}/instances/{instance}`.
38464func (r *OrganizationsInstancesAttachmentsService) List(parent string) *OrganizationsInstancesAttachmentsListCall {
38465	c := &OrganizationsInstancesAttachmentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38466	c.parent = parent
38467	return c
38468}
38469
38470// PageSize sets the optional parameter "pageSize": Maximum number of
38471// instance attachments to return. Defaults to 25.
38472func (c *OrganizationsInstancesAttachmentsListCall) PageSize(pageSize int64) *OrganizationsInstancesAttachmentsListCall {
38473	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
38474	return c
38475}
38476
38477// PageToken sets the optional parameter "pageToken": Page token,
38478// returned by a previous ListInstanceAttachments call, that you can use
38479// to retrieve the next page of content.
38480func (c *OrganizationsInstancesAttachmentsListCall) PageToken(pageToken string) *OrganizationsInstancesAttachmentsListCall {
38481	c.urlParams_.Set("pageToken", pageToken)
38482	return c
38483}
38484
38485// Fields allows partial responses to be retrieved. See
38486// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
38487// for more information.
38488func (c *OrganizationsInstancesAttachmentsListCall) Fields(s ...googleapi.Field) *OrganizationsInstancesAttachmentsListCall {
38489	c.urlParams_.Set("fields", googleapi.CombineFields(s))
38490	return c
38491}
38492
38493// IfNoneMatch sets the optional parameter which makes the operation
38494// fail if the object's ETag matches the given value. This is useful for
38495// getting updates only after the object has changed since the last
38496// request. Use googleapi.IsNotModified to check whether the response
38497// error from Do is the result of In-None-Match.
38498func (c *OrganizationsInstancesAttachmentsListCall) IfNoneMatch(entityTag string) *OrganizationsInstancesAttachmentsListCall {
38499	c.ifNoneMatch_ = entityTag
38500	return c
38501}
38502
38503// Context sets the context to be used in this call's Do method. Any
38504// pending HTTP request will be aborted if the provided context is
38505// canceled.
38506func (c *OrganizationsInstancesAttachmentsListCall) Context(ctx context.Context) *OrganizationsInstancesAttachmentsListCall {
38507	c.ctx_ = ctx
38508	return c
38509}
38510
38511// Header returns an http.Header that can be modified by the caller to
38512// add HTTP headers to the request.
38513func (c *OrganizationsInstancesAttachmentsListCall) Header() http.Header {
38514	if c.header_ == nil {
38515		c.header_ = make(http.Header)
38516	}
38517	return c.header_
38518}
38519
38520func (c *OrganizationsInstancesAttachmentsListCall) doRequest(alt string) (*http.Response, error) {
38521	reqHeaders := make(http.Header)
38522	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
38523	for k, v := range c.header_ {
38524		reqHeaders[k] = v
38525	}
38526	reqHeaders.Set("User-Agent", c.s.userAgent())
38527	if c.ifNoneMatch_ != "" {
38528		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
38529	}
38530	var body io.Reader = nil
38531	c.urlParams_.Set("alt", alt)
38532	c.urlParams_.Set("prettyPrint", "false")
38533	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attachments")
38534	urls += "?" + c.urlParams_.Encode()
38535	req, err := http.NewRequest("GET", urls, body)
38536	if err != nil {
38537		return nil, err
38538	}
38539	req.Header = reqHeaders
38540	googleapi.Expand(req.URL, map[string]string{
38541		"parent": c.parent,
38542	})
38543	return gensupport.SendRequest(c.ctx_, c.s.client, req)
38544}
38545
38546// Do executes the "apigee.organizations.instances.attachments.list" call.
38547// Exactly one of *GoogleCloudApigeeV1ListInstanceAttachmentsResponse or
38548// error will be non-nil. Any non-2xx status code is an error. Response
38549// headers are in either
38550// *GoogleCloudApigeeV1ListInstanceAttachmentsResponse.ServerResponse.Hea
38551// der or (if a response was returned at all) in
38552// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
38553// whether the returned error was because http.StatusNotModified was
38554// returned.
38555func (c *OrganizationsInstancesAttachmentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListInstanceAttachmentsResponse, error) {
38556	gensupport.SetOptions(c.urlParams_, opts...)
38557	res, err := c.doRequest("json")
38558	if res != nil && res.StatusCode == http.StatusNotModified {
38559		if res.Body != nil {
38560			res.Body.Close()
38561		}
38562		return nil, &googleapi.Error{
38563			Code:   res.StatusCode,
38564			Header: res.Header,
38565		}
38566	}
38567	if err != nil {
38568		return nil, err
38569	}
38570	defer googleapi.CloseBody(res)
38571	if err := googleapi.CheckResponse(res); err != nil {
38572		return nil, err
38573	}
38574	ret := &GoogleCloudApigeeV1ListInstanceAttachmentsResponse{
38575		ServerResponse: googleapi.ServerResponse{
38576			Header:         res.Header,
38577			HTTPStatusCode: res.StatusCode,
38578		},
38579	}
38580	target := &ret
38581	if err := gensupport.DecodeResponse(target, res); err != nil {
38582		return nil, err
38583	}
38584	return ret, nil
38585	// {
38586	//   "description": "Lists all attachments to an instance. **Note:** Not supported for Apigee hybrid.",
38587	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/attachments",
38588	//   "httpMethod": "GET",
38589	//   "id": "apigee.organizations.instances.attachments.list",
38590	//   "parameterOrder": [
38591	//     "parent"
38592	//   ],
38593	//   "parameters": {
38594	//     "pageSize": {
38595	//       "description": "Maximum number of instance attachments to return. Defaults to 25.",
38596	//       "format": "int32",
38597	//       "location": "query",
38598	//       "type": "integer"
38599	//     },
38600	//     "pageToken": {
38601	//       "description": "Page token, returned by a previous ListInstanceAttachments call, that you can use to retrieve the next page of content.",
38602	//       "location": "query",
38603	//       "type": "string"
38604	//     },
38605	//     "parent": {
38606	//       "description": "Required. Name of the organization. Use the following structure in your request: `organizations/{org}/instances/{instance}`",
38607	//       "location": "path",
38608	//       "pattern": "^organizations/[^/]+/instances/[^/]+$",
38609	//       "required": true,
38610	//       "type": "string"
38611	//     }
38612	//   },
38613	//   "path": "v1/{+parent}/attachments",
38614	//   "response": {
38615	//     "$ref": "GoogleCloudApigeeV1ListInstanceAttachmentsResponse"
38616	//   },
38617	//   "scopes": [
38618	//     "https://www.googleapis.com/auth/cloud-platform"
38619	//   ]
38620	// }
38621
38622}
38623
38624// Pages invokes f for each page of results.
38625// A non-nil error returned from f will halt the iteration.
38626// The provided context supersedes any context provided to the Context method.
38627func (c *OrganizationsInstancesAttachmentsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListInstanceAttachmentsResponse) error) error {
38628	c.ctx_ = ctx
38629	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
38630	for {
38631		x, err := c.Do()
38632		if err != nil {
38633			return err
38634		}
38635		if err := f(x); err != nil {
38636			return err
38637		}
38638		if x.NextPageToken == "" {
38639			return nil
38640		}
38641		c.PageToken(x.NextPageToken)
38642	}
38643}
38644
38645// method id "apigee.organizations.instances.canaryevaluations.create":
38646
38647type OrganizationsInstancesCanaryevaluationsCreateCall struct {
38648	s                                   *Service
38649	parent                              string
38650	googlecloudapigeev1canaryevaluation *GoogleCloudApigeeV1CanaryEvaluation
38651	urlParams_                          gensupport.URLParams
38652	ctx_                                context.Context
38653	header_                             http.Header
38654}
38655
38656// Create: Creates a new canary evaluation for an organization.
38657//
38658// - parent: Name of the organization. Use the following structure in
38659//   your request: `organizations/{org}/instances/{instance}`.
38660func (r *OrganizationsInstancesCanaryevaluationsService) Create(parent string, googlecloudapigeev1canaryevaluation *GoogleCloudApigeeV1CanaryEvaluation) *OrganizationsInstancesCanaryevaluationsCreateCall {
38661	c := &OrganizationsInstancesCanaryevaluationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38662	c.parent = parent
38663	c.googlecloudapigeev1canaryevaluation = googlecloudapigeev1canaryevaluation
38664	return c
38665}
38666
38667// Fields allows partial responses to be retrieved. See
38668// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
38669// for more information.
38670func (c *OrganizationsInstancesCanaryevaluationsCreateCall) Fields(s ...googleapi.Field) *OrganizationsInstancesCanaryevaluationsCreateCall {
38671	c.urlParams_.Set("fields", googleapi.CombineFields(s))
38672	return c
38673}
38674
38675// Context sets the context to be used in this call's Do method. Any
38676// pending HTTP request will be aborted if the provided context is
38677// canceled.
38678func (c *OrganizationsInstancesCanaryevaluationsCreateCall) Context(ctx context.Context) *OrganizationsInstancesCanaryevaluationsCreateCall {
38679	c.ctx_ = ctx
38680	return c
38681}
38682
38683// Header returns an http.Header that can be modified by the caller to
38684// add HTTP headers to the request.
38685func (c *OrganizationsInstancesCanaryevaluationsCreateCall) Header() http.Header {
38686	if c.header_ == nil {
38687		c.header_ = make(http.Header)
38688	}
38689	return c.header_
38690}
38691
38692func (c *OrganizationsInstancesCanaryevaluationsCreateCall) doRequest(alt string) (*http.Response, error) {
38693	reqHeaders := make(http.Header)
38694	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
38695	for k, v := range c.header_ {
38696		reqHeaders[k] = v
38697	}
38698	reqHeaders.Set("User-Agent", c.s.userAgent())
38699	var body io.Reader = nil
38700	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1canaryevaluation)
38701	if err != nil {
38702		return nil, err
38703	}
38704	reqHeaders.Set("Content-Type", "application/json")
38705	c.urlParams_.Set("alt", alt)
38706	c.urlParams_.Set("prettyPrint", "false")
38707	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/canaryevaluations")
38708	urls += "?" + c.urlParams_.Encode()
38709	req, err := http.NewRequest("POST", urls, body)
38710	if err != nil {
38711		return nil, err
38712	}
38713	req.Header = reqHeaders
38714	googleapi.Expand(req.URL, map[string]string{
38715		"parent": c.parent,
38716	})
38717	return gensupport.SendRequest(c.ctx_, c.s.client, req)
38718}
38719
38720// Do executes the "apigee.organizations.instances.canaryevaluations.create" call.
38721// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
38722// Any non-2xx status code is an error. Response headers are in either
38723// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
38724// was returned at all) in error.(*googleapi.Error).Header. Use
38725// googleapi.IsNotModified to check whether the returned error was
38726// because http.StatusNotModified was returned.
38727func (c *OrganizationsInstancesCanaryevaluationsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
38728	gensupport.SetOptions(c.urlParams_, opts...)
38729	res, err := c.doRequest("json")
38730	if res != nil && res.StatusCode == http.StatusNotModified {
38731		if res.Body != nil {
38732			res.Body.Close()
38733		}
38734		return nil, &googleapi.Error{
38735			Code:   res.StatusCode,
38736			Header: res.Header,
38737		}
38738	}
38739	if err != nil {
38740		return nil, err
38741	}
38742	defer googleapi.CloseBody(res)
38743	if err := googleapi.CheckResponse(res); err != nil {
38744		return nil, err
38745	}
38746	ret := &GoogleLongrunningOperation{
38747		ServerResponse: googleapi.ServerResponse{
38748			Header:         res.Header,
38749			HTTPStatusCode: res.StatusCode,
38750		},
38751	}
38752	target := &ret
38753	if err := gensupport.DecodeResponse(target, res); err != nil {
38754		return nil, err
38755	}
38756	return ret, nil
38757	// {
38758	//   "description": "Creates a new canary evaluation for an organization.",
38759	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/canaryevaluations",
38760	//   "httpMethod": "POST",
38761	//   "id": "apigee.organizations.instances.canaryevaluations.create",
38762	//   "parameterOrder": [
38763	//     "parent"
38764	//   ],
38765	//   "parameters": {
38766	//     "parent": {
38767	//       "description": "Required. Name of the organization. Use the following structure in your request: `organizations/{org}/instances/{instance}`.",
38768	//       "location": "path",
38769	//       "pattern": "^organizations/[^/]+/instances/[^/]+$",
38770	//       "required": true,
38771	//       "type": "string"
38772	//     }
38773	//   },
38774	//   "path": "v1/{+parent}/canaryevaluations",
38775	//   "request": {
38776	//     "$ref": "GoogleCloudApigeeV1CanaryEvaluation"
38777	//   },
38778	//   "response": {
38779	//     "$ref": "GoogleLongrunningOperation"
38780	//   },
38781	//   "scopes": [
38782	//     "https://www.googleapis.com/auth/cloud-platform"
38783	//   ]
38784	// }
38785
38786}
38787
38788// method id "apigee.organizations.instances.canaryevaluations.get":
38789
38790type OrganizationsInstancesCanaryevaluationsGetCall struct {
38791	s            *Service
38792	name         string
38793	urlParams_   gensupport.URLParams
38794	ifNoneMatch_ string
38795	ctx_         context.Context
38796	header_      http.Header
38797}
38798
38799// Get: Gets a CanaryEvaluation for an organization.
38800//
38801// - name: Name of the CanaryEvaluation. Use the following structure in
38802//   your request:
38803//   `organizations/{org}/instances/*/canaryevaluations/{evaluation}`.
38804func (r *OrganizationsInstancesCanaryevaluationsService) Get(name string) *OrganizationsInstancesCanaryevaluationsGetCall {
38805	c := &OrganizationsInstancesCanaryevaluationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38806	c.name = name
38807	return c
38808}
38809
38810// Fields allows partial responses to be retrieved. See
38811// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
38812// for more information.
38813func (c *OrganizationsInstancesCanaryevaluationsGetCall) Fields(s ...googleapi.Field) *OrganizationsInstancesCanaryevaluationsGetCall {
38814	c.urlParams_.Set("fields", googleapi.CombineFields(s))
38815	return c
38816}
38817
38818// IfNoneMatch sets the optional parameter which makes the operation
38819// fail if the object's ETag matches the given value. This is useful for
38820// getting updates only after the object has changed since the last
38821// request. Use googleapi.IsNotModified to check whether the response
38822// error from Do is the result of In-None-Match.
38823func (c *OrganizationsInstancesCanaryevaluationsGetCall) IfNoneMatch(entityTag string) *OrganizationsInstancesCanaryevaluationsGetCall {
38824	c.ifNoneMatch_ = entityTag
38825	return c
38826}
38827
38828// Context sets the context to be used in this call's Do method. Any
38829// pending HTTP request will be aborted if the provided context is
38830// canceled.
38831func (c *OrganizationsInstancesCanaryevaluationsGetCall) Context(ctx context.Context) *OrganizationsInstancesCanaryevaluationsGetCall {
38832	c.ctx_ = ctx
38833	return c
38834}
38835
38836// Header returns an http.Header that can be modified by the caller to
38837// add HTTP headers to the request.
38838func (c *OrganizationsInstancesCanaryevaluationsGetCall) Header() http.Header {
38839	if c.header_ == nil {
38840		c.header_ = make(http.Header)
38841	}
38842	return c.header_
38843}
38844
38845func (c *OrganizationsInstancesCanaryevaluationsGetCall) doRequest(alt string) (*http.Response, error) {
38846	reqHeaders := make(http.Header)
38847	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
38848	for k, v := range c.header_ {
38849		reqHeaders[k] = v
38850	}
38851	reqHeaders.Set("User-Agent", c.s.userAgent())
38852	if c.ifNoneMatch_ != "" {
38853		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
38854	}
38855	var body io.Reader = nil
38856	c.urlParams_.Set("alt", alt)
38857	c.urlParams_.Set("prettyPrint", "false")
38858	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
38859	urls += "?" + c.urlParams_.Encode()
38860	req, err := http.NewRequest("GET", urls, body)
38861	if err != nil {
38862		return nil, err
38863	}
38864	req.Header = reqHeaders
38865	googleapi.Expand(req.URL, map[string]string{
38866		"name": c.name,
38867	})
38868	return gensupport.SendRequest(c.ctx_, c.s.client, req)
38869}
38870
38871// Do executes the "apigee.organizations.instances.canaryevaluations.get" call.
38872// Exactly one of *GoogleCloudApigeeV1CanaryEvaluation or error will be
38873// non-nil. Any non-2xx status code is an error. Response headers are in
38874// either *GoogleCloudApigeeV1CanaryEvaluation.ServerResponse.Header or
38875// (if a response was returned at all) in
38876// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
38877// whether the returned error was because http.StatusNotModified was
38878// returned.
38879func (c *OrganizationsInstancesCanaryevaluationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1CanaryEvaluation, error) {
38880	gensupport.SetOptions(c.urlParams_, opts...)
38881	res, err := c.doRequest("json")
38882	if res != nil && res.StatusCode == http.StatusNotModified {
38883		if res.Body != nil {
38884			res.Body.Close()
38885		}
38886		return nil, &googleapi.Error{
38887			Code:   res.StatusCode,
38888			Header: res.Header,
38889		}
38890	}
38891	if err != nil {
38892		return nil, err
38893	}
38894	defer googleapi.CloseBody(res)
38895	if err := googleapi.CheckResponse(res); err != nil {
38896		return nil, err
38897	}
38898	ret := &GoogleCloudApigeeV1CanaryEvaluation{
38899		ServerResponse: googleapi.ServerResponse{
38900			Header:         res.Header,
38901			HTTPStatusCode: res.StatusCode,
38902		},
38903	}
38904	target := &ret
38905	if err := gensupport.DecodeResponse(target, res); err != nil {
38906		return nil, err
38907	}
38908	return ret, nil
38909	// {
38910	//   "description": "Gets a CanaryEvaluation for an organization.",
38911	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/canaryevaluations/{canaryevaluationsId}",
38912	//   "httpMethod": "GET",
38913	//   "id": "apigee.organizations.instances.canaryevaluations.get",
38914	//   "parameterOrder": [
38915	//     "name"
38916	//   ],
38917	//   "parameters": {
38918	//     "name": {
38919	//       "description": "Required. Name of the CanaryEvaluation. Use the following structure in your request: `organizations/{org}/instances/*/canaryevaluations/{evaluation}`",
38920	//       "location": "path",
38921	//       "pattern": "^organizations/[^/]+/instances/[^/]+/canaryevaluations/[^/]+$",
38922	//       "required": true,
38923	//       "type": "string"
38924	//     }
38925	//   },
38926	//   "path": "v1/{+name}",
38927	//   "response": {
38928	//     "$ref": "GoogleCloudApigeeV1CanaryEvaluation"
38929	//   },
38930	//   "scopes": [
38931	//     "https://www.googleapis.com/auth/cloud-platform"
38932	//   ]
38933	// }
38934
38935}
38936
38937// method id "apigee.organizations.instances.natAddresses.activate":
38938
38939type OrganizationsInstancesNatAddressesActivateCall struct {
38940	s                                            *Service
38941	name                                         string
38942	googlecloudapigeev1activatenataddressrequest *GoogleCloudApigeeV1ActivateNatAddressRequest
38943	urlParams_                                   gensupport.URLParams
38944	ctx_                                         context.Context
38945	header_                                      http.Header
38946}
38947
38948// Activate: Activates the NAT address. The Apigee instance can now use
38949// this for Internet egress traffic. **Note:** Not supported for Apigee
38950// hybrid.
38951//
38952// - name: Name of the nat address. Use the following structure in your
38953//   request:
38954//   `organizations/{org}/instances/{instances}/natAddresses/{nataddress}
38955//   ``.
38956func (r *OrganizationsInstancesNatAddressesService) Activate(name string, googlecloudapigeev1activatenataddressrequest *GoogleCloudApigeeV1ActivateNatAddressRequest) *OrganizationsInstancesNatAddressesActivateCall {
38957	c := &OrganizationsInstancesNatAddressesActivateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38958	c.name = name
38959	c.googlecloudapigeev1activatenataddressrequest = googlecloudapigeev1activatenataddressrequest
38960	return c
38961}
38962
38963// Fields allows partial responses to be retrieved. See
38964// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
38965// for more information.
38966func (c *OrganizationsInstancesNatAddressesActivateCall) Fields(s ...googleapi.Field) *OrganizationsInstancesNatAddressesActivateCall {
38967	c.urlParams_.Set("fields", googleapi.CombineFields(s))
38968	return c
38969}
38970
38971// Context sets the context to be used in this call's Do method. Any
38972// pending HTTP request will be aborted if the provided context is
38973// canceled.
38974func (c *OrganizationsInstancesNatAddressesActivateCall) Context(ctx context.Context) *OrganizationsInstancesNatAddressesActivateCall {
38975	c.ctx_ = ctx
38976	return c
38977}
38978
38979// Header returns an http.Header that can be modified by the caller to
38980// add HTTP headers to the request.
38981func (c *OrganizationsInstancesNatAddressesActivateCall) Header() http.Header {
38982	if c.header_ == nil {
38983		c.header_ = make(http.Header)
38984	}
38985	return c.header_
38986}
38987
38988func (c *OrganizationsInstancesNatAddressesActivateCall) doRequest(alt string) (*http.Response, error) {
38989	reqHeaders := make(http.Header)
38990	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
38991	for k, v := range c.header_ {
38992		reqHeaders[k] = v
38993	}
38994	reqHeaders.Set("User-Agent", c.s.userAgent())
38995	var body io.Reader = nil
38996	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1activatenataddressrequest)
38997	if err != nil {
38998		return nil, err
38999	}
39000	reqHeaders.Set("Content-Type", "application/json")
39001	c.urlParams_.Set("alt", alt)
39002	c.urlParams_.Set("prettyPrint", "false")
39003	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:activate")
39004	urls += "?" + c.urlParams_.Encode()
39005	req, err := http.NewRequest("POST", urls, body)
39006	if err != nil {
39007		return nil, err
39008	}
39009	req.Header = reqHeaders
39010	googleapi.Expand(req.URL, map[string]string{
39011		"name": c.name,
39012	})
39013	return gensupport.SendRequest(c.ctx_, c.s.client, req)
39014}
39015
39016// Do executes the "apigee.organizations.instances.natAddresses.activate" call.
39017// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
39018// Any non-2xx status code is an error. Response headers are in either
39019// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
39020// was returned at all) in error.(*googleapi.Error).Header. Use
39021// googleapi.IsNotModified to check whether the returned error was
39022// because http.StatusNotModified was returned.
39023func (c *OrganizationsInstancesNatAddressesActivateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
39024	gensupport.SetOptions(c.urlParams_, opts...)
39025	res, err := c.doRequest("json")
39026	if res != nil && res.StatusCode == http.StatusNotModified {
39027		if res.Body != nil {
39028			res.Body.Close()
39029		}
39030		return nil, &googleapi.Error{
39031			Code:   res.StatusCode,
39032			Header: res.Header,
39033		}
39034	}
39035	if err != nil {
39036		return nil, err
39037	}
39038	defer googleapi.CloseBody(res)
39039	if err := googleapi.CheckResponse(res); err != nil {
39040		return nil, err
39041	}
39042	ret := &GoogleLongrunningOperation{
39043		ServerResponse: googleapi.ServerResponse{
39044			Header:         res.Header,
39045			HTTPStatusCode: res.StatusCode,
39046		},
39047	}
39048	target := &ret
39049	if err := gensupport.DecodeResponse(target, res); err != nil {
39050		return nil, err
39051	}
39052	return ret, nil
39053	// {
39054	//   "description": "Activates the NAT address. The Apigee instance can now use this for Internet egress traffic. **Note:** Not supported for Apigee hybrid.",
39055	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/natAddresses/{natAddressesId}:activate",
39056	//   "httpMethod": "POST",
39057	//   "id": "apigee.organizations.instances.natAddresses.activate",
39058	//   "parameterOrder": [
39059	//     "name"
39060	//   ],
39061	//   "parameters": {
39062	//     "name": {
39063	//       "description": "Required. Name of the nat address. Use the following structure in your request: `organizations/{org}/instances/{instances}/natAddresses/{nataddress}``",
39064	//       "location": "path",
39065	//       "pattern": "^organizations/[^/]+/instances/[^/]+/natAddresses/[^/]+$",
39066	//       "required": true,
39067	//       "type": "string"
39068	//     }
39069	//   },
39070	//   "path": "v1/{+name}:activate",
39071	//   "request": {
39072	//     "$ref": "GoogleCloudApigeeV1ActivateNatAddressRequest"
39073	//   },
39074	//   "response": {
39075	//     "$ref": "GoogleLongrunningOperation"
39076	//   },
39077	//   "scopes": [
39078	//     "https://www.googleapis.com/auth/cloud-platform"
39079	//   ]
39080	// }
39081
39082}
39083
39084// method id "apigee.organizations.instances.natAddresses.create":
39085
39086type OrganizationsInstancesNatAddressesCreateCall struct {
39087	s                             *Service
39088	parent                        string
39089	googlecloudapigeev1nataddress *GoogleCloudApigeeV1NatAddress
39090	urlParams_                    gensupport.URLParams
39091	ctx_                          context.Context
39092	header_                       http.Header
39093}
39094
39095// Create: Creates a NAT address. The address is created in the RESERVED
39096// state and a static external IP address will be provisioned. At this
39097// time, the instance will not use this IP address for Internet egress
39098// traffic. The address can be activated for use once any required
39099// firewall IP whitelisting has been completed. **Note:** Not supported
39100// for Apigee hybrid.
39101//
39102// - parent: Name of the instance. Use the following structure in your
39103//   request: `organizations/{org}/instances/{instance}`.
39104func (r *OrganizationsInstancesNatAddressesService) Create(parent string, googlecloudapigeev1nataddress *GoogleCloudApigeeV1NatAddress) *OrganizationsInstancesNatAddressesCreateCall {
39105	c := &OrganizationsInstancesNatAddressesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39106	c.parent = parent
39107	c.googlecloudapigeev1nataddress = googlecloudapigeev1nataddress
39108	return c
39109}
39110
39111// Fields allows partial responses to be retrieved. See
39112// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
39113// for more information.
39114func (c *OrganizationsInstancesNatAddressesCreateCall) Fields(s ...googleapi.Field) *OrganizationsInstancesNatAddressesCreateCall {
39115	c.urlParams_.Set("fields", googleapi.CombineFields(s))
39116	return c
39117}
39118
39119// Context sets the context to be used in this call's Do method. Any
39120// pending HTTP request will be aborted if the provided context is
39121// canceled.
39122func (c *OrganizationsInstancesNatAddressesCreateCall) Context(ctx context.Context) *OrganizationsInstancesNatAddressesCreateCall {
39123	c.ctx_ = ctx
39124	return c
39125}
39126
39127// Header returns an http.Header that can be modified by the caller to
39128// add HTTP headers to the request.
39129func (c *OrganizationsInstancesNatAddressesCreateCall) Header() http.Header {
39130	if c.header_ == nil {
39131		c.header_ = make(http.Header)
39132	}
39133	return c.header_
39134}
39135
39136func (c *OrganizationsInstancesNatAddressesCreateCall) doRequest(alt string) (*http.Response, error) {
39137	reqHeaders := make(http.Header)
39138	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
39139	for k, v := range c.header_ {
39140		reqHeaders[k] = v
39141	}
39142	reqHeaders.Set("User-Agent", c.s.userAgent())
39143	var body io.Reader = nil
39144	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1nataddress)
39145	if err != nil {
39146		return nil, err
39147	}
39148	reqHeaders.Set("Content-Type", "application/json")
39149	c.urlParams_.Set("alt", alt)
39150	c.urlParams_.Set("prettyPrint", "false")
39151	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/natAddresses")
39152	urls += "?" + c.urlParams_.Encode()
39153	req, err := http.NewRequest("POST", urls, body)
39154	if err != nil {
39155		return nil, err
39156	}
39157	req.Header = reqHeaders
39158	googleapi.Expand(req.URL, map[string]string{
39159		"parent": c.parent,
39160	})
39161	return gensupport.SendRequest(c.ctx_, c.s.client, req)
39162}
39163
39164// Do executes the "apigee.organizations.instances.natAddresses.create" call.
39165// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
39166// Any non-2xx status code is an error. Response headers are in either
39167// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
39168// was returned at all) in error.(*googleapi.Error).Header. Use
39169// googleapi.IsNotModified to check whether the returned error was
39170// because http.StatusNotModified was returned.
39171func (c *OrganizationsInstancesNatAddressesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
39172	gensupport.SetOptions(c.urlParams_, opts...)
39173	res, err := c.doRequest("json")
39174	if res != nil && res.StatusCode == http.StatusNotModified {
39175		if res.Body != nil {
39176			res.Body.Close()
39177		}
39178		return nil, &googleapi.Error{
39179			Code:   res.StatusCode,
39180			Header: res.Header,
39181		}
39182	}
39183	if err != nil {
39184		return nil, err
39185	}
39186	defer googleapi.CloseBody(res)
39187	if err := googleapi.CheckResponse(res); err != nil {
39188		return nil, err
39189	}
39190	ret := &GoogleLongrunningOperation{
39191		ServerResponse: googleapi.ServerResponse{
39192			Header:         res.Header,
39193			HTTPStatusCode: res.StatusCode,
39194		},
39195	}
39196	target := &ret
39197	if err := gensupport.DecodeResponse(target, res); err != nil {
39198		return nil, err
39199	}
39200	return ret, nil
39201	// {
39202	//   "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.",
39203	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/natAddresses",
39204	//   "httpMethod": "POST",
39205	//   "id": "apigee.organizations.instances.natAddresses.create",
39206	//   "parameterOrder": [
39207	//     "parent"
39208	//   ],
39209	//   "parameters": {
39210	//     "parent": {
39211	//       "description": "Required. Name of the instance. Use the following structure in your request: `organizations/{org}/instances/{instance}`",
39212	//       "location": "path",
39213	//       "pattern": "^organizations/[^/]+/instances/[^/]+$",
39214	//       "required": true,
39215	//       "type": "string"
39216	//     }
39217	//   },
39218	//   "path": "v1/{+parent}/natAddresses",
39219	//   "request": {
39220	//     "$ref": "GoogleCloudApigeeV1NatAddress"
39221	//   },
39222	//   "response": {
39223	//     "$ref": "GoogleLongrunningOperation"
39224	//   },
39225	//   "scopes": [
39226	//     "https://www.googleapis.com/auth/cloud-platform"
39227	//   ]
39228	// }
39229
39230}
39231
39232// method id "apigee.organizations.instances.natAddresses.delete":
39233
39234type OrganizationsInstancesNatAddressesDeleteCall struct {
39235	s          *Service
39236	name       string
39237	urlParams_ gensupport.URLParams
39238	ctx_       context.Context
39239	header_    http.Header
39240}
39241
39242// Delete: Deletes the NAT address. Connections that are actively using
39243// the address are drained before it is removed. **Note:** Not supported
39244// for Apigee hybrid.
39245//
39246// - name: Name of the nat address. Use the following structure in your
39247//   request:
39248//   `organizations/{org}/instances/{instances}/natAddresses/{nataddress}
39249//   ``.
39250func (r *OrganizationsInstancesNatAddressesService) Delete(name string) *OrganizationsInstancesNatAddressesDeleteCall {
39251	c := &OrganizationsInstancesNatAddressesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39252	c.name = name
39253	return c
39254}
39255
39256// Fields allows partial responses to be retrieved. See
39257// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
39258// for more information.
39259func (c *OrganizationsInstancesNatAddressesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsInstancesNatAddressesDeleteCall {
39260	c.urlParams_.Set("fields", googleapi.CombineFields(s))
39261	return c
39262}
39263
39264// Context sets the context to be used in this call's Do method. Any
39265// pending HTTP request will be aborted if the provided context is
39266// canceled.
39267func (c *OrganizationsInstancesNatAddressesDeleteCall) Context(ctx context.Context) *OrganizationsInstancesNatAddressesDeleteCall {
39268	c.ctx_ = ctx
39269	return c
39270}
39271
39272// Header returns an http.Header that can be modified by the caller to
39273// add HTTP headers to the request.
39274func (c *OrganizationsInstancesNatAddressesDeleteCall) Header() http.Header {
39275	if c.header_ == nil {
39276		c.header_ = make(http.Header)
39277	}
39278	return c.header_
39279}
39280
39281func (c *OrganizationsInstancesNatAddressesDeleteCall) doRequest(alt string) (*http.Response, error) {
39282	reqHeaders := make(http.Header)
39283	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
39284	for k, v := range c.header_ {
39285		reqHeaders[k] = v
39286	}
39287	reqHeaders.Set("User-Agent", c.s.userAgent())
39288	var body io.Reader = nil
39289	c.urlParams_.Set("alt", alt)
39290	c.urlParams_.Set("prettyPrint", "false")
39291	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
39292	urls += "?" + c.urlParams_.Encode()
39293	req, err := http.NewRequest("DELETE", urls, body)
39294	if err != nil {
39295		return nil, err
39296	}
39297	req.Header = reqHeaders
39298	googleapi.Expand(req.URL, map[string]string{
39299		"name": c.name,
39300	})
39301	return gensupport.SendRequest(c.ctx_, c.s.client, req)
39302}
39303
39304// Do executes the "apigee.organizations.instances.natAddresses.delete" call.
39305// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
39306// Any non-2xx status code is an error. Response headers are in either
39307// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
39308// was returned at all) in error.(*googleapi.Error).Header. Use
39309// googleapi.IsNotModified to check whether the returned error was
39310// because http.StatusNotModified was returned.
39311func (c *OrganizationsInstancesNatAddressesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
39312	gensupport.SetOptions(c.urlParams_, opts...)
39313	res, err := c.doRequest("json")
39314	if res != nil && res.StatusCode == http.StatusNotModified {
39315		if res.Body != nil {
39316			res.Body.Close()
39317		}
39318		return nil, &googleapi.Error{
39319			Code:   res.StatusCode,
39320			Header: res.Header,
39321		}
39322	}
39323	if err != nil {
39324		return nil, err
39325	}
39326	defer googleapi.CloseBody(res)
39327	if err := googleapi.CheckResponse(res); err != nil {
39328		return nil, err
39329	}
39330	ret := &GoogleLongrunningOperation{
39331		ServerResponse: googleapi.ServerResponse{
39332			Header:         res.Header,
39333			HTTPStatusCode: res.StatusCode,
39334		},
39335	}
39336	target := &ret
39337	if err := gensupport.DecodeResponse(target, res); err != nil {
39338		return nil, err
39339	}
39340	return ret, nil
39341	// {
39342	//   "description": "Deletes the NAT address. Connections that are actively using the address are drained before it is removed. **Note:** Not supported for Apigee hybrid.",
39343	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/natAddresses/{natAddressesId}",
39344	//   "httpMethod": "DELETE",
39345	//   "id": "apigee.organizations.instances.natAddresses.delete",
39346	//   "parameterOrder": [
39347	//     "name"
39348	//   ],
39349	//   "parameters": {
39350	//     "name": {
39351	//       "description": "Required. Name of the nat address. Use the following structure in your request: `organizations/{org}/instances/{instances}/natAddresses/{nataddress}``",
39352	//       "location": "path",
39353	//       "pattern": "^organizations/[^/]+/instances/[^/]+/natAddresses/[^/]+$",
39354	//       "required": true,
39355	//       "type": "string"
39356	//     }
39357	//   },
39358	//   "path": "v1/{+name}",
39359	//   "response": {
39360	//     "$ref": "GoogleLongrunningOperation"
39361	//   },
39362	//   "scopes": [
39363	//     "https://www.googleapis.com/auth/cloud-platform"
39364	//   ]
39365	// }
39366
39367}
39368
39369// method id "apigee.organizations.instances.natAddresses.get":
39370
39371type OrganizationsInstancesNatAddressesGetCall struct {
39372	s            *Service
39373	name         string
39374	urlParams_   gensupport.URLParams
39375	ifNoneMatch_ string
39376	ctx_         context.Context
39377	header_      http.Header
39378}
39379
39380// Get: Gets the details of a NAT address. **Note:** Not supported for
39381// Apigee hybrid.
39382//
39383// - name: Name of the nat address. Use the following structure in your
39384//   request:
39385//   `organizations/{org}/instances/{instances}/natAddresses/{nataddress}
39386//   `.
39387func (r *OrganizationsInstancesNatAddressesService) Get(name string) *OrganizationsInstancesNatAddressesGetCall {
39388	c := &OrganizationsInstancesNatAddressesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39389	c.name = name
39390	return c
39391}
39392
39393// Fields allows partial responses to be retrieved. See
39394// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
39395// for more information.
39396func (c *OrganizationsInstancesNatAddressesGetCall) Fields(s ...googleapi.Field) *OrganizationsInstancesNatAddressesGetCall {
39397	c.urlParams_.Set("fields", googleapi.CombineFields(s))
39398	return c
39399}
39400
39401// IfNoneMatch sets the optional parameter which makes the operation
39402// fail if the object's ETag matches the given value. This is useful for
39403// getting updates only after the object has changed since the last
39404// request. Use googleapi.IsNotModified to check whether the response
39405// error from Do is the result of In-None-Match.
39406func (c *OrganizationsInstancesNatAddressesGetCall) IfNoneMatch(entityTag string) *OrganizationsInstancesNatAddressesGetCall {
39407	c.ifNoneMatch_ = entityTag
39408	return c
39409}
39410
39411// Context sets the context to be used in this call's Do method. Any
39412// pending HTTP request will be aborted if the provided context is
39413// canceled.
39414func (c *OrganizationsInstancesNatAddressesGetCall) Context(ctx context.Context) *OrganizationsInstancesNatAddressesGetCall {
39415	c.ctx_ = ctx
39416	return c
39417}
39418
39419// Header returns an http.Header that can be modified by the caller to
39420// add HTTP headers to the request.
39421func (c *OrganizationsInstancesNatAddressesGetCall) Header() http.Header {
39422	if c.header_ == nil {
39423		c.header_ = make(http.Header)
39424	}
39425	return c.header_
39426}
39427
39428func (c *OrganizationsInstancesNatAddressesGetCall) doRequest(alt string) (*http.Response, error) {
39429	reqHeaders := make(http.Header)
39430	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
39431	for k, v := range c.header_ {
39432		reqHeaders[k] = v
39433	}
39434	reqHeaders.Set("User-Agent", c.s.userAgent())
39435	if c.ifNoneMatch_ != "" {
39436		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
39437	}
39438	var body io.Reader = nil
39439	c.urlParams_.Set("alt", alt)
39440	c.urlParams_.Set("prettyPrint", "false")
39441	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
39442	urls += "?" + c.urlParams_.Encode()
39443	req, err := http.NewRequest("GET", urls, body)
39444	if err != nil {
39445		return nil, err
39446	}
39447	req.Header = reqHeaders
39448	googleapi.Expand(req.URL, map[string]string{
39449		"name": c.name,
39450	})
39451	return gensupport.SendRequest(c.ctx_, c.s.client, req)
39452}
39453
39454// Do executes the "apigee.organizations.instances.natAddresses.get" call.
39455// Exactly one of *GoogleCloudApigeeV1NatAddress or error will be
39456// non-nil. Any non-2xx status code is an error. Response headers are in
39457// either *GoogleCloudApigeeV1NatAddress.ServerResponse.Header or (if a
39458// response was returned at all) in error.(*googleapi.Error).Header. Use
39459// googleapi.IsNotModified to check whether the returned error was
39460// because http.StatusNotModified was returned.
39461func (c *OrganizationsInstancesNatAddressesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1NatAddress, error) {
39462	gensupport.SetOptions(c.urlParams_, opts...)
39463	res, err := c.doRequest("json")
39464	if res != nil && res.StatusCode == http.StatusNotModified {
39465		if res.Body != nil {
39466			res.Body.Close()
39467		}
39468		return nil, &googleapi.Error{
39469			Code:   res.StatusCode,
39470			Header: res.Header,
39471		}
39472	}
39473	if err != nil {
39474		return nil, err
39475	}
39476	defer googleapi.CloseBody(res)
39477	if err := googleapi.CheckResponse(res); err != nil {
39478		return nil, err
39479	}
39480	ret := &GoogleCloudApigeeV1NatAddress{
39481		ServerResponse: googleapi.ServerResponse{
39482			Header:         res.Header,
39483			HTTPStatusCode: res.StatusCode,
39484		},
39485	}
39486	target := &ret
39487	if err := gensupport.DecodeResponse(target, res); err != nil {
39488		return nil, err
39489	}
39490	return ret, nil
39491	// {
39492	//   "description": "Gets the details of a NAT address. **Note:** Not supported for Apigee hybrid.",
39493	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/natAddresses/{natAddressesId}",
39494	//   "httpMethod": "GET",
39495	//   "id": "apigee.organizations.instances.natAddresses.get",
39496	//   "parameterOrder": [
39497	//     "name"
39498	//   ],
39499	//   "parameters": {
39500	//     "name": {
39501	//       "description": "Required. Name of the nat address. Use the following structure in your request: `organizations/{org}/instances/{instances}/natAddresses/{nataddress}`",
39502	//       "location": "path",
39503	//       "pattern": "^organizations/[^/]+/instances/[^/]+/natAddresses/[^/]+$",
39504	//       "required": true,
39505	//       "type": "string"
39506	//     }
39507	//   },
39508	//   "path": "v1/{+name}",
39509	//   "response": {
39510	//     "$ref": "GoogleCloudApigeeV1NatAddress"
39511	//   },
39512	//   "scopes": [
39513	//     "https://www.googleapis.com/auth/cloud-platform"
39514	//   ]
39515	// }
39516
39517}
39518
39519// method id "apigee.organizations.instances.natAddresses.list":
39520
39521type OrganizationsInstancesNatAddressesListCall struct {
39522	s            *Service
39523	parent       string
39524	urlParams_   gensupport.URLParams
39525	ifNoneMatch_ string
39526	ctx_         context.Context
39527	header_      http.Header
39528}
39529
39530// List: Lists the NAT addresses for an Apigee instance. **Note:** Not
39531// supported for Apigee hybrid.
39532//
39533// - parent: Name of the instance. Use the following structure in your
39534//   request: `organizations/{org}/instances/{instance}`.
39535func (r *OrganizationsInstancesNatAddressesService) List(parent string) *OrganizationsInstancesNatAddressesListCall {
39536	c := &OrganizationsInstancesNatAddressesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39537	c.parent = parent
39538	return c
39539}
39540
39541// PageSize sets the optional parameter "pageSize": Maximum number of
39542// natAddresses to return. Defaults to 25.
39543func (c *OrganizationsInstancesNatAddressesListCall) PageSize(pageSize int64) *OrganizationsInstancesNatAddressesListCall {
39544	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
39545	return c
39546}
39547
39548// PageToken sets the optional parameter "pageToken": Page token,
39549// returned from a previous ListNatAddresses call, that you can use to
39550// retrieve the next page of content.
39551func (c *OrganizationsInstancesNatAddressesListCall) PageToken(pageToken string) *OrganizationsInstancesNatAddressesListCall {
39552	c.urlParams_.Set("pageToken", pageToken)
39553	return c
39554}
39555
39556// Fields allows partial responses to be retrieved. See
39557// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
39558// for more information.
39559func (c *OrganizationsInstancesNatAddressesListCall) Fields(s ...googleapi.Field) *OrganizationsInstancesNatAddressesListCall {
39560	c.urlParams_.Set("fields", googleapi.CombineFields(s))
39561	return c
39562}
39563
39564// IfNoneMatch sets the optional parameter which makes the operation
39565// fail if the object's ETag matches the given value. This is useful for
39566// getting updates only after the object has changed since the last
39567// request. Use googleapi.IsNotModified to check whether the response
39568// error from Do is the result of In-None-Match.
39569func (c *OrganizationsInstancesNatAddressesListCall) IfNoneMatch(entityTag string) *OrganizationsInstancesNatAddressesListCall {
39570	c.ifNoneMatch_ = entityTag
39571	return c
39572}
39573
39574// Context sets the context to be used in this call's Do method. Any
39575// pending HTTP request will be aborted if the provided context is
39576// canceled.
39577func (c *OrganizationsInstancesNatAddressesListCall) Context(ctx context.Context) *OrganizationsInstancesNatAddressesListCall {
39578	c.ctx_ = ctx
39579	return c
39580}
39581
39582// Header returns an http.Header that can be modified by the caller to
39583// add HTTP headers to the request.
39584func (c *OrganizationsInstancesNatAddressesListCall) Header() http.Header {
39585	if c.header_ == nil {
39586		c.header_ = make(http.Header)
39587	}
39588	return c.header_
39589}
39590
39591func (c *OrganizationsInstancesNatAddressesListCall) doRequest(alt string) (*http.Response, error) {
39592	reqHeaders := make(http.Header)
39593	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
39594	for k, v := range c.header_ {
39595		reqHeaders[k] = v
39596	}
39597	reqHeaders.Set("User-Agent", c.s.userAgent())
39598	if c.ifNoneMatch_ != "" {
39599		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
39600	}
39601	var body io.Reader = nil
39602	c.urlParams_.Set("alt", alt)
39603	c.urlParams_.Set("prettyPrint", "false")
39604	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/natAddresses")
39605	urls += "?" + c.urlParams_.Encode()
39606	req, err := http.NewRequest("GET", urls, body)
39607	if err != nil {
39608		return nil, err
39609	}
39610	req.Header = reqHeaders
39611	googleapi.Expand(req.URL, map[string]string{
39612		"parent": c.parent,
39613	})
39614	return gensupport.SendRequest(c.ctx_, c.s.client, req)
39615}
39616
39617// Do executes the "apigee.organizations.instances.natAddresses.list" call.
39618// Exactly one of *GoogleCloudApigeeV1ListNatAddressesResponse or error
39619// will be non-nil. Any non-2xx status code is an error. Response
39620// headers are in either
39621// *GoogleCloudApigeeV1ListNatAddressesResponse.ServerResponse.Header or
39622// (if a response was returned at all) in
39623// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
39624// whether the returned error was because http.StatusNotModified was
39625// returned.
39626func (c *OrganizationsInstancesNatAddressesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListNatAddressesResponse, error) {
39627	gensupport.SetOptions(c.urlParams_, opts...)
39628	res, err := c.doRequest("json")
39629	if res != nil && res.StatusCode == http.StatusNotModified {
39630		if res.Body != nil {
39631			res.Body.Close()
39632		}
39633		return nil, &googleapi.Error{
39634			Code:   res.StatusCode,
39635			Header: res.Header,
39636		}
39637	}
39638	if err != nil {
39639		return nil, err
39640	}
39641	defer googleapi.CloseBody(res)
39642	if err := googleapi.CheckResponse(res); err != nil {
39643		return nil, err
39644	}
39645	ret := &GoogleCloudApigeeV1ListNatAddressesResponse{
39646		ServerResponse: googleapi.ServerResponse{
39647			Header:         res.Header,
39648			HTTPStatusCode: res.StatusCode,
39649		},
39650	}
39651	target := &ret
39652	if err := gensupport.DecodeResponse(target, res); err != nil {
39653		return nil, err
39654	}
39655	return ret, nil
39656	// {
39657	//   "description": "Lists the NAT addresses for an Apigee instance. **Note:** Not supported for Apigee hybrid.",
39658	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/natAddresses",
39659	//   "httpMethod": "GET",
39660	//   "id": "apigee.organizations.instances.natAddresses.list",
39661	//   "parameterOrder": [
39662	//     "parent"
39663	//   ],
39664	//   "parameters": {
39665	//     "pageSize": {
39666	//       "description": "Maximum number of natAddresses to return. Defaults to 25.",
39667	//       "format": "int32",
39668	//       "location": "query",
39669	//       "type": "integer"
39670	//     },
39671	//     "pageToken": {
39672	//       "description": "Page token, returned from a previous ListNatAddresses call, that you can use to retrieve the next page of content.",
39673	//       "location": "query",
39674	//       "type": "string"
39675	//     },
39676	//     "parent": {
39677	//       "description": "Required. Name of the instance. Use the following structure in your request: `organizations/{org}/instances/{instance}`",
39678	//       "location": "path",
39679	//       "pattern": "^organizations/[^/]+/instances/[^/]+$",
39680	//       "required": true,
39681	//       "type": "string"
39682	//     }
39683	//   },
39684	//   "path": "v1/{+parent}/natAddresses",
39685	//   "response": {
39686	//     "$ref": "GoogleCloudApigeeV1ListNatAddressesResponse"
39687	//   },
39688	//   "scopes": [
39689	//     "https://www.googleapis.com/auth/cloud-platform"
39690	//   ]
39691	// }
39692
39693}
39694
39695// Pages invokes f for each page of results.
39696// A non-nil error returned from f will halt the iteration.
39697// The provided context supersedes any context provided to the Context method.
39698func (c *OrganizationsInstancesNatAddressesListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListNatAddressesResponse) error) error {
39699	c.ctx_ = ctx
39700	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
39701	for {
39702		x, err := c.Do()
39703		if err != nil {
39704			return err
39705		}
39706		if err := f(x); err != nil {
39707			return err
39708		}
39709		if x.NextPageToken == "" {
39710			return nil
39711		}
39712		c.PageToken(x.NextPageToken)
39713	}
39714}
39715
39716// method id "apigee.organizations.keyvaluemaps.create":
39717
39718type OrganizationsKeyvaluemapsCreateCall struct {
39719	s                              *Service
39720	parent                         string
39721	googlecloudapigeev1keyvaluemap *GoogleCloudApigeeV1KeyValueMap
39722	urlParams_                     gensupport.URLParams
39723	ctx_                           context.Context
39724	header_                        http.Header
39725}
39726
39727// Create: Creates a key value map in an organization.
39728//
39729// - parent: The name of the organization in which to create the key
39730//   value map file. Must be of the form `organizations/{organization}`.
39731func (r *OrganizationsKeyvaluemapsService) Create(parent string, googlecloudapigeev1keyvaluemap *GoogleCloudApigeeV1KeyValueMap) *OrganizationsKeyvaluemapsCreateCall {
39732	c := &OrganizationsKeyvaluemapsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39733	c.parent = parent
39734	c.googlecloudapigeev1keyvaluemap = googlecloudapigeev1keyvaluemap
39735	return c
39736}
39737
39738// Fields allows partial responses to be retrieved. See
39739// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
39740// for more information.
39741func (c *OrganizationsKeyvaluemapsCreateCall) Fields(s ...googleapi.Field) *OrganizationsKeyvaluemapsCreateCall {
39742	c.urlParams_.Set("fields", googleapi.CombineFields(s))
39743	return c
39744}
39745
39746// Context sets the context to be used in this call's Do method. Any
39747// pending HTTP request will be aborted if the provided context is
39748// canceled.
39749func (c *OrganizationsKeyvaluemapsCreateCall) Context(ctx context.Context) *OrganizationsKeyvaluemapsCreateCall {
39750	c.ctx_ = ctx
39751	return c
39752}
39753
39754// Header returns an http.Header that can be modified by the caller to
39755// add HTTP headers to the request.
39756func (c *OrganizationsKeyvaluemapsCreateCall) Header() http.Header {
39757	if c.header_ == nil {
39758		c.header_ = make(http.Header)
39759	}
39760	return c.header_
39761}
39762
39763func (c *OrganizationsKeyvaluemapsCreateCall) doRequest(alt string) (*http.Response, error) {
39764	reqHeaders := make(http.Header)
39765	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
39766	for k, v := range c.header_ {
39767		reqHeaders[k] = v
39768	}
39769	reqHeaders.Set("User-Agent", c.s.userAgent())
39770	var body io.Reader = nil
39771	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1keyvaluemap)
39772	if err != nil {
39773		return nil, err
39774	}
39775	reqHeaders.Set("Content-Type", "application/json")
39776	c.urlParams_.Set("alt", alt)
39777	c.urlParams_.Set("prettyPrint", "false")
39778	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keyvaluemaps")
39779	urls += "?" + c.urlParams_.Encode()
39780	req, err := http.NewRequest("POST", urls, body)
39781	if err != nil {
39782		return nil, err
39783	}
39784	req.Header = reqHeaders
39785	googleapi.Expand(req.URL, map[string]string{
39786		"parent": c.parent,
39787	})
39788	return gensupport.SendRequest(c.ctx_, c.s.client, req)
39789}
39790
39791// Do executes the "apigee.organizations.keyvaluemaps.create" call.
39792// Exactly one of *GoogleCloudApigeeV1KeyValueMap or error will be
39793// non-nil. Any non-2xx status code is an error. Response headers are in
39794// either *GoogleCloudApigeeV1KeyValueMap.ServerResponse.Header or (if a
39795// response was returned at all) in error.(*googleapi.Error).Header. Use
39796// googleapi.IsNotModified to check whether the returned error was
39797// because http.StatusNotModified was returned.
39798func (c *OrganizationsKeyvaluemapsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueMap, error) {
39799	gensupport.SetOptions(c.urlParams_, opts...)
39800	res, err := c.doRequest("json")
39801	if res != nil && res.StatusCode == http.StatusNotModified {
39802		if res.Body != nil {
39803			res.Body.Close()
39804		}
39805		return nil, &googleapi.Error{
39806			Code:   res.StatusCode,
39807			Header: res.Header,
39808		}
39809	}
39810	if err != nil {
39811		return nil, err
39812	}
39813	defer googleapi.CloseBody(res)
39814	if err := googleapi.CheckResponse(res); err != nil {
39815		return nil, err
39816	}
39817	ret := &GoogleCloudApigeeV1KeyValueMap{
39818		ServerResponse: googleapi.ServerResponse{
39819			Header:         res.Header,
39820			HTTPStatusCode: res.StatusCode,
39821		},
39822	}
39823	target := &ret
39824	if err := gensupport.DecodeResponse(target, res); err != nil {
39825		return nil, err
39826	}
39827	return ret, nil
39828	// {
39829	//   "description": "Creates a key value map in an organization.",
39830	//   "flatPath": "v1/organizations/{organizationsId}/keyvaluemaps",
39831	//   "httpMethod": "POST",
39832	//   "id": "apigee.organizations.keyvaluemaps.create",
39833	//   "parameterOrder": [
39834	//     "parent"
39835	//   ],
39836	//   "parameters": {
39837	//     "parent": {
39838	//       "description": "Required. The name of the organization in which to create the key value map file. Must be of the form `organizations/{organization}`.",
39839	//       "location": "path",
39840	//       "pattern": "^organizations/[^/]+$",
39841	//       "required": true,
39842	//       "type": "string"
39843	//     }
39844	//   },
39845	//   "path": "v1/{+parent}/keyvaluemaps",
39846	//   "request": {
39847	//     "$ref": "GoogleCloudApigeeV1KeyValueMap"
39848	//   },
39849	//   "response": {
39850	//     "$ref": "GoogleCloudApigeeV1KeyValueMap"
39851	//   },
39852	//   "scopes": [
39853	//     "https://www.googleapis.com/auth/cloud-platform"
39854	//   ]
39855	// }
39856
39857}
39858
39859// method id "apigee.organizations.keyvaluemaps.delete":
39860
39861type OrganizationsKeyvaluemapsDeleteCall struct {
39862	s          *Service
39863	name       string
39864	urlParams_ gensupport.URLParams
39865	ctx_       context.Context
39866	header_    http.Header
39867}
39868
39869// Delete: Delete a key value map in an organization.
39870//
39871// - name: The name of the key value map. Must be of the form
39872//   `organizations/{organization}/keyvaluemaps/{keyvaluemap}`.
39873func (r *OrganizationsKeyvaluemapsService) Delete(name string) *OrganizationsKeyvaluemapsDeleteCall {
39874	c := &OrganizationsKeyvaluemapsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39875	c.name = name
39876	return c
39877}
39878
39879// Fields allows partial responses to be retrieved. See
39880// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
39881// for more information.
39882func (c *OrganizationsKeyvaluemapsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsKeyvaluemapsDeleteCall {
39883	c.urlParams_.Set("fields", googleapi.CombineFields(s))
39884	return c
39885}
39886
39887// Context sets the context to be used in this call's Do method. Any
39888// pending HTTP request will be aborted if the provided context is
39889// canceled.
39890func (c *OrganizationsKeyvaluemapsDeleteCall) Context(ctx context.Context) *OrganizationsKeyvaluemapsDeleteCall {
39891	c.ctx_ = ctx
39892	return c
39893}
39894
39895// Header returns an http.Header that can be modified by the caller to
39896// add HTTP headers to the request.
39897func (c *OrganizationsKeyvaluemapsDeleteCall) Header() http.Header {
39898	if c.header_ == nil {
39899		c.header_ = make(http.Header)
39900	}
39901	return c.header_
39902}
39903
39904func (c *OrganizationsKeyvaluemapsDeleteCall) doRequest(alt string) (*http.Response, error) {
39905	reqHeaders := make(http.Header)
39906	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
39907	for k, v := range c.header_ {
39908		reqHeaders[k] = v
39909	}
39910	reqHeaders.Set("User-Agent", c.s.userAgent())
39911	var body io.Reader = nil
39912	c.urlParams_.Set("alt", alt)
39913	c.urlParams_.Set("prettyPrint", "false")
39914	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
39915	urls += "?" + c.urlParams_.Encode()
39916	req, err := http.NewRequest("DELETE", urls, body)
39917	if err != nil {
39918		return nil, err
39919	}
39920	req.Header = reqHeaders
39921	googleapi.Expand(req.URL, map[string]string{
39922		"name": c.name,
39923	})
39924	return gensupport.SendRequest(c.ctx_, c.s.client, req)
39925}
39926
39927// Do executes the "apigee.organizations.keyvaluemaps.delete" call.
39928// Exactly one of *GoogleCloudApigeeV1KeyValueMap or error will be
39929// non-nil. Any non-2xx status code is an error. Response headers are in
39930// either *GoogleCloudApigeeV1KeyValueMap.ServerResponse.Header or (if a
39931// response was returned at all) in error.(*googleapi.Error).Header. Use
39932// googleapi.IsNotModified to check whether the returned error was
39933// because http.StatusNotModified was returned.
39934func (c *OrganizationsKeyvaluemapsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueMap, error) {
39935	gensupport.SetOptions(c.urlParams_, opts...)
39936	res, err := c.doRequest("json")
39937	if res != nil && res.StatusCode == http.StatusNotModified {
39938		if res.Body != nil {
39939			res.Body.Close()
39940		}
39941		return nil, &googleapi.Error{
39942			Code:   res.StatusCode,
39943			Header: res.Header,
39944		}
39945	}
39946	if err != nil {
39947		return nil, err
39948	}
39949	defer googleapi.CloseBody(res)
39950	if err := googleapi.CheckResponse(res); err != nil {
39951		return nil, err
39952	}
39953	ret := &GoogleCloudApigeeV1KeyValueMap{
39954		ServerResponse: googleapi.ServerResponse{
39955			Header:         res.Header,
39956			HTTPStatusCode: res.StatusCode,
39957		},
39958	}
39959	target := &ret
39960	if err := gensupport.DecodeResponse(target, res); err != nil {
39961		return nil, err
39962	}
39963	return ret, nil
39964	// {
39965	//   "description": "Delete a key value map in an organization.",
39966	//   "flatPath": "v1/organizations/{organizationsId}/keyvaluemaps/{keyvaluemapsId}",
39967	//   "httpMethod": "DELETE",
39968	//   "id": "apigee.organizations.keyvaluemaps.delete",
39969	//   "parameterOrder": [
39970	//     "name"
39971	//   ],
39972	//   "parameters": {
39973	//     "name": {
39974	//       "description": "Required. The name of the key value map. Must be of the form `organizations/{organization}/keyvaluemaps/{keyvaluemap}`.",
39975	//       "location": "path",
39976	//       "pattern": "^organizations/[^/]+/keyvaluemaps/[^/]+$",
39977	//       "required": true,
39978	//       "type": "string"
39979	//     }
39980	//   },
39981	//   "path": "v1/{+name}",
39982	//   "response": {
39983	//     "$ref": "GoogleCloudApigeeV1KeyValueMap"
39984	//   },
39985	//   "scopes": [
39986	//     "https://www.googleapis.com/auth/cloud-platform"
39987	//   ]
39988	// }
39989
39990}
39991
39992// method id "apigee.organizations.operations.get":
39993
39994type OrganizationsOperationsGetCall struct {
39995	s            *Service
39996	name         string
39997	urlParams_   gensupport.URLParams
39998	ifNoneMatch_ string
39999	ctx_         context.Context
40000	header_      http.Header
40001}
40002
40003// Get: Gets the latest state of a long-running operation. Clients can
40004// use this method to poll the operation result at intervals as
40005// recommended by the API service.
40006//
40007// - name: The name of the operation resource.
40008func (r *OrganizationsOperationsService) Get(name string) *OrganizationsOperationsGetCall {
40009	c := &OrganizationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40010	c.name = name
40011	return c
40012}
40013
40014// Fields allows partial responses to be retrieved. See
40015// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
40016// for more information.
40017func (c *OrganizationsOperationsGetCall) Fields(s ...googleapi.Field) *OrganizationsOperationsGetCall {
40018	c.urlParams_.Set("fields", googleapi.CombineFields(s))
40019	return c
40020}
40021
40022// IfNoneMatch sets the optional parameter which makes the operation
40023// fail if the object's ETag matches the given value. This is useful for
40024// getting updates only after the object has changed since the last
40025// request. Use googleapi.IsNotModified to check whether the response
40026// error from Do is the result of In-None-Match.
40027func (c *OrganizationsOperationsGetCall) IfNoneMatch(entityTag string) *OrganizationsOperationsGetCall {
40028	c.ifNoneMatch_ = entityTag
40029	return c
40030}
40031
40032// Context sets the context to be used in this call's Do method. Any
40033// pending HTTP request will be aborted if the provided context is
40034// canceled.
40035func (c *OrganizationsOperationsGetCall) Context(ctx context.Context) *OrganizationsOperationsGetCall {
40036	c.ctx_ = ctx
40037	return c
40038}
40039
40040// Header returns an http.Header that can be modified by the caller to
40041// add HTTP headers to the request.
40042func (c *OrganizationsOperationsGetCall) Header() http.Header {
40043	if c.header_ == nil {
40044		c.header_ = make(http.Header)
40045	}
40046	return c.header_
40047}
40048
40049func (c *OrganizationsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
40050	reqHeaders := make(http.Header)
40051	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
40052	for k, v := range c.header_ {
40053		reqHeaders[k] = v
40054	}
40055	reqHeaders.Set("User-Agent", c.s.userAgent())
40056	if c.ifNoneMatch_ != "" {
40057		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
40058	}
40059	var body io.Reader = nil
40060	c.urlParams_.Set("alt", alt)
40061	c.urlParams_.Set("prettyPrint", "false")
40062	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
40063	urls += "?" + c.urlParams_.Encode()
40064	req, err := http.NewRequest("GET", urls, body)
40065	if err != nil {
40066		return nil, err
40067	}
40068	req.Header = reqHeaders
40069	googleapi.Expand(req.URL, map[string]string{
40070		"name": c.name,
40071	})
40072	return gensupport.SendRequest(c.ctx_, c.s.client, req)
40073}
40074
40075// Do executes the "apigee.organizations.operations.get" call.
40076// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
40077// Any non-2xx status code is an error. Response headers are in either
40078// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
40079// was returned at all) in error.(*googleapi.Error).Header. Use
40080// googleapi.IsNotModified to check whether the returned error was
40081// because http.StatusNotModified was returned.
40082func (c *OrganizationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
40083	gensupport.SetOptions(c.urlParams_, opts...)
40084	res, err := c.doRequest("json")
40085	if res != nil && res.StatusCode == http.StatusNotModified {
40086		if res.Body != nil {
40087			res.Body.Close()
40088		}
40089		return nil, &googleapi.Error{
40090			Code:   res.StatusCode,
40091			Header: res.Header,
40092		}
40093	}
40094	if err != nil {
40095		return nil, err
40096	}
40097	defer googleapi.CloseBody(res)
40098	if err := googleapi.CheckResponse(res); err != nil {
40099		return nil, err
40100	}
40101	ret := &GoogleLongrunningOperation{
40102		ServerResponse: googleapi.ServerResponse{
40103			Header:         res.Header,
40104			HTTPStatusCode: res.StatusCode,
40105		},
40106	}
40107	target := &ret
40108	if err := gensupport.DecodeResponse(target, res); err != nil {
40109		return nil, err
40110	}
40111	return ret, nil
40112	// {
40113	//   "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.",
40114	//   "flatPath": "v1/organizations/{organizationsId}/operations/{operationsId}",
40115	//   "httpMethod": "GET",
40116	//   "id": "apigee.organizations.operations.get",
40117	//   "parameterOrder": [
40118	//     "name"
40119	//   ],
40120	//   "parameters": {
40121	//     "name": {
40122	//       "description": "The name of the operation resource.",
40123	//       "location": "path",
40124	//       "pattern": "^organizations/[^/]+/operations/[^/]+$",
40125	//       "required": true,
40126	//       "type": "string"
40127	//     }
40128	//   },
40129	//   "path": "v1/{+name}",
40130	//   "response": {
40131	//     "$ref": "GoogleLongrunningOperation"
40132	//   },
40133	//   "scopes": [
40134	//     "https://www.googleapis.com/auth/cloud-platform"
40135	//   ]
40136	// }
40137
40138}
40139
40140// method id "apigee.organizations.operations.list":
40141
40142type OrganizationsOperationsListCall struct {
40143	s            *Service
40144	name         string
40145	urlParams_   gensupport.URLParams
40146	ifNoneMatch_ string
40147	ctx_         context.Context
40148	header_      http.Header
40149}
40150
40151// List: Lists operations that match the specified filter in the
40152// request. If the server doesn't support this method, it returns
40153// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to
40154// override the binding to use different resource name schemes, such as
40155// `users/*/operations`. To override the binding, API services can add a
40156// binding such as "/v1/{name=users/*}/operations" to their service
40157// configuration. For backwards compatibility, the default name includes
40158// the operations collection id, however overriding users must ensure
40159// the name binding is the parent resource, without the operations
40160// collection id.
40161//
40162// - name: The name of the operation's parent resource.
40163func (r *OrganizationsOperationsService) List(name string) *OrganizationsOperationsListCall {
40164	c := &OrganizationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40165	c.name = name
40166	return c
40167}
40168
40169// Filter sets the optional parameter "filter": The standard list
40170// filter.
40171func (c *OrganizationsOperationsListCall) Filter(filter string) *OrganizationsOperationsListCall {
40172	c.urlParams_.Set("filter", filter)
40173	return c
40174}
40175
40176// PageSize sets the optional parameter "pageSize": The standard list
40177// page size.
40178func (c *OrganizationsOperationsListCall) PageSize(pageSize int64) *OrganizationsOperationsListCall {
40179	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
40180	return c
40181}
40182
40183// PageToken sets the optional parameter "pageToken": The standard list
40184// page token.
40185func (c *OrganizationsOperationsListCall) PageToken(pageToken string) *OrganizationsOperationsListCall {
40186	c.urlParams_.Set("pageToken", pageToken)
40187	return c
40188}
40189
40190// Fields allows partial responses to be retrieved. See
40191// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
40192// for more information.
40193func (c *OrganizationsOperationsListCall) Fields(s ...googleapi.Field) *OrganizationsOperationsListCall {
40194	c.urlParams_.Set("fields", googleapi.CombineFields(s))
40195	return c
40196}
40197
40198// IfNoneMatch sets the optional parameter which makes the operation
40199// fail if the object's ETag matches the given value. This is useful for
40200// getting updates only after the object has changed since the last
40201// request. Use googleapi.IsNotModified to check whether the response
40202// error from Do is the result of In-None-Match.
40203func (c *OrganizationsOperationsListCall) IfNoneMatch(entityTag string) *OrganizationsOperationsListCall {
40204	c.ifNoneMatch_ = entityTag
40205	return c
40206}
40207
40208// Context sets the context to be used in this call's Do method. Any
40209// pending HTTP request will be aborted if the provided context is
40210// canceled.
40211func (c *OrganizationsOperationsListCall) Context(ctx context.Context) *OrganizationsOperationsListCall {
40212	c.ctx_ = ctx
40213	return c
40214}
40215
40216// Header returns an http.Header that can be modified by the caller to
40217// add HTTP headers to the request.
40218func (c *OrganizationsOperationsListCall) Header() http.Header {
40219	if c.header_ == nil {
40220		c.header_ = make(http.Header)
40221	}
40222	return c.header_
40223}
40224
40225func (c *OrganizationsOperationsListCall) doRequest(alt string) (*http.Response, error) {
40226	reqHeaders := make(http.Header)
40227	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
40228	for k, v := range c.header_ {
40229		reqHeaders[k] = v
40230	}
40231	reqHeaders.Set("User-Agent", c.s.userAgent())
40232	if c.ifNoneMatch_ != "" {
40233		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
40234	}
40235	var body io.Reader = nil
40236	c.urlParams_.Set("alt", alt)
40237	c.urlParams_.Set("prettyPrint", "false")
40238	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations")
40239	urls += "?" + c.urlParams_.Encode()
40240	req, err := http.NewRequest("GET", urls, body)
40241	if err != nil {
40242		return nil, err
40243	}
40244	req.Header = reqHeaders
40245	googleapi.Expand(req.URL, map[string]string{
40246		"name": c.name,
40247	})
40248	return gensupport.SendRequest(c.ctx_, c.s.client, req)
40249}
40250
40251// Do executes the "apigee.organizations.operations.list" call.
40252// Exactly one of *GoogleLongrunningListOperationsResponse or error will
40253// be non-nil. Any non-2xx status code is an error. Response headers are
40254// in either
40255// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if
40256// a response was returned at all) in error.(*googleapi.Error).Header.
40257// Use googleapi.IsNotModified to check whether the returned error was
40258// because http.StatusNotModified was returned.
40259func (c *OrganizationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
40260	gensupport.SetOptions(c.urlParams_, opts...)
40261	res, err := c.doRequest("json")
40262	if res != nil && res.StatusCode == http.StatusNotModified {
40263		if res.Body != nil {
40264			res.Body.Close()
40265		}
40266		return nil, &googleapi.Error{
40267			Code:   res.StatusCode,
40268			Header: res.Header,
40269		}
40270	}
40271	if err != nil {
40272		return nil, err
40273	}
40274	defer googleapi.CloseBody(res)
40275	if err := googleapi.CheckResponse(res); err != nil {
40276		return nil, err
40277	}
40278	ret := &GoogleLongrunningListOperationsResponse{
40279		ServerResponse: googleapi.ServerResponse{
40280			Header:         res.Header,
40281			HTTPStatusCode: res.StatusCode,
40282		},
40283	}
40284	target := &ret
40285	if err := gensupport.DecodeResponse(target, res); err != nil {
40286		return nil, err
40287	}
40288	return ret, nil
40289	// {
40290	//   "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.",
40291	//   "flatPath": "v1/organizations/{organizationsId}/operations",
40292	//   "httpMethod": "GET",
40293	//   "id": "apigee.organizations.operations.list",
40294	//   "parameterOrder": [
40295	//     "name"
40296	//   ],
40297	//   "parameters": {
40298	//     "filter": {
40299	//       "description": "The standard list filter.",
40300	//       "location": "query",
40301	//       "type": "string"
40302	//     },
40303	//     "name": {
40304	//       "description": "The name of the operation's parent resource.",
40305	//       "location": "path",
40306	//       "pattern": "^organizations/[^/]+$",
40307	//       "required": true,
40308	//       "type": "string"
40309	//     },
40310	//     "pageSize": {
40311	//       "description": "The standard list page size.",
40312	//       "format": "int32",
40313	//       "location": "query",
40314	//       "type": "integer"
40315	//     },
40316	//     "pageToken": {
40317	//       "description": "The standard list page token.",
40318	//       "location": "query",
40319	//       "type": "string"
40320	//     }
40321	//   },
40322	//   "path": "v1/{+name}/operations",
40323	//   "response": {
40324	//     "$ref": "GoogleLongrunningListOperationsResponse"
40325	//   },
40326	//   "scopes": [
40327	//     "https://www.googleapis.com/auth/cloud-platform"
40328	//   ]
40329	// }
40330
40331}
40332
40333// Pages invokes f for each page of results.
40334// A non-nil error returned from f will halt the iteration.
40335// The provided context supersedes any context provided to the Context method.
40336func (c *OrganizationsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
40337	c.ctx_ = ctx
40338	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
40339	for {
40340		x, err := c.Do()
40341		if err != nil {
40342			return err
40343		}
40344		if err := f(x); err != nil {
40345			return err
40346		}
40347		if x.NextPageToken == "" {
40348			return nil
40349		}
40350		c.PageToken(x.NextPageToken)
40351	}
40352}
40353
40354// method id "apigee.organizations.optimizedHostStats.get":
40355
40356type OrganizationsOptimizedHostStatsGetCall struct {
40357	s            *Service
40358	name         string
40359	urlParams_   gensupport.URLParams
40360	ifNoneMatch_ string
40361	ctx_         context.Context
40362	header_      http.Header
40363}
40364
40365// Get: This api is similar to GetHostStats except that the response is
40366// less verbose.
40367//
40368// - name: The resource name for which the interactive query will be
40369//   executed. Must be of the form
40370//   `organizations/{organization_id}/optimizedHostStats/{dimensions}`.
40371//   Dimensions let you view metrics in meaningful groupings. E.g.
40372//   apiproxy, target_host. The value of dimensions should be comma
40373//   separated list as shown below
40374//   `organizations/{org}/optimizedHostStats/apiproxy,request_verb`.
40375func (r *OrganizationsOptimizedHostStatsService) Get(name string) *OrganizationsOptimizedHostStatsGetCall {
40376	c := &OrganizationsOptimizedHostStatsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40377	c.name = name
40378	return c
40379}
40380
40381// Accuracy sets the optional parameter "accuracy": Legacy field: not
40382// used anymore.
40383func (c *OrganizationsOptimizedHostStatsGetCall) Accuracy(accuracy string) *OrganizationsOptimizedHostStatsGetCall {
40384	c.urlParams_.Set("accuracy", accuracy)
40385	return c
40386}
40387
40388// EnvgroupHostname sets the optional parameter "envgroupHostname":
40389// Required. The hostname for which the interactive query will be
40390// executed.
40391func (c *OrganizationsOptimizedHostStatsGetCall) EnvgroupHostname(envgroupHostname string) *OrganizationsOptimizedHostStatsGetCall {
40392	c.urlParams_.Set("envgroupHostname", envgroupHostname)
40393	return c
40394}
40395
40396// Filter sets the optional parameter "filter": Enables drill-down on
40397// specific dimension values.
40398func (c *OrganizationsOptimizedHostStatsGetCall) Filter(filter string) *OrganizationsOptimizedHostStatsGetCall {
40399	c.urlParams_.Set("filter", filter)
40400	return c
40401}
40402
40403// Limit sets the optional parameter "limit": This parameter is used to
40404// limit the number of result items. Default and the max value is 14400.
40405func (c *OrganizationsOptimizedHostStatsGetCall) Limit(limit string) *OrganizationsOptimizedHostStatsGetCall {
40406	c.urlParams_.Set("limit", limit)
40407	return c
40408}
40409
40410// Offset sets the optional parameter "offset": Use offset with limit to
40411// enable pagination of results. For example, to display results 11-20,
40412// set limit to '10' and offset to '10'.
40413func (c *OrganizationsOptimizedHostStatsGetCall) Offset(offset string) *OrganizationsOptimizedHostStatsGetCall {
40414	c.urlParams_.Set("offset", offset)
40415	return c
40416}
40417
40418// Realtime sets the optional parameter "realtime": Legacy field: not
40419// used anymore.
40420func (c *OrganizationsOptimizedHostStatsGetCall) Realtime(realtime bool) *OrganizationsOptimizedHostStatsGetCall {
40421	c.urlParams_.Set("realtime", fmt.Sprint(realtime))
40422	return c
40423}
40424
40425// Select sets the optional parameter "select": Required. The select
40426// parameter contains a comma separated list of metrics. E.g.
40427// sum(message_count),sum(error_count)
40428func (c *OrganizationsOptimizedHostStatsGetCall) Select(select_ string) *OrganizationsOptimizedHostStatsGetCall {
40429	c.urlParams_.Set("select", select_)
40430	return c
40431}
40432
40433// Sort sets the optional parameter "sort": This parameter specifies if
40434// the sort order should be ascending or descending Supported values are
40435// DESC and ASC.
40436func (c *OrganizationsOptimizedHostStatsGetCall) Sort(sort string) *OrganizationsOptimizedHostStatsGetCall {
40437	c.urlParams_.Set("sort", sort)
40438	return c
40439}
40440
40441// Sortby sets the optional parameter "sortby": Comma separated list of
40442// columns to sort the final result.
40443func (c *OrganizationsOptimizedHostStatsGetCall) Sortby(sortby string) *OrganizationsOptimizedHostStatsGetCall {
40444	c.urlParams_.Set("sortby", sortby)
40445	return c
40446}
40447
40448// TimeRange sets the optional parameter "timeRange": Required. Time
40449// interval for the interactive query. Time range is specified as
40450// start~end. E.g 04/15/2017 00:00~05/15/2017 23:59.
40451func (c *OrganizationsOptimizedHostStatsGetCall) TimeRange(timeRange string) *OrganizationsOptimizedHostStatsGetCall {
40452	c.urlParams_.Set("timeRange", timeRange)
40453	return c
40454}
40455
40456// TimeUnit sets the optional parameter "timeUnit": A value of second,
40457// minute, hour, day, week, month. Time Unit specifies the granularity
40458// of metrics returned.
40459func (c *OrganizationsOptimizedHostStatsGetCall) TimeUnit(timeUnit string) *OrganizationsOptimizedHostStatsGetCall {
40460	c.urlParams_.Set("timeUnit", timeUnit)
40461	return c
40462}
40463
40464// Topk sets the optional parameter "topk": Take 'top k' results from
40465// results, for example, to return the top 5 results 'topk=5'.
40466func (c *OrganizationsOptimizedHostStatsGetCall) Topk(topk string) *OrganizationsOptimizedHostStatsGetCall {
40467	c.urlParams_.Set("topk", topk)
40468	return c
40469}
40470
40471// TsAscending sets the optional parameter "tsAscending": Lists
40472// timestamps in ascending order if set to true. Recommend setting this
40473// value to true if you are using sortby with sort=DESC.
40474func (c *OrganizationsOptimizedHostStatsGetCall) TsAscending(tsAscending bool) *OrganizationsOptimizedHostStatsGetCall {
40475	c.urlParams_.Set("tsAscending", fmt.Sprint(tsAscending))
40476	return c
40477}
40478
40479// Tzo sets the optional parameter "tzo": This parameters contains the
40480// timezone offset value.
40481func (c *OrganizationsOptimizedHostStatsGetCall) Tzo(tzo string) *OrganizationsOptimizedHostStatsGetCall {
40482	c.urlParams_.Set("tzo", tzo)
40483	return c
40484}
40485
40486// Fields allows partial responses to be retrieved. See
40487// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
40488// for more information.
40489func (c *OrganizationsOptimizedHostStatsGetCall) Fields(s ...googleapi.Field) *OrganizationsOptimizedHostStatsGetCall {
40490	c.urlParams_.Set("fields", googleapi.CombineFields(s))
40491	return c
40492}
40493
40494// IfNoneMatch sets the optional parameter which makes the operation
40495// fail if the object's ETag matches the given value. This is useful for
40496// getting updates only after the object has changed since the last
40497// request. Use googleapi.IsNotModified to check whether the response
40498// error from Do is the result of In-None-Match.
40499func (c *OrganizationsOptimizedHostStatsGetCall) IfNoneMatch(entityTag string) *OrganizationsOptimizedHostStatsGetCall {
40500	c.ifNoneMatch_ = entityTag
40501	return c
40502}
40503
40504// Context sets the context to be used in this call's Do method. Any
40505// pending HTTP request will be aborted if the provided context is
40506// canceled.
40507func (c *OrganizationsOptimizedHostStatsGetCall) Context(ctx context.Context) *OrganizationsOptimizedHostStatsGetCall {
40508	c.ctx_ = ctx
40509	return c
40510}
40511
40512// Header returns an http.Header that can be modified by the caller to
40513// add HTTP headers to the request.
40514func (c *OrganizationsOptimizedHostStatsGetCall) Header() http.Header {
40515	if c.header_ == nil {
40516		c.header_ = make(http.Header)
40517	}
40518	return c.header_
40519}
40520
40521func (c *OrganizationsOptimizedHostStatsGetCall) doRequest(alt string) (*http.Response, error) {
40522	reqHeaders := make(http.Header)
40523	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
40524	for k, v := range c.header_ {
40525		reqHeaders[k] = v
40526	}
40527	reqHeaders.Set("User-Agent", c.s.userAgent())
40528	if c.ifNoneMatch_ != "" {
40529		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
40530	}
40531	var body io.Reader = nil
40532	c.urlParams_.Set("alt", alt)
40533	c.urlParams_.Set("prettyPrint", "false")
40534	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
40535	urls += "?" + c.urlParams_.Encode()
40536	req, err := http.NewRequest("GET", urls, body)
40537	if err != nil {
40538		return nil, err
40539	}
40540	req.Header = reqHeaders
40541	googleapi.Expand(req.URL, map[string]string{
40542		"name": c.name,
40543	})
40544	return gensupport.SendRequest(c.ctx_, c.s.client, req)
40545}
40546
40547// Do executes the "apigee.organizations.optimizedHostStats.get" call.
40548// Exactly one of *GoogleCloudApigeeV1OptimizedStats or error will be
40549// non-nil. Any non-2xx status code is an error. Response headers are in
40550// either *GoogleCloudApigeeV1OptimizedStats.ServerResponse.Header or
40551// (if a response was returned at all) in
40552// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
40553// whether the returned error was because http.StatusNotModified was
40554// returned.
40555func (c *OrganizationsOptimizedHostStatsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1OptimizedStats, error) {
40556	gensupport.SetOptions(c.urlParams_, opts...)
40557	res, err := c.doRequest("json")
40558	if res != nil && res.StatusCode == http.StatusNotModified {
40559		if res.Body != nil {
40560			res.Body.Close()
40561		}
40562		return nil, &googleapi.Error{
40563			Code:   res.StatusCode,
40564			Header: res.Header,
40565		}
40566	}
40567	if err != nil {
40568		return nil, err
40569	}
40570	defer googleapi.CloseBody(res)
40571	if err := googleapi.CheckResponse(res); err != nil {
40572		return nil, err
40573	}
40574	ret := &GoogleCloudApigeeV1OptimizedStats{
40575		ServerResponse: googleapi.ServerResponse{
40576			Header:         res.Header,
40577			HTTPStatusCode: res.StatusCode,
40578		},
40579	}
40580	target := &ret
40581	if err := gensupport.DecodeResponse(target, res); err != nil {
40582		return nil, err
40583	}
40584	return ret, nil
40585	// {
40586	//   "description": "This api is similar to GetHostStats except that the response is less verbose.",
40587	//   "flatPath": "v1/organizations/{organizationsId}/optimizedHostStats/{optimizedHostStatsId}",
40588	//   "httpMethod": "GET",
40589	//   "id": "apigee.organizations.optimizedHostStats.get",
40590	//   "parameterOrder": [
40591	//     "name"
40592	//   ],
40593	//   "parameters": {
40594	//     "accuracy": {
40595	//       "description": "Legacy field: not used anymore.",
40596	//       "location": "query",
40597	//       "type": "string"
40598	//     },
40599	//     "envgroupHostname": {
40600	//       "description": "Required. The hostname for which the interactive query will be executed.",
40601	//       "location": "query",
40602	//       "type": "string"
40603	//     },
40604	//     "filter": {
40605	//       "description": "Enables drill-down on specific dimension values.",
40606	//       "location": "query",
40607	//       "type": "string"
40608	//     },
40609	//     "limit": {
40610	//       "description": "This parameter is used to limit the number of result items. Default and the max value is 14400.",
40611	//       "location": "query",
40612	//       "type": "string"
40613	//     },
40614	//     "name": {
40615	//       "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`",
40616	//       "location": "path",
40617	//       "pattern": "^organizations/[^/]+/optimizedHostStats/.*$",
40618	//       "required": true,
40619	//       "type": "string"
40620	//     },
40621	//     "offset": {
40622	//       "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'.",
40623	//       "location": "query",
40624	//       "type": "string"
40625	//     },
40626	//     "realtime": {
40627	//       "description": "Legacy field: not used anymore.",
40628	//       "location": "query",
40629	//       "type": "boolean"
40630	//     },
40631	//     "select": {
40632	//       "description": "Required. The select parameter contains a comma separated list of metrics. E.g. sum(message_count),sum(error_count)",
40633	//       "location": "query",
40634	//       "type": "string"
40635	//     },
40636	//     "sort": {
40637	//       "description": "This parameter specifies if the sort order should be ascending or descending Supported values are DESC and ASC.",
40638	//       "location": "query",
40639	//       "type": "string"
40640	//     },
40641	//     "sortby": {
40642	//       "description": "Comma separated list of columns to sort the final result.",
40643	//       "location": "query",
40644	//       "type": "string"
40645	//     },
40646	//     "timeRange": {
40647	//       "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.",
40648	//       "location": "query",
40649	//       "type": "string"
40650	//     },
40651	//     "timeUnit": {
40652	//       "description": "A value of second, minute, hour, day, week, month. Time Unit specifies the granularity of metrics returned.",
40653	//       "location": "query",
40654	//       "type": "string"
40655	//     },
40656	//     "topk": {
40657	//       "description": "Take 'top k' results from results, for example, to return the top 5 results 'topk=5'.",
40658	//       "location": "query",
40659	//       "type": "string"
40660	//     },
40661	//     "tsAscending": {
40662	//       "description": "Lists timestamps in ascending order if set to true. Recommend setting this value to true if you are using sortby with sort=DESC.",
40663	//       "location": "query",
40664	//       "type": "boolean"
40665	//     },
40666	//     "tzo": {
40667	//       "description": "This parameters contains the timezone offset value.",
40668	//       "location": "query",
40669	//       "type": "string"
40670	//     }
40671	//   },
40672	//   "path": "v1/{+name}",
40673	//   "response": {
40674	//     "$ref": "GoogleCloudApigeeV1OptimizedStats"
40675	//   },
40676	//   "scopes": [
40677	//     "https://www.googleapis.com/auth/cloud-platform"
40678	//   ]
40679	// }
40680
40681}
40682
40683// method id "apigee.organizations.reports.create":
40684
40685type OrganizationsReportsCreateCall struct {
40686	s                               *Service
40687	parent                          string
40688	googlecloudapigeev1customreport *GoogleCloudApigeeV1CustomReport
40689	urlParams_                      gensupport.URLParams
40690	ctx_                            context.Context
40691	header_                         http.Header
40692}
40693
40694// Create: Creates a Custom Report for an Organization. A Custom Report
40695// provides Apigee Customers to create custom dashboards in addition to
40696// the standard dashboards which are provided. The Custom Report in its
40697// simplest form contains specifications about metrics, dimensions and
40698// filters. It is important to note that the custom report by itself
40699// does not provide an executable entity. The Edge UI converts the
40700// custom report definition into an analytics query and displays the
40701// result in a chart.
40702//
40703// - parent: The parent organization name under which the Custom Report
40704//   will be created. Must be of the form:
40705//   `organizations/{organization_id}/reports`.
40706func (r *OrganizationsReportsService) Create(parent string, googlecloudapigeev1customreport *GoogleCloudApigeeV1CustomReport) *OrganizationsReportsCreateCall {
40707	c := &OrganizationsReportsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40708	c.parent = parent
40709	c.googlecloudapigeev1customreport = googlecloudapigeev1customreport
40710	return c
40711}
40712
40713// Fields allows partial responses to be retrieved. See
40714// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
40715// for more information.
40716func (c *OrganizationsReportsCreateCall) Fields(s ...googleapi.Field) *OrganizationsReportsCreateCall {
40717	c.urlParams_.Set("fields", googleapi.CombineFields(s))
40718	return c
40719}
40720
40721// Context sets the context to be used in this call's Do method. Any
40722// pending HTTP request will be aborted if the provided context is
40723// canceled.
40724func (c *OrganizationsReportsCreateCall) Context(ctx context.Context) *OrganizationsReportsCreateCall {
40725	c.ctx_ = ctx
40726	return c
40727}
40728
40729// Header returns an http.Header that can be modified by the caller to
40730// add HTTP headers to the request.
40731func (c *OrganizationsReportsCreateCall) Header() http.Header {
40732	if c.header_ == nil {
40733		c.header_ = make(http.Header)
40734	}
40735	return c.header_
40736}
40737
40738func (c *OrganizationsReportsCreateCall) doRequest(alt string) (*http.Response, error) {
40739	reqHeaders := make(http.Header)
40740	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
40741	for k, v := range c.header_ {
40742		reqHeaders[k] = v
40743	}
40744	reqHeaders.Set("User-Agent", c.s.userAgent())
40745	var body io.Reader = nil
40746	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1customreport)
40747	if err != nil {
40748		return nil, err
40749	}
40750	reqHeaders.Set("Content-Type", "application/json")
40751	c.urlParams_.Set("alt", alt)
40752	c.urlParams_.Set("prettyPrint", "false")
40753	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/reports")
40754	urls += "?" + c.urlParams_.Encode()
40755	req, err := http.NewRequest("POST", urls, body)
40756	if err != nil {
40757		return nil, err
40758	}
40759	req.Header = reqHeaders
40760	googleapi.Expand(req.URL, map[string]string{
40761		"parent": c.parent,
40762	})
40763	return gensupport.SendRequest(c.ctx_, c.s.client, req)
40764}
40765
40766// Do executes the "apigee.organizations.reports.create" call.
40767// Exactly one of *GoogleCloudApigeeV1CustomReport or error will be
40768// non-nil. Any non-2xx status code is an error. Response headers are in
40769// either *GoogleCloudApigeeV1CustomReport.ServerResponse.Header or (if
40770// a response was returned at all) in error.(*googleapi.Error).Header.
40771// Use googleapi.IsNotModified to check whether the returned error was
40772// because http.StatusNotModified was returned.
40773func (c *OrganizationsReportsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1CustomReport, error) {
40774	gensupport.SetOptions(c.urlParams_, opts...)
40775	res, err := c.doRequest("json")
40776	if res != nil && res.StatusCode == http.StatusNotModified {
40777		if res.Body != nil {
40778			res.Body.Close()
40779		}
40780		return nil, &googleapi.Error{
40781			Code:   res.StatusCode,
40782			Header: res.Header,
40783		}
40784	}
40785	if err != nil {
40786		return nil, err
40787	}
40788	defer googleapi.CloseBody(res)
40789	if err := googleapi.CheckResponse(res); err != nil {
40790		return nil, err
40791	}
40792	ret := &GoogleCloudApigeeV1CustomReport{
40793		ServerResponse: googleapi.ServerResponse{
40794			Header:         res.Header,
40795			HTTPStatusCode: res.StatusCode,
40796		},
40797	}
40798	target := &ret
40799	if err := gensupport.DecodeResponse(target, res); err != nil {
40800		return nil, err
40801	}
40802	return ret, nil
40803	// {
40804	//   "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.",
40805	//   "flatPath": "v1/organizations/{organizationsId}/reports",
40806	//   "httpMethod": "POST",
40807	//   "id": "apigee.organizations.reports.create",
40808	//   "parameterOrder": [
40809	//     "parent"
40810	//   ],
40811	//   "parameters": {
40812	//     "parent": {
40813	//       "description": "Required. The parent organization name under which the Custom Report will be created. Must be of the form: `organizations/{organization_id}/reports`",
40814	//       "location": "path",
40815	//       "pattern": "^organizations/[^/]+$",
40816	//       "required": true,
40817	//       "type": "string"
40818	//     }
40819	//   },
40820	//   "path": "v1/{+parent}/reports",
40821	//   "request": {
40822	//     "$ref": "GoogleCloudApigeeV1CustomReport"
40823	//   },
40824	//   "response": {
40825	//     "$ref": "GoogleCloudApigeeV1CustomReport"
40826	//   },
40827	//   "scopes": [
40828	//     "https://www.googleapis.com/auth/cloud-platform"
40829	//   ]
40830	// }
40831
40832}
40833
40834// method id "apigee.organizations.reports.delete":
40835
40836type OrganizationsReportsDeleteCall struct {
40837	s          *Service
40838	name       string
40839	urlParams_ gensupport.URLParams
40840	ctx_       context.Context
40841	header_    http.Header
40842}
40843
40844// Delete: Deletes an existing custom report definition
40845//
40846// - name: Custom Report name of the form:
40847//   `organizations/{organization_id}/reports/{report_name}`.
40848func (r *OrganizationsReportsService) Delete(name string) *OrganizationsReportsDeleteCall {
40849	c := &OrganizationsReportsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40850	c.name = name
40851	return c
40852}
40853
40854// Fields allows partial responses to be retrieved. See
40855// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
40856// for more information.
40857func (c *OrganizationsReportsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsReportsDeleteCall {
40858	c.urlParams_.Set("fields", googleapi.CombineFields(s))
40859	return c
40860}
40861
40862// Context sets the context to be used in this call's Do method. Any
40863// pending HTTP request will be aborted if the provided context is
40864// canceled.
40865func (c *OrganizationsReportsDeleteCall) Context(ctx context.Context) *OrganizationsReportsDeleteCall {
40866	c.ctx_ = ctx
40867	return c
40868}
40869
40870// Header returns an http.Header that can be modified by the caller to
40871// add HTTP headers to the request.
40872func (c *OrganizationsReportsDeleteCall) Header() http.Header {
40873	if c.header_ == nil {
40874		c.header_ = make(http.Header)
40875	}
40876	return c.header_
40877}
40878
40879func (c *OrganizationsReportsDeleteCall) doRequest(alt string) (*http.Response, error) {
40880	reqHeaders := make(http.Header)
40881	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
40882	for k, v := range c.header_ {
40883		reqHeaders[k] = v
40884	}
40885	reqHeaders.Set("User-Agent", c.s.userAgent())
40886	var body io.Reader = nil
40887	c.urlParams_.Set("alt", alt)
40888	c.urlParams_.Set("prettyPrint", "false")
40889	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
40890	urls += "?" + c.urlParams_.Encode()
40891	req, err := http.NewRequest("DELETE", urls, body)
40892	if err != nil {
40893		return nil, err
40894	}
40895	req.Header = reqHeaders
40896	googleapi.Expand(req.URL, map[string]string{
40897		"name": c.name,
40898	})
40899	return gensupport.SendRequest(c.ctx_, c.s.client, req)
40900}
40901
40902// Do executes the "apigee.organizations.reports.delete" call.
40903// Exactly one of *GoogleCloudApigeeV1DeleteCustomReportResponse or
40904// error will be non-nil. Any non-2xx status code is an error. Response
40905// headers are in either
40906// *GoogleCloudApigeeV1DeleteCustomReportResponse.ServerResponse.Header
40907// or (if a response was returned at all) in
40908// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
40909// whether the returned error was because http.StatusNotModified was
40910// returned.
40911func (c *OrganizationsReportsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeleteCustomReportResponse, error) {
40912	gensupport.SetOptions(c.urlParams_, opts...)
40913	res, err := c.doRequest("json")
40914	if res != nil && res.StatusCode == http.StatusNotModified {
40915		if res.Body != nil {
40916			res.Body.Close()
40917		}
40918		return nil, &googleapi.Error{
40919			Code:   res.StatusCode,
40920			Header: res.Header,
40921		}
40922	}
40923	if err != nil {
40924		return nil, err
40925	}
40926	defer googleapi.CloseBody(res)
40927	if err := googleapi.CheckResponse(res); err != nil {
40928		return nil, err
40929	}
40930	ret := &GoogleCloudApigeeV1DeleteCustomReportResponse{
40931		ServerResponse: googleapi.ServerResponse{
40932			Header:         res.Header,
40933			HTTPStatusCode: res.StatusCode,
40934		},
40935	}
40936	target := &ret
40937	if err := gensupport.DecodeResponse(target, res); err != nil {
40938		return nil, err
40939	}
40940	return ret, nil
40941	// {
40942	//   "description": "Deletes an existing custom report definition",
40943	//   "flatPath": "v1/organizations/{organizationsId}/reports/{reportsId}",
40944	//   "httpMethod": "DELETE",
40945	//   "id": "apigee.organizations.reports.delete",
40946	//   "parameterOrder": [
40947	//     "name"
40948	//   ],
40949	//   "parameters": {
40950	//     "name": {
40951	//       "description": "Required. Custom Report name of the form: `organizations/{organization_id}/reports/{report_name}`",
40952	//       "location": "path",
40953	//       "pattern": "^organizations/[^/]+/reports/[^/]+$",
40954	//       "required": true,
40955	//       "type": "string"
40956	//     }
40957	//   },
40958	//   "path": "v1/{+name}",
40959	//   "response": {
40960	//     "$ref": "GoogleCloudApigeeV1DeleteCustomReportResponse"
40961	//   },
40962	//   "scopes": [
40963	//     "https://www.googleapis.com/auth/cloud-platform"
40964	//   ]
40965	// }
40966
40967}
40968
40969// method id "apigee.organizations.reports.get":
40970
40971type OrganizationsReportsGetCall struct {
40972	s            *Service
40973	name         string
40974	urlParams_   gensupport.URLParams
40975	ifNoneMatch_ string
40976	ctx_         context.Context
40977	header_      http.Header
40978}
40979
40980// Get: Retrieve a custom report definition.
40981//
40982// - name: Custom Report name of the form:
40983//   `organizations/{organization_id}/reports/{report_name}`.
40984func (r *OrganizationsReportsService) Get(name string) *OrganizationsReportsGetCall {
40985	c := &OrganizationsReportsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40986	c.name = name
40987	return c
40988}
40989
40990// Fields allows partial responses to be retrieved. See
40991// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
40992// for more information.
40993func (c *OrganizationsReportsGetCall) Fields(s ...googleapi.Field) *OrganizationsReportsGetCall {
40994	c.urlParams_.Set("fields", googleapi.CombineFields(s))
40995	return c
40996}
40997
40998// IfNoneMatch sets the optional parameter which makes the operation
40999// fail if the object's ETag matches the given value. This is useful for
41000// getting updates only after the object has changed since the last
41001// request. Use googleapi.IsNotModified to check whether the response
41002// error from Do is the result of In-None-Match.
41003func (c *OrganizationsReportsGetCall) IfNoneMatch(entityTag string) *OrganizationsReportsGetCall {
41004	c.ifNoneMatch_ = entityTag
41005	return c
41006}
41007
41008// Context sets the context to be used in this call's Do method. Any
41009// pending HTTP request will be aborted if the provided context is
41010// canceled.
41011func (c *OrganizationsReportsGetCall) Context(ctx context.Context) *OrganizationsReportsGetCall {
41012	c.ctx_ = ctx
41013	return c
41014}
41015
41016// Header returns an http.Header that can be modified by the caller to
41017// add HTTP headers to the request.
41018func (c *OrganizationsReportsGetCall) Header() http.Header {
41019	if c.header_ == nil {
41020		c.header_ = make(http.Header)
41021	}
41022	return c.header_
41023}
41024
41025func (c *OrganizationsReportsGetCall) doRequest(alt string) (*http.Response, error) {
41026	reqHeaders := make(http.Header)
41027	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
41028	for k, v := range c.header_ {
41029		reqHeaders[k] = v
41030	}
41031	reqHeaders.Set("User-Agent", c.s.userAgent())
41032	if c.ifNoneMatch_ != "" {
41033		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
41034	}
41035	var body io.Reader = nil
41036	c.urlParams_.Set("alt", alt)
41037	c.urlParams_.Set("prettyPrint", "false")
41038	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
41039	urls += "?" + c.urlParams_.Encode()
41040	req, err := http.NewRequest("GET", urls, body)
41041	if err != nil {
41042		return nil, err
41043	}
41044	req.Header = reqHeaders
41045	googleapi.Expand(req.URL, map[string]string{
41046		"name": c.name,
41047	})
41048	return gensupport.SendRequest(c.ctx_, c.s.client, req)
41049}
41050
41051// Do executes the "apigee.organizations.reports.get" call.
41052// Exactly one of *GoogleCloudApigeeV1CustomReport or error will be
41053// non-nil. Any non-2xx status code is an error. Response headers are in
41054// either *GoogleCloudApigeeV1CustomReport.ServerResponse.Header or (if
41055// a response was returned at all) in error.(*googleapi.Error).Header.
41056// Use googleapi.IsNotModified to check whether the returned error was
41057// because http.StatusNotModified was returned.
41058func (c *OrganizationsReportsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1CustomReport, error) {
41059	gensupport.SetOptions(c.urlParams_, opts...)
41060	res, err := c.doRequest("json")
41061	if res != nil && res.StatusCode == http.StatusNotModified {
41062		if res.Body != nil {
41063			res.Body.Close()
41064		}
41065		return nil, &googleapi.Error{
41066			Code:   res.StatusCode,
41067			Header: res.Header,
41068		}
41069	}
41070	if err != nil {
41071		return nil, err
41072	}
41073	defer googleapi.CloseBody(res)
41074	if err := googleapi.CheckResponse(res); err != nil {
41075		return nil, err
41076	}
41077	ret := &GoogleCloudApigeeV1CustomReport{
41078		ServerResponse: googleapi.ServerResponse{
41079			Header:         res.Header,
41080			HTTPStatusCode: res.StatusCode,
41081		},
41082	}
41083	target := &ret
41084	if err := gensupport.DecodeResponse(target, res); err != nil {
41085		return nil, err
41086	}
41087	return ret, nil
41088	// {
41089	//   "description": "Retrieve a custom report definition.",
41090	//   "flatPath": "v1/organizations/{organizationsId}/reports/{reportsId}",
41091	//   "httpMethod": "GET",
41092	//   "id": "apigee.organizations.reports.get",
41093	//   "parameterOrder": [
41094	//     "name"
41095	//   ],
41096	//   "parameters": {
41097	//     "name": {
41098	//       "description": "Required. Custom Report name of the form: `organizations/{organization_id}/reports/{report_name}`",
41099	//       "location": "path",
41100	//       "pattern": "^organizations/[^/]+/reports/[^/]+$",
41101	//       "required": true,
41102	//       "type": "string"
41103	//     }
41104	//   },
41105	//   "path": "v1/{+name}",
41106	//   "response": {
41107	//     "$ref": "GoogleCloudApigeeV1CustomReport"
41108	//   },
41109	//   "scopes": [
41110	//     "https://www.googleapis.com/auth/cloud-platform"
41111	//   ]
41112	// }
41113
41114}
41115
41116// method id "apigee.organizations.reports.list":
41117
41118type OrganizationsReportsListCall struct {
41119	s            *Service
41120	parent       string
41121	urlParams_   gensupport.URLParams
41122	ifNoneMatch_ string
41123	ctx_         context.Context
41124	header_      http.Header
41125}
41126
41127// List: Return a list of Custom Reports
41128//
41129// - parent: The parent organization name under which the API product
41130//   will be listed `organizations/{organization_id}/reports`.
41131func (r *OrganizationsReportsService) List(parent string) *OrganizationsReportsListCall {
41132	c := &OrganizationsReportsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41133	c.parent = parent
41134	return c
41135}
41136
41137// Expand sets the optional parameter "expand": Set to 'true' to get
41138// expanded details about each custom report.
41139func (c *OrganizationsReportsListCall) Expand(expand bool) *OrganizationsReportsListCall {
41140	c.urlParams_.Set("expand", fmt.Sprint(expand))
41141	return c
41142}
41143
41144// Fields allows partial responses to be retrieved. See
41145// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
41146// for more information.
41147func (c *OrganizationsReportsListCall) Fields(s ...googleapi.Field) *OrganizationsReportsListCall {
41148	c.urlParams_.Set("fields", googleapi.CombineFields(s))
41149	return c
41150}
41151
41152// IfNoneMatch sets the optional parameter which makes the operation
41153// fail if the object's ETag matches the given value. This is useful for
41154// getting updates only after the object has changed since the last
41155// request. Use googleapi.IsNotModified to check whether the response
41156// error from Do is the result of In-None-Match.
41157func (c *OrganizationsReportsListCall) IfNoneMatch(entityTag string) *OrganizationsReportsListCall {
41158	c.ifNoneMatch_ = entityTag
41159	return c
41160}
41161
41162// Context sets the context to be used in this call's Do method. Any
41163// pending HTTP request will be aborted if the provided context is
41164// canceled.
41165func (c *OrganizationsReportsListCall) Context(ctx context.Context) *OrganizationsReportsListCall {
41166	c.ctx_ = ctx
41167	return c
41168}
41169
41170// Header returns an http.Header that can be modified by the caller to
41171// add HTTP headers to the request.
41172func (c *OrganizationsReportsListCall) Header() http.Header {
41173	if c.header_ == nil {
41174		c.header_ = make(http.Header)
41175	}
41176	return c.header_
41177}
41178
41179func (c *OrganizationsReportsListCall) doRequest(alt string) (*http.Response, error) {
41180	reqHeaders := make(http.Header)
41181	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
41182	for k, v := range c.header_ {
41183		reqHeaders[k] = v
41184	}
41185	reqHeaders.Set("User-Agent", c.s.userAgent())
41186	if c.ifNoneMatch_ != "" {
41187		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
41188	}
41189	var body io.Reader = nil
41190	c.urlParams_.Set("alt", alt)
41191	c.urlParams_.Set("prettyPrint", "false")
41192	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/reports")
41193	urls += "?" + c.urlParams_.Encode()
41194	req, err := http.NewRequest("GET", urls, body)
41195	if err != nil {
41196		return nil, err
41197	}
41198	req.Header = reqHeaders
41199	googleapi.Expand(req.URL, map[string]string{
41200		"parent": c.parent,
41201	})
41202	return gensupport.SendRequest(c.ctx_, c.s.client, req)
41203}
41204
41205// Do executes the "apigee.organizations.reports.list" call.
41206// Exactly one of *GoogleCloudApigeeV1ListCustomReportsResponse or error
41207// will be non-nil. Any non-2xx status code is an error. Response
41208// headers are in either
41209// *GoogleCloudApigeeV1ListCustomReportsResponse.ServerResponse.Header
41210// or (if a response was returned at all) in
41211// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
41212// whether the returned error was because http.StatusNotModified was
41213// returned.
41214func (c *OrganizationsReportsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListCustomReportsResponse, error) {
41215	gensupport.SetOptions(c.urlParams_, opts...)
41216	res, err := c.doRequest("json")
41217	if res != nil && res.StatusCode == http.StatusNotModified {
41218		if res.Body != nil {
41219			res.Body.Close()
41220		}
41221		return nil, &googleapi.Error{
41222			Code:   res.StatusCode,
41223			Header: res.Header,
41224		}
41225	}
41226	if err != nil {
41227		return nil, err
41228	}
41229	defer googleapi.CloseBody(res)
41230	if err := googleapi.CheckResponse(res); err != nil {
41231		return nil, err
41232	}
41233	ret := &GoogleCloudApigeeV1ListCustomReportsResponse{
41234		ServerResponse: googleapi.ServerResponse{
41235			Header:         res.Header,
41236			HTTPStatusCode: res.StatusCode,
41237		},
41238	}
41239	target := &ret
41240	if err := gensupport.DecodeResponse(target, res); err != nil {
41241		return nil, err
41242	}
41243	return ret, nil
41244	// {
41245	//   "description": "Return a list of Custom Reports",
41246	//   "flatPath": "v1/organizations/{organizationsId}/reports",
41247	//   "httpMethod": "GET",
41248	//   "id": "apigee.organizations.reports.list",
41249	//   "parameterOrder": [
41250	//     "parent"
41251	//   ],
41252	//   "parameters": {
41253	//     "expand": {
41254	//       "description": "Set to 'true' to get expanded details about each custom report.",
41255	//       "location": "query",
41256	//       "type": "boolean"
41257	//     },
41258	//     "parent": {
41259	//       "description": "Required. The parent organization name under which the API product will be listed `organizations/{organization_id}/reports`",
41260	//       "location": "path",
41261	//       "pattern": "^organizations/[^/]+$",
41262	//       "required": true,
41263	//       "type": "string"
41264	//     }
41265	//   },
41266	//   "path": "v1/{+parent}/reports",
41267	//   "response": {
41268	//     "$ref": "GoogleCloudApigeeV1ListCustomReportsResponse"
41269	//   },
41270	//   "scopes": [
41271	//     "https://www.googleapis.com/auth/cloud-platform"
41272	//   ]
41273	// }
41274
41275}
41276
41277// method id "apigee.organizations.reports.update":
41278
41279type OrganizationsReportsUpdateCall struct {
41280	s                               *Service
41281	name                            string
41282	googlecloudapigeev1customreport *GoogleCloudApigeeV1CustomReport
41283	urlParams_                      gensupport.URLParams
41284	ctx_                            context.Context
41285	header_                         http.Header
41286}
41287
41288// Update: Update an existing custom report definition
41289//
41290// - name: Custom Report name of the form:
41291//   `organizations/{organization_id}/reports/{report_name}`.
41292func (r *OrganizationsReportsService) Update(name string, googlecloudapigeev1customreport *GoogleCloudApigeeV1CustomReport) *OrganizationsReportsUpdateCall {
41293	c := &OrganizationsReportsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41294	c.name = name
41295	c.googlecloudapigeev1customreport = googlecloudapigeev1customreport
41296	return c
41297}
41298
41299// Fields allows partial responses to be retrieved. See
41300// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
41301// for more information.
41302func (c *OrganizationsReportsUpdateCall) Fields(s ...googleapi.Field) *OrganizationsReportsUpdateCall {
41303	c.urlParams_.Set("fields", googleapi.CombineFields(s))
41304	return c
41305}
41306
41307// Context sets the context to be used in this call's Do method. Any
41308// pending HTTP request will be aborted if the provided context is
41309// canceled.
41310func (c *OrganizationsReportsUpdateCall) Context(ctx context.Context) *OrganizationsReportsUpdateCall {
41311	c.ctx_ = ctx
41312	return c
41313}
41314
41315// Header returns an http.Header that can be modified by the caller to
41316// add HTTP headers to the request.
41317func (c *OrganizationsReportsUpdateCall) Header() http.Header {
41318	if c.header_ == nil {
41319		c.header_ = make(http.Header)
41320	}
41321	return c.header_
41322}
41323
41324func (c *OrganizationsReportsUpdateCall) doRequest(alt string) (*http.Response, error) {
41325	reqHeaders := make(http.Header)
41326	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
41327	for k, v := range c.header_ {
41328		reqHeaders[k] = v
41329	}
41330	reqHeaders.Set("User-Agent", c.s.userAgent())
41331	var body io.Reader = nil
41332	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1customreport)
41333	if err != nil {
41334		return nil, err
41335	}
41336	reqHeaders.Set("Content-Type", "application/json")
41337	c.urlParams_.Set("alt", alt)
41338	c.urlParams_.Set("prettyPrint", "false")
41339	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
41340	urls += "?" + c.urlParams_.Encode()
41341	req, err := http.NewRequest("PUT", urls, body)
41342	if err != nil {
41343		return nil, err
41344	}
41345	req.Header = reqHeaders
41346	googleapi.Expand(req.URL, map[string]string{
41347		"name": c.name,
41348	})
41349	return gensupport.SendRequest(c.ctx_, c.s.client, req)
41350}
41351
41352// Do executes the "apigee.organizations.reports.update" call.
41353// Exactly one of *GoogleCloudApigeeV1CustomReport or error will be
41354// non-nil. Any non-2xx status code is an error. Response headers are in
41355// either *GoogleCloudApigeeV1CustomReport.ServerResponse.Header or (if
41356// a response was returned at all) in error.(*googleapi.Error).Header.
41357// Use googleapi.IsNotModified to check whether the returned error was
41358// because http.StatusNotModified was returned.
41359func (c *OrganizationsReportsUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1CustomReport, error) {
41360	gensupport.SetOptions(c.urlParams_, opts...)
41361	res, err := c.doRequest("json")
41362	if res != nil && res.StatusCode == http.StatusNotModified {
41363		if res.Body != nil {
41364			res.Body.Close()
41365		}
41366		return nil, &googleapi.Error{
41367			Code:   res.StatusCode,
41368			Header: res.Header,
41369		}
41370	}
41371	if err != nil {
41372		return nil, err
41373	}
41374	defer googleapi.CloseBody(res)
41375	if err := googleapi.CheckResponse(res); err != nil {
41376		return nil, err
41377	}
41378	ret := &GoogleCloudApigeeV1CustomReport{
41379		ServerResponse: googleapi.ServerResponse{
41380			Header:         res.Header,
41381			HTTPStatusCode: res.StatusCode,
41382		},
41383	}
41384	target := &ret
41385	if err := gensupport.DecodeResponse(target, res); err != nil {
41386		return nil, err
41387	}
41388	return ret, nil
41389	// {
41390	//   "description": "Update an existing custom report definition",
41391	//   "flatPath": "v1/organizations/{organizationsId}/reports/{reportsId}",
41392	//   "httpMethod": "PUT",
41393	//   "id": "apigee.organizations.reports.update",
41394	//   "parameterOrder": [
41395	//     "name"
41396	//   ],
41397	//   "parameters": {
41398	//     "name": {
41399	//       "description": "Required. Custom Report name of the form: `organizations/{organization_id}/reports/{report_name}`",
41400	//       "location": "path",
41401	//       "pattern": "^organizations/[^/]+/reports/[^/]+$",
41402	//       "required": true,
41403	//       "type": "string"
41404	//     }
41405	//   },
41406	//   "path": "v1/{+name}",
41407	//   "request": {
41408	//     "$ref": "GoogleCloudApigeeV1CustomReport"
41409	//   },
41410	//   "response": {
41411	//     "$ref": "GoogleCloudApigeeV1CustomReport"
41412	//   },
41413	//   "scopes": [
41414	//     "https://www.googleapis.com/auth/cloud-platform"
41415	//   ]
41416	// }
41417
41418}
41419
41420// method id "apigee.organizations.sharedflows.create":
41421
41422type OrganizationsSharedflowsCreateCall struct {
41423	s                 *Service
41424	parent            string
41425	googleapihttpbody *GoogleApiHttpBody
41426	urlParams_        gensupport.URLParams
41427	ctx_              context.Context
41428	header_           http.Header
41429}
41430
41431// Create: Uploads a ZIP-formatted shared flow configuration bundle to
41432// an organization. If the shared flow already exists, this creates a
41433// new revision of it. If the shared flow does not exist, this creates
41434// it. Once imported, the shared flow revision must be deployed before
41435// it can be accessed at runtime. The size limit of a shared flow bundle
41436// is 15 MB.
41437//
41438// - parent: The name of the parent organization under which to create
41439//   the shared flow. Must be of the form:
41440//   `organizations/{organization_id}`.
41441func (r *OrganizationsSharedflowsService) Create(parent string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsSharedflowsCreateCall {
41442	c := &OrganizationsSharedflowsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41443	c.parent = parent
41444	c.googleapihttpbody = googleapihttpbody
41445	return c
41446}
41447
41448// Action sets the optional parameter "action": Required. Must be set to
41449// either `import` or `validate`.
41450func (c *OrganizationsSharedflowsCreateCall) Action(action string) *OrganizationsSharedflowsCreateCall {
41451	c.urlParams_.Set("action", action)
41452	return c
41453}
41454
41455// Name sets the optional parameter "name": Required. The name to give
41456// the shared flow
41457func (c *OrganizationsSharedflowsCreateCall) Name(name string) *OrganizationsSharedflowsCreateCall {
41458	c.urlParams_.Set("name", name)
41459	return c
41460}
41461
41462// Fields allows partial responses to be retrieved. See
41463// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
41464// for more information.
41465func (c *OrganizationsSharedflowsCreateCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsCreateCall {
41466	c.urlParams_.Set("fields", googleapi.CombineFields(s))
41467	return c
41468}
41469
41470// Context sets the context to be used in this call's Do method. Any
41471// pending HTTP request will be aborted if the provided context is
41472// canceled.
41473func (c *OrganizationsSharedflowsCreateCall) Context(ctx context.Context) *OrganizationsSharedflowsCreateCall {
41474	c.ctx_ = ctx
41475	return c
41476}
41477
41478// Header returns an http.Header that can be modified by the caller to
41479// add HTTP headers to the request.
41480func (c *OrganizationsSharedflowsCreateCall) Header() http.Header {
41481	if c.header_ == nil {
41482		c.header_ = make(http.Header)
41483	}
41484	return c.header_
41485}
41486
41487func (c *OrganizationsSharedflowsCreateCall) doRequest(alt string) (*http.Response, error) {
41488	reqHeaders := make(http.Header)
41489	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
41490	for k, v := range c.header_ {
41491		reqHeaders[k] = v
41492	}
41493	reqHeaders.Set("User-Agent", c.s.userAgent())
41494	var body io.Reader = nil
41495	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
41496	if err != nil {
41497		return nil, err
41498	}
41499	reqHeaders.Set("Content-Type", "application/json")
41500	c.urlParams_.Set("alt", alt)
41501	c.urlParams_.Set("prettyPrint", "false")
41502	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/sharedflows")
41503	urls += "?" + c.urlParams_.Encode()
41504	req, err := http.NewRequest("POST", urls, body)
41505	if err != nil {
41506		return nil, err
41507	}
41508	req.Header = reqHeaders
41509	googleapi.Expand(req.URL, map[string]string{
41510		"parent": c.parent,
41511	})
41512	return gensupport.SendRequest(c.ctx_, c.s.client, req)
41513}
41514
41515// Do executes the "apigee.organizations.sharedflows.create" call.
41516// Exactly one of *GoogleCloudApigeeV1SharedFlowRevision or error will
41517// be non-nil. Any non-2xx status code is an error. Response headers are
41518// in either
41519// *GoogleCloudApigeeV1SharedFlowRevision.ServerResponse.Header or (if a
41520// response was returned at all) in error.(*googleapi.Error).Header. Use
41521// googleapi.IsNotModified to check whether the returned error was
41522// because http.StatusNotModified was returned.
41523func (c *OrganizationsSharedflowsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SharedFlowRevision, error) {
41524	gensupport.SetOptions(c.urlParams_, opts...)
41525	res, err := c.doRequest("json")
41526	if res != nil && res.StatusCode == http.StatusNotModified {
41527		if res.Body != nil {
41528			res.Body.Close()
41529		}
41530		return nil, &googleapi.Error{
41531			Code:   res.StatusCode,
41532			Header: res.Header,
41533		}
41534	}
41535	if err != nil {
41536		return nil, err
41537	}
41538	defer googleapi.CloseBody(res)
41539	if err := googleapi.CheckResponse(res); err != nil {
41540		return nil, err
41541	}
41542	ret := &GoogleCloudApigeeV1SharedFlowRevision{
41543		ServerResponse: googleapi.ServerResponse{
41544			Header:         res.Header,
41545			HTTPStatusCode: res.StatusCode,
41546		},
41547	}
41548	target := &ret
41549	if err := gensupport.DecodeResponse(target, res); err != nil {
41550		return nil, err
41551	}
41552	return ret, nil
41553	// {
41554	//   "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.",
41555	//   "flatPath": "v1/organizations/{organizationsId}/sharedflows",
41556	//   "httpMethod": "POST",
41557	//   "id": "apigee.organizations.sharedflows.create",
41558	//   "parameterOrder": [
41559	//     "parent"
41560	//   ],
41561	//   "parameters": {
41562	//     "action": {
41563	//       "description": "Required. Must be set to either `import` or `validate`.",
41564	//       "location": "query",
41565	//       "type": "string"
41566	//     },
41567	//     "name": {
41568	//       "description": "Required. The name to give the shared flow",
41569	//       "location": "query",
41570	//       "type": "string"
41571	//     },
41572	//     "parent": {
41573	//       "description": "Required. The name of the parent organization under which to create the shared flow. Must be of the form: `organizations/{organization_id}`",
41574	//       "location": "path",
41575	//       "pattern": "^organizations/[^/]+$",
41576	//       "required": true,
41577	//       "type": "string"
41578	//     }
41579	//   },
41580	//   "path": "v1/{+parent}/sharedflows",
41581	//   "request": {
41582	//     "$ref": "GoogleApiHttpBody"
41583	//   },
41584	//   "response": {
41585	//     "$ref": "GoogleCloudApigeeV1SharedFlowRevision"
41586	//   },
41587	//   "scopes": [
41588	//     "https://www.googleapis.com/auth/cloud-platform"
41589	//   ]
41590	// }
41591
41592}
41593
41594// method id "apigee.organizations.sharedflows.delete":
41595
41596type OrganizationsSharedflowsDeleteCall struct {
41597	s          *Service
41598	name       string
41599	urlParams_ gensupport.URLParams
41600	ctx_       context.Context
41601	header_    http.Header
41602}
41603
41604// Delete: Deletes a shared flow and all it's revisions. The shared flow
41605// must be undeployed before you can delete it.
41606//
41607// - name: shared flow name of the form:
41608//   `organizations/{organization_id}/sharedflows/{shared_flow_id}`.
41609func (r *OrganizationsSharedflowsService) Delete(name string) *OrganizationsSharedflowsDeleteCall {
41610	c := &OrganizationsSharedflowsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41611	c.name = name
41612	return c
41613}
41614
41615// Fields allows partial responses to be retrieved. See
41616// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
41617// for more information.
41618func (c *OrganizationsSharedflowsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsDeleteCall {
41619	c.urlParams_.Set("fields", googleapi.CombineFields(s))
41620	return c
41621}
41622
41623// Context sets the context to be used in this call's Do method. Any
41624// pending HTTP request will be aborted if the provided context is
41625// canceled.
41626func (c *OrganizationsSharedflowsDeleteCall) Context(ctx context.Context) *OrganizationsSharedflowsDeleteCall {
41627	c.ctx_ = ctx
41628	return c
41629}
41630
41631// Header returns an http.Header that can be modified by the caller to
41632// add HTTP headers to the request.
41633func (c *OrganizationsSharedflowsDeleteCall) Header() http.Header {
41634	if c.header_ == nil {
41635		c.header_ = make(http.Header)
41636	}
41637	return c.header_
41638}
41639
41640func (c *OrganizationsSharedflowsDeleteCall) doRequest(alt string) (*http.Response, error) {
41641	reqHeaders := make(http.Header)
41642	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
41643	for k, v := range c.header_ {
41644		reqHeaders[k] = v
41645	}
41646	reqHeaders.Set("User-Agent", c.s.userAgent())
41647	var body io.Reader = nil
41648	c.urlParams_.Set("alt", alt)
41649	c.urlParams_.Set("prettyPrint", "false")
41650	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
41651	urls += "?" + c.urlParams_.Encode()
41652	req, err := http.NewRequest("DELETE", urls, body)
41653	if err != nil {
41654		return nil, err
41655	}
41656	req.Header = reqHeaders
41657	googleapi.Expand(req.URL, map[string]string{
41658		"name": c.name,
41659	})
41660	return gensupport.SendRequest(c.ctx_, c.s.client, req)
41661}
41662
41663// Do executes the "apigee.organizations.sharedflows.delete" call.
41664// Exactly one of *GoogleCloudApigeeV1SharedFlow or error will be
41665// non-nil. Any non-2xx status code is an error. Response headers are in
41666// either *GoogleCloudApigeeV1SharedFlow.ServerResponse.Header or (if a
41667// response was returned at all) in error.(*googleapi.Error).Header. Use
41668// googleapi.IsNotModified to check whether the returned error was
41669// because http.StatusNotModified was returned.
41670func (c *OrganizationsSharedflowsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SharedFlow, error) {
41671	gensupport.SetOptions(c.urlParams_, opts...)
41672	res, err := c.doRequest("json")
41673	if res != nil && res.StatusCode == http.StatusNotModified {
41674		if res.Body != nil {
41675			res.Body.Close()
41676		}
41677		return nil, &googleapi.Error{
41678			Code:   res.StatusCode,
41679			Header: res.Header,
41680		}
41681	}
41682	if err != nil {
41683		return nil, err
41684	}
41685	defer googleapi.CloseBody(res)
41686	if err := googleapi.CheckResponse(res); err != nil {
41687		return nil, err
41688	}
41689	ret := &GoogleCloudApigeeV1SharedFlow{
41690		ServerResponse: googleapi.ServerResponse{
41691			Header:         res.Header,
41692			HTTPStatusCode: res.StatusCode,
41693		},
41694	}
41695	target := &ret
41696	if err := gensupport.DecodeResponse(target, res); err != nil {
41697		return nil, err
41698	}
41699	return ret, nil
41700	// {
41701	//   "description": "Deletes a shared flow and all it's revisions. The shared flow must be undeployed before you can delete it.",
41702	//   "flatPath": "v1/organizations/{organizationsId}/sharedflows/{sharedflowsId}",
41703	//   "httpMethod": "DELETE",
41704	//   "id": "apigee.organizations.sharedflows.delete",
41705	//   "parameterOrder": [
41706	//     "name"
41707	//   ],
41708	//   "parameters": {
41709	//     "name": {
41710	//       "description": "Required. shared flow name of the form: `organizations/{organization_id}/sharedflows/{shared_flow_id}`",
41711	//       "location": "path",
41712	//       "pattern": "^organizations/[^/]+/sharedflows/[^/]+$",
41713	//       "required": true,
41714	//       "type": "string"
41715	//     }
41716	//   },
41717	//   "path": "v1/{+name}",
41718	//   "response": {
41719	//     "$ref": "GoogleCloudApigeeV1SharedFlow"
41720	//   },
41721	//   "scopes": [
41722	//     "https://www.googleapis.com/auth/cloud-platform"
41723	//   ]
41724	// }
41725
41726}
41727
41728// method id "apigee.organizations.sharedflows.get":
41729
41730type OrganizationsSharedflowsGetCall struct {
41731	s            *Service
41732	name         string
41733	urlParams_   gensupport.URLParams
41734	ifNoneMatch_ string
41735	ctx_         context.Context
41736	header_      http.Header
41737}
41738
41739// Get: Gets a shared flow by name, including a list of its revisions.
41740//
41741// - name: The name of the shared flow to get. Must be of the form:
41742//   `organizations/{organization_id}/sharedflows/{shared_flow_id}`.
41743func (r *OrganizationsSharedflowsService) Get(name string) *OrganizationsSharedflowsGetCall {
41744	c := &OrganizationsSharedflowsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41745	c.name = name
41746	return c
41747}
41748
41749// Fields allows partial responses to be retrieved. See
41750// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
41751// for more information.
41752func (c *OrganizationsSharedflowsGetCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsGetCall {
41753	c.urlParams_.Set("fields", googleapi.CombineFields(s))
41754	return c
41755}
41756
41757// IfNoneMatch sets the optional parameter which makes the operation
41758// fail if the object's ETag matches the given value. This is useful for
41759// getting updates only after the object has changed since the last
41760// request. Use googleapi.IsNotModified to check whether the response
41761// error from Do is the result of In-None-Match.
41762func (c *OrganizationsSharedflowsGetCall) IfNoneMatch(entityTag string) *OrganizationsSharedflowsGetCall {
41763	c.ifNoneMatch_ = entityTag
41764	return c
41765}
41766
41767// Context sets the context to be used in this call's Do method. Any
41768// pending HTTP request will be aborted if the provided context is
41769// canceled.
41770func (c *OrganizationsSharedflowsGetCall) Context(ctx context.Context) *OrganizationsSharedflowsGetCall {
41771	c.ctx_ = ctx
41772	return c
41773}
41774
41775// Header returns an http.Header that can be modified by the caller to
41776// add HTTP headers to the request.
41777func (c *OrganizationsSharedflowsGetCall) Header() http.Header {
41778	if c.header_ == nil {
41779		c.header_ = make(http.Header)
41780	}
41781	return c.header_
41782}
41783
41784func (c *OrganizationsSharedflowsGetCall) doRequest(alt string) (*http.Response, error) {
41785	reqHeaders := make(http.Header)
41786	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
41787	for k, v := range c.header_ {
41788		reqHeaders[k] = v
41789	}
41790	reqHeaders.Set("User-Agent", c.s.userAgent())
41791	if c.ifNoneMatch_ != "" {
41792		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
41793	}
41794	var body io.Reader = nil
41795	c.urlParams_.Set("alt", alt)
41796	c.urlParams_.Set("prettyPrint", "false")
41797	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
41798	urls += "?" + c.urlParams_.Encode()
41799	req, err := http.NewRequest("GET", urls, body)
41800	if err != nil {
41801		return nil, err
41802	}
41803	req.Header = reqHeaders
41804	googleapi.Expand(req.URL, map[string]string{
41805		"name": c.name,
41806	})
41807	return gensupport.SendRequest(c.ctx_, c.s.client, req)
41808}
41809
41810// Do executes the "apigee.organizations.sharedflows.get" call.
41811// Exactly one of *GoogleCloudApigeeV1SharedFlow or error will be
41812// non-nil. Any non-2xx status code is an error. Response headers are in
41813// either *GoogleCloudApigeeV1SharedFlow.ServerResponse.Header or (if a
41814// response was returned at all) in error.(*googleapi.Error).Header. Use
41815// googleapi.IsNotModified to check whether the returned error was
41816// because http.StatusNotModified was returned.
41817func (c *OrganizationsSharedflowsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SharedFlow, error) {
41818	gensupport.SetOptions(c.urlParams_, opts...)
41819	res, err := c.doRequest("json")
41820	if res != nil && res.StatusCode == http.StatusNotModified {
41821		if res.Body != nil {
41822			res.Body.Close()
41823		}
41824		return nil, &googleapi.Error{
41825			Code:   res.StatusCode,
41826			Header: res.Header,
41827		}
41828	}
41829	if err != nil {
41830		return nil, err
41831	}
41832	defer googleapi.CloseBody(res)
41833	if err := googleapi.CheckResponse(res); err != nil {
41834		return nil, err
41835	}
41836	ret := &GoogleCloudApigeeV1SharedFlow{
41837		ServerResponse: googleapi.ServerResponse{
41838			Header:         res.Header,
41839			HTTPStatusCode: res.StatusCode,
41840		},
41841	}
41842	target := &ret
41843	if err := gensupport.DecodeResponse(target, res); err != nil {
41844		return nil, err
41845	}
41846	return ret, nil
41847	// {
41848	//   "description": "Gets a shared flow by name, including a list of its revisions.",
41849	//   "flatPath": "v1/organizations/{organizationsId}/sharedflows/{sharedflowsId}",
41850	//   "httpMethod": "GET",
41851	//   "id": "apigee.organizations.sharedflows.get",
41852	//   "parameterOrder": [
41853	//     "name"
41854	//   ],
41855	//   "parameters": {
41856	//     "name": {
41857	//       "description": "Required. The name of the shared flow to get. Must be of the form: `organizations/{organization_id}/sharedflows/{shared_flow_id}`",
41858	//       "location": "path",
41859	//       "pattern": "^organizations/[^/]+/sharedflows/[^/]+$",
41860	//       "required": true,
41861	//       "type": "string"
41862	//     }
41863	//   },
41864	//   "path": "v1/{+name}",
41865	//   "response": {
41866	//     "$ref": "GoogleCloudApigeeV1SharedFlow"
41867	//   },
41868	//   "scopes": [
41869	//     "https://www.googleapis.com/auth/cloud-platform"
41870	//   ]
41871	// }
41872
41873}
41874
41875// method id "apigee.organizations.sharedflows.list":
41876
41877type OrganizationsSharedflowsListCall struct {
41878	s            *Service
41879	parent       string
41880	urlParams_   gensupport.URLParams
41881	ifNoneMatch_ string
41882	ctx_         context.Context
41883	header_      http.Header
41884}
41885
41886// List: Lists all shared flows in the organization.
41887//
41888// - parent: The name of the parent organization under which to get
41889//   shared flows. Must be of the form:
41890//   `organizations/{organization_id}`.
41891func (r *OrganizationsSharedflowsService) List(parent string) *OrganizationsSharedflowsListCall {
41892	c := &OrganizationsSharedflowsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41893	c.parent = parent
41894	return c
41895}
41896
41897// IncludeMetaData sets the optional parameter "includeMetaData":
41898// Indicates whether to include shared flow metadata in the response.
41899func (c *OrganizationsSharedflowsListCall) IncludeMetaData(includeMetaData bool) *OrganizationsSharedflowsListCall {
41900	c.urlParams_.Set("includeMetaData", fmt.Sprint(includeMetaData))
41901	return c
41902}
41903
41904// IncludeRevisions sets the optional parameter "includeRevisions":
41905// Indicates whether to include a list of revisions in the response.
41906func (c *OrganizationsSharedflowsListCall) IncludeRevisions(includeRevisions bool) *OrganizationsSharedflowsListCall {
41907	c.urlParams_.Set("includeRevisions", fmt.Sprint(includeRevisions))
41908	return c
41909}
41910
41911// Fields allows partial responses to be retrieved. See
41912// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
41913// for more information.
41914func (c *OrganizationsSharedflowsListCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsListCall {
41915	c.urlParams_.Set("fields", googleapi.CombineFields(s))
41916	return c
41917}
41918
41919// IfNoneMatch sets the optional parameter which makes the operation
41920// fail if the object's ETag matches the given value. This is useful for
41921// getting updates only after the object has changed since the last
41922// request. Use googleapi.IsNotModified to check whether the response
41923// error from Do is the result of In-None-Match.
41924func (c *OrganizationsSharedflowsListCall) IfNoneMatch(entityTag string) *OrganizationsSharedflowsListCall {
41925	c.ifNoneMatch_ = entityTag
41926	return c
41927}
41928
41929// Context sets the context to be used in this call's Do method. Any
41930// pending HTTP request will be aborted if the provided context is
41931// canceled.
41932func (c *OrganizationsSharedflowsListCall) Context(ctx context.Context) *OrganizationsSharedflowsListCall {
41933	c.ctx_ = ctx
41934	return c
41935}
41936
41937// Header returns an http.Header that can be modified by the caller to
41938// add HTTP headers to the request.
41939func (c *OrganizationsSharedflowsListCall) Header() http.Header {
41940	if c.header_ == nil {
41941		c.header_ = make(http.Header)
41942	}
41943	return c.header_
41944}
41945
41946func (c *OrganizationsSharedflowsListCall) doRequest(alt string) (*http.Response, error) {
41947	reqHeaders := make(http.Header)
41948	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
41949	for k, v := range c.header_ {
41950		reqHeaders[k] = v
41951	}
41952	reqHeaders.Set("User-Agent", c.s.userAgent())
41953	if c.ifNoneMatch_ != "" {
41954		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
41955	}
41956	var body io.Reader = nil
41957	c.urlParams_.Set("alt", alt)
41958	c.urlParams_.Set("prettyPrint", "false")
41959	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/sharedflows")
41960	urls += "?" + c.urlParams_.Encode()
41961	req, err := http.NewRequest("GET", urls, body)
41962	if err != nil {
41963		return nil, err
41964	}
41965	req.Header = reqHeaders
41966	googleapi.Expand(req.URL, map[string]string{
41967		"parent": c.parent,
41968	})
41969	return gensupport.SendRequest(c.ctx_, c.s.client, req)
41970}
41971
41972// Do executes the "apigee.organizations.sharedflows.list" call.
41973// Exactly one of *GoogleCloudApigeeV1ListSharedFlowsResponse or error
41974// will be non-nil. Any non-2xx status code is an error. Response
41975// headers are in either
41976// *GoogleCloudApigeeV1ListSharedFlowsResponse.ServerResponse.Header or
41977// (if a response was returned at all) in
41978// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
41979// whether the returned error was because http.StatusNotModified was
41980// returned.
41981func (c *OrganizationsSharedflowsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListSharedFlowsResponse, error) {
41982	gensupport.SetOptions(c.urlParams_, opts...)
41983	res, err := c.doRequest("json")
41984	if res != nil && res.StatusCode == http.StatusNotModified {
41985		if res.Body != nil {
41986			res.Body.Close()
41987		}
41988		return nil, &googleapi.Error{
41989			Code:   res.StatusCode,
41990			Header: res.Header,
41991		}
41992	}
41993	if err != nil {
41994		return nil, err
41995	}
41996	defer googleapi.CloseBody(res)
41997	if err := googleapi.CheckResponse(res); err != nil {
41998		return nil, err
41999	}
42000	ret := &GoogleCloudApigeeV1ListSharedFlowsResponse{
42001		ServerResponse: googleapi.ServerResponse{
42002			Header:         res.Header,
42003			HTTPStatusCode: res.StatusCode,
42004		},
42005	}
42006	target := &ret
42007	if err := gensupport.DecodeResponse(target, res); err != nil {
42008		return nil, err
42009	}
42010	return ret, nil
42011	// {
42012	//   "description": "Lists all shared flows in the organization.",
42013	//   "flatPath": "v1/organizations/{organizationsId}/sharedflows",
42014	//   "httpMethod": "GET",
42015	//   "id": "apigee.organizations.sharedflows.list",
42016	//   "parameterOrder": [
42017	//     "parent"
42018	//   ],
42019	//   "parameters": {
42020	//     "includeMetaData": {
42021	//       "description": "Indicates whether to include shared flow metadata in the response.",
42022	//       "location": "query",
42023	//       "type": "boolean"
42024	//     },
42025	//     "includeRevisions": {
42026	//       "description": "Indicates whether to include a list of revisions in the response.",
42027	//       "location": "query",
42028	//       "type": "boolean"
42029	//     },
42030	//     "parent": {
42031	//       "description": "Required. The name of the parent organization under which to get shared flows. Must be of the form: `organizations/{organization_id}`",
42032	//       "location": "path",
42033	//       "pattern": "^organizations/[^/]+$",
42034	//       "required": true,
42035	//       "type": "string"
42036	//     }
42037	//   },
42038	//   "path": "v1/{+parent}/sharedflows",
42039	//   "response": {
42040	//     "$ref": "GoogleCloudApigeeV1ListSharedFlowsResponse"
42041	//   },
42042	//   "scopes": [
42043	//     "https://www.googleapis.com/auth/cloud-platform"
42044	//   ]
42045	// }
42046
42047}
42048
42049// method id "apigee.organizations.sharedflows.deployments.list":
42050
42051type OrganizationsSharedflowsDeploymentsListCall struct {
42052	s            *Service
42053	parent       string
42054	urlParams_   gensupport.URLParams
42055	ifNoneMatch_ string
42056	ctx_         context.Context
42057	header_      http.Header
42058}
42059
42060// List: Lists all deployments of a shared flow.
42061//
42062// - parent: Name of the shared flow for which to return deployment
42063//   information in the following format:
42064//   `organizations/{org}/sharedflows/{sharedflow}`.
42065func (r *OrganizationsSharedflowsDeploymentsService) List(parent string) *OrganizationsSharedflowsDeploymentsListCall {
42066	c := &OrganizationsSharedflowsDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42067	c.parent = parent
42068	return c
42069}
42070
42071// Fields allows partial responses to be retrieved. See
42072// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
42073// for more information.
42074func (c *OrganizationsSharedflowsDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsDeploymentsListCall {
42075	c.urlParams_.Set("fields", googleapi.CombineFields(s))
42076	return c
42077}
42078
42079// IfNoneMatch sets the optional parameter which makes the operation
42080// fail if the object's ETag matches the given value. This is useful for
42081// getting updates only after the object has changed since the last
42082// request. Use googleapi.IsNotModified to check whether the response
42083// error from Do is the result of In-None-Match.
42084func (c *OrganizationsSharedflowsDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsSharedflowsDeploymentsListCall {
42085	c.ifNoneMatch_ = entityTag
42086	return c
42087}
42088
42089// Context sets the context to be used in this call's Do method. Any
42090// pending HTTP request will be aborted if the provided context is
42091// canceled.
42092func (c *OrganizationsSharedflowsDeploymentsListCall) Context(ctx context.Context) *OrganizationsSharedflowsDeploymentsListCall {
42093	c.ctx_ = ctx
42094	return c
42095}
42096
42097// Header returns an http.Header that can be modified by the caller to
42098// add HTTP headers to the request.
42099func (c *OrganizationsSharedflowsDeploymentsListCall) Header() http.Header {
42100	if c.header_ == nil {
42101		c.header_ = make(http.Header)
42102	}
42103	return c.header_
42104}
42105
42106func (c *OrganizationsSharedflowsDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
42107	reqHeaders := make(http.Header)
42108	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
42109	for k, v := range c.header_ {
42110		reqHeaders[k] = v
42111	}
42112	reqHeaders.Set("User-Agent", c.s.userAgent())
42113	if c.ifNoneMatch_ != "" {
42114		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
42115	}
42116	var body io.Reader = nil
42117	c.urlParams_.Set("alt", alt)
42118	c.urlParams_.Set("prettyPrint", "false")
42119	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
42120	urls += "?" + c.urlParams_.Encode()
42121	req, err := http.NewRequest("GET", urls, body)
42122	if err != nil {
42123		return nil, err
42124	}
42125	req.Header = reqHeaders
42126	googleapi.Expand(req.URL, map[string]string{
42127		"parent": c.parent,
42128	})
42129	return gensupport.SendRequest(c.ctx_, c.s.client, req)
42130}
42131
42132// Do executes the "apigee.organizations.sharedflows.deployments.list" call.
42133// Exactly one of *GoogleCloudApigeeV1ListDeploymentsResponse or error
42134// will be non-nil. Any non-2xx status code is an error. Response
42135// headers are in either
42136// *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or
42137// (if a response was returned at all) in
42138// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
42139// whether the returned error was because http.StatusNotModified was
42140// returned.
42141func (c *OrganizationsSharedflowsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
42142	gensupport.SetOptions(c.urlParams_, opts...)
42143	res, err := c.doRequest("json")
42144	if res != nil && res.StatusCode == http.StatusNotModified {
42145		if res.Body != nil {
42146			res.Body.Close()
42147		}
42148		return nil, &googleapi.Error{
42149			Code:   res.StatusCode,
42150			Header: res.Header,
42151		}
42152	}
42153	if err != nil {
42154		return nil, err
42155	}
42156	defer googleapi.CloseBody(res)
42157	if err := googleapi.CheckResponse(res); err != nil {
42158		return nil, err
42159	}
42160	ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
42161		ServerResponse: googleapi.ServerResponse{
42162			Header:         res.Header,
42163			HTTPStatusCode: res.StatusCode,
42164		},
42165	}
42166	target := &ret
42167	if err := gensupport.DecodeResponse(target, res); err != nil {
42168		return nil, err
42169	}
42170	return ret, nil
42171	// {
42172	//   "description": "Lists all deployments of a shared flow.",
42173	//   "flatPath": "v1/organizations/{organizationsId}/sharedflows/{sharedflowsId}/deployments",
42174	//   "httpMethod": "GET",
42175	//   "id": "apigee.organizations.sharedflows.deployments.list",
42176	//   "parameterOrder": [
42177	//     "parent"
42178	//   ],
42179	//   "parameters": {
42180	//     "parent": {
42181	//       "description": "Required. Name of the shared flow for which to return deployment information in the following format: `organizations/{org}/sharedflows/{sharedflow}`",
42182	//       "location": "path",
42183	//       "pattern": "^organizations/[^/]+/sharedflows/[^/]+$",
42184	//       "required": true,
42185	//       "type": "string"
42186	//     }
42187	//   },
42188	//   "path": "v1/{+parent}/deployments",
42189	//   "response": {
42190	//     "$ref": "GoogleCloudApigeeV1ListDeploymentsResponse"
42191	//   },
42192	//   "scopes": [
42193	//     "https://www.googleapis.com/auth/cloud-platform"
42194	//   ]
42195	// }
42196
42197}
42198
42199// method id "apigee.organizations.sharedflows.revisions.delete":
42200
42201type OrganizationsSharedflowsRevisionsDeleteCall struct {
42202	s          *Service
42203	name       string
42204	urlParams_ gensupport.URLParams
42205	ctx_       context.Context
42206	header_    http.Header
42207}
42208
42209// Delete: Deletes a shared flow and all associated policies, resources,
42210// and revisions. You must undeploy the shared flow before deleting it.
42211//
42212// - name: The name of the shared flow revision to delete. Must be of
42213//   the form:
42214//   `organizations/{organization_id}/sharedflows/{shared_flow_id}/revisi
42215//   ons/{revision_id}`.
42216func (r *OrganizationsSharedflowsRevisionsService) Delete(name string) *OrganizationsSharedflowsRevisionsDeleteCall {
42217	c := &OrganizationsSharedflowsRevisionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42218	c.name = name
42219	return c
42220}
42221
42222// Fields allows partial responses to be retrieved. See
42223// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
42224// for more information.
42225func (c *OrganizationsSharedflowsRevisionsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsRevisionsDeleteCall {
42226	c.urlParams_.Set("fields", googleapi.CombineFields(s))
42227	return c
42228}
42229
42230// Context sets the context to be used in this call's Do method. Any
42231// pending HTTP request will be aborted if the provided context is
42232// canceled.
42233func (c *OrganizationsSharedflowsRevisionsDeleteCall) Context(ctx context.Context) *OrganizationsSharedflowsRevisionsDeleteCall {
42234	c.ctx_ = ctx
42235	return c
42236}
42237
42238// Header returns an http.Header that can be modified by the caller to
42239// add HTTP headers to the request.
42240func (c *OrganizationsSharedflowsRevisionsDeleteCall) Header() http.Header {
42241	if c.header_ == nil {
42242		c.header_ = make(http.Header)
42243	}
42244	return c.header_
42245}
42246
42247func (c *OrganizationsSharedflowsRevisionsDeleteCall) doRequest(alt string) (*http.Response, error) {
42248	reqHeaders := make(http.Header)
42249	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
42250	for k, v := range c.header_ {
42251		reqHeaders[k] = v
42252	}
42253	reqHeaders.Set("User-Agent", c.s.userAgent())
42254	var body io.Reader = nil
42255	c.urlParams_.Set("alt", alt)
42256	c.urlParams_.Set("prettyPrint", "false")
42257	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
42258	urls += "?" + c.urlParams_.Encode()
42259	req, err := http.NewRequest("DELETE", urls, body)
42260	if err != nil {
42261		return nil, err
42262	}
42263	req.Header = reqHeaders
42264	googleapi.Expand(req.URL, map[string]string{
42265		"name": c.name,
42266	})
42267	return gensupport.SendRequest(c.ctx_, c.s.client, req)
42268}
42269
42270// Do executes the "apigee.organizations.sharedflows.revisions.delete" call.
42271// Exactly one of *GoogleCloudApigeeV1SharedFlowRevision or error will
42272// be non-nil. Any non-2xx status code is an error. Response headers are
42273// in either
42274// *GoogleCloudApigeeV1SharedFlowRevision.ServerResponse.Header or (if a
42275// response was returned at all) in error.(*googleapi.Error).Header. Use
42276// googleapi.IsNotModified to check whether the returned error was
42277// because http.StatusNotModified was returned.
42278func (c *OrganizationsSharedflowsRevisionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SharedFlowRevision, error) {
42279	gensupport.SetOptions(c.urlParams_, opts...)
42280	res, err := c.doRequest("json")
42281	if res != nil && res.StatusCode == http.StatusNotModified {
42282		if res.Body != nil {
42283			res.Body.Close()
42284		}
42285		return nil, &googleapi.Error{
42286			Code:   res.StatusCode,
42287			Header: res.Header,
42288		}
42289	}
42290	if err != nil {
42291		return nil, err
42292	}
42293	defer googleapi.CloseBody(res)
42294	if err := googleapi.CheckResponse(res); err != nil {
42295		return nil, err
42296	}
42297	ret := &GoogleCloudApigeeV1SharedFlowRevision{
42298		ServerResponse: googleapi.ServerResponse{
42299			Header:         res.Header,
42300			HTTPStatusCode: res.StatusCode,
42301		},
42302	}
42303	target := &ret
42304	if err := gensupport.DecodeResponse(target, res); err != nil {
42305		return nil, err
42306	}
42307	return ret, nil
42308	// {
42309	//   "description": "Deletes a shared flow and all associated policies, resources, and revisions. You must undeploy the shared flow before deleting it.",
42310	//   "flatPath": "v1/organizations/{organizationsId}/sharedflows/{sharedflowsId}/revisions/{revisionsId}",
42311	//   "httpMethod": "DELETE",
42312	//   "id": "apigee.organizations.sharedflows.revisions.delete",
42313	//   "parameterOrder": [
42314	//     "name"
42315	//   ],
42316	//   "parameters": {
42317	//     "name": {
42318	//       "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}`",
42319	//       "location": "path",
42320	//       "pattern": "^organizations/[^/]+/sharedflows/[^/]+/revisions/[^/]+$",
42321	//       "required": true,
42322	//       "type": "string"
42323	//     }
42324	//   },
42325	//   "path": "v1/{+name}",
42326	//   "response": {
42327	//     "$ref": "GoogleCloudApigeeV1SharedFlowRevision"
42328	//   },
42329	//   "scopes": [
42330	//     "https://www.googleapis.com/auth/cloud-platform"
42331	//   ]
42332	// }
42333
42334}
42335
42336// method id "apigee.organizations.sharedflows.revisions.get":
42337
42338type OrganizationsSharedflowsRevisionsGetCall struct {
42339	s            *Service
42340	name         string
42341	urlParams_   gensupport.URLParams
42342	ifNoneMatch_ string
42343	ctx_         context.Context
42344	header_      http.Header
42345}
42346
42347// Get: Gets a revision of a shared flow. To download the shared flow
42348// configuration bundle for the specified revision as a zip file, set
42349// the `format` query parameter to `bundle`. If you are using curl,
42350// specify `-o filename.zip` to save the output to a file; otherwise, it
42351// displays to `stdout`. Then, develop the shared flow configuration
42352// locally and upload the updated sharedFlow configuration revision, as
42353// described in updateSharedFlowRevision (updateSharedFlowRevision).
42354//
42355// - name: The name of the shared flow revision to get. Must be of the
42356//   form:
42357//   `organizations/{organization_id}/sharedflows/{shared_flow_id}/revisi
42358//   ons/{revision_id}`.
42359func (r *OrganizationsSharedflowsRevisionsService) Get(name string) *OrganizationsSharedflowsRevisionsGetCall {
42360	c := &OrganizationsSharedflowsRevisionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42361	c.name = name
42362	return c
42363}
42364
42365// Format sets the optional parameter "format": Specify `bundle` to
42366// export the contents of the shared flow bundle. Otherwise, the bundle
42367// metadata is returned.
42368func (c *OrganizationsSharedflowsRevisionsGetCall) Format(format string) *OrganizationsSharedflowsRevisionsGetCall {
42369	c.urlParams_.Set("format", format)
42370	return c
42371}
42372
42373// Fields allows partial responses to be retrieved. See
42374// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
42375// for more information.
42376func (c *OrganizationsSharedflowsRevisionsGetCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsRevisionsGetCall {
42377	c.urlParams_.Set("fields", googleapi.CombineFields(s))
42378	return c
42379}
42380
42381// IfNoneMatch sets the optional parameter which makes the operation
42382// fail if the object's ETag matches the given value. This is useful for
42383// getting updates only after the object has changed since the last
42384// request. Use googleapi.IsNotModified to check whether the response
42385// error from Do is the result of In-None-Match.
42386func (c *OrganizationsSharedflowsRevisionsGetCall) IfNoneMatch(entityTag string) *OrganizationsSharedflowsRevisionsGetCall {
42387	c.ifNoneMatch_ = entityTag
42388	return c
42389}
42390
42391// Context sets the context to be used in this call's Do method. Any
42392// pending HTTP request will be aborted if the provided context is
42393// canceled.
42394func (c *OrganizationsSharedflowsRevisionsGetCall) Context(ctx context.Context) *OrganizationsSharedflowsRevisionsGetCall {
42395	c.ctx_ = ctx
42396	return c
42397}
42398
42399// Header returns an http.Header that can be modified by the caller to
42400// add HTTP headers to the request.
42401func (c *OrganizationsSharedflowsRevisionsGetCall) Header() http.Header {
42402	if c.header_ == nil {
42403		c.header_ = make(http.Header)
42404	}
42405	return c.header_
42406}
42407
42408func (c *OrganizationsSharedflowsRevisionsGetCall) doRequest(alt string) (*http.Response, error) {
42409	reqHeaders := make(http.Header)
42410	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
42411	for k, v := range c.header_ {
42412		reqHeaders[k] = v
42413	}
42414	reqHeaders.Set("User-Agent", c.s.userAgent())
42415	if c.ifNoneMatch_ != "" {
42416		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
42417	}
42418	var body io.Reader = nil
42419	c.urlParams_.Set("alt", alt)
42420	c.urlParams_.Set("prettyPrint", "false")
42421	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
42422	urls += "?" + c.urlParams_.Encode()
42423	req, err := http.NewRequest("GET", urls, body)
42424	if err != nil {
42425		return nil, err
42426	}
42427	req.Header = reqHeaders
42428	googleapi.Expand(req.URL, map[string]string{
42429		"name": c.name,
42430	})
42431	return gensupport.SendRequest(c.ctx_, c.s.client, req)
42432}
42433
42434// Do executes the "apigee.organizations.sharedflows.revisions.get" call.
42435// Exactly one of *GoogleApiHttpBody or error will be non-nil. Any
42436// non-2xx status code is an error. Response headers are in either
42437// *GoogleApiHttpBody.ServerResponse.Header or (if a response was
42438// returned at all) in error.(*googleapi.Error).Header. Use
42439// googleapi.IsNotModified to check whether the returned error was
42440// because http.StatusNotModified was returned.
42441func (c *OrganizationsSharedflowsRevisionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
42442	gensupport.SetOptions(c.urlParams_, opts...)
42443	res, err := c.doRequest("json")
42444	if res != nil && res.StatusCode == http.StatusNotModified {
42445		if res.Body != nil {
42446			res.Body.Close()
42447		}
42448		return nil, &googleapi.Error{
42449			Code:   res.StatusCode,
42450			Header: res.Header,
42451		}
42452	}
42453	if err != nil {
42454		return nil, err
42455	}
42456	defer googleapi.CloseBody(res)
42457	if err := googleapi.CheckResponse(res); err != nil {
42458		return nil, err
42459	}
42460	ret := &GoogleApiHttpBody{
42461		ServerResponse: googleapi.ServerResponse{
42462			Header:         res.Header,
42463			HTTPStatusCode: res.StatusCode,
42464		},
42465	}
42466	target := &ret
42467	if err := gensupport.DecodeResponse(target, res); err != nil {
42468		return nil, err
42469	}
42470	return ret, nil
42471	// {
42472	//   "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).",
42473	//   "flatPath": "v1/organizations/{organizationsId}/sharedflows/{sharedflowsId}/revisions/{revisionsId}",
42474	//   "httpMethod": "GET",
42475	//   "id": "apigee.organizations.sharedflows.revisions.get",
42476	//   "parameterOrder": [
42477	//     "name"
42478	//   ],
42479	//   "parameters": {
42480	//     "format": {
42481	//       "description": "Specify `bundle` to export the contents of the shared flow bundle. Otherwise, the bundle metadata is returned.",
42482	//       "location": "query",
42483	//       "type": "string"
42484	//     },
42485	//     "name": {
42486	//       "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}`",
42487	//       "location": "path",
42488	//       "pattern": "^organizations/[^/]+/sharedflows/[^/]+/revisions/[^/]+$",
42489	//       "required": true,
42490	//       "type": "string"
42491	//     }
42492	//   },
42493	//   "path": "v1/{+name}",
42494	//   "response": {
42495	//     "$ref": "GoogleApiHttpBody"
42496	//   },
42497	//   "scopes": [
42498	//     "https://www.googleapis.com/auth/cloud-platform"
42499	//   ]
42500	// }
42501
42502}
42503
42504// method id "apigee.organizations.sharedflows.revisions.updateSharedFlowRevision":
42505
42506type OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall struct {
42507	s                 *Service
42508	name              string
42509	googleapihttpbody *GoogleApiHttpBody
42510	urlParams_        gensupport.URLParams
42511	ctx_              context.Context
42512	header_           http.Header
42513}
42514
42515// UpdateSharedFlowRevision: Updates a shared flow revision. This
42516// operation is only allowed on revisions which have never been
42517// deployed. After deployment a revision becomes immutable, even if it
42518// becomes undeployed. The payload is a ZIP-formatted shared flow.
42519// Content type must be either multipart/form-data or
42520// application/octet-stream.
42521//
42522// - name: The name of the shared flow revision to update. Must be of
42523//   the form:
42524//   `organizations/{organization_id}/sharedflows/{shared_flow_id}/revisi
42525//   ons/{revision_id}`.
42526func (r *OrganizationsSharedflowsRevisionsService) UpdateSharedFlowRevision(name string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall {
42527	c := &OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42528	c.name = name
42529	c.googleapihttpbody = googleapihttpbody
42530	return c
42531}
42532
42533// Validate sets the optional parameter "validate": Ignored. All uploads
42534// are validated regardless of the value of this field. It is kept for
42535// compatibility with existing APIs. Must be `true` or `false` if
42536// provided.
42537func (c *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall) Validate(validate bool) *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall {
42538	c.urlParams_.Set("validate", fmt.Sprint(validate))
42539	return c
42540}
42541
42542// Fields allows partial responses to be retrieved. See
42543// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
42544// for more information.
42545func (c *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall {
42546	c.urlParams_.Set("fields", googleapi.CombineFields(s))
42547	return c
42548}
42549
42550// Context sets the context to be used in this call's Do method. Any
42551// pending HTTP request will be aborted if the provided context is
42552// canceled.
42553func (c *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall) Context(ctx context.Context) *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall {
42554	c.ctx_ = ctx
42555	return c
42556}
42557
42558// Header returns an http.Header that can be modified by the caller to
42559// add HTTP headers to the request.
42560func (c *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall) Header() http.Header {
42561	if c.header_ == nil {
42562		c.header_ = make(http.Header)
42563	}
42564	return c.header_
42565}
42566
42567func (c *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall) doRequest(alt string) (*http.Response, error) {
42568	reqHeaders := make(http.Header)
42569	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
42570	for k, v := range c.header_ {
42571		reqHeaders[k] = v
42572	}
42573	reqHeaders.Set("User-Agent", c.s.userAgent())
42574	var body io.Reader = nil
42575	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
42576	if err != nil {
42577		return nil, err
42578	}
42579	reqHeaders.Set("Content-Type", "application/json")
42580	c.urlParams_.Set("alt", alt)
42581	c.urlParams_.Set("prettyPrint", "false")
42582	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
42583	urls += "?" + c.urlParams_.Encode()
42584	req, err := http.NewRequest("POST", urls, body)
42585	if err != nil {
42586		return nil, err
42587	}
42588	req.Header = reqHeaders
42589	googleapi.Expand(req.URL, map[string]string{
42590		"name": c.name,
42591	})
42592	return gensupport.SendRequest(c.ctx_, c.s.client, req)
42593}
42594
42595// Do executes the "apigee.organizations.sharedflows.revisions.updateSharedFlowRevision" call.
42596// Exactly one of *GoogleCloudApigeeV1SharedFlowRevision or error will
42597// be non-nil. Any non-2xx status code is an error. Response headers are
42598// in either
42599// *GoogleCloudApigeeV1SharedFlowRevision.ServerResponse.Header or (if a
42600// response was returned at all) in error.(*googleapi.Error).Header. Use
42601// googleapi.IsNotModified to check whether the returned error was
42602// because http.StatusNotModified was returned.
42603func (c *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SharedFlowRevision, error) {
42604	gensupport.SetOptions(c.urlParams_, opts...)
42605	res, err := c.doRequest("json")
42606	if res != nil && res.StatusCode == http.StatusNotModified {
42607		if res.Body != nil {
42608			res.Body.Close()
42609		}
42610		return nil, &googleapi.Error{
42611			Code:   res.StatusCode,
42612			Header: res.Header,
42613		}
42614	}
42615	if err != nil {
42616		return nil, err
42617	}
42618	defer googleapi.CloseBody(res)
42619	if err := googleapi.CheckResponse(res); err != nil {
42620		return nil, err
42621	}
42622	ret := &GoogleCloudApigeeV1SharedFlowRevision{
42623		ServerResponse: googleapi.ServerResponse{
42624			Header:         res.Header,
42625			HTTPStatusCode: res.StatusCode,
42626		},
42627	}
42628	target := &ret
42629	if err := gensupport.DecodeResponse(target, res); err != nil {
42630		return nil, err
42631	}
42632	return ret, nil
42633	// {
42634	//   "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.",
42635	//   "flatPath": "v1/organizations/{organizationsId}/sharedflows/{sharedflowsId}/revisions/{revisionsId}",
42636	//   "httpMethod": "POST",
42637	//   "id": "apigee.organizations.sharedflows.revisions.updateSharedFlowRevision",
42638	//   "parameterOrder": [
42639	//     "name"
42640	//   ],
42641	//   "parameters": {
42642	//     "name": {
42643	//       "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}`",
42644	//       "location": "path",
42645	//       "pattern": "^organizations/[^/]+/sharedflows/[^/]+/revisions/[^/]+$",
42646	//       "required": true,
42647	//       "type": "string"
42648	//     },
42649	//     "validate": {
42650	//       "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.",
42651	//       "location": "query",
42652	//       "type": "boolean"
42653	//     }
42654	//   },
42655	//   "path": "v1/{+name}",
42656	//   "request": {
42657	//     "$ref": "GoogleApiHttpBody"
42658	//   },
42659	//   "response": {
42660	//     "$ref": "GoogleCloudApigeeV1SharedFlowRevision"
42661	//   },
42662	//   "scopes": [
42663	//     "https://www.googleapis.com/auth/cloud-platform"
42664	//   ]
42665	// }
42666
42667}
42668
42669// method id "apigee.organizations.sharedflows.revisions.deployments.list":
42670
42671type OrganizationsSharedflowsRevisionsDeploymentsListCall struct {
42672	s            *Service
42673	parent       string
42674	urlParams_   gensupport.URLParams
42675	ifNoneMatch_ string
42676	ctx_         context.Context
42677	header_      http.Header
42678}
42679
42680// List: Lists all deployments of a shared flow revision.
42681//
42682// - parent: Name of the API proxy revision for which to return
42683//   deployment information in the following format:
42684//   `organizations/{org}/sharedflows/{sharedflow}/revisions/{rev}`.
42685func (r *OrganizationsSharedflowsRevisionsDeploymentsService) List(parent string) *OrganizationsSharedflowsRevisionsDeploymentsListCall {
42686	c := &OrganizationsSharedflowsRevisionsDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42687	c.parent = parent
42688	return c
42689}
42690
42691// Fields allows partial responses to be retrieved. See
42692// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
42693// for more information.
42694func (c *OrganizationsSharedflowsRevisionsDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsRevisionsDeploymentsListCall {
42695	c.urlParams_.Set("fields", googleapi.CombineFields(s))
42696	return c
42697}
42698
42699// IfNoneMatch sets the optional parameter which makes the operation
42700// fail if the object's ETag matches the given value. This is useful for
42701// getting updates only after the object has changed since the last
42702// request. Use googleapi.IsNotModified to check whether the response
42703// error from Do is the result of In-None-Match.
42704func (c *OrganizationsSharedflowsRevisionsDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsSharedflowsRevisionsDeploymentsListCall {
42705	c.ifNoneMatch_ = entityTag
42706	return c
42707}
42708
42709// Context sets the context to be used in this call's Do method. Any
42710// pending HTTP request will be aborted if the provided context is
42711// canceled.
42712func (c *OrganizationsSharedflowsRevisionsDeploymentsListCall) Context(ctx context.Context) *OrganizationsSharedflowsRevisionsDeploymentsListCall {
42713	c.ctx_ = ctx
42714	return c
42715}
42716
42717// Header returns an http.Header that can be modified by the caller to
42718// add HTTP headers to the request.
42719func (c *OrganizationsSharedflowsRevisionsDeploymentsListCall) Header() http.Header {
42720	if c.header_ == nil {
42721		c.header_ = make(http.Header)
42722	}
42723	return c.header_
42724}
42725
42726func (c *OrganizationsSharedflowsRevisionsDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
42727	reqHeaders := make(http.Header)
42728	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
42729	for k, v := range c.header_ {
42730		reqHeaders[k] = v
42731	}
42732	reqHeaders.Set("User-Agent", c.s.userAgent())
42733	if c.ifNoneMatch_ != "" {
42734		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
42735	}
42736	var body io.Reader = nil
42737	c.urlParams_.Set("alt", alt)
42738	c.urlParams_.Set("prettyPrint", "false")
42739	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
42740	urls += "?" + c.urlParams_.Encode()
42741	req, err := http.NewRequest("GET", urls, body)
42742	if err != nil {
42743		return nil, err
42744	}
42745	req.Header = reqHeaders
42746	googleapi.Expand(req.URL, map[string]string{
42747		"parent": c.parent,
42748	})
42749	return gensupport.SendRequest(c.ctx_, c.s.client, req)
42750}
42751
42752// Do executes the "apigee.organizations.sharedflows.revisions.deployments.list" call.
42753// Exactly one of *GoogleCloudApigeeV1ListDeploymentsResponse or error
42754// will be non-nil. Any non-2xx status code is an error. Response
42755// headers are in either
42756// *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or
42757// (if a response was returned at all) in
42758// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
42759// whether the returned error was because http.StatusNotModified was
42760// returned.
42761func (c *OrganizationsSharedflowsRevisionsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
42762	gensupport.SetOptions(c.urlParams_, opts...)
42763	res, err := c.doRequest("json")
42764	if res != nil && res.StatusCode == http.StatusNotModified {
42765		if res.Body != nil {
42766			res.Body.Close()
42767		}
42768		return nil, &googleapi.Error{
42769			Code:   res.StatusCode,
42770			Header: res.Header,
42771		}
42772	}
42773	if err != nil {
42774		return nil, err
42775	}
42776	defer googleapi.CloseBody(res)
42777	if err := googleapi.CheckResponse(res); err != nil {
42778		return nil, err
42779	}
42780	ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
42781		ServerResponse: googleapi.ServerResponse{
42782			Header:         res.Header,
42783			HTTPStatusCode: res.StatusCode,
42784		},
42785	}
42786	target := &ret
42787	if err := gensupport.DecodeResponse(target, res); err != nil {
42788		return nil, err
42789	}
42790	return ret, nil
42791	// {
42792	//   "description": "Lists all deployments of a shared flow revision.",
42793	//   "flatPath": "v1/organizations/{organizationsId}/sharedflows/{sharedflowsId}/revisions/{revisionsId}/deployments",
42794	//   "httpMethod": "GET",
42795	//   "id": "apigee.organizations.sharedflows.revisions.deployments.list",
42796	//   "parameterOrder": [
42797	//     "parent"
42798	//   ],
42799	//   "parameters": {
42800	//     "parent": {
42801	//       "description": "Required. Name of the API proxy revision for which to return deployment information in the following format: `organizations/{org}/sharedflows/{sharedflow}/revisions/{rev}`.",
42802	//       "location": "path",
42803	//       "pattern": "^organizations/[^/]+/sharedflows/[^/]+/revisions/[^/]+$",
42804	//       "required": true,
42805	//       "type": "string"
42806	//     }
42807	//   },
42808	//   "path": "v1/{+parent}/deployments",
42809	//   "response": {
42810	//     "$ref": "GoogleCloudApigeeV1ListDeploymentsResponse"
42811	//   },
42812	//   "scopes": [
42813	//     "https://www.googleapis.com/auth/cloud-platform"
42814	//   ]
42815	// }
42816
42817}
42818
42819// method id "apigee.organizations.sites.apicategories.create":
42820
42821type OrganizationsSitesApicategoriesCreateCall struct {
42822	s                                  *Service
42823	parent                             string
42824	googlecloudapigeev1apicategorydata *GoogleCloudApigeeV1ApiCategoryData
42825	urlParams_                         gensupport.URLParams
42826	ctx_                               context.Context
42827	header_                            http.Header
42828}
42829
42830// Create: Creates a new category on the portal.
42831//
42832// - parent: Name of the portal. Use the following structure in your
42833//   request: `organizations/{org}/sites/{site}`.
42834func (r *OrganizationsSitesApicategoriesService) Create(parent string, googlecloudapigeev1apicategorydata *GoogleCloudApigeeV1ApiCategoryData) *OrganizationsSitesApicategoriesCreateCall {
42835	c := &OrganizationsSitesApicategoriesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42836	c.parent = parent
42837	c.googlecloudapigeev1apicategorydata = googlecloudapigeev1apicategorydata
42838	return c
42839}
42840
42841// Fields allows partial responses to be retrieved. See
42842// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
42843// for more information.
42844func (c *OrganizationsSitesApicategoriesCreateCall) Fields(s ...googleapi.Field) *OrganizationsSitesApicategoriesCreateCall {
42845	c.urlParams_.Set("fields", googleapi.CombineFields(s))
42846	return c
42847}
42848
42849// Context sets the context to be used in this call's Do method. Any
42850// pending HTTP request will be aborted if the provided context is
42851// canceled.
42852func (c *OrganizationsSitesApicategoriesCreateCall) Context(ctx context.Context) *OrganizationsSitesApicategoriesCreateCall {
42853	c.ctx_ = ctx
42854	return c
42855}
42856
42857// Header returns an http.Header that can be modified by the caller to
42858// add HTTP headers to the request.
42859func (c *OrganizationsSitesApicategoriesCreateCall) Header() http.Header {
42860	if c.header_ == nil {
42861		c.header_ = make(http.Header)
42862	}
42863	return c.header_
42864}
42865
42866func (c *OrganizationsSitesApicategoriesCreateCall) doRequest(alt string) (*http.Response, error) {
42867	reqHeaders := make(http.Header)
42868	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
42869	for k, v := range c.header_ {
42870		reqHeaders[k] = v
42871	}
42872	reqHeaders.Set("User-Agent", c.s.userAgent())
42873	var body io.Reader = nil
42874	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1apicategorydata)
42875	if err != nil {
42876		return nil, err
42877	}
42878	reqHeaders.Set("Content-Type", "application/json")
42879	c.urlParams_.Set("alt", alt)
42880	c.urlParams_.Set("prettyPrint", "false")
42881	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apicategories")
42882	urls += "?" + c.urlParams_.Encode()
42883	req, err := http.NewRequest("POST", urls, body)
42884	if err != nil {
42885		return nil, err
42886	}
42887	req.Header = reqHeaders
42888	googleapi.Expand(req.URL, map[string]string{
42889		"parent": c.parent,
42890	})
42891	return gensupport.SendRequest(c.ctx_, c.s.client, req)
42892}
42893
42894// Do executes the "apigee.organizations.sites.apicategories.create" call.
42895// Exactly one of *GoogleCloudApigeeV1ApiCategory or error will be
42896// non-nil. Any non-2xx status code is an error. Response headers are in
42897// either *GoogleCloudApigeeV1ApiCategory.ServerResponse.Header or (if a
42898// response was returned at all) in error.(*googleapi.Error).Header. Use
42899// googleapi.IsNotModified to check whether the returned error was
42900// because http.StatusNotModified was returned.
42901func (c *OrganizationsSitesApicategoriesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiCategory, error) {
42902	gensupport.SetOptions(c.urlParams_, opts...)
42903	res, err := c.doRequest("json")
42904	if res != nil && res.StatusCode == http.StatusNotModified {
42905		if res.Body != nil {
42906			res.Body.Close()
42907		}
42908		return nil, &googleapi.Error{
42909			Code:   res.StatusCode,
42910			Header: res.Header,
42911		}
42912	}
42913	if err != nil {
42914		return nil, err
42915	}
42916	defer googleapi.CloseBody(res)
42917	if err := googleapi.CheckResponse(res); err != nil {
42918		return nil, err
42919	}
42920	ret := &GoogleCloudApigeeV1ApiCategory{
42921		ServerResponse: googleapi.ServerResponse{
42922			Header:         res.Header,
42923			HTTPStatusCode: res.StatusCode,
42924		},
42925	}
42926	target := &ret
42927	if err := gensupport.DecodeResponse(target, res); err != nil {
42928		return nil, err
42929	}
42930	return ret, nil
42931	// {
42932	//   "description": "Creates a new category on the portal.",
42933	//   "flatPath": "v1/organizations/{organizationsId}/sites/{sitesId}/apicategories",
42934	//   "httpMethod": "POST",
42935	//   "id": "apigee.organizations.sites.apicategories.create",
42936	//   "parameterOrder": [
42937	//     "parent"
42938	//   ],
42939	//   "parameters": {
42940	//     "parent": {
42941	//       "description": "Required. Name of the portal. Use the following structure in your request: `organizations/{org}/sites/{site}`",
42942	//       "location": "path",
42943	//       "pattern": "^organizations/[^/]+/sites/[^/]+$",
42944	//       "required": true,
42945	//       "type": "string"
42946	//     }
42947	//   },
42948	//   "path": "v1/{+parent}/apicategories",
42949	//   "request": {
42950	//     "$ref": "GoogleCloudApigeeV1ApiCategoryData"
42951	//   },
42952	//   "response": {
42953	//     "$ref": "GoogleCloudApigeeV1ApiCategory"
42954	//   },
42955	//   "scopes": [
42956	//     "https://www.googleapis.com/auth/cloud-platform"
42957	//   ]
42958	// }
42959
42960}
42961
42962// method id "apigee.organizations.sites.apicategories.delete":
42963
42964type OrganizationsSitesApicategoriesDeleteCall struct {
42965	s          *Service
42966	name       string
42967	urlParams_ gensupport.URLParams
42968	ctx_       context.Context
42969	header_    http.Header
42970}
42971
42972// Delete: Deletes a category from the portal.
42973//
42974// - name: Name of the category. Use the following structure in your
42975//   request:
42976//   `organizations/{org}/sites/{site}/apicategories/{apicategory}`.
42977func (r *OrganizationsSitesApicategoriesService) Delete(name string) *OrganizationsSitesApicategoriesDeleteCall {
42978	c := &OrganizationsSitesApicategoriesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42979	c.name = name
42980	return c
42981}
42982
42983// Fields allows partial responses to be retrieved. See
42984// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
42985// for more information.
42986func (c *OrganizationsSitesApicategoriesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsSitesApicategoriesDeleteCall {
42987	c.urlParams_.Set("fields", googleapi.CombineFields(s))
42988	return c
42989}
42990
42991// Context sets the context to be used in this call's Do method. Any
42992// pending HTTP request will be aborted if the provided context is
42993// canceled.
42994func (c *OrganizationsSitesApicategoriesDeleteCall) Context(ctx context.Context) *OrganizationsSitesApicategoriesDeleteCall {
42995	c.ctx_ = ctx
42996	return c
42997}
42998
42999// Header returns an http.Header that can be modified by the caller to
43000// add HTTP headers to the request.
43001func (c *OrganizationsSitesApicategoriesDeleteCall) Header() http.Header {
43002	if c.header_ == nil {
43003		c.header_ = make(http.Header)
43004	}
43005	return c.header_
43006}
43007
43008func (c *OrganizationsSitesApicategoriesDeleteCall) doRequest(alt string) (*http.Response, error) {
43009	reqHeaders := make(http.Header)
43010	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
43011	for k, v := range c.header_ {
43012		reqHeaders[k] = v
43013	}
43014	reqHeaders.Set("User-Agent", c.s.userAgent())
43015	var body io.Reader = nil
43016	c.urlParams_.Set("alt", alt)
43017	c.urlParams_.Set("prettyPrint", "false")
43018	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
43019	urls += "?" + c.urlParams_.Encode()
43020	req, err := http.NewRequest("DELETE", urls, body)
43021	if err != nil {
43022		return nil, err
43023	}
43024	req.Header = reqHeaders
43025	googleapi.Expand(req.URL, map[string]string{
43026		"name": c.name,
43027	})
43028	return gensupport.SendRequest(c.ctx_, c.s.client, req)
43029}
43030
43031// Do executes the "apigee.organizations.sites.apicategories.delete" call.
43032// Exactly one of *GoogleCloudApigeeV1ApiResponseWrapper or error will
43033// be non-nil. Any non-2xx status code is an error. Response headers are
43034// in either
43035// *GoogleCloudApigeeV1ApiResponseWrapper.ServerResponse.Header or (if a
43036// response was returned at all) in error.(*googleapi.Error).Header. Use
43037// googleapi.IsNotModified to check whether the returned error was
43038// because http.StatusNotModified was returned.
43039func (c *OrganizationsSitesApicategoriesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiResponseWrapper, error) {
43040	gensupport.SetOptions(c.urlParams_, opts...)
43041	res, err := c.doRequest("json")
43042	if res != nil && res.StatusCode == http.StatusNotModified {
43043		if res.Body != nil {
43044			res.Body.Close()
43045		}
43046		return nil, &googleapi.Error{
43047			Code:   res.StatusCode,
43048			Header: res.Header,
43049		}
43050	}
43051	if err != nil {
43052		return nil, err
43053	}
43054	defer googleapi.CloseBody(res)
43055	if err := googleapi.CheckResponse(res); err != nil {
43056		return nil, err
43057	}
43058	ret := &GoogleCloudApigeeV1ApiResponseWrapper{
43059		ServerResponse: googleapi.ServerResponse{
43060			Header:         res.Header,
43061			HTTPStatusCode: res.StatusCode,
43062		},
43063	}
43064	target := &ret
43065	if err := gensupport.DecodeResponse(target, res); err != nil {
43066		return nil, err
43067	}
43068	return ret, nil
43069	// {
43070	//   "description": "Deletes a category from the portal.",
43071	//   "flatPath": "v1/organizations/{organizationsId}/sites/{sitesId}/apicategories/{apicategoriesId}",
43072	//   "httpMethod": "DELETE",
43073	//   "id": "apigee.organizations.sites.apicategories.delete",
43074	//   "parameterOrder": [
43075	//     "name"
43076	//   ],
43077	//   "parameters": {
43078	//     "name": {
43079	//       "description": "Required. Name of the category. Use the following structure in your request: `organizations/{org}/sites/{site}/apicategories/{apicategory}`",
43080	//       "location": "path",
43081	//       "pattern": "^organizations/[^/]+/sites/[^/]+/apicategories/[^/]+$",
43082	//       "required": true,
43083	//       "type": "string"
43084	//     }
43085	//   },
43086	//   "path": "v1/{+name}",
43087	//   "response": {
43088	//     "$ref": "GoogleCloudApigeeV1ApiResponseWrapper"
43089	//   },
43090	//   "scopes": [
43091	//     "https://www.googleapis.com/auth/cloud-platform"
43092	//   ]
43093	// }
43094
43095}
43096
43097// method id "apigee.organizations.sites.apicategories.get":
43098
43099type OrganizationsSitesApicategoriesGetCall struct {
43100	s            *Service
43101	name         string
43102	urlParams_   gensupport.URLParams
43103	ifNoneMatch_ string
43104	ctx_         context.Context
43105	header_      http.Header
43106}
43107
43108// Get: Gets a category on the portal.
43109//
43110// - name: Name of the category. Use the following structure in your
43111//   request:
43112//   `organizations/{org}/sites/{site}/apicategories/{apicategory}`.
43113func (r *OrganizationsSitesApicategoriesService) Get(name string) *OrganizationsSitesApicategoriesGetCall {
43114	c := &OrganizationsSitesApicategoriesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43115	c.name = name
43116	return c
43117}
43118
43119// Fields allows partial responses to be retrieved. See
43120// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
43121// for more information.
43122func (c *OrganizationsSitesApicategoriesGetCall) Fields(s ...googleapi.Field) *OrganizationsSitesApicategoriesGetCall {
43123	c.urlParams_.Set("fields", googleapi.CombineFields(s))
43124	return c
43125}
43126
43127// IfNoneMatch sets the optional parameter which makes the operation
43128// fail if the object's ETag matches the given value. This is useful for
43129// getting updates only after the object has changed since the last
43130// request. Use googleapi.IsNotModified to check whether the response
43131// error from Do is the result of In-None-Match.
43132func (c *OrganizationsSitesApicategoriesGetCall) IfNoneMatch(entityTag string) *OrganizationsSitesApicategoriesGetCall {
43133	c.ifNoneMatch_ = entityTag
43134	return c
43135}
43136
43137// Context sets the context to be used in this call's Do method. Any
43138// pending HTTP request will be aborted if the provided context is
43139// canceled.
43140func (c *OrganizationsSitesApicategoriesGetCall) Context(ctx context.Context) *OrganizationsSitesApicategoriesGetCall {
43141	c.ctx_ = ctx
43142	return c
43143}
43144
43145// Header returns an http.Header that can be modified by the caller to
43146// add HTTP headers to the request.
43147func (c *OrganizationsSitesApicategoriesGetCall) Header() http.Header {
43148	if c.header_ == nil {
43149		c.header_ = make(http.Header)
43150	}
43151	return c.header_
43152}
43153
43154func (c *OrganizationsSitesApicategoriesGetCall) doRequest(alt string) (*http.Response, error) {
43155	reqHeaders := make(http.Header)
43156	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
43157	for k, v := range c.header_ {
43158		reqHeaders[k] = v
43159	}
43160	reqHeaders.Set("User-Agent", c.s.userAgent())
43161	if c.ifNoneMatch_ != "" {
43162		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
43163	}
43164	var body io.Reader = nil
43165	c.urlParams_.Set("alt", alt)
43166	c.urlParams_.Set("prettyPrint", "false")
43167	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
43168	urls += "?" + c.urlParams_.Encode()
43169	req, err := http.NewRequest("GET", urls, body)
43170	if err != nil {
43171		return nil, err
43172	}
43173	req.Header = reqHeaders
43174	googleapi.Expand(req.URL, map[string]string{
43175		"name": c.name,
43176	})
43177	return gensupport.SendRequest(c.ctx_, c.s.client, req)
43178}
43179
43180// Do executes the "apigee.organizations.sites.apicategories.get" call.
43181// Exactly one of *GoogleCloudApigeeV1ApiCategory or error will be
43182// non-nil. Any non-2xx status code is an error. Response headers are in
43183// either *GoogleCloudApigeeV1ApiCategory.ServerResponse.Header or (if a
43184// response was returned at all) in error.(*googleapi.Error).Header. Use
43185// googleapi.IsNotModified to check whether the returned error was
43186// because http.StatusNotModified was returned.
43187func (c *OrganizationsSitesApicategoriesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiCategory, error) {
43188	gensupport.SetOptions(c.urlParams_, opts...)
43189	res, err := c.doRequest("json")
43190	if res != nil && res.StatusCode == http.StatusNotModified {
43191		if res.Body != nil {
43192			res.Body.Close()
43193		}
43194		return nil, &googleapi.Error{
43195			Code:   res.StatusCode,
43196			Header: res.Header,
43197		}
43198	}
43199	if err != nil {
43200		return nil, err
43201	}
43202	defer googleapi.CloseBody(res)
43203	if err := googleapi.CheckResponse(res); err != nil {
43204		return nil, err
43205	}
43206	ret := &GoogleCloudApigeeV1ApiCategory{
43207		ServerResponse: googleapi.ServerResponse{
43208			Header:         res.Header,
43209			HTTPStatusCode: res.StatusCode,
43210		},
43211	}
43212	target := &ret
43213	if err := gensupport.DecodeResponse(target, res); err != nil {
43214		return nil, err
43215	}
43216	return ret, nil
43217	// {
43218	//   "description": "Gets a category on the portal.",
43219	//   "flatPath": "v1/organizations/{organizationsId}/sites/{sitesId}/apicategories/{apicategoriesId}",
43220	//   "httpMethod": "GET",
43221	//   "id": "apigee.organizations.sites.apicategories.get",
43222	//   "parameterOrder": [
43223	//     "name"
43224	//   ],
43225	//   "parameters": {
43226	//     "name": {
43227	//       "description": "Required. Name of the category. Use the following structure in your request: `organizations/{org}/sites/{site}/apicategories/{apicategory}`",
43228	//       "location": "path",
43229	//       "pattern": "^organizations/[^/]+/sites/[^/]+/apicategories/[^/]+$",
43230	//       "required": true,
43231	//       "type": "string"
43232	//     }
43233	//   },
43234	//   "path": "v1/{+name}",
43235	//   "response": {
43236	//     "$ref": "GoogleCloudApigeeV1ApiCategory"
43237	//   },
43238	//   "scopes": [
43239	//     "https://www.googleapis.com/auth/cloud-platform"
43240	//   ]
43241	// }
43242
43243}
43244
43245// method id "apigee.organizations.sites.apicategories.list":
43246
43247type OrganizationsSitesApicategoriesListCall struct {
43248	s            *Service
43249	parent       string
43250	urlParams_   gensupport.URLParams
43251	ifNoneMatch_ string
43252	ctx_         context.Context
43253	header_      http.Header
43254}
43255
43256// List: Lists the categories on the portal.
43257//
43258// - parent: Name of the portal. Use the following structure in your
43259//   request: `organizations/{org}/sites/{site}`.
43260func (r *OrganizationsSitesApicategoriesService) List(parent string) *OrganizationsSitesApicategoriesListCall {
43261	c := &OrganizationsSitesApicategoriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43262	c.parent = parent
43263	return c
43264}
43265
43266// Fields allows partial responses to be retrieved. See
43267// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
43268// for more information.
43269func (c *OrganizationsSitesApicategoriesListCall) Fields(s ...googleapi.Field) *OrganizationsSitesApicategoriesListCall {
43270	c.urlParams_.Set("fields", googleapi.CombineFields(s))
43271	return c
43272}
43273
43274// IfNoneMatch sets the optional parameter which makes the operation
43275// fail if the object's ETag matches the given value. This is useful for
43276// getting updates only after the object has changed since the last
43277// request. Use googleapi.IsNotModified to check whether the response
43278// error from Do is the result of In-None-Match.
43279func (c *OrganizationsSitesApicategoriesListCall) IfNoneMatch(entityTag string) *OrganizationsSitesApicategoriesListCall {
43280	c.ifNoneMatch_ = entityTag
43281	return c
43282}
43283
43284// Context sets the context to be used in this call's Do method. Any
43285// pending HTTP request will be aborted if the provided context is
43286// canceled.
43287func (c *OrganizationsSitesApicategoriesListCall) Context(ctx context.Context) *OrganizationsSitesApicategoriesListCall {
43288	c.ctx_ = ctx
43289	return c
43290}
43291
43292// Header returns an http.Header that can be modified by the caller to
43293// add HTTP headers to the request.
43294func (c *OrganizationsSitesApicategoriesListCall) Header() http.Header {
43295	if c.header_ == nil {
43296		c.header_ = make(http.Header)
43297	}
43298	return c.header_
43299}
43300
43301func (c *OrganizationsSitesApicategoriesListCall) doRequest(alt string) (*http.Response, error) {
43302	reqHeaders := make(http.Header)
43303	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
43304	for k, v := range c.header_ {
43305		reqHeaders[k] = v
43306	}
43307	reqHeaders.Set("User-Agent", c.s.userAgent())
43308	if c.ifNoneMatch_ != "" {
43309		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
43310	}
43311	var body io.Reader = nil
43312	c.urlParams_.Set("alt", alt)
43313	c.urlParams_.Set("prettyPrint", "false")
43314	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apicategories")
43315	urls += "?" + c.urlParams_.Encode()
43316	req, err := http.NewRequest("GET", urls, body)
43317	if err != nil {
43318		return nil, err
43319	}
43320	req.Header = reqHeaders
43321	googleapi.Expand(req.URL, map[string]string{
43322		"parent": c.parent,
43323	})
43324	return gensupport.SendRequest(c.ctx_, c.s.client, req)
43325}
43326
43327// Do executes the "apigee.organizations.sites.apicategories.list" call.
43328// Exactly one of *GoogleCloudApigeeV1ListApiCategoriesResponse or error
43329// will be non-nil. Any non-2xx status code is an error. Response
43330// headers are in either
43331// *GoogleCloudApigeeV1ListApiCategoriesResponse.ServerResponse.Header
43332// or (if a response was returned at all) in
43333// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
43334// whether the returned error was because http.StatusNotModified was
43335// returned.
43336func (c *OrganizationsSitesApicategoriesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListApiCategoriesResponse, error) {
43337	gensupport.SetOptions(c.urlParams_, opts...)
43338	res, err := c.doRequest("json")
43339	if res != nil && res.StatusCode == http.StatusNotModified {
43340		if res.Body != nil {
43341			res.Body.Close()
43342		}
43343		return nil, &googleapi.Error{
43344			Code:   res.StatusCode,
43345			Header: res.Header,
43346		}
43347	}
43348	if err != nil {
43349		return nil, err
43350	}
43351	defer googleapi.CloseBody(res)
43352	if err := googleapi.CheckResponse(res); err != nil {
43353		return nil, err
43354	}
43355	ret := &GoogleCloudApigeeV1ListApiCategoriesResponse{
43356		ServerResponse: googleapi.ServerResponse{
43357			Header:         res.Header,
43358			HTTPStatusCode: res.StatusCode,
43359		},
43360	}
43361	target := &ret
43362	if err := gensupport.DecodeResponse(target, res); err != nil {
43363		return nil, err
43364	}
43365	return ret, nil
43366	// {
43367	//   "description": "Lists the categories on the portal.",
43368	//   "flatPath": "v1/organizations/{organizationsId}/sites/{sitesId}/apicategories",
43369	//   "httpMethod": "GET",
43370	//   "id": "apigee.organizations.sites.apicategories.list",
43371	//   "parameterOrder": [
43372	//     "parent"
43373	//   ],
43374	//   "parameters": {
43375	//     "parent": {
43376	//       "description": "Required. Name of the portal. Use the following structure in your request: `organizations/{org}/sites/{site}`",
43377	//       "location": "path",
43378	//       "pattern": "^organizations/[^/]+/sites/[^/]+$",
43379	//       "required": true,
43380	//       "type": "string"
43381	//     }
43382	//   },
43383	//   "path": "v1/{+parent}/apicategories",
43384	//   "response": {
43385	//     "$ref": "GoogleCloudApigeeV1ListApiCategoriesResponse"
43386	//   },
43387	//   "scopes": [
43388	//     "https://www.googleapis.com/auth/cloud-platform"
43389	//   ]
43390	// }
43391
43392}
43393
43394// method id "apigee.organizations.sites.apicategories.patch":
43395
43396type OrganizationsSitesApicategoriesPatchCall struct {
43397	s                                  *Service
43398	name                               string
43399	googlecloudapigeev1apicategorydata *GoogleCloudApigeeV1ApiCategoryData
43400	urlParams_                         gensupport.URLParams
43401	ctx_                               context.Context
43402	header_                            http.Header
43403}
43404
43405// Patch: Updates a category on the portal.
43406//
43407// - name: Name of the category. Use the following structure in your
43408//   request:
43409//   `organizations/{org}/sites/{site}/apicategories/{apicategory}`.
43410func (r *OrganizationsSitesApicategoriesService) Patch(name string, googlecloudapigeev1apicategorydata *GoogleCloudApigeeV1ApiCategoryData) *OrganizationsSitesApicategoriesPatchCall {
43411	c := &OrganizationsSitesApicategoriesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43412	c.name = name
43413	c.googlecloudapigeev1apicategorydata = googlecloudapigeev1apicategorydata
43414	return c
43415}
43416
43417// Fields allows partial responses to be retrieved. See
43418// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
43419// for more information.
43420func (c *OrganizationsSitesApicategoriesPatchCall) Fields(s ...googleapi.Field) *OrganizationsSitesApicategoriesPatchCall {
43421	c.urlParams_.Set("fields", googleapi.CombineFields(s))
43422	return c
43423}
43424
43425// Context sets the context to be used in this call's Do method. Any
43426// pending HTTP request will be aborted if the provided context is
43427// canceled.
43428func (c *OrganizationsSitesApicategoriesPatchCall) Context(ctx context.Context) *OrganizationsSitesApicategoriesPatchCall {
43429	c.ctx_ = ctx
43430	return c
43431}
43432
43433// Header returns an http.Header that can be modified by the caller to
43434// add HTTP headers to the request.
43435func (c *OrganizationsSitesApicategoriesPatchCall) Header() http.Header {
43436	if c.header_ == nil {
43437		c.header_ = make(http.Header)
43438	}
43439	return c.header_
43440}
43441
43442func (c *OrganizationsSitesApicategoriesPatchCall) doRequest(alt string) (*http.Response, error) {
43443	reqHeaders := make(http.Header)
43444	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
43445	for k, v := range c.header_ {
43446		reqHeaders[k] = v
43447	}
43448	reqHeaders.Set("User-Agent", c.s.userAgent())
43449	var body io.Reader = nil
43450	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1apicategorydata)
43451	if err != nil {
43452		return nil, err
43453	}
43454	reqHeaders.Set("Content-Type", "application/json")
43455	c.urlParams_.Set("alt", alt)
43456	c.urlParams_.Set("prettyPrint", "false")
43457	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
43458	urls += "?" + c.urlParams_.Encode()
43459	req, err := http.NewRequest("PATCH", urls, body)
43460	if err != nil {
43461		return nil, err
43462	}
43463	req.Header = reqHeaders
43464	googleapi.Expand(req.URL, map[string]string{
43465		"name": c.name,
43466	})
43467	return gensupport.SendRequest(c.ctx_, c.s.client, req)
43468}
43469
43470// Do executes the "apigee.organizations.sites.apicategories.patch" call.
43471// Exactly one of *GoogleCloudApigeeV1ApiCategory or error will be
43472// non-nil. Any non-2xx status code is an error. Response headers are in
43473// either *GoogleCloudApigeeV1ApiCategory.ServerResponse.Header or (if a
43474// response was returned at all) in error.(*googleapi.Error).Header. Use
43475// googleapi.IsNotModified to check whether the returned error was
43476// because http.StatusNotModified was returned.
43477func (c *OrganizationsSitesApicategoriesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiCategory, error) {
43478	gensupport.SetOptions(c.urlParams_, opts...)
43479	res, err := c.doRequest("json")
43480	if res != nil && res.StatusCode == http.StatusNotModified {
43481		if res.Body != nil {
43482			res.Body.Close()
43483		}
43484		return nil, &googleapi.Error{
43485			Code:   res.StatusCode,
43486			Header: res.Header,
43487		}
43488	}
43489	if err != nil {
43490		return nil, err
43491	}
43492	defer googleapi.CloseBody(res)
43493	if err := googleapi.CheckResponse(res); err != nil {
43494		return nil, err
43495	}
43496	ret := &GoogleCloudApigeeV1ApiCategory{
43497		ServerResponse: googleapi.ServerResponse{
43498			Header:         res.Header,
43499			HTTPStatusCode: res.StatusCode,
43500		},
43501	}
43502	target := &ret
43503	if err := gensupport.DecodeResponse(target, res); err != nil {
43504		return nil, err
43505	}
43506	return ret, nil
43507	// {
43508	//   "description": "Updates a category on the portal.",
43509	//   "flatPath": "v1/organizations/{organizationsId}/sites/{sitesId}/apicategories/{apicategoriesId}",
43510	//   "httpMethod": "PATCH",
43511	//   "id": "apigee.organizations.sites.apicategories.patch",
43512	//   "parameterOrder": [
43513	//     "name"
43514	//   ],
43515	//   "parameters": {
43516	//     "name": {
43517	//       "description": "Required. Name of the category. Use the following structure in your request: `organizations/{org}/sites/{site}/apicategories/{apicategory}`",
43518	//       "location": "path",
43519	//       "pattern": "^organizations/[^/]+/sites/[^/]+/apicategories/[^/]+$",
43520	//       "required": true,
43521	//       "type": "string"
43522	//     }
43523	//   },
43524	//   "path": "v1/{+name}",
43525	//   "request": {
43526	//     "$ref": "GoogleCloudApigeeV1ApiCategoryData"
43527	//   },
43528	//   "response": {
43529	//     "$ref": "GoogleCloudApigeeV1ApiCategory"
43530	//   },
43531	//   "scopes": [
43532	//     "https://www.googleapis.com/auth/cloud-platform"
43533	//   ]
43534	// }
43535
43536}
43537
43538// method id "apigee.projects.provisionOrganization":
43539
43540type ProjectsProvisionOrganizationCall struct {
43541	s                                               *Service
43542	project                                         string
43543	googlecloudapigeev1provisionorganizationrequest *GoogleCloudApigeeV1ProvisionOrganizationRequest
43544	urlParams_                                      gensupport.URLParams
43545	ctx_                                            context.Context
43546	header_                                         http.Header
43547}
43548
43549// ProvisionOrganization: Provisions a new Apigee organization with a
43550// functioning runtime. This is the standard way to create trial
43551// organizations for a free Apigee trial.
43552//
43553// - project: Name of the GCP project with which to associate the Apigee
43554//   organization.
43555func (r *ProjectsService) ProvisionOrganization(project string, googlecloudapigeev1provisionorganizationrequest *GoogleCloudApigeeV1ProvisionOrganizationRequest) *ProjectsProvisionOrganizationCall {
43556	c := &ProjectsProvisionOrganizationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43557	c.project = project
43558	c.googlecloudapigeev1provisionorganizationrequest = googlecloudapigeev1provisionorganizationrequest
43559	return c
43560}
43561
43562// Fields allows partial responses to be retrieved. See
43563// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
43564// for more information.
43565func (c *ProjectsProvisionOrganizationCall) Fields(s ...googleapi.Field) *ProjectsProvisionOrganizationCall {
43566	c.urlParams_.Set("fields", googleapi.CombineFields(s))
43567	return c
43568}
43569
43570// Context sets the context to be used in this call's Do method. Any
43571// pending HTTP request will be aborted if the provided context is
43572// canceled.
43573func (c *ProjectsProvisionOrganizationCall) Context(ctx context.Context) *ProjectsProvisionOrganizationCall {
43574	c.ctx_ = ctx
43575	return c
43576}
43577
43578// Header returns an http.Header that can be modified by the caller to
43579// add HTTP headers to the request.
43580func (c *ProjectsProvisionOrganizationCall) Header() http.Header {
43581	if c.header_ == nil {
43582		c.header_ = make(http.Header)
43583	}
43584	return c.header_
43585}
43586
43587func (c *ProjectsProvisionOrganizationCall) doRequest(alt string) (*http.Response, error) {
43588	reqHeaders := make(http.Header)
43589	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210629")
43590	for k, v := range c.header_ {
43591		reqHeaders[k] = v
43592	}
43593	reqHeaders.Set("User-Agent", c.s.userAgent())
43594	var body io.Reader = nil
43595	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1provisionorganizationrequest)
43596	if err != nil {
43597		return nil, err
43598	}
43599	reqHeaders.Set("Content-Type", "application/json")
43600	c.urlParams_.Set("alt", alt)
43601	c.urlParams_.Set("prettyPrint", "false")
43602	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+project}:provisionOrganization")
43603	urls += "?" + c.urlParams_.Encode()
43604	req, err := http.NewRequest("POST", urls, body)
43605	if err != nil {
43606		return nil, err
43607	}
43608	req.Header = reqHeaders
43609	googleapi.Expand(req.URL, map[string]string{
43610		"project": c.project,
43611	})
43612	return gensupport.SendRequest(c.ctx_, c.s.client, req)
43613}
43614
43615// Do executes the "apigee.projects.provisionOrganization" call.
43616// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
43617// Any non-2xx status code is an error. Response headers are in either
43618// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
43619// was returned at all) in error.(*googleapi.Error).Header. Use
43620// googleapi.IsNotModified to check whether the returned error was
43621// because http.StatusNotModified was returned.
43622func (c *ProjectsProvisionOrganizationCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
43623	gensupport.SetOptions(c.urlParams_, opts...)
43624	res, err := c.doRequest("json")
43625	if res != nil && res.StatusCode == http.StatusNotModified {
43626		if res.Body != nil {
43627			res.Body.Close()
43628		}
43629		return nil, &googleapi.Error{
43630			Code:   res.StatusCode,
43631			Header: res.Header,
43632		}
43633	}
43634	if err != nil {
43635		return nil, err
43636	}
43637	defer googleapi.CloseBody(res)
43638	if err := googleapi.CheckResponse(res); err != nil {
43639		return nil, err
43640	}
43641	ret := &GoogleLongrunningOperation{
43642		ServerResponse: googleapi.ServerResponse{
43643			Header:         res.Header,
43644			HTTPStatusCode: res.StatusCode,
43645		},
43646	}
43647	target := &ret
43648	if err := gensupport.DecodeResponse(target, res); err != nil {
43649		return nil, err
43650	}
43651	return ret, nil
43652	// {
43653	//   "description": "Provisions a new Apigee organization with a functioning runtime. This is the standard way to create trial organizations for a free Apigee trial.",
43654	//   "flatPath": "v1/projects/{projectsId}:provisionOrganization",
43655	//   "httpMethod": "POST",
43656	//   "id": "apigee.projects.provisionOrganization",
43657	//   "parameterOrder": [
43658	//     "project"
43659	//   ],
43660	//   "parameters": {
43661	//     "project": {
43662	//       "description": "Required. Name of the GCP project with which to associate the Apigee organization.",
43663	//       "location": "path",
43664	//       "pattern": "^projects/[^/]+$",
43665	//       "required": true,
43666	//       "type": "string"
43667	//     }
43668	//   },
43669	//   "path": "v1/{+project}:provisionOrganization",
43670	//   "request": {
43671	//     "$ref": "GoogleCloudApigeeV1ProvisionOrganizationRequest"
43672	//   },
43673	//   "response": {
43674	//     "$ref": "GoogleLongrunningOperation"
43675	//   },
43676	//   "scopes": [
43677	//     "https://www.googleapis.com/auth/cloud-platform"
43678	//   ]
43679	// }
43680
43681}
43682