1// Copyright 2021 Google LLC.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// Code generated file. DO NOT EDIT.
6
7// Package apigee provides access to the Apigee API.
8//
9// For product documentation, see: https://cloud.google.com/apigee-api-management/
10//
11// Creating a client
12//
13// Usage example:
14//
15//   import "google.golang.org/api/apigee/v1"
16//   ...
17//   ctx := context.Background()
18//   apigeeService, err := apigee.NewService(ctx)
19//
20// In this example, Google Application Default Credentials are used for authentication.
21//
22// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
23//
24// Other authentication options
25//
26// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey:
27//
28//   apigeeService, err := apigee.NewService(ctx, option.WithAPIKey("AIza..."))
29//
30// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource:
31//
32//   config := &oauth2.Config{...}
33//   // ...
34//   token, err := config.Exchange(ctx, ...)
35//   apigeeService, err := apigee.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
36//
37// See https://godoc.org/google.golang.org/api/option/ for details on options.
38package apigee // import "google.golang.org/api/apigee/v1"
39
40import (
41	"bytes"
42	"context"
43	"encoding/json"
44	"errors"
45	"fmt"
46	"io"
47	"net/http"
48	"net/url"
49	"strconv"
50	"strings"
51
52	googleapi "google.golang.org/api/googleapi"
53	gensupport "google.golang.org/api/internal/gensupport"
54	option "google.golang.org/api/option"
55	internaloption "google.golang.org/api/option/internaloption"
56	htransport "google.golang.org/api/transport/http"
57)
58
59// Always reference these packages, just in case the auto-generated code
60// below doesn't.
61var _ = bytes.NewBuffer
62var _ = strconv.Itoa
63var _ = fmt.Sprintf
64var _ = json.NewDecoder
65var _ = io.Copy
66var _ = url.Parse
67var _ = gensupport.MarshalJSON
68var _ = googleapi.Version
69var _ = errors.New
70var _ = strings.Replace
71var _ = context.Canceled
72var _ = internaloption.WithDefaultEndpoint
73
74const apiId = "apigee:v1"
75const apiName = "apigee"
76const apiVersion = "v1"
77const basePath = "https://apigee.googleapis.com/"
78const mtlsBasePath = "https://apigee.mtls.googleapis.com/"
79
80// OAuth2 scopes used by this API.
81const (
82	// See, edit, configure, and delete your Google Cloud data and see the
83	// email address for your Google Account.
84	CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
85)
86
87// NewService creates a new Service.
88func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
89	scopesOption := option.WithScopes(
90		"https://www.googleapis.com/auth/cloud-platform",
91	)
92	// NOTE: prepend, so we don't override user-specified scopes.
93	opts = append([]option.ClientOption{scopesOption}, opts...)
94	opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
95	opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath))
96	client, endpoint, err := htransport.NewClient(ctx, opts...)
97	if err != nil {
98		return nil, err
99	}
100	s, err := New(client)
101	if err != nil {
102		return nil, err
103	}
104	if endpoint != "" {
105		s.BasePath = endpoint
106	}
107	return s, nil
108}
109
110// New creates a new Service. It uses the provided http.Client for requests.
111//
112// Deprecated: please use NewService instead.
113// To provide a custom HTTP client, use option.WithHTTPClient.
114// If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
115func New(client *http.Client) (*Service, error) {
116	if client == nil {
117		return nil, errors.New("client is nil")
118	}
119	s := &Service{client: client, BasePath: basePath}
120	s.Hybrid = NewHybridService(s)
121	s.Organizations = NewOrganizationsService(s)
122	s.Projects = NewProjectsService(s)
123	return s, nil
124}
125
126type Service struct {
127	client    *http.Client
128	BasePath  string // API endpoint base URL
129	UserAgent string // optional additional User-Agent fragment
130
131	Hybrid *HybridService
132
133	Organizations *OrganizationsService
134
135	Projects *ProjectsService
136}
137
138func (s *Service) userAgent() string {
139	if s.UserAgent == "" {
140		return googleapi.UserAgent
141	}
142	return googleapi.UserAgent + " " + s.UserAgent
143}
144
145func NewHybridService(s *Service) *HybridService {
146	rs := &HybridService{s: s}
147	rs.Issuers = NewHybridIssuersService(s)
148	return rs
149}
150
151type HybridService struct {
152	s *Service
153
154	Issuers *HybridIssuersService
155}
156
157func NewHybridIssuersService(s *Service) *HybridIssuersService {
158	rs := &HybridIssuersService{s: s}
159	return rs
160}
161
162type HybridIssuersService struct {
163	s *Service
164}
165
166func NewOrganizationsService(s *Service) *OrganizationsService {
167	rs := &OrganizationsService{s: s}
168	rs.Analytics = NewOrganizationsAnalyticsService(s)
169	rs.Apiproducts = NewOrganizationsApiproductsService(s)
170	rs.Apis = NewOrganizationsApisService(s)
171	rs.Apps = NewOrganizationsAppsService(s)
172	rs.Datacollectors = NewOrganizationsDatacollectorsService(s)
173	rs.Deployments = NewOrganizationsDeploymentsService(s)
174	rs.Developers = NewOrganizationsDevelopersService(s)
175	rs.Envgroups = NewOrganizationsEnvgroupsService(s)
176	rs.Environments = NewOrganizationsEnvironmentsService(s)
177	rs.HostQueries = NewOrganizationsHostQueriesService(s)
178	rs.HostStats = NewOrganizationsHostStatsService(s)
179	rs.Instances = NewOrganizationsInstancesService(s)
180	rs.Keyvaluemaps = NewOrganizationsKeyvaluemapsService(s)
181	rs.Operations = NewOrganizationsOperationsService(s)
182	rs.OptimizedHostStats = NewOrganizationsOptimizedHostStatsService(s)
183	rs.Reports = NewOrganizationsReportsService(s)
184	rs.Sharedflows = NewOrganizationsSharedflowsService(s)
185	rs.Sites = NewOrganizationsSitesService(s)
186	return rs
187}
188
189type OrganizationsService struct {
190	s *Service
191
192	Analytics *OrganizationsAnalyticsService
193
194	Apiproducts *OrganizationsApiproductsService
195
196	Apis *OrganizationsApisService
197
198	Apps *OrganizationsAppsService
199
200	Datacollectors *OrganizationsDatacollectorsService
201
202	Deployments *OrganizationsDeploymentsService
203
204	Developers *OrganizationsDevelopersService
205
206	Envgroups *OrganizationsEnvgroupsService
207
208	Environments *OrganizationsEnvironmentsService
209
210	HostQueries *OrganizationsHostQueriesService
211
212	HostStats *OrganizationsHostStatsService
213
214	Instances *OrganizationsInstancesService
215
216	Keyvaluemaps *OrganizationsKeyvaluemapsService
217
218	Operations *OrganizationsOperationsService
219
220	OptimizedHostStats *OrganizationsOptimizedHostStatsService
221
222	Reports *OrganizationsReportsService
223
224	Sharedflows *OrganizationsSharedflowsService
225
226	Sites *OrganizationsSitesService
227}
228
229func NewOrganizationsAnalyticsService(s *Service) *OrganizationsAnalyticsService {
230	rs := &OrganizationsAnalyticsService{s: s}
231	rs.Datastores = NewOrganizationsAnalyticsDatastoresService(s)
232	return rs
233}
234
235type OrganizationsAnalyticsService struct {
236	s *Service
237
238	Datastores *OrganizationsAnalyticsDatastoresService
239}
240
241func NewOrganizationsAnalyticsDatastoresService(s *Service) *OrganizationsAnalyticsDatastoresService {
242	rs := &OrganizationsAnalyticsDatastoresService{s: s}
243	return rs
244}
245
246type OrganizationsAnalyticsDatastoresService struct {
247	s *Service
248}
249
250func NewOrganizationsApiproductsService(s *Service) *OrganizationsApiproductsService {
251	rs := &OrganizationsApiproductsService{s: s}
252	rs.Attributes_ = NewOrganizationsApiproductsAttributesService(s)
253	rs.Rateplans = NewOrganizationsApiproductsRateplansService(s)
254	return rs
255}
256
257type OrganizationsApiproductsService struct {
258	s *Service
259
260	Attributes_ *OrganizationsApiproductsAttributesService
261
262	Rateplans *OrganizationsApiproductsRateplansService
263}
264
265func NewOrganizationsApiproductsAttributesService(s *Service) *OrganizationsApiproductsAttributesService {
266	rs := &OrganizationsApiproductsAttributesService{s: s}
267	return rs
268}
269
270type OrganizationsApiproductsAttributesService struct {
271	s *Service
272}
273
274func NewOrganizationsApiproductsRateplansService(s *Service) *OrganizationsApiproductsRateplansService {
275	rs := &OrganizationsApiproductsRateplansService{s: s}
276	return rs
277}
278
279type OrganizationsApiproductsRateplansService struct {
280	s *Service
281}
282
283func NewOrganizationsApisService(s *Service) *OrganizationsApisService {
284	rs := &OrganizationsApisService{s: s}
285	rs.Deployments = NewOrganizationsApisDeploymentsService(s)
286	rs.Keyvaluemaps = NewOrganizationsApisKeyvaluemapsService(s)
287	rs.Revisions = NewOrganizationsApisRevisionsService(s)
288	return rs
289}
290
291type OrganizationsApisService struct {
292	s *Service
293
294	Deployments *OrganizationsApisDeploymentsService
295
296	Keyvaluemaps *OrganizationsApisKeyvaluemapsService
297
298	Revisions *OrganizationsApisRevisionsService
299}
300
301func NewOrganizationsApisDeploymentsService(s *Service) *OrganizationsApisDeploymentsService {
302	rs := &OrganizationsApisDeploymentsService{s: s}
303	return rs
304}
305
306type OrganizationsApisDeploymentsService struct {
307	s *Service
308}
309
310func NewOrganizationsApisKeyvaluemapsService(s *Service) *OrganizationsApisKeyvaluemapsService {
311	rs := &OrganizationsApisKeyvaluemapsService{s: s}
312	return rs
313}
314
315type OrganizationsApisKeyvaluemapsService struct {
316	s *Service
317}
318
319func NewOrganizationsApisRevisionsService(s *Service) *OrganizationsApisRevisionsService {
320	rs := &OrganizationsApisRevisionsService{s: s}
321	rs.Deployments = NewOrganizationsApisRevisionsDeploymentsService(s)
322	return rs
323}
324
325type OrganizationsApisRevisionsService struct {
326	s *Service
327
328	Deployments *OrganizationsApisRevisionsDeploymentsService
329}
330
331func NewOrganizationsApisRevisionsDeploymentsService(s *Service) *OrganizationsApisRevisionsDeploymentsService {
332	rs := &OrganizationsApisRevisionsDeploymentsService{s: s}
333	return rs
334}
335
336type OrganizationsApisRevisionsDeploymentsService struct {
337	s *Service
338}
339
340func NewOrganizationsAppsService(s *Service) *OrganizationsAppsService {
341	rs := &OrganizationsAppsService{s: s}
342	return rs
343}
344
345type OrganizationsAppsService struct {
346	s *Service
347}
348
349func NewOrganizationsDatacollectorsService(s *Service) *OrganizationsDatacollectorsService {
350	rs := &OrganizationsDatacollectorsService{s: s}
351	return rs
352}
353
354type OrganizationsDatacollectorsService struct {
355	s *Service
356}
357
358func NewOrganizationsDeploymentsService(s *Service) *OrganizationsDeploymentsService {
359	rs := &OrganizationsDeploymentsService{s: s}
360	return rs
361}
362
363type OrganizationsDeploymentsService struct {
364	s *Service
365}
366
367func NewOrganizationsDevelopersService(s *Service) *OrganizationsDevelopersService {
368	rs := &OrganizationsDevelopersService{s: s}
369	rs.Apps = NewOrganizationsDevelopersAppsService(s)
370	rs.Attributes_ = NewOrganizationsDevelopersAttributesService(s)
371	rs.Subscriptions = NewOrganizationsDevelopersSubscriptionsService(s)
372	return rs
373}
374
375type OrganizationsDevelopersService struct {
376	s *Service
377
378	Apps *OrganizationsDevelopersAppsService
379
380	Attributes_ *OrganizationsDevelopersAttributesService
381
382	Subscriptions *OrganizationsDevelopersSubscriptionsService
383}
384
385func NewOrganizationsDevelopersAppsService(s *Service) *OrganizationsDevelopersAppsService {
386	rs := &OrganizationsDevelopersAppsService{s: s}
387	rs.Attributes_ = NewOrganizationsDevelopersAppsAttributesService(s)
388	rs.Keys = NewOrganizationsDevelopersAppsKeysService(s)
389	return rs
390}
391
392type OrganizationsDevelopersAppsService struct {
393	s *Service
394
395	Attributes_ *OrganizationsDevelopersAppsAttributesService
396
397	Keys *OrganizationsDevelopersAppsKeysService
398}
399
400func NewOrganizationsDevelopersAppsAttributesService(s *Service) *OrganizationsDevelopersAppsAttributesService {
401	rs := &OrganizationsDevelopersAppsAttributesService{s: s}
402	return rs
403}
404
405type OrganizationsDevelopersAppsAttributesService struct {
406	s *Service
407}
408
409func NewOrganizationsDevelopersAppsKeysService(s *Service) *OrganizationsDevelopersAppsKeysService {
410	rs := &OrganizationsDevelopersAppsKeysService{s: s}
411	rs.Apiproducts = NewOrganizationsDevelopersAppsKeysApiproductsService(s)
412	rs.Create_ = NewOrganizationsDevelopersAppsKeysCreateService(s)
413	return rs
414}
415
416type OrganizationsDevelopersAppsKeysService struct {
417	s *Service
418
419	Apiproducts *OrganizationsDevelopersAppsKeysApiproductsService
420
421	Create_ *OrganizationsDevelopersAppsKeysCreateService
422}
423
424func NewOrganizationsDevelopersAppsKeysApiproductsService(s *Service) *OrganizationsDevelopersAppsKeysApiproductsService {
425	rs := &OrganizationsDevelopersAppsKeysApiproductsService{s: s}
426	return rs
427}
428
429type OrganizationsDevelopersAppsKeysApiproductsService struct {
430	s *Service
431}
432
433func NewOrganizationsDevelopersAppsKeysCreateService(s *Service) *OrganizationsDevelopersAppsKeysCreateService {
434	rs := &OrganizationsDevelopersAppsKeysCreateService{s: s}
435	return rs
436}
437
438type OrganizationsDevelopersAppsKeysCreateService struct {
439	s *Service
440}
441
442func NewOrganizationsDevelopersAttributesService(s *Service) *OrganizationsDevelopersAttributesService {
443	rs := &OrganizationsDevelopersAttributesService{s: s}
444	return rs
445}
446
447type OrganizationsDevelopersAttributesService struct {
448	s *Service
449}
450
451func NewOrganizationsDevelopersSubscriptionsService(s *Service) *OrganizationsDevelopersSubscriptionsService {
452	rs := &OrganizationsDevelopersSubscriptionsService{s: s}
453	return rs
454}
455
456type OrganizationsDevelopersSubscriptionsService struct {
457	s *Service
458}
459
460func NewOrganizationsEnvgroupsService(s *Service) *OrganizationsEnvgroupsService {
461	rs := &OrganizationsEnvgroupsService{s: s}
462	rs.Attachments = NewOrganizationsEnvgroupsAttachmentsService(s)
463	return rs
464}
465
466type OrganizationsEnvgroupsService struct {
467	s *Service
468
469	Attachments *OrganizationsEnvgroupsAttachmentsService
470}
471
472func NewOrganizationsEnvgroupsAttachmentsService(s *Service) *OrganizationsEnvgroupsAttachmentsService {
473	rs := &OrganizationsEnvgroupsAttachmentsService{s: s}
474	return rs
475}
476
477type OrganizationsEnvgroupsAttachmentsService struct {
478	s *Service
479}
480
481func NewOrganizationsEnvironmentsService(s *Service) *OrganizationsEnvironmentsService {
482	rs := &OrganizationsEnvironmentsService{s: s}
483	rs.Analytics = NewOrganizationsEnvironmentsAnalyticsService(s)
484	rs.Apis = NewOrganizationsEnvironmentsApisService(s)
485	rs.ArchiveDeployments = NewOrganizationsEnvironmentsArchiveDeploymentsService(s)
486	rs.Caches = NewOrganizationsEnvironmentsCachesService(s)
487	rs.Deployments = NewOrganizationsEnvironmentsDeploymentsService(s)
488	rs.Flowhooks = NewOrganizationsEnvironmentsFlowhooksService(s)
489	rs.Keystores = NewOrganizationsEnvironmentsKeystoresService(s)
490	rs.Keyvaluemaps = NewOrganizationsEnvironmentsKeyvaluemapsService(s)
491	rs.OptimizedStats = NewOrganizationsEnvironmentsOptimizedStatsService(s)
492	rs.Queries = NewOrganizationsEnvironmentsQueriesService(s)
493	rs.References = NewOrganizationsEnvironmentsReferencesService(s)
494	rs.Resourcefiles = NewOrganizationsEnvironmentsResourcefilesService(s)
495	rs.Sharedflows = NewOrganizationsEnvironmentsSharedflowsService(s)
496	rs.Stats = NewOrganizationsEnvironmentsStatsService(s)
497	rs.Targetservers = NewOrganizationsEnvironmentsTargetserversService(s)
498	rs.TraceConfig = NewOrganizationsEnvironmentsTraceConfigService(s)
499	return rs
500}
501
502type OrganizationsEnvironmentsService struct {
503	s *Service
504
505	Analytics *OrganizationsEnvironmentsAnalyticsService
506
507	Apis *OrganizationsEnvironmentsApisService
508
509	ArchiveDeployments *OrganizationsEnvironmentsArchiveDeploymentsService
510
511	Caches *OrganizationsEnvironmentsCachesService
512
513	Deployments *OrganizationsEnvironmentsDeploymentsService
514
515	Flowhooks *OrganizationsEnvironmentsFlowhooksService
516
517	Keystores *OrganizationsEnvironmentsKeystoresService
518
519	Keyvaluemaps *OrganizationsEnvironmentsKeyvaluemapsService
520
521	OptimizedStats *OrganizationsEnvironmentsOptimizedStatsService
522
523	Queries *OrganizationsEnvironmentsQueriesService
524
525	References *OrganizationsEnvironmentsReferencesService
526
527	Resourcefiles *OrganizationsEnvironmentsResourcefilesService
528
529	Sharedflows *OrganizationsEnvironmentsSharedflowsService
530
531	Stats *OrganizationsEnvironmentsStatsService
532
533	Targetservers *OrganizationsEnvironmentsTargetserversService
534
535	TraceConfig *OrganizationsEnvironmentsTraceConfigService
536}
537
538func NewOrganizationsEnvironmentsAnalyticsService(s *Service) *OrganizationsEnvironmentsAnalyticsService {
539	rs := &OrganizationsEnvironmentsAnalyticsService{s: s}
540	rs.Admin = NewOrganizationsEnvironmentsAnalyticsAdminService(s)
541	rs.Exports = NewOrganizationsEnvironmentsAnalyticsExportsService(s)
542	return rs
543}
544
545type OrganizationsEnvironmentsAnalyticsService struct {
546	s *Service
547
548	Admin *OrganizationsEnvironmentsAnalyticsAdminService
549
550	Exports *OrganizationsEnvironmentsAnalyticsExportsService
551}
552
553func NewOrganizationsEnvironmentsAnalyticsAdminService(s *Service) *OrganizationsEnvironmentsAnalyticsAdminService {
554	rs := &OrganizationsEnvironmentsAnalyticsAdminService{s: s}
555	return rs
556}
557
558type OrganizationsEnvironmentsAnalyticsAdminService struct {
559	s *Service
560}
561
562func NewOrganizationsEnvironmentsAnalyticsExportsService(s *Service) *OrganizationsEnvironmentsAnalyticsExportsService {
563	rs := &OrganizationsEnvironmentsAnalyticsExportsService{s: s}
564	return rs
565}
566
567type OrganizationsEnvironmentsAnalyticsExportsService struct {
568	s *Service
569}
570
571func NewOrganizationsEnvironmentsApisService(s *Service) *OrganizationsEnvironmentsApisService {
572	rs := &OrganizationsEnvironmentsApisService{s: s}
573	rs.Deployments = NewOrganizationsEnvironmentsApisDeploymentsService(s)
574	rs.Revisions = NewOrganizationsEnvironmentsApisRevisionsService(s)
575	return rs
576}
577
578type OrganizationsEnvironmentsApisService struct {
579	s *Service
580
581	Deployments *OrganizationsEnvironmentsApisDeploymentsService
582
583	Revisions *OrganizationsEnvironmentsApisRevisionsService
584}
585
586func NewOrganizationsEnvironmentsApisDeploymentsService(s *Service) *OrganizationsEnvironmentsApisDeploymentsService {
587	rs := &OrganizationsEnvironmentsApisDeploymentsService{s: s}
588	return rs
589}
590
591type OrganizationsEnvironmentsApisDeploymentsService struct {
592	s *Service
593}
594
595func NewOrganizationsEnvironmentsApisRevisionsService(s *Service) *OrganizationsEnvironmentsApisRevisionsService {
596	rs := &OrganizationsEnvironmentsApisRevisionsService{s: s}
597	rs.Debugsessions = NewOrganizationsEnvironmentsApisRevisionsDebugsessionsService(s)
598	rs.Deployments = NewOrganizationsEnvironmentsApisRevisionsDeploymentsService(s)
599	return rs
600}
601
602type OrganizationsEnvironmentsApisRevisionsService struct {
603	s *Service
604
605	Debugsessions *OrganizationsEnvironmentsApisRevisionsDebugsessionsService
606
607	Deployments *OrganizationsEnvironmentsApisRevisionsDeploymentsService
608}
609
610func NewOrganizationsEnvironmentsApisRevisionsDebugsessionsService(s *Service) *OrganizationsEnvironmentsApisRevisionsDebugsessionsService {
611	rs := &OrganizationsEnvironmentsApisRevisionsDebugsessionsService{s: s}
612	rs.Data = NewOrganizationsEnvironmentsApisRevisionsDebugsessionsDataService(s)
613	return rs
614}
615
616type OrganizationsEnvironmentsApisRevisionsDebugsessionsService struct {
617	s *Service
618
619	Data *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataService
620}
621
622func NewOrganizationsEnvironmentsApisRevisionsDebugsessionsDataService(s *Service) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataService {
623	rs := &OrganizationsEnvironmentsApisRevisionsDebugsessionsDataService{s: s}
624	return rs
625}
626
627type OrganizationsEnvironmentsApisRevisionsDebugsessionsDataService struct {
628	s *Service
629}
630
631func NewOrganizationsEnvironmentsApisRevisionsDeploymentsService(s *Service) *OrganizationsEnvironmentsApisRevisionsDeploymentsService {
632	rs := &OrganizationsEnvironmentsApisRevisionsDeploymentsService{s: s}
633	return rs
634}
635
636type OrganizationsEnvironmentsApisRevisionsDeploymentsService struct {
637	s *Service
638}
639
640func NewOrganizationsEnvironmentsArchiveDeploymentsService(s *Service) *OrganizationsEnvironmentsArchiveDeploymentsService {
641	rs := &OrganizationsEnvironmentsArchiveDeploymentsService{s: s}
642	return rs
643}
644
645type OrganizationsEnvironmentsArchiveDeploymentsService struct {
646	s *Service
647}
648
649func NewOrganizationsEnvironmentsCachesService(s *Service) *OrganizationsEnvironmentsCachesService {
650	rs := &OrganizationsEnvironmentsCachesService{s: s}
651	return rs
652}
653
654type OrganizationsEnvironmentsCachesService struct {
655	s *Service
656}
657
658func NewOrganizationsEnvironmentsDeploymentsService(s *Service) *OrganizationsEnvironmentsDeploymentsService {
659	rs := &OrganizationsEnvironmentsDeploymentsService{s: s}
660	return rs
661}
662
663type OrganizationsEnvironmentsDeploymentsService struct {
664	s *Service
665}
666
667func NewOrganizationsEnvironmentsFlowhooksService(s *Service) *OrganizationsEnvironmentsFlowhooksService {
668	rs := &OrganizationsEnvironmentsFlowhooksService{s: s}
669	return rs
670}
671
672type OrganizationsEnvironmentsFlowhooksService struct {
673	s *Service
674}
675
676func NewOrganizationsEnvironmentsKeystoresService(s *Service) *OrganizationsEnvironmentsKeystoresService {
677	rs := &OrganizationsEnvironmentsKeystoresService{s: s}
678	rs.Aliases = NewOrganizationsEnvironmentsKeystoresAliasesService(s)
679	return rs
680}
681
682type OrganizationsEnvironmentsKeystoresService struct {
683	s *Service
684
685	Aliases *OrganizationsEnvironmentsKeystoresAliasesService
686}
687
688func NewOrganizationsEnvironmentsKeystoresAliasesService(s *Service) *OrganizationsEnvironmentsKeystoresAliasesService {
689	rs := &OrganizationsEnvironmentsKeystoresAliasesService{s: s}
690	return rs
691}
692
693type OrganizationsEnvironmentsKeystoresAliasesService struct {
694	s *Service
695}
696
697func NewOrganizationsEnvironmentsKeyvaluemapsService(s *Service) *OrganizationsEnvironmentsKeyvaluemapsService {
698	rs := &OrganizationsEnvironmentsKeyvaluemapsService{s: s}
699	return rs
700}
701
702type OrganizationsEnvironmentsKeyvaluemapsService struct {
703	s *Service
704}
705
706func NewOrganizationsEnvironmentsOptimizedStatsService(s *Service) *OrganizationsEnvironmentsOptimizedStatsService {
707	rs := &OrganizationsEnvironmentsOptimizedStatsService{s: s}
708	return rs
709}
710
711type OrganizationsEnvironmentsOptimizedStatsService struct {
712	s *Service
713}
714
715func NewOrganizationsEnvironmentsQueriesService(s *Service) *OrganizationsEnvironmentsQueriesService {
716	rs := &OrganizationsEnvironmentsQueriesService{s: s}
717	return rs
718}
719
720type OrganizationsEnvironmentsQueriesService struct {
721	s *Service
722}
723
724func NewOrganizationsEnvironmentsReferencesService(s *Service) *OrganizationsEnvironmentsReferencesService {
725	rs := &OrganizationsEnvironmentsReferencesService{s: s}
726	return rs
727}
728
729type OrganizationsEnvironmentsReferencesService struct {
730	s *Service
731}
732
733func NewOrganizationsEnvironmentsResourcefilesService(s *Service) *OrganizationsEnvironmentsResourcefilesService {
734	rs := &OrganizationsEnvironmentsResourcefilesService{s: s}
735	return rs
736}
737
738type OrganizationsEnvironmentsResourcefilesService struct {
739	s *Service
740}
741
742func NewOrganizationsEnvironmentsSharedflowsService(s *Service) *OrganizationsEnvironmentsSharedflowsService {
743	rs := &OrganizationsEnvironmentsSharedflowsService{s: s}
744	rs.Deployments = NewOrganizationsEnvironmentsSharedflowsDeploymentsService(s)
745	rs.Revisions = NewOrganizationsEnvironmentsSharedflowsRevisionsService(s)
746	return rs
747}
748
749type OrganizationsEnvironmentsSharedflowsService struct {
750	s *Service
751
752	Deployments *OrganizationsEnvironmentsSharedflowsDeploymentsService
753
754	Revisions *OrganizationsEnvironmentsSharedflowsRevisionsService
755}
756
757func NewOrganizationsEnvironmentsSharedflowsDeploymentsService(s *Service) *OrganizationsEnvironmentsSharedflowsDeploymentsService {
758	rs := &OrganizationsEnvironmentsSharedflowsDeploymentsService{s: s}
759	return rs
760}
761
762type OrganizationsEnvironmentsSharedflowsDeploymentsService struct {
763	s *Service
764}
765
766func NewOrganizationsEnvironmentsSharedflowsRevisionsService(s *Service) *OrganizationsEnvironmentsSharedflowsRevisionsService {
767	rs := &OrganizationsEnvironmentsSharedflowsRevisionsService{s: s}
768	return rs
769}
770
771type OrganizationsEnvironmentsSharedflowsRevisionsService struct {
772	s *Service
773}
774
775func NewOrganizationsEnvironmentsStatsService(s *Service) *OrganizationsEnvironmentsStatsService {
776	rs := &OrganizationsEnvironmentsStatsService{s: s}
777	return rs
778}
779
780type OrganizationsEnvironmentsStatsService struct {
781	s *Service
782}
783
784func NewOrganizationsEnvironmentsTargetserversService(s *Service) *OrganizationsEnvironmentsTargetserversService {
785	rs := &OrganizationsEnvironmentsTargetserversService{s: s}
786	return rs
787}
788
789type OrganizationsEnvironmentsTargetserversService struct {
790	s *Service
791}
792
793func NewOrganizationsEnvironmentsTraceConfigService(s *Service) *OrganizationsEnvironmentsTraceConfigService {
794	rs := &OrganizationsEnvironmentsTraceConfigService{s: s}
795	rs.Overrides = NewOrganizationsEnvironmentsTraceConfigOverridesService(s)
796	return rs
797}
798
799type OrganizationsEnvironmentsTraceConfigService struct {
800	s *Service
801
802	Overrides *OrganizationsEnvironmentsTraceConfigOverridesService
803}
804
805func NewOrganizationsEnvironmentsTraceConfigOverridesService(s *Service) *OrganizationsEnvironmentsTraceConfigOverridesService {
806	rs := &OrganizationsEnvironmentsTraceConfigOverridesService{s: s}
807	return rs
808}
809
810type OrganizationsEnvironmentsTraceConfigOverridesService struct {
811	s *Service
812}
813
814func NewOrganizationsHostQueriesService(s *Service) *OrganizationsHostQueriesService {
815	rs := &OrganizationsHostQueriesService{s: s}
816	return rs
817}
818
819type OrganizationsHostQueriesService struct {
820	s *Service
821}
822
823func NewOrganizationsHostStatsService(s *Service) *OrganizationsHostStatsService {
824	rs := &OrganizationsHostStatsService{s: s}
825	return rs
826}
827
828type OrganizationsHostStatsService struct {
829	s *Service
830}
831
832func NewOrganizationsInstancesService(s *Service) *OrganizationsInstancesService {
833	rs := &OrganizationsInstancesService{s: s}
834	rs.Attachments = NewOrganizationsInstancesAttachmentsService(s)
835	rs.Canaryevaluations = NewOrganizationsInstancesCanaryevaluationsService(s)
836	rs.NatAddresses = NewOrganizationsInstancesNatAddressesService(s)
837	return rs
838}
839
840type OrganizationsInstancesService struct {
841	s *Service
842
843	Attachments *OrganizationsInstancesAttachmentsService
844
845	Canaryevaluations *OrganizationsInstancesCanaryevaluationsService
846
847	NatAddresses *OrganizationsInstancesNatAddressesService
848}
849
850func NewOrganizationsInstancesAttachmentsService(s *Service) *OrganizationsInstancesAttachmentsService {
851	rs := &OrganizationsInstancesAttachmentsService{s: s}
852	return rs
853}
854
855type OrganizationsInstancesAttachmentsService struct {
856	s *Service
857}
858
859func NewOrganizationsInstancesCanaryevaluationsService(s *Service) *OrganizationsInstancesCanaryevaluationsService {
860	rs := &OrganizationsInstancesCanaryevaluationsService{s: s}
861	return rs
862}
863
864type OrganizationsInstancesCanaryevaluationsService struct {
865	s *Service
866}
867
868func NewOrganizationsInstancesNatAddressesService(s *Service) *OrganizationsInstancesNatAddressesService {
869	rs := &OrganizationsInstancesNatAddressesService{s: s}
870	return rs
871}
872
873type OrganizationsInstancesNatAddressesService struct {
874	s *Service
875}
876
877func NewOrganizationsKeyvaluemapsService(s *Service) *OrganizationsKeyvaluemapsService {
878	rs := &OrganizationsKeyvaluemapsService{s: s}
879	return rs
880}
881
882type OrganizationsKeyvaluemapsService struct {
883	s *Service
884}
885
886func NewOrganizationsOperationsService(s *Service) *OrganizationsOperationsService {
887	rs := &OrganizationsOperationsService{s: s}
888	return rs
889}
890
891type OrganizationsOperationsService struct {
892	s *Service
893}
894
895func NewOrganizationsOptimizedHostStatsService(s *Service) *OrganizationsOptimizedHostStatsService {
896	rs := &OrganizationsOptimizedHostStatsService{s: s}
897	return rs
898}
899
900type OrganizationsOptimizedHostStatsService struct {
901	s *Service
902}
903
904func NewOrganizationsReportsService(s *Service) *OrganizationsReportsService {
905	rs := &OrganizationsReportsService{s: s}
906	return rs
907}
908
909type OrganizationsReportsService struct {
910	s *Service
911}
912
913func NewOrganizationsSharedflowsService(s *Service) *OrganizationsSharedflowsService {
914	rs := &OrganizationsSharedflowsService{s: s}
915	rs.Deployments = NewOrganizationsSharedflowsDeploymentsService(s)
916	rs.Revisions = NewOrganizationsSharedflowsRevisionsService(s)
917	return rs
918}
919
920type OrganizationsSharedflowsService struct {
921	s *Service
922
923	Deployments *OrganizationsSharedflowsDeploymentsService
924
925	Revisions *OrganizationsSharedflowsRevisionsService
926}
927
928func NewOrganizationsSharedflowsDeploymentsService(s *Service) *OrganizationsSharedflowsDeploymentsService {
929	rs := &OrganizationsSharedflowsDeploymentsService{s: s}
930	return rs
931}
932
933type OrganizationsSharedflowsDeploymentsService struct {
934	s *Service
935}
936
937func NewOrganizationsSharedflowsRevisionsService(s *Service) *OrganizationsSharedflowsRevisionsService {
938	rs := &OrganizationsSharedflowsRevisionsService{s: s}
939	rs.Deployments = NewOrganizationsSharedflowsRevisionsDeploymentsService(s)
940	return rs
941}
942
943type OrganizationsSharedflowsRevisionsService struct {
944	s *Service
945
946	Deployments *OrganizationsSharedflowsRevisionsDeploymentsService
947}
948
949func NewOrganizationsSharedflowsRevisionsDeploymentsService(s *Service) *OrganizationsSharedflowsRevisionsDeploymentsService {
950	rs := &OrganizationsSharedflowsRevisionsDeploymentsService{s: s}
951	return rs
952}
953
954type OrganizationsSharedflowsRevisionsDeploymentsService struct {
955	s *Service
956}
957
958func NewOrganizationsSitesService(s *Service) *OrganizationsSitesService {
959	rs := &OrganizationsSitesService{s: s}
960	rs.Apicategories = NewOrganizationsSitesApicategoriesService(s)
961	return rs
962}
963
964type OrganizationsSitesService struct {
965	s *Service
966
967	Apicategories *OrganizationsSitesApicategoriesService
968}
969
970func NewOrganizationsSitesApicategoriesService(s *Service) *OrganizationsSitesApicategoriesService {
971	rs := &OrganizationsSitesApicategoriesService{s: s}
972	return rs
973}
974
975type OrganizationsSitesApicategoriesService struct {
976	s *Service
977}
978
979func NewProjectsService(s *Service) *ProjectsService {
980	rs := &ProjectsService{s: s}
981	return rs
982}
983
984type ProjectsService struct {
985	s *Service
986}
987
988// EdgeConfigstoreBundleBadBundle: Describes why a bundle is invalid.
989// Intended for use in error details.
990type EdgeConfigstoreBundleBadBundle struct {
991	// Violations: Describes all precondition violations.
992	Violations []*EdgeConfigstoreBundleBadBundleViolation `json:"violations,omitempty"`
993
994	// ForceSendFields is a list of field names (e.g. "Violations") to
995	// unconditionally include in API requests. By default, fields with
996	// empty or default values are omitted from API requests. However, any
997	// non-pointer, non-interface field appearing in ForceSendFields will be
998	// sent to the server regardless of whether the field is empty or not.
999	// This may be used to include empty fields in Patch requests.
1000	ForceSendFields []string `json:"-"`
1001
1002	// NullFields is a list of field names (e.g. "Violations") to include in
1003	// API requests with the JSON null value. By default, fields with empty
1004	// values are omitted from API requests. However, any field with an
1005	// empty value appearing in NullFields will be sent to the server as
1006	// null. It is an error if a field in this list has a non-empty value.
1007	// This may be used to include null fields in Patch requests.
1008	NullFields []string `json:"-"`
1009}
1010
1011func (s *EdgeConfigstoreBundleBadBundle) MarshalJSON() ([]byte, error) {
1012	type NoMethod EdgeConfigstoreBundleBadBundle
1013	raw := NoMethod(*s)
1014	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1015}
1016
1017// EdgeConfigstoreBundleBadBundleViolation: A message type used to
1018// describe a single bundle validation error.
1019type EdgeConfigstoreBundleBadBundleViolation struct {
1020	// Description: A description of why the bundle is invalid and how to
1021	// fix it.
1022	Description string `json:"description,omitempty"`
1023
1024	// Filename: The filename (including relative path from the bundle root)
1025	// in which the error occurred.
1026	Filename string `json:"filename,omitempty"`
1027
1028	// ForceSendFields is a list of field names (e.g. "Description") to
1029	// unconditionally include in API requests. By default, fields with
1030	// empty or default values are omitted from API requests. However, any
1031	// non-pointer, non-interface field appearing in ForceSendFields will be
1032	// sent to the server regardless of whether the field is empty or not.
1033	// This may be used to include empty fields in Patch requests.
1034	ForceSendFields []string `json:"-"`
1035
1036	// NullFields is a list of field names (e.g. "Description") to include
1037	// in API requests with the JSON null value. By default, fields with
1038	// empty values are omitted from API requests. However, any field with
1039	// an empty value appearing in NullFields will be sent to the server as
1040	// null. It is an error if a field in this list has a non-empty value.
1041	// This may be used to include null fields in Patch requests.
1042	NullFields []string `json:"-"`
1043}
1044
1045func (s *EdgeConfigstoreBundleBadBundleViolation) MarshalJSON() ([]byte, error) {
1046	type NoMethod EdgeConfigstoreBundleBadBundleViolation
1047	raw := NoMethod(*s)
1048	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1049}
1050
1051// GoogleApiHttpBody: Message that represents an arbitrary HTTP body. It
1052// should only be used for payload formats that can't be represented as
1053// JSON, such as raw binary or an HTML page. This message can be used
1054// both in streaming and non-streaming API methods in the request as
1055// well as the response. It can be used as a top-level request field,
1056// which is convenient if one wants to extract parameters from either
1057// the URL or HTTP template into the request fields and also want access
1058// to the raw HTTP body. Example: message GetResourceRequest { // A
1059// unique request id. string request_id = 1; // The raw HTTP body is
1060// bound to this field. google.api.HttpBody http_body = 2; } service
1061// ResourceService { rpc GetResource(GetResourceRequest) returns
1062// (google.api.HttpBody); rpc UpdateResource(google.api.HttpBody)
1063// returns (google.protobuf.Empty); } Example with streaming methods:
1064// service CaldavService { rpc GetCalendar(stream google.api.HttpBody)
1065// returns (stream google.api.HttpBody); rpc UpdateCalendar(stream
1066// google.api.HttpBody) returns (stream google.api.HttpBody); } Use of
1067// this type only changes how the request and response bodies are
1068// handled, all other features will continue to work unchanged.
1069type GoogleApiHttpBody struct {
1070	// ContentType: The HTTP Content-Type header value specifying the
1071	// content type of the body.
1072	ContentType string `json:"contentType,omitempty"`
1073
1074	// Data: The HTTP request/response body as raw binary.
1075	Data string `json:"data,omitempty"`
1076
1077	// Extensions: Application specific response metadata. Must be set in
1078	// the first response for streaming APIs.
1079	Extensions []googleapi.RawMessage `json:"extensions,omitempty"`
1080
1081	// ServerResponse contains the HTTP response code and headers from the
1082	// server.
1083	googleapi.ServerResponse `json:"-"`
1084
1085	// ForceSendFields is a list of field names (e.g. "ContentType") to
1086	// unconditionally include in API requests. By default, fields with
1087	// empty or default values are omitted from API requests. However, any
1088	// non-pointer, non-interface field appearing in ForceSendFields will be
1089	// sent to the server regardless of whether the field is empty or not.
1090	// This may be used to include empty fields in Patch requests.
1091	ForceSendFields []string `json:"-"`
1092
1093	// NullFields is a list of field names (e.g. "ContentType") to include
1094	// in API requests with the JSON null value. By default, fields with
1095	// empty values are omitted from API requests. However, any field with
1096	// an empty value appearing in NullFields will be sent to the server as
1097	// null. It is an error if a field in this list has a non-empty value.
1098	// This may be used to include null fields in Patch requests.
1099	NullFields []string `json:"-"`
1100}
1101
1102func (s *GoogleApiHttpBody) MarshalJSON() ([]byte, error) {
1103	type NoMethod GoogleApiHttpBody
1104	raw := NoMethod(*s)
1105	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1106}
1107
1108type GoogleCloudApigeeV1Access struct {
1109	Get *GoogleCloudApigeeV1AccessGet `json:"Get,omitempty"`
1110
1111	Remove *GoogleCloudApigeeV1AccessRemove `json:"Remove,omitempty"`
1112
1113	Set *GoogleCloudApigeeV1AccessSet `json:"Set,omitempty"`
1114
1115	// ForceSendFields is a list of field names (e.g. "Get") to
1116	// unconditionally include in API requests. By default, fields with
1117	// empty or default values are omitted from API requests. However, any
1118	// non-pointer, non-interface field appearing in ForceSendFields will be
1119	// sent to the server regardless of whether the field is empty or not.
1120	// This may be used to include empty fields in Patch requests.
1121	ForceSendFields []string `json:"-"`
1122
1123	// NullFields is a list of field names (e.g. "Get") to include in API
1124	// requests with the JSON null value. By default, fields with empty
1125	// values are omitted from API requests. However, any field with an
1126	// empty value appearing in NullFields will be sent to the server as
1127	// null. It is an error if a field in this list has a non-empty value.
1128	// This may be used to include null fields in Patch requests.
1129	NullFields []string `json:"-"`
1130}
1131
1132func (s *GoogleCloudApigeeV1Access) MarshalJSON() ([]byte, error) {
1133	type NoMethod GoogleCloudApigeeV1Access
1134	raw := NoMethod(*s)
1135	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1136}
1137
1138// GoogleCloudApigeeV1AccessGet: Get action. For example, "Get" : {
1139// "name" : "target.name", "value" : "default" }
1140type GoogleCloudApigeeV1AccessGet struct {
1141	Name string `json:"name,omitempty"`
1142
1143	Value string `json:"value,omitempty"`
1144
1145	// ForceSendFields is a list of field names (e.g. "Name") to
1146	// unconditionally include in API requests. By default, fields with
1147	// empty or default values are omitted from API requests. However, any
1148	// non-pointer, non-interface field appearing in ForceSendFields will be
1149	// sent to the server regardless of whether the field is empty or not.
1150	// This may be used to include empty fields in Patch requests.
1151	ForceSendFields []string `json:"-"`
1152
1153	// NullFields is a list of field names (e.g. "Name") to include in API
1154	// requests with the JSON null value. By default, fields with empty
1155	// values are omitted from API requests. However, any field with an
1156	// empty value appearing in NullFields will be sent to the server as
1157	// null. It is an error if a field in this list has a non-empty value.
1158	// This may be used to include null fields in Patch requests.
1159	NullFields []string `json:"-"`
1160}
1161
1162func (s *GoogleCloudApigeeV1AccessGet) MarshalJSON() ([]byte, error) {
1163	type NoMethod GoogleCloudApigeeV1AccessGet
1164	raw := NoMethod(*s)
1165	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1166}
1167
1168// GoogleCloudApigeeV1AccessRemove: Remove action. For example, "Remove"
1169// : { "name" : "target.name", "success" : true }
1170type GoogleCloudApigeeV1AccessRemove struct {
1171	Name string `json:"name,omitempty"`
1172
1173	Success bool `json:"success,omitempty"`
1174
1175	// ForceSendFields is a list of field names (e.g. "Name") to
1176	// unconditionally include in API requests. By default, fields with
1177	// empty or default values are omitted from API requests. However, any
1178	// non-pointer, non-interface field appearing in ForceSendFields will be
1179	// sent to the server regardless of whether the field is empty or not.
1180	// This may be used to include empty fields in Patch requests.
1181	ForceSendFields []string `json:"-"`
1182
1183	// NullFields is a list of field names (e.g. "Name") to include in API
1184	// requests with the JSON null value. By default, fields with empty
1185	// values are omitted from API requests. However, any field with an
1186	// empty value appearing in NullFields will be sent to the server as
1187	// null. It is an error if a field in this list has a non-empty value.
1188	// This may be used to include null fields in Patch requests.
1189	NullFields []string `json:"-"`
1190}
1191
1192func (s *GoogleCloudApigeeV1AccessRemove) MarshalJSON() ([]byte, error) {
1193	type NoMethod GoogleCloudApigeeV1AccessRemove
1194	raw := NoMethod(*s)
1195	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1196}
1197
1198// GoogleCloudApigeeV1AccessSet: Set action. For example, "Set" : {
1199// "name" : "target.name", "success" : true, "value" : "default" }
1200type GoogleCloudApigeeV1AccessSet struct {
1201	Name string `json:"name,omitempty"`
1202
1203	Success bool `json:"success,omitempty"`
1204
1205	Value string `json:"value,omitempty"`
1206
1207	// ForceSendFields is a list of field names (e.g. "Name") to
1208	// unconditionally include in API requests. By default, fields with
1209	// empty or default values are omitted from API requests. However, any
1210	// non-pointer, non-interface field appearing in ForceSendFields will be
1211	// sent to the server regardless of whether the field is empty or not.
1212	// This may be used to include empty fields in Patch requests.
1213	ForceSendFields []string `json:"-"`
1214
1215	// NullFields is a list of field names (e.g. "Name") to include in API
1216	// requests with the JSON null value. By default, fields with empty
1217	// values are omitted from API requests. However, any field with an
1218	// empty value appearing in NullFields will be sent to the server as
1219	// null. It is an error if a field in this list has a non-empty value.
1220	// This may be used to include null fields in Patch requests.
1221	NullFields []string `json:"-"`
1222}
1223
1224func (s *GoogleCloudApigeeV1AccessSet) MarshalJSON() ([]byte, error) {
1225	type NoMethod GoogleCloudApigeeV1AccessSet
1226	raw := NoMethod(*s)
1227	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1228}
1229
1230// GoogleCloudApigeeV1ActivateNatAddressRequest: Request for
1231// ActivateNatAddressRequest. Activate the nat address request.
1232type GoogleCloudApigeeV1ActivateNatAddressRequest struct {
1233}
1234
1235// GoogleCloudApigeeV1AddonsConfig: Add-on configurations for the Apigee
1236// organization.
1237type GoogleCloudApigeeV1AddonsConfig struct {
1238	// AdvancedApiOpsConfig: Configuration for the Advanced API Ops add-on.
1239	AdvancedApiOpsConfig *GoogleCloudApigeeV1AdvancedApiOpsConfig `json:"advancedApiOpsConfig,omitempty"`
1240
1241	// MonetizationConfig: Configuration for the Monetization add-on.
1242	MonetizationConfig *GoogleCloudApigeeV1MonetizationConfig `json:"monetizationConfig,omitempty"`
1243
1244	// ForceSendFields is a list of field names (e.g.
1245	// "AdvancedApiOpsConfig") to unconditionally include in API requests.
1246	// By default, fields with empty or default values are omitted from API
1247	// requests. However, any non-pointer, non-interface field appearing in
1248	// ForceSendFields will be sent to the server regardless of whether the
1249	// field is empty or not. This may be used to include empty fields in
1250	// Patch requests.
1251	ForceSendFields []string `json:"-"`
1252
1253	// NullFields is a list of field names (e.g. "AdvancedApiOpsConfig") to
1254	// include in API requests with the JSON null value. By default, fields
1255	// with empty values are omitted from API requests. However, any field
1256	// with an empty value appearing in NullFields will be sent to the
1257	// server as null. It is an error if a field in this list has a
1258	// non-empty value. This may be used to include null fields in Patch
1259	// requests.
1260	NullFields []string `json:"-"`
1261}
1262
1263func (s *GoogleCloudApigeeV1AddonsConfig) MarshalJSON() ([]byte, error) {
1264	type NoMethod GoogleCloudApigeeV1AddonsConfig
1265	raw := NoMethod(*s)
1266	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1267}
1268
1269// GoogleCloudApigeeV1AdvancedApiOpsConfig: Configuration for the
1270// Advanced API Ops add-on.
1271type GoogleCloudApigeeV1AdvancedApiOpsConfig struct {
1272	// Enabled: Flag that specifies whether the Advanced API Ops add-on is
1273	// enabled.
1274	Enabled bool `json:"enabled,omitempty"`
1275
1276	// ForceSendFields is a list of field names (e.g. "Enabled") to
1277	// unconditionally include in API requests. By default, fields with
1278	// empty or default values are omitted from API requests. However, any
1279	// non-pointer, non-interface field appearing in ForceSendFields will be
1280	// sent to the server regardless of whether the field is empty or not.
1281	// This may be used to include empty fields in Patch requests.
1282	ForceSendFields []string `json:"-"`
1283
1284	// NullFields is a list of field names (e.g. "Enabled") to include in
1285	// API requests with the JSON null value. By default, fields with empty
1286	// values are omitted from API requests. However, any field with an
1287	// empty value appearing in NullFields will be sent to the server as
1288	// null. It is an error if a field in this list has a non-empty value.
1289	// This may be used to include null fields in Patch requests.
1290	NullFields []string `json:"-"`
1291}
1292
1293func (s *GoogleCloudApigeeV1AdvancedApiOpsConfig) MarshalJSON() ([]byte, error) {
1294	type NoMethod GoogleCloudApigeeV1AdvancedApiOpsConfig
1295	raw := NoMethod(*s)
1296	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1297}
1298
1299// GoogleCloudApigeeV1Alias: Reference to a certificate or
1300// key/certificate pair.
1301type GoogleCloudApigeeV1Alias struct {
1302	// Alias: Resource ID for this alias. Values must match the regular
1303	// expression `[^/]{1,255}`.
1304	Alias string `json:"alias,omitempty"`
1305
1306	// CertsInfo: Chain of certificates under this alias.
1307	CertsInfo *GoogleCloudApigeeV1Certificate `json:"certsInfo,omitempty"`
1308
1309	// Type: Type of alias.
1310	//
1311	// Possible values:
1312	//   "ALIAS_TYPE_UNSPECIFIED" - Alias type is not specified.
1313	//   "CERT" - Certificate.
1314	//   "KEY_CERT" - Key/certificate pair.
1315	Type string `json:"type,omitempty"`
1316
1317	// ServerResponse contains the HTTP response code and headers from the
1318	// server.
1319	googleapi.ServerResponse `json:"-"`
1320
1321	// ForceSendFields is a list of field names (e.g. "Alias") to
1322	// unconditionally include in API requests. By default, fields with
1323	// empty or default values are omitted from API requests. However, any
1324	// non-pointer, non-interface field appearing in ForceSendFields will be
1325	// sent to the server regardless of whether the field is empty or not.
1326	// This may be used to include empty fields in Patch requests.
1327	ForceSendFields []string `json:"-"`
1328
1329	// NullFields is a list of field names (e.g. "Alias") to include in API
1330	// requests with the JSON null value. By default, fields with empty
1331	// values are omitted from API requests. However, any field with an
1332	// empty value appearing in NullFields will be sent to the server as
1333	// null. It is an error if a field in this list has a non-empty value.
1334	// This may be used to include null fields in Patch requests.
1335	NullFields []string `json:"-"`
1336}
1337
1338func (s *GoogleCloudApigeeV1Alias) MarshalJSON() ([]byte, error) {
1339	type NoMethod GoogleCloudApigeeV1Alias
1340	raw := NoMethod(*s)
1341	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1342}
1343
1344type GoogleCloudApigeeV1AliasRevisionConfig struct {
1345	// Location: Location of the alias file. For example, a Google Cloud
1346	// Storage URI.
1347	Location string `json:"location,omitempty"`
1348
1349	// Name: Name of the alias revision included in the keystore in the
1350	// following format:
1351	// `organizations/{org}/environments/{env}/keystores/{keystore}/aliases/{
1352	// alias}/revisions/{rev}`
1353	Name string `json:"name,omitempty"`
1354
1355	// Possible values:
1356	//   "ALIAS_TYPE_UNSPECIFIED" - Alias type is not specified.
1357	//   "CERT" - Certificate.
1358	//   "KEY_CERT" - Key/certificate pair.
1359	Type string `json:"type,omitempty"`
1360
1361	// ForceSendFields is a list of field names (e.g. "Location") to
1362	// unconditionally include in API requests. By default, fields with
1363	// empty or default values are omitted from API requests. However, any
1364	// non-pointer, non-interface field appearing in ForceSendFields will be
1365	// sent to the server regardless of whether the field is empty or not.
1366	// This may be used to include empty fields in Patch requests.
1367	ForceSendFields []string `json:"-"`
1368
1369	// NullFields is a list of field names (e.g. "Location") to include in
1370	// API requests with the JSON null value. By default, fields with empty
1371	// values are omitted from API requests. However, any field with an
1372	// empty value appearing in NullFields will be sent to the server as
1373	// null. It is an error if a field in this list has a non-empty value.
1374	// This may be used to include null fields in Patch requests.
1375	NullFields []string `json:"-"`
1376}
1377
1378func (s *GoogleCloudApigeeV1AliasRevisionConfig) MarshalJSON() ([]byte, error) {
1379	type NoMethod GoogleCloudApigeeV1AliasRevisionConfig
1380	raw := NoMethod(*s)
1381	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1382}
1383
1384// GoogleCloudApigeeV1ApiCategory: the Api category resource wrapped
1385// with response status, error_code etc.
1386type GoogleCloudApigeeV1ApiCategory struct {
1387	// Data: Details of category.
1388	Data *GoogleCloudApigeeV1ApiCategoryData `json:"data,omitempty"`
1389
1390	// ErrorCode: ID that can be used to find errors in the log files.
1391	ErrorCode string `json:"errorCode,omitempty"`
1392
1393	// Message: Description of the operation.
1394	Message string `json:"message,omitempty"`
1395
1396	// RequestId: ID that can be used to find request details in the log
1397	// files.
1398	RequestId string `json:"requestId,omitempty"`
1399
1400	// Status: Status of the operation.
1401	Status string `json:"status,omitempty"`
1402
1403	// ServerResponse contains the HTTP response code and headers from the
1404	// server.
1405	googleapi.ServerResponse `json:"-"`
1406
1407	// ForceSendFields is a list of field names (e.g. "Data") to
1408	// unconditionally include in API requests. By default, fields with
1409	// empty or default values are omitted from API requests. However, any
1410	// non-pointer, non-interface field appearing in ForceSendFields will be
1411	// sent to the server regardless of whether the field is empty or not.
1412	// This may be used to include empty fields in Patch requests.
1413	ForceSendFields []string `json:"-"`
1414
1415	// NullFields is a list of field names (e.g. "Data") to include in API
1416	// requests with the JSON null value. By default, fields with empty
1417	// values are omitted from API requests. However, any field with an
1418	// empty value appearing in NullFields will be sent to the server as
1419	// null. It is an error if a field in this list has a non-empty value.
1420	// This may be used to include null fields in Patch requests.
1421	NullFields []string `json:"-"`
1422}
1423
1424func (s *GoogleCloudApigeeV1ApiCategory) MarshalJSON() ([]byte, error) {
1425	type NoMethod GoogleCloudApigeeV1ApiCategory
1426	raw := NoMethod(*s)
1427	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1428}
1429
1430// GoogleCloudApigeeV1ApiCategoryData: the Api category resource.
1431type GoogleCloudApigeeV1ApiCategoryData struct {
1432	// Id: ID of the category (a UUID).
1433	Id string `json:"id,omitempty"`
1434
1435	// Name: Name of the category.
1436	Name string `json:"name,omitempty"`
1437
1438	// SiteId: Name of the portal.
1439	SiteId string `json:"siteId,omitempty"`
1440
1441	// UpdateTime: Time the category was last modified in milliseconds since
1442	// epoch.
1443	UpdateTime int64 `json:"updateTime,omitempty,string"`
1444
1445	// ForceSendFields is a list of field names (e.g. "Id") to
1446	// unconditionally include in API requests. By default, fields with
1447	// empty or default values are omitted from API requests. However, any
1448	// non-pointer, non-interface field appearing in ForceSendFields will be
1449	// sent to the server regardless of whether the field is empty or not.
1450	// This may be used to include empty fields in Patch requests.
1451	ForceSendFields []string `json:"-"`
1452
1453	// NullFields is a list of field names (e.g. "Id") to include in API
1454	// requests with the JSON null value. By default, fields with empty
1455	// values are omitted from API requests. However, any field with an
1456	// empty value appearing in NullFields will be sent to the server as
1457	// null. It is an error if a field in this list has a non-empty value.
1458	// This may be used to include null fields in Patch requests.
1459	NullFields []string `json:"-"`
1460}
1461
1462func (s *GoogleCloudApigeeV1ApiCategoryData) MarshalJSON() ([]byte, error) {
1463	type NoMethod GoogleCloudApigeeV1ApiCategoryData
1464	raw := NoMethod(*s)
1465	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1466}
1467
1468type GoogleCloudApigeeV1ApiProduct struct {
1469	ApiResources []string `json:"apiResources,omitempty"`
1470
1471	// ApprovalType: Flag that specifies how API keys are approved to access
1472	// the APIs defined by the API product. If set to `manual`, the consumer
1473	// key is generated and returned in "pending" state. In this case, the
1474	// API keys won't work until they have been explicitly approved. If set
1475	// to `auto`, the consumer key is generated and returned in "approved"
1476	// state and can be used immediately. **Note:** Typically, `auto` is
1477	// used to provide access to free or trial API products that provide
1478	// limited quota or capabilities.
1479	ApprovalType string `json:"approvalType,omitempty"`
1480
1481	// Attributes: Array of attributes that may be used to extend the
1482	// default API product profile with customer-specific metadata. You can
1483	// specify a maximum of 18 attributes. Use this property to specify the
1484	// access level of the API product as either `public`, `private`, or
1485	// `internal`. Only products marked `public` are available to developers
1486	// in the Apigee developer portal. For example, you can set a product to
1487	// `internal` while it is in development and then change access to
1488	// `public` when it is ready to release on the portal. API products
1489	// marked as `private` do not appear on the portal, but can be accessed
1490	// by external developers.
1491	Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
1492
1493	// CreatedAt: Response only. Creation time of this environment as
1494	// milliseconds since epoch.
1495	CreatedAt int64 `json:"createdAt,omitempty,string"`
1496
1497	// Description: Description of the API product. Include key information
1498	// about the API product that is not captured by other fields.
1499	// Comma-separated list of API resources to be bundled in the API
1500	// product. By default, the resource paths are mapped from the
1501	// `proxy.pathsuffix` variable. The proxy path suffix is defined as the
1502	// URI fragment following the ProxyEndpoint base path. For example, if
1503	// the `apiResources` element is defined to be `/forecastrss` and the
1504	// base path defined for the API proxy is `/weather`, then only requests
1505	// to `/weather/forecastrss` are permitted by the API product. You can
1506	// select a specific path, or you can select all subpaths with the
1507	// following wildcard: - `/**`: Indicates that all sub-URIs are
1508	// included. - `/*` : Indicates that only URIs one level down are
1509	// included. By default, / supports the same resources as /** as well as
1510	// the base path defined by the API proxy. For example, if the base path
1511	// of the API proxy is `/v1/weatherapikey`, then the API product
1512	// supports requests to `/v1/weatherapikey` and to any sub-URIs, such as
1513	// `/v1/weatherapikey/forecastrss`, `/v1/weatherapikey/region/CA`, and
1514	// so on. For more information, see Managing API products.
1515	Description string `json:"description,omitempty"`
1516
1517	// DisplayName: Name displayed in the UI or developer portal to
1518	// developers registering for API access.
1519	DisplayName string `json:"displayName,omitempty"`
1520
1521	// Environments: Comma-separated list of environment names to which the
1522	// API product is bound. Requests to environments that are not listed
1523	// are rejected. By specifying one or more environments, you can bind
1524	// the resources listed in the API product to a specific environment,
1525	// preventing developers from accessing those resources through API
1526	// proxies deployed in another environment. This setting is used, for
1527	// example, to prevent resources associated with API proxies in `prod`
1528	// from being accessed by API proxies deployed in `test`.
1529	Environments []string `json:"environments,omitempty"`
1530
1531	// GraphqlOperationGroup: Configuration used to group Apigee proxies or
1532	// remote services with graphQL operation name, graphQL operation type
1533	// and quotas. This grouping allows us to precisely set quota for a
1534	// particular combination of graphQL name and operation type for a
1535	// particular proxy request. If graphQL name is not set, this would
1536	// imply quota will be applied on all graphQL requests matching the
1537	// operation type.
1538	GraphqlOperationGroup *GoogleCloudApigeeV1GraphQLOperationGroup `json:"graphqlOperationGroup,omitempty"`
1539
1540	// LastModifiedAt: Response only. Modified time of this environment as
1541	// milliseconds since epoch.
1542	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
1543
1544	// Name: Internal name of the API product. Characters you can use in the
1545	// name are restricted to: `A-Z0-9._\-$ %`. **Note:** The internal name
1546	// cannot be edited when updating the API product.
1547	Name string `json:"name,omitempty"`
1548
1549	// OperationGroup: Configuration used to group Apigee proxies or remote
1550	// services with resources, method types, and quotas. The resource
1551	// refers to the resource URI (excluding the base path). With this
1552	// grouping, the API product creator is able to fine-tune and give
1553	// precise control over which REST methods have access to specific
1554	// resources and how many calls can be made (using the `quota` setting).
1555	// **Note:** The `api_resources` setting cannot be specified for both
1556	// the API product and operation group; otherwise the call will fail.
1557	OperationGroup *GoogleCloudApigeeV1OperationGroup `json:"operationGroup,omitempty"`
1558
1559	// Proxies: Comma-separated list of API proxy names to which this API
1560	// product is bound. By specifying API proxies, you can associate
1561	// resources in the API product with specific API proxies, preventing
1562	// developers from accessing those resources through other API proxies.
1563	// Apigee rejects requests to API proxies that are not listed. **Note:**
1564	// The API proxy names must already exist in the specified environment
1565	// as they will be validated upon creation.
1566	Proxies []string `json:"proxies,omitempty"`
1567
1568	// Quota: Number of request messages permitted per app by this API
1569	// product for the specified `quotaInterval` and `quotaTimeUnit`. For
1570	// example, a `quota` of 50, for a `quotaInterval` of 12 and a
1571	// `quotaTimeUnit` of hours means 50 requests are allowed every 12
1572	// hours.
1573	Quota string `json:"quota,omitempty"`
1574
1575	// QuotaInterval: Time interval over which the number of request
1576	// messages is calculated.
1577	QuotaInterval string `json:"quotaInterval,omitempty"`
1578
1579	// QuotaTimeUnit: Time unit defined for the `quotaInterval`. Valid
1580	// values include `minute`, `hour`, `day`, or `month`.
1581	QuotaTimeUnit string `json:"quotaTimeUnit,omitempty"`
1582
1583	// Scopes: Comma-separated list of OAuth scopes that are validated at
1584	// runtime. Apigee validates that the scopes in any access token
1585	// presented match the scopes defined in the OAuth policy associated
1586	// with the API product.
1587	Scopes []string `json:"scopes,omitempty"`
1588
1589	// ServerResponse contains the HTTP response code and headers from the
1590	// server.
1591	googleapi.ServerResponse `json:"-"`
1592
1593	// ForceSendFields is a list of field names (e.g. "ApiResources") to
1594	// unconditionally include in API requests. By default, fields with
1595	// empty or default values are omitted from API requests. However, any
1596	// non-pointer, non-interface field appearing in ForceSendFields will be
1597	// sent to the server regardless of whether the field is empty or not.
1598	// This may be used to include empty fields in Patch requests.
1599	ForceSendFields []string `json:"-"`
1600
1601	// NullFields is a list of field names (e.g. "ApiResources") to include
1602	// in API requests with the JSON null value. By default, fields with
1603	// empty values are omitted from API requests. However, any field with
1604	// an empty value appearing in NullFields will be sent to the server as
1605	// null. It is an error if a field in this list has a non-empty value.
1606	// This may be used to include null fields in Patch requests.
1607	NullFields []string `json:"-"`
1608}
1609
1610func (s *GoogleCloudApigeeV1ApiProduct) MarshalJSON() ([]byte, error) {
1611	type NoMethod GoogleCloudApigeeV1ApiProduct
1612	raw := NoMethod(*s)
1613	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1614}
1615
1616type GoogleCloudApigeeV1ApiProductRef struct {
1617	// Apiproduct: Name of the API product.
1618	Apiproduct string `json:"apiproduct,omitempty"`
1619
1620	// Status: Status of the API product.
1621	Status string `json:"status,omitempty"`
1622
1623	// ForceSendFields is a list of field names (e.g. "Apiproduct") to
1624	// unconditionally include in API requests. By default, fields with
1625	// empty or default values are omitted from API requests. However, any
1626	// non-pointer, non-interface field appearing in ForceSendFields will be
1627	// sent to the server regardless of whether the field is empty or not.
1628	// This may be used to include empty fields in Patch requests.
1629	ForceSendFields []string `json:"-"`
1630
1631	// NullFields is a list of field names (e.g. "Apiproduct") to include in
1632	// API requests with the JSON null value. By default, fields with empty
1633	// values are omitted from API requests. However, any field with an
1634	// empty value appearing in NullFields will be sent to the server as
1635	// null. It is an error if a field in this list has a non-empty value.
1636	// This may be used to include null fields in Patch requests.
1637	NullFields []string `json:"-"`
1638}
1639
1640func (s *GoogleCloudApigeeV1ApiProductRef) MarshalJSON() ([]byte, error) {
1641	type NoMethod GoogleCloudApigeeV1ApiProductRef
1642	raw := NoMethod(*s)
1643	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1644}
1645
1646// GoogleCloudApigeeV1ApiProxy: Metadata describing the API proxy
1647type GoogleCloudApigeeV1ApiProxy struct {
1648	// Labels: User labels applied to this API Proxy.
1649	Labels map[string]string `json:"labels,omitempty"`
1650
1651	// LatestRevisionId: Output only. The id of the most recently created
1652	// revision for this api proxy.
1653	LatestRevisionId string `json:"latestRevisionId,omitempty"`
1654
1655	// MetaData: Output only. Metadata describing the API proxy.
1656	MetaData *GoogleCloudApigeeV1EntityMetadata `json:"metaData,omitempty"`
1657
1658	// Name: Output only. Name of the API proxy.
1659	Name string `json:"name,omitempty"`
1660
1661	// Revision: Output only. List of revisons defined for the API proxy.
1662	Revision []string `json:"revision,omitempty"`
1663
1664	// ServerResponse contains the HTTP response code and headers from the
1665	// server.
1666	googleapi.ServerResponse `json:"-"`
1667
1668	// ForceSendFields is a list of field names (e.g. "Labels") to
1669	// unconditionally include in API requests. By default, fields with
1670	// empty or default values are omitted from API requests. However, any
1671	// non-pointer, non-interface field appearing in ForceSendFields will be
1672	// sent to the server regardless of whether the field is empty or not.
1673	// This may be used to include empty fields in Patch requests.
1674	ForceSendFields []string `json:"-"`
1675
1676	// NullFields is a list of field names (e.g. "Labels") to include in API
1677	// requests with the JSON null value. By default, fields with empty
1678	// values are omitted from API requests. However, any field with an
1679	// empty value appearing in NullFields will be sent to the server as
1680	// null. It is an error if a field in this list has a non-empty value.
1681	// This may be used to include null fields in Patch requests.
1682	NullFields []string `json:"-"`
1683}
1684
1685func (s *GoogleCloudApigeeV1ApiProxy) MarshalJSON() ([]byte, error) {
1686	type NoMethod GoogleCloudApigeeV1ApiProxy
1687	raw := NoMethod(*s)
1688	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1689}
1690
1691// GoogleCloudApigeeV1ApiProxyRevision: API proxy revision.
1692type GoogleCloudApigeeV1ApiProxyRevision struct {
1693	// Basepaths: Base URL of the API proxy.
1694	Basepaths []string `json:"basepaths,omitempty"`
1695
1696	// ConfigurationVersion: Version of the API proxy configuration schema
1697	// to which the API proxy conforms. Currently, the only supported value
1698	// is 4.0 (`majorVersion.minorVersion`). This setting may be used in the
1699	// future to track the evolution of the API proxy format.
1700	ConfigurationVersion *GoogleCloudApigeeV1ConfigVersion `json:"configurationVersion,omitempty"`
1701
1702	// ContextInfo: Revision number, app name, and organization for the API
1703	// proxy.
1704	ContextInfo string `json:"contextInfo,omitempty"`
1705
1706	// CreatedAt: Time that the API proxy revision was created in
1707	// milliseconds since epoch.
1708	CreatedAt int64 `json:"createdAt,omitempty,string"`
1709
1710	// Description: Description of the API proxy revision.
1711	Description string `json:"description,omitempty"`
1712
1713	// DisplayName: Human-readable name of the API proxy.
1714	DisplayName string `json:"displayName,omitempty"`
1715
1716	// EntityMetaDataAsProperties: Metadata describing the API proxy
1717	// revision as a key-value map.
1718	EntityMetaDataAsProperties map[string]string `json:"entityMetaDataAsProperties,omitempty"`
1719
1720	// LastModifiedAt: Time that the API proxy revision was last modified in
1721	// milliseconds since epoch.
1722	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
1723
1724	// Name: Name of the API proxy.
1725	Name string `json:"name,omitempty"`
1726
1727	// Policies: List of policy names included in the API proxy revision..
1728	Policies []string `json:"policies,omitempty"`
1729
1730	// Proxies: List of proxy names included in the API proxy revision.
1731	Proxies []string `json:"proxies,omitempty"`
1732
1733	// ProxyEndpoints: List of ProxyEndpoints in the `/proxies` directory of
1734	// the API proxy. Typically, this element is included only when the API
1735	// proxy was created using the Edge UI. This is a 'manifest' setting
1736	// designed to provide visibility into the contents of the API proxy.
1737	ProxyEndpoints []string `json:"proxyEndpoints,omitempty"`
1738
1739	// ResourceFiles: List of resource files included in the API proxy
1740	// revision.
1741	ResourceFiles *GoogleCloudApigeeV1ResourceFiles `json:"resourceFiles,omitempty"`
1742
1743	// Resources: List of the resources included in the API proxy revision
1744	// formatted as "{type}://{name}".
1745	Resources []string `json:"resources,omitempty"`
1746
1747	// Revision: API proxy revision.
1748	Revision string `json:"revision,omitempty"`
1749
1750	// SharedFlows: List of the shared flows included in the API proxy
1751	// revision.
1752	SharedFlows []string `json:"sharedFlows,omitempty"`
1753
1754	// Spec: OpenAPI Specification that is associated with the API proxy.
1755	// The value is set to a URL or to a path in the specification store.
1756	Spec string `json:"spec,omitempty"`
1757
1758	// TargetEndpoints: List of TargetEndpoints in the `/targets` directory
1759	// of the API proxy. Typically, this element is included only when the
1760	// API proxy was created using the Edge UI. This is a 'manifest' setting
1761	// designed to provide visibility into the contents of the API proxy.
1762	TargetEndpoints []string `json:"targetEndpoints,omitempty"`
1763
1764	// TargetServers: List of TargetServers referenced in any TargetEndpoint
1765	// in the API proxy. Typically, you will see this element only when the
1766	// API proxy was created using the Edge UI. This is a 'manifest' setting
1767	// designed to provide visibility into the contents of the API proxy.
1768	TargetServers []string `json:"targetServers,omitempty"`
1769
1770	// Targets: List of the targets included in the API proxy revision.
1771	Targets []string `json:"targets,omitempty"`
1772
1773	// Teams: List of the teams included in the API proxy revision.
1774	Teams []string `json:"teams,omitempty"`
1775
1776	// Type: Type. Set to `Application`. Maintained for compatibility with
1777	// the Apigee Edge API.
1778	Type string `json:"type,omitempty"`
1779
1780	// ServerResponse contains the HTTP response code and headers from the
1781	// server.
1782	googleapi.ServerResponse `json:"-"`
1783
1784	// ForceSendFields is a list of field names (e.g. "Basepaths") to
1785	// unconditionally include in API requests. By default, fields with
1786	// empty or default values are omitted from API requests. However, any
1787	// non-pointer, non-interface field appearing in ForceSendFields will be
1788	// sent to the server regardless of whether the field is empty or not.
1789	// This may be used to include empty fields in Patch requests.
1790	ForceSendFields []string `json:"-"`
1791
1792	// NullFields is a list of field names (e.g. "Basepaths") to include in
1793	// API requests with the JSON null value. By default, fields with empty
1794	// values are omitted from API requests. However, any field with an
1795	// empty value appearing in NullFields will be sent to the server as
1796	// null. It is an error if a field in this list has a non-empty value.
1797	// This may be used to include null fields in Patch requests.
1798	NullFields []string `json:"-"`
1799}
1800
1801func (s *GoogleCloudApigeeV1ApiProxyRevision) MarshalJSON() ([]byte, error) {
1802	type NoMethod GoogleCloudApigeeV1ApiProxyRevision
1803	raw := NoMethod(*s)
1804	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1805}
1806
1807type GoogleCloudApigeeV1ApiResponseWrapper struct {
1808	// ErrorCode: ID that can be used to find errors in the log files.
1809	ErrorCode string `json:"errorCode,omitempty"`
1810
1811	// Message: Description of the operation.
1812	Message string `json:"message,omitempty"`
1813
1814	// RequestId: ID that can be used to find request details in the log
1815	// files.
1816	RequestId string `json:"requestId,omitempty"`
1817
1818	// Status: Status of the operation.
1819	Status string `json:"status,omitempty"`
1820
1821	// ServerResponse contains the HTTP response code and headers from the
1822	// server.
1823	googleapi.ServerResponse `json:"-"`
1824
1825	// ForceSendFields is a list of field names (e.g. "ErrorCode") to
1826	// unconditionally include in API requests. By default, fields with
1827	// empty or default values are omitted from API requests. However, any
1828	// non-pointer, non-interface field appearing in ForceSendFields will be
1829	// sent to the server regardless of whether the field is empty or not.
1830	// This may be used to include empty fields in Patch requests.
1831	ForceSendFields []string `json:"-"`
1832
1833	// NullFields is a list of field names (e.g. "ErrorCode") to include in
1834	// API requests with the JSON null value. By default, fields with empty
1835	// values are omitted from API requests. However, any field with an
1836	// empty value appearing in NullFields will be sent to the server as
1837	// null. It is an error if a field in this list has a non-empty value.
1838	// This may be used to include null fields in Patch requests.
1839	NullFields []string `json:"-"`
1840}
1841
1842func (s *GoogleCloudApigeeV1ApiResponseWrapper) MarshalJSON() ([]byte, error) {
1843	type NoMethod GoogleCloudApigeeV1ApiResponseWrapper
1844	raw := NoMethod(*s)
1845	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1846}
1847
1848type GoogleCloudApigeeV1App struct {
1849	// ApiProducts: List of API products associated with the app.
1850	ApiProducts []*GoogleCloudApigeeV1ApiProductRef `json:"apiProducts,omitempty"`
1851
1852	// AppId: ID of the app.
1853	AppId string `json:"appId,omitempty"`
1854
1855	// Attributes: List of attributes.
1856	Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
1857
1858	// CallbackUrl: Callback URL used by OAuth 2.0 authorization servers to
1859	// communicate authorization codes back to apps.
1860	CallbackUrl string `json:"callbackUrl,omitempty"`
1861
1862	// CompanyName: Name of the company that owns the app.
1863	CompanyName string `json:"companyName,omitempty"`
1864
1865	// CreatedAt: Output only. Unix time when the app was created.
1866	CreatedAt int64 `json:"createdAt,omitempty,string"`
1867
1868	// Credentials: Output only. Set of credentials for the app. Credentials
1869	// are API key/secret pairs associated with API products.
1870	Credentials []*GoogleCloudApigeeV1Credential `json:"credentials,omitempty"`
1871
1872	// DeveloperId: ID of the developer.
1873	DeveloperId string `json:"developerId,omitempty"`
1874
1875	// KeyExpiresIn: Duration, in milliseconds, of the consumer key that
1876	// will be generated for the app. The default value, -1, indicates an
1877	// infinite validity period. Once set, the expiration can't be updated.
1878	// json key: keyExpiresIn
1879	KeyExpiresIn int64 `json:"keyExpiresIn,omitempty,string"`
1880
1881	// LastModifiedAt: Output only. Last modified time as milliseconds since
1882	// epoch.
1883	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
1884
1885	// Name: Name of the app.
1886	Name string `json:"name,omitempty"`
1887
1888	// Scopes: Scopes to apply to the app. The specified scope names must
1889	// already exist on the API product that you associate with the app.
1890	Scopes []string `json:"scopes,omitempty"`
1891
1892	// Status: Status of the credential.
1893	Status string `json:"status,omitempty"`
1894
1895	// ServerResponse contains the HTTP response code and headers from the
1896	// server.
1897	googleapi.ServerResponse `json:"-"`
1898
1899	// ForceSendFields is a list of field names (e.g. "ApiProducts") to
1900	// unconditionally include in API requests. By default, fields with
1901	// empty or default values are omitted from API requests. However, any
1902	// non-pointer, non-interface field appearing in ForceSendFields will be
1903	// sent to the server regardless of whether the field is empty or not.
1904	// This may be used to include empty fields in Patch requests.
1905	ForceSendFields []string `json:"-"`
1906
1907	// NullFields is a list of field names (e.g. "ApiProducts") to include
1908	// in API requests with the JSON null value. By default, fields with
1909	// empty values are omitted from API requests. However, any field with
1910	// an empty value appearing in NullFields will be sent to the server as
1911	// null. It is an error if a field in this list has a non-empty value.
1912	// This may be used to include null fields in Patch requests.
1913	NullFields []string `json:"-"`
1914}
1915
1916func (s *GoogleCloudApigeeV1App) MarshalJSON() ([]byte, error) {
1917	type NoMethod GoogleCloudApigeeV1App
1918	raw := NoMethod(*s)
1919	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1920}
1921
1922// GoogleCloudApigeeV1ArchiveDeployment: Archive Deployment information.
1923type GoogleCloudApigeeV1ArchiveDeployment struct {
1924	// CreatedAt: Output only. The time at which the Archive Deployment was
1925	// created in milliseconds since the epoch.
1926	CreatedAt int64 `json:"createdAt,omitempty,string"`
1927
1928	// GcsUri: Input only. The Google Cloud Storage signed URL returned from
1929	// GenerateUploadUrl and used to upload the Archive zip file.
1930	GcsUri string `json:"gcsUri,omitempty"`
1931
1932	// Labels: User-supplied key-value pairs used to organize
1933	// ArchiveDeployments. Label keys must be between 1 and 63 characters
1934	// long, have a UTF-8 encoding of maximum 128 bytes, and must conform to
1935	// the following PCRE regular expression: \p{Ll}\p{Lo}{0,62} Label
1936	// values must be between 1 and 63 characters long, have a UTF-8
1937	// encoding of maximum 128 bytes, and must conform to the following PCRE
1938	// regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63} No more than 64
1939	// labels can be associated with a given store.
1940	Labels map[string]string `json:"labels,omitempty"`
1941
1942	// Name: Name of the Archive Deployment in the following format:
1943	// `organizations/{org}/environments/{env}/archiveDeployments/{id}`.
1944	Name string `json:"name,omitempty"`
1945
1946	// Operation: Output only. A reference to the LRO that created this
1947	// Archive Deployment in the following format:
1948	// `organizations/{org}/operations/{id}`
1949	Operation string `json:"operation,omitempty"`
1950
1951	// UpdatedAt: Output only. The time at which the Archive Deployment was
1952	// updated in milliseconds since the epoch.
1953	UpdatedAt int64 `json:"updatedAt,omitempty,string"`
1954
1955	// ServerResponse contains the HTTP response code and headers from the
1956	// server.
1957	googleapi.ServerResponse `json:"-"`
1958
1959	// ForceSendFields is a list of field names (e.g. "CreatedAt") to
1960	// unconditionally include in API requests. By default, fields with
1961	// empty or default values are omitted from API requests. However, any
1962	// non-pointer, non-interface field appearing in ForceSendFields will be
1963	// sent to the server regardless of whether the field is empty or not.
1964	// This may be used to include empty fields in Patch requests.
1965	ForceSendFields []string `json:"-"`
1966
1967	// NullFields is a list of field names (e.g. "CreatedAt") to include in
1968	// API requests with the JSON null value. By default, fields with empty
1969	// values are omitted from API requests. However, any field with an
1970	// empty value appearing in NullFields will be sent to the server as
1971	// null. It is an error if a field in this list has a non-empty value.
1972	// This may be used to include null fields in Patch requests.
1973	NullFields []string `json:"-"`
1974}
1975
1976func (s *GoogleCloudApigeeV1ArchiveDeployment) MarshalJSON() ([]byte, error) {
1977	type NoMethod GoogleCloudApigeeV1ArchiveDeployment
1978	raw := NoMethod(*s)
1979	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1980}
1981
1982type GoogleCloudApigeeV1AsyncQuery struct {
1983	// Created: Creation time of the query.
1984	Created string `json:"created,omitempty"`
1985
1986	// EnvgroupHostname: Hostname is available only when query is executed
1987	// at host level.
1988	EnvgroupHostname string `json:"envgroupHostname,omitempty"`
1989
1990	// Error: Error is set when query fails.
1991	Error string `json:"error,omitempty"`
1992
1993	// ExecutionTime: ExecutionTime is available only after the query is
1994	// completed.
1995	ExecutionTime string `json:"executionTime,omitempty"`
1996
1997	// Name: Asynchronous Query Name.
1998	Name string `json:"name,omitempty"`
1999
2000	// QueryParams: Contains information like metrics, dimenstions etc of
2001	// the AsyncQuery.
2002	QueryParams *GoogleCloudApigeeV1QueryMetadata `json:"queryParams,omitempty"`
2003
2004	// ReportDefinitionId: Asynchronous Report ID.
2005	ReportDefinitionId string `json:"reportDefinitionId,omitempty"`
2006
2007	// Result: Result is available only after the query is completed.
2008	Result *GoogleCloudApigeeV1AsyncQueryResult `json:"result,omitempty"`
2009
2010	// ResultFileSize: ResultFileSize is available only after the query is
2011	// completed.
2012	ResultFileSize string `json:"resultFileSize,omitempty"`
2013
2014	// ResultRows: ResultRows is available only after the query is
2015	// completed.
2016	ResultRows int64 `json:"resultRows,omitempty,string"`
2017
2018	// Self: Self link of the query. Example:
2019	// `/organizations/myorg/environments/myenv/queries/9cfc0d85-0f30-46d6-ae
2020	// 6f-318d0cb961bd` or following format if query is running at host
2021	// level:
2022	// `/organizations/myorg/hostQueries/9cfc0d85-0f30-46d6-ae6f-318d0cb961bd
2023	// `
2024	Self string `json:"self,omitempty"`
2025
2026	// State: Query state could be "enqueued", "running", "completed",
2027	// "failed".
2028	State string `json:"state,omitempty"`
2029
2030	// Updated: Last updated timestamp for the query.
2031	Updated string `json:"updated,omitempty"`
2032
2033	// ServerResponse contains the HTTP response code and headers from the
2034	// server.
2035	googleapi.ServerResponse `json:"-"`
2036
2037	// ForceSendFields is a list of field names (e.g. "Created") to
2038	// unconditionally include in API requests. By default, fields with
2039	// empty or default values are omitted from API requests. However, any
2040	// non-pointer, non-interface field appearing in ForceSendFields will be
2041	// sent to the server regardless of whether the field is empty or not.
2042	// This may be used to include empty fields in Patch requests.
2043	ForceSendFields []string `json:"-"`
2044
2045	// NullFields is a list of field names (e.g. "Created") to include in
2046	// API requests with the JSON null value. By default, fields with empty
2047	// values are omitted from API requests. However, any field with an
2048	// empty value appearing in NullFields will be sent to the server as
2049	// null. It is an error if a field in this list has a non-empty value.
2050	// This may be used to include null fields in Patch requests.
2051	NullFields []string `json:"-"`
2052}
2053
2054func (s *GoogleCloudApigeeV1AsyncQuery) MarshalJSON() ([]byte, error) {
2055	type NoMethod GoogleCloudApigeeV1AsyncQuery
2056	raw := NoMethod(*s)
2057	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2058}
2059
2060type GoogleCloudApigeeV1AsyncQueryResult struct {
2061	// Expires: Query result will be unaccessable after this time.
2062	Expires string `json:"expires,omitempty"`
2063
2064	// Self: Self link of the query results. Example:
2065	// `/organizations/myorg/environments/myenv/queries/9cfc0d85-0f30-46d6-ae
2066	// 6f-318d0cb961bd/result` or following format if query is running at
2067	// host level:
2068	// `/organizations/myorg/hostQueries/9cfc0d85-0f30-46d6-ae6f-318d0cb961bd
2069	// /result`
2070	Self string `json:"self,omitempty"`
2071
2072	// ForceSendFields is a list of field names (e.g. "Expires") to
2073	// unconditionally include in API requests. By default, fields with
2074	// empty or default values are omitted from API requests. However, any
2075	// non-pointer, non-interface field appearing in ForceSendFields will be
2076	// sent to the server regardless of whether the field is empty or not.
2077	// This may be used to include empty fields in Patch requests.
2078	ForceSendFields []string `json:"-"`
2079
2080	// NullFields is a list of field names (e.g. "Expires") to include in
2081	// API requests with the JSON null value. By default, fields with empty
2082	// values are omitted from API requests. However, any field with an
2083	// empty value appearing in NullFields will be sent to the server as
2084	// null. It is an error if a field in this list has a non-empty value.
2085	// This may be used to include null fields in Patch requests.
2086	NullFields []string `json:"-"`
2087}
2088
2089func (s *GoogleCloudApigeeV1AsyncQueryResult) MarshalJSON() ([]byte, error) {
2090	type NoMethod GoogleCloudApigeeV1AsyncQueryResult
2091	raw := NoMethod(*s)
2092	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2093}
2094
2095type GoogleCloudApigeeV1AsyncQueryResultView struct {
2096	// Code: Error code when there is a failure.
2097	Code int64 `json:"code,omitempty"`
2098
2099	// Error: Error message when there is a failure.
2100	Error string `json:"error,omitempty"`
2101
2102	// Metadata: Metadata contains information like metrics, dimenstions etc
2103	// of the AsyncQuery.
2104	Metadata *GoogleCloudApigeeV1QueryMetadata `json:"metadata,omitempty"`
2105
2106	// Rows: Rows of query result. Each row is a JSON object. Example:
2107	// {sum(message_count): 1, developer_app: "(not set)",…}
2108	Rows []interface{} `json:"rows,omitempty"`
2109
2110	// State: State of retrieving ResultView.
2111	State string `json:"state,omitempty"`
2112
2113	// ServerResponse contains the HTTP response code and headers from the
2114	// server.
2115	googleapi.ServerResponse `json:"-"`
2116
2117	// ForceSendFields is a list of field names (e.g. "Code") to
2118	// unconditionally include in API requests. By default, fields with
2119	// empty or default values are omitted from API requests. However, any
2120	// non-pointer, non-interface field appearing in ForceSendFields will be
2121	// sent to the server regardless of whether the field is empty or not.
2122	// This may be used to include empty fields in Patch requests.
2123	ForceSendFields []string `json:"-"`
2124
2125	// NullFields is a list of field names (e.g. "Code") to include in API
2126	// requests with the JSON null value. By default, fields with empty
2127	// values are omitted from API requests. However, any field with an
2128	// empty value appearing in NullFields will be sent to the server as
2129	// null. It is an error if a field in this list has a non-empty value.
2130	// This may be used to include null fields in Patch requests.
2131	NullFields []string `json:"-"`
2132}
2133
2134func (s *GoogleCloudApigeeV1AsyncQueryResultView) MarshalJSON() ([]byte, error) {
2135	type NoMethod GoogleCloudApigeeV1AsyncQueryResultView
2136	raw := NoMethod(*s)
2137	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2138}
2139
2140// GoogleCloudApigeeV1Attribute: Key-value pair to store extra metadata.
2141type GoogleCloudApigeeV1Attribute struct {
2142	// Name: API key of the attribute.
2143	Name string `json:"name,omitempty"`
2144
2145	// Value: Value of the attribute.
2146	Value string `json:"value,omitempty"`
2147
2148	// ServerResponse contains the HTTP response code and headers from the
2149	// server.
2150	googleapi.ServerResponse `json:"-"`
2151
2152	// ForceSendFields is a list of field names (e.g. "Name") to
2153	// unconditionally include in API requests. By default, fields with
2154	// empty or default values are omitted from API requests. However, any
2155	// non-pointer, non-interface field appearing in ForceSendFields will be
2156	// sent to the server regardless of whether the field is empty or not.
2157	// This may be used to include empty fields in Patch requests.
2158	ForceSendFields []string `json:"-"`
2159
2160	// NullFields is a list of field names (e.g. "Name") to include in API
2161	// requests with the JSON null value. By default, fields with empty
2162	// values are omitted from API requests. However, any field with an
2163	// empty value appearing in NullFields will be sent to the server as
2164	// null. It is an error if a field in this list has a non-empty value.
2165	// This may be used to include null fields in Patch requests.
2166	NullFields []string `json:"-"`
2167}
2168
2169func (s *GoogleCloudApigeeV1Attribute) MarshalJSON() ([]byte, error) {
2170	type NoMethod GoogleCloudApigeeV1Attribute
2171	raw := NoMethod(*s)
2172	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2173}
2174
2175type GoogleCloudApigeeV1Attributes struct {
2176	// Attribute: List of attributes.
2177	Attribute []*GoogleCloudApigeeV1Attribute `json:"attribute,omitempty"`
2178
2179	// ServerResponse contains the HTTP response code and headers from the
2180	// server.
2181	googleapi.ServerResponse `json:"-"`
2182
2183	// ForceSendFields is a list of field names (e.g. "Attribute") to
2184	// unconditionally include in API requests. By default, fields with
2185	// empty or default values are omitted from API requests. However, any
2186	// non-pointer, non-interface field appearing in ForceSendFields will be
2187	// sent to the server regardless of whether the field is empty or not.
2188	// This may be used to include empty fields in Patch requests.
2189	ForceSendFields []string `json:"-"`
2190
2191	// NullFields is a list of field names (e.g. "Attribute") to include in
2192	// API requests with the JSON null value. By default, fields with empty
2193	// values are omitted from API requests. However, any field with an
2194	// empty value appearing in NullFields will be sent to the server as
2195	// null. It is an error if a field in this list has a non-empty value.
2196	// This may be used to include null fields in Patch requests.
2197	NullFields []string `json:"-"`
2198}
2199
2200func (s *GoogleCloudApigeeV1Attributes) MarshalJSON() ([]byte, error) {
2201	type NoMethod GoogleCloudApigeeV1Attributes
2202	raw := NoMethod(*s)
2203	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2204}
2205
2206// GoogleCloudApigeeV1CanaryEvaluation: CanaryEvaluation represents the
2207// canary analysis between two versions of the runtime that is serving
2208// requests.
2209type GoogleCloudApigeeV1CanaryEvaluation struct {
2210	// Control: Required. The stable version that is serving requests.
2211	Control string `json:"control,omitempty"`
2212
2213	// CreateTime: Output only. Create time of the canary evaluation.
2214	CreateTime string `json:"createTime,omitempty"`
2215
2216	// EndTime: Required. End time for the evaluation's analysis.
2217	EndTime string `json:"endTime,omitempty"`
2218
2219	// MetricLabels: Required. Labels used to filter the metrics used for a
2220	// canary evaluation.
2221	MetricLabels *GoogleCloudApigeeV1CanaryEvaluationMetricLabels `json:"metricLabels,omitempty"`
2222
2223	// Name: Output only. Name of the canary evalution.
2224	Name string `json:"name,omitempty"`
2225
2226	// StartTime: Required. Start time for the canary evaluation's analysis.
2227	StartTime string `json:"startTime,omitempty"`
2228
2229	// State: Output only. The current state of the canary evaluation.
2230	//
2231	// Possible values:
2232	//   "STATE_UNSPECIFIED" - No state has been specified.
2233	//   "RUNNING" - The canary evaluation is still in progress.
2234	//   "SUCCEEDED" - The canary evaluation has finished.
2235	State string `json:"state,omitempty"`
2236
2237	// Treatment: Required. The newer version that is serving requests.
2238	Treatment string `json:"treatment,omitempty"`
2239
2240	// Verdict: Output only. The resulting verdict of the canary
2241	// evaluations: NONE, PASS, or FAIL.
2242	//
2243	// Possible values:
2244	//   "VERDICT_UNSPECIFIED" - Verdict is not available yet.
2245	//   "NONE" - No verdict reached.
2246	//   "FAIL" - Evaluation is not good.
2247	//   "PASS" - Evaluation is good.
2248	Verdict string `json:"verdict,omitempty"`
2249
2250	// ServerResponse contains the HTTP response code and headers from the
2251	// server.
2252	googleapi.ServerResponse `json:"-"`
2253
2254	// ForceSendFields is a list of field names (e.g. "Control") to
2255	// unconditionally include in API requests. By default, fields with
2256	// empty or default values are omitted from API requests. However, any
2257	// non-pointer, non-interface field appearing in ForceSendFields will be
2258	// sent to the server regardless of whether the field is empty or not.
2259	// This may be used to include empty fields in Patch requests.
2260	ForceSendFields []string `json:"-"`
2261
2262	// NullFields is a list of field names (e.g. "Control") to include in
2263	// API requests with the JSON null value. By default, fields with empty
2264	// values are omitted from API requests. However, any field with an
2265	// empty value appearing in NullFields will be sent to the server as
2266	// null. It is an error if a field in this list has a non-empty value.
2267	// This may be used to include null fields in Patch requests.
2268	NullFields []string `json:"-"`
2269}
2270
2271func (s *GoogleCloudApigeeV1CanaryEvaluation) MarshalJSON() ([]byte, error) {
2272	type NoMethod GoogleCloudApigeeV1CanaryEvaluation
2273	raw := NoMethod(*s)
2274	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2275}
2276
2277// GoogleCloudApigeeV1CanaryEvaluationMetricLabels: Labels that can be
2278// used to filter Apigee metrics.
2279type GoogleCloudApigeeV1CanaryEvaluationMetricLabels struct {
2280	// Env: The environment ID associated with the metrics.
2281	Env string `json:"env,omitempty"`
2282
2283	// InstanceId: Required. The instance ID associated with the metrics. In
2284	// Apigee Hybrid, the value is configured during installation.
2285	InstanceId string `json:"instance_id,omitempty"`
2286
2287	// Location: Required. The location associated with the metrics.
2288	Location string `json:"location,omitempty"`
2289
2290	// ForceSendFields is a list of field names (e.g. "Env") to
2291	// unconditionally include in API requests. By default, fields with
2292	// empty or default values are omitted from API requests. However, any
2293	// non-pointer, non-interface field appearing in ForceSendFields will be
2294	// sent to the server regardless of whether the field is empty or not.
2295	// This may be used to include empty fields in Patch requests.
2296	ForceSendFields []string `json:"-"`
2297
2298	// NullFields is a list of field names (e.g. "Env") to include in API
2299	// requests with the JSON null value. By default, fields with empty
2300	// values are omitted from API requests. However, any field with an
2301	// empty value appearing in NullFields will be sent to the server as
2302	// null. It is an error if a field in this list has a non-empty value.
2303	// This may be used to include null fields in Patch requests.
2304	NullFields []string `json:"-"`
2305}
2306
2307func (s *GoogleCloudApigeeV1CanaryEvaluationMetricLabels) MarshalJSON() ([]byte, error) {
2308	type NoMethod GoogleCloudApigeeV1CanaryEvaluationMetricLabels
2309	raw := NoMethod(*s)
2310	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2311}
2312
2313// GoogleCloudApigeeV1CertInfo: X.509 certificate as defined in RFC
2314// 5280.
2315type GoogleCloudApigeeV1CertInfo struct {
2316	// BasicConstraints: X.509 basic constraints extension.
2317	BasicConstraints string `json:"basicConstraints,omitempty"`
2318
2319	// ExpiryDate: X.509 `notAfter` validity period in milliseconds since
2320	// epoch.
2321	ExpiryDate int64 `json:"expiryDate,omitempty,string"`
2322
2323	// IsValid: Flag that specifies whether the certificate is valid. Flag
2324	// is set to `Yes` if the certificate is valid, `No` if expired, or `Not
2325	// yet` if not yet valid.
2326	IsValid string `json:"isValid,omitempty"`
2327
2328	// Issuer: X.509 issuer.
2329	Issuer string `json:"issuer,omitempty"`
2330
2331	// PublicKey: Public key component of the X.509 subject public key info.
2332	PublicKey string `json:"publicKey,omitempty"`
2333
2334	// SerialNumber: X.509 serial number.
2335	SerialNumber string `json:"serialNumber,omitempty"`
2336
2337	// SigAlgName: X.509 signatureAlgorithm.
2338	SigAlgName string `json:"sigAlgName,omitempty"`
2339
2340	// Subject: X.509 subject.
2341	Subject string `json:"subject,omitempty"`
2342
2343	// SubjectAlternativeNames: X.509 subject alternative names (SANs)
2344	// extension.
2345	SubjectAlternativeNames []string `json:"subjectAlternativeNames,omitempty"`
2346
2347	// ValidFrom: X.509 `notBefore` validity period in milliseconds since
2348	// epoch.
2349	ValidFrom int64 `json:"validFrom,omitempty,string"`
2350
2351	// Version: X.509 version.
2352	Version int64 `json:"version,omitempty"`
2353
2354	// ForceSendFields is a list of field names (e.g. "BasicConstraints") to
2355	// unconditionally include in API requests. By default, fields with
2356	// empty or default values are omitted from API requests. However, any
2357	// non-pointer, non-interface field appearing in ForceSendFields will be
2358	// sent to the server regardless of whether the field is empty or not.
2359	// This may be used to include empty fields in Patch requests.
2360	ForceSendFields []string `json:"-"`
2361
2362	// NullFields is a list of field names (e.g. "BasicConstraints") to
2363	// include in API requests with the JSON null value. By default, fields
2364	// with empty values are omitted from API requests. However, any field
2365	// with an empty value appearing in NullFields will be sent to the
2366	// server as null. It is an error if a field in this list has a
2367	// non-empty value. This may be used to include null fields in Patch
2368	// requests.
2369	NullFields []string `json:"-"`
2370}
2371
2372func (s *GoogleCloudApigeeV1CertInfo) MarshalJSON() ([]byte, error) {
2373	type NoMethod GoogleCloudApigeeV1CertInfo
2374	raw := NoMethod(*s)
2375	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2376}
2377
2378type GoogleCloudApigeeV1Certificate struct {
2379	// CertInfo: Chain of certificates under this name.
2380	CertInfo []*GoogleCloudApigeeV1CertInfo `json:"certInfo,omitempty"`
2381
2382	// ForceSendFields is a list of field names (e.g. "CertInfo") to
2383	// unconditionally include in API requests. By default, fields with
2384	// empty or default values are omitted from API requests. However, any
2385	// non-pointer, non-interface field appearing in ForceSendFields will be
2386	// sent to the server regardless of whether the field is empty or not.
2387	// This may be used to include empty fields in Patch requests.
2388	ForceSendFields []string `json:"-"`
2389
2390	// NullFields is a list of field names (e.g. "CertInfo") to include in
2391	// API requests with the JSON null value. By default, fields with empty
2392	// values are omitted from API requests. However, any field with an
2393	// empty value appearing in NullFields will be sent to the server as
2394	// null. It is an error if a field in this list has a non-empty value.
2395	// This may be used to include null fields in Patch requests.
2396	NullFields []string `json:"-"`
2397}
2398
2399func (s *GoogleCloudApigeeV1Certificate) MarshalJSON() ([]byte, error) {
2400	type NoMethod GoogleCloudApigeeV1Certificate
2401	raw := NoMethod(*s)
2402	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2403}
2404
2405type GoogleCloudApigeeV1CommonNameConfig struct {
2406	MatchWildCards bool `json:"matchWildCards,omitempty"`
2407
2408	Name string `json:"name,omitempty"`
2409
2410	// ForceSendFields is a list of field names (e.g. "MatchWildCards") to
2411	// unconditionally include in API requests. By default, fields with
2412	// empty or default values are omitted from API requests. However, any
2413	// non-pointer, non-interface field appearing in ForceSendFields will be
2414	// sent to the server regardless of whether the field is empty or not.
2415	// This may be used to include empty fields in Patch requests.
2416	ForceSendFields []string `json:"-"`
2417
2418	// NullFields is a list of field names (e.g. "MatchWildCards") to
2419	// include in API requests with the JSON null value. By default, fields
2420	// with empty values are omitted from API requests. However, any field
2421	// with an empty value appearing in NullFields will be sent to the
2422	// server as null. It is an error if a field in this list has a
2423	// non-empty value. This may be used to include null fields in Patch
2424	// requests.
2425	NullFields []string `json:"-"`
2426}
2427
2428func (s *GoogleCloudApigeeV1CommonNameConfig) MarshalJSON() ([]byte, error) {
2429	type NoMethod GoogleCloudApigeeV1CommonNameConfig
2430	raw := NoMethod(*s)
2431	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2432}
2433
2434// GoogleCloudApigeeV1ConfigVersion: Version of the API proxy
2435// configuration schema. Currently, only 4.0 is supported.
2436type GoogleCloudApigeeV1ConfigVersion struct {
2437	// MajorVersion: Major version of the API proxy configuration schema.
2438	MajorVersion int64 `json:"majorVersion,omitempty"`
2439
2440	// MinorVersion: Minor version of the API proxy configuration schema.
2441	MinorVersion int64 `json:"minorVersion,omitempty"`
2442
2443	// ForceSendFields is a list of field names (e.g. "MajorVersion") to
2444	// unconditionally include in API requests. By default, fields with
2445	// empty or default values are omitted from API requests. However, any
2446	// non-pointer, non-interface field appearing in ForceSendFields will be
2447	// sent to the server regardless of whether the field is empty or not.
2448	// This may be used to include empty fields in Patch requests.
2449	ForceSendFields []string `json:"-"`
2450
2451	// NullFields is a list of field names (e.g. "MajorVersion") to include
2452	// in API requests with the JSON null value. By default, fields with
2453	// empty values are omitted from API requests. However, any field with
2454	// an empty value appearing in NullFields will be sent to the server as
2455	// null. It is an error if a field in this list has a non-empty value.
2456	// This may be used to include null fields in Patch requests.
2457	NullFields []string `json:"-"`
2458}
2459
2460func (s *GoogleCloudApigeeV1ConfigVersion) MarshalJSON() ([]byte, error) {
2461	type NoMethod GoogleCloudApigeeV1ConfigVersion
2462	raw := NoMethod(*s)
2463	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2464}
2465
2466type GoogleCloudApigeeV1Credential struct {
2467	// ApiProducts: List of API products this credential can be used for.
2468	ApiProducts []*GoogleCloudApigeeV1ApiProductRef `json:"apiProducts,omitempty"`
2469
2470	// Attributes: List of attributes associated with this credential.
2471	Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
2472
2473	// ConsumerKey: Consumer key.
2474	ConsumerKey string `json:"consumerKey,omitempty"`
2475
2476	// ConsumerSecret: Secret key.
2477	ConsumerSecret string `json:"consumerSecret,omitempty"`
2478
2479	// ExpiresAt: Time the credential will expire in milliseconds since
2480	// epoch.
2481	ExpiresAt int64 `json:"expiresAt,omitempty,string"`
2482
2483	// IssuedAt: Time the credential was issued in milliseconds since epoch.
2484	IssuedAt int64 `json:"issuedAt,omitempty,string"`
2485
2486	// Scopes: List of scopes to apply to the app. Specified scopes must
2487	// already exist on the API product that you associate with the app.
2488	Scopes []string `json:"scopes,omitempty"`
2489
2490	// Status: Status of the credential.
2491	Status string `json:"status,omitempty"`
2492
2493	// ForceSendFields is a list of field names (e.g. "ApiProducts") to
2494	// unconditionally include in API requests. By default, fields with
2495	// empty or default values are omitted from API requests. However, any
2496	// non-pointer, non-interface field appearing in ForceSendFields will be
2497	// sent to the server regardless of whether the field is empty or not.
2498	// This may be used to include empty fields in Patch requests.
2499	ForceSendFields []string `json:"-"`
2500
2501	// NullFields is a list of field names (e.g. "ApiProducts") to include
2502	// in API requests with the JSON null value. By default, fields with
2503	// empty values are omitted from API requests. However, any field with
2504	// an empty value appearing in NullFields will be sent to the server as
2505	// null. It is an error if a field in this list has a non-empty value.
2506	// This may be used to include null fields in Patch requests.
2507	NullFields []string `json:"-"`
2508}
2509
2510func (s *GoogleCloudApigeeV1Credential) MarshalJSON() ([]byte, error) {
2511	type NoMethod GoogleCloudApigeeV1Credential
2512	raw := NoMethod(*s)
2513	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2514}
2515
2516type GoogleCloudApigeeV1CustomReport struct {
2517	// ChartType: This field contains the chart type for the report
2518	ChartType string `json:"chartType,omitempty"`
2519
2520	// Comments: Legacy field: not used. This field contains a list of
2521	// comments associated with custom report
2522	Comments []string `json:"comments,omitempty"`
2523
2524	// CreatedAt: Output only. Unix time when the app was created json key:
2525	// createdAt
2526	CreatedAt int64 `json:"createdAt,omitempty,string"`
2527
2528	// Dimensions: This contains the list of dimensions for the report
2529	Dimensions []string `json:"dimensions,omitempty"`
2530
2531	// DisplayName: This is the display name for the report
2532	DisplayName string `json:"displayName,omitempty"`
2533
2534	// Environment: Output only. Environment name
2535	Environment string `json:"environment,omitempty"`
2536
2537	// Filter: This field contains the filter expression
2538	Filter string `json:"filter,omitempty"`
2539
2540	// FromTime: Legacy field: not used. Contains the from time for the
2541	// report
2542	FromTime string `json:"fromTime,omitempty"`
2543
2544	// LastModifiedAt: Output only. Modified time of this entity as
2545	// milliseconds since epoch. json key: lastModifiedAt
2546	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
2547
2548	// LastViewedAt: Output only. Last viewed time of this entity as
2549	// milliseconds since epoch
2550	LastViewedAt int64 `json:"lastViewedAt,omitempty,string"`
2551
2552	// Limit: Legacy field: not used This field contains the limit for the
2553	// result retrieved
2554	Limit string `json:"limit,omitempty"`
2555
2556	// Metrics: Required. This contains the list of metrics
2557	Metrics []*GoogleCloudApigeeV1CustomReportMetric `json:"metrics,omitempty"`
2558
2559	// Name: Required. Unique identifier for the report T his is a legacy
2560	// field used to encode custom report unique id
2561	Name string `json:"name,omitempty"`
2562
2563	// Offset: Legacy field: not used. This field contains the offset for
2564	// the data
2565	Offset string `json:"offset,omitempty"`
2566
2567	// Organization: Output only. Organization name
2568	Organization string `json:"organization,omitempty"`
2569
2570	// Properties: This field contains report properties such as ui metadata
2571	// etc.
2572	Properties []*GoogleCloudApigeeV1ReportProperty `json:"properties,omitempty"`
2573
2574	// SortByCols: Legacy field: not used much. Contains the list of sort by
2575	// columns
2576	SortByCols []string `json:"sortByCols,omitempty"`
2577
2578	// SortOrder: Legacy field: not used much. Contains the sort order for
2579	// the sort columns
2580	SortOrder string `json:"sortOrder,omitempty"`
2581
2582	// Tags: Legacy field: not used. This field contains a list of tags
2583	// associated with custom report
2584	Tags []string `json:"tags,omitempty"`
2585
2586	// TimeUnit: This field contains the time unit of aggregation for the
2587	// report
2588	TimeUnit string `json:"timeUnit,omitempty"`
2589
2590	// ToTime: Legacy field: not used. Contains the end time for the report
2591	ToTime string `json:"toTime,omitempty"`
2592
2593	// Topk: Legacy field: not used. This field contains the top k parameter
2594	// value for restricting the result
2595	Topk string `json:"topk,omitempty"`
2596
2597	// ServerResponse contains the HTTP response code and headers from the
2598	// server.
2599	googleapi.ServerResponse `json:"-"`
2600
2601	// ForceSendFields is a list of field names (e.g. "ChartType") to
2602	// unconditionally include in API requests. By default, fields with
2603	// empty or default values are omitted from API requests. However, any
2604	// non-pointer, non-interface field appearing in ForceSendFields will be
2605	// sent to the server regardless of whether the field is empty or not.
2606	// This may be used to include empty fields in Patch requests.
2607	ForceSendFields []string `json:"-"`
2608
2609	// NullFields is a list of field names (e.g. "ChartType") to include in
2610	// API requests with the JSON null value. By default, fields with empty
2611	// values are omitted from API requests. However, any field with an
2612	// empty value appearing in NullFields will be sent to the server as
2613	// null. It is an error if a field in this list has a non-empty value.
2614	// This may be used to include null fields in Patch requests.
2615	NullFields []string `json:"-"`
2616}
2617
2618func (s *GoogleCloudApigeeV1CustomReport) MarshalJSON() ([]byte, error) {
2619	type NoMethod GoogleCloudApigeeV1CustomReport
2620	raw := NoMethod(*s)
2621	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2622}
2623
2624// GoogleCloudApigeeV1CustomReportMetric: This encapsulates a metric
2625// property of the form sum(message_count) where name is message_count
2626// and function is sum
2627type GoogleCloudApigeeV1CustomReportMetric struct {
2628	// Function: aggregate function
2629	Function string `json:"function,omitempty"`
2630
2631	// Name: name of the metric
2632	Name string `json:"name,omitempty"`
2633
2634	// ForceSendFields is a list of field names (e.g. "Function") to
2635	// unconditionally include in API requests. By default, fields with
2636	// empty or default values are omitted from API requests. However, any
2637	// non-pointer, non-interface field appearing in ForceSendFields will be
2638	// sent to the server regardless of whether the field is empty or not.
2639	// This may be used to include empty fields in Patch requests.
2640	ForceSendFields []string `json:"-"`
2641
2642	// NullFields is a list of field names (e.g. "Function") to include in
2643	// API requests with the JSON null value. By default, fields with empty
2644	// values are omitted from API requests. However, any field with an
2645	// empty value appearing in NullFields will be sent to the server as
2646	// null. It is an error if a field in this list has a non-empty value.
2647	// This may be used to include null fields in Patch requests.
2648	NullFields []string `json:"-"`
2649}
2650
2651func (s *GoogleCloudApigeeV1CustomReportMetric) MarshalJSON() ([]byte, error) {
2652	type NoMethod GoogleCloudApigeeV1CustomReportMetric
2653	raw := NoMethod(*s)
2654	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2655}
2656
2657// GoogleCloudApigeeV1DataCollector: Data collector configuration.
2658type GoogleCloudApigeeV1DataCollector struct {
2659	// CreatedAt: Output only. The time at which the data collector was
2660	// created in milliseconds since the epoch.
2661	CreatedAt int64 `json:"createdAt,omitempty,string"`
2662
2663	// Description: A description of the data collector.
2664	Description string `json:"description,omitempty"`
2665
2666	// LastModifiedAt: Output only. The time at which the Data Collector was
2667	// last updated in milliseconds since the epoch.
2668	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
2669
2670	// Name: ID of the data collector. Must begin with `dc_`.
2671	Name string `json:"name,omitempty"`
2672
2673	// Type: Immutable. The type of data this data collector will collect.
2674	//
2675	// Possible values:
2676	//   "TYPE_UNSPECIFIED" - For future compatibility.
2677	//   "INTEGER" - For integer values.
2678	//   "FLOAT" - For float values.
2679	//   "STRING" - For string values.
2680	//   "BOOLEAN" - For boolean values.
2681	//   "DATETIME" - For datetime values.
2682	Type string `json:"type,omitempty"`
2683
2684	// ServerResponse contains the HTTP response code and headers from the
2685	// server.
2686	googleapi.ServerResponse `json:"-"`
2687
2688	// ForceSendFields is a list of field names (e.g. "CreatedAt") to
2689	// unconditionally include in API requests. By default, fields with
2690	// empty or default values are omitted from API requests. However, any
2691	// non-pointer, non-interface field appearing in ForceSendFields will be
2692	// sent to the server regardless of whether the field is empty or not.
2693	// This may be used to include empty fields in Patch requests.
2694	ForceSendFields []string `json:"-"`
2695
2696	// NullFields is a list of field names (e.g. "CreatedAt") to include in
2697	// API requests with the JSON null value. By default, fields with empty
2698	// values are omitted from API requests. However, any field with an
2699	// empty value appearing in NullFields will be sent to the server as
2700	// null. It is an error if a field in this list has a non-empty value.
2701	// This may be used to include null fields in Patch requests.
2702	NullFields []string `json:"-"`
2703}
2704
2705func (s *GoogleCloudApigeeV1DataCollector) MarshalJSON() ([]byte, error) {
2706	type NoMethod GoogleCloudApigeeV1DataCollector
2707	raw := NoMethod(*s)
2708	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2709}
2710
2711// GoogleCloudApigeeV1DataCollectorConfig: Data collector and its
2712// configuration.
2713type GoogleCloudApigeeV1DataCollectorConfig struct {
2714	// Name: Name of the data collector in the following format:
2715	// `organizations/{org}/datacollectors/{datacollector}`
2716	Name string `json:"name,omitempty"`
2717
2718	// Type: Data type accepted by the data collector.
2719	//
2720	// Possible values:
2721	//   "TYPE_UNSPECIFIED" - For future compatibility.
2722	//   "INTEGER" - For integer values.
2723	//   "FLOAT" - For float values.
2724	//   "STRING" - For string values.
2725	//   "BOOLEAN" - For boolean values.
2726	//   "DATETIME" - For datetime values.
2727	Type string `json:"type,omitempty"`
2728
2729	// ForceSendFields is a list of field names (e.g. "Name") to
2730	// unconditionally include in API requests. By default, fields with
2731	// empty or default values are omitted from API requests. However, any
2732	// non-pointer, non-interface field appearing in ForceSendFields will be
2733	// sent to the server regardless of whether the field is empty or not.
2734	// This may be used to include empty fields in Patch requests.
2735	ForceSendFields []string `json:"-"`
2736
2737	// NullFields is a list of field names (e.g. "Name") 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 *GoogleCloudApigeeV1DataCollectorConfig) MarshalJSON() ([]byte, error) {
2747	type NoMethod GoogleCloudApigeeV1DataCollectorConfig
2748	raw := NoMethod(*s)
2749	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2750}
2751
2752// GoogleCloudApigeeV1Datastore: The data store defines the connection
2753// to export data repository (Cloud Storage, BigQuery), including the
2754// credentials used to access the data repository.
2755type GoogleCloudApigeeV1Datastore struct {
2756	// CreateTime: Output only. Datastore create time, in milliseconds since
2757	// the epoch of 1970-01-01T00:00:00Z
2758	CreateTime int64 `json:"createTime,omitempty,string"`
2759
2760	// DatastoreConfig: Datastore Configurations.
2761	DatastoreConfig *GoogleCloudApigeeV1DatastoreConfig `json:"datastoreConfig,omitempty"`
2762
2763	// DisplayName: Required. Display name in UI
2764	DisplayName string `json:"displayName,omitempty"`
2765
2766	// LastUpdateTime: Output only. Datastore last update time, in
2767	// milliseconds since the epoch of 1970-01-01T00:00:00Z
2768	LastUpdateTime int64 `json:"lastUpdateTime,omitempty,string"`
2769
2770	// Org: Output only. Organization that the datastore belongs to
2771	Org string `json:"org,omitempty"`
2772
2773	// Self: Output only. Resource link of Datastore. Example:
2774	// `/organizations/{org}/analytics/datastores/{uuid}`
2775	Self string `json:"self,omitempty"`
2776
2777	// TargetType: Destination storage type. Supported types `gcs` or
2778	// `bigquery`.
2779	TargetType string `json:"targetType,omitempty"`
2780
2781	// ServerResponse contains the HTTP response code and headers from the
2782	// server.
2783	googleapi.ServerResponse `json:"-"`
2784
2785	// ForceSendFields is a list of field names (e.g. "CreateTime") to
2786	// unconditionally include in API requests. By default, fields with
2787	// empty or default values are omitted from API requests. However, any
2788	// non-pointer, non-interface field appearing in ForceSendFields will be
2789	// sent to the server regardless of whether the field is empty or not.
2790	// This may be used to include empty fields in Patch requests.
2791	ForceSendFields []string `json:"-"`
2792
2793	// NullFields is a list of field names (e.g. "CreateTime") to include in
2794	// API requests with the JSON null value. By default, fields with empty
2795	// values are omitted from API requests. However, any field with an
2796	// empty value appearing in NullFields will be sent to the server as
2797	// null. It is an error if a field in this list has a non-empty value.
2798	// This may be used to include null fields in Patch requests.
2799	NullFields []string `json:"-"`
2800}
2801
2802func (s *GoogleCloudApigeeV1Datastore) MarshalJSON() ([]byte, error) {
2803	type NoMethod GoogleCloudApigeeV1Datastore
2804	raw := NoMethod(*s)
2805	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2806}
2807
2808// GoogleCloudApigeeV1DatastoreConfig: Configuration detail for
2809// datastore
2810type GoogleCloudApigeeV1DatastoreConfig struct {
2811	// BucketName: Name of the Cloud Storage bucket. Required for `gcs`
2812	// target_type.
2813	BucketName string `json:"bucketName,omitempty"`
2814
2815	// DatasetName: BigQuery dataset name Required for `bigquery`
2816	// target_type.
2817	DatasetName string `json:"datasetName,omitempty"`
2818
2819	// Path: Path of Cloud Storage bucket Required for `gcs` target_type.
2820	Path string `json:"path,omitempty"`
2821
2822	// ProjectId: Required. GCP project in which the datastore exists
2823	ProjectId string `json:"projectId,omitempty"`
2824
2825	// TablePrefix: Prefix of BigQuery table Required for `bigquery`
2826	// target_type.
2827	TablePrefix string `json:"tablePrefix,omitempty"`
2828
2829	// ForceSendFields is a list of field names (e.g. "BucketName") to
2830	// unconditionally include in API requests. By default, fields with
2831	// empty or default values are omitted from API requests. However, any
2832	// non-pointer, non-interface field appearing in ForceSendFields will be
2833	// sent to the server regardless of whether the field is empty or not.
2834	// This may be used to include empty fields in Patch requests.
2835	ForceSendFields []string `json:"-"`
2836
2837	// NullFields is a list of field names (e.g. "BucketName") to include in
2838	// API requests with the JSON null value. By default, fields with empty
2839	// values are omitted from API requests. However, any field with an
2840	// empty value appearing in NullFields will be sent to the server as
2841	// null. It is an error if a field in this list has a non-empty value.
2842	// This may be used to include null fields in Patch requests.
2843	NullFields []string `json:"-"`
2844}
2845
2846func (s *GoogleCloudApigeeV1DatastoreConfig) MarshalJSON() ([]byte, error) {
2847	type NoMethod GoogleCloudApigeeV1DatastoreConfig
2848	raw := NoMethod(*s)
2849	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2850}
2851
2852// GoogleCloudApigeeV1DateRange: Date range of the data to export.
2853type GoogleCloudApigeeV1DateRange struct {
2854	// End: Required. End date (exclusive) of the data to export in the
2855	// format `yyyy-mm-dd`. The date range ends at 00:00:00 UTC on the end
2856	// date- which will not be in the output.
2857	End string `json:"end,omitempty"`
2858
2859	// Start: Required. Start date of the data to export in the format
2860	// `yyyy-mm-dd`. The date range begins at 00:00:00 UTC on the start
2861	// date.
2862	Start string `json:"start,omitempty"`
2863
2864	// ForceSendFields is a list of field names (e.g. "End") to
2865	// unconditionally include in API requests. By default, fields with
2866	// empty or default values are omitted from API requests. However, any
2867	// non-pointer, non-interface field appearing in ForceSendFields will be
2868	// sent to the server regardless of whether the field is empty or not.
2869	// This may be used to include empty fields in Patch requests.
2870	ForceSendFields []string `json:"-"`
2871
2872	// NullFields is a list of field names (e.g. "End") to include in API
2873	// requests with the JSON null value. By default, fields with empty
2874	// values are omitted from API requests. However, any field with an
2875	// empty value appearing in NullFields will be sent to the server as
2876	// null. It is an error if a field in this list has a non-empty value.
2877	// This may be used to include null fields in Patch requests.
2878	NullFields []string `json:"-"`
2879}
2880
2881func (s *GoogleCloudApigeeV1DateRange) MarshalJSON() ([]byte, error) {
2882	type NoMethod GoogleCloudApigeeV1DateRange
2883	raw := NoMethod(*s)
2884	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2885}
2886
2887type GoogleCloudApigeeV1DebugMask struct {
2888	// FaultJSONPaths: List of JSON paths that specify the JSON elements to
2889	// be filtered from JSON payloads in error flows.
2890	FaultJSONPaths []string `json:"faultJSONPaths,omitempty"`
2891
2892	// FaultXPaths: List of XPaths that specify the XML elements to be
2893	// filtered from XML payloads in error flows.
2894	FaultXPaths []string `json:"faultXPaths,omitempty"`
2895
2896	// Name: Name of the debug mask.
2897	Name string `json:"name,omitempty"`
2898
2899	// Namespaces: Map of namespaces to URIs.
2900	Namespaces map[string]string `json:"namespaces,omitempty"`
2901
2902	// RequestJSONPaths: List of JSON paths that specify the JSON elements
2903	// to be filtered from JSON request message payloads.
2904	RequestJSONPaths []string `json:"requestJSONPaths,omitempty"`
2905
2906	// RequestXPaths: List of XPaths that specify the XML elements to be
2907	// filtered from XML request message payloads.
2908	RequestXPaths []string `json:"requestXPaths,omitempty"`
2909
2910	// ResponseJSONPaths: List of JSON paths that specify the JSON elements
2911	// to be filtered from JSON response message payloads.
2912	ResponseJSONPaths []string `json:"responseJSONPaths,omitempty"`
2913
2914	// ResponseXPaths: List of XPaths that specify the XML elements to be
2915	// filtered from XML response message payloads.
2916	ResponseXPaths []string `json:"responseXPaths,omitempty"`
2917
2918	// Variables: List of variables that should be masked from the debug
2919	// output.
2920	Variables []string `json:"variables,omitempty"`
2921
2922	// ServerResponse contains the HTTP response code and headers from the
2923	// server.
2924	googleapi.ServerResponse `json:"-"`
2925
2926	// ForceSendFields is a list of field names (e.g. "FaultJSONPaths") to
2927	// unconditionally include in API requests. By default, fields with
2928	// empty or default values are omitted from API requests. However, any
2929	// non-pointer, non-interface field appearing in ForceSendFields will be
2930	// sent to the server regardless of whether the field is empty or not.
2931	// This may be used to include empty fields in Patch requests.
2932	ForceSendFields []string `json:"-"`
2933
2934	// NullFields is a list of field names (e.g. "FaultJSONPaths") to
2935	// include in API requests with the JSON null value. By default, fields
2936	// with empty values are omitted from API requests. However, any field
2937	// with an empty value appearing in NullFields will be sent to the
2938	// server as null. It is an error if a field in this list has a
2939	// non-empty value. This may be used to include null fields in Patch
2940	// requests.
2941	NullFields []string `json:"-"`
2942}
2943
2944func (s *GoogleCloudApigeeV1DebugMask) MarshalJSON() ([]byte, error) {
2945	type NoMethod GoogleCloudApigeeV1DebugMask
2946	raw := NoMethod(*s)
2947	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2948}
2949
2950type GoogleCloudApigeeV1DebugSession struct {
2951	// Count: Optional. The number of request to be traced. Min = 1, Max =
2952	// 15, Default = 10.
2953	Count int64 `json:"count,omitempty"`
2954
2955	// Filter: Optional. A conditional statement which is evaluated against
2956	// the request message to determine if it should be traced. Syntax
2957	// matches that of on API Proxy bundle flow Condition.
2958	Filter string `json:"filter,omitempty"`
2959
2960	// Name: A unique ID for this DebugSession.
2961	Name string `json:"name,omitempty"`
2962
2963	// Timeout: Optional. The time in seconds after which this DebugSession
2964	// should end. This value will override the value in query param, if
2965	// both are provided.
2966	Timeout int64 `json:"timeout,omitempty,string"`
2967
2968	// Tracesize: Optional. The maximum number of bytes captured from the
2969	// response payload. Min = 0, Max = 5120, Default = 5120.
2970	Tracesize int64 `json:"tracesize,omitempty"`
2971
2972	// Validity: Optional. The length of time, in seconds, that this debug
2973	// session is valid, starting from when it's received in the control
2974	// plane. Min = 1, Max = 15, Default = 10.
2975	Validity int64 `json:"validity,omitempty"`
2976
2977	// ServerResponse contains the HTTP response code and headers from the
2978	// server.
2979	googleapi.ServerResponse `json:"-"`
2980
2981	// ForceSendFields is a list of field names (e.g. "Count") to
2982	// unconditionally include in API requests. By default, fields with
2983	// empty or default values are omitted from API requests. However, any
2984	// non-pointer, non-interface field appearing in ForceSendFields will be
2985	// sent to the server regardless of whether the field is empty or not.
2986	// This may be used to include empty fields in Patch requests.
2987	ForceSendFields []string `json:"-"`
2988
2989	// NullFields is a list of field names (e.g. "Count") to include in API
2990	// requests with the JSON null value. By default, fields with empty
2991	// values are omitted from API requests. However, any field with an
2992	// empty value appearing in NullFields will be sent to the server as
2993	// null. It is an error if a field in this list has a non-empty value.
2994	// This may be used to include null fields in Patch requests.
2995	NullFields []string `json:"-"`
2996}
2997
2998func (s *GoogleCloudApigeeV1DebugSession) MarshalJSON() ([]byte, error) {
2999	type NoMethod GoogleCloudApigeeV1DebugSession
3000	raw := NoMethod(*s)
3001	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3002}
3003
3004// GoogleCloudApigeeV1DebugSessionTransaction: A transaction contains
3005// all of the debug information of the entire message flow of an API
3006// call processed by the runtime plane. The information is collected and
3007// recorded at critical points of the message flow in the runtime
3008// apiproxy.
3009type GoogleCloudApigeeV1DebugSessionTransaction struct {
3010	// Completed: Flag indicating whether a transaction is completed or not
3011	Completed bool `json:"completed,omitempty"`
3012
3013	// Point: List of debug data collected by runtime plane at various
3014	// defined points in the flow.
3015	Point []*GoogleCloudApigeeV1Point `json:"point,omitempty"`
3016
3017	// ServerResponse contains the HTTP response code and headers from the
3018	// server.
3019	googleapi.ServerResponse `json:"-"`
3020
3021	// ForceSendFields is a list of field names (e.g. "Completed") to
3022	// unconditionally include in API requests. By default, fields with
3023	// empty or default values are omitted from API requests. However, any
3024	// non-pointer, non-interface field appearing in ForceSendFields will be
3025	// sent to the server regardless of whether the field is empty or not.
3026	// This may be used to include empty fields in Patch requests.
3027	ForceSendFields []string `json:"-"`
3028
3029	// NullFields is a list of field names (e.g. "Completed") to include in
3030	// API requests with the JSON null value. By default, fields with empty
3031	// values are omitted from API requests. However, any field with an
3032	// empty value appearing in NullFields will be sent to the server as
3033	// null. It is an error if a field in this list has a non-empty value.
3034	// This may be used to include null fields in Patch requests.
3035	NullFields []string `json:"-"`
3036}
3037
3038func (s *GoogleCloudApigeeV1DebugSessionTransaction) MarshalJSON() ([]byte, error) {
3039	type NoMethod GoogleCloudApigeeV1DebugSessionTransaction
3040	raw := NoMethod(*s)
3041	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3042}
3043
3044type GoogleCloudApigeeV1DeleteCustomReportResponse struct {
3045	// Message: The response contains only a message field.
3046	Message string `json:"message,omitempty"`
3047
3048	// ServerResponse contains the HTTP response code and headers from the
3049	// server.
3050	googleapi.ServerResponse `json:"-"`
3051
3052	// ForceSendFields is a list of field names (e.g. "Message") to
3053	// unconditionally include in API requests. By default, fields with
3054	// empty or default values are omitted from API requests. However, any
3055	// non-pointer, non-interface field appearing in ForceSendFields will be
3056	// sent to the server regardless of whether the field is empty or not.
3057	// This may be used to include empty fields in Patch requests.
3058	ForceSendFields []string `json:"-"`
3059
3060	// NullFields is a list of field names (e.g. "Message") to include in
3061	// API requests with the JSON null value. By default, fields with empty
3062	// values are omitted from API requests. However, any field with an
3063	// empty value appearing in NullFields will be sent to the server as
3064	// null. It is an error if a field in this list has a non-empty value.
3065	// This may be used to include null fields in Patch requests.
3066	NullFields []string `json:"-"`
3067}
3068
3069func (s *GoogleCloudApigeeV1DeleteCustomReportResponse) MarshalJSON() ([]byte, error) {
3070	type NoMethod GoogleCloudApigeeV1DeleteCustomReportResponse
3071	raw := NoMethod(*s)
3072	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3073}
3074
3075type GoogleCloudApigeeV1Deployment struct {
3076	// ApiProxy: API proxy.
3077	ApiProxy string `json:"apiProxy,omitempty"`
3078
3079	// DeployStartTime: Time the API proxy was marked `deployed` in the
3080	// control plane in millisconds since epoch.
3081	DeployStartTime int64 `json:"deployStartTime,omitempty,string"`
3082
3083	// Environment: Environment.
3084	Environment string `json:"environment,omitempty"`
3085
3086	// Errors: Errors reported for this deployment. Populated only when
3087	// state == ERROR. This field is not populated in List APIs.
3088	Errors []*GoogleRpcStatus `json:"errors,omitempty"`
3089
3090	// Instances: Status reported by each runtime instance. This field is
3091	// not populated in List APIs.
3092	Instances []*GoogleCloudApigeeV1InstanceDeploymentStatus `json:"instances,omitempty"`
3093
3094	// Pods: Status reported by runtime pods. This field is not populated
3095	// for List APIs. **Note**: **This field is deprecated**. Runtime
3096	// versions 1.3 and above report instance level status rather than pod
3097	// status.
3098	Pods []*GoogleCloudApigeeV1PodStatus `json:"pods,omitempty"`
3099
3100	// Revision: API proxy revision.
3101	Revision string `json:"revision,omitempty"`
3102
3103	// RouteConflicts: Conflicts in the desired state routing configuration.
3104	// The presence of conflicts does not cause the state to be `ERROR`, but
3105	// it will mean that some of the deployment's base paths are not routed
3106	// to its environment. If the conflicts change, the state will
3107	// transition to `PROGRESSING` until the latest configuration is rolled
3108	// out to all instances. This field is not populated in List APIs.
3109	RouteConflicts []*GoogleCloudApigeeV1DeploymentChangeReportRoutingConflict `json:"routeConflicts,omitempty"`
3110
3111	// ServiceAccount: The full resource name of Cloud IAM Service Account
3112	// that this deployment is using, eg,
3113	// `projects/-/serviceAccounts/{email}`.
3114	ServiceAccount string `json:"serviceAccount,omitempty"`
3115
3116	// State: Current state of the deployment. This field is not populated
3117	// in List APIs.
3118	//
3119	// Possible values:
3120	//   "RUNTIME_STATE_UNSPECIFIED" - This value should never be returned.
3121	//   "READY" - Runtime has loaded the deployment.
3122	//   "PROGRESSING" - Deployment is not fully ready in the runtime.
3123	//   "ERROR" - Encountered an error with the deployment that requires
3124	// intervention.
3125	State string `json:"state,omitempty"`
3126
3127	// ServerResponse contains the HTTP response code and headers from the
3128	// server.
3129	googleapi.ServerResponse `json:"-"`
3130
3131	// ForceSendFields is a list of field names (e.g. "ApiProxy") to
3132	// unconditionally include in API requests. By default, fields with
3133	// empty or default values are omitted from API requests. However, any
3134	// non-pointer, non-interface field appearing in ForceSendFields will be
3135	// sent to the server regardless of whether the field is empty or not.
3136	// This may be used to include empty fields in Patch requests.
3137	ForceSendFields []string `json:"-"`
3138
3139	// NullFields is a list of field names (e.g. "ApiProxy") to include in
3140	// API requests with the JSON null value. By default, fields with empty
3141	// values are omitted from API requests. However, any field with an
3142	// empty value appearing in NullFields will be sent to the server as
3143	// null. It is an error if a field in this list has a non-empty value.
3144	// This may be used to include null fields in Patch requests.
3145	NullFields []string `json:"-"`
3146}
3147
3148func (s *GoogleCloudApigeeV1Deployment) MarshalJSON() ([]byte, error) {
3149	type NoMethod GoogleCloudApigeeV1Deployment
3150	raw := NoMethod(*s)
3151	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3152}
3153
3154// GoogleCloudApigeeV1DeploymentChangeReport: Response for
3155// GenerateDeployChangeReport and GenerateUndeployChangeReport. This
3156// report contains any validation failures that would cause the
3157// deployment to be rejected, as well changes and conflicts in routing
3158// that may occur due to the new deployment. The existence of a routing
3159// warning does not necessarily imply that the deployment request is
3160// bad, if the desired state of the deployment request is to effect a
3161// routing change. The primary purposes of the routing messages are: 1)
3162// To inform users of routing changes that may have an effect on traffic
3163// currently being routed to other existing deployments. 2) To warn
3164// users if some base path in the proxy will not receive traffic due to
3165// an existing deployment having already claimed that base path. The
3166// presence of routing conflicts/changes will not cause non-dry-run
3167// DeployApiProxy/UndeployApiProxy requests to be rejected.
3168type GoogleCloudApigeeV1DeploymentChangeReport struct {
3169	// RoutingChanges: All routing changes that may result from a deployment
3170	// request.
3171	RoutingChanges []*GoogleCloudApigeeV1DeploymentChangeReportRoutingChange `json:"routingChanges,omitempty"`
3172
3173	// RoutingConflicts: All base path conflicts detected for a deployment
3174	// request.
3175	RoutingConflicts []*GoogleCloudApigeeV1DeploymentChangeReportRoutingConflict `json:"routingConflicts,omitempty"`
3176
3177	// ValidationErrors: Validation errors that would cause the deployment
3178	// change request to be rejected.
3179	ValidationErrors *GoogleRpcPreconditionFailure `json:"validationErrors,omitempty"`
3180
3181	// ServerResponse contains the HTTP response code and headers from the
3182	// server.
3183	googleapi.ServerResponse `json:"-"`
3184
3185	// ForceSendFields is a list of field names (e.g. "RoutingChanges") to
3186	// unconditionally include in API requests. By default, fields with
3187	// empty or default values are omitted from API requests. However, any
3188	// non-pointer, non-interface field appearing in ForceSendFields will be
3189	// sent to the server regardless of whether the field is empty or not.
3190	// This may be used to include empty fields in Patch requests.
3191	ForceSendFields []string `json:"-"`
3192
3193	// NullFields is a list of field names (e.g. "RoutingChanges") to
3194	// include in API requests with the JSON null value. By default, fields
3195	// with empty values are omitted from API requests. However, any field
3196	// with an empty value appearing in NullFields will be sent to the
3197	// server as null. It is an error if a field in this list has a
3198	// non-empty value. This may be used to include null fields in Patch
3199	// requests.
3200	NullFields []string `json:"-"`
3201}
3202
3203func (s *GoogleCloudApigeeV1DeploymentChangeReport) MarshalJSON() ([]byte, error) {
3204	type NoMethod GoogleCloudApigeeV1DeploymentChangeReport
3205	raw := NoMethod(*s)
3206	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3207}
3208
3209// GoogleCloudApigeeV1DeploymentChangeReportRoutingChange: Describes a
3210// potential routing change that may occur as a result of some
3211// deployment operation.
3212type GoogleCloudApigeeV1DeploymentChangeReportRoutingChange struct {
3213	// Description: Human-readable description of this routing change.
3214	Description string `json:"description,omitempty"`
3215
3216	// EnvironmentGroup: Name of the environment group affected by this
3217	// routing change.
3218	EnvironmentGroup string `json:"environmentGroup,omitempty"`
3219
3220	// FromDeployment: Base path/deployment that may stop receiving some
3221	// traffic.
3222	FromDeployment *GoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment `json:"fromDeployment,omitempty"`
3223
3224	// ShouldSequenceRollout: Set to `true` if using sequenced rollout would
3225	// make this routing change safer. **Note**: This does not necessarily
3226	// imply that automated sequenced rollout mode is supported for the
3227	// operation.
3228	ShouldSequenceRollout bool `json:"shouldSequenceRollout,omitempty"`
3229
3230	// ToDeployment: Base path/deployment that may start receiving that
3231	// traffic. May be null if no deployment is able to receive the traffic.
3232	ToDeployment *GoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment `json:"toDeployment,omitempty"`
3233
3234	// ForceSendFields is a list of field names (e.g. "Description") to
3235	// unconditionally include in API requests. By default, fields with
3236	// empty or default values are omitted from API requests. However, any
3237	// non-pointer, non-interface field appearing in ForceSendFields will be
3238	// sent to the server regardless of whether the field is empty or not.
3239	// This may be used to include empty fields in Patch requests.
3240	ForceSendFields []string `json:"-"`
3241
3242	// NullFields is a list of field names (e.g. "Description") to include
3243	// in API requests with the JSON null value. By default, fields with
3244	// empty values are omitted from API requests. However, any field with
3245	// an empty value appearing in NullFields will be sent to the server as
3246	// null. It is an error if a field in this list has a non-empty value.
3247	// This may be used to include null fields in Patch requests.
3248	NullFields []string `json:"-"`
3249}
3250
3251func (s *GoogleCloudApigeeV1DeploymentChangeReportRoutingChange) MarshalJSON() ([]byte, error) {
3252	type NoMethod GoogleCloudApigeeV1DeploymentChangeReportRoutingChange
3253	raw := NoMethod(*s)
3254	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3255}
3256
3257// GoogleCloudApigeeV1DeploymentChangeReportRoutingConflict: Describes a
3258// routing conflict that may cause a deployment not to receive traffic
3259// at some base path.
3260type GoogleCloudApigeeV1DeploymentChangeReportRoutingConflict struct {
3261	// ConflictingDeployment: Existing base path/deployment causing the
3262	// conflict.
3263	ConflictingDeployment *GoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment `json:"conflictingDeployment,omitempty"`
3264
3265	// Description: Human-readable description of this conflict.
3266	Description string `json:"description,omitempty"`
3267
3268	// EnvironmentGroup: Name of the environment group in which this
3269	// conflict exists.
3270	EnvironmentGroup string `json:"environmentGroup,omitempty"`
3271
3272	// ForceSendFields is a list of field names (e.g.
3273	// "ConflictingDeployment") to unconditionally include in API requests.
3274	// By default, fields with empty or default values are omitted from API
3275	// requests. However, any non-pointer, non-interface field appearing in
3276	// ForceSendFields will be sent to the server regardless of whether the
3277	// field is empty or not. This may be used to include empty fields in
3278	// Patch requests.
3279	ForceSendFields []string `json:"-"`
3280
3281	// NullFields is a list of field names (e.g. "ConflictingDeployment") to
3282	// include in API requests with the JSON null value. By default, fields
3283	// with empty values are omitted from API requests. However, any field
3284	// with an empty value appearing in NullFields will be sent to the
3285	// server as null. It is an error if a field in this list has a
3286	// non-empty value. This may be used to include null fields in Patch
3287	// requests.
3288	NullFields []string `json:"-"`
3289}
3290
3291func (s *GoogleCloudApigeeV1DeploymentChangeReportRoutingConflict) MarshalJSON() ([]byte, error) {
3292	type NoMethod GoogleCloudApigeeV1DeploymentChangeReportRoutingConflict
3293	raw := NoMethod(*s)
3294	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3295}
3296
3297// GoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment: Tuple
3298// representing a base path and the deployment containing it.
3299type GoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment struct {
3300	// ApiProxy: Name of the deployed API proxy revision containing the base
3301	// path.
3302	ApiProxy string `json:"apiProxy,omitempty"`
3303
3304	// Basepath: Base path receiving traffic.
3305	Basepath string `json:"basepath,omitempty"`
3306
3307	// Environment: Name of the environment in which the proxy is deployed.
3308	Environment string `json:"environment,omitempty"`
3309
3310	// Revision: Name of the deployed API proxy revision containing the base
3311	// path.
3312	Revision string `json:"revision,omitempty"`
3313
3314	// ForceSendFields is a list of field names (e.g. "ApiProxy") to
3315	// unconditionally include in API requests. By default, fields with
3316	// empty or default values are omitted from API requests. However, any
3317	// non-pointer, non-interface field appearing in ForceSendFields will be
3318	// sent to the server regardless of whether the field is empty or not.
3319	// This may be used to include empty fields in Patch requests.
3320	ForceSendFields []string `json:"-"`
3321
3322	// NullFields is a list of field names (e.g. "ApiProxy") to include in
3323	// API requests with the JSON null value. By default, fields with empty
3324	// values are omitted from API requests. However, any field with an
3325	// empty value appearing in NullFields will be sent to the server as
3326	// null. It is an error if a field in this list has a non-empty value.
3327	// This may be used to include null fields in Patch requests.
3328	NullFields []string `json:"-"`
3329}
3330
3331func (s *GoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment) MarshalJSON() ([]byte, error) {
3332	type NoMethod GoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment
3333	raw := NoMethod(*s)
3334	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3335}
3336
3337// GoogleCloudApigeeV1DeploymentConfig: NEXT ID: 9
3338type GoogleCloudApigeeV1DeploymentConfig struct {
3339	// Attributes: Additional key-value metadata for the deployment.
3340	Attributes map[string]string `json:"attributes,omitempty"`
3341
3342	// BasePath: Base path where the application will be hosted. Defaults to
3343	// "/".
3344	BasePath string `json:"basePath,omitempty"`
3345
3346	// Location: Location of the API proxy bundle as a URI.
3347	Location string `json:"location,omitempty"`
3348
3349	// Name: Name of the API or shared flow revision to be deployed in the
3350	// following format: `organizations/{org}/apis/{api}/revisions/{rev}` or
3351	// `organizations/{org}/sharedflows/{sharedflow}/revisions/{rev}`
3352	Name string `json:"name,omitempty"`
3353
3354	// ProxyUid: Unique ID of the API proxy revision.
3355	ProxyUid string `json:"proxyUid,omitempty"`
3356
3357	// ServiceAccount: The service account identity associated with this
3358	// deployment. If non-empty, will be in the following format:
3359	// `projects/-/serviceAccounts/{account_email}`
3360	ServiceAccount string `json:"serviceAccount,omitempty"`
3361
3362	// Uid: Unique ID. The ID will only change if the deployment is deleted
3363	// and recreated.
3364	Uid string `json:"uid,omitempty"`
3365
3366	// ForceSendFields is a list of field names (e.g. "Attributes") to
3367	// unconditionally include in API requests. By default, fields with
3368	// empty or default values are omitted from API requests. However, any
3369	// non-pointer, non-interface field appearing in ForceSendFields will be
3370	// sent to the server regardless of whether the field is empty or not.
3371	// This may be used to include empty fields in Patch requests.
3372	ForceSendFields []string `json:"-"`
3373
3374	// NullFields is a list of field names (e.g. "Attributes") to include in
3375	// API requests with the JSON null value. By default, fields with empty
3376	// values are omitted from API requests. However, any field with an
3377	// empty value appearing in NullFields will be sent to the server as
3378	// null. It is an error if a field in this list has a non-empty value.
3379	// This may be used to include null fields in Patch requests.
3380	NullFields []string `json:"-"`
3381}
3382
3383func (s *GoogleCloudApigeeV1DeploymentConfig) MarshalJSON() ([]byte, error) {
3384	type NoMethod GoogleCloudApigeeV1DeploymentConfig
3385	raw := NoMethod(*s)
3386	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3387}
3388
3389type GoogleCloudApigeeV1Developer struct {
3390	// AccessType: Access type.
3391	AccessType string `json:"accessType,omitempty"`
3392
3393	// AppFamily: Developer app family.
3394	AppFamily string `json:"appFamily,omitempty"`
3395
3396	// Apps: List of apps associated with the developer.
3397	Apps []string `json:"apps,omitempty"`
3398
3399	// Attributes: Optional. Developer attributes (name/value pairs). The
3400	// custom attribute limit is 18.
3401	Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
3402
3403	// Companies: List of companies associated with the developer.
3404	Companies []string `json:"companies,omitempty"`
3405
3406	// CreatedAt: Output only. Time at which the developer was created in
3407	// milliseconds since epoch.
3408	CreatedAt int64 `json:"createdAt,omitempty,string"`
3409
3410	// DeveloperId: ID of the developer. **Note**: IDs are generated
3411	// internally by Apigee and are not guaranteed to stay the same over
3412	// time.
3413	DeveloperId string `json:"developerId,omitempty"`
3414
3415	// Email: Required. Email address of the developer. This value is used
3416	// to uniquely identify the developer in Apigee hybrid. Note that the
3417	// email address has to be in lowercase only.
3418	Email string `json:"email,omitempty"`
3419
3420	// FirstName: Required. First name of the developer.
3421	FirstName string `json:"firstName,omitempty"`
3422
3423	// LastModifiedAt: Output only. Time at which the developer was last
3424	// modified in milliseconds since epoch.
3425	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
3426
3427	// LastName: Required. Last name of the developer.
3428	LastName string `json:"lastName,omitempty"`
3429
3430	// OrganizationName: Output only. Name of the Apigee organization in
3431	// which the developer resides.
3432	OrganizationName string `json:"organizationName,omitempty"`
3433
3434	// Status: Output only. Status of the developer. Valid values are
3435	// `active` and `inactive`.
3436	Status string `json:"status,omitempty"`
3437
3438	// UserName: Required. User name of the developer. Not used by Apigee
3439	// hybrid.
3440	UserName string `json:"userName,omitempty"`
3441
3442	// ServerResponse contains the HTTP response code and headers from the
3443	// server.
3444	googleapi.ServerResponse `json:"-"`
3445
3446	// ForceSendFields is a list of field names (e.g. "AccessType") to
3447	// unconditionally include in API requests. By default, fields with
3448	// empty or default values are omitted from API requests. However, any
3449	// non-pointer, non-interface field appearing in ForceSendFields will be
3450	// sent to the server regardless of whether the field is empty or not.
3451	// This may be used to include empty fields in Patch requests.
3452	ForceSendFields []string `json:"-"`
3453
3454	// NullFields is a list of field names (e.g. "AccessType") to include in
3455	// API requests with the JSON null value. By default, fields with empty
3456	// values are omitted from API requests. However, any field with an
3457	// empty value appearing in NullFields will be sent to the server as
3458	// null. It is an error if a field in this list has a non-empty value.
3459	// This may be used to include null fields in Patch requests.
3460	NullFields []string `json:"-"`
3461}
3462
3463func (s *GoogleCloudApigeeV1Developer) MarshalJSON() ([]byte, error) {
3464	type NoMethod GoogleCloudApigeeV1Developer
3465	raw := NoMethod(*s)
3466	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3467}
3468
3469type GoogleCloudApigeeV1DeveloperApp struct {
3470	// ApiProducts: List of API products associated with the developer app.
3471	ApiProducts []string `json:"apiProducts,omitempty"`
3472
3473	// AppFamily: Developer app family.
3474	AppFamily string `json:"appFamily,omitempty"`
3475
3476	// AppId: ID of the developer app.
3477	AppId string `json:"appId,omitempty"`
3478
3479	// Attributes: List of attributes for the developer app.
3480	Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
3481
3482	// CallbackUrl: Callback URL used by OAuth 2.0 authorization servers to
3483	// communicate authorization codes back to developer apps.
3484	CallbackUrl string `json:"callbackUrl,omitempty"`
3485
3486	// CreatedAt: Output only. Time the developer app was created in
3487	// milliseconds since epoch.
3488	CreatedAt int64 `json:"createdAt,omitempty,string"`
3489
3490	// Credentials: Output only. Set of credentials for the developer app
3491	// consisting of the consumer key/secret pairs associated with the API
3492	// products.
3493	Credentials []*GoogleCloudApigeeV1Credential `json:"credentials,omitempty"`
3494
3495	// DeveloperId: ID of the developer.
3496	DeveloperId string `json:"developerId,omitempty"`
3497
3498	// KeyExpiresIn: Expiration time, in milliseconds, for the consumer key
3499	// that is generated for the developer app. If not set or left to the
3500	// default value of `-1`, the API key never expires. The expiration time
3501	// can't be updated after it is set.
3502	KeyExpiresIn int64 `json:"keyExpiresIn,omitempty,string"`
3503
3504	// LastModifiedAt: Output only. Time the developer app was modified in
3505	// milliseconds since epoch.
3506	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
3507
3508	// Name: Name of the developer app.
3509	Name string `json:"name,omitempty"`
3510
3511	// Scopes: Scopes to apply to the developer app. The specified scopes
3512	// must already exist for the API product that you associate with the
3513	// developer app.
3514	Scopes []string `json:"scopes,omitempty"`
3515
3516	// Status: Status of the credential. Valid values include `approved` or
3517	// `revoked`.
3518	Status string `json:"status,omitempty"`
3519
3520	// ServerResponse contains the HTTP response code and headers from the
3521	// server.
3522	googleapi.ServerResponse `json:"-"`
3523
3524	// ForceSendFields is a list of field names (e.g. "ApiProducts") to
3525	// unconditionally include in API requests. By default, fields with
3526	// empty or default values are omitted from API requests. However, any
3527	// non-pointer, non-interface field appearing in ForceSendFields will be
3528	// sent to the server regardless of whether the field is empty or not.
3529	// This may be used to include empty fields in Patch requests.
3530	ForceSendFields []string `json:"-"`
3531
3532	// NullFields is a list of field names (e.g. "ApiProducts") to include
3533	// in API requests with the JSON null value. By default, fields with
3534	// empty values are omitted from API requests. However, any field with
3535	// an empty value appearing in NullFields will be sent to the server as
3536	// null. It is an error if a field in this list has a non-empty value.
3537	// This may be used to include null fields in Patch requests.
3538	NullFields []string `json:"-"`
3539}
3540
3541func (s *GoogleCloudApigeeV1DeveloperApp) MarshalJSON() ([]byte, error) {
3542	type NoMethod GoogleCloudApigeeV1DeveloperApp
3543	raw := NoMethod(*s)
3544	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3545}
3546
3547type GoogleCloudApigeeV1DeveloperAppKey struct {
3548	// ApiProducts: List of API products for which the credential can be
3549	// used. **Note**: Do not specify the list of API products when creating
3550	// a consumer key and secret for a developer app. Instead, use the
3551	// UpdateDeveloperAppKey API to make the association after the consumer
3552	// key and secret are created.
3553	ApiProducts []interface{} `json:"apiProducts,omitempty"`
3554
3555	// Attributes: List of attributes associated with the credential.
3556	Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
3557
3558	// ConsumerKey: Consumer key.
3559	ConsumerKey string `json:"consumerKey,omitempty"`
3560
3561	// ConsumerSecret: Secret key.
3562	ConsumerSecret string `json:"consumerSecret,omitempty"`
3563
3564	// ExpiresAt: Time the developer app expires in milliseconds since
3565	// epoch.
3566	ExpiresAt int64 `json:"expiresAt,omitempty,string"`
3567
3568	// ExpiresInSeconds: Input only. Expiration time, in seconds, for the
3569	// consumer key. If not set or left to the default value of `-1`, the
3570	// API key never expires. The expiration time can't be updated after it
3571	// is set.
3572	ExpiresInSeconds int64 `json:"expiresInSeconds,omitempty,string"`
3573
3574	// IssuedAt: Time the developer app was created in milliseconds since
3575	// epoch.
3576	IssuedAt int64 `json:"issuedAt,omitempty,string"`
3577
3578	// Scopes: Scopes to apply to the app. The specified scope names must
3579	// already be defined for the API product that you associate with the
3580	// app.
3581	Scopes []string `json:"scopes,omitempty"`
3582
3583	// Status: Status of the credential. Valid values include `approved` or
3584	// `revoked`.
3585	Status string `json:"status,omitempty"`
3586
3587	// ServerResponse contains the HTTP response code and headers from the
3588	// server.
3589	googleapi.ServerResponse `json:"-"`
3590
3591	// ForceSendFields is a list of field names (e.g. "ApiProducts") to
3592	// unconditionally include in API requests. By default, fields with
3593	// empty or default values are omitted from API requests. However, any
3594	// non-pointer, non-interface field appearing in ForceSendFields will be
3595	// sent to the server regardless of whether the field is empty or not.
3596	// This may be used to include empty fields in Patch requests.
3597	ForceSendFields []string `json:"-"`
3598
3599	// NullFields is a list of field names (e.g. "ApiProducts") to include
3600	// in API requests with the JSON null value. By default, fields with
3601	// empty values are omitted from API requests. However, any field with
3602	// an empty value appearing in NullFields will be sent to the server as
3603	// null. It is an error if a field in this list has a non-empty value.
3604	// This may be used to include null fields in Patch requests.
3605	NullFields []string `json:"-"`
3606}
3607
3608func (s *GoogleCloudApigeeV1DeveloperAppKey) MarshalJSON() ([]byte, error) {
3609	type NoMethod GoogleCloudApigeeV1DeveloperAppKey
3610	raw := NoMethod(*s)
3611	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3612}
3613
3614// GoogleCloudApigeeV1DeveloperSubscription: Structure of a
3615// DeveloperSubscription.
3616type GoogleCloudApigeeV1DeveloperSubscription struct {
3617	// Apiproduct: Name of the API product for which the developer is
3618	// purchasing a subscription.
3619	Apiproduct string `json:"apiproduct,omitempty"`
3620
3621	// CreatedAt: Output only. Time when the API product subscription was
3622	// created in milliseconds since epoch.
3623	CreatedAt int64 `json:"createdAt,omitempty,string"`
3624
3625	// EndTime: Time when the API product subscription ends in milliseconds
3626	// since epoch.
3627	EndTime int64 `json:"endTime,omitempty,string"`
3628
3629	// LastModifiedAt: Output only. Time when the API product subscription
3630	// was last modified in milliseconds since epoch.
3631	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
3632
3633	// Name: Output only. Name of the API product subscription.
3634	Name string `json:"name,omitempty"`
3635
3636	// StartTime: Time when the API product subscription starts in
3637	// milliseconds since epoch.
3638	StartTime int64 `json:"startTime,omitempty,string"`
3639
3640	// ServerResponse contains the HTTP response code and headers from the
3641	// server.
3642	googleapi.ServerResponse `json:"-"`
3643
3644	// ForceSendFields is a list of field names (e.g. "Apiproduct") to
3645	// unconditionally include in API requests. By default, fields with
3646	// empty or default values are omitted from API requests. However, any
3647	// non-pointer, non-interface field appearing in ForceSendFields will be
3648	// sent to the server regardless of whether the field is empty or not.
3649	// This may be used to include empty fields in Patch requests.
3650	ForceSendFields []string `json:"-"`
3651
3652	// NullFields is a list of field names (e.g. "Apiproduct") to include in
3653	// API requests with the JSON null value. By default, fields with empty
3654	// values are omitted from API requests. However, any field with an
3655	// empty value appearing in NullFields will be sent to the server as
3656	// null. It is an error if a field in this list has a non-empty value.
3657	// This may be used to include null fields in Patch requests.
3658	NullFields []string `json:"-"`
3659}
3660
3661func (s *GoogleCloudApigeeV1DeveloperSubscription) MarshalJSON() ([]byte, error) {
3662	type NoMethod GoogleCloudApigeeV1DeveloperSubscription
3663	raw := NoMethod(*s)
3664	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3665}
3666
3667// GoogleCloudApigeeV1DimensionMetric: This message type encapsulates a
3668// metric grouped by dimension.
3669type GoogleCloudApigeeV1DimensionMetric struct {
3670	// Metrics: This field contains a list of metrics.
3671	Metrics []*GoogleCloudApigeeV1Metric `json:"metrics,omitempty"`
3672
3673	// Name: This field contains the name of the dimension.
3674	Name string `json:"name,omitempty"`
3675
3676	// ForceSendFields is a list of field names (e.g. "Metrics") to
3677	// unconditionally include in API requests. By default, fields with
3678	// empty or default values are omitted from API requests. However, any
3679	// non-pointer, non-interface field appearing in ForceSendFields will be
3680	// sent to the server regardless of whether the field is empty or not.
3681	// This may be used to include empty fields in Patch requests.
3682	ForceSendFields []string `json:"-"`
3683
3684	// NullFields is a list of field names (e.g. "Metrics") to include in
3685	// API requests with the JSON null value. By default, fields with empty
3686	// values are omitted from API requests. However, any field with an
3687	// empty value appearing in NullFields will be sent to the server as
3688	// null. It is an error if a field in this list has a non-empty value.
3689	// This may be used to include null fields in Patch requests.
3690	NullFields []string `json:"-"`
3691}
3692
3693func (s *GoogleCloudApigeeV1DimensionMetric) MarshalJSON() ([]byte, error) {
3694	type NoMethod GoogleCloudApigeeV1DimensionMetric
3695	raw := NoMethod(*s)
3696	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3697}
3698
3699// GoogleCloudApigeeV1EntityMetadata: Metadata common to many entities
3700// in this API.
3701type GoogleCloudApigeeV1EntityMetadata struct {
3702	// CreatedAt: Time at which the API proxy was created, in milliseconds
3703	// since epoch.
3704	CreatedAt int64 `json:"createdAt,omitempty,string"`
3705
3706	// LastModifiedAt: Time at which the API proxy was most recently
3707	// modified, in milliseconds since epoch.
3708	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
3709
3710	// SubType: The type of entity described
3711	SubType string `json:"subType,omitempty"`
3712
3713	// ForceSendFields is a list of field names (e.g. "CreatedAt") to
3714	// unconditionally include in API requests. By default, fields with
3715	// empty or default values are omitted from API requests. However, any
3716	// non-pointer, non-interface field appearing in ForceSendFields will be
3717	// sent to the server regardless of whether the field is empty or not.
3718	// This may be used to include empty fields in Patch requests.
3719	ForceSendFields []string `json:"-"`
3720
3721	// NullFields is a list of field names (e.g. "CreatedAt") to include in
3722	// API requests with the JSON null value. By default, fields with empty
3723	// values are omitted from API requests. However, any field with an
3724	// empty value appearing in NullFields will be sent to the server as
3725	// null. It is an error if a field in this list has a non-empty value.
3726	// This may be used to include null fields in Patch requests.
3727	NullFields []string `json:"-"`
3728}
3729
3730func (s *GoogleCloudApigeeV1EntityMetadata) MarshalJSON() ([]byte, error) {
3731	type NoMethod GoogleCloudApigeeV1EntityMetadata
3732	raw := NoMethod(*s)
3733	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3734}
3735
3736type GoogleCloudApigeeV1Environment struct {
3737	// ApiProxyType: Optional. API Proxy type supported by the environment.
3738	// The type can be set when creating the Environment and cannot be
3739	// changed.
3740	//
3741	// Possible values:
3742	//   "API_PROXY_TYPE_UNSPECIFIED" - API proxy type not specified.
3743	//   "PROGRAMMABLE" - Programmable API Proxies enable you to develop
3744	// APIs with highly flexible behavior using bundled policy configuration
3745	// and one or more programming languages to describe complex sequential
3746	// and/or conditional flows of logic.
3747	//   "CONFIGURABLE" - Configurable API Proxies enable you to develop
3748	// efficient APIs using simple configuration while complex execution
3749	// control flow logic is handled by Apigee. This type only works with
3750	// the ARCHIVE deployment type and cannot be combined with the PROXY
3751	// deployment type.
3752	ApiProxyType string `json:"apiProxyType,omitempty"`
3753
3754	// CreatedAt: Output only. Creation time of this environment as
3755	// milliseconds since epoch.
3756	CreatedAt int64 `json:"createdAt,omitempty,string"`
3757
3758	// DeploymentType: Optional. Deployment type supported by the
3759	// environment. The deployment type can be set when creating the
3760	// environment and cannot be changed. When you enable archive
3761	// deployment, you will be **prevented from performing** a subset of
3762	// actions
3763	// (/apigee/docs/api-platform/local-development/overview#prevented-action
3764	// s) within the environment, including: * Managing the deployment of
3765	// API proxy or shared flow revisions * Creating, updating, or deleting
3766	// resource files * Creating, updating, or deleting target servers
3767	//
3768	// Possible values:
3769	//   "DEPLOYMENT_TYPE_UNSPECIFIED" - Deployment type not specified.
3770	//   "PROXY" - Proxy deployment enables you to develop and deploy API
3771	// proxies using Apigee on Google Cloud. This cannot currently be
3772	// combined with the CONFIGURABLE API proxy type.
3773	//   "ARCHIVE" - Archive deployment enables you to develop API proxies
3774	// locally then deploy an archive of your API proxy configuration to an
3775	// environment in Apigee on Google Cloud. You will be prevented from
3776	// performing a [subset of
3777	// actions](/apigee/docs/api-platform/local-development/overview#prevente
3778	// d-actions) within the environment.
3779	DeploymentType string `json:"deploymentType,omitempty"`
3780
3781	// Description: Optional. Description of the environment.
3782	Description string `json:"description,omitempty"`
3783
3784	// DisplayName: Optional. Display name for this environment.
3785	DisplayName string `json:"displayName,omitempty"`
3786
3787	// LastModifiedAt: Output only. Last modification time of this
3788	// environment as milliseconds since epoch.
3789	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
3790
3791	// Name: Required. Name of the environment. Values must match the
3792	// regular expression `^[.\\p{Alnum}-_]{1,255}$`
3793	Name string `json:"name,omitempty"`
3794
3795	// Properties: Optional. Key-value pairs that may be used for
3796	// customizing the environment.
3797	Properties *GoogleCloudApigeeV1Properties `json:"properties,omitempty"`
3798
3799	// State: Output only. State of the environment. Values other than
3800	// ACTIVE means the resource is not ready to use.
3801	//
3802	// Possible values:
3803	//   "STATE_UNSPECIFIED" - Resource is in an unspecified state.
3804	//   "CREATING" - Resource is being created.
3805	//   "ACTIVE" - Resource is provisioned and ready to use.
3806	//   "DELETING" - The resource is being deleted.
3807	//   "UPDATING" - The resource is being updated.
3808	State string `json:"state,omitempty"`
3809
3810	// ServerResponse contains the HTTP response code and headers from the
3811	// server.
3812	googleapi.ServerResponse `json:"-"`
3813
3814	// ForceSendFields is a list of field names (e.g. "ApiProxyType") to
3815	// unconditionally include in API requests. By default, fields with
3816	// empty or default values are omitted from API requests. However, any
3817	// non-pointer, non-interface field appearing in ForceSendFields will be
3818	// sent to the server regardless of whether the field is empty or not.
3819	// This may be used to include empty fields in Patch requests.
3820	ForceSendFields []string `json:"-"`
3821
3822	// NullFields is a list of field names (e.g. "ApiProxyType") to include
3823	// in API requests with the JSON null value. By default, fields with
3824	// empty values are omitted from API requests. However, any field with
3825	// an empty value appearing in NullFields will be sent to the server as
3826	// null. It is an error if a field in this list has a non-empty value.
3827	// This may be used to include null fields in Patch requests.
3828	NullFields []string `json:"-"`
3829}
3830
3831func (s *GoogleCloudApigeeV1Environment) MarshalJSON() ([]byte, error) {
3832	type NoMethod GoogleCloudApigeeV1Environment
3833	raw := NoMethod(*s)
3834	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3835}
3836
3837type GoogleCloudApigeeV1EnvironmentConfig struct {
3838	// ArcConfigLocation: The location for the config blob of API Runtime
3839	// Control, aka Envoy Adapter, for op-based authentication as a URI,
3840	// e.g. a Cloud Storage URI. This is only used by Envoy-based gateways.
3841	ArcConfigLocation string `json:"arcConfigLocation,omitempty"`
3842
3843	// CreateTime: Time that the environment configuration was created.
3844	CreateTime string `json:"createTime,omitempty"`
3845
3846	// DataCollectors: List of data collectors used by the deployments in
3847	// the environment.
3848	DataCollectors []*GoogleCloudApigeeV1DataCollectorConfig `json:"dataCollectors,omitempty"`
3849
3850	// DebugMask: Debug mask that applies to all deployments in the
3851	// environment.
3852	DebugMask *GoogleCloudApigeeV1DebugMask `json:"debugMask,omitempty"`
3853
3854	// Deployments: List of deployments in the environment.
3855	Deployments []*GoogleCloudApigeeV1DeploymentConfig `json:"deployments,omitempty"`
3856
3857	// FeatureFlags: Feature flags inherited from the organization and
3858	// environment.
3859	FeatureFlags map[string]string `json:"featureFlags,omitempty"`
3860
3861	// Flowhooks: List of flow hooks in the environment.
3862	Flowhooks []*GoogleCloudApigeeV1FlowHookConfig `json:"flowhooks,omitempty"`
3863
3864	// GatewayConfigLocation: The location for the gateway config blob as a
3865	// URI, e.g. a Cloud Storage URI. This is only used by Envoy-based
3866	// gateways.
3867	GatewayConfigLocation string `json:"gatewayConfigLocation,omitempty"`
3868
3869	// Keystores: List of keystores in the environment.
3870	Keystores []*GoogleCloudApigeeV1KeystoreConfig `json:"keystores,omitempty"`
3871
3872	// Name: Name of the environment configuration in the following format:
3873	// `organizations/{org}/environments/{env}/configs/{config}`
3874	Name string `json:"name,omitempty"`
3875
3876	// Provider: Used by the Control plane to add context information to
3877	// help detect the source of the document during diagnostics and
3878	// debugging.
3879	Provider string `json:"provider,omitempty"`
3880
3881	// PubsubTopic: Name of the PubSub topic for the environment.
3882	PubsubTopic string `json:"pubsubTopic,omitempty"`
3883
3884	// ResourceReferences: List of resource references in the environment.
3885	ResourceReferences []*GoogleCloudApigeeV1ReferenceConfig `json:"resourceReferences,omitempty"`
3886
3887	// Resources: List of resource versions in the environment.
3888	Resources []*GoogleCloudApigeeV1ResourceConfig `json:"resources,omitempty"`
3889
3890	// RevisionId: Revision ID of the environment configuration. The higher
3891	// the value, the more recently the configuration was deployed.
3892	RevisionId int64 `json:"revisionId,omitempty,string"`
3893
3894	// SequenceNumber: DEPRECATED: Use revision_id.
3895	SequenceNumber int64 `json:"sequenceNumber,omitempty,string"`
3896
3897	// Targets: List of target servers in the environment. Disabled target
3898	// servers are not displayed.
3899	Targets []*GoogleCloudApigeeV1TargetServerConfig `json:"targets,omitempty"`
3900
3901	// TraceConfig: Trace configurations. Contains config for the
3902	// environment and config overrides for specific API proxies.
3903	TraceConfig *GoogleCloudApigeeV1RuntimeTraceConfig `json:"traceConfig,omitempty"`
3904
3905	// Uid: Unique ID for the environment configuration. The ID will only
3906	// change if the environment is deleted and recreated.
3907	Uid string `json:"uid,omitempty"`
3908
3909	// ServerResponse contains the HTTP response code and headers from the
3910	// server.
3911	googleapi.ServerResponse `json:"-"`
3912
3913	// ForceSendFields is a list of field names (e.g. "ArcConfigLocation")
3914	// to unconditionally include in API requests. By default, fields with
3915	// empty or default values are omitted from API requests. However, any
3916	// non-pointer, non-interface field appearing in ForceSendFields will be
3917	// sent to the server regardless of whether the field is empty or not.
3918	// This may be used to include empty fields in Patch requests.
3919	ForceSendFields []string `json:"-"`
3920
3921	// NullFields is a list of field names (e.g. "ArcConfigLocation") to
3922	// include in API requests with the JSON null value. By default, fields
3923	// with empty values are omitted from API requests. However, any field
3924	// with an empty value appearing in NullFields will be sent to the
3925	// server as null. It is an error if a field in this list has a
3926	// non-empty value. This may be used to include null fields in Patch
3927	// requests.
3928	NullFields []string `json:"-"`
3929}
3930
3931func (s *GoogleCloudApigeeV1EnvironmentConfig) MarshalJSON() ([]byte, error) {
3932	type NoMethod GoogleCloudApigeeV1EnvironmentConfig
3933	raw := NoMethod(*s)
3934	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3935}
3936
3937// GoogleCloudApigeeV1EnvironmentGroup: EnvironmentGroup configuration.
3938// An environment group is used to group one or more Apigee environments
3939// under a single host name.
3940type GoogleCloudApigeeV1EnvironmentGroup struct {
3941	// CreatedAt: Output only. The time at which the environment group was
3942	// created as milliseconds since epoch.
3943	CreatedAt int64 `json:"createdAt,omitempty,string"`
3944
3945	// Hostnames: Required. Host names for this environment group.
3946	Hostnames []string `json:"hostnames,omitempty"`
3947
3948	// LastModifiedAt: Output only. The time at which the environment group
3949	// was last updated as milliseconds since epoch.
3950	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
3951
3952	// Name: ID of the environment group.
3953	Name string `json:"name,omitempty"`
3954
3955	// State: Output only. State of the environment group. Values other than
3956	// ACTIVE means the resource is not ready to use.
3957	//
3958	// Possible values:
3959	//   "STATE_UNSPECIFIED" - Resource is in an unspecified state.
3960	//   "CREATING" - Resource is being created.
3961	//   "ACTIVE" - Resource is provisioned and ready to use.
3962	//   "DELETING" - The resource is being deleted.
3963	//   "UPDATING" - The resource is being updated.
3964	State string `json:"state,omitempty"`
3965
3966	// ServerResponse contains the HTTP response code and headers from the
3967	// server.
3968	googleapi.ServerResponse `json:"-"`
3969
3970	// ForceSendFields is a list of field names (e.g. "CreatedAt") to
3971	// unconditionally include in API requests. By default, fields with
3972	// empty or default values are omitted from API requests. However, any
3973	// non-pointer, non-interface field appearing in ForceSendFields will be
3974	// sent to the server regardless of whether the field is empty or not.
3975	// This may be used to include empty fields in Patch requests.
3976	ForceSendFields []string `json:"-"`
3977
3978	// NullFields is a list of field names (e.g. "CreatedAt") to include in
3979	// API requests with the JSON null value. By default, fields with empty
3980	// values are omitted from API requests. However, any field with an
3981	// empty value appearing in NullFields will be sent to the server as
3982	// null. It is an error if a field in this list has a non-empty value.
3983	// This may be used to include null fields in Patch requests.
3984	NullFields []string `json:"-"`
3985}
3986
3987func (s *GoogleCloudApigeeV1EnvironmentGroup) MarshalJSON() ([]byte, error) {
3988	type NoMethod GoogleCloudApigeeV1EnvironmentGroup
3989	raw := NoMethod(*s)
3990	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3991}
3992
3993// GoogleCloudApigeeV1EnvironmentGroupAttachment:
3994// EnvironmentGroupAttachment is a resource which defines an attachment
3995// of an environment to an environment group.
3996type GoogleCloudApigeeV1EnvironmentGroupAttachment struct {
3997	// CreatedAt: Output only. The time at which the environment group
3998	// attachment was created as milliseconds since epoch.
3999	CreatedAt int64 `json:"createdAt,omitempty,string"`
4000
4001	// Environment: Required. ID of the attached environment.
4002	Environment string `json:"environment,omitempty"`
4003
4004	// Name: ID of the environment group attachment.
4005	Name string `json:"name,omitempty"`
4006
4007	// ServerResponse contains the HTTP response code and headers from the
4008	// server.
4009	googleapi.ServerResponse `json:"-"`
4010
4011	// ForceSendFields is a list of field names (e.g. "CreatedAt") to
4012	// unconditionally include in API requests. By default, fields with
4013	// empty or default values are omitted from API requests. However, any
4014	// non-pointer, non-interface field appearing in ForceSendFields will be
4015	// sent to the server regardless of whether the field is empty or not.
4016	// This may be used to include empty fields in Patch requests.
4017	ForceSendFields []string `json:"-"`
4018
4019	// NullFields is a list of field names (e.g. "CreatedAt") to include in
4020	// API requests with the JSON null value. By default, fields with empty
4021	// values are omitted from API requests. However, any field with an
4022	// empty value appearing in NullFields will be sent to the server as
4023	// null. It is an error if a field in this list has a non-empty value.
4024	// This may be used to include null fields in Patch requests.
4025	NullFields []string `json:"-"`
4026}
4027
4028func (s *GoogleCloudApigeeV1EnvironmentGroupAttachment) MarshalJSON() ([]byte, error) {
4029	type NoMethod GoogleCloudApigeeV1EnvironmentGroupAttachment
4030	raw := NoMethod(*s)
4031	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4032}
4033
4034// GoogleCloudApigeeV1EnvironmentGroupConfig: EnvironmentGroupConfig is
4035// a revisioned snapshot of an EnvironmentGroup and its associated
4036// routing rules.
4037type GoogleCloudApigeeV1EnvironmentGroupConfig struct {
4038	// Hostnames: Host names for the environment group.
4039	Hostnames []string `json:"hostnames,omitempty"`
4040
4041	// Name: Name of the environment group in the following format:
4042	// `organizations/{org}/envgroups/{envgroup}`.
4043	Name string `json:"name,omitempty"`
4044
4045	// RevisionId: Revision id that defines the ordering of the
4046	// EnvironmentGroupConfig resource. The higher the revision, the more
4047	// recently the configuration was deployed.
4048	RevisionId int64 `json:"revisionId,omitempty,string"`
4049
4050	// RoutingRules: Ordered list of routing rules defining how traffic to
4051	// this environment group's hostnames should be routed to different
4052	// environments.
4053	RoutingRules []*GoogleCloudApigeeV1RoutingRule `json:"routingRules,omitempty"`
4054
4055	// Uid: A unique id for the environment group config that will only
4056	// change if the environment group is deleted and recreated.
4057	Uid string `json:"uid,omitempty"`
4058
4059	// ForceSendFields is a list of field names (e.g. "Hostnames") to
4060	// unconditionally include in API requests. By default, fields with
4061	// empty or default values are omitted from API requests. However, any
4062	// non-pointer, non-interface field appearing in ForceSendFields will be
4063	// sent to the server regardless of whether the field is empty or not.
4064	// This may be used to include empty fields in Patch requests.
4065	ForceSendFields []string `json:"-"`
4066
4067	// NullFields is a list of field names (e.g. "Hostnames") to include in
4068	// API requests with the JSON null value. By default, fields with empty
4069	// values are omitted from API requests. However, any field with an
4070	// empty value appearing in NullFields will be sent to the server as
4071	// null. It is an error if a field in this list has a non-empty value.
4072	// This may be used to include null fields in Patch requests.
4073	NullFields []string `json:"-"`
4074}
4075
4076func (s *GoogleCloudApigeeV1EnvironmentGroupConfig) MarshalJSON() ([]byte, error) {
4077	type NoMethod GoogleCloudApigeeV1EnvironmentGroupConfig
4078	raw := NoMethod(*s)
4079	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4080}
4081
4082// GoogleCloudApigeeV1ExpireDeveloperSubscriptionRequest: Request for
4083// ExpireDeveloperSubscription.
4084type GoogleCloudApigeeV1ExpireDeveloperSubscriptionRequest struct {
4085}
4086
4087// GoogleCloudApigeeV1Export: Details of an export job.
4088type GoogleCloudApigeeV1Export struct {
4089	// Created: Output only. Time the export job was created.
4090	Created string `json:"created,omitempty"`
4091
4092	// DatastoreName: Name of the datastore that is the destination of the
4093	// export job [datastore]
4094	DatastoreName string `json:"datastoreName,omitempty"`
4095
4096	// Description: Description of the export job.
4097	Description string `json:"description,omitempty"`
4098
4099	// Error: Output only. Error is set when export fails
4100	Error string `json:"error,omitempty"`
4101
4102	// ExecutionTime: Output only. Execution time for this export job. If
4103	// the job is still in progress, it will be set to the amount of time
4104	// that has elapsed since`created`, in seconds. Else, it will set to
4105	// (`updated` - `created`), in seconds.
4106	ExecutionTime string `json:"executionTime,omitempty"`
4107
4108	// Name: Display name of the export job.
4109	Name string `json:"name,omitempty"`
4110
4111	// Self: Output only. Self link of the export job. A URI that can be
4112	// used to retrieve the status of an export job. Example:
4113	// `/organizations/myorg/environments/myenv/analytics/exports/9cfc0d85-0f
4114	// 30-46d6-ae6f-318d0cb961bd`
4115	Self string `json:"self,omitempty"`
4116
4117	// State: Output only. Status of the export job. Valid values include
4118	// `enqueued`, `running`, `completed`, and `failed`.
4119	State string `json:"state,omitempty"`
4120
4121	// Updated: Output only. Time the export job was last updated.
4122	Updated string `json:"updated,omitempty"`
4123
4124	// ServerResponse contains the HTTP response code and headers from the
4125	// server.
4126	googleapi.ServerResponse `json:"-"`
4127
4128	// ForceSendFields is a list of field names (e.g. "Created") to
4129	// unconditionally include in API requests. By default, fields with
4130	// empty or default values are omitted from API requests. However, any
4131	// non-pointer, non-interface field appearing in ForceSendFields will be
4132	// sent to the server regardless of whether the field is empty or not.
4133	// This may be used to include empty fields in Patch requests.
4134	ForceSendFields []string `json:"-"`
4135
4136	// NullFields is a list of field names (e.g. "Created") to include in
4137	// API requests with the JSON null value. By default, fields with empty
4138	// values are omitted from API requests. However, any field with an
4139	// empty value appearing in NullFields will be sent to the server as
4140	// null. It is an error if a field in this list has a non-empty value.
4141	// This may be used to include null fields in Patch requests.
4142	NullFields []string `json:"-"`
4143}
4144
4145func (s *GoogleCloudApigeeV1Export) MarshalJSON() ([]byte, error) {
4146	type NoMethod GoogleCloudApigeeV1Export
4147	raw := NoMethod(*s)
4148	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4149}
4150
4151// GoogleCloudApigeeV1ExportRequest: Request body for
4152// [CreateExportRequest]
4153type GoogleCloudApigeeV1ExportRequest struct {
4154	// CsvDelimiter: Optional. Delimiter used in the CSV file, if
4155	// `outputFormat` is set to `csv`. Defaults to the `,` (comma)
4156	// character. Supported delimiter characters include comma (`,`), pipe
4157	// (`|`), and tab (`\t`).
4158	CsvDelimiter string `json:"csvDelimiter,omitempty"`
4159
4160	// DatastoreName: Required. Name of the preconfigured datastore.
4161	DatastoreName string `json:"datastoreName,omitempty"`
4162
4163	// DateRange: Required. Date range of the data to export.
4164	DateRange *GoogleCloudApigeeV1DateRange `json:"dateRange,omitempty"`
4165
4166	// Description: Optional. Description of the export job.
4167	Description string `json:"description,omitempty"`
4168
4169	// Name: Required. Display name of the export job.
4170	Name string `json:"name,omitempty"`
4171
4172	// OutputFormat: Optional. Output format of the export. Valid values
4173	// include: `csv` or `json`. Defaults to `json`. Note: Configure the
4174	// delimiter for CSV output using the `csvDelimiter` property.
4175	OutputFormat string `json:"outputFormat,omitempty"`
4176
4177	// ForceSendFields is a list of field names (e.g. "CsvDelimiter") to
4178	// unconditionally include in API requests. By default, fields with
4179	// empty or default values are omitted from API requests. However, any
4180	// non-pointer, non-interface field appearing in ForceSendFields will be
4181	// sent to the server regardless of whether the field is empty or not.
4182	// This may be used to include empty fields in Patch requests.
4183	ForceSendFields []string `json:"-"`
4184
4185	// NullFields is a list of field names (e.g. "CsvDelimiter") to include
4186	// in API requests with the JSON null value. By default, fields with
4187	// empty values are omitted from API requests. However, any field with
4188	// an empty value appearing in NullFields will be sent to the server as
4189	// null. It is an error if a field in this list has a non-empty value.
4190	// This may be used to include null fields in Patch requests.
4191	NullFields []string `json:"-"`
4192}
4193
4194func (s *GoogleCloudApigeeV1ExportRequest) MarshalJSON() ([]byte, error) {
4195	type NoMethod GoogleCloudApigeeV1ExportRequest
4196	raw := NoMethod(*s)
4197	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4198}
4199
4200type GoogleCloudApigeeV1FlowHook struct {
4201	// ContinueOnError: Optional. Flag that specifies whether execution
4202	// should continue if the flow hook throws an exception. Set to `true`
4203	// to continue execution. Set to `false` to stop execution if the flow
4204	// hook throws an exception. Defaults to `true`.
4205	ContinueOnError bool `json:"continueOnError,omitempty"`
4206
4207	// Description: Description of the flow hook.
4208	Description string `json:"description,omitempty"`
4209
4210	// FlowHookPoint: Output only. Where in the API call flow the flow hook
4211	// is invoked. Must be one of `PreProxyFlowHook`, `PostProxyFlowHook`,
4212	// `PreTargetFlowHook`, or `PostTargetFlowHook`.
4213	FlowHookPoint string `json:"flowHookPoint,omitempty"`
4214
4215	// SharedFlow: Shared flow attached to this flow hook, or empty if there
4216	// is none attached.
4217	SharedFlow string `json:"sharedFlow,omitempty"`
4218
4219	// ServerResponse contains the HTTP response code and headers from the
4220	// server.
4221	googleapi.ServerResponse `json:"-"`
4222
4223	// ForceSendFields is a list of field names (e.g. "ContinueOnError") to
4224	// unconditionally include in API requests. By default, fields with
4225	// empty or default values are omitted from API requests. However, any
4226	// non-pointer, non-interface field appearing in ForceSendFields will be
4227	// sent to the server regardless of whether the field is empty or not.
4228	// This may be used to include empty fields in Patch requests.
4229	ForceSendFields []string `json:"-"`
4230
4231	// NullFields is a list of field names (e.g. "ContinueOnError") to
4232	// include in API requests with the JSON null value. By default, fields
4233	// with empty values are omitted from API requests. However, any field
4234	// with an empty value appearing in NullFields will be sent to the
4235	// server as null. It is an error if a field in this list has a
4236	// non-empty value. This may be used to include null fields in Patch
4237	// requests.
4238	NullFields []string `json:"-"`
4239}
4240
4241func (s *GoogleCloudApigeeV1FlowHook) MarshalJSON() ([]byte, error) {
4242	type NoMethod GoogleCloudApigeeV1FlowHook
4243	raw := NoMethod(*s)
4244	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4245}
4246
4247type GoogleCloudApigeeV1FlowHookConfig struct {
4248	// ContinueOnError: Flag that specifies whether the flow should abort
4249	// after an error in the flow hook. Defaults to `true` (continue on
4250	// error).
4251	ContinueOnError bool `json:"continueOnError,omitempty"`
4252
4253	// Name: Name of the flow hook in the following format:
4254	// `organizations/{org}/environments/{env}/flowhooks/{point}`. Valid
4255	// `point` values include: `PreProxyFlowHook`, `PostProxyFlowHook`,
4256	// `PreTargetFlowHook`, and `PostTargetFlowHook`
4257	Name string `json:"name,omitempty"`
4258
4259	// SharedFlowName: Name of the shared flow to invoke in the following
4260	// format: `organizations/{org}/sharedflows/{sharedflow}`
4261	SharedFlowName string `json:"sharedFlowName,omitempty"`
4262
4263	// ForceSendFields is a list of field names (e.g. "ContinueOnError") to
4264	// unconditionally include in API requests. By default, fields with
4265	// empty or default values are omitted from API requests. However, any
4266	// non-pointer, non-interface field appearing in ForceSendFields will be
4267	// sent to the server regardless of whether the field is empty or not.
4268	// This may be used to include empty fields in Patch requests.
4269	ForceSendFields []string `json:"-"`
4270
4271	// NullFields is a list of field names (e.g. "ContinueOnError") to
4272	// include in API requests with the JSON null value. By default, fields
4273	// with empty values are omitted from API requests. However, any field
4274	// with an empty value appearing in NullFields will be sent to the
4275	// server as null. It is an error if a field in this list has a
4276	// non-empty value. This may be used to include null fields in Patch
4277	// requests.
4278	NullFields []string `json:"-"`
4279}
4280
4281func (s *GoogleCloudApigeeV1FlowHookConfig) MarshalJSON() ([]byte, error) {
4282	type NoMethod GoogleCloudApigeeV1FlowHookConfig
4283	raw := NoMethod(*s)
4284	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4285}
4286
4287// GoogleCloudApigeeV1GenerateDownloadUrlRequest: Request for
4288// GenerateDownloadUrl method.
4289type GoogleCloudApigeeV1GenerateDownloadUrlRequest struct {
4290}
4291
4292// GoogleCloudApigeeV1GenerateDownloadUrlResponse: Response for
4293// GenerateDownloadUrl method.
4294type GoogleCloudApigeeV1GenerateDownloadUrlResponse struct {
4295	// DownloadUri: The Google Cloud Storage signed URL that can be used to
4296	// download the Archive zip file.
4297	DownloadUri string `json:"downloadUri,omitempty"`
4298
4299	// ServerResponse contains the HTTP response code and headers from the
4300	// server.
4301	googleapi.ServerResponse `json:"-"`
4302
4303	// ForceSendFields is a list of field names (e.g. "DownloadUri") to
4304	// unconditionally include in API requests. By default, fields with
4305	// empty or default values are omitted from API requests. However, any
4306	// non-pointer, non-interface field appearing in ForceSendFields will be
4307	// sent to the server regardless of whether the field is empty or not.
4308	// This may be used to include empty fields in Patch requests.
4309	ForceSendFields []string `json:"-"`
4310
4311	// NullFields is a list of field names (e.g. "DownloadUri") to include
4312	// in API requests with the JSON null value. By default, fields with
4313	// empty values are omitted from API requests. However, any field with
4314	// an empty value appearing in NullFields will be sent to the server as
4315	// null. It is an error if a field in this list has a non-empty value.
4316	// This may be used to include null fields in Patch requests.
4317	NullFields []string `json:"-"`
4318}
4319
4320func (s *GoogleCloudApigeeV1GenerateDownloadUrlResponse) MarshalJSON() ([]byte, error) {
4321	type NoMethod GoogleCloudApigeeV1GenerateDownloadUrlResponse
4322	raw := NoMethod(*s)
4323	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4324}
4325
4326// GoogleCloudApigeeV1GenerateUploadUrlRequest: Request for
4327// GenerateUploadUrl method.
4328type GoogleCloudApigeeV1GenerateUploadUrlRequest struct {
4329}
4330
4331// GoogleCloudApigeeV1GenerateUploadUrlResponse: Response for
4332// GenerateUploadUrl method.
4333type GoogleCloudApigeeV1GenerateUploadUrlResponse struct {
4334	// UploadUri: The Google Cloud Storage signed URL that can be used to
4335	// upload a new Archive zip file.
4336	UploadUri string `json:"uploadUri,omitempty"`
4337
4338	// ServerResponse contains the HTTP response code and headers from the
4339	// server.
4340	googleapi.ServerResponse `json:"-"`
4341
4342	// ForceSendFields is a list of field names (e.g. "UploadUri") to
4343	// unconditionally include in API requests. By default, fields with
4344	// empty or default values are omitted from API requests. However, any
4345	// non-pointer, non-interface field appearing in ForceSendFields will be
4346	// sent to the server regardless of whether the field is empty or not.
4347	// This may be used to include empty fields in Patch requests.
4348	ForceSendFields []string `json:"-"`
4349
4350	// NullFields is a list of field names (e.g. "UploadUri") to include in
4351	// API requests with the JSON null value. By default, fields with empty
4352	// values are omitted from API requests. However, any field with an
4353	// empty value appearing in NullFields will be sent to the server as
4354	// null. It is an error if a field in this list has a non-empty value.
4355	// This may be used to include null fields in Patch requests.
4356	NullFields []string `json:"-"`
4357}
4358
4359func (s *GoogleCloudApigeeV1GenerateUploadUrlResponse) MarshalJSON() ([]byte, error) {
4360	type NoMethod GoogleCloudApigeeV1GenerateUploadUrlResponse
4361	raw := NoMethod(*s)
4362	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4363}
4364
4365// GoogleCloudApigeeV1GetSyncAuthorizationRequest: Request for
4366// GetSyncAuthorization.
4367type GoogleCloudApigeeV1GetSyncAuthorizationRequest struct {
4368}
4369
4370// GoogleCloudApigeeV1GraphQLOperation: Represents the pairing of
4371// GraphQL operation types and the GraphQL operation name.
4372type GoogleCloudApigeeV1GraphQLOperation struct {
4373	// Operation: GraphQL operation name. The name and operation type will
4374	// be used to apply quotas. If no name is specified, the quota will be
4375	// applied to all GraphQL operations irrespective of their operation
4376	// names in the payload.
4377	Operation string `json:"operation,omitempty"`
4378
4379	// OperationTypes: Required. GraphQL operation types. Valid values
4380	// include `query` or `mutation`. **Note**: Apigee does not currently
4381	// support `subscription` types.
4382	OperationTypes []string `json:"operationTypes,omitempty"`
4383
4384	// ForceSendFields is a list of field names (e.g. "Operation") to
4385	// unconditionally include in API requests. By default, fields with
4386	// empty or default values are omitted from API requests. However, any
4387	// non-pointer, non-interface field appearing in ForceSendFields will be
4388	// sent to the server regardless of whether the field is empty or not.
4389	// This may be used to include empty fields in Patch requests.
4390	ForceSendFields []string `json:"-"`
4391
4392	// NullFields is a list of field names (e.g. "Operation") 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 *GoogleCloudApigeeV1GraphQLOperation) MarshalJSON() ([]byte, error) {
4402	type NoMethod GoogleCloudApigeeV1GraphQLOperation
4403	raw := NoMethod(*s)
4404	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4405}
4406
4407// GoogleCloudApigeeV1GraphQLOperationConfig: Binds the resources in a
4408// proxy or remote service with the GraphQL operation and its associated
4409// quota enforcement.
4410type GoogleCloudApigeeV1GraphQLOperationConfig struct {
4411	// ApiSource: Required. Name of the API proxy endpoint or remote service
4412	// with which the GraphQL operation and quota are associated.
4413	ApiSource string `json:"apiSource,omitempty"`
4414
4415	// Attributes: Custom attributes associated with the operation.
4416	Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
4417
4418	// Operations: Required. List of GraphQL name/operation type pairs for
4419	// the proxy or remote service to which quota will be applied. If only
4420	// operation types are specified, the quota will be applied to all
4421	// GraphQL requests irrespective of the GraphQL name. **Note**:
4422	// Currently, you can specify only a single GraphQLOperation. Specifying
4423	// more than one will cause the operation to fail.
4424	Operations []*GoogleCloudApigeeV1GraphQLOperation `json:"operations,omitempty"`
4425
4426	// Quota: Quota parameters to be enforced for the resources, methods,
4427	// and API source combination. If none are specified, quota enforcement
4428	// will not be done.
4429	Quota *GoogleCloudApigeeV1Quota `json:"quota,omitempty"`
4430
4431	// ForceSendFields is a list of field names (e.g. "ApiSource") to
4432	// unconditionally include in API requests. By default, fields with
4433	// empty or default values are omitted from API requests. However, any
4434	// non-pointer, non-interface field appearing in ForceSendFields will be
4435	// sent to the server regardless of whether the field is empty or not.
4436	// This may be used to include empty fields in Patch requests.
4437	ForceSendFields []string `json:"-"`
4438
4439	// NullFields is a list of field names (e.g. "ApiSource") to include in
4440	// API requests with the JSON null value. By default, fields with empty
4441	// values are omitted from API requests. However, any field with an
4442	// empty value appearing in NullFields will be sent to the server as
4443	// null. It is an error if a field in this list has a non-empty value.
4444	// This may be used to include null fields in Patch requests.
4445	NullFields []string `json:"-"`
4446}
4447
4448func (s *GoogleCloudApigeeV1GraphQLOperationConfig) MarshalJSON() ([]byte, error) {
4449	type NoMethod GoogleCloudApigeeV1GraphQLOperationConfig
4450	raw := NoMethod(*s)
4451	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4452}
4453
4454// GoogleCloudApigeeV1GraphQLOperationGroup: List of graphQL operation
4455// configuration details associated with Apigee API proxies or remote
4456// services. Remote services are non-Apigee proxies, such as
4457// Istio-Envoy.
4458type GoogleCloudApigeeV1GraphQLOperationGroup struct {
4459	// OperationConfigType: Flag that specifies whether the configuration is
4460	// for Apigee API proxy or a remote service. Valid values include
4461	// `proxy` or `remoteservice`. Defaults to `proxy`. Set to `proxy` when
4462	// Apigee API proxies are associated with the API product. Set to
4463	// `remoteservice` when non-Apigee proxies like Istio-Envoy are
4464	// associated with the API product.
4465	OperationConfigType string `json:"operationConfigType,omitempty"`
4466
4467	// OperationConfigs: Required. List of operation configurations for
4468	// either Apigee API proxies or other remote services that are
4469	// associated with this API product.
4470	OperationConfigs []*GoogleCloudApigeeV1GraphQLOperationConfig `json:"operationConfigs,omitempty"`
4471
4472	// ForceSendFields is a list of field names (e.g. "OperationConfigType")
4473	// to unconditionally include in API requests. By default, fields with
4474	// empty or default values are omitted from API requests. However, any
4475	// non-pointer, non-interface field appearing in ForceSendFields will be
4476	// sent to the server regardless of whether the field is empty or not.
4477	// This may be used to include empty fields in Patch requests.
4478	ForceSendFields []string `json:"-"`
4479
4480	// NullFields is a list of field names (e.g. "OperationConfigType") to
4481	// include in API requests with the JSON null value. By default, fields
4482	// with empty values are omitted from API requests. However, any field
4483	// with an empty value appearing in NullFields will be sent to the
4484	// server as null. It is an error if a field in this list has a
4485	// non-empty value. This may be used to include null fields in Patch
4486	// requests.
4487	NullFields []string `json:"-"`
4488}
4489
4490func (s *GoogleCloudApigeeV1GraphQLOperationGroup) MarshalJSON() ([]byte, error) {
4491	type NoMethod GoogleCloudApigeeV1GraphQLOperationGroup
4492	raw := NoMethod(*s)
4493	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4494}
4495
4496type GoogleCloudApigeeV1IngressConfig struct {
4497	// EnvironmentGroups: List of environment groups in the organization.
4498	EnvironmentGroups []*GoogleCloudApigeeV1EnvironmentGroupConfig `json:"environmentGroups,omitempty"`
4499
4500	// Name: Name of the resource in the following format:
4501	// `organizations/{org}/deployedIngressConfig`.
4502	Name string `json:"name,omitempty"`
4503
4504	// RevisionCreateTime: Time at which the IngressConfig revision was
4505	// created.
4506	RevisionCreateTime string `json:"revisionCreateTime,omitempty"`
4507
4508	// RevisionId: Revision id that defines the ordering on IngressConfig
4509	// resources. The higher the revision, the more recently the
4510	// configuration was deployed.
4511	RevisionId int64 `json:"revisionId,omitempty,string"`
4512
4513	// Uid: A unique id for the ingress config that will only change if the
4514	// organization is deleted and recreated.
4515	Uid string `json:"uid,omitempty"`
4516
4517	// ServerResponse contains the HTTP response code and headers from the
4518	// server.
4519	googleapi.ServerResponse `json:"-"`
4520
4521	// ForceSendFields is a list of field names (e.g. "EnvironmentGroups")
4522	// to unconditionally include in API requests. By default, fields with
4523	// empty or default values are omitted from API requests. However, any
4524	// non-pointer, non-interface field appearing in ForceSendFields will be
4525	// sent to the server regardless of whether the field is empty or not.
4526	// This may be used to include empty fields in Patch requests.
4527	ForceSendFields []string `json:"-"`
4528
4529	// NullFields is a list of field names (e.g. "EnvironmentGroups") to
4530	// include in API requests with the JSON null value. By default, fields
4531	// with empty values are omitted from API requests. However, any field
4532	// with an empty value appearing in NullFields will be sent to the
4533	// server as null. It is an error if a field in this list has a
4534	// non-empty value. This may be used to include null fields in Patch
4535	// requests.
4536	NullFields []string `json:"-"`
4537}
4538
4539func (s *GoogleCloudApigeeV1IngressConfig) MarshalJSON() ([]byte, error) {
4540	type NoMethod GoogleCloudApigeeV1IngressConfig
4541	raw := NoMethod(*s)
4542	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4543}
4544
4545// GoogleCloudApigeeV1Instance: Apigee runtime instance.
4546type GoogleCloudApigeeV1Instance struct {
4547	// CreatedAt: Output only. Time the instance was created in milliseconds
4548	// since epoch.
4549	CreatedAt int64 `json:"createdAt,omitempty,string"`
4550
4551	// Description: Optional. Description of the instance.
4552	Description string `json:"description,omitempty"`
4553
4554	// DiskEncryptionKeyName: Customer Managed Encryption Key (CMEK) used
4555	// for disk and volume encryption. Required for Apigee paid
4556	// subscriptions only. Use the following format:
4557	// `projects/([^/]+)/locations/([^/]+)/keyRings/([^/]+)/cryptoKeys/([^/]+
4558	// )`
4559	DiskEncryptionKeyName string `json:"diskEncryptionKeyName,omitempty"`
4560
4561	// DisplayName: Optional. Display name for the instance.
4562	DisplayName string `json:"displayName,omitempty"`
4563
4564	// Host: Output only. Internal hostname or IP address of the Apigee
4565	// endpoint used by clients to connect to the service.
4566	Host string `json:"host,omitempty"`
4567
4568	// LastModifiedAt: Output only. Time the instance was last modified in
4569	// milliseconds since epoch.
4570	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
4571
4572	// Location: Required. Compute Engine location where the instance
4573	// resides.
4574	Location string `json:"location,omitempty"`
4575
4576	// Name: Required. Resource ID of the instance. Values must match the
4577	// regular expression `^a-z{0,30}[a-z\d]$`.
4578	Name string `json:"name,omitempty"`
4579
4580	// PeeringCidrRange: Optional. Size of the CIDR block range that will be
4581	// reserved by the instance. PAID organizations support `SLASH_16` to
4582	// `SLASH_20` and defaults to `SLASH_16`. Evaluation organizations
4583	// support only `SLASH_23`.
4584	//
4585	// Possible values:
4586	//   "CIDR_RANGE_UNSPECIFIED" - Range not specified.
4587	//   "SLASH_16" - `/16` CIDR range.
4588	//   "SLASH_17" - `/17` CIDR range.
4589	//   "SLASH_18" - `/18` CIDR range.
4590	//   "SLASH_19" - `/19` CIDR range.
4591	//   "SLASH_20" - `/20` CIDR range.
4592	//   "SLASH_22" - `/22` CIDR range. Supported for evaluation only.
4593	//   "SLASH_23" - `/23` CIDR range. Supported for evaluation only.
4594	PeeringCidrRange string `json:"peeringCidrRange,omitempty"`
4595
4596	// Port: Output only. Port number of the exposed Apigee endpoint.
4597	Port string `json:"port,omitempty"`
4598
4599	// State: Output only. State of the instance. Values other than `ACTIVE`
4600	// means the resource is not ready to use.
4601	//
4602	// Possible values:
4603	//   "STATE_UNSPECIFIED" - Resource is in an unspecified state.
4604	//   "CREATING" - Resource is being created.
4605	//   "ACTIVE" - Resource is provisioned and ready to use.
4606	//   "DELETING" - The resource is being deleted.
4607	//   "UPDATING" - The resource is being updated.
4608	State string `json:"state,omitempty"`
4609
4610	// ServerResponse contains the HTTP response code and headers from the
4611	// server.
4612	googleapi.ServerResponse `json:"-"`
4613
4614	// ForceSendFields is a list of field names (e.g. "CreatedAt") to
4615	// unconditionally include in API requests. By default, fields with
4616	// empty or default values are omitted from API requests. However, any
4617	// non-pointer, non-interface field appearing in ForceSendFields will be
4618	// sent to the server regardless of whether the field is empty or not.
4619	// This may be used to include empty fields in Patch requests.
4620	ForceSendFields []string `json:"-"`
4621
4622	// NullFields is a list of field names (e.g. "CreatedAt") to include in
4623	// API requests with the JSON null value. By default, fields with empty
4624	// values are omitted from API requests. However, any field with an
4625	// empty value appearing in NullFields will be sent to the server as
4626	// null. It is an error if a field in this list has a non-empty value.
4627	// This may be used to include null fields in Patch requests.
4628	NullFields []string `json:"-"`
4629}
4630
4631func (s *GoogleCloudApigeeV1Instance) MarshalJSON() ([]byte, error) {
4632	type NoMethod GoogleCloudApigeeV1Instance
4633	raw := NoMethod(*s)
4634	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4635}
4636
4637// GoogleCloudApigeeV1InstanceAttachment: InstanceAttachment represents
4638// the installation of an environment onto an instance.
4639type GoogleCloudApigeeV1InstanceAttachment struct {
4640	// CreatedAt: Output only. Time the attachment was created in
4641	// milliseconds since epoch.
4642	CreatedAt int64 `json:"createdAt,omitempty,string"`
4643
4644	// Environment: ID of the attached environment.
4645	Environment string `json:"environment,omitempty"`
4646
4647	// Name: Output only. ID of the attachment.
4648	Name string `json:"name,omitempty"`
4649
4650	// ServerResponse contains the HTTP response code and headers from the
4651	// server.
4652	googleapi.ServerResponse `json:"-"`
4653
4654	// ForceSendFields is a list of field names (e.g. "CreatedAt") to
4655	// unconditionally include in API requests. By default, fields with
4656	// empty or default values are omitted from API requests. However, any
4657	// non-pointer, non-interface field appearing in ForceSendFields will be
4658	// sent to the server regardless of whether the field is empty or not.
4659	// This may be used to include empty fields in Patch requests.
4660	ForceSendFields []string `json:"-"`
4661
4662	// NullFields is a list of field names (e.g. "CreatedAt") to include in
4663	// API requests with the JSON null value. By default, fields with empty
4664	// values are omitted from API requests. However, any field with an
4665	// empty value appearing in NullFields will be sent to the server as
4666	// null. It is an error if a field in this list has a non-empty value.
4667	// This may be used to include null fields in Patch requests.
4668	NullFields []string `json:"-"`
4669}
4670
4671func (s *GoogleCloudApigeeV1InstanceAttachment) MarshalJSON() ([]byte, error) {
4672	type NoMethod GoogleCloudApigeeV1InstanceAttachment
4673	raw := NoMethod(*s)
4674	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4675}
4676
4677// GoogleCloudApigeeV1InstanceDeploymentStatus: The status of a
4678// deployment as reported by a single instance.
4679type GoogleCloudApigeeV1InstanceDeploymentStatus struct {
4680	// DeployedRevisions: Revisions currently deployed in MPs.
4681	DeployedRevisions []*GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRevision `json:"deployedRevisions,omitempty"`
4682
4683	// DeployedRoutes: Current routes deployed in the ingress routing table.
4684	// A route which is missing will appear in `missing_routes`.
4685	DeployedRoutes []*GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRoute `json:"deployedRoutes,omitempty"`
4686
4687	// Instance: ID of the instance reporting the status.
4688	Instance string `json:"instance,omitempty"`
4689
4690	// ForceSendFields is a list of field names (e.g. "DeployedRevisions")
4691	// to unconditionally include in API requests. By default, fields with
4692	// empty or default values are omitted from API requests. However, any
4693	// non-pointer, non-interface field appearing in ForceSendFields will be
4694	// sent to the server regardless of whether the field is empty or not.
4695	// This may be used to include empty fields in Patch requests.
4696	ForceSendFields []string `json:"-"`
4697
4698	// NullFields is a list of field names (e.g. "DeployedRevisions") to
4699	// include in API requests with the JSON null value. By default, fields
4700	// with empty values are omitted from API requests. However, any field
4701	// with an empty value appearing in NullFields will be sent to the
4702	// server as null. It is an error if a field in this list has a
4703	// non-empty value. This may be used to include null fields in Patch
4704	// requests.
4705	NullFields []string `json:"-"`
4706}
4707
4708func (s *GoogleCloudApigeeV1InstanceDeploymentStatus) MarshalJSON() ([]byte, error) {
4709	type NoMethod GoogleCloudApigeeV1InstanceDeploymentStatus
4710	raw := NoMethod(*s)
4711	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4712}
4713
4714// GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRevision:
4715// Revisions deployed in the MPs.
4716type GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRevision struct {
4717	// Percentage: Percentage of MP replicas reporting this revision.
4718	Percentage int64 `json:"percentage,omitempty"`
4719
4720	// Revision: API proxy revision reported as deployed.
4721	Revision string `json:"revision,omitempty"`
4722
4723	// ForceSendFields is a list of field names (e.g. "Percentage") to
4724	// unconditionally include in API requests. By default, fields with
4725	// empty or default values are omitted from API requests. However, any
4726	// non-pointer, non-interface field appearing in ForceSendFields will be
4727	// sent to the server regardless of whether the field is empty or not.
4728	// This may be used to include empty fields in Patch requests.
4729	ForceSendFields []string `json:"-"`
4730
4731	// NullFields is a list of field names (e.g. "Percentage") to include in
4732	// API requests with the JSON null value. By default, fields with empty
4733	// values are omitted from API requests. However, any field with an
4734	// empty value appearing in NullFields will be sent to the server as
4735	// null. It is an error if a field in this list has a non-empty value.
4736	// This may be used to include null fields in Patch requests.
4737	NullFields []string `json:"-"`
4738}
4739
4740func (s *GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRevision) MarshalJSON() ([]byte, error) {
4741	type NoMethod GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRevision
4742	raw := NoMethod(*s)
4743	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4744}
4745
4746// GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRoute: Route
4747// deployed in the ingress routing table.
4748type GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRoute struct {
4749	// Basepath: Base path in the routing table.
4750	Basepath string `json:"basepath,omitempty"`
4751
4752	// Envgroup: Environment group where this route is installed.
4753	Envgroup string `json:"envgroup,omitempty"`
4754
4755	// Environment: Destination environment. This will be empty if the route
4756	// is not yet reported.
4757	Environment string `json:"environment,omitempty"`
4758
4759	// Percentage: Percentage of ingress replicas reporting this route.
4760	Percentage int64 `json:"percentage,omitempty"`
4761
4762	// ForceSendFields is a list of field names (e.g. "Basepath") to
4763	// unconditionally include in API requests. By default, fields with
4764	// empty or default values are omitted from API requests. However, any
4765	// non-pointer, non-interface field appearing in ForceSendFields will be
4766	// sent to the server regardless of whether the field is empty or not.
4767	// This may be used to include empty fields in Patch requests.
4768	ForceSendFields []string `json:"-"`
4769
4770	// NullFields is a list of field names (e.g. "Basepath") to include in
4771	// API requests with the JSON null value. By default, fields with empty
4772	// values are omitted from API requests. However, any field with an
4773	// empty value appearing in NullFields will be sent to the server as
4774	// null. It is an error if a field in this list has a non-empty value.
4775	// This may be used to include null fields in Patch requests.
4776	NullFields []string `json:"-"`
4777}
4778
4779func (s *GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRoute) MarshalJSON() ([]byte, error) {
4780	type NoMethod GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRoute
4781	raw := NoMethod(*s)
4782	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4783}
4784
4785type GoogleCloudApigeeV1KeyAliasReference struct {
4786	// AliasId: Alias ID. Must exist in the keystore referred to by the
4787	// reference.
4788	AliasId string `json:"aliasId,omitempty"`
4789
4790	// Reference: Reference name in the following format:
4791	// `organizations/{org}/environments/{env}/references/{reference}`
4792	Reference string `json:"reference,omitempty"`
4793
4794	// ForceSendFields is a list of field names (e.g. "AliasId") to
4795	// unconditionally include in API requests. By default, fields with
4796	// empty or default values are omitted from API requests. However, any
4797	// non-pointer, non-interface field appearing in ForceSendFields will be
4798	// sent to the server regardless of whether the field is empty or not.
4799	// This may be used to include empty fields in Patch requests.
4800	ForceSendFields []string `json:"-"`
4801
4802	// NullFields is a list of field names (e.g. "AliasId") to include in
4803	// API 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 *GoogleCloudApigeeV1KeyAliasReference) MarshalJSON() ([]byte, error) {
4812	type NoMethod GoogleCloudApigeeV1KeyAliasReference
4813	raw := NoMethod(*s)
4814	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4815}
4816
4817// GoogleCloudApigeeV1KeyValueMap: A collection of key, value string
4818// pairs
4819type GoogleCloudApigeeV1KeyValueMap struct {
4820	// Encrypted: Optional. If `true` entry values will be encrypted.
4821	Encrypted bool `json:"encrypted,omitempty"`
4822
4823	// Name: Required. The id of the key value map.
4824	Name string `json:"name,omitempty"`
4825
4826	// ServerResponse contains the HTTP response code and headers from the
4827	// server.
4828	googleapi.ServerResponse `json:"-"`
4829
4830	// ForceSendFields is a list of field names (e.g. "Encrypted") to
4831	// unconditionally include in API requests. By default, fields with
4832	// empty or default values are omitted from API requests. However, any
4833	// non-pointer, non-interface field appearing in ForceSendFields will be
4834	// sent to the server regardless of whether the field is empty or not.
4835	// This may be used to include empty fields in Patch requests.
4836	ForceSendFields []string `json:"-"`
4837
4838	// NullFields is a list of field names (e.g. "Encrypted") to include in
4839	// API requests with the JSON null value. By default, fields with empty
4840	// values are omitted from API requests. However, any field with an
4841	// empty value appearing in NullFields will be sent to the server as
4842	// null. It is an error if a field in this list has a non-empty value.
4843	// This may be used to include null fields in Patch requests.
4844	NullFields []string `json:"-"`
4845}
4846
4847func (s *GoogleCloudApigeeV1KeyValueMap) MarshalJSON() ([]byte, error) {
4848	type NoMethod GoogleCloudApigeeV1KeyValueMap
4849	raw := NoMethod(*s)
4850	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4851}
4852
4853// GoogleCloudApigeeV1Keystore: Datastore for Certificates and Aliases.
4854type GoogleCloudApigeeV1Keystore struct {
4855	// Aliases: Output only. Aliases in this keystore.
4856	Aliases []string `json:"aliases,omitempty"`
4857
4858	// Name: Required. Resource ID for this keystore. Values must match the
4859	// regular expression `[\w[:space:]-.]{1,255}`.
4860	Name string `json:"name,omitempty"`
4861
4862	// ServerResponse contains the HTTP response code and headers from the
4863	// server.
4864	googleapi.ServerResponse `json:"-"`
4865
4866	// ForceSendFields is a list of field names (e.g. "Aliases") to
4867	// unconditionally include in API requests. By default, fields with
4868	// empty or default values are omitted from API requests. However, any
4869	// non-pointer, non-interface field appearing in ForceSendFields will be
4870	// sent to the server regardless of whether the field is empty or not.
4871	// This may be used to include empty fields in Patch requests.
4872	ForceSendFields []string `json:"-"`
4873
4874	// NullFields is a list of field names (e.g. "Aliases") to include in
4875	// API requests with the JSON null value. By default, fields with empty
4876	// values are omitted from API requests. However, any field with an
4877	// empty value appearing in NullFields will be sent to the server as
4878	// null. It is an error if a field in this list has a non-empty value.
4879	// This may be used to include null fields in Patch requests.
4880	NullFields []string `json:"-"`
4881}
4882
4883func (s *GoogleCloudApigeeV1Keystore) MarshalJSON() ([]byte, error) {
4884	type NoMethod GoogleCloudApigeeV1Keystore
4885	raw := NoMethod(*s)
4886	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4887}
4888
4889type GoogleCloudApigeeV1KeystoreConfig struct {
4890	// Aliases: Aliases in the keystore.
4891	Aliases []*GoogleCloudApigeeV1AliasRevisionConfig `json:"aliases,omitempty"`
4892
4893	// Name: Resource name in the following format:
4894	// `organizations/{org}/environments/{env}/keystores/{keystore}`
4895	Name string `json:"name,omitempty"`
4896
4897	// ForceSendFields is a list of field names (e.g. "Aliases") to
4898	// unconditionally include in API requests. By default, fields with
4899	// empty or default values are omitted from API requests. However, any
4900	// non-pointer, non-interface field appearing in ForceSendFields will be
4901	// sent to the server regardless of whether the field is empty or not.
4902	// This may be used to include empty fields in Patch requests.
4903	ForceSendFields []string `json:"-"`
4904
4905	// NullFields is a list of field names (e.g. "Aliases") to include in
4906	// API requests with the JSON null value. By default, fields with empty
4907	// values are omitted from API requests. However, any field with an
4908	// empty value appearing in NullFields will be sent to the server as
4909	// null. It is an error if a field in this list has a non-empty value.
4910	// This may be used to include null fields in Patch requests.
4911	NullFields []string `json:"-"`
4912}
4913
4914func (s *GoogleCloudApigeeV1KeystoreConfig) MarshalJSON() ([]byte, error) {
4915	type NoMethod GoogleCloudApigeeV1KeystoreConfig
4916	raw := NoMethod(*s)
4917	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4918}
4919
4920// GoogleCloudApigeeV1ListApiCategoriesResponse: the response for
4921// ListApiCategoriesRequest.
4922type GoogleCloudApigeeV1ListApiCategoriesResponse struct {
4923	// Data: Details of categories.
4924	Data []*GoogleCloudApigeeV1ApiCategoryData `json:"data,omitempty"`
4925
4926	// ErrorCode: ID that can be used to find errors in the log files.
4927	ErrorCode string `json:"errorCode,omitempty"`
4928
4929	// Message: Description of the operation.
4930	Message string `json:"message,omitempty"`
4931
4932	// RequestId: ID that can be used to find request details in the log
4933	// files.
4934	RequestId string `json:"requestId,omitempty"`
4935
4936	// Status: Status of the operation.
4937	Status string `json:"status,omitempty"`
4938
4939	// ServerResponse contains the HTTP response code and headers from the
4940	// server.
4941	googleapi.ServerResponse `json:"-"`
4942
4943	// ForceSendFields is a list of field names (e.g. "Data") to
4944	// unconditionally include in API requests. By default, fields with
4945	// empty or default values are omitted from API requests. However, any
4946	// non-pointer, non-interface field appearing in ForceSendFields will be
4947	// sent to the server regardless of whether the field is empty or not.
4948	// This may be used to include empty fields in Patch requests.
4949	ForceSendFields []string `json:"-"`
4950
4951	// NullFields is a list of field names (e.g. "Data") to include in API
4952	// requests with the JSON null value. By default, fields with empty
4953	// values are omitted from API requests. However, any field with an
4954	// empty value appearing in NullFields will be sent to the server as
4955	// null. It is an error if a field in this list has a non-empty value.
4956	// This may be used to include null fields in Patch requests.
4957	NullFields []string `json:"-"`
4958}
4959
4960func (s *GoogleCloudApigeeV1ListApiCategoriesResponse) MarshalJSON() ([]byte, error) {
4961	type NoMethod GoogleCloudApigeeV1ListApiCategoriesResponse
4962	raw := NoMethod(*s)
4963	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4964}
4965
4966type GoogleCloudApigeeV1ListApiProductsResponse struct {
4967	// ApiProduct: Lists all API product names defined for an organization.
4968	ApiProduct []*GoogleCloudApigeeV1ApiProduct `json:"apiProduct,omitempty"`
4969
4970	// ServerResponse contains the HTTP response code and headers from the
4971	// server.
4972	googleapi.ServerResponse `json:"-"`
4973
4974	// ForceSendFields is a list of field names (e.g. "ApiProduct") to
4975	// unconditionally include in API requests. By default, fields with
4976	// empty or default values are omitted from API requests. However, any
4977	// non-pointer, non-interface field appearing in ForceSendFields will be
4978	// sent to the server regardless of whether the field is empty or not.
4979	// This may be used to include empty fields in Patch requests.
4980	ForceSendFields []string `json:"-"`
4981
4982	// NullFields is a list of field names (e.g. "ApiProduct") to include in
4983	// API requests with the JSON null value. By default, fields with empty
4984	// values are omitted from API requests. However, any field with an
4985	// empty value appearing in NullFields will be sent to the server as
4986	// null. It is an error if a field in this list has a non-empty value.
4987	// This may be used to include null fields in Patch requests.
4988	NullFields []string `json:"-"`
4989}
4990
4991func (s *GoogleCloudApigeeV1ListApiProductsResponse) MarshalJSON() ([]byte, error) {
4992	type NoMethod GoogleCloudApigeeV1ListApiProductsResponse
4993	raw := NoMethod(*s)
4994	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4995}
4996
4997type GoogleCloudApigeeV1ListApiProxiesResponse struct {
4998	Proxies []*GoogleCloudApigeeV1ApiProxy `json:"proxies,omitempty"`
4999
5000	// ServerResponse contains the HTTP response code and headers from the
5001	// server.
5002	googleapi.ServerResponse `json:"-"`
5003
5004	// ForceSendFields is a list of field names (e.g. "Proxies") to
5005	// unconditionally include in API requests. By default, fields with
5006	// empty or default values are omitted from API requests. However, any
5007	// non-pointer, non-interface field appearing in ForceSendFields will be
5008	// sent to the server regardless of whether the field is empty or not.
5009	// This may be used to include empty fields in Patch requests.
5010	ForceSendFields []string `json:"-"`
5011
5012	// NullFields is a list of field names (e.g. "Proxies") to include in
5013	// API requests with the JSON null value. By default, fields with empty
5014	// values are omitted from API requests. However, any field with an
5015	// empty value appearing in NullFields will be sent to the server as
5016	// null. It is an error if a field in this list has a non-empty value.
5017	// This may be used to include null fields in Patch requests.
5018	NullFields []string `json:"-"`
5019}
5020
5021func (s *GoogleCloudApigeeV1ListApiProxiesResponse) MarshalJSON() ([]byte, error) {
5022	type NoMethod GoogleCloudApigeeV1ListApiProxiesResponse
5023	raw := NoMethod(*s)
5024	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5025}
5026
5027type GoogleCloudApigeeV1ListAppsResponse struct {
5028	App []*GoogleCloudApigeeV1App `json:"app,omitempty"`
5029
5030	// ServerResponse contains the HTTP response code and headers from the
5031	// server.
5032	googleapi.ServerResponse `json:"-"`
5033
5034	// ForceSendFields is a list of field names (e.g. "App") to
5035	// unconditionally include in API requests. By default, fields with
5036	// empty or default values are omitted from API requests. However, any
5037	// non-pointer, non-interface field appearing in ForceSendFields will be
5038	// sent to the server regardless of whether the field is empty or not.
5039	// This may be used to include empty fields in Patch requests.
5040	ForceSendFields []string `json:"-"`
5041
5042	// NullFields is a list of field names (e.g. "App") to include in API
5043	// requests with the JSON null value. By default, fields with empty
5044	// values are omitted from API requests. However, any field with an
5045	// empty value appearing in NullFields will be sent to the server as
5046	// null. It is an error if a field in this list has a non-empty value.
5047	// This may be used to include null fields in Patch requests.
5048	NullFields []string `json:"-"`
5049}
5050
5051func (s *GoogleCloudApigeeV1ListAppsResponse) MarshalJSON() ([]byte, error) {
5052	type NoMethod GoogleCloudApigeeV1ListAppsResponse
5053	raw := NoMethod(*s)
5054	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5055}
5056
5057// GoogleCloudApigeeV1ListArchiveDeploymentsResponse: Response for
5058// ListArchiveDeployments method.
5059type GoogleCloudApigeeV1ListArchiveDeploymentsResponse struct {
5060	// ArchiveDeployments: Archive Deployments in the specified environment.
5061	ArchiveDeployments []*GoogleCloudApigeeV1ArchiveDeployment `json:"archiveDeployments,omitempty"`
5062
5063	// NextPageToken: Page token that you can include in a
5064	// ListArchiveDeployments request to retrieve the next page. If omitted,
5065	// no subsequent pages exist.
5066	NextPageToken string `json:"nextPageToken,omitempty"`
5067
5068	// ServerResponse contains the HTTP response code and headers from the
5069	// server.
5070	googleapi.ServerResponse `json:"-"`
5071
5072	// ForceSendFields is a list of field names (e.g. "ArchiveDeployments")
5073	// to unconditionally include in API requests. By default, fields with
5074	// empty or default values are omitted from API requests. However, any
5075	// non-pointer, non-interface field appearing in ForceSendFields will be
5076	// sent to the server regardless of whether the field is empty or not.
5077	// This may be used to include empty fields in Patch requests.
5078	ForceSendFields []string `json:"-"`
5079
5080	// NullFields is a list of field names (e.g. "ArchiveDeployments") to
5081	// include in API requests with the JSON null value. By default, fields
5082	// with empty values are omitted from API requests. However, any field
5083	// with an empty value appearing in NullFields will be sent to the
5084	// server as null. It is an error if a field in this list has a
5085	// non-empty value. This may be used to include null fields in Patch
5086	// requests.
5087	NullFields []string `json:"-"`
5088}
5089
5090func (s *GoogleCloudApigeeV1ListArchiveDeploymentsResponse) MarshalJSON() ([]byte, error) {
5091	type NoMethod GoogleCloudApigeeV1ListArchiveDeploymentsResponse
5092	raw := NoMethod(*s)
5093	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5094}
5095
5096// GoogleCloudApigeeV1ListAsyncQueriesResponse: The response for
5097// ListAsyncQueries.
5098type GoogleCloudApigeeV1ListAsyncQueriesResponse struct {
5099	// Queries: The asynchronous queries belong to requested resource name.
5100	Queries []*GoogleCloudApigeeV1AsyncQuery `json:"queries,omitempty"`
5101
5102	// ServerResponse contains the HTTP response code and headers from the
5103	// server.
5104	googleapi.ServerResponse `json:"-"`
5105
5106	// ForceSendFields is a list of field names (e.g. "Queries") to
5107	// unconditionally include in API requests. By default, fields with
5108	// empty or default values are omitted from API requests. However, any
5109	// non-pointer, non-interface field appearing in ForceSendFields will be
5110	// sent to the server regardless of whether the field is empty or not.
5111	// This may be used to include empty fields in Patch requests.
5112	ForceSendFields []string `json:"-"`
5113
5114	// NullFields is a list of field names (e.g. "Queries") to include in
5115	// API requests with the JSON null value. By default, fields with empty
5116	// values are omitted from API requests. However, any field with an
5117	// empty value appearing in NullFields will be sent to the server as
5118	// null. It is an error if a field in this list has a non-empty value.
5119	// This may be used to include null fields in Patch requests.
5120	NullFields []string `json:"-"`
5121}
5122
5123func (s *GoogleCloudApigeeV1ListAsyncQueriesResponse) MarshalJSON() ([]byte, error) {
5124	type NoMethod GoogleCloudApigeeV1ListAsyncQueriesResponse
5125	raw := NoMethod(*s)
5126	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5127}
5128
5129// GoogleCloudApigeeV1ListCustomReportsResponse: This message
5130// encapsulates a list of custom report definitions
5131type GoogleCloudApigeeV1ListCustomReportsResponse struct {
5132	Qualifier []*GoogleCloudApigeeV1CustomReport `json:"qualifier,omitempty"`
5133
5134	// ServerResponse contains the HTTP response code and headers from the
5135	// server.
5136	googleapi.ServerResponse `json:"-"`
5137
5138	// ForceSendFields is a list of field names (e.g. "Qualifier") to
5139	// unconditionally include in API requests. By default, fields with
5140	// empty or default values are omitted from API requests. However, any
5141	// non-pointer, non-interface field appearing in ForceSendFields will be
5142	// sent to the server regardless of whether the field is empty or not.
5143	// This may be used to include empty fields in Patch requests.
5144	ForceSendFields []string `json:"-"`
5145
5146	// NullFields is a list of field names (e.g. "Qualifier") to include in
5147	// API requests with the JSON null value. By default, fields with empty
5148	// values are omitted from API requests. However, any field with an
5149	// empty value appearing in NullFields will be sent to the server as
5150	// null. It is an error if a field in this list has a non-empty value.
5151	// This may be used to include null fields in Patch requests.
5152	NullFields []string `json:"-"`
5153}
5154
5155func (s *GoogleCloudApigeeV1ListCustomReportsResponse) MarshalJSON() ([]byte, error) {
5156	type NoMethod GoogleCloudApigeeV1ListCustomReportsResponse
5157	raw := NoMethod(*s)
5158	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5159}
5160
5161// GoogleCloudApigeeV1ListDataCollectorsResponse: Response for
5162// ListDataCollectors.
5163type GoogleCloudApigeeV1ListDataCollectorsResponse struct {
5164	// DataCollectors: Data collectors in the specified organization.
5165	DataCollectors []*GoogleCloudApigeeV1DataCollector `json:"dataCollectors,omitempty"`
5166
5167	// NextPageToken: Page token that you can include in a
5168	// ListDataCollectors request to retrieve the next page. If omitted, no
5169	// subsequent pages exist.
5170	NextPageToken string `json:"nextPageToken,omitempty"`
5171
5172	// ServerResponse contains the HTTP response code and headers from the
5173	// server.
5174	googleapi.ServerResponse `json:"-"`
5175
5176	// ForceSendFields is a list of field names (e.g. "DataCollectors") to
5177	// unconditionally include in API requests. By default, fields with
5178	// empty or default values are omitted from API requests. However, any
5179	// non-pointer, non-interface field appearing in ForceSendFields will be
5180	// sent to the server regardless of whether the field is empty or not.
5181	// This may be used to include empty fields in Patch requests.
5182	ForceSendFields []string `json:"-"`
5183
5184	// NullFields is a list of field names (e.g. "DataCollectors") to
5185	// include in API requests with the JSON null value. By default, fields
5186	// with empty values are omitted from API requests. However, any field
5187	// with an empty value appearing in NullFields will be sent to the
5188	// server as null. It is an error if a field in this list has a
5189	// non-empty value. This may be used to include null fields in Patch
5190	// requests.
5191	NullFields []string `json:"-"`
5192}
5193
5194func (s *GoogleCloudApigeeV1ListDataCollectorsResponse) MarshalJSON() ([]byte, error) {
5195	type NoMethod GoogleCloudApigeeV1ListDataCollectorsResponse
5196	raw := NoMethod(*s)
5197	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5198}
5199
5200// GoogleCloudApigeeV1ListDatastoresResponse: The response for
5201// ListDatastores
5202type GoogleCloudApigeeV1ListDatastoresResponse struct {
5203	// Datastores: A list of datastores
5204	Datastores []*GoogleCloudApigeeV1Datastore `json:"datastores,omitempty"`
5205
5206	// ServerResponse contains the HTTP response code and headers from the
5207	// server.
5208	googleapi.ServerResponse `json:"-"`
5209
5210	// ForceSendFields is a list of field names (e.g. "Datastores") to
5211	// unconditionally include in API requests. By default, fields with
5212	// empty or default values are omitted from API requests. However, any
5213	// non-pointer, non-interface field appearing in ForceSendFields will be
5214	// sent to the server regardless of whether the field is empty or not.
5215	// This may be used to include empty fields in Patch requests.
5216	ForceSendFields []string `json:"-"`
5217
5218	// NullFields is a list of field names (e.g. "Datastores") to include in
5219	// API requests with the JSON null value. By default, fields with empty
5220	// values are omitted from API requests. However, any field with an
5221	// empty value appearing in NullFields will be sent to the server as
5222	// null. It is an error if a field in this list has a non-empty value.
5223	// This may be used to include null fields in Patch requests.
5224	NullFields []string `json:"-"`
5225}
5226
5227func (s *GoogleCloudApigeeV1ListDatastoresResponse) MarshalJSON() ([]byte, error) {
5228	type NoMethod GoogleCloudApigeeV1ListDatastoresResponse
5229	raw := NoMethod(*s)
5230	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5231}
5232
5233type GoogleCloudApigeeV1ListDebugSessionsResponse struct {
5234	// NextPageToken: Page token that you can include in a
5235	// ListDebugSessionsRequest to retrieve the next page. If omitted, no
5236	// subsequent pages exist.
5237	NextPageToken string `json:"nextPageToken,omitempty"`
5238
5239	// Sessions: Session info that includes debug session ID and the first
5240	// transaction creation timestamp.
5241	Sessions []*GoogleCloudApigeeV1Session `json:"sessions,omitempty"`
5242
5243	// ServerResponse contains the HTTP response code and headers from the
5244	// server.
5245	googleapi.ServerResponse `json:"-"`
5246
5247	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
5248	// unconditionally include in API requests. By default, fields with
5249	// empty or default values are omitted from API requests. However, any
5250	// non-pointer, non-interface field appearing in ForceSendFields will be
5251	// sent to the server regardless of whether the field is empty or not.
5252	// This may be used to include empty fields in Patch requests.
5253	ForceSendFields []string `json:"-"`
5254
5255	// NullFields is a list of field names (e.g. "NextPageToken") to include
5256	// in API requests with the JSON null value. By default, fields with
5257	// empty values are omitted from API requests. However, any field with
5258	// an empty value appearing in NullFields will be sent to the server as
5259	// null. It is an error if a field in this list has a non-empty value.
5260	// This may be used to include null fields in Patch requests.
5261	NullFields []string `json:"-"`
5262}
5263
5264func (s *GoogleCloudApigeeV1ListDebugSessionsResponse) MarshalJSON() ([]byte, error) {
5265	type NoMethod GoogleCloudApigeeV1ListDebugSessionsResponse
5266	raw := NoMethod(*s)
5267	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5268}
5269
5270type GoogleCloudApigeeV1ListDeploymentsResponse struct {
5271	// Deployments: List of deployments.
5272	Deployments []*GoogleCloudApigeeV1Deployment `json:"deployments,omitempty"`
5273
5274	// ServerResponse contains the HTTP response code and headers from the
5275	// server.
5276	googleapi.ServerResponse `json:"-"`
5277
5278	// ForceSendFields is a list of field names (e.g. "Deployments") to
5279	// unconditionally include in API requests. By default, fields with
5280	// empty or default values are omitted from API requests. However, any
5281	// non-pointer, non-interface field appearing in ForceSendFields will be
5282	// sent to the server regardless of whether the field is empty or not.
5283	// This may be used to include empty fields in Patch requests.
5284	ForceSendFields []string `json:"-"`
5285
5286	// NullFields is a list of field names (e.g. "Deployments") to include
5287	// in API requests with the JSON null value. By default, fields with
5288	// empty values are omitted from API requests. However, any field with
5289	// an empty value appearing in NullFields will be sent to the server as
5290	// null. It is an error if a field in this list has a non-empty value.
5291	// This may be used to include null fields in Patch requests.
5292	NullFields []string `json:"-"`
5293}
5294
5295func (s *GoogleCloudApigeeV1ListDeploymentsResponse) MarshalJSON() ([]byte, error) {
5296	type NoMethod GoogleCloudApigeeV1ListDeploymentsResponse
5297	raw := NoMethod(*s)
5298	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5299}
5300
5301type GoogleCloudApigeeV1ListDeveloperAppsResponse struct {
5302	// App: List of developer apps and their credentials.
5303	App []*GoogleCloudApigeeV1DeveloperApp `json:"app,omitempty"`
5304
5305	// ServerResponse contains the HTTP response code and headers from the
5306	// server.
5307	googleapi.ServerResponse `json:"-"`
5308
5309	// ForceSendFields is a list of field names (e.g. "App") to
5310	// unconditionally include in API requests. By default, fields with
5311	// empty or default values are omitted from API requests. However, any
5312	// non-pointer, non-interface field appearing in ForceSendFields will be
5313	// sent to the server regardless of whether the field is empty or not.
5314	// This may be used to include empty fields in Patch requests.
5315	ForceSendFields []string `json:"-"`
5316
5317	// NullFields is a list of field names (e.g. "App") to include in API
5318	// requests with the JSON null value. By default, fields with empty
5319	// values are omitted from API requests. However, any field with an
5320	// empty value appearing in NullFields will be sent to the server as
5321	// null. It is an error if a field in this list has a non-empty value.
5322	// This may be used to include null fields in Patch requests.
5323	NullFields []string `json:"-"`
5324}
5325
5326func (s *GoogleCloudApigeeV1ListDeveloperAppsResponse) MarshalJSON() ([]byte, error) {
5327	type NoMethod GoogleCloudApigeeV1ListDeveloperAppsResponse
5328	raw := NoMethod(*s)
5329	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5330}
5331
5332// GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse: Response for
5333// ListDeveloperSubscriptions.
5334type GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse struct {
5335	// DeveloperSubscriptions: List of all subscriptions.
5336	DeveloperSubscriptions []*GoogleCloudApigeeV1DeveloperSubscription `json:"developerSubscriptions,omitempty"`
5337
5338	// NextStartKey: Value that can be sent as `startKey` to retrieve the
5339	// next page of content. If this field is omitted, there are no
5340	// subsequent pages.
5341	NextStartKey string `json:"nextStartKey,omitempty"`
5342
5343	// ServerResponse contains the HTTP response code and headers from the
5344	// server.
5345	googleapi.ServerResponse `json:"-"`
5346
5347	// ForceSendFields is a list of field names (e.g.
5348	// "DeveloperSubscriptions") to unconditionally include in API requests.
5349	// By default, fields with empty or default values are omitted from API
5350	// requests. However, any non-pointer, non-interface field appearing in
5351	// ForceSendFields will be sent to the server regardless of whether the
5352	// field is empty or not. This may be used to include empty fields in
5353	// Patch requests.
5354	ForceSendFields []string `json:"-"`
5355
5356	// NullFields is a list of field names (e.g. "DeveloperSubscriptions")
5357	// to include in API requests with the JSON null value. By default,
5358	// fields with empty values are omitted from API requests. However, any
5359	// field with an empty value appearing in NullFields will be sent to the
5360	// server as null. It is an error if a field in this list has a
5361	// non-empty value. This may be used to include null fields in Patch
5362	// requests.
5363	NullFields []string `json:"-"`
5364}
5365
5366func (s *GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse) MarshalJSON() ([]byte, error) {
5367	type NoMethod GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse
5368	raw := NoMethod(*s)
5369	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5370}
5371
5372// GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse: Response
5373// for ListEnvironmentGroupAttachments.
5374type GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse struct {
5375	// EnvironmentGroupAttachments: EnvironmentGroupAttachments for the
5376	// specified environment group.
5377	EnvironmentGroupAttachments []*GoogleCloudApigeeV1EnvironmentGroupAttachment `json:"environmentGroupAttachments,omitempty"`
5378
5379	// NextPageToken: Page token that you can include in a
5380	// ListEnvironmentGroupAttachments request to retrieve the next page. If
5381	// omitted, no subsequent pages exist.
5382	NextPageToken string `json:"nextPageToken,omitempty"`
5383
5384	// ServerResponse contains the HTTP response code and headers from the
5385	// server.
5386	googleapi.ServerResponse `json:"-"`
5387
5388	// ForceSendFields is a list of field names (e.g.
5389	// "EnvironmentGroupAttachments") to unconditionally include in API
5390	// requests. By default, fields with empty or default values are omitted
5391	// from API requests. However, any non-pointer, non-interface field
5392	// appearing in ForceSendFields will be sent to the server regardless of
5393	// whether the field is empty or not. This may be used to include empty
5394	// fields in Patch requests.
5395	ForceSendFields []string `json:"-"`
5396
5397	// NullFields is a list of field names (e.g.
5398	// "EnvironmentGroupAttachments") to include in API requests with the
5399	// JSON null value. By default, fields with empty values are omitted
5400	// from API requests. However, any field with an empty value appearing
5401	// in NullFields will be sent to the server as null. It is an error if a
5402	// field in this list has a non-empty value. This may be used to include
5403	// null fields in Patch requests.
5404	NullFields []string `json:"-"`
5405}
5406
5407func (s *GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse) MarshalJSON() ([]byte, error) {
5408	type NoMethod GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse
5409	raw := NoMethod(*s)
5410	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5411}
5412
5413// GoogleCloudApigeeV1ListEnvironmentGroupsResponse: Response for
5414// ListEnvironmentGroups.
5415type GoogleCloudApigeeV1ListEnvironmentGroupsResponse struct {
5416	// EnvironmentGroups: EnvironmentGroups in the specified organization.
5417	EnvironmentGroups []*GoogleCloudApigeeV1EnvironmentGroup `json:"environmentGroups,omitempty"`
5418
5419	// NextPageToken: Page token that you can include in a
5420	// ListEnvironmentGroups request to retrieve the next page. If omitted,
5421	// no subsequent pages exist.
5422	NextPageToken string `json:"nextPageToken,omitempty"`
5423
5424	// ServerResponse contains the HTTP response code and headers from the
5425	// server.
5426	googleapi.ServerResponse `json:"-"`
5427
5428	// ForceSendFields is a list of field names (e.g. "EnvironmentGroups")
5429	// to unconditionally include in API requests. By default, fields with
5430	// empty or default values are omitted from API requests. However, any
5431	// non-pointer, non-interface field appearing in ForceSendFields will be
5432	// sent to the server regardless of whether the field is empty or not.
5433	// This may be used to include empty fields in Patch requests.
5434	ForceSendFields []string `json:"-"`
5435
5436	// NullFields is a list of field names (e.g. "EnvironmentGroups") to
5437	// include in API requests with the JSON null value. By default, fields
5438	// with empty values are omitted from API requests. However, any field
5439	// with an empty value appearing in NullFields will be sent to the
5440	// server as null. It is an error if a field in this list has a
5441	// non-empty value. This may be used to include null fields in Patch
5442	// requests.
5443	NullFields []string `json:"-"`
5444}
5445
5446func (s *GoogleCloudApigeeV1ListEnvironmentGroupsResponse) MarshalJSON() ([]byte, error) {
5447	type NoMethod GoogleCloudApigeeV1ListEnvironmentGroupsResponse
5448	raw := NoMethod(*s)
5449	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5450}
5451
5452// GoogleCloudApigeeV1ListEnvironmentResourcesResponse: Response for
5453// ListEnvironmentResources
5454type GoogleCloudApigeeV1ListEnvironmentResourcesResponse struct {
5455	// ResourceFile: List of resources files.
5456	ResourceFile []*GoogleCloudApigeeV1ResourceFile `json:"resourceFile,omitempty"`
5457
5458	// ServerResponse contains the HTTP response code and headers from the
5459	// server.
5460	googleapi.ServerResponse `json:"-"`
5461
5462	// ForceSendFields is a list of field names (e.g. "ResourceFile") to
5463	// unconditionally include in API requests. By default, fields with
5464	// empty or default values are omitted from API requests. However, any
5465	// non-pointer, non-interface field appearing in ForceSendFields will be
5466	// sent to the server regardless of whether the field is empty or not.
5467	// This may be used to include empty fields in Patch requests.
5468	ForceSendFields []string `json:"-"`
5469
5470	// NullFields is a list of field names (e.g. "ResourceFile") to include
5471	// in API requests with the JSON null value. By default, fields with
5472	// empty values are omitted from API requests. However, any field with
5473	// an empty value appearing in NullFields will be sent to the server as
5474	// null. It is an error if a field in this list has a non-empty value.
5475	// This may be used to include null fields in Patch requests.
5476	NullFields []string `json:"-"`
5477}
5478
5479func (s *GoogleCloudApigeeV1ListEnvironmentResourcesResponse) MarshalJSON() ([]byte, error) {
5480	type NoMethod GoogleCloudApigeeV1ListEnvironmentResourcesResponse
5481	raw := NoMethod(*s)
5482	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5483}
5484
5485// GoogleCloudApigeeV1ListExportsResponse: The response for ListExports
5486type GoogleCloudApigeeV1ListExportsResponse struct {
5487	// Exports: Details of the export jobs.
5488	Exports []*GoogleCloudApigeeV1Export `json:"exports,omitempty"`
5489
5490	// ServerResponse contains the HTTP response code and headers from the
5491	// server.
5492	googleapi.ServerResponse `json:"-"`
5493
5494	// ForceSendFields is a list of field names (e.g. "Exports") to
5495	// unconditionally include in API requests. By default, fields with
5496	// empty or default values are omitted from API requests. However, any
5497	// non-pointer, non-interface field appearing in ForceSendFields will be
5498	// sent to the server regardless of whether the field is empty or not.
5499	// This may be used to include empty fields in Patch requests.
5500	ForceSendFields []string `json:"-"`
5501
5502	// NullFields is a list of field names (e.g. "Exports") to include in
5503	// API requests with the JSON null value. By default, fields with empty
5504	// values are omitted from API requests. However, any field with an
5505	// empty value appearing in NullFields will be sent to the server as
5506	// null. It is an error if a field in this list has a non-empty value.
5507	// This may be used to include null fields in Patch requests.
5508	NullFields []string `json:"-"`
5509}
5510
5511func (s *GoogleCloudApigeeV1ListExportsResponse) MarshalJSON() ([]byte, error) {
5512	type NoMethod GoogleCloudApigeeV1ListExportsResponse
5513	raw := NoMethod(*s)
5514	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5515}
5516
5517type GoogleCloudApigeeV1ListHybridIssuersResponse struct {
5518	// Issuers: Lists of hybrid services and its trusted issuer email ids.
5519	Issuers []*GoogleCloudApigeeV1ServiceIssuersMapping `json:"issuers,omitempty"`
5520
5521	// ServerResponse contains the HTTP response code and headers from the
5522	// server.
5523	googleapi.ServerResponse `json:"-"`
5524
5525	// ForceSendFields is a list of field names (e.g. "Issuers") to
5526	// unconditionally include in API requests. By default, fields with
5527	// empty or default values are omitted from API requests. However, any
5528	// non-pointer, non-interface field appearing in ForceSendFields will be
5529	// sent to the server regardless of whether the field is empty or not.
5530	// This may be used to include empty fields in Patch requests.
5531	ForceSendFields []string `json:"-"`
5532
5533	// NullFields is a list of field names (e.g. "Issuers") to include in
5534	// API requests with the JSON null value. By default, fields with empty
5535	// values are omitted from API requests. However, any field with an
5536	// empty value appearing in NullFields will be sent to the server as
5537	// null. It is an error if a field in this list has a non-empty value.
5538	// This may be used to include null fields in Patch requests.
5539	NullFields []string `json:"-"`
5540}
5541
5542func (s *GoogleCloudApigeeV1ListHybridIssuersResponse) MarshalJSON() ([]byte, error) {
5543	type NoMethod GoogleCloudApigeeV1ListHybridIssuersResponse
5544	raw := NoMethod(*s)
5545	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5546}
5547
5548// GoogleCloudApigeeV1ListInstanceAttachmentsResponse: Response for
5549// ListInstanceAttachments.
5550type GoogleCloudApigeeV1ListInstanceAttachmentsResponse struct {
5551	// Attachments: Attachments for the instance.
5552	Attachments []*GoogleCloudApigeeV1InstanceAttachment `json:"attachments,omitempty"`
5553
5554	// NextPageToken: Page token that you can include in a
5555	// ListInstanceAttachments request to retrieve the next page of content.
5556	// If omitted, no subsequent pages exist.
5557	NextPageToken string `json:"nextPageToken,omitempty"`
5558
5559	// ServerResponse contains the HTTP response code and headers from the
5560	// server.
5561	googleapi.ServerResponse `json:"-"`
5562
5563	// ForceSendFields is a list of field names (e.g. "Attachments") to
5564	// unconditionally include in API requests. By default, fields with
5565	// empty or default values are omitted from API requests. However, any
5566	// non-pointer, non-interface field appearing in ForceSendFields will be
5567	// sent to the server regardless of whether the field is empty or not.
5568	// This may be used to include empty fields in Patch requests.
5569	ForceSendFields []string `json:"-"`
5570
5571	// NullFields is a list of field names (e.g. "Attachments") to include
5572	// in API requests with the JSON null value. By default, fields with
5573	// empty values are omitted from API requests. However, any field with
5574	// an 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 *GoogleCloudApigeeV1ListInstanceAttachmentsResponse) MarshalJSON() ([]byte, error) {
5581	type NoMethod GoogleCloudApigeeV1ListInstanceAttachmentsResponse
5582	raw := NoMethod(*s)
5583	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5584}
5585
5586// GoogleCloudApigeeV1ListInstancesResponse: Response for ListInstances.
5587type GoogleCloudApigeeV1ListInstancesResponse struct {
5588	// Instances: Instances in the specified organization.
5589	Instances []*GoogleCloudApigeeV1Instance `json:"instances,omitempty"`
5590
5591	// NextPageToken: Page token that you can include in a ListInstance
5592	// request to retrieve the next page of content. If omitted, no
5593	// subsequent pages exist.
5594	NextPageToken string `json:"nextPageToken,omitempty"`
5595
5596	// ServerResponse contains the HTTP response code and headers from the
5597	// server.
5598	googleapi.ServerResponse `json:"-"`
5599
5600	// ForceSendFields is a list of field names (e.g. "Instances") to
5601	// unconditionally include in API requests. By default, fields with
5602	// empty or default values are omitted from API requests. However, any
5603	// non-pointer, non-interface field appearing in ForceSendFields will be
5604	// sent to the server regardless of whether the field is empty or not.
5605	// This may be used to include empty fields in Patch requests.
5606	ForceSendFields []string `json:"-"`
5607
5608	// NullFields is a list of field names (e.g. "Instances") to include in
5609	// API 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 *GoogleCloudApigeeV1ListInstancesResponse) MarshalJSON() ([]byte, error) {
5618	type NoMethod GoogleCloudApigeeV1ListInstancesResponse
5619	raw := NoMethod(*s)
5620	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5621}
5622
5623// GoogleCloudApigeeV1ListNatAddressesResponse: Response for
5624// ListNatAddresses.
5625type GoogleCloudApigeeV1ListNatAddressesResponse struct {
5626	// NatAddresses: List of NAT Addresses for the instance.
5627	NatAddresses []*GoogleCloudApigeeV1NatAddress `json:"natAddresses,omitempty"`
5628
5629	// NextPageToken: Page token that you can include in a ListNatAddresses
5630	// request to retrieve the next page of content. If omitted, no
5631	// subsequent pages exist.
5632	NextPageToken string `json:"nextPageToken,omitempty"`
5633
5634	// ServerResponse contains the HTTP response code and headers from the
5635	// server.
5636	googleapi.ServerResponse `json:"-"`
5637
5638	// ForceSendFields is a list of field names (e.g. "NatAddresses") to
5639	// unconditionally include in API requests. By default, fields with
5640	// empty or default values are omitted from API requests. However, any
5641	// non-pointer, non-interface field appearing in ForceSendFields will be
5642	// sent to the server regardless of whether the field is empty or not.
5643	// This may be used to include empty fields in Patch requests.
5644	ForceSendFields []string `json:"-"`
5645
5646	// NullFields is a list of field names (e.g. "NatAddresses") to include
5647	// in API requests with the JSON null value. By default, fields with
5648	// empty values are omitted from API requests. However, any field with
5649	// an empty value appearing in NullFields will be sent to the server as
5650	// null. It is an error if a field in this list has a non-empty value.
5651	// This may be used to include null fields in Patch requests.
5652	NullFields []string `json:"-"`
5653}
5654
5655func (s *GoogleCloudApigeeV1ListNatAddressesResponse) MarshalJSON() ([]byte, error) {
5656	type NoMethod GoogleCloudApigeeV1ListNatAddressesResponse
5657	raw := NoMethod(*s)
5658	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5659}
5660
5661type GoogleCloudApigeeV1ListOfDevelopersResponse struct {
5662	// Developer: List of developers.
5663	Developer []*GoogleCloudApigeeV1Developer `json:"developer,omitempty"`
5664
5665	// ServerResponse contains the HTTP response code and headers from the
5666	// server.
5667	googleapi.ServerResponse `json:"-"`
5668
5669	// ForceSendFields is a list of field names (e.g. "Developer") to
5670	// unconditionally include in API requests. By default, fields with
5671	// empty or default values are omitted from API requests. However, any
5672	// non-pointer, non-interface field appearing in ForceSendFields will be
5673	// sent to the server regardless of whether the field is empty or not.
5674	// This may be used to include empty fields in Patch requests.
5675	ForceSendFields []string `json:"-"`
5676
5677	// NullFields is a list of field names (e.g. "Developer") to include in
5678	// API requests with the JSON null value. By default, fields with empty
5679	// values are omitted from API requests. However, any field with an
5680	// empty value appearing in NullFields will be sent to the server as
5681	// null. It is an error if a field in this list has a non-empty value.
5682	// This may be used to include null fields in Patch requests.
5683	NullFields []string `json:"-"`
5684}
5685
5686func (s *GoogleCloudApigeeV1ListOfDevelopersResponse) MarshalJSON() ([]byte, error) {
5687	type NoMethod GoogleCloudApigeeV1ListOfDevelopersResponse
5688	raw := NoMethod(*s)
5689	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5690}
5691
5692type GoogleCloudApigeeV1ListOrganizationsResponse struct {
5693	// Organizations: List of Apigee organizations and associated GCP
5694	// projects.
5695	Organizations []*GoogleCloudApigeeV1OrganizationProjectMapping `json:"organizations,omitempty"`
5696
5697	// ServerResponse contains the HTTP response code and headers from the
5698	// server.
5699	googleapi.ServerResponse `json:"-"`
5700
5701	// ForceSendFields is a list of field names (e.g. "Organizations") to
5702	// unconditionally include in API requests. By default, fields with
5703	// empty or default values are omitted from API requests. However, any
5704	// non-pointer, non-interface field appearing in ForceSendFields will be
5705	// sent to the server regardless of whether the field is empty or not.
5706	// This may be used to include empty fields in Patch requests.
5707	ForceSendFields []string `json:"-"`
5708
5709	// NullFields is a list of field names (e.g. "Organizations") to include
5710	// in API requests with the JSON null value. By default, fields with
5711	// empty values are omitted from API requests. However, any field with
5712	// an empty value appearing in NullFields will be sent to the server as
5713	// null. It is an error if a field in this list has a non-empty value.
5714	// This may be used to include null fields in Patch requests.
5715	NullFields []string `json:"-"`
5716}
5717
5718func (s *GoogleCloudApigeeV1ListOrganizationsResponse) MarshalJSON() ([]byte, error) {
5719	type NoMethod GoogleCloudApigeeV1ListOrganizationsResponse
5720	raw := NoMethod(*s)
5721	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5722}
5723
5724// GoogleCloudApigeeV1ListRatePlansResponse: Response for ListRatePlans.
5725type GoogleCloudApigeeV1ListRatePlansResponse struct {
5726	// NextStartKey: Value that can be sent as `startKey` to retrieve the
5727	// next page of content. If this field is omitted, there are no
5728	// subsequent pages.
5729	NextStartKey string `json:"nextStartKey,omitempty"`
5730
5731	// RatePlans: List of rate plans in an organization.
5732	RatePlans []*GoogleCloudApigeeV1RatePlan `json:"ratePlans,omitempty"`
5733
5734	// ServerResponse contains the HTTP response code and headers from the
5735	// server.
5736	googleapi.ServerResponse `json:"-"`
5737
5738	// ForceSendFields is a list of field names (e.g. "NextStartKey") to
5739	// unconditionally include in API requests. By default, fields with
5740	// empty or default values are omitted from API requests. However, any
5741	// non-pointer, non-interface field appearing in ForceSendFields will be
5742	// sent to the server regardless of whether the field is empty or not.
5743	// This may be used to include empty fields in Patch requests.
5744	ForceSendFields []string `json:"-"`
5745
5746	// NullFields is a list of field names (e.g. "NextStartKey") to include
5747	// in API requests with the JSON null value. By default, fields with
5748	// empty values are omitted from API requests. However, any field with
5749	// an empty value appearing in NullFields will be sent to the server as
5750	// null. It is an error if a field in this list has a non-empty value.
5751	// This may be used to include null fields in Patch requests.
5752	NullFields []string `json:"-"`
5753}
5754
5755func (s *GoogleCloudApigeeV1ListRatePlansResponse) MarshalJSON() ([]byte, error) {
5756	type NoMethod GoogleCloudApigeeV1ListRatePlansResponse
5757	raw := NoMethod(*s)
5758	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5759}
5760
5761type GoogleCloudApigeeV1ListSharedFlowsResponse struct {
5762	SharedFlows []*GoogleCloudApigeeV1SharedFlow `json:"sharedFlows,omitempty"`
5763
5764	// ServerResponse contains the HTTP response code and headers from the
5765	// server.
5766	googleapi.ServerResponse `json:"-"`
5767
5768	// ForceSendFields is a list of field names (e.g. "SharedFlows") to
5769	// unconditionally include in API requests. By default, fields with
5770	// empty or default values are omitted from API requests. However, any
5771	// non-pointer, non-interface field appearing in ForceSendFields will be
5772	// sent to the server regardless of whether the field is empty or not.
5773	// This may be used to include empty fields in Patch requests.
5774	ForceSendFields []string `json:"-"`
5775
5776	// NullFields is a list of field names (e.g. "SharedFlows") to include
5777	// in API requests with the JSON null value. By default, fields with
5778	// empty values are omitted from API requests. However, any field with
5779	// an empty value appearing in NullFields will be sent to the server as
5780	// null. It is an error if a field in this list has a non-empty value.
5781	// This may be used to include null fields in Patch requests.
5782	NullFields []string `json:"-"`
5783}
5784
5785func (s *GoogleCloudApigeeV1ListSharedFlowsResponse) MarshalJSON() ([]byte, error) {
5786	type NoMethod GoogleCloudApigeeV1ListSharedFlowsResponse
5787	raw := NoMethod(*s)
5788	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5789}
5790
5791// GoogleCloudApigeeV1ListTraceConfigOverridesResponse: Response for
5792// ListTraceConfigOverrides.
5793type GoogleCloudApigeeV1ListTraceConfigOverridesResponse struct {
5794	// NextPageToken: Token value that can be passed as `page_token` to
5795	// retrieve the next page of content.
5796	NextPageToken string `json:"nextPageToken,omitempty"`
5797
5798	// TraceConfigOverrides: List all trace configuration overrides in an
5799	// environment.
5800	TraceConfigOverrides []*GoogleCloudApigeeV1TraceConfigOverride `json:"traceConfigOverrides,omitempty"`
5801
5802	// ServerResponse contains the HTTP response code and headers from the
5803	// server.
5804	googleapi.ServerResponse `json:"-"`
5805
5806	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
5807	// unconditionally include in API requests. By default, fields with
5808	// empty or default values are omitted from API requests. However, any
5809	// non-pointer, non-interface field appearing in ForceSendFields will be
5810	// sent to the server regardless of whether the field is empty or not.
5811	// This may be used to include empty fields in Patch requests.
5812	ForceSendFields []string `json:"-"`
5813
5814	// NullFields is a list of field names (e.g. "NextPageToken") to include
5815	// in API requests with the JSON null value. By default, fields with
5816	// empty values are omitted from API requests. However, any field with
5817	// an empty value appearing in NullFields will be sent to the server as
5818	// null. It is an error if a field in this list has a non-empty value.
5819	// This may be used to include null fields in Patch requests.
5820	NullFields []string `json:"-"`
5821}
5822
5823func (s *GoogleCloudApigeeV1ListTraceConfigOverridesResponse) MarshalJSON() ([]byte, error) {
5824	type NoMethod GoogleCloudApigeeV1ListTraceConfigOverridesResponse
5825	raw := NoMethod(*s)
5826	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5827}
5828
5829// GoogleCloudApigeeV1Metadata: This message type encapsulates
5830// additional information about query execution.
5831type GoogleCloudApigeeV1Metadata struct {
5832	// Errors: List of error messages as strings.
5833	Errors []string `json:"errors,omitempty"`
5834
5835	// Notices: List of additional information such as data source, if
5836	// result was truncated etc. E.g "notices": [ "Source:Postgres", "PG
5837	// Host:uappg0rw.e2e.apigeeks.net", "query served
5838	// by:4b64601e-40de-4eb1-bfb9-eeee7ac929ed", "Table used:
5839	// edge.api.uapgroup2.agg_api" ]
5840	Notices []string `json:"notices,omitempty"`
5841
5842	// ForceSendFields is a list of field names (e.g. "Errors") to
5843	// unconditionally include in API requests. By default, fields with
5844	// empty or default values are omitted from API requests. However, any
5845	// non-pointer, non-interface field appearing in ForceSendFields will be
5846	// sent to the server regardless of whether the field is empty or not.
5847	// This may be used to include empty fields in Patch requests.
5848	ForceSendFields []string `json:"-"`
5849
5850	// NullFields is a list of field names (e.g. "Errors") to include in API
5851	// requests with the JSON null value. By default, fields with empty
5852	// values are omitted from API requests. However, any field with an
5853	// empty value appearing in NullFields will be sent to the server as
5854	// null. It is an error if a field in this list has a non-empty value.
5855	// This may be used to include null fields in Patch requests.
5856	NullFields []string `json:"-"`
5857}
5858
5859func (s *GoogleCloudApigeeV1Metadata) MarshalJSON() ([]byte, error) {
5860	type NoMethod GoogleCloudApigeeV1Metadata
5861	raw := NoMethod(*s)
5862	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5863}
5864
5865// GoogleCloudApigeeV1Metric: This message type encapsulates the metric
5866// data point. Example: { "name": "sum(message_count)", "values" : [ {
5867// "timestamp": 1549004400000, "value": "39.0" }, { "timestamp" :
5868// 1548997200000, "value" : "0.0" } ] } or { "name":
5869// "sum(message_count)", "values" : ["39.0"] }
5870type GoogleCloudApigeeV1Metric struct {
5871	// Name: This field contains the metric name.
5872	Name string `json:"name,omitempty"`
5873
5874	// Values: List of metric values. Possible value format:
5875	// "values":["39.0"] or "values":[ { "value": "39.0", "timestamp":
5876	// 1232434354} ]
5877	Values []interface{} `json:"values,omitempty"`
5878
5879	// ForceSendFields is a list of field names (e.g. "Name") to
5880	// unconditionally include in API requests. By default, fields with
5881	// empty or default values are omitted from API requests. However, any
5882	// non-pointer, non-interface field appearing in ForceSendFields will be
5883	// sent to the server regardless of whether the field is empty or not.
5884	// This may be used to include empty fields in Patch requests.
5885	ForceSendFields []string `json:"-"`
5886
5887	// NullFields is a list of field names (e.g. "Name") to include in API
5888	// requests with the JSON null value. By default, fields with empty
5889	// values are omitted from API requests. However, any field with an
5890	// empty value appearing in NullFields will be sent to the server as
5891	// null. It is an error if a field in this list has a non-empty value.
5892	// This may be used to include null fields in Patch requests.
5893	NullFields []string `json:"-"`
5894}
5895
5896func (s *GoogleCloudApigeeV1Metric) MarshalJSON() ([]byte, error) {
5897	type NoMethod GoogleCloudApigeeV1Metric
5898	raw := NoMethod(*s)
5899	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5900}
5901
5902// GoogleCloudApigeeV1MonetizationConfig: Configuration for the
5903// Monetization add-on.
5904type GoogleCloudApigeeV1MonetizationConfig struct {
5905	// Enabled: Flag that specifies whether the Monetization add-on is
5906	// enabled.
5907	Enabled bool `json:"enabled,omitempty"`
5908
5909	// ForceSendFields is a list of field names (e.g. "Enabled") to
5910	// unconditionally include in API requests. By default, fields with
5911	// empty or default values are omitted from API requests. However, any
5912	// non-pointer, non-interface field appearing in ForceSendFields will be
5913	// sent to the server regardless of whether the field is empty or not.
5914	// This may be used to include empty fields in Patch requests.
5915	ForceSendFields []string `json:"-"`
5916
5917	// NullFields is a list of field names (e.g. "Enabled") to include in
5918	// API requests with the JSON null value. By default, fields with empty
5919	// values are omitted from API requests. However, any field with an
5920	// empty value appearing in NullFields will be sent to the server as
5921	// null. It is an error if a field in this list has a non-empty value.
5922	// This may be used to include null fields in Patch requests.
5923	NullFields []string `json:"-"`
5924}
5925
5926func (s *GoogleCloudApigeeV1MonetizationConfig) MarshalJSON() ([]byte, error) {
5927	type NoMethod GoogleCloudApigeeV1MonetizationConfig
5928	raw := NoMethod(*s)
5929	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5930}
5931
5932// GoogleCloudApigeeV1NatAddress: Apigee NAT(network address
5933// translation) address. A NAT address is a static external IP address
5934// used for Internet egress traffic.
5935type GoogleCloudApigeeV1NatAddress struct {
5936	// IpAddress: Output only. The static IPV4 address.
5937	IpAddress string `json:"ipAddress,omitempty"`
5938
5939	// Name: Required. Resource ID of the NAT address.
5940	Name string `json:"name,omitempty"`
5941
5942	// State: Output only. State of the nat address.
5943	//
5944	// Possible values:
5945	//   "STATE_UNSPECIFIED" - The resource is in an unspecified state.
5946	//   "CREATING" - The NAT address is being created.
5947	//   "RESERVED" - The NAT address is reserved but not yet used for
5948	// Internet egress.
5949	//   "ACTIVE" - The NAT address is active and used for Internet egress.
5950	//   "DELETING" - The NAT address is being deleted.
5951	State string `json:"state,omitempty"`
5952
5953	// ServerResponse contains the HTTP response code and headers from the
5954	// server.
5955	googleapi.ServerResponse `json:"-"`
5956
5957	// ForceSendFields is a list of field names (e.g. "IpAddress") to
5958	// unconditionally include in API requests. By default, fields with
5959	// empty or default values are omitted from API requests. However, any
5960	// non-pointer, non-interface field appearing in ForceSendFields will be
5961	// sent to the server regardless of whether the field is empty or not.
5962	// This may be used to include empty fields in Patch requests.
5963	ForceSendFields []string `json:"-"`
5964
5965	// NullFields is a list of field names (e.g. "IpAddress") to include in
5966	// API requests with the JSON null value. By default, fields with empty
5967	// values are omitted from API requests. However, any field with an
5968	// empty value appearing in NullFields will be sent to the server as
5969	// null. It is an error if a field in this list has a non-empty value.
5970	// This may be used to include null fields in Patch requests.
5971	NullFields []string `json:"-"`
5972}
5973
5974func (s *GoogleCloudApigeeV1NatAddress) MarshalJSON() ([]byte, error) {
5975	type NoMethod GoogleCloudApigeeV1NatAddress
5976	raw := NoMethod(*s)
5977	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5978}
5979
5980// GoogleCloudApigeeV1Operation: Represents the pairing of REST resource
5981// path and the actions (verbs) allowed on the resource path.
5982type GoogleCloudApigeeV1Operation struct {
5983	// Methods: methods refers to the REST verbs as in
5984	// https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html. When none
5985	// specified, all verb types are allowed.
5986	Methods []string `json:"methods,omitempty"`
5987
5988	// Resource: Required. REST resource path associated with the API proxy
5989	// or remote service.
5990	Resource string `json:"resource,omitempty"`
5991
5992	// ForceSendFields is a list of field names (e.g. "Methods") to
5993	// unconditionally include in API requests. By default, fields with
5994	// empty or default values are omitted from API requests. However, any
5995	// non-pointer, non-interface field appearing in ForceSendFields will be
5996	// sent to the server regardless of whether the field is empty or not.
5997	// This may be used to include empty fields in Patch requests.
5998	ForceSendFields []string `json:"-"`
5999
6000	// NullFields is a list of field names (e.g. "Methods") to include in
6001	// API requests with the JSON null value. By default, fields with empty
6002	// values are omitted from API requests. However, any field with an
6003	// empty value appearing in NullFields will be sent to the server as
6004	// null. It is an error if a field in this list has a non-empty value.
6005	// This may be used to include null fields in Patch requests.
6006	NullFields []string `json:"-"`
6007}
6008
6009func (s *GoogleCloudApigeeV1Operation) MarshalJSON() ([]byte, error) {
6010	type NoMethod GoogleCloudApigeeV1Operation
6011	raw := NoMethod(*s)
6012	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6013}
6014
6015// GoogleCloudApigeeV1OperationConfig: Binds the resources in an API
6016// proxy or remote service with the allowed REST methods and associated
6017// quota enforcement.
6018type GoogleCloudApigeeV1OperationConfig struct {
6019	// ApiSource: Required. Name of the API proxy or remote service with
6020	// which the resources, methods, and quota are associated.
6021	ApiSource string `json:"apiSource,omitempty"`
6022
6023	// Attributes: Custom attributes associated with the operation.
6024	Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
6025
6026	// Operations: List of resource/method pairs for the API proxy or remote
6027	// service to which quota will applied. **Note**: Currently, you can
6028	// specify only a single resource/method pair. The call will fail if
6029	// more than one resource/method pair is provided.
6030	Operations []*GoogleCloudApigeeV1Operation `json:"operations,omitempty"`
6031
6032	// Quota: Quota parameters to be enforced for the resources, methods,
6033	// and API source combination. If none are specified, quota enforcement
6034	// will not be done.
6035	Quota *GoogleCloudApigeeV1Quota `json:"quota,omitempty"`
6036
6037	// ForceSendFields is a list of field names (e.g. "ApiSource") to
6038	// unconditionally include in API requests. By default, fields with
6039	// empty or default values are omitted from API requests. However, any
6040	// non-pointer, non-interface field appearing in ForceSendFields will be
6041	// sent to the server regardless of whether the field is empty or not.
6042	// This may be used to include empty fields in Patch requests.
6043	ForceSendFields []string `json:"-"`
6044
6045	// NullFields is a list of field names (e.g. "ApiSource") to include in
6046	// API requests with the JSON null value. By default, fields with empty
6047	// values are omitted from API requests. However, any field with an
6048	// empty value appearing in NullFields will be sent to the server as
6049	// null. It is an error if a field in this list has a non-empty value.
6050	// This may be used to include null fields in Patch requests.
6051	NullFields []string `json:"-"`
6052}
6053
6054func (s *GoogleCloudApigeeV1OperationConfig) MarshalJSON() ([]byte, error) {
6055	type NoMethod GoogleCloudApigeeV1OperationConfig
6056	raw := NoMethod(*s)
6057	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6058}
6059
6060// GoogleCloudApigeeV1OperationGroup: List of operation configuration
6061// details associated with Apigee API proxies or remote services. Remote
6062// services are non-Apigee proxies, such as Istio-Envoy.
6063type GoogleCloudApigeeV1OperationGroup struct {
6064	// OperationConfigType: Flag that specifes whether the configuration is
6065	// for Apigee API proxy or a remote service. Valid values include
6066	// `proxy` or `remoteservice`. Defaults to `proxy`. Set to `proxy` when
6067	// Apigee API proxies are associated with the API product. Set to
6068	// `remoteservice` when non-Apigee proxies like Istio-Envoy are
6069	// associated with the API product.
6070	OperationConfigType string `json:"operationConfigType,omitempty"`
6071
6072	// OperationConfigs: Required. List of operation configurations for
6073	// either Apigee API proxies or other remote services that are
6074	// associated with this API product.
6075	OperationConfigs []*GoogleCloudApigeeV1OperationConfig `json:"operationConfigs,omitempty"`
6076
6077	// ForceSendFields is a list of field names (e.g. "OperationConfigType")
6078	// to unconditionally include in API requests. By default, fields with
6079	// empty or default values are omitted from API requests. However, any
6080	// non-pointer, non-interface field appearing in ForceSendFields will be
6081	// sent to the server regardless of whether the field is empty or not.
6082	// This may be used to include empty fields in Patch requests.
6083	ForceSendFields []string `json:"-"`
6084
6085	// NullFields is a list of field names (e.g. "OperationConfigType") to
6086	// include in API requests with the JSON null value. By default, fields
6087	// with empty values are omitted from API requests. However, any field
6088	// with an empty value appearing in NullFields will be sent to the
6089	// server as null. It is an error if a field in this list has a
6090	// non-empty value. This may be used to include null fields in Patch
6091	// requests.
6092	NullFields []string `json:"-"`
6093}
6094
6095func (s *GoogleCloudApigeeV1OperationGroup) MarshalJSON() ([]byte, error) {
6096	type NoMethod GoogleCloudApigeeV1OperationGroup
6097	raw := NoMethod(*s)
6098	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6099}
6100
6101// GoogleCloudApigeeV1OperationMetadata: Metadata describing an
6102// Operation.
6103type GoogleCloudApigeeV1OperationMetadata struct {
6104	// Possible values:
6105	//   "OPERATION_TYPE_UNSPECIFIED"
6106	//   "INSERT"
6107	//   "DELETE"
6108	//   "UPDATE"
6109	OperationType string `json:"operationType,omitempty"`
6110
6111	// Progress: Progress of the operation.
6112	Progress *GoogleCloudApigeeV1OperationMetadataProgress `json:"progress,omitempty"`
6113
6114	// Possible values:
6115	//   "STATE_UNSPECIFIED"
6116	//   "NOT_STARTED"
6117	//   "IN_PROGRESS"
6118	//   "FINISHED"
6119	State string `json:"state,omitempty"`
6120
6121	// TargetResourceName: Name of the resource for which the operation is
6122	// operating on.
6123	TargetResourceName string `json:"targetResourceName,omitempty"`
6124
6125	// ForceSendFields is a list of field names (e.g. "OperationType") to
6126	// unconditionally include in API requests. By default, fields with
6127	// empty or default values are omitted from API requests. However, any
6128	// non-pointer, non-interface field appearing in ForceSendFields will be
6129	// sent to the server regardless of whether the field is empty or not.
6130	// This may be used to include empty fields in Patch requests.
6131	ForceSendFields []string `json:"-"`
6132
6133	// NullFields is a list of field names (e.g. "OperationType") to include
6134	// in API requests with the JSON null value. By default, fields with
6135	// empty values are omitted from API requests. However, any field with
6136	// an empty value appearing in NullFields will be sent to the server as
6137	// null. It is an error if a field in this list has a non-empty value.
6138	// This may be used to include null fields in Patch requests.
6139	NullFields []string `json:"-"`
6140}
6141
6142func (s *GoogleCloudApigeeV1OperationMetadata) MarshalJSON() ([]byte, error) {
6143	type NoMethod GoogleCloudApigeeV1OperationMetadata
6144	raw := NoMethod(*s)
6145	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6146}
6147
6148// GoogleCloudApigeeV1OperationMetadataProgress: Information about
6149// operation progress.
6150type GoogleCloudApigeeV1OperationMetadataProgress struct {
6151	// Description: Description of the operation's progress.
6152	Description string `json:"description,omitempty"`
6153
6154	// Details: The additional details of the progress.
6155	Details googleapi.RawMessage `json:"details,omitempty"`
6156
6157	// PercentDone: The percentage of the operation progress.
6158	PercentDone int64 `json:"percentDone,omitempty"`
6159
6160	// State: State of the operation.
6161	//
6162	// Possible values:
6163	//   "STATE_UNSPECIFIED"
6164	//   "NOT_STARTED"
6165	//   "IN_PROGRESS"
6166	//   "FINISHED"
6167	State string `json:"state,omitempty"`
6168
6169	// ForceSendFields is a list of field names (e.g. "Description") to
6170	// unconditionally include in API requests. By default, fields with
6171	// empty or default values are omitted from API requests. However, any
6172	// non-pointer, non-interface field appearing in ForceSendFields will be
6173	// sent to the server regardless of whether the field is empty or not.
6174	// This may be used to include empty fields in Patch requests.
6175	ForceSendFields []string `json:"-"`
6176
6177	// NullFields is a list of field names (e.g. "Description") to include
6178	// in API requests with the JSON null value. By default, fields with
6179	// empty values are omitted from API requests. However, any field with
6180	// an empty value appearing in NullFields will be sent to the server as
6181	// null. It is an error if a field in this list has a non-empty value.
6182	// This may be used to include null fields in Patch requests.
6183	NullFields []string `json:"-"`
6184}
6185
6186func (s *GoogleCloudApigeeV1OperationMetadataProgress) MarshalJSON() ([]byte, error) {
6187	type NoMethod GoogleCloudApigeeV1OperationMetadataProgress
6188	raw := NoMethod(*s)
6189	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6190}
6191
6192type GoogleCloudApigeeV1OptimizedStats struct {
6193	// Response: This field wraps the stats response for Js Optimized
6194	// Scenario with a Response key. E.g. { "Response": { "TimeUnit": [],
6195	// "metaData": { "errors": [], "notices": [ "Source:Postgres", "Table
6196	// used: edge.api.aaxgroup001.agg_api", "PG
6197	// Host:ruappg08-ro.production.apigeeks.net", "query served
6198	// by:80c4ebca-6a10-4a2e-8faf-c60c1ee306ca" ] }, "resultTruncated":
6199	// false, "stats": { "data": [ { "identifier": { "names": [ "apiproxy"
6200	// ], "values": [ "sirjee" ] }, "metric": [ { "env": "prod", "name":
6201	// "sum(message_count)", "values": [ 36.0 ] }, { "env": "prod", "name":
6202	// "sum(is_error)", "values": [ 36.0 ] } ] } ] } } }
6203	Response *GoogleCloudApigeeV1OptimizedStatsResponse `json:"Response,omitempty"`
6204
6205	// ServerResponse contains the HTTP response code and headers from the
6206	// server.
6207	googleapi.ServerResponse `json:"-"`
6208
6209	// ForceSendFields is a list of field names (e.g. "Response") to
6210	// unconditionally include in API requests. By default, fields with
6211	// empty or default values are omitted from API requests. However, any
6212	// non-pointer, non-interface field appearing in ForceSendFields will be
6213	// sent to the server regardless of whether the field is empty or not.
6214	// This may be used to include empty fields in Patch requests.
6215	ForceSendFields []string `json:"-"`
6216
6217	// NullFields is a list of field names (e.g. "Response") to include in
6218	// API requests with the JSON null value. By default, fields with empty
6219	// values are omitted from API requests. However, any field with an
6220	// empty value appearing in NullFields will be sent to the server as
6221	// null. It is an error if a field in this list has a non-empty value.
6222	// This may be used to include null fields in Patch requests.
6223	NullFields []string `json:"-"`
6224}
6225
6226func (s *GoogleCloudApigeeV1OptimizedStats) MarshalJSON() ([]byte, error) {
6227	type NoMethod GoogleCloudApigeeV1OptimizedStats
6228	raw := NoMethod(*s)
6229	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6230}
6231
6232// GoogleCloudApigeeV1OptimizedStatsNode: This message type encapsulates
6233// a data node as represented below: { "identifier": { "names": [
6234// "apiproxy" ], "values": [ "sirjee" ] }, "metric": [ { "env": "prod",
6235// "name": "sum(message_count)", "values": [ 36.0 ] } ] } OR { "env":
6236// "prod", "name": "sum(message_count)", "values": [ 36.0 ] } Depending
6237// on whether a dimension is present in the query or not the data node
6238// type can be a simple metric value or dimension identifier with list
6239// of metrics.
6240type GoogleCloudApigeeV1OptimizedStatsNode struct {
6241	Data []interface{} `json:"data,omitempty"`
6242
6243	// ForceSendFields is a list of field names (e.g. "Data") to
6244	// unconditionally include in API requests. By default, fields with
6245	// empty or default values are omitted from API requests. However, any
6246	// non-pointer, non-interface field appearing in ForceSendFields will be
6247	// sent to the server regardless of whether the field is empty or not.
6248	// This may be used to include empty fields in Patch requests.
6249	ForceSendFields []string `json:"-"`
6250
6251	// NullFields is a list of field names (e.g. "Data") to include in API
6252	// requests with the JSON null value. By default, fields with empty
6253	// values are omitted from API requests. However, any field with an
6254	// empty value appearing in NullFields will be sent to the server as
6255	// null. It is an error if a field in this list has a non-empty value.
6256	// This may be used to include null fields in Patch requests.
6257	NullFields []string `json:"-"`
6258}
6259
6260func (s *GoogleCloudApigeeV1OptimizedStatsNode) MarshalJSON() ([]byte, error) {
6261	type NoMethod GoogleCloudApigeeV1OptimizedStatsNode
6262	raw := NoMethod(*s)
6263	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6264}
6265
6266// GoogleCloudApigeeV1OptimizedStatsResponse: This message type
6267// encapsulates a response format for Js Optimized Scenario.
6268type GoogleCloudApigeeV1OptimizedStatsResponse struct {
6269	// TimeUnit: This field contains a list of time unit values. Time unit
6270	// refers to an epoch timestamp value.
6271	TimeUnit googleapi.Int64s `json:"TimeUnit,omitempty"`
6272
6273	// MetaData: This field contains metadata information about the query
6274	// executed
6275	MetaData *GoogleCloudApigeeV1Metadata `json:"metaData,omitempty"`
6276
6277	// ResultTruncated: This ia a boolean field to indicate if the results
6278	// were truncated based on the limit parameter.
6279	ResultTruncated bool `json:"resultTruncated,omitempty"`
6280
6281	// Stats: This field contains a stats results.
6282	Stats *GoogleCloudApigeeV1OptimizedStatsNode `json:"stats,omitempty"`
6283
6284	// ForceSendFields is a list of field names (e.g. "TimeUnit") to
6285	// unconditionally include in API requests. By default, fields with
6286	// empty or default values are omitted from API requests. However, any
6287	// non-pointer, non-interface field appearing in ForceSendFields will be
6288	// sent to the server regardless of whether the field is empty or not.
6289	// This may be used to include empty fields in Patch requests.
6290	ForceSendFields []string `json:"-"`
6291
6292	// NullFields is a list of field names (e.g. "TimeUnit") to include in
6293	// API requests with the JSON null value. By default, fields with empty
6294	// values are omitted from API requests. However, any field with an
6295	// empty value appearing in NullFields will be sent to the server as
6296	// null. It is an error if a field in this list has a non-empty value.
6297	// This may be used to include null fields in Patch requests.
6298	NullFields []string `json:"-"`
6299}
6300
6301func (s *GoogleCloudApigeeV1OptimizedStatsResponse) MarshalJSON() ([]byte, error) {
6302	type NoMethod GoogleCloudApigeeV1OptimizedStatsResponse
6303	raw := NoMethod(*s)
6304	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6305}
6306
6307type GoogleCloudApigeeV1Organization struct {
6308	// AddonsConfig: Addon configurations of the Apigee organization.
6309	AddonsConfig *GoogleCloudApigeeV1AddonsConfig `json:"addonsConfig,omitempty"`
6310
6311	// AnalyticsRegion: Required. Primary GCP region for analytics data
6312	// storage. For valid values, see Create an Apigee organization
6313	// (https://cloud.google.com/apigee/docs/api-platform/get-started/create-org).
6314	AnalyticsRegion string `json:"analyticsRegion,omitempty"`
6315
6316	// Attributes: Not used by Apigee.
6317	Attributes []string `json:"attributes,omitempty"`
6318
6319	// AuthorizedNetwork: Compute Engine network used for Service Networking
6320	// to be peered with Apigee runtime instances. See Getting started with
6321	// the Service Networking API
6322	// (https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started).
6323	// Valid only when RuntimeType (#RuntimeType) is set to `CLOUD`. The
6324	// value must be set before the creation of a runtime instance and can
6325	// be updated only when there are no runtime instances. For example:
6326	// `default`. Apigee also supports shared VPC (that is, the host network
6327	// project is not the same as the one that is peering with Apigee). See
6328	// Shared VPC overview (https://cloud.google.com/vpc/docs/shared-vpc).
6329	// To use a shared VPC network, use the following format:
6330	// `projects/{host-project-id}/{region}/networks/{network-name}`. For
6331	// example: `projects/my-sharedvpc-host/global/networks/mynetwork`
6332	// **Note:** Not supported for Apigee hybrid.
6333	AuthorizedNetwork string `json:"authorizedNetwork,omitempty"`
6334
6335	// BillingType: Billing type of the Apigee organization. See Apigee
6336	// pricing (https://cloud.google.com/apigee/pricing).
6337	//
6338	// Possible values:
6339	//   "BILLING_TYPE_UNSPECIFIED" - Billing type not specified.
6340	//   "SUBSCRIPTION" - A pre-paid subscription to Apigee.
6341	//   "EVALUATION" - Free and limited access to Apigee for evaluation
6342	// purposes only. only.
6343	BillingType string `json:"billingType,omitempty"`
6344
6345	// CaCertificate: Output only. Base64-encoded public certificate for the
6346	// root CA of the Apigee organization. Valid only when RuntimeType
6347	// (#RuntimeType) is `CLOUD`.
6348	CaCertificate string `json:"caCertificate,omitempty"`
6349
6350	// CreatedAt: Output only. Time that the Apigee organization was created
6351	// in milliseconds since epoch.
6352	CreatedAt int64 `json:"createdAt,omitempty,string"`
6353
6354	// CustomerName: Not used by Apigee.
6355	CustomerName string `json:"customerName,omitempty"`
6356
6357	// Description: Description of the Apigee organization.
6358	Description string `json:"description,omitempty"`
6359
6360	DisplayName string `json:"displayName,omitempty"`
6361
6362	// Environments: Output only. List of environments in the Apigee
6363	// organization.
6364	Environments []string `json:"environments,omitempty"`
6365
6366	// ExpiresAt: Output only. Time that the Apigee organization is
6367	// scheduled for deletion.
6368	ExpiresAt int64 `json:"expiresAt,omitempty,string"`
6369
6370	// LastModifiedAt: Output only. Time that the Apigee organization was
6371	// last modified in milliseconds since epoch.
6372	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
6373
6374	// Name: Output only. Name of the Apigee organization.
6375	Name string `json:"name,omitempty"`
6376
6377	// ProjectId: Output only. Project ID associated with the Apigee
6378	// organization.
6379	ProjectId string `json:"projectId,omitempty"`
6380
6381	// Properties: Properties defined in the Apigee organization profile.
6382	Properties *GoogleCloudApigeeV1Properties `json:"properties,omitempty"`
6383
6384	// RuntimeDatabaseEncryptionKeyName: Cloud KMS key name used for
6385	// encrypting the data that is stored and replicated across runtime
6386	// instances. Update is not allowed after the organization is created.
6387	// Required when RuntimeType (#RuntimeType) is `CLOUD`. If not specified
6388	// when RuntimeType (#RuntimeType) is `TRIAL`, a Google-Managed
6389	// encryption key will be used. For example:
6390	// "projects/foo/locations/us/keyRings/bar/cryptoKeys/baz". **Note:**
6391	// Not supported for Apigee hybrid.
6392	RuntimeDatabaseEncryptionKeyName string `json:"runtimeDatabaseEncryptionKeyName,omitempty"`
6393
6394	// RuntimeType: Required. Runtime type of the Apigee organization based
6395	// on the Apigee subscription purchased.
6396	//
6397	// Possible values:
6398	//   "RUNTIME_TYPE_UNSPECIFIED" - Runtime type not specified.
6399	//   "CLOUD" - Google-managed Apigee runtime.
6400	//   "HYBRID" - User-managed Apigee hybrid runtime.
6401	RuntimeType string `json:"runtimeType,omitempty"`
6402
6403	// State: Output only. State of the organization. Values other than
6404	// ACTIVE means the resource is not ready to use.
6405	//
6406	// Possible values:
6407	//   "STATE_UNSPECIFIED" - Resource is in an unspecified state.
6408	//   "CREATING" - Resource is being created.
6409	//   "ACTIVE" - Resource is provisioned and ready to use.
6410	//   "DELETING" - The resource is being deleted.
6411	//   "UPDATING" - The resource is being updated.
6412	State string `json:"state,omitempty"`
6413
6414	// SubscriptionType: Output only. DEPRECATED: This will eventually be
6415	// replaced by BillingType. Subscription type of the Apigee
6416	// organization. Valid values include trial (free, limited, and for
6417	// evaluation purposes only) or paid (full subscription has been
6418	// purchased). See Apigee pricing
6419	// (https://cloud.google.com/apigee/pricing/).
6420	//
6421	// Possible values:
6422	//   "SUBSCRIPTION_TYPE_UNSPECIFIED" - Subscription type not specified.
6423	//   "PAID" - Full subscription to Apigee has been purchased.
6424	//   "TRIAL" - Subscription to Apigee is free, limited, and used for
6425	// evaluation purposes only.
6426	SubscriptionType string `json:"subscriptionType,omitempty"`
6427
6428	// Type: Not used by Apigee.
6429	//
6430	// Possible values:
6431	//   "TYPE_UNSPECIFIED" - Subscription type not specified.
6432	//   "TYPE_TRIAL" - Subscription to Apigee is free, limited, and used
6433	// for evaluation purposes only.
6434	//   "TYPE_PAID" - Full subscription to Apigee has been purchased. See
6435	// [Apigee pricing](https://cloud.google.com/apigee/pricing/).
6436	//   "TYPE_INTERNAL" - For internal users only.
6437	Type string `json:"type,omitempty"`
6438
6439	// ServerResponse contains the HTTP response code and headers from the
6440	// server.
6441	googleapi.ServerResponse `json:"-"`
6442
6443	// ForceSendFields is a list of field names (e.g. "AddonsConfig") to
6444	// unconditionally include in API requests. By default, fields with
6445	// empty or default values are omitted from API requests. However, any
6446	// non-pointer, non-interface field appearing in ForceSendFields will be
6447	// sent to the server regardless of whether the field is empty or not.
6448	// This may be used to include empty fields in Patch requests.
6449	ForceSendFields []string `json:"-"`
6450
6451	// NullFields is a list of field names (e.g. "AddonsConfig") to include
6452	// in API requests with the JSON null value. By default, fields with
6453	// empty values are omitted from API requests. However, any field with
6454	// an empty value appearing in NullFields will be sent to the server as
6455	// null. It is an error if a field in this list has a non-empty value.
6456	// This may be used to include null fields in Patch requests.
6457	NullFields []string `json:"-"`
6458}
6459
6460func (s *GoogleCloudApigeeV1Organization) MarshalJSON() ([]byte, error) {
6461	type NoMethod GoogleCloudApigeeV1Organization
6462	raw := NoMethod(*s)
6463	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6464}
6465
6466type GoogleCloudApigeeV1OrganizationProjectMapping struct {
6467	// Organization: Name of the Apigee organization.
6468	Organization string `json:"organization,omitempty"`
6469
6470	// ProjectIds: List of GCP projects associated with the Apigee
6471	// organization.
6472	ProjectIds []string `json:"projectIds,omitempty"`
6473
6474	// ForceSendFields is a list of field names (e.g. "Organization") to
6475	// unconditionally include in API requests. By default, fields with
6476	// empty or default values are omitted from API requests. However, any
6477	// non-pointer, non-interface field appearing in ForceSendFields will be
6478	// sent to the server regardless of whether the field is empty or not.
6479	// This may be used to include empty fields in Patch requests.
6480	ForceSendFields []string `json:"-"`
6481
6482	// NullFields is a list of field names (e.g. "Organization") to include
6483	// in API requests with the JSON null value. By default, fields with
6484	// empty values are omitted from API requests. However, any field with
6485	// an empty value appearing in NullFields will be sent to the server as
6486	// null. It is an error if a field in this list has a non-empty value.
6487	// This may be used to include null fields in Patch requests.
6488	NullFields []string `json:"-"`
6489}
6490
6491func (s *GoogleCloudApigeeV1OrganizationProjectMapping) MarshalJSON() ([]byte, error) {
6492	type NoMethod GoogleCloudApigeeV1OrganizationProjectMapping
6493	raw := NoMethod(*s)
6494	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6495}
6496
6497type GoogleCloudApigeeV1PodStatus struct {
6498	// AppVersion: Version of the application running in the pod.
6499	AppVersion string `json:"appVersion,omitempty"`
6500
6501	// DeploymentStatus: Status of the deployment. Valid values include: -
6502	// `deployed`: Successful. - `error` : Failed. - `pending` : Pod has not
6503	// yet reported on the deployment.
6504	DeploymentStatus string `json:"deploymentStatus,omitempty"`
6505
6506	// DeploymentStatusTime: Time the deployment status was reported in
6507	// milliseconds since epoch.
6508	DeploymentStatusTime int64 `json:"deploymentStatusTime,omitempty,string"`
6509
6510	// DeploymentTime: Time the proxy was deployed in milliseconds since
6511	// epoch.
6512	DeploymentTime int64 `json:"deploymentTime,omitempty,string"`
6513
6514	// PodName: Name of the pod which is reporting the status.
6515	PodName string `json:"podName,omitempty"`
6516
6517	// PodStatus: Overall status of the pod (not this specific deployment).
6518	// Valid values include: - `active`: Up to date. - `stale` : Recently
6519	// out of date. Pods that have not reported status in a long time are
6520	// excluded from the output.
6521	PodStatus string `json:"podStatus,omitempty"`
6522
6523	// PodStatusTime: Time the pod status was reported in milliseconds since
6524	// epoch.
6525	PodStatusTime int64 `json:"podStatusTime,omitempty,string"`
6526
6527	// StatusCode: Code associated with the deployment status.
6528	StatusCode string `json:"statusCode,omitempty"`
6529
6530	// StatusCodeDetails: Human-readable message associated with the status
6531	// code.
6532	StatusCodeDetails string `json:"statusCodeDetails,omitempty"`
6533
6534	// ForceSendFields is a list of field names (e.g. "AppVersion") to
6535	// unconditionally include in API requests. By default, fields with
6536	// empty or default values are omitted from API requests. However, any
6537	// non-pointer, non-interface field appearing in ForceSendFields will be
6538	// sent to the server regardless of whether the field is empty or not.
6539	// This may be used to include empty fields in Patch requests.
6540	ForceSendFields []string `json:"-"`
6541
6542	// NullFields is a list of field names (e.g. "AppVersion") to include in
6543	// API requests with the JSON null value. By default, fields with empty
6544	// values are omitted from API requests. However, any field with an
6545	// empty value appearing in NullFields will be sent to the server as
6546	// null. It is an error if a field in this list has a non-empty value.
6547	// This may be used to include null fields in Patch requests.
6548	NullFields []string `json:"-"`
6549}
6550
6551func (s *GoogleCloudApigeeV1PodStatus) MarshalJSON() ([]byte, error) {
6552	type NoMethod GoogleCloudApigeeV1PodStatus
6553	raw := NoMethod(*s)
6554	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6555}
6556
6557// GoogleCloudApigeeV1Point: Point is a group of information collected
6558// by runtime plane at critical points of the message flow of the
6559// processed API request. This is a list of supported point IDs,
6560// categorized to three major buckets. For each category, debug points
6561// that we are currently supporting are listed below: - Flow status
6562// debug points: StateChange FlowInfo Condition Execution DebugMask
6563// Error - Flow control debug points: FlowCallout Paused Resumed
6564// FlowReturn BreakFlow Error - Runtime debug points: ScriptExecutor
6565// FlowCalloutStepDefinition CustomTarget StepDefinition
6566// Oauth2ServicePoint RaiseFault NodeJS The detail information of the
6567// given debug point is stored in a list of results.
6568type GoogleCloudApigeeV1Point struct {
6569	// Id: Name of a step in the transaction.
6570	Id string `json:"id,omitempty"`
6571
6572	// Results: List of results extracted from a given debug point.
6573	Results []*GoogleCloudApigeeV1Result `json:"results,omitempty"`
6574
6575	// ForceSendFields is a list of field names (e.g. "Id") to
6576	// unconditionally include in API requests. By default, fields with
6577	// empty or default values are omitted from API requests. However, any
6578	// non-pointer, non-interface field appearing in ForceSendFields will be
6579	// sent to the server regardless of whether the field is empty or not.
6580	// This may be used to include empty fields in Patch requests.
6581	ForceSendFields []string `json:"-"`
6582
6583	// NullFields is a list of field names (e.g. "Id") to include in API
6584	// requests with the JSON null value. By default, fields with empty
6585	// values are omitted from API requests. However, any field with an
6586	// empty value appearing in NullFields will be sent to the server as
6587	// null. It is an error if a field in this list has a non-empty value.
6588	// This may be used to include null fields in Patch requests.
6589	NullFields []string `json:"-"`
6590}
6591
6592func (s *GoogleCloudApigeeV1Point) MarshalJSON() ([]byte, error) {
6593	type NoMethod GoogleCloudApigeeV1Point
6594	raw := NoMethod(*s)
6595	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6596}
6597
6598// GoogleCloudApigeeV1Properties: Message for compatibility with legacy
6599// Edge specification for Java Properties object in JSON.
6600type GoogleCloudApigeeV1Properties struct {
6601	// Property: List of all properties in the object
6602	Property []*GoogleCloudApigeeV1Property `json:"property,omitempty"`
6603
6604	// ForceSendFields is a list of field names (e.g. "Property") to
6605	// unconditionally include in API requests. By default, fields with
6606	// empty or default values are omitted from API requests. However, any
6607	// non-pointer, non-interface field appearing in ForceSendFields will be
6608	// sent to the server regardless of whether the field is empty or not.
6609	// This may be used to include empty fields in Patch requests.
6610	ForceSendFields []string `json:"-"`
6611
6612	// NullFields is a list of field names (e.g. "Property") to include in
6613	// API requests with the JSON null value. By default, fields with empty
6614	// values are omitted from API requests. However, any field with an
6615	// empty value appearing in NullFields will be sent to the server as
6616	// null. It is an error if a field in this list has a non-empty value.
6617	// This may be used to include null fields in Patch requests.
6618	NullFields []string `json:"-"`
6619}
6620
6621func (s *GoogleCloudApigeeV1Properties) MarshalJSON() ([]byte, error) {
6622	type NoMethod GoogleCloudApigeeV1Properties
6623	raw := NoMethod(*s)
6624	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6625}
6626
6627// GoogleCloudApigeeV1Property: A single property entry in the
6628// Properties message.
6629type GoogleCloudApigeeV1Property struct {
6630	// Name: The property key
6631	Name string `json:"name,omitempty"`
6632
6633	// Value: The property value
6634	Value string `json:"value,omitempty"`
6635
6636	// ForceSendFields is a list of field names (e.g. "Name") to
6637	// unconditionally include in API requests. By default, fields with
6638	// empty or default values are omitted from API requests. However, any
6639	// non-pointer, non-interface field appearing in ForceSendFields will be
6640	// sent to the server regardless of whether the field is empty or not.
6641	// This may be used to include empty fields in Patch requests.
6642	ForceSendFields []string `json:"-"`
6643
6644	// NullFields is a list of field names (e.g. "Name") to include in API
6645	// requests with the JSON null value. By default, fields with empty
6646	// values are omitted from API requests. However, any field with an
6647	// empty value appearing in NullFields will be sent to the server as
6648	// null. It is an error if a field in this list has a non-empty value.
6649	// This may be used to include null fields in Patch requests.
6650	NullFields []string `json:"-"`
6651}
6652
6653func (s *GoogleCloudApigeeV1Property) MarshalJSON() ([]byte, error) {
6654	type NoMethod GoogleCloudApigeeV1Property
6655	raw := NoMethod(*s)
6656	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6657}
6658
6659// GoogleCloudApigeeV1ProvisionOrganizationRequest: Request for
6660// ProvisionOrganization.
6661type GoogleCloudApigeeV1ProvisionOrganizationRequest struct {
6662	// AnalyticsRegion: Primary Cloud Platform region for analytics data
6663	// storage. For valid values, see Create an organization
6664	// (https://cloud.google.com/apigee/docs/hybrid/latest/precog-provision).
6665	// Defaults to `us-west1`.
6666	AnalyticsRegion string `json:"analyticsRegion,omitempty"`
6667
6668	// AuthorizedNetwork: Name of the customer project's VPC network. If
6669	// provided, the network needs to be peered through Service Networking.
6670	// If none is provided, the organization will have access only to the
6671	// public internet.
6672	AuthorizedNetwork string `json:"authorizedNetwork,omitempty"`
6673
6674	// RuntimeLocation: Cloud Platform location for the runtime instance.
6675	// Defaults to zone `us-west1-a`. If a region is provided, `EVAL`
6676	// organizations will use the region for automatically selecting a zone
6677	// for the runtime instance.
6678	RuntimeLocation string `json:"runtimeLocation,omitempty"`
6679
6680	// ForceSendFields is a list of field names (e.g. "AnalyticsRegion") to
6681	// unconditionally include in API requests. By default, fields with
6682	// empty or default values are omitted from API requests. However, any
6683	// non-pointer, non-interface field appearing in ForceSendFields will be
6684	// sent to the server regardless of whether the field is empty or not.
6685	// This may be used to include empty fields in Patch requests.
6686	ForceSendFields []string `json:"-"`
6687
6688	// NullFields is a list of field names (e.g. "AnalyticsRegion") to
6689	// include in API requests with the JSON null value. By default, fields
6690	// with empty values are omitted from API requests. However, any field
6691	// with an empty value appearing in NullFields will be sent to the
6692	// server as null. It is an error if a field in this list has a
6693	// non-empty value. This may be used to include null fields in Patch
6694	// requests.
6695	NullFields []string `json:"-"`
6696}
6697
6698func (s *GoogleCloudApigeeV1ProvisionOrganizationRequest) MarshalJSON() ([]byte, error) {
6699	type NoMethod GoogleCloudApigeeV1ProvisionOrganizationRequest
6700	raw := NoMethod(*s)
6701	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6702}
6703
6704type GoogleCloudApigeeV1Query struct {
6705	// CsvDelimiter: Delimiter used in the CSV file, if `outputFormat` is
6706	// set to `csv`. Defaults to the `,` (comma) character. Supported
6707	// delimiter characters include comma (`,`), pipe (`|`), and tab (`\t`).
6708	CsvDelimiter string `json:"csvDelimiter,omitempty"`
6709
6710	// Dimensions: A list of dimensions.
6711	// https://docs.apigee.com/api-platform/analytics/analytics-reference#dimensions
6712	Dimensions []string `json:"dimensions,omitempty"`
6713
6714	// EnvgroupHostname: Hostname needs to be specified if query intends to
6715	// run at host level. This field is only allowed when query is submitted
6716	// by CreateHostAsyncQuery where analytics data will be grouped by
6717	// organization and hostname.
6718	EnvgroupHostname string `json:"envgroupHostname,omitempty"`
6719
6720	// Filter: Boolean expression that can be used to filter data. Filter
6721	// expressions can be combined using AND/OR terms and should be fully
6722	// parenthesized to avoid ambiguity. See Analytics metrics, dimensions,
6723	// and filters reference
6724	// https://docs.apigee.com/api-platform/analytics/analytics-reference
6725	// for more information on the fields available to filter on. For more
6726	// information on the tokens that you use to build filter expressions,
6727	// see Filter expression syntax.
6728	// https://docs.apigee.com/api-platform/analytics/asynch-reports-api#filter-expression-syntax
6729	Filter string `json:"filter,omitempty"`
6730
6731	// GroupByTimeUnit: Time unit used to group the result set. Valid values
6732	// include: second, minute, hour, day, week, or month. If a query
6733	// includes groupByTimeUnit, then the result is an aggregation based on
6734	// the specified time unit and the resultant timestamp does not include
6735	// milliseconds precision. If a query omits groupByTimeUnit, then the
6736	// resultant timestamp includes milliseconds precision.
6737	GroupByTimeUnit string `json:"groupByTimeUnit,omitempty"`
6738
6739	// Limit: Maximum number of rows that can be returned in the result.
6740	Limit int64 `json:"limit,omitempty"`
6741
6742	// Metrics: A list of Metrics.
6743	Metrics []*GoogleCloudApigeeV1QueryMetric `json:"metrics,omitempty"`
6744
6745	// Name: Asynchronous Query Name.
6746	Name string `json:"name,omitempty"`
6747
6748	// OutputFormat: Valid values include: `csv` or `json`. Defaults to
6749	// `json`. Note: Configure the delimiter for CSV output using the
6750	// csvDelimiter property.
6751	OutputFormat string `json:"outputFormat,omitempty"`
6752
6753	// ReportDefinitionId: Asynchronous Report ID.
6754	ReportDefinitionId string `json:"reportDefinitionId,omitempty"`
6755
6756	// TimeRange: Required. Time range for the query. Can use the following
6757	// predefined strings to specify the time range: `last60minutes`
6758	// `last24hours` `last7days` Or, specify the timeRange as a structure
6759	// describing start and end timestamps in the ISO format:
6760	// yyyy-mm-ddThh:mm:ssZ. Example: "timeRange": { "start":
6761	// "2018-07-29T00:13:00Z", "end": "2018-08-01T00:18:00Z" }
6762	TimeRange interface{} `json:"timeRange,omitempty"`
6763
6764	// ForceSendFields is a list of field names (e.g. "CsvDelimiter") to
6765	// unconditionally include in API requests. By default, fields with
6766	// empty or default values are omitted from API requests. However, any
6767	// non-pointer, non-interface field appearing in ForceSendFields will be
6768	// sent to the server regardless of whether the field is empty or not.
6769	// This may be used to include empty fields in Patch requests.
6770	ForceSendFields []string `json:"-"`
6771
6772	// NullFields is a list of field names (e.g. "CsvDelimiter") to include
6773	// in API requests with the JSON null value. By default, fields with
6774	// empty values are omitted from API requests. However, any field with
6775	// an empty value appearing in NullFields will be sent to the server as
6776	// null. It is an error if a field in this list has a non-empty value.
6777	// This may be used to include null fields in Patch requests.
6778	NullFields []string `json:"-"`
6779}
6780
6781func (s *GoogleCloudApigeeV1Query) MarshalJSON() ([]byte, error) {
6782	type NoMethod GoogleCloudApigeeV1Query
6783	raw := NoMethod(*s)
6784	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6785}
6786
6787type GoogleCloudApigeeV1QueryMetadata struct {
6788	// Dimensions: Dimensions of the AsyncQuery.
6789	Dimensions []string `json:"dimensions,omitempty"`
6790
6791	// EndTimestamp: End timestamp of the query range.
6792	EndTimestamp string `json:"endTimestamp,omitempty"`
6793
6794	// Metrics: Metrics of the AsyncQuery. Example:
6795	// ["name:message_count,func:sum,alias:sum_message_count"]
6796	Metrics []string `json:"metrics,omitempty"`
6797
6798	// OutputFormat: Output format.
6799	OutputFormat string `json:"outputFormat,omitempty"`
6800
6801	// StartTimestamp: Start timestamp of the query range.
6802	StartTimestamp string `json:"startTimestamp,omitempty"`
6803
6804	// TimeUnit: Query GroupBy time unit.
6805	TimeUnit string `json:"timeUnit,omitempty"`
6806
6807	// ForceSendFields is a list of field names (e.g. "Dimensions") to
6808	// unconditionally include in API requests. By default, fields with
6809	// empty or default values are omitted from API requests. However, any
6810	// non-pointer, non-interface field appearing in ForceSendFields will be
6811	// sent to the server regardless of whether the field is empty or not.
6812	// This may be used to include empty fields in Patch requests.
6813	ForceSendFields []string `json:"-"`
6814
6815	// NullFields is a list of field names (e.g. "Dimensions") to include in
6816	// API requests with the JSON null value. By default, fields with empty
6817	// values are omitted from API requests. However, any field with an
6818	// empty value appearing in NullFields will be sent to the server as
6819	// null. It is an error if a field in this list has a non-empty value.
6820	// This may be used to include null fields in Patch requests.
6821	NullFields []string `json:"-"`
6822}
6823
6824func (s *GoogleCloudApigeeV1QueryMetadata) MarshalJSON() ([]byte, error) {
6825	type NoMethod GoogleCloudApigeeV1QueryMetadata
6826	raw := NoMethod(*s)
6827	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6828}
6829
6830// GoogleCloudApigeeV1QueryMetric: More info about Metric:
6831// https://docs.apigee.com/api-platform/analytics/analytics-reference#metrics
6832type GoogleCloudApigeeV1QueryMetric struct {
6833	// Alias: Alias for the metric. Alias will be used to replace metric
6834	// name in query results.
6835	Alias string `json:"alias,omitempty"`
6836
6837	// Function: Aggregation function: avg, min, max, or sum.
6838	Function string `json:"function,omitempty"`
6839
6840	// Name: Required. Metric name.
6841	Name string `json:"name,omitempty"`
6842
6843	// Operator: One of `+`, `-`, `/`, `%`, `*`.
6844	Operator string `json:"operator,omitempty"`
6845
6846	// Value: Operand value should be provided when operator is set.
6847	Value string `json:"value,omitempty"`
6848
6849	// ForceSendFields is a list of field names (e.g. "Alias") to
6850	// unconditionally include in API requests. By default, fields with
6851	// empty or default values are omitted from API requests. However, any
6852	// non-pointer, non-interface field appearing in ForceSendFields will be
6853	// sent to the server regardless of whether the field is empty or not.
6854	// This may be used to include empty fields in Patch requests.
6855	ForceSendFields []string `json:"-"`
6856
6857	// NullFields is a list of field names (e.g. "Alias") to include in API
6858	// requests with the JSON null value. By default, fields with empty
6859	// values are omitted from API requests. However, any field with an
6860	// empty value appearing in NullFields will be sent to the server as
6861	// null. It is an error if a field in this list has a non-empty value.
6862	// This may be used to include null fields in Patch requests.
6863	NullFields []string `json:"-"`
6864}
6865
6866func (s *GoogleCloudApigeeV1QueryMetric) MarshalJSON() ([]byte, error) {
6867	type NoMethod GoogleCloudApigeeV1QueryMetric
6868	raw := NoMethod(*s)
6869	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6870}
6871
6872// GoogleCloudApigeeV1Quota: Quota contains the essential parameters
6873// needed that can be applied on the resources, methods, API source
6874// combination associated with this API product. While Quota is
6875// optional, setting it prevents requests from exceeding the provisioned
6876// parameters.
6877type GoogleCloudApigeeV1Quota struct {
6878	// Interval: Required. Time interval over which the number of request
6879	// messages is calculated.
6880	Interval string `json:"interval,omitempty"`
6881
6882	// Limit: Required. Upper limit allowed for the time interval and time
6883	// unit specified. Requests exceeding this limit will be rejected.
6884	Limit string `json:"limit,omitempty"`
6885
6886	// TimeUnit: Time unit defined for the `interval`. Valid values include
6887	// `minute`, `hour`, `day`, or `month`. If `limit` and `interval` are
6888	// valid, the default value is `hour`; otherwise, the default is null.
6889	TimeUnit string `json:"timeUnit,omitempty"`
6890
6891	// ForceSendFields is a list of field names (e.g. "Interval") to
6892	// unconditionally include in API requests. By default, fields with
6893	// empty or default values are omitted from API requests. However, any
6894	// non-pointer, non-interface field appearing in ForceSendFields will be
6895	// sent to the server regardless of whether the field is empty or not.
6896	// This may be used to include empty fields in Patch requests.
6897	ForceSendFields []string `json:"-"`
6898
6899	// NullFields is a list of field names (e.g. "Interval") to include in
6900	// API requests with the JSON null value. By default, fields with empty
6901	// values are omitted from API requests. However, any field with an
6902	// empty value appearing in NullFields will be sent to the server as
6903	// null. It is an error if a field in this list has a non-empty value.
6904	// This may be used to include null fields in Patch requests.
6905	NullFields []string `json:"-"`
6906}
6907
6908func (s *GoogleCloudApigeeV1Quota) MarshalJSON() ([]byte, error) {
6909	type NoMethod GoogleCloudApigeeV1Quota
6910	raw := NoMethod(*s)
6911	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6912}
6913
6914// GoogleCloudApigeeV1RatePlan: Rate plan details.
6915type GoogleCloudApigeeV1RatePlan struct {
6916	// Apiproduct: Name of the API product that the rate plan is associated
6917	// with.
6918	Apiproduct string `json:"apiproduct,omitempty"`
6919
6920	// BillingPeriod: Frequency at which the customer will be billed.
6921	//
6922	// Possible values:
6923	//   "BILLING_PERIOD_UNSPECIFIED" - Billing period not specified.
6924	//   "WEEKLY" - Weekly billing period. **Note**: Not supported by Apigee
6925	// at this time.
6926	//   "MONTHLY" - Monthly billing period.
6927	BillingPeriod string `json:"billingPeriod,omitempty"`
6928
6929	// ConsumptionPricingRates: API call volume ranges and the fees charged
6930	// when the total number of API calls is within a given range. The
6931	// method used to calculate the final fee depends on the selected
6932	// pricing model. For example, if the pricing model is `STAIRSTEP` and
6933	// the ranges are defined as follows: ``` { "start": 1, "end": 100,
6934	// "fee": 75 }, { "start": 101, "end": 200, "fee": 100 }, } ``` Then the
6935	// following fees would be charged based on the total number of API
6936	// calls (assuming the currency selected is `USD`): * 1 call costs $75 *
6937	// 50 calls cost $75 * 150 calls cost $100 The number of API calls
6938	// cannot exceed 200.
6939	ConsumptionPricingRates []*GoogleCloudApigeeV1RateRange `json:"consumptionPricingRates,omitempty"`
6940
6941	// ConsumptionPricingType: Pricing model used for consumption-based
6942	// charges.
6943	//
6944	// Possible values:
6945	//   "CONSUMPTION_PRICING_TYPE_UNSPECIFIED" - Pricing model not
6946	// specified. This is the default.
6947	//   "FIXED_PER_UNIT" - Fixed rate charged for each API call.
6948	//   "BANDED" - Variable rate charged based on the total volume of API
6949	// calls. Example: * 1-100 calls cost $2 per call * 101-200 calls cost
6950	// $1.50 per call * 201-300 calls cost $1 per call * Total price for 50
6951	// calls: 50 x $2 = $100 * Total price for 150 calls: 150 x $1.5 = $225
6952	// * Total price for 250 calls: 250 x $1 = $250. **Note**: Not supported
6953	// by Apigee at this time.
6954	//   "TIERED" - Variable rate charged for each API call based on price
6955	// tiers. Example: * 1-100 calls cost $2 per call * 101-200 calls cost
6956	// $1.50 per call * 201-300 calls cost $1 per call * Total price for 50
6957	// calls: 50 x $2 = $100 * Total price for 150 calls: 100 x $2 + 50 x
6958	// $1.5 = $275 * Total price for 250 calls: 100 x $2 + 100 x $1.5 + 50 x
6959	// $1 = $400. **Note**: Not supported by Apigee at this time.
6960	//   "STAIRSTEP" - Flat rate charged for a bundle of API calls whether
6961	// or not the entire bundle is used. Example: * 1-100 calls cost $75
6962	// flat fee * 101-200 calls cost $100 flat free * 201-300 calls cost
6963	// $150 flat fee * Total price for 1 call: $75 * Total price for 50
6964	// calls: $75 * Total price for 150 calls: $100 * Total price for 250
6965	// calls: $150. **Note**: Not supported by Apigee at this time.
6966	ConsumptionPricingType string `json:"consumptionPricingType,omitempty"`
6967
6968	// CreatedAt: Output only. Time that the rate plan was created in
6969	// milliseconds since epoch.
6970	CreatedAt int64 `json:"createdAt,omitempty,string"`
6971
6972	// CurrencyCode: Currency to be used for billing. Consists of a
6973	// three-letter code as defined by the ISO 4217
6974	// (https://en.wikipedia.org/wiki/ISO_4217) standard.
6975	CurrencyCode string `json:"currencyCode,omitempty"`
6976
6977	// Description: Description of the rate plan.
6978	Description string `json:"description,omitempty"`
6979
6980	// DisplayName: Display name of the rate plan.
6981	DisplayName string `json:"displayName,omitempty"`
6982
6983	// EndTime: Time when the rate plan will expire in milliseconds since
6984	// epoch. Set to 0 or `null` to indicate that the rate plan should never
6985	// expire.
6986	EndTime int64 `json:"endTime,omitempty,string"`
6987
6988	// FixedFeeFrequency: Frequency at which the fixed fee is charged.
6989	FixedFeeFrequency int64 `json:"fixedFeeFrequency,omitempty"`
6990
6991	// FixedRecurringFee: Fixed amount that is charged at a defined interval
6992	// and billed in advance of use of the API product. The fee will be
6993	// prorated for the first billing period.
6994	FixedRecurringFee *GoogleTypeMoney `json:"fixedRecurringFee,omitempty"`
6995
6996	// LastModifiedAt: Output only. Time the rate plan was last modified in
6997	// milliseconds since epoch.
6998	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
6999
7000	// Name: Output only. Name of the rate plan.
7001	Name string `json:"name,omitempty"`
7002
7003	// PaymentFundingModel: Flag that specifies the billing account type,
7004	// prepaid or postpaid.
7005	//
7006	// Possible values:
7007	//   "PAYMENT_FUNDING_MODEL_UNSPECIFIED" - Billing account type not
7008	// specified.
7009	//   "PREPAID" - Prepaid billing account type. Developer pays in advance
7010	// for the use of your API products. Funds are deducted from their
7011	// prepaid account balance. **Note**: Not supported by Apigee at this
7012	// time.
7013	//   "POSTPAID" - Postpaid billing account type. Developer is billed
7014	// through an invoice after using your API products.
7015	PaymentFundingModel string `json:"paymentFundingModel,omitempty"`
7016
7017	// RevenueShareRates: Details of the revenue sharing model.
7018	RevenueShareRates []*GoogleCloudApigeeV1RevenueShareRange `json:"revenueShareRates,omitempty"`
7019
7020	// RevenueShareType: Method used to calculate the revenue that is shared
7021	// with developers.
7022	//
7023	// Possible values:
7024	//   "REVENUE_SHARE_TYPE_UNSPECIFIED" - Revenue share type is not
7025	// specified.
7026	//   "FIXED" - Fixed percentage of the total revenue will be shared. The
7027	// percentage to be shared can be configured by the API provider.
7028	//   "VOLUME_BANDED" - Amount of revenue shared depends on the number of
7029	// API calls. The API call volume ranges and the revenue share
7030	// percentage for each volume can be configured by the API provider.
7031	// **Note**: Not supported by Apigee at this time.
7032	RevenueShareType string `json:"revenueShareType,omitempty"`
7033
7034	// SetupFee: Initial, one-time fee paid when purchasing the API product.
7035	SetupFee *GoogleTypeMoney `json:"setupFee,omitempty"`
7036
7037	// StartTime: Time when the rate plan becomes active in milliseconds
7038	// since epoch.
7039	StartTime int64 `json:"startTime,omitempty,string"`
7040
7041	// State: Current state of the rate plan (draft or published).
7042	//
7043	// Possible values:
7044	//   "STATE_UNSPECIFIED" - State of the rate plan is not specified.
7045	//   "DRAFT" - Rate plan is in draft mode and only visible to API
7046	// providers.
7047	//   "PUBLISHED" - Rate plan is published and will become visible to
7048	// developers for the configured duration (between `startTime` and
7049	// `endTime`).
7050	State string `json:"state,omitempty"`
7051
7052	// ServerResponse contains the HTTP response code and headers from the
7053	// server.
7054	googleapi.ServerResponse `json:"-"`
7055
7056	// ForceSendFields is a list of field names (e.g. "Apiproduct") to
7057	// unconditionally include in API requests. By default, fields with
7058	// empty or default values are omitted from API requests. However, any
7059	// non-pointer, non-interface field appearing in ForceSendFields will be
7060	// sent to the server regardless of whether the field is empty or not.
7061	// This may be used to include empty fields in Patch requests.
7062	ForceSendFields []string `json:"-"`
7063
7064	// NullFields is a list of field names (e.g. "Apiproduct") to include in
7065	// API requests with the JSON null value. By default, fields with empty
7066	// values are omitted from API requests. However, any field with an
7067	// empty value appearing in NullFields will be sent to the server as
7068	// null. It is an error if a field in this list has a non-empty value.
7069	// This may be used to include null fields in Patch requests.
7070	NullFields []string `json:"-"`
7071}
7072
7073func (s *GoogleCloudApigeeV1RatePlan) MarshalJSON() ([]byte, error) {
7074	type NoMethod GoogleCloudApigeeV1RatePlan
7075	raw := NoMethod(*s)
7076	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7077}
7078
7079// GoogleCloudApigeeV1RateRange: API call volume range and the fees
7080// charged when the total number of API calls is within the range.
7081type GoogleCloudApigeeV1RateRange struct {
7082	// End: Ending value of the range. Set to 0 or `null` for the last range
7083	// of values.
7084	End int64 `json:"end,omitempty,string"`
7085
7086	// Fee: Fee to charge when total number of API calls falls within this
7087	// range.
7088	Fee *GoogleTypeMoney `json:"fee,omitempty"`
7089
7090	// Start: Starting value of the range. Set to 0 or `null` for the
7091	// initial range of values.
7092	Start int64 `json:"start,omitempty,string"`
7093
7094	// ForceSendFields is a list of field names (e.g. "End") to
7095	// unconditionally include in API requests. By default, fields with
7096	// empty or default values are omitted from API requests. However, any
7097	// non-pointer, non-interface field appearing in ForceSendFields will be
7098	// sent to the server regardless of whether the field is empty or not.
7099	// This may be used to include empty fields in Patch requests.
7100	ForceSendFields []string `json:"-"`
7101
7102	// NullFields is a list of field names (e.g. "End") to include in API
7103	// requests with the JSON null value. By default, fields with empty
7104	// values are omitted from API requests. However, any field with an
7105	// empty value appearing in NullFields will be sent to the server as
7106	// null. It is an error if a field in this list has a non-empty value.
7107	// This may be used to include null fields in Patch requests.
7108	NullFields []string `json:"-"`
7109}
7110
7111func (s *GoogleCloudApigeeV1RateRange) MarshalJSON() ([]byte, error) {
7112	type NoMethod GoogleCloudApigeeV1RateRange
7113	raw := NoMethod(*s)
7114	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7115}
7116
7117// GoogleCloudApigeeV1Reference: A Reference configuration. References
7118// must refer to a keystore that also exists in the parent environment.
7119type GoogleCloudApigeeV1Reference struct {
7120	// Description: Optional. A human-readable description of this
7121	// reference.
7122	Description string `json:"description,omitempty"`
7123
7124	// Name: Required. The resource id of this reference. Values must match
7125	// the regular expression [\w\s\-.]+.
7126	Name string `json:"name,omitempty"`
7127
7128	// Refers: Required. The id of the resource to which this reference
7129	// refers. Must be the id of a resource that exists in the parent
7130	// environment and is of the given resource_type.
7131	Refers string `json:"refers,omitempty"`
7132
7133	// ResourceType: The type of resource referred to by this reference.
7134	// Valid values are 'KeyStore' or 'TrustStore'.
7135	ResourceType string `json:"resourceType,omitempty"`
7136
7137	// ServerResponse contains the HTTP response code and headers from the
7138	// server.
7139	googleapi.ServerResponse `json:"-"`
7140
7141	// ForceSendFields is a list of field names (e.g. "Description") to
7142	// unconditionally include in API requests. By default, fields with
7143	// empty or default values are omitted from API requests. However, any
7144	// non-pointer, non-interface field appearing in ForceSendFields will be
7145	// sent to the server regardless of whether the field is empty or not.
7146	// This may be used to include empty fields in Patch requests.
7147	ForceSendFields []string `json:"-"`
7148
7149	// NullFields is a list of field names (e.g. "Description") to include
7150	// in API requests with the JSON null value. By default, fields with
7151	// empty values are omitted from API requests. However, any field with
7152	// an empty value appearing in NullFields will be sent to the server as
7153	// null. It is an error if a field in this list has a non-empty value.
7154	// This may be used to include null fields in Patch requests.
7155	NullFields []string `json:"-"`
7156}
7157
7158func (s *GoogleCloudApigeeV1Reference) MarshalJSON() ([]byte, error) {
7159	type NoMethod GoogleCloudApigeeV1Reference
7160	raw := NoMethod(*s)
7161	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7162}
7163
7164type GoogleCloudApigeeV1ReferenceConfig struct {
7165	// Name: Name of the reference in the following format:
7166	// `organizations/{org}/environments/{env}/references/{reference}`
7167	Name string `json:"name,omitempty"`
7168
7169	// ResourceName: Name of the referenced resource in the following
7170	// format: `organizations/{org}/environments/{env}/keystores/{keystore}`
7171	// Only references to keystore resources are supported.
7172	ResourceName string `json:"resourceName,omitempty"`
7173
7174	// ForceSendFields is a list of field names (e.g. "Name") to
7175	// unconditionally include in API requests. By default, fields with
7176	// empty or default values are omitted from API requests. However, any
7177	// non-pointer, non-interface field appearing in ForceSendFields will be
7178	// sent to the server regardless of whether the field is empty or not.
7179	// This may be used to include empty fields in Patch requests.
7180	ForceSendFields []string `json:"-"`
7181
7182	// NullFields is a list of field names (e.g. "Name") to include in API
7183	// requests with the JSON null value. By default, fields with empty
7184	// values are omitted from API requests. However, any field with an
7185	// empty value appearing in NullFields will be sent to the server as
7186	// null. It is an error if a field in this list has a non-empty value.
7187	// This may be used to include null fields in Patch requests.
7188	NullFields []string `json:"-"`
7189}
7190
7191func (s *GoogleCloudApigeeV1ReferenceConfig) MarshalJSON() ([]byte, error) {
7192	type NoMethod GoogleCloudApigeeV1ReferenceConfig
7193	raw := NoMethod(*s)
7194	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7195}
7196
7197// GoogleCloudApigeeV1ReportInstanceStatusRequest: Request for
7198// ReportInstanceStatus.
7199type GoogleCloudApigeeV1ReportInstanceStatusRequest struct {
7200	// InstanceUid: A unique ID for the instance which is guaranteed to be
7201	// unique in case the user installs multiple hybrid runtimes with the
7202	// same instance ID.
7203	InstanceUid string `json:"instanceUid,omitempty"`
7204
7205	// ReportTime: The time the report was generated in the runtime. Used to
7206	// prevent an old status from overwriting a newer one. An instance
7207	// should space out it's status reports so that clock skew does not play
7208	// a factor.
7209	ReportTime string `json:"reportTime,omitempty"`
7210
7211	// Resources: Status for config resources
7212	Resources []*GoogleCloudApigeeV1ResourceStatus `json:"resources,omitempty"`
7213
7214	// ForceSendFields is a list of field names (e.g. "InstanceUid") to
7215	// unconditionally include in API requests. By default, fields with
7216	// empty or default values are omitted from API requests. However, any
7217	// non-pointer, non-interface field appearing in ForceSendFields will be
7218	// sent to the server regardless of whether the field is empty or not.
7219	// This may be used to include empty fields in Patch requests.
7220	ForceSendFields []string `json:"-"`
7221
7222	// NullFields is a list of field names (e.g. "InstanceUid") to include
7223	// in API requests with the JSON null value. By default, fields with
7224	// empty values are omitted from API requests. However, any field with
7225	// an empty value appearing in NullFields will be sent to the server as
7226	// null. It is an error if a field in this list has a non-empty value.
7227	// This may be used to include null fields in Patch requests.
7228	NullFields []string `json:"-"`
7229}
7230
7231func (s *GoogleCloudApigeeV1ReportInstanceStatusRequest) MarshalJSON() ([]byte, error) {
7232	type NoMethod GoogleCloudApigeeV1ReportInstanceStatusRequest
7233	raw := NoMethod(*s)
7234	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7235}
7236
7237// GoogleCloudApigeeV1ReportInstanceStatusResponse: Placeholder for
7238// future enhancements to status reporting protocol
7239type GoogleCloudApigeeV1ReportInstanceStatusResponse struct {
7240	// ServerResponse contains the HTTP response code and headers from the
7241	// server.
7242	googleapi.ServerResponse `json:"-"`
7243}
7244
7245type GoogleCloudApigeeV1ReportProperty struct {
7246	// Property: name of the property
7247	Property string `json:"property,omitempty"`
7248
7249	// Value: property values
7250	Value []*GoogleCloudApigeeV1Attribute `json:"value,omitempty"`
7251
7252	// ForceSendFields is a list of field names (e.g. "Property") to
7253	// unconditionally include in API requests. By default, fields with
7254	// empty or default values are omitted from API requests. However, any
7255	// non-pointer, non-interface field appearing in ForceSendFields will be
7256	// sent to the server regardless of whether the field is empty or not.
7257	// This may be used to include empty fields in Patch requests.
7258	ForceSendFields []string `json:"-"`
7259
7260	// NullFields is a list of field names (e.g. "Property") to include in
7261	// API requests with the JSON null value. By default, fields with empty
7262	// values are omitted from API requests. However, any field with an
7263	// empty value appearing in NullFields will be sent to the server as
7264	// null. It is an error if a field in this list has a non-empty value.
7265	// This may be used to include null fields in Patch requests.
7266	NullFields []string `json:"-"`
7267}
7268
7269func (s *GoogleCloudApigeeV1ReportProperty) MarshalJSON() ([]byte, error) {
7270	type NoMethod GoogleCloudApigeeV1ReportProperty
7271	raw := NoMethod(*s)
7272	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7273}
7274
7275type GoogleCloudApigeeV1ResourceConfig struct {
7276	// Location: Location of the resource as a URI.
7277	Location string `json:"location,omitempty"`
7278
7279	// Name: Resource name in the following format:
7280	// `organizations/{org}/environments/{env}/resourcefiles/{type}/{file}/re
7281	// visions/{rev}` Only environment-scoped resource files are supported.
7282	Name string `json:"name,omitempty"`
7283
7284	// ForceSendFields is a list of field names (e.g. "Location") to
7285	// unconditionally include in API requests. By default, fields with
7286	// empty or default values are omitted from API requests. However, any
7287	// non-pointer, non-interface field appearing in ForceSendFields will be
7288	// sent to the server regardless of whether the field is empty or not.
7289	// This may be used to include empty fields in Patch requests.
7290	ForceSendFields []string `json:"-"`
7291
7292	// NullFields is a list of field names (e.g. "Location") to include in
7293	// API requests with the JSON null value. By default, fields with empty
7294	// values are omitted from API requests. However, any field with an
7295	// empty value appearing in NullFields will be sent to the server as
7296	// null. It is an error if a field in this list has a non-empty value.
7297	// This may be used to include null fields in Patch requests.
7298	NullFields []string `json:"-"`
7299}
7300
7301func (s *GoogleCloudApigeeV1ResourceConfig) MarshalJSON() ([]byte, error) {
7302	type NoMethod GoogleCloudApigeeV1ResourceConfig
7303	raw := NoMethod(*s)
7304	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7305}
7306
7307// GoogleCloudApigeeV1ResourceFile: Metadata about a resource file.
7308type GoogleCloudApigeeV1ResourceFile struct {
7309	// Name: ID of the resource file.
7310	Name string `json:"name,omitempty"`
7311
7312	// Type: Resource file type. {{ resource_file_type }}
7313	Type string `json:"type,omitempty"`
7314
7315	// ServerResponse contains the HTTP response code and headers from the
7316	// server.
7317	googleapi.ServerResponse `json:"-"`
7318
7319	// ForceSendFields is a list of field names (e.g. "Name") to
7320	// unconditionally include in API requests. By default, fields with
7321	// empty or default values are omitted from API requests. However, any
7322	// non-pointer, non-interface field appearing in ForceSendFields will be
7323	// sent to the server regardless of whether the field is empty or not.
7324	// This may be used to include empty fields in Patch requests.
7325	ForceSendFields []string `json:"-"`
7326
7327	// NullFields is a list of field names (e.g. "Name") to include in API
7328	// requests with the JSON null value. By default, fields with empty
7329	// values are omitted from API requests. However, any field with an
7330	// empty value appearing in NullFields will be sent to the server as
7331	// null. It is an error if a field in this list has a non-empty value.
7332	// This may be used to include null fields in Patch requests.
7333	NullFields []string `json:"-"`
7334}
7335
7336func (s *GoogleCloudApigeeV1ResourceFile) MarshalJSON() ([]byte, error) {
7337	type NoMethod GoogleCloudApigeeV1ResourceFile
7338	raw := NoMethod(*s)
7339	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7340}
7341
7342// GoogleCloudApigeeV1ResourceFiles: List of resource files.
7343type GoogleCloudApigeeV1ResourceFiles struct {
7344	// ResourceFile: List of resource files.
7345	ResourceFile []*GoogleCloudApigeeV1ResourceFile `json:"resourceFile,omitempty"`
7346
7347	// ForceSendFields is a list of field names (e.g. "ResourceFile") to
7348	// unconditionally include in API requests. By default, fields with
7349	// empty or default values are omitted from API requests. However, any
7350	// non-pointer, non-interface field appearing in ForceSendFields will be
7351	// sent to the server regardless of whether the field is empty or not.
7352	// This may be used to include empty fields in Patch requests.
7353	ForceSendFields []string `json:"-"`
7354
7355	// NullFields is a list of field names (e.g. "ResourceFile") to include
7356	// in API requests with the JSON null value. By default, fields with
7357	// empty values are omitted from API requests. However, any field with
7358	// an empty value appearing in NullFields will be sent to the server as
7359	// null. It is an error if a field in this list has a non-empty value.
7360	// This may be used to include null fields in Patch requests.
7361	NullFields []string `json:"-"`
7362}
7363
7364func (s *GoogleCloudApigeeV1ResourceFiles) MarshalJSON() ([]byte, error) {
7365	type NoMethod GoogleCloudApigeeV1ResourceFiles
7366	raw := NoMethod(*s)
7367	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7368}
7369
7370// GoogleCloudApigeeV1ResourceStatus: The status of a resource loaded in
7371// the runtime.
7372type GoogleCloudApigeeV1ResourceStatus struct {
7373	// Resource: The resource name. Currently only two resources are
7374	// supported: EnvironmentGroup -
7375	// organizations/{org}/envgroups/{envgroup} EnvironmentConfig -
7376	// organizations/{org}/environments/{environment}/deployedConfig
7377	Resource string `json:"resource,omitempty"`
7378
7379	// Revisions: Revisions of the resource currently deployed in the
7380	// instance.
7381	Revisions []*GoogleCloudApigeeV1RevisionStatus `json:"revisions,omitempty"`
7382
7383	// TotalReplicas: The total number of replicas that should have this
7384	// resource.
7385	TotalReplicas int64 `json:"totalReplicas,omitempty"`
7386
7387	// Uid: The uid of the resource. In the unexpected case that the
7388	// instance has multiple uids for the same name, they should be reported
7389	// under separate ResourceStatuses.
7390	Uid string `json:"uid,omitempty"`
7391
7392	// ForceSendFields is a list of field names (e.g. "Resource") to
7393	// unconditionally include in API requests. By default, fields with
7394	// empty or default values are omitted from API requests. However, any
7395	// non-pointer, non-interface field appearing in ForceSendFields will be
7396	// sent to the server regardless of whether the field is empty or not.
7397	// This may be used to include empty fields in Patch requests.
7398	ForceSendFields []string `json:"-"`
7399
7400	// NullFields is a list of field names (e.g. "Resource") to include in
7401	// API requests with the JSON null value. By default, fields with empty
7402	// values are omitted from API requests. However, any field with an
7403	// empty value appearing in NullFields will be sent to the server as
7404	// null. It is an error if a field in this list has a non-empty value.
7405	// This may be used to include null fields in Patch requests.
7406	NullFields []string `json:"-"`
7407}
7408
7409func (s *GoogleCloudApigeeV1ResourceStatus) MarshalJSON() ([]byte, error) {
7410	type NoMethod GoogleCloudApigeeV1ResourceStatus
7411	raw := NoMethod(*s)
7412	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7413}
7414
7415// GoogleCloudApigeeV1Result: Result is short for "action result", could
7416// be different types identified by "action_result" field. Supported
7417// types: 1. DebugInfo : generic debug info collected by runtime
7418// recorded as a list of properties. For example, the contents could be
7419// virtual host info, state change result, or execution metadata.
7420// Required fields : properties, timestamp 2. RequestMessage:
7421// information of a http request. Contains headers, request URI and http
7422// methods type.Required fields : headers, uri, verb 3. ResponseMessage:
7423// information of a http response. Contains headers, reason phrase and
7424// http status code. Required fields : headers, reasonPhrase, statusCode
7425// 4. ErrorMessage: information of a http error message. Contains detail
7426// error message, reason phrase and status code. Required fields :
7427// content, headers, reasonPhrase, statusCode 5. VariableAccess: a list
7428// of variable access actions, can be Get, Set and Remove. Required
7429// fields : accessList
7430type GoogleCloudApigeeV1Result struct {
7431	// ActionResult: Type of the action result. Can be one of the five:
7432	// DebugInfo, RequestMessage, ResponseMessage, ErrorMessage,
7433	// VariableAccess
7434	ActionResult string `json:"ActionResult,omitempty"`
7435
7436	// AccessList: A list of variable access actions agaist the api proxy.
7437	// Supported values: Get, Set, Remove.
7438	AccessList []*GoogleCloudApigeeV1Access `json:"accessList,omitempty"`
7439
7440	// Content: Error message content. for example, "content" :
7441	// "{\"fault\":{\"faultstring\":\"API timed
7442	// out\",\"detail\":{\"errorcode\":\"flow.APITimedOut\"}}}"
7443	Content string `json:"content,omitempty"`
7444
7445	// Headers: A list of HTTP headers. for example, '"headers" : [ { "name"
7446	// : "Content-Length", "value" : "83" }, { "name" : "Content-Type",
7447	// "value" : "application/json" } ]'
7448	Headers []*GoogleCloudApigeeV1Property `json:"headers,omitempty"`
7449
7450	// Properties: Name value pairs used for DebugInfo ActionResult.
7451	Properties *GoogleCloudApigeeV1Properties `json:"properties,omitempty"`
7452
7453	// ReasonPhrase: HTTP response phrase
7454	ReasonPhrase string `json:"reasonPhrase,omitempty"`
7455
7456	// StatusCode: HTTP response code
7457	StatusCode string `json:"statusCode,omitempty"`
7458
7459	// Timestamp: Timestamp of when the result is recorded. Its format is
7460	// dd-mm-yy hh:mm:ss:xxx. For example, "timestamp" : "12-08-19
7461	// 00:31:59:960"
7462	Timestamp string `json:"timestamp,omitempty"`
7463
7464	// URI: The relative path of the api proxy. for example, "uRI" :
7465	// "/iloveapis"
7466	URI string `json:"uRI,omitempty"`
7467
7468	// Verb: HTTP method verb
7469	Verb string `json:"verb,omitempty"`
7470
7471	// ForceSendFields is a list of field names (e.g. "ActionResult") to
7472	// unconditionally include in API requests. By default, fields with
7473	// empty or default values are omitted from API requests. However, any
7474	// non-pointer, non-interface field appearing in ForceSendFields will be
7475	// sent to the server regardless of whether the field is empty or not.
7476	// This may be used to include empty fields in Patch requests.
7477	ForceSendFields []string `json:"-"`
7478
7479	// NullFields is a list of field names (e.g. "ActionResult") to include
7480	// in API requests with the JSON null value. By default, fields with
7481	// empty values are omitted from API requests. However, any field with
7482	// an empty value appearing in NullFields will be sent to the server as
7483	// null. It is an error if a field in this list has a non-empty value.
7484	// This may be used to include null fields in Patch requests.
7485	NullFields []string `json:"-"`
7486}
7487
7488func (s *GoogleCloudApigeeV1Result) MarshalJSON() ([]byte, error) {
7489	type NoMethod GoogleCloudApigeeV1Result
7490	raw := NoMethod(*s)
7491	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7492}
7493
7494// GoogleCloudApigeeV1RevenueShareRange: API call volume range and the
7495// percentage of revenue to share with the developer when the total
7496// number of API calls is within the range.
7497type GoogleCloudApigeeV1RevenueShareRange struct {
7498	// End: Ending value of the range. Set to 0 or `null` for the last range
7499	// of values.
7500	End int64 `json:"end,omitempty,string"`
7501
7502	// SharePercentage: Percentage of the revenue to be shared with the
7503	// developer. For example, to share 21 percent of the total revenue with
7504	// the developer, set this value to 21. Specify a decimal number with a
7505	// maximum of two digits following the decimal point.
7506	SharePercentage float64 `json:"sharePercentage,omitempty"`
7507
7508	// Start: Starting value of the range. Set to 0 or `null` for the
7509	// initial range of values.
7510	Start int64 `json:"start,omitempty,string"`
7511
7512	// ForceSendFields is a list of field names (e.g. "End") to
7513	// unconditionally include in API requests. By default, fields with
7514	// empty or default values are omitted from API requests. However, any
7515	// non-pointer, non-interface field appearing in ForceSendFields will be
7516	// sent to the server regardless of whether the field is empty or not.
7517	// This may be used to include empty fields in Patch requests.
7518	ForceSendFields []string `json:"-"`
7519
7520	// NullFields is a list of field names (e.g. "End") to include in API
7521	// requests with the JSON null value. By default, fields with empty
7522	// values are omitted from API requests. However, any field with an
7523	// empty value appearing in NullFields will be sent to the server as
7524	// null. It is an error if a field in this list has a non-empty value.
7525	// This may be used to include null fields in Patch requests.
7526	NullFields []string `json:"-"`
7527}
7528
7529func (s *GoogleCloudApigeeV1RevenueShareRange) MarshalJSON() ([]byte, error) {
7530	type NoMethod GoogleCloudApigeeV1RevenueShareRange
7531	raw := NoMethod(*s)
7532	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7533}
7534
7535func (s *GoogleCloudApigeeV1RevenueShareRange) UnmarshalJSON(data []byte) error {
7536	type NoMethod GoogleCloudApigeeV1RevenueShareRange
7537	var s1 struct {
7538		SharePercentage gensupport.JSONFloat64 `json:"sharePercentage"`
7539		*NoMethod
7540	}
7541	s1.NoMethod = (*NoMethod)(s)
7542	if err := json.Unmarshal(data, &s1); err != nil {
7543		return err
7544	}
7545	s.SharePercentage = float64(s1.SharePercentage)
7546	return nil
7547}
7548
7549// GoogleCloudApigeeV1RevisionStatus: The status of a specific resource
7550// revision.
7551type GoogleCloudApigeeV1RevisionStatus struct {
7552	// Errors: Errors reported when attempting to load this revision.
7553	Errors []*GoogleCloudApigeeV1UpdateError `json:"errors,omitempty"`
7554
7555	// JsonSpec: The json content of the resource revision. Large specs
7556	// should be sent individually via the spec field to avoid hitting
7557	// request size limits.
7558	JsonSpec string `json:"jsonSpec,omitempty"`
7559
7560	// Replicas: The number of replicas that have successfully loaded this
7561	// revision.
7562	Replicas int64 `json:"replicas,omitempty"`
7563
7564	// RevisionId: The revision of the resource.
7565	RevisionId string `json:"revisionId,omitempty"`
7566
7567	// ForceSendFields is a list of field names (e.g. "Errors") to
7568	// unconditionally include in API requests. By default, fields with
7569	// empty or default values are omitted from API requests. However, any
7570	// non-pointer, non-interface field appearing in ForceSendFields will be
7571	// sent to the server regardless of whether the field is empty or not.
7572	// This may be used to include empty fields in Patch requests.
7573	ForceSendFields []string `json:"-"`
7574
7575	// NullFields is a list of field names (e.g. "Errors") to include in API
7576	// requests with the JSON null value. By default, fields with empty
7577	// values are omitted from API requests. However, any field with an
7578	// empty value appearing in NullFields will be sent to the server as
7579	// null. It is an error if a field in this list has a non-empty value.
7580	// This may be used to include null fields in Patch requests.
7581	NullFields []string `json:"-"`
7582}
7583
7584func (s *GoogleCloudApigeeV1RevisionStatus) MarshalJSON() ([]byte, error) {
7585	type NoMethod GoogleCloudApigeeV1RevisionStatus
7586	raw := NoMethod(*s)
7587	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7588}
7589
7590type GoogleCloudApigeeV1RoutingRule struct {
7591	// Basepath: URI path prefix used to route to the specified environment.
7592	// May contain one or more wildcards. For example, path segments
7593	// consisting of a single `*` character will match any string.
7594	Basepath string `json:"basepath,omitempty"`
7595
7596	// EnvGroupRevision: The env group config revision_id when this rule was
7597	// added or last updated. This value is set when the rule is created and
7598	// will only update if the the environment_id changes. It is used to
7599	// determine if the runtime is up to date with respect to this rule.
7600	// This field is omitted from the IngressConfig unless the
7601	// GetDeployedIngressConfig API is called with view=FULL.
7602	EnvGroupRevision int64 `json:"envGroupRevision,omitempty,string"`
7603
7604	// Environment: Name of an environment bound to the environment group in
7605	// the following format: `organizations/{org}/environments/{env}`.
7606	Environment string `json:"environment,omitempty"`
7607
7608	// Receiver: The resource name of the proxy revision that is receiving
7609	// this basepath in the following format:
7610	// `organizations/{org}/apis/{api}/revisions/{rev}`. This field is
7611	// omitted from the IngressConfig unless the GetDeployedIngressConfig
7612	// API is called with view=FULL.
7613	Receiver string `json:"receiver,omitempty"`
7614
7615	// UpdateTime: The unix timestamp when this rule was updated. This is
7616	// updated whenever env_group_revision is updated. This field is omitted
7617	// from the IngressConfig unless the GetDeployedIngressConfig API is
7618	// called with view=FULL.
7619	UpdateTime string `json:"updateTime,omitempty"`
7620
7621	// ForceSendFields is a list of field names (e.g. "Basepath") to
7622	// unconditionally include in API requests. By default, fields with
7623	// empty or default values are omitted from API requests. However, any
7624	// non-pointer, non-interface field appearing in ForceSendFields will be
7625	// sent to the server regardless of whether the field is empty or not.
7626	// This may be used to include empty fields in Patch requests.
7627	ForceSendFields []string `json:"-"`
7628
7629	// NullFields is a list of field names (e.g. "Basepath") to include in
7630	// API requests with the JSON null value. By default, fields with empty
7631	// values are omitted from API requests. However, any field with an
7632	// empty value appearing in NullFields will be sent to the server as
7633	// null. It is an error if a field in this list has a non-empty value.
7634	// This may be used to include null fields in Patch requests.
7635	NullFields []string `json:"-"`
7636}
7637
7638func (s *GoogleCloudApigeeV1RoutingRule) MarshalJSON() ([]byte, error) {
7639	type NoMethod GoogleCloudApigeeV1RoutingRule
7640	raw := NoMethod(*s)
7641	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7642}
7643
7644// GoogleCloudApigeeV1RuntimeConfig: Runtime configuration for the
7645// organization. Response for GetRuntimeConfig.
7646type GoogleCloudApigeeV1RuntimeConfig struct {
7647	// AnalyticsBucket: Cloud Storage bucket used for uploading Analytics
7648	// records.
7649	AnalyticsBucket string `json:"analyticsBucket,omitempty"`
7650
7651	// Name: Name of the resource in the following format:
7652	// `organizations/{org}/runtimeConfig`.
7653	Name string `json:"name,omitempty"`
7654
7655	// TenantProjectId: Output only. Tenant project ID associated with the
7656	// Apigee organization. The tenant project is used to host
7657	// Google-managed resources that are dedicated to this Apigee
7658	// organization. Clients have limited access to resources within the
7659	// tenant project used to support Apigee runtime instances. Access to
7660	// the tenant project is managed using SetSyncAuthorization. It can be
7661	// empty if the tenant project hasn't been created yet.
7662	TenantProjectId string `json:"tenantProjectId,omitempty"`
7663
7664	// TraceBucket: Cloud Storage bucket used for uploading Trace records.
7665	TraceBucket string `json:"traceBucket,omitempty"`
7666
7667	// ServerResponse contains the HTTP response code and headers from the
7668	// server.
7669	googleapi.ServerResponse `json:"-"`
7670
7671	// ForceSendFields is a list of field names (e.g. "AnalyticsBucket") to
7672	// unconditionally include in API requests. By default, fields with
7673	// empty or default values are omitted from API requests. However, any
7674	// non-pointer, non-interface field appearing in ForceSendFields will be
7675	// sent to the server regardless of whether the field is empty or not.
7676	// This may be used to include empty fields in Patch requests.
7677	ForceSendFields []string `json:"-"`
7678
7679	// NullFields is a list of field names (e.g. "AnalyticsBucket") to
7680	// include in API requests with the JSON null value. By default, fields
7681	// with empty values are omitted from API requests. However, any field
7682	// with an empty value appearing in NullFields will be sent to the
7683	// server as null. It is an error if a field in this list has a
7684	// non-empty value. This may be used to include null fields in Patch
7685	// requests.
7686	NullFields []string `json:"-"`
7687}
7688
7689func (s *GoogleCloudApigeeV1RuntimeConfig) MarshalJSON() ([]byte, error) {
7690	type NoMethod GoogleCloudApigeeV1RuntimeConfig
7691	raw := NoMethod(*s)
7692	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7693}
7694
7695// GoogleCloudApigeeV1RuntimeTraceConfig: NEXT ID: 8 RuntimeTraceConfig
7696// defines the configurations for distributed trace in an environment.
7697type GoogleCloudApigeeV1RuntimeTraceConfig struct {
7698	// Endpoint: Endpoint of the exporter.
7699	Endpoint string `json:"endpoint,omitempty"`
7700
7701	// Exporter: Exporter that is used to view the distributed trace
7702	// captured using OpenCensus. An exporter sends traces to any backend
7703	// that is capable of consuming them. Recorded spans can be exported by
7704	// registered exporters.
7705	//
7706	// Possible values:
7707	//   "EXPORTER_UNSPECIFIED" - Exporter unspecified
7708	//   "JAEGER" - Jaeger exporter
7709	//   "CLOUD_TRACE" - Cloudtrace exporter
7710	Exporter string `json:"exporter,omitempty"`
7711
7712	// Name: Name of the trace config in the following format:
7713	// `organizations/{org}/environment/{env}/traceConfig`
7714	Name string `json:"name,omitempty"`
7715
7716	// Overrides: List of trace configuration overrides for spicific API
7717	// proxies.
7718	Overrides []*GoogleCloudApigeeV1RuntimeTraceConfigOverride `json:"overrides,omitempty"`
7719
7720	// RevisionCreateTime: The timestamp that the revision was created or
7721	// updated.
7722	RevisionCreateTime string `json:"revisionCreateTime,omitempty"`
7723
7724	// RevisionId: Revision number which can be used by the runtime to
7725	// detect if the trace config has changed between two versions.
7726	RevisionId string `json:"revisionId,omitempty"`
7727
7728	// SamplingConfig: Trace configuration for all API proxies in an
7729	// environment.
7730	SamplingConfig *GoogleCloudApigeeV1RuntimeTraceSamplingConfig `json:"samplingConfig,omitempty"`
7731
7732	// ForceSendFields is a list of field names (e.g. "Endpoint") to
7733	// unconditionally include in API requests. By default, fields with
7734	// empty or default values are omitted from API requests. However, any
7735	// non-pointer, non-interface field appearing in ForceSendFields will be
7736	// sent to the server regardless of whether the field is empty or not.
7737	// This may be used to include empty fields in Patch requests.
7738	ForceSendFields []string `json:"-"`
7739
7740	// NullFields is a list of field names (e.g. "Endpoint") to include in
7741	// API requests with the JSON null value. By default, fields with empty
7742	// values are omitted from API requests. However, any field with an
7743	// empty value appearing in NullFields will be sent to the server as
7744	// null. It is an error if a field in this list has a non-empty value.
7745	// This may be used to include null fields in Patch requests.
7746	NullFields []string `json:"-"`
7747}
7748
7749func (s *GoogleCloudApigeeV1RuntimeTraceConfig) MarshalJSON() ([]byte, error) {
7750	type NoMethod GoogleCloudApigeeV1RuntimeTraceConfig
7751	raw := NoMethod(*s)
7752	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7753}
7754
7755// GoogleCloudApigeeV1RuntimeTraceConfigOverride: NEXT ID: 7 Trace
7756// configuration override for a specific API proxy in an environment.
7757type GoogleCloudApigeeV1RuntimeTraceConfigOverride struct {
7758	// ApiProxy: Name of the API proxy that will have its trace
7759	// configuration overridden following format:
7760	// `organizations/{org}/apis/{api}`
7761	ApiProxy string `json:"apiProxy,omitempty"`
7762
7763	// Name: Name of the trace config override in the following format:
7764	// `organizations/{org}/environment/{env}/traceConfig/overrides/{override
7765	// }`
7766	Name string `json:"name,omitempty"`
7767
7768	// RevisionCreateTime: The timestamp that the revision was created or
7769	// updated.
7770	RevisionCreateTime string `json:"revisionCreateTime,omitempty"`
7771
7772	// RevisionId: Revision number which can be used by the runtime to
7773	// detect if the trace config override has changed between two versions.
7774	RevisionId string `json:"revisionId,omitempty"`
7775
7776	// SamplingConfig: Trace configuration override for a specific API proxy
7777	// in an environment.
7778	SamplingConfig *GoogleCloudApigeeV1RuntimeTraceSamplingConfig `json:"samplingConfig,omitempty"`
7779
7780	// Uid: Unique ID for the configuration override. The ID will only
7781	// change if the override is deleted and recreated. Corresponds to
7782	// name's "override" field.
7783	Uid string `json:"uid,omitempty"`
7784
7785	// ForceSendFields is a list of field names (e.g. "ApiProxy") to
7786	// unconditionally include in API requests. By default, fields with
7787	// empty or default values are omitted from API requests. However, any
7788	// non-pointer, non-interface field appearing in ForceSendFields will be
7789	// sent to the server regardless of whether the field is empty or not.
7790	// This may be used to include empty fields in Patch requests.
7791	ForceSendFields []string `json:"-"`
7792
7793	// NullFields is a list of field names (e.g. "ApiProxy") to include in
7794	// API requests with the JSON null value. By default, fields with empty
7795	// values are omitted from API requests. However, any field with an
7796	// empty value appearing in NullFields will be sent to the server as
7797	// null. It is an error if a field in this list has a non-empty value.
7798	// This may be used to include null fields in Patch requests.
7799	NullFields []string `json:"-"`
7800}
7801
7802func (s *GoogleCloudApigeeV1RuntimeTraceConfigOverride) MarshalJSON() ([]byte, error) {
7803	type NoMethod GoogleCloudApigeeV1RuntimeTraceConfigOverride
7804	raw := NoMethod(*s)
7805	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7806}
7807
7808// GoogleCloudApigeeV1RuntimeTraceSamplingConfig: NEXT ID: 3
7809// RuntimeTraceSamplingConfig represents the detail settings of
7810// distributed tracing. Only the fields that are defined in the
7811// distributed trace configuration can be overridden using the
7812// distribute trace configuration override APIs.
7813type GoogleCloudApigeeV1RuntimeTraceSamplingConfig struct {
7814	// Sampler: Sampler of distributed tracing. OFF is the default value.
7815	//
7816	// Possible values:
7817	//   "SAMPLER_UNSPECIFIED" - Sampler unspecified.
7818	//   "OFF" - OFF means distributed trace is disabled, or the sampling
7819	// probability is 0.
7820	//   "PROBABILITY" - PROBABILITY means traces are captured on a
7821	// probability that defined by sampling_rate. The sampling rate is
7822	// limited to 0 to 0.5 when this is set.
7823	Sampler string `json:"sampler,omitempty"`
7824
7825	// SamplingRate: Field sampling rate. This value is only applicable when
7826	// using the PROBABILITY sampler. The supported values are > 0 and <=
7827	// 0.5.
7828	SamplingRate float64 `json:"samplingRate,omitempty"`
7829
7830	// ForceSendFields is a list of field names (e.g. "Sampler") to
7831	// unconditionally include in API requests. By default, fields with
7832	// empty or default values are omitted from API requests. However, any
7833	// non-pointer, non-interface field appearing in ForceSendFields will be
7834	// sent to the server regardless of whether the field is empty or not.
7835	// This may be used to include empty fields in Patch requests.
7836	ForceSendFields []string `json:"-"`
7837
7838	// NullFields is a list of field names (e.g. "Sampler") to include in
7839	// API requests with the JSON null value. By default, fields with empty
7840	// values are omitted from API requests. However, any field with an
7841	// empty value appearing in NullFields will be sent to the server as
7842	// null. It is an error if a field in this list has a non-empty value.
7843	// This may be used to include null fields in Patch requests.
7844	NullFields []string `json:"-"`
7845}
7846
7847func (s *GoogleCloudApigeeV1RuntimeTraceSamplingConfig) MarshalJSON() ([]byte, error) {
7848	type NoMethod GoogleCloudApigeeV1RuntimeTraceSamplingConfig
7849	raw := NoMethod(*s)
7850	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7851}
7852
7853func (s *GoogleCloudApigeeV1RuntimeTraceSamplingConfig) UnmarshalJSON(data []byte) error {
7854	type NoMethod GoogleCloudApigeeV1RuntimeTraceSamplingConfig
7855	var s1 struct {
7856		SamplingRate gensupport.JSONFloat64 `json:"samplingRate"`
7857		*NoMethod
7858	}
7859	s1.NoMethod = (*NoMethod)(s)
7860	if err := json.Unmarshal(data, &s1); err != nil {
7861		return err
7862	}
7863	s.SamplingRate = float64(s1.SamplingRate)
7864	return nil
7865}
7866
7867// GoogleCloudApigeeV1Schema: Response for Schema call
7868type GoogleCloudApigeeV1Schema struct {
7869	// Dimensions: List of schema fields grouped as dimensions.
7870	Dimensions []*GoogleCloudApigeeV1SchemaSchemaElement `json:"dimensions,omitempty"`
7871
7872	// Meta: Additional metadata associated with schema. This is a legacy
7873	// field and usually consists of an empty array of strings.
7874	Meta []string `json:"meta,omitempty"`
7875
7876	// Metrics: List of schema fields grouped as dimensions that can be used
7877	// with an aggregate function such as `sum`, `avg`, `min`, and `max`.
7878	Metrics []*GoogleCloudApigeeV1SchemaSchemaElement `json:"metrics,omitempty"`
7879
7880	// ServerResponse contains the HTTP response code and headers from the
7881	// server.
7882	googleapi.ServerResponse `json:"-"`
7883
7884	// ForceSendFields is a list of field names (e.g. "Dimensions") to
7885	// unconditionally include in API requests. By default, fields with
7886	// empty or default values are omitted from API requests. However, any
7887	// non-pointer, non-interface field appearing in ForceSendFields will be
7888	// sent to the server regardless of whether the field is empty or not.
7889	// This may be used to include empty fields in Patch requests.
7890	ForceSendFields []string `json:"-"`
7891
7892	// NullFields is a list of field names (e.g. "Dimensions") to include in
7893	// API requests with the JSON null value. By default, fields with empty
7894	// values are omitted from API requests. However, any field with an
7895	// empty value appearing in NullFields will be sent to the server as
7896	// null. It is an error if a field in this list has a non-empty value.
7897	// This may be used to include null fields in Patch requests.
7898	NullFields []string `json:"-"`
7899}
7900
7901func (s *GoogleCloudApigeeV1Schema) MarshalJSON() ([]byte, error) {
7902	type NoMethod GoogleCloudApigeeV1Schema
7903	raw := NoMethod(*s)
7904	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7905}
7906
7907// GoogleCloudApigeeV1SchemaSchemaElement: Message type for the schema
7908// element
7909type GoogleCloudApigeeV1SchemaSchemaElement struct {
7910	// Name: Name of the field.
7911	Name string `json:"name,omitempty"`
7912
7913	// Properties: Properties for the schema field. For example: {
7914	// "createTime": "2016-02-26T10:23:09.592Z", "custom": "false", "type":
7915	// "string" }
7916	Properties *GoogleCloudApigeeV1SchemaSchemaProperty `json:"properties,omitempty"`
7917
7918	// ForceSendFields is a list of field names (e.g. "Name") to
7919	// unconditionally include in API requests. By default, fields with
7920	// empty or default values are omitted from API requests. However, any
7921	// non-pointer, non-interface field appearing in ForceSendFields will be
7922	// sent to the server regardless of whether the field is empty or not.
7923	// This may be used to include empty fields in Patch requests.
7924	ForceSendFields []string `json:"-"`
7925
7926	// NullFields is a list of field names (e.g. "Name") to include in API
7927	// requests with the JSON null value. By default, fields with empty
7928	// values are omitted from API requests. However, any field with an
7929	// empty value appearing in NullFields will be sent to the server as
7930	// null. It is an error if a field in this list has a non-empty value.
7931	// This may be used to include null fields in Patch requests.
7932	NullFields []string `json:"-"`
7933}
7934
7935func (s *GoogleCloudApigeeV1SchemaSchemaElement) MarshalJSON() ([]byte, error) {
7936	type NoMethod GoogleCloudApigeeV1SchemaSchemaElement
7937	raw := NoMethod(*s)
7938	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7939}
7940
7941// GoogleCloudApigeeV1SchemaSchemaProperty: Properties for the schema
7942// field.
7943type GoogleCloudApigeeV1SchemaSchemaProperty struct {
7944	// CreateTime: Time the field was created in RFC3339 string form. For
7945	// example: `2016-02-26T10:23:09.592Z`.
7946	CreateTime string `json:"createTime,omitempty"`
7947
7948	// Custom: Flag that specifies whether the field is standard in the
7949	// dataset or a custom field created by the customer. `true` indicates
7950	// that it is a custom field.
7951	Custom string `json:"custom,omitempty"`
7952
7953	// Type: Data type of the field.
7954	Type string `json:"type,omitempty"`
7955
7956	// ForceSendFields is a list of field names (e.g. "CreateTime") to
7957	// unconditionally include in API requests. By default, fields with
7958	// empty or default values are omitted from API requests. However, any
7959	// non-pointer, non-interface field appearing in ForceSendFields will be
7960	// sent to the server regardless of whether the field is empty or not.
7961	// This may be used to include empty fields in Patch requests.
7962	ForceSendFields []string `json:"-"`
7963
7964	// NullFields is a list of field names (e.g. "CreateTime") to include in
7965	// API requests with the JSON null value. By default, fields with empty
7966	// values are omitted from API requests. However, any field with an
7967	// empty value appearing in NullFields will be sent to the server as
7968	// null. It is an error if a field in this list has a non-empty value.
7969	// This may be used to include null fields in Patch requests.
7970	NullFields []string `json:"-"`
7971}
7972
7973func (s *GoogleCloudApigeeV1SchemaSchemaProperty) MarshalJSON() ([]byte, error) {
7974	type NoMethod GoogleCloudApigeeV1SchemaSchemaProperty
7975	raw := NoMethod(*s)
7976	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7977}
7978
7979type GoogleCloudApigeeV1ServiceIssuersMapping struct {
7980	// EmailIds: List of trusted issuer email ids.
7981	EmailIds []string `json:"emailIds,omitempty"`
7982
7983	// Service: String indicating the Apigee service name.
7984	Service string `json:"service,omitempty"`
7985
7986	// ForceSendFields is a list of field names (e.g. "EmailIds") to
7987	// unconditionally include in API requests. By default, fields with
7988	// empty or default values are omitted from API requests. However, any
7989	// non-pointer, non-interface field appearing in ForceSendFields will be
7990	// sent to the server regardless of whether the field is empty or not.
7991	// This may be used to include empty fields in Patch requests.
7992	ForceSendFields []string `json:"-"`
7993
7994	// NullFields is a list of field names (e.g. "EmailIds") to include in
7995	// API requests with the JSON null value. By default, fields with empty
7996	// values are omitted from API requests. However, any field with an
7997	// empty value appearing in NullFields will be sent to the server as
7998	// null. It is an error if a field in this list has a non-empty value.
7999	// This may be used to include null fields in Patch requests.
8000	NullFields []string `json:"-"`
8001}
8002
8003func (s *GoogleCloudApigeeV1ServiceIssuersMapping) MarshalJSON() ([]byte, error) {
8004	type NoMethod GoogleCloudApigeeV1ServiceIssuersMapping
8005	raw := NoMethod(*s)
8006	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8007}
8008
8009// GoogleCloudApigeeV1Session: Session carries the debug session id and
8010// its creation time.
8011type GoogleCloudApigeeV1Session struct {
8012	// Id: The debug session ID.
8013	Id string `json:"id,omitempty"`
8014
8015	// TimestampMs: The first transaction creation timestamp in millisecond,
8016	// recoreded by UAP.
8017	TimestampMs int64 `json:"timestampMs,omitempty,string"`
8018
8019	// ForceSendFields is a list of field names (e.g. "Id") to
8020	// unconditionally include in API requests. By default, fields with
8021	// empty or default values are omitted from API requests. However, any
8022	// non-pointer, non-interface field appearing in ForceSendFields will be
8023	// sent to the server regardless of whether the field is empty or not.
8024	// This may be used to include empty fields in Patch requests.
8025	ForceSendFields []string `json:"-"`
8026
8027	// NullFields is a list of field names (e.g. "Id") to include in API
8028	// requests with the JSON null value. By default, fields with empty
8029	// values are omitted from API requests. However, any field with an
8030	// empty value appearing in NullFields will be sent to the server as
8031	// null. It is an error if a field in this list has a non-empty value.
8032	// This may be used to include null fields in Patch requests.
8033	NullFields []string `json:"-"`
8034}
8035
8036func (s *GoogleCloudApigeeV1Session) MarshalJSON() ([]byte, error) {
8037	type NoMethod GoogleCloudApigeeV1Session
8038	raw := NoMethod(*s)
8039	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8040}
8041
8042// GoogleCloudApigeeV1SetAddonsRequest: Request for SetAddons.
8043type GoogleCloudApigeeV1SetAddonsRequest struct {
8044	// AddonsConfig: Required. Add-on configurations.
8045	AddonsConfig *GoogleCloudApigeeV1AddonsConfig `json:"addonsConfig,omitempty"`
8046
8047	// ForceSendFields is a list of field names (e.g. "AddonsConfig") to
8048	// unconditionally include in API requests. By default, fields with
8049	// empty or default values are omitted from API requests. However, any
8050	// non-pointer, non-interface field appearing in ForceSendFields will be
8051	// sent to the server regardless of whether the field is empty or not.
8052	// This may be used to include empty fields in Patch requests.
8053	ForceSendFields []string `json:"-"`
8054
8055	// NullFields is a list of field names (e.g. "AddonsConfig") to include
8056	// in API requests with the JSON null value. By default, fields with
8057	// empty values are omitted from API requests. However, any field with
8058	// an empty value appearing in NullFields will be sent to the server as
8059	// null. It is an error if a field in this list has a non-empty value.
8060	// This may be used to include null fields in Patch requests.
8061	NullFields []string `json:"-"`
8062}
8063
8064func (s *GoogleCloudApigeeV1SetAddonsRequest) MarshalJSON() ([]byte, error) {
8065	type NoMethod GoogleCloudApigeeV1SetAddonsRequest
8066	raw := NoMethod(*s)
8067	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8068}
8069
8070// GoogleCloudApigeeV1SharedFlow: The metadata describing a shared flow
8071type GoogleCloudApigeeV1SharedFlow struct {
8072	// LatestRevisionId: The id of the most recently created revision for
8073	// this shared flow.
8074	LatestRevisionId string `json:"latestRevisionId,omitempty"`
8075
8076	// MetaData: Metadata describing the shared flow.
8077	MetaData *GoogleCloudApigeeV1EntityMetadata `json:"metaData,omitempty"`
8078
8079	// Name: The ID of the shared flow.
8080	Name string `json:"name,omitempty"`
8081
8082	// Revision: A list of revisions of this shared flow.
8083	Revision []string `json:"revision,omitempty"`
8084
8085	// ServerResponse contains the HTTP response code and headers from the
8086	// server.
8087	googleapi.ServerResponse `json:"-"`
8088
8089	// ForceSendFields is a list of field names (e.g. "LatestRevisionId") to
8090	// unconditionally include in API requests. By default, fields with
8091	// empty or default values are omitted from API requests. However, any
8092	// non-pointer, non-interface field appearing in ForceSendFields will be
8093	// sent to the server regardless of whether the field is empty or not.
8094	// This may be used to include empty fields in Patch requests.
8095	ForceSendFields []string `json:"-"`
8096
8097	// NullFields is a list of field names (e.g. "LatestRevisionId") to
8098	// include in API requests with the JSON null value. By default, fields
8099	// with empty values are omitted from API requests. However, any field
8100	// with an empty value appearing in NullFields will be sent to the
8101	// server as null. It is an error if a field in this list has a
8102	// non-empty value. This may be used to include null fields in Patch
8103	// requests.
8104	NullFields []string `json:"-"`
8105}
8106
8107func (s *GoogleCloudApigeeV1SharedFlow) MarshalJSON() ([]byte, error) {
8108	type NoMethod GoogleCloudApigeeV1SharedFlow
8109	raw := NoMethod(*s)
8110	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8111}
8112
8113// GoogleCloudApigeeV1SharedFlowRevision: The metadata describing a
8114// shared flow revision.
8115type GoogleCloudApigeeV1SharedFlowRevision struct {
8116	// ConfigurationVersion: The version of the configuration schema to
8117	// which this shared flow conforms. The only supported value currently
8118	// is majorVersion 4 and minorVersion 0. This setting may be used in the
8119	// future to enable evolution of the shared flow format.
8120	ConfigurationVersion *GoogleCloudApigeeV1ConfigVersion `json:"configurationVersion,omitempty"`
8121
8122	// ContextInfo: A textual description of the shared flow revision.
8123	ContextInfo string `json:"contextInfo,omitempty"`
8124
8125	// CreatedAt: Time at which this shared flow revision was created, in
8126	// milliseconds since epoch.
8127	CreatedAt int64 `json:"createdAt,omitempty,string"`
8128
8129	// Description: Description of the shared flow revision.
8130	Description string `json:"description,omitempty"`
8131
8132	// DisplayName: The human readable name of this shared flow.
8133	DisplayName string `json:"displayName,omitempty"`
8134
8135	// EntityMetaDataAsProperties: A Key-Value map of metadata about this
8136	// shared flow revision.
8137	EntityMetaDataAsProperties map[string]string `json:"entityMetaDataAsProperties,omitempty"`
8138
8139	// LastModifiedAt: Time at which this shared flow revision was most
8140	// recently modified, in milliseconds since epoch.
8141	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
8142
8143	// Name: The resource ID of the parent shared flow.
8144	Name string `json:"name,omitempty"`
8145
8146	// Policies: A list of policy names included in this shared flow
8147	// revision.
8148	Policies []string `json:"policies,omitempty"`
8149
8150	// ResourceFiles: The resource files included in this shared flow
8151	// revision.
8152	ResourceFiles *GoogleCloudApigeeV1ResourceFiles `json:"resourceFiles,omitempty"`
8153
8154	// Resources: A list of the resources included in this shared flow
8155	// revision formatted as "{type}://{name}".
8156	Resources []string `json:"resources,omitempty"`
8157
8158	// Revision: The resource ID of this revision.
8159	Revision string `json:"revision,omitempty"`
8160
8161	// SharedFlows: A list of the shared flow names included in this shared
8162	// flow revision.
8163	SharedFlows []string `json:"sharedFlows,omitempty"`
8164
8165	// Type: The string "Application"
8166	Type string `json:"type,omitempty"`
8167
8168	// ServerResponse contains the HTTP response code and headers from the
8169	// server.
8170	googleapi.ServerResponse `json:"-"`
8171
8172	// ForceSendFields is a list of field names (e.g.
8173	// "ConfigurationVersion") to unconditionally include in API requests.
8174	// By default, fields with empty or default values are omitted from API
8175	// requests. However, any non-pointer, non-interface field appearing in
8176	// ForceSendFields will be sent to the server regardless of whether the
8177	// field is empty or not. This may be used to include empty fields in
8178	// Patch requests.
8179	ForceSendFields []string `json:"-"`
8180
8181	// NullFields is a list of field names (e.g. "ConfigurationVersion") to
8182	// include in API requests with the JSON null value. By default, fields
8183	// with empty values are omitted from API requests. However, any field
8184	// with an empty value appearing in NullFields will be sent to the
8185	// server as null. It is an error if a field in this list has a
8186	// non-empty value. This may be used to include null fields in Patch
8187	// requests.
8188	NullFields []string `json:"-"`
8189}
8190
8191func (s *GoogleCloudApigeeV1SharedFlowRevision) MarshalJSON() ([]byte, error) {
8192	type NoMethod GoogleCloudApigeeV1SharedFlowRevision
8193	raw := NoMethod(*s)
8194	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8195}
8196
8197// GoogleCloudApigeeV1Stats: This message type encapsulates a stats
8198// response.
8199type GoogleCloudApigeeV1Stats struct {
8200	// Environments: This field contains a list of query results on
8201	// environment level.
8202	Environments []*GoogleCloudApigeeV1StatsEnvironmentStats `json:"environments,omitempty"`
8203
8204	// Hosts: This field contains a list of query results grouped by host.
8205	Hosts []*GoogleCloudApigeeV1StatsHostStats `json:"hosts,omitempty"`
8206
8207	// MetaData: This field contains the metadata information.
8208	MetaData *GoogleCloudApigeeV1Metadata `json:"metaData,omitempty"`
8209
8210	// ServerResponse contains the HTTP response code and headers from the
8211	// server.
8212	googleapi.ServerResponse `json:"-"`
8213
8214	// ForceSendFields is a list of field names (e.g. "Environments") to
8215	// unconditionally include in API requests. By default, fields with
8216	// empty or default values are omitted from API requests. However, any
8217	// non-pointer, non-interface field appearing in ForceSendFields will be
8218	// sent to the server regardless of whether the field is empty or not.
8219	// This may be used to include empty fields in Patch requests.
8220	ForceSendFields []string `json:"-"`
8221
8222	// NullFields is a list of field names (e.g. "Environments") to include
8223	// in API requests with the JSON null value. By default, fields with
8224	// empty values are omitted from API requests. However, any field with
8225	// an empty value appearing in NullFields will be sent to the server as
8226	// null. It is an error if a field in this list has a non-empty value.
8227	// This may be used to include null fields in Patch requests.
8228	NullFields []string `json:"-"`
8229}
8230
8231func (s *GoogleCloudApigeeV1Stats) MarshalJSON() ([]byte, error) {
8232	type NoMethod GoogleCloudApigeeV1Stats
8233	raw := NoMethod(*s)
8234	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8235}
8236
8237// GoogleCloudApigeeV1StatsEnvironmentStats: This message type
8238// encapsulates the environment wrapper: "environments": [ { "metrics":
8239// [ { "name": "sum(message_count)", "values": [ "2.52056245E8" ] } ],
8240// "name": "prod" } ]
8241type GoogleCloudApigeeV1StatsEnvironmentStats struct {
8242	// Dimensions: This field contains the list of metrics grouped under
8243	// dimensions.
8244	Dimensions []*GoogleCloudApigeeV1DimensionMetric `json:"dimensions,omitempty"`
8245
8246	// Metrics: In the final response, only one of the following fields will
8247	// be present based on the dimensions provided. If no dimensions are
8248	// provided, then only a top level metrics is provided. If dimensions
8249	// are included, then there will be a top level dimensions field under
8250	// environments which will contain metrics values and the dimension
8251	// name. Example: "environments": [ { "dimensions": [ { "metrics": [ {
8252	// "name": "sum(message_count)", "values": [ "2.14049521E8" ] } ],
8253	// "name": "nit_proxy" } ], "name": "prod" } ] OR "environments": [ {
8254	// "metrics": [ { "name": "sum(message_count)", "values": [
8255	// "2.19026331E8" ] } ], "name": "prod" } ] This field contains the list
8256	// of metric values.
8257	Metrics []*GoogleCloudApigeeV1Metric `json:"metrics,omitempty"`
8258
8259	Name string `json:"name,omitempty"`
8260
8261	// ForceSendFields is a list of field names (e.g. "Dimensions") to
8262	// unconditionally include in API requests. By default, fields with
8263	// empty or default values are omitted from API requests. However, any
8264	// non-pointer, non-interface field appearing in ForceSendFields will be
8265	// sent to the server regardless of whether the field is empty or not.
8266	// This may be used to include empty fields in Patch requests.
8267	ForceSendFields []string `json:"-"`
8268
8269	// NullFields is a list of field names (e.g. "Dimensions") to include in
8270	// API requests with the JSON null value. By default, fields with empty
8271	// values are omitted from API requests. However, any field with an
8272	// empty value appearing in NullFields will be sent to the server as
8273	// null. It is an error if a field in this list has a non-empty value.
8274	// This may be used to include null fields in Patch requests.
8275	NullFields []string `json:"-"`
8276}
8277
8278func (s *GoogleCloudApigeeV1StatsEnvironmentStats) MarshalJSON() ([]byte, error) {
8279	type NoMethod GoogleCloudApigeeV1StatsEnvironmentStats
8280	raw := NoMethod(*s)
8281	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8282}
8283
8284// GoogleCloudApigeeV1StatsHostStats: This message type encapsulates the
8285// hostname wrapper: "hosts": [ { "metrics": [ { "name":
8286// "sum(message_count)", "values": [ "2.52056245E8" ] } ], "name":
8287// "example.com" } ]
8288type GoogleCloudApigeeV1StatsHostStats struct {
8289	// Dimensions: This field contains the list of metrics grouped under
8290	// dimensions.
8291	Dimensions []*GoogleCloudApigeeV1DimensionMetric `json:"dimensions,omitempty"`
8292
8293	// Metrics: In the final response, only one of the following fields will
8294	// be present based on the dimensions provided. If no dimensions are
8295	// provided, then only a top level metrics is provided. If dimensions
8296	// are included, then there will be a top level dimensions field under
8297	// hostnames which will contain metrics values and the dimension name.
8298	// Example: "hosts": [ { "dimensions": [ { "metrics": [ { "name":
8299	// "sum(message_count)", "values": [ "2.14049521E8" ] } ], "name":
8300	// "nit_proxy" } ], "name": "example.com" } ] OR "hosts": [ { "metrics":
8301	// [ { "name": "sum(message_count)", "values": [ "2.19026331E8" ] } ],
8302	// "name": "example.com" } ] This field contains the list of metric
8303	// values.
8304	Metrics []*GoogleCloudApigeeV1Metric `json:"metrics,omitempty"`
8305
8306	// Name: This field contains the hostname used in query.
8307	Name string `json:"name,omitempty"`
8308
8309	// ForceSendFields is a list of field names (e.g. "Dimensions") to
8310	// unconditionally include in API requests. By default, fields with
8311	// empty or default values are omitted from API requests. However, any
8312	// non-pointer, non-interface field appearing in ForceSendFields will be
8313	// sent to the server regardless of whether the field is empty or not.
8314	// This may be used to include empty fields in Patch requests.
8315	ForceSendFields []string `json:"-"`
8316
8317	// NullFields is a list of field names (e.g. "Dimensions") to include in
8318	// API requests with the JSON null value. By default, fields with empty
8319	// values are omitted from API requests. However, any field with an
8320	// empty value appearing in NullFields will be sent to the server as
8321	// null. It is an error if a field in this list has a non-empty value.
8322	// This may be used to include null fields in Patch requests.
8323	NullFields []string `json:"-"`
8324}
8325
8326func (s *GoogleCloudApigeeV1StatsHostStats) MarshalJSON() ([]byte, error) {
8327	type NoMethod GoogleCloudApigeeV1StatsHostStats
8328	raw := NoMethod(*s)
8329	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8330}
8331
8332// GoogleCloudApigeeV1Subscription: Pub/Sub subscription of an
8333// environment.
8334type GoogleCloudApigeeV1Subscription struct {
8335	// Name: Full name of the Pub/Sub subcription. Use the following
8336	// structure in your request: `subscription
8337	// "projects/foo/subscription/bar"
8338	Name string `json:"name,omitempty"`
8339
8340	// ServerResponse contains the HTTP response code and headers from the
8341	// server.
8342	googleapi.ServerResponse `json:"-"`
8343
8344	// ForceSendFields is a list of field names (e.g. "Name") to
8345	// unconditionally include in API requests. By default, fields with
8346	// empty or default values are omitted from API requests. However, any
8347	// non-pointer, non-interface field appearing in ForceSendFields will be
8348	// sent to the server regardless of whether the field is empty or not.
8349	// This may be used to include empty fields in Patch requests.
8350	ForceSendFields []string `json:"-"`
8351
8352	// NullFields is a list of field names (e.g. "Name") to include in API
8353	// requests with the JSON null value. By default, fields with empty
8354	// values are omitted from API requests. However, any field with an
8355	// empty value appearing in NullFields will be sent to the server as
8356	// null. It is an error if a field in this list has a non-empty value.
8357	// This may be used to include null fields in Patch requests.
8358	NullFields []string `json:"-"`
8359}
8360
8361func (s *GoogleCloudApigeeV1Subscription) MarshalJSON() ([]byte, error) {
8362	type NoMethod GoogleCloudApigeeV1Subscription
8363	raw := NoMethod(*s)
8364	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8365}
8366
8367type GoogleCloudApigeeV1SyncAuthorization struct {
8368	// Etag: Entity tag (ETag) used for optimistic concurrency control as a
8369	// way to help prevent simultaneous updates from overwriting each other.
8370	// For example, when you call getSyncAuthorization
8371	// (organizations/getSyncAuthorization) an ETag is returned in the
8372	// response. Pass that ETag when calling the setSyncAuthorization
8373	// (organizations/setSyncAuthorization) to ensure that you are updating
8374	// the correct version. If you don't pass the ETag in the call to
8375	// `setSyncAuthorization`, then the existing authorization is
8376	// overwritten indiscriminately. **Note**: We strongly recommend that
8377	// you use the ETag in the read-modify-write cycle to avoid race
8378	// conditions.
8379	Etag string `json:"etag,omitempty"`
8380
8381	// Identities: Required. Array of service accounts to grant access to
8382	// control plane resources, each specified using the following format:
8383	// `serviceAccount:` service-account-name. The service-account-name is
8384	// formatted like an email address. For example:
8385	// `my-synchronizer-manager-service_account@my_project_id.iam.gserviceacc
8386	// ount.com` You might specify multiple service accounts, for example,
8387	// if you have multiple environments and wish to assign a unique service
8388	// account to each one. The service accounts must have **Apigee
8389	// Synchronizer Manager** role. See also Create service accounts
8390	// (https://cloud.google.com/apigee/docs/hybrid/latest/sa-about#create-the-service-accounts).
8391	Identities []string `json:"identities,omitempty"`
8392
8393	// ServerResponse contains the HTTP response code and headers from the
8394	// server.
8395	googleapi.ServerResponse `json:"-"`
8396
8397	// ForceSendFields is a list of field names (e.g. "Etag") to
8398	// unconditionally include in API requests. By default, fields with
8399	// empty or default values are omitted from API requests. However, any
8400	// non-pointer, non-interface field appearing in ForceSendFields will be
8401	// sent to the server regardless of whether the field is empty or not.
8402	// This may be used to include empty fields in Patch requests.
8403	ForceSendFields []string `json:"-"`
8404
8405	// NullFields is a list of field names (e.g. "Etag") to include in API
8406	// requests with the JSON null value. By default, fields with empty
8407	// values are omitted from API requests. However, any field with an
8408	// empty value appearing in NullFields will be sent to the server as
8409	// null. It is an error if a field in this list has a non-empty value.
8410	// This may be used to include null fields in Patch requests.
8411	NullFields []string `json:"-"`
8412}
8413
8414func (s *GoogleCloudApigeeV1SyncAuthorization) MarshalJSON() ([]byte, error) {
8415	type NoMethod GoogleCloudApigeeV1SyncAuthorization
8416	raw := NoMethod(*s)
8417	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8418}
8419
8420// GoogleCloudApigeeV1TargetServer: TargetServer configuration.
8421// TargetServers are used to decouple a proxy's TargetEndpoint
8422// HTTPTargetConnections from concrete URLs for backend services.
8423type GoogleCloudApigeeV1TargetServer struct {
8424	// Description: Optional. A human-readable description of this
8425	// TargetServer.
8426	Description string `json:"description,omitempty"`
8427
8428	// Host: Required. The host name this target connects to. Value must be
8429	// a valid hostname as described by RFC-1123.
8430	Host string `json:"host,omitempty"`
8431
8432	// IsEnabled: Optional. Enabling/disabling a TargetServer is useful when
8433	// TargetServers are used in load balancing configurations, and one or
8434	// more TargetServers need to taken out of rotation periodically.
8435	// Defaults to true.
8436	IsEnabled bool `json:"isEnabled,omitempty"`
8437
8438	// Name: Required. The resource id of this target server. Values must
8439	// match the regular expression
8440	Name string `json:"name,omitempty"`
8441
8442	// Port: Required. The port number this target connects to on the given
8443	// host. Value must be between 1 and 65535, inclusive.
8444	Port int64 `json:"port,omitempty"`
8445
8446	// Protocol: Immutable. The protocol used by this TargetServer.
8447	//
8448	// Possible values:
8449	//   "PROTOCOL_UNSPECIFIED" - UNSPECIFIED defaults to HTTP for backwards
8450	// compatibility.
8451	//   "HTTP" - The TargetServer uses HTTP.
8452	//   "GRPC" - The TargetServer uses GRPC.
8453	Protocol string `json:"protocol,omitempty"`
8454
8455	// SSLInfo: Optional. Specifies TLS configuration info for this
8456	// TargetServer. The JSON name is `sSLInfo` for legacy/backwards
8457	// compatibility reasons -- Edge originally supported SSL, and the name
8458	// is still used for TLS configuration.
8459	SSLInfo *GoogleCloudApigeeV1TlsInfo `json:"sSLInfo,omitempty"`
8460
8461	// ServerResponse contains the HTTP response code and headers from the
8462	// server.
8463	googleapi.ServerResponse `json:"-"`
8464
8465	// ForceSendFields is a list of field names (e.g. "Description") to
8466	// unconditionally include in API requests. By default, fields with
8467	// empty or default values are omitted from API requests. However, any
8468	// non-pointer, non-interface field appearing in ForceSendFields will be
8469	// sent to the server regardless of whether the field is empty or not.
8470	// This may be used to include empty fields in Patch requests.
8471	ForceSendFields []string `json:"-"`
8472
8473	// NullFields is a list of field names (e.g. "Description") to include
8474	// in API requests with the JSON null value. By default, fields with
8475	// empty values are omitted from API requests. However, any field with
8476	// an empty value appearing in NullFields will be sent to the server as
8477	// null. It is an error if a field in this list has a non-empty value.
8478	// This may be used to include null fields in Patch requests.
8479	NullFields []string `json:"-"`
8480}
8481
8482func (s *GoogleCloudApigeeV1TargetServer) MarshalJSON() ([]byte, error) {
8483	type NoMethod GoogleCloudApigeeV1TargetServer
8484	raw := NoMethod(*s)
8485	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8486}
8487
8488type GoogleCloudApigeeV1TargetServerConfig struct {
8489	// Host: Host name of the target server.
8490	Host string `json:"host,omitempty"`
8491
8492	// Name: Target server revision name in the following format:
8493	// `organizations/{org}/environments/{env}/targetservers/{targetserver}/r
8494	// evisions/{rev}`
8495	Name string `json:"name,omitempty"`
8496
8497	// Port: Port number for the target server.
8498	Port int64 `json:"port,omitempty"`
8499
8500	// Protocol: The protocol used by this target server.
8501	//
8502	// Possible values:
8503	//   "PROTOCOL_UNSPECIFIED" - UNSPECIFIED defaults to HTTP for backwards
8504	// compatibility.
8505	//   "HTTP" - The TargetServer uses HTTP.
8506	//   "GRPC" - The TargetServer uses GRPC.
8507	Protocol string `json:"protocol,omitempty"`
8508
8509	// TlsInfo: TLS settings for the target server.
8510	TlsInfo *GoogleCloudApigeeV1TlsInfoConfig `json:"tlsInfo,omitempty"`
8511
8512	// ForceSendFields is a list of field names (e.g. "Host") to
8513	// unconditionally include in API requests. By default, fields with
8514	// empty or default values are omitted from API requests. However, any
8515	// non-pointer, non-interface field appearing in ForceSendFields will be
8516	// sent to the server regardless of whether the field is empty or not.
8517	// This may be used to include empty fields in Patch requests.
8518	ForceSendFields []string `json:"-"`
8519
8520	// NullFields is a list of field names (e.g. "Host") to include in API
8521	// requests with the JSON null value. By default, fields with empty
8522	// values are omitted from API requests. However, any field with an
8523	// empty value appearing in NullFields will be sent to the server as
8524	// null. It is an error if a field in this list has a non-empty value.
8525	// This may be used to include null fields in Patch requests.
8526	NullFields []string `json:"-"`
8527}
8528
8529func (s *GoogleCloudApigeeV1TargetServerConfig) MarshalJSON() ([]byte, error) {
8530	type NoMethod GoogleCloudApigeeV1TargetServerConfig
8531	raw := NoMethod(*s)
8532	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8533}
8534
8535// GoogleCloudApigeeV1TestDatastoreResponse: The response for
8536// TestDatastore
8537type GoogleCloudApigeeV1TestDatastoreResponse struct {
8538	// Error: Output only. Error message of test connection failure
8539	Error string `json:"error,omitempty"`
8540
8541	// State: Output only. It could be `completed` or `failed`
8542	State string `json:"state,omitempty"`
8543
8544	// ServerResponse contains the HTTP response code and headers from the
8545	// server.
8546	googleapi.ServerResponse `json:"-"`
8547
8548	// ForceSendFields is a list of field names (e.g. "Error") to
8549	// unconditionally include in API requests. By default, fields with
8550	// empty or default values are omitted from API requests. However, any
8551	// non-pointer, non-interface field appearing in ForceSendFields will be
8552	// sent to the server regardless of whether the field is empty or not.
8553	// This may be used to include empty fields in Patch requests.
8554	ForceSendFields []string `json:"-"`
8555
8556	// NullFields is a list of field names (e.g. "Error") to include in API
8557	// requests with the JSON null value. By default, fields with empty
8558	// values are omitted from API requests. However, any field with an
8559	// empty value appearing in NullFields will be sent to the server as
8560	// null. It is an error if a field in this list has a non-empty value.
8561	// This may be used to include null fields in Patch requests.
8562	NullFields []string `json:"-"`
8563}
8564
8565func (s *GoogleCloudApigeeV1TestDatastoreResponse) MarshalJSON() ([]byte, error) {
8566	type NoMethod GoogleCloudApigeeV1TestDatastoreResponse
8567	raw := NoMethod(*s)
8568	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8569}
8570
8571// GoogleCloudApigeeV1TlsInfo: TLS configuration information for
8572// VirtualHosts and TargetServers.
8573type GoogleCloudApigeeV1TlsInfo struct {
8574	// Ciphers: The SSL/TLS cipher suites to be used. Must be one of the
8575	// cipher suite names listed in:
8576	// http://docs.oracle.com/javase/8/docs/technotes/guides/security/StandardNames.html#ciphersuites
8577	Ciphers []string `json:"ciphers,omitempty"`
8578
8579	// ClientAuthEnabled: Optional. Enables two-way TLS.
8580	ClientAuthEnabled bool `json:"clientAuthEnabled,omitempty"`
8581
8582	// CommonName: The TLS Common Name of the certificate.
8583	CommonName *GoogleCloudApigeeV1TlsInfoCommonName `json:"commonName,omitempty"`
8584
8585	// Enabled: Required. Enables TLS. If false, neither one-way nor two-way
8586	// TLS will be enabled.
8587	Enabled bool `json:"enabled,omitempty"`
8588
8589	// IgnoreValidationErrors: If true, Edge ignores TLS certificate errors.
8590	// Valid when configuring TLS for target servers and target endpoints,
8591	// and when configuring virtual hosts that use 2-way TLS. When used with
8592	// a target endpoint/target server, if the backend system uses SNI and
8593	// returns a cert with a subject Distinguished Name (DN) that does not
8594	// match the hostname, there is no way to ignore the error and the
8595	// connection fails.
8596	IgnoreValidationErrors bool `json:"ignoreValidationErrors,omitempty"`
8597
8598	// KeyAlias: Required if `client_auth_enabled` is true. The resource ID
8599	// for the alias containing the private key and cert.
8600	KeyAlias string `json:"keyAlias,omitempty"`
8601
8602	// KeyStore: Required if `client_auth_enabled` is true. The resource ID
8603	// of the keystore. References not yet supported.
8604	KeyStore string `json:"keyStore,omitempty"`
8605
8606	// Protocols: The TLS versioins to be used.
8607	Protocols []string `json:"protocols,omitempty"`
8608
8609	// TrustStore: The resource ID of the truststore. References not yet
8610	// supported.
8611	TrustStore string `json:"trustStore,omitempty"`
8612
8613	// ForceSendFields is a list of field names (e.g. "Ciphers") to
8614	// unconditionally include in API requests. By default, fields with
8615	// empty or default values are omitted from API requests. However, any
8616	// non-pointer, non-interface field appearing in ForceSendFields will be
8617	// sent to the server regardless of whether the field is empty or not.
8618	// This may be used to include empty fields in Patch requests.
8619	ForceSendFields []string `json:"-"`
8620
8621	// NullFields is a list of field names (e.g. "Ciphers") to include in
8622	// API requests with the JSON null value. By default, fields with empty
8623	// values are omitted from API requests. However, any field with an
8624	// empty value appearing in NullFields will be sent to the server as
8625	// null. It is an error if a field in this list has a non-empty value.
8626	// This may be used to include null fields in Patch requests.
8627	NullFields []string `json:"-"`
8628}
8629
8630func (s *GoogleCloudApigeeV1TlsInfo) MarshalJSON() ([]byte, error) {
8631	type NoMethod GoogleCloudApigeeV1TlsInfo
8632	raw := NoMethod(*s)
8633	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8634}
8635
8636type GoogleCloudApigeeV1TlsInfoCommonName struct {
8637	// Value: The TLS Common Name string of the certificate.
8638	Value string `json:"value,omitempty"`
8639
8640	// WildcardMatch: Indicates whether the cert should be matched against
8641	// as a wildcard cert.
8642	WildcardMatch bool `json:"wildcardMatch,omitempty"`
8643
8644	// ForceSendFields is a list of field names (e.g. "Value") to
8645	// unconditionally include in API requests. By default, fields with
8646	// empty or default values are omitted from API requests. However, any
8647	// non-pointer, non-interface field appearing in ForceSendFields will be
8648	// sent to the server regardless of whether the field is empty or not.
8649	// This may be used to include empty fields in Patch requests.
8650	ForceSendFields []string `json:"-"`
8651
8652	// NullFields is a list of field names (e.g. "Value") to include in API
8653	// requests with the JSON null value. By default, fields with empty
8654	// values are omitted from API requests. However, any field with an
8655	// empty value appearing in NullFields will be sent to the server as
8656	// null. It is an error if a field in this list has a non-empty value.
8657	// This may be used to include null fields in Patch requests.
8658	NullFields []string `json:"-"`
8659}
8660
8661func (s *GoogleCloudApigeeV1TlsInfoCommonName) MarshalJSON() ([]byte, error) {
8662	type NoMethod GoogleCloudApigeeV1TlsInfoCommonName
8663	raw := NoMethod(*s)
8664	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8665}
8666
8667type GoogleCloudApigeeV1TlsInfoConfig struct {
8668	// Ciphers: List of ciphers that are granted access.
8669	Ciphers []string `json:"ciphers,omitempty"`
8670
8671	// ClientAuthEnabled: Flag that specifies whether client-side
8672	// authentication is enabled for the target server. Enables two-way TLS.
8673	ClientAuthEnabled bool `json:"clientAuthEnabled,omitempty"`
8674
8675	// CommonName: Common name to validate the target server against.
8676	CommonName *GoogleCloudApigeeV1CommonNameConfig `json:"commonName,omitempty"`
8677
8678	// Enabled: Flag that specifies whether one-way TLS is enabled. Set to
8679	// `true` to enable one-way TLS.
8680	Enabled bool `json:"enabled,omitempty"`
8681
8682	// IgnoreValidationErrors: Flag that specifies whether to ignore TLS
8683	// certificate validation errors. Set to `true` to ignore errors.
8684	IgnoreValidationErrors bool `json:"ignoreValidationErrors,omitempty"`
8685
8686	// KeyAlias: Name of the alias used for client-side authentication in
8687	// the following format:
8688	// `organizations/{org}/environments/{env}/keystores/{keystore}/aliases/{
8689	// alias}`
8690	KeyAlias string `json:"keyAlias,omitempty"`
8691
8692	// KeyAliasReference: Reference name and alias pair to use for
8693	// client-side authentication.
8694	KeyAliasReference *GoogleCloudApigeeV1KeyAliasReference `json:"keyAliasReference,omitempty"`
8695
8696	// Protocols: List of TLS protocols that are granted access.
8697	Protocols []string `json:"protocols,omitempty"`
8698
8699	// TrustStore: Name of the keystore or keystore reference containing
8700	// trusted certificates for the server in the following format:
8701	// `organizations/{org}/environments/{env}/keystores/{keystore}` or
8702	// `organizations/{org}/environments/{env}/references/{reference}`
8703	TrustStore string `json:"trustStore,omitempty"`
8704
8705	// ForceSendFields is a list of field names (e.g. "Ciphers") to
8706	// unconditionally include in API requests. By default, fields with
8707	// empty or default values are omitted from API requests. However, any
8708	// non-pointer, non-interface field appearing in ForceSendFields will be
8709	// sent to the server regardless of whether the field is empty or not.
8710	// This may be used to include empty fields in Patch requests.
8711	ForceSendFields []string `json:"-"`
8712
8713	// NullFields is a list of field names (e.g. "Ciphers") to include in
8714	// API requests with the JSON null value. By default, fields with empty
8715	// values are omitted from API requests. However, any field with an
8716	// empty value appearing in NullFields will be sent to the server as
8717	// null. It is an error if a field in this list has a non-empty value.
8718	// This may be used to include null fields in Patch requests.
8719	NullFields []string `json:"-"`
8720}
8721
8722func (s *GoogleCloudApigeeV1TlsInfoConfig) MarshalJSON() ([]byte, error) {
8723	type NoMethod GoogleCloudApigeeV1TlsInfoConfig
8724	raw := NoMethod(*s)
8725	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8726}
8727
8728// GoogleCloudApigeeV1TraceConfig: TraceConfig defines the
8729// configurations in an environment of distributed trace.
8730type GoogleCloudApigeeV1TraceConfig struct {
8731	// Endpoint: Required. Endpoint of the exporter.
8732	Endpoint string `json:"endpoint,omitempty"`
8733
8734	// Exporter: Required. Exporter that is used to view the distributed
8735	// trace captured using OpenCensus. An exporter sends traces to any
8736	// backend that is capable of consuming them. Recorded spans can be
8737	// exported by registered exporters.
8738	//
8739	// Possible values:
8740	//   "EXPORTER_UNSPECIFIED" - Exporter unspecified
8741	//   "JAEGER" - Jaeger exporter
8742	//   "CLOUD_TRACE" - Cloudtrace exporter
8743	Exporter string `json:"exporter,omitempty"`
8744
8745	// SamplingConfig: Distributed trace configuration for all API proxies
8746	// in an environment. You can also override the configuration for a
8747	// specific API proxy using the distributed trace configuration
8748	// overrides API.
8749	SamplingConfig *GoogleCloudApigeeV1TraceSamplingConfig `json:"samplingConfig,omitempty"`
8750
8751	// ServerResponse contains the HTTP response code and headers from the
8752	// server.
8753	googleapi.ServerResponse `json:"-"`
8754
8755	// ForceSendFields is a list of field names (e.g. "Endpoint") to
8756	// unconditionally include in API requests. By default, fields with
8757	// empty or default values are omitted from API requests. However, any
8758	// non-pointer, non-interface field appearing in ForceSendFields will be
8759	// sent to the server regardless of whether the field is empty or not.
8760	// This may be used to include empty fields in Patch requests.
8761	ForceSendFields []string `json:"-"`
8762
8763	// NullFields is a list of field names (e.g. "Endpoint") to include in
8764	// API requests with the JSON null value. By default, fields with empty
8765	// values are omitted from API requests. However, any field with an
8766	// empty value appearing in NullFields will be sent to the server as
8767	// null. It is an error if a field in this list has a non-empty value.
8768	// This may be used to include null fields in Patch requests.
8769	NullFields []string `json:"-"`
8770}
8771
8772func (s *GoogleCloudApigeeV1TraceConfig) MarshalJSON() ([]byte, error) {
8773	type NoMethod GoogleCloudApigeeV1TraceConfig
8774	raw := NoMethod(*s)
8775	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8776}
8777
8778// GoogleCloudApigeeV1TraceConfigOverride: A representation of a
8779// configuration override.
8780type GoogleCloudApigeeV1TraceConfigOverride struct {
8781	// ApiProxy: ID of the API proxy that will have its trace configuration
8782	// overridden.
8783	ApiProxy string `json:"apiProxy,omitempty"`
8784
8785	// Name: ID of the trace configuration override specified as a
8786	// system-generated UUID.
8787	Name string `json:"name,omitempty"`
8788
8789	// SamplingConfig: Trace configuration to override.
8790	SamplingConfig *GoogleCloudApigeeV1TraceSamplingConfig `json:"samplingConfig,omitempty"`
8791
8792	// ServerResponse contains the HTTP response code and headers from the
8793	// server.
8794	googleapi.ServerResponse `json:"-"`
8795
8796	// ForceSendFields is a list of field names (e.g. "ApiProxy") to
8797	// unconditionally include in API requests. By default, fields with
8798	// empty or default values are omitted from API requests. However, any
8799	// non-pointer, non-interface field appearing in ForceSendFields will be
8800	// sent to the server regardless of whether the field is empty or not.
8801	// This may be used to include empty fields in Patch requests.
8802	ForceSendFields []string `json:"-"`
8803
8804	// NullFields is a list of field names (e.g. "ApiProxy") to include in
8805	// API requests with the JSON null value. By default, fields with empty
8806	// values are omitted from API requests. However, any field with an
8807	// empty value appearing in NullFields will be sent to the server as
8808	// null. It is an error if a field in this list has a non-empty value.
8809	// This may be used to include null fields in Patch requests.
8810	NullFields []string `json:"-"`
8811}
8812
8813func (s *GoogleCloudApigeeV1TraceConfigOverride) MarshalJSON() ([]byte, error) {
8814	type NoMethod GoogleCloudApigeeV1TraceConfigOverride
8815	raw := NoMethod(*s)
8816	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8817}
8818
8819// GoogleCloudApigeeV1TraceSamplingConfig: TraceSamplingConfig
8820// represents the detail settings of distributed tracing. Only the
8821// fields that are defined in the distributed trace configuration can be
8822// overridden using the distribute trace configuration override APIs.
8823type GoogleCloudApigeeV1TraceSamplingConfig struct {
8824	// Sampler: Sampler of distributed tracing. OFF is the default value.
8825	//
8826	// Possible values:
8827	//   "SAMPLER_UNSPECIFIED" - Sampler unspecified.
8828	//   "OFF" - OFF means distributed trace is disabled, or the sampling
8829	// probability is 0.
8830	//   "PROBABILITY" - PROBABILITY means traces are captured on a
8831	// probability that defined by sampling_rate. The sampling rate is
8832	// limited to 0 to 0.5 when this is set.
8833	Sampler string `json:"sampler,omitempty"`
8834
8835	// SamplingRate: Field sampling rate. This value is only applicable when
8836	// using the PROBABILITY sampler. The supported values are > 0 and <=
8837	// 0.5.
8838	SamplingRate float64 `json:"samplingRate,omitempty"`
8839
8840	// ForceSendFields is a list of field names (e.g. "Sampler") to
8841	// unconditionally include in API requests. By default, fields with
8842	// empty or default values are omitted from API requests. However, any
8843	// non-pointer, non-interface field appearing in ForceSendFields will be
8844	// sent to the server regardless of whether the field is empty or not.
8845	// This may be used to include empty fields in Patch requests.
8846	ForceSendFields []string `json:"-"`
8847
8848	// NullFields is a list of field names (e.g. "Sampler") to include in
8849	// API requests with the JSON null value. By default, fields with empty
8850	// values are omitted from API requests. However, any field with an
8851	// empty value appearing in NullFields will be sent to the server as
8852	// null. It is an error if a field in this list has a non-empty value.
8853	// This may be used to include null fields in Patch requests.
8854	NullFields []string `json:"-"`
8855}
8856
8857func (s *GoogleCloudApigeeV1TraceSamplingConfig) MarshalJSON() ([]byte, error) {
8858	type NoMethod GoogleCloudApigeeV1TraceSamplingConfig
8859	raw := NoMethod(*s)
8860	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8861}
8862
8863func (s *GoogleCloudApigeeV1TraceSamplingConfig) UnmarshalJSON(data []byte) error {
8864	type NoMethod GoogleCloudApigeeV1TraceSamplingConfig
8865	var s1 struct {
8866		SamplingRate gensupport.JSONFloat64 `json:"samplingRate"`
8867		*NoMethod
8868	}
8869	s1.NoMethod = (*NoMethod)(s)
8870	if err := json.Unmarshal(data, &s1); err != nil {
8871		return err
8872	}
8873	s.SamplingRate = float64(s1.SamplingRate)
8874	return nil
8875}
8876
8877// GoogleCloudApigeeV1UpdateError: Details on why a resource update
8878// failed in the runtime.
8879type GoogleCloudApigeeV1UpdateError struct {
8880	// Code: Status code.
8881	//
8882	// Possible values:
8883	//   "OK" - Not an error; returned on success HTTP Mapping: 200 OK
8884	//   "CANCELLED" - The operation was cancelled, typically by the caller.
8885	// HTTP Mapping: 499 Client Closed Request
8886	//   "UNKNOWN" - Unknown error. For example, this error may be returned
8887	// when a `Status` value received from another address space belongs to
8888	// an error space that is not known in this address space. Also errors
8889	// raised by APIs that do not return enough error information may be
8890	// converted to this error. HTTP Mapping: 500 Internal Server Error
8891	//   "INVALID_ARGUMENT" - The client specified an invalid argument. Note
8892	// that this differs from `FAILED_PRECONDITION`. `INVALID_ARGUMENT`
8893	// indicates arguments that are problematic regardless of the state of
8894	// the system (e.g., a malformed file name). HTTP Mapping: 400 Bad
8895	// Request
8896	//   "DEADLINE_EXCEEDED" - The deadline expired before the operation
8897	// could complete. For operations that change the state of the system,
8898	// this error may be returned even if the operation has completed
8899	// successfully. For example, a successful response from a server could
8900	// have been delayed long enough for the deadline to expire. HTTP
8901	// Mapping: 504 Gateway Timeout
8902	//   "NOT_FOUND" - Some requested entity (e.g., file or directory) was
8903	// not found. Note to server developers: if a request is denied for an
8904	// entire class of users, such as gradual feature rollout or
8905	// undocumented allowlist, `NOT_FOUND` may be used. If a request is
8906	// denied for some users within a class of users, such as user-based
8907	// access control, `PERMISSION_DENIED` must be used. HTTP Mapping: 404
8908	// Not Found
8909	//   "ALREADY_EXISTS" - The entity that a client attempted to create
8910	// (e.g., file or directory) already exists. HTTP Mapping: 409 Conflict
8911	//   "PERMISSION_DENIED" - The caller does not have permission to
8912	// execute the specified operation. `PERMISSION_DENIED` must not be used
8913	// for rejections caused by exhausting some resource (use
8914	// `RESOURCE_EXHAUSTED` instead for those errors). `PERMISSION_DENIED`
8915	// must not be used if the caller can not be identified (use
8916	// `UNAUTHENTICATED` instead for those errors). This error code does not
8917	// imply the request is valid or the requested entity exists or
8918	// satisfies other pre-conditions. HTTP Mapping: 403 Forbidden
8919	//   "UNAUTHENTICATED" - The request does not have valid authentication
8920	// credentials for the operation. HTTP Mapping: 401 Unauthorized
8921	//   "RESOURCE_EXHAUSTED" - Some resource has been exhausted, perhaps a
8922	// per-user quota, or perhaps the entire file system is out of space.
8923	// HTTP Mapping: 429 Too Many Requests
8924	//   "FAILED_PRECONDITION" - The operation was rejected because the
8925	// system is not in a state required for the operation's execution. For
8926	// example, the directory to be deleted is non-empty, an rmdir operation
8927	// is applied to a non-directory, etc. Service implementors can use the
8928	// following guidelines to decide between `FAILED_PRECONDITION`,
8929	// `ABORTED`, and `UNAVAILABLE`: (a) Use `UNAVAILABLE` if the client can
8930	// retry just the failing call. (b) Use `ABORTED` if the client should
8931	// retry at a higher level. For example, when a client-specified
8932	// test-and-set fails, indicating the client should restart a
8933	// read-modify-write sequence. (c) Use `FAILED_PRECONDITION` if the
8934	// client should not retry until the system state has been explicitly
8935	// fixed. For example, if an "rmdir" fails because the directory is
8936	// non-empty, `FAILED_PRECONDITION` should be returned since the client
8937	// should not retry unless the files are deleted from the directory.
8938	// HTTP Mapping: 400 Bad Request
8939	//   "ABORTED" - The operation was aborted, typically due to a
8940	// concurrency issue such as a sequencer check failure or transaction
8941	// abort. See the guidelines above for deciding between
8942	// `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`. HTTP Mapping:
8943	// 409 Conflict
8944	//   "OUT_OF_RANGE" - The operation was attempted past the valid range.
8945	// E.g., seeking or reading past end-of-file. Unlike `INVALID_ARGUMENT`,
8946	// this error indicates a problem that may be fixed if the system state
8947	// changes. For example, a 32-bit file system will generate
8948	// `INVALID_ARGUMENT` if asked to read at an offset that is not in the
8949	// range [0,2^32-1], but it will generate `OUT_OF_RANGE` if asked to
8950	// read from an offset past the current file size. There is a fair bit
8951	// of overlap between `FAILED_PRECONDITION` and `OUT_OF_RANGE`. We
8952	// recommend using `OUT_OF_RANGE` (the more specific error) when it
8953	// applies so that callers who are iterating through a space can easily
8954	// look for an `OUT_OF_RANGE` error to detect when they are done. HTTP
8955	// Mapping: 400 Bad Request
8956	//   "UNIMPLEMENTED" - The operation is not implemented or is not
8957	// supported/enabled in this service. HTTP Mapping: 501 Not Implemented
8958	//   "INTERNAL" - Internal errors. This means that some invariants
8959	// expected by the underlying system have been broken. This error code
8960	// is reserved for serious errors. HTTP Mapping: 500 Internal Server
8961	// Error
8962	//   "UNAVAILABLE" - The service is currently unavailable. This is most
8963	// likely a transient condition, which can be corrected by retrying with
8964	// a backoff. Note that it is not always safe to retry non-idempotent
8965	// operations. See the guidelines above for deciding between
8966	// `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`. HTTP Mapping:
8967	// 503 Service Unavailable
8968	//   "DATA_LOSS" - Unrecoverable data loss or corruption. HTTP Mapping:
8969	// 500 Internal Server Error
8970	Code string `json:"code,omitempty"`
8971
8972	// Message: User-friendly error message.
8973	Message string `json:"message,omitempty"`
8974
8975	// Resource: The sub resource specific to this error (e.g. a proxy
8976	// deployed within the EnvironmentConfig). If empty the error refers to
8977	// the top level resource.
8978	Resource string `json:"resource,omitempty"`
8979
8980	// Type: A string that uniquely identifies the type of error. This
8981	// provides a more reliable means to deduplicate errors across revisions
8982	// and instances.
8983	Type string `json:"type,omitempty"`
8984
8985	// ForceSendFields is a list of field names (e.g. "Code") to
8986	// unconditionally include in API requests. By default, fields with
8987	// empty or default values are omitted from API requests. However, any
8988	// non-pointer, non-interface field appearing in ForceSendFields will be
8989	// sent to the server regardless of whether the field is empty or not.
8990	// This may be used to include empty fields in Patch requests.
8991	ForceSendFields []string `json:"-"`
8992
8993	// NullFields is a list of field names (e.g. "Code") to include in API
8994	// requests with the JSON null value. By default, fields with empty
8995	// values are omitted from API requests. However, any field with an
8996	// empty value appearing in NullFields will be sent to the server as
8997	// null. It is an error if a field in this list has a non-empty value.
8998	// This may be used to include null fields in Patch requests.
8999	NullFields []string `json:"-"`
9000}
9001
9002func (s *GoogleCloudApigeeV1UpdateError) MarshalJSON() ([]byte, error) {
9003	type NoMethod GoogleCloudApigeeV1UpdateError
9004	raw := NoMethod(*s)
9005	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9006}
9007
9008// GoogleIamV1AuditConfig: Specifies the audit configuration for a
9009// service. The configuration determines which permission types are
9010// logged, and what identities, if any, are exempted from logging. An
9011// AuditConfig must have one or more AuditLogConfigs. If there are
9012// AuditConfigs for both `allServices` and a specific service, the union
9013// of the two AuditConfigs is used for that service: the log_types
9014// specified in each AuditConfig are enabled, and the exempted_members
9015// in each AuditLogConfig are exempted. Example Policy with multiple
9016// AuditConfigs: { "audit_configs": [ { "service": "allServices",
9017// "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members":
9018// [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, {
9019// "log_type": "ADMIN_READ" } ] }, { "service":
9020// "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type":
9021// "DATA_READ" }, { "log_type": "DATA_WRITE", "exempted_members": [
9022// "user:aliya@example.com" ] } ] } ] } For sampleservice, this policy
9023// enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts
9024// jose@example.com from DATA_READ logging, and aliya@example.com from
9025// DATA_WRITE logging.
9026type GoogleIamV1AuditConfig struct {
9027	// AuditLogConfigs: The configuration for logging of each type of
9028	// permission.
9029	AuditLogConfigs []*GoogleIamV1AuditLogConfig `json:"auditLogConfigs,omitempty"`
9030
9031	// Service: Specifies a service that will be enabled for audit logging.
9032	// For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
9033	// `allServices` is a special value that covers all services.
9034	Service string `json:"service,omitempty"`
9035
9036	// ForceSendFields is a list of field names (e.g. "AuditLogConfigs") to
9037	// unconditionally include in API requests. By default, fields with
9038	// empty or default values are omitted from API requests. However, any
9039	// non-pointer, non-interface field appearing in ForceSendFields will be
9040	// sent to the server regardless of whether the field is empty or not.
9041	// This may be used to include empty fields in Patch requests.
9042	ForceSendFields []string `json:"-"`
9043
9044	// NullFields is a list of field names (e.g. "AuditLogConfigs") to
9045	// include in API requests with the JSON null value. By default, fields
9046	// with empty values are omitted from API requests. However, any field
9047	// with an empty value appearing in NullFields will be sent to the
9048	// server as null. It is an error if a field in this list has a
9049	// non-empty value. This may be used to include null fields in Patch
9050	// requests.
9051	NullFields []string `json:"-"`
9052}
9053
9054func (s *GoogleIamV1AuditConfig) MarshalJSON() ([]byte, error) {
9055	type NoMethod GoogleIamV1AuditConfig
9056	raw := NoMethod(*s)
9057	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9058}
9059
9060// GoogleIamV1AuditLogConfig: Provides the configuration for logging a
9061// type of permissions. Example: { "audit_log_configs": [ { "log_type":
9062// "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, {
9063// "log_type": "DATA_WRITE" } ] } This enables 'DATA_READ' and
9064// 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ
9065// logging.
9066type GoogleIamV1AuditLogConfig struct {
9067	// ExemptedMembers: Specifies the identities that do not cause logging
9068	// for this type of permission. Follows the same format of
9069	// Binding.members.
9070	ExemptedMembers []string `json:"exemptedMembers,omitempty"`
9071
9072	// LogType: The log type that this config enables.
9073	//
9074	// Possible values:
9075	//   "LOG_TYPE_UNSPECIFIED" - Default case. Should never be this.
9076	//   "ADMIN_READ" - Admin reads. Example: CloudIAM getIamPolicy
9077	//   "DATA_WRITE" - Data writes. Example: CloudSQL Users create
9078	//   "DATA_READ" - Data reads. Example: CloudSQL Users list
9079	LogType string `json:"logType,omitempty"`
9080
9081	// ForceSendFields is a list of field names (e.g. "ExemptedMembers") to
9082	// unconditionally include in API requests. By default, fields with
9083	// empty or default values are omitted from API requests. However, any
9084	// non-pointer, non-interface field appearing in ForceSendFields will be
9085	// sent to the server regardless of whether the field is empty or not.
9086	// This may be used to include empty fields in Patch requests.
9087	ForceSendFields []string `json:"-"`
9088
9089	// NullFields is a list of field names (e.g. "ExemptedMembers") to
9090	// include in API requests with the JSON null value. By default, fields
9091	// with empty values are omitted from API requests. However, any field
9092	// with an empty value appearing in NullFields will be sent to the
9093	// server as null. It is an error if a field in this list has a
9094	// non-empty value. This may be used to include null fields in Patch
9095	// requests.
9096	NullFields []string `json:"-"`
9097}
9098
9099func (s *GoogleIamV1AuditLogConfig) MarshalJSON() ([]byte, error) {
9100	type NoMethod GoogleIamV1AuditLogConfig
9101	raw := NoMethod(*s)
9102	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9103}
9104
9105// GoogleIamV1Binding: Associates `members` with a `role`.
9106type GoogleIamV1Binding struct {
9107	// Condition: The condition that is associated with this binding. If the
9108	// condition evaluates to `true`, then this binding applies to the
9109	// current request. If the condition evaluates to `false`, then this
9110	// binding does not apply to the current request. However, a different
9111	// role binding might grant the same role to one or more of the members
9112	// in this binding. To learn which resources support conditions in their
9113	// IAM policies, see the IAM documentation
9114	// (https://cloud.google.com/iam/help/conditions/resource-policies).
9115	Condition *GoogleTypeExpr `json:"condition,omitempty"`
9116
9117	// Members: Specifies the identities requesting access for a Cloud
9118	// Platform resource. `members` can have the following values: *
9119	// `allUsers`: A special identifier that represents anyone who is on the
9120	// internet; with or without a Google account. *
9121	// `allAuthenticatedUsers`: A special identifier that represents anyone
9122	// who is authenticated with a Google account or a service account. *
9123	// `user:{emailid}`: An email address that represents a specific Google
9124	// account. For example, `alice@example.com` . *
9125	// `serviceAccount:{emailid}`: An email address that represents a
9126	// service account. For example,
9127	// `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An
9128	// email address that represents a Google group. For example,
9129	// `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An
9130	// email address (plus unique identifier) representing a user that has
9131	// been recently deleted. For example,
9132	// `alice@example.com?uid=123456789012345678901`. If the user is
9133	// recovered, this value reverts to `user:{emailid}` and the recovered
9134	// user retains the role in the binding. *
9135	// `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address
9136	// (plus unique identifier) representing a service account that has been
9137	// recently deleted. For example,
9138	// `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
9139	// If the service account is undeleted, this value reverts to
9140	// `serviceAccount:{emailid}` and the undeleted service account retains
9141	// the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`:
9142	// An email address (plus unique identifier) representing a Google group
9143	// that has been recently deleted. For example,
9144	// `admins@example.com?uid=123456789012345678901`. If the group is
9145	// recovered, this value reverts to `group:{emailid}` and the recovered
9146	// group retains the role in the binding. * `domain:{domain}`: The G
9147	// Suite domain (primary) that represents all the users of that domain.
9148	// For example, `google.com` or `example.com`.
9149	Members []string `json:"members,omitempty"`
9150
9151	// Role: Role that is assigned to `members`. For example,
9152	// `roles/viewer`, `roles/editor`, or `roles/owner`.
9153	Role string `json:"role,omitempty"`
9154
9155	// ForceSendFields is a list of field names (e.g. "Condition") to
9156	// unconditionally include in API requests. By default, fields with
9157	// empty or default values are omitted from API requests. However, any
9158	// non-pointer, non-interface field appearing in ForceSendFields will be
9159	// sent to the server regardless of whether the field is empty or not.
9160	// This may be used to include empty fields in Patch requests.
9161	ForceSendFields []string `json:"-"`
9162
9163	// NullFields is a list of field names (e.g. "Condition") to include in
9164	// API requests with the JSON null value. By default, fields with empty
9165	// values are omitted from API requests. However, any field with an
9166	// empty value appearing in NullFields will be sent to the server as
9167	// null. It is an error if a field in this list has a non-empty value.
9168	// This may be used to include null fields in Patch requests.
9169	NullFields []string `json:"-"`
9170}
9171
9172func (s *GoogleIamV1Binding) MarshalJSON() ([]byte, error) {
9173	type NoMethod GoogleIamV1Binding
9174	raw := NoMethod(*s)
9175	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9176}
9177
9178// GoogleIamV1Policy: An Identity and Access Management (IAM) policy,
9179// which specifies access controls for Google Cloud resources. A
9180// `Policy` is a collection of `bindings`. A `binding` binds one or more
9181// `members` to a single `role`. Members can be user accounts, service
9182// accounts, Google groups, and domains (such as G Suite). A `role` is a
9183// named list of permissions; each `role` can be an IAM predefined role
9184// or a user-created custom role. For some types of Google Cloud
9185// resources, a `binding` can also specify a `condition`, which is a
9186// logical expression that allows access to a resource only if the
9187// expression evaluates to `true`. A condition can add constraints based
9188// on attributes of the request, the resource, or both. To learn which
9189// resources support conditions in their IAM policies, see the IAM
9190// documentation
9191// (https://cloud.google.com/iam/help/conditions/resource-policies).
9192// **JSON example:** { "bindings": [ { "role":
9193// "roles/resourcemanager.organizationAdmin", "members": [
9194// "user:mike@example.com", "group:admins@example.com",
9195// "domain:google.com",
9196// "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, {
9197// "role": "roles/resourcemanager.organizationViewer", "members": [
9198// "user:eve@example.com" ], "condition": { "title": "expirable access",
9199// "description": "Does not grant access after Sep 2020", "expression":
9200// "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ],
9201// "etag": "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: -
9202// members: - user:mike@example.com - group:admins@example.com -
9203// domain:google.com -
9204// serviceAccount:my-project-id@appspot.gserviceaccount.com role:
9205// roles/resourcemanager.organizationAdmin - members: -
9206// user:eve@example.com role: roles/resourcemanager.organizationViewer
9207// condition: title: expirable access description: Does not grant access
9208// after Sep 2020 expression: request.time <
9209// timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3
9210// For a description of IAM and its features, see the IAM documentation
9211// (https://cloud.google.com/iam/docs/).
9212type GoogleIamV1Policy struct {
9213	// AuditConfigs: Specifies cloud audit logging configuration for this
9214	// policy.
9215	AuditConfigs []*GoogleIamV1AuditConfig `json:"auditConfigs,omitempty"`
9216
9217	// Bindings: Associates a list of `members` to a `role`. Optionally, may
9218	// specify a `condition` that determines how and when the `bindings` are
9219	// applied. Each of the `bindings` must contain at least one member.
9220	Bindings []*GoogleIamV1Binding `json:"bindings,omitempty"`
9221
9222	// Etag: `etag` is used for optimistic concurrency control as a way to
9223	// help prevent simultaneous updates of a policy from overwriting each
9224	// other. It is strongly suggested that systems make use of the `etag`
9225	// in the read-modify-write cycle to perform policy updates in order to
9226	// avoid race conditions: An `etag` is returned in the response to
9227	// `getIamPolicy`, and systems are expected to put that etag in the
9228	// request to `setIamPolicy` to ensure that their change will be applied
9229	// to the same version of the policy. **Important:** If you use IAM
9230	// Conditions, you must include the `etag` field whenever you call
9231	// `setIamPolicy`. If you omit this field, then IAM allows you to
9232	// overwrite a version `3` policy with a version `1` policy, and all of
9233	// the conditions in the version `3` policy are lost.
9234	Etag string `json:"etag,omitempty"`
9235
9236	// Version: Specifies the format of the policy. Valid values are `0`,
9237	// `1`, and `3`. Requests that specify an invalid value are rejected.
9238	// Any operation that affects conditional role bindings must specify
9239	// version `3`. This requirement applies to the following operations: *
9240	// Getting a policy that includes a conditional role binding * Adding a
9241	// conditional role binding to a policy * Changing a conditional role
9242	// binding in a policy * Removing any role binding, with or without a
9243	// condition, from a policy that includes conditions **Important:** If
9244	// you use IAM Conditions, you must include the `etag` field whenever
9245	// you call `setIamPolicy`. If you omit this field, then IAM allows you
9246	// to overwrite a version `3` policy with a version `1` policy, and all
9247	// of the conditions in the version `3` policy are lost. If a policy
9248	// does not include any conditions, operations on that policy may
9249	// specify any valid version or leave the field unset. To learn which
9250	// resources support conditions in their IAM policies, see the IAM
9251	// documentation
9252	// (https://cloud.google.com/iam/help/conditions/resource-policies).
9253	Version int64 `json:"version,omitempty"`
9254
9255	// ServerResponse contains the HTTP response code and headers from the
9256	// server.
9257	googleapi.ServerResponse `json:"-"`
9258
9259	// ForceSendFields is a list of field names (e.g. "AuditConfigs") to
9260	// unconditionally include in API requests. By default, fields with
9261	// empty or default values are omitted from API requests. However, any
9262	// non-pointer, non-interface field appearing in ForceSendFields will be
9263	// sent to the server regardless of whether the field is empty or not.
9264	// This may be used to include empty fields in Patch requests.
9265	ForceSendFields []string `json:"-"`
9266
9267	// NullFields is a list of field names (e.g. "AuditConfigs") to include
9268	// in API requests with the JSON null value. By default, fields with
9269	// empty values are omitted from API requests. However, any field with
9270	// an empty value appearing in NullFields will be sent to the server as
9271	// null. It is an error if a field in this list has a non-empty value.
9272	// This may be used to include null fields in Patch requests.
9273	NullFields []string `json:"-"`
9274}
9275
9276func (s *GoogleIamV1Policy) MarshalJSON() ([]byte, error) {
9277	type NoMethod GoogleIamV1Policy
9278	raw := NoMethod(*s)
9279	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9280}
9281
9282// GoogleIamV1SetIamPolicyRequest: Request message for `SetIamPolicy`
9283// method.
9284type GoogleIamV1SetIamPolicyRequest struct {
9285	// Policy: REQUIRED: The complete policy to be applied to the
9286	// `resource`. The size of the policy is limited to a few 10s of KB. An
9287	// empty policy is a valid policy but certain Cloud Platform services
9288	// (such as Projects) might reject them.
9289	Policy *GoogleIamV1Policy `json:"policy,omitempty"`
9290
9291	// UpdateMask: OPTIONAL: A FieldMask specifying which fields of the
9292	// policy to modify. Only the fields in the mask will be modified. If no
9293	// mask is provided, the following default mask is used: `paths:
9294	// "bindings, etag"
9295	UpdateMask string `json:"updateMask,omitempty"`
9296
9297	// ForceSendFields is a list of field names (e.g. "Policy") to
9298	// unconditionally include in API requests. By default, fields with
9299	// empty or default values are omitted from API requests. However, any
9300	// non-pointer, non-interface field appearing in ForceSendFields will be
9301	// sent to the server regardless of whether the field is empty or not.
9302	// This may be used to include empty fields in Patch requests.
9303	ForceSendFields []string `json:"-"`
9304
9305	// NullFields is a list of field names (e.g. "Policy") to include in API
9306	// requests with the JSON null value. By default, fields with empty
9307	// values are omitted from API requests. However, any field with an
9308	// empty value appearing in NullFields will be sent to the server as
9309	// null. It is an error if a field in this list has a non-empty value.
9310	// This may be used to include null fields in Patch requests.
9311	NullFields []string `json:"-"`
9312}
9313
9314func (s *GoogleIamV1SetIamPolicyRequest) MarshalJSON() ([]byte, error) {
9315	type NoMethod GoogleIamV1SetIamPolicyRequest
9316	raw := NoMethod(*s)
9317	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9318}
9319
9320// GoogleIamV1TestIamPermissionsRequest: Request message for
9321// `TestIamPermissions` method.
9322type GoogleIamV1TestIamPermissionsRequest struct {
9323	// Permissions: The set of permissions to check for the `resource`.
9324	// Permissions with wildcards (such as '*' or 'storage.*') are not
9325	// allowed. For more information see IAM Overview
9326	// (https://cloud.google.com/iam/docs/overview#permissions).
9327	Permissions []string `json:"permissions,omitempty"`
9328
9329	// ForceSendFields is a list of field names (e.g. "Permissions") to
9330	// unconditionally include in API requests. By default, fields with
9331	// empty or default values are omitted from API requests. However, any
9332	// non-pointer, non-interface field appearing in ForceSendFields will be
9333	// sent to the server regardless of whether the field is empty or not.
9334	// This may be used to include empty fields in Patch requests.
9335	ForceSendFields []string `json:"-"`
9336
9337	// NullFields is a list of field names (e.g. "Permissions") to include
9338	// in API requests with the JSON null value. By default, fields with
9339	// empty values are omitted from API requests. However, any field with
9340	// an empty value appearing in NullFields will be sent to the server as
9341	// null. It is an error if a field in this list has a non-empty value.
9342	// This may be used to include null fields in Patch requests.
9343	NullFields []string `json:"-"`
9344}
9345
9346func (s *GoogleIamV1TestIamPermissionsRequest) MarshalJSON() ([]byte, error) {
9347	type NoMethod GoogleIamV1TestIamPermissionsRequest
9348	raw := NoMethod(*s)
9349	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9350}
9351
9352// GoogleIamV1TestIamPermissionsResponse: Response message for
9353// `TestIamPermissions` method.
9354type GoogleIamV1TestIamPermissionsResponse struct {
9355	// Permissions: A subset of `TestPermissionsRequest.permissions` that
9356	// the caller is allowed.
9357	Permissions []string `json:"permissions,omitempty"`
9358
9359	// ServerResponse contains the HTTP response code and headers from the
9360	// server.
9361	googleapi.ServerResponse `json:"-"`
9362
9363	// ForceSendFields is a list of field names (e.g. "Permissions") to
9364	// unconditionally include in API requests. By default, fields with
9365	// empty or default values are omitted from API requests. However, any
9366	// non-pointer, non-interface field appearing in ForceSendFields will be
9367	// sent to the server regardless of whether the field is empty or not.
9368	// This may be used to include empty fields in Patch requests.
9369	ForceSendFields []string `json:"-"`
9370
9371	// NullFields is a list of field names (e.g. "Permissions") to include
9372	// in API requests with the JSON null value. By default, fields with
9373	// empty values are omitted from API requests. However, any field with
9374	// an empty value appearing in NullFields will be sent to the server as
9375	// null. It is an error if a field in this list has a non-empty value.
9376	// This may be used to include null fields in Patch requests.
9377	NullFields []string `json:"-"`
9378}
9379
9380func (s *GoogleIamV1TestIamPermissionsResponse) MarshalJSON() ([]byte, error) {
9381	type NoMethod GoogleIamV1TestIamPermissionsResponse
9382	raw := NoMethod(*s)
9383	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9384}
9385
9386// GoogleLongrunningListOperationsResponse: The response message for
9387// Operations.ListOperations.
9388type GoogleLongrunningListOperationsResponse struct {
9389	// NextPageToken: The standard List next-page token.
9390	NextPageToken string `json:"nextPageToken,omitempty"`
9391
9392	// Operations: A list of operations that matches the specified filter in
9393	// the request.
9394	Operations []*GoogleLongrunningOperation `json:"operations,omitempty"`
9395
9396	// ServerResponse contains the HTTP response code and headers from the
9397	// server.
9398	googleapi.ServerResponse `json:"-"`
9399
9400	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
9401	// unconditionally include in API requests. By default, fields with
9402	// empty or default values are omitted from API requests. However, any
9403	// non-pointer, non-interface field appearing in ForceSendFields will be
9404	// sent to the server regardless of whether the field is empty or not.
9405	// This may be used to include empty fields in Patch requests.
9406	ForceSendFields []string `json:"-"`
9407
9408	// NullFields is a list of field names (e.g. "NextPageToken") to include
9409	// in API requests with the JSON null value. By default, fields with
9410	// empty values are omitted from API requests. However, any field with
9411	// an empty value appearing in NullFields will be sent to the server as
9412	// null. It is an error if a field in this list has a non-empty value.
9413	// This may be used to include null fields in Patch requests.
9414	NullFields []string `json:"-"`
9415}
9416
9417func (s *GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) {
9418	type NoMethod GoogleLongrunningListOperationsResponse
9419	raw := NoMethod(*s)
9420	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9421}
9422
9423// GoogleLongrunningOperation: This resource represents a long-running
9424// operation that is the result of a network API call.
9425type GoogleLongrunningOperation struct {
9426	// Done: If the value is `false`, it means the operation is still in
9427	// progress. If `true`, the operation is completed, and either `error`
9428	// or `response` is available.
9429	Done bool `json:"done,omitempty"`
9430
9431	// Error: The error result of the operation in case of failure or
9432	// cancellation.
9433	Error *GoogleRpcStatus `json:"error,omitempty"`
9434
9435	// Metadata: Service-specific metadata associated with the operation. It
9436	// typically contains progress information and common metadata such as
9437	// create time. Some services might not provide such metadata. Any
9438	// method that returns a long-running operation should document the
9439	// metadata type, if any.
9440	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
9441
9442	// Name: The server-assigned name, which is only unique within the same
9443	// service that originally returns it. If you use the default HTTP
9444	// mapping, the `name` should be a resource name ending with
9445	// `operations/{unique_id}`.
9446	Name string `json:"name,omitempty"`
9447
9448	// Response: The normal response of the operation in case of success. If
9449	// the original method returns no data on success, such as `Delete`, the
9450	// response is `google.protobuf.Empty`. If the original method is
9451	// standard `Get`/`Create`/`Update`, the response should be the
9452	// resource. For other methods, the response should have the type
9453	// `XxxResponse`, where `Xxx` is the original method name. For example,
9454	// if the original method name is `TakeSnapshot()`, the inferred
9455	// response type is `TakeSnapshotResponse`.
9456	Response googleapi.RawMessage `json:"response,omitempty"`
9457
9458	// ServerResponse contains the HTTP response code and headers from the
9459	// server.
9460	googleapi.ServerResponse `json:"-"`
9461
9462	// ForceSendFields is a list of field names (e.g. "Done") to
9463	// unconditionally include in API requests. By default, fields with
9464	// empty or default values are omitted from API requests. However, any
9465	// non-pointer, non-interface field appearing in ForceSendFields will be
9466	// sent to the server regardless of whether the field is empty or not.
9467	// This may be used to include empty fields in Patch requests.
9468	ForceSendFields []string `json:"-"`
9469
9470	// NullFields is a list of field names (e.g. "Done") to include in API
9471	// requests with the JSON null value. By default, fields with empty
9472	// values are omitted from API requests. However, any field with an
9473	// empty value appearing in NullFields will be sent to the server as
9474	// null. It is an error if a field in this list has a non-empty value.
9475	// This may be used to include null fields in Patch requests.
9476	NullFields []string `json:"-"`
9477}
9478
9479func (s *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) {
9480	type NoMethod GoogleLongrunningOperation
9481	raw := NoMethod(*s)
9482	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9483}
9484
9485// GoogleProtobufEmpty: A generic empty message that you can re-use to
9486// avoid defining duplicated empty messages in your APIs. A typical
9487// example is to use it as the request or the response type of an API
9488// method. For instance: service Foo { rpc Bar(google.protobuf.Empty)
9489// returns (google.protobuf.Empty); } The JSON representation for
9490// `Empty` is empty JSON object `{}`.
9491type GoogleProtobufEmpty struct {
9492	// ServerResponse contains the HTTP response code and headers from the
9493	// server.
9494	googleapi.ServerResponse `json:"-"`
9495}
9496
9497// GoogleRpcPreconditionFailure: Describes what preconditions have
9498// failed. For example, if an RPC failed because it required the Terms
9499// of Service to be acknowledged, it could list the terms of service
9500// violation in the PreconditionFailure message.
9501type GoogleRpcPreconditionFailure struct {
9502	// Violations: Describes all precondition violations.
9503	Violations []*GoogleRpcPreconditionFailureViolation `json:"violations,omitempty"`
9504
9505	// ForceSendFields is a list of field names (e.g. "Violations") to
9506	// unconditionally include in API requests. By default, fields with
9507	// empty or default values are omitted from API requests. However, any
9508	// non-pointer, non-interface field appearing in ForceSendFields will be
9509	// sent to the server regardless of whether the field is empty or not.
9510	// This may be used to include empty fields in Patch requests.
9511	ForceSendFields []string `json:"-"`
9512
9513	// NullFields is a list of field names (e.g. "Violations") to include in
9514	// API requests with the JSON null value. By default, fields with empty
9515	// values are omitted from API requests. However, any field with an
9516	// empty value appearing in NullFields will be sent to the server as
9517	// null. It is an error if a field in this list has a non-empty value.
9518	// This may be used to include null fields in Patch requests.
9519	NullFields []string `json:"-"`
9520}
9521
9522func (s *GoogleRpcPreconditionFailure) MarshalJSON() ([]byte, error) {
9523	type NoMethod GoogleRpcPreconditionFailure
9524	raw := NoMethod(*s)
9525	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9526}
9527
9528// GoogleRpcPreconditionFailureViolation: A message type used to
9529// describe a single precondition failure.
9530type GoogleRpcPreconditionFailureViolation struct {
9531	// Description: A description of how the precondition failed. Developers
9532	// can use this description to understand how to fix the failure. For
9533	// example: "Terms of service not accepted".
9534	Description string `json:"description,omitempty"`
9535
9536	// Subject: The subject, relative to the type, that failed. For example,
9537	// "google.com/cloud" relative to the "TOS" type would indicate which
9538	// terms of service is being referenced.
9539	Subject string `json:"subject,omitempty"`
9540
9541	// Type: The type of PreconditionFailure. We recommend using a
9542	// service-specific enum type to define the supported precondition
9543	// violation subjects. For example, "TOS" for "Terms of Service
9544	// violation".
9545	Type string `json:"type,omitempty"`
9546
9547	// ForceSendFields is a list of field names (e.g. "Description") to
9548	// unconditionally include in API requests. By default, fields with
9549	// empty or default values are omitted from API requests. However, any
9550	// non-pointer, non-interface field appearing in ForceSendFields will be
9551	// sent to the server regardless of whether the field is empty or not.
9552	// This may be used to include empty fields in Patch requests.
9553	ForceSendFields []string `json:"-"`
9554
9555	// NullFields is a list of field names (e.g. "Description") to include
9556	// in API requests with the JSON null value. By default, fields with
9557	// empty values are omitted from API requests. However, any field with
9558	// an empty value appearing in NullFields will be sent to the server as
9559	// null. It is an error if a field in this list has a non-empty value.
9560	// This may be used to include null fields in Patch requests.
9561	NullFields []string `json:"-"`
9562}
9563
9564func (s *GoogleRpcPreconditionFailureViolation) MarshalJSON() ([]byte, error) {
9565	type NoMethod GoogleRpcPreconditionFailureViolation
9566	raw := NoMethod(*s)
9567	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9568}
9569
9570// GoogleRpcStatus: The `Status` type defines a logical error model that
9571// is suitable for different programming environments, including REST
9572// APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each
9573// `Status` message contains three pieces of data: error code, error
9574// message, and error details. You can find out more about this error
9575// model and how to work with it in the API Design Guide
9576// (https://cloud.google.com/apis/design/errors).
9577type GoogleRpcStatus struct {
9578	// Code: The status code, which should be an enum value of
9579	// google.rpc.Code.
9580	Code int64 `json:"code,omitempty"`
9581
9582	// Details: A list of messages that carry the error details. There is a
9583	// common set of message types for APIs to use.
9584	Details []googleapi.RawMessage `json:"details,omitempty"`
9585
9586	// Message: A developer-facing error message, which should be in
9587	// English. Any user-facing error message should be localized and sent
9588	// in the google.rpc.Status.details field, or localized by the client.
9589	Message string `json:"message,omitempty"`
9590
9591	// ForceSendFields is a list of field names (e.g. "Code") to
9592	// unconditionally include in API requests. By default, fields with
9593	// empty or default values are omitted from API requests. However, any
9594	// non-pointer, non-interface field appearing in ForceSendFields will be
9595	// sent to the server regardless of whether the field is empty or not.
9596	// This may be used to include empty fields in Patch requests.
9597	ForceSendFields []string `json:"-"`
9598
9599	// NullFields is a list of field names (e.g. "Code") to include in API
9600	// requests with the JSON null value. By default, fields with empty
9601	// values are omitted from API requests. However, any field with an
9602	// empty value appearing in NullFields will be sent to the server as
9603	// null. It is an error if a field in this list has a non-empty value.
9604	// This may be used to include null fields in Patch requests.
9605	NullFields []string `json:"-"`
9606}
9607
9608func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) {
9609	type NoMethod GoogleRpcStatus
9610	raw := NoMethod(*s)
9611	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9612}
9613
9614// GoogleTypeExpr: Represents a textual expression in the Common
9615// Expression Language (CEL) syntax. CEL is a C-like expression
9616// language. The syntax and semantics of CEL are documented at
9617// https://github.com/google/cel-spec. Example (Comparison): title:
9618// "Summary size limit" description: "Determines if a summary is less
9619// than 100 chars" expression: "document.summary.size() < 100" Example
9620// (Equality): title: "Requestor is owner" description: "Determines if
9621// requestor is the document owner" expression: "document.owner ==
9622// request.auth.claims.email" Example (Logic): title: "Public documents"
9623// description: "Determine whether the document should be publicly
9624// visible" expression: "document.type != 'private' && document.type !=
9625// 'internal'" Example (Data Manipulation): title: "Notification string"
9626// description: "Create a notification string with a timestamp."
9627// expression: "'New message received at ' +
9628// string(document.create_time)" The exact variables and functions that
9629// may be referenced within an expression are determined by the service
9630// that evaluates it. See the service documentation for additional
9631// information.
9632type GoogleTypeExpr struct {
9633	// Description: Optional. Description of the expression. This is a
9634	// longer text which describes the expression, e.g. when hovered over it
9635	// in a UI.
9636	Description string `json:"description,omitempty"`
9637
9638	// Expression: Textual representation of an expression in Common
9639	// Expression Language syntax.
9640	Expression string `json:"expression,omitempty"`
9641
9642	// Location: Optional. String indicating the location of the expression
9643	// for error reporting, e.g. a file name and a position in the file.
9644	Location string `json:"location,omitempty"`
9645
9646	// Title: Optional. Title for the expression, i.e. a short string
9647	// describing its purpose. This can be used e.g. in UIs which allow to
9648	// enter the expression.
9649	Title string `json:"title,omitempty"`
9650
9651	// ForceSendFields is a list of field names (e.g. "Description") to
9652	// unconditionally include in API requests. By default, fields with
9653	// empty or default values are omitted from API requests. However, any
9654	// non-pointer, non-interface field appearing in ForceSendFields will be
9655	// sent to the server regardless of whether the field is empty or not.
9656	// This may be used to include empty fields in Patch requests.
9657	ForceSendFields []string `json:"-"`
9658
9659	// NullFields is a list of field names (e.g. "Description") to include
9660	// in API requests with the JSON null value. By default, fields with
9661	// empty values are omitted from API requests. However, any field with
9662	// an empty value appearing in NullFields will be sent to the server as
9663	// null. It is an error if a field in this list has a non-empty value.
9664	// This may be used to include null fields in Patch requests.
9665	NullFields []string `json:"-"`
9666}
9667
9668func (s *GoogleTypeExpr) MarshalJSON() ([]byte, error) {
9669	type NoMethod GoogleTypeExpr
9670	raw := NoMethod(*s)
9671	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9672}
9673
9674// GoogleTypeMoney: Represents an amount of money with its currency
9675// type.
9676type GoogleTypeMoney struct {
9677	// CurrencyCode: The three-letter currency code defined in ISO 4217.
9678	CurrencyCode string `json:"currencyCode,omitempty"`
9679
9680	// Nanos: Number of nano (10^-9) units of the amount. The value must be
9681	// between -999,999,999 and +999,999,999 inclusive. If `units` is
9682	// positive, `nanos` must be positive or zero. If `units` is zero,
9683	// `nanos` can be positive, zero, or negative. If `units` is negative,
9684	// `nanos` must be negative or zero. For example $-1.75 is represented
9685	// as `units`=-1 and `nanos`=-750,000,000.
9686	Nanos int64 `json:"nanos,omitempty"`
9687
9688	// Units: The whole units of the amount. For example if `currencyCode`
9689	// is "USD", then 1 unit is one US dollar.
9690	Units int64 `json:"units,omitempty,string"`
9691
9692	// ForceSendFields is a list of field names (e.g. "CurrencyCode") to
9693	// unconditionally include in API requests. By default, fields with
9694	// empty or default values are omitted from API requests. However, any
9695	// non-pointer, non-interface field appearing in ForceSendFields will be
9696	// sent to the server regardless of whether the field is empty or not.
9697	// This may be used to include empty fields in Patch requests.
9698	ForceSendFields []string `json:"-"`
9699
9700	// NullFields is a list of field names (e.g. "CurrencyCode") to include
9701	// in API requests with the JSON null value. By default, fields with
9702	// empty values are omitted from API requests. However, any field with
9703	// an empty value appearing in NullFields will be sent to the server as
9704	// null. It is an error if a field in this list has a non-empty value.
9705	// This may be used to include null fields in Patch requests.
9706	NullFields []string `json:"-"`
9707}
9708
9709func (s *GoogleTypeMoney) MarshalJSON() ([]byte, error) {
9710	type NoMethod GoogleTypeMoney
9711	raw := NoMethod(*s)
9712	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
9713}
9714
9715// method id "apigee.hybrid.issuers.list":
9716
9717type HybridIssuersListCall struct {
9718	s            *Service
9719	name         string
9720	urlParams_   gensupport.URLParams
9721	ifNoneMatch_ string
9722	ctx_         context.Context
9723	header_      http.Header
9724}
9725
9726// List: Lists hybrid services and its trusted issuers service account
9727// ids. This api is authenticated and unauthorized(allow all the users)
9728// and used by runtime authn-authz service to query control plane's
9729// issuer service account ids.
9730//
9731// - name: Must be of the form `hybrid/issuers`.
9732func (r *HybridIssuersService) List(name string) *HybridIssuersListCall {
9733	c := &HybridIssuersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9734	c.name = name
9735	return c
9736}
9737
9738// Fields allows partial responses to be retrieved. See
9739// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9740// for more information.
9741func (c *HybridIssuersListCall) Fields(s ...googleapi.Field) *HybridIssuersListCall {
9742	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9743	return c
9744}
9745
9746// IfNoneMatch sets the optional parameter which makes the operation
9747// fail if the object's ETag matches the given value. This is useful for
9748// getting updates only after the object has changed since the last
9749// request. Use googleapi.IsNotModified to check whether the response
9750// error from Do is the result of In-None-Match.
9751func (c *HybridIssuersListCall) IfNoneMatch(entityTag string) *HybridIssuersListCall {
9752	c.ifNoneMatch_ = entityTag
9753	return c
9754}
9755
9756// Context sets the context to be used in this call's Do method. Any
9757// pending HTTP request will be aborted if the provided context is
9758// canceled.
9759func (c *HybridIssuersListCall) Context(ctx context.Context) *HybridIssuersListCall {
9760	c.ctx_ = ctx
9761	return c
9762}
9763
9764// Header returns an http.Header that can be modified by the caller to
9765// add HTTP headers to the request.
9766func (c *HybridIssuersListCall) Header() http.Header {
9767	if c.header_ == nil {
9768		c.header_ = make(http.Header)
9769	}
9770	return c.header_
9771}
9772
9773func (c *HybridIssuersListCall) doRequest(alt string) (*http.Response, error) {
9774	reqHeaders := make(http.Header)
9775	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
9776	for k, v := range c.header_ {
9777		reqHeaders[k] = v
9778	}
9779	reqHeaders.Set("User-Agent", c.s.userAgent())
9780	if c.ifNoneMatch_ != "" {
9781		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9782	}
9783	var body io.Reader = nil
9784	c.urlParams_.Set("alt", alt)
9785	c.urlParams_.Set("prettyPrint", "false")
9786	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
9787	urls += "?" + c.urlParams_.Encode()
9788	req, err := http.NewRequest("GET", urls, body)
9789	if err != nil {
9790		return nil, err
9791	}
9792	req.Header = reqHeaders
9793	googleapi.Expand(req.URL, map[string]string{
9794		"name": c.name,
9795	})
9796	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9797}
9798
9799// Do executes the "apigee.hybrid.issuers.list" call.
9800// Exactly one of *GoogleCloudApigeeV1ListHybridIssuersResponse or error
9801// will be non-nil. Any non-2xx status code is an error. Response
9802// headers are in either
9803// *GoogleCloudApigeeV1ListHybridIssuersResponse.ServerResponse.Header
9804// or (if a response was returned at all) in
9805// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
9806// whether the returned error was because http.StatusNotModified was
9807// returned.
9808func (c *HybridIssuersListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListHybridIssuersResponse, error) {
9809	gensupport.SetOptions(c.urlParams_, opts...)
9810	res, err := c.doRequest("json")
9811	if res != nil && res.StatusCode == http.StatusNotModified {
9812		if res.Body != nil {
9813			res.Body.Close()
9814		}
9815		return nil, &googleapi.Error{
9816			Code:   res.StatusCode,
9817			Header: res.Header,
9818		}
9819	}
9820	if err != nil {
9821		return nil, err
9822	}
9823	defer googleapi.CloseBody(res)
9824	if err := googleapi.CheckResponse(res); err != nil {
9825		return nil, err
9826	}
9827	ret := &GoogleCloudApigeeV1ListHybridIssuersResponse{
9828		ServerResponse: googleapi.ServerResponse{
9829			Header:         res.Header,
9830			HTTPStatusCode: res.StatusCode,
9831		},
9832	}
9833	target := &ret
9834	if err := gensupport.DecodeResponse(target, res); err != nil {
9835		return nil, err
9836	}
9837	return ret, nil
9838	// {
9839	//   "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.",
9840	//   "flatPath": "v1/hybrid/issuers",
9841	//   "httpMethod": "GET",
9842	//   "id": "apigee.hybrid.issuers.list",
9843	//   "parameterOrder": [
9844	//     "name"
9845	//   ],
9846	//   "parameters": {
9847	//     "name": {
9848	//       "description": "Required. Must be of the form `hybrid/issuers`.",
9849	//       "location": "path",
9850	//       "pattern": "^hybrid/issuers$",
9851	//       "required": true,
9852	//       "type": "string"
9853	//     }
9854	//   },
9855	//   "path": "v1/{+name}",
9856	//   "response": {
9857	//     "$ref": "GoogleCloudApigeeV1ListHybridIssuersResponse"
9858	//   },
9859	//   "scopes": [
9860	//     "https://www.googleapis.com/auth/cloud-platform"
9861	//   ]
9862	// }
9863
9864}
9865
9866// method id "apigee.organizations.create":
9867
9868type OrganizationsCreateCall struct {
9869	s                               *Service
9870	googlecloudapigeev1organization *GoogleCloudApigeeV1Organization
9871	urlParams_                      gensupport.URLParams
9872	ctx_                            context.Context
9873	header_                         http.Header
9874}
9875
9876// Create: Creates an Apigee organization. See Create an Apigee
9877// organization
9878// (https://cloud.google.com/apigee/docs/api-platform/get-started/create-org).
9879func (r *OrganizationsService) Create(googlecloudapigeev1organization *GoogleCloudApigeeV1Organization) *OrganizationsCreateCall {
9880	c := &OrganizationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9881	c.googlecloudapigeev1organization = googlecloudapigeev1organization
9882	return c
9883}
9884
9885// Parent sets the optional parameter "parent": Required. Name of the
9886// GCP project in which to associate the Apigee organization. Pass the
9887// information as a query parameter using the following structure in
9888// your request: `projects/`
9889func (c *OrganizationsCreateCall) Parent(parent string) *OrganizationsCreateCall {
9890	c.urlParams_.Set("parent", parent)
9891	return c
9892}
9893
9894// Fields allows partial responses to be retrieved. See
9895// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9896// for more information.
9897func (c *OrganizationsCreateCall) Fields(s ...googleapi.Field) *OrganizationsCreateCall {
9898	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9899	return c
9900}
9901
9902// Context sets the context to be used in this call's Do method. Any
9903// pending HTTP request will be aborted if the provided context is
9904// canceled.
9905func (c *OrganizationsCreateCall) Context(ctx context.Context) *OrganizationsCreateCall {
9906	c.ctx_ = ctx
9907	return c
9908}
9909
9910// Header returns an http.Header that can be modified by the caller to
9911// add HTTP headers to the request.
9912func (c *OrganizationsCreateCall) Header() http.Header {
9913	if c.header_ == nil {
9914		c.header_ = make(http.Header)
9915	}
9916	return c.header_
9917}
9918
9919func (c *OrganizationsCreateCall) doRequest(alt string) (*http.Response, error) {
9920	reqHeaders := make(http.Header)
9921	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
9922	for k, v := range c.header_ {
9923		reqHeaders[k] = v
9924	}
9925	reqHeaders.Set("User-Agent", c.s.userAgent())
9926	var body io.Reader = nil
9927	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1organization)
9928	if err != nil {
9929		return nil, err
9930	}
9931	reqHeaders.Set("Content-Type", "application/json")
9932	c.urlParams_.Set("alt", alt)
9933	c.urlParams_.Set("prettyPrint", "false")
9934	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/organizations")
9935	urls += "?" + c.urlParams_.Encode()
9936	req, err := http.NewRequest("POST", urls, body)
9937	if err != nil {
9938		return nil, err
9939	}
9940	req.Header = reqHeaders
9941	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9942}
9943
9944// Do executes the "apigee.organizations.create" call.
9945// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
9946// Any non-2xx status code is an error. Response headers are in either
9947// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
9948// was returned at all) in error.(*googleapi.Error).Header. Use
9949// googleapi.IsNotModified to check whether the returned error was
9950// because http.StatusNotModified was returned.
9951func (c *OrganizationsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
9952	gensupport.SetOptions(c.urlParams_, opts...)
9953	res, err := c.doRequest("json")
9954	if res != nil && res.StatusCode == http.StatusNotModified {
9955		if res.Body != nil {
9956			res.Body.Close()
9957		}
9958		return nil, &googleapi.Error{
9959			Code:   res.StatusCode,
9960			Header: res.Header,
9961		}
9962	}
9963	if err != nil {
9964		return nil, err
9965	}
9966	defer googleapi.CloseBody(res)
9967	if err := googleapi.CheckResponse(res); err != nil {
9968		return nil, err
9969	}
9970	ret := &GoogleLongrunningOperation{
9971		ServerResponse: googleapi.ServerResponse{
9972			Header:         res.Header,
9973			HTTPStatusCode: res.StatusCode,
9974		},
9975	}
9976	target := &ret
9977	if err := gensupport.DecodeResponse(target, res); err != nil {
9978		return nil, err
9979	}
9980	return ret, nil
9981	// {
9982	//   "description": "Creates an Apigee organization. See [Create an Apigee organization](https://cloud.google.com/apigee/docs/api-platform/get-started/create-org).",
9983	//   "flatPath": "v1/organizations",
9984	//   "httpMethod": "POST",
9985	//   "id": "apigee.organizations.create",
9986	//   "parameterOrder": [],
9987	//   "parameters": {
9988	//     "parent": {
9989	//       "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/`",
9990	//       "location": "query",
9991	//       "type": "string"
9992	//     }
9993	//   },
9994	//   "path": "v1/organizations",
9995	//   "request": {
9996	//     "$ref": "GoogleCloudApigeeV1Organization"
9997	//   },
9998	//   "response": {
9999	//     "$ref": "GoogleLongrunningOperation"
10000	//   },
10001	//   "scopes": [
10002	//     "https://www.googleapis.com/auth/cloud-platform"
10003	//   ]
10004	// }
10005
10006}
10007
10008// method id "apigee.organizations.delete":
10009
10010type OrganizationsDeleteCall struct {
10011	s          *Service
10012	name       string
10013	urlParams_ gensupport.URLParams
10014	ctx_       context.Context
10015	header_    http.Header
10016}
10017
10018// Delete: Delete an Apigee organization. Only supported for
10019// SubscriptionType TRIAL.
10020//
10021// - name: Name of the organization. Use the following structure in your
10022//   request: `organizations/{org}`.
10023func (r *OrganizationsService) Delete(name string) *OrganizationsDeleteCall {
10024	c := &OrganizationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10025	c.name = name
10026	return c
10027}
10028
10029// Fields allows partial responses to be retrieved. See
10030// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10031// for more information.
10032func (c *OrganizationsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDeleteCall {
10033	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10034	return c
10035}
10036
10037// Context sets the context to be used in this call's Do method. Any
10038// pending HTTP request will be aborted if the provided context is
10039// canceled.
10040func (c *OrganizationsDeleteCall) Context(ctx context.Context) *OrganizationsDeleteCall {
10041	c.ctx_ = ctx
10042	return c
10043}
10044
10045// Header returns an http.Header that can be modified by the caller to
10046// add HTTP headers to the request.
10047func (c *OrganizationsDeleteCall) Header() http.Header {
10048	if c.header_ == nil {
10049		c.header_ = make(http.Header)
10050	}
10051	return c.header_
10052}
10053
10054func (c *OrganizationsDeleteCall) doRequest(alt string) (*http.Response, error) {
10055	reqHeaders := make(http.Header)
10056	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
10057	for k, v := range c.header_ {
10058		reqHeaders[k] = v
10059	}
10060	reqHeaders.Set("User-Agent", c.s.userAgent())
10061	var body io.Reader = nil
10062	c.urlParams_.Set("alt", alt)
10063	c.urlParams_.Set("prettyPrint", "false")
10064	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
10065	urls += "?" + c.urlParams_.Encode()
10066	req, err := http.NewRequest("DELETE", urls, body)
10067	if err != nil {
10068		return nil, err
10069	}
10070	req.Header = reqHeaders
10071	googleapi.Expand(req.URL, map[string]string{
10072		"name": c.name,
10073	})
10074	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10075}
10076
10077// Do executes the "apigee.organizations.delete" call.
10078// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
10079// Any non-2xx status code is an error. Response headers are in either
10080// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
10081// was returned at all) in error.(*googleapi.Error).Header. Use
10082// googleapi.IsNotModified to check whether the returned error was
10083// because http.StatusNotModified was returned.
10084func (c *OrganizationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
10085	gensupport.SetOptions(c.urlParams_, opts...)
10086	res, err := c.doRequest("json")
10087	if res != nil && res.StatusCode == http.StatusNotModified {
10088		if res.Body != nil {
10089			res.Body.Close()
10090		}
10091		return nil, &googleapi.Error{
10092			Code:   res.StatusCode,
10093			Header: res.Header,
10094		}
10095	}
10096	if err != nil {
10097		return nil, err
10098	}
10099	defer googleapi.CloseBody(res)
10100	if err := googleapi.CheckResponse(res); err != nil {
10101		return nil, err
10102	}
10103	ret := &GoogleLongrunningOperation{
10104		ServerResponse: googleapi.ServerResponse{
10105			Header:         res.Header,
10106			HTTPStatusCode: res.StatusCode,
10107		},
10108	}
10109	target := &ret
10110	if err := gensupport.DecodeResponse(target, res); err != nil {
10111		return nil, err
10112	}
10113	return ret, nil
10114	// {
10115	//   "description": "Delete an Apigee organization. Only supported for SubscriptionType TRIAL.",
10116	//   "flatPath": "v1/organizations/{organizationsId}",
10117	//   "httpMethod": "DELETE",
10118	//   "id": "apigee.organizations.delete",
10119	//   "parameterOrder": [
10120	//     "name"
10121	//   ],
10122	//   "parameters": {
10123	//     "name": {
10124	//       "description": "Required. Name of the organization. Use the following structure in your request: `organizations/{org}`",
10125	//       "location": "path",
10126	//       "pattern": "^organizations/[^/]+$",
10127	//       "required": true,
10128	//       "type": "string"
10129	//     }
10130	//   },
10131	//   "path": "v1/{+name}",
10132	//   "response": {
10133	//     "$ref": "GoogleLongrunningOperation"
10134	//   },
10135	//   "scopes": [
10136	//     "https://www.googleapis.com/auth/cloud-platform"
10137	//   ]
10138	// }
10139
10140}
10141
10142// method id "apigee.organizations.get":
10143
10144type OrganizationsGetCall struct {
10145	s            *Service
10146	name         string
10147	urlParams_   gensupport.URLParams
10148	ifNoneMatch_ string
10149	ctx_         context.Context
10150	header_      http.Header
10151}
10152
10153// Get: Gets the profile for an Apigee organization. See Understanding
10154// organizations
10155// (https://cloud.google.com/apigee/docs/api-platform/fundamentals/organization-structure).
10156//
10157// - name: Apigee organization name in the following format:
10158//   `organizations/{org}`.
10159func (r *OrganizationsService) Get(name string) *OrganizationsGetCall {
10160	c := &OrganizationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10161	c.name = name
10162	return c
10163}
10164
10165// Fields allows partial responses to be retrieved. See
10166// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10167// for more information.
10168func (c *OrganizationsGetCall) Fields(s ...googleapi.Field) *OrganizationsGetCall {
10169	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10170	return c
10171}
10172
10173// IfNoneMatch sets the optional parameter which makes the operation
10174// fail if the object's ETag matches the given value. This is useful for
10175// getting updates only after the object has changed since the last
10176// request. Use googleapi.IsNotModified to check whether the response
10177// error from Do is the result of In-None-Match.
10178func (c *OrganizationsGetCall) IfNoneMatch(entityTag string) *OrganizationsGetCall {
10179	c.ifNoneMatch_ = entityTag
10180	return c
10181}
10182
10183// Context sets the context to be used in this call's Do method. Any
10184// pending HTTP request will be aborted if the provided context is
10185// canceled.
10186func (c *OrganizationsGetCall) Context(ctx context.Context) *OrganizationsGetCall {
10187	c.ctx_ = ctx
10188	return c
10189}
10190
10191// Header returns an http.Header that can be modified by the caller to
10192// add HTTP headers to the request.
10193func (c *OrganizationsGetCall) Header() http.Header {
10194	if c.header_ == nil {
10195		c.header_ = make(http.Header)
10196	}
10197	return c.header_
10198}
10199
10200func (c *OrganizationsGetCall) doRequest(alt string) (*http.Response, error) {
10201	reqHeaders := make(http.Header)
10202	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
10203	for k, v := range c.header_ {
10204		reqHeaders[k] = v
10205	}
10206	reqHeaders.Set("User-Agent", c.s.userAgent())
10207	if c.ifNoneMatch_ != "" {
10208		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10209	}
10210	var body io.Reader = nil
10211	c.urlParams_.Set("alt", alt)
10212	c.urlParams_.Set("prettyPrint", "false")
10213	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
10214	urls += "?" + c.urlParams_.Encode()
10215	req, err := http.NewRequest("GET", urls, body)
10216	if err != nil {
10217		return nil, err
10218	}
10219	req.Header = reqHeaders
10220	googleapi.Expand(req.URL, map[string]string{
10221		"name": c.name,
10222	})
10223	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10224}
10225
10226// Do executes the "apigee.organizations.get" call.
10227// Exactly one of *GoogleCloudApigeeV1Organization or error will be
10228// non-nil. Any non-2xx status code is an error. Response headers are in
10229// either *GoogleCloudApigeeV1Organization.ServerResponse.Header or (if
10230// a response was returned at all) in error.(*googleapi.Error).Header.
10231// Use googleapi.IsNotModified to check whether the returned error was
10232// because http.StatusNotModified was returned.
10233func (c *OrganizationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Organization, error) {
10234	gensupport.SetOptions(c.urlParams_, opts...)
10235	res, err := c.doRequest("json")
10236	if res != nil && res.StatusCode == http.StatusNotModified {
10237		if res.Body != nil {
10238			res.Body.Close()
10239		}
10240		return nil, &googleapi.Error{
10241			Code:   res.StatusCode,
10242			Header: res.Header,
10243		}
10244	}
10245	if err != nil {
10246		return nil, err
10247	}
10248	defer googleapi.CloseBody(res)
10249	if err := googleapi.CheckResponse(res); err != nil {
10250		return nil, err
10251	}
10252	ret := &GoogleCloudApigeeV1Organization{
10253		ServerResponse: googleapi.ServerResponse{
10254			Header:         res.Header,
10255			HTTPStatusCode: res.StatusCode,
10256		},
10257	}
10258	target := &ret
10259	if err := gensupport.DecodeResponse(target, res); err != nil {
10260		return nil, err
10261	}
10262	return ret, nil
10263	// {
10264	//   "description": "Gets the profile for an Apigee organization. See [Understanding organizations](https://cloud.google.com/apigee/docs/api-platform/fundamentals/organization-structure).",
10265	//   "flatPath": "v1/organizations/{organizationsId}",
10266	//   "httpMethod": "GET",
10267	//   "id": "apigee.organizations.get",
10268	//   "parameterOrder": [
10269	//     "name"
10270	//   ],
10271	//   "parameters": {
10272	//     "name": {
10273	//       "description": "Required. Apigee organization name in the following format: `organizations/{org}`",
10274	//       "location": "path",
10275	//       "pattern": "^organizations/[^/]+$",
10276	//       "required": true,
10277	//       "type": "string"
10278	//     }
10279	//   },
10280	//   "path": "v1/{+name}",
10281	//   "response": {
10282	//     "$ref": "GoogleCloudApigeeV1Organization"
10283	//   },
10284	//   "scopes": [
10285	//     "https://www.googleapis.com/auth/cloud-platform"
10286	//   ]
10287	// }
10288
10289}
10290
10291// method id "apigee.organizations.getDeployedIngressConfig":
10292
10293type OrganizationsGetDeployedIngressConfigCall struct {
10294	s            *Service
10295	name         string
10296	urlParams_   gensupport.URLParams
10297	ifNoneMatch_ string
10298	ctx_         context.Context
10299	header_      http.Header
10300}
10301
10302// GetDeployedIngressConfig: Gets the deployed ingress configuration for
10303// an organization.
10304//
10305// - name: Name of the deployed configuration for the organization in
10306//   the following format: 'organizations/{org}/deployedIngressConfig'.
10307func (r *OrganizationsService) GetDeployedIngressConfig(name string) *OrganizationsGetDeployedIngressConfigCall {
10308	c := &OrganizationsGetDeployedIngressConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10309	c.name = name
10310	return c
10311}
10312
10313// View sets the optional parameter "view": When set to FULL, additional
10314// details about the specific deployments receiving traffic will be
10315// included in the IngressConfig response's RoutingRules.
10316//
10317// Possible values:
10318//   "INGRESS_CONFIG_VIEW_UNSPECIFIED" - The default/unset value. The
10319// API will default to the BASIC view.
10320//   "BASIC" - Include all ingress config data necessary for the runtime
10321// to configure ingress, but no more. Routing rules will include only
10322// basepath and destination environment. This the default value.
10323//   "FULL" - Include all ingress config data, including internal debug
10324// info for each routing rule such as the proxy claiming a particular
10325// basepath and when the routing rule first appeared in the env group.
10326func (c *OrganizationsGetDeployedIngressConfigCall) View(view string) *OrganizationsGetDeployedIngressConfigCall {
10327	c.urlParams_.Set("view", view)
10328	return c
10329}
10330
10331// Fields allows partial responses to be retrieved. See
10332// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10333// for more information.
10334func (c *OrganizationsGetDeployedIngressConfigCall) Fields(s ...googleapi.Field) *OrganizationsGetDeployedIngressConfigCall {
10335	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10336	return c
10337}
10338
10339// IfNoneMatch sets the optional parameter which makes the operation
10340// fail if the object's ETag matches the given value. This is useful for
10341// getting updates only after the object has changed since the last
10342// request. Use googleapi.IsNotModified to check whether the response
10343// error from Do is the result of In-None-Match.
10344func (c *OrganizationsGetDeployedIngressConfigCall) IfNoneMatch(entityTag string) *OrganizationsGetDeployedIngressConfigCall {
10345	c.ifNoneMatch_ = entityTag
10346	return c
10347}
10348
10349// Context sets the context to be used in this call's Do method. Any
10350// pending HTTP request will be aborted if the provided context is
10351// canceled.
10352func (c *OrganizationsGetDeployedIngressConfigCall) Context(ctx context.Context) *OrganizationsGetDeployedIngressConfigCall {
10353	c.ctx_ = ctx
10354	return c
10355}
10356
10357// Header returns an http.Header that can be modified by the caller to
10358// add HTTP headers to the request.
10359func (c *OrganizationsGetDeployedIngressConfigCall) Header() http.Header {
10360	if c.header_ == nil {
10361		c.header_ = make(http.Header)
10362	}
10363	return c.header_
10364}
10365
10366func (c *OrganizationsGetDeployedIngressConfigCall) doRequest(alt string) (*http.Response, error) {
10367	reqHeaders := make(http.Header)
10368	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
10369	for k, v := range c.header_ {
10370		reqHeaders[k] = v
10371	}
10372	reqHeaders.Set("User-Agent", c.s.userAgent())
10373	if c.ifNoneMatch_ != "" {
10374		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10375	}
10376	var body io.Reader = nil
10377	c.urlParams_.Set("alt", alt)
10378	c.urlParams_.Set("prettyPrint", "false")
10379	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
10380	urls += "?" + c.urlParams_.Encode()
10381	req, err := http.NewRequest("GET", urls, body)
10382	if err != nil {
10383		return nil, err
10384	}
10385	req.Header = reqHeaders
10386	googleapi.Expand(req.URL, map[string]string{
10387		"name": c.name,
10388	})
10389	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10390}
10391
10392// Do executes the "apigee.organizations.getDeployedIngressConfig" call.
10393// Exactly one of *GoogleCloudApigeeV1IngressConfig or error will be
10394// non-nil. Any non-2xx status code is an error. Response headers are in
10395// either *GoogleCloudApigeeV1IngressConfig.ServerResponse.Header or (if
10396// a response was returned at all) in error.(*googleapi.Error).Header.
10397// Use googleapi.IsNotModified to check whether the returned error was
10398// because http.StatusNotModified was returned.
10399func (c *OrganizationsGetDeployedIngressConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1IngressConfig, error) {
10400	gensupport.SetOptions(c.urlParams_, opts...)
10401	res, err := c.doRequest("json")
10402	if res != nil && res.StatusCode == http.StatusNotModified {
10403		if res.Body != nil {
10404			res.Body.Close()
10405		}
10406		return nil, &googleapi.Error{
10407			Code:   res.StatusCode,
10408			Header: res.Header,
10409		}
10410	}
10411	if err != nil {
10412		return nil, err
10413	}
10414	defer googleapi.CloseBody(res)
10415	if err := googleapi.CheckResponse(res); err != nil {
10416		return nil, err
10417	}
10418	ret := &GoogleCloudApigeeV1IngressConfig{
10419		ServerResponse: googleapi.ServerResponse{
10420			Header:         res.Header,
10421			HTTPStatusCode: res.StatusCode,
10422		},
10423	}
10424	target := &ret
10425	if err := gensupport.DecodeResponse(target, res); err != nil {
10426		return nil, err
10427	}
10428	return ret, nil
10429	// {
10430	//   "description": "Gets the deployed ingress configuration for an organization.",
10431	//   "flatPath": "v1/organizations/{organizationsId}/deployedIngressConfig",
10432	//   "httpMethod": "GET",
10433	//   "id": "apigee.organizations.getDeployedIngressConfig",
10434	//   "parameterOrder": [
10435	//     "name"
10436	//   ],
10437	//   "parameters": {
10438	//     "name": {
10439	//       "description": "Required. Name of the deployed configuration for the organization in the following format: 'organizations/{org}/deployedIngressConfig'.",
10440	//       "location": "path",
10441	//       "pattern": "^organizations/[^/]+/deployedIngressConfig$",
10442	//       "required": true,
10443	//       "type": "string"
10444	//     },
10445	//     "view": {
10446	//       "description": "When set to FULL, additional details about the specific deployments receiving traffic will be included in the IngressConfig response's RoutingRules.",
10447	//       "enum": [
10448	//         "INGRESS_CONFIG_VIEW_UNSPECIFIED",
10449	//         "BASIC",
10450	//         "FULL"
10451	//       ],
10452	//       "enumDescriptions": [
10453	//         "The default/unset value. The API will default to the BASIC view.",
10454	//         "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.",
10455	//         "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."
10456	//       ],
10457	//       "location": "query",
10458	//       "type": "string"
10459	//     }
10460	//   },
10461	//   "path": "v1/{+name}",
10462	//   "response": {
10463	//     "$ref": "GoogleCloudApigeeV1IngressConfig"
10464	//   },
10465	//   "scopes": [
10466	//     "https://www.googleapis.com/auth/cloud-platform"
10467	//   ]
10468	// }
10469
10470}
10471
10472// method id "apigee.organizations.getRuntimeConfig":
10473
10474type OrganizationsGetRuntimeConfigCall struct {
10475	s            *Service
10476	name         string
10477	urlParams_   gensupport.URLParams
10478	ifNoneMatch_ string
10479	ctx_         context.Context
10480	header_      http.Header
10481}
10482
10483// GetRuntimeConfig: Get runtime config for an organization.
10484//
10485// - name: Name of the runtime config for the organization in the
10486//   following format: 'organizations/{org}/runtimeConfig'.
10487func (r *OrganizationsService) GetRuntimeConfig(name string) *OrganizationsGetRuntimeConfigCall {
10488	c := &OrganizationsGetRuntimeConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10489	c.name = name
10490	return c
10491}
10492
10493// Fields allows partial responses to be retrieved. See
10494// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10495// for more information.
10496func (c *OrganizationsGetRuntimeConfigCall) Fields(s ...googleapi.Field) *OrganizationsGetRuntimeConfigCall {
10497	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10498	return c
10499}
10500
10501// IfNoneMatch sets the optional parameter which makes the operation
10502// fail if the object's ETag matches the given value. This is useful for
10503// getting updates only after the object has changed since the last
10504// request. Use googleapi.IsNotModified to check whether the response
10505// error from Do is the result of In-None-Match.
10506func (c *OrganizationsGetRuntimeConfigCall) IfNoneMatch(entityTag string) *OrganizationsGetRuntimeConfigCall {
10507	c.ifNoneMatch_ = entityTag
10508	return c
10509}
10510
10511// Context sets the context to be used in this call's Do method. Any
10512// pending HTTP request will be aborted if the provided context is
10513// canceled.
10514func (c *OrganizationsGetRuntimeConfigCall) Context(ctx context.Context) *OrganizationsGetRuntimeConfigCall {
10515	c.ctx_ = ctx
10516	return c
10517}
10518
10519// Header returns an http.Header that can be modified by the caller to
10520// add HTTP headers to the request.
10521func (c *OrganizationsGetRuntimeConfigCall) Header() http.Header {
10522	if c.header_ == nil {
10523		c.header_ = make(http.Header)
10524	}
10525	return c.header_
10526}
10527
10528func (c *OrganizationsGetRuntimeConfigCall) doRequest(alt string) (*http.Response, error) {
10529	reqHeaders := make(http.Header)
10530	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
10531	for k, v := range c.header_ {
10532		reqHeaders[k] = v
10533	}
10534	reqHeaders.Set("User-Agent", c.s.userAgent())
10535	if c.ifNoneMatch_ != "" {
10536		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10537	}
10538	var body io.Reader = nil
10539	c.urlParams_.Set("alt", alt)
10540	c.urlParams_.Set("prettyPrint", "false")
10541	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
10542	urls += "?" + c.urlParams_.Encode()
10543	req, err := http.NewRequest("GET", urls, body)
10544	if err != nil {
10545		return nil, err
10546	}
10547	req.Header = reqHeaders
10548	googleapi.Expand(req.URL, map[string]string{
10549		"name": c.name,
10550	})
10551	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10552}
10553
10554// Do executes the "apigee.organizations.getRuntimeConfig" call.
10555// Exactly one of *GoogleCloudApigeeV1RuntimeConfig or error will be
10556// non-nil. Any non-2xx status code is an error. Response headers are in
10557// either *GoogleCloudApigeeV1RuntimeConfig.ServerResponse.Header or (if
10558// a response was returned at all) in error.(*googleapi.Error).Header.
10559// Use googleapi.IsNotModified to check whether the returned error was
10560// because http.StatusNotModified was returned.
10561func (c *OrganizationsGetRuntimeConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1RuntimeConfig, error) {
10562	gensupport.SetOptions(c.urlParams_, opts...)
10563	res, err := c.doRequest("json")
10564	if res != nil && res.StatusCode == http.StatusNotModified {
10565		if res.Body != nil {
10566			res.Body.Close()
10567		}
10568		return nil, &googleapi.Error{
10569			Code:   res.StatusCode,
10570			Header: res.Header,
10571		}
10572	}
10573	if err != nil {
10574		return nil, err
10575	}
10576	defer googleapi.CloseBody(res)
10577	if err := googleapi.CheckResponse(res); err != nil {
10578		return nil, err
10579	}
10580	ret := &GoogleCloudApigeeV1RuntimeConfig{
10581		ServerResponse: googleapi.ServerResponse{
10582			Header:         res.Header,
10583			HTTPStatusCode: res.StatusCode,
10584		},
10585	}
10586	target := &ret
10587	if err := gensupport.DecodeResponse(target, res); err != nil {
10588		return nil, err
10589	}
10590	return ret, nil
10591	// {
10592	//   "description": "Get runtime config for an organization.",
10593	//   "flatPath": "v1/organizations/{organizationsId}/runtimeConfig",
10594	//   "httpMethod": "GET",
10595	//   "id": "apigee.organizations.getRuntimeConfig",
10596	//   "parameterOrder": [
10597	//     "name"
10598	//   ],
10599	//   "parameters": {
10600	//     "name": {
10601	//       "description": "Required. Name of the runtime config for the organization in the following format: 'organizations/{org}/runtimeConfig'.",
10602	//       "location": "path",
10603	//       "pattern": "^organizations/[^/]+/runtimeConfig$",
10604	//       "required": true,
10605	//       "type": "string"
10606	//     }
10607	//   },
10608	//   "path": "v1/{+name}",
10609	//   "response": {
10610	//     "$ref": "GoogleCloudApigeeV1RuntimeConfig"
10611	//   },
10612	//   "scopes": [
10613	//     "https://www.googleapis.com/auth/cloud-platform"
10614	//   ]
10615	// }
10616
10617}
10618
10619// method id "apigee.organizations.getSyncAuthorization":
10620
10621type OrganizationsGetSyncAuthorizationCall struct {
10622	s                                              *Service
10623	name                                           string
10624	googlecloudapigeev1getsyncauthorizationrequest *GoogleCloudApigeeV1GetSyncAuthorizationRequest
10625	urlParams_                                     gensupport.URLParams
10626	ctx_                                           context.Context
10627	header_                                        http.Header
10628}
10629
10630// GetSyncAuthorization: Lists the service accounts with the permissions
10631// required to allow the Synchronizer to download environment data from
10632// the control plane. An ETag is returned in the response to
10633// `getSyncAuthorization`. Pass that ETag when calling
10634// setSyncAuthorization (setSyncAuthorization) to ensure that you are
10635// updating the correct version. If you don't pass the ETag in the call
10636// to `setSyncAuthorization`, then the existing authorization is
10637// overwritten indiscriminately. For more information, see Configure the
10638// Synchronizer
10639// (https://cloud.google.com/apigee/docs/hybrid/latest/synchronizer-access).
10640// **Note**: Available to Apigee hybrid only.
10641//
10642// - name: Name of the Apigee organization. Use the following structure
10643//   in your request: `organizations/{org}`.
10644func (r *OrganizationsService) GetSyncAuthorization(name string, googlecloudapigeev1getsyncauthorizationrequest *GoogleCloudApigeeV1GetSyncAuthorizationRequest) *OrganizationsGetSyncAuthorizationCall {
10645	c := &OrganizationsGetSyncAuthorizationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10646	c.name = name
10647	c.googlecloudapigeev1getsyncauthorizationrequest = googlecloudapigeev1getsyncauthorizationrequest
10648	return c
10649}
10650
10651// Fields allows partial responses to be retrieved. See
10652// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10653// for more information.
10654func (c *OrganizationsGetSyncAuthorizationCall) Fields(s ...googleapi.Field) *OrganizationsGetSyncAuthorizationCall {
10655	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10656	return c
10657}
10658
10659// Context sets the context to be used in this call's Do method. Any
10660// pending HTTP request will be aborted if the provided context is
10661// canceled.
10662func (c *OrganizationsGetSyncAuthorizationCall) Context(ctx context.Context) *OrganizationsGetSyncAuthorizationCall {
10663	c.ctx_ = ctx
10664	return c
10665}
10666
10667// Header returns an http.Header that can be modified by the caller to
10668// add HTTP headers to the request.
10669func (c *OrganizationsGetSyncAuthorizationCall) Header() http.Header {
10670	if c.header_ == nil {
10671		c.header_ = make(http.Header)
10672	}
10673	return c.header_
10674}
10675
10676func (c *OrganizationsGetSyncAuthorizationCall) doRequest(alt string) (*http.Response, error) {
10677	reqHeaders := make(http.Header)
10678	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
10679	for k, v := range c.header_ {
10680		reqHeaders[k] = v
10681	}
10682	reqHeaders.Set("User-Agent", c.s.userAgent())
10683	var body io.Reader = nil
10684	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1getsyncauthorizationrequest)
10685	if err != nil {
10686		return nil, err
10687	}
10688	reqHeaders.Set("Content-Type", "application/json")
10689	c.urlParams_.Set("alt", alt)
10690	c.urlParams_.Set("prettyPrint", "false")
10691	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:getSyncAuthorization")
10692	urls += "?" + c.urlParams_.Encode()
10693	req, err := http.NewRequest("POST", urls, body)
10694	if err != nil {
10695		return nil, err
10696	}
10697	req.Header = reqHeaders
10698	googleapi.Expand(req.URL, map[string]string{
10699		"name": c.name,
10700	})
10701	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10702}
10703
10704// Do executes the "apigee.organizations.getSyncAuthorization" call.
10705// Exactly one of *GoogleCloudApigeeV1SyncAuthorization or error will be
10706// non-nil. Any non-2xx status code is an error. Response headers are in
10707// either *GoogleCloudApigeeV1SyncAuthorization.ServerResponse.Header or
10708// (if a response was returned at all) in
10709// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
10710// whether the returned error was because http.StatusNotModified was
10711// returned.
10712func (c *OrganizationsGetSyncAuthorizationCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SyncAuthorization, error) {
10713	gensupport.SetOptions(c.urlParams_, opts...)
10714	res, err := c.doRequest("json")
10715	if res != nil && res.StatusCode == http.StatusNotModified {
10716		if res.Body != nil {
10717			res.Body.Close()
10718		}
10719		return nil, &googleapi.Error{
10720			Code:   res.StatusCode,
10721			Header: res.Header,
10722		}
10723	}
10724	if err != nil {
10725		return nil, err
10726	}
10727	defer googleapi.CloseBody(res)
10728	if err := googleapi.CheckResponse(res); err != nil {
10729		return nil, err
10730	}
10731	ret := &GoogleCloudApigeeV1SyncAuthorization{
10732		ServerResponse: googleapi.ServerResponse{
10733			Header:         res.Header,
10734			HTTPStatusCode: res.StatusCode,
10735		},
10736	}
10737	target := &ret
10738	if err := gensupport.DecodeResponse(target, res); err != nil {
10739		return nil, err
10740	}
10741	return ret, nil
10742	// {
10743	//   "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.",
10744	//   "flatPath": "v1/organizations/{organizationsId}:getSyncAuthorization",
10745	//   "httpMethod": "POST",
10746	//   "id": "apigee.organizations.getSyncAuthorization",
10747	//   "parameterOrder": [
10748	//     "name"
10749	//   ],
10750	//   "parameters": {
10751	//     "name": {
10752	//       "description": "Required. Name of the Apigee organization. Use the following structure in your request: `organizations/{org}`",
10753	//       "location": "path",
10754	//       "pattern": "^organizations/[^/]+$",
10755	//       "required": true,
10756	//       "type": "string"
10757	//     }
10758	//   },
10759	//   "path": "v1/{+name}:getSyncAuthorization",
10760	//   "request": {
10761	//     "$ref": "GoogleCloudApigeeV1GetSyncAuthorizationRequest"
10762	//   },
10763	//   "response": {
10764	//     "$ref": "GoogleCloudApigeeV1SyncAuthorization"
10765	//   },
10766	//   "scopes": [
10767	//     "https://www.googleapis.com/auth/cloud-platform"
10768	//   ]
10769	// }
10770
10771}
10772
10773// method id "apigee.organizations.list":
10774
10775type OrganizationsListCall struct {
10776	s            *Service
10777	parent       string
10778	urlParams_   gensupport.URLParams
10779	ifNoneMatch_ string
10780	ctx_         context.Context
10781	header_      http.Header
10782}
10783
10784// List: Lists the Apigee organizations and associated GCP projects that
10785// you have permission to access. See Understanding organizations
10786// (https://cloud.google.com/apigee/docs/api-platform/fundamentals/organization-structure).
10787//
10788// - parent: Use the following structure in your request:
10789//   `organizations`.
10790func (r *OrganizationsService) List(parent string) *OrganizationsListCall {
10791	c := &OrganizationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10792	c.parent = parent
10793	return c
10794}
10795
10796// Fields allows partial responses to be retrieved. See
10797// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10798// for more information.
10799func (c *OrganizationsListCall) Fields(s ...googleapi.Field) *OrganizationsListCall {
10800	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10801	return c
10802}
10803
10804// IfNoneMatch sets the optional parameter which makes the operation
10805// fail if the object's ETag matches the given value. This is useful for
10806// getting updates only after the object has changed since the last
10807// request. Use googleapi.IsNotModified to check whether the response
10808// error from Do is the result of In-None-Match.
10809func (c *OrganizationsListCall) IfNoneMatch(entityTag string) *OrganizationsListCall {
10810	c.ifNoneMatch_ = entityTag
10811	return c
10812}
10813
10814// Context sets the context to be used in this call's Do method. Any
10815// pending HTTP request will be aborted if the provided context is
10816// canceled.
10817func (c *OrganizationsListCall) Context(ctx context.Context) *OrganizationsListCall {
10818	c.ctx_ = ctx
10819	return c
10820}
10821
10822// Header returns an http.Header that can be modified by the caller to
10823// add HTTP headers to the request.
10824func (c *OrganizationsListCall) Header() http.Header {
10825	if c.header_ == nil {
10826		c.header_ = make(http.Header)
10827	}
10828	return c.header_
10829}
10830
10831func (c *OrganizationsListCall) doRequest(alt string) (*http.Response, error) {
10832	reqHeaders := make(http.Header)
10833	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
10834	for k, v := range c.header_ {
10835		reqHeaders[k] = v
10836	}
10837	reqHeaders.Set("User-Agent", c.s.userAgent())
10838	if c.ifNoneMatch_ != "" {
10839		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10840	}
10841	var body io.Reader = nil
10842	c.urlParams_.Set("alt", alt)
10843	c.urlParams_.Set("prettyPrint", "false")
10844	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}")
10845	urls += "?" + c.urlParams_.Encode()
10846	req, err := http.NewRequest("GET", urls, body)
10847	if err != nil {
10848		return nil, err
10849	}
10850	req.Header = reqHeaders
10851	googleapi.Expand(req.URL, map[string]string{
10852		"parent": c.parent,
10853	})
10854	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10855}
10856
10857// Do executes the "apigee.organizations.list" call.
10858// Exactly one of *GoogleCloudApigeeV1ListOrganizationsResponse or error
10859// will be non-nil. Any non-2xx status code is an error. Response
10860// headers are in either
10861// *GoogleCloudApigeeV1ListOrganizationsResponse.ServerResponse.Header
10862// or (if a response was returned at all) in
10863// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
10864// whether the returned error was because http.StatusNotModified was
10865// returned.
10866func (c *OrganizationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListOrganizationsResponse, error) {
10867	gensupport.SetOptions(c.urlParams_, opts...)
10868	res, err := c.doRequest("json")
10869	if res != nil && res.StatusCode == http.StatusNotModified {
10870		if res.Body != nil {
10871			res.Body.Close()
10872		}
10873		return nil, &googleapi.Error{
10874			Code:   res.StatusCode,
10875			Header: res.Header,
10876		}
10877	}
10878	if err != nil {
10879		return nil, err
10880	}
10881	defer googleapi.CloseBody(res)
10882	if err := googleapi.CheckResponse(res); err != nil {
10883		return nil, err
10884	}
10885	ret := &GoogleCloudApigeeV1ListOrganizationsResponse{
10886		ServerResponse: googleapi.ServerResponse{
10887			Header:         res.Header,
10888			HTTPStatusCode: res.StatusCode,
10889		},
10890	}
10891	target := &ret
10892	if err := gensupport.DecodeResponse(target, res); err != nil {
10893		return nil, err
10894	}
10895	return ret, nil
10896	// {
10897	//   "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).",
10898	//   "flatPath": "v1/organizations",
10899	//   "httpMethod": "GET",
10900	//   "id": "apigee.organizations.list",
10901	//   "parameterOrder": [
10902	//     "parent"
10903	//   ],
10904	//   "parameters": {
10905	//     "parent": {
10906	//       "description": "Required. Use the following structure in your request: `organizations`",
10907	//       "location": "path",
10908	//       "pattern": "^organizations$",
10909	//       "required": true,
10910	//       "type": "string"
10911	//     }
10912	//   },
10913	//   "path": "v1/{+parent}",
10914	//   "response": {
10915	//     "$ref": "GoogleCloudApigeeV1ListOrganizationsResponse"
10916	//   },
10917	//   "scopes": [
10918	//     "https://www.googleapis.com/auth/cloud-platform"
10919	//   ]
10920	// }
10921
10922}
10923
10924// method id "apigee.organizations.setAddons":
10925
10926type OrganizationsSetAddonsCall struct {
10927	s                                   *Service
10928	org                                 string
10929	googlecloudapigeev1setaddonsrequest *GoogleCloudApigeeV1SetAddonsRequest
10930	urlParams_                          gensupport.URLParams
10931	ctx_                                context.Context
10932	header_                             http.Header
10933}
10934
10935// SetAddons: Configures the add-ons for the Apigee organization. The
10936// existing add-on configuration will be fully replaced.
10937//
10938// - org: Name of the organization. Use the following structure in your
10939//   request: `organizations/{org}`.
10940func (r *OrganizationsService) SetAddons(org string, googlecloudapigeev1setaddonsrequest *GoogleCloudApigeeV1SetAddonsRequest) *OrganizationsSetAddonsCall {
10941	c := &OrganizationsSetAddonsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10942	c.org = org
10943	c.googlecloudapigeev1setaddonsrequest = googlecloudapigeev1setaddonsrequest
10944	return c
10945}
10946
10947// Fields allows partial responses to be retrieved. See
10948// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10949// for more information.
10950func (c *OrganizationsSetAddonsCall) Fields(s ...googleapi.Field) *OrganizationsSetAddonsCall {
10951	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10952	return c
10953}
10954
10955// Context sets the context to be used in this call's Do method. Any
10956// pending HTTP request will be aborted if the provided context is
10957// canceled.
10958func (c *OrganizationsSetAddonsCall) Context(ctx context.Context) *OrganizationsSetAddonsCall {
10959	c.ctx_ = ctx
10960	return c
10961}
10962
10963// Header returns an http.Header that can be modified by the caller to
10964// add HTTP headers to the request.
10965func (c *OrganizationsSetAddonsCall) Header() http.Header {
10966	if c.header_ == nil {
10967		c.header_ = make(http.Header)
10968	}
10969	return c.header_
10970}
10971
10972func (c *OrganizationsSetAddonsCall) doRequest(alt string) (*http.Response, error) {
10973	reqHeaders := make(http.Header)
10974	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
10975	for k, v := range c.header_ {
10976		reqHeaders[k] = v
10977	}
10978	reqHeaders.Set("User-Agent", c.s.userAgent())
10979	var body io.Reader = nil
10980	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1setaddonsrequest)
10981	if err != nil {
10982		return nil, err
10983	}
10984	reqHeaders.Set("Content-Type", "application/json")
10985	c.urlParams_.Set("alt", alt)
10986	c.urlParams_.Set("prettyPrint", "false")
10987	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+org}:setAddons")
10988	urls += "?" + c.urlParams_.Encode()
10989	req, err := http.NewRequest("POST", urls, body)
10990	if err != nil {
10991		return nil, err
10992	}
10993	req.Header = reqHeaders
10994	googleapi.Expand(req.URL, map[string]string{
10995		"org": c.org,
10996	})
10997	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10998}
10999
11000// Do executes the "apigee.organizations.setAddons" call.
11001// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
11002// Any non-2xx status code is an error. Response headers are in either
11003// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
11004// was returned at all) in error.(*googleapi.Error).Header. Use
11005// googleapi.IsNotModified to check whether the returned error was
11006// because http.StatusNotModified was returned.
11007func (c *OrganizationsSetAddonsCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
11008	gensupport.SetOptions(c.urlParams_, opts...)
11009	res, err := c.doRequest("json")
11010	if res != nil && res.StatusCode == http.StatusNotModified {
11011		if res.Body != nil {
11012			res.Body.Close()
11013		}
11014		return nil, &googleapi.Error{
11015			Code:   res.StatusCode,
11016			Header: res.Header,
11017		}
11018	}
11019	if err != nil {
11020		return nil, err
11021	}
11022	defer googleapi.CloseBody(res)
11023	if err := googleapi.CheckResponse(res); err != nil {
11024		return nil, err
11025	}
11026	ret := &GoogleLongrunningOperation{
11027		ServerResponse: googleapi.ServerResponse{
11028			Header:         res.Header,
11029			HTTPStatusCode: res.StatusCode,
11030		},
11031	}
11032	target := &ret
11033	if err := gensupport.DecodeResponse(target, res); err != nil {
11034		return nil, err
11035	}
11036	return ret, nil
11037	// {
11038	//   "description": "Configures the add-ons for the Apigee organization. The existing add-on configuration will be fully replaced.",
11039	//   "flatPath": "v1/organizations/{organizationsId}:setAddons",
11040	//   "httpMethod": "POST",
11041	//   "id": "apigee.organizations.setAddons",
11042	//   "parameterOrder": [
11043	//     "org"
11044	//   ],
11045	//   "parameters": {
11046	//     "org": {
11047	//       "description": "Required. Name of the organization. Use the following structure in your request: `organizations/{org}`",
11048	//       "location": "path",
11049	//       "pattern": "^organizations/[^/]+$",
11050	//       "required": true,
11051	//       "type": "string"
11052	//     }
11053	//   },
11054	//   "path": "v1/{+org}:setAddons",
11055	//   "request": {
11056	//     "$ref": "GoogleCloudApigeeV1SetAddonsRequest"
11057	//   },
11058	//   "response": {
11059	//     "$ref": "GoogleLongrunningOperation"
11060	//   },
11061	//   "scopes": [
11062	//     "https://www.googleapis.com/auth/cloud-platform"
11063	//   ]
11064	// }
11065
11066}
11067
11068// method id "apigee.organizations.setSyncAuthorization":
11069
11070type OrganizationsSetSyncAuthorizationCall struct {
11071	s                                    *Service
11072	name                                 string
11073	googlecloudapigeev1syncauthorization *GoogleCloudApigeeV1SyncAuthorization
11074	urlParams_                           gensupport.URLParams
11075	ctx_                                 context.Context
11076	header_                              http.Header
11077}
11078
11079// SetSyncAuthorization: Sets the permissions required to allow the
11080// Synchronizer to download environment data from the control plane. You
11081// must call this API to enable proper functioning of hybrid. Pass the
11082// ETag when calling `setSyncAuthorization` to ensure that you are
11083// updating the correct version. To get an ETag, call
11084// getSyncAuthorization (getSyncAuthorization). If you don't pass the
11085// ETag in the call to `setSyncAuthorization`, then the existing
11086// authorization is overwritten indiscriminately. For more information,
11087// see Configure the Synchronizer
11088// (https://cloud.google.com/apigee/docs/hybrid/latest/synchronizer-access).
11089// **Note**: Available to Apigee hybrid only.
11090//
11091// - name: Name of the Apigee organization. Use the following structure
11092//   in your request: `organizations/{org}`.
11093func (r *OrganizationsService) SetSyncAuthorization(name string, googlecloudapigeev1syncauthorization *GoogleCloudApigeeV1SyncAuthorization) *OrganizationsSetSyncAuthorizationCall {
11094	c := &OrganizationsSetSyncAuthorizationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11095	c.name = name
11096	c.googlecloudapigeev1syncauthorization = googlecloudapigeev1syncauthorization
11097	return c
11098}
11099
11100// Fields allows partial responses to be retrieved. See
11101// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11102// for more information.
11103func (c *OrganizationsSetSyncAuthorizationCall) Fields(s ...googleapi.Field) *OrganizationsSetSyncAuthorizationCall {
11104	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11105	return c
11106}
11107
11108// Context sets the context to be used in this call's Do method. Any
11109// pending HTTP request will be aborted if the provided context is
11110// canceled.
11111func (c *OrganizationsSetSyncAuthorizationCall) Context(ctx context.Context) *OrganizationsSetSyncAuthorizationCall {
11112	c.ctx_ = ctx
11113	return c
11114}
11115
11116// Header returns an http.Header that can be modified by the caller to
11117// add HTTP headers to the request.
11118func (c *OrganizationsSetSyncAuthorizationCall) Header() http.Header {
11119	if c.header_ == nil {
11120		c.header_ = make(http.Header)
11121	}
11122	return c.header_
11123}
11124
11125func (c *OrganizationsSetSyncAuthorizationCall) doRequest(alt string) (*http.Response, error) {
11126	reqHeaders := make(http.Header)
11127	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
11128	for k, v := range c.header_ {
11129		reqHeaders[k] = v
11130	}
11131	reqHeaders.Set("User-Agent", c.s.userAgent())
11132	var body io.Reader = nil
11133	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1syncauthorization)
11134	if err != nil {
11135		return nil, err
11136	}
11137	reqHeaders.Set("Content-Type", "application/json")
11138	c.urlParams_.Set("alt", alt)
11139	c.urlParams_.Set("prettyPrint", "false")
11140	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:setSyncAuthorization")
11141	urls += "?" + c.urlParams_.Encode()
11142	req, err := http.NewRequest("POST", urls, body)
11143	if err != nil {
11144		return nil, err
11145	}
11146	req.Header = reqHeaders
11147	googleapi.Expand(req.URL, map[string]string{
11148		"name": c.name,
11149	})
11150	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11151}
11152
11153// Do executes the "apigee.organizations.setSyncAuthorization" call.
11154// Exactly one of *GoogleCloudApigeeV1SyncAuthorization or error will be
11155// non-nil. Any non-2xx status code is an error. Response headers are in
11156// either *GoogleCloudApigeeV1SyncAuthorization.ServerResponse.Header or
11157// (if a response was returned at all) in
11158// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
11159// whether the returned error was because http.StatusNotModified was
11160// returned.
11161func (c *OrganizationsSetSyncAuthorizationCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SyncAuthorization, error) {
11162	gensupport.SetOptions(c.urlParams_, opts...)
11163	res, err := c.doRequest("json")
11164	if res != nil && res.StatusCode == http.StatusNotModified {
11165		if res.Body != nil {
11166			res.Body.Close()
11167		}
11168		return nil, &googleapi.Error{
11169			Code:   res.StatusCode,
11170			Header: res.Header,
11171		}
11172	}
11173	if err != nil {
11174		return nil, err
11175	}
11176	defer googleapi.CloseBody(res)
11177	if err := googleapi.CheckResponse(res); err != nil {
11178		return nil, err
11179	}
11180	ret := &GoogleCloudApigeeV1SyncAuthorization{
11181		ServerResponse: googleapi.ServerResponse{
11182			Header:         res.Header,
11183			HTTPStatusCode: res.StatusCode,
11184		},
11185	}
11186	target := &ret
11187	if err := gensupport.DecodeResponse(target, res); err != nil {
11188		return nil, err
11189	}
11190	return ret, nil
11191	// {
11192	//   "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.",
11193	//   "flatPath": "v1/organizations/{organizationsId}:setSyncAuthorization",
11194	//   "httpMethod": "POST",
11195	//   "id": "apigee.organizations.setSyncAuthorization",
11196	//   "parameterOrder": [
11197	//     "name"
11198	//   ],
11199	//   "parameters": {
11200	//     "name": {
11201	//       "description": "Required. Name of the Apigee organization. Use the following structure in your request: `organizations/{org}`",
11202	//       "location": "path",
11203	//       "pattern": "^organizations/[^/]+$",
11204	//       "required": true,
11205	//       "type": "string"
11206	//     }
11207	//   },
11208	//   "path": "v1/{+name}:setSyncAuthorization",
11209	//   "request": {
11210	//     "$ref": "GoogleCloudApigeeV1SyncAuthorization"
11211	//   },
11212	//   "response": {
11213	//     "$ref": "GoogleCloudApigeeV1SyncAuthorization"
11214	//   },
11215	//   "scopes": [
11216	//     "https://www.googleapis.com/auth/cloud-platform"
11217	//   ]
11218	// }
11219
11220}
11221
11222// method id "apigee.organizations.update":
11223
11224type OrganizationsUpdateCall struct {
11225	s                               *Service
11226	name                            string
11227	googlecloudapigeev1organization *GoogleCloudApigeeV1Organization
11228	urlParams_                      gensupport.URLParams
11229	ctx_                            context.Context
11230	header_                         http.Header
11231}
11232
11233// Update: Updates the properties for an Apigee organization. No other
11234// fields in the organization profile will be updated.
11235//
11236// - name: Apigee organization name in the following format:
11237//   `organizations/{org}`.
11238func (r *OrganizationsService) Update(name string, googlecloudapigeev1organization *GoogleCloudApigeeV1Organization) *OrganizationsUpdateCall {
11239	c := &OrganizationsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11240	c.name = name
11241	c.googlecloudapigeev1organization = googlecloudapigeev1organization
11242	return c
11243}
11244
11245// Fields allows partial responses to be retrieved. See
11246// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11247// for more information.
11248func (c *OrganizationsUpdateCall) Fields(s ...googleapi.Field) *OrganizationsUpdateCall {
11249	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11250	return c
11251}
11252
11253// Context sets the context to be used in this call's Do method. Any
11254// pending HTTP request will be aborted if the provided context is
11255// canceled.
11256func (c *OrganizationsUpdateCall) Context(ctx context.Context) *OrganizationsUpdateCall {
11257	c.ctx_ = ctx
11258	return c
11259}
11260
11261// Header returns an http.Header that can be modified by the caller to
11262// add HTTP headers to the request.
11263func (c *OrganizationsUpdateCall) Header() http.Header {
11264	if c.header_ == nil {
11265		c.header_ = make(http.Header)
11266	}
11267	return c.header_
11268}
11269
11270func (c *OrganizationsUpdateCall) doRequest(alt string) (*http.Response, error) {
11271	reqHeaders := make(http.Header)
11272	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
11273	for k, v := range c.header_ {
11274		reqHeaders[k] = v
11275	}
11276	reqHeaders.Set("User-Agent", c.s.userAgent())
11277	var body io.Reader = nil
11278	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1organization)
11279	if err != nil {
11280		return nil, err
11281	}
11282	reqHeaders.Set("Content-Type", "application/json")
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("PUT", 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.update" call.
11299// Exactly one of *GoogleCloudApigeeV1Organization or error will be
11300// non-nil. Any non-2xx status code is an error. Response headers are in
11301// either *GoogleCloudApigeeV1Organization.ServerResponse.Header or (if
11302// a response was returned at all) in error.(*googleapi.Error).Header.
11303// Use googleapi.IsNotModified to check whether the returned error was
11304// because http.StatusNotModified was returned.
11305func (c *OrganizationsUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Organization, 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 := &GoogleCloudApigeeV1Organization{
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": "Updates the properties for an Apigee organization. No other fields in the organization profile will be updated.",
11337	//   "flatPath": "v1/organizations/{organizationsId}",
11338	//   "httpMethod": "PUT",
11339	//   "id": "apigee.organizations.update",
11340	//   "parameterOrder": [
11341	//     "name"
11342	//   ],
11343	//   "parameters": {
11344	//     "name": {
11345	//       "description": "Required. Apigee organization name in the following format: `organizations/{org}`",
11346	//       "location": "path",
11347	//       "pattern": "^organizations/[^/]+$",
11348	//       "required": true,
11349	//       "type": "string"
11350	//     }
11351	//   },
11352	//   "path": "v1/{+name}",
11353	//   "request": {
11354	//     "$ref": "GoogleCloudApigeeV1Organization"
11355	//   },
11356	//   "response": {
11357	//     "$ref": "GoogleCloudApigeeV1Organization"
11358	//   },
11359	//   "scopes": [
11360	//     "https://www.googleapis.com/auth/cloud-platform"
11361	//   ]
11362	// }
11363
11364}
11365
11366// method id "apigee.organizations.analytics.datastores.create":
11367
11368type OrganizationsAnalyticsDatastoresCreateCall struct {
11369	s                            *Service
11370	parent                       string
11371	googlecloudapigeev1datastore *GoogleCloudApigeeV1Datastore
11372	urlParams_                   gensupport.URLParams
11373	ctx_                         context.Context
11374	header_                      http.Header
11375}
11376
11377// Create: Create a Datastore for an org
11378//
11379// - parent: The parent organization name. Must be of the form
11380//   `organizations/{org}`.
11381func (r *OrganizationsAnalyticsDatastoresService) Create(parent string, googlecloudapigeev1datastore *GoogleCloudApigeeV1Datastore) *OrganizationsAnalyticsDatastoresCreateCall {
11382	c := &OrganizationsAnalyticsDatastoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11383	c.parent = parent
11384	c.googlecloudapigeev1datastore = googlecloudapigeev1datastore
11385	return c
11386}
11387
11388// Fields allows partial responses to be retrieved. See
11389// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11390// for more information.
11391func (c *OrganizationsAnalyticsDatastoresCreateCall) Fields(s ...googleapi.Field) *OrganizationsAnalyticsDatastoresCreateCall {
11392	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11393	return c
11394}
11395
11396// Context sets the context to be used in this call's Do method. Any
11397// pending HTTP request will be aborted if the provided context is
11398// canceled.
11399func (c *OrganizationsAnalyticsDatastoresCreateCall) Context(ctx context.Context) *OrganizationsAnalyticsDatastoresCreateCall {
11400	c.ctx_ = ctx
11401	return c
11402}
11403
11404// Header returns an http.Header that can be modified by the caller to
11405// add HTTP headers to the request.
11406func (c *OrganizationsAnalyticsDatastoresCreateCall) Header() http.Header {
11407	if c.header_ == nil {
11408		c.header_ = make(http.Header)
11409	}
11410	return c.header_
11411}
11412
11413func (c *OrganizationsAnalyticsDatastoresCreateCall) doRequest(alt string) (*http.Response, error) {
11414	reqHeaders := make(http.Header)
11415	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
11416	for k, v := range c.header_ {
11417		reqHeaders[k] = v
11418	}
11419	reqHeaders.Set("User-Agent", c.s.userAgent())
11420	var body io.Reader = nil
11421	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1datastore)
11422	if err != nil {
11423		return nil, err
11424	}
11425	reqHeaders.Set("Content-Type", "application/json")
11426	c.urlParams_.Set("alt", alt)
11427	c.urlParams_.Set("prettyPrint", "false")
11428	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/analytics/datastores")
11429	urls += "?" + c.urlParams_.Encode()
11430	req, err := http.NewRequest("POST", urls, body)
11431	if err != nil {
11432		return nil, err
11433	}
11434	req.Header = reqHeaders
11435	googleapi.Expand(req.URL, map[string]string{
11436		"parent": c.parent,
11437	})
11438	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11439}
11440
11441// Do executes the "apigee.organizations.analytics.datastores.create" call.
11442// Exactly one of *GoogleCloudApigeeV1Datastore or error will be
11443// non-nil. Any non-2xx status code is an error. Response headers are in
11444// either *GoogleCloudApigeeV1Datastore.ServerResponse.Header or (if a
11445// response was returned at all) in error.(*googleapi.Error).Header. Use
11446// googleapi.IsNotModified to check whether the returned error was
11447// because http.StatusNotModified was returned.
11448func (c *OrganizationsAnalyticsDatastoresCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Datastore, error) {
11449	gensupport.SetOptions(c.urlParams_, opts...)
11450	res, err := c.doRequest("json")
11451	if res != nil && res.StatusCode == http.StatusNotModified {
11452		if res.Body != nil {
11453			res.Body.Close()
11454		}
11455		return nil, &googleapi.Error{
11456			Code:   res.StatusCode,
11457			Header: res.Header,
11458		}
11459	}
11460	if err != nil {
11461		return nil, err
11462	}
11463	defer googleapi.CloseBody(res)
11464	if err := googleapi.CheckResponse(res); err != nil {
11465		return nil, err
11466	}
11467	ret := &GoogleCloudApigeeV1Datastore{
11468		ServerResponse: googleapi.ServerResponse{
11469			Header:         res.Header,
11470			HTTPStatusCode: res.StatusCode,
11471		},
11472	}
11473	target := &ret
11474	if err := gensupport.DecodeResponse(target, res); err != nil {
11475		return nil, err
11476	}
11477	return ret, nil
11478	// {
11479	//   "description": "Create a Datastore for an org",
11480	//   "flatPath": "v1/organizations/{organizationsId}/analytics/datastores",
11481	//   "httpMethod": "POST",
11482	//   "id": "apigee.organizations.analytics.datastores.create",
11483	//   "parameterOrder": [
11484	//     "parent"
11485	//   ],
11486	//   "parameters": {
11487	//     "parent": {
11488	//       "description": "Required. The parent organization name. Must be of the form `organizations/{org}`.",
11489	//       "location": "path",
11490	//       "pattern": "^organizations/[^/]+$",
11491	//       "required": true,
11492	//       "type": "string"
11493	//     }
11494	//   },
11495	//   "path": "v1/{+parent}/analytics/datastores",
11496	//   "request": {
11497	//     "$ref": "GoogleCloudApigeeV1Datastore"
11498	//   },
11499	//   "response": {
11500	//     "$ref": "GoogleCloudApigeeV1Datastore"
11501	//   },
11502	//   "scopes": [
11503	//     "https://www.googleapis.com/auth/cloud-platform"
11504	//   ]
11505	// }
11506
11507}
11508
11509// method id "apigee.organizations.analytics.datastores.delete":
11510
11511type OrganizationsAnalyticsDatastoresDeleteCall struct {
11512	s          *Service
11513	name       string
11514	urlParams_ gensupport.URLParams
11515	ctx_       context.Context
11516	header_    http.Header
11517}
11518
11519// Delete: Delete a Datastore from an org.
11520//
11521// - name: Resource name of the Datastore to be deleted. Must be of the
11522//   form `organizations/{org}/analytics/datastores/{datastoreId}`.
11523func (r *OrganizationsAnalyticsDatastoresService) Delete(name string) *OrganizationsAnalyticsDatastoresDeleteCall {
11524	c := &OrganizationsAnalyticsDatastoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11525	c.name = name
11526	return c
11527}
11528
11529// Fields allows partial responses to be retrieved. See
11530// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11531// for more information.
11532func (c *OrganizationsAnalyticsDatastoresDeleteCall) Fields(s ...googleapi.Field) *OrganizationsAnalyticsDatastoresDeleteCall {
11533	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11534	return c
11535}
11536
11537// Context sets the context to be used in this call's Do method. Any
11538// pending HTTP request will be aborted if the provided context is
11539// canceled.
11540func (c *OrganizationsAnalyticsDatastoresDeleteCall) Context(ctx context.Context) *OrganizationsAnalyticsDatastoresDeleteCall {
11541	c.ctx_ = ctx
11542	return c
11543}
11544
11545// Header returns an http.Header that can be modified by the caller to
11546// add HTTP headers to the request.
11547func (c *OrganizationsAnalyticsDatastoresDeleteCall) Header() http.Header {
11548	if c.header_ == nil {
11549		c.header_ = make(http.Header)
11550	}
11551	return c.header_
11552}
11553
11554func (c *OrganizationsAnalyticsDatastoresDeleteCall) doRequest(alt string) (*http.Response, error) {
11555	reqHeaders := make(http.Header)
11556	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
11557	for k, v := range c.header_ {
11558		reqHeaders[k] = v
11559	}
11560	reqHeaders.Set("User-Agent", c.s.userAgent())
11561	var body io.Reader = nil
11562	c.urlParams_.Set("alt", alt)
11563	c.urlParams_.Set("prettyPrint", "false")
11564	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
11565	urls += "?" + c.urlParams_.Encode()
11566	req, err := http.NewRequest("DELETE", urls, body)
11567	if err != nil {
11568		return nil, err
11569	}
11570	req.Header = reqHeaders
11571	googleapi.Expand(req.URL, map[string]string{
11572		"name": c.name,
11573	})
11574	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11575}
11576
11577// Do executes the "apigee.organizations.analytics.datastores.delete" call.
11578// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
11579// non-2xx status code is an error. Response headers are in either
11580// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
11581// returned at all) in error.(*googleapi.Error).Header. Use
11582// googleapi.IsNotModified to check whether the returned error was
11583// because http.StatusNotModified was returned.
11584func (c *OrganizationsAnalyticsDatastoresDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
11585	gensupport.SetOptions(c.urlParams_, opts...)
11586	res, err := c.doRequest("json")
11587	if res != nil && res.StatusCode == http.StatusNotModified {
11588		if res.Body != nil {
11589			res.Body.Close()
11590		}
11591		return nil, &googleapi.Error{
11592			Code:   res.StatusCode,
11593			Header: res.Header,
11594		}
11595	}
11596	if err != nil {
11597		return nil, err
11598	}
11599	defer googleapi.CloseBody(res)
11600	if err := googleapi.CheckResponse(res); err != nil {
11601		return nil, err
11602	}
11603	ret := &GoogleProtobufEmpty{
11604		ServerResponse: googleapi.ServerResponse{
11605			Header:         res.Header,
11606			HTTPStatusCode: res.StatusCode,
11607		},
11608	}
11609	target := &ret
11610	if err := gensupport.DecodeResponse(target, res); err != nil {
11611		return nil, err
11612	}
11613	return ret, nil
11614	// {
11615	//   "description": "Delete a Datastore from an org.",
11616	//   "flatPath": "v1/organizations/{organizationsId}/analytics/datastores/{datastoresId}",
11617	//   "httpMethod": "DELETE",
11618	//   "id": "apigee.organizations.analytics.datastores.delete",
11619	//   "parameterOrder": [
11620	//     "name"
11621	//   ],
11622	//   "parameters": {
11623	//     "name": {
11624	//       "description": "Required. Resource name of the Datastore to be deleted. Must be of the form `organizations/{org}/analytics/datastores/{datastoreId}`",
11625	//       "location": "path",
11626	//       "pattern": "^organizations/[^/]+/analytics/datastores/[^/]+$",
11627	//       "required": true,
11628	//       "type": "string"
11629	//     }
11630	//   },
11631	//   "path": "v1/{+name}",
11632	//   "response": {
11633	//     "$ref": "GoogleProtobufEmpty"
11634	//   },
11635	//   "scopes": [
11636	//     "https://www.googleapis.com/auth/cloud-platform"
11637	//   ]
11638	// }
11639
11640}
11641
11642// method id "apigee.organizations.analytics.datastores.get":
11643
11644type OrganizationsAnalyticsDatastoresGetCall struct {
11645	s            *Service
11646	name         string
11647	urlParams_   gensupport.URLParams
11648	ifNoneMatch_ string
11649	ctx_         context.Context
11650	header_      http.Header
11651}
11652
11653// Get: Get a Datastore
11654//
11655// - name: Resource name of the Datastore to be get. Must be of the form
11656//   `organizations/{org}/analytics/datastores/{datastoreId}`.
11657func (r *OrganizationsAnalyticsDatastoresService) Get(name string) *OrganizationsAnalyticsDatastoresGetCall {
11658	c := &OrganizationsAnalyticsDatastoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11659	c.name = name
11660	return c
11661}
11662
11663// Fields allows partial responses to be retrieved. See
11664// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11665// for more information.
11666func (c *OrganizationsAnalyticsDatastoresGetCall) Fields(s ...googleapi.Field) *OrganizationsAnalyticsDatastoresGetCall {
11667	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11668	return c
11669}
11670
11671// IfNoneMatch sets the optional parameter which makes the operation
11672// fail if the object's ETag matches the given value. This is useful for
11673// getting updates only after the object has changed since the last
11674// request. Use googleapi.IsNotModified to check whether the response
11675// error from Do is the result of In-None-Match.
11676func (c *OrganizationsAnalyticsDatastoresGetCall) IfNoneMatch(entityTag string) *OrganizationsAnalyticsDatastoresGetCall {
11677	c.ifNoneMatch_ = entityTag
11678	return c
11679}
11680
11681// Context sets the context to be used in this call's Do method. Any
11682// pending HTTP request will be aborted if the provided context is
11683// canceled.
11684func (c *OrganizationsAnalyticsDatastoresGetCall) Context(ctx context.Context) *OrganizationsAnalyticsDatastoresGetCall {
11685	c.ctx_ = ctx
11686	return c
11687}
11688
11689// Header returns an http.Header that can be modified by the caller to
11690// add HTTP headers to the request.
11691func (c *OrganizationsAnalyticsDatastoresGetCall) Header() http.Header {
11692	if c.header_ == nil {
11693		c.header_ = make(http.Header)
11694	}
11695	return c.header_
11696}
11697
11698func (c *OrganizationsAnalyticsDatastoresGetCall) doRequest(alt string) (*http.Response, error) {
11699	reqHeaders := make(http.Header)
11700	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
11701	for k, v := range c.header_ {
11702		reqHeaders[k] = v
11703	}
11704	reqHeaders.Set("User-Agent", c.s.userAgent())
11705	if c.ifNoneMatch_ != "" {
11706		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11707	}
11708	var body io.Reader = nil
11709	c.urlParams_.Set("alt", alt)
11710	c.urlParams_.Set("prettyPrint", "false")
11711	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
11712	urls += "?" + c.urlParams_.Encode()
11713	req, err := http.NewRequest("GET", urls, body)
11714	if err != nil {
11715		return nil, err
11716	}
11717	req.Header = reqHeaders
11718	googleapi.Expand(req.URL, map[string]string{
11719		"name": c.name,
11720	})
11721	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11722}
11723
11724// Do executes the "apigee.organizations.analytics.datastores.get" call.
11725// Exactly one of *GoogleCloudApigeeV1Datastore or error will be
11726// non-nil. Any non-2xx status code is an error. Response headers are in
11727// either *GoogleCloudApigeeV1Datastore.ServerResponse.Header or (if a
11728// response was returned at all) in error.(*googleapi.Error).Header. Use
11729// googleapi.IsNotModified to check whether the returned error was
11730// because http.StatusNotModified was returned.
11731func (c *OrganizationsAnalyticsDatastoresGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Datastore, error) {
11732	gensupport.SetOptions(c.urlParams_, opts...)
11733	res, err := c.doRequest("json")
11734	if res != nil && res.StatusCode == http.StatusNotModified {
11735		if res.Body != nil {
11736			res.Body.Close()
11737		}
11738		return nil, &googleapi.Error{
11739			Code:   res.StatusCode,
11740			Header: res.Header,
11741		}
11742	}
11743	if err != nil {
11744		return nil, err
11745	}
11746	defer googleapi.CloseBody(res)
11747	if err := googleapi.CheckResponse(res); err != nil {
11748		return nil, err
11749	}
11750	ret := &GoogleCloudApigeeV1Datastore{
11751		ServerResponse: googleapi.ServerResponse{
11752			Header:         res.Header,
11753			HTTPStatusCode: res.StatusCode,
11754		},
11755	}
11756	target := &ret
11757	if err := gensupport.DecodeResponse(target, res); err != nil {
11758		return nil, err
11759	}
11760	return ret, nil
11761	// {
11762	//   "description": "Get a Datastore",
11763	//   "flatPath": "v1/organizations/{organizationsId}/analytics/datastores/{datastoresId}",
11764	//   "httpMethod": "GET",
11765	//   "id": "apigee.organizations.analytics.datastores.get",
11766	//   "parameterOrder": [
11767	//     "name"
11768	//   ],
11769	//   "parameters": {
11770	//     "name": {
11771	//       "description": "Required. Resource name of the Datastore to be get. Must be of the form `organizations/{org}/analytics/datastores/{datastoreId}`",
11772	//       "location": "path",
11773	//       "pattern": "^organizations/[^/]+/analytics/datastores/[^/]+$",
11774	//       "required": true,
11775	//       "type": "string"
11776	//     }
11777	//   },
11778	//   "path": "v1/{+name}",
11779	//   "response": {
11780	//     "$ref": "GoogleCloudApigeeV1Datastore"
11781	//   },
11782	//   "scopes": [
11783	//     "https://www.googleapis.com/auth/cloud-platform"
11784	//   ]
11785	// }
11786
11787}
11788
11789// method id "apigee.organizations.analytics.datastores.list":
11790
11791type OrganizationsAnalyticsDatastoresListCall struct {
11792	s            *Service
11793	parent       string
11794	urlParams_   gensupport.URLParams
11795	ifNoneMatch_ string
11796	ctx_         context.Context
11797	header_      http.Header
11798}
11799
11800// List: List Datastores
11801//
11802// - parent: The parent organization name. Must be of the form
11803//   `organizations/{org}`.
11804func (r *OrganizationsAnalyticsDatastoresService) List(parent string) *OrganizationsAnalyticsDatastoresListCall {
11805	c := &OrganizationsAnalyticsDatastoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11806	c.parent = parent
11807	return c
11808}
11809
11810// TargetType sets the optional parameter "targetType": TargetType is
11811// used to fetch all Datastores that match the type
11812func (c *OrganizationsAnalyticsDatastoresListCall) TargetType(targetType string) *OrganizationsAnalyticsDatastoresListCall {
11813	c.urlParams_.Set("targetType", targetType)
11814	return c
11815}
11816
11817// Fields allows partial responses to be retrieved. See
11818// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11819// for more information.
11820func (c *OrganizationsAnalyticsDatastoresListCall) Fields(s ...googleapi.Field) *OrganizationsAnalyticsDatastoresListCall {
11821	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11822	return c
11823}
11824
11825// IfNoneMatch sets the optional parameter which makes the operation
11826// fail if the object's ETag matches the given value. This is useful for
11827// getting updates only after the object has changed since the last
11828// request. Use googleapi.IsNotModified to check whether the response
11829// error from Do is the result of In-None-Match.
11830func (c *OrganizationsAnalyticsDatastoresListCall) IfNoneMatch(entityTag string) *OrganizationsAnalyticsDatastoresListCall {
11831	c.ifNoneMatch_ = entityTag
11832	return c
11833}
11834
11835// Context sets the context to be used in this call's Do method. Any
11836// pending HTTP request will be aborted if the provided context is
11837// canceled.
11838func (c *OrganizationsAnalyticsDatastoresListCall) Context(ctx context.Context) *OrganizationsAnalyticsDatastoresListCall {
11839	c.ctx_ = ctx
11840	return c
11841}
11842
11843// Header returns an http.Header that can be modified by the caller to
11844// add HTTP headers to the request.
11845func (c *OrganizationsAnalyticsDatastoresListCall) Header() http.Header {
11846	if c.header_ == nil {
11847		c.header_ = make(http.Header)
11848	}
11849	return c.header_
11850}
11851
11852func (c *OrganizationsAnalyticsDatastoresListCall) doRequest(alt string) (*http.Response, error) {
11853	reqHeaders := make(http.Header)
11854	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
11855	for k, v := range c.header_ {
11856		reqHeaders[k] = v
11857	}
11858	reqHeaders.Set("User-Agent", c.s.userAgent())
11859	if c.ifNoneMatch_ != "" {
11860		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11861	}
11862	var body io.Reader = nil
11863	c.urlParams_.Set("alt", alt)
11864	c.urlParams_.Set("prettyPrint", "false")
11865	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/analytics/datastores")
11866	urls += "?" + c.urlParams_.Encode()
11867	req, err := http.NewRequest("GET", urls, body)
11868	if err != nil {
11869		return nil, err
11870	}
11871	req.Header = reqHeaders
11872	googleapi.Expand(req.URL, map[string]string{
11873		"parent": c.parent,
11874	})
11875	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11876}
11877
11878// Do executes the "apigee.organizations.analytics.datastores.list" call.
11879// Exactly one of *GoogleCloudApigeeV1ListDatastoresResponse or error
11880// will be non-nil. Any non-2xx status code is an error. Response
11881// headers are in either
11882// *GoogleCloudApigeeV1ListDatastoresResponse.ServerResponse.Header or
11883// (if a response was returned at all) in
11884// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
11885// whether the returned error was because http.StatusNotModified was
11886// returned.
11887func (c *OrganizationsAnalyticsDatastoresListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDatastoresResponse, error) {
11888	gensupport.SetOptions(c.urlParams_, opts...)
11889	res, err := c.doRequest("json")
11890	if res != nil && res.StatusCode == http.StatusNotModified {
11891		if res.Body != nil {
11892			res.Body.Close()
11893		}
11894		return nil, &googleapi.Error{
11895			Code:   res.StatusCode,
11896			Header: res.Header,
11897		}
11898	}
11899	if err != nil {
11900		return nil, err
11901	}
11902	defer googleapi.CloseBody(res)
11903	if err := googleapi.CheckResponse(res); err != nil {
11904		return nil, err
11905	}
11906	ret := &GoogleCloudApigeeV1ListDatastoresResponse{
11907		ServerResponse: googleapi.ServerResponse{
11908			Header:         res.Header,
11909			HTTPStatusCode: res.StatusCode,
11910		},
11911	}
11912	target := &ret
11913	if err := gensupport.DecodeResponse(target, res); err != nil {
11914		return nil, err
11915	}
11916	return ret, nil
11917	// {
11918	//   "description": "List Datastores",
11919	//   "flatPath": "v1/organizations/{organizationsId}/analytics/datastores",
11920	//   "httpMethod": "GET",
11921	//   "id": "apigee.organizations.analytics.datastores.list",
11922	//   "parameterOrder": [
11923	//     "parent"
11924	//   ],
11925	//   "parameters": {
11926	//     "parent": {
11927	//       "description": "Required. The parent organization name. Must be of the form `organizations/{org}`.",
11928	//       "location": "path",
11929	//       "pattern": "^organizations/[^/]+$",
11930	//       "required": true,
11931	//       "type": "string"
11932	//     },
11933	//     "targetType": {
11934	//       "description": "Optional. TargetType is used to fetch all Datastores that match the type",
11935	//       "location": "query",
11936	//       "type": "string"
11937	//     }
11938	//   },
11939	//   "path": "v1/{+parent}/analytics/datastores",
11940	//   "response": {
11941	//     "$ref": "GoogleCloudApigeeV1ListDatastoresResponse"
11942	//   },
11943	//   "scopes": [
11944	//     "https://www.googleapis.com/auth/cloud-platform"
11945	//   ]
11946	// }
11947
11948}
11949
11950// method id "apigee.organizations.analytics.datastores.test":
11951
11952type OrganizationsAnalyticsDatastoresTestCall struct {
11953	s                            *Service
11954	parent                       string
11955	googlecloudapigeev1datastore *GoogleCloudApigeeV1Datastore
11956	urlParams_                   gensupport.URLParams
11957	ctx_                         context.Context
11958	header_                      http.Header
11959}
11960
11961// Test: Test if Datastore configuration is correct. This includes
11962// checking if credentials provided by customer have required
11963// permissions in target destination storage
11964//
11965// - parent: The parent organization name Must be of the form
11966//   `organizations/{org}`.
11967func (r *OrganizationsAnalyticsDatastoresService) Test(parent string, googlecloudapigeev1datastore *GoogleCloudApigeeV1Datastore) *OrganizationsAnalyticsDatastoresTestCall {
11968	c := &OrganizationsAnalyticsDatastoresTestCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11969	c.parent = parent
11970	c.googlecloudapigeev1datastore = googlecloudapigeev1datastore
11971	return c
11972}
11973
11974// Fields allows partial responses to be retrieved. See
11975// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11976// for more information.
11977func (c *OrganizationsAnalyticsDatastoresTestCall) Fields(s ...googleapi.Field) *OrganizationsAnalyticsDatastoresTestCall {
11978	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11979	return c
11980}
11981
11982// Context sets the context to be used in this call's Do method. Any
11983// pending HTTP request will be aborted if the provided context is
11984// canceled.
11985func (c *OrganizationsAnalyticsDatastoresTestCall) Context(ctx context.Context) *OrganizationsAnalyticsDatastoresTestCall {
11986	c.ctx_ = ctx
11987	return c
11988}
11989
11990// Header returns an http.Header that can be modified by the caller to
11991// add HTTP headers to the request.
11992func (c *OrganizationsAnalyticsDatastoresTestCall) Header() http.Header {
11993	if c.header_ == nil {
11994		c.header_ = make(http.Header)
11995	}
11996	return c.header_
11997}
11998
11999func (c *OrganizationsAnalyticsDatastoresTestCall) doRequest(alt string) (*http.Response, error) {
12000	reqHeaders := make(http.Header)
12001	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
12002	for k, v := range c.header_ {
12003		reqHeaders[k] = v
12004	}
12005	reqHeaders.Set("User-Agent", c.s.userAgent())
12006	var body io.Reader = nil
12007	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1datastore)
12008	if err != nil {
12009		return nil, err
12010	}
12011	reqHeaders.Set("Content-Type", "application/json")
12012	c.urlParams_.Set("alt", alt)
12013	c.urlParams_.Set("prettyPrint", "false")
12014	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/analytics/datastores:test")
12015	urls += "?" + c.urlParams_.Encode()
12016	req, err := http.NewRequest("POST", urls, body)
12017	if err != nil {
12018		return nil, err
12019	}
12020	req.Header = reqHeaders
12021	googleapi.Expand(req.URL, map[string]string{
12022		"parent": c.parent,
12023	})
12024	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12025}
12026
12027// Do executes the "apigee.organizations.analytics.datastores.test" call.
12028// Exactly one of *GoogleCloudApigeeV1TestDatastoreResponse or error
12029// will be non-nil. Any non-2xx status code is an error. Response
12030// headers are in either
12031// *GoogleCloudApigeeV1TestDatastoreResponse.ServerResponse.Header or
12032// (if a response was returned at all) in
12033// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
12034// whether the returned error was because http.StatusNotModified was
12035// returned.
12036func (c *OrganizationsAnalyticsDatastoresTestCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TestDatastoreResponse, error) {
12037	gensupport.SetOptions(c.urlParams_, opts...)
12038	res, err := c.doRequest("json")
12039	if res != nil && res.StatusCode == http.StatusNotModified {
12040		if res.Body != nil {
12041			res.Body.Close()
12042		}
12043		return nil, &googleapi.Error{
12044			Code:   res.StatusCode,
12045			Header: res.Header,
12046		}
12047	}
12048	if err != nil {
12049		return nil, err
12050	}
12051	defer googleapi.CloseBody(res)
12052	if err := googleapi.CheckResponse(res); err != nil {
12053		return nil, err
12054	}
12055	ret := &GoogleCloudApigeeV1TestDatastoreResponse{
12056		ServerResponse: googleapi.ServerResponse{
12057			Header:         res.Header,
12058			HTTPStatusCode: res.StatusCode,
12059		},
12060	}
12061	target := &ret
12062	if err := gensupport.DecodeResponse(target, res); err != nil {
12063		return nil, err
12064	}
12065	return ret, nil
12066	// {
12067	//   "description": "Test if Datastore configuration is correct. This includes checking if credentials provided by customer have required permissions in target destination storage",
12068	//   "flatPath": "v1/organizations/{organizationsId}/analytics/datastores:test",
12069	//   "httpMethod": "POST",
12070	//   "id": "apigee.organizations.analytics.datastores.test",
12071	//   "parameterOrder": [
12072	//     "parent"
12073	//   ],
12074	//   "parameters": {
12075	//     "parent": {
12076	//       "description": "Required. The parent organization name Must be of the form `organizations/{org}`",
12077	//       "location": "path",
12078	//       "pattern": "^organizations/[^/]+$",
12079	//       "required": true,
12080	//       "type": "string"
12081	//     }
12082	//   },
12083	//   "path": "v1/{+parent}/analytics/datastores:test",
12084	//   "request": {
12085	//     "$ref": "GoogleCloudApigeeV1Datastore"
12086	//   },
12087	//   "response": {
12088	//     "$ref": "GoogleCloudApigeeV1TestDatastoreResponse"
12089	//   },
12090	//   "scopes": [
12091	//     "https://www.googleapis.com/auth/cloud-platform"
12092	//   ]
12093	// }
12094
12095}
12096
12097// method id "apigee.organizations.analytics.datastores.update":
12098
12099type OrganizationsAnalyticsDatastoresUpdateCall struct {
12100	s                            *Service
12101	name                         string
12102	googlecloudapigeev1datastore *GoogleCloudApigeeV1Datastore
12103	urlParams_                   gensupport.URLParams
12104	ctx_                         context.Context
12105	header_                      http.Header
12106}
12107
12108// Update: Update a Datastore
12109//
12110// - name: The resource name of datastore to be updated. Must be of the
12111//   form `organizations/{org}/analytics/datastores/{datastoreId}`.
12112func (r *OrganizationsAnalyticsDatastoresService) Update(name string, googlecloudapigeev1datastore *GoogleCloudApigeeV1Datastore) *OrganizationsAnalyticsDatastoresUpdateCall {
12113	c := &OrganizationsAnalyticsDatastoresUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12114	c.name = name
12115	c.googlecloudapigeev1datastore = googlecloudapigeev1datastore
12116	return c
12117}
12118
12119// Fields allows partial responses to be retrieved. See
12120// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12121// for more information.
12122func (c *OrganizationsAnalyticsDatastoresUpdateCall) Fields(s ...googleapi.Field) *OrganizationsAnalyticsDatastoresUpdateCall {
12123	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12124	return c
12125}
12126
12127// Context sets the context to be used in this call's Do method. Any
12128// pending HTTP request will be aborted if the provided context is
12129// canceled.
12130func (c *OrganizationsAnalyticsDatastoresUpdateCall) Context(ctx context.Context) *OrganizationsAnalyticsDatastoresUpdateCall {
12131	c.ctx_ = ctx
12132	return c
12133}
12134
12135// Header returns an http.Header that can be modified by the caller to
12136// add HTTP headers to the request.
12137func (c *OrganizationsAnalyticsDatastoresUpdateCall) Header() http.Header {
12138	if c.header_ == nil {
12139		c.header_ = make(http.Header)
12140	}
12141	return c.header_
12142}
12143
12144func (c *OrganizationsAnalyticsDatastoresUpdateCall) doRequest(alt string) (*http.Response, error) {
12145	reqHeaders := make(http.Header)
12146	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
12147	for k, v := range c.header_ {
12148		reqHeaders[k] = v
12149	}
12150	reqHeaders.Set("User-Agent", c.s.userAgent())
12151	var body io.Reader = nil
12152	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1datastore)
12153	if err != nil {
12154		return nil, err
12155	}
12156	reqHeaders.Set("Content-Type", "application/json")
12157	c.urlParams_.Set("alt", alt)
12158	c.urlParams_.Set("prettyPrint", "false")
12159	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
12160	urls += "?" + c.urlParams_.Encode()
12161	req, err := http.NewRequest("PUT", urls, body)
12162	if err != nil {
12163		return nil, err
12164	}
12165	req.Header = reqHeaders
12166	googleapi.Expand(req.URL, map[string]string{
12167		"name": c.name,
12168	})
12169	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12170}
12171
12172// Do executes the "apigee.organizations.analytics.datastores.update" call.
12173// Exactly one of *GoogleCloudApigeeV1Datastore or error will be
12174// non-nil. Any non-2xx status code is an error. Response headers are in
12175// either *GoogleCloudApigeeV1Datastore.ServerResponse.Header or (if a
12176// response was returned at all) in error.(*googleapi.Error).Header. Use
12177// googleapi.IsNotModified to check whether the returned error was
12178// because http.StatusNotModified was returned.
12179func (c *OrganizationsAnalyticsDatastoresUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Datastore, error) {
12180	gensupport.SetOptions(c.urlParams_, opts...)
12181	res, err := c.doRequest("json")
12182	if res != nil && res.StatusCode == http.StatusNotModified {
12183		if res.Body != nil {
12184			res.Body.Close()
12185		}
12186		return nil, &googleapi.Error{
12187			Code:   res.StatusCode,
12188			Header: res.Header,
12189		}
12190	}
12191	if err != nil {
12192		return nil, err
12193	}
12194	defer googleapi.CloseBody(res)
12195	if err := googleapi.CheckResponse(res); err != nil {
12196		return nil, err
12197	}
12198	ret := &GoogleCloudApigeeV1Datastore{
12199		ServerResponse: googleapi.ServerResponse{
12200			Header:         res.Header,
12201			HTTPStatusCode: res.StatusCode,
12202		},
12203	}
12204	target := &ret
12205	if err := gensupport.DecodeResponse(target, res); err != nil {
12206		return nil, err
12207	}
12208	return ret, nil
12209	// {
12210	//   "description": "Update a Datastore",
12211	//   "flatPath": "v1/organizations/{organizationsId}/analytics/datastores/{datastoresId}",
12212	//   "httpMethod": "PUT",
12213	//   "id": "apigee.organizations.analytics.datastores.update",
12214	//   "parameterOrder": [
12215	//     "name"
12216	//   ],
12217	//   "parameters": {
12218	//     "name": {
12219	//       "description": "Required. The resource name of datastore to be updated. Must be of the form `organizations/{org}/analytics/datastores/{datastoreId}`",
12220	//       "location": "path",
12221	//       "pattern": "^organizations/[^/]+/analytics/datastores/[^/]+$",
12222	//       "required": true,
12223	//       "type": "string"
12224	//     }
12225	//   },
12226	//   "path": "v1/{+name}",
12227	//   "request": {
12228	//     "$ref": "GoogleCloudApigeeV1Datastore"
12229	//   },
12230	//   "response": {
12231	//     "$ref": "GoogleCloudApigeeV1Datastore"
12232	//   },
12233	//   "scopes": [
12234	//     "https://www.googleapis.com/auth/cloud-platform"
12235	//   ]
12236	// }
12237
12238}
12239
12240// method id "apigee.organizations.apiproducts.attributes":
12241
12242type OrganizationsApiproductsAttributesCall struct {
12243	s                             *Service
12244	name                          string
12245	googlecloudapigeev1attributes *GoogleCloudApigeeV1Attributes
12246	urlParams_                    gensupport.URLParams
12247	ctx_                          context.Context
12248	header_                       http.Header
12249}
12250
12251// Attributes: Updates or creates API product attributes. This API
12252// **replaces** the current list of attributes with the attributes
12253// specified in the request body. In this way, you can update existing
12254// attributes, add new attributes, or delete existing attributes by
12255// omitting them from the request body. **Note**: OAuth access tokens
12256// and Key Management Service (KMS) entities (apps, developers, and API
12257// products) are cached for 180 seconds (current default). Any custom
12258// attributes associated with entities also get cached for at least 180
12259// seconds after entity is accessed during runtime. In this case, the
12260// `ExpiresIn` element on the OAuthV2 policy won't be able to expire an
12261// access token in less than 180 seconds.
12262//
12263// - name: Name of the API product. Use the following structure in your
12264//   request: `organizations/{org}/apiproducts/{apiproduct}`.
12265func (r *OrganizationsApiproductsService) Attributes(name string, googlecloudapigeev1attributes *GoogleCloudApigeeV1Attributes) *OrganizationsApiproductsAttributesCall {
12266	c := &OrganizationsApiproductsAttributesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12267	c.name = name
12268	c.googlecloudapigeev1attributes = googlecloudapigeev1attributes
12269	return c
12270}
12271
12272// Fields allows partial responses to be retrieved. See
12273// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12274// for more information.
12275func (c *OrganizationsApiproductsAttributesCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsAttributesCall {
12276	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12277	return c
12278}
12279
12280// Context sets the context to be used in this call's Do method. Any
12281// pending HTTP request will be aborted if the provided context is
12282// canceled.
12283func (c *OrganizationsApiproductsAttributesCall) Context(ctx context.Context) *OrganizationsApiproductsAttributesCall {
12284	c.ctx_ = ctx
12285	return c
12286}
12287
12288// Header returns an http.Header that can be modified by the caller to
12289// add HTTP headers to the request.
12290func (c *OrganizationsApiproductsAttributesCall) Header() http.Header {
12291	if c.header_ == nil {
12292		c.header_ = make(http.Header)
12293	}
12294	return c.header_
12295}
12296
12297func (c *OrganizationsApiproductsAttributesCall) doRequest(alt string) (*http.Response, error) {
12298	reqHeaders := make(http.Header)
12299	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
12300	for k, v := range c.header_ {
12301		reqHeaders[k] = v
12302	}
12303	reqHeaders.Set("User-Agent", c.s.userAgent())
12304	var body io.Reader = nil
12305	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1attributes)
12306	if err != nil {
12307		return nil, err
12308	}
12309	reqHeaders.Set("Content-Type", "application/json")
12310	c.urlParams_.Set("alt", alt)
12311	c.urlParams_.Set("prettyPrint", "false")
12312	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/attributes")
12313	urls += "?" + c.urlParams_.Encode()
12314	req, err := http.NewRequest("POST", urls, body)
12315	if err != nil {
12316		return nil, err
12317	}
12318	req.Header = reqHeaders
12319	googleapi.Expand(req.URL, map[string]string{
12320		"name": c.name,
12321	})
12322	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12323}
12324
12325// Do executes the "apigee.organizations.apiproducts.attributes" call.
12326// Exactly one of *GoogleCloudApigeeV1Attributes or error will be
12327// non-nil. Any non-2xx status code is an error. Response headers are in
12328// either *GoogleCloudApigeeV1Attributes.ServerResponse.Header or (if a
12329// response was returned at all) in error.(*googleapi.Error).Header. Use
12330// googleapi.IsNotModified to check whether the returned error was
12331// because http.StatusNotModified was returned.
12332func (c *OrganizationsApiproductsAttributesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attributes, error) {
12333	gensupport.SetOptions(c.urlParams_, opts...)
12334	res, err := c.doRequest("json")
12335	if res != nil && res.StatusCode == http.StatusNotModified {
12336		if res.Body != nil {
12337			res.Body.Close()
12338		}
12339		return nil, &googleapi.Error{
12340			Code:   res.StatusCode,
12341			Header: res.Header,
12342		}
12343	}
12344	if err != nil {
12345		return nil, err
12346	}
12347	defer googleapi.CloseBody(res)
12348	if err := googleapi.CheckResponse(res); err != nil {
12349		return nil, err
12350	}
12351	ret := &GoogleCloudApigeeV1Attributes{
12352		ServerResponse: googleapi.ServerResponse{
12353			Header:         res.Header,
12354			HTTPStatusCode: res.StatusCode,
12355		},
12356	}
12357	target := &ret
12358	if err := gensupport.DecodeResponse(target, res); err != nil {
12359		return nil, err
12360	}
12361	return ret, nil
12362	// {
12363	//   "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.",
12364	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}/attributes",
12365	//   "httpMethod": "POST",
12366	//   "id": "apigee.organizations.apiproducts.attributes",
12367	//   "parameterOrder": [
12368	//     "name"
12369	//   ],
12370	//   "parameters": {
12371	//     "name": {
12372	//       "description": "Required. Name of the API product. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}`",
12373	//       "location": "path",
12374	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+$",
12375	//       "required": true,
12376	//       "type": "string"
12377	//     }
12378	//   },
12379	//   "path": "v1/{+name}/attributes",
12380	//   "request": {
12381	//     "$ref": "GoogleCloudApigeeV1Attributes"
12382	//   },
12383	//   "response": {
12384	//     "$ref": "GoogleCloudApigeeV1Attributes"
12385	//   },
12386	//   "scopes": [
12387	//     "https://www.googleapis.com/auth/cloud-platform"
12388	//   ]
12389	// }
12390
12391}
12392
12393// method id "apigee.organizations.apiproducts.create":
12394
12395type OrganizationsApiproductsCreateCall struct {
12396	s                             *Service
12397	parent                        string
12398	googlecloudapigeev1apiproduct *GoogleCloudApigeeV1ApiProduct
12399	urlParams_                    gensupport.URLParams
12400	ctx_                          context.Context
12401	header_                       http.Header
12402}
12403
12404// Create: Creates an API product in an organization. You create API
12405// products after you have proxied backend services using API proxies.
12406// An API product is a collection of API resources combined with quota
12407// settings and metadata that you can use to deliver customized and
12408// productized API bundles to your developer community. This metadata
12409// can include: - Scope - Environments - API proxies - Extensible
12410// profile API products enable you repackage APIs on the fly, without
12411// having to do any additional coding or configuration. Apigee
12412// recommends that you start with a simple API product including only
12413// required elements. You then provision credentials to apps to enable
12414// them to start testing your APIs. After you have authentication and
12415// authorization working against a simple API product, you can iterate
12416// to create finer-grained API products, defining different sets of API
12417// resources for each API product. **WARNING:** - If you don't specify
12418// an API proxy in the request body, *any* app associated with the
12419// product can make calls to *any* API in your entire organization. - If
12420// you don't specify an environment in the request body, the product
12421// allows access to all environments. For more information, see What is
12422// an API product?
12423//
12424// - parent: Name of the organization in which the API product will be
12425//   created. Use the following structure in your request:
12426//   `organizations/{org}`.
12427func (r *OrganizationsApiproductsService) Create(parent string, googlecloudapigeev1apiproduct *GoogleCloudApigeeV1ApiProduct) *OrganizationsApiproductsCreateCall {
12428	c := &OrganizationsApiproductsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12429	c.parent = parent
12430	c.googlecloudapigeev1apiproduct = googlecloudapigeev1apiproduct
12431	return c
12432}
12433
12434// Fields allows partial responses to be retrieved. See
12435// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12436// for more information.
12437func (c *OrganizationsApiproductsCreateCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsCreateCall {
12438	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12439	return c
12440}
12441
12442// Context sets the context to be used in this call's Do method. Any
12443// pending HTTP request will be aborted if the provided context is
12444// canceled.
12445func (c *OrganizationsApiproductsCreateCall) Context(ctx context.Context) *OrganizationsApiproductsCreateCall {
12446	c.ctx_ = ctx
12447	return c
12448}
12449
12450// Header returns an http.Header that can be modified by the caller to
12451// add HTTP headers to the request.
12452func (c *OrganizationsApiproductsCreateCall) Header() http.Header {
12453	if c.header_ == nil {
12454		c.header_ = make(http.Header)
12455	}
12456	return c.header_
12457}
12458
12459func (c *OrganizationsApiproductsCreateCall) doRequest(alt string) (*http.Response, error) {
12460	reqHeaders := make(http.Header)
12461	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
12462	for k, v := range c.header_ {
12463		reqHeaders[k] = v
12464	}
12465	reqHeaders.Set("User-Agent", c.s.userAgent())
12466	var body io.Reader = nil
12467	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1apiproduct)
12468	if err != nil {
12469		return nil, err
12470	}
12471	reqHeaders.Set("Content-Type", "application/json")
12472	c.urlParams_.Set("alt", alt)
12473	c.urlParams_.Set("prettyPrint", "false")
12474	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apiproducts")
12475	urls += "?" + c.urlParams_.Encode()
12476	req, err := http.NewRequest("POST", urls, body)
12477	if err != nil {
12478		return nil, err
12479	}
12480	req.Header = reqHeaders
12481	googleapi.Expand(req.URL, map[string]string{
12482		"parent": c.parent,
12483	})
12484	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12485}
12486
12487// Do executes the "apigee.organizations.apiproducts.create" call.
12488// Exactly one of *GoogleCloudApigeeV1ApiProduct or error will be
12489// non-nil. Any non-2xx status code is an error. Response headers are in
12490// either *GoogleCloudApigeeV1ApiProduct.ServerResponse.Header or (if a
12491// response was returned at all) in error.(*googleapi.Error).Header. Use
12492// googleapi.IsNotModified to check whether the returned error was
12493// because http.StatusNotModified was returned.
12494func (c *OrganizationsApiproductsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProduct, error) {
12495	gensupport.SetOptions(c.urlParams_, opts...)
12496	res, err := c.doRequest("json")
12497	if res != nil && res.StatusCode == http.StatusNotModified {
12498		if res.Body != nil {
12499			res.Body.Close()
12500		}
12501		return nil, &googleapi.Error{
12502			Code:   res.StatusCode,
12503			Header: res.Header,
12504		}
12505	}
12506	if err != nil {
12507		return nil, err
12508	}
12509	defer googleapi.CloseBody(res)
12510	if err := googleapi.CheckResponse(res); err != nil {
12511		return nil, err
12512	}
12513	ret := &GoogleCloudApigeeV1ApiProduct{
12514		ServerResponse: googleapi.ServerResponse{
12515			Header:         res.Header,
12516			HTTPStatusCode: res.StatusCode,
12517		},
12518	}
12519	target := &ret
12520	if err := gensupport.DecodeResponse(target, res); err != nil {
12521		return nil, err
12522	}
12523	return ret, nil
12524	// {
12525	//   "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?",
12526	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts",
12527	//   "httpMethod": "POST",
12528	//   "id": "apigee.organizations.apiproducts.create",
12529	//   "parameterOrder": [
12530	//     "parent"
12531	//   ],
12532	//   "parameters": {
12533	//     "parent": {
12534	//       "description": "Required. Name of the organization in which the API product will be created. Use the following structure in your request: `organizations/{org}`",
12535	//       "location": "path",
12536	//       "pattern": "^organizations/[^/]+$",
12537	//       "required": true,
12538	//       "type": "string"
12539	//     }
12540	//   },
12541	//   "path": "v1/{+parent}/apiproducts",
12542	//   "request": {
12543	//     "$ref": "GoogleCloudApigeeV1ApiProduct"
12544	//   },
12545	//   "response": {
12546	//     "$ref": "GoogleCloudApigeeV1ApiProduct"
12547	//   },
12548	//   "scopes": [
12549	//     "https://www.googleapis.com/auth/cloud-platform"
12550	//   ]
12551	// }
12552
12553}
12554
12555// method id "apigee.organizations.apiproducts.delete":
12556
12557type OrganizationsApiproductsDeleteCall struct {
12558	s          *Service
12559	name       string
12560	urlParams_ gensupport.URLParams
12561	ctx_       context.Context
12562	header_    http.Header
12563}
12564
12565// Delete: Deletes an API product from an organization. Deleting an API
12566// product causes app requests to the resource URIs defined in the API
12567// product to fail. Ensure that you create a new API product to serve
12568// existing apps, unless your intention is to disable access to the
12569// resources defined in the API product. The API product name required
12570// in the request URL is the internal name of the product, not the
12571// display name. While they may be the same, it depends on whether the
12572// API product was created via the UI or the API. View the list of API
12573// products to verify the internal name.
12574//
12575// - name: Name of the API product. Use the following structure in your
12576//   request: `organizations/{org}/apiproducts/{apiproduct}`.
12577func (r *OrganizationsApiproductsService) Delete(name string) *OrganizationsApiproductsDeleteCall {
12578	c := &OrganizationsApiproductsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12579	c.name = name
12580	return c
12581}
12582
12583// Fields allows partial responses to be retrieved. See
12584// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12585// for more information.
12586func (c *OrganizationsApiproductsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsDeleteCall {
12587	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12588	return c
12589}
12590
12591// Context sets the context to be used in this call's Do method. Any
12592// pending HTTP request will be aborted if the provided context is
12593// canceled.
12594func (c *OrganizationsApiproductsDeleteCall) Context(ctx context.Context) *OrganizationsApiproductsDeleteCall {
12595	c.ctx_ = ctx
12596	return c
12597}
12598
12599// Header returns an http.Header that can be modified by the caller to
12600// add HTTP headers to the request.
12601func (c *OrganizationsApiproductsDeleteCall) Header() http.Header {
12602	if c.header_ == nil {
12603		c.header_ = make(http.Header)
12604	}
12605	return c.header_
12606}
12607
12608func (c *OrganizationsApiproductsDeleteCall) doRequest(alt string) (*http.Response, error) {
12609	reqHeaders := make(http.Header)
12610	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
12611	for k, v := range c.header_ {
12612		reqHeaders[k] = v
12613	}
12614	reqHeaders.Set("User-Agent", c.s.userAgent())
12615	var body io.Reader = nil
12616	c.urlParams_.Set("alt", alt)
12617	c.urlParams_.Set("prettyPrint", "false")
12618	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
12619	urls += "?" + c.urlParams_.Encode()
12620	req, err := http.NewRequest("DELETE", urls, body)
12621	if err != nil {
12622		return nil, err
12623	}
12624	req.Header = reqHeaders
12625	googleapi.Expand(req.URL, map[string]string{
12626		"name": c.name,
12627	})
12628	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12629}
12630
12631// Do executes the "apigee.organizations.apiproducts.delete" call.
12632// Exactly one of *GoogleCloudApigeeV1ApiProduct or error will be
12633// non-nil. Any non-2xx status code is an error. Response headers are in
12634// either *GoogleCloudApigeeV1ApiProduct.ServerResponse.Header or (if a
12635// response was returned at all) in error.(*googleapi.Error).Header. Use
12636// googleapi.IsNotModified to check whether the returned error was
12637// because http.StatusNotModified was returned.
12638func (c *OrganizationsApiproductsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProduct, error) {
12639	gensupport.SetOptions(c.urlParams_, opts...)
12640	res, err := c.doRequest("json")
12641	if res != nil && res.StatusCode == http.StatusNotModified {
12642		if res.Body != nil {
12643			res.Body.Close()
12644		}
12645		return nil, &googleapi.Error{
12646			Code:   res.StatusCode,
12647			Header: res.Header,
12648		}
12649	}
12650	if err != nil {
12651		return nil, err
12652	}
12653	defer googleapi.CloseBody(res)
12654	if err := googleapi.CheckResponse(res); err != nil {
12655		return nil, err
12656	}
12657	ret := &GoogleCloudApigeeV1ApiProduct{
12658		ServerResponse: googleapi.ServerResponse{
12659			Header:         res.Header,
12660			HTTPStatusCode: res.StatusCode,
12661		},
12662	}
12663	target := &ret
12664	if err := gensupport.DecodeResponse(target, res); err != nil {
12665		return nil, err
12666	}
12667	return ret, nil
12668	// {
12669	//   "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.",
12670	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}",
12671	//   "httpMethod": "DELETE",
12672	//   "id": "apigee.organizations.apiproducts.delete",
12673	//   "parameterOrder": [
12674	//     "name"
12675	//   ],
12676	//   "parameters": {
12677	//     "name": {
12678	//       "description": "Required. Name of the API product. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}`",
12679	//       "location": "path",
12680	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+$",
12681	//       "required": true,
12682	//       "type": "string"
12683	//     }
12684	//   },
12685	//   "path": "v1/{+name}",
12686	//   "response": {
12687	//     "$ref": "GoogleCloudApigeeV1ApiProduct"
12688	//   },
12689	//   "scopes": [
12690	//     "https://www.googleapis.com/auth/cloud-platform"
12691	//   ]
12692	// }
12693
12694}
12695
12696// method id "apigee.organizations.apiproducts.get":
12697
12698type OrganizationsApiproductsGetCall struct {
12699	s            *Service
12700	name         string
12701	urlParams_   gensupport.URLParams
12702	ifNoneMatch_ string
12703	ctx_         context.Context
12704	header_      http.Header
12705}
12706
12707// Get: Gets configuration details for an API product. The API product
12708// name required in the request URL is the internal name of the product,
12709// not the display name. While they may be the same, it depends on
12710// whether the API product was created via the UI or the API. View the
12711// list of API products to verify the internal name.
12712//
12713// - name: Name of the API product. Use the following structure in your
12714//   request: `organizations/{org}/apiproducts/{apiproduct}`.
12715func (r *OrganizationsApiproductsService) Get(name string) *OrganizationsApiproductsGetCall {
12716	c := &OrganizationsApiproductsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12717	c.name = name
12718	return c
12719}
12720
12721// Fields allows partial responses to be retrieved. See
12722// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12723// for more information.
12724func (c *OrganizationsApiproductsGetCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsGetCall {
12725	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12726	return c
12727}
12728
12729// IfNoneMatch sets the optional parameter which makes the operation
12730// fail if the object's ETag matches the given value. This is useful for
12731// getting updates only after the object has changed since the last
12732// request. Use googleapi.IsNotModified to check whether the response
12733// error from Do is the result of In-None-Match.
12734func (c *OrganizationsApiproductsGetCall) IfNoneMatch(entityTag string) *OrganizationsApiproductsGetCall {
12735	c.ifNoneMatch_ = entityTag
12736	return c
12737}
12738
12739// Context sets the context to be used in this call's Do method. Any
12740// pending HTTP request will be aborted if the provided context is
12741// canceled.
12742func (c *OrganizationsApiproductsGetCall) Context(ctx context.Context) *OrganizationsApiproductsGetCall {
12743	c.ctx_ = ctx
12744	return c
12745}
12746
12747// Header returns an http.Header that can be modified by the caller to
12748// add HTTP headers to the request.
12749func (c *OrganizationsApiproductsGetCall) Header() http.Header {
12750	if c.header_ == nil {
12751		c.header_ = make(http.Header)
12752	}
12753	return c.header_
12754}
12755
12756func (c *OrganizationsApiproductsGetCall) doRequest(alt string) (*http.Response, error) {
12757	reqHeaders := make(http.Header)
12758	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
12759	for k, v := range c.header_ {
12760		reqHeaders[k] = v
12761	}
12762	reqHeaders.Set("User-Agent", c.s.userAgent())
12763	if c.ifNoneMatch_ != "" {
12764		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12765	}
12766	var body io.Reader = nil
12767	c.urlParams_.Set("alt", alt)
12768	c.urlParams_.Set("prettyPrint", "false")
12769	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
12770	urls += "?" + c.urlParams_.Encode()
12771	req, err := http.NewRequest("GET", urls, body)
12772	if err != nil {
12773		return nil, err
12774	}
12775	req.Header = reqHeaders
12776	googleapi.Expand(req.URL, map[string]string{
12777		"name": c.name,
12778	})
12779	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12780}
12781
12782// Do executes the "apigee.organizations.apiproducts.get" call.
12783// Exactly one of *GoogleCloudApigeeV1ApiProduct or error will be
12784// non-nil. Any non-2xx status code is an error. Response headers are in
12785// either *GoogleCloudApigeeV1ApiProduct.ServerResponse.Header or (if a
12786// response was returned at all) in error.(*googleapi.Error).Header. Use
12787// googleapi.IsNotModified to check whether the returned error was
12788// because http.StatusNotModified was returned.
12789func (c *OrganizationsApiproductsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProduct, error) {
12790	gensupport.SetOptions(c.urlParams_, opts...)
12791	res, err := c.doRequest("json")
12792	if res != nil && res.StatusCode == http.StatusNotModified {
12793		if res.Body != nil {
12794			res.Body.Close()
12795		}
12796		return nil, &googleapi.Error{
12797			Code:   res.StatusCode,
12798			Header: res.Header,
12799		}
12800	}
12801	if err != nil {
12802		return nil, err
12803	}
12804	defer googleapi.CloseBody(res)
12805	if err := googleapi.CheckResponse(res); err != nil {
12806		return nil, err
12807	}
12808	ret := &GoogleCloudApigeeV1ApiProduct{
12809		ServerResponse: googleapi.ServerResponse{
12810			Header:         res.Header,
12811			HTTPStatusCode: res.StatusCode,
12812		},
12813	}
12814	target := &ret
12815	if err := gensupport.DecodeResponse(target, res); err != nil {
12816		return nil, err
12817	}
12818	return ret, nil
12819	// {
12820	//   "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.",
12821	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}",
12822	//   "httpMethod": "GET",
12823	//   "id": "apigee.organizations.apiproducts.get",
12824	//   "parameterOrder": [
12825	//     "name"
12826	//   ],
12827	//   "parameters": {
12828	//     "name": {
12829	//       "description": "Required. Name of the API product. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}`",
12830	//       "location": "path",
12831	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+$",
12832	//       "required": true,
12833	//       "type": "string"
12834	//     }
12835	//   },
12836	//   "path": "v1/{+name}",
12837	//   "response": {
12838	//     "$ref": "GoogleCloudApigeeV1ApiProduct"
12839	//   },
12840	//   "scopes": [
12841	//     "https://www.googleapis.com/auth/cloud-platform"
12842	//   ]
12843	// }
12844
12845}
12846
12847// method id "apigee.organizations.apiproducts.list":
12848
12849type OrganizationsApiproductsListCall struct {
12850	s            *Service
12851	parent       string
12852	urlParams_   gensupport.URLParams
12853	ifNoneMatch_ string
12854	ctx_         context.Context
12855	header_      http.Header
12856}
12857
12858// List: Lists all API product names for an organization. Filter the
12859// list by passing an `attributename` and `attibutevalue`. The maximum
12860// number of API products returned is 1000. You can paginate the list of
12861// API products returned using the `startKey` and `count` query
12862// parameters.
12863//
12864// - parent: Name of the organization. Use the following structure in
12865//   your request: `organizations/{org}`.
12866func (r *OrganizationsApiproductsService) List(parent string) *OrganizationsApiproductsListCall {
12867	c := &OrganizationsApiproductsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12868	c.parent = parent
12869	return c
12870}
12871
12872// Attributename sets the optional parameter "attributename": Name of
12873// the attribute used to filter the search.
12874func (c *OrganizationsApiproductsListCall) Attributename(attributename string) *OrganizationsApiproductsListCall {
12875	c.urlParams_.Set("attributename", attributename)
12876	return c
12877}
12878
12879// Attributevalue sets the optional parameter "attributevalue": Value of
12880// the attribute used to filter the search.
12881func (c *OrganizationsApiproductsListCall) Attributevalue(attributevalue string) *OrganizationsApiproductsListCall {
12882	c.urlParams_.Set("attributevalue", attributevalue)
12883	return c
12884}
12885
12886// Count sets the optional parameter "count": Enter the number of API
12887// products you want returned in the API call. The limit is 1000.
12888func (c *OrganizationsApiproductsListCall) Count(count int64) *OrganizationsApiproductsListCall {
12889	c.urlParams_.Set("count", fmt.Sprint(count))
12890	return c
12891}
12892
12893// Expand sets the optional parameter "expand": Flag that specifies
12894// whether to expand the results. Set to `true` to get expanded details
12895// about each API.
12896func (c *OrganizationsApiproductsListCall) Expand(expand bool) *OrganizationsApiproductsListCall {
12897	c.urlParams_.Set("expand", fmt.Sprint(expand))
12898	return c
12899}
12900
12901// StartKey sets the optional parameter "startKey": Gets a list of API
12902// products starting with a specific API product in the list. For
12903// example, if you're returning 50 API products at a time (using the
12904// `count` query parameter), you can view products 50-99 by entering the
12905// name of the 50th API product in the first API (without using
12906// `startKey`). Product name is case sensitive.
12907func (c *OrganizationsApiproductsListCall) StartKey(startKey string) *OrganizationsApiproductsListCall {
12908	c.urlParams_.Set("startKey", startKey)
12909	return c
12910}
12911
12912// Fields allows partial responses to be retrieved. See
12913// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12914// for more information.
12915func (c *OrganizationsApiproductsListCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsListCall {
12916	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12917	return c
12918}
12919
12920// IfNoneMatch sets the optional parameter which makes the operation
12921// fail if the object's ETag matches the given value. This is useful for
12922// getting updates only after the object has changed since the last
12923// request. Use googleapi.IsNotModified to check whether the response
12924// error from Do is the result of In-None-Match.
12925func (c *OrganizationsApiproductsListCall) IfNoneMatch(entityTag string) *OrganizationsApiproductsListCall {
12926	c.ifNoneMatch_ = entityTag
12927	return c
12928}
12929
12930// Context sets the context to be used in this call's Do method. Any
12931// pending HTTP request will be aborted if the provided context is
12932// canceled.
12933func (c *OrganizationsApiproductsListCall) Context(ctx context.Context) *OrganizationsApiproductsListCall {
12934	c.ctx_ = ctx
12935	return c
12936}
12937
12938// Header returns an http.Header that can be modified by the caller to
12939// add HTTP headers to the request.
12940func (c *OrganizationsApiproductsListCall) Header() http.Header {
12941	if c.header_ == nil {
12942		c.header_ = make(http.Header)
12943	}
12944	return c.header_
12945}
12946
12947func (c *OrganizationsApiproductsListCall) doRequest(alt string) (*http.Response, error) {
12948	reqHeaders := make(http.Header)
12949	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
12950	for k, v := range c.header_ {
12951		reqHeaders[k] = v
12952	}
12953	reqHeaders.Set("User-Agent", c.s.userAgent())
12954	if c.ifNoneMatch_ != "" {
12955		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12956	}
12957	var body io.Reader = nil
12958	c.urlParams_.Set("alt", alt)
12959	c.urlParams_.Set("prettyPrint", "false")
12960	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apiproducts")
12961	urls += "?" + c.urlParams_.Encode()
12962	req, err := http.NewRequest("GET", urls, body)
12963	if err != nil {
12964		return nil, err
12965	}
12966	req.Header = reqHeaders
12967	googleapi.Expand(req.URL, map[string]string{
12968		"parent": c.parent,
12969	})
12970	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12971}
12972
12973// Do executes the "apigee.organizations.apiproducts.list" call.
12974// Exactly one of *GoogleCloudApigeeV1ListApiProductsResponse or error
12975// will be non-nil. Any non-2xx status code is an error. Response
12976// headers are in either
12977// *GoogleCloudApigeeV1ListApiProductsResponse.ServerResponse.Header or
12978// (if a response was returned at all) in
12979// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
12980// whether the returned error was because http.StatusNotModified was
12981// returned.
12982func (c *OrganizationsApiproductsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListApiProductsResponse, error) {
12983	gensupport.SetOptions(c.urlParams_, opts...)
12984	res, err := c.doRequest("json")
12985	if res != nil && res.StatusCode == http.StatusNotModified {
12986		if res.Body != nil {
12987			res.Body.Close()
12988		}
12989		return nil, &googleapi.Error{
12990			Code:   res.StatusCode,
12991			Header: res.Header,
12992		}
12993	}
12994	if err != nil {
12995		return nil, err
12996	}
12997	defer googleapi.CloseBody(res)
12998	if err := googleapi.CheckResponse(res); err != nil {
12999		return nil, err
13000	}
13001	ret := &GoogleCloudApigeeV1ListApiProductsResponse{
13002		ServerResponse: googleapi.ServerResponse{
13003			Header:         res.Header,
13004			HTTPStatusCode: res.StatusCode,
13005		},
13006	}
13007	target := &ret
13008	if err := gensupport.DecodeResponse(target, res); err != nil {
13009		return nil, err
13010	}
13011	return ret, nil
13012	// {
13013	//   "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.",
13014	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts",
13015	//   "httpMethod": "GET",
13016	//   "id": "apigee.organizations.apiproducts.list",
13017	//   "parameterOrder": [
13018	//     "parent"
13019	//   ],
13020	//   "parameters": {
13021	//     "attributename": {
13022	//       "description": "Name of the attribute used to filter the search.",
13023	//       "location": "query",
13024	//       "type": "string"
13025	//     },
13026	//     "attributevalue": {
13027	//       "description": "Value of the attribute used to filter the search.",
13028	//       "location": "query",
13029	//       "type": "string"
13030	//     },
13031	//     "count": {
13032	//       "description": "Enter the number of API products you want returned in the API call. The limit is 1000.",
13033	//       "format": "int64",
13034	//       "location": "query",
13035	//       "type": "string"
13036	//     },
13037	//     "expand": {
13038	//       "description": "Flag that specifies whether to expand the results. Set to `true` to get expanded details about each API.",
13039	//       "location": "query",
13040	//       "type": "boolean"
13041	//     },
13042	//     "parent": {
13043	//       "description": "Required. Name of the organization. Use the following structure in your request: `organizations/{org}`",
13044	//       "location": "path",
13045	//       "pattern": "^organizations/[^/]+$",
13046	//       "required": true,
13047	//       "type": "string"
13048	//     },
13049	//     "startKey": {
13050	//       "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.",
13051	//       "location": "query",
13052	//       "type": "string"
13053	//     }
13054	//   },
13055	//   "path": "v1/{+parent}/apiproducts",
13056	//   "response": {
13057	//     "$ref": "GoogleCloudApigeeV1ListApiProductsResponse"
13058	//   },
13059	//   "scopes": [
13060	//     "https://www.googleapis.com/auth/cloud-platform"
13061	//   ]
13062	// }
13063
13064}
13065
13066// method id "apigee.organizations.apiproducts.update":
13067
13068type OrganizationsApiproductsUpdateCall struct {
13069	s                             *Service
13070	name                          string
13071	googlecloudapigeev1apiproduct *GoogleCloudApigeeV1ApiProduct
13072	urlParams_                    gensupport.URLParams
13073	ctx_                          context.Context
13074	header_                       http.Header
13075}
13076
13077// Update: Updates an existing API product. You must include all
13078// required values, whether or not you are updating them, as well as any
13079// optional values that you are updating. The API product name required
13080// in the request URL is the internal name of the product, not the
13081// display name. While they may be the same, it depends on whether the
13082// API product was created via UI or API. View the list of API products
13083// to identify their internal names.
13084//
13085// - name: Name of the API product. Use the following structure in your
13086//   request: `organizations/{org}/apiproducts/{apiproduct}`.
13087func (r *OrganizationsApiproductsService) Update(name string, googlecloudapigeev1apiproduct *GoogleCloudApigeeV1ApiProduct) *OrganizationsApiproductsUpdateCall {
13088	c := &OrganizationsApiproductsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13089	c.name = name
13090	c.googlecloudapigeev1apiproduct = googlecloudapigeev1apiproduct
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 *OrganizationsApiproductsUpdateCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsUpdateCall {
13098	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13099	return c
13100}
13101
13102// Context sets the context to be used in this call's Do method. Any
13103// pending HTTP request will be aborted if the provided context is
13104// canceled.
13105func (c *OrganizationsApiproductsUpdateCall) Context(ctx context.Context) *OrganizationsApiproductsUpdateCall {
13106	c.ctx_ = ctx
13107	return c
13108}
13109
13110// Header returns an http.Header that can be modified by the caller to
13111// add HTTP headers to the request.
13112func (c *OrganizationsApiproductsUpdateCall) Header() http.Header {
13113	if c.header_ == nil {
13114		c.header_ = make(http.Header)
13115	}
13116	return c.header_
13117}
13118
13119func (c *OrganizationsApiproductsUpdateCall) doRequest(alt string) (*http.Response, error) {
13120	reqHeaders := make(http.Header)
13121	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
13122	for k, v := range c.header_ {
13123		reqHeaders[k] = v
13124	}
13125	reqHeaders.Set("User-Agent", c.s.userAgent())
13126	var body io.Reader = nil
13127	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1apiproduct)
13128	if err != nil {
13129		return nil, err
13130	}
13131	reqHeaders.Set("Content-Type", "application/json")
13132	c.urlParams_.Set("alt", alt)
13133	c.urlParams_.Set("prettyPrint", "false")
13134	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
13135	urls += "?" + c.urlParams_.Encode()
13136	req, err := http.NewRequest("PUT", urls, body)
13137	if err != nil {
13138		return nil, err
13139	}
13140	req.Header = reqHeaders
13141	googleapi.Expand(req.URL, map[string]string{
13142		"name": c.name,
13143	})
13144	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13145}
13146
13147// Do executes the "apigee.organizations.apiproducts.update" call.
13148// Exactly one of *GoogleCloudApigeeV1ApiProduct or error will be
13149// non-nil. Any non-2xx status code is an error. Response headers are in
13150// either *GoogleCloudApigeeV1ApiProduct.ServerResponse.Header or (if a
13151// response was returned at all) in error.(*googleapi.Error).Header. Use
13152// googleapi.IsNotModified to check whether the returned error was
13153// because http.StatusNotModified was returned.
13154func (c *OrganizationsApiproductsUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProduct, error) {
13155	gensupport.SetOptions(c.urlParams_, opts...)
13156	res, err := c.doRequest("json")
13157	if res != nil && res.StatusCode == http.StatusNotModified {
13158		if res.Body != nil {
13159			res.Body.Close()
13160		}
13161		return nil, &googleapi.Error{
13162			Code:   res.StatusCode,
13163			Header: res.Header,
13164		}
13165	}
13166	if err != nil {
13167		return nil, err
13168	}
13169	defer googleapi.CloseBody(res)
13170	if err := googleapi.CheckResponse(res); err != nil {
13171		return nil, err
13172	}
13173	ret := &GoogleCloudApigeeV1ApiProduct{
13174		ServerResponse: googleapi.ServerResponse{
13175			Header:         res.Header,
13176			HTTPStatusCode: res.StatusCode,
13177		},
13178	}
13179	target := &ret
13180	if err := gensupport.DecodeResponse(target, res); err != nil {
13181		return nil, err
13182	}
13183	return ret, nil
13184	// {
13185	//   "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.",
13186	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}",
13187	//   "httpMethod": "PUT",
13188	//   "id": "apigee.organizations.apiproducts.update",
13189	//   "parameterOrder": [
13190	//     "name"
13191	//   ],
13192	//   "parameters": {
13193	//     "name": {
13194	//       "description": "Required. Name of the API product. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}`",
13195	//       "location": "path",
13196	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+$",
13197	//       "required": true,
13198	//       "type": "string"
13199	//     }
13200	//   },
13201	//   "path": "v1/{+name}",
13202	//   "request": {
13203	//     "$ref": "GoogleCloudApigeeV1ApiProduct"
13204	//   },
13205	//   "response": {
13206	//     "$ref": "GoogleCloudApigeeV1ApiProduct"
13207	//   },
13208	//   "scopes": [
13209	//     "https://www.googleapis.com/auth/cloud-platform"
13210	//   ]
13211	// }
13212
13213}
13214
13215// method id "apigee.organizations.apiproducts.attributes.delete":
13216
13217type OrganizationsApiproductsAttributesDeleteCall struct {
13218	s          *Service
13219	name       string
13220	urlParams_ gensupport.URLParams
13221	ctx_       context.Context
13222	header_    http.Header
13223}
13224
13225// Delete: Deletes an API product attribute.
13226//
13227// - name: Name of the API product attribute. Use the following
13228//   structure in your request:
13229//   `organizations/{org}/apiproducts/{apiproduct}/attributes/{attribute}
13230//   `.
13231func (r *OrganizationsApiproductsAttributesService) Delete(name string) *OrganizationsApiproductsAttributesDeleteCall {
13232	c := &OrganizationsApiproductsAttributesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13233	c.name = name
13234	return c
13235}
13236
13237// Fields allows partial responses to be retrieved. See
13238// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13239// for more information.
13240func (c *OrganizationsApiproductsAttributesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsAttributesDeleteCall {
13241	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13242	return c
13243}
13244
13245// Context sets the context to be used in this call's Do method. Any
13246// pending HTTP request will be aborted if the provided context is
13247// canceled.
13248func (c *OrganizationsApiproductsAttributesDeleteCall) Context(ctx context.Context) *OrganizationsApiproductsAttributesDeleteCall {
13249	c.ctx_ = ctx
13250	return c
13251}
13252
13253// Header returns an http.Header that can be modified by the caller to
13254// add HTTP headers to the request.
13255func (c *OrganizationsApiproductsAttributesDeleteCall) Header() http.Header {
13256	if c.header_ == nil {
13257		c.header_ = make(http.Header)
13258	}
13259	return c.header_
13260}
13261
13262func (c *OrganizationsApiproductsAttributesDeleteCall) doRequest(alt string) (*http.Response, error) {
13263	reqHeaders := make(http.Header)
13264	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
13265	for k, v := range c.header_ {
13266		reqHeaders[k] = v
13267	}
13268	reqHeaders.Set("User-Agent", c.s.userAgent())
13269	var body io.Reader = nil
13270	c.urlParams_.Set("alt", alt)
13271	c.urlParams_.Set("prettyPrint", "false")
13272	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
13273	urls += "?" + c.urlParams_.Encode()
13274	req, err := http.NewRequest("DELETE", urls, body)
13275	if err != nil {
13276		return nil, err
13277	}
13278	req.Header = reqHeaders
13279	googleapi.Expand(req.URL, map[string]string{
13280		"name": c.name,
13281	})
13282	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13283}
13284
13285// Do executes the "apigee.organizations.apiproducts.attributes.delete" call.
13286// Exactly one of *GoogleCloudApigeeV1Attribute or error will be
13287// non-nil. Any non-2xx status code is an error. Response headers are in
13288// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a
13289// response was returned at all) in error.(*googleapi.Error).Header. Use
13290// googleapi.IsNotModified to check whether the returned error was
13291// because http.StatusNotModified was returned.
13292func (c *OrganizationsApiproductsAttributesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
13293	gensupport.SetOptions(c.urlParams_, opts...)
13294	res, err := c.doRequest("json")
13295	if res != nil && res.StatusCode == http.StatusNotModified {
13296		if res.Body != nil {
13297			res.Body.Close()
13298		}
13299		return nil, &googleapi.Error{
13300			Code:   res.StatusCode,
13301			Header: res.Header,
13302		}
13303	}
13304	if err != nil {
13305		return nil, err
13306	}
13307	defer googleapi.CloseBody(res)
13308	if err := googleapi.CheckResponse(res); err != nil {
13309		return nil, err
13310	}
13311	ret := &GoogleCloudApigeeV1Attribute{
13312		ServerResponse: googleapi.ServerResponse{
13313			Header:         res.Header,
13314			HTTPStatusCode: res.StatusCode,
13315		},
13316	}
13317	target := &ret
13318	if err := gensupport.DecodeResponse(target, res); err != nil {
13319		return nil, err
13320	}
13321	return ret, nil
13322	// {
13323	//   "description": "Deletes an API product attribute.",
13324	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}/attributes/{attributesId}",
13325	//   "httpMethod": "DELETE",
13326	//   "id": "apigee.organizations.apiproducts.attributes.delete",
13327	//   "parameterOrder": [
13328	//     "name"
13329	//   ],
13330	//   "parameters": {
13331	//     "name": {
13332	//       "description": "Required. Name of the API product attribute. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}/attributes/{attribute}`",
13333	//       "location": "path",
13334	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+/attributes/[^/]+$",
13335	//       "required": true,
13336	//       "type": "string"
13337	//     }
13338	//   },
13339	//   "path": "v1/{+name}",
13340	//   "response": {
13341	//     "$ref": "GoogleCloudApigeeV1Attribute"
13342	//   },
13343	//   "scopes": [
13344	//     "https://www.googleapis.com/auth/cloud-platform"
13345	//   ]
13346	// }
13347
13348}
13349
13350// method id "apigee.organizations.apiproducts.attributes.get":
13351
13352type OrganizationsApiproductsAttributesGetCall struct {
13353	s            *Service
13354	name         string
13355	urlParams_   gensupport.URLParams
13356	ifNoneMatch_ string
13357	ctx_         context.Context
13358	header_      http.Header
13359}
13360
13361// Get: Gets the value of an API product attribute.
13362//
13363// - name: Name of the API product attribute. Use the following
13364//   structure in your request:
13365//   `organizations/{org}/apiproducts/{apiproduct}/attributes/{attribute}
13366//   `.
13367func (r *OrganizationsApiproductsAttributesService) Get(name string) *OrganizationsApiproductsAttributesGetCall {
13368	c := &OrganizationsApiproductsAttributesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13369	c.name = name
13370	return c
13371}
13372
13373// Fields allows partial responses to be retrieved. See
13374// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13375// for more information.
13376func (c *OrganizationsApiproductsAttributesGetCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsAttributesGetCall {
13377	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13378	return c
13379}
13380
13381// IfNoneMatch sets the optional parameter which makes the operation
13382// fail if the object's ETag matches the given value. This is useful for
13383// getting updates only after the object has changed since the last
13384// request. Use googleapi.IsNotModified to check whether the response
13385// error from Do is the result of In-None-Match.
13386func (c *OrganizationsApiproductsAttributesGetCall) IfNoneMatch(entityTag string) *OrganizationsApiproductsAttributesGetCall {
13387	c.ifNoneMatch_ = entityTag
13388	return c
13389}
13390
13391// Context sets the context to be used in this call's Do method. Any
13392// pending HTTP request will be aborted if the provided context is
13393// canceled.
13394func (c *OrganizationsApiproductsAttributesGetCall) Context(ctx context.Context) *OrganizationsApiproductsAttributesGetCall {
13395	c.ctx_ = ctx
13396	return c
13397}
13398
13399// Header returns an http.Header that can be modified by the caller to
13400// add HTTP headers to the request.
13401func (c *OrganizationsApiproductsAttributesGetCall) Header() http.Header {
13402	if c.header_ == nil {
13403		c.header_ = make(http.Header)
13404	}
13405	return c.header_
13406}
13407
13408func (c *OrganizationsApiproductsAttributesGetCall) doRequest(alt string) (*http.Response, error) {
13409	reqHeaders := make(http.Header)
13410	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
13411	for k, v := range c.header_ {
13412		reqHeaders[k] = v
13413	}
13414	reqHeaders.Set("User-Agent", c.s.userAgent())
13415	if c.ifNoneMatch_ != "" {
13416		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13417	}
13418	var body io.Reader = nil
13419	c.urlParams_.Set("alt", alt)
13420	c.urlParams_.Set("prettyPrint", "false")
13421	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
13422	urls += "?" + c.urlParams_.Encode()
13423	req, err := http.NewRequest("GET", urls, body)
13424	if err != nil {
13425		return nil, err
13426	}
13427	req.Header = reqHeaders
13428	googleapi.Expand(req.URL, map[string]string{
13429		"name": c.name,
13430	})
13431	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13432}
13433
13434// Do executes the "apigee.organizations.apiproducts.attributes.get" call.
13435// Exactly one of *GoogleCloudApigeeV1Attribute or error will be
13436// non-nil. Any non-2xx status code is an error. Response headers are in
13437// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a
13438// response was returned at all) in error.(*googleapi.Error).Header. Use
13439// googleapi.IsNotModified to check whether the returned error was
13440// because http.StatusNotModified was returned.
13441func (c *OrganizationsApiproductsAttributesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
13442	gensupport.SetOptions(c.urlParams_, opts...)
13443	res, err := c.doRequest("json")
13444	if res != nil && res.StatusCode == http.StatusNotModified {
13445		if res.Body != nil {
13446			res.Body.Close()
13447		}
13448		return nil, &googleapi.Error{
13449			Code:   res.StatusCode,
13450			Header: res.Header,
13451		}
13452	}
13453	if err != nil {
13454		return nil, err
13455	}
13456	defer googleapi.CloseBody(res)
13457	if err := googleapi.CheckResponse(res); err != nil {
13458		return nil, err
13459	}
13460	ret := &GoogleCloudApigeeV1Attribute{
13461		ServerResponse: googleapi.ServerResponse{
13462			Header:         res.Header,
13463			HTTPStatusCode: res.StatusCode,
13464		},
13465	}
13466	target := &ret
13467	if err := gensupport.DecodeResponse(target, res); err != nil {
13468		return nil, err
13469	}
13470	return ret, nil
13471	// {
13472	//   "description": "Gets the value of an API product attribute.",
13473	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}/attributes/{attributesId}",
13474	//   "httpMethod": "GET",
13475	//   "id": "apigee.organizations.apiproducts.attributes.get",
13476	//   "parameterOrder": [
13477	//     "name"
13478	//   ],
13479	//   "parameters": {
13480	//     "name": {
13481	//       "description": "Required. Name of the API product attribute. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}/attributes/{attribute}`",
13482	//       "location": "path",
13483	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+/attributes/[^/]+$",
13484	//       "required": true,
13485	//       "type": "string"
13486	//     }
13487	//   },
13488	//   "path": "v1/{+name}",
13489	//   "response": {
13490	//     "$ref": "GoogleCloudApigeeV1Attribute"
13491	//   },
13492	//   "scopes": [
13493	//     "https://www.googleapis.com/auth/cloud-platform"
13494	//   ]
13495	// }
13496
13497}
13498
13499// method id "apigee.organizations.apiproducts.attributes.list":
13500
13501type OrganizationsApiproductsAttributesListCall struct {
13502	s            *Service
13503	parent       string
13504	urlParams_   gensupport.URLParams
13505	ifNoneMatch_ string
13506	ctx_         context.Context
13507	header_      http.Header
13508}
13509
13510// List: Lists all API product attributes.
13511//
13512// - parent: Name of the API product. Use the following structure in
13513//   your request: `organizations/{org}/apiproducts/{apiproduct}`.
13514func (r *OrganizationsApiproductsAttributesService) List(parent string) *OrganizationsApiproductsAttributesListCall {
13515	c := &OrganizationsApiproductsAttributesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13516	c.parent = parent
13517	return c
13518}
13519
13520// Fields allows partial responses to be retrieved. See
13521// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13522// for more information.
13523func (c *OrganizationsApiproductsAttributesListCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsAttributesListCall {
13524	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13525	return c
13526}
13527
13528// IfNoneMatch sets the optional parameter which makes the operation
13529// fail if the object's ETag matches the given value. This is useful for
13530// getting updates only after the object has changed since the last
13531// request. Use googleapi.IsNotModified to check whether the response
13532// error from Do is the result of In-None-Match.
13533func (c *OrganizationsApiproductsAttributesListCall) IfNoneMatch(entityTag string) *OrganizationsApiproductsAttributesListCall {
13534	c.ifNoneMatch_ = entityTag
13535	return c
13536}
13537
13538// Context sets the context to be used in this call's Do method. Any
13539// pending HTTP request will be aborted if the provided context is
13540// canceled.
13541func (c *OrganizationsApiproductsAttributesListCall) Context(ctx context.Context) *OrganizationsApiproductsAttributesListCall {
13542	c.ctx_ = ctx
13543	return c
13544}
13545
13546// Header returns an http.Header that can be modified by the caller to
13547// add HTTP headers to the request.
13548func (c *OrganizationsApiproductsAttributesListCall) Header() http.Header {
13549	if c.header_ == nil {
13550		c.header_ = make(http.Header)
13551	}
13552	return c.header_
13553}
13554
13555func (c *OrganizationsApiproductsAttributesListCall) doRequest(alt string) (*http.Response, error) {
13556	reqHeaders := make(http.Header)
13557	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
13558	for k, v := range c.header_ {
13559		reqHeaders[k] = v
13560	}
13561	reqHeaders.Set("User-Agent", c.s.userAgent())
13562	if c.ifNoneMatch_ != "" {
13563		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13564	}
13565	var body io.Reader = nil
13566	c.urlParams_.Set("alt", alt)
13567	c.urlParams_.Set("prettyPrint", "false")
13568	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attributes")
13569	urls += "?" + c.urlParams_.Encode()
13570	req, err := http.NewRequest("GET", urls, body)
13571	if err != nil {
13572		return nil, err
13573	}
13574	req.Header = reqHeaders
13575	googleapi.Expand(req.URL, map[string]string{
13576		"parent": c.parent,
13577	})
13578	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13579}
13580
13581// Do executes the "apigee.organizations.apiproducts.attributes.list" call.
13582// Exactly one of *GoogleCloudApigeeV1Attributes or error will be
13583// non-nil. Any non-2xx status code is an error. Response headers are in
13584// either *GoogleCloudApigeeV1Attributes.ServerResponse.Header or (if a
13585// response was returned at all) in error.(*googleapi.Error).Header. Use
13586// googleapi.IsNotModified to check whether the returned error was
13587// because http.StatusNotModified was returned.
13588func (c *OrganizationsApiproductsAttributesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attributes, error) {
13589	gensupport.SetOptions(c.urlParams_, opts...)
13590	res, err := c.doRequest("json")
13591	if res != nil && res.StatusCode == http.StatusNotModified {
13592		if res.Body != nil {
13593			res.Body.Close()
13594		}
13595		return nil, &googleapi.Error{
13596			Code:   res.StatusCode,
13597			Header: res.Header,
13598		}
13599	}
13600	if err != nil {
13601		return nil, err
13602	}
13603	defer googleapi.CloseBody(res)
13604	if err := googleapi.CheckResponse(res); err != nil {
13605		return nil, err
13606	}
13607	ret := &GoogleCloudApigeeV1Attributes{
13608		ServerResponse: googleapi.ServerResponse{
13609			Header:         res.Header,
13610			HTTPStatusCode: res.StatusCode,
13611		},
13612	}
13613	target := &ret
13614	if err := gensupport.DecodeResponse(target, res); err != nil {
13615		return nil, err
13616	}
13617	return ret, nil
13618	// {
13619	//   "description": "Lists all API product attributes.",
13620	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}/attributes",
13621	//   "httpMethod": "GET",
13622	//   "id": "apigee.organizations.apiproducts.attributes.list",
13623	//   "parameterOrder": [
13624	//     "parent"
13625	//   ],
13626	//   "parameters": {
13627	//     "parent": {
13628	//       "description": "Required. Name of the API product. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}`",
13629	//       "location": "path",
13630	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+$",
13631	//       "required": true,
13632	//       "type": "string"
13633	//     }
13634	//   },
13635	//   "path": "v1/{+parent}/attributes",
13636	//   "response": {
13637	//     "$ref": "GoogleCloudApigeeV1Attributes"
13638	//   },
13639	//   "scopes": [
13640	//     "https://www.googleapis.com/auth/cloud-platform"
13641	//   ]
13642	// }
13643
13644}
13645
13646// method id "apigee.organizations.apiproducts.attributes.updateApiProductAttribute":
13647
13648type OrganizationsApiproductsAttributesUpdateApiProductAttributeCall struct {
13649	s                            *Service
13650	name                         string
13651	googlecloudapigeev1attribute *GoogleCloudApigeeV1Attribute
13652	urlParams_                   gensupport.URLParams
13653	ctx_                         context.Context
13654	header_                      http.Header
13655}
13656
13657// UpdateApiProductAttribute: Updates the value of an API product
13658// attribute. **Note**: OAuth access tokens and Key Management Service
13659// (KMS) entities (apps, developers, and API products) are cached for
13660// 180 seconds (current default). Any custom attributes associated with
13661// entities also get cached for at least 180 seconds after entity is
13662// accessed during runtime. In this case, the `ExpiresIn` element on the
13663// OAuthV2 policy won't be able to expire an access token in less than
13664// 180 seconds.
13665//
13666// - name: Name of the API product. Use the following structure in your
13667//   request: `organizations/{org}/apiproducts/{apiproduct}`.
13668func (r *OrganizationsApiproductsAttributesService) UpdateApiProductAttribute(name string, googlecloudapigeev1attribute *GoogleCloudApigeeV1Attribute) *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall {
13669	c := &OrganizationsApiproductsAttributesUpdateApiProductAttributeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13670	c.name = name
13671	c.googlecloudapigeev1attribute = googlecloudapigeev1attribute
13672	return c
13673}
13674
13675// Fields allows partial responses to be retrieved. See
13676// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13677// for more information.
13678func (c *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall {
13679	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13680	return c
13681}
13682
13683// Context sets the context to be used in this call's Do method. Any
13684// pending HTTP request will be aborted if the provided context is
13685// canceled.
13686func (c *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall) Context(ctx context.Context) *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall {
13687	c.ctx_ = ctx
13688	return c
13689}
13690
13691// Header returns an http.Header that can be modified by the caller to
13692// add HTTP headers to the request.
13693func (c *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall) Header() http.Header {
13694	if c.header_ == nil {
13695		c.header_ = make(http.Header)
13696	}
13697	return c.header_
13698}
13699
13700func (c *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall) doRequest(alt string) (*http.Response, error) {
13701	reqHeaders := make(http.Header)
13702	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
13703	for k, v := range c.header_ {
13704		reqHeaders[k] = v
13705	}
13706	reqHeaders.Set("User-Agent", c.s.userAgent())
13707	var body io.Reader = nil
13708	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1attribute)
13709	if err != nil {
13710		return nil, err
13711	}
13712	reqHeaders.Set("Content-Type", "application/json")
13713	c.urlParams_.Set("alt", alt)
13714	c.urlParams_.Set("prettyPrint", "false")
13715	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
13716	urls += "?" + c.urlParams_.Encode()
13717	req, err := http.NewRequest("POST", urls, body)
13718	if err != nil {
13719		return nil, err
13720	}
13721	req.Header = reqHeaders
13722	googleapi.Expand(req.URL, map[string]string{
13723		"name": c.name,
13724	})
13725	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13726}
13727
13728// Do executes the "apigee.organizations.apiproducts.attributes.updateApiProductAttribute" call.
13729// Exactly one of *GoogleCloudApigeeV1Attribute or error will be
13730// non-nil. Any non-2xx status code is an error. Response headers are in
13731// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a
13732// response was returned at all) in error.(*googleapi.Error).Header. Use
13733// googleapi.IsNotModified to check whether the returned error was
13734// because http.StatusNotModified was returned.
13735func (c *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
13736	gensupport.SetOptions(c.urlParams_, opts...)
13737	res, err := c.doRequest("json")
13738	if res != nil && res.StatusCode == http.StatusNotModified {
13739		if res.Body != nil {
13740			res.Body.Close()
13741		}
13742		return nil, &googleapi.Error{
13743			Code:   res.StatusCode,
13744			Header: res.Header,
13745		}
13746	}
13747	if err != nil {
13748		return nil, err
13749	}
13750	defer googleapi.CloseBody(res)
13751	if err := googleapi.CheckResponse(res); err != nil {
13752		return nil, err
13753	}
13754	ret := &GoogleCloudApigeeV1Attribute{
13755		ServerResponse: googleapi.ServerResponse{
13756			Header:         res.Header,
13757			HTTPStatusCode: res.StatusCode,
13758		},
13759	}
13760	target := &ret
13761	if err := gensupport.DecodeResponse(target, res); err != nil {
13762		return nil, err
13763	}
13764	return ret, nil
13765	// {
13766	//   "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.",
13767	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}/attributes/{attributesId}",
13768	//   "httpMethod": "POST",
13769	//   "id": "apigee.organizations.apiproducts.attributes.updateApiProductAttribute",
13770	//   "parameterOrder": [
13771	//     "name"
13772	//   ],
13773	//   "parameters": {
13774	//     "name": {
13775	//       "description": "Required. Name of the API product. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}`",
13776	//       "location": "path",
13777	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+/attributes/[^/]+$",
13778	//       "required": true,
13779	//       "type": "string"
13780	//     }
13781	//   },
13782	//   "path": "v1/{+name}",
13783	//   "request": {
13784	//     "$ref": "GoogleCloudApigeeV1Attribute"
13785	//   },
13786	//   "response": {
13787	//     "$ref": "GoogleCloudApigeeV1Attribute"
13788	//   },
13789	//   "scopes": [
13790	//     "https://www.googleapis.com/auth/cloud-platform"
13791	//   ]
13792	// }
13793
13794}
13795
13796// method id "apigee.organizations.apiproducts.rateplans.create":
13797
13798type OrganizationsApiproductsRateplansCreateCall struct {
13799	s                           *Service
13800	parent                      string
13801	googlecloudapigeev1rateplan *GoogleCloudApigeeV1RatePlan
13802	urlParams_                  gensupport.URLParams
13803	ctx_                        context.Context
13804	header_                     http.Header
13805}
13806
13807// Create: Create a rate plan that is associated with an API product in
13808// an organization. Using rate plans, API product owners can monetize
13809// their API products by configuring one or more of the following: -
13810// Billing frequency - Initial setup fees for using an API product -
13811// Payment funding model (postpaid only) - Fixed recurring or
13812// consumption-based charges for using an API product - Revenue sharing
13813// with developer partners An API product can have multiple rate plans
13814// associated with it but *only one* rate plan can be active at any
13815// point of time. **Note: From the developer's perspective, they
13816// purchase API products not rate plans.
13817//
13818// - parent: Name of the API product that is associated with the rate
13819//   plan. Use the following structure in your request:
13820//   `organizations/{org}/apiproducts/{apiproduct}`.
13821func (r *OrganizationsApiproductsRateplansService) Create(parent string, googlecloudapigeev1rateplan *GoogleCloudApigeeV1RatePlan) *OrganizationsApiproductsRateplansCreateCall {
13822	c := &OrganizationsApiproductsRateplansCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13823	c.parent = parent
13824	c.googlecloudapigeev1rateplan = googlecloudapigeev1rateplan
13825	return c
13826}
13827
13828// Fields allows partial responses to be retrieved. See
13829// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13830// for more information.
13831func (c *OrganizationsApiproductsRateplansCreateCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsRateplansCreateCall {
13832	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13833	return c
13834}
13835
13836// Context sets the context to be used in this call's Do method. Any
13837// pending HTTP request will be aborted if the provided context is
13838// canceled.
13839func (c *OrganizationsApiproductsRateplansCreateCall) Context(ctx context.Context) *OrganizationsApiproductsRateplansCreateCall {
13840	c.ctx_ = ctx
13841	return c
13842}
13843
13844// Header returns an http.Header that can be modified by the caller to
13845// add HTTP headers to the request.
13846func (c *OrganizationsApiproductsRateplansCreateCall) Header() http.Header {
13847	if c.header_ == nil {
13848		c.header_ = make(http.Header)
13849	}
13850	return c.header_
13851}
13852
13853func (c *OrganizationsApiproductsRateplansCreateCall) doRequest(alt string) (*http.Response, error) {
13854	reqHeaders := make(http.Header)
13855	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
13856	for k, v := range c.header_ {
13857		reqHeaders[k] = v
13858	}
13859	reqHeaders.Set("User-Agent", c.s.userAgent())
13860	var body io.Reader = nil
13861	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1rateplan)
13862	if err != nil {
13863		return nil, err
13864	}
13865	reqHeaders.Set("Content-Type", "application/json")
13866	c.urlParams_.Set("alt", alt)
13867	c.urlParams_.Set("prettyPrint", "false")
13868	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/rateplans")
13869	urls += "?" + c.urlParams_.Encode()
13870	req, err := http.NewRequest("POST", urls, body)
13871	if err != nil {
13872		return nil, err
13873	}
13874	req.Header = reqHeaders
13875	googleapi.Expand(req.URL, map[string]string{
13876		"parent": c.parent,
13877	})
13878	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13879}
13880
13881// Do executes the "apigee.organizations.apiproducts.rateplans.create" call.
13882// Exactly one of *GoogleCloudApigeeV1RatePlan or error will be non-nil.
13883// Any non-2xx status code is an error. Response headers are in either
13884// *GoogleCloudApigeeV1RatePlan.ServerResponse.Header or (if a response
13885// was returned at all) in error.(*googleapi.Error).Header. Use
13886// googleapi.IsNotModified to check whether the returned error was
13887// because http.StatusNotModified was returned.
13888func (c *OrganizationsApiproductsRateplansCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1RatePlan, error) {
13889	gensupport.SetOptions(c.urlParams_, opts...)
13890	res, err := c.doRequest("json")
13891	if res != nil && res.StatusCode == http.StatusNotModified {
13892		if res.Body != nil {
13893			res.Body.Close()
13894		}
13895		return nil, &googleapi.Error{
13896			Code:   res.StatusCode,
13897			Header: res.Header,
13898		}
13899	}
13900	if err != nil {
13901		return nil, err
13902	}
13903	defer googleapi.CloseBody(res)
13904	if err := googleapi.CheckResponse(res); err != nil {
13905		return nil, err
13906	}
13907	ret := &GoogleCloudApigeeV1RatePlan{
13908		ServerResponse: googleapi.ServerResponse{
13909			Header:         res.Header,
13910			HTTPStatusCode: res.StatusCode,
13911		},
13912	}
13913	target := &ret
13914	if err := gensupport.DecodeResponse(target, res); err != nil {
13915		return nil, err
13916	}
13917	return ret, nil
13918	// {
13919	//   "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.",
13920	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}/rateplans",
13921	//   "httpMethod": "POST",
13922	//   "id": "apigee.organizations.apiproducts.rateplans.create",
13923	//   "parameterOrder": [
13924	//     "parent"
13925	//   ],
13926	//   "parameters": {
13927	//     "parent": {
13928	//       "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}`",
13929	//       "location": "path",
13930	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+$",
13931	//       "required": true,
13932	//       "type": "string"
13933	//     }
13934	//   },
13935	//   "path": "v1/{+parent}/rateplans",
13936	//   "request": {
13937	//     "$ref": "GoogleCloudApigeeV1RatePlan"
13938	//   },
13939	//   "response": {
13940	//     "$ref": "GoogleCloudApigeeV1RatePlan"
13941	//   },
13942	//   "scopes": [
13943	//     "https://www.googleapis.com/auth/cloud-platform"
13944	//   ]
13945	// }
13946
13947}
13948
13949// method id "apigee.organizations.apiproducts.rateplans.delete":
13950
13951type OrganizationsApiproductsRateplansDeleteCall struct {
13952	s          *Service
13953	name       string
13954	urlParams_ gensupport.URLParams
13955	ctx_       context.Context
13956	header_    http.Header
13957}
13958
13959// Delete: Deletes a rate plan.
13960//
13961// - name: ID of the rate plan. Use the following structure in your
13962//   request:
13963//   `organizations/{org}/apiproducts/{apiproduct}/rateplans/{rateplan}`.
13964func (r *OrganizationsApiproductsRateplansService) Delete(name string) *OrganizationsApiproductsRateplansDeleteCall {
13965	c := &OrganizationsApiproductsRateplansDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13966	c.name = name
13967	return c
13968}
13969
13970// Fields allows partial responses to be retrieved. See
13971// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13972// for more information.
13973func (c *OrganizationsApiproductsRateplansDeleteCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsRateplansDeleteCall {
13974	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13975	return c
13976}
13977
13978// Context sets the context to be used in this call's Do method. Any
13979// pending HTTP request will be aborted if the provided context is
13980// canceled.
13981func (c *OrganizationsApiproductsRateplansDeleteCall) Context(ctx context.Context) *OrganizationsApiproductsRateplansDeleteCall {
13982	c.ctx_ = ctx
13983	return c
13984}
13985
13986// Header returns an http.Header that can be modified by the caller to
13987// add HTTP headers to the request.
13988func (c *OrganizationsApiproductsRateplansDeleteCall) Header() http.Header {
13989	if c.header_ == nil {
13990		c.header_ = make(http.Header)
13991	}
13992	return c.header_
13993}
13994
13995func (c *OrganizationsApiproductsRateplansDeleteCall) doRequest(alt string) (*http.Response, error) {
13996	reqHeaders := make(http.Header)
13997	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
13998	for k, v := range c.header_ {
13999		reqHeaders[k] = v
14000	}
14001	reqHeaders.Set("User-Agent", c.s.userAgent())
14002	var body io.Reader = nil
14003	c.urlParams_.Set("alt", alt)
14004	c.urlParams_.Set("prettyPrint", "false")
14005	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
14006	urls += "?" + c.urlParams_.Encode()
14007	req, err := http.NewRequest("DELETE", urls, body)
14008	if err != nil {
14009		return nil, err
14010	}
14011	req.Header = reqHeaders
14012	googleapi.Expand(req.URL, map[string]string{
14013		"name": c.name,
14014	})
14015	return gensupport.SendRequest(c.ctx_, c.s.client, req)
14016}
14017
14018// Do executes the "apigee.organizations.apiproducts.rateplans.delete" call.
14019// Exactly one of *GoogleCloudApigeeV1RatePlan or error will be non-nil.
14020// Any non-2xx status code is an error. Response headers are in either
14021// *GoogleCloudApigeeV1RatePlan.ServerResponse.Header or (if a response
14022// was returned at all) in error.(*googleapi.Error).Header. Use
14023// googleapi.IsNotModified to check whether the returned error was
14024// because http.StatusNotModified was returned.
14025func (c *OrganizationsApiproductsRateplansDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1RatePlan, error) {
14026	gensupport.SetOptions(c.urlParams_, opts...)
14027	res, err := c.doRequest("json")
14028	if res != nil && res.StatusCode == http.StatusNotModified {
14029		if res.Body != nil {
14030			res.Body.Close()
14031		}
14032		return nil, &googleapi.Error{
14033			Code:   res.StatusCode,
14034			Header: res.Header,
14035		}
14036	}
14037	if err != nil {
14038		return nil, err
14039	}
14040	defer googleapi.CloseBody(res)
14041	if err := googleapi.CheckResponse(res); err != nil {
14042		return nil, err
14043	}
14044	ret := &GoogleCloudApigeeV1RatePlan{
14045		ServerResponse: googleapi.ServerResponse{
14046			Header:         res.Header,
14047			HTTPStatusCode: res.StatusCode,
14048		},
14049	}
14050	target := &ret
14051	if err := gensupport.DecodeResponse(target, res); err != nil {
14052		return nil, err
14053	}
14054	return ret, nil
14055	// {
14056	//   "description": "Deletes a rate plan.",
14057	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}/rateplans/{rateplansId}",
14058	//   "httpMethod": "DELETE",
14059	//   "id": "apigee.organizations.apiproducts.rateplans.delete",
14060	//   "parameterOrder": [
14061	//     "name"
14062	//   ],
14063	//   "parameters": {
14064	//     "name": {
14065	//       "description": "Required. ID of the rate plan. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}/rateplans/{rateplan}`",
14066	//       "location": "path",
14067	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+/rateplans/[^/]+$",
14068	//       "required": true,
14069	//       "type": "string"
14070	//     }
14071	//   },
14072	//   "path": "v1/{+name}",
14073	//   "response": {
14074	//     "$ref": "GoogleCloudApigeeV1RatePlan"
14075	//   },
14076	//   "scopes": [
14077	//     "https://www.googleapis.com/auth/cloud-platform"
14078	//   ]
14079	// }
14080
14081}
14082
14083// method id "apigee.organizations.apiproducts.rateplans.get":
14084
14085type OrganizationsApiproductsRateplansGetCall struct {
14086	s            *Service
14087	name         string
14088	urlParams_   gensupport.URLParams
14089	ifNoneMatch_ string
14090	ctx_         context.Context
14091	header_      http.Header
14092}
14093
14094// Get: Gets the details of a rate plan.
14095//
14096// - name: Name of the rate plan. Use the following structure in your
14097//   request:
14098//   `organizations/{org}/apiproducts/{apiproduct}/rateplans/{rateplan}`.
14099func (r *OrganizationsApiproductsRateplansService) Get(name string) *OrganizationsApiproductsRateplansGetCall {
14100	c := &OrganizationsApiproductsRateplansGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14101	c.name = name
14102	return c
14103}
14104
14105// Fields allows partial responses to be retrieved. See
14106// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
14107// for more information.
14108func (c *OrganizationsApiproductsRateplansGetCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsRateplansGetCall {
14109	c.urlParams_.Set("fields", googleapi.CombineFields(s))
14110	return c
14111}
14112
14113// IfNoneMatch sets the optional parameter which makes the operation
14114// fail if the object's ETag matches the given value. This is useful for
14115// getting updates only after the object has changed since the last
14116// request. Use googleapi.IsNotModified to check whether the response
14117// error from Do is the result of In-None-Match.
14118func (c *OrganizationsApiproductsRateplansGetCall) IfNoneMatch(entityTag string) *OrganizationsApiproductsRateplansGetCall {
14119	c.ifNoneMatch_ = entityTag
14120	return c
14121}
14122
14123// Context sets the context to be used in this call's Do method. Any
14124// pending HTTP request will be aborted if the provided context is
14125// canceled.
14126func (c *OrganizationsApiproductsRateplansGetCall) Context(ctx context.Context) *OrganizationsApiproductsRateplansGetCall {
14127	c.ctx_ = ctx
14128	return c
14129}
14130
14131// Header returns an http.Header that can be modified by the caller to
14132// add HTTP headers to the request.
14133func (c *OrganizationsApiproductsRateplansGetCall) Header() http.Header {
14134	if c.header_ == nil {
14135		c.header_ = make(http.Header)
14136	}
14137	return c.header_
14138}
14139
14140func (c *OrganizationsApiproductsRateplansGetCall) doRequest(alt string) (*http.Response, error) {
14141	reqHeaders := make(http.Header)
14142	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
14143	for k, v := range c.header_ {
14144		reqHeaders[k] = v
14145	}
14146	reqHeaders.Set("User-Agent", c.s.userAgent())
14147	if c.ifNoneMatch_ != "" {
14148		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14149	}
14150	var body io.Reader = nil
14151	c.urlParams_.Set("alt", alt)
14152	c.urlParams_.Set("prettyPrint", "false")
14153	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
14154	urls += "?" + c.urlParams_.Encode()
14155	req, err := http.NewRequest("GET", urls, body)
14156	if err != nil {
14157		return nil, err
14158	}
14159	req.Header = reqHeaders
14160	googleapi.Expand(req.URL, map[string]string{
14161		"name": c.name,
14162	})
14163	return gensupport.SendRequest(c.ctx_, c.s.client, req)
14164}
14165
14166// Do executes the "apigee.organizations.apiproducts.rateplans.get" call.
14167// Exactly one of *GoogleCloudApigeeV1RatePlan or error will be non-nil.
14168// Any non-2xx status code is an error. Response headers are in either
14169// *GoogleCloudApigeeV1RatePlan.ServerResponse.Header or (if a response
14170// was returned at all) in error.(*googleapi.Error).Header. Use
14171// googleapi.IsNotModified to check whether the returned error was
14172// because http.StatusNotModified was returned.
14173func (c *OrganizationsApiproductsRateplansGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1RatePlan, error) {
14174	gensupport.SetOptions(c.urlParams_, opts...)
14175	res, err := c.doRequest("json")
14176	if res != nil && res.StatusCode == http.StatusNotModified {
14177		if res.Body != nil {
14178			res.Body.Close()
14179		}
14180		return nil, &googleapi.Error{
14181			Code:   res.StatusCode,
14182			Header: res.Header,
14183		}
14184	}
14185	if err != nil {
14186		return nil, err
14187	}
14188	defer googleapi.CloseBody(res)
14189	if err := googleapi.CheckResponse(res); err != nil {
14190		return nil, err
14191	}
14192	ret := &GoogleCloudApigeeV1RatePlan{
14193		ServerResponse: googleapi.ServerResponse{
14194			Header:         res.Header,
14195			HTTPStatusCode: res.StatusCode,
14196		},
14197	}
14198	target := &ret
14199	if err := gensupport.DecodeResponse(target, res); err != nil {
14200		return nil, err
14201	}
14202	return ret, nil
14203	// {
14204	//   "description": "Gets the details of a rate plan.",
14205	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}/rateplans/{rateplansId}",
14206	//   "httpMethod": "GET",
14207	//   "id": "apigee.organizations.apiproducts.rateplans.get",
14208	//   "parameterOrder": [
14209	//     "name"
14210	//   ],
14211	//   "parameters": {
14212	//     "name": {
14213	//       "description": "Required. Name of the rate plan. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}/rateplans/{rateplan}`",
14214	//       "location": "path",
14215	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+/rateplans/[^/]+$",
14216	//       "required": true,
14217	//       "type": "string"
14218	//     }
14219	//   },
14220	//   "path": "v1/{+name}",
14221	//   "response": {
14222	//     "$ref": "GoogleCloudApigeeV1RatePlan"
14223	//   },
14224	//   "scopes": [
14225	//     "https://www.googleapis.com/auth/cloud-platform"
14226	//   ]
14227	// }
14228
14229}
14230
14231// method id "apigee.organizations.apiproducts.rateplans.list":
14232
14233type OrganizationsApiproductsRateplansListCall struct {
14234	s            *Service
14235	parent       string
14236	urlParams_   gensupport.URLParams
14237	ifNoneMatch_ string
14238	ctx_         context.Context
14239	header_      http.Header
14240}
14241
14242// List: Lists all the rate plans for an API product.
14243//
14244// - parent: Name of the API product. Use the following structure in
14245//   your request: `organizations/{org}/apiproducts/{apiproduct}` Use
14246//   `organizations/{org}/apiproducts/-` to return rate plans for all
14247//   API products within the organization.
14248func (r *OrganizationsApiproductsRateplansService) List(parent string) *OrganizationsApiproductsRateplansListCall {
14249	c := &OrganizationsApiproductsRateplansListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14250	c.parent = parent
14251	return c
14252}
14253
14254// Count sets the optional parameter "count": Number of rate plans to
14255// return in the API call. Use with the `startKey` parameter to provide
14256// more targeted filtering. The maximum limit is 1000. Defaults to 100.
14257func (c *OrganizationsApiproductsRateplansListCall) Count(count int64) *OrganizationsApiproductsRateplansListCall {
14258	c.urlParams_.Set("count", fmt.Sprint(count))
14259	return c
14260}
14261
14262// Expand sets the optional parameter "expand": Flag that specifies
14263// whether to expand the results. Set to `true` to get expanded details
14264// about each API. Defaults to `false`.
14265func (c *OrganizationsApiproductsRateplansListCall) Expand(expand bool) *OrganizationsApiproductsRateplansListCall {
14266	c.urlParams_.Set("expand", fmt.Sprint(expand))
14267	return c
14268}
14269
14270// OrderBy sets the optional parameter "orderBy": Name of the attribute
14271// used for sorting. Valid values include: * `name`: Name of the rate
14272// plan. * `state`: State of the rate plan (`DRAFT`, `PUBLISHED`). *
14273// `startTime`: Time when the rate plan becomes active. * `endTime`:
14274// Time when the rate plan expires. **Note**: Not supported by Apigee at
14275// this time.
14276func (c *OrganizationsApiproductsRateplansListCall) OrderBy(orderBy string) *OrganizationsApiproductsRateplansListCall {
14277	c.urlParams_.Set("orderBy", orderBy)
14278	return c
14279}
14280
14281// StartKey sets the optional parameter "startKey": Name of the rate
14282// plan from which to start displaying the list of rate plans. If
14283// omitted, the list starts from the first item. For example, to view
14284// the rate plans from 51-150, set the value of `startKey` to the name
14285// of the 51st rate plan and set the value of `count` to 100.
14286func (c *OrganizationsApiproductsRateplansListCall) StartKey(startKey string) *OrganizationsApiproductsRateplansListCall {
14287	c.urlParams_.Set("startKey", startKey)
14288	return c
14289}
14290
14291// State sets the optional parameter "state": State of the rate plans
14292// (`DRAFT`, `PUBLISHED`) that you want to display.
14293//
14294// Possible values:
14295//   "STATE_UNSPECIFIED" - State of the rate plan is not specified.
14296//   "DRAFT" - Rate plan is in draft mode and only visible to API
14297// providers.
14298//   "PUBLISHED" - Rate plan is published and will become visible to
14299// developers for the configured duration (between `startTime` and
14300// `endTime`).
14301func (c *OrganizationsApiproductsRateplansListCall) State(state string) *OrganizationsApiproductsRateplansListCall {
14302	c.urlParams_.Set("state", state)
14303	return c
14304}
14305
14306// Fields allows partial responses to be retrieved. See
14307// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
14308// for more information.
14309func (c *OrganizationsApiproductsRateplansListCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsRateplansListCall {
14310	c.urlParams_.Set("fields", googleapi.CombineFields(s))
14311	return c
14312}
14313
14314// IfNoneMatch sets the optional parameter which makes the operation
14315// fail if the object's ETag matches the given value. This is useful for
14316// getting updates only after the object has changed since the last
14317// request. Use googleapi.IsNotModified to check whether the response
14318// error from Do is the result of In-None-Match.
14319func (c *OrganizationsApiproductsRateplansListCall) IfNoneMatch(entityTag string) *OrganizationsApiproductsRateplansListCall {
14320	c.ifNoneMatch_ = entityTag
14321	return c
14322}
14323
14324// Context sets the context to be used in this call's Do method. Any
14325// pending HTTP request will be aborted if the provided context is
14326// canceled.
14327func (c *OrganizationsApiproductsRateplansListCall) Context(ctx context.Context) *OrganizationsApiproductsRateplansListCall {
14328	c.ctx_ = ctx
14329	return c
14330}
14331
14332// Header returns an http.Header that can be modified by the caller to
14333// add HTTP headers to the request.
14334func (c *OrganizationsApiproductsRateplansListCall) Header() http.Header {
14335	if c.header_ == nil {
14336		c.header_ = make(http.Header)
14337	}
14338	return c.header_
14339}
14340
14341func (c *OrganizationsApiproductsRateplansListCall) doRequest(alt string) (*http.Response, error) {
14342	reqHeaders := make(http.Header)
14343	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
14344	for k, v := range c.header_ {
14345		reqHeaders[k] = v
14346	}
14347	reqHeaders.Set("User-Agent", c.s.userAgent())
14348	if c.ifNoneMatch_ != "" {
14349		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14350	}
14351	var body io.Reader = nil
14352	c.urlParams_.Set("alt", alt)
14353	c.urlParams_.Set("prettyPrint", "false")
14354	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/rateplans")
14355	urls += "?" + c.urlParams_.Encode()
14356	req, err := http.NewRequest("GET", urls, body)
14357	if err != nil {
14358		return nil, err
14359	}
14360	req.Header = reqHeaders
14361	googleapi.Expand(req.URL, map[string]string{
14362		"parent": c.parent,
14363	})
14364	return gensupport.SendRequest(c.ctx_, c.s.client, req)
14365}
14366
14367// Do executes the "apigee.organizations.apiproducts.rateplans.list" call.
14368// Exactly one of *GoogleCloudApigeeV1ListRatePlansResponse or error
14369// will be non-nil. Any non-2xx status code is an error. Response
14370// headers are in either
14371// *GoogleCloudApigeeV1ListRatePlansResponse.ServerResponse.Header or
14372// (if a response was returned at all) in
14373// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
14374// whether the returned error was because http.StatusNotModified was
14375// returned.
14376func (c *OrganizationsApiproductsRateplansListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListRatePlansResponse, error) {
14377	gensupport.SetOptions(c.urlParams_, opts...)
14378	res, err := c.doRequest("json")
14379	if res != nil && res.StatusCode == http.StatusNotModified {
14380		if res.Body != nil {
14381			res.Body.Close()
14382		}
14383		return nil, &googleapi.Error{
14384			Code:   res.StatusCode,
14385			Header: res.Header,
14386		}
14387	}
14388	if err != nil {
14389		return nil, err
14390	}
14391	defer googleapi.CloseBody(res)
14392	if err := googleapi.CheckResponse(res); err != nil {
14393		return nil, err
14394	}
14395	ret := &GoogleCloudApigeeV1ListRatePlansResponse{
14396		ServerResponse: googleapi.ServerResponse{
14397			Header:         res.Header,
14398			HTTPStatusCode: res.StatusCode,
14399		},
14400	}
14401	target := &ret
14402	if err := gensupport.DecodeResponse(target, res); err != nil {
14403		return nil, err
14404	}
14405	return ret, nil
14406	// {
14407	//   "description": "Lists all the rate plans for an API product.",
14408	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}/rateplans",
14409	//   "httpMethod": "GET",
14410	//   "id": "apigee.organizations.apiproducts.rateplans.list",
14411	//   "parameterOrder": [
14412	//     "parent"
14413	//   ],
14414	//   "parameters": {
14415	//     "count": {
14416	//       "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.",
14417	//       "format": "int32",
14418	//       "location": "query",
14419	//       "type": "integer"
14420	//     },
14421	//     "expand": {
14422	//       "description": "Flag that specifies whether to expand the results. Set to `true` to get expanded details about each API. Defaults to `false`.",
14423	//       "location": "query",
14424	//       "type": "boolean"
14425	//     },
14426	//     "orderBy": {
14427	//       "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.",
14428	//       "location": "query",
14429	//       "type": "string"
14430	//     },
14431	//     "parent": {
14432	//       "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.",
14433	//       "location": "path",
14434	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+$",
14435	//       "required": true,
14436	//       "type": "string"
14437	//     },
14438	//     "startKey": {
14439	//       "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.",
14440	//       "location": "query",
14441	//       "type": "string"
14442	//     },
14443	//     "state": {
14444	//       "description": "State of the rate plans (`DRAFT`, `PUBLISHED`) that you want to display.",
14445	//       "enum": [
14446	//         "STATE_UNSPECIFIED",
14447	//         "DRAFT",
14448	//         "PUBLISHED"
14449	//       ],
14450	//       "enumDescriptions": [
14451	//         "State of the rate plan is not specified.",
14452	//         "Rate plan is in draft mode and only visible to API providers.",
14453	//         "Rate plan is published and will become visible to developers for the configured duration (between `startTime` and `endTime`)."
14454	//       ],
14455	//       "location": "query",
14456	//       "type": "string"
14457	//     }
14458	//   },
14459	//   "path": "v1/{+parent}/rateplans",
14460	//   "response": {
14461	//     "$ref": "GoogleCloudApigeeV1ListRatePlansResponse"
14462	//   },
14463	//   "scopes": [
14464	//     "https://www.googleapis.com/auth/cloud-platform"
14465	//   ]
14466	// }
14467
14468}
14469
14470// method id "apigee.organizations.apiproducts.rateplans.update":
14471
14472type OrganizationsApiproductsRateplansUpdateCall struct {
14473	s                           *Service
14474	name                        string
14475	googlecloudapigeev1rateplan *GoogleCloudApigeeV1RatePlan
14476	urlParams_                  gensupport.URLParams
14477	ctx_                        context.Context
14478	header_                     http.Header
14479}
14480
14481// Update: Updates an existing rate plan.
14482//
14483// - name: Name of the rate plan. Use the following structure in your
14484//   request:
14485//   `organizations/{org}/apiproducts/{apiproduct}/rateplans/{rateplan}`.
14486func (r *OrganizationsApiproductsRateplansService) Update(name string, googlecloudapigeev1rateplan *GoogleCloudApigeeV1RatePlan) *OrganizationsApiproductsRateplansUpdateCall {
14487	c := &OrganizationsApiproductsRateplansUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14488	c.name = name
14489	c.googlecloudapigeev1rateplan = googlecloudapigeev1rateplan
14490	return c
14491}
14492
14493// Fields allows partial responses to be retrieved. See
14494// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
14495// for more information.
14496func (c *OrganizationsApiproductsRateplansUpdateCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsRateplansUpdateCall {
14497	c.urlParams_.Set("fields", googleapi.CombineFields(s))
14498	return c
14499}
14500
14501// Context sets the context to be used in this call's Do method. Any
14502// pending HTTP request will be aborted if the provided context is
14503// canceled.
14504func (c *OrganizationsApiproductsRateplansUpdateCall) Context(ctx context.Context) *OrganizationsApiproductsRateplansUpdateCall {
14505	c.ctx_ = ctx
14506	return c
14507}
14508
14509// Header returns an http.Header that can be modified by the caller to
14510// add HTTP headers to the request.
14511func (c *OrganizationsApiproductsRateplansUpdateCall) Header() http.Header {
14512	if c.header_ == nil {
14513		c.header_ = make(http.Header)
14514	}
14515	return c.header_
14516}
14517
14518func (c *OrganizationsApiproductsRateplansUpdateCall) doRequest(alt string) (*http.Response, error) {
14519	reqHeaders := make(http.Header)
14520	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
14521	for k, v := range c.header_ {
14522		reqHeaders[k] = v
14523	}
14524	reqHeaders.Set("User-Agent", c.s.userAgent())
14525	var body io.Reader = nil
14526	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1rateplan)
14527	if err != nil {
14528		return nil, err
14529	}
14530	reqHeaders.Set("Content-Type", "application/json")
14531	c.urlParams_.Set("alt", alt)
14532	c.urlParams_.Set("prettyPrint", "false")
14533	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
14534	urls += "?" + c.urlParams_.Encode()
14535	req, err := http.NewRequest("PUT", urls, body)
14536	if err != nil {
14537		return nil, err
14538	}
14539	req.Header = reqHeaders
14540	googleapi.Expand(req.URL, map[string]string{
14541		"name": c.name,
14542	})
14543	return gensupport.SendRequest(c.ctx_, c.s.client, req)
14544}
14545
14546// Do executes the "apigee.organizations.apiproducts.rateplans.update" call.
14547// Exactly one of *GoogleCloudApigeeV1RatePlan or error will be non-nil.
14548// Any non-2xx status code is an error. Response headers are in either
14549// *GoogleCloudApigeeV1RatePlan.ServerResponse.Header or (if a response
14550// was returned at all) in error.(*googleapi.Error).Header. Use
14551// googleapi.IsNotModified to check whether the returned error was
14552// because http.StatusNotModified was returned.
14553func (c *OrganizationsApiproductsRateplansUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1RatePlan, error) {
14554	gensupport.SetOptions(c.urlParams_, opts...)
14555	res, err := c.doRequest("json")
14556	if res != nil && res.StatusCode == http.StatusNotModified {
14557		if res.Body != nil {
14558			res.Body.Close()
14559		}
14560		return nil, &googleapi.Error{
14561			Code:   res.StatusCode,
14562			Header: res.Header,
14563		}
14564	}
14565	if err != nil {
14566		return nil, err
14567	}
14568	defer googleapi.CloseBody(res)
14569	if err := googleapi.CheckResponse(res); err != nil {
14570		return nil, err
14571	}
14572	ret := &GoogleCloudApigeeV1RatePlan{
14573		ServerResponse: googleapi.ServerResponse{
14574			Header:         res.Header,
14575			HTTPStatusCode: res.StatusCode,
14576		},
14577	}
14578	target := &ret
14579	if err := gensupport.DecodeResponse(target, res); err != nil {
14580		return nil, err
14581	}
14582	return ret, nil
14583	// {
14584	//   "description": "Updates an existing rate plan.",
14585	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}/rateplans/{rateplansId}",
14586	//   "httpMethod": "PUT",
14587	//   "id": "apigee.organizations.apiproducts.rateplans.update",
14588	//   "parameterOrder": [
14589	//     "name"
14590	//   ],
14591	//   "parameters": {
14592	//     "name": {
14593	//       "description": "Required. Name of the rate plan. Use the following structure in your request: `organizations/{org}/apiproducts/{apiproduct}/rateplans/{rateplan}`",
14594	//       "location": "path",
14595	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+/rateplans/[^/]+$",
14596	//       "required": true,
14597	//       "type": "string"
14598	//     }
14599	//   },
14600	//   "path": "v1/{+name}",
14601	//   "request": {
14602	//     "$ref": "GoogleCloudApigeeV1RatePlan"
14603	//   },
14604	//   "response": {
14605	//     "$ref": "GoogleCloudApigeeV1RatePlan"
14606	//   },
14607	//   "scopes": [
14608	//     "https://www.googleapis.com/auth/cloud-platform"
14609	//   ]
14610	// }
14611
14612}
14613
14614// method id "apigee.organizations.apis.create":
14615
14616type OrganizationsApisCreateCall struct {
14617	s                 *Service
14618	parent            string
14619	googleapihttpbody *GoogleApiHttpBody
14620	urlParams_        gensupport.URLParams
14621	ctx_              context.Context
14622	header_           http.Header
14623}
14624
14625// Create: Creates an API proxy. The API proxy created will not be
14626// accessible at runtime until it is deployed to an environment. Create
14627// a new API proxy by setting the `name` query parameter to the name of
14628// the API proxy. Import an API proxy configuration bundle stored in zip
14629// format on your local machine to your organization by doing the
14630// following: * Set the `name` query parameter to the name of the API
14631// proxy. * Set the `action` query parameter to `import`. * Set the
14632// `Content-Type` header to `multipart/form-data`. * Pass as a file the
14633// name of API proxy configuration bundle stored in zip format on your
14634// local machine using the `file` form field. **Note**: To validate the
14635// API proxy configuration bundle only without importing it, set the
14636// `action` query parameter to `validate`. When importing an API proxy
14637// configuration bundle, if the API proxy does not exist, it will be
14638// created. If the API proxy exists, then a new revision is created.
14639// Invalid API proxy configurations are rejected, and a list of
14640// validation errors is returned to the client.
14641//
14642// - parent: Name of the organization in the following format:
14643//   `organizations/{org}`.
14644func (r *OrganizationsApisService) Create(parent string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsApisCreateCall {
14645	c := &OrganizationsApisCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14646	c.parent = parent
14647	c.googleapihttpbody = googleapihttpbody
14648	return c
14649}
14650
14651// Action sets the optional parameter "action": Action to perform when
14652// importing an API proxy configuration bundle. Set this parameter to
14653// one of the following values: * `import` to import the API proxy
14654// configuration bundle. * `validate` to validate the API proxy
14655// configuration bundle without importing it.
14656func (c *OrganizationsApisCreateCall) Action(action string) *OrganizationsApisCreateCall {
14657	c.urlParams_.Set("action", action)
14658	return c
14659}
14660
14661// Name sets the optional parameter "name": Name of the API proxy.
14662// Restrict the characters used to: A-Za-z0-9._-
14663func (c *OrganizationsApisCreateCall) Name(name string) *OrganizationsApisCreateCall {
14664	c.urlParams_.Set("name", name)
14665	return c
14666}
14667
14668// Validate sets the optional parameter "validate": Ignored. All uploads
14669// are validated regardless of the value of this field. Maintained for
14670// compatibility with Apigee Edge API.
14671func (c *OrganizationsApisCreateCall) Validate(validate bool) *OrganizationsApisCreateCall {
14672	c.urlParams_.Set("validate", fmt.Sprint(validate))
14673	return c
14674}
14675
14676// Fields allows partial responses to be retrieved. See
14677// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
14678// for more information.
14679func (c *OrganizationsApisCreateCall) Fields(s ...googleapi.Field) *OrganizationsApisCreateCall {
14680	c.urlParams_.Set("fields", googleapi.CombineFields(s))
14681	return c
14682}
14683
14684// Context sets the context to be used in this call's Do method. Any
14685// pending HTTP request will be aborted if the provided context is
14686// canceled.
14687func (c *OrganizationsApisCreateCall) Context(ctx context.Context) *OrganizationsApisCreateCall {
14688	c.ctx_ = ctx
14689	return c
14690}
14691
14692// Header returns an http.Header that can be modified by the caller to
14693// add HTTP headers to the request.
14694func (c *OrganizationsApisCreateCall) Header() http.Header {
14695	if c.header_ == nil {
14696		c.header_ = make(http.Header)
14697	}
14698	return c.header_
14699}
14700
14701func (c *OrganizationsApisCreateCall) doRequest(alt string) (*http.Response, error) {
14702	reqHeaders := make(http.Header)
14703	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
14704	for k, v := range c.header_ {
14705		reqHeaders[k] = v
14706	}
14707	reqHeaders.Set("User-Agent", c.s.userAgent())
14708	var body io.Reader = nil
14709	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
14710	if err != nil {
14711		return nil, err
14712	}
14713	reqHeaders.Set("Content-Type", "application/json")
14714	c.urlParams_.Set("alt", alt)
14715	c.urlParams_.Set("prettyPrint", "false")
14716	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apis")
14717	urls += "?" + c.urlParams_.Encode()
14718	req, err := http.NewRequest("POST", urls, body)
14719	if err != nil {
14720		return nil, err
14721	}
14722	req.Header = reqHeaders
14723	googleapi.Expand(req.URL, map[string]string{
14724		"parent": c.parent,
14725	})
14726	return gensupport.SendRequest(c.ctx_, c.s.client, req)
14727}
14728
14729// Do executes the "apigee.organizations.apis.create" call.
14730// Exactly one of *GoogleCloudApigeeV1ApiProxyRevision or error will be
14731// non-nil. Any non-2xx status code is an error. Response headers are in
14732// either *GoogleCloudApigeeV1ApiProxyRevision.ServerResponse.Header or
14733// (if a response was returned at all) in
14734// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
14735// whether the returned error was because http.StatusNotModified was
14736// returned.
14737func (c *OrganizationsApisCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProxyRevision, error) {
14738	gensupport.SetOptions(c.urlParams_, opts...)
14739	res, err := c.doRequest("json")
14740	if res != nil && res.StatusCode == http.StatusNotModified {
14741		if res.Body != nil {
14742			res.Body.Close()
14743		}
14744		return nil, &googleapi.Error{
14745			Code:   res.StatusCode,
14746			Header: res.Header,
14747		}
14748	}
14749	if err != nil {
14750		return nil, err
14751	}
14752	defer googleapi.CloseBody(res)
14753	if err := googleapi.CheckResponse(res); err != nil {
14754		return nil, err
14755	}
14756	ret := &GoogleCloudApigeeV1ApiProxyRevision{
14757		ServerResponse: googleapi.ServerResponse{
14758			Header:         res.Header,
14759			HTTPStatusCode: res.StatusCode,
14760		},
14761	}
14762	target := &ret
14763	if err := gensupport.DecodeResponse(target, res); err != nil {
14764		return nil, err
14765	}
14766	return ret, nil
14767	// {
14768	//   "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.",
14769	//   "flatPath": "v1/organizations/{organizationsId}/apis",
14770	//   "httpMethod": "POST",
14771	//   "id": "apigee.organizations.apis.create",
14772	//   "parameterOrder": [
14773	//     "parent"
14774	//   ],
14775	//   "parameters": {
14776	//     "action": {
14777	//       "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.",
14778	//       "location": "query",
14779	//       "type": "string"
14780	//     },
14781	//     "name": {
14782	//       "description": "Name of the API proxy. Restrict the characters used to: A-Za-z0-9._-",
14783	//       "location": "query",
14784	//       "type": "string"
14785	//     },
14786	//     "parent": {
14787	//       "description": "Required. Name of the organization in the following format: `organizations/{org}`",
14788	//       "location": "path",
14789	//       "pattern": "^organizations/[^/]+$",
14790	//       "required": true,
14791	//       "type": "string"
14792	//     },
14793	//     "validate": {
14794	//       "description": "Ignored. All uploads are validated regardless of the value of this field. Maintained for compatibility with Apigee Edge API.",
14795	//       "location": "query",
14796	//       "type": "boolean"
14797	//     }
14798	//   },
14799	//   "path": "v1/{+parent}/apis",
14800	//   "request": {
14801	//     "$ref": "GoogleApiHttpBody"
14802	//   },
14803	//   "response": {
14804	//     "$ref": "GoogleCloudApigeeV1ApiProxyRevision"
14805	//   },
14806	//   "scopes": [
14807	//     "https://www.googleapis.com/auth/cloud-platform"
14808	//   ]
14809	// }
14810
14811}
14812
14813// method id "apigee.organizations.apis.delete":
14814
14815type OrganizationsApisDeleteCall struct {
14816	s          *Service
14817	name       string
14818	urlParams_ gensupport.URLParams
14819	ctx_       context.Context
14820	header_    http.Header
14821}
14822
14823// Delete: Deletes an API proxy and all associated endpoints, policies,
14824// resources, and revisions. The API proxy must be undeployed before you
14825// can delete it.
14826//
14827// - name: Name of the API proxy in the following format:
14828//   `organizations/{org}/apis/{api}`.
14829func (r *OrganizationsApisService) Delete(name string) *OrganizationsApisDeleteCall {
14830	c := &OrganizationsApisDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14831	c.name = name
14832	return c
14833}
14834
14835// Fields allows partial responses to be retrieved. See
14836// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
14837// for more information.
14838func (c *OrganizationsApisDeleteCall) Fields(s ...googleapi.Field) *OrganizationsApisDeleteCall {
14839	c.urlParams_.Set("fields", googleapi.CombineFields(s))
14840	return c
14841}
14842
14843// Context sets the context to be used in this call's Do method. Any
14844// pending HTTP request will be aborted if the provided context is
14845// canceled.
14846func (c *OrganizationsApisDeleteCall) Context(ctx context.Context) *OrganizationsApisDeleteCall {
14847	c.ctx_ = ctx
14848	return c
14849}
14850
14851// Header returns an http.Header that can be modified by the caller to
14852// add HTTP headers to the request.
14853func (c *OrganizationsApisDeleteCall) Header() http.Header {
14854	if c.header_ == nil {
14855		c.header_ = make(http.Header)
14856	}
14857	return c.header_
14858}
14859
14860func (c *OrganizationsApisDeleteCall) doRequest(alt string) (*http.Response, error) {
14861	reqHeaders := make(http.Header)
14862	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
14863	for k, v := range c.header_ {
14864		reqHeaders[k] = v
14865	}
14866	reqHeaders.Set("User-Agent", c.s.userAgent())
14867	var body io.Reader = nil
14868	c.urlParams_.Set("alt", alt)
14869	c.urlParams_.Set("prettyPrint", "false")
14870	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
14871	urls += "?" + c.urlParams_.Encode()
14872	req, err := http.NewRequest("DELETE", urls, body)
14873	if err != nil {
14874		return nil, err
14875	}
14876	req.Header = reqHeaders
14877	googleapi.Expand(req.URL, map[string]string{
14878		"name": c.name,
14879	})
14880	return gensupport.SendRequest(c.ctx_, c.s.client, req)
14881}
14882
14883// Do executes the "apigee.organizations.apis.delete" call.
14884// Exactly one of *GoogleCloudApigeeV1ApiProxy or error will be non-nil.
14885// Any non-2xx status code is an error. Response headers are in either
14886// *GoogleCloudApigeeV1ApiProxy.ServerResponse.Header or (if a response
14887// was returned at all) in error.(*googleapi.Error).Header. Use
14888// googleapi.IsNotModified to check whether the returned error was
14889// because http.StatusNotModified was returned.
14890func (c *OrganizationsApisDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProxy, error) {
14891	gensupport.SetOptions(c.urlParams_, opts...)
14892	res, err := c.doRequest("json")
14893	if res != nil && res.StatusCode == http.StatusNotModified {
14894		if res.Body != nil {
14895			res.Body.Close()
14896		}
14897		return nil, &googleapi.Error{
14898			Code:   res.StatusCode,
14899			Header: res.Header,
14900		}
14901	}
14902	if err != nil {
14903		return nil, err
14904	}
14905	defer googleapi.CloseBody(res)
14906	if err := googleapi.CheckResponse(res); err != nil {
14907		return nil, err
14908	}
14909	ret := &GoogleCloudApigeeV1ApiProxy{
14910		ServerResponse: googleapi.ServerResponse{
14911			Header:         res.Header,
14912			HTTPStatusCode: res.StatusCode,
14913		},
14914	}
14915	target := &ret
14916	if err := gensupport.DecodeResponse(target, res); err != nil {
14917		return nil, err
14918	}
14919	return ret, nil
14920	// {
14921	//   "description": "Deletes an API proxy and all associated endpoints, policies, resources, and revisions. The API proxy must be undeployed before you can delete it.",
14922	//   "flatPath": "v1/organizations/{organizationsId}/apis/{apisId}",
14923	//   "httpMethod": "DELETE",
14924	//   "id": "apigee.organizations.apis.delete",
14925	//   "parameterOrder": [
14926	//     "name"
14927	//   ],
14928	//   "parameters": {
14929	//     "name": {
14930	//       "description": "Required. Name of the API proxy in the following format: `organizations/{org}/apis/{api}`",
14931	//       "location": "path",
14932	//       "pattern": "^organizations/[^/]+/apis/[^/]+$",
14933	//       "required": true,
14934	//       "type": "string"
14935	//     }
14936	//   },
14937	//   "path": "v1/{+name}",
14938	//   "response": {
14939	//     "$ref": "GoogleCloudApigeeV1ApiProxy"
14940	//   },
14941	//   "scopes": [
14942	//     "https://www.googleapis.com/auth/cloud-platform"
14943	//   ]
14944	// }
14945
14946}
14947
14948// method id "apigee.organizations.apis.get":
14949
14950type OrganizationsApisGetCall struct {
14951	s            *Service
14952	name         string
14953	urlParams_   gensupport.URLParams
14954	ifNoneMatch_ string
14955	ctx_         context.Context
14956	header_      http.Header
14957}
14958
14959// Get: Gets an API proxy including a list of existing revisions.
14960//
14961// - name: Name of the API proxy in the following format:
14962//   `organizations/{org}/apis/{api}`.
14963func (r *OrganizationsApisService) Get(name string) *OrganizationsApisGetCall {
14964	c := &OrganizationsApisGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14965	c.name = name
14966	return c
14967}
14968
14969// Fields allows partial responses to be retrieved. See
14970// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
14971// for more information.
14972func (c *OrganizationsApisGetCall) Fields(s ...googleapi.Field) *OrganizationsApisGetCall {
14973	c.urlParams_.Set("fields", googleapi.CombineFields(s))
14974	return c
14975}
14976
14977// IfNoneMatch sets the optional parameter which makes the operation
14978// fail if the object's ETag matches the given value. This is useful for
14979// getting updates only after the object has changed since the last
14980// request. Use googleapi.IsNotModified to check whether the response
14981// error from Do is the result of In-None-Match.
14982func (c *OrganizationsApisGetCall) IfNoneMatch(entityTag string) *OrganizationsApisGetCall {
14983	c.ifNoneMatch_ = entityTag
14984	return c
14985}
14986
14987// Context sets the context to be used in this call's Do method. Any
14988// pending HTTP request will be aborted if the provided context is
14989// canceled.
14990func (c *OrganizationsApisGetCall) Context(ctx context.Context) *OrganizationsApisGetCall {
14991	c.ctx_ = ctx
14992	return c
14993}
14994
14995// Header returns an http.Header that can be modified by the caller to
14996// add HTTP headers to the request.
14997func (c *OrganizationsApisGetCall) Header() http.Header {
14998	if c.header_ == nil {
14999		c.header_ = make(http.Header)
15000	}
15001	return c.header_
15002}
15003
15004func (c *OrganizationsApisGetCall) doRequest(alt string) (*http.Response, error) {
15005	reqHeaders := make(http.Header)
15006	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
15007	for k, v := range c.header_ {
15008		reqHeaders[k] = v
15009	}
15010	reqHeaders.Set("User-Agent", c.s.userAgent())
15011	if c.ifNoneMatch_ != "" {
15012		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
15013	}
15014	var body io.Reader = nil
15015	c.urlParams_.Set("alt", alt)
15016	c.urlParams_.Set("prettyPrint", "false")
15017	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
15018	urls += "?" + c.urlParams_.Encode()
15019	req, err := http.NewRequest("GET", urls, body)
15020	if err != nil {
15021		return nil, err
15022	}
15023	req.Header = reqHeaders
15024	googleapi.Expand(req.URL, map[string]string{
15025		"name": c.name,
15026	})
15027	return gensupport.SendRequest(c.ctx_, c.s.client, req)
15028}
15029
15030// Do executes the "apigee.organizations.apis.get" call.
15031// Exactly one of *GoogleCloudApigeeV1ApiProxy or error will be non-nil.
15032// Any non-2xx status code is an error. Response headers are in either
15033// *GoogleCloudApigeeV1ApiProxy.ServerResponse.Header or (if a response
15034// was returned at all) in error.(*googleapi.Error).Header. Use
15035// googleapi.IsNotModified to check whether the returned error was
15036// because http.StatusNotModified was returned.
15037func (c *OrganizationsApisGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProxy, error) {
15038	gensupport.SetOptions(c.urlParams_, opts...)
15039	res, err := c.doRequest("json")
15040	if res != nil && res.StatusCode == http.StatusNotModified {
15041		if res.Body != nil {
15042			res.Body.Close()
15043		}
15044		return nil, &googleapi.Error{
15045			Code:   res.StatusCode,
15046			Header: res.Header,
15047		}
15048	}
15049	if err != nil {
15050		return nil, err
15051	}
15052	defer googleapi.CloseBody(res)
15053	if err := googleapi.CheckResponse(res); err != nil {
15054		return nil, err
15055	}
15056	ret := &GoogleCloudApigeeV1ApiProxy{
15057		ServerResponse: googleapi.ServerResponse{
15058			Header:         res.Header,
15059			HTTPStatusCode: res.StatusCode,
15060		},
15061	}
15062	target := &ret
15063	if err := gensupport.DecodeResponse(target, res); err != nil {
15064		return nil, err
15065	}
15066	return ret, nil
15067	// {
15068	//   "description": "Gets an API proxy including a list of existing revisions.",
15069	//   "flatPath": "v1/organizations/{organizationsId}/apis/{apisId}",
15070	//   "httpMethod": "GET",
15071	//   "id": "apigee.organizations.apis.get",
15072	//   "parameterOrder": [
15073	//     "name"
15074	//   ],
15075	//   "parameters": {
15076	//     "name": {
15077	//       "description": "Required. Name of the API proxy in the following format: `organizations/{org}/apis/{api}`",
15078	//       "location": "path",
15079	//       "pattern": "^organizations/[^/]+/apis/[^/]+$",
15080	//       "required": true,
15081	//       "type": "string"
15082	//     }
15083	//   },
15084	//   "path": "v1/{+name}",
15085	//   "response": {
15086	//     "$ref": "GoogleCloudApigeeV1ApiProxy"
15087	//   },
15088	//   "scopes": [
15089	//     "https://www.googleapis.com/auth/cloud-platform"
15090	//   ]
15091	// }
15092
15093}
15094
15095// method id "apigee.organizations.apis.list":
15096
15097type OrganizationsApisListCall struct {
15098	s            *Service
15099	parent       string
15100	urlParams_   gensupport.URLParams
15101	ifNoneMatch_ string
15102	ctx_         context.Context
15103	header_      http.Header
15104}
15105
15106// List: Lists the names of all API proxies in an organization. The
15107// names returned correspond to the names defined in the configuration
15108// files for each API proxy.
15109//
15110// - parent: Name of the organization in the following format:
15111//   `organizations/{org}`.
15112func (r *OrganizationsApisService) List(parent string) *OrganizationsApisListCall {
15113	c := &OrganizationsApisListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15114	c.parent = parent
15115	return c
15116}
15117
15118// IncludeMetaData sets the optional parameter "includeMetaData": Flag
15119// that specifies whether to include API proxy metadata in the response.
15120func (c *OrganizationsApisListCall) IncludeMetaData(includeMetaData bool) *OrganizationsApisListCall {
15121	c.urlParams_.Set("includeMetaData", fmt.Sprint(includeMetaData))
15122	return c
15123}
15124
15125// IncludeRevisions sets the optional parameter "includeRevisions": Flag
15126// that specifies whether to include a list of revisions in the
15127// response.
15128func (c *OrganizationsApisListCall) IncludeRevisions(includeRevisions bool) *OrganizationsApisListCall {
15129	c.urlParams_.Set("includeRevisions", fmt.Sprint(includeRevisions))
15130	return c
15131}
15132
15133// Fields allows partial responses to be retrieved. See
15134// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
15135// for more information.
15136func (c *OrganizationsApisListCall) Fields(s ...googleapi.Field) *OrganizationsApisListCall {
15137	c.urlParams_.Set("fields", googleapi.CombineFields(s))
15138	return c
15139}
15140
15141// IfNoneMatch sets the optional parameter which makes the operation
15142// fail if the object's ETag matches the given value. This is useful for
15143// getting updates only after the object has changed since the last
15144// request. Use googleapi.IsNotModified to check whether the response
15145// error from Do is the result of In-None-Match.
15146func (c *OrganizationsApisListCall) IfNoneMatch(entityTag string) *OrganizationsApisListCall {
15147	c.ifNoneMatch_ = entityTag
15148	return c
15149}
15150
15151// Context sets the context to be used in this call's Do method. Any
15152// pending HTTP request will be aborted if the provided context is
15153// canceled.
15154func (c *OrganizationsApisListCall) Context(ctx context.Context) *OrganizationsApisListCall {
15155	c.ctx_ = ctx
15156	return c
15157}
15158
15159// Header returns an http.Header that can be modified by the caller to
15160// add HTTP headers to the request.
15161func (c *OrganizationsApisListCall) Header() http.Header {
15162	if c.header_ == nil {
15163		c.header_ = make(http.Header)
15164	}
15165	return c.header_
15166}
15167
15168func (c *OrganizationsApisListCall) doRequest(alt string) (*http.Response, error) {
15169	reqHeaders := make(http.Header)
15170	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
15171	for k, v := range c.header_ {
15172		reqHeaders[k] = v
15173	}
15174	reqHeaders.Set("User-Agent", c.s.userAgent())
15175	if c.ifNoneMatch_ != "" {
15176		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
15177	}
15178	var body io.Reader = nil
15179	c.urlParams_.Set("alt", alt)
15180	c.urlParams_.Set("prettyPrint", "false")
15181	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apis")
15182	urls += "?" + c.urlParams_.Encode()
15183	req, err := http.NewRequest("GET", urls, body)
15184	if err != nil {
15185		return nil, err
15186	}
15187	req.Header = reqHeaders
15188	googleapi.Expand(req.URL, map[string]string{
15189		"parent": c.parent,
15190	})
15191	return gensupport.SendRequest(c.ctx_, c.s.client, req)
15192}
15193
15194// Do executes the "apigee.organizations.apis.list" call.
15195// Exactly one of *GoogleCloudApigeeV1ListApiProxiesResponse or error
15196// will be non-nil. Any non-2xx status code is an error. Response
15197// headers are in either
15198// *GoogleCloudApigeeV1ListApiProxiesResponse.ServerResponse.Header or
15199// (if a response was returned at all) in
15200// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
15201// whether the returned error was because http.StatusNotModified was
15202// returned.
15203func (c *OrganizationsApisListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListApiProxiesResponse, error) {
15204	gensupport.SetOptions(c.urlParams_, opts...)
15205	res, err := c.doRequest("json")
15206	if res != nil && res.StatusCode == http.StatusNotModified {
15207		if res.Body != nil {
15208			res.Body.Close()
15209		}
15210		return nil, &googleapi.Error{
15211			Code:   res.StatusCode,
15212			Header: res.Header,
15213		}
15214	}
15215	if err != nil {
15216		return nil, err
15217	}
15218	defer googleapi.CloseBody(res)
15219	if err := googleapi.CheckResponse(res); err != nil {
15220		return nil, err
15221	}
15222	ret := &GoogleCloudApigeeV1ListApiProxiesResponse{
15223		ServerResponse: googleapi.ServerResponse{
15224			Header:         res.Header,
15225			HTTPStatusCode: res.StatusCode,
15226		},
15227	}
15228	target := &ret
15229	if err := gensupport.DecodeResponse(target, res); err != nil {
15230		return nil, err
15231	}
15232	return ret, nil
15233	// {
15234	//   "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.",
15235	//   "flatPath": "v1/organizations/{organizationsId}/apis",
15236	//   "httpMethod": "GET",
15237	//   "id": "apigee.organizations.apis.list",
15238	//   "parameterOrder": [
15239	//     "parent"
15240	//   ],
15241	//   "parameters": {
15242	//     "includeMetaData": {
15243	//       "description": "Flag that specifies whether to include API proxy metadata in the response.",
15244	//       "location": "query",
15245	//       "type": "boolean"
15246	//     },
15247	//     "includeRevisions": {
15248	//       "description": "Flag that specifies whether to include a list of revisions in the response.",
15249	//       "location": "query",
15250	//       "type": "boolean"
15251	//     },
15252	//     "parent": {
15253	//       "description": "Required. Name of the organization in the following format: `organizations/{org}`",
15254	//       "location": "path",
15255	//       "pattern": "^organizations/[^/]+$",
15256	//       "required": true,
15257	//       "type": "string"
15258	//     }
15259	//   },
15260	//   "path": "v1/{+parent}/apis",
15261	//   "response": {
15262	//     "$ref": "GoogleCloudApigeeV1ListApiProxiesResponse"
15263	//   },
15264	//   "scopes": [
15265	//     "https://www.googleapis.com/auth/cloud-platform"
15266	//   ]
15267	// }
15268
15269}
15270
15271// method id "apigee.organizations.apis.patch":
15272
15273type OrganizationsApisPatchCall struct {
15274	s                           *Service
15275	name                        string
15276	googlecloudapigeev1apiproxy *GoogleCloudApigeeV1ApiProxy
15277	urlParams_                  gensupport.URLParams
15278	ctx_                        context.Context
15279	header_                     http.Header
15280}
15281
15282// Patch: Updates an existing API proxy.
15283//
15284// - name: API proxy to update in the following format:
15285//   `organizations/{org}/apis/{api}`.
15286func (r *OrganizationsApisService) Patch(name string, googlecloudapigeev1apiproxy *GoogleCloudApigeeV1ApiProxy) *OrganizationsApisPatchCall {
15287	c := &OrganizationsApisPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15288	c.name = name
15289	c.googlecloudapigeev1apiproxy = googlecloudapigeev1apiproxy
15290	return c
15291}
15292
15293// UpdateMask sets the optional parameter "updateMask": Required. The
15294// list of fields to update.
15295func (c *OrganizationsApisPatchCall) UpdateMask(updateMask string) *OrganizationsApisPatchCall {
15296	c.urlParams_.Set("updateMask", updateMask)
15297	return c
15298}
15299
15300// Fields allows partial responses to be retrieved. See
15301// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
15302// for more information.
15303func (c *OrganizationsApisPatchCall) Fields(s ...googleapi.Field) *OrganizationsApisPatchCall {
15304	c.urlParams_.Set("fields", googleapi.CombineFields(s))
15305	return c
15306}
15307
15308// Context sets the context to be used in this call's Do method. Any
15309// pending HTTP request will be aborted if the provided context is
15310// canceled.
15311func (c *OrganizationsApisPatchCall) Context(ctx context.Context) *OrganizationsApisPatchCall {
15312	c.ctx_ = ctx
15313	return c
15314}
15315
15316// Header returns an http.Header that can be modified by the caller to
15317// add HTTP headers to the request.
15318func (c *OrganizationsApisPatchCall) Header() http.Header {
15319	if c.header_ == nil {
15320		c.header_ = make(http.Header)
15321	}
15322	return c.header_
15323}
15324
15325func (c *OrganizationsApisPatchCall) doRequest(alt string) (*http.Response, error) {
15326	reqHeaders := make(http.Header)
15327	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
15328	for k, v := range c.header_ {
15329		reqHeaders[k] = v
15330	}
15331	reqHeaders.Set("User-Agent", c.s.userAgent())
15332	var body io.Reader = nil
15333	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1apiproxy)
15334	if err != nil {
15335		return nil, err
15336	}
15337	reqHeaders.Set("Content-Type", "application/json")
15338	c.urlParams_.Set("alt", alt)
15339	c.urlParams_.Set("prettyPrint", "false")
15340	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
15341	urls += "?" + c.urlParams_.Encode()
15342	req, err := http.NewRequest("PATCH", urls, body)
15343	if err != nil {
15344		return nil, err
15345	}
15346	req.Header = reqHeaders
15347	googleapi.Expand(req.URL, map[string]string{
15348		"name": c.name,
15349	})
15350	return gensupport.SendRequest(c.ctx_, c.s.client, req)
15351}
15352
15353// Do executes the "apigee.organizations.apis.patch" call.
15354// Exactly one of *GoogleCloudApigeeV1ApiProxy or error will be non-nil.
15355// Any non-2xx status code is an error. Response headers are in either
15356// *GoogleCloudApigeeV1ApiProxy.ServerResponse.Header or (if a response
15357// was returned at all) in error.(*googleapi.Error).Header. Use
15358// googleapi.IsNotModified to check whether the returned error was
15359// because http.StatusNotModified was returned.
15360func (c *OrganizationsApisPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProxy, error) {
15361	gensupport.SetOptions(c.urlParams_, opts...)
15362	res, err := c.doRequest("json")
15363	if res != nil && res.StatusCode == http.StatusNotModified {
15364		if res.Body != nil {
15365			res.Body.Close()
15366		}
15367		return nil, &googleapi.Error{
15368			Code:   res.StatusCode,
15369			Header: res.Header,
15370		}
15371	}
15372	if err != nil {
15373		return nil, err
15374	}
15375	defer googleapi.CloseBody(res)
15376	if err := googleapi.CheckResponse(res); err != nil {
15377		return nil, err
15378	}
15379	ret := &GoogleCloudApigeeV1ApiProxy{
15380		ServerResponse: googleapi.ServerResponse{
15381			Header:         res.Header,
15382			HTTPStatusCode: res.StatusCode,
15383		},
15384	}
15385	target := &ret
15386	if err := gensupport.DecodeResponse(target, res); err != nil {
15387		return nil, err
15388	}
15389	return ret, nil
15390	// {
15391	//   "description": "Updates an existing API proxy.",
15392	//   "flatPath": "v1/organizations/{organizationsId}/apis/{apisId}",
15393	//   "httpMethod": "PATCH",
15394	//   "id": "apigee.organizations.apis.patch",
15395	//   "parameterOrder": [
15396	//     "name"
15397	//   ],
15398	//   "parameters": {
15399	//     "name": {
15400	//       "description": "Required. API proxy to update in the following format: `organizations/{org}/apis/{api}`",
15401	//       "location": "path",
15402	//       "pattern": "^organizations/[^/]+/apis/[^/]+$",
15403	//       "required": true,
15404	//       "type": "string"
15405	//     },
15406	//     "updateMask": {
15407	//       "description": "Required. The list of fields to update.",
15408	//       "format": "google-fieldmask",
15409	//       "location": "query",
15410	//       "type": "string"
15411	//     }
15412	//   },
15413	//   "path": "v1/{+name}",
15414	//   "request": {
15415	//     "$ref": "GoogleCloudApigeeV1ApiProxy"
15416	//   },
15417	//   "response": {
15418	//     "$ref": "GoogleCloudApigeeV1ApiProxy"
15419	//   },
15420	//   "scopes": [
15421	//     "https://www.googleapis.com/auth/cloud-platform"
15422	//   ]
15423	// }
15424
15425}
15426
15427// method id "apigee.organizations.apis.deployments.list":
15428
15429type OrganizationsApisDeploymentsListCall struct {
15430	s            *Service
15431	parent       string
15432	urlParams_   gensupport.URLParams
15433	ifNoneMatch_ string
15434	ctx_         context.Context
15435	header_      http.Header
15436}
15437
15438// List: Lists all deployments of an API proxy.
15439//
15440// - parent: Name of the API proxy for which to return deployment
15441//   information in the following format:
15442//   `organizations/{org}/apis/{api}`.
15443func (r *OrganizationsApisDeploymentsService) List(parent string) *OrganizationsApisDeploymentsListCall {
15444	c := &OrganizationsApisDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15445	c.parent = parent
15446	return c
15447}
15448
15449// Fields allows partial responses to be retrieved. See
15450// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
15451// for more information.
15452func (c *OrganizationsApisDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsApisDeploymentsListCall {
15453	c.urlParams_.Set("fields", googleapi.CombineFields(s))
15454	return c
15455}
15456
15457// IfNoneMatch sets the optional parameter which makes the operation
15458// fail if the object's ETag matches the given value. This is useful for
15459// getting updates only after the object has changed since the last
15460// request. Use googleapi.IsNotModified to check whether the response
15461// error from Do is the result of In-None-Match.
15462func (c *OrganizationsApisDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsApisDeploymentsListCall {
15463	c.ifNoneMatch_ = entityTag
15464	return c
15465}
15466
15467// Context sets the context to be used in this call's Do method. Any
15468// pending HTTP request will be aborted if the provided context is
15469// canceled.
15470func (c *OrganizationsApisDeploymentsListCall) Context(ctx context.Context) *OrganizationsApisDeploymentsListCall {
15471	c.ctx_ = ctx
15472	return c
15473}
15474
15475// Header returns an http.Header that can be modified by the caller to
15476// add HTTP headers to the request.
15477func (c *OrganizationsApisDeploymentsListCall) Header() http.Header {
15478	if c.header_ == nil {
15479		c.header_ = make(http.Header)
15480	}
15481	return c.header_
15482}
15483
15484func (c *OrganizationsApisDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
15485	reqHeaders := make(http.Header)
15486	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
15487	for k, v := range c.header_ {
15488		reqHeaders[k] = v
15489	}
15490	reqHeaders.Set("User-Agent", c.s.userAgent())
15491	if c.ifNoneMatch_ != "" {
15492		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
15493	}
15494	var body io.Reader = nil
15495	c.urlParams_.Set("alt", alt)
15496	c.urlParams_.Set("prettyPrint", "false")
15497	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
15498	urls += "?" + c.urlParams_.Encode()
15499	req, err := http.NewRequest("GET", urls, body)
15500	if err != nil {
15501		return nil, err
15502	}
15503	req.Header = reqHeaders
15504	googleapi.Expand(req.URL, map[string]string{
15505		"parent": c.parent,
15506	})
15507	return gensupport.SendRequest(c.ctx_, c.s.client, req)
15508}
15509
15510// Do executes the "apigee.organizations.apis.deployments.list" call.
15511// Exactly one of *GoogleCloudApigeeV1ListDeploymentsResponse or error
15512// will be non-nil. Any non-2xx status code is an error. Response
15513// headers are in either
15514// *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or
15515// (if a response was returned at all) in
15516// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
15517// whether the returned error was because http.StatusNotModified was
15518// returned.
15519func (c *OrganizationsApisDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
15520	gensupport.SetOptions(c.urlParams_, opts...)
15521	res, err := c.doRequest("json")
15522	if res != nil && res.StatusCode == http.StatusNotModified {
15523		if res.Body != nil {
15524			res.Body.Close()
15525		}
15526		return nil, &googleapi.Error{
15527			Code:   res.StatusCode,
15528			Header: res.Header,
15529		}
15530	}
15531	if err != nil {
15532		return nil, err
15533	}
15534	defer googleapi.CloseBody(res)
15535	if err := googleapi.CheckResponse(res); err != nil {
15536		return nil, err
15537	}
15538	ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
15539		ServerResponse: googleapi.ServerResponse{
15540			Header:         res.Header,
15541			HTTPStatusCode: res.StatusCode,
15542		},
15543	}
15544	target := &ret
15545	if err := gensupport.DecodeResponse(target, res); err != nil {
15546		return nil, err
15547	}
15548	return ret, nil
15549	// {
15550	//   "description": "Lists all deployments of an API proxy.",
15551	//   "flatPath": "v1/organizations/{organizationsId}/apis/{apisId}/deployments",
15552	//   "httpMethod": "GET",
15553	//   "id": "apigee.organizations.apis.deployments.list",
15554	//   "parameterOrder": [
15555	//     "parent"
15556	//   ],
15557	//   "parameters": {
15558	//     "parent": {
15559	//       "description": "Required. Name of the API proxy for which to return deployment information in the following format: `organizations/{org}/apis/{api}`",
15560	//       "location": "path",
15561	//       "pattern": "^organizations/[^/]+/apis/[^/]+$",
15562	//       "required": true,
15563	//       "type": "string"
15564	//     }
15565	//   },
15566	//   "path": "v1/{+parent}/deployments",
15567	//   "response": {
15568	//     "$ref": "GoogleCloudApigeeV1ListDeploymentsResponse"
15569	//   },
15570	//   "scopes": [
15571	//     "https://www.googleapis.com/auth/cloud-platform"
15572	//   ]
15573	// }
15574
15575}
15576
15577// method id "apigee.organizations.apis.keyvaluemaps.create":
15578
15579type OrganizationsApisKeyvaluemapsCreateCall struct {
15580	s                              *Service
15581	parent                         string
15582	googlecloudapigeev1keyvaluemap *GoogleCloudApigeeV1KeyValueMap
15583	urlParams_                     gensupport.URLParams
15584	ctx_                           context.Context
15585	header_                        http.Header
15586}
15587
15588// Create: Creates a key value map in an api proxy.
15589//
15590// - parent: The name of the environment in which to create the key
15591//   value map. Must be of the form
15592//   `organizations/{organization}/apis/{api}`.
15593func (r *OrganizationsApisKeyvaluemapsService) Create(parent string, googlecloudapigeev1keyvaluemap *GoogleCloudApigeeV1KeyValueMap) *OrganizationsApisKeyvaluemapsCreateCall {
15594	c := &OrganizationsApisKeyvaluemapsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15595	c.parent = parent
15596	c.googlecloudapigeev1keyvaluemap = googlecloudapigeev1keyvaluemap
15597	return c
15598}
15599
15600// Fields allows partial responses to be retrieved. See
15601// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
15602// for more information.
15603func (c *OrganizationsApisKeyvaluemapsCreateCall) Fields(s ...googleapi.Field) *OrganizationsApisKeyvaluemapsCreateCall {
15604	c.urlParams_.Set("fields", googleapi.CombineFields(s))
15605	return c
15606}
15607
15608// Context sets the context to be used in this call's Do method. Any
15609// pending HTTP request will be aborted if the provided context is
15610// canceled.
15611func (c *OrganizationsApisKeyvaluemapsCreateCall) Context(ctx context.Context) *OrganizationsApisKeyvaluemapsCreateCall {
15612	c.ctx_ = ctx
15613	return c
15614}
15615
15616// Header returns an http.Header that can be modified by the caller to
15617// add HTTP headers to the request.
15618func (c *OrganizationsApisKeyvaluemapsCreateCall) Header() http.Header {
15619	if c.header_ == nil {
15620		c.header_ = make(http.Header)
15621	}
15622	return c.header_
15623}
15624
15625func (c *OrganizationsApisKeyvaluemapsCreateCall) doRequest(alt string) (*http.Response, error) {
15626	reqHeaders := make(http.Header)
15627	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
15628	for k, v := range c.header_ {
15629		reqHeaders[k] = v
15630	}
15631	reqHeaders.Set("User-Agent", c.s.userAgent())
15632	var body io.Reader = nil
15633	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1keyvaluemap)
15634	if err != nil {
15635		return nil, err
15636	}
15637	reqHeaders.Set("Content-Type", "application/json")
15638	c.urlParams_.Set("alt", alt)
15639	c.urlParams_.Set("prettyPrint", "false")
15640	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keyvaluemaps")
15641	urls += "?" + c.urlParams_.Encode()
15642	req, err := http.NewRequest("POST", urls, body)
15643	if err != nil {
15644		return nil, err
15645	}
15646	req.Header = reqHeaders
15647	googleapi.Expand(req.URL, map[string]string{
15648		"parent": c.parent,
15649	})
15650	return gensupport.SendRequest(c.ctx_, c.s.client, req)
15651}
15652
15653// Do executes the "apigee.organizations.apis.keyvaluemaps.create" call.
15654// Exactly one of *GoogleCloudApigeeV1KeyValueMap or error will be
15655// non-nil. Any non-2xx status code is an error. Response headers are in
15656// either *GoogleCloudApigeeV1KeyValueMap.ServerResponse.Header or (if a
15657// response was returned at all) in error.(*googleapi.Error).Header. Use
15658// googleapi.IsNotModified to check whether the returned error was
15659// because http.StatusNotModified was returned.
15660func (c *OrganizationsApisKeyvaluemapsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueMap, error) {
15661	gensupport.SetOptions(c.urlParams_, opts...)
15662	res, err := c.doRequest("json")
15663	if res != nil && res.StatusCode == http.StatusNotModified {
15664		if res.Body != nil {
15665			res.Body.Close()
15666		}
15667		return nil, &googleapi.Error{
15668			Code:   res.StatusCode,
15669			Header: res.Header,
15670		}
15671	}
15672	if err != nil {
15673		return nil, err
15674	}
15675	defer googleapi.CloseBody(res)
15676	if err := googleapi.CheckResponse(res); err != nil {
15677		return nil, err
15678	}
15679	ret := &GoogleCloudApigeeV1KeyValueMap{
15680		ServerResponse: googleapi.ServerResponse{
15681			Header:         res.Header,
15682			HTTPStatusCode: res.StatusCode,
15683		},
15684	}
15685	target := &ret
15686	if err := gensupport.DecodeResponse(target, res); err != nil {
15687		return nil, err
15688	}
15689	return ret, nil
15690	// {
15691	//   "description": "Creates a key value map in an api proxy.",
15692	//   "flatPath": "v1/organizations/{organizationsId}/apis/{apisId}/keyvaluemaps",
15693	//   "httpMethod": "POST",
15694	//   "id": "apigee.organizations.apis.keyvaluemaps.create",
15695	//   "parameterOrder": [
15696	//     "parent"
15697	//   ],
15698	//   "parameters": {
15699	//     "parent": {
15700	//       "description": "Required. The name of the environment in which to create the key value map. Must be of the form `organizations/{organization}/apis/{api}`.",
15701	//       "location": "path",
15702	//       "pattern": "^organizations/[^/]+/apis/[^/]+$",
15703	//       "required": true,
15704	//       "type": "string"
15705	//     }
15706	//   },
15707	//   "path": "v1/{+parent}/keyvaluemaps",
15708	//   "request": {
15709	//     "$ref": "GoogleCloudApigeeV1KeyValueMap"
15710	//   },
15711	//   "response": {
15712	//     "$ref": "GoogleCloudApigeeV1KeyValueMap"
15713	//   },
15714	//   "scopes": [
15715	//     "https://www.googleapis.com/auth/cloud-platform"
15716	//   ]
15717	// }
15718
15719}
15720
15721// method id "apigee.organizations.apis.keyvaluemaps.delete":
15722
15723type OrganizationsApisKeyvaluemapsDeleteCall struct {
15724	s          *Service
15725	name       string
15726	urlParams_ gensupport.URLParams
15727	ctx_       context.Context
15728	header_    http.Header
15729}
15730
15731// Delete: Delete a key value map in an api proxy.
15732//
15733// - name: The name of the key value map. Must be of the form
15734//   `organizations/{organization}/apis/{api}/keyvaluemaps/{keyvaluemap}`
15735//   .
15736func (r *OrganizationsApisKeyvaluemapsService) Delete(name string) *OrganizationsApisKeyvaluemapsDeleteCall {
15737	c := &OrganizationsApisKeyvaluemapsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15738	c.name = name
15739	return c
15740}
15741
15742// Fields allows partial responses to be retrieved. See
15743// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
15744// for more information.
15745func (c *OrganizationsApisKeyvaluemapsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsApisKeyvaluemapsDeleteCall {
15746	c.urlParams_.Set("fields", googleapi.CombineFields(s))
15747	return c
15748}
15749
15750// Context sets the context to be used in this call's Do method. Any
15751// pending HTTP request will be aborted if the provided context is
15752// canceled.
15753func (c *OrganizationsApisKeyvaluemapsDeleteCall) Context(ctx context.Context) *OrganizationsApisKeyvaluemapsDeleteCall {
15754	c.ctx_ = ctx
15755	return c
15756}
15757
15758// Header returns an http.Header that can be modified by the caller to
15759// add HTTP headers to the request.
15760func (c *OrganizationsApisKeyvaluemapsDeleteCall) Header() http.Header {
15761	if c.header_ == nil {
15762		c.header_ = make(http.Header)
15763	}
15764	return c.header_
15765}
15766
15767func (c *OrganizationsApisKeyvaluemapsDeleteCall) doRequest(alt string) (*http.Response, error) {
15768	reqHeaders := make(http.Header)
15769	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
15770	for k, v := range c.header_ {
15771		reqHeaders[k] = v
15772	}
15773	reqHeaders.Set("User-Agent", c.s.userAgent())
15774	var body io.Reader = nil
15775	c.urlParams_.Set("alt", alt)
15776	c.urlParams_.Set("prettyPrint", "false")
15777	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
15778	urls += "?" + c.urlParams_.Encode()
15779	req, err := http.NewRequest("DELETE", urls, body)
15780	if err != nil {
15781		return nil, err
15782	}
15783	req.Header = reqHeaders
15784	googleapi.Expand(req.URL, map[string]string{
15785		"name": c.name,
15786	})
15787	return gensupport.SendRequest(c.ctx_, c.s.client, req)
15788}
15789
15790// Do executes the "apigee.organizations.apis.keyvaluemaps.delete" call.
15791// Exactly one of *GoogleCloudApigeeV1KeyValueMap or error will be
15792// non-nil. Any non-2xx status code is an error. Response headers are in
15793// either *GoogleCloudApigeeV1KeyValueMap.ServerResponse.Header or (if a
15794// response was returned at all) in error.(*googleapi.Error).Header. Use
15795// googleapi.IsNotModified to check whether the returned error was
15796// because http.StatusNotModified was returned.
15797func (c *OrganizationsApisKeyvaluemapsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueMap, error) {
15798	gensupport.SetOptions(c.urlParams_, opts...)
15799	res, err := c.doRequest("json")
15800	if res != nil && res.StatusCode == http.StatusNotModified {
15801		if res.Body != nil {
15802			res.Body.Close()
15803		}
15804		return nil, &googleapi.Error{
15805			Code:   res.StatusCode,
15806			Header: res.Header,
15807		}
15808	}
15809	if err != nil {
15810		return nil, err
15811	}
15812	defer googleapi.CloseBody(res)
15813	if err := googleapi.CheckResponse(res); err != nil {
15814		return nil, err
15815	}
15816	ret := &GoogleCloudApigeeV1KeyValueMap{
15817		ServerResponse: googleapi.ServerResponse{
15818			Header:         res.Header,
15819			HTTPStatusCode: res.StatusCode,
15820		},
15821	}
15822	target := &ret
15823	if err := gensupport.DecodeResponse(target, res); err != nil {
15824		return nil, err
15825	}
15826	return ret, nil
15827	// {
15828	//   "description": "Delete a key value map in an api proxy.",
15829	//   "flatPath": "v1/organizations/{organizationsId}/apis/{apisId}/keyvaluemaps/{keyvaluemapsId}",
15830	//   "httpMethod": "DELETE",
15831	//   "id": "apigee.organizations.apis.keyvaluemaps.delete",
15832	//   "parameterOrder": [
15833	//     "name"
15834	//   ],
15835	//   "parameters": {
15836	//     "name": {
15837	//       "description": "Required. The name of the key value map. Must be of the form `organizations/{organization}/apis/{api}/keyvaluemaps/{keyvaluemap}`.",
15838	//       "location": "path",
15839	//       "pattern": "^organizations/[^/]+/apis/[^/]+/keyvaluemaps/[^/]+$",
15840	//       "required": true,
15841	//       "type": "string"
15842	//     }
15843	//   },
15844	//   "path": "v1/{+name}",
15845	//   "response": {
15846	//     "$ref": "GoogleCloudApigeeV1KeyValueMap"
15847	//   },
15848	//   "scopes": [
15849	//     "https://www.googleapis.com/auth/cloud-platform"
15850	//   ]
15851	// }
15852
15853}
15854
15855// method id "apigee.organizations.apis.revisions.delete":
15856
15857type OrganizationsApisRevisionsDeleteCall struct {
15858	s          *Service
15859	name       string
15860	urlParams_ gensupport.URLParams
15861	ctx_       context.Context
15862	header_    http.Header
15863}
15864
15865// Delete: Deletes an API proxy revision and all policies, resources,
15866// endpoints, and revisions associated with it. The API proxy revision
15867// must be undeployed before you can delete it.
15868//
15869// - name: API proxy revision in the following format:
15870//   `organizations/{org}/apis/{api}/revisions/{rev}`.
15871func (r *OrganizationsApisRevisionsService) Delete(name string) *OrganizationsApisRevisionsDeleteCall {
15872	c := &OrganizationsApisRevisionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15873	c.name = name
15874	return c
15875}
15876
15877// Fields allows partial responses to be retrieved. See
15878// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
15879// for more information.
15880func (c *OrganizationsApisRevisionsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsApisRevisionsDeleteCall {
15881	c.urlParams_.Set("fields", googleapi.CombineFields(s))
15882	return c
15883}
15884
15885// Context sets the context to be used in this call's Do method. Any
15886// pending HTTP request will be aborted if the provided context is
15887// canceled.
15888func (c *OrganizationsApisRevisionsDeleteCall) Context(ctx context.Context) *OrganizationsApisRevisionsDeleteCall {
15889	c.ctx_ = ctx
15890	return c
15891}
15892
15893// Header returns an http.Header that can be modified by the caller to
15894// add HTTP headers to the request.
15895func (c *OrganizationsApisRevisionsDeleteCall) Header() http.Header {
15896	if c.header_ == nil {
15897		c.header_ = make(http.Header)
15898	}
15899	return c.header_
15900}
15901
15902func (c *OrganizationsApisRevisionsDeleteCall) doRequest(alt string) (*http.Response, error) {
15903	reqHeaders := make(http.Header)
15904	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
15905	for k, v := range c.header_ {
15906		reqHeaders[k] = v
15907	}
15908	reqHeaders.Set("User-Agent", c.s.userAgent())
15909	var body io.Reader = nil
15910	c.urlParams_.Set("alt", alt)
15911	c.urlParams_.Set("prettyPrint", "false")
15912	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
15913	urls += "?" + c.urlParams_.Encode()
15914	req, err := http.NewRequest("DELETE", urls, body)
15915	if err != nil {
15916		return nil, err
15917	}
15918	req.Header = reqHeaders
15919	googleapi.Expand(req.URL, map[string]string{
15920		"name": c.name,
15921	})
15922	return gensupport.SendRequest(c.ctx_, c.s.client, req)
15923}
15924
15925// Do executes the "apigee.organizations.apis.revisions.delete" call.
15926// Exactly one of *GoogleCloudApigeeV1ApiProxyRevision or error will be
15927// non-nil. Any non-2xx status code is an error. Response headers are in
15928// either *GoogleCloudApigeeV1ApiProxyRevision.ServerResponse.Header or
15929// (if a response was returned at all) in
15930// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
15931// whether the returned error was because http.StatusNotModified was
15932// returned.
15933func (c *OrganizationsApisRevisionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProxyRevision, error) {
15934	gensupport.SetOptions(c.urlParams_, opts...)
15935	res, err := c.doRequest("json")
15936	if res != nil && res.StatusCode == http.StatusNotModified {
15937		if res.Body != nil {
15938			res.Body.Close()
15939		}
15940		return nil, &googleapi.Error{
15941			Code:   res.StatusCode,
15942			Header: res.Header,
15943		}
15944	}
15945	if err != nil {
15946		return nil, err
15947	}
15948	defer googleapi.CloseBody(res)
15949	if err := googleapi.CheckResponse(res); err != nil {
15950		return nil, err
15951	}
15952	ret := &GoogleCloudApigeeV1ApiProxyRevision{
15953		ServerResponse: googleapi.ServerResponse{
15954			Header:         res.Header,
15955			HTTPStatusCode: res.StatusCode,
15956		},
15957	}
15958	target := &ret
15959	if err := gensupport.DecodeResponse(target, res); err != nil {
15960		return nil, err
15961	}
15962	return ret, nil
15963	// {
15964	//   "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.",
15965	//   "flatPath": "v1/organizations/{organizationsId}/apis/{apisId}/revisions/{revisionsId}",
15966	//   "httpMethod": "DELETE",
15967	//   "id": "apigee.organizations.apis.revisions.delete",
15968	//   "parameterOrder": [
15969	//     "name"
15970	//   ],
15971	//   "parameters": {
15972	//     "name": {
15973	//       "description": "Required. API proxy revision in the following format: `organizations/{org}/apis/{api}/revisions/{rev}`",
15974	//       "location": "path",
15975	//       "pattern": "^organizations/[^/]+/apis/[^/]+/revisions/[^/]+$",
15976	//       "required": true,
15977	//       "type": "string"
15978	//     }
15979	//   },
15980	//   "path": "v1/{+name}",
15981	//   "response": {
15982	//     "$ref": "GoogleCloudApigeeV1ApiProxyRevision"
15983	//   },
15984	//   "scopes": [
15985	//     "https://www.googleapis.com/auth/cloud-platform"
15986	//   ]
15987	// }
15988
15989}
15990
15991// method id "apigee.organizations.apis.revisions.get":
15992
15993type OrganizationsApisRevisionsGetCall struct {
15994	s            *Service
15995	name         string
15996	urlParams_   gensupport.URLParams
15997	ifNoneMatch_ string
15998	ctx_         context.Context
15999	header_      http.Header
16000}
16001
16002// Get: Gets an API proxy revision. To download the API proxy
16003// configuration bundle for the specified revision as a zip file, set
16004// the `format` query parameter to `bundle`. If you are using curl,
16005// specify `-o filename.zip` to save the output to a file; otherwise, it
16006// displays to `stdout`. Then, develop the API proxy configuration
16007// locally and upload the updated API proxy configuration revision, as
16008// described in updateApiProxyRevision (updateApiProxyRevision).
16009//
16010// - name: API proxy revision in the following format:
16011//   `organizations/{org}/apis/{api}/revisions/{rev}`.
16012func (r *OrganizationsApisRevisionsService) Get(name string) *OrganizationsApisRevisionsGetCall {
16013	c := &OrganizationsApisRevisionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16014	c.name = name
16015	return c
16016}
16017
16018// Format sets the optional parameter "format": Format used when
16019// downloading the API proxy configuration revision. Set to `bundle` to
16020// download the API proxy configuration revision as a zip file.
16021func (c *OrganizationsApisRevisionsGetCall) Format(format string) *OrganizationsApisRevisionsGetCall {
16022	c.urlParams_.Set("format", format)
16023	return c
16024}
16025
16026// Fields allows partial responses to be retrieved. See
16027// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
16028// for more information.
16029func (c *OrganizationsApisRevisionsGetCall) Fields(s ...googleapi.Field) *OrganizationsApisRevisionsGetCall {
16030	c.urlParams_.Set("fields", googleapi.CombineFields(s))
16031	return c
16032}
16033
16034// IfNoneMatch sets the optional parameter which makes the operation
16035// fail if the object's ETag matches the given value. This is useful for
16036// getting updates only after the object has changed since the last
16037// request. Use googleapi.IsNotModified to check whether the response
16038// error from Do is the result of In-None-Match.
16039func (c *OrganizationsApisRevisionsGetCall) IfNoneMatch(entityTag string) *OrganizationsApisRevisionsGetCall {
16040	c.ifNoneMatch_ = entityTag
16041	return c
16042}
16043
16044// Context sets the context to be used in this call's Do method. Any
16045// pending HTTP request will be aborted if the provided context is
16046// canceled.
16047func (c *OrganizationsApisRevisionsGetCall) Context(ctx context.Context) *OrganizationsApisRevisionsGetCall {
16048	c.ctx_ = ctx
16049	return c
16050}
16051
16052// Header returns an http.Header that can be modified by the caller to
16053// add HTTP headers to the request.
16054func (c *OrganizationsApisRevisionsGetCall) Header() http.Header {
16055	if c.header_ == nil {
16056		c.header_ = make(http.Header)
16057	}
16058	return c.header_
16059}
16060
16061func (c *OrganizationsApisRevisionsGetCall) doRequest(alt string) (*http.Response, error) {
16062	reqHeaders := make(http.Header)
16063	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
16064	for k, v := range c.header_ {
16065		reqHeaders[k] = v
16066	}
16067	reqHeaders.Set("User-Agent", c.s.userAgent())
16068	if c.ifNoneMatch_ != "" {
16069		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16070	}
16071	var body io.Reader = nil
16072	c.urlParams_.Set("alt", alt)
16073	c.urlParams_.Set("prettyPrint", "false")
16074	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
16075	urls += "?" + c.urlParams_.Encode()
16076	req, err := http.NewRequest("GET", urls, body)
16077	if err != nil {
16078		return nil, err
16079	}
16080	req.Header = reqHeaders
16081	googleapi.Expand(req.URL, map[string]string{
16082		"name": c.name,
16083	})
16084	return gensupport.SendRequest(c.ctx_, c.s.client, req)
16085}
16086
16087// Do executes the "apigee.organizations.apis.revisions.get" call.
16088// Exactly one of *GoogleApiHttpBody or error will be non-nil. Any
16089// non-2xx status code is an error. Response headers are in either
16090// *GoogleApiHttpBody.ServerResponse.Header or (if a response was
16091// returned at all) in error.(*googleapi.Error).Header. Use
16092// googleapi.IsNotModified to check whether the returned error was
16093// because http.StatusNotModified was returned.
16094func (c *OrganizationsApisRevisionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
16095	gensupport.SetOptions(c.urlParams_, opts...)
16096	res, err := c.doRequest("json")
16097	if res != nil && res.StatusCode == http.StatusNotModified {
16098		if res.Body != nil {
16099			res.Body.Close()
16100		}
16101		return nil, &googleapi.Error{
16102			Code:   res.StatusCode,
16103			Header: res.Header,
16104		}
16105	}
16106	if err != nil {
16107		return nil, err
16108	}
16109	defer googleapi.CloseBody(res)
16110	if err := googleapi.CheckResponse(res); err != nil {
16111		return nil, err
16112	}
16113	ret := &GoogleApiHttpBody{
16114		ServerResponse: googleapi.ServerResponse{
16115			Header:         res.Header,
16116			HTTPStatusCode: res.StatusCode,
16117		},
16118	}
16119	target := &ret
16120	if err := gensupport.DecodeResponse(target, res); err != nil {
16121		return nil, err
16122	}
16123	return ret, nil
16124	// {
16125	//   "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).",
16126	//   "flatPath": "v1/organizations/{organizationsId}/apis/{apisId}/revisions/{revisionsId}",
16127	//   "httpMethod": "GET",
16128	//   "id": "apigee.organizations.apis.revisions.get",
16129	//   "parameterOrder": [
16130	//     "name"
16131	//   ],
16132	//   "parameters": {
16133	//     "format": {
16134	//       "description": "Format used when downloading the API proxy configuration revision. Set to `bundle` to download the API proxy configuration revision as a zip file.",
16135	//       "location": "query",
16136	//       "type": "string"
16137	//     },
16138	//     "name": {
16139	//       "description": "Required. API proxy revision in the following format: `organizations/{org}/apis/{api}/revisions/{rev}`",
16140	//       "location": "path",
16141	//       "pattern": "^organizations/[^/]+/apis/[^/]+/revisions/[^/]+$",
16142	//       "required": true,
16143	//       "type": "string"
16144	//     }
16145	//   },
16146	//   "path": "v1/{+name}",
16147	//   "response": {
16148	//     "$ref": "GoogleApiHttpBody"
16149	//   },
16150	//   "scopes": [
16151	//     "https://www.googleapis.com/auth/cloud-platform"
16152	//   ]
16153	// }
16154
16155}
16156
16157// method id "apigee.organizations.apis.revisions.updateApiProxyRevision":
16158
16159type OrganizationsApisRevisionsUpdateApiProxyRevisionCall struct {
16160	s                 *Service
16161	name              string
16162	googleapihttpbody *GoogleApiHttpBody
16163	urlParams_        gensupport.URLParams
16164	ctx_              context.Context
16165	header_           http.Header
16166}
16167
16168// UpdateApiProxyRevision: Updates an existing API proxy revision by
16169// uploading the API proxy configuration bundle as a zip file from your
16170// local machine. You can update only API proxy revisions that have
16171// never been deployed. After deployment, an API proxy revision becomes
16172// immutable, even if it is undeployed. Set the `Content-Type` header to
16173// either `multipart/form-data` or `application/octet-stream`.
16174//
16175// - name: API proxy revision to update in the following format:
16176//   `organizations/{org}/apis/{api}/revisions/{rev}`.
16177func (r *OrganizationsApisRevisionsService) UpdateApiProxyRevision(name string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsApisRevisionsUpdateApiProxyRevisionCall {
16178	c := &OrganizationsApisRevisionsUpdateApiProxyRevisionCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16179	c.name = name
16180	c.googleapihttpbody = googleapihttpbody
16181	return c
16182}
16183
16184// Validate sets the optional parameter "validate": Ignored. All uploads
16185// are validated regardless of the value of this field. Maintained for
16186// compatibility with Apigee Edge API.
16187func (c *OrganizationsApisRevisionsUpdateApiProxyRevisionCall) Validate(validate bool) *OrganizationsApisRevisionsUpdateApiProxyRevisionCall {
16188	c.urlParams_.Set("validate", fmt.Sprint(validate))
16189	return c
16190}
16191
16192// Fields allows partial responses to be retrieved. See
16193// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
16194// for more information.
16195func (c *OrganizationsApisRevisionsUpdateApiProxyRevisionCall) Fields(s ...googleapi.Field) *OrganizationsApisRevisionsUpdateApiProxyRevisionCall {
16196	c.urlParams_.Set("fields", googleapi.CombineFields(s))
16197	return c
16198}
16199
16200// Context sets the context to be used in this call's Do method. Any
16201// pending HTTP request will be aborted if the provided context is
16202// canceled.
16203func (c *OrganizationsApisRevisionsUpdateApiProxyRevisionCall) Context(ctx context.Context) *OrganizationsApisRevisionsUpdateApiProxyRevisionCall {
16204	c.ctx_ = ctx
16205	return c
16206}
16207
16208// Header returns an http.Header that can be modified by the caller to
16209// add HTTP headers to the request.
16210func (c *OrganizationsApisRevisionsUpdateApiProxyRevisionCall) Header() http.Header {
16211	if c.header_ == nil {
16212		c.header_ = make(http.Header)
16213	}
16214	return c.header_
16215}
16216
16217func (c *OrganizationsApisRevisionsUpdateApiProxyRevisionCall) doRequest(alt string) (*http.Response, error) {
16218	reqHeaders := make(http.Header)
16219	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
16220	for k, v := range c.header_ {
16221		reqHeaders[k] = v
16222	}
16223	reqHeaders.Set("User-Agent", c.s.userAgent())
16224	var body io.Reader = nil
16225	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
16226	if err != nil {
16227		return nil, err
16228	}
16229	reqHeaders.Set("Content-Type", "application/json")
16230	c.urlParams_.Set("alt", alt)
16231	c.urlParams_.Set("prettyPrint", "false")
16232	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
16233	urls += "?" + c.urlParams_.Encode()
16234	req, err := http.NewRequest("POST", urls, body)
16235	if err != nil {
16236		return nil, err
16237	}
16238	req.Header = reqHeaders
16239	googleapi.Expand(req.URL, map[string]string{
16240		"name": c.name,
16241	})
16242	return gensupport.SendRequest(c.ctx_, c.s.client, req)
16243}
16244
16245// Do executes the "apigee.organizations.apis.revisions.updateApiProxyRevision" call.
16246// Exactly one of *GoogleCloudApigeeV1ApiProxyRevision or error will be
16247// non-nil. Any non-2xx status code is an error. Response headers are in
16248// either *GoogleCloudApigeeV1ApiProxyRevision.ServerResponse.Header or
16249// (if a response was returned at all) in
16250// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
16251// whether the returned error was because http.StatusNotModified was
16252// returned.
16253func (c *OrganizationsApisRevisionsUpdateApiProxyRevisionCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProxyRevision, error) {
16254	gensupport.SetOptions(c.urlParams_, opts...)
16255	res, err := c.doRequest("json")
16256	if res != nil && res.StatusCode == http.StatusNotModified {
16257		if res.Body != nil {
16258			res.Body.Close()
16259		}
16260		return nil, &googleapi.Error{
16261			Code:   res.StatusCode,
16262			Header: res.Header,
16263		}
16264	}
16265	if err != nil {
16266		return nil, err
16267	}
16268	defer googleapi.CloseBody(res)
16269	if err := googleapi.CheckResponse(res); err != nil {
16270		return nil, err
16271	}
16272	ret := &GoogleCloudApigeeV1ApiProxyRevision{
16273		ServerResponse: googleapi.ServerResponse{
16274			Header:         res.Header,
16275			HTTPStatusCode: res.StatusCode,
16276		},
16277	}
16278	target := &ret
16279	if err := gensupport.DecodeResponse(target, res); err != nil {
16280		return nil, err
16281	}
16282	return ret, nil
16283	// {
16284	//   "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`.",
16285	//   "flatPath": "v1/organizations/{organizationsId}/apis/{apisId}/revisions/{revisionsId}",
16286	//   "httpMethod": "POST",
16287	//   "id": "apigee.organizations.apis.revisions.updateApiProxyRevision",
16288	//   "parameterOrder": [
16289	//     "name"
16290	//   ],
16291	//   "parameters": {
16292	//     "name": {
16293	//       "description": "Required. API proxy revision to update in the following format: `organizations/{org}/apis/{api}/revisions/{rev}`",
16294	//       "location": "path",
16295	//       "pattern": "^organizations/[^/]+/apis/[^/]+/revisions/[^/]+$",
16296	//       "required": true,
16297	//       "type": "string"
16298	//     },
16299	//     "validate": {
16300	//       "description": "Ignored. All uploads are validated regardless of the value of this field. Maintained for compatibility with Apigee Edge API.",
16301	//       "location": "query",
16302	//       "type": "boolean"
16303	//     }
16304	//   },
16305	//   "path": "v1/{+name}",
16306	//   "request": {
16307	//     "$ref": "GoogleApiHttpBody"
16308	//   },
16309	//   "response": {
16310	//     "$ref": "GoogleCloudApigeeV1ApiProxyRevision"
16311	//   },
16312	//   "scopes": [
16313	//     "https://www.googleapis.com/auth/cloud-platform"
16314	//   ]
16315	// }
16316
16317}
16318
16319// method id "apigee.organizations.apis.revisions.deployments.list":
16320
16321type OrganizationsApisRevisionsDeploymentsListCall struct {
16322	s            *Service
16323	parent       string
16324	urlParams_   gensupport.URLParams
16325	ifNoneMatch_ string
16326	ctx_         context.Context
16327	header_      http.Header
16328}
16329
16330// List: Lists all deployments of an API proxy revision.
16331//
16332// - parent: Name of the API proxy revision for which to return
16333//   deployment information in the following format:
16334//   `organizations/{org}/apis/{api}/revisions/{rev}`.
16335func (r *OrganizationsApisRevisionsDeploymentsService) List(parent string) *OrganizationsApisRevisionsDeploymentsListCall {
16336	c := &OrganizationsApisRevisionsDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16337	c.parent = parent
16338	return c
16339}
16340
16341// Fields allows partial responses to be retrieved. See
16342// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
16343// for more information.
16344func (c *OrganizationsApisRevisionsDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsApisRevisionsDeploymentsListCall {
16345	c.urlParams_.Set("fields", googleapi.CombineFields(s))
16346	return c
16347}
16348
16349// IfNoneMatch sets the optional parameter which makes the operation
16350// fail if the object's ETag matches the given value. This is useful for
16351// getting updates only after the object has changed since the last
16352// request. Use googleapi.IsNotModified to check whether the response
16353// error from Do is the result of In-None-Match.
16354func (c *OrganizationsApisRevisionsDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsApisRevisionsDeploymentsListCall {
16355	c.ifNoneMatch_ = entityTag
16356	return c
16357}
16358
16359// Context sets the context to be used in this call's Do method. Any
16360// pending HTTP request will be aborted if the provided context is
16361// canceled.
16362func (c *OrganizationsApisRevisionsDeploymentsListCall) Context(ctx context.Context) *OrganizationsApisRevisionsDeploymentsListCall {
16363	c.ctx_ = ctx
16364	return c
16365}
16366
16367// Header returns an http.Header that can be modified by the caller to
16368// add HTTP headers to the request.
16369func (c *OrganizationsApisRevisionsDeploymentsListCall) Header() http.Header {
16370	if c.header_ == nil {
16371		c.header_ = make(http.Header)
16372	}
16373	return c.header_
16374}
16375
16376func (c *OrganizationsApisRevisionsDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
16377	reqHeaders := make(http.Header)
16378	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
16379	for k, v := range c.header_ {
16380		reqHeaders[k] = v
16381	}
16382	reqHeaders.Set("User-Agent", c.s.userAgent())
16383	if c.ifNoneMatch_ != "" {
16384		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16385	}
16386	var body io.Reader = nil
16387	c.urlParams_.Set("alt", alt)
16388	c.urlParams_.Set("prettyPrint", "false")
16389	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
16390	urls += "?" + c.urlParams_.Encode()
16391	req, err := http.NewRequest("GET", urls, body)
16392	if err != nil {
16393		return nil, err
16394	}
16395	req.Header = reqHeaders
16396	googleapi.Expand(req.URL, map[string]string{
16397		"parent": c.parent,
16398	})
16399	return gensupport.SendRequest(c.ctx_, c.s.client, req)
16400}
16401
16402// Do executes the "apigee.organizations.apis.revisions.deployments.list" call.
16403// Exactly one of *GoogleCloudApigeeV1ListDeploymentsResponse or error
16404// will be non-nil. Any non-2xx status code is an error. Response
16405// headers are in either
16406// *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or
16407// (if a response was returned at all) in
16408// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
16409// whether the returned error was because http.StatusNotModified was
16410// returned.
16411func (c *OrganizationsApisRevisionsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
16412	gensupport.SetOptions(c.urlParams_, opts...)
16413	res, err := c.doRequest("json")
16414	if res != nil && res.StatusCode == http.StatusNotModified {
16415		if res.Body != nil {
16416			res.Body.Close()
16417		}
16418		return nil, &googleapi.Error{
16419			Code:   res.StatusCode,
16420			Header: res.Header,
16421		}
16422	}
16423	if err != nil {
16424		return nil, err
16425	}
16426	defer googleapi.CloseBody(res)
16427	if err := googleapi.CheckResponse(res); err != nil {
16428		return nil, err
16429	}
16430	ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
16431		ServerResponse: googleapi.ServerResponse{
16432			Header:         res.Header,
16433			HTTPStatusCode: res.StatusCode,
16434		},
16435	}
16436	target := &ret
16437	if err := gensupport.DecodeResponse(target, res); err != nil {
16438		return nil, err
16439	}
16440	return ret, nil
16441	// {
16442	//   "description": "Lists all deployments of an API proxy revision.",
16443	//   "flatPath": "v1/organizations/{organizationsId}/apis/{apisId}/revisions/{revisionsId}/deployments",
16444	//   "httpMethod": "GET",
16445	//   "id": "apigee.organizations.apis.revisions.deployments.list",
16446	//   "parameterOrder": [
16447	//     "parent"
16448	//   ],
16449	//   "parameters": {
16450	//     "parent": {
16451	//       "description": "Required. Name of the API proxy revision for which to return deployment information in the following format: `organizations/{org}/apis/{api}/revisions/{rev}`.",
16452	//       "location": "path",
16453	//       "pattern": "^organizations/[^/]+/apis/[^/]+/revisions/[^/]+$",
16454	//       "required": true,
16455	//       "type": "string"
16456	//     }
16457	//   },
16458	//   "path": "v1/{+parent}/deployments",
16459	//   "response": {
16460	//     "$ref": "GoogleCloudApigeeV1ListDeploymentsResponse"
16461	//   },
16462	//   "scopes": [
16463	//     "https://www.googleapis.com/auth/cloud-platform"
16464	//   ]
16465	// }
16466
16467}
16468
16469// method id "apigee.organizations.apps.get":
16470
16471type OrganizationsAppsGetCall struct {
16472	s            *Service
16473	name         string
16474	urlParams_   gensupport.URLParams
16475	ifNoneMatch_ string
16476	ctx_         context.Context
16477	header_      http.Header
16478}
16479
16480// Get: Gets the app profile for the specified app ID.
16481//
16482// - name: App ID in the following format:
16483//   `organizations/{org}/apps/{app}`.
16484func (r *OrganizationsAppsService) Get(name string) *OrganizationsAppsGetCall {
16485	c := &OrganizationsAppsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16486	c.name = name
16487	return c
16488}
16489
16490// Fields allows partial responses to be retrieved. See
16491// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
16492// for more information.
16493func (c *OrganizationsAppsGetCall) Fields(s ...googleapi.Field) *OrganizationsAppsGetCall {
16494	c.urlParams_.Set("fields", googleapi.CombineFields(s))
16495	return c
16496}
16497
16498// IfNoneMatch sets the optional parameter which makes the operation
16499// fail if the object's ETag matches the given value. This is useful for
16500// getting updates only after the object has changed since the last
16501// request. Use googleapi.IsNotModified to check whether the response
16502// error from Do is the result of In-None-Match.
16503func (c *OrganizationsAppsGetCall) IfNoneMatch(entityTag string) *OrganizationsAppsGetCall {
16504	c.ifNoneMatch_ = entityTag
16505	return c
16506}
16507
16508// Context sets the context to be used in this call's Do method. Any
16509// pending HTTP request will be aborted if the provided context is
16510// canceled.
16511func (c *OrganizationsAppsGetCall) Context(ctx context.Context) *OrganizationsAppsGetCall {
16512	c.ctx_ = ctx
16513	return c
16514}
16515
16516// Header returns an http.Header that can be modified by the caller to
16517// add HTTP headers to the request.
16518func (c *OrganizationsAppsGetCall) Header() http.Header {
16519	if c.header_ == nil {
16520		c.header_ = make(http.Header)
16521	}
16522	return c.header_
16523}
16524
16525func (c *OrganizationsAppsGetCall) doRequest(alt string) (*http.Response, error) {
16526	reqHeaders := make(http.Header)
16527	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
16528	for k, v := range c.header_ {
16529		reqHeaders[k] = v
16530	}
16531	reqHeaders.Set("User-Agent", c.s.userAgent())
16532	if c.ifNoneMatch_ != "" {
16533		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16534	}
16535	var body io.Reader = nil
16536	c.urlParams_.Set("alt", alt)
16537	c.urlParams_.Set("prettyPrint", "false")
16538	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
16539	urls += "?" + c.urlParams_.Encode()
16540	req, err := http.NewRequest("GET", urls, body)
16541	if err != nil {
16542		return nil, err
16543	}
16544	req.Header = reqHeaders
16545	googleapi.Expand(req.URL, map[string]string{
16546		"name": c.name,
16547	})
16548	return gensupport.SendRequest(c.ctx_, c.s.client, req)
16549}
16550
16551// Do executes the "apigee.organizations.apps.get" call.
16552// Exactly one of *GoogleCloudApigeeV1App or error will be non-nil. Any
16553// non-2xx status code is an error. Response headers are in either
16554// *GoogleCloudApigeeV1App.ServerResponse.Header or (if a response was
16555// returned at all) in error.(*googleapi.Error).Header. Use
16556// googleapi.IsNotModified to check whether the returned error was
16557// because http.StatusNotModified was returned.
16558func (c *OrganizationsAppsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1App, error) {
16559	gensupport.SetOptions(c.urlParams_, opts...)
16560	res, err := c.doRequest("json")
16561	if res != nil && res.StatusCode == http.StatusNotModified {
16562		if res.Body != nil {
16563			res.Body.Close()
16564		}
16565		return nil, &googleapi.Error{
16566			Code:   res.StatusCode,
16567			Header: res.Header,
16568		}
16569	}
16570	if err != nil {
16571		return nil, err
16572	}
16573	defer googleapi.CloseBody(res)
16574	if err := googleapi.CheckResponse(res); err != nil {
16575		return nil, err
16576	}
16577	ret := &GoogleCloudApigeeV1App{
16578		ServerResponse: googleapi.ServerResponse{
16579			Header:         res.Header,
16580			HTTPStatusCode: res.StatusCode,
16581		},
16582	}
16583	target := &ret
16584	if err := gensupport.DecodeResponse(target, res); err != nil {
16585		return nil, err
16586	}
16587	return ret, nil
16588	// {
16589	//   "description": "Gets the app profile for the specified app ID.",
16590	//   "flatPath": "v1/organizations/{organizationsId}/apps/{appsId}",
16591	//   "httpMethod": "GET",
16592	//   "id": "apigee.organizations.apps.get",
16593	//   "parameterOrder": [
16594	//     "name"
16595	//   ],
16596	//   "parameters": {
16597	//     "name": {
16598	//       "description": "Required. App ID in the following format: `organizations/{org}/apps/{app}`",
16599	//       "location": "path",
16600	//       "pattern": "^organizations/[^/]+/apps/[^/]+$",
16601	//       "required": true,
16602	//       "type": "string"
16603	//     }
16604	//   },
16605	//   "path": "v1/{+name}",
16606	//   "response": {
16607	//     "$ref": "GoogleCloudApigeeV1App"
16608	//   },
16609	//   "scopes": [
16610	//     "https://www.googleapis.com/auth/cloud-platform"
16611	//   ]
16612	// }
16613
16614}
16615
16616// method id "apigee.organizations.apps.list":
16617
16618type OrganizationsAppsListCall struct {
16619	s            *Service
16620	parent       string
16621	urlParams_   gensupport.URLParams
16622	ifNoneMatch_ string
16623	ctx_         context.Context
16624	header_      http.Header
16625}
16626
16627// List: Lists IDs of apps within an organization that have the
16628// specified app status (approved or revoked) or are of the specified
16629// app type (developer or company).
16630//
16631// - parent: Resource path of the parent in the following format:
16632//   `organizations/{org}`.
16633func (r *OrganizationsAppsService) List(parent string) *OrganizationsAppsListCall {
16634	c := &OrganizationsAppsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16635	c.parent = parent
16636	return c
16637}
16638
16639// ApiProduct sets the optional parameter "apiProduct": API product.
16640func (c *OrganizationsAppsListCall) ApiProduct(apiProduct string) *OrganizationsAppsListCall {
16641	c.urlParams_.Set("apiProduct", apiProduct)
16642	return c
16643}
16644
16645// Apptype sets the optional parameter "apptype": Filter by the type of
16646// the app. Valid values are `company` or `developer`. Defaults to
16647// `developer`.
16648func (c *OrganizationsAppsListCall) Apptype(apptype string) *OrganizationsAppsListCall {
16649	c.urlParams_.Set("apptype", apptype)
16650	return c
16651}
16652
16653// Expand sets the optional parameter "expand": Flag that specifies
16654// whether to return an expanded list of apps for the organization.
16655// Defaults to `false`.
16656func (c *OrganizationsAppsListCall) Expand(expand bool) *OrganizationsAppsListCall {
16657	c.urlParams_.Set("expand", fmt.Sprint(expand))
16658	return c
16659}
16660
16661// Ids sets the optional parameter "ids": Comma-separated list of app
16662// IDs on which to filter.
16663func (c *OrganizationsAppsListCall) Ids(ids string) *OrganizationsAppsListCall {
16664	c.urlParams_.Set("ids", ids)
16665	return c
16666}
16667
16668// IncludeCred sets the optional parameter "includeCred": Flag that
16669// specifies whether to include credentials in the response.
16670func (c *OrganizationsAppsListCall) IncludeCred(includeCred bool) *OrganizationsAppsListCall {
16671	c.urlParams_.Set("includeCred", fmt.Sprint(includeCred))
16672	return c
16673}
16674
16675// KeyStatus sets the optional parameter "keyStatus": Key status of the
16676// app. Valid values include `approved` or `revoked`. Defaults to
16677// `approved`.
16678func (c *OrganizationsAppsListCall) KeyStatus(keyStatus string) *OrganizationsAppsListCall {
16679	c.urlParams_.Set("keyStatus", keyStatus)
16680	return c
16681}
16682
16683// Rows sets the optional parameter "rows": Maximum number of app IDs to
16684// return. Defaults to 10000.
16685func (c *OrganizationsAppsListCall) Rows(rows int64) *OrganizationsAppsListCall {
16686	c.urlParams_.Set("rows", fmt.Sprint(rows))
16687	return c
16688}
16689
16690// StartKey sets the optional parameter "startKey": Returns the list of
16691// apps starting from the specified app ID.
16692func (c *OrganizationsAppsListCall) StartKey(startKey string) *OrganizationsAppsListCall {
16693	c.urlParams_.Set("startKey", startKey)
16694	return c
16695}
16696
16697// Status sets the optional parameter "status": Filter by the status of
16698// the app. Valid values are `approved` or `revoked`. Defaults to
16699// `approved`.
16700func (c *OrganizationsAppsListCall) Status(status string) *OrganizationsAppsListCall {
16701	c.urlParams_.Set("status", status)
16702	return c
16703}
16704
16705// Fields allows partial responses to be retrieved. See
16706// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
16707// for more information.
16708func (c *OrganizationsAppsListCall) Fields(s ...googleapi.Field) *OrganizationsAppsListCall {
16709	c.urlParams_.Set("fields", googleapi.CombineFields(s))
16710	return c
16711}
16712
16713// IfNoneMatch sets the optional parameter which makes the operation
16714// fail if the object's ETag matches the given value. This is useful for
16715// getting updates only after the object has changed since the last
16716// request. Use googleapi.IsNotModified to check whether the response
16717// error from Do is the result of In-None-Match.
16718func (c *OrganizationsAppsListCall) IfNoneMatch(entityTag string) *OrganizationsAppsListCall {
16719	c.ifNoneMatch_ = entityTag
16720	return c
16721}
16722
16723// Context sets the context to be used in this call's Do method. Any
16724// pending HTTP request will be aborted if the provided context is
16725// canceled.
16726func (c *OrganizationsAppsListCall) Context(ctx context.Context) *OrganizationsAppsListCall {
16727	c.ctx_ = ctx
16728	return c
16729}
16730
16731// Header returns an http.Header that can be modified by the caller to
16732// add HTTP headers to the request.
16733func (c *OrganizationsAppsListCall) Header() http.Header {
16734	if c.header_ == nil {
16735		c.header_ = make(http.Header)
16736	}
16737	return c.header_
16738}
16739
16740func (c *OrganizationsAppsListCall) doRequest(alt string) (*http.Response, error) {
16741	reqHeaders := make(http.Header)
16742	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
16743	for k, v := range c.header_ {
16744		reqHeaders[k] = v
16745	}
16746	reqHeaders.Set("User-Agent", c.s.userAgent())
16747	if c.ifNoneMatch_ != "" {
16748		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16749	}
16750	var body io.Reader = nil
16751	c.urlParams_.Set("alt", alt)
16752	c.urlParams_.Set("prettyPrint", "false")
16753	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apps")
16754	urls += "?" + c.urlParams_.Encode()
16755	req, err := http.NewRequest("GET", urls, body)
16756	if err != nil {
16757		return nil, err
16758	}
16759	req.Header = reqHeaders
16760	googleapi.Expand(req.URL, map[string]string{
16761		"parent": c.parent,
16762	})
16763	return gensupport.SendRequest(c.ctx_, c.s.client, req)
16764}
16765
16766// Do executes the "apigee.organizations.apps.list" call.
16767// Exactly one of *GoogleCloudApigeeV1ListAppsResponse or error will be
16768// non-nil. Any non-2xx status code is an error. Response headers are in
16769// either *GoogleCloudApigeeV1ListAppsResponse.ServerResponse.Header or
16770// (if a response was returned at all) in
16771// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
16772// whether the returned error was because http.StatusNotModified was
16773// returned.
16774func (c *OrganizationsAppsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListAppsResponse, error) {
16775	gensupport.SetOptions(c.urlParams_, opts...)
16776	res, err := c.doRequest("json")
16777	if res != nil && res.StatusCode == http.StatusNotModified {
16778		if res.Body != nil {
16779			res.Body.Close()
16780		}
16781		return nil, &googleapi.Error{
16782			Code:   res.StatusCode,
16783			Header: res.Header,
16784		}
16785	}
16786	if err != nil {
16787		return nil, err
16788	}
16789	defer googleapi.CloseBody(res)
16790	if err := googleapi.CheckResponse(res); err != nil {
16791		return nil, err
16792	}
16793	ret := &GoogleCloudApigeeV1ListAppsResponse{
16794		ServerResponse: googleapi.ServerResponse{
16795			Header:         res.Header,
16796			HTTPStatusCode: res.StatusCode,
16797		},
16798	}
16799	target := &ret
16800	if err := gensupport.DecodeResponse(target, res); err != nil {
16801		return nil, err
16802	}
16803	return ret, nil
16804	// {
16805	//   "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).",
16806	//   "flatPath": "v1/organizations/{organizationsId}/apps",
16807	//   "httpMethod": "GET",
16808	//   "id": "apigee.organizations.apps.list",
16809	//   "parameterOrder": [
16810	//     "parent"
16811	//   ],
16812	//   "parameters": {
16813	//     "apiProduct": {
16814	//       "description": "API product.",
16815	//       "location": "query",
16816	//       "type": "string"
16817	//     },
16818	//     "apptype": {
16819	//       "description": "Optional. Filter by the type of the app. Valid values are `company` or `developer`. Defaults to `developer`.",
16820	//       "location": "query",
16821	//       "type": "string"
16822	//     },
16823	//     "expand": {
16824	//       "description": "Optional. Flag that specifies whether to return an expanded list of apps for the organization. Defaults to `false`.",
16825	//       "location": "query",
16826	//       "type": "boolean"
16827	//     },
16828	//     "ids": {
16829	//       "description": "Optional. Comma-separated list of app IDs on which to filter.",
16830	//       "location": "query",
16831	//       "type": "string"
16832	//     },
16833	//     "includeCred": {
16834	//       "description": "Optional. Flag that specifies whether to include credentials in the response.",
16835	//       "location": "query",
16836	//       "type": "boolean"
16837	//     },
16838	//     "keyStatus": {
16839	//       "description": "Optional. Key status of the app. Valid values include `approved` or `revoked`. Defaults to `approved`.",
16840	//       "location": "query",
16841	//       "type": "string"
16842	//     },
16843	//     "parent": {
16844	//       "description": "Required. Resource path of the parent in the following format: `organizations/{org}`",
16845	//       "location": "path",
16846	//       "pattern": "^organizations/[^/]+$",
16847	//       "required": true,
16848	//       "type": "string"
16849	//     },
16850	//     "rows": {
16851	//       "description": "Optional. Maximum number of app IDs to return. Defaults to 10000.",
16852	//       "format": "int64",
16853	//       "location": "query",
16854	//       "type": "string"
16855	//     },
16856	//     "startKey": {
16857	//       "description": "Returns the list of apps starting from the specified app ID.",
16858	//       "location": "query",
16859	//       "type": "string"
16860	//     },
16861	//     "status": {
16862	//       "description": "Optional. Filter by the status of the app. Valid values are `approved` or `revoked`. Defaults to `approved`.",
16863	//       "location": "query",
16864	//       "type": "string"
16865	//     }
16866	//   },
16867	//   "path": "v1/{+parent}/apps",
16868	//   "response": {
16869	//     "$ref": "GoogleCloudApigeeV1ListAppsResponse"
16870	//   },
16871	//   "scopes": [
16872	//     "https://www.googleapis.com/auth/cloud-platform"
16873	//   ]
16874	// }
16875
16876}
16877
16878// method id "apigee.organizations.datacollectors.create":
16879
16880type OrganizationsDatacollectorsCreateCall struct {
16881	s                                *Service
16882	parent                           string
16883	googlecloudapigeev1datacollector *GoogleCloudApigeeV1DataCollector
16884	urlParams_                       gensupport.URLParams
16885	ctx_                             context.Context
16886	header_                          http.Header
16887}
16888
16889// Create: Creates a new data collector.
16890//
16891// - parent: Name of the organization in which to create the data
16892//   collector in the following format: `organizations/{org}`.
16893func (r *OrganizationsDatacollectorsService) Create(parent string, googlecloudapigeev1datacollector *GoogleCloudApigeeV1DataCollector) *OrganizationsDatacollectorsCreateCall {
16894	c := &OrganizationsDatacollectorsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16895	c.parent = parent
16896	c.googlecloudapigeev1datacollector = googlecloudapigeev1datacollector
16897	return c
16898}
16899
16900// DataCollectorId sets the optional parameter "dataCollectorId": ID of
16901// the data collector. Overrides any ID in the data collector resource.
16902// Must begin with `dc_`.
16903func (c *OrganizationsDatacollectorsCreateCall) DataCollectorId(dataCollectorId string) *OrganizationsDatacollectorsCreateCall {
16904	c.urlParams_.Set("dataCollectorId", dataCollectorId)
16905	return c
16906}
16907
16908// Fields allows partial responses to be retrieved. See
16909// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
16910// for more information.
16911func (c *OrganizationsDatacollectorsCreateCall) Fields(s ...googleapi.Field) *OrganizationsDatacollectorsCreateCall {
16912	c.urlParams_.Set("fields", googleapi.CombineFields(s))
16913	return c
16914}
16915
16916// Context sets the context to be used in this call's Do method. Any
16917// pending HTTP request will be aborted if the provided context is
16918// canceled.
16919func (c *OrganizationsDatacollectorsCreateCall) Context(ctx context.Context) *OrganizationsDatacollectorsCreateCall {
16920	c.ctx_ = ctx
16921	return c
16922}
16923
16924// Header returns an http.Header that can be modified by the caller to
16925// add HTTP headers to the request.
16926func (c *OrganizationsDatacollectorsCreateCall) Header() http.Header {
16927	if c.header_ == nil {
16928		c.header_ = make(http.Header)
16929	}
16930	return c.header_
16931}
16932
16933func (c *OrganizationsDatacollectorsCreateCall) doRequest(alt string) (*http.Response, error) {
16934	reqHeaders := make(http.Header)
16935	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
16936	for k, v := range c.header_ {
16937		reqHeaders[k] = v
16938	}
16939	reqHeaders.Set("User-Agent", c.s.userAgent())
16940	var body io.Reader = nil
16941	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1datacollector)
16942	if err != nil {
16943		return nil, err
16944	}
16945	reqHeaders.Set("Content-Type", "application/json")
16946	c.urlParams_.Set("alt", alt)
16947	c.urlParams_.Set("prettyPrint", "false")
16948	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/datacollectors")
16949	urls += "?" + c.urlParams_.Encode()
16950	req, err := http.NewRequest("POST", urls, body)
16951	if err != nil {
16952		return nil, err
16953	}
16954	req.Header = reqHeaders
16955	googleapi.Expand(req.URL, map[string]string{
16956		"parent": c.parent,
16957	})
16958	return gensupport.SendRequest(c.ctx_, c.s.client, req)
16959}
16960
16961// Do executes the "apigee.organizations.datacollectors.create" call.
16962// Exactly one of *GoogleCloudApigeeV1DataCollector or error will be
16963// non-nil. Any non-2xx status code is an error. Response headers are in
16964// either *GoogleCloudApigeeV1DataCollector.ServerResponse.Header or (if
16965// a response was returned at all) in error.(*googleapi.Error).Header.
16966// Use googleapi.IsNotModified to check whether the returned error was
16967// because http.StatusNotModified was returned.
16968func (c *OrganizationsDatacollectorsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DataCollector, error) {
16969	gensupport.SetOptions(c.urlParams_, opts...)
16970	res, err := c.doRequest("json")
16971	if res != nil && res.StatusCode == http.StatusNotModified {
16972		if res.Body != nil {
16973			res.Body.Close()
16974		}
16975		return nil, &googleapi.Error{
16976			Code:   res.StatusCode,
16977			Header: res.Header,
16978		}
16979	}
16980	if err != nil {
16981		return nil, err
16982	}
16983	defer googleapi.CloseBody(res)
16984	if err := googleapi.CheckResponse(res); err != nil {
16985		return nil, err
16986	}
16987	ret := &GoogleCloudApigeeV1DataCollector{
16988		ServerResponse: googleapi.ServerResponse{
16989			Header:         res.Header,
16990			HTTPStatusCode: res.StatusCode,
16991		},
16992	}
16993	target := &ret
16994	if err := gensupport.DecodeResponse(target, res); err != nil {
16995		return nil, err
16996	}
16997	return ret, nil
16998	// {
16999	//   "description": "Creates a new data collector.",
17000	//   "flatPath": "v1/organizations/{organizationsId}/datacollectors",
17001	//   "httpMethod": "POST",
17002	//   "id": "apigee.organizations.datacollectors.create",
17003	//   "parameterOrder": [
17004	//     "parent"
17005	//   ],
17006	//   "parameters": {
17007	//     "dataCollectorId": {
17008	//       "description": "ID of the data collector. Overrides any ID in the data collector resource. Must begin with `dc_`.",
17009	//       "location": "query",
17010	//       "type": "string"
17011	//     },
17012	//     "parent": {
17013	//       "description": "Required. Name of the organization in which to create the data collector in the following format: `organizations/{org}`.",
17014	//       "location": "path",
17015	//       "pattern": "^organizations/[^/]+$",
17016	//       "required": true,
17017	//       "type": "string"
17018	//     }
17019	//   },
17020	//   "path": "v1/{+parent}/datacollectors",
17021	//   "request": {
17022	//     "$ref": "GoogleCloudApigeeV1DataCollector"
17023	//   },
17024	//   "response": {
17025	//     "$ref": "GoogleCloudApigeeV1DataCollector"
17026	//   },
17027	//   "scopes": [
17028	//     "https://www.googleapis.com/auth/cloud-platform"
17029	//   ]
17030	// }
17031
17032}
17033
17034// method id "apigee.organizations.datacollectors.delete":
17035
17036type OrganizationsDatacollectorsDeleteCall struct {
17037	s          *Service
17038	name       string
17039	urlParams_ gensupport.URLParams
17040	ctx_       context.Context
17041	header_    http.Header
17042}
17043
17044// Delete: Deletes a data collector.
17045//
17046// - name: Name of the data collector in the following format:
17047//   `organizations/{org}/datacollectors/{data_collector_id}`.
17048func (r *OrganizationsDatacollectorsService) Delete(name string) *OrganizationsDatacollectorsDeleteCall {
17049	c := &OrganizationsDatacollectorsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17050	c.name = name
17051	return c
17052}
17053
17054// Fields allows partial responses to be retrieved. See
17055// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
17056// for more information.
17057func (c *OrganizationsDatacollectorsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDatacollectorsDeleteCall {
17058	c.urlParams_.Set("fields", googleapi.CombineFields(s))
17059	return c
17060}
17061
17062// Context sets the context to be used in this call's Do method. Any
17063// pending HTTP request will be aborted if the provided context is
17064// canceled.
17065func (c *OrganizationsDatacollectorsDeleteCall) Context(ctx context.Context) *OrganizationsDatacollectorsDeleteCall {
17066	c.ctx_ = ctx
17067	return c
17068}
17069
17070// Header returns an http.Header that can be modified by the caller to
17071// add HTTP headers to the request.
17072func (c *OrganizationsDatacollectorsDeleteCall) Header() http.Header {
17073	if c.header_ == nil {
17074		c.header_ = make(http.Header)
17075	}
17076	return c.header_
17077}
17078
17079func (c *OrganizationsDatacollectorsDeleteCall) doRequest(alt string) (*http.Response, error) {
17080	reqHeaders := make(http.Header)
17081	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
17082	for k, v := range c.header_ {
17083		reqHeaders[k] = v
17084	}
17085	reqHeaders.Set("User-Agent", c.s.userAgent())
17086	var body io.Reader = nil
17087	c.urlParams_.Set("alt", alt)
17088	c.urlParams_.Set("prettyPrint", "false")
17089	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
17090	urls += "?" + c.urlParams_.Encode()
17091	req, err := http.NewRequest("DELETE", urls, body)
17092	if err != nil {
17093		return nil, err
17094	}
17095	req.Header = reqHeaders
17096	googleapi.Expand(req.URL, map[string]string{
17097		"name": c.name,
17098	})
17099	return gensupport.SendRequest(c.ctx_, c.s.client, req)
17100}
17101
17102// Do executes the "apigee.organizations.datacollectors.delete" call.
17103// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
17104// non-2xx status code is an error. Response headers are in either
17105// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
17106// returned at all) in error.(*googleapi.Error).Header. Use
17107// googleapi.IsNotModified to check whether the returned error was
17108// because http.StatusNotModified was returned.
17109func (c *OrganizationsDatacollectorsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
17110	gensupport.SetOptions(c.urlParams_, opts...)
17111	res, err := c.doRequest("json")
17112	if res != nil && res.StatusCode == http.StatusNotModified {
17113		if res.Body != nil {
17114			res.Body.Close()
17115		}
17116		return nil, &googleapi.Error{
17117			Code:   res.StatusCode,
17118			Header: res.Header,
17119		}
17120	}
17121	if err != nil {
17122		return nil, err
17123	}
17124	defer googleapi.CloseBody(res)
17125	if err := googleapi.CheckResponse(res); err != nil {
17126		return nil, err
17127	}
17128	ret := &GoogleProtobufEmpty{
17129		ServerResponse: googleapi.ServerResponse{
17130			Header:         res.Header,
17131			HTTPStatusCode: res.StatusCode,
17132		},
17133	}
17134	target := &ret
17135	if err := gensupport.DecodeResponse(target, res); err != nil {
17136		return nil, err
17137	}
17138	return ret, nil
17139	// {
17140	//   "description": "Deletes a data collector.",
17141	//   "flatPath": "v1/organizations/{organizationsId}/datacollectors/{datacollectorsId}",
17142	//   "httpMethod": "DELETE",
17143	//   "id": "apigee.organizations.datacollectors.delete",
17144	//   "parameterOrder": [
17145	//     "name"
17146	//   ],
17147	//   "parameters": {
17148	//     "name": {
17149	//       "description": "Required. Name of the data collector in the following format: `organizations/{org}/datacollectors/{data_collector_id}`.",
17150	//       "location": "path",
17151	//       "pattern": "^organizations/[^/]+/datacollectors/[^/]+$",
17152	//       "required": true,
17153	//       "type": "string"
17154	//     }
17155	//   },
17156	//   "path": "v1/{+name}",
17157	//   "response": {
17158	//     "$ref": "GoogleProtobufEmpty"
17159	//   },
17160	//   "scopes": [
17161	//     "https://www.googleapis.com/auth/cloud-platform"
17162	//   ]
17163	// }
17164
17165}
17166
17167// method id "apigee.organizations.datacollectors.get":
17168
17169type OrganizationsDatacollectorsGetCall struct {
17170	s            *Service
17171	name         string
17172	urlParams_   gensupport.URLParams
17173	ifNoneMatch_ string
17174	ctx_         context.Context
17175	header_      http.Header
17176}
17177
17178// Get: Gets a data collector.
17179//
17180// - name: Name of the data collector in the following format:
17181//   `organizations/{org}/datacollectors/{data_collector_id}`.
17182func (r *OrganizationsDatacollectorsService) Get(name string) *OrganizationsDatacollectorsGetCall {
17183	c := &OrganizationsDatacollectorsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17184	c.name = name
17185	return c
17186}
17187
17188// Fields allows partial responses to be retrieved. See
17189// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
17190// for more information.
17191func (c *OrganizationsDatacollectorsGetCall) Fields(s ...googleapi.Field) *OrganizationsDatacollectorsGetCall {
17192	c.urlParams_.Set("fields", googleapi.CombineFields(s))
17193	return c
17194}
17195
17196// IfNoneMatch sets the optional parameter which makes the operation
17197// fail if the object's ETag matches the given value. This is useful for
17198// getting updates only after the object has changed since the last
17199// request. Use googleapi.IsNotModified to check whether the response
17200// error from Do is the result of In-None-Match.
17201func (c *OrganizationsDatacollectorsGetCall) IfNoneMatch(entityTag string) *OrganizationsDatacollectorsGetCall {
17202	c.ifNoneMatch_ = entityTag
17203	return c
17204}
17205
17206// Context sets the context to be used in this call's Do method. Any
17207// pending HTTP request will be aborted if the provided context is
17208// canceled.
17209func (c *OrganizationsDatacollectorsGetCall) Context(ctx context.Context) *OrganizationsDatacollectorsGetCall {
17210	c.ctx_ = ctx
17211	return c
17212}
17213
17214// Header returns an http.Header that can be modified by the caller to
17215// add HTTP headers to the request.
17216func (c *OrganizationsDatacollectorsGetCall) Header() http.Header {
17217	if c.header_ == nil {
17218		c.header_ = make(http.Header)
17219	}
17220	return c.header_
17221}
17222
17223func (c *OrganizationsDatacollectorsGetCall) doRequest(alt string) (*http.Response, error) {
17224	reqHeaders := make(http.Header)
17225	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
17226	for k, v := range c.header_ {
17227		reqHeaders[k] = v
17228	}
17229	reqHeaders.Set("User-Agent", c.s.userAgent())
17230	if c.ifNoneMatch_ != "" {
17231		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
17232	}
17233	var body io.Reader = nil
17234	c.urlParams_.Set("alt", alt)
17235	c.urlParams_.Set("prettyPrint", "false")
17236	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
17237	urls += "?" + c.urlParams_.Encode()
17238	req, err := http.NewRequest("GET", urls, body)
17239	if err != nil {
17240		return nil, err
17241	}
17242	req.Header = reqHeaders
17243	googleapi.Expand(req.URL, map[string]string{
17244		"name": c.name,
17245	})
17246	return gensupport.SendRequest(c.ctx_, c.s.client, req)
17247}
17248
17249// Do executes the "apigee.organizations.datacollectors.get" call.
17250// Exactly one of *GoogleCloudApigeeV1DataCollector or error will be
17251// non-nil. Any non-2xx status code is an error. Response headers are in
17252// either *GoogleCloudApigeeV1DataCollector.ServerResponse.Header or (if
17253// a response was returned at all) in error.(*googleapi.Error).Header.
17254// Use googleapi.IsNotModified to check whether the returned error was
17255// because http.StatusNotModified was returned.
17256func (c *OrganizationsDatacollectorsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DataCollector, error) {
17257	gensupport.SetOptions(c.urlParams_, opts...)
17258	res, err := c.doRequest("json")
17259	if res != nil && res.StatusCode == http.StatusNotModified {
17260		if res.Body != nil {
17261			res.Body.Close()
17262		}
17263		return nil, &googleapi.Error{
17264			Code:   res.StatusCode,
17265			Header: res.Header,
17266		}
17267	}
17268	if err != nil {
17269		return nil, err
17270	}
17271	defer googleapi.CloseBody(res)
17272	if err := googleapi.CheckResponse(res); err != nil {
17273		return nil, err
17274	}
17275	ret := &GoogleCloudApigeeV1DataCollector{
17276		ServerResponse: googleapi.ServerResponse{
17277			Header:         res.Header,
17278			HTTPStatusCode: res.StatusCode,
17279		},
17280	}
17281	target := &ret
17282	if err := gensupport.DecodeResponse(target, res); err != nil {
17283		return nil, err
17284	}
17285	return ret, nil
17286	// {
17287	//   "description": "Gets a data collector.",
17288	//   "flatPath": "v1/organizations/{organizationsId}/datacollectors/{datacollectorsId}",
17289	//   "httpMethod": "GET",
17290	//   "id": "apigee.organizations.datacollectors.get",
17291	//   "parameterOrder": [
17292	//     "name"
17293	//   ],
17294	//   "parameters": {
17295	//     "name": {
17296	//       "description": "Required. Name of the data collector in the following format: `organizations/{org}/datacollectors/{data_collector_id}`.",
17297	//       "location": "path",
17298	//       "pattern": "^organizations/[^/]+/datacollectors/[^/]+$",
17299	//       "required": true,
17300	//       "type": "string"
17301	//     }
17302	//   },
17303	//   "path": "v1/{+name}",
17304	//   "response": {
17305	//     "$ref": "GoogleCloudApigeeV1DataCollector"
17306	//   },
17307	//   "scopes": [
17308	//     "https://www.googleapis.com/auth/cloud-platform"
17309	//   ]
17310	// }
17311
17312}
17313
17314// method id "apigee.organizations.datacollectors.list":
17315
17316type OrganizationsDatacollectorsListCall struct {
17317	s            *Service
17318	parent       string
17319	urlParams_   gensupport.URLParams
17320	ifNoneMatch_ string
17321	ctx_         context.Context
17322	header_      http.Header
17323}
17324
17325// List: Lists all data collectors.
17326//
17327// - parent: Name of the organization for which to list data collectors
17328//   in the following format: `organizations/{org}`.
17329func (r *OrganizationsDatacollectorsService) List(parent string) *OrganizationsDatacollectorsListCall {
17330	c := &OrganizationsDatacollectorsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17331	c.parent = parent
17332	return c
17333}
17334
17335// PageSize sets the optional parameter "pageSize": Maximum number of
17336// data collectors to return. The page size defaults to 25.
17337func (c *OrganizationsDatacollectorsListCall) PageSize(pageSize int64) *OrganizationsDatacollectorsListCall {
17338	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
17339	return c
17340}
17341
17342// PageToken sets the optional parameter "pageToken": Page token,
17343// returned from a previous ListDataCollectors call, that you can use to
17344// retrieve the next page.
17345func (c *OrganizationsDatacollectorsListCall) PageToken(pageToken string) *OrganizationsDatacollectorsListCall {
17346	c.urlParams_.Set("pageToken", pageToken)
17347	return c
17348}
17349
17350// Fields allows partial responses to be retrieved. See
17351// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
17352// for more information.
17353func (c *OrganizationsDatacollectorsListCall) Fields(s ...googleapi.Field) *OrganizationsDatacollectorsListCall {
17354	c.urlParams_.Set("fields", googleapi.CombineFields(s))
17355	return c
17356}
17357
17358// IfNoneMatch sets the optional parameter which makes the operation
17359// fail if the object's ETag matches the given value. This is useful for
17360// getting updates only after the object has changed since the last
17361// request. Use googleapi.IsNotModified to check whether the response
17362// error from Do is the result of In-None-Match.
17363func (c *OrganizationsDatacollectorsListCall) IfNoneMatch(entityTag string) *OrganizationsDatacollectorsListCall {
17364	c.ifNoneMatch_ = entityTag
17365	return c
17366}
17367
17368// Context sets the context to be used in this call's Do method. Any
17369// pending HTTP request will be aborted if the provided context is
17370// canceled.
17371func (c *OrganizationsDatacollectorsListCall) Context(ctx context.Context) *OrganizationsDatacollectorsListCall {
17372	c.ctx_ = ctx
17373	return c
17374}
17375
17376// Header returns an http.Header that can be modified by the caller to
17377// add HTTP headers to the request.
17378func (c *OrganizationsDatacollectorsListCall) Header() http.Header {
17379	if c.header_ == nil {
17380		c.header_ = make(http.Header)
17381	}
17382	return c.header_
17383}
17384
17385func (c *OrganizationsDatacollectorsListCall) doRequest(alt string) (*http.Response, error) {
17386	reqHeaders := make(http.Header)
17387	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
17388	for k, v := range c.header_ {
17389		reqHeaders[k] = v
17390	}
17391	reqHeaders.Set("User-Agent", c.s.userAgent())
17392	if c.ifNoneMatch_ != "" {
17393		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
17394	}
17395	var body io.Reader = nil
17396	c.urlParams_.Set("alt", alt)
17397	c.urlParams_.Set("prettyPrint", "false")
17398	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/datacollectors")
17399	urls += "?" + c.urlParams_.Encode()
17400	req, err := http.NewRequest("GET", urls, body)
17401	if err != nil {
17402		return nil, err
17403	}
17404	req.Header = reqHeaders
17405	googleapi.Expand(req.URL, map[string]string{
17406		"parent": c.parent,
17407	})
17408	return gensupport.SendRequest(c.ctx_, c.s.client, req)
17409}
17410
17411// Do executes the "apigee.organizations.datacollectors.list" call.
17412// Exactly one of *GoogleCloudApigeeV1ListDataCollectorsResponse or
17413// error will be non-nil. Any non-2xx status code is an error. Response
17414// headers are in either
17415// *GoogleCloudApigeeV1ListDataCollectorsResponse.ServerResponse.Header
17416// or (if a response was returned at all) in
17417// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
17418// whether the returned error was because http.StatusNotModified was
17419// returned.
17420func (c *OrganizationsDatacollectorsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDataCollectorsResponse, error) {
17421	gensupport.SetOptions(c.urlParams_, opts...)
17422	res, err := c.doRequest("json")
17423	if res != nil && res.StatusCode == http.StatusNotModified {
17424		if res.Body != nil {
17425			res.Body.Close()
17426		}
17427		return nil, &googleapi.Error{
17428			Code:   res.StatusCode,
17429			Header: res.Header,
17430		}
17431	}
17432	if err != nil {
17433		return nil, err
17434	}
17435	defer googleapi.CloseBody(res)
17436	if err := googleapi.CheckResponse(res); err != nil {
17437		return nil, err
17438	}
17439	ret := &GoogleCloudApigeeV1ListDataCollectorsResponse{
17440		ServerResponse: googleapi.ServerResponse{
17441			Header:         res.Header,
17442			HTTPStatusCode: res.StatusCode,
17443		},
17444	}
17445	target := &ret
17446	if err := gensupport.DecodeResponse(target, res); err != nil {
17447		return nil, err
17448	}
17449	return ret, nil
17450	// {
17451	//   "description": "Lists all data collectors.",
17452	//   "flatPath": "v1/organizations/{organizationsId}/datacollectors",
17453	//   "httpMethod": "GET",
17454	//   "id": "apigee.organizations.datacollectors.list",
17455	//   "parameterOrder": [
17456	//     "parent"
17457	//   ],
17458	//   "parameters": {
17459	//     "pageSize": {
17460	//       "description": "Maximum number of data collectors to return. The page size defaults to 25.",
17461	//       "format": "int32",
17462	//       "location": "query",
17463	//       "type": "integer"
17464	//     },
17465	//     "pageToken": {
17466	//       "description": "Page token, returned from a previous ListDataCollectors call, that you can use to retrieve the next page.",
17467	//       "location": "query",
17468	//       "type": "string"
17469	//     },
17470	//     "parent": {
17471	//       "description": "Required. Name of the organization for which to list data collectors in the following format: `organizations/{org}`.",
17472	//       "location": "path",
17473	//       "pattern": "^organizations/[^/]+$",
17474	//       "required": true,
17475	//       "type": "string"
17476	//     }
17477	//   },
17478	//   "path": "v1/{+parent}/datacollectors",
17479	//   "response": {
17480	//     "$ref": "GoogleCloudApigeeV1ListDataCollectorsResponse"
17481	//   },
17482	//   "scopes": [
17483	//     "https://www.googleapis.com/auth/cloud-platform"
17484	//   ]
17485	// }
17486
17487}
17488
17489// Pages invokes f for each page of results.
17490// A non-nil error returned from f will halt the iteration.
17491// The provided context supersedes any context provided to the Context method.
17492func (c *OrganizationsDatacollectorsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListDataCollectorsResponse) error) error {
17493	c.ctx_ = ctx
17494	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
17495	for {
17496		x, err := c.Do()
17497		if err != nil {
17498			return err
17499		}
17500		if err := f(x); err != nil {
17501			return err
17502		}
17503		if x.NextPageToken == "" {
17504			return nil
17505		}
17506		c.PageToken(x.NextPageToken)
17507	}
17508}
17509
17510// method id "apigee.organizations.datacollectors.patch":
17511
17512type OrganizationsDatacollectorsPatchCall struct {
17513	s                                *Service
17514	name                             string
17515	googlecloudapigeev1datacollector *GoogleCloudApigeeV1DataCollector
17516	urlParams_                       gensupport.URLParams
17517	ctx_                             context.Context
17518	header_                          http.Header
17519}
17520
17521// Patch: Updates a data collector.
17522//
17523// - name: Name of the data collector in the following format:
17524//   `organizations/{org}/datacollectors/{data_collector_id}`.
17525func (r *OrganizationsDatacollectorsService) Patch(name string, googlecloudapigeev1datacollector *GoogleCloudApigeeV1DataCollector) *OrganizationsDatacollectorsPatchCall {
17526	c := &OrganizationsDatacollectorsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17527	c.name = name
17528	c.googlecloudapigeev1datacollector = googlecloudapigeev1datacollector
17529	return c
17530}
17531
17532// UpdateMask sets the optional parameter "updateMask": List of fields
17533// to be updated.
17534func (c *OrganizationsDatacollectorsPatchCall) UpdateMask(updateMask string) *OrganizationsDatacollectorsPatchCall {
17535	c.urlParams_.Set("updateMask", updateMask)
17536	return c
17537}
17538
17539// Fields allows partial responses to be retrieved. See
17540// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
17541// for more information.
17542func (c *OrganizationsDatacollectorsPatchCall) Fields(s ...googleapi.Field) *OrganizationsDatacollectorsPatchCall {
17543	c.urlParams_.Set("fields", googleapi.CombineFields(s))
17544	return c
17545}
17546
17547// Context sets the context to be used in this call's Do method. Any
17548// pending HTTP request will be aborted if the provided context is
17549// canceled.
17550func (c *OrganizationsDatacollectorsPatchCall) Context(ctx context.Context) *OrganizationsDatacollectorsPatchCall {
17551	c.ctx_ = ctx
17552	return c
17553}
17554
17555// Header returns an http.Header that can be modified by the caller to
17556// add HTTP headers to the request.
17557func (c *OrganizationsDatacollectorsPatchCall) Header() http.Header {
17558	if c.header_ == nil {
17559		c.header_ = make(http.Header)
17560	}
17561	return c.header_
17562}
17563
17564func (c *OrganizationsDatacollectorsPatchCall) doRequest(alt string) (*http.Response, error) {
17565	reqHeaders := make(http.Header)
17566	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
17567	for k, v := range c.header_ {
17568		reqHeaders[k] = v
17569	}
17570	reqHeaders.Set("User-Agent", c.s.userAgent())
17571	var body io.Reader = nil
17572	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1datacollector)
17573	if err != nil {
17574		return nil, err
17575	}
17576	reqHeaders.Set("Content-Type", "application/json")
17577	c.urlParams_.Set("alt", alt)
17578	c.urlParams_.Set("prettyPrint", "false")
17579	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
17580	urls += "?" + c.urlParams_.Encode()
17581	req, err := http.NewRequest("PATCH", urls, body)
17582	if err != nil {
17583		return nil, err
17584	}
17585	req.Header = reqHeaders
17586	googleapi.Expand(req.URL, map[string]string{
17587		"name": c.name,
17588	})
17589	return gensupport.SendRequest(c.ctx_, c.s.client, req)
17590}
17591
17592// Do executes the "apigee.organizations.datacollectors.patch" call.
17593// Exactly one of *GoogleCloudApigeeV1DataCollector or error will be
17594// non-nil. Any non-2xx status code is an error. Response headers are in
17595// either *GoogleCloudApigeeV1DataCollector.ServerResponse.Header or (if
17596// a response was returned at all) in error.(*googleapi.Error).Header.
17597// Use googleapi.IsNotModified to check whether the returned error was
17598// because http.StatusNotModified was returned.
17599func (c *OrganizationsDatacollectorsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DataCollector, error) {
17600	gensupport.SetOptions(c.urlParams_, opts...)
17601	res, err := c.doRequest("json")
17602	if res != nil && res.StatusCode == http.StatusNotModified {
17603		if res.Body != nil {
17604			res.Body.Close()
17605		}
17606		return nil, &googleapi.Error{
17607			Code:   res.StatusCode,
17608			Header: res.Header,
17609		}
17610	}
17611	if err != nil {
17612		return nil, err
17613	}
17614	defer googleapi.CloseBody(res)
17615	if err := googleapi.CheckResponse(res); err != nil {
17616		return nil, err
17617	}
17618	ret := &GoogleCloudApigeeV1DataCollector{
17619		ServerResponse: googleapi.ServerResponse{
17620			Header:         res.Header,
17621			HTTPStatusCode: res.StatusCode,
17622		},
17623	}
17624	target := &ret
17625	if err := gensupport.DecodeResponse(target, res); err != nil {
17626		return nil, err
17627	}
17628	return ret, nil
17629	// {
17630	//   "description": "Updates a data collector.",
17631	//   "flatPath": "v1/organizations/{organizationsId}/datacollectors/{datacollectorsId}",
17632	//   "httpMethod": "PATCH",
17633	//   "id": "apigee.organizations.datacollectors.patch",
17634	//   "parameterOrder": [
17635	//     "name"
17636	//   ],
17637	//   "parameters": {
17638	//     "name": {
17639	//       "description": "Required. Name of the data collector in the following format: `organizations/{org}/datacollectors/{data_collector_id}`.",
17640	//       "location": "path",
17641	//       "pattern": "^organizations/[^/]+/datacollectors/[^/]+$",
17642	//       "required": true,
17643	//       "type": "string"
17644	//     },
17645	//     "updateMask": {
17646	//       "description": "List of fields to be updated.",
17647	//       "format": "google-fieldmask",
17648	//       "location": "query",
17649	//       "type": "string"
17650	//     }
17651	//   },
17652	//   "path": "v1/{+name}",
17653	//   "request": {
17654	//     "$ref": "GoogleCloudApigeeV1DataCollector"
17655	//   },
17656	//   "response": {
17657	//     "$ref": "GoogleCloudApigeeV1DataCollector"
17658	//   },
17659	//   "scopes": [
17660	//     "https://www.googleapis.com/auth/cloud-platform"
17661	//   ]
17662	// }
17663
17664}
17665
17666// method id "apigee.organizations.deployments.list":
17667
17668type OrganizationsDeploymentsListCall struct {
17669	s            *Service
17670	parent       string
17671	urlParams_   gensupport.URLParams
17672	ifNoneMatch_ string
17673	ctx_         context.Context
17674	header_      http.Header
17675}
17676
17677// List: Lists all deployments of API proxies or shared flows.
17678//
17679// - parent: Name of the organization for which to return deployment
17680//   information in the following format: `organizations/{org}`.
17681func (r *OrganizationsDeploymentsService) List(parent string) *OrganizationsDeploymentsListCall {
17682	c := &OrganizationsDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17683	c.parent = parent
17684	return c
17685}
17686
17687// SharedFlows sets the optional parameter "sharedFlows": Flag that
17688// specifies whether to return shared flow or API proxy deployments. Set
17689// to `true` to return shared flow deployments; set to `false` to return
17690// API proxy deployments. Defaults to `false`.
17691func (c *OrganizationsDeploymentsListCall) SharedFlows(sharedFlows bool) *OrganizationsDeploymentsListCall {
17692	c.urlParams_.Set("sharedFlows", fmt.Sprint(sharedFlows))
17693	return c
17694}
17695
17696// Fields allows partial responses to be retrieved. See
17697// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
17698// for more information.
17699func (c *OrganizationsDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsDeploymentsListCall {
17700	c.urlParams_.Set("fields", googleapi.CombineFields(s))
17701	return c
17702}
17703
17704// IfNoneMatch sets the optional parameter which makes the operation
17705// fail if the object's ETag matches the given value. This is useful for
17706// getting updates only after the object has changed since the last
17707// request. Use googleapi.IsNotModified to check whether the response
17708// error from Do is the result of In-None-Match.
17709func (c *OrganizationsDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsDeploymentsListCall {
17710	c.ifNoneMatch_ = entityTag
17711	return c
17712}
17713
17714// Context sets the context to be used in this call's Do method. Any
17715// pending HTTP request will be aborted if the provided context is
17716// canceled.
17717func (c *OrganizationsDeploymentsListCall) Context(ctx context.Context) *OrganizationsDeploymentsListCall {
17718	c.ctx_ = ctx
17719	return c
17720}
17721
17722// Header returns an http.Header that can be modified by the caller to
17723// add HTTP headers to the request.
17724func (c *OrganizationsDeploymentsListCall) Header() http.Header {
17725	if c.header_ == nil {
17726		c.header_ = make(http.Header)
17727	}
17728	return c.header_
17729}
17730
17731func (c *OrganizationsDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
17732	reqHeaders := make(http.Header)
17733	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
17734	for k, v := range c.header_ {
17735		reqHeaders[k] = v
17736	}
17737	reqHeaders.Set("User-Agent", c.s.userAgent())
17738	if c.ifNoneMatch_ != "" {
17739		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
17740	}
17741	var body io.Reader = nil
17742	c.urlParams_.Set("alt", alt)
17743	c.urlParams_.Set("prettyPrint", "false")
17744	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
17745	urls += "?" + c.urlParams_.Encode()
17746	req, err := http.NewRequest("GET", urls, body)
17747	if err != nil {
17748		return nil, err
17749	}
17750	req.Header = reqHeaders
17751	googleapi.Expand(req.URL, map[string]string{
17752		"parent": c.parent,
17753	})
17754	return gensupport.SendRequest(c.ctx_, c.s.client, req)
17755}
17756
17757// Do executes the "apigee.organizations.deployments.list" call.
17758// Exactly one of *GoogleCloudApigeeV1ListDeploymentsResponse or error
17759// will be non-nil. Any non-2xx status code is an error. Response
17760// headers are in either
17761// *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or
17762// (if a response was returned at all) in
17763// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
17764// whether the returned error was because http.StatusNotModified was
17765// returned.
17766func (c *OrganizationsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
17767	gensupport.SetOptions(c.urlParams_, opts...)
17768	res, err := c.doRequest("json")
17769	if res != nil && res.StatusCode == http.StatusNotModified {
17770		if res.Body != nil {
17771			res.Body.Close()
17772		}
17773		return nil, &googleapi.Error{
17774			Code:   res.StatusCode,
17775			Header: res.Header,
17776		}
17777	}
17778	if err != nil {
17779		return nil, err
17780	}
17781	defer googleapi.CloseBody(res)
17782	if err := googleapi.CheckResponse(res); err != nil {
17783		return nil, err
17784	}
17785	ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
17786		ServerResponse: googleapi.ServerResponse{
17787			Header:         res.Header,
17788			HTTPStatusCode: res.StatusCode,
17789		},
17790	}
17791	target := &ret
17792	if err := gensupport.DecodeResponse(target, res); err != nil {
17793		return nil, err
17794	}
17795	return ret, nil
17796	// {
17797	//   "description": "Lists all deployments of API proxies or shared flows.",
17798	//   "flatPath": "v1/organizations/{organizationsId}/deployments",
17799	//   "httpMethod": "GET",
17800	//   "id": "apigee.organizations.deployments.list",
17801	//   "parameterOrder": [
17802	//     "parent"
17803	//   ],
17804	//   "parameters": {
17805	//     "parent": {
17806	//       "description": "Required. Name of the organization for which to return deployment information in the following format: `organizations/{org}`",
17807	//       "location": "path",
17808	//       "pattern": "^organizations/[^/]+$",
17809	//       "required": true,
17810	//       "type": "string"
17811	//     },
17812	//     "sharedFlows": {
17813	//       "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`.",
17814	//       "location": "query",
17815	//       "type": "boolean"
17816	//     }
17817	//   },
17818	//   "path": "v1/{+parent}/deployments",
17819	//   "response": {
17820	//     "$ref": "GoogleCloudApigeeV1ListDeploymentsResponse"
17821	//   },
17822	//   "scopes": [
17823	//     "https://www.googleapis.com/auth/cloud-platform"
17824	//   ]
17825	// }
17826
17827}
17828
17829// method id "apigee.organizations.developers.attributes":
17830
17831type OrganizationsDevelopersAttributesCall struct {
17832	s                             *Service
17833	parent                        string
17834	googlecloudapigeev1attributes *GoogleCloudApigeeV1Attributes
17835	urlParams_                    gensupport.URLParams
17836	ctx_                          context.Context
17837	header_                       http.Header
17838}
17839
17840// Attributes: Updates developer attributes. This API replaces the
17841// existing attributes with those specified in the request. Add new
17842// attributes, and include or exclude any existing attributes that you
17843// want to retain or remove, respectively. The custom attribute limit is
17844// 18. **Note**: OAuth access tokens and Key Management Service (KMS)
17845// entities (apps, developers, and API products) are cached for 180
17846// seconds (default). Any custom attributes associated with these
17847// entities are cached for at least 180 seconds after the entity is
17848// accessed at runtime. Therefore, an `ExpiresIn` element on the OAuthV2
17849// policy won't be able to expire an access token in less than 180
17850// seconds.
17851//
17852// - parent: Email address of the developer for which attributes are
17853//   being updated. Use the following structure in your request:
17854//   `organizations/{org}/developers/{developer_email}`.
17855func (r *OrganizationsDevelopersService) Attributes(parent string, googlecloudapigeev1attributes *GoogleCloudApigeeV1Attributes) *OrganizationsDevelopersAttributesCall {
17856	c := &OrganizationsDevelopersAttributesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17857	c.parent = parent
17858	c.googlecloudapigeev1attributes = googlecloudapigeev1attributes
17859	return c
17860}
17861
17862// Fields allows partial responses to be retrieved. See
17863// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
17864// for more information.
17865func (c *OrganizationsDevelopersAttributesCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAttributesCall {
17866	c.urlParams_.Set("fields", googleapi.CombineFields(s))
17867	return c
17868}
17869
17870// Context sets the context to be used in this call's Do method. Any
17871// pending HTTP request will be aborted if the provided context is
17872// canceled.
17873func (c *OrganizationsDevelopersAttributesCall) Context(ctx context.Context) *OrganizationsDevelopersAttributesCall {
17874	c.ctx_ = ctx
17875	return c
17876}
17877
17878// Header returns an http.Header that can be modified by the caller to
17879// add HTTP headers to the request.
17880func (c *OrganizationsDevelopersAttributesCall) Header() http.Header {
17881	if c.header_ == nil {
17882		c.header_ = make(http.Header)
17883	}
17884	return c.header_
17885}
17886
17887func (c *OrganizationsDevelopersAttributesCall) doRequest(alt string) (*http.Response, error) {
17888	reqHeaders := make(http.Header)
17889	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
17890	for k, v := range c.header_ {
17891		reqHeaders[k] = v
17892	}
17893	reqHeaders.Set("User-Agent", c.s.userAgent())
17894	var body io.Reader = nil
17895	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1attributes)
17896	if err != nil {
17897		return nil, err
17898	}
17899	reqHeaders.Set("Content-Type", "application/json")
17900	c.urlParams_.Set("alt", alt)
17901	c.urlParams_.Set("prettyPrint", "false")
17902	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attributes")
17903	urls += "?" + c.urlParams_.Encode()
17904	req, err := http.NewRequest("POST", urls, body)
17905	if err != nil {
17906		return nil, err
17907	}
17908	req.Header = reqHeaders
17909	googleapi.Expand(req.URL, map[string]string{
17910		"parent": c.parent,
17911	})
17912	return gensupport.SendRequest(c.ctx_, c.s.client, req)
17913}
17914
17915// Do executes the "apigee.organizations.developers.attributes" call.
17916// Exactly one of *GoogleCloudApigeeV1Attributes or error will be
17917// non-nil. Any non-2xx status code is an error. Response headers are in
17918// either *GoogleCloudApigeeV1Attributes.ServerResponse.Header or (if a
17919// response was returned at all) in error.(*googleapi.Error).Header. Use
17920// googleapi.IsNotModified to check whether the returned error was
17921// because http.StatusNotModified was returned.
17922func (c *OrganizationsDevelopersAttributesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attributes, error) {
17923	gensupport.SetOptions(c.urlParams_, opts...)
17924	res, err := c.doRequest("json")
17925	if res != nil && res.StatusCode == http.StatusNotModified {
17926		if res.Body != nil {
17927			res.Body.Close()
17928		}
17929		return nil, &googleapi.Error{
17930			Code:   res.StatusCode,
17931			Header: res.Header,
17932		}
17933	}
17934	if err != nil {
17935		return nil, err
17936	}
17937	defer googleapi.CloseBody(res)
17938	if err := googleapi.CheckResponse(res); err != nil {
17939		return nil, err
17940	}
17941	ret := &GoogleCloudApigeeV1Attributes{
17942		ServerResponse: googleapi.ServerResponse{
17943			Header:         res.Header,
17944			HTTPStatusCode: res.StatusCode,
17945		},
17946	}
17947	target := &ret
17948	if err := gensupport.DecodeResponse(target, res); err != nil {
17949		return nil, err
17950	}
17951	return ret, nil
17952	// {
17953	//   "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.",
17954	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/attributes",
17955	//   "httpMethod": "POST",
17956	//   "id": "apigee.organizations.developers.attributes",
17957	//   "parameterOrder": [
17958	//     "parent"
17959	//   ],
17960	//   "parameters": {
17961	//     "parent": {
17962	//       "description": "Required. Email address of the developer for which attributes are being updated. Use the following structure in your request: `organizations/{org}/developers/{developer_email}`",
17963	//       "location": "path",
17964	//       "pattern": "^organizations/[^/]+/developers/[^/]+$",
17965	//       "required": true,
17966	//       "type": "string"
17967	//     }
17968	//   },
17969	//   "path": "v1/{+parent}/attributes",
17970	//   "request": {
17971	//     "$ref": "GoogleCloudApigeeV1Attributes"
17972	//   },
17973	//   "response": {
17974	//     "$ref": "GoogleCloudApigeeV1Attributes"
17975	//   },
17976	//   "scopes": [
17977	//     "https://www.googleapis.com/auth/cloud-platform"
17978	//   ]
17979	// }
17980
17981}
17982
17983// method id "apigee.organizations.developers.create":
17984
17985type OrganizationsDevelopersCreateCall struct {
17986	s                            *Service
17987	parent                       string
17988	googlecloudapigeev1developer *GoogleCloudApigeeV1Developer
17989	urlParams_                   gensupport.URLParams
17990	ctx_                         context.Context
17991	header_                      http.Header
17992}
17993
17994// Create: Creates a developer. Once created, the developer can register
17995// an app and obtain an API key. At creation time, a developer is set as
17996// `active`. To change the developer status, use the SetDeveloperStatus
17997// API.
17998//
17999// - parent: Name of the Apigee organization in which the developer is
18000//   created. Use the following structure in your request:
18001//   `organizations/{org}`.
18002func (r *OrganizationsDevelopersService) Create(parent string, googlecloudapigeev1developer *GoogleCloudApigeeV1Developer) *OrganizationsDevelopersCreateCall {
18003	c := &OrganizationsDevelopersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18004	c.parent = parent
18005	c.googlecloudapigeev1developer = googlecloudapigeev1developer
18006	return c
18007}
18008
18009// Fields allows partial responses to be retrieved. See
18010// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18011// for more information.
18012func (c *OrganizationsDevelopersCreateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersCreateCall {
18013	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18014	return c
18015}
18016
18017// Context sets the context to be used in this call's Do method. Any
18018// pending HTTP request will be aborted if the provided context is
18019// canceled.
18020func (c *OrganizationsDevelopersCreateCall) Context(ctx context.Context) *OrganizationsDevelopersCreateCall {
18021	c.ctx_ = ctx
18022	return c
18023}
18024
18025// Header returns an http.Header that can be modified by the caller to
18026// add HTTP headers to the request.
18027func (c *OrganizationsDevelopersCreateCall) Header() http.Header {
18028	if c.header_ == nil {
18029		c.header_ = make(http.Header)
18030	}
18031	return c.header_
18032}
18033
18034func (c *OrganizationsDevelopersCreateCall) doRequest(alt string) (*http.Response, error) {
18035	reqHeaders := make(http.Header)
18036	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
18037	for k, v := range c.header_ {
18038		reqHeaders[k] = v
18039	}
18040	reqHeaders.Set("User-Agent", c.s.userAgent())
18041	var body io.Reader = nil
18042	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developer)
18043	if err != nil {
18044		return nil, err
18045	}
18046	reqHeaders.Set("Content-Type", "application/json")
18047	c.urlParams_.Set("alt", alt)
18048	c.urlParams_.Set("prettyPrint", "false")
18049	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/developers")
18050	urls += "?" + c.urlParams_.Encode()
18051	req, err := http.NewRequest("POST", urls, body)
18052	if err != nil {
18053		return nil, err
18054	}
18055	req.Header = reqHeaders
18056	googleapi.Expand(req.URL, map[string]string{
18057		"parent": c.parent,
18058	})
18059	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18060}
18061
18062// Do executes the "apigee.organizations.developers.create" call.
18063// Exactly one of *GoogleCloudApigeeV1Developer or error will be
18064// non-nil. Any non-2xx status code is an error. Response headers are in
18065// either *GoogleCloudApigeeV1Developer.ServerResponse.Header or (if a
18066// response was returned at all) in error.(*googleapi.Error).Header. Use
18067// googleapi.IsNotModified to check whether the returned error was
18068// because http.StatusNotModified was returned.
18069func (c *OrganizationsDevelopersCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Developer, error) {
18070	gensupport.SetOptions(c.urlParams_, opts...)
18071	res, err := c.doRequest("json")
18072	if res != nil && res.StatusCode == http.StatusNotModified {
18073		if res.Body != nil {
18074			res.Body.Close()
18075		}
18076		return nil, &googleapi.Error{
18077			Code:   res.StatusCode,
18078			Header: res.Header,
18079		}
18080	}
18081	if err != nil {
18082		return nil, err
18083	}
18084	defer googleapi.CloseBody(res)
18085	if err := googleapi.CheckResponse(res); err != nil {
18086		return nil, err
18087	}
18088	ret := &GoogleCloudApigeeV1Developer{
18089		ServerResponse: googleapi.ServerResponse{
18090			Header:         res.Header,
18091			HTTPStatusCode: res.StatusCode,
18092		},
18093	}
18094	target := &ret
18095	if err := gensupport.DecodeResponse(target, res); err != nil {
18096		return nil, err
18097	}
18098	return ret, nil
18099	// {
18100	//   "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.",
18101	//   "flatPath": "v1/organizations/{organizationsId}/developers",
18102	//   "httpMethod": "POST",
18103	//   "id": "apigee.organizations.developers.create",
18104	//   "parameterOrder": [
18105	//     "parent"
18106	//   ],
18107	//   "parameters": {
18108	//     "parent": {
18109	//       "description": "Required. Name of the Apigee organization in which the developer is created. Use the following structure in your request: `organizations/{org}`.",
18110	//       "location": "path",
18111	//       "pattern": "^organizations/[^/]+$",
18112	//       "required": true,
18113	//       "type": "string"
18114	//     }
18115	//   },
18116	//   "path": "v1/{+parent}/developers",
18117	//   "request": {
18118	//     "$ref": "GoogleCloudApigeeV1Developer"
18119	//   },
18120	//   "response": {
18121	//     "$ref": "GoogleCloudApigeeV1Developer"
18122	//   },
18123	//   "scopes": [
18124	//     "https://www.googleapis.com/auth/cloud-platform"
18125	//   ]
18126	// }
18127
18128}
18129
18130// method id "apigee.organizations.developers.delete":
18131
18132type OrganizationsDevelopersDeleteCall struct {
18133	s          *Service
18134	name       string
18135	urlParams_ gensupport.URLParams
18136	ctx_       context.Context
18137	header_    http.Header
18138}
18139
18140// Delete: Deletes a developer. All apps and API keys associated with
18141// the developer are also removed. **Warning**: This API will
18142// permanently delete the developer and related artifacts. To avoid
18143// permanently deleting developers and their artifacts, set the
18144// developer status to `inactive` using the SetDeveloperStatus API.
18145// **Note**: The delete operation is asynchronous. The developer app is
18146// deleted immediately, but its associated resources, such as apps and
18147// API keys, may take anywhere from a few seconds to a few minutes to be
18148// deleted.
18149//
18150// - name: Email address of the developer. Use the following structure
18151//   in your request: `organizations/{org}/developers/{developer_email}`.
18152func (r *OrganizationsDevelopersService) Delete(name string) *OrganizationsDevelopersDeleteCall {
18153	c := &OrganizationsDevelopersDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18154	c.name = name
18155	return c
18156}
18157
18158// Fields allows partial responses to be retrieved. See
18159// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18160// for more information.
18161func (c *OrganizationsDevelopersDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersDeleteCall {
18162	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18163	return c
18164}
18165
18166// Context sets the context to be used in this call's Do method. Any
18167// pending HTTP request will be aborted if the provided context is
18168// canceled.
18169func (c *OrganizationsDevelopersDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersDeleteCall {
18170	c.ctx_ = ctx
18171	return c
18172}
18173
18174// Header returns an http.Header that can be modified by the caller to
18175// add HTTP headers to the request.
18176func (c *OrganizationsDevelopersDeleteCall) Header() http.Header {
18177	if c.header_ == nil {
18178		c.header_ = make(http.Header)
18179	}
18180	return c.header_
18181}
18182
18183func (c *OrganizationsDevelopersDeleteCall) doRequest(alt string) (*http.Response, error) {
18184	reqHeaders := make(http.Header)
18185	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
18186	for k, v := range c.header_ {
18187		reqHeaders[k] = v
18188	}
18189	reqHeaders.Set("User-Agent", c.s.userAgent())
18190	var body io.Reader = nil
18191	c.urlParams_.Set("alt", alt)
18192	c.urlParams_.Set("prettyPrint", "false")
18193	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
18194	urls += "?" + c.urlParams_.Encode()
18195	req, err := http.NewRequest("DELETE", urls, body)
18196	if err != nil {
18197		return nil, err
18198	}
18199	req.Header = reqHeaders
18200	googleapi.Expand(req.URL, map[string]string{
18201		"name": c.name,
18202	})
18203	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18204}
18205
18206// Do executes the "apigee.organizations.developers.delete" call.
18207// Exactly one of *GoogleCloudApigeeV1Developer or error will be
18208// non-nil. Any non-2xx status code is an error. Response headers are in
18209// either *GoogleCloudApigeeV1Developer.ServerResponse.Header or (if a
18210// response was returned at all) in error.(*googleapi.Error).Header. Use
18211// googleapi.IsNotModified to check whether the returned error was
18212// because http.StatusNotModified was returned.
18213func (c *OrganizationsDevelopersDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Developer, error) {
18214	gensupport.SetOptions(c.urlParams_, opts...)
18215	res, err := c.doRequest("json")
18216	if res != nil && res.StatusCode == http.StatusNotModified {
18217		if res.Body != nil {
18218			res.Body.Close()
18219		}
18220		return nil, &googleapi.Error{
18221			Code:   res.StatusCode,
18222			Header: res.Header,
18223		}
18224	}
18225	if err != nil {
18226		return nil, err
18227	}
18228	defer googleapi.CloseBody(res)
18229	if err := googleapi.CheckResponse(res); err != nil {
18230		return nil, err
18231	}
18232	ret := &GoogleCloudApigeeV1Developer{
18233		ServerResponse: googleapi.ServerResponse{
18234			Header:         res.Header,
18235			HTTPStatusCode: res.StatusCode,
18236		},
18237	}
18238	target := &ret
18239	if err := gensupport.DecodeResponse(target, res); err != nil {
18240		return nil, err
18241	}
18242	return ret, nil
18243	// {
18244	//   "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.",
18245	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}",
18246	//   "httpMethod": "DELETE",
18247	//   "id": "apigee.organizations.developers.delete",
18248	//   "parameterOrder": [
18249	//     "name"
18250	//   ],
18251	//   "parameters": {
18252	//     "name": {
18253	//       "description": "Required. Email address of the developer. Use the following structure in your request: `organizations/{org}/developers/{developer_email}`",
18254	//       "location": "path",
18255	//       "pattern": "^organizations/[^/]+/developers/[^/]+$",
18256	//       "required": true,
18257	//       "type": "string"
18258	//     }
18259	//   },
18260	//   "path": "v1/{+name}",
18261	//   "response": {
18262	//     "$ref": "GoogleCloudApigeeV1Developer"
18263	//   },
18264	//   "scopes": [
18265	//     "https://www.googleapis.com/auth/cloud-platform"
18266	//   ]
18267	// }
18268
18269}
18270
18271// method id "apigee.organizations.developers.get":
18272
18273type OrganizationsDevelopersGetCall struct {
18274	s            *Service
18275	name         string
18276	urlParams_   gensupport.URLParams
18277	ifNoneMatch_ string
18278	ctx_         context.Context
18279	header_      http.Header
18280}
18281
18282// Get: Returns the developer details, including the developer's name,
18283// email address, apps, and other information. **Note**: The response
18284// includes only the first 100 developer apps.
18285//
18286// - name: Email address of the developer. Use the following structure
18287//   in your request: `organizations/{org}/developers/{developer_email}`.
18288func (r *OrganizationsDevelopersService) Get(name string) *OrganizationsDevelopersGetCall {
18289	c := &OrganizationsDevelopersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18290	c.name = name
18291	return c
18292}
18293
18294// Action sets the optional parameter "action": Status of the developer.
18295// Valid values are `active` or `inactive`.
18296func (c *OrganizationsDevelopersGetCall) Action(action string) *OrganizationsDevelopersGetCall {
18297	c.urlParams_.Set("action", action)
18298	return c
18299}
18300
18301// Fields allows partial responses to be retrieved. See
18302// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18303// for more information.
18304func (c *OrganizationsDevelopersGetCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersGetCall {
18305	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18306	return c
18307}
18308
18309// IfNoneMatch sets the optional parameter which makes the operation
18310// fail if the object's ETag matches the given value. This is useful for
18311// getting updates only after the object has changed since the last
18312// request. Use googleapi.IsNotModified to check whether the response
18313// error from Do is the result of In-None-Match.
18314func (c *OrganizationsDevelopersGetCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersGetCall {
18315	c.ifNoneMatch_ = entityTag
18316	return c
18317}
18318
18319// Context sets the context to be used in this call's Do method. Any
18320// pending HTTP request will be aborted if the provided context is
18321// canceled.
18322func (c *OrganizationsDevelopersGetCall) Context(ctx context.Context) *OrganizationsDevelopersGetCall {
18323	c.ctx_ = ctx
18324	return c
18325}
18326
18327// Header returns an http.Header that can be modified by the caller to
18328// add HTTP headers to the request.
18329func (c *OrganizationsDevelopersGetCall) Header() http.Header {
18330	if c.header_ == nil {
18331		c.header_ = make(http.Header)
18332	}
18333	return c.header_
18334}
18335
18336func (c *OrganizationsDevelopersGetCall) doRequest(alt string) (*http.Response, error) {
18337	reqHeaders := make(http.Header)
18338	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
18339	for k, v := range c.header_ {
18340		reqHeaders[k] = v
18341	}
18342	reqHeaders.Set("User-Agent", c.s.userAgent())
18343	if c.ifNoneMatch_ != "" {
18344		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18345	}
18346	var body io.Reader = nil
18347	c.urlParams_.Set("alt", alt)
18348	c.urlParams_.Set("prettyPrint", "false")
18349	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
18350	urls += "?" + c.urlParams_.Encode()
18351	req, err := http.NewRequest("GET", urls, body)
18352	if err != nil {
18353		return nil, err
18354	}
18355	req.Header = reqHeaders
18356	googleapi.Expand(req.URL, map[string]string{
18357		"name": c.name,
18358	})
18359	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18360}
18361
18362// Do executes the "apigee.organizations.developers.get" call.
18363// Exactly one of *GoogleCloudApigeeV1Developer or error will be
18364// non-nil. Any non-2xx status code is an error. Response headers are in
18365// either *GoogleCloudApigeeV1Developer.ServerResponse.Header or (if a
18366// response was returned at all) in error.(*googleapi.Error).Header. Use
18367// googleapi.IsNotModified to check whether the returned error was
18368// because http.StatusNotModified was returned.
18369func (c *OrganizationsDevelopersGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Developer, error) {
18370	gensupport.SetOptions(c.urlParams_, opts...)
18371	res, err := c.doRequest("json")
18372	if res != nil && res.StatusCode == http.StatusNotModified {
18373		if res.Body != nil {
18374			res.Body.Close()
18375		}
18376		return nil, &googleapi.Error{
18377			Code:   res.StatusCode,
18378			Header: res.Header,
18379		}
18380	}
18381	if err != nil {
18382		return nil, err
18383	}
18384	defer googleapi.CloseBody(res)
18385	if err := googleapi.CheckResponse(res); err != nil {
18386		return nil, err
18387	}
18388	ret := &GoogleCloudApigeeV1Developer{
18389		ServerResponse: googleapi.ServerResponse{
18390			Header:         res.Header,
18391			HTTPStatusCode: res.StatusCode,
18392		},
18393	}
18394	target := &ret
18395	if err := gensupport.DecodeResponse(target, res); err != nil {
18396		return nil, err
18397	}
18398	return ret, nil
18399	// {
18400	//   "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.",
18401	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}",
18402	//   "httpMethod": "GET",
18403	//   "id": "apigee.organizations.developers.get",
18404	//   "parameterOrder": [
18405	//     "name"
18406	//   ],
18407	//   "parameters": {
18408	//     "action": {
18409	//       "description": "Status of the developer. Valid values are `active` or `inactive`.",
18410	//       "location": "query",
18411	//       "type": "string"
18412	//     },
18413	//     "name": {
18414	//       "description": "Required. Email address of the developer. Use the following structure in your request: `organizations/{org}/developers/{developer_email}`",
18415	//       "location": "path",
18416	//       "pattern": "^organizations/[^/]+/developers/[^/]+$",
18417	//       "required": true,
18418	//       "type": "string"
18419	//     }
18420	//   },
18421	//   "path": "v1/{+name}",
18422	//   "response": {
18423	//     "$ref": "GoogleCloudApigeeV1Developer"
18424	//   },
18425	//   "scopes": [
18426	//     "https://www.googleapis.com/auth/cloud-platform"
18427	//   ]
18428	// }
18429
18430}
18431
18432// method id "apigee.organizations.developers.list":
18433
18434type OrganizationsDevelopersListCall struct {
18435	s            *Service
18436	parent       string
18437	urlParams_   gensupport.URLParams
18438	ifNoneMatch_ string
18439	ctx_         context.Context
18440	header_      http.Header
18441}
18442
18443// List: Lists all developers in an organization by email address. By
18444// default, the response does not include company developers. Set the
18445// `includeCompany` query parameter to `true` to include company
18446// developers. **Note**: A maximum of 1000 developers are returned in
18447// the response. You paginate the list of developers returned using the
18448// `startKey` and `count` query parameters.
18449//
18450// - parent: Name of the Apigee organization. Use the following
18451//   structure in your request: `organizations/{org}`.
18452func (r *OrganizationsDevelopersService) List(parent string) *OrganizationsDevelopersListCall {
18453	c := &OrganizationsDevelopersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18454	c.parent = parent
18455	return c
18456}
18457
18458// App sets the optional parameter "app": List only Developers that are
18459// associated with the app. Note that start_key, count are not
18460// applicable for this filter criteria.
18461func (c *OrganizationsDevelopersListCall) App(app string) *OrganizationsDevelopersListCall {
18462	c.urlParams_.Set("app", app)
18463	return c
18464}
18465
18466// Count sets the optional parameter "count": Number of developers to
18467// return in the API call. Use with the `startKey` parameter to provide
18468// more targeted filtering. The limit is 1000.
18469func (c *OrganizationsDevelopersListCall) Count(count int64) *OrganizationsDevelopersListCall {
18470	c.urlParams_.Set("count", fmt.Sprint(count))
18471	return c
18472}
18473
18474// Expand sets the optional parameter "expand": Specifies whether to
18475// expand the results. Set to `true` to expand the results. This query
18476// parameter is not valid if you use the `count` or `startKey` query
18477// parameters.
18478func (c *OrganizationsDevelopersListCall) Expand(expand bool) *OrganizationsDevelopersListCall {
18479	c.urlParams_.Set("expand", fmt.Sprint(expand))
18480	return c
18481}
18482
18483// Ids sets the optional parameter "ids": List of IDs to include,
18484// separated by commas.
18485func (c *OrganizationsDevelopersListCall) Ids(ids string) *OrganizationsDevelopersListCall {
18486	c.urlParams_.Set("ids", ids)
18487	return c
18488}
18489
18490// IncludeCompany sets the optional parameter "includeCompany": Flag
18491// that specifies whether to include company details in the response.
18492func (c *OrganizationsDevelopersListCall) IncludeCompany(includeCompany bool) *OrganizationsDevelopersListCall {
18493	c.urlParams_.Set("includeCompany", fmt.Sprint(includeCompany))
18494	return c
18495}
18496
18497// StartKey sets the optional parameter "startKey": **Note**: Must be
18498// used in conjunction with the `count` parameter. Email address of the
18499// developer from which to start displaying the list of developers. For
18500// example, if the an unfiltered list returns: ``` westley@example.com
18501// fezzik@example.com buttercup@example.com ``` and your `startKey` is
18502// `fezzik@example.com`, the list returned will be ```
18503// fezzik@example.com buttercup@example.com ```
18504func (c *OrganizationsDevelopersListCall) StartKey(startKey string) *OrganizationsDevelopersListCall {
18505	c.urlParams_.Set("startKey", startKey)
18506	return c
18507}
18508
18509// Fields allows partial responses to be retrieved. See
18510// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18511// for more information.
18512func (c *OrganizationsDevelopersListCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersListCall {
18513	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18514	return c
18515}
18516
18517// IfNoneMatch sets the optional parameter which makes the operation
18518// fail if the object's ETag matches the given value. This is useful for
18519// getting updates only after the object has changed since the last
18520// request. Use googleapi.IsNotModified to check whether the response
18521// error from Do is the result of In-None-Match.
18522func (c *OrganizationsDevelopersListCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersListCall {
18523	c.ifNoneMatch_ = entityTag
18524	return c
18525}
18526
18527// Context sets the context to be used in this call's Do method. Any
18528// pending HTTP request will be aborted if the provided context is
18529// canceled.
18530func (c *OrganizationsDevelopersListCall) Context(ctx context.Context) *OrganizationsDevelopersListCall {
18531	c.ctx_ = ctx
18532	return c
18533}
18534
18535// Header returns an http.Header that can be modified by the caller to
18536// add HTTP headers to the request.
18537func (c *OrganizationsDevelopersListCall) Header() http.Header {
18538	if c.header_ == nil {
18539		c.header_ = make(http.Header)
18540	}
18541	return c.header_
18542}
18543
18544func (c *OrganizationsDevelopersListCall) doRequest(alt string) (*http.Response, error) {
18545	reqHeaders := make(http.Header)
18546	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
18547	for k, v := range c.header_ {
18548		reqHeaders[k] = v
18549	}
18550	reqHeaders.Set("User-Agent", c.s.userAgent())
18551	if c.ifNoneMatch_ != "" {
18552		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18553	}
18554	var body io.Reader = nil
18555	c.urlParams_.Set("alt", alt)
18556	c.urlParams_.Set("prettyPrint", "false")
18557	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/developers")
18558	urls += "?" + c.urlParams_.Encode()
18559	req, err := http.NewRequest("GET", urls, body)
18560	if err != nil {
18561		return nil, err
18562	}
18563	req.Header = reqHeaders
18564	googleapi.Expand(req.URL, map[string]string{
18565		"parent": c.parent,
18566	})
18567	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18568}
18569
18570// Do executes the "apigee.organizations.developers.list" call.
18571// Exactly one of *GoogleCloudApigeeV1ListOfDevelopersResponse or error
18572// will be non-nil. Any non-2xx status code is an error. Response
18573// headers are in either
18574// *GoogleCloudApigeeV1ListOfDevelopersResponse.ServerResponse.Header or
18575// (if a response was returned at all) in
18576// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
18577// whether the returned error was because http.StatusNotModified was
18578// returned.
18579func (c *OrganizationsDevelopersListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListOfDevelopersResponse, error) {
18580	gensupport.SetOptions(c.urlParams_, opts...)
18581	res, err := c.doRequest("json")
18582	if res != nil && res.StatusCode == http.StatusNotModified {
18583		if res.Body != nil {
18584			res.Body.Close()
18585		}
18586		return nil, &googleapi.Error{
18587			Code:   res.StatusCode,
18588			Header: res.Header,
18589		}
18590	}
18591	if err != nil {
18592		return nil, err
18593	}
18594	defer googleapi.CloseBody(res)
18595	if err := googleapi.CheckResponse(res); err != nil {
18596		return nil, err
18597	}
18598	ret := &GoogleCloudApigeeV1ListOfDevelopersResponse{
18599		ServerResponse: googleapi.ServerResponse{
18600			Header:         res.Header,
18601			HTTPStatusCode: res.StatusCode,
18602		},
18603	}
18604	target := &ret
18605	if err := gensupport.DecodeResponse(target, res); err != nil {
18606		return nil, err
18607	}
18608	return ret, nil
18609	// {
18610	//   "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.",
18611	//   "flatPath": "v1/organizations/{organizationsId}/developers",
18612	//   "httpMethod": "GET",
18613	//   "id": "apigee.organizations.developers.list",
18614	//   "parameterOrder": [
18615	//     "parent"
18616	//   ],
18617	//   "parameters": {
18618	//     "app": {
18619	//       "description": "Optional. List only Developers that are associated with the app. Note that start_key, count are not applicable for this filter criteria.",
18620	//       "location": "query",
18621	//       "type": "string"
18622	//     },
18623	//     "count": {
18624	//       "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.",
18625	//       "format": "int64",
18626	//       "location": "query",
18627	//       "type": "string"
18628	//     },
18629	//     "expand": {
18630	//       "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.",
18631	//       "location": "query",
18632	//       "type": "boolean"
18633	//     },
18634	//     "ids": {
18635	//       "description": "Optional. List of IDs to include, separated by commas.",
18636	//       "location": "query",
18637	//       "type": "string"
18638	//     },
18639	//     "includeCompany": {
18640	//       "description": "Flag that specifies whether to include company details in the response.",
18641	//       "location": "query",
18642	//       "type": "boolean"
18643	//     },
18644	//     "parent": {
18645	//       "description": "Required. Name of the Apigee organization. Use the following structure in your request: `organizations/{org}`.",
18646	//       "location": "path",
18647	//       "pattern": "^organizations/[^/]+$",
18648	//       "required": true,
18649	//       "type": "string"
18650	//     },
18651	//     "startKey": {
18652	//       "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 ```",
18653	//       "location": "query",
18654	//       "type": "string"
18655	//     }
18656	//   },
18657	//   "path": "v1/{+parent}/developers",
18658	//   "response": {
18659	//     "$ref": "GoogleCloudApigeeV1ListOfDevelopersResponse"
18660	//   },
18661	//   "scopes": [
18662	//     "https://www.googleapis.com/auth/cloud-platform"
18663	//   ]
18664	// }
18665
18666}
18667
18668// method id "apigee.organizations.developers.setDeveloperStatus":
18669
18670type OrganizationsDevelopersSetDeveloperStatusCall struct {
18671	s          *Service
18672	name       string
18673	urlParams_ gensupport.URLParams
18674	ctx_       context.Context
18675	header_    http.Header
18676}
18677
18678// SetDeveloperStatus: Sets the status of a developer. A developer is
18679// `active` by default. If you set a developer's status to `inactive`,
18680// the API keys assigned to the developer apps are no longer valid even
18681// though the API keys are set to `approved`. Inactive developers can
18682// still sign in to the developer portal and create apps; however, any
18683// new API keys generated during app creation won't work. To set the
18684// status of a developer, set the `action` query parameter to `active`
18685// or `inactive`, and the `Content-Type` header to
18686// `application/octet-stream`. If successful, the API call returns the
18687// following HTTP status code: `204 No Content`
18688//
18689// - name: Name of the developer. Use the following structure in your
18690//   request: `organizations/{org}/developers/{developer_id}`.
18691func (r *OrganizationsDevelopersService) SetDeveloperStatus(name string) *OrganizationsDevelopersSetDeveloperStatusCall {
18692	c := &OrganizationsDevelopersSetDeveloperStatusCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18693	c.name = name
18694	return c
18695}
18696
18697// Action sets the optional parameter "action": Status of the developer.
18698// Valid values are `active` and `inactive`.
18699func (c *OrganizationsDevelopersSetDeveloperStatusCall) Action(action string) *OrganizationsDevelopersSetDeveloperStatusCall {
18700	c.urlParams_.Set("action", action)
18701	return c
18702}
18703
18704// Fields allows partial responses to be retrieved. See
18705// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18706// for more information.
18707func (c *OrganizationsDevelopersSetDeveloperStatusCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersSetDeveloperStatusCall {
18708	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18709	return c
18710}
18711
18712// Context sets the context to be used in this call's Do method. Any
18713// pending HTTP request will be aborted if the provided context is
18714// canceled.
18715func (c *OrganizationsDevelopersSetDeveloperStatusCall) Context(ctx context.Context) *OrganizationsDevelopersSetDeveloperStatusCall {
18716	c.ctx_ = ctx
18717	return c
18718}
18719
18720// Header returns an http.Header that can be modified by the caller to
18721// add HTTP headers to the request.
18722func (c *OrganizationsDevelopersSetDeveloperStatusCall) Header() http.Header {
18723	if c.header_ == nil {
18724		c.header_ = make(http.Header)
18725	}
18726	return c.header_
18727}
18728
18729func (c *OrganizationsDevelopersSetDeveloperStatusCall) doRequest(alt string) (*http.Response, error) {
18730	reqHeaders := make(http.Header)
18731	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
18732	for k, v := range c.header_ {
18733		reqHeaders[k] = v
18734	}
18735	reqHeaders.Set("User-Agent", c.s.userAgent())
18736	var body io.Reader = nil
18737	c.urlParams_.Set("alt", alt)
18738	c.urlParams_.Set("prettyPrint", "false")
18739	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
18740	urls += "?" + c.urlParams_.Encode()
18741	req, err := http.NewRequest("POST", urls, body)
18742	if err != nil {
18743		return nil, err
18744	}
18745	req.Header = reqHeaders
18746	googleapi.Expand(req.URL, map[string]string{
18747		"name": c.name,
18748	})
18749	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18750}
18751
18752// Do executes the "apigee.organizations.developers.setDeveloperStatus" call.
18753// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
18754// non-2xx status code is an error. Response headers are in either
18755// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
18756// returned at all) in error.(*googleapi.Error).Header. Use
18757// googleapi.IsNotModified to check whether the returned error was
18758// because http.StatusNotModified was returned.
18759func (c *OrganizationsDevelopersSetDeveloperStatusCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
18760	gensupport.SetOptions(c.urlParams_, opts...)
18761	res, err := c.doRequest("json")
18762	if res != nil && res.StatusCode == http.StatusNotModified {
18763		if res.Body != nil {
18764			res.Body.Close()
18765		}
18766		return nil, &googleapi.Error{
18767			Code:   res.StatusCode,
18768			Header: res.Header,
18769		}
18770	}
18771	if err != nil {
18772		return nil, err
18773	}
18774	defer googleapi.CloseBody(res)
18775	if err := googleapi.CheckResponse(res); err != nil {
18776		return nil, err
18777	}
18778	ret := &GoogleProtobufEmpty{
18779		ServerResponse: googleapi.ServerResponse{
18780			Header:         res.Header,
18781			HTTPStatusCode: res.StatusCode,
18782		},
18783	}
18784	target := &ret
18785	if err := gensupport.DecodeResponse(target, res); err != nil {
18786		return nil, err
18787	}
18788	return ret, nil
18789	// {
18790	//   "description": "Sets the status of a developer. A developer is `active` by default. If you set a developer's status to `inactive`, the API keys assigned to the developer apps are no longer valid even though the API keys are set to `approved`. Inactive developers can still sign in to the developer portal and create apps; however, any new API keys generated during app creation won't work. To set the status of a developer, set the `action` query parameter to `active` or `inactive`, and the `Content-Type` header to `application/octet-stream`. If successful, the API call returns the following HTTP status code: `204 No Content`",
18791	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}",
18792	//   "httpMethod": "POST",
18793	//   "id": "apigee.organizations.developers.setDeveloperStatus",
18794	//   "parameterOrder": [
18795	//     "name"
18796	//   ],
18797	//   "parameters": {
18798	//     "action": {
18799	//       "description": "Status of the developer. Valid values are `active` and `inactive`.",
18800	//       "location": "query",
18801	//       "type": "string"
18802	//     },
18803	//     "name": {
18804	//       "description": "Required. Name of the developer. Use the following structure in your request: `organizations/{org}/developers/{developer_id}`",
18805	//       "location": "path",
18806	//       "pattern": "^organizations/[^/]+/developers/[^/]+$",
18807	//       "required": true,
18808	//       "type": "string"
18809	//     }
18810	//   },
18811	//   "path": "v1/{+name}",
18812	//   "response": {
18813	//     "$ref": "GoogleProtobufEmpty"
18814	//   },
18815	//   "scopes": [
18816	//     "https://www.googleapis.com/auth/cloud-platform"
18817	//   ]
18818	// }
18819
18820}
18821
18822// method id "apigee.organizations.developers.update":
18823
18824type OrganizationsDevelopersUpdateCall struct {
18825	s                            *Service
18826	name                         string
18827	googlecloudapigeev1developer *GoogleCloudApigeeV1Developer
18828	urlParams_                   gensupport.URLParams
18829	ctx_                         context.Context
18830	header_                      http.Header
18831}
18832
18833// Update: Updates a developer. This API replaces the existing developer
18834// details with those specified in the request. Include or exclude any
18835// existing details that you want to retain or delete, respectively. The
18836// custom attribute limit is 18. **Note**: OAuth access tokens and Key
18837// Management Service (KMS) entities (apps, developers, and API
18838// products) are cached for 180 seconds (current default). Any custom
18839// attributes associated with these entities are cached for at least 180
18840// seconds after the entity is accessed at runtime. Therefore, an
18841// `ExpiresIn` element on the OAuthV2 policy won't be able to expire an
18842// access token in less than 180 seconds.
18843//
18844// - name: Email address of the developer. Use the following structure
18845//   in your request: `organizations/{org}/developers/{developer_email}`.
18846func (r *OrganizationsDevelopersService) Update(name string, googlecloudapigeev1developer *GoogleCloudApigeeV1Developer) *OrganizationsDevelopersUpdateCall {
18847	c := &OrganizationsDevelopersUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18848	c.name = name
18849	c.googlecloudapigeev1developer = googlecloudapigeev1developer
18850	return c
18851}
18852
18853// Fields allows partial responses to be retrieved. See
18854// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18855// for more information.
18856func (c *OrganizationsDevelopersUpdateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersUpdateCall {
18857	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18858	return c
18859}
18860
18861// Context sets the context to be used in this call's Do method. Any
18862// pending HTTP request will be aborted if the provided context is
18863// canceled.
18864func (c *OrganizationsDevelopersUpdateCall) Context(ctx context.Context) *OrganizationsDevelopersUpdateCall {
18865	c.ctx_ = ctx
18866	return c
18867}
18868
18869// Header returns an http.Header that can be modified by the caller to
18870// add HTTP headers to the request.
18871func (c *OrganizationsDevelopersUpdateCall) Header() http.Header {
18872	if c.header_ == nil {
18873		c.header_ = make(http.Header)
18874	}
18875	return c.header_
18876}
18877
18878func (c *OrganizationsDevelopersUpdateCall) doRequest(alt string) (*http.Response, error) {
18879	reqHeaders := make(http.Header)
18880	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
18881	for k, v := range c.header_ {
18882		reqHeaders[k] = v
18883	}
18884	reqHeaders.Set("User-Agent", c.s.userAgent())
18885	var body io.Reader = nil
18886	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developer)
18887	if err != nil {
18888		return nil, err
18889	}
18890	reqHeaders.Set("Content-Type", "application/json")
18891	c.urlParams_.Set("alt", alt)
18892	c.urlParams_.Set("prettyPrint", "false")
18893	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
18894	urls += "?" + c.urlParams_.Encode()
18895	req, err := http.NewRequest("PUT", urls, body)
18896	if err != nil {
18897		return nil, err
18898	}
18899	req.Header = reqHeaders
18900	googleapi.Expand(req.URL, map[string]string{
18901		"name": c.name,
18902	})
18903	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18904}
18905
18906// Do executes the "apigee.organizations.developers.update" call.
18907// Exactly one of *GoogleCloudApigeeV1Developer or error will be
18908// non-nil. Any non-2xx status code is an error. Response headers are in
18909// either *GoogleCloudApigeeV1Developer.ServerResponse.Header or (if a
18910// response was returned at all) in error.(*googleapi.Error).Header. Use
18911// googleapi.IsNotModified to check whether the returned error was
18912// because http.StatusNotModified was returned.
18913func (c *OrganizationsDevelopersUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Developer, error) {
18914	gensupport.SetOptions(c.urlParams_, opts...)
18915	res, err := c.doRequest("json")
18916	if res != nil && res.StatusCode == http.StatusNotModified {
18917		if res.Body != nil {
18918			res.Body.Close()
18919		}
18920		return nil, &googleapi.Error{
18921			Code:   res.StatusCode,
18922			Header: res.Header,
18923		}
18924	}
18925	if err != nil {
18926		return nil, err
18927	}
18928	defer googleapi.CloseBody(res)
18929	if err := googleapi.CheckResponse(res); err != nil {
18930		return nil, err
18931	}
18932	ret := &GoogleCloudApigeeV1Developer{
18933		ServerResponse: googleapi.ServerResponse{
18934			Header:         res.Header,
18935			HTTPStatusCode: res.StatusCode,
18936		},
18937	}
18938	target := &ret
18939	if err := gensupport.DecodeResponse(target, res); err != nil {
18940		return nil, err
18941	}
18942	return ret, nil
18943	// {
18944	//   "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.",
18945	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}",
18946	//   "httpMethod": "PUT",
18947	//   "id": "apigee.organizations.developers.update",
18948	//   "parameterOrder": [
18949	//     "name"
18950	//   ],
18951	//   "parameters": {
18952	//     "name": {
18953	//       "description": "Required. Email address of the developer. Use the following structure in your request: `organizations/{org}/developers/{developer_email}`",
18954	//       "location": "path",
18955	//       "pattern": "^organizations/[^/]+/developers/[^/]+$",
18956	//       "required": true,
18957	//       "type": "string"
18958	//     }
18959	//   },
18960	//   "path": "v1/{+name}",
18961	//   "request": {
18962	//     "$ref": "GoogleCloudApigeeV1Developer"
18963	//   },
18964	//   "response": {
18965	//     "$ref": "GoogleCloudApigeeV1Developer"
18966	//   },
18967	//   "scopes": [
18968	//     "https://www.googleapis.com/auth/cloud-platform"
18969	//   ]
18970	// }
18971
18972}
18973
18974// method id "apigee.organizations.developers.apps.attributes":
18975
18976type OrganizationsDevelopersAppsAttributesCall struct {
18977	s                             *Service
18978	name                          string
18979	googlecloudapigeev1attributes *GoogleCloudApigeeV1Attributes
18980	urlParams_                    gensupport.URLParams
18981	ctx_                          context.Context
18982	header_                       http.Header
18983}
18984
18985// Attributes: Updates attributes for a developer app. This API replaces
18986// the current attributes with those specified in the request.
18987//
18988// - name: Name of the developer app. Use the following structure in
18989//   your request:
18990//   `organizations/{org}/developers/{developer_email}/apps/{app}`.
18991func (r *OrganizationsDevelopersAppsService) Attributes(name string, googlecloudapigeev1attributes *GoogleCloudApigeeV1Attributes) *OrganizationsDevelopersAppsAttributesCall {
18992	c := &OrganizationsDevelopersAppsAttributesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18993	c.name = name
18994	c.googlecloudapigeev1attributes = googlecloudapigeev1attributes
18995	return c
18996}
18997
18998// Fields allows partial responses to be retrieved. See
18999// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19000// for more information.
19001func (c *OrganizationsDevelopersAppsAttributesCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsAttributesCall {
19002	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19003	return c
19004}
19005
19006// Context sets the context to be used in this call's Do method. Any
19007// pending HTTP request will be aborted if the provided context is
19008// canceled.
19009func (c *OrganizationsDevelopersAppsAttributesCall) Context(ctx context.Context) *OrganizationsDevelopersAppsAttributesCall {
19010	c.ctx_ = ctx
19011	return c
19012}
19013
19014// Header returns an http.Header that can be modified by the caller to
19015// add HTTP headers to the request.
19016func (c *OrganizationsDevelopersAppsAttributesCall) Header() http.Header {
19017	if c.header_ == nil {
19018		c.header_ = make(http.Header)
19019	}
19020	return c.header_
19021}
19022
19023func (c *OrganizationsDevelopersAppsAttributesCall) doRequest(alt string) (*http.Response, error) {
19024	reqHeaders := make(http.Header)
19025	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
19026	for k, v := range c.header_ {
19027		reqHeaders[k] = v
19028	}
19029	reqHeaders.Set("User-Agent", c.s.userAgent())
19030	var body io.Reader = nil
19031	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1attributes)
19032	if err != nil {
19033		return nil, err
19034	}
19035	reqHeaders.Set("Content-Type", "application/json")
19036	c.urlParams_.Set("alt", alt)
19037	c.urlParams_.Set("prettyPrint", "false")
19038	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/attributes")
19039	urls += "?" + c.urlParams_.Encode()
19040	req, err := http.NewRequest("POST", urls, body)
19041	if err != nil {
19042		return nil, err
19043	}
19044	req.Header = reqHeaders
19045	googleapi.Expand(req.URL, map[string]string{
19046		"name": c.name,
19047	})
19048	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19049}
19050
19051// Do executes the "apigee.organizations.developers.apps.attributes" call.
19052// Exactly one of *GoogleCloudApigeeV1Attributes or error will be
19053// non-nil. Any non-2xx status code is an error. Response headers are in
19054// either *GoogleCloudApigeeV1Attributes.ServerResponse.Header or (if a
19055// response was returned at all) in error.(*googleapi.Error).Header. Use
19056// googleapi.IsNotModified to check whether the returned error was
19057// because http.StatusNotModified was returned.
19058func (c *OrganizationsDevelopersAppsAttributesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attributes, error) {
19059	gensupport.SetOptions(c.urlParams_, opts...)
19060	res, err := c.doRequest("json")
19061	if res != nil && res.StatusCode == http.StatusNotModified {
19062		if res.Body != nil {
19063			res.Body.Close()
19064		}
19065		return nil, &googleapi.Error{
19066			Code:   res.StatusCode,
19067			Header: res.Header,
19068		}
19069	}
19070	if err != nil {
19071		return nil, err
19072	}
19073	defer googleapi.CloseBody(res)
19074	if err := googleapi.CheckResponse(res); err != nil {
19075		return nil, err
19076	}
19077	ret := &GoogleCloudApigeeV1Attributes{
19078		ServerResponse: googleapi.ServerResponse{
19079			Header:         res.Header,
19080			HTTPStatusCode: res.StatusCode,
19081		},
19082	}
19083	target := &ret
19084	if err := gensupport.DecodeResponse(target, res); err != nil {
19085		return nil, err
19086	}
19087	return ret, nil
19088	// {
19089	//   "description": "Updates attributes for a developer app. This API replaces the current attributes with those specified in the request.",
19090	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/attributes",
19091	//   "httpMethod": "POST",
19092	//   "id": "apigee.organizations.developers.apps.attributes",
19093	//   "parameterOrder": [
19094	//     "name"
19095	//   ],
19096	//   "parameters": {
19097	//     "name": {
19098	//       "description": "Required. Name of the developer app. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}`",
19099	//       "location": "path",
19100	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$",
19101	//       "required": true,
19102	//       "type": "string"
19103	//     }
19104	//   },
19105	//   "path": "v1/{+name}/attributes",
19106	//   "request": {
19107	//     "$ref": "GoogleCloudApigeeV1Attributes"
19108	//   },
19109	//   "response": {
19110	//     "$ref": "GoogleCloudApigeeV1Attributes"
19111	//   },
19112	//   "scopes": [
19113	//     "https://www.googleapis.com/auth/cloud-platform"
19114	//   ]
19115	// }
19116
19117}
19118
19119// method id "apigee.organizations.developers.apps.create":
19120
19121type OrganizationsDevelopersAppsCreateCall struct {
19122	s                               *Service
19123	parent                          string
19124	googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp
19125	urlParams_                      gensupport.URLParams
19126	ctx_                            context.Context
19127	header_                         http.Header
19128}
19129
19130// Create: Creates an app associated with a developer. This API
19131// associates the developer app with the specified API product and
19132// auto-generates an API key for the app to use in calls to API proxies
19133// inside that API product. The `name` is the unique ID of the app that
19134// you can use in API calls. The `DisplayName` (set as an attribute)
19135// appears in the UI. If you don't set the `DisplayName` attribute, the
19136// `name` appears in the UI.
19137//
19138// - parent: Name of the developer. Use the following structure in your
19139//   request: `organizations/{org}/developers/{developer_email}`.
19140func (r *OrganizationsDevelopersAppsService) Create(parent string, googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp) *OrganizationsDevelopersAppsCreateCall {
19141	c := &OrganizationsDevelopersAppsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19142	c.parent = parent
19143	c.googlecloudapigeev1developerapp = googlecloudapigeev1developerapp
19144	return c
19145}
19146
19147// Fields allows partial responses to be retrieved. See
19148// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19149// for more information.
19150func (c *OrganizationsDevelopersAppsCreateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsCreateCall {
19151	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19152	return c
19153}
19154
19155// Context sets the context to be used in this call's Do method. Any
19156// pending HTTP request will be aborted if the provided context is
19157// canceled.
19158func (c *OrganizationsDevelopersAppsCreateCall) Context(ctx context.Context) *OrganizationsDevelopersAppsCreateCall {
19159	c.ctx_ = ctx
19160	return c
19161}
19162
19163// Header returns an http.Header that can be modified by the caller to
19164// add HTTP headers to the request.
19165func (c *OrganizationsDevelopersAppsCreateCall) Header() http.Header {
19166	if c.header_ == nil {
19167		c.header_ = make(http.Header)
19168	}
19169	return c.header_
19170}
19171
19172func (c *OrganizationsDevelopersAppsCreateCall) doRequest(alt string) (*http.Response, error) {
19173	reqHeaders := make(http.Header)
19174	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
19175	for k, v := range c.header_ {
19176		reqHeaders[k] = v
19177	}
19178	reqHeaders.Set("User-Agent", c.s.userAgent())
19179	var body io.Reader = nil
19180	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerapp)
19181	if err != nil {
19182		return nil, err
19183	}
19184	reqHeaders.Set("Content-Type", "application/json")
19185	c.urlParams_.Set("alt", alt)
19186	c.urlParams_.Set("prettyPrint", "false")
19187	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apps")
19188	urls += "?" + c.urlParams_.Encode()
19189	req, err := http.NewRequest("POST", urls, body)
19190	if err != nil {
19191		return nil, err
19192	}
19193	req.Header = reqHeaders
19194	googleapi.Expand(req.URL, map[string]string{
19195		"parent": c.parent,
19196	})
19197	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19198}
19199
19200// Do executes the "apigee.organizations.developers.apps.create" call.
19201// Exactly one of *GoogleCloudApigeeV1DeveloperApp or error will be
19202// non-nil. Any non-2xx status code is an error. Response headers are in
19203// either *GoogleCloudApigeeV1DeveloperApp.ServerResponse.Header or (if
19204// a response was returned at all) in error.(*googleapi.Error).Header.
19205// Use googleapi.IsNotModified to check whether the returned error was
19206// because http.StatusNotModified was returned.
19207func (c *OrganizationsDevelopersAppsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperApp, error) {
19208	gensupport.SetOptions(c.urlParams_, opts...)
19209	res, err := c.doRequest("json")
19210	if res != nil && res.StatusCode == http.StatusNotModified {
19211		if res.Body != nil {
19212			res.Body.Close()
19213		}
19214		return nil, &googleapi.Error{
19215			Code:   res.StatusCode,
19216			Header: res.Header,
19217		}
19218	}
19219	if err != nil {
19220		return nil, err
19221	}
19222	defer googleapi.CloseBody(res)
19223	if err := googleapi.CheckResponse(res); err != nil {
19224		return nil, err
19225	}
19226	ret := &GoogleCloudApigeeV1DeveloperApp{
19227		ServerResponse: googleapi.ServerResponse{
19228			Header:         res.Header,
19229			HTTPStatusCode: res.StatusCode,
19230		},
19231	}
19232	target := &ret
19233	if err := gensupport.DecodeResponse(target, res); err != nil {
19234		return nil, err
19235	}
19236	return ret, nil
19237	// {
19238	//   "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.",
19239	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps",
19240	//   "httpMethod": "POST",
19241	//   "id": "apigee.organizations.developers.apps.create",
19242	//   "parameterOrder": [
19243	//     "parent"
19244	//   ],
19245	//   "parameters": {
19246	//     "parent": {
19247	//       "description": "Required. Name of the developer. Use the following structure in your request: `organizations/{org}/developers/{developer_email}`",
19248	//       "location": "path",
19249	//       "pattern": "^organizations/[^/]+/developers/[^/]+$",
19250	//       "required": true,
19251	//       "type": "string"
19252	//     }
19253	//   },
19254	//   "path": "v1/{+parent}/apps",
19255	//   "request": {
19256	//     "$ref": "GoogleCloudApigeeV1DeveloperApp"
19257	//   },
19258	//   "response": {
19259	//     "$ref": "GoogleCloudApigeeV1DeveloperApp"
19260	//   },
19261	//   "scopes": [
19262	//     "https://www.googleapis.com/auth/cloud-platform"
19263	//   ]
19264	// }
19265
19266}
19267
19268// method id "apigee.organizations.developers.apps.delete":
19269
19270type OrganizationsDevelopersAppsDeleteCall struct {
19271	s          *Service
19272	name       string
19273	urlParams_ gensupport.URLParams
19274	ctx_       context.Context
19275	header_    http.Header
19276}
19277
19278// Delete: Deletes a developer app. **Note**: The delete operation is
19279// asynchronous. The developer app is deleted immediately, but its
19280// associated resources, such as app keys or access tokens, may take
19281// anywhere from a few seconds to a few minutes to be deleted.
19282//
19283// - name: Name of the developer app. Use the following structure in
19284//   your request:
19285//   `organizations/{org}/developers/{developer_email}/apps/{app}`.
19286func (r *OrganizationsDevelopersAppsService) Delete(name string) *OrganizationsDevelopersAppsDeleteCall {
19287	c := &OrganizationsDevelopersAppsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19288	c.name = name
19289	return c
19290}
19291
19292// Fields allows partial responses to be retrieved. See
19293// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19294// for more information.
19295func (c *OrganizationsDevelopersAppsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsDeleteCall {
19296	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19297	return c
19298}
19299
19300// Context sets the context to be used in this call's Do method. Any
19301// pending HTTP request will be aborted if the provided context is
19302// canceled.
19303func (c *OrganizationsDevelopersAppsDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersAppsDeleteCall {
19304	c.ctx_ = ctx
19305	return c
19306}
19307
19308// Header returns an http.Header that can be modified by the caller to
19309// add HTTP headers to the request.
19310func (c *OrganizationsDevelopersAppsDeleteCall) Header() http.Header {
19311	if c.header_ == nil {
19312		c.header_ = make(http.Header)
19313	}
19314	return c.header_
19315}
19316
19317func (c *OrganizationsDevelopersAppsDeleteCall) doRequest(alt string) (*http.Response, error) {
19318	reqHeaders := make(http.Header)
19319	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
19320	for k, v := range c.header_ {
19321		reqHeaders[k] = v
19322	}
19323	reqHeaders.Set("User-Agent", c.s.userAgent())
19324	var body io.Reader = nil
19325	c.urlParams_.Set("alt", alt)
19326	c.urlParams_.Set("prettyPrint", "false")
19327	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
19328	urls += "?" + c.urlParams_.Encode()
19329	req, err := http.NewRequest("DELETE", urls, body)
19330	if err != nil {
19331		return nil, err
19332	}
19333	req.Header = reqHeaders
19334	googleapi.Expand(req.URL, map[string]string{
19335		"name": c.name,
19336	})
19337	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19338}
19339
19340// Do executes the "apigee.organizations.developers.apps.delete" call.
19341// Exactly one of *GoogleCloudApigeeV1DeveloperApp or error will be
19342// non-nil. Any non-2xx status code is an error. Response headers are in
19343// either *GoogleCloudApigeeV1DeveloperApp.ServerResponse.Header or (if
19344// a response was returned at all) in error.(*googleapi.Error).Header.
19345// Use googleapi.IsNotModified to check whether the returned error was
19346// because http.StatusNotModified was returned.
19347func (c *OrganizationsDevelopersAppsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperApp, error) {
19348	gensupport.SetOptions(c.urlParams_, opts...)
19349	res, err := c.doRequest("json")
19350	if res != nil && res.StatusCode == http.StatusNotModified {
19351		if res.Body != nil {
19352			res.Body.Close()
19353		}
19354		return nil, &googleapi.Error{
19355			Code:   res.StatusCode,
19356			Header: res.Header,
19357		}
19358	}
19359	if err != nil {
19360		return nil, err
19361	}
19362	defer googleapi.CloseBody(res)
19363	if err := googleapi.CheckResponse(res); err != nil {
19364		return nil, err
19365	}
19366	ret := &GoogleCloudApigeeV1DeveloperApp{
19367		ServerResponse: googleapi.ServerResponse{
19368			Header:         res.Header,
19369			HTTPStatusCode: res.StatusCode,
19370		},
19371	}
19372	target := &ret
19373	if err := gensupport.DecodeResponse(target, res); err != nil {
19374		return nil, err
19375	}
19376	return ret, nil
19377	// {
19378	//   "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.",
19379	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}",
19380	//   "httpMethod": "DELETE",
19381	//   "id": "apigee.organizations.developers.apps.delete",
19382	//   "parameterOrder": [
19383	//     "name"
19384	//   ],
19385	//   "parameters": {
19386	//     "name": {
19387	//       "description": "Required. Name of the developer app. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}`",
19388	//       "location": "path",
19389	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$",
19390	//       "required": true,
19391	//       "type": "string"
19392	//     }
19393	//   },
19394	//   "path": "v1/{+name}",
19395	//   "response": {
19396	//     "$ref": "GoogleCloudApigeeV1DeveloperApp"
19397	//   },
19398	//   "scopes": [
19399	//     "https://www.googleapis.com/auth/cloud-platform"
19400	//   ]
19401	// }
19402
19403}
19404
19405// method id "apigee.organizations.developers.apps.generateKeyPairOrUpdateDeveloperAppStatus":
19406
19407type OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall struct {
19408	s                               *Service
19409	name                            string
19410	googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp
19411	urlParams_                      gensupport.URLParams
19412	ctx_                            context.Context
19413	header_                         http.Header
19414}
19415
19416// GenerateKeyPairOrUpdateDeveloperAppStatus: Manages access to a
19417// developer app by enabling you to: * Approve or revoke a developer app
19418// * Generate a new consumer key and secret for a developer app To
19419// approve or revoke a developer app, set the `action` query parameter
19420// to `approved` or `revoked`, respectively, and the `Content-Type`
19421// header to `application/octet-stream`. If a developer app is revoked,
19422// none of its API keys are valid for API calls even though the keys are
19423// still `approved`. If successful, the API call returns the following
19424// HTTP status code: `204 No Content` To generate a new consumer key and
19425// secret for a developer app, pass the new key/secret details. Rather
19426// than replace an existing key, this API generates a new key. In this
19427// case, multiple key pairs may be associated with a single developer
19428// app. Each key pair has an independent status (`approved` or
19429// `revoked`) and expiration time. Any approved, non-expired key can be
19430// used in an API call. For example, if you're using API key rotation,
19431// you can generate new keys with expiration times that overlap keys
19432// that are going to expire. You might also generate a new consumer
19433// key/secret if the security of the original key/secret is compromised.
19434// The `keyExpiresIn` property defines the expiration time for the API
19435// key in milliseconds. If you don't set this property or set it to
19436// `-1`, the API key never expires. **Notes**: * When generating a new
19437// key/secret, this API replaces the existing attributes, notes, and
19438// callback URLs with those specified in the request. Include or exclude
19439// any existing information that you want to retain or delete,
19440// respectively. * To migrate existing consumer keys and secrets to
19441// hybrid from another system, see the CreateDeveloperAppKey API.
19442//
19443// - name: Name of the developer app. Use the following structure in
19444//   your request:
19445//   `organizations/{org}/developers/{developer_email}/apps/{app}`.
19446func (r *OrganizationsDevelopersAppsService) GenerateKeyPairOrUpdateDeveloperAppStatus(name string, googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp) *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall {
19447	c := &OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19448	c.name = name
19449	c.googlecloudapigeev1developerapp = googlecloudapigeev1developerapp
19450	return c
19451}
19452
19453// Action sets the optional parameter "action": Action. Valid values are
19454// `approve` or `revoke`.
19455func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) Action(action string) *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall {
19456	c.urlParams_.Set("action", action)
19457	return c
19458}
19459
19460// Fields allows partial responses to be retrieved. See
19461// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19462// for more information.
19463func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall {
19464	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19465	return c
19466}
19467
19468// Context sets the context to be used in this call's Do method. Any
19469// pending HTTP request will be aborted if the provided context is
19470// canceled.
19471func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) Context(ctx context.Context) *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall {
19472	c.ctx_ = ctx
19473	return c
19474}
19475
19476// Header returns an http.Header that can be modified by the caller to
19477// add HTTP headers to the request.
19478func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) Header() http.Header {
19479	if c.header_ == nil {
19480		c.header_ = make(http.Header)
19481	}
19482	return c.header_
19483}
19484
19485func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) doRequest(alt string) (*http.Response, error) {
19486	reqHeaders := make(http.Header)
19487	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
19488	for k, v := range c.header_ {
19489		reqHeaders[k] = v
19490	}
19491	reqHeaders.Set("User-Agent", c.s.userAgent())
19492	var body io.Reader = nil
19493	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerapp)
19494	if err != nil {
19495		return nil, err
19496	}
19497	reqHeaders.Set("Content-Type", "application/json")
19498	c.urlParams_.Set("alt", alt)
19499	c.urlParams_.Set("prettyPrint", "false")
19500	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
19501	urls += "?" + c.urlParams_.Encode()
19502	req, err := http.NewRequest("POST", urls, body)
19503	if err != nil {
19504		return nil, err
19505	}
19506	req.Header = reqHeaders
19507	googleapi.Expand(req.URL, map[string]string{
19508		"name": c.name,
19509	})
19510	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19511}
19512
19513// Do executes the "apigee.organizations.developers.apps.generateKeyPairOrUpdateDeveloperAppStatus" call.
19514// Exactly one of *GoogleCloudApigeeV1DeveloperApp or error will be
19515// non-nil. Any non-2xx status code is an error. Response headers are in
19516// either *GoogleCloudApigeeV1DeveloperApp.ServerResponse.Header or (if
19517// a response was returned at all) in error.(*googleapi.Error).Header.
19518// Use googleapi.IsNotModified to check whether the returned error was
19519// because http.StatusNotModified was returned.
19520func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperApp, error) {
19521	gensupport.SetOptions(c.urlParams_, opts...)
19522	res, err := c.doRequest("json")
19523	if res != nil && res.StatusCode == http.StatusNotModified {
19524		if res.Body != nil {
19525			res.Body.Close()
19526		}
19527		return nil, &googleapi.Error{
19528			Code:   res.StatusCode,
19529			Header: res.Header,
19530		}
19531	}
19532	if err != nil {
19533		return nil, err
19534	}
19535	defer googleapi.CloseBody(res)
19536	if err := googleapi.CheckResponse(res); err != nil {
19537		return nil, err
19538	}
19539	ret := &GoogleCloudApigeeV1DeveloperApp{
19540		ServerResponse: googleapi.ServerResponse{
19541			Header:         res.Header,
19542			HTTPStatusCode: res.StatusCode,
19543		},
19544	}
19545	target := &ret
19546	if err := gensupport.DecodeResponse(target, res); err != nil {
19547		return nil, err
19548	}
19549	return ret, nil
19550	// {
19551	//   "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.",
19552	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}",
19553	//   "httpMethod": "POST",
19554	//   "id": "apigee.organizations.developers.apps.generateKeyPairOrUpdateDeveloperAppStatus",
19555	//   "parameterOrder": [
19556	//     "name"
19557	//   ],
19558	//   "parameters": {
19559	//     "action": {
19560	//       "description": "Action. Valid values are `approve` or `revoke`.",
19561	//       "location": "query",
19562	//       "type": "string"
19563	//     },
19564	//     "name": {
19565	//       "description": "Required. Name of the developer app. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}`",
19566	//       "location": "path",
19567	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$",
19568	//       "required": true,
19569	//       "type": "string"
19570	//     }
19571	//   },
19572	//   "path": "v1/{+name}",
19573	//   "request": {
19574	//     "$ref": "GoogleCloudApigeeV1DeveloperApp"
19575	//   },
19576	//   "response": {
19577	//     "$ref": "GoogleCloudApigeeV1DeveloperApp"
19578	//   },
19579	//   "scopes": [
19580	//     "https://www.googleapis.com/auth/cloud-platform"
19581	//   ]
19582	// }
19583
19584}
19585
19586// method id "apigee.organizations.developers.apps.get":
19587
19588type OrganizationsDevelopersAppsGetCall struct {
19589	s            *Service
19590	name         string
19591	urlParams_   gensupport.URLParams
19592	ifNoneMatch_ string
19593	ctx_         context.Context
19594	header_      http.Header
19595}
19596
19597// Get: Returns the details for a developer app.
19598//
19599// - name: Name of the developer app. Use the following structure in
19600//   your request:
19601//   `organizations/{org}/developers/{developer_email}/apps/{app}`.
19602func (r *OrganizationsDevelopersAppsService) Get(name string) *OrganizationsDevelopersAppsGetCall {
19603	c := &OrganizationsDevelopersAppsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19604	c.name = name
19605	return c
19606}
19607
19608// Entity sets the optional parameter "entity": **Note**: Must be used
19609// in conjunction with the `query` parameter. Set to `apiresources` to
19610// return the number of API resources that have been approved for access
19611// by a developer app in the specified Apigee organization.
19612func (c *OrganizationsDevelopersAppsGetCall) Entity(entity string) *OrganizationsDevelopersAppsGetCall {
19613	c.urlParams_.Set("entity", entity)
19614	return c
19615}
19616
19617// Query sets the optional parameter "query": **Note**: Must be used in
19618// conjunction with the `entity` parameter. Set to `count` to return the
19619// number of API resources that have been approved for access by a
19620// developer app in the specified Apigee organization.
19621func (c *OrganizationsDevelopersAppsGetCall) Query(query string) *OrganizationsDevelopersAppsGetCall {
19622	c.urlParams_.Set("query", query)
19623	return c
19624}
19625
19626// Fields allows partial responses to be retrieved. See
19627// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19628// for more information.
19629func (c *OrganizationsDevelopersAppsGetCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsGetCall {
19630	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19631	return c
19632}
19633
19634// IfNoneMatch sets the optional parameter which makes the operation
19635// fail if the object's ETag matches the given value. This is useful for
19636// getting updates only after the object has changed since the last
19637// request. Use googleapi.IsNotModified to check whether the response
19638// error from Do is the result of In-None-Match.
19639func (c *OrganizationsDevelopersAppsGetCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAppsGetCall {
19640	c.ifNoneMatch_ = entityTag
19641	return c
19642}
19643
19644// Context sets the context to be used in this call's Do method. Any
19645// pending HTTP request will be aborted if the provided context is
19646// canceled.
19647func (c *OrganizationsDevelopersAppsGetCall) Context(ctx context.Context) *OrganizationsDevelopersAppsGetCall {
19648	c.ctx_ = ctx
19649	return c
19650}
19651
19652// Header returns an http.Header that can be modified by the caller to
19653// add HTTP headers to the request.
19654func (c *OrganizationsDevelopersAppsGetCall) Header() http.Header {
19655	if c.header_ == nil {
19656		c.header_ = make(http.Header)
19657	}
19658	return c.header_
19659}
19660
19661func (c *OrganizationsDevelopersAppsGetCall) doRequest(alt string) (*http.Response, error) {
19662	reqHeaders := make(http.Header)
19663	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
19664	for k, v := range c.header_ {
19665		reqHeaders[k] = v
19666	}
19667	reqHeaders.Set("User-Agent", c.s.userAgent())
19668	if c.ifNoneMatch_ != "" {
19669		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19670	}
19671	var body io.Reader = nil
19672	c.urlParams_.Set("alt", alt)
19673	c.urlParams_.Set("prettyPrint", "false")
19674	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
19675	urls += "?" + c.urlParams_.Encode()
19676	req, err := http.NewRequest("GET", urls, body)
19677	if err != nil {
19678		return nil, err
19679	}
19680	req.Header = reqHeaders
19681	googleapi.Expand(req.URL, map[string]string{
19682		"name": c.name,
19683	})
19684	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19685}
19686
19687// Do executes the "apigee.organizations.developers.apps.get" call.
19688// Exactly one of *GoogleCloudApigeeV1DeveloperApp or error will be
19689// non-nil. Any non-2xx status code is an error. Response headers are in
19690// either *GoogleCloudApigeeV1DeveloperApp.ServerResponse.Header or (if
19691// a response was returned at all) in error.(*googleapi.Error).Header.
19692// Use googleapi.IsNotModified to check whether the returned error was
19693// because http.StatusNotModified was returned.
19694func (c *OrganizationsDevelopersAppsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperApp, error) {
19695	gensupport.SetOptions(c.urlParams_, opts...)
19696	res, err := c.doRequest("json")
19697	if res != nil && res.StatusCode == http.StatusNotModified {
19698		if res.Body != nil {
19699			res.Body.Close()
19700		}
19701		return nil, &googleapi.Error{
19702			Code:   res.StatusCode,
19703			Header: res.Header,
19704		}
19705	}
19706	if err != nil {
19707		return nil, err
19708	}
19709	defer googleapi.CloseBody(res)
19710	if err := googleapi.CheckResponse(res); err != nil {
19711		return nil, err
19712	}
19713	ret := &GoogleCloudApigeeV1DeveloperApp{
19714		ServerResponse: googleapi.ServerResponse{
19715			Header:         res.Header,
19716			HTTPStatusCode: res.StatusCode,
19717		},
19718	}
19719	target := &ret
19720	if err := gensupport.DecodeResponse(target, res); err != nil {
19721		return nil, err
19722	}
19723	return ret, nil
19724	// {
19725	//   "description": "Returns the details for a developer app.",
19726	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}",
19727	//   "httpMethod": "GET",
19728	//   "id": "apigee.organizations.developers.apps.get",
19729	//   "parameterOrder": [
19730	//     "name"
19731	//   ],
19732	//   "parameters": {
19733	//     "entity": {
19734	//       "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.",
19735	//       "location": "query",
19736	//       "type": "string"
19737	//     },
19738	//     "name": {
19739	//       "description": "Required. Name of the developer app. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}`",
19740	//       "location": "path",
19741	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$",
19742	//       "required": true,
19743	//       "type": "string"
19744	//     },
19745	//     "query": {
19746	//       "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.",
19747	//       "location": "query",
19748	//       "type": "string"
19749	//     }
19750	//   },
19751	//   "path": "v1/{+name}",
19752	//   "response": {
19753	//     "$ref": "GoogleCloudApigeeV1DeveloperApp"
19754	//   },
19755	//   "scopes": [
19756	//     "https://www.googleapis.com/auth/cloud-platform"
19757	//   ]
19758	// }
19759
19760}
19761
19762// method id "apigee.organizations.developers.apps.list":
19763
19764type OrganizationsDevelopersAppsListCall struct {
19765	s            *Service
19766	parent       string
19767	urlParams_   gensupport.URLParams
19768	ifNoneMatch_ string
19769	ctx_         context.Context
19770	header_      http.Header
19771}
19772
19773// List: Lists all apps created by a developer in an Apigee
19774// organization. Optionally, you can request an expanded view of the
19775// developer apps. A maximum of 100 developer apps are returned per API
19776// call. You can paginate the list of deveoper apps returned using the
19777// `startKey` and `count` query parameters.
19778//
19779// - parent: Name of the developer. Use the following structure in your
19780//   request: `organizations/{org}/developers/{developer_email}`.
19781func (r *OrganizationsDevelopersAppsService) List(parent string) *OrganizationsDevelopersAppsListCall {
19782	c := &OrganizationsDevelopersAppsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19783	c.parent = parent
19784	return c
19785}
19786
19787// Count sets the optional parameter "count": Number of developer apps
19788// to return in the API call. Use with the `startKey` parameter to
19789// provide more targeted filtering. The limit is 1000.
19790func (c *OrganizationsDevelopersAppsListCall) Count(count int64) *OrganizationsDevelopersAppsListCall {
19791	c.urlParams_.Set("count", fmt.Sprint(count))
19792	return c
19793}
19794
19795// Expand sets the optional parameter "expand": Specifies whether to
19796// expand the results. Set to `true` to expand the results. This query
19797// parameter is not valid if you use the `count` or `startKey` query
19798// parameters.
19799func (c *OrganizationsDevelopersAppsListCall) Expand(expand bool) *OrganizationsDevelopersAppsListCall {
19800	c.urlParams_.Set("expand", fmt.Sprint(expand))
19801	return c
19802}
19803
19804// ShallowExpand sets the optional parameter "shallowExpand": Specifies
19805// whether to expand the results in shallow mode. Set to `true` to
19806// expand the results in shallow mode.
19807func (c *OrganizationsDevelopersAppsListCall) ShallowExpand(shallowExpand bool) *OrganizationsDevelopersAppsListCall {
19808	c.urlParams_.Set("shallowExpand", fmt.Sprint(shallowExpand))
19809	return c
19810}
19811
19812// StartKey sets the optional parameter "startKey": **Note**: Must be
19813// used in conjunction with the `count` parameter. Name of the developer
19814// app from which to start displaying the list of developer apps. For
19815// example, if you're returning 50 developer apps at a time (using the
19816// `count` query parameter), you can view developer apps 50-99 by
19817// entering the name of the 50th developer app. The developer app name
19818// is case sensitive.
19819func (c *OrganizationsDevelopersAppsListCall) StartKey(startKey string) *OrganizationsDevelopersAppsListCall {
19820	c.urlParams_.Set("startKey", startKey)
19821	return c
19822}
19823
19824// Fields allows partial responses to be retrieved. See
19825// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19826// for more information.
19827func (c *OrganizationsDevelopersAppsListCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsListCall {
19828	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19829	return c
19830}
19831
19832// IfNoneMatch sets the optional parameter which makes the operation
19833// fail if the object's ETag matches the given value. This is useful for
19834// getting updates only after the object has changed since the last
19835// request. Use googleapi.IsNotModified to check whether the response
19836// error from Do is the result of In-None-Match.
19837func (c *OrganizationsDevelopersAppsListCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAppsListCall {
19838	c.ifNoneMatch_ = entityTag
19839	return c
19840}
19841
19842// Context sets the context to be used in this call's Do method. Any
19843// pending HTTP request will be aborted if the provided context is
19844// canceled.
19845func (c *OrganizationsDevelopersAppsListCall) Context(ctx context.Context) *OrganizationsDevelopersAppsListCall {
19846	c.ctx_ = ctx
19847	return c
19848}
19849
19850// Header returns an http.Header that can be modified by the caller to
19851// add HTTP headers to the request.
19852func (c *OrganizationsDevelopersAppsListCall) Header() http.Header {
19853	if c.header_ == nil {
19854		c.header_ = make(http.Header)
19855	}
19856	return c.header_
19857}
19858
19859func (c *OrganizationsDevelopersAppsListCall) doRequest(alt string) (*http.Response, error) {
19860	reqHeaders := make(http.Header)
19861	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
19862	for k, v := range c.header_ {
19863		reqHeaders[k] = v
19864	}
19865	reqHeaders.Set("User-Agent", c.s.userAgent())
19866	if c.ifNoneMatch_ != "" {
19867		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19868	}
19869	var body io.Reader = nil
19870	c.urlParams_.Set("alt", alt)
19871	c.urlParams_.Set("prettyPrint", "false")
19872	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apps")
19873	urls += "?" + c.urlParams_.Encode()
19874	req, err := http.NewRequest("GET", urls, body)
19875	if err != nil {
19876		return nil, err
19877	}
19878	req.Header = reqHeaders
19879	googleapi.Expand(req.URL, map[string]string{
19880		"parent": c.parent,
19881	})
19882	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19883}
19884
19885// Do executes the "apigee.organizations.developers.apps.list" call.
19886// Exactly one of *GoogleCloudApigeeV1ListDeveloperAppsResponse or error
19887// will be non-nil. Any non-2xx status code is an error. Response
19888// headers are in either
19889// *GoogleCloudApigeeV1ListDeveloperAppsResponse.ServerResponse.Header
19890// or (if a response was returned at all) in
19891// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
19892// whether the returned error was because http.StatusNotModified was
19893// returned.
19894func (c *OrganizationsDevelopersAppsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeveloperAppsResponse, error) {
19895	gensupport.SetOptions(c.urlParams_, opts...)
19896	res, err := c.doRequest("json")
19897	if res != nil && res.StatusCode == http.StatusNotModified {
19898		if res.Body != nil {
19899			res.Body.Close()
19900		}
19901		return nil, &googleapi.Error{
19902			Code:   res.StatusCode,
19903			Header: res.Header,
19904		}
19905	}
19906	if err != nil {
19907		return nil, err
19908	}
19909	defer googleapi.CloseBody(res)
19910	if err := googleapi.CheckResponse(res); err != nil {
19911		return nil, err
19912	}
19913	ret := &GoogleCloudApigeeV1ListDeveloperAppsResponse{
19914		ServerResponse: googleapi.ServerResponse{
19915			Header:         res.Header,
19916			HTTPStatusCode: res.StatusCode,
19917		},
19918	}
19919	target := &ret
19920	if err := gensupport.DecodeResponse(target, res); err != nil {
19921		return nil, err
19922	}
19923	return ret, nil
19924	// {
19925	//   "description": "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.",
19926	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps",
19927	//   "httpMethod": "GET",
19928	//   "id": "apigee.organizations.developers.apps.list",
19929	//   "parameterOrder": [
19930	//     "parent"
19931	//   ],
19932	//   "parameters": {
19933	//     "count": {
19934	//       "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.",
19935	//       "format": "int64",
19936	//       "location": "query",
19937	//       "type": "string"
19938	//     },
19939	//     "expand": {
19940	//       "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.",
19941	//       "location": "query",
19942	//       "type": "boolean"
19943	//     },
19944	//     "parent": {
19945	//       "description": "Required. Name of the developer. Use the following structure in your request: `organizations/{org}/developers/{developer_email}`",
19946	//       "location": "path",
19947	//       "pattern": "^organizations/[^/]+/developers/[^/]+$",
19948	//       "required": true,
19949	//       "type": "string"
19950	//     },
19951	//     "shallowExpand": {
19952	//       "description": "Optional. Specifies whether to expand the results in shallow mode. Set to `true` to expand the results in shallow mode.",
19953	//       "location": "query",
19954	//       "type": "boolean"
19955	//     },
19956	//     "startKey": {
19957	//       "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.",
19958	//       "location": "query",
19959	//       "type": "string"
19960	//     }
19961	//   },
19962	//   "path": "v1/{+parent}/apps",
19963	//   "response": {
19964	//     "$ref": "GoogleCloudApigeeV1ListDeveloperAppsResponse"
19965	//   },
19966	//   "scopes": [
19967	//     "https://www.googleapis.com/auth/cloud-platform"
19968	//   ]
19969	// }
19970
19971}
19972
19973// method id "apigee.organizations.developers.apps.update":
19974
19975type OrganizationsDevelopersAppsUpdateCall struct {
19976	s                               *Service
19977	name                            string
19978	googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp
19979	urlParams_                      gensupport.URLParams
19980	ctx_                            context.Context
19981	header_                         http.Header
19982}
19983
19984// Update: Updates the details for a developer app. In addition, you can
19985// add an API product to a developer app and automatically generate an
19986// API key for the app to use when calling APIs in the API product. If
19987// you want to use an existing API key for the API product, add the API
19988// product to the API key using the UpdateDeveloperAppKey API. Using
19989// this API, you cannot update the following: * App name as it is the
19990// primary key used to identify the app and cannot be changed. * Scopes
19991// associated with the app. Instead, use the ReplaceDeveloperAppKey API.
19992// This API replaces the existing attributes with those specified in the
19993// request. Include or exclude any existing attributes that you want to
19994// retain or delete, respectively.
19995//
19996// - name: Name of the developer app. Use the following structure in
19997//   your request:
19998//   `organizations/{org}/developers/{developer_email}/apps/{app}`.
19999func (r *OrganizationsDevelopersAppsService) Update(name string, googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp) *OrganizationsDevelopersAppsUpdateCall {
20000	c := &OrganizationsDevelopersAppsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20001	c.name = name
20002	c.googlecloudapigeev1developerapp = googlecloudapigeev1developerapp
20003	return c
20004}
20005
20006// Fields allows partial responses to be retrieved. See
20007// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20008// for more information.
20009func (c *OrganizationsDevelopersAppsUpdateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsUpdateCall {
20010	c.urlParams_.Set("fields", googleapi.CombineFields(s))
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 *OrganizationsDevelopersAppsUpdateCall) Context(ctx context.Context) *OrganizationsDevelopersAppsUpdateCall {
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 *OrganizationsDevelopersAppsUpdateCall) Header() http.Header {
20025	if c.header_ == nil {
20026		c.header_ = make(http.Header)
20027	}
20028	return c.header_
20029}
20030
20031func (c *OrganizationsDevelopersAppsUpdateCall) doRequest(alt string) (*http.Response, error) {
20032	reqHeaders := make(http.Header)
20033	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
20034	for k, v := range c.header_ {
20035		reqHeaders[k] = v
20036	}
20037	reqHeaders.Set("User-Agent", c.s.userAgent())
20038	var body io.Reader = nil
20039	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerapp)
20040	if err != nil {
20041		return nil, err
20042	}
20043	reqHeaders.Set("Content-Type", "application/json")
20044	c.urlParams_.Set("alt", alt)
20045	c.urlParams_.Set("prettyPrint", "false")
20046	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
20047	urls += "?" + c.urlParams_.Encode()
20048	req, err := http.NewRequest("PUT", urls, body)
20049	if err != nil {
20050		return nil, err
20051	}
20052	req.Header = reqHeaders
20053	googleapi.Expand(req.URL, map[string]string{
20054		"name": c.name,
20055	})
20056	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20057}
20058
20059// Do executes the "apigee.organizations.developers.apps.update" call.
20060// Exactly one of *GoogleCloudApigeeV1DeveloperApp or error will be
20061// non-nil. Any non-2xx status code is an error. Response headers are in
20062// either *GoogleCloudApigeeV1DeveloperApp.ServerResponse.Header or (if
20063// a response was returned at all) in error.(*googleapi.Error).Header.
20064// Use googleapi.IsNotModified to check whether the returned error was
20065// because http.StatusNotModified was returned.
20066func (c *OrganizationsDevelopersAppsUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperApp, error) {
20067	gensupport.SetOptions(c.urlParams_, opts...)
20068	res, err := c.doRequest("json")
20069	if res != nil && res.StatusCode == http.StatusNotModified {
20070		if res.Body != nil {
20071			res.Body.Close()
20072		}
20073		return nil, &googleapi.Error{
20074			Code:   res.StatusCode,
20075			Header: res.Header,
20076		}
20077	}
20078	if err != nil {
20079		return nil, err
20080	}
20081	defer googleapi.CloseBody(res)
20082	if err := googleapi.CheckResponse(res); err != nil {
20083		return nil, err
20084	}
20085	ret := &GoogleCloudApigeeV1DeveloperApp{
20086		ServerResponse: googleapi.ServerResponse{
20087			Header:         res.Header,
20088			HTTPStatusCode: res.StatusCode,
20089		},
20090	}
20091	target := &ret
20092	if err := gensupport.DecodeResponse(target, res); err != nil {
20093		return nil, err
20094	}
20095	return ret, nil
20096	// {
20097	//   "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.",
20098	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}",
20099	//   "httpMethod": "PUT",
20100	//   "id": "apigee.organizations.developers.apps.update",
20101	//   "parameterOrder": [
20102	//     "name"
20103	//   ],
20104	//   "parameters": {
20105	//     "name": {
20106	//       "description": "Required. Name of the developer app. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}`",
20107	//       "location": "path",
20108	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$",
20109	//       "required": true,
20110	//       "type": "string"
20111	//     }
20112	//   },
20113	//   "path": "v1/{+name}",
20114	//   "request": {
20115	//     "$ref": "GoogleCloudApigeeV1DeveloperApp"
20116	//   },
20117	//   "response": {
20118	//     "$ref": "GoogleCloudApigeeV1DeveloperApp"
20119	//   },
20120	//   "scopes": [
20121	//     "https://www.googleapis.com/auth/cloud-platform"
20122	//   ]
20123	// }
20124
20125}
20126
20127// method id "apigee.organizations.developers.apps.attributes.delete":
20128
20129type OrganizationsDevelopersAppsAttributesDeleteCall struct {
20130	s          *Service
20131	name       string
20132	urlParams_ gensupport.URLParams
20133	ctx_       context.Context
20134	header_    http.Header
20135}
20136
20137// Delete: Deletes a developer app attribute.
20138//
20139// - name: Name of the developer app attribute. Use the following
20140//   structure in your request:
20141//   `organizations/{org}/developers/{developer_email}/apps/{app}/attribu
20142//   tes/{attribute}`.
20143func (r *OrganizationsDevelopersAppsAttributesService) Delete(name string) *OrganizationsDevelopersAppsAttributesDeleteCall {
20144	c := &OrganizationsDevelopersAppsAttributesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20145	c.name = name
20146	return c
20147}
20148
20149// Fields allows partial responses to be retrieved. See
20150// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20151// for more information.
20152func (c *OrganizationsDevelopersAppsAttributesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsAttributesDeleteCall {
20153	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20154	return c
20155}
20156
20157// Context sets the context to be used in this call's Do method. Any
20158// pending HTTP request will be aborted if the provided context is
20159// canceled.
20160func (c *OrganizationsDevelopersAppsAttributesDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersAppsAttributesDeleteCall {
20161	c.ctx_ = ctx
20162	return c
20163}
20164
20165// Header returns an http.Header that can be modified by the caller to
20166// add HTTP headers to the request.
20167func (c *OrganizationsDevelopersAppsAttributesDeleteCall) Header() http.Header {
20168	if c.header_ == nil {
20169		c.header_ = make(http.Header)
20170	}
20171	return c.header_
20172}
20173
20174func (c *OrganizationsDevelopersAppsAttributesDeleteCall) doRequest(alt string) (*http.Response, error) {
20175	reqHeaders := make(http.Header)
20176	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
20177	for k, v := range c.header_ {
20178		reqHeaders[k] = v
20179	}
20180	reqHeaders.Set("User-Agent", c.s.userAgent())
20181	var body io.Reader = nil
20182	c.urlParams_.Set("alt", alt)
20183	c.urlParams_.Set("prettyPrint", "false")
20184	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
20185	urls += "?" + c.urlParams_.Encode()
20186	req, err := http.NewRequest("DELETE", urls, body)
20187	if err != nil {
20188		return nil, err
20189	}
20190	req.Header = reqHeaders
20191	googleapi.Expand(req.URL, map[string]string{
20192		"name": c.name,
20193	})
20194	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20195}
20196
20197// Do executes the "apigee.organizations.developers.apps.attributes.delete" call.
20198// Exactly one of *GoogleCloudApigeeV1Attribute or error will be
20199// non-nil. Any non-2xx status code is an error. Response headers are in
20200// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a
20201// response was returned at all) in error.(*googleapi.Error).Header. Use
20202// googleapi.IsNotModified to check whether the returned error was
20203// because http.StatusNotModified was returned.
20204func (c *OrganizationsDevelopersAppsAttributesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
20205	gensupport.SetOptions(c.urlParams_, opts...)
20206	res, err := c.doRequest("json")
20207	if res != nil && res.StatusCode == http.StatusNotModified {
20208		if res.Body != nil {
20209			res.Body.Close()
20210		}
20211		return nil, &googleapi.Error{
20212			Code:   res.StatusCode,
20213			Header: res.Header,
20214		}
20215	}
20216	if err != nil {
20217		return nil, err
20218	}
20219	defer googleapi.CloseBody(res)
20220	if err := googleapi.CheckResponse(res); err != nil {
20221		return nil, err
20222	}
20223	ret := &GoogleCloudApigeeV1Attribute{
20224		ServerResponse: googleapi.ServerResponse{
20225			Header:         res.Header,
20226			HTTPStatusCode: res.StatusCode,
20227		},
20228	}
20229	target := &ret
20230	if err := gensupport.DecodeResponse(target, res); err != nil {
20231		return nil, err
20232	}
20233	return ret, nil
20234	// {
20235	//   "description": "Deletes a developer app attribute.",
20236	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/attributes/{attributesId}",
20237	//   "httpMethod": "DELETE",
20238	//   "id": "apigee.organizations.developers.apps.attributes.delete",
20239	//   "parameterOrder": [
20240	//     "name"
20241	//   ],
20242	//   "parameters": {
20243	//     "name": {
20244	//       "description": "Required. Name of the developer app attribute. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}/attributes/{attribute}`",
20245	//       "location": "path",
20246	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/attributes/[^/]+$",
20247	//       "required": true,
20248	//       "type": "string"
20249	//     }
20250	//   },
20251	//   "path": "v1/{+name}",
20252	//   "response": {
20253	//     "$ref": "GoogleCloudApigeeV1Attribute"
20254	//   },
20255	//   "scopes": [
20256	//     "https://www.googleapis.com/auth/cloud-platform"
20257	//   ]
20258	// }
20259
20260}
20261
20262// method id "apigee.organizations.developers.apps.attributes.get":
20263
20264type OrganizationsDevelopersAppsAttributesGetCall struct {
20265	s            *Service
20266	name         string
20267	urlParams_   gensupport.URLParams
20268	ifNoneMatch_ string
20269	ctx_         context.Context
20270	header_      http.Header
20271}
20272
20273// Get: Returns a developer app attribute.
20274//
20275// - name: Name of the developer app attribute. Use the following
20276//   structure in your request:
20277//   `organizations/{org}/developers/{developer_email}/apps/{app}/attribu
20278//   tes/{attribute}`.
20279func (r *OrganizationsDevelopersAppsAttributesService) Get(name string) *OrganizationsDevelopersAppsAttributesGetCall {
20280	c := &OrganizationsDevelopersAppsAttributesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20281	c.name = name
20282	return c
20283}
20284
20285// Fields allows partial responses to be retrieved. See
20286// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20287// for more information.
20288func (c *OrganizationsDevelopersAppsAttributesGetCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsAttributesGetCall {
20289	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20290	return c
20291}
20292
20293// IfNoneMatch sets the optional parameter which makes the operation
20294// fail if the object's ETag matches the given value. This is useful for
20295// getting updates only after the object has changed since the last
20296// request. Use googleapi.IsNotModified to check whether the response
20297// error from Do is the result of In-None-Match.
20298func (c *OrganizationsDevelopersAppsAttributesGetCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAppsAttributesGetCall {
20299	c.ifNoneMatch_ = entityTag
20300	return c
20301}
20302
20303// Context sets the context to be used in this call's Do method. Any
20304// pending HTTP request will be aborted if the provided context is
20305// canceled.
20306func (c *OrganizationsDevelopersAppsAttributesGetCall) Context(ctx context.Context) *OrganizationsDevelopersAppsAttributesGetCall {
20307	c.ctx_ = ctx
20308	return c
20309}
20310
20311// Header returns an http.Header that can be modified by the caller to
20312// add HTTP headers to the request.
20313func (c *OrganizationsDevelopersAppsAttributesGetCall) Header() http.Header {
20314	if c.header_ == nil {
20315		c.header_ = make(http.Header)
20316	}
20317	return c.header_
20318}
20319
20320func (c *OrganizationsDevelopersAppsAttributesGetCall) doRequest(alt string) (*http.Response, error) {
20321	reqHeaders := make(http.Header)
20322	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
20323	for k, v := range c.header_ {
20324		reqHeaders[k] = v
20325	}
20326	reqHeaders.Set("User-Agent", c.s.userAgent())
20327	if c.ifNoneMatch_ != "" {
20328		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
20329	}
20330	var body io.Reader = nil
20331	c.urlParams_.Set("alt", alt)
20332	c.urlParams_.Set("prettyPrint", "false")
20333	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
20334	urls += "?" + c.urlParams_.Encode()
20335	req, err := http.NewRequest("GET", urls, body)
20336	if err != nil {
20337		return nil, err
20338	}
20339	req.Header = reqHeaders
20340	googleapi.Expand(req.URL, map[string]string{
20341		"name": c.name,
20342	})
20343	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20344}
20345
20346// Do executes the "apigee.organizations.developers.apps.attributes.get" call.
20347// Exactly one of *GoogleCloudApigeeV1Attribute or error will be
20348// non-nil. Any non-2xx status code is an error. Response headers are in
20349// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a
20350// response was returned at all) in error.(*googleapi.Error).Header. Use
20351// googleapi.IsNotModified to check whether the returned error was
20352// because http.StatusNotModified was returned.
20353func (c *OrganizationsDevelopersAppsAttributesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
20354	gensupport.SetOptions(c.urlParams_, opts...)
20355	res, err := c.doRequest("json")
20356	if res != nil && res.StatusCode == http.StatusNotModified {
20357		if res.Body != nil {
20358			res.Body.Close()
20359		}
20360		return nil, &googleapi.Error{
20361			Code:   res.StatusCode,
20362			Header: res.Header,
20363		}
20364	}
20365	if err != nil {
20366		return nil, err
20367	}
20368	defer googleapi.CloseBody(res)
20369	if err := googleapi.CheckResponse(res); err != nil {
20370		return nil, err
20371	}
20372	ret := &GoogleCloudApigeeV1Attribute{
20373		ServerResponse: googleapi.ServerResponse{
20374			Header:         res.Header,
20375			HTTPStatusCode: res.StatusCode,
20376		},
20377	}
20378	target := &ret
20379	if err := gensupport.DecodeResponse(target, res); err != nil {
20380		return nil, err
20381	}
20382	return ret, nil
20383	// {
20384	//   "description": "Returns a developer app attribute.",
20385	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/attributes/{attributesId}",
20386	//   "httpMethod": "GET",
20387	//   "id": "apigee.organizations.developers.apps.attributes.get",
20388	//   "parameterOrder": [
20389	//     "name"
20390	//   ],
20391	//   "parameters": {
20392	//     "name": {
20393	//       "description": "Required. Name of the developer app attribute. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}/attributes/{attribute}`",
20394	//       "location": "path",
20395	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/attributes/[^/]+$",
20396	//       "required": true,
20397	//       "type": "string"
20398	//     }
20399	//   },
20400	//   "path": "v1/{+name}",
20401	//   "response": {
20402	//     "$ref": "GoogleCloudApigeeV1Attribute"
20403	//   },
20404	//   "scopes": [
20405	//     "https://www.googleapis.com/auth/cloud-platform"
20406	//   ]
20407	// }
20408
20409}
20410
20411// method id "apigee.organizations.developers.apps.attributes.list":
20412
20413type OrganizationsDevelopersAppsAttributesListCall struct {
20414	s            *Service
20415	parent       string
20416	urlParams_   gensupport.URLParams
20417	ifNoneMatch_ string
20418	ctx_         context.Context
20419	header_      http.Header
20420}
20421
20422// List: Returns a list of all developer app attributes.
20423//
20424// - parent: Name of the developer app. Use the following structure in
20425//   your request:
20426//   `organizations/{org}/developers/{developer_email}/apps/{app}`.
20427func (r *OrganizationsDevelopersAppsAttributesService) List(parent string) *OrganizationsDevelopersAppsAttributesListCall {
20428	c := &OrganizationsDevelopersAppsAttributesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20429	c.parent = parent
20430	return c
20431}
20432
20433// Fields allows partial responses to be retrieved. See
20434// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20435// for more information.
20436func (c *OrganizationsDevelopersAppsAttributesListCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsAttributesListCall {
20437	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20438	return c
20439}
20440
20441// IfNoneMatch sets the optional parameter which makes the operation
20442// fail if the object's ETag matches the given value. This is useful for
20443// getting updates only after the object has changed since the last
20444// request. Use googleapi.IsNotModified to check whether the response
20445// error from Do is the result of In-None-Match.
20446func (c *OrganizationsDevelopersAppsAttributesListCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAppsAttributesListCall {
20447	c.ifNoneMatch_ = entityTag
20448	return c
20449}
20450
20451// Context sets the context to be used in this call's Do method. Any
20452// pending HTTP request will be aborted if the provided context is
20453// canceled.
20454func (c *OrganizationsDevelopersAppsAttributesListCall) Context(ctx context.Context) *OrganizationsDevelopersAppsAttributesListCall {
20455	c.ctx_ = ctx
20456	return c
20457}
20458
20459// Header returns an http.Header that can be modified by the caller to
20460// add HTTP headers to the request.
20461func (c *OrganizationsDevelopersAppsAttributesListCall) Header() http.Header {
20462	if c.header_ == nil {
20463		c.header_ = make(http.Header)
20464	}
20465	return c.header_
20466}
20467
20468func (c *OrganizationsDevelopersAppsAttributesListCall) doRequest(alt string) (*http.Response, error) {
20469	reqHeaders := make(http.Header)
20470	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
20471	for k, v := range c.header_ {
20472		reqHeaders[k] = v
20473	}
20474	reqHeaders.Set("User-Agent", c.s.userAgent())
20475	if c.ifNoneMatch_ != "" {
20476		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
20477	}
20478	var body io.Reader = nil
20479	c.urlParams_.Set("alt", alt)
20480	c.urlParams_.Set("prettyPrint", "false")
20481	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attributes")
20482	urls += "?" + c.urlParams_.Encode()
20483	req, err := http.NewRequest("GET", urls, body)
20484	if err != nil {
20485		return nil, err
20486	}
20487	req.Header = reqHeaders
20488	googleapi.Expand(req.URL, map[string]string{
20489		"parent": c.parent,
20490	})
20491	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20492}
20493
20494// Do executes the "apigee.organizations.developers.apps.attributes.list" call.
20495// Exactly one of *GoogleCloudApigeeV1Attributes or error will be
20496// non-nil. Any non-2xx status code is an error. Response headers are in
20497// either *GoogleCloudApigeeV1Attributes.ServerResponse.Header or (if a
20498// response was returned at all) in error.(*googleapi.Error).Header. Use
20499// googleapi.IsNotModified to check whether the returned error was
20500// because http.StatusNotModified was returned.
20501func (c *OrganizationsDevelopersAppsAttributesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attributes, error) {
20502	gensupport.SetOptions(c.urlParams_, opts...)
20503	res, err := c.doRequest("json")
20504	if res != nil && res.StatusCode == http.StatusNotModified {
20505		if res.Body != nil {
20506			res.Body.Close()
20507		}
20508		return nil, &googleapi.Error{
20509			Code:   res.StatusCode,
20510			Header: res.Header,
20511		}
20512	}
20513	if err != nil {
20514		return nil, err
20515	}
20516	defer googleapi.CloseBody(res)
20517	if err := googleapi.CheckResponse(res); err != nil {
20518		return nil, err
20519	}
20520	ret := &GoogleCloudApigeeV1Attributes{
20521		ServerResponse: googleapi.ServerResponse{
20522			Header:         res.Header,
20523			HTTPStatusCode: res.StatusCode,
20524		},
20525	}
20526	target := &ret
20527	if err := gensupport.DecodeResponse(target, res); err != nil {
20528		return nil, err
20529	}
20530	return ret, nil
20531	// {
20532	//   "description": "Returns a list of all developer app attributes.",
20533	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/attributes",
20534	//   "httpMethod": "GET",
20535	//   "id": "apigee.organizations.developers.apps.attributes.list",
20536	//   "parameterOrder": [
20537	//     "parent"
20538	//   ],
20539	//   "parameters": {
20540	//     "parent": {
20541	//       "description": "Required. Name of the developer app. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}`",
20542	//       "location": "path",
20543	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$",
20544	//       "required": true,
20545	//       "type": "string"
20546	//     }
20547	//   },
20548	//   "path": "v1/{+parent}/attributes",
20549	//   "response": {
20550	//     "$ref": "GoogleCloudApigeeV1Attributes"
20551	//   },
20552	//   "scopes": [
20553	//     "https://www.googleapis.com/auth/cloud-platform"
20554	//   ]
20555	// }
20556
20557}
20558
20559// method id "apigee.organizations.developers.apps.attributes.updateDeveloperAppAttribute":
20560
20561type OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall struct {
20562	s                            *Service
20563	name                         string
20564	googlecloudapigeev1attribute *GoogleCloudApigeeV1Attribute
20565	urlParams_                   gensupport.URLParams
20566	ctx_                         context.Context
20567	header_                      http.Header
20568}
20569
20570// UpdateDeveloperAppAttribute: Updates a developer app attribute.
20571// **Note**: OAuth access tokens and Key Management Service (KMS)
20572// entities (apps, developers, and API products) are cached for 180
20573// seconds (current default). Any custom attributes associated with
20574// these entities are cached for at least 180 seconds after the entity
20575// is accessed at runtime. Therefore, an `ExpiresIn` element on the
20576// OAuthV2 policy won't be able to expire an access token in less than
20577// 180 seconds.
20578//
20579// - name: Name of the developer app attribute. Use the following
20580//   structure in your request:
20581//   `organizations/{org}/developers/{developer_email}/apps/{app}/attribu
20582//   tes/{attribute}`.
20583func (r *OrganizationsDevelopersAppsAttributesService) UpdateDeveloperAppAttribute(name string, googlecloudapigeev1attribute *GoogleCloudApigeeV1Attribute) *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall {
20584	c := &OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20585	c.name = name
20586	c.googlecloudapigeev1attribute = googlecloudapigeev1attribute
20587	return c
20588}
20589
20590// Fields allows partial responses to be retrieved. See
20591// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20592// for more information.
20593func (c *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall {
20594	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20595	return c
20596}
20597
20598// Context sets the context to be used in this call's Do method. Any
20599// pending HTTP request will be aborted if the provided context is
20600// canceled.
20601func (c *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall) Context(ctx context.Context) *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall {
20602	c.ctx_ = ctx
20603	return c
20604}
20605
20606// Header returns an http.Header that can be modified by the caller to
20607// add HTTP headers to the request.
20608func (c *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall) Header() http.Header {
20609	if c.header_ == nil {
20610		c.header_ = make(http.Header)
20611	}
20612	return c.header_
20613}
20614
20615func (c *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall) doRequest(alt string) (*http.Response, error) {
20616	reqHeaders := make(http.Header)
20617	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
20618	for k, v := range c.header_ {
20619		reqHeaders[k] = v
20620	}
20621	reqHeaders.Set("User-Agent", c.s.userAgent())
20622	var body io.Reader = nil
20623	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1attribute)
20624	if err != nil {
20625		return nil, err
20626	}
20627	reqHeaders.Set("Content-Type", "application/json")
20628	c.urlParams_.Set("alt", alt)
20629	c.urlParams_.Set("prettyPrint", "false")
20630	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
20631	urls += "?" + c.urlParams_.Encode()
20632	req, err := http.NewRequest("POST", urls, body)
20633	if err != nil {
20634		return nil, err
20635	}
20636	req.Header = reqHeaders
20637	googleapi.Expand(req.URL, map[string]string{
20638		"name": c.name,
20639	})
20640	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20641}
20642
20643// Do executes the "apigee.organizations.developers.apps.attributes.updateDeveloperAppAttribute" call.
20644// Exactly one of *GoogleCloudApigeeV1Attribute or error will be
20645// non-nil. Any non-2xx status code is an error. Response headers are in
20646// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a
20647// response was returned at all) in error.(*googleapi.Error).Header. Use
20648// googleapi.IsNotModified to check whether the returned error was
20649// because http.StatusNotModified was returned.
20650func (c *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
20651	gensupport.SetOptions(c.urlParams_, opts...)
20652	res, err := c.doRequest("json")
20653	if res != nil && res.StatusCode == http.StatusNotModified {
20654		if res.Body != nil {
20655			res.Body.Close()
20656		}
20657		return nil, &googleapi.Error{
20658			Code:   res.StatusCode,
20659			Header: res.Header,
20660		}
20661	}
20662	if err != nil {
20663		return nil, err
20664	}
20665	defer googleapi.CloseBody(res)
20666	if err := googleapi.CheckResponse(res); err != nil {
20667		return nil, err
20668	}
20669	ret := &GoogleCloudApigeeV1Attribute{
20670		ServerResponse: googleapi.ServerResponse{
20671			Header:         res.Header,
20672			HTTPStatusCode: res.StatusCode,
20673		},
20674	}
20675	target := &ret
20676	if err := gensupport.DecodeResponse(target, res); err != nil {
20677		return nil, err
20678	}
20679	return ret, nil
20680	// {
20681	//   "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.",
20682	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/attributes/{attributesId}",
20683	//   "httpMethod": "POST",
20684	//   "id": "apigee.organizations.developers.apps.attributes.updateDeveloperAppAttribute",
20685	//   "parameterOrder": [
20686	//     "name"
20687	//   ],
20688	//   "parameters": {
20689	//     "name": {
20690	//       "description": "Required. Name of the developer app attribute. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}/attributes/{attribute}`",
20691	//       "location": "path",
20692	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/attributes/[^/]+$",
20693	//       "required": true,
20694	//       "type": "string"
20695	//     }
20696	//   },
20697	//   "path": "v1/{+name}",
20698	//   "request": {
20699	//     "$ref": "GoogleCloudApigeeV1Attribute"
20700	//   },
20701	//   "response": {
20702	//     "$ref": "GoogleCloudApigeeV1Attribute"
20703	//   },
20704	//   "scopes": [
20705	//     "https://www.googleapis.com/auth/cloud-platform"
20706	//   ]
20707	// }
20708
20709}
20710
20711// method id "apigee.organizations.developers.apps.keys.create":
20712
20713type OrganizationsDevelopersAppsKeysCreateCall struct {
20714	s                                  *Service
20715	parent                             string
20716	googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey
20717	urlParams_                         gensupport.URLParams
20718	ctx_                               context.Context
20719	header_                            http.Header
20720}
20721
20722// Create: Creates a custom consumer key and secret for a developer app.
20723// This is particularly useful if you want to migrate existing consumer
20724// keys and secrets to Apigee from another system. Consumer keys and
20725// secrets can contain letters, numbers, underscores, and hyphens. No
20726// other special characters are allowed. To avoid service disruptions, a
20727// consumer key and secret should not exceed 2 KBs each. **Note**: When
20728// creating the consumer key and secret, an association to API products
20729// will not be made. Therefore, you should not specify the associated
20730// API products in your request. Instead, use the UpdateDeveloperAppKey
20731// API to make the association after the consumer key and secret are
20732// created. If a consumer key and secret already exist, you can keep
20733// them or delete them using the DeleteDeveloperAppKey API.
20734//
20735// - parent: Parent of the developer app key. Use the following
20736//   structure in your request:
20737//   `organizations/{org}/developers/{developer_email}/apps`.
20738func (r *OrganizationsDevelopersAppsKeysService) Create(parent string, googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey) *OrganizationsDevelopersAppsKeysCreateCall {
20739	c := &OrganizationsDevelopersAppsKeysCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20740	c.parent = parent
20741	c.googlecloudapigeev1developerappkey = googlecloudapigeev1developerappkey
20742	return c
20743}
20744
20745// Fields allows partial responses to be retrieved. See
20746// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20747// for more information.
20748func (c *OrganizationsDevelopersAppsKeysCreateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysCreateCall {
20749	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20750	return c
20751}
20752
20753// Context sets the context to be used in this call's Do method. Any
20754// pending HTTP request will be aborted if the provided context is
20755// canceled.
20756func (c *OrganizationsDevelopersAppsKeysCreateCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysCreateCall {
20757	c.ctx_ = ctx
20758	return c
20759}
20760
20761// Header returns an http.Header that can be modified by the caller to
20762// add HTTP headers to the request.
20763func (c *OrganizationsDevelopersAppsKeysCreateCall) Header() http.Header {
20764	if c.header_ == nil {
20765		c.header_ = make(http.Header)
20766	}
20767	return c.header_
20768}
20769
20770func (c *OrganizationsDevelopersAppsKeysCreateCall) doRequest(alt string) (*http.Response, error) {
20771	reqHeaders := make(http.Header)
20772	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
20773	for k, v := range c.header_ {
20774		reqHeaders[k] = v
20775	}
20776	reqHeaders.Set("User-Agent", c.s.userAgent())
20777	var body io.Reader = nil
20778	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerappkey)
20779	if err != nil {
20780		return nil, err
20781	}
20782	reqHeaders.Set("Content-Type", "application/json")
20783	c.urlParams_.Set("alt", alt)
20784	c.urlParams_.Set("prettyPrint", "false")
20785	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keys")
20786	urls += "?" + c.urlParams_.Encode()
20787	req, err := http.NewRequest("POST", urls, body)
20788	if err != nil {
20789		return nil, err
20790	}
20791	req.Header = reqHeaders
20792	googleapi.Expand(req.URL, map[string]string{
20793		"parent": c.parent,
20794	})
20795	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20796}
20797
20798// Do executes the "apigee.organizations.developers.apps.keys.create" call.
20799// Exactly one of *GoogleCloudApigeeV1DeveloperAppKey or error will be
20800// non-nil. Any non-2xx status code is an error. Response headers are in
20801// either *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or
20802// (if a response was returned at all) in
20803// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
20804// whether the returned error was because http.StatusNotModified was
20805// returned.
20806func (c *OrganizationsDevelopersAppsKeysCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) {
20807	gensupport.SetOptions(c.urlParams_, opts...)
20808	res, err := c.doRequest("json")
20809	if res != nil && res.StatusCode == http.StatusNotModified {
20810		if res.Body != nil {
20811			res.Body.Close()
20812		}
20813		return nil, &googleapi.Error{
20814			Code:   res.StatusCode,
20815			Header: res.Header,
20816		}
20817	}
20818	if err != nil {
20819		return nil, err
20820	}
20821	defer googleapi.CloseBody(res)
20822	if err := googleapi.CheckResponse(res); err != nil {
20823		return nil, err
20824	}
20825	ret := &GoogleCloudApigeeV1DeveloperAppKey{
20826		ServerResponse: googleapi.ServerResponse{
20827			Header:         res.Header,
20828			HTTPStatusCode: res.StatusCode,
20829		},
20830	}
20831	target := &ret
20832	if err := gensupport.DecodeResponse(target, res); err != nil {
20833		return nil, err
20834	}
20835	return ret, nil
20836	// {
20837	//   "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.",
20838	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys",
20839	//   "httpMethod": "POST",
20840	//   "id": "apigee.organizations.developers.apps.keys.create",
20841	//   "parameterOrder": [
20842	//     "parent"
20843	//   ],
20844	//   "parameters": {
20845	//     "parent": {
20846	//       "description": "Parent of the developer app key. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps`",
20847	//       "location": "path",
20848	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$",
20849	//       "required": true,
20850	//       "type": "string"
20851	//     }
20852	//   },
20853	//   "path": "v1/{+parent}/keys",
20854	//   "request": {
20855	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
20856	//   },
20857	//   "response": {
20858	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
20859	//   },
20860	//   "scopes": [
20861	//     "https://www.googleapis.com/auth/cloud-platform"
20862	//   ]
20863	// }
20864
20865}
20866
20867// method id "apigee.organizations.developers.apps.keys.delete":
20868
20869type OrganizationsDevelopersAppsKeysDeleteCall struct {
20870	s          *Service
20871	name       string
20872	urlParams_ gensupport.URLParams
20873	ctx_       context.Context
20874	header_    http.Header
20875}
20876
20877// Delete: Deletes an app's consumer key and removes all API products
20878// associated with the app. After the consumer key is deleted, it cannot
20879// be used to access any APIs. **Note**: After you delete a consumer
20880// key, you may want to: 1. Create a new consumer key and secret for the
20881// developer app using the CreateDeveloperAppKey API, and subsequently
20882// add an API product to the key using the UpdateDeveloperAppKey API. 2.
20883// Delete the developer app, if it is no longer required.
20884//
20885// - name: Name of the developer app key. Use the following structure in
20886//   your request:
20887//   `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{k
20888//   ey}`.
20889func (r *OrganizationsDevelopersAppsKeysService) Delete(name string) *OrganizationsDevelopersAppsKeysDeleteCall {
20890	c := &OrganizationsDevelopersAppsKeysDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20891	c.name = name
20892	return c
20893}
20894
20895// Fields allows partial responses to be retrieved. See
20896// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20897// for more information.
20898func (c *OrganizationsDevelopersAppsKeysDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysDeleteCall {
20899	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20900	return c
20901}
20902
20903// Context sets the context to be used in this call's Do method. Any
20904// pending HTTP request will be aborted if the provided context is
20905// canceled.
20906func (c *OrganizationsDevelopersAppsKeysDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysDeleteCall {
20907	c.ctx_ = ctx
20908	return c
20909}
20910
20911// Header returns an http.Header that can be modified by the caller to
20912// add HTTP headers to the request.
20913func (c *OrganizationsDevelopersAppsKeysDeleteCall) Header() http.Header {
20914	if c.header_ == nil {
20915		c.header_ = make(http.Header)
20916	}
20917	return c.header_
20918}
20919
20920func (c *OrganizationsDevelopersAppsKeysDeleteCall) doRequest(alt string) (*http.Response, error) {
20921	reqHeaders := make(http.Header)
20922	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
20923	for k, v := range c.header_ {
20924		reqHeaders[k] = v
20925	}
20926	reqHeaders.Set("User-Agent", c.s.userAgent())
20927	var body io.Reader = nil
20928	c.urlParams_.Set("alt", alt)
20929	c.urlParams_.Set("prettyPrint", "false")
20930	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
20931	urls += "?" + c.urlParams_.Encode()
20932	req, err := http.NewRequest("DELETE", urls, body)
20933	if err != nil {
20934		return nil, err
20935	}
20936	req.Header = reqHeaders
20937	googleapi.Expand(req.URL, map[string]string{
20938		"name": c.name,
20939	})
20940	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20941}
20942
20943// Do executes the "apigee.organizations.developers.apps.keys.delete" call.
20944// Exactly one of *GoogleCloudApigeeV1DeveloperAppKey or error will be
20945// non-nil. Any non-2xx status code is an error. Response headers are in
20946// either *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or
20947// (if a response was returned at all) in
20948// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
20949// whether the returned error was because http.StatusNotModified was
20950// returned.
20951func (c *OrganizationsDevelopersAppsKeysDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) {
20952	gensupport.SetOptions(c.urlParams_, opts...)
20953	res, err := c.doRequest("json")
20954	if res != nil && res.StatusCode == http.StatusNotModified {
20955		if res.Body != nil {
20956			res.Body.Close()
20957		}
20958		return nil, &googleapi.Error{
20959			Code:   res.StatusCode,
20960			Header: res.Header,
20961		}
20962	}
20963	if err != nil {
20964		return nil, err
20965	}
20966	defer googleapi.CloseBody(res)
20967	if err := googleapi.CheckResponse(res); err != nil {
20968		return nil, err
20969	}
20970	ret := &GoogleCloudApigeeV1DeveloperAppKey{
20971		ServerResponse: googleapi.ServerResponse{
20972			Header:         res.Header,
20973			HTTPStatusCode: res.StatusCode,
20974		},
20975	}
20976	target := &ret
20977	if err := gensupport.DecodeResponse(target, res); err != nil {
20978		return nil, err
20979	}
20980	return ret, nil
20981	// {
20982	//   "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.",
20983	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys/{keysId}",
20984	//   "httpMethod": "DELETE",
20985	//   "id": "apigee.organizations.developers.apps.keys.delete",
20986	//   "parameterOrder": [
20987	//     "name"
20988	//   ],
20989	//   "parameters": {
20990	//     "name": {
20991	//       "description": "Name of the developer app key. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{key}`",
20992	//       "location": "path",
20993	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/keys/[^/]+$",
20994	//       "required": true,
20995	//       "type": "string"
20996	//     }
20997	//   },
20998	//   "path": "v1/{+name}",
20999	//   "response": {
21000	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
21001	//   },
21002	//   "scopes": [
21003	//     "https://www.googleapis.com/auth/cloud-platform"
21004	//   ]
21005	// }
21006
21007}
21008
21009// method id "apigee.organizations.developers.apps.keys.get":
21010
21011type OrganizationsDevelopersAppsKeysGetCall struct {
21012	s            *Service
21013	name         string
21014	urlParams_   gensupport.URLParams
21015	ifNoneMatch_ string
21016	ctx_         context.Context
21017	header_      http.Header
21018}
21019
21020// Get: Gets details for a consumer key for a developer app, including
21021// the key and secret value, associated API products, and other
21022// information.
21023//
21024// - name: Name of the developer app key. Use the following structure in
21025//   your request:
21026//   `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{k
21027//   ey}`.
21028func (r *OrganizationsDevelopersAppsKeysService) Get(name string) *OrganizationsDevelopersAppsKeysGetCall {
21029	c := &OrganizationsDevelopersAppsKeysGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21030	c.name = name
21031	return c
21032}
21033
21034// Fields allows partial responses to be retrieved. See
21035// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21036// for more information.
21037func (c *OrganizationsDevelopersAppsKeysGetCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysGetCall {
21038	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21039	return c
21040}
21041
21042// IfNoneMatch sets the optional parameter which makes the operation
21043// fail if the object's ETag matches the given value. This is useful for
21044// getting updates only after the object has changed since the last
21045// request. Use googleapi.IsNotModified to check whether the response
21046// error from Do is the result of In-None-Match.
21047func (c *OrganizationsDevelopersAppsKeysGetCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAppsKeysGetCall {
21048	c.ifNoneMatch_ = entityTag
21049	return c
21050}
21051
21052// Context sets the context to be used in this call's Do method. Any
21053// pending HTTP request will be aborted if the provided context is
21054// canceled.
21055func (c *OrganizationsDevelopersAppsKeysGetCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysGetCall {
21056	c.ctx_ = ctx
21057	return c
21058}
21059
21060// Header returns an http.Header that can be modified by the caller to
21061// add HTTP headers to the request.
21062func (c *OrganizationsDevelopersAppsKeysGetCall) Header() http.Header {
21063	if c.header_ == nil {
21064		c.header_ = make(http.Header)
21065	}
21066	return c.header_
21067}
21068
21069func (c *OrganizationsDevelopersAppsKeysGetCall) doRequest(alt string) (*http.Response, error) {
21070	reqHeaders := make(http.Header)
21071	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
21072	for k, v := range c.header_ {
21073		reqHeaders[k] = v
21074	}
21075	reqHeaders.Set("User-Agent", c.s.userAgent())
21076	if c.ifNoneMatch_ != "" {
21077		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21078	}
21079	var body io.Reader = nil
21080	c.urlParams_.Set("alt", alt)
21081	c.urlParams_.Set("prettyPrint", "false")
21082	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
21083	urls += "?" + c.urlParams_.Encode()
21084	req, err := http.NewRequest("GET", urls, body)
21085	if err != nil {
21086		return nil, err
21087	}
21088	req.Header = reqHeaders
21089	googleapi.Expand(req.URL, map[string]string{
21090		"name": c.name,
21091	})
21092	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21093}
21094
21095// Do executes the "apigee.organizations.developers.apps.keys.get" call.
21096// Exactly one of *GoogleCloudApigeeV1DeveloperAppKey or error will be
21097// non-nil. Any non-2xx status code is an error. Response headers are in
21098// either *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or
21099// (if a response was returned at all) in
21100// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
21101// whether the returned error was because http.StatusNotModified was
21102// returned.
21103func (c *OrganizationsDevelopersAppsKeysGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) {
21104	gensupport.SetOptions(c.urlParams_, opts...)
21105	res, err := c.doRequest("json")
21106	if res != nil && res.StatusCode == http.StatusNotModified {
21107		if res.Body != nil {
21108			res.Body.Close()
21109		}
21110		return nil, &googleapi.Error{
21111			Code:   res.StatusCode,
21112			Header: res.Header,
21113		}
21114	}
21115	if err != nil {
21116		return nil, err
21117	}
21118	defer googleapi.CloseBody(res)
21119	if err := googleapi.CheckResponse(res); err != nil {
21120		return nil, err
21121	}
21122	ret := &GoogleCloudApigeeV1DeveloperAppKey{
21123		ServerResponse: googleapi.ServerResponse{
21124			Header:         res.Header,
21125			HTTPStatusCode: res.StatusCode,
21126		},
21127	}
21128	target := &ret
21129	if err := gensupport.DecodeResponse(target, res); err != nil {
21130		return nil, err
21131	}
21132	return ret, nil
21133	// {
21134	//   "description": "Gets details for a consumer key for a developer app, including the key and secret value, associated API products, and other information.",
21135	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys/{keysId}",
21136	//   "httpMethod": "GET",
21137	//   "id": "apigee.organizations.developers.apps.keys.get",
21138	//   "parameterOrder": [
21139	//     "name"
21140	//   ],
21141	//   "parameters": {
21142	//     "name": {
21143	//       "description": "Name of the developer app key. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{key}`",
21144	//       "location": "path",
21145	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/keys/[^/]+$",
21146	//       "required": true,
21147	//       "type": "string"
21148	//     }
21149	//   },
21150	//   "path": "v1/{+name}",
21151	//   "response": {
21152	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
21153	//   },
21154	//   "scopes": [
21155	//     "https://www.googleapis.com/auth/cloud-platform"
21156	//   ]
21157	// }
21158
21159}
21160
21161// method id "apigee.organizations.developers.apps.keys.replaceDeveloperAppKey":
21162
21163type OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall struct {
21164	s                                  *Service
21165	name                               string
21166	googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey
21167	urlParams_                         gensupport.URLParams
21168	ctx_                               context.Context
21169	header_                            http.Header
21170}
21171
21172// ReplaceDeveloperAppKey: Updates the scope of an app. This API
21173// replaces the existing scopes with those specified in the request.
21174// Include or exclude any existing scopes that you want to retain or
21175// delete, respectively. The specified scopes must already be defined
21176// for the API products associated with the app. This API sets the
21177// `scopes` element under the `apiProducts` element in the attributes of
21178// the app.
21179//
21180// - name: Name of the developer app key. Use the following structure in
21181//   your request:
21182//   `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{k
21183//   ey}`.
21184func (r *OrganizationsDevelopersAppsKeysService) ReplaceDeveloperAppKey(name string, googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey) *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall {
21185	c := &OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21186	c.name = name
21187	c.googlecloudapigeev1developerappkey = googlecloudapigeev1developerappkey
21188	return c
21189}
21190
21191// Fields allows partial responses to be retrieved. See
21192// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21193// for more information.
21194func (c *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall {
21195	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21196	return c
21197}
21198
21199// Context sets the context to be used in this call's Do method. Any
21200// pending HTTP request will be aborted if the provided context is
21201// canceled.
21202func (c *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall {
21203	c.ctx_ = ctx
21204	return c
21205}
21206
21207// Header returns an http.Header that can be modified by the caller to
21208// add HTTP headers to the request.
21209func (c *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall) Header() http.Header {
21210	if c.header_ == nil {
21211		c.header_ = make(http.Header)
21212	}
21213	return c.header_
21214}
21215
21216func (c *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall) doRequest(alt string) (*http.Response, error) {
21217	reqHeaders := make(http.Header)
21218	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
21219	for k, v := range c.header_ {
21220		reqHeaders[k] = v
21221	}
21222	reqHeaders.Set("User-Agent", c.s.userAgent())
21223	var body io.Reader = nil
21224	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerappkey)
21225	if err != nil {
21226		return nil, err
21227	}
21228	reqHeaders.Set("Content-Type", "application/json")
21229	c.urlParams_.Set("alt", alt)
21230	c.urlParams_.Set("prettyPrint", "false")
21231	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
21232	urls += "?" + c.urlParams_.Encode()
21233	req, err := http.NewRequest("PUT", urls, body)
21234	if err != nil {
21235		return nil, err
21236	}
21237	req.Header = reqHeaders
21238	googleapi.Expand(req.URL, map[string]string{
21239		"name": c.name,
21240	})
21241	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21242}
21243
21244// Do executes the "apigee.organizations.developers.apps.keys.replaceDeveloperAppKey" call.
21245// Exactly one of *GoogleCloudApigeeV1DeveloperAppKey or error will be
21246// non-nil. Any non-2xx status code is an error. Response headers are in
21247// either *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or
21248// (if a response was returned at all) in
21249// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
21250// whether the returned error was because http.StatusNotModified was
21251// returned.
21252func (c *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) {
21253	gensupport.SetOptions(c.urlParams_, opts...)
21254	res, err := c.doRequest("json")
21255	if res != nil && res.StatusCode == http.StatusNotModified {
21256		if res.Body != nil {
21257			res.Body.Close()
21258		}
21259		return nil, &googleapi.Error{
21260			Code:   res.StatusCode,
21261			Header: res.Header,
21262		}
21263	}
21264	if err != nil {
21265		return nil, err
21266	}
21267	defer googleapi.CloseBody(res)
21268	if err := googleapi.CheckResponse(res); err != nil {
21269		return nil, err
21270	}
21271	ret := &GoogleCloudApigeeV1DeveloperAppKey{
21272		ServerResponse: googleapi.ServerResponse{
21273			Header:         res.Header,
21274			HTTPStatusCode: res.StatusCode,
21275		},
21276	}
21277	target := &ret
21278	if err := gensupport.DecodeResponse(target, res); err != nil {
21279		return nil, err
21280	}
21281	return ret, nil
21282	// {
21283	//   "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.",
21284	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys/{keysId}",
21285	//   "httpMethod": "PUT",
21286	//   "id": "apigee.organizations.developers.apps.keys.replaceDeveloperAppKey",
21287	//   "parameterOrder": [
21288	//     "name"
21289	//   ],
21290	//   "parameters": {
21291	//     "name": {
21292	//       "description": "Name of the developer app key. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{key}`",
21293	//       "location": "path",
21294	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/keys/[^/]+$",
21295	//       "required": true,
21296	//       "type": "string"
21297	//     }
21298	//   },
21299	//   "path": "v1/{+name}",
21300	//   "request": {
21301	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
21302	//   },
21303	//   "response": {
21304	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
21305	//   },
21306	//   "scopes": [
21307	//     "https://www.googleapis.com/auth/cloud-platform"
21308	//   ]
21309	// }
21310
21311}
21312
21313// method id "apigee.organizations.developers.apps.keys.updateDeveloperAppKey":
21314
21315type OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall struct {
21316	s                                  *Service
21317	name                               string
21318	googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey
21319	urlParams_                         gensupport.URLParams
21320	ctx_                               context.Context
21321	header_                            http.Header
21322}
21323
21324// UpdateDeveloperAppKey: Adds an API product to a developer app key,
21325// enabling the app that holds the key to access the API resources
21326// bundled in the API product. In addition, you can add attributes to a
21327// developer app key. This API replaces the existing attributes with
21328// those specified in the request. Include or exclude any existing
21329// attributes that you want to retain or delete, respectively. You can
21330// use the same key to access all API products associated with the app.
21331//
21332// - name: Name of the developer app key. Use the following structure in
21333//   your request:
21334//   `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{k
21335//   ey}`.
21336func (r *OrganizationsDevelopersAppsKeysService) UpdateDeveloperAppKey(name string, googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey) *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall {
21337	c := &OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21338	c.name = name
21339	c.googlecloudapigeev1developerappkey = googlecloudapigeev1developerappkey
21340	return c
21341}
21342
21343// Action sets the optional parameter "action": Approve or revoke the
21344// consumer key by setting this value to `approve` or `revoke`,
21345// respectively.
21346func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) Action(action string) *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall {
21347	c.urlParams_.Set("action", action)
21348	return c
21349}
21350
21351// Fields allows partial responses to be retrieved. See
21352// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21353// for more information.
21354func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall {
21355	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21356	return c
21357}
21358
21359// Context sets the context to be used in this call's Do method. Any
21360// pending HTTP request will be aborted if the provided context is
21361// canceled.
21362func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall {
21363	c.ctx_ = ctx
21364	return c
21365}
21366
21367// Header returns an http.Header that can be modified by the caller to
21368// add HTTP headers to the request.
21369func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) Header() http.Header {
21370	if c.header_ == nil {
21371		c.header_ = make(http.Header)
21372	}
21373	return c.header_
21374}
21375
21376func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) doRequest(alt string) (*http.Response, error) {
21377	reqHeaders := make(http.Header)
21378	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
21379	for k, v := range c.header_ {
21380		reqHeaders[k] = v
21381	}
21382	reqHeaders.Set("User-Agent", c.s.userAgent())
21383	var body io.Reader = nil
21384	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerappkey)
21385	if err != nil {
21386		return nil, err
21387	}
21388	reqHeaders.Set("Content-Type", "application/json")
21389	c.urlParams_.Set("alt", alt)
21390	c.urlParams_.Set("prettyPrint", "false")
21391	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
21392	urls += "?" + c.urlParams_.Encode()
21393	req, err := http.NewRequest("POST", urls, body)
21394	if err != nil {
21395		return nil, err
21396	}
21397	req.Header = reqHeaders
21398	googleapi.Expand(req.URL, map[string]string{
21399		"name": c.name,
21400	})
21401	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21402}
21403
21404// Do executes the "apigee.organizations.developers.apps.keys.updateDeveloperAppKey" call.
21405// Exactly one of *GoogleCloudApigeeV1DeveloperAppKey or error will be
21406// non-nil. Any non-2xx status code is an error. Response headers are in
21407// either *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or
21408// (if a response was returned at all) in
21409// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
21410// whether the returned error was because http.StatusNotModified was
21411// returned.
21412func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) {
21413	gensupport.SetOptions(c.urlParams_, opts...)
21414	res, err := c.doRequest("json")
21415	if res != nil && res.StatusCode == http.StatusNotModified {
21416		if res.Body != nil {
21417			res.Body.Close()
21418		}
21419		return nil, &googleapi.Error{
21420			Code:   res.StatusCode,
21421			Header: res.Header,
21422		}
21423	}
21424	if err != nil {
21425		return nil, err
21426	}
21427	defer googleapi.CloseBody(res)
21428	if err := googleapi.CheckResponse(res); err != nil {
21429		return nil, err
21430	}
21431	ret := &GoogleCloudApigeeV1DeveloperAppKey{
21432		ServerResponse: googleapi.ServerResponse{
21433			Header:         res.Header,
21434			HTTPStatusCode: res.StatusCode,
21435		},
21436	}
21437	target := &ret
21438	if err := gensupport.DecodeResponse(target, res); err != nil {
21439		return nil, err
21440	}
21441	return ret, nil
21442	// {
21443	//   "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.",
21444	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys/{keysId}",
21445	//   "httpMethod": "POST",
21446	//   "id": "apigee.organizations.developers.apps.keys.updateDeveloperAppKey",
21447	//   "parameterOrder": [
21448	//     "name"
21449	//   ],
21450	//   "parameters": {
21451	//     "action": {
21452	//       "description": "Approve or revoke the consumer key by setting this value to `approve` or `revoke`, respectively.",
21453	//       "location": "query",
21454	//       "type": "string"
21455	//     },
21456	//     "name": {
21457	//       "description": "Name of the developer app key. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{key}`",
21458	//       "location": "path",
21459	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/keys/[^/]+$",
21460	//       "required": true,
21461	//       "type": "string"
21462	//     }
21463	//   },
21464	//   "path": "v1/{+name}",
21465	//   "request": {
21466	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
21467	//   },
21468	//   "response": {
21469	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
21470	//   },
21471	//   "scopes": [
21472	//     "https://www.googleapis.com/auth/cloud-platform"
21473	//   ]
21474	// }
21475
21476}
21477
21478// method id "apigee.organizations.developers.apps.keys.apiproducts.delete":
21479
21480type OrganizationsDevelopersAppsKeysApiproductsDeleteCall struct {
21481	s          *Service
21482	name       string
21483	urlParams_ gensupport.URLParams
21484	ctx_       context.Context
21485	header_    http.Header
21486}
21487
21488// Delete: Removes an API product from an app's consumer key. After the
21489// API product is removed, the app cannot access the API resources
21490// defined in that API product. **Note**: The consumer key is not
21491// removed, only its association with the API product.
21492//
21493// - name: Name of the API product in the developer app key in the
21494//   following format:
21495//   `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{k
21496//   ey}/apiproducts/{apiproduct}`.
21497func (r *OrganizationsDevelopersAppsKeysApiproductsService) Delete(name string) *OrganizationsDevelopersAppsKeysApiproductsDeleteCall {
21498	c := &OrganizationsDevelopersAppsKeysApiproductsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21499	c.name = name
21500	return c
21501}
21502
21503// Fields allows partial responses to be retrieved. See
21504// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21505// for more information.
21506func (c *OrganizationsDevelopersAppsKeysApiproductsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysApiproductsDeleteCall {
21507	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21508	return c
21509}
21510
21511// Context sets the context to be used in this call's Do method. Any
21512// pending HTTP request will be aborted if the provided context is
21513// canceled.
21514func (c *OrganizationsDevelopersAppsKeysApiproductsDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysApiproductsDeleteCall {
21515	c.ctx_ = ctx
21516	return c
21517}
21518
21519// Header returns an http.Header that can be modified by the caller to
21520// add HTTP headers to the request.
21521func (c *OrganizationsDevelopersAppsKeysApiproductsDeleteCall) Header() http.Header {
21522	if c.header_ == nil {
21523		c.header_ = make(http.Header)
21524	}
21525	return c.header_
21526}
21527
21528func (c *OrganizationsDevelopersAppsKeysApiproductsDeleteCall) doRequest(alt string) (*http.Response, error) {
21529	reqHeaders := make(http.Header)
21530	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
21531	for k, v := range c.header_ {
21532		reqHeaders[k] = v
21533	}
21534	reqHeaders.Set("User-Agent", c.s.userAgent())
21535	var body io.Reader = nil
21536	c.urlParams_.Set("alt", alt)
21537	c.urlParams_.Set("prettyPrint", "false")
21538	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
21539	urls += "?" + c.urlParams_.Encode()
21540	req, err := http.NewRequest("DELETE", urls, body)
21541	if err != nil {
21542		return nil, err
21543	}
21544	req.Header = reqHeaders
21545	googleapi.Expand(req.URL, map[string]string{
21546		"name": c.name,
21547	})
21548	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21549}
21550
21551// Do executes the "apigee.organizations.developers.apps.keys.apiproducts.delete" call.
21552// Exactly one of *GoogleCloudApigeeV1DeveloperAppKey or error will be
21553// non-nil. Any non-2xx status code is an error. Response headers are in
21554// either *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or
21555// (if a response was returned at all) in
21556// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
21557// whether the returned error was because http.StatusNotModified was
21558// returned.
21559func (c *OrganizationsDevelopersAppsKeysApiproductsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) {
21560	gensupport.SetOptions(c.urlParams_, opts...)
21561	res, err := c.doRequest("json")
21562	if res != nil && res.StatusCode == http.StatusNotModified {
21563		if res.Body != nil {
21564			res.Body.Close()
21565		}
21566		return nil, &googleapi.Error{
21567			Code:   res.StatusCode,
21568			Header: res.Header,
21569		}
21570	}
21571	if err != nil {
21572		return nil, err
21573	}
21574	defer googleapi.CloseBody(res)
21575	if err := googleapi.CheckResponse(res); err != nil {
21576		return nil, err
21577	}
21578	ret := &GoogleCloudApigeeV1DeveloperAppKey{
21579		ServerResponse: googleapi.ServerResponse{
21580			Header:         res.Header,
21581			HTTPStatusCode: res.StatusCode,
21582		},
21583	}
21584	target := &ret
21585	if err := gensupport.DecodeResponse(target, res); err != nil {
21586		return nil, err
21587	}
21588	return ret, nil
21589	// {
21590	//   "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.",
21591	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys/{keysId}/apiproducts/{apiproductsId}",
21592	//   "httpMethod": "DELETE",
21593	//   "id": "apigee.organizations.developers.apps.keys.apiproducts.delete",
21594	//   "parameterOrder": [
21595	//     "name"
21596	//   ],
21597	//   "parameters": {
21598	//     "name": {
21599	//       "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}`",
21600	//       "location": "path",
21601	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/keys/[^/]+/apiproducts/[^/]+$",
21602	//       "required": true,
21603	//       "type": "string"
21604	//     }
21605	//   },
21606	//   "path": "v1/{+name}",
21607	//   "response": {
21608	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
21609	//   },
21610	//   "scopes": [
21611	//     "https://www.googleapis.com/auth/cloud-platform"
21612	//   ]
21613	// }
21614
21615}
21616
21617// method id "apigee.organizations.developers.apps.keys.apiproducts.updateDeveloperAppKeyApiProduct":
21618
21619type OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall struct {
21620	s          *Service
21621	name       string
21622	urlParams_ gensupport.URLParams
21623	ctx_       context.Context
21624	header_    http.Header
21625}
21626
21627// UpdateDeveloperAppKeyApiProduct: Approves or revokes the consumer key
21628// for an API product. After a consumer key is approved, the app can use
21629// it to access APIs. A consumer key that is revoked or pending cannot
21630// be used to access an API. Any access tokens associated with a revoked
21631// consumer key will remain active. However, Apigee checks the status of
21632// the consumer key and if set to `revoked` will not allow access to the
21633// API.
21634//
21635// - name: Name of the API product in the developer app key in the
21636//   following format:
21637//   `organizations/{org}/developers/{developer_email}/apps/{app}/keys/{k
21638//   ey}/apiproducts/{apiproduct}`.
21639func (r *OrganizationsDevelopersAppsKeysApiproductsService) UpdateDeveloperAppKeyApiProduct(name string) *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall {
21640	c := &OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21641	c.name = name
21642	return c
21643}
21644
21645// Action sets the optional parameter "action": Approve or revoke the
21646// consumer key by setting this value to `approve` or `revoke`,
21647// respectively.
21648func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) Action(action string) *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall {
21649	c.urlParams_.Set("action", action)
21650	return c
21651}
21652
21653// Fields allows partial responses to be retrieved. See
21654// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21655// for more information.
21656func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall {
21657	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21658	return c
21659}
21660
21661// Context sets the context to be used in this call's Do method. Any
21662// pending HTTP request will be aborted if the provided context is
21663// canceled.
21664func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall {
21665	c.ctx_ = ctx
21666	return c
21667}
21668
21669// Header returns an http.Header that can be modified by the caller to
21670// add HTTP headers to the request.
21671func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) Header() http.Header {
21672	if c.header_ == nil {
21673		c.header_ = make(http.Header)
21674	}
21675	return c.header_
21676}
21677
21678func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) doRequest(alt string) (*http.Response, error) {
21679	reqHeaders := make(http.Header)
21680	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
21681	for k, v := range c.header_ {
21682		reqHeaders[k] = v
21683	}
21684	reqHeaders.Set("User-Agent", c.s.userAgent())
21685	var body io.Reader = nil
21686	c.urlParams_.Set("alt", alt)
21687	c.urlParams_.Set("prettyPrint", "false")
21688	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
21689	urls += "?" + c.urlParams_.Encode()
21690	req, err := http.NewRequest("POST", urls, body)
21691	if err != nil {
21692		return nil, err
21693	}
21694	req.Header = reqHeaders
21695	googleapi.Expand(req.URL, map[string]string{
21696		"name": c.name,
21697	})
21698	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21699}
21700
21701// Do executes the "apigee.organizations.developers.apps.keys.apiproducts.updateDeveloperAppKeyApiProduct" call.
21702// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
21703// non-2xx status code is an error. Response headers are in either
21704// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
21705// returned at all) in error.(*googleapi.Error).Header. Use
21706// googleapi.IsNotModified to check whether the returned error was
21707// because http.StatusNotModified was returned.
21708func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
21709	gensupport.SetOptions(c.urlParams_, opts...)
21710	res, err := c.doRequest("json")
21711	if res != nil && res.StatusCode == http.StatusNotModified {
21712		if res.Body != nil {
21713			res.Body.Close()
21714		}
21715		return nil, &googleapi.Error{
21716			Code:   res.StatusCode,
21717			Header: res.Header,
21718		}
21719	}
21720	if err != nil {
21721		return nil, err
21722	}
21723	defer googleapi.CloseBody(res)
21724	if err := googleapi.CheckResponse(res); err != nil {
21725		return nil, err
21726	}
21727	ret := &GoogleProtobufEmpty{
21728		ServerResponse: googleapi.ServerResponse{
21729			Header:         res.Header,
21730			HTTPStatusCode: res.StatusCode,
21731		},
21732	}
21733	target := &ret
21734	if err := gensupport.DecodeResponse(target, res); err != nil {
21735		return nil, err
21736	}
21737	return ret, nil
21738	// {
21739	//   "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.",
21740	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys/{keysId}/apiproducts/{apiproductsId}",
21741	//   "httpMethod": "POST",
21742	//   "id": "apigee.organizations.developers.apps.keys.apiproducts.updateDeveloperAppKeyApiProduct",
21743	//   "parameterOrder": [
21744	//     "name"
21745	//   ],
21746	//   "parameters": {
21747	//     "action": {
21748	//       "description": "Approve or revoke the consumer key by setting this value to `approve` or `revoke`, respectively.",
21749	//       "location": "query",
21750	//       "type": "string"
21751	//     },
21752	//     "name": {
21753	//       "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}`",
21754	//       "location": "path",
21755	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/keys/[^/]+/apiproducts/[^/]+$",
21756	//       "required": true,
21757	//       "type": "string"
21758	//     }
21759	//   },
21760	//   "path": "v1/{+name}",
21761	//   "response": {
21762	//     "$ref": "GoogleProtobufEmpty"
21763	//   },
21764	//   "scopes": [
21765	//     "https://www.googleapis.com/auth/cloud-platform"
21766	//   ]
21767	// }
21768
21769}
21770
21771// method id "apigee.organizations.developers.apps.keys.create.create":
21772
21773type OrganizationsDevelopersAppsKeysCreateCreateCall struct {
21774	s                                  *Service
21775	parent                             string
21776	googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey
21777	urlParams_                         gensupport.URLParams
21778	ctx_                               context.Context
21779	header_                            http.Header
21780}
21781
21782// Create: Creates a custom consumer key and secret for a developer app.
21783// This is particularly useful if you want to migrate existing consumer
21784// keys and secrets to Apigee from another system. Consumer keys and
21785// secrets can contain letters, numbers, underscores, and hyphens. No
21786// other special characters are allowed. To avoid service disruptions, a
21787// consumer key and secret should not exceed 2 KBs each. **Note**: When
21788// creating the consumer key and secret, an association to API products
21789// will not be made. Therefore, you should not specify the associated
21790// API products in your request. Instead, use the UpdateDeveloperAppKey
21791// API to make the association after the consumer key and secret are
21792// created. If a consumer key and secret already exist, you can keep
21793// them or delete them using the DeleteDeveloperAppKey API.
21794//
21795// - parent: Parent of the developer app key. Use the following
21796//   structure in your request:
21797//   `organizations/{org}/developers/{developer_email}/apps`.
21798func (r *OrganizationsDevelopersAppsKeysCreateService) Create(parent string, googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey) *OrganizationsDevelopersAppsKeysCreateCreateCall {
21799	c := &OrganizationsDevelopersAppsKeysCreateCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21800	c.parent = parent
21801	c.googlecloudapigeev1developerappkey = googlecloudapigeev1developerappkey
21802	return c
21803}
21804
21805// Fields allows partial responses to be retrieved. See
21806// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21807// for more information.
21808func (c *OrganizationsDevelopersAppsKeysCreateCreateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysCreateCreateCall {
21809	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21810	return c
21811}
21812
21813// Context sets the context to be used in this call's Do method. Any
21814// pending HTTP request will be aborted if the provided context is
21815// canceled.
21816func (c *OrganizationsDevelopersAppsKeysCreateCreateCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysCreateCreateCall {
21817	c.ctx_ = ctx
21818	return c
21819}
21820
21821// Header returns an http.Header that can be modified by the caller to
21822// add HTTP headers to the request.
21823func (c *OrganizationsDevelopersAppsKeysCreateCreateCall) Header() http.Header {
21824	if c.header_ == nil {
21825		c.header_ = make(http.Header)
21826	}
21827	return c.header_
21828}
21829
21830func (c *OrganizationsDevelopersAppsKeysCreateCreateCall) doRequest(alt string) (*http.Response, error) {
21831	reqHeaders := make(http.Header)
21832	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
21833	for k, v := range c.header_ {
21834		reqHeaders[k] = v
21835	}
21836	reqHeaders.Set("User-Agent", c.s.userAgent())
21837	var body io.Reader = nil
21838	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerappkey)
21839	if err != nil {
21840		return nil, err
21841	}
21842	reqHeaders.Set("Content-Type", "application/json")
21843	c.urlParams_.Set("alt", alt)
21844	c.urlParams_.Set("prettyPrint", "false")
21845	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keys/create")
21846	urls += "?" + c.urlParams_.Encode()
21847	req, err := http.NewRequest("POST", urls, body)
21848	if err != nil {
21849		return nil, err
21850	}
21851	req.Header = reqHeaders
21852	googleapi.Expand(req.URL, map[string]string{
21853		"parent": c.parent,
21854	})
21855	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21856}
21857
21858// Do executes the "apigee.organizations.developers.apps.keys.create.create" call.
21859// Exactly one of *GoogleCloudApigeeV1DeveloperAppKey or error will be
21860// non-nil. Any non-2xx status code is an error. Response headers are in
21861// either *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or
21862// (if a response was returned at all) in
21863// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
21864// whether the returned error was because http.StatusNotModified was
21865// returned.
21866func (c *OrganizationsDevelopersAppsKeysCreateCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) {
21867	gensupport.SetOptions(c.urlParams_, opts...)
21868	res, err := c.doRequest("json")
21869	if res != nil && res.StatusCode == http.StatusNotModified {
21870		if res.Body != nil {
21871			res.Body.Close()
21872		}
21873		return nil, &googleapi.Error{
21874			Code:   res.StatusCode,
21875			Header: res.Header,
21876		}
21877	}
21878	if err != nil {
21879		return nil, err
21880	}
21881	defer googleapi.CloseBody(res)
21882	if err := googleapi.CheckResponse(res); err != nil {
21883		return nil, err
21884	}
21885	ret := &GoogleCloudApigeeV1DeveloperAppKey{
21886		ServerResponse: googleapi.ServerResponse{
21887			Header:         res.Header,
21888			HTTPStatusCode: res.StatusCode,
21889		},
21890	}
21891	target := &ret
21892	if err := gensupport.DecodeResponse(target, res); err != nil {
21893		return nil, err
21894	}
21895	return ret, nil
21896	// {
21897	//   "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.",
21898	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys/create",
21899	//   "httpMethod": "POST",
21900	//   "id": "apigee.organizations.developers.apps.keys.create.create",
21901	//   "parameterOrder": [
21902	//     "parent"
21903	//   ],
21904	//   "parameters": {
21905	//     "parent": {
21906	//       "description": "Parent of the developer app key. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/apps`",
21907	//       "location": "path",
21908	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$",
21909	//       "required": true,
21910	//       "type": "string"
21911	//     }
21912	//   },
21913	//   "path": "v1/{+parent}/keys/create",
21914	//   "request": {
21915	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
21916	//   },
21917	//   "response": {
21918	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
21919	//   },
21920	//   "scopes": [
21921	//     "https://www.googleapis.com/auth/cloud-platform"
21922	//   ]
21923	// }
21924
21925}
21926
21927// method id "apigee.organizations.developers.attributes.delete":
21928
21929type OrganizationsDevelopersAttributesDeleteCall struct {
21930	s          *Service
21931	name       string
21932	urlParams_ gensupport.URLParams
21933	ctx_       context.Context
21934	header_    http.Header
21935}
21936
21937// Delete: Deletes a developer attribute.
21938//
21939// - name: Name of the developer attribute. Use the following structure
21940//   in your request:
21941//   `organizations/{org}/developers/{developer_email}/attributes/{attrib
21942//   ute}`.
21943func (r *OrganizationsDevelopersAttributesService) Delete(name string) *OrganizationsDevelopersAttributesDeleteCall {
21944	c := &OrganizationsDevelopersAttributesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21945	c.name = name
21946	return c
21947}
21948
21949// Fields allows partial responses to be retrieved. See
21950// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21951// for more information.
21952func (c *OrganizationsDevelopersAttributesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAttributesDeleteCall {
21953	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21954	return c
21955}
21956
21957// Context sets the context to be used in this call's Do method. Any
21958// pending HTTP request will be aborted if the provided context is
21959// canceled.
21960func (c *OrganizationsDevelopersAttributesDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersAttributesDeleteCall {
21961	c.ctx_ = ctx
21962	return c
21963}
21964
21965// Header returns an http.Header that can be modified by the caller to
21966// add HTTP headers to the request.
21967func (c *OrganizationsDevelopersAttributesDeleteCall) Header() http.Header {
21968	if c.header_ == nil {
21969		c.header_ = make(http.Header)
21970	}
21971	return c.header_
21972}
21973
21974func (c *OrganizationsDevelopersAttributesDeleteCall) doRequest(alt string) (*http.Response, error) {
21975	reqHeaders := make(http.Header)
21976	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
21977	for k, v := range c.header_ {
21978		reqHeaders[k] = v
21979	}
21980	reqHeaders.Set("User-Agent", c.s.userAgent())
21981	var body io.Reader = nil
21982	c.urlParams_.Set("alt", alt)
21983	c.urlParams_.Set("prettyPrint", "false")
21984	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
21985	urls += "?" + c.urlParams_.Encode()
21986	req, err := http.NewRequest("DELETE", urls, body)
21987	if err != nil {
21988		return nil, err
21989	}
21990	req.Header = reqHeaders
21991	googleapi.Expand(req.URL, map[string]string{
21992		"name": c.name,
21993	})
21994	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21995}
21996
21997// Do executes the "apigee.organizations.developers.attributes.delete" call.
21998// Exactly one of *GoogleCloudApigeeV1Attribute or error will be
21999// non-nil. Any non-2xx status code is an error. Response headers are in
22000// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a
22001// response was returned at all) in error.(*googleapi.Error).Header. Use
22002// googleapi.IsNotModified to check whether the returned error was
22003// because http.StatusNotModified was returned.
22004func (c *OrganizationsDevelopersAttributesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
22005	gensupport.SetOptions(c.urlParams_, opts...)
22006	res, err := c.doRequest("json")
22007	if res != nil && res.StatusCode == http.StatusNotModified {
22008		if res.Body != nil {
22009			res.Body.Close()
22010		}
22011		return nil, &googleapi.Error{
22012			Code:   res.StatusCode,
22013			Header: res.Header,
22014		}
22015	}
22016	if err != nil {
22017		return nil, err
22018	}
22019	defer googleapi.CloseBody(res)
22020	if err := googleapi.CheckResponse(res); err != nil {
22021		return nil, err
22022	}
22023	ret := &GoogleCloudApigeeV1Attribute{
22024		ServerResponse: googleapi.ServerResponse{
22025			Header:         res.Header,
22026			HTTPStatusCode: res.StatusCode,
22027		},
22028	}
22029	target := &ret
22030	if err := gensupport.DecodeResponse(target, res); err != nil {
22031		return nil, err
22032	}
22033	return ret, nil
22034	// {
22035	//   "description": "Deletes a developer attribute.",
22036	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/attributes/{attributesId}",
22037	//   "httpMethod": "DELETE",
22038	//   "id": "apigee.organizations.developers.attributes.delete",
22039	//   "parameterOrder": [
22040	//     "name"
22041	//   ],
22042	//   "parameters": {
22043	//     "name": {
22044	//       "description": "Required. Name of the developer attribute. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/attributes/{attribute}`",
22045	//       "location": "path",
22046	//       "pattern": "^organizations/[^/]+/developers/[^/]+/attributes/[^/]+$",
22047	//       "required": true,
22048	//       "type": "string"
22049	//     }
22050	//   },
22051	//   "path": "v1/{+name}",
22052	//   "response": {
22053	//     "$ref": "GoogleCloudApigeeV1Attribute"
22054	//   },
22055	//   "scopes": [
22056	//     "https://www.googleapis.com/auth/cloud-platform"
22057	//   ]
22058	// }
22059
22060}
22061
22062// method id "apigee.organizations.developers.attributes.get":
22063
22064type OrganizationsDevelopersAttributesGetCall struct {
22065	s            *Service
22066	name         string
22067	urlParams_   gensupport.URLParams
22068	ifNoneMatch_ string
22069	ctx_         context.Context
22070	header_      http.Header
22071}
22072
22073// Get: Returns the value of the specified developer attribute.
22074//
22075// - name: Name of the developer attribute. Use the following structure
22076//   in your request:
22077//   `organizations/{org}/developers/{developer_email}/attributes/{attrib
22078//   ute}`.
22079func (r *OrganizationsDevelopersAttributesService) Get(name string) *OrganizationsDevelopersAttributesGetCall {
22080	c := &OrganizationsDevelopersAttributesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22081	c.name = name
22082	return c
22083}
22084
22085// Fields allows partial responses to be retrieved. See
22086// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
22087// for more information.
22088func (c *OrganizationsDevelopersAttributesGetCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAttributesGetCall {
22089	c.urlParams_.Set("fields", googleapi.CombineFields(s))
22090	return c
22091}
22092
22093// IfNoneMatch sets the optional parameter which makes the operation
22094// fail if the object's ETag matches the given value. This is useful for
22095// getting updates only after the object has changed since the last
22096// request. Use googleapi.IsNotModified to check whether the response
22097// error from Do is the result of In-None-Match.
22098func (c *OrganizationsDevelopersAttributesGetCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAttributesGetCall {
22099	c.ifNoneMatch_ = entityTag
22100	return c
22101}
22102
22103// Context sets the context to be used in this call's Do method. Any
22104// pending HTTP request will be aborted if the provided context is
22105// canceled.
22106func (c *OrganizationsDevelopersAttributesGetCall) Context(ctx context.Context) *OrganizationsDevelopersAttributesGetCall {
22107	c.ctx_ = ctx
22108	return c
22109}
22110
22111// Header returns an http.Header that can be modified by the caller to
22112// add HTTP headers to the request.
22113func (c *OrganizationsDevelopersAttributesGetCall) Header() http.Header {
22114	if c.header_ == nil {
22115		c.header_ = make(http.Header)
22116	}
22117	return c.header_
22118}
22119
22120func (c *OrganizationsDevelopersAttributesGetCall) doRequest(alt string) (*http.Response, error) {
22121	reqHeaders := make(http.Header)
22122	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
22123	for k, v := range c.header_ {
22124		reqHeaders[k] = v
22125	}
22126	reqHeaders.Set("User-Agent", c.s.userAgent())
22127	if c.ifNoneMatch_ != "" {
22128		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22129	}
22130	var body io.Reader = nil
22131	c.urlParams_.Set("alt", alt)
22132	c.urlParams_.Set("prettyPrint", "false")
22133	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
22134	urls += "?" + c.urlParams_.Encode()
22135	req, err := http.NewRequest("GET", urls, body)
22136	if err != nil {
22137		return nil, err
22138	}
22139	req.Header = reqHeaders
22140	googleapi.Expand(req.URL, map[string]string{
22141		"name": c.name,
22142	})
22143	return gensupport.SendRequest(c.ctx_, c.s.client, req)
22144}
22145
22146// Do executes the "apigee.organizations.developers.attributes.get" call.
22147// Exactly one of *GoogleCloudApigeeV1Attribute or error will be
22148// non-nil. Any non-2xx status code is an error. Response headers are in
22149// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a
22150// response was returned at all) in error.(*googleapi.Error).Header. Use
22151// googleapi.IsNotModified to check whether the returned error was
22152// because http.StatusNotModified was returned.
22153func (c *OrganizationsDevelopersAttributesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
22154	gensupport.SetOptions(c.urlParams_, opts...)
22155	res, err := c.doRequest("json")
22156	if res != nil && res.StatusCode == http.StatusNotModified {
22157		if res.Body != nil {
22158			res.Body.Close()
22159		}
22160		return nil, &googleapi.Error{
22161			Code:   res.StatusCode,
22162			Header: res.Header,
22163		}
22164	}
22165	if err != nil {
22166		return nil, err
22167	}
22168	defer googleapi.CloseBody(res)
22169	if err := googleapi.CheckResponse(res); err != nil {
22170		return nil, err
22171	}
22172	ret := &GoogleCloudApigeeV1Attribute{
22173		ServerResponse: googleapi.ServerResponse{
22174			Header:         res.Header,
22175			HTTPStatusCode: res.StatusCode,
22176		},
22177	}
22178	target := &ret
22179	if err := gensupport.DecodeResponse(target, res); err != nil {
22180		return nil, err
22181	}
22182	return ret, nil
22183	// {
22184	//   "description": "Returns the value of the specified developer attribute.",
22185	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/attributes/{attributesId}",
22186	//   "httpMethod": "GET",
22187	//   "id": "apigee.organizations.developers.attributes.get",
22188	//   "parameterOrder": [
22189	//     "name"
22190	//   ],
22191	//   "parameters": {
22192	//     "name": {
22193	//       "description": "Required. Name of the developer attribute. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/attributes/{attribute}`",
22194	//       "location": "path",
22195	//       "pattern": "^organizations/[^/]+/developers/[^/]+/attributes/[^/]+$",
22196	//       "required": true,
22197	//       "type": "string"
22198	//     }
22199	//   },
22200	//   "path": "v1/{+name}",
22201	//   "response": {
22202	//     "$ref": "GoogleCloudApigeeV1Attribute"
22203	//   },
22204	//   "scopes": [
22205	//     "https://www.googleapis.com/auth/cloud-platform"
22206	//   ]
22207	// }
22208
22209}
22210
22211// method id "apigee.organizations.developers.attributes.list":
22212
22213type OrganizationsDevelopersAttributesListCall struct {
22214	s            *Service
22215	parent       string
22216	urlParams_   gensupport.URLParams
22217	ifNoneMatch_ string
22218	ctx_         context.Context
22219	header_      http.Header
22220}
22221
22222// List: Returns a list of all developer attributes.
22223//
22224// - parent: Email address of the developer for which attributes are
22225//   being listed. Use the following structure in your request:
22226//   `organizations/{org}/developers/{developer_email}`.
22227func (r *OrganizationsDevelopersAttributesService) List(parent string) *OrganizationsDevelopersAttributesListCall {
22228	c := &OrganizationsDevelopersAttributesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22229	c.parent = parent
22230	return c
22231}
22232
22233// Fields allows partial responses to be retrieved. See
22234// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
22235// for more information.
22236func (c *OrganizationsDevelopersAttributesListCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAttributesListCall {
22237	c.urlParams_.Set("fields", googleapi.CombineFields(s))
22238	return c
22239}
22240
22241// IfNoneMatch sets the optional parameter which makes the operation
22242// fail if the object's ETag matches the given value. This is useful for
22243// getting updates only after the object has changed since the last
22244// request. Use googleapi.IsNotModified to check whether the response
22245// error from Do is the result of In-None-Match.
22246func (c *OrganizationsDevelopersAttributesListCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAttributesListCall {
22247	c.ifNoneMatch_ = entityTag
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 *OrganizationsDevelopersAttributesListCall) Context(ctx context.Context) *OrganizationsDevelopersAttributesListCall {
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 *OrganizationsDevelopersAttributesListCall) Header() http.Header {
22262	if c.header_ == nil {
22263		c.header_ = make(http.Header)
22264	}
22265	return c.header_
22266}
22267
22268func (c *OrganizationsDevelopersAttributesListCall) doRequest(alt string) (*http.Response, error) {
22269	reqHeaders := make(http.Header)
22270	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
22271	for k, v := range c.header_ {
22272		reqHeaders[k] = v
22273	}
22274	reqHeaders.Set("User-Agent", c.s.userAgent())
22275	if c.ifNoneMatch_ != "" {
22276		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22277	}
22278	var body io.Reader = nil
22279	c.urlParams_.Set("alt", alt)
22280	c.urlParams_.Set("prettyPrint", "false")
22281	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attributes")
22282	urls += "?" + c.urlParams_.Encode()
22283	req, err := http.NewRequest("GET", urls, body)
22284	if err != nil {
22285		return nil, err
22286	}
22287	req.Header = reqHeaders
22288	googleapi.Expand(req.URL, map[string]string{
22289		"parent": c.parent,
22290	})
22291	return gensupport.SendRequest(c.ctx_, c.s.client, req)
22292}
22293
22294// Do executes the "apigee.organizations.developers.attributes.list" call.
22295// Exactly one of *GoogleCloudApigeeV1Attributes or error will be
22296// non-nil. Any non-2xx status code is an error. Response headers are in
22297// either *GoogleCloudApigeeV1Attributes.ServerResponse.Header or (if a
22298// response was returned at all) in error.(*googleapi.Error).Header. Use
22299// googleapi.IsNotModified to check whether the returned error was
22300// because http.StatusNotModified was returned.
22301func (c *OrganizationsDevelopersAttributesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attributes, error) {
22302	gensupport.SetOptions(c.urlParams_, opts...)
22303	res, err := c.doRequest("json")
22304	if res != nil && res.StatusCode == http.StatusNotModified {
22305		if res.Body != nil {
22306			res.Body.Close()
22307		}
22308		return nil, &googleapi.Error{
22309			Code:   res.StatusCode,
22310			Header: res.Header,
22311		}
22312	}
22313	if err != nil {
22314		return nil, err
22315	}
22316	defer googleapi.CloseBody(res)
22317	if err := googleapi.CheckResponse(res); err != nil {
22318		return nil, err
22319	}
22320	ret := &GoogleCloudApigeeV1Attributes{
22321		ServerResponse: googleapi.ServerResponse{
22322			Header:         res.Header,
22323			HTTPStatusCode: res.StatusCode,
22324		},
22325	}
22326	target := &ret
22327	if err := gensupport.DecodeResponse(target, res); err != nil {
22328		return nil, err
22329	}
22330	return ret, nil
22331	// {
22332	//   "description": "Returns a list of all developer attributes.",
22333	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/attributes",
22334	//   "httpMethod": "GET",
22335	//   "id": "apigee.organizations.developers.attributes.list",
22336	//   "parameterOrder": [
22337	//     "parent"
22338	//   ],
22339	//   "parameters": {
22340	//     "parent": {
22341	//       "description": "Required. Email address of the developer for which attributes are being listed. Use the following structure in your request: `organizations/{org}/developers/{developer_email}`",
22342	//       "location": "path",
22343	//       "pattern": "^organizations/[^/]+/developers/[^/]+$",
22344	//       "required": true,
22345	//       "type": "string"
22346	//     }
22347	//   },
22348	//   "path": "v1/{+parent}/attributes",
22349	//   "response": {
22350	//     "$ref": "GoogleCloudApigeeV1Attributes"
22351	//   },
22352	//   "scopes": [
22353	//     "https://www.googleapis.com/auth/cloud-platform"
22354	//   ]
22355	// }
22356
22357}
22358
22359// method id "apigee.organizations.developers.attributes.updateDeveloperAttribute":
22360
22361type OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall struct {
22362	s                            *Service
22363	name                         string
22364	googlecloudapigeev1attribute *GoogleCloudApigeeV1Attribute
22365	urlParams_                   gensupport.URLParams
22366	ctx_                         context.Context
22367	header_                      http.Header
22368}
22369
22370// UpdateDeveloperAttribute: Updates a developer attribute. **Note**:
22371// OAuth access tokens and Key Management Service (KMS) entities (apps,
22372// developers, and API products) are cached for 180 seconds (default).
22373// Any custom attributes associated with these entities are cached for
22374// at least 180 seconds after the entity is accessed at runtime.
22375// Therefore, an `ExpiresIn` element on the OAuthV2 policy won't be able
22376// to expire an access token in less than 180 seconds.
22377//
22378// - name: Name of the developer attribute. Use the following structure
22379//   in your request:
22380//   `organizations/{org}/developers/{developer_email}/attributes/{attrib
22381//   ute}`.
22382func (r *OrganizationsDevelopersAttributesService) UpdateDeveloperAttribute(name string, googlecloudapigeev1attribute *GoogleCloudApigeeV1Attribute) *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall {
22383	c := &OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22384	c.name = name
22385	c.googlecloudapigeev1attribute = googlecloudapigeev1attribute
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 *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall {
22393	c.urlParams_.Set("fields", googleapi.CombineFields(s))
22394	return c
22395}
22396
22397// Context sets the context to be used in this call's Do method. Any
22398// pending HTTP request will be aborted if the provided context is
22399// canceled.
22400func (c *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall) Context(ctx context.Context) *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall {
22401	c.ctx_ = ctx
22402	return c
22403}
22404
22405// Header returns an http.Header that can be modified by the caller to
22406// add HTTP headers to the request.
22407func (c *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall) Header() http.Header {
22408	if c.header_ == nil {
22409		c.header_ = make(http.Header)
22410	}
22411	return c.header_
22412}
22413
22414func (c *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall) doRequest(alt string) (*http.Response, error) {
22415	reqHeaders := make(http.Header)
22416	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
22417	for k, v := range c.header_ {
22418		reqHeaders[k] = v
22419	}
22420	reqHeaders.Set("User-Agent", c.s.userAgent())
22421	var body io.Reader = nil
22422	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1attribute)
22423	if err != nil {
22424		return nil, err
22425	}
22426	reqHeaders.Set("Content-Type", "application/json")
22427	c.urlParams_.Set("alt", alt)
22428	c.urlParams_.Set("prettyPrint", "false")
22429	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
22430	urls += "?" + c.urlParams_.Encode()
22431	req, err := http.NewRequest("POST", urls, body)
22432	if err != nil {
22433		return nil, err
22434	}
22435	req.Header = reqHeaders
22436	googleapi.Expand(req.URL, map[string]string{
22437		"name": c.name,
22438	})
22439	return gensupport.SendRequest(c.ctx_, c.s.client, req)
22440}
22441
22442// Do executes the "apigee.organizations.developers.attributes.updateDeveloperAttribute" call.
22443// Exactly one of *GoogleCloudApigeeV1Attribute or error will be
22444// non-nil. Any non-2xx status code is an error. Response headers are in
22445// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a
22446// response was returned at all) in error.(*googleapi.Error).Header. Use
22447// googleapi.IsNotModified to check whether the returned error was
22448// because http.StatusNotModified was returned.
22449func (c *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
22450	gensupport.SetOptions(c.urlParams_, opts...)
22451	res, err := c.doRequest("json")
22452	if res != nil && res.StatusCode == http.StatusNotModified {
22453		if res.Body != nil {
22454			res.Body.Close()
22455		}
22456		return nil, &googleapi.Error{
22457			Code:   res.StatusCode,
22458			Header: res.Header,
22459		}
22460	}
22461	if err != nil {
22462		return nil, err
22463	}
22464	defer googleapi.CloseBody(res)
22465	if err := googleapi.CheckResponse(res); err != nil {
22466		return nil, err
22467	}
22468	ret := &GoogleCloudApigeeV1Attribute{
22469		ServerResponse: googleapi.ServerResponse{
22470			Header:         res.Header,
22471			HTTPStatusCode: res.StatusCode,
22472		},
22473	}
22474	target := &ret
22475	if err := gensupport.DecodeResponse(target, res); err != nil {
22476		return nil, err
22477	}
22478	return ret, nil
22479	// {
22480	//   "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.",
22481	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/attributes/{attributesId}",
22482	//   "httpMethod": "POST",
22483	//   "id": "apigee.organizations.developers.attributes.updateDeveloperAttribute",
22484	//   "parameterOrder": [
22485	//     "name"
22486	//   ],
22487	//   "parameters": {
22488	//     "name": {
22489	//       "description": "Required. Name of the developer attribute. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/attributes/{attribute}`",
22490	//       "location": "path",
22491	//       "pattern": "^organizations/[^/]+/developers/[^/]+/attributes/[^/]+$",
22492	//       "required": true,
22493	//       "type": "string"
22494	//     }
22495	//   },
22496	//   "path": "v1/{+name}",
22497	//   "request": {
22498	//     "$ref": "GoogleCloudApigeeV1Attribute"
22499	//   },
22500	//   "response": {
22501	//     "$ref": "GoogleCloudApigeeV1Attribute"
22502	//   },
22503	//   "scopes": [
22504	//     "https://www.googleapis.com/auth/cloud-platform"
22505	//   ]
22506	// }
22507
22508}
22509
22510// method id "apigee.organizations.developers.subscriptions.create":
22511
22512type OrganizationsDevelopersSubscriptionsCreateCall struct {
22513	s                                        *Service
22514	parent                                   string
22515	googlecloudapigeev1developersubscription *GoogleCloudApigeeV1DeveloperSubscription
22516	urlParams_                               gensupport.URLParams
22517	ctx_                                     context.Context
22518	header_                                  http.Header
22519}
22520
22521// Create: Creates a subscription to an API product.
22522//
22523// - parent: Email address of the developer that is purchasing a
22524//   subscription to the API product. Use the following structure in
22525//   your request: `organizations/{org}/developers/{developer_email}`.
22526func (r *OrganizationsDevelopersSubscriptionsService) Create(parent string, googlecloudapigeev1developersubscription *GoogleCloudApigeeV1DeveloperSubscription) *OrganizationsDevelopersSubscriptionsCreateCall {
22527	c := &OrganizationsDevelopersSubscriptionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22528	c.parent = parent
22529	c.googlecloudapigeev1developersubscription = googlecloudapigeev1developersubscription
22530	return c
22531}
22532
22533// Fields allows partial responses to be retrieved. See
22534// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
22535// for more information.
22536func (c *OrganizationsDevelopersSubscriptionsCreateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersSubscriptionsCreateCall {
22537	c.urlParams_.Set("fields", googleapi.CombineFields(s))
22538	return c
22539}
22540
22541// Context sets the context to be used in this call's Do method. Any
22542// pending HTTP request will be aborted if the provided context is
22543// canceled.
22544func (c *OrganizationsDevelopersSubscriptionsCreateCall) Context(ctx context.Context) *OrganizationsDevelopersSubscriptionsCreateCall {
22545	c.ctx_ = ctx
22546	return c
22547}
22548
22549// Header returns an http.Header that can be modified by the caller to
22550// add HTTP headers to the request.
22551func (c *OrganizationsDevelopersSubscriptionsCreateCall) Header() http.Header {
22552	if c.header_ == nil {
22553		c.header_ = make(http.Header)
22554	}
22555	return c.header_
22556}
22557
22558func (c *OrganizationsDevelopersSubscriptionsCreateCall) doRequest(alt string) (*http.Response, error) {
22559	reqHeaders := make(http.Header)
22560	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
22561	for k, v := range c.header_ {
22562		reqHeaders[k] = v
22563	}
22564	reqHeaders.Set("User-Agent", c.s.userAgent())
22565	var body io.Reader = nil
22566	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developersubscription)
22567	if err != nil {
22568		return nil, err
22569	}
22570	reqHeaders.Set("Content-Type", "application/json")
22571	c.urlParams_.Set("alt", alt)
22572	c.urlParams_.Set("prettyPrint", "false")
22573	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/subscriptions")
22574	urls += "?" + c.urlParams_.Encode()
22575	req, err := http.NewRequest("POST", urls, body)
22576	if err != nil {
22577		return nil, err
22578	}
22579	req.Header = reqHeaders
22580	googleapi.Expand(req.URL, map[string]string{
22581		"parent": c.parent,
22582	})
22583	return gensupport.SendRequest(c.ctx_, c.s.client, req)
22584}
22585
22586// Do executes the "apigee.organizations.developers.subscriptions.create" call.
22587// Exactly one of *GoogleCloudApigeeV1DeveloperSubscription or error
22588// will be non-nil. Any non-2xx status code is an error. Response
22589// headers are in either
22590// *GoogleCloudApigeeV1DeveloperSubscription.ServerResponse.Header or
22591// (if a response was returned at all) in
22592// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
22593// whether the returned error was because http.StatusNotModified was
22594// returned.
22595func (c *OrganizationsDevelopersSubscriptionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperSubscription, error) {
22596	gensupport.SetOptions(c.urlParams_, opts...)
22597	res, err := c.doRequest("json")
22598	if res != nil && res.StatusCode == http.StatusNotModified {
22599		if res.Body != nil {
22600			res.Body.Close()
22601		}
22602		return nil, &googleapi.Error{
22603			Code:   res.StatusCode,
22604			Header: res.Header,
22605		}
22606	}
22607	if err != nil {
22608		return nil, err
22609	}
22610	defer googleapi.CloseBody(res)
22611	if err := googleapi.CheckResponse(res); err != nil {
22612		return nil, err
22613	}
22614	ret := &GoogleCloudApigeeV1DeveloperSubscription{
22615		ServerResponse: googleapi.ServerResponse{
22616			Header:         res.Header,
22617			HTTPStatusCode: res.StatusCode,
22618		},
22619	}
22620	target := &ret
22621	if err := gensupport.DecodeResponse(target, res); err != nil {
22622		return nil, err
22623	}
22624	return ret, nil
22625	// {
22626	//   "description": "Creates a subscription to an API product. ",
22627	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/subscriptions",
22628	//   "httpMethod": "POST",
22629	//   "id": "apigee.organizations.developers.subscriptions.create",
22630	//   "parameterOrder": [
22631	//     "parent"
22632	//   ],
22633	//   "parameters": {
22634	//     "parent": {
22635	//       "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}`",
22636	//       "location": "path",
22637	//       "pattern": "^organizations/[^/]+/developers/[^/]+$",
22638	//       "required": true,
22639	//       "type": "string"
22640	//     }
22641	//   },
22642	//   "path": "v1/{+parent}/subscriptions",
22643	//   "request": {
22644	//     "$ref": "GoogleCloudApigeeV1DeveloperSubscription"
22645	//   },
22646	//   "response": {
22647	//     "$ref": "GoogleCloudApigeeV1DeveloperSubscription"
22648	//   },
22649	//   "scopes": [
22650	//     "https://www.googleapis.com/auth/cloud-platform"
22651	//   ]
22652	// }
22653
22654}
22655
22656// method id "apigee.organizations.developers.subscriptions.expire":
22657
22658type OrganizationsDevelopersSubscriptionsExpireCall struct {
22659	s                                                     *Service
22660	name                                                  string
22661	googlecloudapigeev1expiredevelopersubscriptionrequest *GoogleCloudApigeeV1ExpireDeveloperSubscriptionRequest
22662	urlParams_                                            gensupport.URLParams
22663	ctx_                                                  context.Context
22664	header_                                               http.Header
22665}
22666
22667// Expire: Expires an API product subscription immediately.
22668//
22669// - name: Name of the API product subscription. Use the following
22670//   structure in your request:
22671//   `organizations/{org}/developers/{developer_email}/subscriptions/{sub
22672//   scription}`.
22673func (r *OrganizationsDevelopersSubscriptionsService) Expire(name string, googlecloudapigeev1expiredevelopersubscriptionrequest *GoogleCloudApigeeV1ExpireDeveloperSubscriptionRequest) *OrganizationsDevelopersSubscriptionsExpireCall {
22674	c := &OrganizationsDevelopersSubscriptionsExpireCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22675	c.name = name
22676	c.googlecloudapigeev1expiredevelopersubscriptionrequest = googlecloudapigeev1expiredevelopersubscriptionrequest
22677	return c
22678}
22679
22680// Fields allows partial responses to be retrieved. See
22681// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
22682// for more information.
22683func (c *OrganizationsDevelopersSubscriptionsExpireCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersSubscriptionsExpireCall {
22684	c.urlParams_.Set("fields", googleapi.CombineFields(s))
22685	return c
22686}
22687
22688// Context sets the context to be used in this call's Do method. Any
22689// pending HTTP request will be aborted if the provided context is
22690// canceled.
22691func (c *OrganizationsDevelopersSubscriptionsExpireCall) Context(ctx context.Context) *OrganizationsDevelopersSubscriptionsExpireCall {
22692	c.ctx_ = ctx
22693	return c
22694}
22695
22696// Header returns an http.Header that can be modified by the caller to
22697// add HTTP headers to the request.
22698func (c *OrganizationsDevelopersSubscriptionsExpireCall) Header() http.Header {
22699	if c.header_ == nil {
22700		c.header_ = make(http.Header)
22701	}
22702	return c.header_
22703}
22704
22705func (c *OrganizationsDevelopersSubscriptionsExpireCall) doRequest(alt string) (*http.Response, error) {
22706	reqHeaders := make(http.Header)
22707	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
22708	for k, v := range c.header_ {
22709		reqHeaders[k] = v
22710	}
22711	reqHeaders.Set("User-Agent", c.s.userAgent())
22712	var body io.Reader = nil
22713	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1expiredevelopersubscriptionrequest)
22714	if err != nil {
22715		return nil, err
22716	}
22717	reqHeaders.Set("Content-Type", "application/json")
22718	c.urlParams_.Set("alt", alt)
22719	c.urlParams_.Set("prettyPrint", "false")
22720	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:expire")
22721	urls += "?" + c.urlParams_.Encode()
22722	req, err := http.NewRequest("POST", urls, body)
22723	if err != nil {
22724		return nil, err
22725	}
22726	req.Header = reqHeaders
22727	googleapi.Expand(req.URL, map[string]string{
22728		"name": c.name,
22729	})
22730	return gensupport.SendRequest(c.ctx_, c.s.client, req)
22731}
22732
22733// Do executes the "apigee.organizations.developers.subscriptions.expire" call.
22734// Exactly one of *GoogleCloudApigeeV1DeveloperSubscription or error
22735// will be non-nil. Any non-2xx status code is an error. Response
22736// headers are in either
22737// *GoogleCloudApigeeV1DeveloperSubscription.ServerResponse.Header or
22738// (if a response was returned at all) in
22739// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
22740// whether the returned error was because http.StatusNotModified was
22741// returned.
22742func (c *OrganizationsDevelopersSubscriptionsExpireCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperSubscription, error) {
22743	gensupport.SetOptions(c.urlParams_, opts...)
22744	res, err := c.doRequest("json")
22745	if res != nil && res.StatusCode == http.StatusNotModified {
22746		if res.Body != nil {
22747			res.Body.Close()
22748		}
22749		return nil, &googleapi.Error{
22750			Code:   res.StatusCode,
22751			Header: res.Header,
22752		}
22753	}
22754	if err != nil {
22755		return nil, err
22756	}
22757	defer googleapi.CloseBody(res)
22758	if err := googleapi.CheckResponse(res); err != nil {
22759		return nil, err
22760	}
22761	ret := &GoogleCloudApigeeV1DeveloperSubscription{
22762		ServerResponse: googleapi.ServerResponse{
22763			Header:         res.Header,
22764			HTTPStatusCode: res.StatusCode,
22765		},
22766	}
22767	target := &ret
22768	if err := gensupport.DecodeResponse(target, res); err != nil {
22769		return nil, err
22770	}
22771	return ret, nil
22772	// {
22773	//   "description": "Expires an API product subscription immediately.",
22774	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/subscriptions/{subscriptionsId}:expire",
22775	//   "httpMethod": "POST",
22776	//   "id": "apigee.organizations.developers.subscriptions.expire",
22777	//   "parameterOrder": [
22778	//     "name"
22779	//   ],
22780	//   "parameters": {
22781	//     "name": {
22782	//       "description": "Required. Name of the API product subscription. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/subscriptions/{subscription}`",
22783	//       "location": "path",
22784	//       "pattern": "^organizations/[^/]+/developers/[^/]+/subscriptions/[^/]+$",
22785	//       "required": true,
22786	//       "type": "string"
22787	//     }
22788	//   },
22789	//   "path": "v1/{+name}:expire",
22790	//   "request": {
22791	//     "$ref": "GoogleCloudApigeeV1ExpireDeveloperSubscriptionRequest"
22792	//   },
22793	//   "response": {
22794	//     "$ref": "GoogleCloudApigeeV1DeveloperSubscription"
22795	//   },
22796	//   "scopes": [
22797	//     "https://www.googleapis.com/auth/cloud-platform"
22798	//   ]
22799	// }
22800
22801}
22802
22803// method id "apigee.organizations.developers.subscriptions.get":
22804
22805type OrganizationsDevelopersSubscriptionsGetCall struct {
22806	s            *Service
22807	name         string
22808	urlParams_   gensupport.URLParams
22809	ifNoneMatch_ string
22810	ctx_         context.Context
22811	header_      http.Header
22812}
22813
22814// Get: Gets details for an API product subscription.
22815//
22816// - name: Name of the API product subscription. Use the following
22817//   structure in your request:
22818//   `organizations/{org}/developers/{developer_email}/subscriptions/{sub
22819//   scription}`.
22820func (r *OrganizationsDevelopersSubscriptionsService) Get(name string) *OrganizationsDevelopersSubscriptionsGetCall {
22821	c := &OrganizationsDevelopersSubscriptionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22822	c.name = name
22823	return c
22824}
22825
22826// Fields allows partial responses to be retrieved. See
22827// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
22828// for more information.
22829func (c *OrganizationsDevelopersSubscriptionsGetCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersSubscriptionsGetCall {
22830	c.urlParams_.Set("fields", googleapi.CombineFields(s))
22831	return c
22832}
22833
22834// IfNoneMatch sets the optional parameter which makes the operation
22835// fail if the object's ETag matches the given value. This is useful for
22836// getting updates only after the object has changed since the last
22837// request. Use googleapi.IsNotModified to check whether the response
22838// error from Do is the result of In-None-Match.
22839func (c *OrganizationsDevelopersSubscriptionsGetCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersSubscriptionsGetCall {
22840	c.ifNoneMatch_ = entityTag
22841	return c
22842}
22843
22844// Context sets the context to be used in this call's Do method. Any
22845// pending HTTP request will be aborted if the provided context is
22846// canceled.
22847func (c *OrganizationsDevelopersSubscriptionsGetCall) Context(ctx context.Context) *OrganizationsDevelopersSubscriptionsGetCall {
22848	c.ctx_ = ctx
22849	return c
22850}
22851
22852// Header returns an http.Header that can be modified by the caller to
22853// add HTTP headers to the request.
22854func (c *OrganizationsDevelopersSubscriptionsGetCall) Header() http.Header {
22855	if c.header_ == nil {
22856		c.header_ = make(http.Header)
22857	}
22858	return c.header_
22859}
22860
22861func (c *OrganizationsDevelopersSubscriptionsGetCall) doRequest(alt string) (*http.Response, error) {
22862	reqHeaders := make(http.Header)
22863	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
22864	for k, v := range c.header_ {
22865		reqHeaders[k] = v
22866	}
22867	reqHeaders.Set("User-Agent", c.s.userAgent())
22868	if c.ifNoneMatch_ != "" {
22869		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22870	}
22871	var body io.Reader = nil
22872	c.urlParams_.Set("alt", alt)
22873	c.urlParams_.Set("prettyPrint", "false")
22874	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
22875	urls += "?" + c.urlParams_.Encode()
22876	req, err := http.NewRequest("GET", urls, body)
22877	if err != nil {
22878		return nil, err
22879	}
22880	req.Header = reqHeaders
22881	googleapi.Expand(req.URL, map[string]string{
22882		"name": c.name,
22883	})
22884	return gensupport.SendRequest(c.ctx_, c.s.client, req)
22885}
22886
22887// Do executes the "apigee.organizations.developers.subscriptions.get" call.
22888// Exactly one of *GoogleCloudApigeeV1DeveloperSubscription or error
22889// will be non-nil. Any non-2xx status code is an error. Response
22890// headers are in either
22891// *GoogleCloudApigeeV1DeveloperSubscription.ServerResponse.Header or
22892// (if a response was returned at all) in
22893// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
22894// whether the returned error was because http.StatusNotModified was
22895// returned.
22896func (c *OrganizationsDevelopersSubscriptionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperSubscription, error) {
22897	gensupport.SetOptions(c.urlParams_, opts...)
22898	res, err := c.doRequest("json")
22899	if res != nil && res.StatusCode == http.StatusNotModified {
22900		if res.Body != nil {
22901			res.Body.Close()
22902		}
22903		return nil, &googleapi.Error{
22904			Code:   res.StatusCode,
22905			Header: res.Header,
22906		}
22907	}
22908	if err != nil {
22909		return nil, err
22910	}
22911	defer googleapi.CloseBody(res)
22912	if err := googleapi.CheckResponse(res); err != nil {
22913		return nil, err
22914	}
22915	ret := &GoogleCloudApigeeV1DeveloperSubscription{
22916		ServerResponse: googleapi.ServerResponse{
22917			Header:         res.Header,
22918			HTTPStatusCode: res.StatusCode,
22919		},
22920	}
22921	target := &ret
22922	if err := gensupport.DecodeResponse(target, res); err != nil {
22923		return nil, err
22924	}
22925	return ret, nil
22926	// {
22927	//   "description": "Gets details for an API product subscription.",
22928	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/subscriptions/{subscriptionsId}",
22929	//   "httpMethod": "GET",
22930	//   "id": "apigee.organizations.developers.subscriptions.get",
22931	//   "parameterOrder": [
22932	//     "name"
22933	//   ],
22934	//   "parameters": {
22935	//     "name": {
22936	//       "description": "Required. Name of the API product subscription. Use the following structure in your request: `organizations/{org}/developers/{developer_email}/subscriptions/{subscription}`",
22937	//       "location": "path",
22938	//       "pattern": "^organizations/[^/]+/developers/[^/]+/subscriptions/[^/]+$",
22939	//       "required": true,
22940	//       "type": "string"
22941	//     }
22942	//   },
22943	//   "path": "v1/{+name}",
22944	//   "response": {
22945	//     "$ref": "GoogleCloudApigeeV1DeveloperSubscription"
22946	//   },
22947	//   "scopes": [
22948	//     "https://www.googleapis.com/auth/cloud-platform"
22949	//   ]
22950	// }
22951
22952}
22953
22954// method id "apigee.organizations.developers.subscriptions.list":
22955
22956type OrganizationsDevelopersSubscriptionsListCall struct {
22957	s            *Service
22958	parent       string
22959	urlParams_   gensupport.URLParams
22960	ifNoneMatch_ string
22961	ctx_         context.Context
22962	header_      http.Header
22963}
22964
22965// List: Lists all API product subscriptions for a developer.
22966//
22967// - parent: Email address of the developer. Use the following structure
22968//   in your request: `organizations/{org}/developers/{developer_email}`.
22969func (r *OrganizationsDevelopersSubscriptionsService) List(parent string) *OrganizationsDevelopersSubscriptionsListCall {
22970	c := &OrganizationsDevelopersSubscriptionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22971	c.parent = parent
22972	return c
22973}
22974
22975// Count sets the optional parameter "count": Number of API product
22976// subscriptions to return in the API call. Use with `startKey` to
22977// provide more targeted filtering. Defaults to 100. The maximum limit
22978// is 1000.
22979func (c *OrganizationsDevelopersSubscriptionsListCall) Count(count int64) *OrganizationsDevelopersSubscriptionsListCall {
22980	c.urlParams_.Set("count", fmt.Sprint(count))
22981	return c
22982}
22983
22984// StartKey sets the optional parameter "startKey": Name of the API
22985// product subscription from which to start displaying the list of
22986// subscriptions. If omitted, the list starts from the first item. For
22987// example, to view the API product subscriptions from 51-150, set the
22988// value of `startKey` to the name of the 51st subscription and set the
22989// value of `count` to 100.
22990func (c *OrganizationsDevelopersSubscriptionsListCall) StartKey(startKey string) *OrganizationsDevelopersSubscriptionsListCall {
22991	c.urlParams_.Set("startKey", startKey)
22992	return c
22993}
22994
22995// Fields allows partial responses to be retrieved. See
22996// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
22997// for more information.
22998func (c *OrganizationsDevelopersSubscriptionsListCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersSubscriptionsListCall {
22999	c.urlParams_.Set("fields", googleapi.CombineFields(s))
23000	return c
23001}
23002
23003// IfNoneMatch sets the optional parameter which makes the operation
23004// fail if the object's ETag matches the given value. This is useful for
23005// getting updates only after the object has changed since the last
23006// request. Use googleapi.IsNotModified to check whether the response
23007// error from Do is the result of In-None-Match.
23008func (c *OrganizationsDevelopersSubscriptionsListCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersSubscriptionsListCall {
23009	c.ifNoneMatch_ = entityTag
23010	return c
23011}
23012
23013// Context sets the context to be used in this call's Do method. Any
23014// pending HTTP request will be aborted if the provided context is
23015// canceled.
23016func (c *OrganizationsDevelopersSubscriptionsListCall) Context(ctx context.Context) *OrganizationsDevelopersSubscriptionsListCall {
23017	c.ctx_ = ctx
23018	return c
23019}
23020
23021// Header returns an http.Header that can be modified by the caller to
23022// add HTTP headers to the request.
23023func (c *OrganizationsDevelopersSubscriptionsListCall) Header() http.Header {
23024	if c.header_ == nil {
23025		c.header_ = make(http.Header)
23026	}
23027	return c.header_
23028}
23029
23030func (c *OrganizationsDevelopersSubscriptionsListCall) doRequest(alt string) (*http.Response, error) {
23031	reqHeaders := make(http.Header)
23032	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
23033	for k, v := range c.header_ {
23034		reqHeaders[k] = v
23035	}
23036	reqHeaders.Set("User-Agent", c.s.userAgent())
23037	if c.ifNoneMatch_ != "" {
23038		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23039	}
23040	var body io.Reader = nil
23041	c.urlParams_.Set("alt", alt)
23042	c.urlParams_.Set("prettyPrint", "false")
23043	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/subscriptions")
23044	urls += "?" + c.urlParams_.Encode()
23045	req, err := http.NewRequest("GET", urls, body)
23046	if err != nil {
23047		return nil, err
23048	}
23049	req.Header = reqHeaders
23050	googleapi.Expand(req.URL, map[string]string{
23051		"parent": c.parent,
23052	})
23053	return gensupport.SendRequest(c.ctx_, c.s.client, req)
23054}
23055
23056// Do executes the "apigee.organizations.developers.subscriptions.list" call.
23057// Exactly one of *GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse
23058// or error will be non-nil. Any non-2xx status code is an error.
23059// Response headers are in either
23060// *GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse.ServerResponse.
23061// Header or (if a response was returned at all) in
23062// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
23063// whether the returned error was because http.StatusNotModified was
23064// returned.
23065func (c *OrganizationsDevelopersSubscriptionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse, error) {
23066	gensupport.SetOptions(c.urlParams_, opts...)
23067	res, err := c.doRequest("json")
23068	if res != nil && res.StatusCode == http.StatusNotModified {
23069		if res.Body != nil {
23070			res.Body.Close()
23071		}
23072		return nil, &googleapi.Error{
23073			Code:   res.StatusCode,
23074			Header: res.Header,
23075		}
23076	}
23077	if err != nil {
23078		return nil, err
23079	}
23080	defer googleapi.CloseBody(res)
23081	if err := googleapi.CheckResponse(res); err != nil {
23082		return nil, err
23083	}
23084	ret := &GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse{
23085		ServerResponse: googleapi.ServerResponse{
23086			Header:         res.Header,
23087			HTTPStatusCode: res.StatusCode,
23088		},
23089	}
23090	target := &ret
23091	if err := gensupport.DecodeResponse(target, res); err != nil {
23092		return nil, err
23093	}
23094	return ret, nil
23095	// {
23096	//   "description": "Lists all API product subscriptions for a developer.",
23097	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/subscriptions",
23098	//   "httpMethod": "GET",
23099	//   "id": "apigee.organizations.developers.subscriptions.list",
23100	//   "parameterOrder": [
23101	//     "parent"
23102	//   ],
23103	//   "parameters": {
23104	//     "count": {
23105	//       "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.",
23106	//       "format": "int32",
23107	//       "location": "query",
23108	//       "type": "integer"
23109	//     },
23110	//     "parent": {
23111	//       "description": "Required. Email address of the developer. Use the following structure in your request: `organizations/{org}/developers/{developer_email}`",
23112	//       "location": "path",
23113	//       "pattern": "^organizations/[^/]+/developers/[^/]+$",
23114	//       "required": true,
23115	//       "type": "string"
23116	//     },
23117	//     "startKey": {
23118	//       "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.",
23119	//       "location": "query",
23120	//       "type": "string"
23121	//     }
23122	//   },
23123	//   "path": "v1/{+parent}/subscriptions",
23124	//   "response": {
23125	//     "$ref": "GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse"
23126	//   },
23127	//   "scopes": [
23128	//     "https://www.googleapis.com/auth/cloud-platform"
23129	//   ]
23130	// }
23131
23132}
23133
23134// method id "apigee.organizations.envgroups.create":
23135
23136type OrganizationsEnvgroupsCreateCall struct {
23137	s                                   *Service
23138	parent                              string
23139	googlecloudapigeev1environmentgroup *GoogleCloudApigeeV1EnvironmentGroup
23140	urlParams_                          gensupport.URLParams
23141	ctx_                                context.Context
23142	header_                             http.Header
23143}
23144
23145// Create: Creates a new environment group.
23146//
23147// - parent: Name of the organization in which to create the environment
23148//   group in the following format: `organizations/{org}`.
23149func (r *OrganizationsEnvgroupsService) Create(parent string, googlecloudapigeev1environmentgroup *GoogleCloudApigeeV1EnvironmentGroup) *OrganizationsEnvgroupsCreateCall {
23150	c := &OrganizationsEnvgroupsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23151	c.parent = parent
23152	c.googlecloudapigeev1environmentgroup = googlecloudapigeev1environmentgroup
23153	return c
23154}
23155
23156// Name sets the optional parameter "name": ID of the environment group.
23157// Overrides any ID in the environment_group resource.
23158func (c *OrganizationsEnvgroupsCreateCall) Name(name string) *OrganizationsEnvgroupsCreateCall {
23159	c.urlParams_.Set("name", name)
23160	return c
23161}
23162
23163// Fields allows partial responses to be retrieved. See
23164// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
23165// for more information.
23166func (c *OrganizationsEnvgroupsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsCreateCall {
23167	c.urlParams_.Set("fields", googleapi.CombineFields(s))
23168	return c
23169}
23170
23171// Context sets the context to be used in this call's Do method. Any
23172// pending HTTP request will be aborted if the provided context is
23173// canceled.
23174func (c *OrganizationsEnvgroupsCreateCall) Context(ctx context.Context) *OrganizationsEnvgroupsCreateCall {
23175	c.ctx_ = ctx
23176	return c
23177}
23178
23179// Header returns an http.Header that can be modified by the caller to
23180// add HTTP headers to the request.
23181func (c *OrganizationsEnvgroupsCreateCall) Header() http.Header {
23182	if c.header_ == nil {
23183		c.header_ = make(http.Header)
23184	}
23185	return c.header_
23186}
23187
23188func (c *OrganizationsEnvgroupsCreateCall) doRequest(alt string) (*http.Response, error) {
23189	reqHeaders := make(http.Header)
23190	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
23191	for k, v := range c.header_ {
23192		reqHeaders[k] = v
23193	}
23194	reqHeaders.Set("User-Agent", c.s.userAgent())
23195	var body io.Reader = nil
23196	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1environmentgroup)
23197	if err != nil {
23198		return nil, err
23199	}
23200	reqHeaders.Set("Content-Type", "application/json")
23201	c.urlParams_.Set("alt", alt)
23202	c.urlParams_.Set("prettyPrint", "false")
23203	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/envgroups")
23204	urls += "?" + c.urlParams_.Encode()
23205	req, err := http.NewRequest("POST", urls, body)
23206	if err != nil {
23207		return nil, err
23208	}
23209	req.Header = reqHeaders
23210	googleapi.Expand(req.URL, map[string]string{
23211		"parent": c.parent,
23212	})
23213	return gensupport.SendRequest(c.ctx_, c.s.client, req)
23214}
23215
23216// Do executes the "apigee.organizations.envgroups.create" call.
23217// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
23218// Any non-2xx status code is an error. Response headers are in either
23219// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
23220// was returned at all) in error.(*googleapi.Error).Header. Use
23221// googleapi.IsNotModified to check whether the returned error was
23222// because http.StatusNotModified was returned.
23223func (c *OrganizationsEnvgroupsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
23224	gensupport.SetOptions(c.urlParams_, opts...)
23225	res, err := c.doRequest("json")
23226	if res != nil && res.StatusCode == http.StatusNotModified {
23227		if res.Body != nil {
23228			res.Body.Close()
23229		}
23230		return nil, &googleapi.Error{
23231			Code:   res.StatusCode,
23232			Header: res.Header,
23233		}
23234	}
23235	if err != nil {
23236		return nil, err
23237	}
23238	defer googleapi.CloseBody(res)
23239	if err := googleapi.CheckResponse(res); err != nil {
23240		return nil, err
23241	}
23242	ret := &GoogleLongrunningOperation{
23243		ServerResponse: googleapi.ServerResponse{
23244			Header:         res.Header,
23245			HTTPStatusCode: res.StatusCode,
23246		},
23247	}
23248	target := &ret
23249	if err := gensupport.DecodeResponse(target, res); err != nil {
23250		return nil, err
23251	}
23252	return ret, nil
23253	// {
23254	//   "description": "Creates a new environment group.",
23255	//   "flatPath": "v1/organizations/{organizationsId}/envgroups",
23256	//   "httpMethod": "POST",
23257	//   "id": "apigee.organizations.envgroups.create",
23258	//   "parameterOrder": [
23259	//     "parent"
23260	//   ],
23261	//   "parameters": {
23262	//     "name": {
23263	//       "description": "ID of the environment group. Overrides any ID in the environment_group resource.",
23264	//       "location": "query",
23265	//       "type": "string"
23266	//     },
23267	//     "parent": {
23268	//       "description": "Required. Name of the organization in which to create the environment group in the following format: `organizations/{org}`.",
23269	//       "location": "path",
23270	//       "pattern": "^organizations/[^/]+$",
23271	//       "required": true,
23272	//       "type": "string"
23273	//     }
23274	//   },
23275	//   "path": "v1/{+parent}/envgroups",
23276	//   "request": {
23277	//     "$ref": "GoogleCloudApigeeV1EnvironmentGroup"
23278	//   },
23279	//   "response": {
23280	//     "$ref": "GoogleLongrunningOperation"
23281	//   },
23282	//   "scopes": [
23283	//     "https://www.googleapis.com/auth/cloud-platform"
23284	//   ]
23285	// }
23286
23287}
23288
23289// method id "apigee.organizations.envgroups.delete":
23290
23291type OrganizationsEnvgroupsDeleteCall struct {
23292	s          *Service
23293	name       string
23294	urlParams_ gensupport.URLParams
23295	ctx_       context.Context
23296	header_    http.Header
23297}
23298
23299// Delete: Deletes an environment group.
23300//
23301// - name: Name of the environment group in the following format:
23302//   `organizations/{org}/envgroups/{envgroup}`.
23303func (r *OrganizationsEnvgroupsService) Delete(name string) *OrganizationsEnvgroupsDeleteCall {
23304	c := &OrganizationsEnvgroupsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23305	c.name = name
23306	return c
23307}
23308
23309// Fields allows partial responses to be retrieved. See
23310// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
23311// for more information.
23312func (c *OrganizationsEnvgroupsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsDeleteCall {
23313	c.urlParams_.Set("fields", googleapi.CombineFields(s))
23314	return c
23315}
23316
23317// Context sets the context to be used in this call's Do method. Any
23318// pending HTTP request will be aborted if the provided context is
23319// canceled.
23320func (c *OrganizationsEnvgroupsDeleteCall) Context(ctx context.Context) *OrganizationsEnvgroupsDeleteCall {
23321	c.ctx_ = ctx
23322	return c
23323}
23324
23325// Header returns an http.Header that can be modified by the caller to
23326// add HTTP headers to the request.
23327func (c *OrganizationsEnvgroupsDeleteCall) Header() http.Header {
23328	if c.header_ == nil {
23329		c.header_ = make(http.Header)
23330	}
23331	return c.header_
23332}
23333
23334func (c *OrganizationsEnvgroupsDeleteCall) doRequest(alt string) (*http.Response, error) {
23335	reqHeaders := make(http.Header)
23336	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
23337	for k, v := range c.header_ {
23338		reqHeaders[k] = v
23339	}
23340	reqHeaders.Set("User-Agent", c.s.userAgent())
23341	var body io.Reader = nil
23342	c.urlParams_.Set("alt", alt)
23343	c.urlParams_.Set("prettyPrint", "false")
23344	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
23345	urls += "?" + c.urlParams_.Encode()
23346	req, err := http.NewRequest("DELETE", urls, body)
23347	if err != nil {
23348		return nil, err
23349	}
23350	req.Header = reqHeaders
23351	googleapi.Expand(req.URL, map[string]string{
23352		"name": c.name,
23353	})
23354	return gensupport.SendRequest(c.ctx_, c.s.client, req)
23355}
23356
23357// Do executes the "apigee.organizations.envgroups.delete" call.
23358// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
23359// Any non-2xx status code is an error. Response headers are in either
23360// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
23361// was returned at all) in error.(*googleapi.Error).Header. Use
23362// googleapi.IsNotModified to check whether the returned error was
23363// because http.StatusNotModified was returned.
23364func (c *OrganizationsEnvgroupsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
23365	gensupport.SetOptions(c.urlParams_, opts...)
23366	res, err := c.doRequest("json")
23367	if res != nil && res.StatusCode == http.StatusNotModified {
23368		if res.Body != nil {
23369			res.Body.Close()
23370		}
23371		return nil, &googleapi.Error{
23372			Code:   res.StatusCode,
23373			Header: res.Header,
23374		}
23375	}
23376	if err != nil {
23377		return nil, err
23378	}
23379	defer googleapi.CloseBody(res)
23380	if err := googleapi.CheckResponse(res); err != nil {
23381		return nil, err
23382	}
23383	ret := &GoogleLongrunningOperation{
23384		ServerResponse: googleapi.ServerResponse{
23385			Header:         res.Header,
23386			HTTPStatusCode: res.StatusCode,
23387		},
23388	}
23389	target := &ret
23390	if err := gensupport.DecodeResponse(target, res); err != nil {
23391		return nil, err
23392	}
23393	return ret, nil
23394	// {
23395	//   "description": "Deletes an environment group.",
23396	//   "flatPath": "v1/organizations/{organizationsId}/envgroups/{envgroupsId}",
23397	//   "httpMethod": "DELETE",
23398	//   "id": "apigee.organizations.envgroups.delete",
23399	//   "parameterOrder": [
23400	//     "name"
23401	//   ],
23402	//   "parameters": {
23403	//     "name": {
23404	//       "description": "Required. Name of the environment group in the following format: `organizations/{org}/envgroups/{envgroup}`.",
23405	//       "location": "path",
23406	//       "pattern": "^organizations/[^/]+/envgroups/[^/]+$",
23407	//       "required": true,
23408	//       "type": "string"
23409	//     }
23410	//   },
23411	//   "path": "v1/{+name}",
23412	//   "response": {
23413	//     "$ref": "GoogleLongrunningOperation"
23414	//   },
23415	//   "scopes": [
23416	//     "https://www.googleapis.com/auth/cloud-platform"
23417	//   ]
23418	// }
23419
23420}
23421
23422// method id "apigee.organizations.envgroups.get":
23423
23424type OrganizationsEnvgroupsGetCall struct {
23425	s            *Service
23426	name         string
23427	urlParams_   gensupport.URLParams
23428	ifNoneMatch_ string
23429	ctx_         context.Context
23430	header_      http.Header
23431}
23432
23433// Get: Gets an environment group.
23434//
23435// - name: Name of the environment group in the following format:
23436//   `organizations/{org}/envgroups/{envgroup}`.
23437func (r *OrganizationsEnvgroupsService) Get(name string) *OrganizationsEnvgroupsGetCall {
23438	c := &OrganizationsEnvgroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23439	c.name = name
23440	return c
23441}
23442
23443// Fields allows partial responses to be retrieved. See
23444// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
23445// for more information.
23446func (c *OrganizationsEnvgroupsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsGetCall {
23447	c.urlParams_.Set("fields", googleapi.CombineFields(s))
23448	return c
23449}
23450
23451// IfNoneMatch sets the optional parameter which makes the operation
23452// fail if the object's ETag matches the given value. This is useful for
23453// getting updates only after the object has changed since the last
23454// request. Use googleapi.IsNotModified to check whether the response
23455// error from Do is the result of In-None-Match.
23456func (c *OrganizationsEnvgroupsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvgroupsGetCall {
23457	c.ifNoneMatch_ = entityTag
23458	return c
23459}
23460
23461// Context sets the context to be used in this call's Do method. Any
23462// pending HTTP request will be aborted if the provided context is
23463// canceled.
23464func (c *OrganizationsEnvgroupsGetCall) Context(ctx context.Context) *OrganizationsEnvgroupsGetCall {
23465	c.ctx_ = ctx
23466	return c
23467}
23468
23469// Header returns an http.Header that can be modified by the caller to
23470// add HTTP headers to the request.
23471func (c *OrganizationsEnvgroupsGetCall) Header() http.Header {
23472	if c.header_ == nil {
23473		c.header_ = make(http.Header)
23474	}
23475	return c.header_
23476}
23477
23478func (c *OrganizationsEnvgroupsGetCall) doRequest(alt string) (*http.Response, error) {
23479	reqHeaders := make(http.Header)
23480	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
23481	for k, v := range c.header_ {
23482		reqHeaders[k] = v
23483	}
23484	reqHeaders.Set("User-Agent", c.s.userAgent())
23485	if c.ifNoneMatch_ != "" {
23486		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23487	}
23488	var body io.Reader = nil
23489	c.urlParams_.Set("alt", alt)
23490	c.urlParams_.Set("prettyPrint", "false")
23491	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
23492	urls += "?" + c.urlParams_.Encode()
23493	req, err := http.NewRequest("GET", urls, body)
23494	if err != nil {
23495		return nil, err
23496	}
23497	req.Header = reqHeaders
23498	googleapi.Expand(req.URL, map[string]string{
23499		"name": c.name,
23500	})
23501	return gensupport.SendRequest(c.ctx_, c.s.client, req)
23502}
23503
23504// Do executes the "apigee.organizations.envgroups.get" call.
23505// Exactly one of *GoogleCloudApigeeV1EnvironmentGroup or error will be
23506// non-nil. Any non-2xx status code is an error. Response headers are in
23507// either *GoogleCloudApigeeV1EnvironmentGroup.ServerResponse.Header or
23508// (if a response was returned at all) in
23509// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
23510// whether the returned error was because http.StatusNotModified was
23511// returned.
23512func (c *OrganizationsEnvgroupsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1EnvironmentGroup, error) {
23513	gensupport.SetOptions(c.urlParams_, opts...)
23514	res, err := c.doRequest("json")
23515	if res != nil && res.StatusCode == http.StatusNotModified {
23516		if res.Body != nil {
23517			res.Body.Close()
23518		}
23519		return nil, &googleapi.Error{
23520			Code:   res.StatusCode,
23521			Header: res.Header,
23522		}
23523	}
23524	if err != nil {
23525		return nil, err
23526	}
23527	defer googleapi.CloseBody(res)
23528	if err := googleapi.CheckResponse(res); err != nil {
23529		return nil, err
23530	}
23531	ret := &GoogleCloudApigeeV1EnvironmentGroup{
23532		ServerResponse: googleapi.ServerResponse{
23533			Header:         res.Header,
23534			HTTPStatusCode: res.StatusCode,
23535		},
23536	}
23537	target := &ret
23538	if err := gensupport.DecodeResponse(target, res); err != nil {
23539		return nil, err
23540	}
23541	return ret, nil
23542	// {
23543	//   "description": "Gets an environment group.",
23544	//   "flatPath": "v1/organizations/{organizationsId}/envgroups/{envgroupsId}",
23545	//   "httpMethod": "GET",
23546	//   "id": "apigee.organizations.envgroups.get",
23547	//   "parameterOrder": [
23548	//     "name"
23549	//   ],
23550	//   "parameters": {
23551	//     "name": {
23552	//       "description": "Required. Name of the environment group in the following format: `organizations/{org}/envgroups/{envgroup}`.",
23553	//       "location": "path",
23554	//       "pattern": "^organizations/[^/]+/envgroups/[^/]+$",
23555	//       "required": true,
23556	//       "type": "string"
23557	//     }
23558	//   },
23559	//   "path": "v1/{+name}",
23560	//   "response": {
23561	//     "$ref": "GoogleCloudApigeeV1EnvironmentGroup"
23562	//   },
23563	//   "scopes": [
23564	//     "https://www.googleapis.com/auth/cloud-platform"
23565	//   ]
23566	// }
23567
23568}
23569
23570// method id "apigee.organizations.envgroups.list":
23571
23572type OrganizationsEnvgroupsListCall struct {
23573	s            *Service
23574	parent       string
23575	urlParams_   gensupport.URLParams
23576	ifNoneMatch_ string
23577	ctx_         context.Context
23578	header_      http.Header
23579}
23580
23581// List: Lists all environment groups.
23582//
23583// - parent: Name of the organization for which to list environment
23584//   groups in the following format: `organizations/{org}`.
23585func (r *OrganizationsEnvgroupsService) List(parent string) *OrganizationsEnvgroupsListCall {
23586	c := &OrganizationsEnvgroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23587	c.parent = parent
23588	return c
23589}
23590
23591// PageSize sets the optional parameter "pageSize": Maximum number of
23592// environment groups to return. The page size defaults to 25.
23593func (c *OrganizationsEnvgroupsListCall) PageSize(pageSize int64) *OrganizationsEnvgroupsListCall {
23594	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
23595	return c
23596}
23597
23598// PageToken sets the optional parameter "pageToken": Page token,
23599// returned from a previous ListEnvironmentGroups call, that you can use
23600// to retrieve the next page.
23601func (c *OrganizationsEnvgroupsListCall) PageToken(pageToken string) *OrganizationsEnvgroupsListCall {
23602	c.urlParams_.Set("pageToken", pageToken)
23603	return c
23604}
23605
23606// Fields allows partial responses to be retrieved. See
23607// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
23608// for more information.
23609func (c *OrganizationsEnvgroupsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsListCall {
23610	c.urlParams_.Set("fields", googleapi.CombineFields(s))
23611	return c
23612}
23613
23614// IfNoneMatch sets the optional parameter which makes the operation
23615// fail if the object's ETag matches the given value. This is useful for
23616// getting updates only after the object has changed since the last
23617// request. Use googleapi.IsNotModified to check whether the response
23618// error from Do is the result of In-None-Match.
23619func (c *OrganizationsEnvgroupsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvgroupsListCall {
23620	c.ifNoneMatch_ = entityTag
23621	return c
23622}
23623
23624// Context sets the context to be used in this call's Do method. Any
23625// pending HTTP request will be aborted if the provided context is
23626// canceled.
23627func (c *OrganizationsEnvgroupsListCall) Context(ctx context.Context) *OrganizationsEnvgroupsListCall {
23628	c.ctx_ = ctx
23629	return c
23630}
23631
23632// Header returns an http.Header that can be modified by the caller to
23633// add HTTP headers to the request.
23634func (c *OrganizationsEnvgroupsListCall) Header() http.Header {
23635	if c.header_ == nil {
23636		c.header_ = make(http.Header)
23637	}
23638	return c.header_
23639}
23640
23641func (c *OrganizationsEnvgroupsListCall) doRequest(alt string) (*http.Response, error) {
23642	reqHeaders := make(http.Header)
23643	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
23644	for k, v := range c.header_ {
23645		reqHeaders[k] = v
23646	}
23647	reqHeaders.Set("User-Agent", c.s.userAgent())
23648	if c.ifNoneMatch_ != "" {
23649		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23650	}
23651	var body io.Reader = nil
23652	c.urlParams_.Set("alt", alt)
23653	c.urlParams_.Set("prettyPrint", "false")
23654	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/envgroups")
23655	urls += "?" + c.urlParams_.Encode()
23656	req, err := http.NewRequest("GET", urls, body)
23657	if err != nil {
23658		return nil, err
23659	}
23660	req.Header = reqHeaders
23661	googleapi.Expand(req.URL, map[string]string{
23662		"parent": c.parent,
23663	})
23664	return gensupport.SendRequest(c.ctx_, c.s.client, req)
23665}
23666
23667// Do executes the "apigee.organizations.envgroups.list" call.
23668// Exactly one of *GoogleCloudApigeeV1ListEnvironmentGroupsResponse or
23669// error will be non-nil. Any non-2xx status code is an error. Response
23670// headers are in either
23671// *GoogleCloudApigeeV1ListEnvironmentGroupsResponse.ServerResponse.Heade
23672// r or (if a response was returned at all) in
23673// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
23674// whether the returned error was because http.StatusNotModified was
23675// returned.
23676func (c *OrganizationsEnvgroupsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListEnvironmentGroupsResponse, error) {
23677	gensupport.SetOptions(c.urlParams_, opts...)
23678	res, err := c.doRequest("json")
23679	if res != nil && res.StatusCode == http.StatusNotModified {
23680		if res.Body != nil {
23681			res.Body.Close()
23682		}
23683		return nil, &googleapi.Error{
23684			Code:   res.StatusCode,
23685			Header: res.Header,
23686		}
23687	}
23688	if err != nil {
23689		return nil, err
23690	}
23691	defer googleapi.CloseBody(res)
23692	if err := googleapi.CheckResponse(res); err != nil {
23693		return nil, err
23694	}
23695	ret := &GoogleCloudApigeeV1ListEnvironmentGroupsResponse{
23696		ServerResponse: googleapi.ServerResponse{
23697			Header:         res.Header,
23698			HTTPStatusCode: res.StatusCode,
23699		},
23700	}
23701	target := &ret
23702	if err := gensupport.DecodeResponse(target, res); err != nil {
23703		return nil, err
23704	}
23705	return ret, nil
23706	// {
23707	//   "description": "Lists all environment groups.",
23708	//   "flatPath": "v1/organizations/{organizationsId}/envgroups",
23709	//   "httpMethod": "GET",
23710	//   "id": "apigee.organizations.envgroups.list",
23711	//   "parameterOrder": [
23712	//     "parent"
23713	//   ],
23714	//   "parameters": {
23715	//     "pageSize": {
23716	//       "description": "Maximum number of environment groups to return. The page size defaults to 25.",
23717	//       "format": "int32",
23718	//       "location": "query",
23719	//       "type": "integer"
23720	//     },
23721	//     "pageToken": {
23722	//       "description": "Page token, returned from a previous ListEnvironmentGroups call, that you can use to retrieve the next page.",
23723	//       "location": "query",
23724	//       "type": "string"
23725	//     },
23726	//     "parent": {
23727	//       "description": "Required. Name of the organization for which to list environment groups in the following format: `organizations/{org}`.",
23728	//       "location": "path",
23729	//       "pattern": "^organizations/[^/]+$",
23730	//       "required": true,
23731	//       "type": "string"
23732	//     }
23733	//   },
23734	//   "path": "v1/{+parent}/envgroups",
23735	//   "response": {
23736	//     "$ref": "GoogleCloudApigeeV1ListEnvironmentGroupsResponse"
23737	//   },
23738	//   "scopes": [
23739	//     "https://www.googleapis.com/auth/cloud-platform"
23740	//   ]
23741	// }
23742
23743}
23744
23745// Pages invokes f for each page of results.
23746// A non-nil error returned from f will halt the iteration.
23747// The provided context supersedes any context provided to the Context method.
23748func (c *OrganizationsEnvgroupsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListEnvironmentGroupsResponse) error) error {
23749	c.ctx_ = ctx
23750	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
23751	for {
23752		x, err := c.Do()
23753		if err != nil {
23754			return err
23755		}
23756		if err := f(x); err != nil {
23757			return err
23758		}
23759		if x.NextPageToken == "" {
23760			return nil
23761		}
23762		c.PageToken(x.NextPageToken)
23763	}
23764}
23765
23766// method id "apigee.organizations.envgroups.patch":
23767
23768type OrganizationsEnvgroupsPatchCall struct {
23769	s                                   *Service
23770	name                                string
23771	googlecloudapigeev1environmentgroup *GoogleCloudApigeeV1EnvironmentGroup
23772	urlParams_                          gensupport.URLParams
23773	ctx_                                context.Context
23774	header_                             http.Header
23775}
23776
23777// Patch: Updates an environment group.
23778//
23779// - name: Name of the environment group to update in the format:
23780//   `organizations/{org}/envgroups/{envgroup}.
23781func (r *OrganizationsEnvgroupsService) Patch(name string, googlecloudapigeev1environmentgroup *GoogleCloudApigeeV1EnvironmentGroup) *OrganizationsEnvgroupsPatchCall {
23782	c := &OrganizationsEnvgroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23783	c.name = name
23784	c.googlecloudapigeev1environmentgroup = googlecloudapigeev1environmentgroup
23785	return c
23786}
23787
23788// UpdateMask sets the optional parameter "updateMask": List of fields
23789// to be updated.
23790func (c *OrganizationsEnvgroupsPatchCall) UpdateMask(updateMask string) *OrganizationsEnvgroupsPatchCall {
23791	c.urlParams_.Set("updateMask", updateMask)
23792	return c
23793}
23794
23795// Fields allows partial responses to be retrieved. See
23796// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
23797// for more information.
23798func (c *OrganizationsEnvgroupsPatchCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsPatchCall {
23799	c.urlParams_.Set("fields", googleapi.CombineFields(s))
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 *OrganizationsEnvgroupsPatchCall) Context(ctx context.Context) *OrganizationsEnvgroupsPatchCall {
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 *OrganizationsEnvgroupsPatchCall) Header() http.Header {
23814	if c.header_ == nil {
23815		c.header_ = make(http.Header)
23816	}
23817	return c.header_
23818}
23819
23820func (c *OrganizationsEnvgroupsPatchCall) doRequest(alt string) (*http.Response, error) {
23821	reqHeaders := make(http.Header)
23822	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
23823	for k, v := range c.header_ {
23824		reqHeaders[k] = v
23825	}
23826	reqHeaders.Set("User-Agent", c.s.userAgent())
23827	var body io.Reader = nil
23828	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1environmentgroup)
23829	if err != nil {
23830		return nil, err
23831	}
23832	reqHeaders.Set("Content-Type", "application/json")
23833	c.urlParams_.Set("alt", alt)
23834	c.urlParams_.Set("prettyPrint", "false")
23835	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
23836	urls += "?" + c.urlParams_.Encode()
23837	req, err := http.NewRequest("PATCH", urls, body)
23838	if err != nil {
23839		return nil, err
23840	}
23841	req.Header = reqHeaders
23842	googleapi.Expand(req.URL, map[string]string{
23843		"name": c.name,
23844	})
23845	return gensupport.SendRequest(c.ctx_, c.s.client, req)
23846}
23847
23848// Do executes the "apigee.organizations.envgroups.patch" call.
23849// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
23850// Any non-2xx status code is an error. Response headers are in either
23851// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
23852// was returned at all) in error.(*googleapi.Error).Header. Use
23853// googleapi.IsNotModified to check whether the returned error was
23854// because http.StatusNotModified was returned.
23855func (c *OrganizationsEnvgroupsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, 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 := &GoogleLongrunningOperation{
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": "Updates an environment group.",
23887	//   "flatPath": "v1/organizations/{organizationsId}/envgroups/{envgroupsId}",
23888	//   "httpMethod": "PATCH",
23889	//   "id": "apigee.organizations.envgroups.patch",
23890	//   "parameterOrder": [
23891	//     "name"
23892	//   ],
23893	//   "parameters": {
23894	//     "name": {
23895	//       "description": "Required. Name of the environment group to update in the format: `organizations/{org}/envgroups/{envgroup}.",
23896	//       "location": "path",
23897	//       "pattern": "^organizations/[^/]+/envgroups/[^/]+$",
23898	//       "required": true,
23899	//       "type": "string"
23900	//     },
23901	//     "updateMask": {
23902	//       "description": "List of fields to be updated.",
23903	//       "format": "google-fieldmask",
23904	//       "location": "query",
23905	//       "type": "string"
23906	//     }
23907	//   },
23908	//   "path": "v1/{+name}",
23909	//   "request": {
23910	//     "$ref": "GoogleCloudApigeeV1EnvironmentGroup"
23911	//   },
23912	//   "response": {
23913	//     "$ref": "GoogleLongrunningOperation"
23914	//   },
23915	//   "scopes": [
23916	//     "https://www.googleapis.com/auth/cloud-platform"
23917	//   ]
23918	// }
23919
23920}
23921
23922// method id "apigee.organizations.envgroups.attachments.create":
23923
23924type OrganizationsEnvgroupsAttachmentsCreateCall struct {
23925	s                                             *Service
23926	parent                                        string
23927	googlecloudapigeev1environmentgroupattachment *GoogleCloudApigeeV1EnvironmentGroupAttachment
23928	urlParams_                                    gensupport.URLParams
23929	ctx_                                          context.Context
23930	header_                                       http.Header
23931}
23932
23933// Create: Creates a new attachment of an environment to an environment
23934// group.
23935//
23936// - parent: EnvironmentGroup under which to create the attachment in
23937//   the following format: `organizations/{org}/envgroups/{envgroup}`.
23938func (r *OrganizationsEnvgroupsAttachmentsService) Create(parent string, googlecloudapigeev1environmentgroupattachment *GoogleCloudApigeeV1EnvironmentGroupAttachment) *OrganizationsEnvgroupsAttachmentsCreateCall {
23939	c := &OrganizationsEnvgroupsAttachmentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23940	c.parent = parent
23941	c.googlecloudapigeev1environmentgroupattachment = googlecloudapigeev1environmentgroupattachment
23942	return c
23943}
23944
23945// Fields allows partial responses to be retrieved. See
23946// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
23947// for more information.
23948func (c *OrganizationsEnvgroupsAttachmentsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsAttachmentsCreateCall {
23949	c.urlParams_.Set("fields", googleapi.CombineFields(s))
23950	return c
23951}
23952
23953// Context sets the context to be used in this call's Do method. Any
23954// pending HTTP request will be aborted if the provided context is
23955// canceled.
23956func (c *OrganizationsEnvgroupsAttachmentsCreateCall) Context(ctx context.Context) *OrganizationsEnvgroupsAttachmentsCreateCall {
23957	c.ctx_ = ctx
23958	return c
23959}
23960
23961// Header returns an http.Header that can be modified by the caller to
23962// add HTTP headers to the request.
23963func (c *OrganizationsEnvgroupsAttachmentsCreateCall) Header() http.Header {
23964	if c.header_ == nil {
23965		c.header_ = make(http.Header)
23966	}
23967	return c.header_
23968}
23969
23970func (c *OrganizationsEnvgroupsAttachmentsCreateCall) doRequest(alt string) (*http.Response, error) {
23971	reqHeaders := make(http.Header)
23972	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
23973	for k, v := range c.header_ {
23974		reqHeaders[k] = v
23975	}
23976	reqHeaders.Set("User-Agent", c.s.userAgent())
23977	var body io.Reader = nil
23978	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1environmentgroupattachment)
23979	if err != nil {
23980		return nil, err
23981	}
23982	reqHeaders.Set("Content-Type", "application/json")
23983	c.urlParams_.Set("alt", alt)
23984	c.urlParams_.Set("prettyPrint", "false")
23985	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attachments")
23986	urls += "?" + c.urlParams_.Encode()
23987	req, err := http.NewRequest("POST", urls, body)
23988	if err != nil {
23989		return nil, err
23990	}
23991	req.Header = reqHeaders
23992	googleapi.Expand(req.URL, map[string]string{
23993		"parent": c.parent,
23994	})
23995	return gensupport.SendRequest(c.ctx_, c.s.client, req)
23996}
23997
23998// Do executes the "apigee.organizations.envgroups.attachments.create" call.
23999// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
24000// Any non-2xx status code is an error. Response headers are in either
24001// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
24002// was returned at all) in error.(*googleapi.Error).Header. Use
24003// googleapi.IsNotModified to check whether the returned error was
24004// because http.StatusNotModified was returned.
24005func (c *OrganizationsEnvgroupsAttachmentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
24006	gensupport.SetOptions(c.urlParams_, opts...)
24007	res, err := c.doRequest("json")
24008	if res != nil && res.StatusCode == http.StatusNotModified {
24009		if res.Body != nil {
24010			res.Body.Close()
24011		}
24012		return nil, &googleapi.Error{
24013			Code:   res.StatusCode,
24014			Header: res.Header,
24015		}
24016	}
24017	if err != nil {
24018		return nil, err
24019	}
24020	defer googleapi.CloseBody(res)
24021	if err := googleapi.CheckResponse(res); err != nil {
24022		return nil, err
24023	}
24024	ret := &GoogleLongrunningOperation{
24025		ServerResponse: googleapi.ServerResponse{
24026			Header:         res.Header,
24027			HTTPStatusCode: res.StatusCode,
24028		},
24029	}
24030	target := &ret
24031	if err := gensupport.DecodeResponse(target, res); err != nil {
24032		return nil, err
24033	}
24034	return ret, nil
24035	// {
24036	//   "description": "Creates a new attachment of an environment to an environment group.",
24037	//   "flatPath": "v1/organizations/{organizationsId}/envgroups/{envgroupsId}/attachments",
24038	//   "httpMethod": "POST",
24039	//   "id": "apigee.organizations.envgroups.attachments.create",
24040	//   "parameterOrder": [
24041	//     "parent"
24042	//   ],
24043	//   "parameters": {
24044	//     "parent": {
24045	//       "description": "Required. EnvironmentGroup under which to create the attachment in the following format: `organizations/{org}/envgroups/{envgroup}`.",
24046	//       "location": "path",
24047	//       "pattern": "^organizations/[^/]+/envgroups/[^/]+$",
24048	//       "required": true,
24049	//       "type": "string"
24050	//     }
24051	//   },
24052	//   "path": "v1/{+parent}/attachments",
24053	//   "request": {
24054	//     "$ref": "GoogleCloudApigeeV1EnvironmentGroupAttachment"
24055	//   },
24056	//   "response": {
24057	//     "$ref": "GoogleLongrunningOperation"
24058	//   },
24059	//   "scopes": [
24060	//     "https://www.googleapis.com/auth/cloud-platform"
24061	//   ]
24062	// }
24063
24064}
24065
24066// method id "apigee.organizations.envgroups.attachments.delete":
24067
24068type OrganizationsEnvgroupsAttachmentsDeleteCall struct {
24069	s          *Service
24070	name       string
24071	urlParams_ gensupport.URLParams
24072	ctx_       context.Context
24073	header_    http.Header
24074}
24075
24076// Delete: Deletes an environment group attachment.
24077//
24078// - name: Name of the environment group attachment to delete in the
24079//   following format:
24080//   `organizations/{org}/envgroups/{envgroup}/attachments/{attachment}`.
24081func (r *OrganizationsEnvgroupsAttachmentsService) Delete(name string) *OrganizationsEnvgroupsAttachmentsDeleteCall {
24082	c := &OrganizationsEnvgroupsAttachmentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24083	c.name = name
24084	return c
24085}
24086
24087// Fields allows partial responses to be retrieved. See
24088// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
24089// for more information.
24090func (c *OrganizationsEnvgroupsAttachmentsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsAttachmentsDeleteCall {
24091	c.urlParams_.Set("fields", googleapi.CombineFields(s))
24092	return c
24093}
24094
24095// Context sets the context to be used in this call's Do method. Any
24096// pending HTTP request will be aborted if the provided context is
24097// canceled.
24098func (c *OrganizationsEnvgroupsAttachmentsDeleteCall) Context(ctx context.Context) *OrganizationsEnvgroupsAttachmentsDeleteCall {
24099	c.ctx_ = ctx
24100	return c
24101}
24102
24103// Header returns an http.Header that can be modified by the caller to
24104// add HTTP headers to the request.
24105func (c *OrganizationsEnvgroupsAttachmentsDeleteCall) Header() http.Header {
24106	if c.header_ == nil {
24107		c.header_ = make(http.Header)
24108	}
24109	return c.header_
24110}
24111
24112func (c *OrganizationsEnvgroupsAttachmentsDeleteCall) doRequest(alt string) (*http.Response, error) {
24113	reqHeaders := make(http.Header)
24114	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
24115	for k, v := range c.header_ {
24116		reqHeaders[k] = v
24117	}
24118	reqHeaders.Set("User-Agent", c.s.userAgent())
24119	var body io.Reader = nil
24120	c.urlParams_.Set("alt", alt)
24121	c.urlParams_.Set("prettyPrint", "false")
24122	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
24123	urls += "?" + c.urlParams_.Encode()
24124	req, err := http.NewRequest("DELETE", urls, body)
24125	if err != nil {
24126		return nil, err
24127	}
24128	req.Header = reqHeaders
24129	googleapi.Expand(req.URL, map[string]string{
24130		"name": c.name,
24131	})
24132	return gensupport.SendRequest(c.ctx_, c.s.client, req)
24133}
24134
24135// Do executes the "apigee.organizations.envgroups.attachments.delete" call.
24136// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
24137// Any non-2xx status code is an error. Response headers are in either
24138// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
24139// was returned at all) in error.(*googleapi.Error).Header. Use
24140// googleapi.IsNotModified to check whether the returned error was
24141// because http.StatusNotModified was returned.
24142func (c *OrganizationsEnvgroupsAttachmentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
24143	gensupport.SetOptions(c.urlParams_, opts...)
24144	res, err := c.doRequest("json")
24145	if res != nil && res.StatusCode == http.StatusNotModified {
24146		if res.Body != nil {
24147			res.Body.Close()
24148		}
24149		return nil, &googleapi.Error{
24150			Code:   res.StatusCode,
24151			Header: res.Header,
24152		}
24153	}
24154	if err != nil {
24155		return nil, err
24156	}
24157	defer googleapi.CloseBody(res)
24158	if err := googleapi.CheckResponse(res); err != nil {
24159		return nil, err
24160	}
24161	ret := &GoogleLongrunningOperation{
24162		ServerResponse: googleapi.ServerResponse{
24163			Header:         res.Header,
24164			HTTPStatusCode: res.StatusCode,
24165		},
24166	}
24167	target := &ret
24168	if err := gensupport.DecodeResponse(target, res); err != nil {
24169		return nil, err
24170	}
24171	return ret, nil
24172	// {
24173	//   "description": "Deletes an environment group attachment.",
24174	//   "flatPath": "v1/organizations/{organizationsId}/envgroups/{envgroupsId}/attachments/{attachmentsId}",
24175	//   "httpMethod": "DELETE",
24176	//   "id": "apigee.organizations.envgroups.attachments.delete",
24177	//   "parameterOrder": [
24178	//     "name"
24179	//   ],
24180	//   "parameters": {
24181	//     "name": {
24182	//       "description": "Required. Name of the environment group attachment to delete in the following format: `organizations/{org}/envgroups/{envgroup}/attachments/{attachment}`.",
24183	//       "location": "path",
24184	//       "pattern": "^organizations/[^/]+/envgroups/[^/]+/attachments/[^/]+$",
24185	//       "required": true,
24186	//       "type": "string"
24187	//     }
24188	//   },
24189	//   "path": "v1/{+name}",
24190	//   "response": {
24191	//     "$ref": "GoogleLongrunningOperation"
24192	//   },
24193	//   "scopes": [
24194	//     "https://www.googleapis.com/auth/cloud-platform"
24195	//   ]
24196	// }
24197
24198}
24199
24200// method id "apigee.organizations.envgroups.attachments.get":
24201
24202type OrganizationsEnvgroupsAttachmentsGetCall struct {
24203	s            *Service
24204	name         string
24205	urlParams_   gensupport.URLParams
24206	ifNoneMatch_ string
24207	ctx_         context.Context
24208	header_      http.Header
24209}
24210
24211// Get: Gets an environment group attachment.
24212//
24213// - name: Name of the environment group attachment in the following
24214//   format:
24215//   `organizations/{org}/envgroups/{envgroup}/attachments/{attachment}`.
24216func (r *OrganizationsEnvgroupsAttachmentsService) Get(name string) *OrganizationsEnvgroupsAttachmentsGetCall {
24217	c := &OrganizationsEnvgroupsAttachmentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24218	c.name = name
24219	return c
24220}
24221
24222// Fields allows partial responses to be retrieved. See
24223// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
24224// for more information.
24225func (c *OrganizationsEnvgroupsAttachmentsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsAttachmentsGetCall {
24226	c.urlParams_.Set("fields", googleapi.CombineFields(s))
24227	return c
24228}
24229
24230// IfNoneMatch sets the optional parameter which makes the operation
24231// fail if the object's ETag matches the given value. This is useful for
24232// getting updates only after the object has changed since the last
24233// request. Use googleapi.IsNotModified to check whether the response
24234// error from Do is the result of In-None-Match.
24235func (c *OrganizationsEnvgroupsAttachmentsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvgroupsAttachmentsGetCall {
24236	c.ifNoneMatch_ = entityTag
24237	return c
24238}
24239
24240// Context sets the context to be used in this call's Do method. Any
24241// pending HTTP request will be aborted if the provided context is
24242// canceled.
24243func (c *OrganizationsEnvgroupsAttachmentsGetCall) Context(ctx context.Context) *OrganizationsEnvgroupsAttachmentsGetCall {
24244	c.ctx_ = ctx
24245	return c
24246}
24247
24248// Header returns an http.Header that can be modified by the caller to
24249// add HTTP headers to the request.
24250func (c *OrganizationsEnvgroupsAttachmentsGetCall) Header() http.Header {
24251	if c.header_ == nil {
24252		c.header_ = make(http.Header)
24253	}
24254	return c.header_
24255}
24256
24257func (c *OrganizationsEnvgroupsAttachmentsGetCall) doRequest(alt string) (*http.Response, error) {
24258	reqHeaders := make(http.Header)
24259	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
24260	for k, v := range c.header_ {
24261		reqHeaders[k] = v
24262	}
24263	reqHeaders.Set("User-Agent", c.s.userAgent())
24264	if c.ifNoneMatch_ != "" {
24265		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24266	}
24267	var body io.Reader = nil
24268	c.urlParams_.Set("alt", alt)
24269	c.urlParams_.Set("prettyPrint", "false")
24270	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
24271	urls += "?" + c.urlParams_.Encode()
24272	req, err := http.NewRequest("GET", urls, body)
24273	if err != nil {
24274		return nil, err
24275	}
24276	req.Header = reqHeaders
24277	googleapi.Expand(req.URL, map[string]string{
24278		"name": c.name,
24279	})
24280	return gensupport.SendRequest(c.ctx_, c.s.client, req)
24281}
24282
24283// Do executes the "apigee.organizations.envgroups.attachments.get" call.
24284// Exactly one of *GoogleCloudApigeeV1EnvironmentGroupAttachment or
24285// error will be non-nil. Any non-2xx status code is an error. Response
24286// headers are in either
24287// *GoogleCloudApigeeV1EnvironmentGroupAttachment.ServerResponse.Header
24288// or (if a response was returned at all) in
24289// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
24290// whether the returned error was because http.StatusNotModified was
24291// returned.
24292func (c *OrganizationsEnvgroupsAttachmentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1EnvironmentGroupAttachment, error) {
24293	gensupport.SetOptions(c.urlParams_, opts...)
24294	res, err := c.doRequest("json")
24295	if res != nil && res.StatusCode == http.StatusNotModified {
24296		if res.Body != nil {
24297			res.Body.Close()
24298		}
24299		return nil, &googleapi.Error{
24300			Code:   res.StatusCode,
24301			Header: res.Header,
24302		}
24303	}
24304	if err != nil {
24305		return nil, err
24306	}
24307	defer googleapi.CloseBody(res)
24308	if err := googleapi.CheckResponse(res); err != nil {
24309		return nil, err
24310	}
24311	ret := &GoogleCloudApigeeV1EnvironmentGroupAttachment{
24312		ServerResponse: googleapi.ServerResponse{
24313			Header:         res.Header,
24314			HTTPStatusCode: res.StatusCode,
24315		},
24316	}
24317	target := &ret
24318	if err := gensupport.DecodeResponse(target, res); err != nil {
24319		return nil, err
24320	}
24321	return ret, nil
24322	// {
24323	//   "description": "Gets an environment group attachment.",
24324	//   "flatPath": "v1/organizations/{organizationsId}/envgroups/{envgroupsId}/attachments/{attachmentsId}",
24325	//   "httpMethod": "GET",
24326	//   "id": "apigee.organizations.envgroups.attachments.get",
24327	//   "parameterOrder": [
24328	//     "name"
24329	//   ],
24330	//   "parameters": {
24331	//     "name": {
24332	//       "description": "Required. Name of the environment group attachment in the following format: `organizations/{org}/envgroups/{envgroup}/attachments/{attachment}`",
24333	//       "location": "path",
24334	//       "pattern": "^organizations/[^/]+/envgroups/[^/]+/attachments/[^/]+$",
24335	//       "required": true,
24336	//       "type": "string"
24337	//     }
24338	//   },
24339	//   "path": "v1/{+name}",
24340	//   "response": {
24341	//     "$ref": "GoogleCloudApigeeV1EnvironmentGroupAttachment"
24342	//   },
24343	//   "scopes": [
24344	//     "https://www.googleapis.com/auth/cloud-platform"
24345	//   ]
24346	// }
24347
24348}
24349
24350// method id "apigee.organizations.envgroups.attachments.list":
24351
24352type OrganizationsEnvgroupsAttachmentsListCall struct {
24353	s            *Service
24354	parent       string
24355	urlParams_   gensupport.URLParams
24356	ifNoneMatch_ string
24357	ctx_         context.Context
24358	header_      http.Header
24359}
24360
24361// List: Lists all attachments of an environment group.
24362//
24363// - parent: Name of the environment group in the following format:
24364//   `organizations/{org}/envgroups/{envgroup}`.
24365func (r *OrganizationsEnvgroupsAttachmentsService) List(parent string) *OrganizationsEnvgroupsAttachmentsListCall {
24366	c := &OrganizationsEnvgroupsAttachmentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24367	c.parent = parent
24368	return c
24369}
24370
24371// PageSize sets the optional parameter "pageSize": Maximum number of
24372// environment group attachments to return. The page size defaults to
24373// 25.
24374func (c *OrganizationsEnvgroupsAttachmentsListCall) PageSize(pageSize int64) *OrganizationsEnvgroupsAttachmentsListCall {
24375	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
24376	return c
24377}
24378
24379// PageToken sets the optional parameter "pageToken": Page token,
24380// returned by a previous ListEnvironmentGroupAttachments call, that you
24381// can use to retrieve the next page.
24382func (c *OrganizationsEnvgroupsAttachmentsListCall) PageToken(pageToken string) *OrganizationsEnvgroupsAttachmentsListCall {
24383	c.urlParams_.Set("pageToken", pageToken)
24384	return c
24385}
24386
24387// Fields allows partial responses to be retrieved. See
24388// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
24389// for more information.
24390func (c *OrganizationsEnvgroupsAttachmentsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsAttachmentsListCall {
24391	c.urlParams_.Set("fields", googleapi.CombineFields(s))
24392	return c
24393}
24394
24395// IfNoneMatch sets the optional parameter which makes the operation
24396// fail if the object's ETag matches the given value. This is useful for
24397// getting updates only after the object has changed since the last
24398// request. Use googleapi.IsNotModified to check whether the response
24399// error from Do is the result of In-None-Match.
24400func (c *OrganizationsEnvgroupsAttachmentsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvgroupsAttachmentsListCall {
24401	c.ifNoneMatch_ = entityTag
24402	return c
24403}
24404
24405// Context sets the context to be used in this call's Do method. Any
24406// pending HTTP request will be aborted if the provided context is
24407// canceled.
24408func (c *OrganizationsEnvgroupsAttachmentsListCall) Context(ctx context.Context) *OrganizationsEnvgroupsAttachmentsListCall {
24409	c.ctx_ = ctx
24410	return c
24411}
24412
24413// Header returns an http.Header that can be modified by the caller to
24414// add HTTP headers to the request.
24415func (c *OrganizationsEnvgroupsAttachmentsListCall) Header() http.Header {
24416	if c.header_ == nil {
24417		c.header_ = make(http.Header)
24418	}
24419	return c.header_
24420}
24421
24422func (c *OrganizationsEnvgroupsAttachmentsListCall) doRequest(alt string) (*http.Response, error) {
24423	reqHeaders := make(http.Header)
24424	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
24425	for k, v := range c.header_ {
24426		reqHeaders[k] = v
24427	}
24428	reqHeaders.Set("User-Agent", c.s.userAgent())
24429	if c.ifNoneMatch_ != "" {
24430		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24431	}
24432	var body io.Reader = nil
24433	c.urlParams_.Set("alt", alt)
24434	c.urlParams_.Set("prettyPrint", "false")
24435	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attachments")
24436	urls += "?" + c.urlParams_.Encode()
24437	req, err := http.NewRequest("GET", urls, body)
24438	if err != nil {
24439		return nil, err
24440	}
24441	req.Header = reqHeaders
24442	googleapi.Expand(req.URL, map[string]string{
24443		"parent": c.parent,
24444	})
24445	return gensupport.SendRequest(c.ctx_, c.s.client, req)
24446}
24447
24448// Do executes the "apigee.organizations.envgroups.attachments.list" call.
24449// Exactly one of
24450// *GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse or error
24451// will be non-nil. Any non-2xx status code is an error. Response
24452// headers are in either
24453// *GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse.ServerResp
24454// onse.Header or (if a response was returned at all) in
24455// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
24456// whether the returned error was because http.StatusNotModified was
24457// returned.
24458func (c *OrganizationsEnvgroupsAttachmentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse, error) {
24459	gensupport.SetOptions(c.urlParams_, opts...)
24460	res, err := c.doRequest("json")
24461	if res != nil && res.StatusCode == http.StatusNotModified {
24462		if res.Body != nil {
24463			res.Body.Close()
24464		}
24465		return nil, &googleapi.Error{
24466			Code:   res.StatusCode,
24467			Header: res.Header,
24468		}
24469	}
24470	if err != nil {
24471		return nil, err
24472	}
24473	defer googleapi.CloseBody(res)
24474	if err := googleapi.CheckResponse(res); err != nil {
24475		return nil, err
24476	}
24477	ret := &GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse{
24478		ServerResponse: googleapi.ServerResponse{
24479			Header:         res.Header,
24480			HTTPStatusCode: res.StatusCode,
24481		},
24482	}
24483	target := &ret
24484	if err := gensupport.DecodeResponse(target, res); err != nil {
24485		return nil, err
24486	}
24487	return ret, nil
24488	// {
24489	//   "description": "Lists all attachments of an environment group.",
24490	//   "flatPath": "v1/organizations/{organizationsId}/envgroups/{envgroupsId}/attachments",
24491	//   "httpMethod": "GET",
24492	//   "id": "apigee.organizations.envgroups.attachments.list",
24493	//   "parameterOrder": [
24494	//     "parent"
24495	//   ],
24496	//   "parameters": {
24497	//     "pageSize": {
24498	//       "description": "Maximum number of environment group attachments to return. The page size defaults to 25.",
24499	//       "format": "int32",
24500	//       "location": "query",
24501	//       "type": "integer"
24502	//     },
24503	//     "pageToken": {
24504	//       "description": "Page token, returned by a previous ListEnvironmentGroupAttachments call, that you can use to retrieve the next page.",
24505	//       "location": "query",
24506	//       "type": "string"
24507	//     },
24508	//     "parent": {
24509	//       "description": "Required. Name of the environment group in the following format: `organizations/{org}/envgroups/{envgroup}`.",
24510	//       "location": "path",
24511	//       "pattern": "^organizations/[^/]+/envgroups/[^/]+$",
24512	//       "required": true,
24513	//       "type": "string"
24514	//     }
24515	//   },
24516	//   "path": "v1/{+parent}/attachments",
24517	//   "response": {
24518	//     "$ref": "GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse"
24519	//   },
24520	//   "scopes": [
24521	//     "https://www.googleapis.com/auth/cloud-platform"
24522	//   ]
24523	// }
24524
24525}
24526
24527// Pages invokes f for each page of results.
24528// A non-nil error returned from f will halt the iteration.
24529// The provided context supersedes any context provided to the Context method.
24530func (c *OrganizationsEnvgroupsAttachmentsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse) error) error {
24531	c.ctx_ = ctx
24532	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
24533	for {
24534		x, err := c.Do()
24535		if err != nil {
24536			return err
24537		}
24538		if err := f(x); err != nil {
24539			return err
24540		}
24541		if x.NextPageToken == "" {
24542			return nil
24543		}
24544		c.PageToken(x.NextPageToken)
24545	}
24546}
24547
24548// method id "apigee.organizations.environments.create":
24549
24550type OrganizationsEnvironmentsCreateCall struct {
24551	s                              *Service
24552	parent                         string
24553	googlecloudapigeev1environment *GoogleCloudApigeeV1Environment
24554	urlParams_                     gensupport.URLParams
24555	ctx_                           context.Context
24556	header_                        http.Header
24557}
24558
24559// Create: Creates an environment in an organization.
24560//
24561// - parent: Name of the organization in which the environment will be
24562//   created. Use the following structure in your request:
24563//   `organizations/{org}`.
24564func (r *OrganizationsEnvironmentsService) Create(parent string, googlecloudapigeev1environment *GoogleCloudApigeeV1Environment) *OrganizationsEnvironmentsCreateCall {
24565	c := &OrganizationsEnvironmentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24566	c.parent = parent
24567	c.googlecloudapigeev1environment = googlecloudapigeev1environment
24568	return c
24569}
24570
24571// Name sets the optional parameter "name": Name of the environment.
24572// Alternatively, the name may be specified in the request body in the
24573// name field.
24574func (c *OrganizationsEnvironmentsCreateCall) Name(name string) *OrganizationsEnvironmentsCreateCall {
24575	c.urlParams_.Set("name", name)
24576	return c
24577}
24578
24579// Fields allows partial responses to be retrieved. See
24580// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
24581// for more information.
24582func (c *OrganizationsEnvironmentsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsCreateCall {
24583	c.urlParams_.Set("fields", googleapi.CombineFields(s))
24584	return c
24585}
24586
24587// Context sets the context to be used in this call's Do method. Any
24588// pending HTTP request will be aborted if the provided context is
24589// canceled.
24590func (c *OrganizationsEnvironmentsCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsCreateCall {
24591	c.ctx_ = ctx
24592	return c
24593}
24594
24595// Header returns an http.Header that can be modified by the caller to
24596// add HTTP headers to the request.
24597func (c *OrganizationsEnvironmentsCreateCall) Header() http.Header {
24598	if c.header_ == nil {
24599		c.header_ = make(http.Header)
24600	}
24601	return c.header_
24602}
24603
24604func (c *OrganizationsEnvironmentsCreateCall) doRequest(alt string) (*http.Response, error) {
24605	reqHeaders := make(http.Header)
24606	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
24607	for k, v := range c.header_ {
24608		reqHeaders[k] = v
24609	}
24610	reqHeaders.Set("User-Agent", c.s.userAgent())
24611	var body io.Reader = nil
24612	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1environment)
24613	if err != nil {
24614		return nil, err
24615	}
24616	reqHeaders.Set("Content-Type", "application/json")
24617	c.urlParams_.Set("alt", alt)
24618	c.urlParams_.Set("prettyPrint", "false")
24619	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/environments")
24620	urls += "?" + c.urlParams_.Encode()
24621	req, err := http.NewRequest("POST", urls, body)
24622	if err != nil {
24623		return nil, err
24624	}
24625	req.Header = reqHeaders
24626	googleapi.Expand(req.URL, map[string]string{
24627		"parent": c.parent,
24628	})
24629	return gensupport.SendRequest(c.ctx_, c.s.client, req)
24630}
24631
24632// Do executes the "apigee.organizations.environments.create" call.
24633// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
24634// Any non-2xx status code is an error. Response headers are in either
24635// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
24636// was returned at all) in error.(*googleapi.Error).Header. Use
24637// googleapi.IsNotModified to check whether the returned error was
24638// because http.StatusNotModified was returned.
24639func (c *OrganizationsEnvironmentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
24640	gensupport.SetOptions(c.urlParams_, opts...)
24641	res, err := c.doRequest("json")
24642	if res != nil && res.StatusCode == http.StatusNotModified {
24643		if res.Body != nil {
24644			res.Body.Close()
24645		}
24646		return nil, &googleapi.Error{
24647			Code:   res.StatusCode,
24648			Header: res.Header,
24649		}
24650	}
24651	if err != nil {
24652		return nil, err
24653	}
24654	defer googleapi.CloseBody(res)
24655	if err := googleapi.CheckResponse(res); err != nil {
24656		return nil, err
24657	}
24658	ret := &GoogleLongrunningOperation{
24659		ServerResponse: googleapi.ServerResponse{
24660			Header:         res.Header,
24661			HTTPStatusCode: res.StatusCode,
24662		},
24663	}
24664	target := &ret
24665	if err := gensupport.DecodeResponse(target, res); err != nil {
24666		return nil, err
24667	}
24668	return ret, nil
24669	// {
24670	//   "description": "Creates an environment in an organization.",
24671	//   "flatPath": "v1/organizations/{organizationsId}/environments",
24672	//   "httpMethod": "POST",
24673	//   "id": "apigee.organizations.environments.create",
24674	//   "parameterOrder": [
24675	//     "parent"
24676	//   ],
24677	//   "parameters": {
24678	//     "name": {
24679	//       "description": "Optional. Name of the environment. Alternatively, the name may be specified in the request body in the name field.",
24680	//       "location": "query",
24681	//       "type": "string"
24682	//     },
24683	//     "parent": {
24684	//       "description": "Required. Name of the organization in which the environment will be created. Use the following structure in your request: `organizations/{org}`",
24685	//       "location": "path",
24686	//       "pattern": "^organizations/[^/]+$",
24687	//       "required": true,
24688	//       "type": "string"
24689	//     }
24690	//   },
24691	//   "path": "v1/{+parent}/environments",
24692	//   "request": {
24693	//     "$ref": "GoogleCloudApigeeV1Environment"
24694	//   },
24695	//   "response": {
24696	//     "$ref": "GoogleLongrunningOperation"
24697	//   },
24698	//   "scopes": [
24699	//     "https://www.googleapis.com/auth/cloud-platform"
24700	//   ]
24701	// }
24702
24703}
24704
24705// method id "apigee.organizations.environments.delete":
24706
24707type OrganizationsEnvironmentsDeleteCall struct {
24708	s          *Service
24709	name       string
24710	urlParams_ gensupport.URLParams
24711	ctx_       context.Context
24712	header_    http.Header
24713}
24714
24715// Delete: Deletes an environment from an organization.
24716//
24717// - name: Name of the environment. Use the following structure in your
24718//   request: `organizations/{org}/environments/{env}`.
24719func (r *OrganizationsEnvironmentsService) Delete(name string) *OrganizationsEnvironmentsDeleteCall {
24720	c := &OrganizationsEnvironmentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24721	c.name = name
24722	return c
24723}
24724
24725// Fields allows partial responses to be retrieved. See
24726// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
24727// for more information.
24728func (c *OrganizationsEnvironmentsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsDeleteCall {
24729	c.urlParams_.Set("fields", googleapi.CombineFields(s))
24730	return c
24731}
24732
24733// Context sets the context to be used in this call's Do method. Any
24734// pending HTTP request will be aborted if the provided context is
24735// canceled.
24736func (c *OrganizationsEnvironmentsDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsDeleteCall {
24737	c.ctx_ = ctx
24738	return c
24739}
24740
24741// Header returns an http.Header that can be modified by the caller to
24742// add HTTP headers to the request.
24743func (c *OrganizationsEnvironmentsDeleteCall) Header() http.Header {
24744	if c.header_ == nil {
24745		c.header_ = make(http.Header)
24746	}
24747	return c.header_
24748}
24749
24750func (c *OrganizationsEnvironmentsDeleteCall) doRequest(alt string) (*http.Response, error) {
24751	reqHeaders := make(http.Header)
24752	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
24753	for k, v := range c.header_ {
24754		reqHeaders[k] = v
24755	}
24756	reqHeaders.Set("User-Agent", c.s.userAgent())
24757	var body io.Reader = nil
24758	c.urlParams_.Set("alt", alt)
24759	c.urlParams_.Set("prettyPrint", "false")
24760	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
24761	urls += "?" + c.urlParams_.Encode()
24762	req, err := http.NewRequest("DELETE", urls, body)
24763	if err != nil {
24764		return nil, err
24765	}
24766	req.Header = reqHeaders
24767	googleapi.Expand(req.URL, map[string]string{
24768		"name": c.name,
24769	})
24770	return gensupport.SendRequest(c.ctx_, c.s.client, req)
24771}
24772
24773// Do executes the "apigee.organizations.environments.delete" call.
24774// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
24775// Any non-2xx status code is an error. Response headers are in either
24776// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
24777// was returned at all) in error.(*googleapi.Error).Header. Use
24778// googleapi.IsNotModified to check whether the returned error was
24779// because http.StatusNotModified was returned.
24780func (c *OrganizationsEnvironmentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
24781	gensupport.SetOptions(c.urlParams_, opts...)
24782	res, err := c.doRequest("json")
24783	if res != nil && res.StatusCode == http.StatusNotModified {
24784		if res.Body != nil {
24785			res.Body.Close()
24786		}
24787		return nil, &googleapi.Error{
24788			Code:   res.StatusCode,
24789			Header: res.Header,
24790		}
24791	}
24792	if err != nil {
24793		return nil, err
24794	}
24795	defer googleapi.CloseBody(res)
24796	if err := googleapi.CheckResponse(res); err != nil {
24797		return nil, err
24798	}
24799	ret := &GoogleLongrunningOperation{
24800		ServerResponse: googleapi.ServerResponse{
24801			Header:         res.Header,
24802			HTTPStatusCode: res.StatusCode,
24803		},
24804	}
24805	target := &ret
24806	if err := gensupport.DecodeResponse(target, res); err != nil {
24807		return nil, err
24808	}
24809	return ret, nil
24810	// {
24811	//   "description": "Deletes an environment from an organization.",
24812	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}",
24813	//   "httpMethod": "DELETE",
24814	//   "id": "apigee.organizations.environments.delete",
24815	//   "parameterOrder": [
24816	//     "name"
24817	//   ],
24818	//   "parameters": {
24819	//     "name": {
24820	//       "description": "Required. Name of the environment. Use the following structure in your request: `organizations/{org}/environments/{env}`",
24821	//       "location": "path",
24822	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
24823	//       "required": true,
24824	//       "type": "string"
24825	//     }
24826	//   },
24827	//   "path": "v1/{+name}",
24828	//   "response": {
24829	//     "$ref": "GoogleLongrunningOperation"
24830	//   },
24831	//   "scopes": [
24832	//     "https://www.googleapis.com/auth/cloud-platform"
24833	//   ]
24834	// }
24835
24836}
24837
24838// method id "apigee.organizations.environments.get":
24839
24840type OrganizationsEnvironmentsGetCall struct {
24841	s            *Service
24842	name         string
24843	urlParams_   gensupport.URLParams
24844	ifNoneMatch_ string
24845	ctx_         context.Context
24846	header_      http.Header
24847}
24848
24849// Get: Gets environment details.
24850//
24851// - name: Name of the environment. Use the following structure in your
24852//   request: `organizations/{org}/environments/{env}`.
24853func (r *OrganizationsEnvironmentsService) Get(name string) *OrganizationsEnvironmentsGetCall {
24854	c := &OrganizationsEnvironmentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24855	c.name = name
24856	return c
24857}
24858
24859// Fields allows partial responses to be retrieved. See
24860// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
24861// for more information.
24862func (c *OrganizationsEnvironmentsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsGetCall {
24863	c.urlParams_.Set("fields", googleapi.CombineFields(s))
24864	return c
24865}
24866
24867// IfNoneMatch sets the optional parameter which makes the operation
24868// fail if the object's ETag matches the given value. This is useful for
24869// getting updates only after the object has changed since the last
24870// request. Use googleapi.IsNotModified to check whether the response
24871// error from Do is the result of In-None-Match.
24872func (c *OrganizationsEnvironmentsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsGetCall {
24873	c.ifNoneMatch_ = entityTag
24874	return c
24875}
24876
24877// Context sets the context to be used in this call's Do method. Any
24878// pending HTTP request will be aborted if the provided context is
24879// canceled.
24880func (c *OrganizationsEnvironmentsGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsGetCall {
24881	c.ctx_ = ctx
24882	return c
24883}
24884
24885// Header returns an http.Header that can be modified by the caller to
24886// add HTTP headers to the request.
24887func (c *OrganizationsEnvironmentsGetCall) Header() http.Header {
24888	if c.header_ == nil {
24889		c.header_ = make(http.Header)
24890	}
24891	return c.header_
24892}
24893
24894func (c *OrganizationsEnvironmentsGetCall) doRequest(alt string) (*http.Response, error) {
24895	reqHeaders := make(http.Header)
24896	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
24897	for k, v := range c.header_ {
24898		reqHeaders[k] = v
24899	}
24900	reqHeaders.Set("User-Agent", c.s.userAgent())
24901	if c.ifNoneMatch_ != "" {
24902		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24903	}
24904	var body io.Reader = nil
24905	c.urlParams_.Set("alt", alt)
24906	c.urlParams_.Set("prettyPrint", "false")
24907	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
24908	urls += "?" + c.urlParams_.Encode()
24909	req, err := http.NewRequest("GET", urls, body)
24910	if err != nil {
24911		return nil, err
24912	}
24913	req.Header = reqHeaders
24914	googleapi.Expand(req.URL, map[string]string{
24915		"name": c.name,
24916	})
24917	return gensupport.SendRequest(c.ctx_, c.s.client, req)
24918}
24919
24920// Do executes the "apigee.organizations.environments.get" call.
24921// Exactly one of *GoogleCloudApigeeV1Environment or error will be
24922// non-nil. Any non-2xx status code is an error. Response headers are in
24923// either *GoogleCloudApigeeV1Environment.ServerResponse.Header or (if a
24924// response was returned at all) in error.(*googleapi.Error).Header. Use
24925// googleapi.IsNotModified to check whether the returned error was
24926// because http.StatusNotModified was returned.
24927func (c *OrganizationsEnvironmentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Environment, error) {
24928	gensupport.SetOptions(c.urlParams_, opts...)
24929	res, err := c.doRequest("json")
24930	if res != nil && res.StatusCode == http.StatusNotModified {
24931		if res.Body != nil {
24932			res.Body.Close()
24933		}
24934		return nil, &googleapi.Error{
24935			Code:   res.StatusCode,
24936			Header: res.Header,
24937		}
24938	}
24939	if err != nil {
24940		return nil, err
24941	}
24942	defer googleapi.CloseBody(res)
24943	if err := googleapi.CheckResponse(res); err != nil {
24944		return nil, err
24945	}
24946	ret := &GoogleCloudApigeeV1Environment{
24947		ServerResponse: googleapi.ServerResponse{
24948			Header:         res.Header,
24949			HTTPStatusCode: res.StatusCode,
24950		},
24951	}
24952	target := &ret
24953	if err := gensupport.DecodeResponse(target, res); err != nil {
24954		return nil, err
24955	}
24956	return ret, nil
24957	// {
24958	//   "description": "Gets environment details.",
24959	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}",
24960	//   "httpMethod": "GET",
24961	//   "id": "apigee.organizations.environments.get",
24962	//   "parameterOrder": [
24963	//     "name"
24964	//   ],
24965	//   "parameters": {
24966	//     "name": {
24967	//       "description": "Required. Name of the environment. Use the following structure in your request: `organizations/{org}/environments/{env}`",
24968	//       "location": "path",
24969	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
24970	//       "required": true,
24971	//       "type": "string"
24972	//     }
24973	//   },
24974	//   "path": "v1/{+name}",
24975	//   "response": {
24976	//     "$ref": "GoogleCloudApigeeV1Environment"
24977	//   },
24978	//   "scopes": [
24979	//     "https://www.googleapis.com/auth/cloud-platform"
24980	//   ]
24981	// }
24982
24983}
24984
24985// method id "apigee.organizations.environments.getDebugmask":
24986
24987type OrganizationsEnvironmentsGetDebugmaskCall struct {
24988	s            *Service
24989	name         string
24990	urlParams_   gensupport.URLParams
24991	ifNoneMatch_ string
24992	ctx_         context.Context
24993	header_      http.Header
24994}
24995
24996// GetDebugmask: Gets the debug mask singleton resource for an
24997// environment.
24998//
24999// - name: Name of the debug mask. Use the following structure in your
25000//   request: `organizations/{org}/environments/{env}/debugmask`.
25001func (r *OrganizationsEnvironmentsService) GetDebugmask(name string) *OrganizationsEnvironmentsGetDebugmaskCall {
25002	c := &OrganizationsEnvironmentsGetDebugmaskCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25003	c.name = name
25004	return c
25005}
25006
25007// Fields allows partial responses to be retrieved. See
25008// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
25009// for more information.
25010func (c *OrganizationsEnvironmentsGetDebugmaskCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsGetDebugmaskCall {
25011	c.urlParams_.Set("fields", googleapi.CombineFields(s))
25012	return c
25013}
25014
25015// IfNoneMatch sets the optional parameter which makes the operation
25016// fail if the object's ETag matches the given value. This is useful for
25017// getting updates only after the object has changed since the last
25018// request. Use googleapi.IsNotModified to check whether the response
25019// error from Do is the result of In-None-Match.
25020func (c *OrganizationsEnvironmentsGetDebugmaskCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsGetDebugmaskCall {
25021	c.ifNoneMatch_ = entityTag
25022	return c
25023}
25024
25025// Context sets the context to be used in this call's Do method. Any
25026// pending HTTP request will be aborted if the provided context is
25027// canceled.
25028func (c *OrganizationsEnvironmentsGetDebugmaskCall) Context(ctx context.Context) *OrganizationsEnvironmentsGetDebugmaskCall {
25029	c.ctx_ = ctx
25030	return c
25031}
25032
25033// Header returns an http.Header that can be modified by the caller to
25034// add HTTP headers to the request.
25035func (c *OrganizationsEnvironmentsGetDebugmaskCall) Header() http.Header {
25036	if c.header_ == nil {
25037		c.header_ = make(http.Header)
25038	}
25039	return c.header_
25040}
25041
25042func (c *OrganizationsEnvironmentsGetDebugmaskCall) doRequest(alt string) (*http.Response, error) {
25043	reqHeaders := make(http.Header)
25044	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
25045	for k, v := range c.header_ {
25046		reqHeaders[k] = v
25047	}
25048	reqHeaders.Set("User-Agent", c.s.userAgent())
25049	if c.ifNoneMatch_ != "" {
25050		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25051	}
25052	var body io.Reader = nil
25053	c.urlParams_.Set("alt", alt)
25054	c.urlParams_.Set("prettyPrint", "false")
25055	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
25056	urls += "?" + c.urlParams_.Encode()
25057	req, err := http.NewRequest("GET", urls, body)
25058	if err != nil {
25059		return nil, err
25060	}
25061	req.Header = reqHeaders
25062	googleapi.Expand(req.URL, map[string]string{
25063		"name": c.name,
25064	})
25065	return gensupport.SendRequest(c.ctx_, c.s.client, req)
25066}
25067
25068// Do executes the "apigee.organizations.environments.getDebugmask" call.
25069// Exactly one of *GoogleCloudApigeeV1DebugMask or error will be
25070// non-nil. Any non-2xx status code is an error. Response headers are in
25071// either *GoogleCloudApigeeV1DebugMask.ServerResponse.Header or (if a
25072// response was returned at all) in error.(*googleapi.Error).Header. Use
25073// googleapi.IsNotModified to check whether the returned error was
25074// because http.StatusNotModified was returned.
25075func (c *OrganizationsEnvironmentsGetDebugmaskCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DebugMask, error) {
25076	gensupport.SetOptions(c.urlParams_, opts...)
25077	res, err := c.doRequest("json")
25078	if res != nil && res.StatusCode == http.StatusNotModified {
25079		if res.Body != nil {
25080			res.Body.Close()
25081		}
25082		return nil, &googleapi.Error{
25083			Code:   res.StatusCode,
25084			Header: res.Header,
25085		}
25086	}
25087	if err != nil {
25088		return nil, err
25089	}
25090	defer googleapi.CloseBody(res)
25091	if err := googleapi.CheckResponse(res); err != nil {
25092		return nil, err
25093	}
25094	ret := &GoogleCloudApigeeV1DebugMask{
25095		ServerResponse: googleapi.ServerResponse{
25096			Header:         res.Header,
25097			HTTPStatusCode: res.StatusCode,
25098		},
25099	}
25100	target := &ret
25101	if err := gensupport.DecodeResponse(target, res); err != nil {
25102		return nil, err
25103	}
25104	return ret, nil
25105	// {
25106	//   "description": "Gets the debug mask singleton resource for an environment.",
25107	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/debugmask",
25108	//   "httpMethod": "GET",
25109	//   "id": "apigee.organizations.environments.getDebugmask",
25110	//   "parameterOrder": [
25111	//     "name"
25112	//   ],
25113	//   "parameters": {
25114	//     "name": {
25115	//       "description": "Required. Name of the debug mask. Use the following structure in your request: `organizations/{org}/environments/{env}/debugmask`.",
25116	//       "location": "path",
25117	//       "pattern": "^organizations/[^/]+/environments/[^/]+/debugmask$",
25118	//       "required": true,
25119	//       "type": "string"
25120	//     }
25121	//   },
25122	//   "path": "v1/{+name}",
25123	//   "response": {
25124	//     "$ref": "GoogleCloudApigeeV1DebugMask"
25125	//   },
25126	//   "scopes": [
25127	//     "https://www.googleapis.com/auth/cloud-platform"
25128	//   ]
25129	// }
25130
25131}
25132
25133// method id "apigee.organizations.environments.getDeployedConfig":
25134
25135type OrganizationsEnvironmentsGetDeployedConfigCall struct {
25136	s            *Service
25137	name         string
25138	urlParams_   gensupport.URLParams
25139	ifNoneMatch_ string
25140	ctx_         context.Context
25141	header_      http.Header
25142}
25143
25144// GetDeployedConfig: Gets the deployed configuration for an
25145// environment.
25146//
25147// - name: Name of the environment deployed configuration resource. Use
25148//   the following structure in your request:
25149//   `organizations/{org}/environments/{env}/deployedConfig`.
25150func (r *OrganizationsEnvironmentsService) GetDeployedConfig(name string) *OrganizationsEnvironmentsGetDeployedConfigCall {
25151	c := &OrganizationsEnvironmentsGetDeployedConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25152	c.name = name
25153	return c
25154}
25155
25156// Fields allows partial responses to be retrieved. See
25157// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
25158// for more information.
25159func (c *OrganizationsEnvironmentsGetDeployedConfigCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsGetDeployedConfigCall {
25160	c.urlParams_.Set("fields", googleapi.CombineFields(s))
25161	return c
25162}
25163
25164// IfNoneMatch sets the optional parameter which makes the operation
25165// fail if the object's ETag matches the given value. This is useful for
25166// getting updates only after the object has changed since the last
25167// request. Use googleapi.IsNotModified to check whether the response
25168// error from Do is the result of In-None-Match.
25169func (c *OrganizationsEnvironmentsGetDeployedConfigCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsGetDeployedConfigCall {
25170	c.ifNoneMatch_ = entityTag
25171	return c
25172}
25173
25174// Context sets the context to be used in this call's Do method. Any
25175// pending HTTP request will be aborted if the provided context is
25176// canceled.
25177func (c *OrganizationsEnvironmentsGetDeployedConfigCall) Context(ctx context.Context) *OrganizationsEnvironmentsGetDeployedConfigCall {
25178	c.ctx_ = ctx
25179	return c
25180}
25181
25182// Header returns an http.Header that can be modified by the caller to
25183// add HTTP headers to the request.
25184func (c *OrganizationsEnvironmentsGetDeployedConfigCall) Header() http.Header {
25185	if c.header_ == nil {
25186		c.header_ = make(http.Header)
25187	}
25188	return c.header_
25189}
25190
25191func (c *OrganizationsEnvironmentsGetDeployedConfigCall) doRequest(alt string) (*http.Response, error) {
25192	reqHeaders := make(http.Header)
25193	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
25194	for k, v := range c.header_ {
25195		reqHeaders[k] = v
25196	}
25197	reqHeaders.Set("User-Agent", c.s.userAgent())
25198	if c.ifNoneMatch_ != "" {
25199		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25200	}
25201	var body io.Reader = nil
25202	c.urlParams_.Set("alt", alt)
25203	c.urlParams_.Set("prettyPrint", "false")
25204	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
25205	urls += "?" + c.urlParams_.Encode()
25206	req, err := http.NewRequest("GET", urls, body)
25207	if err != nil {
25208		return nil, err
25209	}
25210	req.Header = reqHeaders
25211	googleapi.Expand(req.URL, map[string]string{
25212		"name": c.name,
25213	})
25214	return gensupport.SendRequest(c.ctx_, c.s.client, req)
25215}
25216
25217// Do executes the "apigee.organizations.environments.getDeployedConfig" call.
25218// Exactly one of *GoogleCloudApigeeV1EnvironmentConfig or error will be
25219// non-nil. Any non-2xx status code is an error. Response headers are in
25220// either *GoogleCloudApigeeV1EnvironmentConfig.ServerResponse.Header or
25221// (if a response was returned at all) in
25222// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
25223// whether the returned error was because http.StatusNotModified was
25224// returned.
25225func (c *OrganizationsEnvironmentsGetDeployedConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1EnvironmentConfig, error) {
25226	gensupport.SetOptions(c.urlParams_, opts...)
25227	res, err := c.doRequest("json")
25228	if res != nil && res.StatusCode == http.StatusNotModified {
25229		if res.Body != nil {
25230			res.Body.Close()
25231		}
25232		return nil, &googleapi.Error{
25233			Code:   res.StatusCode,
25234			Header: res.Header,
25235		}
25236	}
25237	if err != nil {
25238		return nil, err
25239	}
25240	defer googleapi.CloseBody(res)
25241	if err := googleapi.CheckResponse(res); err != nil {
25242		return nil, err
25243	}
25244	ret := &GoogleCloudApigeeV1EnvironmentConfig{
25245		ServerResponse: googleapi.ServerResponse{
25246			Header:         res.Header,
25247			HTTPStatusCode: res.StatusCode,
25248		},
25249	}
25250	target := &ret
25251	if err := gensupport.DecodeResponse(target, res); err != nil {
25252		return nil, err
25253	}
25254	return ret, nil
25255	// {
25256	//   "description": "Gets the deployed configuration for an environment.",
25257	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/deployedConfig",
25258	//   "httpMethod": "GET",
25259	//   "id": "apigee.organizations.environments.getDeployedConfig",
25260	//   "parameterOrder": [
25261	//     "name"
25262	//   ],
25263	//   "parameters": {
25264	//     "name": {
25265	//       "description": "Required. Name of the environment deployed configuration resource. Use the following structure in your request: `organizations/{org}/environments/{env}/deployedConfig`",
25266	//       "location": "path",
25267	//       "pattern": "^organizations/[^/]+/environments/[^/]+/deployedConfig$",
25268	//       "required": true,
25269	//       "type": "string"
25270	//     }
25271	//   },
25272	//   "path": "v1/{+name}",
25273	//   "response": {
25274	//     "$ref": "GoogleCloudApigeeV1EnvironmentConfig"
25275	//   },
25276	//   "scopes": [
25277	//     "https://www.googleapis.com/auth/cloud-platform"
25278	//   ]
25279	// }
25280
25281}
25282
25283// method id "apigee.organizations.environments.getIamPolicy":
25284
25285type OrganizationsEnvironmentsGetIamPolicyCall struct {
25286	s            *Service
25287	resource     string
25288	urlParams_   gensupport.URLParams
25289	ifNoneMatch_ string
25290	ctx_         context.Context
25291	header_      http.Header
25292}
25293
25294// GetIamPolicy: Gets the IAM policy on an environment. For more
25295// information, see Manage users, roles, and permissions using the API
25296// (https://cloud.google.com/apigee/docs/api-platform/system-administration/manage-users-roles).
25297// You must have the `apigee.environments.getIamPolicy` permission to
25298// call this API.
25299//
25300// - resource: REQUIRED: The resource for which the policy is being
25301//   requested. See the operation documentation for the appropriate
25302//   value for this field.
25303func (r *OrganizationsEnvironmentsService) GetIamPolicy(resource string) *OrganizationsEnvironmentsGetIamPolicyCall {
25304	c := &OrganizationsEnvironmentsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25305	c.resource = resource
25306	return c
25307}
25308
25309// OptionsRequestedPolicyVersion sets the optional parameter
25310// "options.requestedPolicyVersion": The policy format version to be
25311// returned. Valid values are 0, 1, and 3. Requests specifying an
25312// invalid value will be rejected. Requests for policies with any
25313// conditional bindings must specify version 3. Policies without any
25314// conditional bindings may specify any valid value or leave the field
25315// unset. To learn which resources support conditions in their IAM
25316// policies, see the IAM documentation
25317// (https://cloud.google.com/iam/help/conditions/resource-policies).
25318func (c *OrganizationsEnvironmentsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *OrganizationsEnvironmentsGetIamPolicyCall {
25319	c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
25320	return c
25321}
25322
25323// Fields allows partial responses to be retrieved. See
25324// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
25325// for more information.
25326func (c *OrganizationsEnvironmentsGetIamPolicyCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsGetIamPolicyCall {
25327	c.urlParams_.Set("fields", googleapi.CombineFields(s))
25328	return c
25329}
25330
25331// IfNoneMatch sets the optional parameter which makes the operation
25332// fail if the object's ETag matches the given value. This is useful for
25333// getting updates only after the object has changed since the last
25334// request. Use googleapi.IsNotModified to check whether the response
25335// error from Do is the result of In-None-Match.
25336func (c *OrganizationsEnvironmentsGetIamPolicyCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsGetIamPolicyCall {
25337	c.ifNoneMatch_ = entityTag
25338	return c
25339}
25340
25341// Context sets the context to be used in this call's Do method. Any
25342// pending HTTP request will be aborted if the provided context is
25343// canceled.
25344func (c *OrganizationsEnvironmentsGetIamPolicyCall) Context(ctx context.Context) *OrganizationsEnvironmentsGetIamPolicyCall {
25345	c.ctx_ = ctx
25346	return c
25347}
25348
25349// Header returns an http.Header that can be modified by the caller to
25350// add HTTP headers to the request.
25351func (c *OrganizationsEnvironmentsGetIamPolicyCall) Header() http.Header {
25352	if c.header_ == nil {
25353		c.header_ = make(http.Header)
25354	}
25355	return c.header_
25356}
25357
25358func (c *OrganizationsEnvironmentsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
25359	reqHeaders := make(http.Header)
25360	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
25361	for k, v := range c.header_ {
25362		reqHeaders[k] = v
25363	}
25364	reqHeaders.Set("User-Agent", c.s.userAgent())
25365	if c.ifNoneMatch_ != "" {
25366		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25367	}
25368	var body io.Reader = nil
25369	c.urlParams_.Set("alt", alt)
25370	c.urlParams_.Set("prettyPrint", "false")
25371	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
25372	urls += "?" + c.urlParams_.Encode()
25373	req, err := http.NewRequest("GET", urls, body)
25374	if err != nil {
25375		return nil, err
25376	}
25377	req.Header = reqHeaders
25378	googleapi.Expand(req.URL, map[string]string{
25379		"resource": c.resource,
25380	})
25381	return gensupport.SendRequest(c.ctx_, c.s.client, req)
25382}
25383
25384// Do executes the "apigee.organizations.environments.getIamPolicy" call.
25385// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any
25386// non-2xx status code is an error. Response headers are in either
25387// *GoogleIamV1Policy.ServerResponse.Header or (if a response was
25388// returned at all) in error.(*googleapi.Error).Header. Use
25389// googleapi.IsNotModified to check whether the returned error was
25390// because http.StatusNotModified was returned.
25391func (c *OrganizationsEnvironmentsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
25392	gensupport.SetOptions(c.urlParams_, opts...)
25393	res, err := c.doRequest("json")
25394	if res != nil && res.StatusCode == http.StatusNotModified {
25395		if res.Body != nil {
25396			res.Body.Close()
25397		}
25398		return nil, &googleapi.Error{
25399			Code:   res.StatusCode,
25400			Header: res.Header,
25401		}
25402	}
25403	if err != nil {
25404		return nil, err
25405	}
25406	defer googleapi.CloseBody(res)
25407	if err := googleapi.CheckResponse(res); err != nil {
25408		return nil, err
25409	}
25410	ret := &GoogleIamV1Policy{
25411		ServerResponse: googleapi.ServerResponse{
25412			Header:         res.Header,
25413			HTTPStatusCode: res.StatusCode,
25414		},
25415	}
25416	target := &ret
25417	if err := gensupport.DecodeResponse(target, res); err != nil {
25418		return nil, err
25419	}
25420	return ret, nil
25421	// {
25422	//   "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.",
25423	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}:getIamPolicy",
25424	//   "httpMethod": "GET",
25425	//   "id": "apigee.organizations.environments.getIamPolicy",
25426	//   "parameterOrder": [
25427	//     "resource"
25428	//   ],
25429	//   "parameters": {
25430	//     "options.requestedPolicyVersion": {
25431	//       "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).",
25432	//       "format": "int32",
25433	//       "location": "query",
25434	//       "type": "integer"
25435	//     },
25436	//     "resource": {
25437	//       "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.",
25438	//       "location": "path",
25439	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
25440	//       "required": true,
25441	//       "type": "string"
25442	//     }
25443	//   },
25444	//   "path": "v1/{+resource}:getIamPolicy",
25445	//   "response": {
25446	//     "$ref": "GoogleIamV1Policy"
25447	//   },
25448	//   "scopes": [
25449	//     "https://www.googleapis.com/auth/cloud-platform"
25450	//   ]
25451	// }
25452
25453}
25454
25455// method id "apigee.organizations.environments.getTraceConfig":
25456
25457type OrganizationsEnvironmentsGetTraceConfigCall struct {
25458	s            *Service
25459	name         string
25460	urlParams_   gensupport.URLParams
25461	ifNoneMatch_ string
25462	ctx_         context.Context
25463	header_      http.Header
25464}
25465
25466// GetTraceConfig: Get distributed trace configuration in an
25467// environment.
25468//
25469// - name: Name of the trace configuration. Use the following structure
25470//   in your request: "organizations/*/environments/*/traceConfig".
25471func (r *OrganizationsEnvironmentsService) GetTraceConfig(name string) *OrganizationsEnvironmentsGetTraceConfigCall {
25472	c := &OrganizationsEnvironmentsGetTraceConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25473	c.name = name
25474	return c
25475}
25476
25477// Fields allows partial responses to be retrieved. See
25478// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
25479// for more information.
25480func (c *OrganizationsEnvironmentsGetTraceConfigCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsGetTraceConfigCall {
25481	c.urlParams_.Set("fields", googleapi.CombineFields(s))
25482	return c
25483}
25484
25485// IfNoneMatch sets the optional parameter which makes the operation
25486// fail if the object's ETag matches the given value. This is useful for
25487// getting updates only after the object has changed since the last
25488// request. Use googleapi.IsNotModified to check whether the response
25489// error from Do is the result of In-None-Match.
25490func (c *OrganizationsEnvironmentsGetTraceConfigCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsGetTraceConfigCall {
25491	c.ifNoneMatch_ = entityTag
25492	return c
25493}
25494
25495// Context sets the context to be used in this call's Do method. Any
25496// pending HTTP request will be aborted if the provided context is
25497// canceled.
25498func (c *OrganizationsEnvironmentsGetTraceConfigCall) Context(ctx context.Context) *OrganizationsEnvironmentsGetTraceConfigCall {
25499	c.ctx_ = ctx
25500	return c
25501}
25502
25503// Header returns an http.Header that can be modified by the caller to
25504// add HTTP headers to the request.
25505func (c *OrganizationsEnvironmentsGetTraceConfigCall) Header() http.Header {
25506	if c.header_ == nil {
25507		c.header_ = make(http.Header)
25508	}
25509	return c.header_
25510}
25511
25512func (c *OrganizationsEnvironmentsGetTraceConfigCall) doRequest(alt string) (*http.Response, error) {
25513	reqHeaders := make(http.Header)
25514	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
25515	for k, v := range c.header_ {
25516		reqHeaders[k] = v
25517	}
25518	reqHeaders.Set("User-Agent", c.s.userAgent())
25519	if c.ifNoneMatch_ != "" {
25520		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25521	}
25522	var body io.Reader = nil
25523	c.urlParams_.Set("alt", alt)
25524	c.urlParams_.Set("prettyPrint", "false")
25525	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
25526	urls += "?" + c.urlParams_.Encode()
25527	req, err := http.NewRequest("GET", urls, body)
25528	if err != nil {
25529		return nil, err
25530	}
25531	req.Header = reqHeaders
25532	googleapi.Expand(req.URL, map[string]string{
25533		"name": c.name,
25534	})
25535	return gensupport.SendRequest(c.ctx_, c.s.client, req)
25536}
25537
25538// Do executes the "apigee.organizations.environments.getTraceConfig" call.
25539// Exactly one of *GoogleCloudApigeeV1TraceConfig or error will be
25540// non-nil. Any non-2xx status code is an error. Response headers are in
25541// either *GoogleCloudApigeeV1TraceConfig.ServerResponse.Header or (if a
25542// response was returned at all) in error.(*googleapi.Error).Header. Use
25543// googleapi.IsNotModified to check whether the returned error was
25544// because http.StatusNotModified was returned.
25545func (c *OrganizationsEnvironmentsGetTraceConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TraceConfig, error) {
25546	gensupport.SetOptions(c.urlParams_, opts...)
25547	res, err := c.doRequest("json")
25548	if res != nil && res.StatusCode == http.StatusNotModified {
25549		if res.Body != nil {
25550			res.Body.Close()
25551		}
25552		return nil, &googleapi.Error{
25553			Code:   res.StatusCode,
25554			Header: res.Header,
25555		}
25556	}
25557	if err != nil {
25558		return nil, err
25559	}
25560	defer googleapi.CloseBody(res)
25561	if err := googleapi.CheckResponse(res); err != nil {
25562		return nil, err
25563	}
25564	ret := &GoogleCloudApigeeV1TraceConfig{
25565		ServerResponse: googleapi.ServerResponse{
25566			Header:         res.Header,
25567			HTTPStatusCode: res.StatusCode,
25568		},
25569	}
25570	target := &ret
25571	if err := gensupport.DecodeResponse(target, res); err != nil {
25572		return nil, err
25573	}
25574	return ret, nil
25575	// {
25576	//   "description": "Get distributed trace configuration in an environment.",
25577	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/traceConfig",
25578	//   "httpMethod": "GET",
25579	//   "id": "apigee.organizations.environments.getTraceConfig",
25580	//   "parameterOrder": [
25581	//     "name"
25582	//   ],
25583	//   "parameters": {
25584	//     "name": {
25585	//       "description": "Required. Name of the trace configuration. Use the following structure in your request: \"organizations/*/environments/*/traceConfig\".",
25586	//       "location": "path",
25587	//       "pattern": "^organizations/[^/]+/environments/[^/]+/traceConfig$",
25588	//       "required": true,
25589	//       "type": "string"
25590	//     }
25591	//   },
25592	//   "path": "v1/{+name}",
25593	//   "response": {
25594	//     "$ref": "GoogleCloudApigeeV1TraceConfig"
25595	//   },
25596	//   "scopes": [
25597	//     "https://www.googleapis.com/auth/cloud-platform"
25598	//   ]
25599	// }
25600
25601}
25602
25603// method id "apigee.organizations.environments.setIamPolicy":
25604
25605type OrganizationsEnvironmentsSetIamPolicyCall struct {
25606	s                              *Service
25607	resource                       string
25608	googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest
25609	urlParams_                     gensupport.URLParams
25610	ctx_                           context.Context
25611	header_                        http.Header
25612}
25613
25614// SetIamPolicy: Sets the IAM policy on an environment, if the policy
25615// already exists it will be replaced. For more information, see Manage
25616// users, roles, and permissions using the API
25617// (https://cloud.google.com/apigee/docs/api-platform/system-administration/manage-users-roles).
25618// You must have the `apigee.environments.setIamPolicy` permission to
25619// call this API.
25620//
25621// - resource: REQUIRED: The resource for which the policy is being
25622//   specified. See the operation documentation for the appropriate
25623//   value for this field.
25624func (r *OrganizationsEnvironmentsService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *OrganizationsEnvironmentsSetIamPolicyCall {
25625	c := &OrganizationsEnvironmentsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25626	c.resource = resource
25627	c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest
25628	return c
25629}
25630
25631// Fields allows partial responses to be retrieved. See
25632// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
25633// for more information.
25634func (c *OrganizationsEnvironmentsSetIamPolicyCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSetIamPolicyCall {
25635	c.urlParams_.Set("fields", googleapi.CombineFields(s))
25636	return c
25637}
25638
25639// Context sets the context to be used in this call's Do method. Any
25640// pending HTTP request will be aborted if the provided context is
25641// canceled.
25642func (c *OrganizationsEnvironmentsSetIamPolicyCall) Context(ctx context.Context) *OrganizationsEnvironmentsSetIamPolicyCall {
25643	c.ctx_ = ctx
25644	return c
25645}
25646
25647// Header returns an http.Header that can be modified by the caller to
25648// add HTTP headers to the request.
25649func (c *OrganizationsEnvironmentsSetIamPolicyCall) Header() http.Header {
25650	if c.header_ == nil {
25651		c.header_ = make(http.Header)
25652	}
25653	return c.header_
25654}
25655
25656func (c *OrganizationsEnvironmentsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
25657	reqHeaders := make(http.Header)
25658	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
25659	for k, v := range c.header_ {
25660		reqHeaders[k] = v
25661	}
25662	reqHeaders.Set("User-Agent", c.s.userAgent())
25663	var body io.Reader = nil
25664	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest)
25665	if err != nil {
25666		return nil, err
25667	}
25668	reqHeaders.Set("Content-Type", "application/json")
25669	c.urlParams_.Set("alt", alt)
25670	c.urlParams_.Set("prettyPrint", "false")
25671	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
25672	urls += "?" + c.urlParams_.Encode()
25673	req, err := http.NewRequest("POST", urls, body)
25674	if err != nil {
25675		return nil, err
25676	}
25677	req.Header = reqHeaders
25678	googleapi.Expand(req.URL, map[string]string{
25679		"resource": c.resource,
25680	})
25681	return gensupport.SendRequest(c.ctx_, c.s.client, req)
25682}
25683
25684// Do executes the "apigee.organizations.environments.setIamPolicy" call.
25685// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any
25686// non-2xx status code is an error. Response headers are in either
25687// *GoogleIamV1Policy.ServerResponse.Header or (if a response was
25688// returned at all) in error.(*googleapi.Error).Header. Use
25689// googleapi.IsNotModified to check whether the returned error was
25690// because http.StatusNotModified was returned.
25691func (c *OrganizationsEnvironmentsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
25692	gensupport.SetOptions(c.urlParams_, opts...)
25693	res, err := c.doRequest("json")
25694	if res != nil && res.StatusCode == http.StatusNotModified {
25695		if res.Body != nil {
25696			res.Body.Close()
25697		}
25698		return nil, &googleapi.Error{
25699			Code:   res.StatusCode,
25700			Header: res.Header,
25701		}
25702	}
25703	if err != nil {
25704		return nil, err
25705	}
25706	defer googleapi.CloseBody(res)
25707	if err := googleapi.CheckResponse(res); err != nil {
25708		return nil, err
25709	}
25710	ret := &GoogleIamV1Policy{
25711		ServerResponse: googleapi.ServerResponse{
25712			Header:         res.Header,
25713			HTTPStatusCode: res.StatusCode,
25714		},
25715	}
25716	target := &ret
25717	if err := gensupport.DecodeResponse(target, res); err != nil {
25718		return nil, err
25719	}
25720	return ret, nil
25721	// {
25722	//   "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.",
25723	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}:setIamPolicy",
25724	//   "httpMethod": "POST",
25725	//   "id": "apigee.organizations.environments.setIamPolicy",
25726	//   "parameterOrder": [
25727	//     "resource"
25728	//   ],
25729	//   "parameters": {
25730	//     "resource": {
25731	//       "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.",
25732	//       "location": "path",
25733	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
25734	//       "required": true,
25735	//       "type": "string"
25736	//     }
25737	//   },
25738	//   "path": "v1/{+resource}:setIamPolicy",
25739	//   "request": {
25740	//     "$ref": "GoogleIamV1SetIamPolicyRequest"
25741	//   },
25742	//   "response": {
25743	//     "$ref": "GoogleIamV1Policy"
25744	//   },
25745	//   "scopes": [
25746	//     "https://www.googleapis.com/auth/cloud-platform"
25747	//   ]
25748	// }
25749
25750}
25751
25752// method id "apigee.organizations.environments.subscribe":
25753
25754type OrganizationsEnvironmentsSubscribeCall struct {
25755	s          *Service
25756	parent     string
25757	urlParams_ gensupport.URLParams
25758	ctx_       context.Context
25759	header_    http.Header
25760}
25761
25762// Subscribe: Creates a subscription for the environment's Pub/Sub
25763// topic. The server will assign a random name for this subscription.
25764// The "name" and "push_config" must *not* be specified.
25765//
25766// - parent: Name of the environment. Use the following structure in
25767//   your request: `organizations/{org}/environments/{env}`.
25768func (r *OrganizationsEnvironmentsService) Subscribe(parent string) *OrganizationsEnvironmentsSubscribeCall {
25769	c := &OrganizationsEnvironmentsSubscribeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25770	c.parent = parent
25771	return c
25772}
25773
25774// Fields allows partial responses to be retrieved. See
25775// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
25776// for more information.
25777func (c *OrganizationsEnvironmentsSubscribeCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSubscribeCall {
25778	c.urlParams_.Set("fields", googleapi.CombineFields(s))
25779	return c
25780}
25781
25782// Context sets the context to be used in this call's Do method. Any
25783// pending HTTP request will be aborted if the provided context is
25784// canceled.
25785func (c *OrganizationsEnvironmentsSubscribeCall) Context(ctx context.Context) *OrganizationsEnvironmentsSubscribeCall {
25786	c.ctx_ = ctx
25787	return c
25788}
25789
25790// Header returns an http.Header that can be modified by the caller to
25791// add HTTP headers to the request.
25792func (c *OrganizationsEnvironmentsSubscribeCall) Header() http.Header {
25793	if c.header_ == nil {
25794		c.header_ = make(http.Header)
25795	}
25796	return c.header_
25797}
25798
25799func (c *OrganizationsEnvironmentsSubscribeCall) doRequest(alt string) (*http.Response, error) {
25800	reqHeaders := make(http.Header)
25801	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
25802	for k, v := range c.header_ {
25803		reqHeaders[k] = v
25804	}
25805	reqHeaders.Set("User-Agent", c.s.userAgent())
25806	var body io.Reader = nil
25807	c.urlParams_.Set("alt", alt)
25808	c.urlParams_.Set("prettyPrint", "false")
25809	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}:subscribe")
25810	urls += "?" + c.urlParams_.Encode()
25811	req, err := http.NewRequest("POST", urls, body)
25812	if err != nil {
25813		return nil, err
25814	}
25815	req.Header = reqHeaders
25816	googleapi.Expand(req.URL, map[string]string{
25817		"parent": c.parent,
25818	})
25819	return gensupport.SendRequest(c.ctx_, c.s.client, req)
25820}
25821
25822// Do executes the "apigee.organizations.environments.subscribe" call.
25823// Exactly one of *GoogleCloudApigeeV1Subscription or error will be
25824// non-nil. Any non-2xx status code is an error. Response headers are in
25825// either *GoogleCloudApigeeV1Subscription.ServerResponse.Header or (if
25826// a response was returned at all) in error.(*googleapi.Error).Header.
25827// Use googleapi.IsNotModified to check whether the returned error was
25828// because http.StatusNotModified was returned.
25829func (c *OrganizationsEnvironmentsSubscribeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Subscription, error) {
25830	gensupport.SetOptions(c.urlParams_, opts...)
25831	res, err := c.doRequest("json")
25832	if res != nil && res.StatusCode == http.StatusNotModified {
25833		if res.Body != nil {
25834			res.Body.Close()
25835		}
25836		return nil, &googleapi.Error{
25837			Code:   res.StatusCode,
25838			Header: res.Header,
25839		}
25840	}
25841	if err != nil {
25842		return nil, err
25843	}
25844	defer googleapi.CloseBody(res)
25845	if err := googleapi.CheckResponse(res); err != nil {
25846		return nil, err
25847	}
25848	ret := &GoogleCloudApigeeV1Subscription{
25849		ServerResponse: googleapi.ServerResponse{
25850			Header:         res.Header,
25851			HTTPStatusCode: res.StatusCode,
25852		},
25853	}
25854	target := &ret
25855	if err := gensupport.DecodeResponse(target, res); err != nil {
25856		return nil, err
25857	}
25858	return ret, nil
25859	// {
25860	//   "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.",
25861	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}:subscribe",
25862	//   "httpMethod": "POST",
25863	//   "id": "apigee.organizations.environments.subscribe",
25864	//   "parameterOrder": [
25865	//     "parent"
25866	//   ],
25867	//   "parameters": {
25868	//     "parent": {
25869	//       "description": "Required. Name of the environment. Use the following structure in your request: `organizations/{org}/environments/{env}`",
25870	//       "location": "path",
25871	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
25872	//       "required": true,
25873	//       "type": "string"
25874	//     }
25875	//   },
25876	//   "path": "v1/{+parent}:subscribe",
25877	//   "response": {
25878	//     "$ref": "GoogleCloudApigeeV1Subscription"
25879	//   },
25880	//   "scopes": [
25881	//     "https://www.googleapis.com/auth/cloud-platform"
25882	//   ]
25883	// }
25884
25885}
25886
25887// method id "apigee.organizations.environments.testIamPermissions":
25888
25889type OrganizationsEnvironmentsTestIamPermissionsCall struct {
25890	s                                    *Service
25891	resource                             string
25892	googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest
25893	urlParams_                           gensupport.URLParams
25894	ctx_                                 context.Context
25895	header_                              http.Header
25896}
25897
25898// TestIamPermissions: Tests the permissions of a user on an
25899// environment, and returns a subset of permissions that the user has on
25900// the environment. If the environment does not exist, an empty
25901// permission set is returned (a NOT_FOUND error is not returned).
25902//
25903// - resource: REQUIRED: The resource for which the policy detail is
25904//   being requested. See the operation documentation for the
25905//   appropriate value for this field.
25906func (r *OrganizationsEnvironmentsService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *OrganizationsEnvironmentsTestIamPermissionsCall {
25907	c := &OrganizationsEnvironmentsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25908	c.resource = resource
25909	c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest
25910	return c
25911}
25912
25913// Fields allows partial responses to be retrieved. See
25914// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
25915// for more information.
25916func (c *OrganizationsEnvironmentsTestIamPermissionsCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTestIamPermissionsCall {
25917	c.urlParams_.Set("fields", googleapi.CombineFields(s))
25918	return c
25919}
25920
25921// Context sets the context to be used in this call's Do method. Any
25922// pending HTTP request will be aborted if the provided context is
25923// canceled.
25924func (c *OrganizationsEnvironmentsTestIamPermissionsCall) Context(ctx context.Context) *OrganizationsEnvironmentsTestIamPermissionsCall {
25925	c.ctx_ = ctx
25926	return c
25927}
25928
25929// Header returns an http.Header that can be modified by the caller to
25930// add HTTP headers to the request.
25931func (c *OrganizationsEnvironmentsTestIamPermissionsCall) Header() http.Header {
25932	if c.header_ == nil {
25933		c.header_ = make(http.Header)
25934	}
25935	return c.header_
25936}
25937
25938func (c *OrganizationsEnvironmentsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
25939	reqHeaders := make(http.Header)
25940	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
25941	for k, v := range c.header_ {
25942		reqHeaders[k] = v
25943	}
25944	reqHeaders.Set("User-Agent", c.s.userAgent())
25945	var body io.Reader = nil
25946	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest)
25947	if err != nil {
25948		return nil, err
25949	}
25950	reqHeaders.Set("Content-Type", "application/json")
25951	c.urlParams_.Set("alt", alt)
25952	c.urlParams_.Set("prettyPrint", "false")
25953	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
25954	urls += "?" + c.urlParams_.Encode()
25955	req, err := http.NewRequest("POST", urls, body)
25956	if err != nil {
25957		return nil, err
25958	}
25959	req.Header = reqHeaders
25960	googleapi.Expand(req.URL, map[string]string{
25961		"resource": c.resource,
25962	})
25963	return gensupport.SendRequest(c.ctx_, c.s.client, req)
25964}
25965
25966// Do executes the "apigee.organizations.environments.testIamPermissions" call.
25967// Exactly one of *GoogleIamV1TestIamPermissionsResponse or error will
25968// be non-nil. Any non-2xx status code is an error. Response headers are
25969// in either
25970// *GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if a
25971// response was returned at all) in error.(*googleapi.Error).Header. Use
25972// googleapi.IsNotModified to check whether the returned error was
25973// because http.StatusNotModified was returned.
25974func (c *OrganizationsEnvironmentsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) {
25975	gensupport.SetOptions(c.urlParams_, opts...)
25976	res, err := c.doRequest("json")
25977	if res != nil && res.StatusCode == http.StatusNotModified {
25978		if res.Body != nil {
25979			res.Body.Close()
25980		}
25981		return nil, &googleapi.Error{
25982			Code:   res.StatusCode,
25983			Header: res.Header,
25984		}
25985	}
25986	if err != nil {
25987		return nil, err
25988	}
25989	defer googleapi.CloseBody(res)
25990	if err := googleapi.CheckResponse(res); err != nil {
25991		return nil, err
25992	}
25993	ret := &GoogleIamV1TestIamPermissionsResponse{
25994		ServerResponse: googleapi.ServerResponse{
25995			Header:         res.Header,
25996			HTTPStatusCode: res.StatusCode,
25997		},
25998	}
25999	target := &ret
26000	if err := gensupport.DecodeResponse(target, res); err != nil {
26001		return nil, err
26002	}
26003	return ret, nil
26004	// {
26005	//   "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).",
26006	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}:testIamPermissions",
26007	//   "httpMethod": "POST",
26008	//   "id": "apigee.organizations.environments.testIamPermissions",
26009	//   "parameterOrder": [
26010	//     "resource"
26011	//   ],
26012	//   "parameters": {
26013	//     "resource": {
26014	//       "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.",
26015	//       "location": "path",
26016	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
26017	//       "required": true,
26018	//       "type": "string"
26019	//     }
26020	//   },
26021	//   "path": "v1/{+resource}:testIamPermissions",
26022	//   "request": {
26023	//     "$ref": "GoogleIamV1TestIamPermissionsRequest"
26024	//   },
26025	//   "response": {
26026	//     "$ref": "GoogleIamV1TestIamPermissionsResponse"
26027	//   },
26028	//   "scopes": [
26029	//     "https://www.googleapis.com/auth/cloud-platform"
26030	//   ]
26031	// }
26032
26033}
26034
26035// method id "apigee.organizations.environments.unsubscribe":
26036
26037type OrganizationsEnvironmentsUnsubscribeCall struct {
26038	s                               *Service
26039	parent                          string
26040	googlecloudapigeev1subscription *GoogleCloudApigeeV1Subscription
26041	urlParams_                      gensupport.URLParams
26042	ctx_                            context.Context
26043	header_                         http.Header
26044}
26045
26046// Unsubscribe: Deletes a subscription for the environment's Pub/Sub
26047// topic.
26048//
26049// - parent: Name of the environment. Use the following structure in
26050//   your request: `organizations/{org}/environments/{env}`.
26051func (r *OrganizationsEnvironmentsService) Unsubscribe(parent string, googlecloudapigeev1subscription *GoogleCloudApigeeV1Subscription) *OrganizationsEnvironmentsUnsubscribeCall {
26052	c := &OrganizationsEnvironmentsUnsubscribeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26053	c.parent = parent
26054	c.googlecloudapigeev1subscription = googlecloudapigeev1subscription
26055	return c
26056}
26057
26058// Fields allows partial responses to be retrieved. See
26059// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
26060// for more information.
26061func (c *OrganizationsEnvironmentsUnsubscribeCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsUnsubscribeCall {
26062	c.urlParams_.Set("fields", googleapi.CombineFields(s))
26063	return c
26064}
26065
26066// Context sets the context to be used in this call's Do method. Any
26067// pending HTTP request will be aborted if the provided context is
26068// canceled.
26069func (c *OrganizationsEnvironmentsUnsubscribeCall) Context(ctx context.Context) *OrganizationsEnvironmentsUnsubscribeCall {
26070	c.ctx_ = ctx
26071	return c
26072}
26073
26074// Header returns an http.Header that can be modified by the caller to
26075// add HTTP headers to the request.
26076func (c *OrganizationsEnvironmentsUnsubscribeCall) Header() http.Header {
26077	if c.header_ == nil {
26078		c.header_ = make(http.Header)
26079	}
26080	return c.header_
26081}
26082
26083func (c *OrganizationsEnvironmentsUnsubscribeCall) doRequest(alt string) (*http.Response, error) {
26084	reqHeaders := make(http.Header)
26085	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
26086	for k, v := range c.header_ {
26087		reqHeaders[k] = v
26088	}
26089	reqHeaders.Set("User-Agent", c.s.userAgent())
26090	var body io.Reader = nil
26091	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1subscription)
26092	if err != nil {
26093		return nil, err
26094	}
26095	reqHeaders.Set("Content-Type", "application/json")
26096	c.urlParams_.Set("alt", alt)
26097	c.urlParams_.Set("prettyPrint", "false")
26098	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}:unsubscribe")
26099	urls += "?" + c.urlParams_.Encode()
26100	req, err := http.NewRequest("POST", urls, body)
26101	if err != nil {
26102		return nil, err
26103	}
26104	req.Header = reqHeaders
26105	googleapi.Expand(req.URL, map[string]string{
26106		"parent": c.parent,
26107	})
26108	return gensupport.SendRequest(c.ctx_, c.s.client, req)
26109}
26110
26111// Do executes the "apigee.organizations.environments.unsubscribe" call.
26112// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
26113// non-2xx status code is an error. Response headers are in either
26114// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
26115// returned at all) in error.(*googleapi.Error).Header. Use
26116// googleapi.IsNotModified to check whether the returned error was
26117// because http.StatusNotModified was returned.
26118func (c *OrganizationsEnvironmentsUnsubscribeCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
26119	gensupport.SetOptions(c.urlParams_, opts...)
26120	res, err := c.doRequest("json")
26121	if res != nil && res.StatusCode == http.StatusNotModified {
26122		if res.Body != nil {
26123			res.Body.Close()
26124		}
26125		return nil, &googleapi.Error{
26126			Code:   res.StatusCode,
26127			Header: res.Header,
26128		}
26129	}
26130	if err != nil {
26131		return nil, err
26132	}
26133	defer googleapi.CloseBody(res)
26134	if err := googleapi.CheckResponse(res); err != nil {
26135		return nil, err
26136	}
26137	ret := &GoogleProtobufEmpty{
26138		ServerResponse: googleapi.ServerResponse{
26139			Header:         res.Header,
26140			HTTPStatusCode: res.StatusCode,
26141		},
26142	}
26143	target := &ret
26144	if err := gensupport.DecodeResponse(target, res); err != nil {
26145		return nil, err
26146	}
26147	return ret, nil
26148	// {
26149	//   "description": "Deletes a subscription for the environment's Pub/Sub topic.",
26150	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}:unsubscribe",
26151	//   "httpMethod": "POST",
26152	//   "id": "apigee.organizations.environments.unsubscribe",
26153	//   "parameterOrder": [
26154	//     "parent"
26155	//   ],
26156	//   "parameters": {
26157	//     "parent": {
26158	//       "description": "Required. Name of the environment. Use the following structure in your request: `organizations/{org}/environments/{env}`",
26159	//       "location": "path",
26160	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
26161	//       "required": true,
26162	//       "type": "string"
26163	//     }
26164	//   },
26165	//   "path": "v1/{+parent}:unsubscribe",
26166	//   "request": {
26167	//     "$ref": "GoogleCloudApigeeV1Subscription"
26168	//   },
26169	//   "response": {
26170	//     "$ref": "GoogleProtobufEmpty"
26171	//   },
26172	//   "scopes": [
26173	//     "https://www.googleapis.com/auth/cloud-platform"
26174	//   ]
26175	// }
26176
26177}
26178
26179// method id "apigee.organizations.environments.update":
26180
26181type OrganizationsEnvironmentsUpdateCall struct {
26182	s                              *Service
26183	name                           string
26184	googlecloudapigeev1environment *GoogleCloudApigeeV1Environment
26185	urlParams_                     gensupport.URLParams
26186	ctx_                           context.Context
26187	header_                        http.Header
26188}
26189
26190// Update: Updates an existing environment. When updating properties,
26191// you must pass all existing properties to the API, even if they are
26192// not being changed. If you omit properties from the payload, the
26193// properties are removed. To get the current list of properties for the
26194// environment, use the Get Environment API (get).
26195//
26196// - name: Name of the environment. Use the following structure in your
26197//   request: `organizations/{org}/environments/{env}`.
26198func (r *OrganizationsEnvironmentsService) Update(name string, googlecloudapigeev1environment *GoogleCloudApigeeV1Environment) *OrganizationsEnvironmentsUpdateCall {
26199	c := &OrganizationsEnvironmentsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26200	c.name = name
26201	c.googlecloudapigeev1environment = googlecloudapigeev1environment
26202	return c
26203}
26204
26205// Fields allows partial responses to be retrieved. See
26206// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
26207// for more information.
26208func (c *OrganizationsEnvironmentsUpdateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsUpdateCall {
26209	c.urlParams_.Set("fields", googleapi.CombineFields(s))
26210	return c
26211}
26212
26213// Context sets the context to be used in this call's Do method. Any
26214// pending HTTP request will be aborted if the provided context is
26215// canceled.
26216func (c *OrganizationsEnvironmentsUpdateCall) Context(ctx context.Context) *OrganizationsEnvironmentsUpdateCall {
26217	c.ctx_ = ctx
26218	return c
26219}
26220
26221// Header returns an http.Header that can be modified by the caller to
26222// add HTTP headers to the request.
26223func (c *OrganizationsEnvironmentsUpdateCall) Header() http.Header {
26224	if c.header_ == nil {
26225		c.header_ = make(http.Header)
26226	}
26227	return c.header_
26228}
26229
26230func (c *OrganizationsEnvironmentsUpdateCall) doRequest(alt string) (*http.Response, error) {
26231	reqHeaders := make(http.Header)
26232	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
26233	for k, v := range c.header_ {
26234		reqHeaders[k] = v
26235	}
26236	reqHeaders.Set("User-Agent", c.s.userAgent())
26237	var body io.Reader = nil
26238	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1environment)
26239	if err != nil {
26240		return nil, err
26241	}
26242	reqHeaders.Set("Content-Type", "application/json")
26243	c.urlParams_.Set("alt", alt)
26244	c.urlParams_.Set("prettyPrint", "false")
26245	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
26246	urls += "?" + c.urlParams_.Encode()
26247	req, err := http.NewRequest("PUT", urls, body)
26248	if err != nil {
26249		return nil, err
26250	}
26251	req.Header = reqHeaders
26252	googleapi.Expand(req.URL, map[string]string{
26253		"name": c.name,
26254	})
26255	return gensupport.SendRequest(c.ctx_, c.s.client, req)
26256}
26257
26258// Do executes the "apigee.organizations.environments.update" call.
26259// Exactly one of *GoogleCloudApigeeV1Environment or error will be
26260// non-nil. Any non-2xx status code is an error. Response headers are in
26261// either *GoogleCloudApigeeV1Environment.ServerResponse.Header or (if a
26262// response was returned at all) in error.(*googleapi.Error).Header. Use
26263// googleapi.IsNotModified to check whether the returned error was
26264// because http.StatusNotModified was returned.
26265func (c *OrganizationsEnvironmentsUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Environment, error) {
26266	gensupport.SetOptions(c.urlParams_, opts...)
26267	res, err := c.doRequest("json")
26268	if res != nil && res.StatusCode == http.StatusNotModified {
26269		if res.Body != nil {
26270			res.Body.Close()
26271		}
26272		return nil, &googleapi.Error{
26273			Code:   res.StatusCode,
26274			Header: res.Header,
26275		}
26276	}
26277	if err != nil {
26278		return nil, err
26279	}
26280	defer googleapi.CloseBody(res)
26281	if err := googleapi.CheckResponse(res); err != nil {
26282		return nil, err
26283	}
26284	ret := &GoogleCloudApigeeV1Environment{
26285		ServerResponse: googleapi.ServerResponse{
26286			Header:         res.Header,
26287			HTTPStatusCode: res.StatusCode,
26288		},
26289	}
26290	target := &ret
26291	if err := gensupport.DecodeResponse(target, res); err != nil {
26292		return nil, err
26293	}
26294	return ret, nil
26295	// {
26296	//   "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).",
26297	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}",
26298	//   "httpMethod": "PUT",
26299	//   "id": "apigee.organizations.environments.update",
26300	//   "parameterOrder": [
26301	//     "name"
26302	//   ],
26303	//   "parameters": {
26304	//     "name": {
26305	//       "description": "Required. Name of the environment. Use the following structure in your request: `organizations/{org}/environments/{env}`",
26306	//       "location": "path",
26307	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
26308	//       "required": true,
26309	//       "type": "string"
26310	//     }
26311	//   },
26312	//   "path": "v1/{+name}",
26313	//   "request": {
26314	//     "$ref": "GoogleCloudApigeeV1Environment"
26315	//   },
26316	//   "response": {
26317	//     "$ref": "GoogleCloudApigeeV1Environment"
26318	//   },
26319	//   "scopes": [
26320	//     "https://www.googleapis.com/auth/cloud-platform"
26321	//   ]
26322	// }
26323
26324}
26325
26326// method id "apigee.organizations.environments.updateDebugmask":
26327
26328type OrganizationsEnvironmentsUpdateDebugmaskCall struct {
26329	s                            *Service
26330	name                         string
26331	googlecloudapigeev1debugmask *GoogleCloudApigeeV1DebugMask
26332	urlParams_                   gensupport.URLParams
26333	ctx_                         context.Context
26334	header_                      http.Header
26335}
26336
26337// UpdateDebugmask: Updates the debug mask singleton resource for an
26338// environment.
26339//
26340// - name: Name of the debug mask.
26341func (r *OrganizationsEnvironmentsService) UpdateDebugmask(name string, googlecloudapigeev1debugmask *GoogleCloudApigeeV1DebugMask) *OrganizationsEnvironmentsUpdateDebugmaskCall {
26342	c := &OrganizationsEnvironmentsUpdateDebugmaskCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26343	c.name = name
26344	c.googlecloudapigeev1debugmask = googlecloudapigeev1debugmask
26345	return c
26346}
26347
26348// ReplaceRepeatedFields sets the optional parameter
26349// "replaceRepeatedFields": Boolean flag that specifies whether to
26350// replace existing values in the debug mask when doing an update. Set
26351// to true to replace existing values. The default behavior is to append
26352// the values (false).
26353func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) ReplaceRepeatedFields(replaceRepeatedFields bool) *OrganizationsEnvironmentsUpdateDebugmaskCall {
26354	c.urlParams_.Set("replaceRepeatedFields", fmt.Sprint(replaceRepeatedFields))
26355	return c
26356}
26357
26358// UpdateMask sets the optional parameter "updateMask": Field debug mask
26359// to support partial updates.
26360func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) UpdateMask(updateMask string) *OrganizationsEnvironmentsUpdateDebugmaskCall {
26361	c.urlParams_.Set("updateMask", updateMask)
26362	return c
26363}
26364
26365// Fields allows partial responses to be retrieved. See
26366// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
26367// for more information.
26368func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsUpdateDebugmaskCall {
26369	c.urlParams_.Set("fields", googleapi.CombineFields(s))
26370	return c
26371}
26372
26373// Context sets the context to be used in this call's Do method. Any
26374// pending HTTP request will be aborted if the provided context is
26375// canceled.
26376func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) Context(ctx context.Context) *OrganizationsEnvironmentsUpdateDebugmaskCall {
26377	c.ctx_ = ctx
26378	return c
26379}
26380
26381// Header returns an http.Header that can be modified by the caller to
26382// add HTTP headers to the request.
26383func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) Header() http.Header {
26384	if c.header_ == nil {
26385		c.header_ = make(http.Header)
26386	}
26387	return c.header_
26388}
26389
26390func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) doRequest(alt string) (*http.Response, error) {
26391	reqHeaders := make(http.Header)
26392	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
26393	for k, v := range c.header_ {
26394		reqHeaders[k] = v
26395	}
26396	reqHeaders.Set("User-Agent", c.s.userAgent())
26397	var body io.Reader = nil
26398	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1debugmask)
26399	if err != nil {
26400		return nil, err
26401	}
26402	reqHeaders.Set("Content-Type", "application/json")
26403	c.urlParams_.Set("alt", alt)
26404	c.urlParams_.Set("prettyPrint", "false")
26405	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
26406	urls += "?" + c.urlParams_.Encode()
26407	req, err := http.NewRequest("PATCH", urls, body)
26408	if err != nil {
26409		return nil, err
26410	}
26411	req.Header = reqHeaders
26412	googleapi.Expand(req.URL, map[string]string{
26413		"name": c.name,
26414	})
26415	return gensupport.SendRequest(c.ctx_, c.s.client, req)
26416}
26417
26418// Do executes the "apigee.organizations.environments.updateDebugmask" call.
26419// Exactly one of *GoogleCloudApigeeV1DebugMask or error will be
26420// non-nil. Any non-2xx status code is an error. Response headers are in
26421// either *GoogleCloudApigeeV1DebugMask.ServerResponse.Header or (if a
26422// response was returned at all) in error.(*googleapi.Error).Header. Use
26423// googleapi.IsNotModified to check whether the returned error was
26424// because http.StatusNotModified was returned.
26425func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DebugMask, error) {
26426	gensupport.SetOptions(c.urlParams_, opts...)
26427	res, err := c.doRequest("json")
26428	if res != nil && res.StatusCode == http.StatusNotModified {
26429		if res.Body != nil {
26430			res.Body.Close()
26431		}
26432		return nil, &googleapi.Error{
26433			Code:   res.StatusCode,
26434			Header: res.Header,
26435		}
26436	}
26437	if err != nil {
26438		return nil, err
26439	}
26440	defer googleapi.CloseBody(res)
26441	if err := googleapi.CheckResponse(res); err != nil {
26442		return nil, err
26443	}
26444	ret := &GoogleCloudApigeeV1DebugMask{
26445		ServerResponse: googleapi.ServerResponse{
26446			Header:         res.Header,
26447			HTTPStatusCode: res.StatusCode,
26448		},
26449	}
26450	target := &ret
26451	if err := gensupport.DecodeResponse(target, res); err != nil {
26452		return nil, err
26453	}
26454	return ret, nil
26455	// {
26456	//   "description": "Updates the debug mask singleton resource for an environment.",
26457	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/debugmask",
26458	//   "httpMethod": "PATCH",
26459	//   "id": "apigee.organizations.environments.updateDebugmask",
26460	//   "parameterOrder": [
26461	//     "name"
26462	//   ],
26463	//   "parameters": {
26464	//     "name": {
26465	//       "description": "Name of the debug mask.",
26466	//       "location": "path",
26467	//       "pattern": "^organizations/[^/]+/environments/[^/]+/debugmask$",
26468	//       "required": true,
26469	//       "type": "string"
26470	//     },
26471	//     "replaceRepeatedFields": {
26472	//       "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).",
26473	//       "location": "query",
26474	//       "type": "boolean"
26475	//     },
26476	//     "updateMask": {
26477	//       "description": "Field debug mask to support partial updates.",
26478	//       "format": "google-fieldmask",
26479	//       "location": "query",
26480	//       "type": "string"
26481	//     }
26482	//   },
26483	//   "path": "v1/{+name}",
26484	//   "request": {
26485	//     "$ref": "GoogleCloudApigeeV1DebugMask"
26486	//   },
26487	//   "response": {
26488	//     "$ref": "GoogleCloudApigeeV1DebugMask"
26489	//   },
26490	//   "scopes": [
26491	//     "https://www.googleapis.com/auth/cloud-platform"
26492	//   ]
26493	// }
26494
26495}
26496
26497// method id "apigee.organizations.environments.updateEnvironment":
26498
26499type OrganizationsEnvironmentsUpdateEnvironmentCall struct {
26500	s                              *Service
26501	name                           string
26502	googlecloudapigeev1environment *GoogleCloudApigeeV1Environment
26503	urlParams_                     gensupport.URLParams
26504	ctx_                           context.Context
26505	header_                        http.Header
26506}
26507
26508// UpdateEnvironment: Updates an existing environment. When updating
26509// properties, you must pass all existing properties to the API, even if
26510// they are not being changed. If you omit properties from the payload,
26511// the properties are removed. To get the current list of properties for
26512// the environment, use the Get Environment API (get).
26513//
26514// - name: Name of the environment. Use the following structure in your
26515//   request: `organizations/{org}/environments/{env}`.
26516func (r *OrganizationsEnvironmentsService) UpdateEnvironment(name string, googlecloudapigeev1environment *GoogleCloudApigeeV1Environment) *OrganizationsEnvironmentsUpdateEnvironmentCall {
26517	c := &OrganizationsEnvironmentsUpdateEnvironmentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26518	c.name = name
26519	c.googlecloudapigeev1environment = googlecloudapigeev1environment
26520	return c
26521}
26522
26523// Fields allows partial responses to be retrieved. See
26524// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
26525// for more information.
26526func (c *OrganizationsEnvironmentsUpdateEnvironmentCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsUpdateEnvironmentCall {
26527	c.urlParams_.Set("fields", googleapi.CombineFields(s))
26528	return c
26529}
26530
26531// Context sets the context to be used in this call's Do method. Any
26532// pending HTTP request will be aborted if the provided context is
26533// canceled.
26534func (c *OrganizationsEnvironmentsUpdateEnvironmentCall) Context(ctx context.Context) *OrganizationsEnvironmentsUpdateEnvironmentCall {
26535	c.ctx_ = ctx
26536	return c
26537}
26538
26539// Header returns an http.Header that can be modified by the caller to
26540// add HTTP headers to the request.
26541func (c *OrganizationsEnvironmentsUpdateEnvironmentCall) Header() http.Header {
26542	if c.header_ == nil {
26543		c.header_ = make(http.Header)
26544	}
26545	return c.header_
26546}
26547
26548func (c *OrganizationsEnvironmentsUpdateEnvironmentCall) doRequest(alt string) (*http.Response, error) {
26549	reqHeaders := make(http.Header)
26550	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
26551	for k, v := range c.header_ {
26552		reqHeaders[k] = v
26553	}
26554	reqHeaders.Set("User-Agent", c.s.userAgent())
26555	var body io.Reader = nil
26556	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1environment)
26557	if err != nil {
26558		return nil, err
26559	}
26560	reqHeaders.Set("Content-Type", "application/json")
26561	c.urlParams_.Set("alt", alt)
26562	c.urlParams_.Set("prettyPrint", "false")
26563	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
26564	urls += "?" + c.urlParams_.Encode()
26565	req, err := http.NewRequest("POST", urls, body)
26566	if err != nil {
26567		return nil, err
26568	}
26569	req.Header = reqHeaders
26570	googleapi.Expand(req.URL, map[string]string{
26571		"name": c.name,
26572	})
26573	return gensupport.SendRequest(c.ctx_, c.s.client, req)
26574}
26575
26576// Do executes the "apigee.organizations.environments.updateEnvironment" call.
26577// Exactly one of *GoogleCloudApigeeV1Environment or error will be
26578// non-nil. Any non-2xx status code is an error. Response headers are in
26579// either *GoogleCloudApigeeV1Environment.ServerResponse.Header or (if a
26580// response was returned at all) in error.(*googleapi.Error).Header. Use
26581// googleapi.IsNotModified to check whether the returned error was
26582// because http.StatusNotModified was returned.
26583func (c *OrganizationsEnvironmentsUpdateEnvironmentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Environment, error) {
26584	gensupport.SetOptions(c.urlParams_, opts...)
26585	res, err := c.doRequest("json")
26586	if res != nil && res.StatusCode == http.StatusNotModified {
26587		if res.Body != nil {
26588			res.Body.Close()
26589		}
26590		return nil, &googleapi.Error{
26591			Code:   res.StatusCode,
26592			Header: res.Header,
26593		}
26594	}
26595	if err != nil {
26596		return nil, err
26597	}
26598	defer googleapi.CloseBody(res)
26599	if err := googleapi.CheckResponse(res); err != nil {
26600		return nil, err
26601	}
26602	ret := &GoogleCloudApigeeV1Environment{
26603		ServerResponse: googleapi.ServerResponse{
26604			Header:         res.Header,
26605			HTTPStatusCode: res.StatusCode,
26606		},
26607	}
26608	target := &ret
26609	if err := gensupport.DecodeResponse(target, res); err != nil {
26610		return nil, err
26611	}
26612	return ret, nil
26613	// {
26614	//   "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).",
26615	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}",
26616	//   "httpMethod": "POST",
26617	//   "id": "apigee.organizations.environments.updateEnvironment",
26618	//   "parameterOrder": [
26619	//     "name"
26620	//   ],
26621	//   "parameters": {
26622	//     "name": {
26623	//       "description": "Required. Name of the environment. Use the following structure in your request: `organizations/{org}/environments/{env}`",
26624	//       "location": "path",
26625	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
26626	//       "required": true,
26627	//       "type": "string"
26628	//     }
26629	//   },
26630	//   "path": "v1/{+name}",
26631	//   "request": {
26632	//     "$ref": "GoogleCloudApigeeV1Environment"
26633	//   },
26634	//   "response": {
26635	//     "$ref": "GoogleCloudApigeeV1Environment"
26636	//   },
26637	//   "scopes": [
26638	//     "https://www.googleapis.com/auth/cloud-platform"
26639	//   ]
26640	// }
26641
26642}
26643
26644// method id "apigee.organizations.environments.updateTraceConfig":
26645
26646type OrganizationsEnvironmentsUpdateTraceConfigCall struct {
26647	s                              *Service
26648	name                           string
26649	googlecloudapigeev1traceconfig *GoogleCloudApigeeV1TraceConfig
26650	urlParams_                     gensupport.URLParams
26651	ctx_                           context.Context
26652	header_                        http.Header
26653}
26654
26655// UpdateTraceConfig: Updates the trace configurations in an
26656// environment. Note that the repeated fields have replace semantics
26657// when included in the field mask and that they will be overwritten by
26658// the value of the fields in the request body.
26659//
26660// - name: Name of the trace configuration. Use the following structure
26661//   in your request: "organizations/*/environments/*/traceConfig".
26662func (r *OrganizationsEnvironmentsService) UpdateTraceConfig(name string, googlecloudapigeev1traceconfig *GoogleCloudApigeeV1TraceConfig) *OrganizationsEnvironmentsUpdateTraceConfigCall {
26663	c := &OrganizationsEnvironmentsUpdateTraceConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26664	c.name = name
26665	c.googlecloudapigeev1traceconfig = googlecloudapigeev1traceconfig
26666	return c
26667}
26668
26669// UpdateMask sets the optional parameter "updateMask": List of fields
26670// to be updated.
26671func (c *OrganizationsEnvironmentsUpdateTraceConfigCall) UpdateMask(updateMask string) *OrganizationsEnvironmentsUpdateTraceConfigCall {
26672	c.urlParams_.Set("updateMask", updateMask)
26673	return c
26674}
26675
26676// Fields allows partial responses to be retrieved. See
26677// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
26678// for more information.
26679func (c *OrganizationsEnvironmentsUpdateTraceConfigCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsUpdateTraceConfigCall {
26680	c.urlParams_.Set("fields", googleapi.CombineFields(s))
26681	return c
26682}
26683
26684// Context sets the context to be used in this call's Do method. Any
26685// pending HTTP request will be aborted if the provided context is
26686// canceled.
26687func (c *OrganizationsEnvironmentsUpdateTraceConfigCall) Context(ctx context.Context) *OrganizationsEnvironmentsUpdateTraceConfigCall {
26688	c.ctx_ = ctx
26689	return c
26690}
26691
26692// Header returns an http.Header that can be modified by the caller to
26693// add HTTP headers to the request.
26694func (c *OrganizationsEnvironmentsUpdateTraceConfigCall) Header() http.Header {
26695	if c.header_ == nil {
26696		c.header_ = make(http.Header)
26697	}
26698	return c.header_
26699}
26700
26701func (c *OrganizationsEnvironmentsUpdateTraceConfigCall) doRequest(alt string) (*http.Response, error) {
26702	reqHeaders := make(http.Header)
26703	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
26704	for k, v := range c.header_ {
26705		reqHeaders[k] = v
26706	}
26707	reqHeaders.Set("User-Agent", c.s.userAgent())
26708	var body io.Reader = nil
26709	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1traceconfig)
26710	if err != nil {
26711		return nil, err
26712	}
26713	reqHeaders.Set("Content-Type", "application/json")
26714	c.urlParams_.Set("alt", alt)
26715	c.urlParams_.Set("prettyPrint", "false")
26716	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
26717	urls += "?" + c.urlParams_.Encode()
26718	req, err := http.NewRequest("PATCH", urls, body)
26719	if err != nil {
26720		return nil, err
26721	}
26722	req.Header = reqHeaders
26723	googleapi.Expand(req.URL, map[string]string{
26724		"name": c.name,
26725	})
26726	return gensupport.SendRequest(c.ctx_, c.s.client, req)
26727}
26728
26729// Do executes the "apigee.organizations.environments.updateTraceConfig" call.
26730// Exactly one of *GoogleCloudApigeeV1TraceConfig or error will be
26731// non-nil. Any non-2xx status code is an error. Response headers are in
26732// either *GoogleCloudApigeeV1TraceConfig.ServerResponse.Header or (if a
26733// response was returned at all) in error.(*googleapi.Error).Header. Use
26734// googleapi.IsNotModified to check whether the returned error was
26735// because http.StatusNotModified was returned.
26736func (c *OrganizationsEnvironmentsUpdateTraceConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TraceConfig, error) {
26737	gensupport.SetOptions(c.urlParams_, opts...)
26738	res, err := c.doRequest("json")
26739	if res != nil && res.StatusCode == http.StatusNotModified {
26740		if res.Body != nil {
26741			res.Body.Close()
26742		}
26743		return nil, &googleapi.Error{
26744			Code:   res.StatusCode,
26745			Header: res.Header,
26746		}
26747	}
26748	if err != nil {
26749		return nil, err
26750	}
26751	defer googleapi.CloseBody(res)
26752	if err := googleapi.CheckResponse(res); err != nil {
26753		return nil, err
26754	}
26755	ret := &GoogleCloudApigeeV1TraceConfig{
26756		ServerResponse: googleapi.ServerResponse{
26757			Header:         res.Header,
26758			HTTPStatusCode: res.StatusCode,
26759		},
26760	}
26761	target := &ret
26762	if err := gensupport.DecodeResponse(target, res); err != nil {
26763		return nil, err
26764	}
26765	return ret, nil
26766	// {
26767	//   "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.",
26768	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/traceConfig",
26769	//   "httpMethod": "PATCH",
26770	//   "id": "apigee.organizations.environments.updateTraceConfig",
26771	//   "parameterOrder": [
26772	//     "name"
26773	//   ],
26774	//   "parameters": {
26775	//     "name": {
26776	//       "description": "Required. Name of the trace configuration. Use the following structure in your request: \"organizations/*/environments/*/traceConfig\".",
26777	//       "location": "path",
26778	//       "pattern": "^organizations/[^/]+/environments/[^/]+/traceConfig$",
26779	//       "required": true,
26780	//       "type": "string"
26781	//     },
26782	//     "updateMask": {
26783	//       "description": "List of fields to be updated.",
26784	//       "format": "google-fieldmask",
26785	//       "location": "query",
26786	//       "type": "string"
26787	//     }
26788	//   },
26789	//   "path": "v1/{+name}",
26790	//   "request": {
26791	//     "$ref": "GoogleCloudApigeeV1TraceConfig"
26792	//   },
26793	//   "response": {
26794	//     "$ref": "GoogleCloudApigeeV1TraceConfig"
26795	//   },
26796	//   "scopes": [
26797	//     "https://www.googleapis.com/auth/cloud-platform"
26798	//   ]
26799	// }
26800
26801}
26802
26803// method id "apigee.organizations.environments.analytics.admin.getSchemav2":
26804
26805type OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call struct {
26806	s            *Service
26807	name         string
26808	urlParams_   gensupport.URLParams
26809	ifNoneMatch_ string
26810	ctx_         context.Context
26811	header_      http.Header
26812}
26813
26814// GetSchemav2: Gets a list of metrics and dimensions that can be used
26815// to create analytics queries and reports. Each schema element contains
26816// the name of the field, its associated type, and a flag indicating
26817// whether it is a standard or custom field.
26818//
26819// - name: Path to the schema. Use the following structure in your
26820//   request:
26821//   `organizations/{org}/environments/{env}/analytics/admin/schemav2`.
26822func (r *OrganizationsEnvironmentsAnalyticsAdminService) GetSchemav2(name string) *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call {
26823	c := &OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call{s: r.s, urlParams_: make(gensupport.URLParams)}
26824	c.name = name
26825	return c
26826}
26827
26828// DisableCache sets the optional parameter "disableCache": Flag that
26829// specifies whether the schema is be read from the database or cache.
26830// Set to `true` to read the schema from the database. Defaults to
26831// cache.
26832func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) DisableCache(disableCache bool) *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call {
26833	c.urlParams_.Set("disableCache", fmt.Sprint(disableCache))
26834	return c
26835}
26836
26837// Type sets the optional parameter "type": Required. Name of the
26838// dataset for which you want to retrieve the schema. For example:
26839// `fact` or `agg_cus1`
26840func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) Type(type_ string) *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call {
26841	c.urlParams_.Set("type", type_)
26842	return c
26843}
26844
26845// Fields allows partial responses to be retrieved. See
26846// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
26847// for more information.
26848func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call {
26849	c.urlParams_.Set("fields", googleapi.CombineFields(s))
26850	return c
26851}
26852
26853// IfNoneMatch sets the optional parameter which makes the operation
26854// fail if the object's ETag matches the given value. This is useful for
26855// getting updates only after the object has changed since the last
26856// request. Use googleapi.IsNotModified to check whether the response
26857// error from Do is the result of In-None-Match.
26858func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call {
26859	c.ifNoneMatch_ = entityTag
26860	return c
26861}
26862
26863// Context sets the context to be used in this call's Do method. Any
26864// pending HTTP request will be aborted if the provided context is
26865// canceled.
26866func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) Context(ctx context.Context) *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call {
26867	c.ctx_ = ctx
26868	return c
26869}
26870
26871// Header returns an http.Header that can be modified by the caller to
26872// add HTTP headers to the request.
26873func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) Header() http.Header {
26874	if c.header_ == nil {
26875		c.header_ = make(http.Header)
26876	}
26877	return c.header_
26878}
26879
26880func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) doRequest(alt string) (*http.Response, error) {
26881	reqHeaders := make(http.Header)
26882	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
26883	for k, v := range c.header_ {
26884		reqHeaders[k] = v
26885	}
26886	reqHeaders.Set("User-Agent", c.s.userAgent())
26887	if c.ifNoneMatch_ != "" {
26888		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
26889	}
26890	var body io.Reader = nil
26891	c.urlParams_.Set("alt", alt)
26892	c.urlParams_.Set("prettyPrint", "false")
26893	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
26894	urls += "?" + c.urlParams_.Encode()
26895	req, err := http.NewRequest("GET", urls, body)
26896	if err != nil {
26897		return nil, err
26898	}
26899	req.Header = reqHeaders
26900	googleapi.Expand(req.URL, map[string]string{
26901		"name": c.name,
26902	})
26903	return gensupport.SendRequest(c.ctx_, c.s.client, req)
26904}
26905
26906// Do executes the "apigee.organizations.environments.analytics.admin.getSchemav2" call.
26907// Exactly one of *GoogleCloudApigeeV1Schema or error will be non-nil.
26908// Any non-2xx status code is an error. Response headers are in either
26909// *GoogleCloudApigeeV1Schema.ServerResponse.Header or (if a response
26910// was returned at all) in error.(*googleapi.Error).Header. Use
26911// googleapi.IsNotModified to check whether the returned error was
26912// because http.StatusNotModified was returned.
26913func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Schema, error) {
26914	gensupport.SetOptions(c.urlParams_, opts...)
26915	res, err := c.doRequest("json")
26916	if res != nil && res.StatusCode == http.StatusNotModified {
26917		if res.Body != nil {
26918			res.Body.Close()
26919		}
26920		return nil, &googleapi.Error{
26921			Code:   res.StatusCode,
26922			Header: res.Header,
26923		}
26924	}
26925	if err != nil {
26926		return nil, err
26927	}
26928	defer googleapi.CloseBody(res)
26929	if err := googleapi.CheckResponse(res); err != nil {
26930		return nil, err
26931	}
26932	ret := &GoogleCloudApigeeV1Schema{
26933		ServerResponse: googleapi.ServerResponse{
26934			Header:         res.Header,
26935			HTTPStatusCode: res.StatusCode,
26936		},
26937	}
26938	target := &ret
26939	if err := gensupport.DecodeResponse(target, res); err != nil {
26940		return nil, err
26941	}
26942	return ret, nil
26943	// {
26944	//   "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.",
26945	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/analytics/admin/schemav2",
26946	//   "httpMethod": "GET",
26947	//   "id": "apigee.organizations.environments.analytics.admin.getSchemav2",
26948	//   "parameterOrder": [
26949	//     "name"
26950	//   ],
26951	//   "parameters": {
26952	//     "disableCache": {
26953	//       "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.",
26954	//       "location": "query",
26955	//       "type": "boolean"
26956	//     },
26957	//     "name": {
26958	//       "description": "Required. Path to the schema. Use the following structure in your request: `organizations/{org}/environments/{env}/analytics/admin/schemav2`.",
26959	//       "location": "path",
26960	//       "pattern": "^organizations/[^/]+/environments/[^/]+/analytics/admin/schemav2$",
26961	//       "required": true,
26962	//       "type": "string"
26963	//     },
26964	//     "type": {
26965	//       "description": "Required. Name of the dataset for which you want to retrieve the schema. For example: `fact` or `agg_cus1`",
26966	//       "location": "query",
26967	//       "type": "string"
26968	//     }
26969	//   },
26970	//   "path": "v1/{+name}",
26971	//   "response": {
26972	//     "$ref": "GoogleCloudApigeeV1Schema"
26973	//   },
26974	//   "scopes": [
26975	//     "https://www.googleapis.com/auth/cloud-platform"
26976	//   ]
26977	// }
26978
26979}
26980
26981// method id "apigee.organizations.environments.analytics.exports.create":
26982
26983type OrganizationsEnvironmentsAnalyticsExportsCreateCall struct {
26984	s                                *Service
26985	parent                           string
26986	googlecloudapigeev1exportrequest *GoogleCloudApigeeV1ExportRequest
26987	urlParams_                       gensupport.URLParams
26988	ctx_                             context.Context
26989	header_                          http.Header
26990}
26991
26992// Create: Submit a data export job to be processed in the background.
26993// If the request is successful, the API returns a 201 status, a URI
26994// that can be used to retrieve the status of the export job, and the
26995// `state` value of "enqueued".
26996//
26997// - parent: Names of the parent organization and environment. Must be
26998//   of the form `organizations/{org}/environments/{env}`.
26999func (r *OrganizationsEnvironmentsAnalyticsExportsService) Create(parent string, googlecloudapigeev1exportrequest *GoogleCloudApigeeV1ExportRequest) *OrganizationsEnvironmentsAnalyticsExportsCreateCall {
27000	c := &OrganizationsEnvironmentsAnalyticsExportsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27001	c.parent = parent
27002	c.googlecloudapigeev1exportrequest = googlecloudapigeev1exportrequest
27003	return c
27004}
27005
27006// Fields allows partial responses to be retrieved. See
27007// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
27008// for more information.
27009func (c *OrganizationsEnvironmentsAnalyticsExportsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsAnalyticsExportsCreateCall {
27010	c.urlParams_.Set("fields", googleapi.CombineFields(s))
27011	return c
27012}
27013
27014// Context sets the context to be used in this call's Do method. Any
27015// pending HTTP request will be aborted if the provided context is
27016// canceled.
27017func (c *OrganizationsEnvironmentsAnalyticsExportsCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsAnalyticsExportsCreateCall {
27018	c.ctx_ = ctx
27019	return c
27020}
27021
27022// Header returns an http.Header that can be modified by the caller to
27023// add HTTP headers to the request.
27024func (c *OrganizationsEnvironmentsAnalyticsExportsCreateCall) Header() http.Header {
27025	if c.header_ == nil {
27026		c.header_ = make(http.Header)
27027	}
27028	return c.header_
27029}
27030
27031func (c *OrganizationsEnvironmentsAnalyticsExportsCreateCall) doRequest(alt string) (*http.Response, error) {
27032	reqHeaders := make(http.Header)
27033	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
27034	for k, v := range c.header_ {
27035		reqHeaders[k] = v
27036	}
27037	reqHeaders.Set("User-Agent", c.s.userAgent())
27038	var body io.Reader = nil
27039	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1exportrequest)
27040	if err != nil {
27041		return nil, err
27042	}
27043	reqHeaders.Set("Content-Type", "application/json")
27044	c.urlParams_.Set("alt", alt)
27045	c.urlParams_.Set("prettyPrint", "false")
27046	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/analytics/exports")
27047	urls += "?" + c.urlParams_.Encode()
27048	req, err := http.NewRequest("POST", urls, body)
27049	if err != nil {
27050		return nil, err
27051	}
27052	req.Header = reqHeaders
27053	googleapi.Expand(req.URL, map[string]string{
27054		"parent": c.parent,
27055	})
27056	return gensupport.SendRequest(c.ctx_, c.s.client, req)
27057}
27058
27059// Do executes the "apigee.organizations.environments.analytics.exports.create" call.
27060// Exactly one of *GoogleCloudApigeeV1Export or error will be non-nil.
27061// Any non-2xx status code is an error. Response headers are in either
27062// *GoogleCloudApigeeV1Export.ServerResponse.Header or (if a response
27063// was returned at all) in error.(*googleapi.Error).Header. Use
27064// googleapi.IsNotModified to check whether the returned error was
27065// because http.StatusNotModified was returned.
27066func (c *OrganizationsEnvironmentsAnalyticsExportsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Export, error) {
27067	gensupport.SetOptions(c.urlParams_, opts...)
27068	res, err := c.doRequest("json")
27069	if res != nil && res.StatusCode == http.StatusNotModified {
27070		if res.Body != nil {
27071			res.Body.Close()
27072		}
27073		return nil, &googleapi.Error{
27074			Code:   res.StatusCode,
27075			Header: res.Header,
27076		}
27077	}
27078	if err != nil {
27079		return nil, err
27080	}
27081	defer googleapi.CloseBody(res)
27082	if err := googleapi.CheckResponse(res); err != nil {
27083		return nil, err
27084	}
27085	ret := &GoogleCloudApigeeV1Export{
27086		ServerResponse: googleapi.ServerResponse{
27087			Header:         res.Header,
27088			HTTPStatusCode: res.StatusCode,
27089		},
27090	}
27091	target := &ret
27092	if err := gensupport.DecodeResponse(target, res); err != nil {
27093		return nil, err
27094	}
27095	return ret, nil
27096	// {
27097	//   "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\".",
27098	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/analytics/exports",
27099	//   "httpMethod": "POST",
27100	//   "id": "apigee.organizations.environments.analytics.exports.create",
27101	//   "parameterOrder": [
27102	//     "parent"
27103	//   ],
27104	//   "parameters": {
27105	//     "parent": {
27106	//       "description": "Required. Names of the parent organization and environment. Must be of the form `organizations/{org}/environments/{env}`.",
27107	//       "location": "path",
27108	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
27109	//       "required": true,
27110	//       "type": "string"
27111	//     }
27112	//   },
27113	//   "path": "v1/{+parent}/analytics/exports",
27114	//   "request": {
27115	//     "$ref": "GoogleCloudApigeeV1ExportRequest"
27116	//   },
27117	//   "response": {
27118	//     "$ref": "GoogleCloudApigeeV1Export"
27119	//   },
27120	//   "scopes": [
27121	//     "https://www.googleapis.com/auth/cloud-platform"
27122	//   ]
27123	// }
27124
27125}
27126
27127// method id "apigee.organizations.environments.analytics.exports.get":
27128
27129type OrganizationsEnvironmentsAnalyticsExportsGetCall struct {
27130	s            *Service
27131	name         string
27132	urlParams_   gensupport.URLParams
27133	ifNoneMatch_ string
27134	ctx_         context.Context
27135	header_      http.Header
27136}
27137
27138// Get: Gets the details and status of an analytics export job. If the
27139// export job is still in progress, its `state` is set to "running".
27140// After the export job has completed successfully, its `state` is set
27141// to "completed". If the export job fails, its `state` is set to
27142// `failed`.
27143//
27144// - name: Resource name of the export to get.
27145func (r *OrganizationsEnvironmentsAnalyticsExportsService) Get(name string) *OrganizationsEnvironmentsAnalyticsExportsGetCall {
27146	c := &OrganizationsEnvironmentsAnalyticsExportsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27147	c.name = name
27148	return c
27149}
27150
27151// Fields allows partial responses to be retrieved. See
27152// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
27153// for more information.
27154func (c *OrganizationsEnvironmentsAnalyticsExportsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsAnalyticsExportsGetCall {
27155	c.urlParams_.Set("fields", googleapi.CombineFields(s))
27156	return c
27157}
27158
27159// IfNoneMatch sets the optional parameter which makes the operation
27160// fail if the object's ETag matches the given value. This is useful for
27161// getting updates only after the object has changed since the last
27162// request. Use googleapi.IsNotModified to check whether the response
27163// error from Do is the result of In-None-Match.
27164func (c *OrganizationsEnvironmentsAnalyticsExportsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsAnalyticsExportsGetCall {
27165	c.ifNoneMatch_ = entityTag
27166	return c
27167}
27168
27169// Context sets the context to be used in this call's Do method. Any
27170// pending HTTP request will be aborted if the provided context is
27171// canceled.
27172func (c *OrganizationsEnvironmentsAnalyticsExportsGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsAnalyticsExportsGetCall {
27173	c.ctx_ = ctx
27174	return c
27175}
27176
27177// Header returns an http.Header that can be modified by the caller to
27178// add HTTP headers to the request.
27179func (c *OrganizationsEnvironmentsAnalyticsExportsGetCall) Header() http.Header {
27180	if c.header_ == nil {
27181		c.header_ = make(http.Header)
27182	}
27183	return c.header_
27184}
27185
27186func (c *OrganizationsEnvironmentsAnalyticsExportsGetCall) doRequest(alt string) (*http.Response, error) {
27187	reqHeaders := make(http.Header)
27188	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
27189	for k, v := range c.header_ {
27190		reqHeaders[k] = v
27191	}
27192	reqHeaders.Set("User-Agent", c.s.userAgent())
27193	if c.ifNoneMatch_ != "" {
27194		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
27195	}
27196	var body io.Reader = nil
27197	c.urlParams_.Set("alt", alt)
27198	c.urlParams_.Set("prettyPrint", "false")
27199	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
27200	urls += "?" + c.urlParams_.Encode()
27201	req, err := http.NewRequest("GET", urls, body)
27202	if err != nil {
27203		return nil, err
27204	}
27205	req.Header = reqHeaders
27206	googleapi.Expand(req.URL, map[string]string{
27207		"name": c.name,
27208	})
27209	return gensupport.SendRequest(c.ctx_, c.s.client, req)
27210}
27211
27212// Do executes the "apigee.organizations.environments.analytics.exports.get" call.
27213// Exactly one of *GoogleCloudApigeeV1Export or error will be non-nil.
27214// Any non-2xx status code is an error. Response headers are in either
27215// *GoogleCloudApigeeV1Export.ServerResponse.Header or (if a response
27216// was returned at all) in error.(*googleapi.Error).Header. Use
27217// googleapi.IsNotModified to check whether the returned error was
27218// because http.StatusNotModified was returned.
27219func (c *OrganizationsEnvironmentsAnalyticsExportsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Export, error) {
27220	gensupport.SetOptions(c.urlParams_, opts...)
27221	res, err := c.doRequest("json")
27222	if res != nil && res.StatusCode == http.StatusNotModified {
27223		if res.Body != nil {
27224			res.Body.Close()
27225		}
27226		return nil, &googleapi.Error{
27227			Code:   res.StatusCode,
27228			Header: res.Header,
27229		}
27230	}
27231	if err != nil {
27232		return nil, err
27233	}
27234	defer googleapi.CloseBody(res)
27235	if err := googleapi.CheckResponse(res); err != nil {
27236		return nil, err
27237	}
27238	ret := &GoogleCloudApigeeV1Export{
27239		ServerResponse: googleapi.ServerResponse{
27240			Header:         res.Header,
27241			HTTPStatusCode: res.StatusCode,
27242		},
27243	}
27244	target := &ret
27245	if err := gensupport.DecodeResponse(target, res); err != nil {
27246		return nil, err
27247	}
27248	return ret, nil
27249	// {
27250	//   "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`.",
27251	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/analytics/exports/{exportsId}",
27252	//   "httpMethod": "GET",
27253	//   "id": "apigee.organizations.environments.analytics.exports.get",
27254	//   "parameterOrder": [
27255	//     "name"
27256	//   ],
27257	//   "parameters": {
27258	//     "name": {
27259	//       "description": "Required. Resource name of the export to get.",
27260	//       "location": "path",
27261	//       "pattern": "^organizations/[^/]+/environments/[^/]+/analytics/exports/[^/]+$",
27262	//       "required": true,
27263	//       "type": "string"
27264	//     }
27265	//   },
27266	//   "path": "v1/{+name}",
27267	//   "response": {
27268	//     "$ref": "GoogleCloudApigeeV1Export"
27269	//   },
27270	//   "scopes": [
27271	//     "https://www.googleapis.com/auth/cloud-platform"
27272	//   ]
27273	// }
27274
27275}
27276
27277// method id "apigee.organizations.environments.analytics.exports.list":
27278
27279type OrganizationsEnvironmentsAnalyticsExportsListCall struct {
27280	s            *Service
27281	parent       string
27282	urlParams_   gensupport.URLParams
27283	ifNoneMatch_ string
27284	ctx_         context.Context
27285	header_      http.Header
27286}
27287
27288// List: Lists the details and status of all analytics export jobs
27289// belonging to the parent organization and environment.
27290//
27291// - parent: Names of the parent organization and environment. Must be
27292//   of the form `organizations/{org}/environments/{env}`.
27293func (r *OrganizationsEnvironmentsAnalyticsExportsService) List(parent string) *OrganizationsEnvironmentsAnalyticsExportsListCall {
27294	c := &OrganizationsEnvironmentsAnalyticsExportsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27295	c.parent = parent
27296	return c
27297}
27298
27299// Fields allows partial responses to be retrieved. See
27300// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
27301// for more information.
27302func (c *OrganizationsEnvironmentsAnalyticsExportsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsAnalyticsExportsListCall {
27303	c.urlParams_.Set("fields", googleapi.CombineFields(s))
27304	return c
27305}
27306
27307// IfNoneMatch sets the optional parameter which makes the operation
27308// fail if the object's ETag matches the given value. This is useful for
27309// getting updates only after the object has changed since the last
27310// request. Use googleapi.IsNotModified to check whether the response
27311// error from Do is the result of In-None-Match.
27312func (c *OrganizationsEnvironmentsAnalyticsExportsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsAnalyticsExportsListCall {
27313	c.ifNoneMatch_ = entityTag
27314	return c
27315}
27316
27317// Context sets the context to be used in this call's Do method. Any
27318// pending HTTP request will be aborted if the provided context is
27319// canceled.
27320func (c *OrganizationsEnvironmentsAnalyticsExportsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsAnalyticsExportsListCall {
27321	c.ctx_ = ctx
27322	return c
27323}
27324
27325// Header returns an http.Header that can be modified by the caller to
27326// add HTTP headers to the request.
27327func (c *OrganizationsEnvironmentsAnalyticsExportsListCall) Header() http.Header {
27328	if c.header_ == nil {
27329		c.header_ = make(http.Header)
27330	}
27331	return c.header_
27332}
27333
27334func (c *OrganizationsEnvironmentsAnalyticsExportsListCall) doRequest(alt string) (*http.Response, error) {
27335	reqHeaders := make(http.Header)
27336	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
27337	for k, v := range c.header_ {
27338		reqHeaders[k] = v
27339	}
27340	reqHeaders.Set("User-Agent", c.s.userAgent())
27341	if c.ifNoneMatch_ != "" {
27342		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
27343	}
27344	var body io.Reader = nil
27345	c.urlParams_.Set("alt", alt)
27346	c.urlParams_.Set("prettyPrint", "false")
27347	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/analytics/exports")
27348	urls += "?" + c.urlParams_.Encode()
27349	req, err := http.NewRequest("GET", urls, body)
27350	if err != nil {
27351		return nil, err
27352	}
27353	req.Header = reqHeaders
27354	googleapi.Expand(req.URL, map[string]string{
27355		"parent": c.parent,
27356	})
27357	return gensupport.SendRequest(c.ctx_, c.s.client, req)
27358}
27359
27360// Do executes the "apigee.organizations.environments.analytics.exports.list" call.
27361// Exactly one of *GoogleCloudApigeeV1ListExportsResponse or error will
27362// be non-nil. Any non-2xx status code is an error. Response headers are
27363// in either
27364// *GoogleCloudApigeeV1ListExportsResponse.ServerResponse.Header or (if
27365// a response was returned at all) in error.(*googleapi.Error).Header.
27366// Use googleapi.IsNotModified to check whether the returned error was
27367// because http.StatusNotModified was returned.
27368func (c *OrganizationsEnvironmentsAnalyticsExportsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListExportsResponse, error) {
27369	gensupport.SetOptions(c.urlParams_, opts...)
27370	res, err := c.doRequest("json")
27371	if res != nil && res.StatusCode == http.StatusNotModified {
27372		if res.Body != nil {
27373			res.Body.Close()
27374		}
27375		return nil, &googleapi.Error{
27376			Code:   res.StatusCode,
27377			Header: res.Header,
27378		}
27379	}
27380	if err != nil {
27381		return nil, err
27382	}
27383	defer googleapi.CloseBody(res)
27384	if err := googleapi.CheckResponse(res); err != nil {
27385		return nil, err
27386	}
27387	ret := &GoogleCloudApigeeV1ListExportsResponse{
27388		ServerResponse: googleapi.ServerResponse{
27389			Header:         res.Header,
27390			HTTPStatusCode: res.StatusCode,
27391		},
27392	}
27393	target := &ret
27394	if err := gensupport.DecodeResponse(target, res); err != nil {
27395		return nil, err
27396	}
27397	return ret, nil
27398	// {
27399	//   "description": "Lists the details and status of all analytics export jobs belonging to the parent organization and environment.",
27400	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/analytics/exports",
27401	//   "httpMethod": "GET",
27402	//   "id": "apigee.organizations.environments.analytics.exports.list",
27403	//   "parameterOrder": [
27404	//     "parent"
27405	//   ],
27406	//   "parameters": {
27407	//     "parent": {
27408	//       "description": "Required. Names of the parent organization and environment. Must be of the form `organizations/{org}/environments/{env}`.",
27409	//       "location": "path",
27410	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
27411	//       "required": true,
27412	//       "type": "string"
27413	//     }
27414	//   },
27415	//   "path": "v1/{+parent}/analytics/exports",
27416	//   "response": {
27417	//     "$ref": "GoogleCloudApigeeV1ListExportsResponse"
27418	//   },
27419	//   "scopes": [
27420	//     "https://www.googleapis.com/auth/cloud-platform"
27421	//   ]
27422	// }
27423
27424}
27425
27426// method id "apigee.organizations.environments.apis.deployments.list":
27427
27428type OrganizationsEnvironmentsApisDeploymentsListCall struct {
27429	s            *Service
27430	parent       string
27431	urlParams_   gensupport.URLParams
27432	ifNoneMatch_ string
27433	ctx_         context.Context
27434	header_      http.Header
27435}
27436
27437// List: Lists all deployments of an API proxy in an environment.
27438//
27439// - parent: Name representing an API proxy in an environment in the
27440//   following format:
27441//   `organizations/{org}/environments/{env}/apis/{api}`.
27442func (r *OrganizationsEnvironmentsApisDeploymentsService) List(parent string) *OrganizationsEnvironmentsApisDeploymentsListCall {
27443	c := &OrganizationsEnvironmentsApisDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27444	c.parent = parent
27445	return c
27446}
27447
27448// Fields allows partial responses to be retrieved. See
27449// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
27450// for more information.
27451func (c *OrganizationsEnvironmentsApisDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisDeploymentsListCall {
27452	c.urlParams_.Set("fields", googleapi.CombineFields(s))
27453	return c
27454}
27455
27456// IfNoneMatch sets the optional parameter which makes the operation
27457// fail if the object's ETag matches the given value. This is useful for
27458// getting updates only after the object has changed since the last
27459// request. Use googleapi.IsNotModified to check whether the response
27460// error from Do is the result of In-None-Match.
27461func (c *OrganizationsEnvironmentsApisDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsApisDeploymentsListCall {
27462	c.ifNoneMatch_ = entityTag
27463	return c
27464}
27465
27466// Context sets the context to be used in this call's Do method. Any
27467// pending HTTP request will be aborted if the provided context is
27468// canceled.
27469func (c *OrganizationsEnvironmentsApisDeploymentsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisDeploymentsListCall {
27470	c.ctx_ = ctx
27471	return c
27472}
27473
27474// Header returns an http.Header that can be modified by the caller to
27475// add HTTP headers to the request.
27476func (c *OrganizationsEnvironmentsApisDeploymentsListCall) Header() http.Header {
27477	if c.header_ == nil {
27478		c.header_ = make(http.Header)
27479	}
27480	return c.header_
27481}
27482
27483func (c *OrganizationsEnvironmentsApisDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
27484	reqHeaders := make(http.Header)
27485	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
27486	for k, v := range c.header_ {
27487		reqHeaders[k] = v
27488	}
27489	reqHeaders.Set("User-Agent", c.s.userAgent())
27490	if c.ifNoneMatch_ != "" {
27491		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
27492	}
27493	var body io.Reader = nil
27494	c.urlParams_.Set("alt", alt)
27495	c.urlParams_.Set("prettyPrint", "false")
27496	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
27497	urls += "?" + c.urlParams_.Encode()
27498	req, err := http.NewRequest("GET", urls, body)
27499	if err != nil {
27500		return nil, err
27501	}
27502	req.Header = reqHeaders
27503	googleapi.Expand(req.URL, map[string]string{
27504		"parent": c.parent,
27505	})
27506	return gensupport.SendRequest(c.ctx_, c.s.client, req)
27507}
27508
27509// Do executes the "apigee.organizations.environments.apis.deployments.list" call.
27510// Exactly one of *GoogleCloudApigeeV1ListDeploymentsResponse or error
27511// will be non-nil. Any non-2xx status code is an error. Response
27512// headers are in either
27513// *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or
27514// (if a response was returned at all) in
27515// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
27516// whether the returned error was because http.StatusNotModified was
27517// returned.
27518func (c *OrganizationsEnvironmentsApisDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
27519	gensupport.SetOptions(c.urlParams_, opts...)
27520	res, err := c.doRequest("json")
27521	if res != nil && res.StatusCode == http.StatusNotModified {
27522		if res.Body != nil {
27523			res.Body.Close()
27524		}
27525		return nil, &googleapi.Error{
27526			Code:   res.StatusCode,
27527			Header: res.Header,
27528		}
27529	}
27530	if err != nil {
27531		return nil, err
27532	}
27533	defer googleapi.CloseBody(res)
27534	if err := googleapi.CheckResponse(res); err != nil {
27535		return nil, err
27536	}
27537	ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
27538		ServerResponse: googleapi.ServerResponse{
27539			Header:         res.Header,
27540			HTTPStatusCode: res.StatusCode,
27541		},
27542	}
27543	target := &ret
27544	if err := gensupport.DecodeResponse(target, res); err != nil {
27545		return nil, err
27546	}
27547	return ret, nil
27548	// {
27549	//   "description": "Lists all deployments of an API proxy in an environment.",
27550	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/deployments",
27551	//   "httpMethod": "GET",
27552	//   "id": "apigee.organizations.environments.apis.deployments.list",
27553	//   "parameterOrder": [
27554	//     "parent"
27555	//   ],
27556	//   "parameters": {
27557	//     "parent": {
27558	//       "description": "Required. Name representing an API proxy in an environment in the following format: `organizations/{org}/environments/{env}/apis/{api}`",
27559	//       "location": "path",
27560	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+$",
27561	//       "required": true,
27562	//       "type": "string"
27563	//     }
27564	//   },
27565	//   "path": "v1/{+parent}/deployments",
27566	//   "response": {
27567	//     "$ref": "GoogleCloudApigeeV1ListDeploymentsResponse"
27568	//   },
27569	//   "scopes": [
27570	//     "https://www.googleapis.com/auth/cloud-platform"
27571	//   ]
27572	// }
27573
27574}
27575
27576// method id "apigee.organizations.environments.apis.revisions.deploy":
27577
27578type OrganizationsEnvironmentsApisRevisionsDeployCall struct {
27579	s          *Service
27580	name       string
27581	urlParams_ gensupport.URLParams
27582	ctx_       context.Context
27583	header_    http.Header
27584}
27585
27586// Deploy: Deploys a revision of an API proxy. If another revision of
27587// the same API proxy revision is currently deployed, set the `override`
27588// parameter to `true` to have this revision replace the currently
27589// deployed revision. You cannot invoke an API proxy until it has been
27590// deployed to an environment. After you deploy an API proxy revision,
27591// you cannot edit it. To edit the API proxy, you must create and deploy
27592// a new revision. For a request path
27593// `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}/dep
27594// loyments`, two permissions are required: *
27595// `apigee.deployments.create` on the resource
27596// `organizations/{org}/environments/{env}` *
27597// `apigee.proxyrevisions.deploy` on the resource
27598// `organizations/{org}/apis/{api}/revisions/{rev}`
27599//
27600// - name: Name of the API proxy revision deployment in the following
27601//   format:
27602//   `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`.
27603func (r *OrganizationsEnvironmentsApisRevisionsService) Deploy(name string) *OrganizationsEnvironmentsApisRevisionsDeployCall {
27604	c := &OrganizationsEnvironmentsApisRevisionsDeployCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27605	c.name = name
27606	return c
27607}
27608
27609// Override sets the optional parameter "override": Flag that specifies
27610// whether the new deployment replaces other deployed revisions of the
27611// API proxy in the environment. Set `override` to `true` to replace
27612// other deployed revisions. By default, `override` is `false` and the
27613// deployment is rejected if other revisions of the API proxy are
27614// deployed in the environment.
27615func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) Override(override bool) *OrganizationsEnvironmentsApisRevisionsDeployCall {
27616	c.urlParams_.Set("override", fmt.Sprint(override))
27617	return c
27618}
27619
27620// SequencedRollout sets the optional parameter "sequencedRollout": Flag
27621// that specifies whether to enable sequenced rollout. If set to `true`,
27622// a best-effort attempt will be made to roll out the routing rules
27623// corresponding to this deployment and the environment changes to add
27624// this deployment in a safe order. This reduces the risk of downtime
27625// that could be caused by changing the environment group's routing
27626// before the new destination for the affected traffic is ready to
27627// receive it. This should only be necessary if the new deployment will
27628// be capturing traffic from another environment under a shared
27629// environment group or if traffic will be rerouted to a different
27630// environment due to a base path removal. The
27631// GenerateDeployChangeReport API (GenerateDeployChangeReport) may be
27632// used to examine routing changes before issuing the deployment
27633// request, and its response will indicate if a sequenced rollout is
27634// recommended for the deployment.
27635func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) SequencedRollout(sequencedRollout bool) *OrganizationsEnvironmentsApisRevisionsDeployCall {
27636	c.urlParams_.Set("sequencedRollout", fmt.Sprint(sequencedRollout))
27637	return c
27638}
27639
27640// ServiceAccount sets the optional parameter "serviceAccount": Google
27641// Cloud IAM service account. The service account represents the
27642// identity of the deployed proxy, and determines what permissions it
27643// has. The format must be
27644// `{ACCOUNT_ID}@{PROJECT}.iam.gserviceaccount.com`.
27645func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) ServiceAccount(serviceAccount string) *OrganizationsEnvironmentsApisRevisionsDeployCall {
27646	c.urlParams_.Set("serviceAccount", serviceAccount)
27647	return c
27648}
27649
27650// Fields allows partial responses to be retrieved. See
27651// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
27652// for more information.
27653func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDeployCall {
27654	c.urlParams_.Set("fields", googleapi.CombineFields(s))
27655	return c
27656}
27657
27658// Context sets the context to be used in this call's Do method. Any
27659// pending HTTP request will be aborted if the provided context is
27660// canceled.
27661func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDeployCall {
27662	c.ctx_ = ctx
27663	return c
27664}
27665
27666// Header returns an http.Header that can be modified by the caller to
27667// add HTTP headers to the request.
27668func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) Header() http.Header {
27669	if c.header_ == nil {
27670		c.header_ = make(http.Header)
27671	}
27672	return c.header_
27673}
27674
27675func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) doRequest(alt string) (*http.Response, error) {
27676	reqHeaders := make(http.Header)
27677	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
27678	for k, v := range c.header_ {
27679		reqHeaders[k] = v
27680	}
27681	reqHeaders.Set("User-Agent", c.s.userAgent())
27682	var body io.Reader = nil
27683	c.urlParams_.Set("alt", alt)
27684	c.urlParams_.Set("prettyPrint", "false")
27685	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments")
27686	urls += "?" + c.urlParams_.Encode()
27687	req, err := http.NewRequest("POST", urls, body)
27688	if err != nil {
27689		return nil, err
27690	}
27691	req.Header = reqHeaders
27692	googleapi.Expand(req.URL, map[string]string{
27693		"name": c.name,
27694	})
27695	return gensupport.SendRequest(c.ctx_, c.s.client, req)
27696}
27697
27698// Do executes the "apigee.organizations.environments.apis.revisions.deploy" call.
27699// Exactly one of *GoogleCloudApigeeV1Deployment or error will be
27700// non-nil. Any non-2xx status code is an error. Response headers are in
27701// either *GoogleCloudApigeeV1Deployment.ServerResponse.Header or (if a
27702// response was returned at all) in error.(*googleapi.Error).Header. Use
27703// googleapi.IsNotModified to check whether the returned error was
27704// because http.StatusNotModified was returned.
27705func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Deployment, error) {
27706	gensupport.SetOptions(c.urlParams_, opts...)
27707	res, err := c.doRequest("json")
27708	if res != nil && res.StatusCode == http.StatusNotModified {
27709		if res.Body != nil {
27710			res.Body.Close()
27711		}
27712		return nil, &googleapi.Error{
27713			Code:   res.StatusCode,
27714			Header: res.Header,
27715		}
27716	}
27717	if err != nil {
27718		return nil, err
27719	}
27720	defer googleapi.CloseBody(res)
27721	if err := googleapi.CheckResponse(res); err != nil {
27722		return nil, err
27723	}
27724	ret := &GoogleCloudApigeeV1Deployment{
27725		ServerResponse: googleapi.ServerResponse{
27726			Header:         res.Header,
27727			HTTPStatusCode: res.StatusCode,
27728		},
27729	}
27730	target := &ret
27731	if err := gensupport.DecodeResponse(target, res); err != nil {
27732		return nil, err
27733	}
27734	return ret, nil
27735	// {
27736	//   "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}` ",
27737	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/deployments",
27738	//   "httpMethod": "POST",
27739	//   "id": "apigee.organizations.environments.apis.revisions.deploy",
27740	//   "parameterOrder": [
27741	//     "name"
27742	//   ],
27743	//   "parameters": {
27744	//     "name": {
27745	//       "description": "Required. Name of the API proxy revision deployment in the following format: `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`",
27746	//       "location": "path",
27747	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+$",
27748	//       "required": true,
27749	//       "type": "string"
27750	//     },
27751	//     "override": {
27752	//       "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.",
27753	//       "location": "query",
27754	//       "type": "boolean"
27755	//     },
27756	//     "sequencedRollout": {
27757	//       "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.",
27758	//       "location": "query",
27759	//       "type": "boolean"
27760	//     },
27761	//     "serviceAccount": {
27762	//       "description": "Google Cloud IAM service account. The service account represents the identity of the deployed proxy, and determines what permissions it has. The format must be `{ACCOUNT_ID}@{PROJECT}.iam.gserviceaccount.com`.",
27763	//       "location": "query",
27764	//       "type": "string"
27765	//     }
27766	//   },
27767	//   "path": "v1/{+name}/deployments",
27768	//   "response": {
27769	//     "$ref": "GoogleCloudApigeeV1Deployment"
27770	//   },
27771	//   "scopes": [
27772	//     "https://www.googleapis.com/auth/cloud-platform"
27773	//   ]
27774	// }
27775
27776}
27777
27778// method id "apigee.organizations.environments.apis.revisions.getDeployments":
27779
27780type OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall struct {
27781	s            *Service
27782	name         string
27783	urlParams_   gensupport.URLParams
27784	ifNoneMatch_ string
27785	ctx_         context.Context
27786	header_      http.Header
27787}
27788
27789// GetDeployments: Gets the deployment of an API proxy revision and
27790// actual state reported by runtime pods.
27791//
27792// - name: Name representing an API proxy revision in an environment in
27793//   the following format:
27794//   `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`.
27795func (r *OrganizationsEnvironmentsApisRevisionsService) GetDeployments(name string) *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall {
27796	c := &OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27797	c.name = name
27798	return c
27799}
27800
27801// Fields allows partial responses to be retrieved. See
27802// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
27803// for more information.
27804func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall {
27805	c.urlParams_.Set("fields", googleapi.CombineFields(s))
27806	return c
27807}
27808
27809// IfNoneMatch sets the optional parameter which makes the operation
27810// fail if the object's ETag matches the given value. This is useful for
27811// getting updates only after the object has changed since the last
27812// request. Use googleapi.IsNotModified to check whether the response
27813// error from Do is the result of In-None-Match.
27814func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall {
27815	c.ifNoneMatch_ = entityTag
27816	return c
27817}
27818
27819// Context sets the context to be used in this call's Do method. Any
27820// pending HTTP request will be aborted if the provided context is
27821// canceled.
27822func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall {
27823	c.ctx_ = ctx
27824	return c
27825}
27826
27827// Header returns an http.Header that can be modified by the caller to
27828// add HTTP headers to the request.
27829func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) Header() http.Header {
27830	if c.header_ == nil {
27831		c.header_ = make(http.Header)
27832	}
27833	return c.header_
27834}
27835
27836func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) doRequest(alt string) (*http.Response, error) {
27837	reqHeaders := make(http.Header)
27838	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
27839	for k, v := range c.header_ {
27840		reqHeaders[k] = v
27841	}
27842	reqHeaders.Set("User-Agent", c.s.userAgent())
27843	if c.ifNoneMatch_ != "" {
27844		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
27845	}
27846	var body io.Reader = nil
27847	c.urlParams_.Set("alt", alt)
27848	c.urlParams_.Set("prettyPrint", "false")
27849	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments")
27850	urls += "?" + c.urlParams_.Encode()
27851	req, err := http.NewRequest("GET", urls, body)
27852	if err != nil {
27853		return nil, err
27854	}
27855	req.Header = reqHeaders
27856	googleapi.Expand(req.URL, map[string]string{
27857		"name": c.name,
27858	})
27859	return gensupport.SendRequest(c.ctx_, c.s.client, req)
27860}
27861
27862// Do executes the "apigee.organizations.environments.apis.revisions.getDeployments" call.
27863// Exactly one of *GoogleCloudApigeeV1Deployment or error will be
27864// non-nil. Any non-2xx status code is an error. Response headers are in
27865// either *GoogleCloudApigeeV1Deployment.ServerResponse.Header or (if a
27866// response was returned at all) in error.(*googleapi.Error).Header. Use
27867// googleapi.IsNotModified to check whether the returned error was
27868// because http.StatusNotModified was returned.
27869func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Deployment, error) {
27870	gensupport.SetOptions(c.urlParams_, opts...)
27871	res, err := c.doRequest("json")
27872	if res != nil && res.StatusCode == http.StatusNotModified {
27873		if res.Body != nil {
27874			res.Body.Close()
27875		}
27876		return nil, &googleapi.Error{
27877			Code:   res.StatusCode,
27878			Header: res.Header,
27879		}
27880	}
27881	if err != nil {
27882		return nil, err
27883	}
27884	defer googleapi.CloseBody(res)
27885	if err := googleapi.CheckResponse(res); err != nil {
27886		return nil, err
27887	}
27888	ret := &GoogleCloudApigeeV1Deployment{
27889		ServerResponse: googleapi.ServerResponse{
27890			Header:         res.Header,
27891			HTTPStatusCode: res.StatusCode,
27892		},
27893	}
27894	target := &ret
27895	if err := gensupport.DecodeResponse(target, res); err != nil {
27896		return nil, err
27897	}
27898	return ret, nil
27899	// {
27900	//   "description": "Gets the deployment of an API proxy revision and actual state reported by runtime pods.",
27901	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/deployments",
27902	//   "httpMethod": "GET",
27903	//   "id": "apigee.organizations.environments.apis.revisions.getDeployments",
27904	//   "parameterOrder": [
27905	//     "name"
27906	//   ],
27907	//   "parameters": {
27908	//     "name": {
27909	//       "description": "Required. Name representing an API proxy revision in an environment in the following format: `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`",
27910	//       "location": "path",
27911	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+$",
27912	//       "required": true,
27913	//       "type": "string"
27914	//     }
27915	//   },
27916	//   "path": "v1/{+name}/deployments",
27917	//   "response": {
27918	//     "$ref": "GoogleCloudApigeeV1Deployment"
27919	//   },
27920	//   "scopes": [
27921	//     "https://www.googleapis.com/auth/cloud-platform"
27922	//   ]
27923	// }
27924
27925}
27926
27927// method id "apigee.organizations.environments.apis.revisions.undeploy":
27928
27929type OrganizationsEnvironmentsApisRevisionsUndeployCall struct {
27930	s          *Service
27931	name       string
27932	urlParams_ gensupport.URLParams
27933	ctx_       context.Context
27934	header_    http.Header
27935}
27936
27937// Undeploy: Undeploys an API proxy revision from an environment. For a
27938// request path
27939// `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}/dep
27940// loyments`, two permissions are required: *
27941// `apigee.deployments.delete` on the resource
27942// `organizations/{org}/environments/{env}` *
27943// `apigee.proxyrevisions.undeploy` on the resource
27944// `organizations/{org}/apis/{api}/revisions/{rev}`
27945//
27946// - name: Name of the API proxy revision deployment in the following
27947//   format:
27948//   `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`.
27949func (r *OrganizationsEnvironmentsApisRevisionsService) Undeploy(name string) *OrganizationsEnvironmentsApisRevisionsUndeployCall {
27950	c := &OrganizationsEnvironmentsApisRevisionsUndeployCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27951	c.name = name
27952	return c
27953}
27954
27955// SequencedRollout sets the optional parameter "sequencedRollout": Flag
27956// that specifies whether to enable sequenced rollout. If set to `true`,
27957// a best-effort attempt will be made to remove the environment group
27958// routing rules corresponding to this deployment before removing the
27959// deployment from the runtime. This is likely to be a rare use case; it
27960// is only needed when the intended effect of undeploying this proxy is
27961// to cause the traffic it currently handles to be rerouted to some
27962// other existing proxy in the environment group. The
27963// GenerateUndeployChangeReport API (GenerateUndeployChangeReport) may
27964// be used to examine routing changes before issuing the undeployment
27965// request, and its response will indicate if a sequenced rollout is
27966// recommended for the undeployment.
27967func (c *OrganizationsEnvironmentsApisRevisionsUndeployCall) SequencedRollout(sequencedRollout bool) *OrganizationsEnvironmentsApisRevisionsUndeployCall {
27968	c.urlParams_.Set("sequencedRollout", fmt.Sprint(sequencedRollout))
27969	return c
27970}
27971
27972// Fields allows partial responses to be retrieved. See
27973// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
27974// for more information.
27975func (c *OrganizationsEnvironmentsApisRevisionsUndeployCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsUndeployCall {
27976	c.urlParams_.Set("fields", googleapi.CombineFields(s))
27977	return c
27978}
27979
27980// Context sets the context to be used in this call's Do method. Any
27981// pending HTTP request will be aborted if the provided context is
27982// canceled.
27983func (c *OrganizationsEnvironmentsApisRevisionsUndeployCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsUndeployCall {
27984	c.ctx_ = ctx
27985	return c
27986}
27987
27988// Header returns an http.Header that can be modified by the caller to
27989// add HTTP headers to the request.
27990func (c *OrganizationsEnvironmentsApisRevisionsUndeployCall) Header() http.Header {
27991	if c.header_ == nil {
27992		c.header_ = make(http.Header)
27993	}
27994	return c.header_
27995}
27996
27997func (c *OrganizationsEnvironmentsApisRevisionsUndeployCall) doRequest(alt string) (*http.Response, error) {
27998	reqHeaders := make(http.Header)
27999	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
28000	for k, v := range c.header_ {
28001		reqHeaders[k] = v
28002	}
28003	reqHeaders.Set("User-Agent", c.s.userAgent())
28004	var body io.Reader = nil
28005	c.urlParams_.Set("alt", alt)
28006	c.urlParams_.Set("prettyPrint", "false")
28007	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments")
28008	urls += "?" + c.urlParams_.Encode()
28009	req, err := http.NewRequest("DELETE", urls, body)
28010	if err != nil {
28011		return nil, err
28012	}
28013	req.Header = reqHeaders
28014	googleapi.Expand(req.URL, map[string]string{
28015		"name": c.name,
28016	})
28017	return gensupport.SendRequest(c.ctx_, c.s.client, req)
28018}
28019
28020// Do executes the "apigee.organizations.environments.apis.revisions.undeploy" call.
28021// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
28022// non-2xx status code is an error. Response headers are in either
28023// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
28024// returned at all) in error.(*googleapi.Error).Header. Use
28025// googleapi.IsNotModified to check whether the returned error was
28026// because http.StatusNotModified was returned.
28027func (c *OrganizationsEnvironmentsApisRevisionsUndeployCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
28028	gensupport.SetOptions(c.urlParams_, opts...)
28029	res, err := c.doRequest("json")
28030	if res != nil && res.StatusCode == http.StatusNotModified {
28031		if res.Body != nil {
28032			res.Body.Close()
28033		}
28034		return nil, &googleapi.Error{
28035			Code:   res.StatusCode,
28036			Header: res.Header,
28037		}
28038	}
28039	if err != nil {
28040		return nil, err
28041	}
28042	defer googleapi.CloseBody(res)
28043	if err := googleapi.CheckResponse(res); err != nil {
28044		return nil, err
28045	}
28046	ret := &GoogleProtobufEmpty{
28047		ServerResponse: googleapi.ServerResponse{
28048			Header:         res.Header,
28049			HTTPStatusCode: res.StatusCode,
28050		},
28051	}
28052	target := &ret
28053	if err := gensupport.DecodeResponse(target, res); err != nil {
28054		return nil, err
28055	}
28056	return ret, nil
28057	// {
28058	//   "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}`",
28059	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/deployments",
28060	//   "httpMethod": "DELETE",
28061	//   "id": "apigee.organizations.environments.apis.revisions.undeploy",
28062	//   "parameterOrder": [
28063	//     "name"
28064	//   ],
28065	//   "parameters": {
28066	//     "name": {
28067	//       "description": "Required. Name of the API proxy revision deployment in the following format: `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`",
28068	//       "location": "path",
28069	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+$",
28070	//       "required": true,
28071	//       "type": "string"
28072	//     },
28073	//     "sequencedRollout": {
28074	//       "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.",
28075	//       "location": "query",
28076	//       "type": "boolean"
28077	//     }
28078	//   },
28079	//   "path": "v1/{+name}/deployments",
28080	//   "response": {
28081	//     "$ref": "GoogleProtobufEmpty"
28082	//   },
28083	//   "scopes": [
28084	//     "https://www.googleapis.com/auth/cloud-platform"
28085	//   ]
28086	// }
28087
28088}
28089
28090// method id "apigee.organizations.environments.apis.revisions.debugsessions.create":
28091
28092type OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall struct {
28093	s                               *Service
28094	parent                          string
28095	googlecloudapigeev1debugsession *GoogleCloudApigeeV1DebugSession
28096	urlParams_                      gensupport.URLParams
28097	ctx_                            context.Context
28098	header_                         http.Header
28099}
28100
28101// Create: Creates a debug session for a deployed API Proxy revision.
28102//
28103// - parent: The resource name of the API Proxy revision deployment for
28104//   which to create the DebugSession. Must be of the form
28105//   `organizations/{organization}/environments/{environment}/apis/{api}/
28106//   revisions/{revision}`.
28107func (r *OrganizationsEnvironmentsApisRevisionsDebugsessionsService) Create(parent string, googlecloudapigeev1debugsession *GoogleCloudApigeeV1DebugSession) *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall {
28108	c := &OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28109	c.parent = parent
28110	c.googlecloudapigeev1debugsession = googlecloudapigeev1debugsession
28111	return c
28112}
28113
28114// Timeout sets the optional parameter "timeout": The time in seconds
28115// after which this DebugSession should end. A timeout specified in
28116// DebugSession will overwrite this value.
28117func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) Timeout(timeout int64) *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall {
28118	c.urlParams_.Set("timeout", fmt.Sprint(timeout))
28119	return c
28120}
28121
28122// Fields allows partial responses to be retrieved. See
28123// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
28124// for more information.
28125func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall {
28126	c.urlParams_.Set("fields", googleapi.CombineFields(s))
28127	return c
28128}
28129
28130// Context sets the context to be used in this call's Do method. Any
28131// pending HTTP request will be aborted if the provided context is
28132// canceled.
28133func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall {
28134	c.ctx_ = ctx
28135	return c
28136}
28137
28138// Header returns an http.Header that can be modified by the caller to
28139// add HTTP headers to the request.
28140func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) Header() http.Header {
28141	if c.header_ == nil {
28142		c.header_ = make(http.Header)
28143	}
28144	return c.header_
28145}
28146
28147func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) doRequest(alt string) (*http.Response, error) {
28148	reqHeaders := make(http.Header)
28149	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
28150	for k, v := range c.header_ {
28151		reqHeaders[k] = v
28152	}
28153	reqHeaders.Set("User-Agent", c.s.userAgent())
28154	var body io.Reader = nil
28155	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1debugsession)
28156	if err != nil {
28157		return nil, err
28158	}
28159	reqHeaders.Set("Content-Type", "application/json")
28160	c.urlParams_.Set("alt", alt)
28161	c.urlParams_.Set("prettyPrint", "false")
28162	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/debugsessions")
28163	urls += "?" + c.urlParams_.Encode()
28164	req, err := http.NewRequest("POST", urls, body)
28165	if err != nil {
28166		return nil, err
28167	}
28168	req.Header = reqHeaders
28169	googleapi.Expand(req.URL, map[string]string{
28170		"parent": c.parent,
28171	})
28172	return gensupport.SendRequest(c.ctx_, c.s.client, req)
28173}
28174
28175// Do executes the "apigee.organizations.environments.apis.revisions.debugsessions.create" call.
28176// Exactly one of *GoogleCloudApigeeV1DebugSession or error will be
28177// non-nil. Any non-2xx status code is an error. Response headers are in
28178// either *GoogleCloudApigeeV1DebugSession.ServerResponse.Header or (if
28179// a response was returned at all) in error.(*googleapi.Error).Header.
28180// Use googleapi.IsNotModified to check whether the returned error was
28181// because http.StatusNotModified was returned.
28182func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DebugSession, error) {
28183	gensupport.SetOptions(c.urlParams_, opts...)
28184	res, err := c.doRequest("json")
28185	if res != nil && res.StatusCode == http.StatusNotModified {
28186		if res.Body != nil {
28187			res.Body.Close()
28188		}
28189		return nil, &googleapi.Error{
28190			Code:   res.StatusCode,
28191			Header: res.Header,
28192		}
28193	}
28194	if err != nil {
28195		return nil, err
28196	}
28197	defer googleapi.CloseBody(res)
28198	if err := googleapi.CheckResponse(res); err != nil {
28199		return nil, err
28200	}
28201	ret := &GoogleCloudApigeeV1DebugSession{
28202		ServerResponse: googleapi.ServerResponse{
28203			Header:         res.Header,
28204			HTTPStatusCode: res.StatusCode,
28205		},
28206	}
28207	target := &ret
28208	if err := gensupport.DecodeResponse(target, res); err != nil {
28209		return nil, err
28210	}
28211	return ret, nil
28212	// {
28213	//   "description": "Creates a debug session for a deployed API Proxy revision.",
28214	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/debugsessions",
28215	//   "httpMethod": "POST",
28216	//   "id": "apigee.organizations.environments.apis.revisions.debugsessions.create",
28217	//   "parameterOrder": [
28218	//     "parent"
28219	//   ],
28220	//   "parameters": {
28221	//     "parent": {
28222	//       "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}`.",
28223	//       "location": "path",
28224	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+$",
28225	//       "required": true,
28226	//       "type": "string"
28227	//     },
28228	//     "timeout": {
28229	//       "description": "Optional. The time in seconds after which this DebugSession should end. A timeout specified in DebugSession will overwrite this value.",
28230	//       "format": "int64",
28231	//       "location": "query",
28232	//       "type": "string"
28233	//     }
28234	//   },
28235	//   "path": "v1/{+parent}/debugsessions",
28236	//   "request": {
28237	//     "$ref": "GoogleCloudApigeeV1DebugSession"
28238	//   },
28239	//   "response": {
28240	//     "$ref": "GoogleCloudApigeeV1DebugSession"
28241	//   },
28242	//   "scopes": [
28243	//     "https://www.googleapis.com/auth/cloud-platform"
28244	//   ]
28245	// }
28246
28247}
28248
28249// method id "apigee.organizations.environments.apis.revisions.debugsessions.deleteData":
28250
28251type OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall struct {
28252	s          *Service
28253	name       string
28254	urlParams_ gensupport.URLParams
28255	ctx_       context.Context
28256	header_    http.Header
28257}
28258
28259// DeleteData: Deletes the data from a debug session. This does not
28260// cancel the debug session or prevent further data from being collected
28261// if the session is still active in runtime pods.
28262//
28263// - name: The name of the debug session to delete. Must be of the form:
28264//   `organizations/{organization}/environments/{environment}/apis/{api}/
28265//   revisions/{revision}/debugsessions/{debugsession}`.
28266func (r *OrganizationsEnvironmentsApisRevisionsDebugsessionsService) DeleteData(name string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall {
28267	c := &OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28268	c.name = name
28269	return c
28270}
28271
28272// Fields allows partial responses to be retrieved. See
28273// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
28274// for more information.
28275func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall {
28276	c.urlParams_.Set("fields", googleapi.CombineFields(s))
28277	return c
28278}
28279
28280// Context sets the context to be used in this call's Do method. Any
28281// pending HTTP request will be aborted if the provided context is
28282// canceled.
28283func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall {
28284	c.ctx_ = ctx
28285	return c
28286}
28287
28288// Header returns an http.Header that can be modified by the caller to
28289// add HTTP headers to the request.
28290func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall) Header() http.Header {
28291	if c.header_ == nil {
28292		c.header_ = make(http.Header)
28293	}
28294	return c.header_
28295}
28296
28297func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall) doRequest(alt string) (*http.Response, error) {
28298	reqHeaders := make(http.Header)
28299	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
28300	for k, v := range c.header_ {
28301		reqHeaders[k] = v
28302	}
28303	reqHeaders.Set("User-Agent", c.s.userAgent())
28304	var body io.Reader = nil
28305	c.urlParams_.Set("alt", alt)
28306	c.urlParams_.Set("prettyPrint", "false")
28307	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/data")
28308	urls += "?" + c.urlParams_.Encode()
28309	req, err := http.NewRequest("DELETE", urls, body)
28310	if err != nil {
28311		return nil, err
28312	}
28313	req.Header = reqHeaders
28314	googleapi.Expand(req.URL, map[string]string{
28315		"name": c.name,
28316	})
28317	return gensupport.SendRequest(c.ctx_, c.s.client, req)
28318}
28319
28320// Do executes the "apigee.organizations.environments.apis.revisions.debugsessions.deleteData" call.
28321// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
28322// non-2xx status code is an error. Response headers are in either
28323// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
28324// returned at all) in error.(*googleapi.Error).Header. Use
28325// googleapi.IsNotModified to check whether the returned error was
28326// because http.StatusNotModified was returned.
28327func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
28328	gensupport.SetOptions(c.urlParams_, opts...)
28329	res, err := c.doRequest("json")
28330	if res != nil && res.StatusCode == http.StatusNotModified {
28331		if res.Body != nil {
28332			res.Body.Close()
28333		}
28334		return nil, &googleapi.Error{
28335			Code:   res.StatusCode,
28336			Header: res.Header,
28337		}
28338	}
28339	if err != nil {
28340		return nil, err
28341	}
28342	defer googleapi.CloseBody(res)
28343	if err := googleapi.CheckResponse(res); err != nil {
28344		return nil, err
28345	}
28346	ret := &GoogleProtobufEmpty{
28347		ServerResponse: googleapi.ServerResponse{
28348			Header:         res.Header,
28349			HTTPStatusCode: res.StatusCode,
28350		},
28351	}
28352	target := &ret
28353	if err := gensupport.DecodeResponse(target, res); err != nil {
28354		return nil, err
28355	}
28356	return ret, nil
28357	// {
28358	//   "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.",
28359	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/debugsessions/{debugsessionsId}/data",
28360	//   "httpMethod": "DELETE",
28361	//   "id": "apigee.organizations.environments.apis.revisions.debugsessions.deleteData",
28362	//   "parameterOrder": [
28363	//     "name"
28364	//   ],
28365	//   "parameters": {
28366	//     "name": {
28367	//       "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}`.",
28368	//       "location": "path",
28369	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+/debugsessions/[^/]+$",
28370	//       "required": true,
28371	//       "type": "string"
28372	//     }
28373	//   },
28374	//   "path": "v1/{+name}/data",
28375	//   "response": {
28376	//     "$ref": "GoogleProtobufEmpty"
28377	//   },
28378	//   "scopes": [
28379	//     "https://www.googleapis.com/auth/cloud-platform"
28380	//   ]
28381	// }
28382
28383}
28384
28385// method id "apigee.organizations.environments.apis.revisions.debugsessions.get":
28386
28387type OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall struct {
28388	s            *Service
28389	name         string
28390	urlParams_   gensupport.URLParams
28391	ifNoneMatch_ string
28392	ctx_         context.Context
28393	header_      http.Header
28394}
28395
28396// Get: Retrieves a debug session.
28397//
28398// - name: The name of the debug session to retrieve. Must be of the
28399//   form:
28400//   `organizations/{organization}/environments/{environment}/apis/{api}/
28401//   revisions/{revision}/debugsessions/{session}`.
28402func (r *OrganizationsEnvironmentsApisRevisionsDebugsessionsService) Get(name string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall {
28403	c := &OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28404	c.name = name
28405	return c
28406}
28407
28408// Fields allows partial responses to be retrieved. See
28409// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
28410// for more information.
28411func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall {
28412	c.urlParams_.Set("fields", googleapi.CombineFields(s))
28413	return c
28414}
28415
28416// IfNoneMatch sets the optional parameter which makes the operation
28417// fail if the object's ETag matches the given value. This is useful for
28418// getting updates only after the object has changed since the last
28419// request. Use googleapi.IsNotModified to check whether the response
28420// error from Do is the result of In-None-Match.
28421func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall {
28422	c.ifNoneMatch_ = entityTag
28423	return c
28424}
28425
28426// Context sets the context to be used in this call's Do method. Any
28427// pending HTTP request will be aborted if the provided context is
28428// canceled.
28429func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall {
28430	c.ctx_ = ctx
28431	return c
28432}
28433
28434// Header returns an http.Header that can be modified by the caller to
28435// add HTTP headers to the request.
28436func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall) Header() http.Header {
28437	if c.header_ == nil {
28438		c.header_ = make(http.Header)
28439	}
28440	return c.header_
28441}
28442
28443func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall) doRequest(alt string) (*http.Response, error) {
28444	reqHeaders := make(http.Header)
28445	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
28446	for k, v := range c.header_ {
28447		reqHeaders[k] = v
28448	}
28449	reqHeaders.Set("User-Agent", c.s.userAgent())
28450	if c.ifNoneMatch_ != "" {
28451		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
28452	}
28453	var body io.Reader = nil
28454	c.urlParams_.Set("alt", alt)
28455	c.urlParams_.Set("prettyPrint", "false")
28456	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
28457	urls += "?" + c.urlParams_.Encode()
28458	req, err := http.NewRequest("GET", urls, body)
28459	if err != nil {
28460		return nil, err
28461	}
28462	req.Header = reqHeaders
28463	googleapi.Expand(req.URL, map[string]string{
28464		"name": c.name,
28465	})
28466	return gensupport.SendRequest(c.ctx_, c.s.client, req)
28467}
28468
28469// Do executes the "apigee.organizations.environments.apis.revisions.debugsessions.get" call.
28470// Exactly one of *GoogleCloudApigeeV1DebugSession or error will be
28471// non-nil. Any non-2xx status code is an error. Response headers are in
28472// either *GoogleCloudApigeeV1DebugSession.ServerResponse.Header or (if
28473// a response was returned at all) in error.(*googleapi.Error).Header.
28474// Use googleapi.IsNotModified to check whether the returned error was
28475// because http.StatusNotModified was returned.
28476func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DebugSession, error) {
28477	gensupport.SetOptions(c.urlParams_, opts...)
28478	res, err := c.doRequest("json")
28479	if res != nil && res.StatusCode == http.StatusNotModified {
28480		if res.Body != nil {
28481			res.Body.Close()
28482		}
28483		return nil, &googleapi.Error{
28484			Code:   res.StatusCode,
28485			Header: res.Header,
28486		}
28487	}
28488	if err != nil {
28489		return nil, err
28490	}
28491	defer googleapi.CloseBody(res)
28492	if err := googleapi.CheckResponse(res); err != nil {
28493		return nil, err
28494	}
28495	ret := &GoogleCloudApigeeV1DebugSession{
28496		ServerResponse: googleapi.ServerResponse{
28497			Header:         res.Header,
28498			HTTPStatusCode: res.StatusCode,
28499		},
28500	}
28501	target := &ret
28502	if err := gensupport.DecodeResponse(target, res); err != nil {
28503		return nil, err
28504	}
28505	return ret, nil
28506	// {
28507	//   "description": "Retrieves a debug session.",
28508	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/debugsessions/{debugsessionsId}",
28509	//   "httpMethod": "GET",
28510	//   "id": "apigee.organizations.environments.apis.revisions.debugsessions.get",
28511	//   "parameterOrder": [
28512	//     "name"
28513	//   ],
28514	//   "parameters": {
28515	//     "name": {
28516	//       "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}`.",
28517	//       "location": "path",
28518	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+/debugsessions/[^/]+$",
28519	//       "required": true,
28520	//       "type": "string"
28521	//     }
28522	//   },
28523	//   "path": "v1/{+name}",
28524	//   "response": {
28525	//     "$ref": "GoogleCloudApigeeV1DebugSession"
28526	//   },
28527	//   "scopes": [
28528	//     "https://www.googleapis.com/auth/cloud-platform"
28529	//   ]
28530	// }
28531
28532}
28533
28534// method id "apigee.organizations.environments.apis.revisions.debugsessions.list":
28535
28536type OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall struct {
28537	s            *Service
28538	parent       string
28539	urlParams_   gensupport.URLParams
28540	ifNoneMatch_ string
28541	ctx_         context.Context
28542	header_      http.Header
28543}
28544
28545// List: Lists debug sessions that are currently active in the given API
28546// Proxy revision.
28547//
28548// - parent: The name of the API Proxy revision deployment for which to
28549//   list debug sessions. Must be of the form:
28550//   `organizations/{organization}/environments/{environment}/apis/{api}/
28551//   revisions/{revision}`.
28552func (r *OrganizationsEnvironmentsApisRevisionsDebugsessionsService) List(parent string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall {
28553	c := &OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28554	c.parent = parent
28555	return c
28556}
28557
28558// PageSize sets the optional parameter "pageSize": Maximum number of
28559// debug sessions to return. The page size defaults to 25.
28560func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) PageSize(pageSize int64) *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall {
28561	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
28562	return c
28563}
28564
28565// PageToken sets the optional parameter "pageToken": Page token,
28566// returned from a previous ListDebugSessions call, that you can use to
28567// retrieve the next page.
28568func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) PageToken(pageToken string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall {
28569	c.urlParams_.Set("pageToken", pageToken)
28570	return c
28571}
28572
28573// Fields allows partial responses to be retrieved. See
28574// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
28575// for more information.
28576func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall {
28577	c.urlParams_.Set("fields", googleapi.CombineFields(s))
28578	return c
28579}
28580
28581// IfNoneMatch sets the optional parameter which makes the operation
28582// fail if the object's ETag matches the given value. This is useful for
28583// getting updates only after the object has changed since the last
28584// request. Use googleapi.IsNotModified to check whether the response
28585// error from Do is the result of In-None-Match.
28586func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall {
28587	c.ifNoneMatch_ = entityTag
28588	return c
28589}
28590
28591// Context sets the context to be used in this call's Do method. Any
28592// pending HTTP request will be aborted if the provided context is
28593// canceled.
28594func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall {
28595	c.ctx_ = ctx
28596	return c
28597}
28598
28599// Header returns an http.Header that can be modified by the caller to
28600// add HTTP headers to the request.
28601func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) Header() http.Header {
28602	if c.header_ == nil {
28603		c.header_ = make(http.Header)
28604	}
28605	return c.header_
28606}
28607
28608func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) doRequest(alt string) (*http.Response, error) {
28609	reqHeaders := make(http.Header)
28610	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
28611	for k, v := range c.header_ {
28612		reqHeaders[k] = v
28613	}
28614	reqHeaders.Set("User-Agent", c.s.userAgent())
28615	if c.ifNoneMatch_ != "" {
28616		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
28617	}
28618	var body io.Reader = nil
28619	c.urlParams_.Set("alt", alt)
28620	c.urlParams_.Set("prettyPrint", "false")
28621	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/debugsessions")
28622	urls += "?" + c.urlParams_.Encode()
28623	req, err := http.NewRequest("GET", urls, body)
28624	if err != nil {
28625		return nil, err
28626	}
28627	req.Header = reqHeaders
28628	googleapi.Expand(req.URL, map[string]string{
28629		"parent": c.parent,
28630	})
28631	return gensupport.SendRequest(c.ctx_, c.s.client, req)
28632}
28633
28634// Do executes the "apigee.organizations.environments.apis.revisions.debugsessions.list" call.
28635// Exactly one of *GoogleCloudApigeeV1ListDebugSessionsResponse or error
28636// will be non-nil. Any non-2xx status code is an error. Response
28637// headers are in either
28638// *GoogleCloudApigeeV1ListDebugSessionsResponse.ServerResponse.Header
28639// or (if a response was returned at all) in
28640// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
28641// whether the returned error was because http.StatusNotModified was
28642// returned.
28643func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDebugSessionsResponse, error) {
28644	gensupport.SetOptions(c.urlParams_, opts...)
28645	res, err := c.doRequest("json")
28646	if res != nil && res.StatusCode == http.StatusNotModified {
28647		if res.Body != nil {
28648			res.Body.Close()
28649		}
28650		return nil, &googleapi.Error{
28651			Code:   res.StatusCode,
28652			Header: res.Header,
28653		}
28654	}
28655	if err != nil {
28656		return nil, err
28657	}
28658	defer googleapi.CloseBody(res)
28659	if err := googleapi.CheckResponse(res); err != nil {
28660		return nil, err
28661	}
28662	ret := &GoogleCloudApigeeV1ListDebugSessionsResponse{
28663		ServerResponse: googleapi.ServerResponse{
28664			Header:         res.Header,
28665			HTTPStatusCode: res.StatusCode,
28666		},
28667	}
28668	target := &ret
28669	if err := gensupport.DecodeResponse(target, res); err != nil {
28670		return nil, err
28671	}
28672	return ret, nil
28673	// {
28674	//   "description": "Lists debug sessions that are currently active in the given API Proxy revision.",
28675	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/debugsessions",
28676	//   "httpMethod": "GET",
28677	//   "id": "apigee.organizations.environments.apis.revisions.debugsessions.list",
28678	//   "parameterOrder": [
28679	//     "parent"
28680	//   ],
28681	//   "parameters": {
28682	//     "pageSize": {
28683	//       "description": "Maximum number of debug sessions to return. The page size defaults to 25.",
28684	//       "format": "int32",
28685	//       "location": "query",
28686	//       "type": "integer"
28687	//     },
28688	//     "pageToken": {
28689	//       "description": "Page token, returned from a previous ListDebugSessions call, that you can use to retrieve the next page.",
28690	//       "location": "query",
28691	//       "type": "string"
28692	//     },
28693	//     "parent": {
28694	//       "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}`.",
28695	//       "location": "path",
28696	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+$",
28697	//       "required": true,
28698	//       "type": "string"
28699	//     }
28700	//   },
28701	//   "path": "v1/{+parent}/debugsessions",
28702	//   "response": {
28703	//     "$ref": "GoogleCloudApigeeV1ListDebugSessionsResponse"
28704	//   },
28705	//   "scopes": [
28706	//     "https://www.googleapis.com/auth/cloud-platform"
28707	//   ]
28708	// }
28709
28710}
28711
28712// Pages invokes f for each page of results.
28713// A non-nil error returned from f will halt the iteration.
28714// The provided context supersedes any context provided to the Context method.
28715func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListDebugSessionsResponse) error) error {
28716	c.ctx_ = ctx
28717	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
28718	for {
28719		x, err := c.Do()
28720		if err != nil {
28721			return err
28722		}
28723		if err := f(x); err != nil {
28724			return err
28725		}
28726		if x.NextPageToken == "" {
28727			return nil
28728		}
28729		c.PageToken(x.NextPageToken)
28730	}
28731}
28732
28733// method id "apigee.organizations.environments.apis.revisions.debugsessions.data.get":
28734
28735type OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall struct {
28736	s            *Service
28737	name         string
28738	urlParams_   gensupport.URLParams
28739	ifNoneMatch_ string
28740	ctx_         context.Context
28741	header_      http.Header
28742}
28743
28744// Get: Gets the debug data from a transaction.
28745//
28746// - name: The name of the debug session transaction. Must be of the
28747//   form:
28748//   `organizations/{organization}/environments/{environment}/apis/{api}/
28749//   revisions/{revision}/debugsessions/{session}/data/{transaction}`.
28750func (r *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataService) Get(name string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall {
28751	c := &OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28752	c.name = name
28753	return c
28754}
28755
28756// Fields allows partial responses to be retrieved. See
28757// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
28758// for more information.
28759func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall {
28760	c.urlParams_.Set("fields", googleapi.CombineFields(s))
28761	return c
28762}
28763
28764// IfNoneMatch sets the optional parameter which makes the operation
28765// fail if the object's ETag matches the given value. This is useful for
28766// getting updates only after the object has changed since the last
28767// request. Use googleapi.IsNotModified to check whether the response
28768// error from Do is the result of In-None-Match.
28769func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall {
28770	c.ifNoneMatch_ = entityTag
28771	return c
28772}
28773
28774// Context sets the context to be used in this call's Do method. Any
28775// pending HTTP request will be aborted if the provided context is
28776// canceled.
28777func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall {
28778	c.ctx_ = ctx
28779	return c
28780}
28781
28782// Header returns an http.Header that can be modified by the caller to
28783// add HTTP headers to the request.
28784func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) Header() http.Header {
28785	if c.header_ == nil {
28786		c.header_ = make(http.Header)
28787	}
28788	return c.header_
28789}
28790
28791func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) doRequest(alt string) (*http.Response, error) {
28792	reqHeaders := make(http.Header)
28793	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
28794	for k, v := range c.header_ {
28795		reqHeaders[k] = v
28796	}
28797	reqHeaders.Set("User-Agent", c.s.userAgent())
28798	if c.ifNoneMatch_ != "" {
28799		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
28800	}
28801	var body io.Reader = nil
28802	c.urlParams_.Set("alt", alt)
28803	c.urlParams_.Set("prettyPrint", "false")
28804	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
28805	urls += "?" + c.urlParams_.Encode()
28806	req, err := http.NewRequest("GET", urls, body)
28807	if err != nil {
28808		return nil, err
28809	}
28810	req.Header = reqHeaders
28811	googleapi.Expand(req.URL, map[string]string{
28812		"name": c.name,
28813	})
28814	return gensupport.SendRequest(c.ctx_, c.s.client, req)
28815}
28816
28817// Do executes the "apigee.organizations.environments.apis.revisions.debugsessions.data.get" call.
28818// Exactly one of *GoogleCloudApigeeV1DebugSessionTransaction or error
28819// will be non-nil. Any non-2xx status code is an error. Response
28820// headers are in either
28821// *GoogleCloudApigeeV1DebugSessionTransaction.ServerResponse.Header or
28822// (if a response was returned at all) in
28823// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
28824// whether the returned error was because http.StatusNotModified was
28825// returned.
28826func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DebugSessionTransaction, error) {
28827	gensupport.SetOptions(c.urlParams_, opts...)
28828	res, err := c.doRequest("json")
28829	if res != nil && res.StatusCode == http.StatusNotModified {
28830		if res.Body != nil {
28831			res.Body.Close()
28832		}
28833		return nil, &googleapi.Error{
28834			Code:   res.StatusCode,
28835			Header: res.Header,
28836		}
28837	}
28838	if err != nil {
28839		return nil, err
28840	}
28841	defer googleapi.CloseBody(res)
28842	if err := googleapi.CheckResponse(res); err != nil {
28843		return nil, err
28844	}
28845	ret := &GoogleCloudApigeeV1DebugSessionTransaction{
28846		ServerResponse: googleapi.ServerResponse{
28847			Header:         res.Header,
28848			HTTPStatusCode: res.StatusCode,
28849		},
28850	}
28851	target := &ret
28852	if err := gensupport.DecodeResponse(target, res); err != nil {
28853		return nil, err
28854	}
28855	return ret, nil
28856	// {
28857	//   "description": "Gets the debug data from a transaction.",
28858	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/debugsessions/{debugsessionsId}/data/{dataId}",
28859	//   "httpMethod": "GET",
28860	//   "id": "apigee.organizations.environments.apis.revisions.debugsessions.data.get",
28861	//   "parameterOrder": [
28862	//     "name"
28863	//   ],
28864	//   "parameters": {
28865	//     "name": {
28866	//       "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}`.",
28867	//       "location": "path",
28868	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+/debugsessions/[^/]+/data/[^/]+$",
28869	//       "required": true,
28870	//       "type": "string"
28871	//     }
28872	//   },
28873	//   "path": "v1/{+name}",
28874	//   "response": {
28875	//     "$ref": "GoogleCloudApigeeV1DebugSessionTransaction"
28876	//   },
28877	//   "scopes": [
28878	//     "https://www.googleapis.com/auth/cloud-platform"
28879	//   ]
28880	// }
28881
28882}
28883
28884// method id "apigee.organizations.environments.apis.revisions.deployments.generateDeployChangeReport":
28885
28886type OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall struct {
28887	s          *Service
28888	name       string
28889	urlParams_ gensupport.URLParams
28890	ctx_       context.Context
28891	header_    http.Header
28892}
28893
28894// GenerateDeployChangeReport: Generates a report for a dry run analysis
28895// of a DeployApiProxy request without committing the deployment. In
28896// addition to the standard validations performed when adding
28897// deployments, additional analysis will be done to detect possible
28898// traffic routing changes that would result from this deployment being
28899// created. Any potential routing conflicts or unsafe changes will be
28900// reported in the response. This routing analysis is not performed for
28901// a non-dry-run DeployApiProxy request. For a request path
28902// `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}/dep
28903// loyments:generateDeployChangeReport`, two permissions are required: *
28904// `apigee.deployments.create` on the resource
28905// `organizations/{org}/environments/{env}` *
28906// `apigee.proxyrevisions.deploy` on the resource
28907// `organizations/{org}/apis/{api}/revisions/{rev}`
28908//
28909// - name: Name of the API proxy revision deployment in the following
28910//   format:
28911//   `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`.
28912func (r *OrganizationsEnvironmentsApisRevisionsDeploymentsService) GenerateDeployChangeReport(name string) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall {
28913	c := &OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28914	c.name = name
28915	return c
28916}
28917
28918// Override sets the optional parameter "override": Flag that specifies
28919// whether to force the deployment of the new revision over the
28920// currently deployed revision by overriding conflict checks.
28921func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall) Override(override bool) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall {
28922	c.urlParams_.Set("override", fmt.Sprint(override))
28923	return c
28924}
28925
28926// Fields allows partial responses to be retrieved. See
28927// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
28928// for more information.
28929func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall {
28930	c.urlParams_.Set("fields", googleapi.CombineFields(s))
28931	return c
28932}
28933
28934// Context sets the context to be used in this call's Do method. Any
28935// pending HTTP request will be aborted if the provided context is
28936// canceled.
28937func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall {
28938	c.ctx_ = ctx
28939	return c
28940}
28941
28942// Header returns an http.Header that can be modified by the caller to
28943// add HTTP headers to the request.
28944func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall) Header() http.Header {
28945	if c.header_ == nil {
28946		c.header_ = make(http.Header)
28947	}
28948	return c.header_
28949}
28950
28951func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall) doRequest(alt string) (*http.Response, error) {
28952	reqHeaders := make(http.Header)
28953	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
28954	for k, v := range c.header_ {
28955		reqHeaders[k] = v
28956	}
28957	reqHeaders.Set("User-Agent", c.s.userAgent())
28958	var body io.Reader = nil
28959	c.urlParams_.Set("alt", alt)
28960	c.urlParams_.Set("prettyPrint", "false")
28961	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments:generateDeployChangeReport")
28962	urls += "?" + c.urlParams_.Encode()
28963	req, err := http.NewRequest("POST", urls, body)
28964	if err != nil {
28965		return nil, err
28966	}
28967	req.Header = reqHeaders
28968	googleapi.Expand(req.URL, map[string]string{
28969		"name": c.name,
28970	})
28971	return gensupport.SendRequest(c.ctx_, c.s.client, req)
28972}
28973
28974// Do executes the "apigee.organizations.environments.apis.revisions.deployments.generateDeployChangeReport" call.
28975// Exactly one of *GoogleCloudApigeeV1DeploymentChangeReport or error
28976// will be non-nil. Any non-2xx status code is an error. Response
28977// headers are in either
28978// *GoogleCloudApigeeV1DeploymentChangeReport.ServerResponse.Header or
28979// (if a response was returned at all) in
28980// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
28981// whether the returned error was because http.StatusNotModified was
28982// returned.
28983func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeploymentChangeReport, error) {
28984	gensupport.SetOptions(c.urlParams_, opts...)
28985	res, err := c.doRequest("json")
28986	if res != nil && res.StatusCode == http.StatusNotModified {
28987		if res.Body != nil {
28988			res.Body.Close()
28989		}
28990		return nil, &googleapi.Error{
28991			Code:   res.StatusCode,
28992			Header: res.Header,
28993		}
28994	}
28995	if err != nil {
28996		return nil, err
28997	}
28998	defer googleapi.CloseBody(res)
28999	if err := googleapi.CheckResponse(res); err != nil {
29000		return nil, err
29001	}
29002	ret := &GoogleCloudApigeeV1DeploymentChangeReport{
29003		ServerResponse: googleapi.ServerResponse{
29004			Header:         res.Header,
29005			HTTPStatusCode: res.StatusCode,
29006		},
29007	}
29008	target := &ret
29009	if err := gensupport.DecodeResponse(target, res); err != nil {
29010		return nil, err
29011	}
29012	return ret, nil
29013	// {
29014	//   "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}`",
29015	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/deployments:generateDeployChangeReport",
29016	//   "httpMethod": "POST",
29017	//   "id": "apigee.organizations.environments.apis.revisions.deployments.generateDeployChangeReport",
29018	//   "parameterOrder": [
29019	//     "name"
29020	//   ],
29021	//   "parameters": {
29022	//     "name": {
29023	//       "description": "Name of the API proxy revision deployment in the following format: `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`",
29024	//       "location": "path",
29025	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+$",
29026	//       "required": true,
29027	//       "type": "string"
29028	//     },
29029	//     "override": {
29030	//       "description": "Flag that specifies whether to force the deployment of the new revision over the currently deployed revision by overriding conflict checks.",
29031	//       "location": "query",
29032	//       "type": "boolean"
29033	//     }
29034	//   },
29035	//   "path": "v1/{+name}/deployments:generateDeployChangeReport",
29036	//   "response": {
29037	//     "$ref": "GoogleCloudApigeeV1DeploymentChangeReport"
29038	//   },
29039	//   "scopes": [
29040	//     "https://www.googleapis.com/auth/cloud-platform"
29041	//   ]
29042	// }
29043
29044}
29045
29046// method id "apigee.organizations.environments.apis.revisions.deployments.generateUndeployChangeReport":
29047
29048type OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall struct {
29049	s          *Service
29050	name       string
29051	urlParams_ gensupport.URLParams
29052	ctx_       context.Context
29053	header_    http.Header
29054}
29055
29056// GenerateUndeployChangeReport: Generates a report for a dry run
29057// analysis of an UndeployApiProxy request without committing the
29058// undeploy. In addition to the standard validations performed when
29059// removing deployments, additional analysis will be done to detect
29060// possible traffic routing changes that would result from this
29061// deployment being removed. Any potential routing conflicts or unsafe
29062// changes will be reported in the response. This routing analysis is
29063// not performed for a non-dry-run UndeployApiProxy request. For a
29064// request path
29065// `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}/dep
29066// loyments:generateUndeployChangeReport`, two permissions are required:
29067// * `apigee.deployments.delete` on the resource
29068// `organizations/{org}/environments/{env}` *
29069// `apigee.proxyrevisions.undeploy` on the resource
29070// `organizations/{org}/apis/{api}/revisions/{rev}`
29071//
29072// - name: Name of the API proxy revision deployment in the following
29073//   format:
29074//   `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`.
29075func (r *OrganizationsEnvironmentsApisRevisionsDeploymentsService) GenerateUndeployChangeReport(name string) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall {
29076	c := &OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29077	c.name = name
29078	return c
29079}
29080
29081// Fields allows partial responses to be retrieved. See
29082// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
29083// for more information.
29084func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall {
29085	c.urlParams_.Set("fields", googleapi.CombineFields(s))
29086	return c
29087}
29088
29089// Context sets the context to be used in this call's Do method. Any
29090// pending HTTP request will be aborted if the provided context is
29091// canceled.
29092func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall {
29093	c.ctx_ = ctx
29094	return c
29095}
29096
29097// Header returns an http.Header that can be modified by the caller to
29098// add HTTP headers to the request.
29099func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall) Header() http.Header {
29100	if c.header_ == nil {
29101		c.header_ = make(http.Header)
29102	}
29103	return c.header_
29104}
29105
29106func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall) doRequest(alt string) (*http.Response, error) {
29107	reqHeaders := make(http.Header)
29108	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
29109	for k, v := range c.header_ {
29110		reqHeaders[k] = v
29111	}
29112	reqHeaders.Set("User-Agent", c.s.userAgent())
29113	var body io.Reader = nil
29114	c.urlParams_.Set("alt", alt)
29115	c.urlParams_.Set("prettyPrint", "false")
29116	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments:generateUndeployChangeReport")
29117	urls += "?" + c.urlParams_.Encode()
29118	req, err := http.NewRequest("POST", urls, body)
29119	if err != nil {
29120		return nil, err
29121	}
29122	req.Header = reqHeaders
29123	googleapi.Expand(req.URL, map[string]string{
29124		"name": c.name,
29125	})
29126	return gensupport.SendRequest(c.ctx_, c.s.client, req)
29127}
29128
29129// Do executes the "apigee.organizations.environments.apis.revisions.deployments.generateUndeployChangeReport" call.
29130// Exactly one of *GoogleCloudApigeeV1DeploymentChangeReport or error
29131// will be non-nil. Any non-2xx status code is an error. Response
29132// headers are in either
29133// *GoogleCloudApigeeV1DeploymentChangeReport.ServerResponse.Header or
29134// (if a response was returned at all) in
29135// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
29136// whether the returned error was because http.StatusNotModified was
29137// returned.
29138func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeploymentChangeReport, error) {
29139	gensupport.SetOptions(c.urlParams_, opts...)
29140	res, err := c.doRequest("json")
29141	if res != nil && res.StatusCode == http.StatusNotModified {
29142		if res.Body != nil {
29143			res.Body.Close()
29144		}
29145		return nil, &googleapi.Error{
29146			Code:   res.StatusCode,
29147			Header: res.Header,
29148		}
29149	}
29150	if err != nil {
29151		return nil, err
29152	}
29153	defer googleapi.CloseBody(res)
29154	if err := googleapi.CheckResponse(res); err != nil {
29155		return nil, err
29156	}
29157	ret := &GoogleCloudApigeeV1DeploymentChangeReport{
29158		ServerResponse: googleapi.ServerResponse{
29159			Header:         res.Header,
29160			HTTPStatusCode: res.StatusCode,
29161		},
29162	}
29163	target := &ret
29164	if err := gensupport.DecodeResponse(target, res); err != nil {
29165		return nil, err
29166	}
29167	return ret, nil
29168	// {
29169	//   "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}`",
29170	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/deployments:generateUndeployChangeReport",
29171	//   "httpMethod": "POST",
29172	//   "id": "apigee.organizations.environments.apis.revisions.deployments.generateUndeployChangeReport",
29173	//   "parameterOrder": [
29174	//     "name"
29175	//   ],
29176	//   "parameters": {
29177	//     "name": {
29178	//       "description": "Name of the API proxy revision deployment in the following format: `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`",
29179	//       "location": "path",
29180	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+$",
29181	//       "required": true,
29182	//       "type": "string"
29183	//     }
29184	//   },
29185	//   "path": "v1/{+name}/deployments:generateUndeployChangeReport",
29186	//   "response": {
29187	//     "$ref": "GoogleCloudApigeeV1DeploymentChangeReport"
29188	//   },
29189	//   "scopes": [
29190	//     "https://www.googleapis.com/auth/cloud-platform"
29191	//   ]
29192	// }
29193
29194}
29195
29196// method id "apigee.organizations.environments.archiveDeployments.create":
29197
29198type OrganizationsEnvironmentsArchiveDeploymentsCreateCall struct {
29199	s                                    *Service
29200	parent                               string
29201	googlecloudapigeev1archivedeployment *GoogleCloudApigeeV1ArchiveDeployment
29202	urlParams_                           gensupport.URLParams
29203	ctx_                                 context.Context
29204	header_                              http.Header
29205}
29206
29207// Create: Creates a new ArchiveDeployment.
29208//
29209// - parent: The Environment this Archive Deployment will be created in.
29210func (r *OrganizationsEnvironmentsArchiveDeploymentsService) Create(parent string, googlecloudapigeev1archivedeployment *GoogleCloudApigeeV1ArchiveDeployment) *OrganizationsEnvironmentsArchiveDeploymentsCreateCall {
29211	c := &OrganizationsEnvironmentsArchiveDeploymentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29212	c.parent = parent
29213	c.googlecloudapigeev1archivedeployment = googlecloudapigeev1archivedeployment
29214	return c
29215}
29216
29217// Fields allows partial responses to be retrieved. See
29218// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
29219// for more information.
29220func (c *OrganizationsEnvironmentsArchiveDeploymentsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsArchiveDeploymentsCreateCall {
29221	c.urlParams_.Set("fields", googleapi.CombineFields(s))
29222	return c
29223}
29224
29225// Context sets the context to be used in this call's Do method. Any
29226// pending HTTP request will be aborted if the provided context is
29227// canceled.
29228func (c *OrganizationsEnvironmentsArchiveDeploymentsCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsArchiveDeploymentsCreateCall {
29229	c.ctx_ = ctx
29230	return c
29231}
29232
29233// Header returns an http.Header that can be modified by the caller to
29234// add HTTP headers to the request.
29235func (c *OrganizationsEnvironmentsArchiveDeploymentsCreateCall) Header() http.Header {
29236	if c.header_ == nil {
29237		c.header_ = make(http.Header)
29238	}
29239	return c.header_
29240}
29241
29242func (c *OrganizationsEnvironmentsArchiveDeploymentsCreateCall) doRequest(alt string) (*http.Response, error) {
29243	reqHeaders := make(http.Header)
29244	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
29245	for k, v := range c.header_ {
29246		reqHeaders[k] = v
29247	}
29248	reqHeaders.Set("User-Agent", c.s.userAgent())
29249	var body io.Reader = nil
29250	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1archivedeployment)
29251	if err != nil {
29252		return nil, err
29253	}
29254	reqHeaders.Set("Content-Type", "application/json")
29255	c.urlParams_.Set("alt", alt)
29256	c.urlParams_.Set("prettyPrint", "false")
29257	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/archiveDeployments")
29258	urls += "?" + c.urlParams_.Encode()
29259	req, err := http.NewRequest("POST", urls, body)
29260	if err != nil {
29261		return nil, err
29262	}
29263	req.Header = reqHeaders
29264	googleapi.Expand(req.URL, map[string]string{
29265		"parent": c.parent,
29266	})
29267	return gensupport.SendRequest(c.ctx_, c.s.client, req)
29268}
29269
29270// Do executes the "apigee.organizations.environments.archiveDeployments.create" call.
29271// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
29272// Any non-2xx status code is an error. Response headers are in either
29273// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
29274// was returned at all) in error.(*googleapi.Error).Header. Use
29275// googleapi.IsNotModified to check whether the returned error was
29276// because http.StatusNotModified was returned.
29277func (c *OrganizationsEnvironmentsArchiveDeploymentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
29278	gensupport.SetOptions(c.urlParams_, opts...)
29279	res, err := c.doRequest("json")
29280	if res != nil && res.StatusCode == http.StatusNotModified {
29281		if res.Body != nil {
29282			res.Body.Close()
29283		}
29284		return nil, &googleapi.Error{
29285			Code:   res.StatusCode,
29286			Header: res.Header,
29287		}
29288	}
29289	if err != nil {
29290		return nil, err
29291	}
29292	defer googleapi.CloseBody(res)
29293	if err := googleapi.CheckResponse(res); err != nil {
29294		return nil, err
29295	}
29296	ret := &GoogleLongrunningOperation{
29297		ServerResponse: googleapi.ServerResponse{
29298			Header:         res.Header,
29299			HTTPStatusCode: res.StatusCode,
29300		},
29301	}
29302	target := &ret
29303	if err := gensupport.DecodeResponse(target, res); err != nil {
29304		return nil, err
29305	}
29306	return ret, nil
29307	// {
29308	//   "description": "Creates a new ArchiveDeployment.",
29309	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/archiveDeployments",
29310	//   "httpMethod": "POST",
29311	//   "id": "apigee.organizations.environments.archiveDeployments.create",
29312	//   "parameterOrder": [
29313	//     "parent"
29314	//   ],
29315	//   "parameters": {
29316	//     "parent": {
29317	//       "description": "Required. The Environment this Archive Deployment will be created in.",
29318	//       "location": "path",
29319	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
29320	//       "required": true,
29321	//       "type": "string"
29322	//     }
29323	//   },
29324	//   "path": "v1/{+parent}/archiveDeployments",
29325	//   "request": {
29326	//     "$ref": "GoogleCloudApigeeV1ArchiveDeployment"
29327	//   },
29328	//   "response": {
29329	//     "$ref": "GoogleLongrunningOperation"
29330	//   },
29331	//   "scopes": [
29332	//     "https://www.googleapis.com/auth/cloud-platform"
29333	//   ]
29334	// }
29335
29336}
29337
29338// method id "apigee.organizations.environments.archiveDeployments.delete":
29339
29340type OrganizationsEnvironmentsArchiveDeploymentsDeleteCall struct {
29341	s          *Service
29342	name       string
29343	urlParams_ gensupport.URLParams
29344	ctx_       context.Context
29345	header_    http.Header
29346}
29347
29348// Delete: Deletes an archive deployment.
29349//
29350// - name: Name of the Archive Deployment in the following format:
29351//   `organizations/{org}/environments/{env}/archiveDeployments/{id}`.
29352func (r *OrganizationsEnvironmentsArchiveDeploymentsService) Delete(name string) *OrganizationsEnvironmentsArchiveDeploymentsDeleteCall {
29353	c := &OrganizationsEnvironmentsArchiveDeploymentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29354	c.name = name
29355	return c
29356}
29357
29358// Fields allows partial responses to be retrieved. See
29359// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
29360// for more information.
29361func (c *OrganizationsEnvironmentsArchiveDeploymentsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsArchiveDeploymentsDeleteCall {
29362	c.urlParams_.Set("fields", googleapi.CombineFields(s))
29363	return c
29364}
29365
29366// Context sets the context to be used in this call's Do method. Any
29367// pending HTTP request will be aborted if the provided context is
29368// canceled.
29369func (c *OrganizationsEnvironmentsArchiveDeploymentsDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsArchiveDeploymentsDeleteCall {
29370	c.ctx_ = ctx
29371	return c
29372}
29373
29374// Header returns an http.Header that can be modified by the caller to
29375// add HTTP headers to the request.
29376func (c *OrganizationsEnvironmentsArchiveDeploymentsDeleteCall) Header() http.Header {
29377	if c.header_ == nil {
29378		c.header_ = make(http.Header)
29379	}
29380	return c.header_
29381}
29382
29383func (c *OrganizationsEnvironmentsArchiveDeploymentsDeleteCall) doRequest(alt string) (*http.Response, error) {
29384	reqHeaders := make(http.Header)
29385	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
29386	for k, v := range c.header_ {
29387		reqHeaders[k] = v
29388	}
29389	reqHeaders.Set("User-Agent", c.s.userAgent())
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("DELETE", 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.archiveDeployments.delete" call.
29407// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
29408// non-2xx status code is an error. Response headers are in either
29409// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
29410// 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 *OrganizationsEnvironmentsArchiveDeploymentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, 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 := &GoogleProtobufEmpty{
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": "Deletes an archive deployment.",
29445	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/archiveDeployments/{archiveDeploymentsId}",
29446	//   "httpMethod": "DELETE",
29447	//   "id": "apigee.organizations.environments.archiveDeployments.delete",
29448	//   "parameterOrder": [
29449	//     "name"
29450	//   ],
29451	//   "parameters": {
29452	//     "name": {
29453	//       "description": "Required. Name of the Archive Deployment in the following format: `organizations/{org}/environments/{env}/archiveDeployments/{id}`.",
29454	//       "location": "path",
29455	//       "pattern": "^organizations/[^/]+/environments/[^/]+/archiveDeployments/[^/]+$",
29456	//       "required": true,
29457	//       "type": "string"
29458	//     }
29459	//   },
29460	//   "path": "v1/{+name}",
29461	//   "response": {
29462	//     "$ref": "GoogleProtobufEmpty"
29463	//   },
29464	//   "scopes": [
29465	//     "https://www.googleapis.com/auth/cloud-platform"
29466	//   ]
29467	// }
29468
29469}
29470
29471// method id "apigee.organizations.environments.archiveDeployments.generateDownloadUrl":
29472
29473type OrganizationsEnvironmentsArchiveDeploymentsGenerateDownloadUrlCall struct {
29474	s                                             *Service
29475	name                                          string
29476	googlecloudapigeev1generatedownloadurlrequest *GoogleCloudApigeeV1GenerateDownloadUrlRequest
29477	urlParams_                                    gensupport.URLParams
29478	ctx_                                          context.Context
29479	header_                                       http.Header
29480}
29481
29482// GenerateDownloadUrl: Generates a signed URL for downloading the
29483// original zip file used to create an Archive Deployment. The URL is
29484// only valid for a limited period and should be used within minutes
29485// after generation. Each call returns a new upload URL.
29486//
29487// - name: The name of the Archive Deployment you want to download.
29488func (r *OrganizationsEnvironmentsArchiveDeploymentsService) GenerateDownloadUrl(name string, googlecloudapigeev1generatedownloadurlrequest *GoogleCloudApigeeV1GenerateDownloadUrlRequest) *OrganizationsEnvironmentsArchiveDeploymentsGenerateDownloadUrlCall {
29489	c := &OrganizationsEnvironmentsArchiveDeploymentsGenerateDownloadUrlCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29490	c.name = name
29491	c.googlecloudapigeev1generatedownloadurlrequest = googlecloudapigeev1generatedownloadurlrequest
29492	return c
29493}
29494
29495// Fields allows partial responses to be retrieved. See
29496// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
29497// for more information.
29498func (c *OrganizationsEnvironmentsArchiveDeploymentsGenerateDownloadUrlCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsArchiveDeploymentsGenerateDownloadUrlCall {
29499	c.urlParams_.Set("fields", googleapi.CombineFields(s))
29500	return c
29501}
29502
29503// Context sets the context to be used in this call's Do method. Any
29504// pending HTTP request will be aborted if the provided context is
29505// canceled.
29506func (c *OrganizationsEnvironmentsArchiveDeploymentsGenerateDownloadUrlCall) Context(ctx context.Context) *OrganizationsEnvironmentsArchiveDeploymentsGenerateDownloadUrlCall {
29507	c.ctx_ = ctx
29508	return c
29509}
29510
29511// Header returns an http.Header that can be modified by the caller to
29512// add HTTP headers to the request.
29513func (c *OrganizationsEnvironmentsArchiveDeploymentsGenerateDownloadUrlCall) Header() http.Header {
29514	if c.header_ == nil {
29515		c.header_ = make(http.Header)
29516	}
29517	return c.header_
29518}
29519
29520func (c *OrganizationsEnvironmentsArchiveDeploymentsGenerateDownloadUrlCall) doRequest(alt string) (*http.Response, error) {
29521	reqHeaders := make(http.Header)
29522	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
29523	for k, v := range c.header_ {
29524		reqHeaders[k] = v
29525	}
29526	reqHeaders.Set("User-Agent", c.s.userAgent())
29527	var body io.Reader = nil
29528	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1generatedownloadurlrequest)
29529	if err != nil {
29530		return nil, err
29531	}
29532	reqHeaders.Set("Content-Type", "application/json")
29533	c.urlParams_.Set("alt", alt)
29534	c.urlParams_.Set("prettyPrint", "false")
29535	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:generateDownloadUrl")
29536	urls += "?" + c.urlParams_.Encode()
29537	req, err := http.NewRequest("POST", urls, body)
29538	if err != nil {
29539		return nil, err
29540	}
29541	req.Header = reqHeaders
29542	googleapi.Expand(req.URL, map[string]string{
29543		"name": c.name,
29544	})
29545	return gensupport.SendRequest(c.ctx_, c.s.client, req)
29546}
29547
29548// Do executes the "apigee.organizations.environments.archiveDeployments.generateDownloadUrl" call.
29549// Exactly one of *GoogleCloudApigeeV1GenerateDownloadUrlResponse or
29550// error will be non-nil. Any non-2xx status code is an error. Response
29551// headers are in either
29552// *GoogleCloudApigeeV1GenerateDownloadUrlResponse.ServerResponse.Header
29553// or (if a response was returned at all) in
29554// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
29555// whether the returned error was because http.StatusNotModified was
29556// returned.
29557func (c *OrganizationsEnvironmentsArchiveDeploymentsGenerateDownloadUrlCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1GenerateDownloadUrlResponse, error) {
29558	gensupport.SetOptions(c.urlParams_, opts...)
29559	res, err := c.doRequest("json")
29560	if res != nil && res.StatusCode == http.StatusNotModified {
29561		if res.Body != nil {
29562			res.Body.Close()
29563		}
29564		return nil, &googleapi.Error{
29565			Code:   res.StatusCode,
29566			Header: res.Header,
29567		}
29568	}
29569	if err != nil {
29570		return nil, err
29571	}
29572	defer googleapi.CloseBody(res)
29573	if err := googleapi.CheckResponse(res); err != nil {
29574		return nil, err
29575	}
29576	ret := &GoogleCloudApigeeV1GenerateDownloadUrlResponse{
29577		ServerResponse: googleapi.ServerResponse{
29578			Header:         res.Header,
29579			HTTPStatusCode: res.StatusCode,
29580		},
29581	}
29582	target := &ret
29583	if err := gensupport.DecodeResponse(target, res); err != nil {
29584		return nil, err
29585	}
29586	return ret, nil
29587	// {
29588	//   "description": "Generates a signed URL for downloading the original zip file used to create an Archive Deployment. The URL is only valid for a limited period and should be used within minutes after generation. Each call returns a new upload URL.",
29589	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/archiveDeployments/{archiveDeploymentsId}:generateDownloadUrl",
29590	//   "httpMethod": "POST",
29591	//   "id": "apigee.organizations.environments.archiveDeployments.generateDownloadUrl",
29592	//   "parameterOrder": [
29593	//     "name"
29594	//   ],
29595	//   "parameters": {
29596	//     "name": {
29597	//       "description": "Required. The name of the Archive Deployment you want to download.",
29598	//       "location": "path",
29599	//       "pattern": "^organizations/[^/]+/environments/[^/]+/archiveDeployments/[^/]+$",
29600	//       "required": true,
29601	//       "type": "string"
29602	//     }
29603	//   },
29604	//   "path": "v1/{+name}:generateDownloadUrl",
29605	//   "request": {
29606	//     "$ref": "GoogleCloudApigeeV1GenerateDownloadUrlRequest"
29607	//   },
29608	//   "response": {
29609	//     "$ref": "GoogleCloudApigeeV1GenerateDownloadUrlResponse"
29610	//   },
29611	//   "scopes": [
29612	//     "https://www.googleapis.com/auth/cloud-platform"
29613	//   ]
29614	// }
29615
29616}
29617
29618// method id "apigee.organizations.environments.archiveDeployments.generateUploadUrl":
29619
29620type OrganizationsEnvironmentsArchiveDeploymentsGenerateUploadUrlCall struct {
29621	s                                           *Service
29622	parent                                      string
29623	googlecloudapigeev1generateuploadurlrequest *GoogleCloudApigeeV1GenerateUploadUrlRequest
29624	urlParams_                                  gensupport.URLParams
29625	ctx_                                        context.Context
29626	header_                                     http.Header
29627}
29628
29629// GenerateUploadUrl: Generates a signed URL for uploading an Archive
29630// zip file to Google Cloud Storage. Once the upload is complete, the
29631// signed URL should be passed to CreateArchiveDeployment. When
29632// uploading to the generated signed URL, please follow these
29633// restrictions: * Source file type should be a zip file. * Source file
29634// size should not exceed 1GB limit. * No credentials should be attached
29635// - the signed URLs provide access to the target bucket using internal
29636// service identity; if credentials were attached, the identity from the
29637// credentials would be used, but that identity does not have
29638// permissions to upload files to the URL. When making a HTTP PUT
29639// request, these two headers need to be specified: * `content-type:
29640// application/zip` * `x-goog-content-length-range: 0,1073741824` And
29641// this header SHOULD NOT be specified: * `Authorization: Bearer
29642// YOUR_TOKEN`
29643//
29644// - parent: The organization and environment to upload to.
29645func (r *OrganizationsEnvironmentsArchiveDeploymentsService) GenerateUploadUrl(parent string, googlecloudapigeev1generateuploadurlrequest *GoogleCloudApigeeV1GenerateUploadUrlRequest) *OrganizationsEnvironmentsArchiveDeploymentsGenerateUploadUrlCall {
29646	c := &OrganizationsEnvironmentsArchiveDeploymentsGenerateUploadUrlCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29647	c.parent = parent
29648	c.googlecloudapigeev1generateuploadurlrequest = googlecloudapigeev1generateuploadurlrequest
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 *OrganizationsEnvironmentsArchiveDeploymentsGenerateUploadUrlCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsArchiveDeploymentsGenerateUploadUrlCall {
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 *OrganizationsEnvironmentsArchiveDeploymentsGenerateUploadUrlCall) Context(ctx context.Context) *OrganizationsEnvironmentsArchiveDeploymentsGenerateUploadUrlCall {
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 *OrganizationsEnvironmentsArchiveDeploymentsGenerateUploadUrlCall) Header() http.Header {
29671	if c.header_ == nil {
29672		c.header_ = make(http.Header)
29673	}
29674	return c.header_
29675}
29676
29677func (c *OrganizationsEnvironmentsArchiveDeploymentsGenerateUploadUrlCall) doRequest(alt string) (*http.Response, error) {
29678	reqHeaders := make(http.Header)
29679	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
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	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1generateuploadurlrequest)
29686	if err != nil {
29687		return nil, err
29688	}
29689	reqHeaders.Set("Content-Type", "application/json")
29690	c.urlParams_.Set("alt", alt)
29691	c.urlParams_.Set("prettyPrint", "false")
29692	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/archiveDeployments:generateUploadUrl")
29693	urls += "?" + c.urlParams_.Encode()
29694	req, err := http.NewRequest("POST", urls, body)
29695	if err != nil {
29696		return nil, err
29697	}
29698	req.Header = reqHeaders
29699	googleapi.Expand(req.URL, map[string]string{
29700		"parent": c.parent,
29701	})
29702	return gensupport.SendRequest(c.ctx_, c.s.client, req)
29703}
29704
29705// Do executes the "apigee.organizations.environments.archiveDeployments.generateUploadUrl" call.
29706// Exactly one of *GoogleCloudApigeeV1GenerateUploadUrlResponse or error
29707// will be non-nil. Any non-2xx status code is an error. Response
29708// headers are in either
29709// *GoogleCloudApigeeV1GenerateUploadUrlResponse.ServerResponse.Header
29710// or (if a response was returned at all) in
29711// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
29712// whether the returned error was because http.StatusNotModified was
29713// returned.
29714func (c *OrganizationsEnvironmentsArchiveDeploymentsGenerateUploadUrlCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1GenerateUploadUrlResponse, error) {
29715	gensupport.SetOptions(c.urlParams_, opts...)
29716	res, err := c.doRequest("json")
29717	if res != nil && res.StatusCode == http.StatusNotModified {
29718		if res.Body != nil {
29719			res.Body.Close()
29720		}
29721		return nil, &googleapi.Error{
29722			Code:   res.StatusCode,
29723			Header: res.Header,
29724		}
29725	}
29726	if err != nil {
29727		return nil, err
29728	}
29729	defer googleapi.CloseBody(res)
29730	if err := googleapi.CheckResponse(res); err != nil {
29731		return nil, err
29732	}
29733	ret := &GoogleCloudApigeeV1GenerateUploadUrlResponse{
29734		ServerResponse: googleapi.ServerResponse{
29735			Header:         res.Header,
29736			HTTPStatusCode: res.StatusCode,
29737		},
29738	}
29739	target := &ret
29740	if err := gensupport.DecodeResponse(target, res); err != nil {
29741		return nil, err
29742	}
29743	return ret, nil
29744	// {
29745	//   "description": "Generates a signed URL for uploading an Archive zip file to Google Cloud Storage. Once the upload is complete, the signed URL should be passed to CreateArchiveDeployment. When uploading to the generated signed URL, please follow these restrictions: * Source file type should be a zip file. * Source file size should not exceed 1GB limit. * No credentials should be attached - the signed URLs provide access to the target bucket using internal service identity; if credentials were attached, the identity from the credentials would be used, but that identity does not have permissions to upload files to the URL. When making a HTTP PUT request, these two headers need to be specified: * `content-type: application/zip` * `x-goog-content-length-range: 0,1073741824` And this header SHOULD NOT be specified: * `Authorization: Bearer YOUR_TOKEN`",
29746	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/archiveDeployments:generateUploadUrl",
29747	//   "httpMethod": "POST",
29748	//   "id": "apigee.organizations.environments.archiveDeployments.generateUploadUrl",
29749	//   "parameterOrder": [
29750	//     "parent"
29751	//   ],
29752	//   "parameters": {
29753	//     "parent": {
29754	//       "description": "Required. The organization and environment to upload to.",
29755	//       "location": "path",
29756	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
29757	//       "required": true,
29758	//       "type": "string"
29759	//     }
29760	//   },
29761	//   "path": "v1/{+parent}/archiveDeployments:generateUploadUrl",
29762	//   "request": {
29763	//     "$ref": "GoogleCloudApigeeV1GenerateUploadUrlRequest"
29764	//   },
29765	//   "response": {
29766	//     "$ref": "GoogleCloudApigeeV1GenerateUploadUrlResponse"
29767	//   },
29768	//   "scopes": [
29769	//     "https://www.googleapis.com/auth/cloud-platform"
29770	//   ]
29771	// }
29772
29773}
29774
29775// method id "apigee.organizations.environments.archiveDeployments.get":
29776
29777type OrganizationsEnvironmentsArchiveDeploymentsGetCall struct {
29778	s            *Service
29779	name         string
29780	urlParams_   gensupport.URLParams
29781	ifNoneMatch_ string
29782	ctx_         context.Context
29783	header_      http.Header
29784}
29785
29786// Get: Gets the specified ArchiveDeployment.
29787//
29788// - name: Name of the Archive Deployment in the following format:
29789//   `organizations/{org}/environments/{env}/archiveDeployments/{id}`.
29790func (r *OrganizationsEnvironmentsArchiveDeploymentsService) Get(name string) *OrganizationsEnvironmentsArchiveDeploymentsGetCall {
29791	c := &OrganizationsEnvironmentsArchiveDeploymentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29792	c.name = name
29793	return c
29794}
29795
29796// Fields allows partial responses to be retrieved. See
29797// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
29798// for more information.
29799func (c *OrganizationsEnvironmentsArchiveDeploymentsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsArchiveDeploymentsGetCall {
29800	c.urlParams_.Set("fields", googleapi.CombineFields(s))
29801	return c
29802}
29803
29804// IfNoneMatch sets the optional parameter which makes the operation
29805// fail if the object's ETag matches the given value. This is useful for
29806// getting updates only after the object has changed since the last
29807// request. Use googleapi.IsNotModified to check whether the response
29808// error from Do is the result of In-None-Match.
29809func (c *OrganizationsEnvironmentsArchiveDeploymentsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsArchiveDeploymentsGetCall {
29810	c.ifNoneMatch_ = entityTag
29811	return c
29812}
29813
29814// Context sets the context to be used in this call's Do method. Any
29815// pending HTTP request will be aborted if the provided context is
29816// canceled.
29817func (c *OrganizationsEnvironmentsArchiveDeploymentsGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsArchiveDeploymentsGetCall {
29818	c.ctx_ = ctx
29819	return c
29820}
29821
29822// Header returns an http.Header that can be modified by the caller to
29823// add HTTP headers to the request.
29824func (c *OrganizationsEnvironmentsArchiveDeploymentsGetCall) Header() http.Header {
29825	if c.header_ == nil {
29826		c.header_ = make(http.Header)
29827	}
29828	return c.header_
29829}
29830
29831func (c *OrganizationsEnvironmentsArchiveDeploymentsGetCall) doRequest(alt string) (*http.Response, error) {
29832	reqHeaders := make(http.Header)
29833	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
29834	for k, v := range c.header_ {
29835		reqHeaders[k] = v
29836	}
29837	reqHeaders.Set("User-Agent", c.s.userAgent())
29838	if c.ifNoneMatch_ != "" {
29839		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
29840	}
29841	var body io.Reader = nil
29842	c.urlParams_.Set("alt", alt)
29843	c.urlParams_.Set("prettyPrint", "false")
29844	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
29845	urls += "?" + c.urlParams_.Encode()
29846	req, err := http.NewRequest("GET", urls, body)
29847	if err != nil {
29848		return nil, err
29849	}
29850	req.Header = reqHeaders
29851	googleapi.Expand(req.URL, map[string]string{
29852		"name": c.name,
29853	})
29854	return gensupport.SendRequest(c.ctx_, c.s.client, req)
29855}
29856
29857// Do executes the "apigee.organizations.environments.archiveDeployments.get" call.
29858// Exactly one of *GoogleCloudApigeeV1ArchiveDeployment or error will be
29859// non-nil. Any non-2xx status code is an error. Response headers are in
29860// either *GoogleCloudApigeeV1ArchiveDeployment.ServerResponse.Header or
29861// (if a response was returned at all) in
29862// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
29863// whether the returned error was because http.StatusNotModified was
29864// returned.
29865func (c *OrganizationsEnvironmentsArchiveDeploymentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ArchiveDeployment, error) {
29866	gensupport.SetOptions(c.urlParams_, opts...)
29867	res, err := c.doRequest("json")
29868	if res != nil && res.StatusCode == http.StatusNotModified {
29869		if res.Body != nil {
29870			res.Body.Close()
29871		}
29872		return nil, &googleapi.Error{
29873			Code:   res.StatusCode,
29874			Header: res.Header,
29875		}
29876	}
29877	if err != nil {
29878		return nil, err
29879	}
29880	defer googleapi.CloseBody(res)
29881	if err := googleapi.CheckResponse(res); err != nil {
29882		return nil, err
29883	}
29884	ret := &GoogleCloudApigeeV1ArchiveDeployment{
29885		ServerResponse: googleapi.ServerResponse{
29886			Header:         res.Header,
29887			HTTPStatusCode: res.StatusCode,
29888		},
29889	}
29890	target := &ret
29891	if err := gensupport.DecodeResponse(target, res); err != nil {
29892		return nil, err
29893	}
29894	return ret, nil
29895	// {
29896	//   "description": "Gets the specified ArchiveDeployment.",
29897	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/archiveDeployments/{archiveDeploymentsId}",
29898	//   "httpMethod": "GET",
29899	//   "id": "apigee.organizations.environments.archiveDeployments.get",
29900	//   "parameterOrder": [
29901	//     "name"
29902	//   ],
29903	//   "parameters": {
29904	//     "name": {
29905	//       "description": "Required. Name of the Archive Deployment in the following format: `organizations/{org}/environments/{env}/archiveDeployments/{id}`.",
29906	//       "location": "path",
29907	//       "pattern": "^organizations/[^/]+/environments/[^/]+/archiveDeployments/[^/]+$",
29908	//       "required": true,
29909	//       "type": "string"
29910	//     }
29911	//   },
29912	//   "path": "v1/{+name}",
29913	//   "response": {
29914	//     "$ref": "GoogleCloudApigeeV1ArchiveDeployment"
29915	//   },
29916	//   "scopes": [
29917	//     "https://www.googleapis.com/auth/cloud-platform"
29918	//   ]
29919	// }
29920
29921}
29922
29923// method id "apigee.organizations.environments.archiveDeployments.list":
29924
29925type OrganizationsEnvironmentsArchiveDeploymentsListCall struct {
29926	s            *Service
29927	parent       string
29928	urlParams_   gensupport.URLParams
29929	ifNoneMatch_ string
29930	ctx_         context.Context
29931	header_      http.Header
29932}
29933
29934// List: Lists the ArchiveDeployments in the specified Environment.
29935//
29936// - parent: Name of the Environment for which to list Archive
29937//   Deployments in the format:
29938//   `organizations/{org}/environments/{env}`.
29939func (r *OrganizationsEnvironmentsArchiveDeploymentsService) List(parent string) *OrganizationsEnvironmentsArchiveDeploymentsListCall {
29940	c := &OrganizationsEnvironmentsArchiveDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29941	c.parent = parent
29942	return c
29943}
29944
29945// Filter sets the optional parameter "filter": An optional query used
29946// to return a subset of Archive Deployments using the semantics defined
29947// in https://google.aip.dev/160.
29948func (c *OrganizationsEnvironmentsArchiveDeploymentsListCall) Filter(filter string) *OrganizationsEnvironmentsArchiveDeploymentsListCall {
29949	c.urlParams_.Set("filter", filter)
29950	return c
29951}
29952
29953// PageSize sets the optional parameter "pageSize": Maximum number of
29954// Archive Deployments to return. If unspecified, at most 25 deployments
29955// will be returned.
29956func (c *OrganizationsEnvironmentsArchiveDeploymentsListCall) PageSize(pageSize int64) *OrganizationsEnvironmentsArchiveDeploymentsListCall {
29957	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
29958	return c
29959}
29960
29961// PageToken sets the optional parameter "pageToken": Page token,
29962// returned from a previous ListArchiveDeployments call, that you can
29963// use to retrieve the next page.
29964func (c *OrganizationsEnvironmentsArchiveDeploymentsListCall) PageToken(pageToken string) *OrganizationsEnvironmentsArchiveDeploymentsListCall {
29965	c.urlParams_.Set("pageToken", pageToken)
29966	return c
29967}
29968
29969// Fields allows partial responses to be retrieved. See
29970// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
29971// for more information.
29972func (c *OrganizationsEnvironmentsArchiveDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsArchiveDeploymentsListCall {
29973	c.urlParams_.Set("fields", googleapi.CombineFields(s))
29974	return c
29975}
29976
29977// IfNoneMatch sets the optional parameter which makes the operation
29978// fail if the object's ETag matches the given value. This is useful for
29979// getting updates only after the object has changed since the last
29980// request. Use googleapi.IsNotModified to check whether the response
29981// error from Do is the result of In-None-Match.
29982func (c *OrganizationsEnvironmentsArchiveDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsArchiveDeploymentsListCall {
29983	c.ifNoneMatch_ = entityTag
29984	return c
29985}
29986
29987// Context sets the context to be used in this call's Do method. Any
29988// pending HTTP request will be aborted if the provided context is
29989// canceled.
29990func (c *OrganizationsEnvironmentsArchiveDeploymentsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsArchiveDeploymentsListCall {
29991	c.ctx_ = ctx
29992	return c
29993}
29994
29995// Header returns an http.Header that can be modified by the caller to
29996// add HTTP headers to the request.
29997func (c *OrganizationsEnvironmentsArchiveDeploymentsListCall) Header() http.Header {
29998	if c.header_ == nil {
29999		c.header_ = make(http.Header)
30000	}
30001	return c.header_
30002}
30003
30004func (c *OrganizationsEnvironmentsArchiveDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
30005	reqHeaders := make(http.Header)
30006	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
30007	for k, v := range c.header_ {
30008		reqHeaders[k] = v
30009	}
30010	reqHeaders.Set("User-Agent", c.s.userAgent())
30011	if c.ifNoneMatch_ != "" {
30012		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
30013	}
30014	var body io.Reader = nil
30015	c.urlParams_.Set("alt", alt)
30016	c.urlParams_.Set("prettyPrint", "false")
30017	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/archiveDeployments")
30018	urls += "?" + c.urlParams_.Encode()
30019	req, err := http.NewRequest("GET", urls, body)
30020	if err != nil {
30021		return nil, err
30022	}
30023	req.Header = reqHeaders
30024	googleapi.Expand(req.URL, map[string]string{
30025		"parent": c.parent,
30026	})
30027	return gensupport.SendRequest(c.ctx_, c.s.client, req)
30028}
30029
30030// Do executes the "apigee.organizations.environments.archiveDeployments.list" call.
30031// Exactly one of *GoogleCloudApigeeV1ListArchiveDeploymentsResponse or
30032// error will be non-nil. Any non-2xx status code is an error. Response
30033// headers are in either
30034// *GoogleCloudApigeeV1ListArchiveDeploymentsResponse.ServerResponse.Head
30035// er or (if a response was returned at all) in
30036// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
30037// whether the returned error was because http.StatusNotModified was
30038// returned.
30039func (c *OrganizationsEnvironmentsArchiveDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListArchiveDeploymentsResponse, error) {
30040	gensupport.SetOptions(c.urlParams_, opts...)
30041	res, err := c.doRequest("json")
30042	if res != nil && res.StatusCode == http.StatusNotModified {
30043		if res.Body != nil {
30044			res.Body.Close()
30045		}
30046		return nil, &googleapi.Error{
30047			Code:   res.StatusCode,
30048			Header: res.Header,
30049		}
30050	}
30051	if err != nil {
30052		return nil, err
30053	}
30054	defer googleapi.CloseBody(res)
30055	if err := googleapi.CheckResponse(res); err != nil {
30056		return nil, err
30057	}
30058	ret := &GoogleCloudApigeeV1ListArchiveDeploymentsResponse{
30059		ServerResponse: googleapi.ServerResponse{
30060			Header:         res.Header,
30061			HTTPStatusCode: res.StatusCode,
30062		},
30063	}
30064	target := &ret
30065	if err := gensupport.DecodeResponse(target, res); err != nil {
30066		return nil, err
30067	}
30068	return ret, nil
30069	// {
30070	//   "description": "Lists the ArchiveDeployments in the specified Environment.",
30071	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/archiveDeployments",
30072	//   "httpMethod": "GET",
30073	//   "id": "apigee.organizations.environments.archiveDeployments.list",
30074	//   "parameterOrder": [
30075	//     "parent"
30076	//   ],
30077	//   "parameters": {
30078	//     "filter": {
30079	//       "description": "Optional. An optional query used to return a subset of Archive Deployments using the semantics defined in https://google.aip.dev/160.",
30080	//       "location": "query",
30081	//       "type": "string"
30082	//     },
30083	//     "pageSize": {
30084	//       "description": "Optional. Maximum number of Archive Deployments to return. If unspecified, at most 25 deployments will be returned.",
30085	//       "format": "int32",
30086	//       "location": "query",
30087	//       "type": "integer"
30088	//     },
30089	//     "pageToken": {
30090	//       "description": "Optional. Page token, returned from a previous ListArchiveDeployments call, that you can use to retrieve the next page.",
30091	//       "location": "query",
30092	//       "type": "string"
30093	//     },
30094	//     "parent": {
30095	//       "description": "Required. Name of the Environment for which to list Archive Deployments in the format: `organizations/{org}/environments/{env}`.",
30096	//       "location": "path",
30097	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
30098	//       "required": true,
30099	//       "type": "string"
30100	//     }
30101	//   },
30102	//   "path": "v1/{+parent}/archiveDeployments",
30103	//   "response": {
30104	//     "$ref": "GoogleCloudApigeeV1ListArchiveDeploymentsResponse"
30105	//   },
30106	//   "scopes": [
30107	//     "https://www.googleapis.com/auth/cloud-platform"
30108	//   ]
30109	// }
30110
30111}
30112
30113// Pages invokes f for each page of results.
30114// A non-nil error returned from f will halt the iteration.
30115// The provided context supersedes any context provided to the Context method.
30116func (c *OrganizationsEnvironmentsArchiveDeploymentsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListArchiveDeploymentsResponse) error) error {
30117	c.ctx_ = ctx
30118	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
30119	for {
30120		x, err := c.Do()
30121		if err != nil {
30122			return err
30123		}
30124		if err := f(x); err != nil {
30125			return err
30126		}
30127		if x.NextPageToken == "" {
30128			return nil
30129		}
30130		c.PageToken(x.NextPageToken)
30131	}
30132}
30133
30134// method id "apigee.organizations.environments.archiveDeployments.patch":
30135
30136type OrganizationsEnvironmentsArchiveDeploymentsPatchCall struct {
30137	s                                    *Service
30138	name                                 string
30139	googlecloudapigeev1archivedeployment *GoogleCloudApigeeV1ArchiveDeployment
30140	urlParams_                           gensupport.URLParams
30141	ctx_                                 context.Context
30142	header_                              http.Header
30143}
30144
30145// Patch: Updates an existing ArchiveDeployment. Labels can modified but
30146// most of the other fields are not modifiable.
30147//
30148// - name: Name of the Archive Deployment in the following format:
30149//   `organizations/{org}/environments/{env}/archiveDeployments/{id}`.
30150func (r *OrganizationsEnvironmentsArchiveDeploymentsService) Patch(name string, googlecloudapigeev1archivedeployment *GoogleCloudApigeeV1ArchiveDeployment) *OrganizationsEnvironmentsArchiveDeploymentsPatchCall {
30151	c := &OrganizationsEnvironmentsArchiveDeploymentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30152	c.name = name
30153	c.googlecloudapigeev1archivedeployment = googlecloudapigeev1archivedeployment
30154	return c
30155}
30156
30157// UpdateMask sets the optional parameter "updateMask": Required. The
30158// list of fields to be updated.
30159func (c *OrganizationsEnvironmentsArchiveDeploymentsPatchCall) UpdateMask(updateMask string) *OrganizationsEnvironmentsArchiveDeploymentsPatchCall {
30160	c.urlParams_.Set("updateMask", updateMask)
30161	return c
30162}
30163
30164// Fields allows partial responses to be retrieved. See
30165// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
30166// for more information.
30167func (c *OrganizationsEnvironmentsArchiveDeploymentsPatchCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsArchiveDeploymentsPatchCall {
30168	c.urlParams_.Set("fields", googleapi.CombineFields(s))
30169	return c
30170}
30171
30172// Context sets the context to be used in this call's Do method. Any
30173// pending HTTP request will be aborted if the provided context is
30174// canceled.
30175func (c *OrganizationsEnvironmentsArchiveDeploymentsPatchCall) Context(ctx context.Context) *OrganizationsEnvironmentsArchiveDeploymentsPatchCall {
30176	c.ctx_ = ctx
30177	return c
30178}
30179
30180// Header returns an http.Header that can be modified by the caller to
30181// add HTTP headers to the request.
30182func (c *OrganizationsEnvironmentsArchiveDeploymentsPatchCall) Header() http.Header {
30183	if c.header_ == nil {
30184		c.header_ = make(http.Header)
30185	}
30186	return c.header_
30187}
30188
30189func (c *OrganizationsEnvironmentsArchiveDeploymentsPatchCall) doRequest(alt string) (*http.Response, error) {
30190	reqHeaders := make(http.Header)
30191	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
30192	for k, v := range c.header_ {
30193		reqHeaders[k] = v
30194	}
30195	reqHeaders.Set("User-Agent", c.s.userAgent())
30196	var body io.Reader = nil
30197	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1archivedeployment)
30198	if err != nil {
30199		return nil, err
30200	}
30201	reqHeaders.Set("Content-Type", "application/json")
30202	c.urlParams_.Set("alt", alt)
30203	c.urlParams_.Set("prettyPrint", "false")
30204	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
30205	urls += "?" + c.urlParams_.Encode()
30206	req, err := http.NewRequest("PATCH", urls, body)
30207	if err != nil {
30208		return nil, err
30209	}
30210	req.Header = reqHeaders
30211	googleapi.Expand(req.URL, map[string]string{
30212		"name": c.name,
30213	})
30214	return gensupport.SendRequest(c.ctx_, c.s.client, req)
30215}
30216
30217// Do executes the "apigee.organizations.environments.archiveDeployments.patch" call.
30218// Exactly one of *GoogleCloudApigeeV1ArchiveDeployment or error will be
30219// non-nil. Any non-2xx status code is an error. Response headers are in
30220// either *GoogleCloudApigeeV1ArchiveDeployment.ServerResponse.Header or
30221// (if a response was returned at all) in
30222// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
30223// whether the returned error was because http.StatusNotModified was
30224// returned.
30225func (c *OrganizationsEnvironmentsArchiveDeploymentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ArchiveDeployment, error) {
30226	gensupport.SetOptions(c.urlParams_, opts...)
30227	res, err := c.doRequest("json")
30228	if res != nil && res.StatusCode == http.StatusNotModified {
30229		if res.Body != nil {
30230			res.Body.Close()
30231		}
30232		return nil, &googleapi.Error{
30233			Code:   res.StatusCode,
30234			Header: res.Header,
30235		}
30236	}
30237	if err != nil {
30238		return nil, err
30239	}
30240	defer googleapi.CloseBody(res)
30241	if err := googleapi.CheckResponse(res); err != nil {
30242		return nil, err
30243	}
30244	ret := &GoogleCloudApigeeV1ArchiveDeployment{
30245		ServerResponse: googleapi.ServerResponse{
30246			Header:         res.Header,
30247			HTTPStatusCode: res.StatusCode,
30248		},
30249	}
30250	target := &ret
30251	if err := gensupport.DecodeResponse(target, res); err != nil {
30252		return nil, err
30253	}
30254	return ret, nil
30255	// {
30256	//   "description": "Updates an existing ArchiveDeployment. Labels can modified but most of the other fields are not modifiable.",
30257	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/archiveDeployments/{archiveDeploymentsId}",
30258	//   "httpMethod": "PATCH",
30259	//   "id": "apigee.organizations.environments.archiveDeployments.patch",
30260	//   "parameterOrder": [
30261	//     "name"
30262	//   ],
30263	//   "parameters": {
30264	//     "name": {
30265	//       "description": "Name of the Archive Deployment in the following format: `organizations/{org}/environments/{env}/archiveDeployments/{id}`.",
30266	//       "location": "path",
30267	//       "pattern": "^organizations/[^/]+/environments/[^/]+/archiveDeployments/[^/]+$",
30268	//       "required": true,
30269	//       "type": "string"
30270	//     },
30271	//     "updateMask": {
30272	//       "description": "Required. The list of fields to be updated.",
30273	//       "format": "google-fieldmask",
30274	//       "location": "query",
30275	//       "type": "string"
30276	//     }
30277	//   },
30278	//   "path": "v1/{+name}",
30279	//   "request": {
30280	//     "$ref": "GoogleCloudApigeeV1ArchiveDeployment"
30281	//   },
30282	//   "response": {
30283	//     "$ref": "GoogleCloudApigeeV1ArchiveDeployment"
30284	//   },
30285	//   "scopes": [
30286	//     "https://www.googleapis.com/auth/cloud-platform"
30287	//   ]
30288	// }
30289
30290}
30291
30292// method id "apigee.organizations.environments.caches.delete":
30293
30294type OrganizationsEnvironmentsCachesDeleteCall struct {
30295	s          *Service
30296	name       string
30297	urlParams_ gensupport.URLParams
30298	ctx_       context.Context
30299	header_    http.Header
30300}
30301
30302// Delete: Deletes a cache.
30303//
30304// - name: Cache resource name of the form:
30305//   `organizations/{organization_id}/environments/{environment_id}/cache
30306//   s/{cache_id}`.
30307func (r *OrganizationsEnvironmentsCachesService) Delete(name string) *OrganizationsEnvironmentsCachesDeleteCall {
30308	c := &OrganizationsEnvironmentsCachesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30309	c.name = name
30310	return c
30311}
30312
30313// Fields allows partial responses to be retrieved. See
30314// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
30315// for more information.
30316func (c *OrganizationsEnvironmentsCachesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsCachesDeleteCall {
30317	c.urlParams_.Set("fields", googleapi.CombineFields(s))
30318	return c
30319}
30320
30321// Context sets the context to be used in this call's Do method. Any
30322// pending HTTP request will be aborted if the provided context is
30323// canceled.
30324func (c *OrganizationsEnvironmentsCachesDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsCachesDeleteCall {
30325	c.ctx_ = ctx
30326	return c
30327}
30328
30329// Header returns an http.Header that can be modified by the caller to
30330// add HTTP headers to the request.
30331func (c *OrganizationsEnvironmentsCachesDeleteCall) Header() http.Header {
30332	if c.header_ == nil {
30333		c.header_ = make(http.Header)
30334	}
30335	return c.header_
30336}
30337
30338func (c *OrganizationsEnvironmentsCachesDeleteCall) doRequest(alt string) (*http.Response, error) {
30339	reqHeaders := make(http.Header)
30340	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
30341	for k, v := range c.header_ {
30342		reqHeaders[k] = v
30343	}
30344	reqHeaders.Set("User-Agent", c.s.userAgent())
30345	var body io.Reader = nil
30346	c.urlParams_.Set("alt", alt)
30347	c.urlParams_.Set("prettyPrint", "false")
30348	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
30349	urls += "?" + c.urlParams_.Encode()
30350	req, err := http.NewRequest("DELETE", urls, body)
30351	if err != nil {
30352		return nil, err
30353	}
30354	req.Header = reqHeaders
30355	googleapi.Expand(req.URL, map[string]string{
30356		"name": c.name,
30357	})
30358	return gensupport.SendRequest(c.ctx_, c.s.client, req)
30359}
30360
30361// Do executes the "apigee.organizations.environments.caches.delete" call.
30362// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
30363// non-2xx status code is an error. Response headers are in either
30364// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
30365// returned at all) in error.(*googleapi.Error).Header. Use
30366// googleapi.IsNotModified to check whether the returned error was
30367// because http.StatusNotModified was returned.
30368func (c *OrganizationsEnvironmentsCachesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
30369	gensupport.SetOptions(c.urlParams_, opts...)
30370	res, err := c.doRequest("json")
30371	if res != nil && res.StatusCode == http.StatusNotModified {
30372		if res.Body != nil {
30373			res.Body.Close()
30374		}
30375		return nil, &googleapi.Error{
30376			Code:   res.StatusCode,
30377			Header: res.Header,
30378		}
30379	}
30380	if err != nil {
30381		return nil, err
30382	}
30383	defer googleapi.CloseBody(res)
30384	if err := googleapi.CheckResponse(res); err != nil {
30385		return nil, err
30386	}
30387	ret := &GoogleProtobufEmpty{
30388		ServerResponse: googleapi.ServerResponse{
30389			Header:         res.Header,
30390			HTTPStatusCode: res.StatusCode,
30391		},
30392	}
30393	target := &ret
30394	if err := gensupport.DecodeResponse(target, res); err != nil {
30395		return nil, err
30396	}
30397	return ret, nil
30398	// {
30399	//   "description": "Deletes a cache.",
30400	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/caches/{cachesId}",
30401	//   "httpMethod": "DELETE",
30402	//   "id": "apigee.organizations.environments.caches.delete",
30403	//   "parameterOrder": [
30404	//     "name"
30405	//   ],
30406	//   "parameters": {
30407	//     "name": {
30408	//       "description": "Required. Cache resource name of the form: `organizations/{organization_id}/environments/{environment_id}/caches/{cache_id}`",
30409	//       "location": "path",
30410	//       "pattern": "^organizations/[^/]+/environments/[^/]+/caches/[^/]+$",
30411	//       "required": true,
30412	//       "type": "string"
30413	//     }
30414	//   },
30415	//   "path": "v1/{+name}",
30416	//   "response": {
30417	//     "$ref": "GoogleProtobufEmpty"
30418	//   },
30419	//   "scopes": [
30420	//     "https://www.googleapis.com/auth/cloud-platform"
30421	//   ]
30422	// }
30423
30424}
30425
30426// method id "apigee.organizations.environments.deployments.list":
30427
30428type OrganizationsEnvironmentsDeploymentsListCall struct {
30429	s            *Service
30430	parent       string
30431	urlParams_   gensupport.URLParams
30432	ifNoneMatch_ string
30433	ctx_         context.Context
30434	header_      http.Header
30435}
30436
30437// List: Lists all deployments of API proxies or shared flows in an
30438// environment.
30439//
30440// - parent: Name of the environment for which to return deployment
30441//   information in the following format:
30442//   `organizations/{org}/environments/{env}`.
30443func (r *OrganizationsEnvironmentsDeploymentsService) List(parent string) *OrganizationsEnvironmentsDeploymentsListCall {
30444	c := &OrganizationsEnvironmentsDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30445	c.parent = parent
30446	return c
30447}
30448
30449// SharedFlows sets the optional parameter "sharedFlows": Flag that
30450// specifies whether to return shared flow or API proxy deployments. Set
30451// to `true` to return shared flow deployments; set to `false` to return
30452// API proxy deployments. Defaults to `false`.
30453func (c *OrganizationsEnvironmentsDeploymentsListCall) SharedFlows(sharedFlows bool) *OrganizationsEnvironmentsDeploymentsListCall {
30454	c.urlParams_.Set("sharedFlows", fmt.Sprint(sharedFlows))
30455	return c
30456}
30457
30458// Fields allows partial responses to be retrieved. See
30459// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
30460// for more information.
30461func (c *OrganizationsEnvironmentsDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsDeploymentsListCall {
30462	c.urlParams_.Set("fields", googleapi.CombineFields(s))
30463	return c
30464}
30465
30466// IfNoneMatch sets the optional parameter which makes the operation
30467// fail if the object's ETag matches the given value. This is useful for
30468// getting updates only after the object has changed since the last
30469// request. Use googleapi.IsNotModified to check whether the response
30470// error from Do is the result of In-None-Match.
30471func (c *OrganizationsEnvironmentsDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsDeploymentsListCall {
30472	c.ifNoneMatch_ = entityTag
30473	return c
30474}
30475
30476// Context sets the context to be used in this call's Do method. Any
30477// pending HTTP request will be aborted if the provided context is
30478// canceled.
30479func (c *OrganizationsEnvironmentsDeploymentsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsDeploymentsListCall {
30480	c.ctx_ = ctx
30481	return c
30482}
30483
30484// Header returns an http.Header that can be modified by the caller to
30485// add HTTP headers to the request.
30486func (c *OrganizationsEnvironmentsDeploymentsListCall) Header() http.Header {
30487	if c.header_ == nil {
30488		c.header_ = make(http.Header)
30489	}
30490	return c.header_
30491}
30492
30493func (c *OrganizationsEnvironmentsDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
30494	reqHeaders := make(http.Header)
30495	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
30496	for k, v := range c.header_ {
30497		reqHeaders[k] = v
30498	}
30499	reqHeaders.Set("User-Agent", c.s.userAgent())
30500	if c.ifNoneMatch_ != "" {
30501		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
30502	}
30503	var body io.Reader = nil
30504	c.urlParams_.Set("alt", alt)
30505	c.urlParams_.Set("prettyPrint", "false")
30506	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
30507	urls += "?" + c.urlParams_.Encode()
30508	req, err := http.NewRequest("GET", urls, body)
30509	if err != nil {
30510		return nil, err
30511	}
30512	req.Header = reqHeaders
30513	googleapi.Expand(req.URL, map[string]string{
30514		"parent": c.parent,
30515	})
30516	return gensupport.SendRequest(c.ctx_, c.s.client, req)
30517}
30518
30519// Do executes the "apigee.organizations.environments.deployments.list" call.
30520// Exactly one of *GoogleCloudApigeeV1ListDeploymentsResponse or error
30521// will be non-nil. Any non-2xx status code is an error. Response
30522// headers are in either
30523// *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or
30524// (if a response was returned at all) in
30525// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
30526// whether the returned error was because http.StatusNotModified was
30527// returned.
30528func (c *OrganizationsEnvironmentsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
30529	gensupport.SetOptions(c.urlParams_, opts...)
30530	res, err := c.doRequest("json")
30531	if res != nil && res.StatusCode == http.StatusNotModified {
30532		if res.Body != nil {
30533			res.Body.Close()
30534		}
30535		return nil, &googleapi.Error{
30536			Code:   res.StatusCode,
30537			Header: res.Header,
30538		}
30539	}
30540	if err != nil {
30541		return nil, err
30542	}
30543	defer googleapi.CloseBody(res)
30544	if err := googleapi.CheckResponse(res); err != nil {
30545		return nil, err
30546	}
30547	ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
30548		ServerResponse: googleapi.ServerResponse{
30549			Header:         res.Header,
30550			HTTPStatusCode: res.StatusCode,
30551		},
30552	}
30553	target := &ret
30554	if err := gensupport.DecodeResponse(target, res); err != nil {
30555		return nil, err
30556	}
30557	return ret, nil
30558	// {
30559	//   "description": "Lists all deployments of API proxies or shared flows in an environment.",
30560	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/deployments",
30561	//   "httpMethod": "GET",
30562	//   "id": "apigee.organizations.environments.deployments.list",
30563	//   "parameterOrder": [
30564	//     "parent"
30565	//   ],
30566	//   "parameters": {
30567	//     "parent": {
30568	//       "description": "Required. Name of the environment for which to return deployment information in the following format: `organizations/{org}/environments/{env}`",
30569	//       "location": "path",
30570	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
30571	//       "required": true,
30572	//       "type": "string"
30573	//     },
30574	//     "sharedFlows": {
30575	//       "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`.",
30576	//       "location": "query",
30577	//       "type": "boolean"
30578	//     }
30579	//   },
30580	//   "path": "v1/{+parent}/deployments",
30581	//   "response": {
30582	//     "$ref": "GoogleCloudApigeeV1ListDeploymentsResponse"
30583	//   },
30584	//   "scopes": [
30585	//     "https://www.googleapis.com/auth/cloud-platform"
30586	//   ]
30587	// }
30588
30589}
30590
30591// method id "apigee.organizations.environments.flowhooks.attachSharedFlowToFlowHook":
30592
30593type OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall struct {
30594	s                           *Service
30595	name                        string
30596	googlecloudapigeev1flowhook *GoogleCloudApigeeV1FlowHook
30597	urlParams_                  gensupport.URLParams
30598	ctx_                        context.Context
30599	header_                     http.Header
30600}
30601
30602// AttachSharedFlowToFlowHook: Attaches a shared flow to a flow hook.
30603//
30604// - name: Name of the flow hook to which the shared flow should be
30605//   attached in the following format:
30606//   `organizations/{org}/environments/{env}/flowhooks/{flowhook}`.
30607func (r *OrganizationsEnvironmentsFlowhooksService) AttachSharedFlowToFlowHook(name string, googlecloudapigeev1flowhook *GoogleCloudApigeeV1FlowHook) *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall {
30608	c := &OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30609	c.name = name
30610	c.googlecloudapigeev1flowhook = googlecloudapigeev1flowhook
30611	return c
30612}
30613
30614// Fields allows partial responses to be retrieved. See
30615// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
30616// for more information.
30617func (c *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall {
30618	c.urlParams_.Set("fields", googleapi.CombineFields(s))
30619	return c
30620}
30621
30622// Context sets the context to be used in this call's Do method. Any
30623// pending HTTP request will be aborted if the provided context is
30624// canceled.
30625func (c *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall) Context(ctx context.Context) *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall {
30626	c.ctx_ = ctx
30627	return c
30628}
30629
30630// Header returns an http.Header that can be modified by the caller to
30631// add HTTP headers to the request.
30632func (c *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall) Header() http.Header {
30633	if c.header_ == nil {
30634		c.header_ = make(http.Header)
30635	}
30636	return c.header_
30637}
30638
30639func (c *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall) doRequest(alt string) (*http.Response, error) {
30640	reqHeaders := make(http.Header)
30641	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
30642	for k, v := range c.header_ {
30643		reqHeaders[k] = v
30644	}
30645	reqHeaders.Set("User-Agent", c.s.userAgent())
30646	var body io.Reader = nil
30647	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1flowhook)
30648	if err != nil {
30649		return nil, err
30650	}
30651	reqHeaders.Set("Content-Type", "application/json")
30652	c.urlParams_.Set("alt", alt)
30653	c.urlParams_.Set("prettyPrint", "false")
30654	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
30655	urls += "?" + c.urlParams_.Encode()
30656	req, err := http.NewRequest("PUT", urls, body)
30657	if err != nil {
30658		return nil, err
30659	}
30660	req.Header = reqHeaders
30661	googleapi.Expand(req.URL, map[string]string{
30662		"name": c.name,
30663	})
30664	return gensupport.SendRequest(c.ctx_, c.s.client, req)
30665}
30666
30667// Do executes the "apigee.organizations.environments.flowhooks.attachSharedFlowToFlowHook" call.
30668// Exactly one of *GoogleCloudApigeeV1FlowHook or error will be non-nil.
30669// Any non-2xx status code is an error. Response headers are in either
30670// *GoogleCloudApigeeV1FlowHook.ServerResponse.Header or (if a response
30671// was returned at all) in error.(*googleapi.Error).Header. Use
30672// googleapi.IsNotModified to check whether the returned error was
30673// because http.StatusNotModified was returned.
30674func (c *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1FlowHook, error) {
30675	gensupport.SetOptions(c.urlParams_, opts...)
30676	res, err := c.doRequest("json")
30677	if res != nil && res.StatusCode == http.StatusNotModified {
30678		if res.Body != nil {
30679			res.Body.Close()
30680		}
30681		return nil, &googleapi.Error{
30682			Code:   res.StatusCode,
30683			Header: res.Header,
30684		}
30685	}
30686	if err != nil {
30687		return nil, err
30688	}
30689	defer googleapi.CloseBody(res)
30690	if err := googleapi.CheckResponse(res); err != nil {
30691		return nil, err
30692	}
30693	ret := &GoogleCloudApigeeV1FlowHook{
30694		ServerResponse: googleapi.ServerResponse{
30695			Header:         res.Header,
30696			HTTPStatusCode: res.StatusCode,
30697		},
30698	}
30699	target := &ret
30700	if err := gensupport.DecodeResponse(target, res); err != nil {
30701		return nil, err
30702	}
30703	return ret, nil
30704	// {
30705	//   "description": "Attaches a shared flow to a flow hook.",
30706	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/flowhooks/{flowhooksId}",
30707	//   "httpMethod": "PUT",
30708	//   "id": "apigee.organizations.environments.flowhooks.attachSharedFlowToFlowHook",
30709	//   "parameterOrder": [
30710	//     "name"
30711	//   ],
30712	//   "parameters": {
30713	//     "name": {
30714	//       "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}`",
30715	//       "location": "path",
30716	//       "pattern": "^organizations/[^/]+/environments/[^/]+/flowhooks/[^/]+$",
30717	//       "required": true,
30718	//       "type": "string"
30719	//     }
30720	//   },
30721	//   "path": "v1/{+name}",
30722	//   "request": {
30723	//     "$ref": "GoogleCloudApigeeV1FlowHook"
30724	//   },
30725	//   "response": {
30726	//     "$ref": "GoogleCloudApigeeV1FlowHook"
30727	//   },
30728	//   "scopes": [
30729	//     "https://www.googleapis.com/auth/cloud-platform"
30730	//   ]
30731	// }
30732
30733}
30734
30735// method id "apigee.organizations.environments.flowhooks.detachSharedFlowFromFlowHook":
30736
30737type OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall struct {
30738	s          *Service
30739	name       string
30740	urlParams_ gensupport.URLParams
30741	ctx_       context.Context
30742	header_    http.Header
30743}
30744
30745// DetachSharedFlowFromFlowHook: Detaches a shared flow from a flow
30746// hook.
30747//
30748// - name: Name of the flow hook to detach in the following format:
30749//   `organizations/{org}/environments/{env}/flowhooks/{flowhook}`.
30750func (r *OrganizationsEnvironmentsFlowhooksService) DetachSharedFlowFromFlowHook(name string) *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall {
30751	c := &OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30752	c.name = name
30753	return c
30754}
30755
30756// Fields allows partial responses to be retrieved. See
30757// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
30758// for more information.
30759func (c *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall {
30760	c.urlParams_.Set("fields", googleapi.CombineFields(s))
30761	return c
30762}
30763
30764// Context sets the context to be used in this call's Do method. Any
30765// pending HTTP request will be aborted if the provided context is
30766// canceled.
30767func (c *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall) Context(ctx context.Context) *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall {
30768	c.ctx_ = ctx
30769	return c
30770}
30771
30772// Header returns an http.Header that can be modified by the caller to
30773// add HTTP headers to the request.
30774func (c *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall) Header() http.Header {
30775	if c.header_ == nil {
30776		c.header_ = make(http.Header)
30777	}
30778	return c.header_
30779}
30780
30781func (c *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall) doRequest(alt string) (*http.Response, error) {
30782	reqHeaders := make(http.Header)
30783	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
30784	for k, v := range c.header_ {
30785		reqHeaders[k] = v
30786	}
30787	reqHeaders.Set("User-Agent", c.s.userAgent())
30788	var body io.Reader = nil
30789	c.urlParams_.Set("alt", alt)
30790	c.urlParams_.Set("prettyPrint", "false")
30791	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
30792	urls += "?" + c.urlParams_.Encode()
30793	req, err := http.NewRequest("DELETE", urls, body)
30794	if err != nil {
30795		return nil, err
30796	}
30797	req.Header = reqHeaders
30798	googleapi.Expand(req.URL, map[string]string{
30799		"name": c.name,
30800	})
30801	return gensupport.SendRequest(c.ctx_, c.s.client, req)
30802}
30803
30804// Do executes the "apigee.organizations.environments.flowhooks.detachSharedFlowFromFlowHook" call.
30805// Exactly one of *GoogleCloudApigeeV1FlowHook or error will be non-nil.
30806// Any non-2xx status code is an error. Response headers are in either
30807// *GoogleCloudApigeeV1FlowHook.ServerResponse.Header or (if a response
30808// was returned at all) in error.(*googleapi.Error).Header. Use
30809// googleapi.IsNotModified to check whether the returned error was
30810// because http.StatusNotModified was returned.
30811func (c *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1FlowHook, error) {
30812	gensupport.SetOptions(c.urlParams_, opts...)
30813	res, err := c.doRequest("json")
30814	if res != nil && res.StatusCode == http.StatusNotModified {
30815		if res.Body != nil {
30816			res.Body.Close()
30817		}
30818		return nil, &googleapi.Error{
30819			Code:   res.StatusCode,
30820			Header: res.Header,
30821		}
30822	}
30823	if err != nil {
30824		return nil, err
30825	}
30826	defer googleapi.CloseBody(res)
30827	if err := googleapi.CheckResponse(res); err != nil {
30828		return nil, err
30829	}
30830	ret := &GoogleCloudApigeeV1FlowHook{
30831		ServerResponse: googleapi.ServerResponse{
30832			Header:         res.Header,
30833			HTTPStatusCode: res.StatusCode,
30834		},
30835	}
30836	target := &ret
30837	if err := gensupport.DecodeResponse(target, res); err != nil {
30838		return nil, err
30839	}
30840	return ret, nil
30841	// {
30842	//   "description": "Detaches a shared flow from a flow hook.",
30843	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/flowhooks/{flowhooksId}",
30844	//   "httpMethod": "DELETE",
30845	//   "id": "apigee.organizations.environments.flowhooks.detachSharedFlowFromFlowHook",
30846	//   "parameterOrder": [
30847	//     "name"
30848	//   ],
30849	//   "parameters": {
30850	//     "name": {
30851	//       "description": "Required. Name of the flow hook to detach in the following format: `organizations/{org}/environments/{env}/flowhooks/{flowhook}`",
30852	//       "location": "path",
30853	//       "pattern": "^organizations/[^/]+/environments/[^/]+/flowhooks/[^/]+$",
30854	//       "required": true,
30855	//       "type": "string"
30856	//     }
30857	//   },
30858	//   "path": "v1/{+name}",
30859	//   "response": {
30860	//     "$ref": "GoogleCloudApigeeV1FlowHook"
30861	//   },
30862	//   "scopes": [
30863	//     "https://www.googleapis.com/auth/cloud-platform"
30864	//   ]
30865	// }
30866
30867}
30868
30869// method id "apigee.organizations.environments.flowhooks.get":
30870
30871type OrganizationsEnvironmentsFlowhooksGetCall struct {
30872	s            *Service
30873	name         string
30874	urlParams_   gensupport.URLParams
30875	ifNoneMatch_ string
30876	ctx_         context.Context
30877	header_      http.Header
30878}
30879
30880// Get: Returns the name of the shared flow attached to the specified
30881// flow hook. If there's no shared flow attached to the flow hook, the
30882// API does not return an error; it simply does not return a name in the
30883// response.
30884//
30885// - name: Name of the flow hook in the following format:
30886//   `organizations/{org}/environments/{env}/flowhooks/{flowhook}`.
30887func (r *OrganizationsEnvironmentsFlowhooksService) Get(name string) *OrganizationsEnvironmentsFlowhooksGetCall {
30888	c := &OrganizationsEnvironmentsFlowhooksGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30889	c.name = name
30890	return c
30891}
30892
30893// Fields allows partial responses to be retrieved. See
30894// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
30895// for more information.
30896func (c *OrganizationsEnvironmentsFlowhooksGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsFlowhooksGetCall {
30897	c.urlParams_.Set("fields", googleapi.CombineFields(s))
30898	return c
30899}
30900
30901// IfNoneMatch sets the optional parameter which makes the operation
30902// fail if the object's ETag matches the given value. This is useful for
30903// getting updates only after the object has changed since the last
30904// request. Use googleapi.IsNotModified to check whether the response
30905// error from Do is the result of In-None-Match.
30906func (c *OrganizationsEnvironmentsFlowhooksGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsFlowhooksGetCall {
30907	c.ifNoneMatch_ = entityTag
30908	return c
30909}
30910
30911// Context sets the context to be used in this call's Do method. Any
30912// pending HTTP request will be aborted if the provided context is
30913// canceled.
30914func (c *OrganizationsEnvironmentsFlowhooksGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsFlowhooksGetCall {
30915	c.ctx_ = ctx
30916	return c
30917}
30918
30919// Header returns an http.Header that can be modified by the caller to
30920// add HTTP headers to the request.
30921func (c *OrganizationsEnvironmentsFlowhooksGetCall) Header() http.Header {
30922	if c.header_ == nil {
30923		c.header_ = make(http.Header)
30924	}
30925	return c.header_
30926}
30927
30928func (c *OrganizationsEnvironmentsFlowhooksGetCall) doRequest(alt string) (*http.Response, error) {
30929	reqHeaders := make(http.Header)
30930	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
30931	for k, v := range c.header_ {
30932		reqHeaders[k] = v
30933	}
30934	reqHeaders.Set("User-Agent", c.s.userAgent())
30935	if c.ifNoneMatch_ != "" {
30936		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
30937	}
30938	var body io.Reader = nil
30939	c.urlParams_.Set("alt", alt)
30940	c.urlParams_.Set("prettyPrint", "false")
30941	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
30942	urls += "?" + c.urlParams_.Encode()
30943	req, err := http.NewRequest("GET", urls, body)
30944	if err != nil {
30945		return nil, err
30946	}
30947	req.Header = reqHeaders
30948	googleapi.Expand(req.URL, map[string]string{
30949		"name": c.name,
30950	})
30951	return gensupport.SendRequest(c.ctx_, c.s.client, req)
30952}
30953
30954// Do executes the "apigee.organizations.environments.flowhooks.get" call.
30955// Exactly one of *GoogleCloudApigeeV1FlowHook or error will be non-nil.
30956// Any non-2xx status code is an error. Response headers are in either
30957// *GoogleCloudApigeeV1FlowHook.ServerResponse.Header or (if a response
30958// was returned at all) in error.(*googleapi.Error).Header. Use
30959// googleapi.IsNotModified to check whether the returned error was
30960// because http.StatusNotModified was returned.
30961func (c *OrganizationsEnvironmentsFlowhooksGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1FlowHook, error) {
30962	gensupport.SetOptions(c.urlParams_, opts...)
30963	res, err := c.doRequest("json")
30964	if res != nil && res.StatusCode == http.StatusNotModified {
30965		if res.Body != nil {
30966			res.Body.Close()
30967		}
30968		return nil, &googleapi.Error{
30969			Code:   res.StatusCode,
30970			Header: res.Header,
30971		}
30972	}
30973	if err != nil {
30974		return nil, err
30975	}
30976	defer googleapi.CloseBody(res)
30977	if err := googleapi.CheckResponse(res); err != nil {
30978		return nil, err
30979	}
30980	ret := &GoogleCloudApigeeV1FlowHook{
30981		ServerResponse: googleapi.ServerResponse{
30982			Header:         res.Header,
30983			HTTPStatusCode: res.StatusCode,
30984		},
30985	}
30986	target := &ret
30987	if err := gensupport.DecodeResponse(target, res); err != nil {
30988		return nil, err
30989	}
30990	return ret, nil
30991	// {
30992	//   "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.",
30993	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/flowhooks/{flowhooksId}",
30994	//   "httpMethod": "GET",
30995	//   "id": "apigee.organizations.environments.flowhooks.get",
30996	//   "parameterOrder": [
30997	//     "name"
30998	//   ],
30999	//   "parameters": {
31000	//     "name": {
31001	//       "description": "Required. Name of the flow hook in the following format: `organizations/{org}/environments/{env}/flowhooks/{flowhook}`",
31002	//       "location": "path",
31003	//       "pattern": "^organizations/[^/]+/environments/[^/]+/flowhooks/[^/]+$",
31004	//       "required": true,
31005	//       "type": "string"
31006	//     }
31007	//   },
31008	//   "path": "v1/{+name}",
31009	//   "response": {
31010	//     "$ref": "GoogleCloudApigeeV1FlowHook"
31011	//   },
31012	//   "scopes": [
31013	//     "https://www.googleapis.com/auth/cloud-platform"
31014	//   ]
31015	// }
31016
31017}
31018
31019// method id "apigee.organizations.environments.keystores.create":
31020
31021type OrganizationsEnvironmentsKeystoresCreateCall struct {
31022	s                           *Service
31023	parent                      string
31024	googlecloudapigeev1keystore *GoogleCloudApigeeV1Keystore
31025	urlParams_                  gensupport.URLParams
31026	ctx_                        context.Context
31027	header_                     http.Header
31028}
31029
31030// Create: Creates a keystore or truststore. - Keystore: Contains
31031// certificates and their associated keys. - Truststore: Contains
31032// trusted certificates used to validate a server's certificate. These
31033// certificates are typically self-signed certificates or certificates
31034// that are not signed by a trusted CA.
31035//
31036// - parent: Name of the environment in which to create the keystore.
31037//   Use the following format in your request:
31038//   `organizations/{org}/environments/{env}`.
31039func (r *OrganizationsEnvironmentsKeystoresService) Create(parent string, googlecloudapigeev1keystore *GoogleCloudApigeeV1Keystore) *OrganizationsEnvironmentsKeystoresCreateCall {
31040	c := &OrganizationsEnvironmentsKeystoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31041	c.parent = parent
31042	c.googlecloudapigeev1keystore = googlecloudapigeev1keystore
31043	return c
31044}
31045
31046// Name sets the optional parameter "name": Name of the keystore.
31047// Overrides the value in Keystore.
31048func (c *OrganizationsEnvironmentsKeystoresCreateCall) Name(name string) *OrganizationsEnvironmentsKeystoresCreateCall {
31049	c.urlParams_.Set("name", name)
31050	return c
31051}
31052
31053// Fields allows partial responses to be retrieved. See
31054// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
31055// for more information.
31056func (c *OrganizationsEnvironmentsKeystoresCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresCreateCall {
31057	c.urlParams_.Set("fields", googleapi.CombineFields(s))
31058	return c
31059}
31060
31061// Context sets the context to be used in this call's Do method. Any
31062// pending HTTP request will be aborted if the provided context is
31063// canceled.
31064func (c *OrganizationsEnvironmentsKeystoresCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresCreateCall {
31065	c.ctx_ = ctx
31066	return c
31067}
31068
31069// Header returns an http.Header that can be modified by the caller to
31070// add HTTP headers to the request.
31071func (c *OrganizationsEnvironmentsKeystoresCreateCall) Header() http.Header {
31072	if c.header_ == nil {
31073		c.header_ = make(http.Header)
31074	}
31075	return c.header_
31076}
31077
31078func (c *OrganizationsEnvironmentsKeystoresCreateCall) doRequest(alt string) (*http.Response, error) {
31079	reqHeaders := make(http.Header)
31080	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
31081	for k, v := range c.header_ {
31082		reqHeaders[k] = v
31083	}
31084	reqHeaders.Set("User-Agent", c.s.userAgent())
31085	var body io.Reader = nil
31086	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1keystore)
31087	if err != nil {
31088		return nil, err
31089	}
31090	reqHeaders.Set("Content-Type", "application/json")
31091	c.urlParams_.Set("alt", alt)
31092	c.urlParams_.Set("prettyPrint", "false")
31093	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keystores")
31094	urls += "?" + c.urlParams_.Encode()
31095	req, err := http.NewRequest("POST", urls, body)
31096	if err != nil {
31097		return nil, err
31098	}
31099	req.Header = reqHeaders
31100	googleapi.Expand(req.URL, map[string]string{
31101		"parent": c.parent,
31102	})
31103	return gensupport.SendRequest(c.ctx_, c.s.client, req)
31104}
31105
31106// Do executes the "apigee.organizations.environments.keystores.create" call.
31107// Exactly one of *GoogleCloudApigeeV1Keystore or error will be non-nil.
31108// Any non-2xx status code is an error. Response headers are in either
31109// *GoogleCloudApigeeV1Keystore.ServerResponse.Header or (if a response
31110// 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 *OrganizationsEnvironmentsKeystoresCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Keystore, 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 := &GoogleCloudApigeeV1Keystore{
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": "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.",
31145	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores",
31146	//   "httpMethod": "POST",
31147	//   "id": "apigee.organizations.environments.keystores.create",
31148	//   "parameterOrder": [
31149	//     "parent"
31150	//   ],
31151	//   "parameters": {
31152	//     "name": {
31153	//       "description": "Optional. Name of the keystore. Overrides the value in Keystore.",
31154	//       "location": "query",
31155	//       "type": "string"
31156	//     },
31157	//     "parent": {
31158	//       "description": "Required. Name of the environment in which to create the keystore. Use the following format in your request: `organizations/{org}/environments/{env}`",
31159	//       "location": "path",
31160	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
31161	//       "required": true,
31162	//       "type": "string"
31163	//     }
31164	//   },
31165	//   "path": "v1/{+parent}/keystores",
31166	//   "request": {
31167	//     "$ref": "GoogleCloudApigeeV1Keystore"
31168	//   },
31169	//   "response": {
31170	//     "$ref": "GoogleCloudApigeeV1Keystore"
31171	//   },
31172	//   "scopes": [
31173	//     "https://www.googleapis.com/auth/cloud-platform"
31174	//   ]
31175	// }
31176
31177}
31178
31179// method id "apigee.organizations.environments.keystores.delete":
31180
31181type OrganizationsEnvironmentsKeystoresDeleteCall struct {
31182	s          *Service
31183	name       string
31184	urlParams_ gensupport.URLParams
31185	ctx_       context.Context
31186	header_    http.Header
31187}
31188
31189// Delete: Deletes a keystore or truststore.
31190//
31191// - name: Name of the keystore. Use the following format in your
31192//   request:
31193//   `organizations/{org}/environments/{env}/keystores/{keystore}`.
31194func (r *OrganizationsEnvironmentsKeystoresService) Delete(name string) *OrganizationsEnvironmentsKeystoresDeleteCall {
31195	c := &OrganizationsEnvironmentsKeystoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31196	c.name = name
31197	return c
31198}
31199
31200// Fields allows partial responses to be retrieved. See
31201// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
31202// for more information.
31203func (c *OrganizationsEnvironmentsKeystoresDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresDeleteCall {
31204	c.urlParams_.Set("fields", googleapi.CombineFields(s))
31205	return c
31206}
31207
31208// Context sets the context to be used in this call's Do method. Any
31209// pending HTTP request will be aborted if the provided context is
31210// canceled.
31211func (c *OrganizationsEnvironmentsKeystoresDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresDeleteCall {
31212	c.ctx_ = ctx
31213	return c
31214}
31215
31216// Header returns an http.Header that can be modified by the caller to
31217// add HTTP headers to the request.
31218func (c *OrganizationsEnvironmentsKeystoresDeleteCall) Header() http.Header {
31219	if c.header_ == nil {
31220		c.header_ = make(http.Header)
31221	}
31222	return c.header_
31223}
31224
31225func (c *OrganizationsEnvironmentsKeystoresDeleteCall) doRequest(alt string) (*http.Response, error) {
31226	reqHeaders := make(http.Header)
31227	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
31228	for k, v := range c.header_ {
31229		reqHeaders[k] = v
31230	}
31231	reqHeaders.Set("User-Agent", c.s.userAgent())
31232	var body io.Reader = nil
31233	c.urlParams_.Set("alt", alt)
31234	c.urlParams_.Set("prettyPrint", "false")
31235	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
31236	urls += "?" + c.urlParams_.Encode()
31237	req, err := http.NewRequest("DELETE", urls, body)
31238	if err != nil {
31239		return nil, err
31240	}
31241	req.Header = reqHeaders
31242	googleapi.Expand(req.URL, map[string]string{
31243		"name": c.name,
31244	})
31245	return gensupport.SendRequest(c.ctx_, c.s.client, req)
31246}
31247
31248// Do executes the "apigee.organizations.environments.keystores.delete" call.
31249// Exactly one of *GoogleCloudApigeeV1Keystore or error will be non-nil.
31250// Any non-2xx status code is an error. Response headers are in either
31251// *GoogleCloudApigeeV1Keystore.ServerResponse.Header or (if a response
31252// was returned at all) in error.(*googleapi.Error).Header. Use
31253// googleapi.IsNotModified to check whether the returned error was
31254// because http.StatusNotModified was returned.
31255func (c *OrganizationsEnvironmentsKeystoresDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Keystore, error) {
31256	gensupport.SetOptions(c.urlParams_, opts...)
31257	res, err := c.doRequest("json")
31258	if res != nil && res.StatusCode == http.StatusNotModified {
31259		if res.Body != nil {
31260			res.Body.Close()
31261		}
31262		return nil, &googleapi.Error{
31263			Code:   res.StatusCode,
31264			Header: res.Header,
31265		}
31266	}
31267	if err != nil {
31268		return nil, err
31269	}
31270	defer googleapi.CloseBody(res)
31271	if err := googleapi.CheckResponse(res); err != nil {
31272		return nil, err
31273	}
31274	ret := &GoogleCloudApigeeV1Keystore{
31275		ServerResponse: googleapi.ServerResponse{
31276			Header:         res.Header,
31277			HTTPStatusCode: res.StatusCode,
31278		},
31279	}
31280	target := &ret
31281	if err := gensupport.DecodeResponse(target, res); err != nil {
31282		return nil, err
31283	}
31284	return ret, nil
31285	// {
31286	//   "description": "Deletes a keystore or truststore.",
31287	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}",
31288	//   "httpMethod": "DELETE",
31289	//   "id": "apigee.organizations.environments.keystores.delete",
31290	//   "parameterOrder": [
31291	//     "name"
31292	//   ],
31293	//   "parameters": {
31294	//     "name": {
31295	//       "description": "Required. Name of the keystore. Use the following format in your request: `organizations/{org}/environments/{env}/keystores/{keystore}`",
31296	//       "location": "path",
31297	//       "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+$",
31298	//       "required": true,
31299	//       "type": "string"
31300	//     }
31301	//   },
31302	//   "path": "v1/{+name}",
31303	//   "response": {
31304	//     "$ref": "GoogleCloudApigeeV1Keystore"
31305	//   },
31306	//   "scopes": [
31307	//     "https://www.googleapis.com/auth/cloud-platform"
31308	//   ]
31309	// }
31310
31311}
31312
31313// method id "apigee.organizations.environments.keystores.get":
31314
31315type OrganizationsEnvironmentsKeystoresGetCall struct {
31316	s            *Service
31317	name         string
31318	urlParams_   gensupport.URLParams
31319	ifNoneMatch_ string
31320	ctx_         context.Context
31321	header_      http.Header
31322}
31323
31324// Get: Gets a keystore or truststore.
31325//
31326// - name: Name of the keystore. Use the following format in your
31327//   request:
31328//   `organizations/{org}/environments/{env}/keystores/{keystore}`.
31329func (r *OrganizationsEnvironmentsKeystoresService) Get(name string) *OrganizationsEnvironmentsKeystoresGetCall {
31330	c := &OrganizationsEnvironmentsKeystoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31331	c.name = name
31332	return c
31333}
31334
31335// Fields allows partial responses to be retrieved. See
31336// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
31337// for more information.
31338func (c *OrganizationsEnvironmentsKeystoresGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresGetCall {
31339	c.urlParams_.Set("fields", googleapi.CombineFields(s))
31340	return c
31341}
31342
31343// IfNoneMatch sets the optional parameter which makes the operation
31344// fail if the object's ETag matches the given value. This is useful for
31345// getting updates only after the object has changed since the last
31346// request. Use googleapi.IsNotModified to check whether the response
31347// error from Do is the result of In-None-Match.
31348func (c *OrganizationsEnvironmentsKeystoresGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsKeystoresGetCall {
31349	c.ifNoneMatch_ = entityTag
31350	return c
31351}
31352
31353// Context sets the context to be used in this call's Do method. Any
31354// pending HTTP request will be aborted if the provided context is
31355// canceled.
31356func (c *OrganizationsEnvironmentsKeystoresGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresGetCall {
31357	c.ctx_ = ctx
31358	return c
31359}
31360
31361// Header returns an http.Header that can be modified by the caller to
31362// add HTTP headers to the request.
31363func (c *OrganizationsEnvironmentsKeystoresGetCall) Header() http.Header {
31364	if c.header_ == nil {
31365		c.header_ = make(http.Header)
31366	}
31367	return c.header_
31368}
31369
31370func (c *OrganizationsEnvironmentsKeystoresGetCall) doRequest(alt string) (*http.Response, error) {
31371	reqHeaders := make(http.Header)
31372	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
31373	for k, v := range c.header_ {
31374		reqHeaders[k] = v
31375	}
31376	reqHeaders.Set("User-Agent", c.s.userAgent())
31377	if c.ifNoneMatch_ != "" {
31378		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
31379	}
31380	var body io.Reader = nil
31381	c.urlParams_.Set("alt", alt)
31382	c.urlParams_.Set("prettyPrint", "false")
31383	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
31384	urls += "?" + c.urlParams_.Encode()
31385	req, err := http.NewRequest("GET", urls, body)
31386	if err != nil {
31387		return nil, err
31388	}
31389	req.Header = reqHeaders
31390	googleapi.Expand(req.URL, map[string]string{
31391		"name": c.name,
31392	})
31393	return gensupport.SendRequest(c.ctx_, c.s.client, req)
31394}
31395
31396// Do executes the "apigee.organizations.environments.keystores.get" call.
31397// Exactly one of *GoogleCloudApigeeV1Keystore or error will be non-nil.
31398// Any non-2xx status code is an error. Response headers are in either
31399// *GoogleCloudApigeeV1Keystore.ServerResponse.Header or (if a response
31400// was returned at all) in error.(*googleapi.Error).Header. Use
31401// googleapi.IsNotModified to check whether the returned error was
31402// because http.StatusNotModified was returned.
31403func (c *OrganizationsEnvironmentsKeystoresGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Keystore, error) {
31404	gensupport.SetOptions(c.urlParams_, opts...)
31405	res, err := c.doRequest("json")
31406	if res != nil && res.StatusCode == http.StatusNotModified {
31407		if res.Body != nil {
31408			res.Body.Close()
31409		}
31410		return nil, &googleapi.Error{
31411			Code:   res.StatusCode,
31412			Header: res.Header,
31413		}
31414	}
31415	if err != nil {
31416		return nil, err
31417	}
31418	defer googleapi.CloseBody(res)
31419	if err := googleapi.CheckResponse(res); err != nil {
31420		return nil, err
31421	}
31422	ret := &GoogleCloudApigeeV1Keystore{
31423		ServerResponse: googleapi.ServerResponse{
31424			Header:         res.Header,
31425			HTTPStatusCode: res.StatusCode,
31426		},
31427	}
31428	target := &ret
31429	if err := gensupport.DecodeResponse(target, res); err != nil {
31430		return nil, err
31431	}
31432	return ret, nil
31433	// {
31434	//   "description": "Gets a keystore or truststore.",
31435	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}",
31436	//   "httpMethod": "GET",
31437	//   "id": "apigee.organizations.environments.keystores.get",
31438	//   "parameterOrder": [
31439	//     "name"
31440	//   ],
31441	//   "parameters": {
31442	//     "name": {
31443	//       "description": "Required. Name of the keystore. Use the following format in your request: `organizations/{org}/environments/{env}/keystores/{keystore}`.",
31444	//       "location": "path",
31445	//       "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+$",
31446	//       "required": true,
31447	//       "type": "string"
31448	//     }
31449	//   },
31450	//   "path": "v1/{+name}",
31451	//   "response": {
31452	//     "$ref": "GoogleCloudApigeeV1Keystore"
31453	//   },
31454	//   "scopes": [
31455	//     "https://www.googleapis.com/auth/cloud-platform"
31456	//   ]
31457	// }
31458
31459}
31460
31461// method id "apigee.organizations.environments.keystores.aliases.create":
31462
31463type OrganizationsEnvironmentsKeystoresAliasesCreateCall struct {
31464	s                 *Service
31465	parent            string
31466	googleapihttpbody *GoogleApiHttpBody
31467	urlParams_        gensupport.URLParams
31468	ctx_              context.Context
31469	header_           http.Header
31470}
31471
31472// Create: Creates an alias from a key/certificate pair. The structure
31473// of the request is controlled by the `format` query parameter: -
31474// `keycertfile` - Separate PEM-encoded key and certificate files are
31475// uploaded. Set `Content-Type: multipart/form-data` and include the
31476// `keyFile`, `certFile`, and `password` (if keys are encrypted) fields
31477// in the request body. If uploading to a truststore, omit `keyFile`. -
31478// `pkcs12` - A PKCS12 file is uploaded. Set `Content-Type:
31479// multipart/form-data`, provide the file in the `file` field, and
31480// include the `password` field if the file is encrypted in the request
31481// body. - `selfsignedcert` - A new private key and certificate are
31482// generated. Set `Content-Type: application/json` and include
31483// CertificateGenerationSpec in the request body.
31484//
31485// - parent: Name of the keystore. Use the following format in your
31486//   request:
31487//   `organizations/{org}/environments/{env}/keystores/{keystore}`.
31488func (r *OrganizationsEnvironmentsKeystoresAliasesService) Create(parent string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
31489	c := &OrganizationsEnvironmentsKeystoresAliasesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31490	c.parent = parent
31491	c.googleapihttpbody = googleapihttpbody
31492	return c
31493}
31494
31495// Password sets the optional parameter "_password": DEPRECATED: For
31496// improved security, specify the password in the request body instead
31497// of using the query parameter. To specify the password in the request
31498// body, set `Content-type: multipart/form-data` part with name
31499// `password`. Password for the private key file, if required.
31500func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Password(Password string) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
31501	c.urlParams_.Set("_password", Password)
31502	return c
31503}
31504
31505// Alias sets the optional parameter "alias": Alias for the
31506// key/certificate pair. Values must match the regular expression
31507// `[\w\s-.]{1,255}`. This must be provided for all formats except
31508// `selfsignedcert`; self-signed certs may specify the alias in either
31509// this parameter or the JSON body.
31510func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Alias(alias string) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
31511	c.urlParams_.Set("alias", alias)
31512	return c
31513}
31514
31515// Format sets the optional parameter "format": Required. Format of the
31516// data. Valid values include: `selfsignedcert`, `keycertfile`, or
31517// `pkcs12`
31518func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Format(format string) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
31519	c.urlParams_.Set("format", format)
31520	return c
31521}
31522
31523// IgnoreExpiryValidation sets the optional parameter
31524// "ignoreExpiryValidation": Flag that specifies whether to ignore
31525// expiry validation. If set to `true`, no expiry validation will be
31526// performed.
31527func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) IgnoreExpiryValidation(ignoreExpiryValidation bool) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
31528	c.urlParams_.Set("ignoreExpiryValidation", fmt.Sprint(ignoreExpiryValidation))
31529	return c
31530}
31531
31532// IgnoreNewlineValidation sets the optional parameter
31533// "ignoreNewlineValidation": Flag that specifies whether to ignore
31534// newline validation. If set to `true`, no error is thrown when the
31535// file contains a certificate chain with no newline between each
31536// certificate. Defaults to `false`.
31537func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) IgnoreNewlineValidation(ignoreNewlineValidation bool) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
31538	c.urlParams_.Set("ignoreNewlineValidation", fmt.Sprint(ignoreNewlineValidation))
31539	return c
31540}
31541
31542// Fields allows partial responses to be retrieved. See
31543// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
31544// for more information.
31545func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
31546	c.urlParams_.Set("fields", googleapi.CombineFields(s))
31547	return c
31548}
31549
31550// Context sets the context to be used in this call's Do method. Any
31551// pending HTTP request will be aborted if the provided context is
31552// canceled.
31553func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
31554	c.ctx_ = ctx
31555	return c
31556}
31557
31558// Header returns an http.Header that can be modified by the caller to
31559// add HTTP headers to the request.
31560func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Header() http.Header {
31561	if c.header_ == nil {
31562		c.header_ = make(http.Header)
31563	}
31564	return c.header_
31565}
31566
31567func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) doRequest(alt string) (*http.Response, error) {
31568	reqHeaders := make(http.Header)
31569	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
31570	for k, v := range c.header_ {
31571		reqHeaders[k] = v
31572	}
31573	reqHeaders.Set("User-Agent", c.s.userAgent())
31574	var body io.Reader = nil
31575	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
31576	if err != nil {
31577		return nil, err
31578	}
31579	reqHeaders.Set("Content-Type", "application/json")
31580	c.urlParams_.Set("alt", alt)
31581	c.urlParams_.Set("prettyPrint", "false")
31582	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/aliases")
31583	urls += "?" + c.urlParams_.Encode()
31584	req, err := http.NewRequest("POST", urls, body)
31585	if err != nil {
31586		return nil, err
31587	}
31588	req.Header = reqHeaders
31589	googleapi.Expand(req.URL, map[string]string{
31590		"parent": c.parent,
31591	})
31592	return gensupport.SendRequest(c.ctx_, c.s.client, req)
31593}
31594
31595// Do executes the "apigee.organizations.environments.keystores.aliases.create" call.
31596// Exactly one of *GoogleCloudApigeeV1Alias or error will be non-nil.
31597// Any non-2xx status code is an error. Response headers are in either
31598// *GoogleCloudApigeeV1Alias.ServerResponse.Header or (if a response was
31599// returned at all) in error.(*googleapi.Error).Header. Use
31600// googleapi.IsNotModified to check whether the returned error was
31601// because http.StatusNotModified was returned.
31602func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Alias, error) {
31603	gensupport.SetOptions(c.urlParams_, opts...)
31604	res, err := c.doRequest("json")
31605	if res != nil && res.StatusCode == http.StatusNotModified {
31606		if res.Body != nil {
31607			res.Body.Close()
31608		}
31609		return nil, &googleapi.Error{
31610			Code:   res.StatusCode,
31611			Header: res.Header,
31612		}
31613	}
31614	if err != nil {
31615		return nil, err
31616	}
31617	defer googleapi.CloseBody(res)
31618	if err := googleapi.CheckResponse(res); err != nil {
31619		return nil, err
31620	}
31621	ret := &GoogleCloudApigeeV1Alias{
31622		ServerResponse: googleapi.ServerResponse{
31623			Header:         res.Header,
31624			HTTPStatusCode: res.StatusCode,
31625		},
31626	}
31627	target := &ret
31628	if err := gensupport.DecodeResponse(target, res); err != nil {
31629		return nil, err
31630	}
31631	return ret, nil
31632	// {
31633	//   "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.",
31634	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}/aliases",
31635	//   "httpMethod": "POST",
31636	//   "id": "apigee.organizations.environments.keystores.aliases.create",
31637	//   "parameterOrder": [
31638	//     "parent"
31639	//   ],
31640	//   "parameters": {
31641	//     "_password": {
31642	//       "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.",
31643	//       "location": "query",
31644	//       "type": "string"
31645	//     },
31646	//     "alias": {
31647	//       "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.",
31648	//       "location": "query",
31649	//       "type": "string"
31650	//     },
31651	//     "format": {
31652	//       "description": "Required. Format of the data. Valid values include: `selfsignedcert`, `keycertfile`, or `pkcs12`",
31653	//       "location": "query",
31654	//       "type": "string"
31655	//     },
31656	//     "ignoreExpiryValidation": {
31657	//       "description": "Flag that specifies whether to ignore expiry validation. If set to `true`, no expiry validation will be performed.",
31658	//       "location": "query",
31659	//       "type": "boolean"
31660	//     },
31661	//     "ignoreNewlineValidation": {
31662	//       "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`.",
31663	//       "location": "query",
31664	//       "type": "boolean"
31665	//     },
31666	//     "parent": {
31667	//       "description": "Required. Name of the keystore. Use the following format in your request: `organizations/{org}/environments/{env}/keystores/{keystore}`.",
31668	//       "location": "path",
31669	//       "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+$",
31670	//       "required": true,
31671	//       "type": "string"
31672	//     }
31673	//   },
31674	//   "path": "v1/{+parent}/aliases",
31675	//   "request": {
31676	//     "$ref": "GoogleApiHttpBody"
31677	//   },
31678	//   "response": {
31679	//     "$ref": "GoogleCloudApigeeV1Alias"
31680	//   },
31681	//   "scopes": [
31682	//     "https://www.googleapis.com/auth/cloud-platform"
31683	//   ]
31684	// }
31685
31686}
31687
31688// method id "apigee.organizations.environments.keystores.aliases.csr":
31689
31690type OrganizationsEnvironmentsKeystoresAliasesCsrCall struct {
31691	s            *Service
31692	name         string
31693	urlParams_   gensupport.URLParams
31694	ifNoneMatch_ string
31695	ctx_         context.Context
31696	header_      http.Header
31697}
31698
31699// Csr: Generates a PKCS #10 Certificate Signing Request for the private
31700// key in an alias.
31701//
31702// - name: Name of the alias. Use the following format in your request:
31703//   `organizations/{org}/environments/{env}/keystores/{keystore}/aliases
31704//   /{alias}`.
31705func (r *OrganizationsEnvironmentsKeystoresAliasesService) Csr(name string) *OrganizationsEnvironmentsKeystoresAliasesCsrCall {
31706	c := &OrganizationsEnvironmentsKeystoresAliasesCsrCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31707	c.name = name
31708	return c
31709}
31710
31711// Fields allows partial responses to be retrieved. See
31712// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
31713// for more information.
31714func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesCsrCall {
31715	c.urlParams_.Set("fields", googleapi.CombineFields(s))
31716	return c
31717}
31718
31719// IfNoneMatch sets the optional parameter which makes the operation
31720// fail if the object's ETag matches the given value. This is useful for
31721// getting updates only after the object has changed since the last
31722// request. Use googleapi.IsNotModified to check whether the response
31723// error from Do is the result of In-None-Match.
31724func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsKeystoresAliasesCsrCall {
31725	c.ifNoneMatch_ = entityTag
31726	return c
31727}
31728
31729// Context sets the context to be used in this call's Do method. Any
31730// pending HTTP request will be aborted if the provided context is
31731// canceled.
31732func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesCsrCall {
31733	c.ctx_ = ctx
31734	return c
31735}
31736
31737// Header returns an http.Header that can be modified by the caller to
31738// add HTTP headers to the request.
31739func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) Header() http.Header {
31740	if c.header_ == nil {
31741		c.header_ = make(http.Header)
31742	}
31743	return c.header_
31744}
31745
31746func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) doRequest(alt string) (*http.Response, error) {
31747	reqHeaders := make(http.Header)
31748	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
31749	for k, v := range c.header_ {
31750		reqHeaders[k] = v
31751	}
31752	reqHeaders.Set("User-Agent", c.s.userAgent())
31753	if c.ifNoneMatch_ != "" {
31754		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
31755	}
31756	var body io.Reader = nil
31757	c.urlParams_.Set("alt", alt)
31758	c.urlParams_.Set("prettyPrint", "false")
31759	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/csr")
31760	urls += "?" + c.urlParams_.Encode()
31761	req, err := http.NewRequest("GET", urls, body)
31762	if err != nil {
31763		return nil, err
31764	}
31765	req.Header = reqHeaders
31766	googleapi.Expand(req.URL, map[string]string{
31767		"name": c.name,
31768	})
31769	return gensupport.SendRequest(c.ctx_, c.s.client, req)
31770}
31771
31772// Do executes the "apigee.organizations.environments.keystores.aliases.csr" call.
31773// Exactly one of *GoogleApiHttpBody or error will be non-nil. Any
31774// non-2xx status code is an error. Response headers are in either
31775// *GoogleApiHttpBody.ServerResponse.Header or (if a response was
31776// returned at all) in error.(*googleapi.Error).Header. Use
31777// googleapi.IsNotModified to check whether the returned error was
31778// because http.StatusNotModified was returned.
31779func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
31780	gensupport.SetOptions(c.urlParams_, opts...)
31781	res, err := c.doRequest("json")
31782	if res != nil && res.StatusCode == http.StatusNotModified {
31783		if res.Body != nil {
31784			res.Body.Close()
31785		}
31786		return nil, &googleapi.Error{
31787			Code:   res.StatusCode,
31788			Header: res.Header,
31789		}
31790	}
31791	if err != nil {
31792		return nil, err
31793	}
31794	defer googleapi.CloseBody(res)
31795	if err := googleapi.CheckResponse(res); err != nil {
31796		return nil, err
31797	}
31798	ret := &GoogleApiHttpBody{
31799		ServerResponse: googleapi.ServerResponse{
31800			Header:         res.Header,
31801			HTTPStatusCode: res.StatusCode,
31802		},
31803	}
31804	target := &ret
31805	if err := gensupport.DecodeResponse(target, res); err != nil {
31806		return nil, err
31807	}
31808	return ret, nil
31809	// {
31810	//   "description": "Generates a PKCS #10 Certificate Signing Request for the private key in an alias.",
31811	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}/aliases/{aliasesId}/csr",
31812	//   "httpMethod": "GET",
31813	//   "id": "apigee.organizations.environments.keystores.aliases.csr",
31814	//   "parameterOrder": [
31815	//     "name"
31816	//   ],
31817	//   "parameters": {
31818	//     "name": {
31819	//       "description": "Required. Name of the alias. Use the following format in your request: `organizations/{org}/environments/{env}/keystores/{keystore}/aliases/{alias}`.",
31820	//       "location": "path",
31821	//       "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+/aliases/[^/]+$",
31822	//       "required": true,
31823	//       "type": "string"
31824	//     }
31825	//   },
31826	//   "path": "v1/{+name}/csr",
31827	//   "response": {
31828	//     "$ref": "GoogleApiHttpBody"
31829	//   },
31830	//   "scopes": [
31831	//     "https://www.googleapis.com/auth/cloud-platform"
31832	//   ]
31833	// }
31834
31835}
31836
31837// method id "apigee.organizations.environments.keystores.aliases.delete":
31838
31839type OrganizationsEnvironmentsKeystoresAliasesDeleteCall struct {
31840	s          *Service
31841	name       string
31842	urlParams_ gensupport.URLParams
31843	ctx_       context.Context
31844	header_    http.Header
31845}
31846
31847// Delete: Deletes an alias.
31848//
31849// - name: Name of the alias. Use the following format in your request:
31850//   `organizations/{org}/environments/{env}/keystores/{keystore}/aliases
31851//   /{alias}`.
31852func (r *OrganizationsEnvironmentsKeystoresAliasesService) Delete(name string) *OrganizationsEnvironmentsKeystoresAliasesDeleteCall {
31853	c := &OrganizationsEnvironmentsKeystoresAliasesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31854	c.name = name
31855	return c
31856}
31857
31858// Fields allows partial responses to be retrieved. See
31859// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
31860// for more information.
31861func (c *OrganizationsEnvironmentsKeystoresAliasesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesDeleteCall {
31862	c.urlParams_.Set("fields", googleapi.CombineFields(s))
31863	return c
31864}
31865
31866// Context sets the context to be used in this call's Do method. Any
31867// pending HTTP request will be aborted if the provided context is
31868// canceled.
31869func (c *OrganizationsEnvironmentsKeystoresAliasesDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesDeleteCall {
31870	c.ctx_ = ctx
31871	return c
31872}
31873
31874// Header returns an http.Header that can be modified by the caller to
31875// add HTTP headers to the request.
31876func (c *OrganizationsEnvironmentsKeystoresAliasesDeleteCall) Header() http.Header {
31877	if c.header_ == nil {
31878		c.header_ = make(http.Header)
31879	}
31880	return c.header_
31881}
31882
31883func (c *OrganizationsEnvironmentsKeystoresAliasesDeleteCall) doRequest(alt string) (*http.Response, error) {
31884	reqHeaders := make(http.Header)
31885	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
31886	for k, v := range c.header_ {
31887		reqHeaders[k] = v
31888	}
31889	reqHeaders.Set("User-Agent", c.s.userAgent())
31890	var body io.Reader = nil
31891	c.urlParams_.Set("alt", alt)
31892	c.urlParams_.Set("prettyPrint", "false")
31893	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
31894	urls += "?" + c.urlParams_.Encode()
31895	req, err := http.NewRequest("DELETE", urls, body)
31896	if err != nil {
31897		return nil, err
31898	}
31899	req.Header = reqHeaders
31900	googleapi.Expand(req.URL, map[string]string{
31901		"name": c.name,
31902	})
31903	return gensupport.SendRequest(c.ctx_, c.s.client, req)
31904}
31905
31906// Do executes the "apigee.organizations.environments.keystores.aliases.delete" call.
31907// Exactly one of *GoogleCloudApigeeV1Alias or error will be non-nil.
31908// Any non-2xx status code is an error. Response headers are in either
31909// *GoogleCloudApigeeV1Alias.ServerResponse.Header or (if a response was
31910// returned at all) in error.(*googleapi.Error).Header. Use
31911// googleapi.IsNotModified to check whether the returned error was
31912// because http.StatusNotModified was returned.
31913func (c *OrganizationsEnvironmentsKeystoresAliasesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Alias, error) {
31914	gensupport.SetOptions(c.urlParams_, opts...)
31915	res, err := c.doRequest("json")
31916	if res != nil && res.StatusCode == http.StatusNotModified {
31917		if res.Body != nil {
31918			res.Body.Close()
31919		}
31920		return nil, &googleapi.Error{
31921			Code:   res.StatusCode,
31922			Header: res.Header,
31923		}
31924	}
31925	if err != nil {
31926		return nil, err
31927	}
31928	defer googleapi.CloseBody(res)
31929	if err := googleapi.CheckResponse(res); err != nil {
31930		return nil, err
31931	}
31932	ret := &GoogleCloudApigeeV1Alias{
31933		ServerResponse: googleapi.ServerResponse{
31934			Header:         res.Header,
31935			HTTPStatusCode: res.StatusCode,
31936		},
31937	}
31938	target := &ret
31939	if err := gensupport.DecodeResponse(target, res); err != nil {
31940		return nil, err
31941	}
31942	return ret, nil
31943	// {
31944	//   "description": "Deletes an alias.",
31945	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}/aliases/{aliasesId}",
31946	//   "httpMethod": "DELETE",
31947	//   "id": "apigee.organizations.environments.keystores.aliases.delete",
31948	//   "parameterOrder": [
31949	//     "name"
31950	//   ],
31951	//   "parameters": {
31952	//     "name": {
31953	//       "description": "Required. Name of the alias. Use the following format in your request: `organizations/{org}/environments/{env}/keystores/{keystore}/aliases/{alias}`.",
31954	//       "location": "path",
31955	//       "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+/aliases/[^/]+$",
31956	//       "required": true,
31957	//       "type": "string"
31958	//     }
31959	//   },
31960	//   "path": "v1/{+name}",
31961	//   "response": {
31962	//     "$ref": "GoogleCloudApigeeV1Alias"
31963	//   },
31964	//   "scopes": [
31965	//     "https://www.googleapis.com/auth/cloud-platform"
31966	//   ]
31967	// }
31968
31969}
31970
31971// method id "apigee.organizations.environments.keystores.aliases.get":
31972
31973type OrganizationsEnvironmentsKeystoresAliasesGetCall struct {
31974	s            *Service
31975	name         string
31976	urlParams_   gensupport.URLParams
31977	ifNoneMatch_ string
31978	ctx_         context.Context
31979	header_      http.Header
31980}
31981
31982// Get: Gets an alias.
31983//
31984// - name: Name of the alias. Use the following format in your request:
31985//   `organizations/{org}/environments/{env}/keystores/{keystore}/aliases
31986//   /{alias}`.
31987func (r *OrganizationsEnvironmentsKeystoresAliasesService) Get(name string) *OrganizationsEnvironmentsKeystoresAliasesGetCall {
31988	c := &OrganizationsEnvironmentsKeystoresAliasesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31989	c.name = name
31990	return c
31991}
31992
31993// Fields allows partial responses to be retrieved. See
31994// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
31995// for more information.
31996func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesGetCall {
31997	c.urlParams_.Set("fields", googleapi.CombineFields(s))
31998	return c
31999}
32000
32001// IfNoneMatch sets the optional parameter which makes the operation
32002// fail if the object's ETag matches the given value. This is useful for
32003// getting updates only after the object has changed since the last
32004// request. Use googleapi.IsNotModified to check whether the response
32005// error from Do is the result of In-None-Match.
32006func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsKeystoresAliasesGetCall {
32007	c.ifNoneMatch_ = entityTag
32008	return c
32009}
32010
32011// Context sets the context to be used in this call's Do method. Any
32012// pending HTTP request will be aborted if the provided context is
32013// canceled.
32014func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesGetCall {
32015	c.ctx_ = ctx
32016	return c
32017}
32018
32019// Header returns an http.Header that can be modified by the caller to
32020// add HTTP headers to the request.
32021func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) Header() http.Header {
32022	if c.header_ == nil {
32023		c.header_ = make(http.Header)
32024	}
32025	return c.header_
32026}
32027
32028func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) doRequest(alt string) (*http.Response, error) {
32029	reqHeaders := make(http.Header)
32030	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
32031	for k, v := range c.header_ {
32032		reqHeaders[k] = v
32033	}
32034	reqHeaders.Set("User-Agent", c.s.userAgent())
32035	if c.ifNoneMatch_ != "" {
32036		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
32037	}
32038	var body io.Reader = nil
32039	c.urlParams_.Set("alt", alt)
32040	c.urlParams_.Set("prettyPrint", "false")
32041	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
32042	urls += "?" + c.urlParams_.Encode()
32043	req, err := http.NewRequest("GET", urls, body)
32044	if err != nil {
32045		return nil, err
32046	}
32047	req.Header = reqHeaders
32048	googleapi.Expand(req.URL, map[string]string{
32049		"name": c.name,
32050	})
32051	return gensupport.SendRequest(c.ctx_, c.s.client, req)
32052}
32053
32054// Do executes the "apigee.organizations.environments.keystores.aliases.get" call.
32055// Exactly one of *GoogleCloudApigeeV1Alias or error will be non-nil.
32056// Any non-2xx status code is an error. Response headers are in either
32057// *GoogleCloudApigeeV1Alias.ServerResponse.Header or (if a response was
32058// returned at all) in error.(*googleapi.Error).Header. Use
32059// googleapi.IsNotModified to check whether the returned error was
32060// because http.StatusNotModified was returned.
32061func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Alias, error) {
32062	gensupport.SetOptions(c.urlParams_, opts...)
32063	res, err := c.doRequest("json")
32064	if res != nil && res.StatusCode == http.StatusNotModified {
32065		if res.Body != nil {
32066			res.Body.Close()
32067		}
32068		return nil, &googleapi.Error{
32069			Code:   res.StatusCode,
32070			Header: res.Header,
32071		}
32072	}
32073	if err != nil {
32074		return nil, err
32075	}
32076	defer googleapi.CloseBody(res)
32077	if err := googleapi.CheckResponse(res); err != nil {
32078		return nil, err
32079	}
32080	ret := &GoogleCloudApigeeV1Alias{
32081		ServerResponse: googleapi.ServerResponse{
32082			Header:         res.Header,
32083			HTTPStatusCode: res.StatusCode,
32084		},
32085	}
32086	target := &ret
32087	if err := gensupport.DecodeResponse(target, res); err != nil {
32088		return nil, err
32089	}
32090	return ret, nil
32091	// {
32092	//   "description": "Gets an alias.",
32093	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}/aliases/{aliasesId}",
32094	//   "httpMethod": "GET",
32095	//   "id": "apigee.organizations.environments.keystores.aliases.get",
32096	//   "parameterOrder": [
32097	//     "name"
32098	//   ],
32099	//   "parameters": {
32100	//     "name": {
32101	//       "description": "Required. Name of the alias. Use the following format in your request: `organizations/{org}/environments/{env}/keystores/{keystore}/aliases/{alias}`.",
32102	//       "location": "path",
32103	//       "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+/aliases/[^/]+$",
32104	//       "required": true,
32105	//       "type": "string"
32106	//     }
32107	//   },
32108	//   "path": "v1/{+name}",
32109	//   "response": {
32110	//     "$ref": "GoogleCloudApigeeV1Alias"
32111	//   },
32112	//   "scopes": [
32113	//     "https://www.googleapis.com/auth/cloud-platform"
32114	//   ]
32115	// }
32116
32117}
32118
32119// method id "apigee.organizations.environments.keystores.aliases.getCertificate":
32120
32121type OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall struct {
32122	s            *Service
32123	name         string
32124	urlParams_   gensupport.URLParams
32125	ifNoneMatch_ string
32126	ctx_         context.Context
32127	header_      http.Header
32128}
32129
32130// GetCertificate: Gets the certificate from an alias in PEM-encoded
32131// form.
32132//
32133// - name: Name of the alias. Use the following format in your request:
32134//   `organizations/{org}/environments/{env}/keystores/{keystore}/aliases
32135//   /{alias}`.
32136func (r *OrganizationsEnvironmentsKeystoresAliasesService) GetCertificate(name string) *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall {
32137	c := &OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32138	c.name = name
32139	return c
32140}
32141
32142// Fields allows partial responses to be retrieved. See
32143// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
32144// for more information.
32145func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall {
32146	c.urlParams_.Set("fields", googleapi.CombineFields(s))
32147	return c
32148}
32149
32150// IfNoneMatch sets the optional parameter which makes the operation
32151// fail if the object's ETag matches the given value. This is useful for
32152// getting updates only after the object has changed since the last
32153// request. Use googleapi.IsNotModified to check whether the response
32154// error from Do is the result of In-None-Match.
32155func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall {
32156	c.ifNoneMatch_ = entityTag
32157	return c
32158}
32159
32160// Context sets the context to be used in this call's Do method. Any
32161// pending HTTP request will be aborted if the provided context is
32162// canceled.
32163func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall {
32164	c.ctx_ = ctx
32165	return c
32166}
32167
32168// Header returns an http.Header that can be modified by the caller to
32169// add HTTP headers to the request.
32170func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) Header() http.Header {
32171	if c.header_ == nil {
32172		c.header_ = make(http.Header)
32173	}
32174	return c.header_
32175}
32176
32177func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) doRequest(alt string) (*http.Response, error) {
32178	reqHeaders := make(http.Header)
32179	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
32180	for k, v := range c.header_ {
32181		reqHeaders[k] = v
32182	}
32183	reqHeaders.Set("User-Agent", c.s.userAgent())
32184	if c.ifNoneMatch_ != "" {
32185		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
32186	}
32187	var body io.Reader = nil
32188	c.urlParams_.Set("alt", alt)
32189	c.urlParams_.Set("prettyPrint", "false")
32190	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/certificate")
32191	urls += "?" + c.urlParams_.Encode()
32192	req, err := http.NewRequest("GET", urls, body)
32193	if err != nil {
32194		return nil, err
32195	}
32196	req.Header = reqHeaders
32197	googleapi.Expand(req.URL, map[string]string{
32198		"name": c.name,
32199	})
32200	return gensupport.SendRequest(c.ctx_, c.s.client, req)
32201}
32202
32203// Do executes the "apigee.organizations.environments.keystores.aliases.getCertificate" call.
32204// Exactly one of *GoogleApiHttpBody or error will be non-nil. Any
32205// non-2xx status code is an error. Response headers are in either
32206// *GoogleApiHttpBody.ServerResponse.Header or (if a response was
32207// returned at all) in error.(*googleapi.Error).Header. Use
32208// googleapi.IsNotModified to check whether the returned error was
32209// because http.StatusNotModified was returned.
32210func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
32211	gensupport.SetOptions(c.urlParams_, opts...)
32212	res, err := c.doRequest("json")
32213	if res != nil && res.StatusCode == http.StatusNotModified {
32214		if res.Body != nil {
32215			res.Body.Close()
32216		}
32217		return nil, &googleapi.Error{
32218			Code:   res.StatusCode,
32219			Header: res.Header,
32220		}
32221	}
32222	if err != nil {
32223		return nil, err
32224	}
32225	defer googleapi.CloseBody(res)
32226	if err := googleapi.CheckResponse(res); err != nil {
32227		return nil, err
32228	}
32229	ret := &GoogleApiHttpBody{
32230		ServerResponse: googleapi.ServerResponse{
32231			Header:         res.Header,
32232			HTTPStatusCode: res.StatusCode,
32233		},
32234	}
32235	target := &ret
32236	if err := gensupport.DecodeResponse(target, res); err != nil {
32237		return nil, err
32238	}
32239	return ret, nil
32240	// {
32241	//   "description": "Gets the certificate from an alias in PEM-encoded form.",
32242	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}/aliases/{aliasesId}/certificate",
32243	//   "httpMethod": "GET",
32244	//   "id": "apigee.organizations.environments.keystores.aliases.getCertificate",
32245	//   "parameterOrder": [
32246	//     "name"
32247	//   ],
32248	//   "parameters": {
32249	//     "name": {
32250	//       "description": "Required. Name of the alias. Use the following format in your request: `organizations/{org}/environments/{env}/keystores/{keystore}/aliases/{alias}`.",
32251	//       "location": "path",
32252	//       "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+/aliases/[^/]+$",
32253	//       "required": true,
32254	//       "type": "string"
32255	//     }
32256	//   },
32257	//   "path": "v1/{+name}/certificate",
32258	//   "response": {
32259	//     "$ref": "GoogleApiHttpBody"
32260	//   },
32261	//   "scopes": [
32262	//     "https://www.googleapis.com/auth/cloud-platform"
32263	//   ]
32264	// }
32265
32266}
32267
32268// method id "apigee.organizations.environments.keystores.aliases.update":
32269
32270type OrganizationsEnvironmentsKeystoresAliasesUpdateCall struct {
32271	s                 *Service
32272	name              string
32273	googleapihttpbody *GoogleApiHttpBody
32274	urlParams_        gensupport.URLParams
32275	ctx_              context.Context
32276	header_           http.Header
32277}
32278
32279// Update: Updates the certificate in an alias.
32280//
32281// - name: Name of the alias. Use the following format in your request:
32282//   `organizations/{org}/environments/{env}/keystores/{keystore}/aliases
32283//   /{alias}`.
32284func (r *OrganizationsEnvironmentsKeystoresAliasesService) Update(name string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsEnvironmentsKeystoresAliasesUpdateCall {
32285	c := &OrganizationsEnvironmentsKeystoresAliasesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32286	c.name = name
32287	c.googleapihttpbody = googleapihttpbody
32288	return c
32289}
32290
32291// IgnoreExpiryValidation sets the optional parameter
32292// "ignoreExpiryValidation": Required. Flag that specifies whether to
32293// ignore expiry validation. If set to `true`, no expiry validation will
32294// be performed.
32295func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) IgnoreExpiryValidation(ignoreExpiryValidation bool) *OrganizationsEnvironmentsKeystoresAliasesUpdateCall {
32296	c.urlParams_.Set("ignoreExpiryValidation", fmt.Sprint(ignoreExpiryValidation))
32297	return c
32298}
32299
32300// IgnoreNewlineValidation sets the optional parameter
32301// "ignoreNewlineValidation": Flag that specifies whether to ignore
32302// newline validation. If set to `true`, no error is thrown when the
32303// file contains a certificate chain with no newline between each
32304// certificate. Defaults to `false`.
32305func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) IgnoreNewlineValidation(ignoreNewlineValidation bool) *OrganizationsEnvironmentsKeystoresAliasesUpdateCall {
32306	c.urlParams_.Set("ignoreNewlineValidation", fmt.Sprint(ignoreNewlineValidation))
32307	return c
32308}
32309
32310// Fields allows partial responses to be retrieved. See
32311// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
32312// for more information.
32313func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesUpdateCall {
32314	c.urlParams_.Set("fields", googleapi.CombineFields(s))
32315	return c
32316}
32317
32318// Context sets the context to be used in this call's Do method. Any
32319// pending HTTP request will be aborted if the provided context is
32320// canceled.
32321func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesUpdateCall {
32322	c.ctx_ = ctx
32323	return c
32324}
32325
32326// Header returns an http.Header that can be modified by the caller to
32327// add HTTP headers to the request.
32328func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) Header() http.Header {
32329	if c.header_ == nil {
32330		c.header_ = make(http.Header)
32331	}
32332	return c.header_
32333}
32334
32335func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) doRequest(alt string) (*http.Response, error) {
32336	reqHeaders := make(http.Header)
32337	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
32338	for k, v := range c.header_ {
32339		reqHeaders[k] = v
32340	}
32341	reqHeaders.Set("User-Agent", c.s.userAgent())
32342	var body io.Reader = nil
32343	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
32344	if err != nil {
32345		return nil, err
32346	}
32347	reqHeaders.Set("Content-Type", "application/json")
32348	c.urlParams_.Set("alt", alt)
32349	c.urlParams_.Set("prettyPrint", "false")
32350	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
32351	urls += "?" + c.urlParams_.Encode()
32352	req, err := http.NewRequest("PUT", urls, body)
32353	if err != nil {
32354		return nil, err
32355	}
32356	req.Header = reqHeaders
32357	googleapi.Expand(req.URL, map[string]string{
32358		"name": c.name,
32359	})
32360	return gensupport.SendRequest(c.ctx_, c.s.client, req)
32361}
32362
32363// Do executes the "apigee.organizations.environments.keystores.aliases.update" call.
32364// Exactly one of *GoogleCloudApigeeV1Alias or error will be non-nil.
32365// Any non-2xx status code is an error. Response headers are in either
32366// *GoogleCloudApigeeV1Alias.ServerResponse.Header or (if a response was
32367// returned at all) in error.(*googleapi.Error).Header. Use
32368// googleapi.IsNotModified to check whether the returned error was
32369// because http.StatusNotModified was returned.
32370func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Alias, error) {
32371	gensupport.SetOptions(c.urlParams_, opts...)
32372	res, err := c.doRequest("json")
32373	if res != nil && res.StatusCode == http.StatusNotModified {
32374		if res.Body != nil {
32375			res.Body.Close()
32376		}
32377		return nil, &googleapi.Error{
32378			Code:   res.StatusCode,
32379			Header: res.Header,
32380		}
32381	}
32382	if err != nil {
32383		return nil, err
32384	}
32385	defer googleapi.CloseBody(res)
32386	if err := googleapi.CheckResponse(res); err != nil {
32387		return nil, err
32388	}
32389	ret := &GoogleCloudApigeeV1Alias{
32390		ServerResponse: googleapi.ServerResponse{
32391			Header:         res.Header,
32392			HTTPStatusCode: res.StatusCode,
32393		},
32394	}
32395	target := &ret
32396	if err := gensupport.DecodeResponse(target, res); err != nil {
32397		return nil, err
32398	}
32399	return ret, nil
32400	// {
32401	//   "description": "Updates the certificate in an alias.",
32402	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}/aliases/{aliasesId}",
32403	//   "httpMethod": "PUT",
32404	//   "id": "apigee.organizations.environments.keystores.aliases.update",
32405	//   "parameterOrder": [
32406	//     "name"
32407	//   ],
32408	//   "parameters": {
32409	//     "ignoreExpiryValidation": {
32410	//       "description": "Required. Flag that specifies whether to ignore expiry validation. If set to `true`, no expiry validation will be performed.",
32411	//       "location": "query",
32412	//       "type": "boolean"
32413	//     },
32414	//     "ignoreNewlineValidation": {
32415	//       "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`.",
32416	//       "location": "query",
32417	//       "type": "boolean"
32418	//     },
32419	//     "name": {
32420	//       "description": "Required. Name of the alias. Use the following format in your request: `organizations/{org}/environments/{env}/keystores/{keystore}/aliases/{alias}`",
32421	//       "location": "path",
32422	//       "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+/aliases/[^/]+$",
32423	//       "required": true,
32424	//       "type": "string"
32425	//     }
32426	//   },
32427	//   "path": "v1/{+name}",
32428	//   "request": {
32429	//     "$ref": "GoogleApiHttpBody"
32430	//   },
32431	//   "response": {
32432	//     "$ref": "GoogleCloudApigeeV1Alias"
32433	//   },
32434	//   "scopes": [
32435	//     "https://www.googleapis.com/auth/cloud-platform"
32436	//   ]
32437	// }
32438
32439}
32440
32441// method id "apigee.organizations.environments.keyvaluemaps.create":
32442
32443type OrganizationsEnvironmentsKeyvaluemapsCreateCall struct {
32444	s                              *Service
32445	parent                         string
32446	googlecloudapigeev1keyvaluemap *GoogleCloudApigeeV1KeyValueMap
32447	urlParams_                     gensupport.URLParams
32448	ctx_                           context.Context
32449	header_                        http.Header
32450}
32451
32452// Create: Creates a key value map in an environment.
32453//
32454// - parent: The name of the environment in which to create the key
32455//   value map. Must be of the form
32456//   `organizations/{organization}/environments/{environment}`.
32457func (r *OrganizationsEnvironmentsKeyvaluemapsService) Create(parent string, googlecloudapigeev1keyvaluemap *GoogleCloudApigeeV1KeyValueMap) *OrganizationsEnvironmentsKeyvaluemapsCreateCall {
32458	c := &OrganizationsEnvironmentsKeyvaluemapsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32459	c.parent = parent
32460	c.googlecloudapigeev1keyvaluemap = googlecloudapigeev1keyvaluemap
32461	return c
32462}
32463
32464// Fields allows partial responses to be retrieved. See
32465// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
32466// for more information.
32467func (c *OrganizationsEnvironmentsKeyvaluemapsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeyvaluemapsCreateCall {
32468	c.urlParams_.Set("fields", googleapi.CombineFields(s))
32469	return c
32470}
32471
32472// Context sets the context to be used in this call's Do method. Any
32473// pending HTTP request will be aborted if the provided context is
32474// canceled.
32475func (c *OrganizationsEnvironmentsKeyvaluemapsCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeyvaluemapsCreateCall {
32476	c.ctx_ = ctx
32477	return c
32478}
32479
32480// Header returns an http.Header that can be modified by the caller to
32481// add HTTP headers to the request.
32482func (c *OrganizationsEnvironmentsKeyvaluemapsCreateCall) Header() http.Header {
32483	if c.header_ == nil {
32484		c.header_ = make(http.Header)
32485	}
32486	return c.header_
32487}
32488
32489func (c *OrganizationsEnvironmentsKeyvaluemapsCreateCall) doRequest(alt string) (*http.Response, error) {
32490	reqHeaders := make(http.Header)
32491	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
32492	for k, v := range c.header_ {
32493		reqHeaders[k] = v
32494	}
32495	reqHeaders.Set("User-Agent", c.s.userAgent())
32496	var body io.Reader = nil
32497	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1keyvaluemap)
32498	if err != nil {
32499		return nil, err
32500	}
32501	reqHeaders.Set("Content-Type", "application/json")
32502	c.urlParams_.Set("alt", alt)
32503	c.urlParams_.Set("prettyPrint", "false")
32504	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keyvaluemaps")
32505	urls += "?" + c.urlParams_.Encode()
32506	req, err := http.NewRequest("POST", urls, body)
32507	if err != nil {
32508		return nil, err
32509	}
32510	req.Header = reqHeaders
32511	googleapi.Expand(req.URL, map[string]string{
32512		"parent": c.parent,
32513	})
32514	return gensupport.SendRequest(c.ctx_, c.s.client, req)
32515}
32516
32517// Do executes the "apigee.organizations.environments.keyvaluemaps.create" call.
32518// Exactly one of *GoogleCloudApigeeV1KeyValueMap or error will be
32519// non-nil. Any non-2xx status code is an error. Response headers are in
32520// either *GoogleCloudApigeeV1KeyValueMap.ServerResponse.Header or (if a
32521// response was returned at all) in error.(*googleapi.Error).Header. Use
32522// googleapi.IsNotModified to check whether the returned error was
32523// because http.StatusNotModified was returned.
32524func (c *OrganizationsEnvironmentsKeyvaluemapsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueMap, error) {
32525	gensupport.SetOptions(c.urlParams_, opts...)
32526	res, err := c.doRequest("json")
32527	if res != nil && res.StatusCode == http.StatusNotModified {
32528		if res.Body != nil {
32529			res.Body.Close()
32530		}
32531		return nil, &googleapi.Error{
32532			Code:   res.StatusCode,
32533			Header: res.Header,
32534		}
32535	}
32536	if err != nil {
32537		return nil, err
32538	}
32539	defer googleapi.CloseBody(res)
32540	if err := googleapi.CheckResponse(res); err != nil {
32541		return nil, err
32542	}
32543	ret := &GoogleCloudApigeeV1KeyValueMap{
32544		ServerResponse: googleapi.ServerResponse{
32545			Header:         res.Header,
32546			HTTPStatusCode: res.StatusCode,
32547		},
32548	}
32549	target := &ret
32550	if err := gensupport.DecodeResponse(target, res); err != nil {
32551		return nil, err
32552	}
32553	return ret, nil
32554	// {
32555	//   "description": "Creates a key value map in an environment.",
32556	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keyvaluemaps",
32557	//   "httpMethod": "POST",
32558	//   "id": "apigee.organizations.environments.keyvaluemaps.create",
32559	//   "parameterOrder": [
32560	//     "parent"
32561	//   ],
32562	//   "parameters": {
32563	//     "parent": {
32564	//       "description": "Required. The name of the environment in which to create the key value map. Must be of the form `organizations/{organization}/environments/{environment}`.",
32565	//       "location": "path",
32566	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
32567	//       "required": true,
32568	//       "type": "string"
32569	//     }
32570	//   },
32571	//   "path": "v1/{+parent}/keyvaluemaps",
32572	//   "request": {
32573	//     "$ref": "GoogleCloudApigeeV1KeyValueMap"
32574	//   },
32575	//   "response": {
32576	//     "$ref": "GoogleCloudApigeeV1KeyValueMap"
32577	//   },
32578	//   "scopes": [
32579	//     "https://www.googleapis.com/auth/cloud-platform"
32580	//   ]
32581	// }
32582
32583}
32584
32585// method id "apigee.organizations.environments.keyvaluemaps.delete":
32586
32587type OrganizationsEnvironmentsKeyvaluemapsDeleteCall struct {
32588	s          *Service
32589	name       string
32590	urlParams_ gensupport.URLParams
32591	ctx_       context.Context
32592	header_    http.Header
32593}
32594
32595// Delete: Delete a key value map in an environment.
32596//
32597// - name: The name of the key value map. Must be of the form
32598//   `organizations/{organization}/environments/{environment}/keyvaluemap
32599//   s/{keyvaluemap}`.
32600func (r *OrganizationsEnvironmentsKeyvaluemapsService) Delete(name string) *OrganizationsEnvironmentsKeyvaluemapsDeleteCall {
32601	c := &OrganizationsEnvironmentsKeyvaluemapsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32602	c.name = name
32603	return c
32604}
32605
32606// Fields allows partial responses to be retrieved. See
32607// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
32608// for more information.
32609func (c *OrganizationsEnvironmentsKeyvaluemapsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeyvaluemapsDeleteCall {
32610	c.urlParams_.Set("fields", googleapi.CombineFields(s))
32611	return c
32612}
32613
32614// Context sets the context to be used in this call's Do method. Any
32615// pending HTTP request will be aborted if the provided context is
32616// canceled.
32617func (c *OrganizationsEnvironmentsKeyvaluemapsDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeyvaluemapsDeleteCall {
32618	c.ctx_ = ctx
32619	return c
32620}
32621
32622// Header returns an http.Header that can be modified by the caller to
32623// add HTTP headers to the request.
32624func (c *OrganizationsEnvironmentsKeyvaluemapsDeleteCall) Header() http.Header {
32625	if c.header_ == nil {
32626		c.header_ = make(http.Header)
32627	}
32628	return c.header_
32629}
32630
32631func (c *OrganizationsEnvironmentsKeyvaluemapsDeleteCall) doRequest(alt string) (*http.Response, error) {
32632	reqHeaders := make(http.Header)
32633	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
32634	for k, v := range c.header_ {
32635		reqHeaders[k] = v
32636	}
32637	reqHeaders.Set("User-Agent", c.s.userAgent())
32638	var body io.Reader = nil
32639	c.urlParams_.Set("alt", alt)
32640	c.urlParams_.Set("prettyPrint", "false")
32641	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
32642	urls += "?" + c.urlParams_.Encode()
32643	req, err := http.NewRequest("DELETE", urls, body)
32644	if err != nil {
32645		return nil, err
32646	}
32647	req.Header = reqHeaders
32648	googleapi.Expand(req.URL, map[string]string{
32649		"name": c.name,
32650	})
32651	return gensupport.SendRequest(c.ctx_, c.s.client, req)
32652}
32653
32654// Do executes the "apigee.organizations.environments.keyvaluemaps.delete" call.
32655// Exactly one of *GoogleCloudApigeeV1KeyValueMap or error will be
32656// non-nil. Any non-2xx status code is an error. Response headers are in
32657// either *GoogleCloudApigeeV1KeyValueMap.ServerResponse.Header or (if a
32658// response was returned at all) in error.(*googleapi.Error).Header. Use
32659// googleapi.IsNotModified to check whether the returned error was
32660// because http.StatusNotModified was returned.
32661func (c *OrganizationsEnvironmentsKeyvaluemapsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueMap, error) {
32662	gensupport.SetOptions(c.urlParams_, opts...)
32663	res, err := c.doRequest("json")
32664	if res != nil && res.StatusCode == http.StatusNotModified {
32665		if res.Body != nil {
32666			res.Body.Close()
32667		}
32668		return nil, &googleapi.Error{
32669			Code:   res.StatusCode,
32670			Header: res.Header,
32671		}
32672	}
32673	if err != nil {
32674		return nil, err
32675	}
32676	defer googleapi.CloseBody(res)
32677	if err := googleapi.CheckResponse(res); err != nil {
32678		return nil, err
32679	}
32680	ret := &GoogleCloudApigeeV1KeyValueMap{
32681		ServerResponse: googleapi.ServerResponse{
32682			Header:         res.Header,
32683			HTTPStatusCode: res.StatusCode,
32684		},
32685	}
32686	target := &ret
32687	if err := gensupport.DecodeResponse(target, res); err != nil {
32688		return nil, err
32689	}
32690	return ret, nil
32691	// {
32692	//   "description": "Delete a key value map in an environment.",
32693	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keyvaluemaps/{keyvaluemapsId}",
32694	//   "httpMethod": "DELETE",
32695	//   "id": "apigee.organizations.environments.keyvaluemaps.delete",
32696	//   "parameterOrder": [
32697	//     "name"
32698	//   ],
32699	//   "parameters": {
32700	//     "name": {
32701	//       "description": "Required. The name of the key value map. Must be of the form `organizations/{organization}/environments/{environment}/keyvaluemaps/{keyvaluemap}`.",
32702	//       "location": "path",
32703	//       "pattern": "^organizations/[^/]+/environments/[^/]+/keyvaluemaps/[^/]+$",
32704	//       "required": true,
32705	//       "type": "string"
32706	//     }
32707	//   },
32708	//   "path": "v1/{+name}",
32709	//   "response": {
32710	//     "$ref": "GoogleCloudApigeeV1KeyValueMap"
32711	//   },
32712	//   "scopes": [
32713	//     "https://www.googleapis.com/auth/cloud-platform"
32714	//   ]
32715	// }
32716
32717}
32718
32719// method id "apigee.organizations.environments.optimizedStats.get":
32720
32721type OrganizationsEnvironmentsOptimizedStatsGetCall struct {
32722	s            *Service
32723	name         string
32724	urlParams_   gensupport.URLParams
32725	ifNoneMatch_ string
32726	ctx_         context.Context
32727	header_      http.Header
32728}
32729
32730// Get: This api is similar to GetStats except that the response is less
32731// verbose. In the current scheme, a query parameter _optimized
32732// instructs Edge Analytics to change the response but since this
32733// behavior is not possible with protocol buffer and since this
32734// parameter is predominantly used by Edge UI, we are introducing a
32735// separate api.
32736//
32737// - name: The resource name for which the interactive query will be
32738//   executed. Must be of the form
32739//   `organizations/{organization_id}/environments/{environment_id/optimi
32740//   zedStats/{dimensions}` Dimensions let you view metrics in
32741//   meaningful groupings. E.g. apiproxy, target_host. The value of
32742//   dimensions should be comma separated list as shown below
32743//   `organizations/{org}/environments/{env}/optimizedStats/apiproxy,requ
32744//   est_verb`.
32745func (r *OrganizationsEnvironmentsOptimizedStatsService) Get(name string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
32746	c := &OrganizationsEnvironmentsOptimizedStatsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32747	c.name = name
32748	return c
32749}
32750
32751// Accuracy sets the optional parameter "accuracy": Legacy field: not
32752// used anymore.
32753func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Accuracy(accuracy string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
32754	c.urlParams_.Set("accuracy", accuracy)
32755	return c
32756}
32757
32758// AggTable sets the optional parameter "aggTable": If customers want to
32759// query custom aggregate tables, then this parameter can be used to
32760// specify the table name. If this parameter is skipped, then Edge Query
32761// will try to retrieve the data from fact tables which will be
32762// expensive.
32763func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) AggTable(aggTable string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
32764	c.urlParams_.Set("aggTable", aggTable)
32765	return c
32766}
32767
32768// Filter sets the optional parameter "filter": Enables drill-down on
32769// specific dimension values.
32770func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Filter(filter string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
32771	c.urlParams_.Set("filter", filter)
32772	return c
32773}
32774
32775// Limit sets the optional parameter "limit": This parameter is used to
32776// limit the number of result items. Default and the max value is 14400.
32777func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Limit(limit string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
32778	c.urlParams_.Set("limit", limit)
32779	return c
32780}
32781
32782// Offset sets the optional parameter "offset": Use offset with limit to
32783// enable pagination of results. For example, to display results 11-20,
32784// set limit to '10' and offset to '10'.
32785func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Offset(offset string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
32786	c.urlParams_.Set("offset", offset)
32787	return c
32788}
32789
32790// Realtime sets the optional parameter "realtime": Legacy field: not
32791// used anymore.
32792func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Realtime(realtime bool) *OrganizationsEnvironmentsOptimizedStatsGetCall {
32793	c.urlParams_.Set("realtime", fmt.Sprint(realtime))
32794	return c
32795}
32796
32797// Select sets the optional parameter "select": Required. The select
32798// parameter contains a comma separated list of metrics. E.g.
32799// sum(message_count),sum(error_count)
32800func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Select(select_ string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
32801	c.urlParams_.Set("select", select_)
32802	return c
32803}
32804
32805// Sonar sets the optional parameter "sonar": This parameter routes the
32806// query to api monitoring service for last hour.
32807func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Sonar(sonar bool) *OrganizationsEnvironmentsOptimizedStatsGetCall {
32808	c.urlParams_.Set("sonar", fmt.Sprint(sonar))
32809	return c
32810}
32811
32812// Sort sets the optional parameter "sort": This parameter specifies if
32813// the sort order should be ascending or descending Supported values are
32814// DESC and ASC.
32815func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Sort(sort string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
32816	c.urlParams_.Set("sort", sort)
32817	return c
32818}
32819
32820// Sortby sets the optional parameter "sortby": Comma separated list of
32821// columns to sort the final result.
32822func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Sortby(sortby string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
32823	c.urlParams_.Set("sortby", sortby)
32824	return c
32825}
32826
32827// TimeRange sets the optional parameter "timeRange": Required. Time
32828// interval for the interactive query. Time range is specified as
32829// start~end E.g. 04/15/2017 00:00~05/15/2017 23:59
32830func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) TimeRange(timeRange string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
32831	c.urlParams_.Set("timeRange", timeRange)
32832	return c
32833}
32834
32835// TimeUnit sets the optional parameter "timeUnit": A value of second,
32836// minute, hour, day, week, month. Time Unit specifies the granularity
32837// of metrics returned.
32838func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) TimeUnit(timeUnit string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
32839	c.urlParams_.Set("timeUnit", timeUnit)
32840	return c
32841}
32842
32843// Topk sets the optional parameter "topk": Take 'top k' results from
32844// results, for example, to return the top 5 results 'topk=5'.
32845func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Topk(topk string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
32846	c.urlParams_.Set("topk", topk)
32847	return c
32848}
32849
32850// TsAscending sets the optional parameter "tsAscending": Lists
32851// timestamps in ascending order if set to true. Recommend setting this
32852// value to true if you are using sortby with sort=DESC.
32853func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) TsAscending(tsAscending bool) *OrganizationsEnvironmentsOptimizedStatsGetCall {
32854	c.urlParams_.Set("tsAscending", fmt.Sprint(tsAscending))
32855	return c
32856}
32857
32858// Tzo sets the optional parameter "tzo": This parameters contains the
32859// timezone offset value.
32860func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Tzo(tzo string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
32861	c.urlParams_.Set("tzo", tzo)
32862	return c
32863}
32864
32865// Fields allows partial responses to be retrieved. See
32866// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
32867// for more information.
32868func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsOptimizedStatsGetCall {
32869	c.urlParams_.Set("fields", googleapi.CombineFields(s))
32870	return c
32871}
32872
32873// IfNoneMatch sets the optional parameter which makes the operation
32874// fail if the object's ETag matches the given value. This is useful for
32875// getting updates only after the object has changed since the last
32876// request. Use googleapi.IsNotModified to check whether the response
32877// error from Do is the result of In-None-Match.
32878func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
32879	c.ifNoneMatch_ = entityTag
32880	return c
32881}
32882
32883// Context sets the context to be used in this call's Do method. Any
32884// pending HTTP request will be aborted if the provided context is
32885// canceled.
32886func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsOptimizedStatsGetCall {
32887	c.ctx_ = ctx
32888	return c
32889}
32890
32891// Header returns an http.Header that can be modified by the caller to
32892// add HTTP headers to the request.
32893func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Header() http.Header {
32894	if c.header_ == nil {
32895		c.header_ = make(http.Header)
32896	}
32897	return c.header_
32898}
32899
32900func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) doRequest(alt string) (*http.Response, error) {
32901	reqHeaders := make(http.Header)
32902	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
32903	for k, v := range c.header_ {
32904		reqHeaders[k] = v
32905	}
32906	reqHeaders.Set("User-Agent", c.s.userAgent())
32907	if c.ifNoneMatch_ != "" {
32908		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
32909	}
32910	var body io.Reader = nil
32911	c.urlParams_.Set("alt", alt)
32912	c.urlParams_.Set("prettyPrint", "false")
32913	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
32914	urls += "?" + c.urlParams_.Encode()
32915	req, err := http.NewRequest("GET", urls, body)
32916	if err != nil {
32917		return nil, err
32918	}
32919	req.Header = reqHeaders
32920	googleapi.Expand(req.URL, map[string]string{
32921		"name": c.name,
32922	})
32923	return gensupport.SendRequest(c.ctx_, c.s.client, req)
32924}
32925
32926// Do executes the "apigee.organizations.environments.optimizedStats.get" call.
32927// Exactly one of *GoogleCloudApigeeV1OptimizedStats or error will be
32928// non-nil. Any non-2xx status code is an error. Response headers are in
32929// either *GoogleCloudApigeeV1OptimizedStats.ServerResponse.Header or
32930// (if a response was returned at all) in
32931// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
32932// whether the returned error was because http.StatusNotModified was
32933// returned.
32934func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1OptimizedStats, error) {
32935	gensupport.SetOptions(c.urlParams_, opts...)
32936	res, err := c.doRequest("json")
32937	if res != nil && res.StatusCode == http.StatusNotModified {
32938		if res.Body != nil {
32939			res.Body.Close()
32940		}
32941		return nil, &googleapi.Error{
32942			Code:   res.StatusCode,
32943			Header: res.Header,
32944		}
32945	}
32946	if err != nil {
32947		return nil, err
32948	}
32949	defer googleapi.CloseBody(res)
32950	if err := googleapi.CheckResponse(res); err != nil {
32951		return nil, err
32952	}
32953	ret := &GoogleCloudApigeeV1OptimizedStats{
32954		ServerResponse: googleapi.ServerResponse{
32955			Header:         res.Header,
32956			HTTPStatusCode: res.StatusCode,
32957		},
32958	}
32959	target := &ret
32960	if err := gensupport.DecodeResponse(target, res); err != nil {
32961		return nil, err
32962	}
32963	return ret, nil
32964	// {
32965	//   "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.",
32966	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/optimizedStats/{optimizedStatsId}",
32967	//   "httpMethod": "GET",
32968	//   "id": "apigee.organizations.environments.optimizedStats.get",
32969	//   "parameterOrder": [
32970	//     "name"
32971	//   ],
32972	//   "parameters": {
32973	//     "accuracy": {
32974	//       "description": "Legacy field: not used anymore.",
32975	//       "location": "query",
32976	//       "type": "string"
32977	//     },
32978	//     "aggTable": {
32979	//       "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.",
32980	//       "location": "query",
32981	//       "type": "string"
32982	//     },
32983	//     "filter": {
32984	//       "description": "Enables drill-down on specific dimension values.",
32985	//       "location": "query",
32986	//       "type": "string"
32987	//     },
32988	//     "limit": {
32989	//       "description": "This parameter is used to limit the number of result items. Default and the max value is 14400.",
32990	//       "location": "query",
32991	//       "type": "string"
32992	//     },
32993	//     "name": {
32994	//       "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`",
32995	//       "location": "path",
32996	//       "pattern": "^organizations/[^/]+/environments/[^/]+/optimizedStats/.*$",
32997	//       "required": true,
32998	//       "type": "string"
32999	//     },
33000	//     "offset": {
33001	//       "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'.",
33002	//       "location": "query",
33003	//       "type": "string"
33004	//     },
33005	//     "realtime": {
33006	//       "description": "Legacy field: not used anymore.",
33007	//       "location": "query",
33008	//       "type": "boolean"
33009	//     },
33010	//     "select": {
33011	//       "description": "Required. The select parameter contains a comma separated list of metrics. E.g. sum(message_count),sum(error_count)",
33012	//       "location": "query",
33013	//       "type": "string"
33014	//     },
33015	//     "sonar": {
33016	//       "description": "This parameter routes the query to api monitoring service for last hour.",
33017	//       "location": "query",
33018	//       "type": "boolean"
33019	//     },
33020	//     "sort": {
33021	//       "description": "This parameter specifies if the sort order should be ascending or descending Supported values are DESC and ASC.",
33022	//       "location": "query",
33023	//       "type": "string"
33024	//     },
33025	//     "sortby": {
33026	//       "description": "Comma separated list of columns to sort the final result.",
33027	//       "location": "query",
33028	//       "type": "string"
33029	//     },
33030	//     "timeRange": {
33031	//       "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",
33032	//       "location": "query",
33033	//       "type": "string"
33034	//     },
33035	//     "timeUnit": {
33036	//       "description": "A value of second, minute, hour, day, week, month. Time Unit specifies the granularity of metrics returned.",
33037	//       "location": "query",
33038	//       "type": "string"
33039	//     },
33040	//     "topk": {
33041	//       "description": "Take 'top k' results from results, for example, to return the top 5 results 'topk=5'.",
33042	//       "location": "query",
33043	//       "type": "string"
33044	//     },
33045	//     "tsAscending": {
33046	//       "description": "Lists timestamps in ascending order if set to true. Recommend setting this value to true if you are using sortby with sort=DESC.",
33047	//       "location": "query",
33048	//       "type": "boolean"
33049	//     },
33050	//     "tzo": {
33051	//       "description": "This parameters contains the timezone offset value.",
33052	//       "location": "query",
33053	//       "type": "string"
33054	//     }
33055	//   },
33056	//   "path": "v1/{+name}",
33057	//   "response": {
33058	//     "$ref": "GoogleCloudApigeeV1OptimizedStats"
33059	//   },
33060	//   "scopes": [
33061	//     "https://www.googleapis.com/auth/cloud-platform"
33062	//   ]
33063	// }
33064
33065}
33066
33067// method id "apigee.organizations.environments.queries.create":
33068
33069type OrganizationsEnvironmentsQueriesCreateCall struct {
33070	s                        *Service
33071	parent                   string
33072	googlecloudapigeev1query *GoogleCloudApigeeV1Query
33073	urlParams_               gensupport.URLParams
33074	ctx_                     context.Context
33075	header_                  http.Header
33076}
33077
33078// Create: Submit a query to be processed in the background. If the
33079// submission of the query succeeds, the API returns a 201 status and an
33080// ID that refer to the query. In addition to the HTTP status 201, the
33081// `state` of "enqueued" means that the request succeeded.
33082//
33083// - parent: The parent resource name. Must be of the form
33084//   `organizations/{org}/environments/{env}`.
33085func (r *OrganizationsEnvironmentsQueriesService) Create(parent string, googlecloudapigeev1query *GoogleCloudApigeeV1Query) *OrganizationsEnvironmentsQueriesCreateCall {
33086	c := &OrganizationsEnvironmentsQueriesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33087	c.parent = parent
33088	c.googlecloudapigeev1query = googlecloudapigeev1query
33089	return c
33090}
33091
33092// Fields allows partial responses to be retrieved. See
33093// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
33094// for more information.
33095func (c *OrganizationsEnvironmentsQueriesCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsQueriesCreateCall {
33096	c.urlParams_.Set("fields", googleapi.CombineFields(s))
33097	return c
33098}
33099
33100// Context sets the context to be used in this call's Do method. Any
33101// pending HTTP request will be aborted if the provided context is
33102// canceled.
33103func (c *OrganizationsEnvironmentsQueriesCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsQueriesCreateCall {
33104	c.ctx_ = ctx
33105	return c
33106}
33107
33108// Header returns an http.Header that can be modified by the caller to
33109// add HTTP headers to the request.
33110func (c *OrganizationsEnvironmentsQueriesCreateCall) Header() http.Header {
33111	if c.header_ == nil {
33112		c.header_ = make(http.Header)
33113	}
33114	return c.header_
33115}
33116
33117func (c *OrganizationsEnvironmentsQueriesCreateCall) doRequest(alt string) (*http.Response, error) {
33118	reqHeaders := make(http.Header)
33119	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
33120	for k, v := range c.header_ {
33121		reqHeaders[k] = v
33122	}
33123	reqHeaders.Set("User-Agent", c.s.userAgent())
33124	var body io.Reader = nil
33125	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1query)
33126	if err != nil {
33127		return nil, err
33128	}
33129	reqHeaders.Set("Content-Type", "application/json")
33130	c.urlParams_.Set("alt", alt)
33131	c.urlParams_.Set("prettyPrint", "false")
33132	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/queries")
33133	urls += "?" + c.urlParams_.Encode()
33134	req, err := http.NewRequest("POST", urls, body)
33135	if err != nil {
33136		return nil, err
33137	}
33138	req.Header = reqHeaders
33139	googleapi.Expand(req.URL, map[string]string{
33140		"parent": c.parent,
33141	})
33142	return gensupport.SendRequest(c.ctx_, c.s.client, req)
33143}
33144
33145// Do executes the "apigee.organizations.environments.queries.create" call.
33146// Exactly one of *GoogleCloudApigeeV1AsyncQuery or error will be
33147// non-nil. Any non-2xx status code is an error. Response headers are in
33148// either *GoogleCloudApigeeV1AsyncQuery.ServerResponse.Header or (if a
33149// response was returned at all) in error.(*googleapi.Error).Header. Use
33150// googleapi.IsNotModified to check whether the returned error was
33151// because http.StatusNotModified was returned.
33152func (c *OrganizationsEnvironmentsQueriesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AsyncQuery, error) {
33153	gensupport.SetOptions(c.urlParams_, opts...)
33154	res, err := c.doRequest("json")
33155	if res != nil && res.StatusCode == http.StatusNotModified {
33156		if res.Body != nil {
33157			res.Body.Close()
33158		}
33159		return nil, &googleapi.Error{
33160			Code:   res.StatusCode,
33161			Header: res.Header,
33162		}
33163	}
33164	if err != nil {
33165		return nil, err
33166	}
33167	defer googleapi.CloseBody(res)
33168	if err := googleapi.CheckResponse(res); err != nil {
33169		return nil, err
33170	}
33171	ret := &GoogleCloudApigeeV1AsyncQuery{
33172		ServerResponse: googleapi.ServerResponse{
33173			Header:         res.Header,
33174			HTTPStatusCode: res.StatusCode,
33175		},
33176	}
33177	target := &ret
33178	if err := gensupport.DecodeResponse(target, res); err != nil {
33179		return nil, err
33180	}
33181	return ret, nil
33182	// {
33183	//   "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.",
33184	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/queries",
33185	//   "httpMethod": "POST",
33186	//   "id": "apigee.organizations.environments.queries.create",
33187	//   "parameterOrder": [
33188	//     "parent"
33189	//   ],
33190	//   "parameters": {
33191	//     "parent": {
33192	//       "description": "Required. The parent resource name. Must be of the form `organizations/{org}/environments/{env}`.",
33193	//       "location": "path",
33194	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
33195	//       "required": true,
33196	//       "type": "string"
33197	//     }
33198	//   },
33199	//   "path": "v1/{+parent}/queries",
33200	//   "request": {
33201	//     "$ref": "GoogleCloudApigeeV1Query"
33202	//   },
33203	//   "response": {
33204	//     "$ref": "GoogleCloudApigeeV1AsyncQuery"
33205	//   },
33206	//   "scopes": [
33207	//     "https://www.googleapis.com/auth/cloud-platform"
33208	//   ]
33209	// }
33210
33211}
33212
33213// method id "apigee.organizations.environments.queries.get":
33214
33215type OrganizationsEnvironmentsQueriesGetCall struct {
33216	s            *Service
33217	name         string
33218	urlParams_   gensupport.URLParams
33219	ifNoneMatch_ string
33220	ctx_         context.Context
33221	header_      http.Header
33222}
33223
33224// Get: Get query status If the query is still in progress, the `state`
33225// is set to "running" After the query has completed successfully,
33226// `state` is set to "completed"
33227//
33228// - name: Name of the asynchronous query to get. Must be of the form
33229//   `organizations/{org}/environments/{env}/queries/{queryId}`.
33230func (r *OrganizationsEnvironmentsQueriesService) Get(name string) *OrganizationsEnvironmentsQueriesGetCall {
33231	c := &OrganizationsEnvironmentsQueriesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33232	c.name = name
33233	return c
33234}
33235
33236// Fields allows partial responses to be retrieved. See
33237// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
33238// for more information.
33239func (c *OrganizationsEnvironmentsQueriesGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsQueriesGetCall {
33240	c.urlParams_.Set("fields", googleapi.CombineFields(s))
33241	return c
33242}
33243
33244// IfNoneMatch sets the optional parameter which makes the operation
33245// fail if the object's ETag matches the given value. This is useful for
33246// getting updates only after the object has changed since the last
33247// request. Use googleapi.IsNotModified to check whether the response
33248// error from Do is the result of In-None-Match.
33249func (c *OrganizationsEnvironmentsQueriesGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsQueriesGetCall {
33250	c.ifNoneMatch_ = entityTag
33251	return c
33252}
33253
33254// Context sets the context to be used in this call's Do method. Any
33255// pending HTTP request will be aborted if the provided context is
33256// canceled.
33257func (c *OrganizationsEnvironmentsQueriesGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsQueriesGetCall {
33258	c.ctx_ = ctx
33259	return c
33260}
33261
33262// Header returns an http.Header that can be modified by the caller to
33263// add HTTP headers to the request.
33264func (c *OrganizationsEnvironmentsQueriesGetCall) Header() http.Header {
33265	if c.header_ == nil {
33266		c.header_ = make(http.Header)
33267	}
33268	return c.header_
33269}
33270
33271func (c *OrganizationsEnvironmentsQueriesGetCall) doRequest(alt string) (*http.Response, error) {
33272	reqHeaders := make(http.Header)
33273	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
33274	for k, v := range c.header_ {
33275		reqHeaders[k] = v
33276	}
33277	reqHeaders.Set("User-Agent", c.s.userAgent())
33278	if c.ifNoneMatch_ != "" {
33279		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
33280	}
33281	var body io.Reader = nil
33282	c.urlParams_.Set("alt", alt)
33283	c.urlParams_.Set("prettyPrint", "false")
33284	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
33285	urls += "?" + c.urlParams_.Encode()
33286	req, err := http.NewRequest("GET", urls, body)
33287	if err != nil {
33288		return nil, err
33289	}
33290	req.Header = reqHeaders
33291	googleapi.Expand(req.URL, map[string]string{
33292		"name": c.name,
33293	})
33294	return gensupport.SendRequest(c.ctx_, c.s.client, req)
33295}
33296
33297// Do executes the "apigee.organizations.environments.queries.get" call.
33298// Exactly one of *GoogleCloudApigeeV1AsyncQuery or error will be
33299// non-nil. Any non-2xx status code is an error. Response headers are in
33300// either *GoogleCloudApigeeV1AsyncQuery.ServerResponse.Header or (if a
33301// response was returned at all) in error.(*googleapi.Error).Header. Use
33302// googleapi.IsNotModified to check whether the returned error was
33303// because http.StatusNotModified was returned.
33304func (c *OrganizationsEnvironmentsQueriesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AsyncQuery, error) {
33305	gensupport.SetOptions(c.urlParams_, opts...)
33306	res, err := c.doRequest("json")
33307	if res != nil && res.StatusCode == http.StatusNotModified {
33308		if res.Body != nil {
33309			res.Body.Close()
33310		}
33311		return nil, &googleapi.Error{
33312			Code:   res.StatusCode,
33313			Header: res.Header,
33314		}
33315	}
33316	if err != nil {
33317		return nil, err
33318	}
33319	defer googleapi.CloseBody(res)
33320	if err := googleapi.CheckResponse(res); err != nil {
33321		return nil, err
33322	}
33323	ret := &GoogleCloudApigeeV1AsyncQuery{
33324		ServerResponse: googleapi.ServerResponse{
33325			Header:         res.Header,
33326			HTTPStatusCode: res.StatusCode,
33327		},
33328	}
33329	target := &ret
33330	if err := gensupport.DecodeResponse(target, res); err != nil {
33331		return nil, err
33332	}
33333	return ret, nil
33334	// {
33335	//   "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\"",
33336	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/queries/{queriesId}",
33337	//   "httpMethod": "GET",
33338	//   "id": "apigee.organizations.environments.queries.get",
33339	//   "parameterOrder": [
33340	//     "name"
33341	//   ],
33342	//   "parameters": {
33343	//     "name": {
33344	//       "description": "Required. Name of the asynchronous query to get. Must be of the form `organizations/{org}/environments/{env}/queries/{queryId}`.",
33345	//       "location": "path",
33346	//       "pattern": "^organizations/[^/]+/environments/[^/]+/queries/[^/]+$",
33347	//       "required": true,
33348	//       "type": "string"
33349	//     }
33350	//   },
33351	//   "path": "v1/{+name}",
33352	//   "response": {
33353	//     "$ref": "GoogleCloudApigeeV1AsyncQuery"
33354	//   },
33355	//   "scopes": [
33356	//     "https://www.googleapis.com/auth/cloud-platform"
33357	//   ]
33358	// }
33359
33360}
33361
33362// method id "apigee.organizations.environments.queries.getResult":
33363
33364type OrganizationsEnvironmentsQueriesGetResultCall struct {
33365	s            *Service
33366	name         string
33367	urlParams_   gensupport.URLParams
33368	ifNoneMatch_ string
33369	ctx_         context.Context
33370	header_      http.Header
33371}
33372
33373// GetResult: After the query is completed, use this API to retrieve the
33374// results. If the request succeeds, and there is a non-zero result set,
33375// the result is downloaded to the client as a zipped JSON file. The
33376// name of the downloaded file will be: OfflineQueryResult-.zip Example:
33377// `OfflineQueryResult-9cfc0d85-0f30-46d6-ae6f-318d0cb961bd.zip`
33378//
33379// - name: Name of the asynchronous query result to get. Must be of the
33380//   form
33381//   `organizations/{org}/environments/{env}/queries/{queryId}/result`.
33382func (r *OrganizationsEnvironmentsQueriesService) GetResult(name string) *OrganizationsEnvironmentsQueriesGetResultCall {
33383	c := &OrganizationsEnvironmentsQueriesGetResultCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33384	c.name = name
33385	return c
33386}
33387
33388// Fields allows partial responses to be retrieved. See
33389// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
33390// for more information.
33391func (c *OrganizationsEnvironmentsQueriesGetResultCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsQueriesGetResultCall {
33392	c.urlParams_.Set("fields", googleapi.CombineFields(s))
33393	return c
33394}
33395
33396// IfNoneMatch sets the optional parameter which makes the operation
33397// fail if the object's ETag matches the given value. This is useful for
33398// getting updates only after the object has changed since the last
33399// request. Use googleapi.IsNotModified to check whether the response
33400// error from Do is the result of In-None-Match.
33401func (c *OrganizationsEnvironmentsQueriesGetResultCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsQueriesGetResultCall {
33402	c.ifNoneMatch_ = entityTag
33403	return c
33404}
33405
33406// Context sets the context to be used in this call's Do method. Any
33407// pending HTTP request will be aborted if the provided context is
33408// canceled.
33409func (c *OrganizationsEnvironmentsQueriesGetResultCall) Context(ctx context.Context) *OrganizationsEnvironmentsQueriesGetResultCall {
33410	c.ctx_ = ctx
33411	return c
33412}
33413
33414// Header returns an http.Header that can be modified by the caller to
33415// add HTTP headers to the request.
33416func (c *OrganizationsEnvironmentsQueriesGetResultCall) Header() http.Header {
33417	if c.header_ == nil {
33418		c.header_ = make(http.Header)
33419	}
33420	return c.header_
33421}
33422
33423func (c *OrganizationsEnvironmentsQueriesGetResultCall) doRequest(alt string) (*http.Response, error) {
33424	reqHeaders := make(http.Header)
33425	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
33426	for k, v := range c.header_ {
33427		reqHeaders[k] = v
33428	}
33429	reqHeaders.Set("User-Agent", c.s.userAgent())
33430	if c.ifNoneMatch_ != "" {
33431		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
33432	}
33433	var body io.Reader = nil
33434	c.urlParams_.Set("alt", alt)
33435	c.urlParams_.Set("prettyPrint", "false")
33436	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
33437	urls += "?" + c.urlParams_.Encode()
33438	req, err := http.NewRequest("GET", urls, body)
33439	if err != nil {
33440		return nil, err
33441	}
33442	req.Header = reqHeaders
33443	googleapi.Expand(req.URL, map[string]string{
33444		"name": c.name,
33445	})
33446	return gensupport.SendRequest(c.ctx_, c.s.client, req)
33447}
33448
33449// Do executes the "apigee.organizations.environments.queries.getResult" call.
33450// Exactly one of *GoogleApiHttpBody or error will be non-nil. Any
33451// non-2xx status code is an error. Response headers are in either
33452// *GoogleApiHttpBody.ServerResponse.Header or (if a response was
33453// returned at all) in error.(*googleapi.Error).Header. Use
33454// googleapi.IsNotModified to check whether the returned error was
33455// because http.StatusNotModified was returned.
33456func (c *OrganizationsEnvironmentsQueriesGetResultCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
33457	gensupport.SetOptions(c.urlParams_, opts...)
33458	res, err := c.doRequest("json")
33459	if res != nil && res.StatusCode == http.StatusNotModified {
33460		if res.Body != nil {
33461			res.Body.Close()
33462		}
33463		return nil, &googleapi.Error{
33464			Code:   res.StatusCode,
33465			Header: res.Header,
33466		}
33467	}
33468	if err != nil {
33469		return nil, err
33470	}
33471	defer googleapi.CloseBody(res)
33472	if err := googleapi.CheckResponse(res); err != nil {
33473		return nil, err
33474	}
33475	ret := &GoogleApiHttpBody{
33476		ServerResponse: googleapi.ServerResponse{
33477			Header:         res.Header,
33478			HTTPStatusCode: res.StatusCode,
33479		},
33480	}
33481	target := &ret
33482	if err := gensupport.DecodeResponse(target, res); err != nil {
33483		return nil, err
33484	}
33485	return ret, nil
33486	// {
33487	//   "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`",
33488	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/queries/{queriesId}/result",
33489	//   "httpMethod": "GET",
33490	//   "id": "apigee.organizations.environments.queries.getResult",
33491	//   "parameterOrder": [
33492	//     "name"
33493	//   ],
33494	//   "parameters": {
33495	//     "name": {
33496	//       "description": "Required. Name of the asynchronous query result to get. Must be of the form `organizations/{org}/environments/{env}/queries/{queryId}/result`.",
33497	//       "location": "path",
33498	//       "pattern": "^organizations/[^/]+/environments/[^/]+/queries/[^/]+/result$",
33499	//       "required": true,
33500	//       "type": "string"
33501	//     }
33502	//   },
33503	//   "path": "v1/{+name}",
33504	//   "response": {
33505	//     "$ref": "GoogleApiHttpBody"
33506	//   },
33507	//   "scopes": [
33508	//     "https://www.googleapis.com/auth/cloud-platform"
33509	//   ]
33510	// }
33511
33512}
33513
33514// method id "apigee.organizations.environments.queries.list":
33515
33516type OrganizationsEnvironmentsQueriesListCall struct {
33517	s            *Service
33518	parent       string
33519	urlParams_   gensupport.URLParams
33520	ifNoneMatch_ string
33521	ctx_         context.Context
33522	header_      http.Header
33523}
33524
33525// List: Return a list of Asynchronous Queries
33526//
33527// - parent: The parent resource name. Must be of the form
33528//   `organizations/{org}/environments/{env}`.
33529func (r *OrganizationsEnvironmentsQueriesService) List(parent string) *OrganizationsEnvironmentsQueriesListCall {
33530	c := &OrganizationsEnvironmentsQueriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33531	c.parent = parent
33532	return c
33533}
33534
33535// Dataset sets the optional parameter "dataset": Filter response list
33536// by dataset. Example: `api`, `mint`
33537func (c *OrganizationsEnvironmentsQueriesListCall) Dataset(dataset string) *OrganizationsEnvironmentsQueriesListCall {
33538	c.urlParams_.Set("dataset", dataset)
33539	return c
33540}
33541
33542// From sets the optional parameter "from": Filter response list by
33543// returning asynchronous queries that created after this date time.
33544// Time must be in ISO date-time format like '2011-12-03T10:15:30Z'.
33545func (c *OrganizationsEnvironmentsQueriesListCall) From(from string) *OrganizationsEnvironmentsQueriesListCall {
33546	c.urlParams_.Set("from", from)
33547	return c
33548}
33549
33550// InclQueriesWithoutReport sets the optional parameter
33551// "inclQueriesWithoutReport": Flag to include asynchronous queries that
33552// don't have a report denifition.
33553func (c *OrganizationsEnvironmentsQueriesListCall) InclQueriesWithoutReport(inclQueriesWithoutReport string) *OrganizationsEnvironmentsQueriesListCall {
33554	c.urlParams_.Set("inclQueriesWithoutReport", inclQueriesWithoutReport)
33555	return c
33556}
33557
33558// Status sets the optional parameter "status": Filter response list by
33559// asynchronous query status.
33560func (c *OrganizationsEnvironmentsQueriesListCall) Status(status string) *OrganizationsEnvironmentsQueriesListCall {
33561	c.urlParams_.Set("status", status)
33562	return c
33563}
33564
33565// SubmittedBy sets the optional parameter "submittedBy": Filter
33566// response list by user who submitted queries.
33567func (c *OrganizationsEnvironmentsQueriesListCall) SubmittedBy(submittedBy string) *OrganizationsEnvironmentsQueriesListCall {
33568	c.urlParams_.Set("submittedBy", submittedBy)
33569	return c
33570}
33571
33572// To sets the optional parameter "to": Filter response list by
33573// returning asynchronous queries that created before this date time.
33574// Time must be in ISO date-time format like '2011-12-03T10:16:30Z'.
33575func (c *OrganizationsEnvironmentsQueriesListCall) To(to string) *OrganizationsEnvironmentsQueriesListCall {
33576	c.urlParams_.Set("to", to)
33577	return c
33578}
33579
33580// Fields allows partial responses to be retrieved. See
33581// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
33582// for more information.
33583func (c *OrganizationsEnvironmentsQueriesListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsQueriesListCall {
33584	c.urlParams_.Set("fields", googleapi.CombineFields(s))
33585	return c
33586}
33587
33588// IfNoneMatch sets the optional parameter which makes the operation
33589// fail if the object's ETag matches the given value. This is useful for
33590// getting updates only after the object has changed since the last
33591// request. Use googleapi.IsNotModified to check whether the response
33592// error from Do is the result of In-None-Match.
33593func (c *OrganizationsEnvironmentsQueriesListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsQueriesListCall {
33594	c.ifNoneMatch_ = entityTag
33595	return c
33596}
33597
33598// Context sets the context to be used in this call's Do method. Any
33599// pending HTTP request will be aborted if the provided context is
33600// canceled.
33601func (c *OrganizationsEnvironmentsQueriesListCall) Context(ctx context.Context) *OrganizationsEnvironmentsQueriesListCall {
33602	c.ctx_ = ctx
33603	return c
33604}
33605
33606// Header returns an http.Header that can be modified by the caller to
33607// add HTTP headers to the request.
33608func (c *OrganizationsEnvironmentsQueriesListCall) Header() http.Header {
33609	if c.header_ == nil {
33610		c.header_ = make(http.Header)
33611	}
33612	return c.header_
33613}
33614
33615func (c *OrganizationsEnvironmentsQueriesListCall) doRequest(alt string) (*http.Response, error) {
33616	reqHeaders := make(http.Header)
33617	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
33618	for k, v := range c.header_ {
33619		reqHeaders[k] = v
33620	}
33621	reqHeaders.Set("User-Agent", c.s.userAgent())
33622	if c.ifNoneMatch_ != "" {
33623		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
33624	}
33625	var body io.Reader = nil
33626	c.urlParams_.Set("alt", alt)
33627	c.urlParams_.Set("prettyPrint", "false")
33628	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/queries")
33629	urls += "?" + c.urlParams_.Encode()
33630	req, err := http.NewRequest("GET", urls, body)
33631	if err != nil {
33632		return nil, err
33633	}
33634	req.Header = reqHeaders
33635	googleapi.Expand(req.URL, map[string]string{
33636		"parent": c.parent,
33637	})
33638	return gensupport.SendRequest(c.ctx_, c.s.client, req)
33639}
33640
33641// Do executes the "apigee.organizations.environments.queries.list" call.
33642// Exactly one of *GoogleCloudApigeeV1ListAsyncQueriesResponse or error
33643// will be non-nil. Any non-2xx status code is an error. Response
33644// headers are in either
33645// *GoogleCloudApigeeV1ListAsyncQueriesResponse.ServerResponse.Header or
33646// (if a response was returned at all) in
33647// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
33648// whether the returned error was because http.StatusNotModified was
33649// returned.
33650func (c *OrganizationsEnvironmentsQueriesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListAsyncQueriesResponse, error) {
33651	gensupport.SetOptions(c.urlParams_, opts...)
33652	res, err := c.doRequest("json")
33653	if res != nil && res.StatusCode == http.StatusNotModified {
33654		if res.Body != nil {
33655			res.Body.Close()
33656		}
33657		return nil, &googleapi.Error{
33658			Code:   res.StatusCode,
33659			Header: res.Header,
33660		}
33661	}
33662	if err != nil {
33663		return nil, err
33664	}
33665	defer googleapi.CloseBody(res)
33666	if err := googleapi.CheckResponse(res); err != nil {
33667		return nil, err
33668	}
33669	ret := &GoogleCloudApigeeV1ListAsyncQueriesResponse{
33670		ServerResponse: googleapi.ServerResponse{
33671			Header:         res.Header,
33672			HTTPStatusCode: res.StatusCode,
33673		},
33674	}
33675	target := &ret
33676	if err := gensupport.DecodeResponse(target, res); err != nil {
33677		return nil, err
33678	}
33679	return ret, nil
33680	// {
33681	//   "description": "Return a list of Asynchronous Queries",
33682	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/queries",
33683	//   "httpMethod": "GET",
33684	//   "id": "apigee.organizations.environments.queries.list",
33685	//   "parameterOrder": [
33686	//     "parent"
33687	//   ],
33688	//   "parameters": {
33689	//     "dataset": {
33690	//       "description": "Filter response list by dataset. Example: `api`, `mint`",
33691	//       "location": "query",
33692	//       "type": "string"
33693	//     },
33694	//     "from": {
33695	//       "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'.",
33696	//       "location": "query",
33697	//       "type": "string"
33698	//     },
33699	//     "inclQueriesWithoutReport": {
33700	//       "description": "Flag to include asynchronous queries that don't have a report denifition.",
33701	//       "location": "query",
33702	//       "type": "string"
33703	//     },
33704	//     "parent": {
33705	//       "description": "Required. The parent resource name. Must be of the form `organizations/{org}/environments/{env}`.",
33706	//       "location": "path",
33707	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
33708	//       "required": true,
33709	//       "type": "string"
33710	//     },
33711	//     "status": {
33712	//       "description": "Filter response list by asynchronous query status.",
33713	//       "location": "query",
33714	//       "type": "string"
33715	//     },
33716	//     "submittedBy": {
33717	//       "description": "Filter response list by user who submitted queries.",
33718	//       "location": "query",
33719	//       "type": "string"
33720	//     },
33721	//     "to": {
33722	//       "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'.",
33723	//       "location": "query",
33724	//       "type": "string"
33725	//     }
33726	//   },
33727	//   "path": "v1/{+parent}/queries",
33728	//   "response": {
33729	//     "$ref": "GoogleCloudApigeeV1ListAsyncQueriesResponse"
33730	//   },
33731	//   "scopes": [
33732	//     "https://www.googleapis.com/auth/cloud-platform"
33733	//   ]
33734	// }
33735
33736}
33737
33738// method id "apigee.organizations.environments.references.create":
33739
33740type OrganizationsEnvironmentsReferencesCreateCall struct {
33741	s                            *Service
33742	parent                       string
33743	googlecloudapigeev1reference *GoogleCloudApigeeV1Reference
33744	urlParams_                   gensupport.URLParams
33745	ctx_                         context.Context
33746	header_                      http.Header
33747}
33748
33749// Create: Creates a Reference in the specified environment.
33750//
33751// - parent: The parent environment name under which the Reference will
33752//   be created. Must be of the form
33753//   `organizations/{org}/environments/{env}`.
33754func (r *OrganizationsEnvironmentsReferencesService) Create(parent string, googlecloudapigeev1reference *GoogleCloudApigeeV1Reference) *OrganizationsEnvironmentsReferencesCreateCall {
33755	c := &OrganizationsEnvironmentsReferencesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33756	c.parent = parent
33757	c.googlecloudapigeev1reference = googlecloudapigeev1reference
33758	return c
33759}
33760
33761// Fields allows partial responses to be retrieved. See
33762// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
33763// for more information.
33764func (c *OrganizationsEnvironmentsReferencesCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsReferencesCreateCall {
33765	c.urlParams_.Set("fields", googleapi.CombineFields(s))
33766	return c
33767}
33768
33769// Context sets the context to be used in this call's Do method. Any
33770// pending HTTP request will be aborted if the provided context is
33771// canceled.
33772func (c *OrganizationsEnvironmentsReferencesCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsReferencesCreateCall {
33773	c.ctx_ = ctx
33774	return c
33775}
33776
33777// Header returns an http.Header that can be modified by the caller to
33778// add HTTP headers to the request.
33779func (c *OrganizationsEnvironmentsReferencesCreateCall) Header() http.Header {
33780	if c.header_ == nil {
33781		c.header_ = make(http.Header)
33782	}
33783	return c.header_
33784}
33785
33786func (c *OrganizationsEnvironmentsReferencesCreateCall) doRequest(alt string) (*http.Response, error) {
33787	reqHeaders := make(http.Header)
33788	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
33789	for k, v := range c.header_ {
33790		reqHeaders[k] = v
33791	}
33792	reqHeaders.Set("User-Agent", c.s.userAgent())
33793	var body io.Reader = nil
33794	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1reference)
33795	if err != nil {
33796		return nil, err
33797	}
33798	reqHeaders.Set("Content-Type", "application/json")
33799	c.urlParams_.Set("alt", alt)
33800	c.urlParams_.Set("prettyPrint", "false")
33801	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/references")
33802	urls += "?" + c.urlParams_.Encode()
33803	req, err := http.NewRequest("POST", urls, body)
33804	if err != nil {
33805		return nil, err
33806	}
33807	req.Header = reqHeaders
33808	googleapi.Expand(req.URL, map[string]string{
33809		"parent": c.parent,
33810	})
33811	return gensupport.SendRequest(c.ctx_, c.s.client, req)
33812}
33813
33814// Do executes the "apigee.organizations.environments.references.create" call.
33815// Exactly one of *GoogleCloudApigeeV1Reference or error will be
33816// non-nil. Any non-2xx status code is an error. Response headers are in
33817// either *GoogleCloudApigeeV1Reference.ServerResponse.Header or (if a
33818// response was returned at all) in error.(*googleapi.Error).Header. Use
33819// googleapi.IsNotModified to check whether the returned error was
33820// because http.StatusNotModified was returned.
33821func (c *OrganizationsEnvironmentsReferencesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Reference, error) {
33822	gensupport.SetOptions(c.urlParams_, opts...)
33823	res, err := c.doRequest("json")
33824	if res != nil && res.StatusCode == http.StatusNotModified {
33825		if res.Body != nil {
33826			res.Body.Close()
33827		}
33828		return nil, &googleapi.Error{
33829			Code:   res.StatusCode,
33830			Header: res.Header,
33831		}
33832	}
33833	if err != nil {
33834		return nil, err
33835	}
33836	defer googleapi.CloseBody(res)
33837	if err := googleapi.CheckResponse(res); err != nil {
33838		return nil, err
33839	}
33840	ret := &GoogleCloudApigeeV1Reference{
33841		ServerResponse: googleapi.ServerResponse{
33842			Header:         res.Header,
33843			HTTPStatusCode: res.StatusCode,
33844		},
33845	}
33846	target := &ret
33847	if err := gensupport.DecodeResponse(target, res); err != nil {
33848		return nil, err
33849	}
33850	return ret, nil
33851	// {
33852	//   "description": "Creates a Reference in the specified environment.",
33853	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/references",
33854	//   "httpMethod": "POST",
33855	//   "id": "apigee.organizations.environments.references.create",
33856	//   "parameterOrder": [
33857	//     "parent"
33858	//   ],
33859	//   "parameters": {
33860	//     "parent": {
33861	//       "description": "Required. The parent environment name under which the Reference will be created. Must be of the form `organizations/{org}/environments/{env}`.",
33862	//       "location": "path",
33863	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
33864	//       "required": true,
33865	//       "type": "string"
33866	//     }
33867	//   },
33868	//   "path": "v1/{+parent}/references",
33869	//   "request": {
33870	//     "$ref": "GoogleCloudApigeeV1Reference"
33871	//   },
33872	//   "response": {
33873	//     "$ref": "GoogleCloudApigeeV1Reference"
33874	//   },
33875	//   "scopes": [
33876	//     "https://www.googleapis.com/auth/cloud-platform"
33877	//   ]
33878	// }
33879
33880}
33881
33882// method id "apigee.organizations.environments.references.delete":
33883
33884type OrganizationsEnvironmentsReferencesDeleteCall struct {
33885	s          *Service
33886	name       string
33887	urlParams_ gensupport.URLParams
33888	ctx_       context.Context
33889	header_    http.Header
33890}
33891
33892// Delete: Deletes a Reference from an environment. Returns the deleted
33893// Reference resource.
33894//
33895// - name: The name of the Reference to delete. Must be of the form
33896//   `organizations/{org}/environments/{env}/references/{ref}`.
33897func (r *OrganizationsEnvironmentsReferencesService) Delete(name string) *OrganizationsEnvironmentsReferencesDeleteCall {
33898	c := &OrganizationsEnvironmentsReferencesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33899	c.name = name
33900	return c
33901}
33902
33903// Fields allows partial responses to be retrieved. See
33904// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
33905// for more information.
33906func (c *OrganizationsEnvironmentsReferencesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsReferencesDeleteCall {
33907	c.urlParams_.Set("fields", googleapi.CombineFields(s))
33908	return c
33909}
33910
33911// Context sets the context to be used in this call's Do method. Any
33912// pending HTTP request will be aborted if the provided context is
33913// canceled.
33914func (c *OrganizationsEnvironmentsReferencesDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsReferencesDeleteCall {
33915	c.ctx_ = ctx
33916	return c
33917}
33918
33919// Header returns an http.Header that can be modified by the caller to
33920// add HTTP headers to the request.
33921func (c *OrganizationsEnvironmentsReferencesDeleteCall) Header() http.Header {
33922	if c.header_ == nil {
33923		c.header_ = make(http.Header)
33924	}
33925	return c.header_
33926}
33927
33928func (c *OrganizationsEnvironmentsReferencesDeleteCall) doRequest(alt string) (*http.Response, error) {
33929	reqHeaders := make(http.Header)
33930	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
33931	for k, v := range c.header_ {
33932		reqHeaders[k] = v
33933	}
33934	reqHeaders.Set("User-Agent", c.s.userAgent())
33935	var body io.Reader = nil
33936	c.urlParams_.Set("alt", alt)
33937	c.urlParams_.Set("prettyPrint", "false")
33938	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
33939	urls += "?" + c.urlParams_.Encode()
33940	req, err := http.NewRequest("DELETE", urls, body)
33941	if err != nil {
33942		return nil, err
33943	}
33944	req.Header = reqHeaders
33945	googleapi.Expand(req.URL, map[string]string{
33946		"name": c.name,
33947	})
33948	return gensupport.SendRequest(c.ctx_, c.s.client, req)
33949}
33950
33951// Do executes the "apigee.organizations.environments.references.delete" call.
33952// Exactly one of *GoogleCloudApigeeV1Reference or error will be
33953// non-nil. Any non-2xx status code is an error. Response headers are in
33954// either *GoogleCloudApigeeV1Reference.ServerResponse.Header or (if a
33955// response was returned at all) in error.(*googleapi.Error).Header. Use
33956// googleapi.IsNotModified to check whether the returned error was
33957// because http.StatusNotModified was returned.
33958func (c *OrganizationsEnvironmentsReferencesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Reference, error) {
33959	gensupport.SetOptions(c.urlParams_, opts...)
33960	res, err := c.doRequest("json")
33961	if res != nil && res.StatusCode == http.StatusNotModified {
33962		if res.Body != nil {
33963			res.Body.Close()
33964		}
33965		return nil, &googleapi.Error{
33966			Code:   res.StatusCode,
33967			Header: res.Header,
33968		}
33969	}
33970	if err != nil {
33971		return nil, err
33972	}
33973	defer googleapi.CloseBody(res)
33974	if err := googleapi.CheckResponse(res); err != nil {
33975		return nil, err
33976	}
33977	ret := &GoogleCloudApigeeV1Reference{
33978		ServerResponse: googleapi.ServerResponse{
33979			Header:         res.Header,
33980			HTTPStatusCode: res.StatusCode,
33981		},
33982	}
33983	target := &ret
33984	if err := gensupport.DecodeResponse(target, res); err != nil {
33985		return nil, err
33986	}
33987	return ret, nil
33988	// {
33989	//   "description": "Deletes a Reference from an environment. Returns the deleted Reference resource.",
33990	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/references/{referencesId}",
33991	//   "httpMethod": "DELETE",
33992	//   "id": "apigee.organizations.environments.references.delete",
33993	//   "parameterOrder": [
33994	//     "name"
33995	//   ],
33996	//   "parameters": {
33997	//     "name": {
33998	//       "description": "Required. The name of the Reference to delete. Must be of the form `organizations/{org}/environments/{env}/references/{ref}`.",
33999	//       "location": "path",
34000	//       "pattern": "^organizations/[^/]+/environments/[^/]+/references/[^/]+$",
34001	//       "required": true,
34002	//       "type": "string"
34003	//     }
34004	//   },
34005	//   "path": "v1/{+name}",
34006	//   "response": {
34007	//     "$ref": "GoogleCloudApigeeV1Reference"
34008	//   },
34009	//   "scopes": [
34010	//     "https://www.googleapis.com/auth/cloud-platform"
34011	//   ]
34012	// }
34013
34014}
34015
34016// method id "apigee.organizations.environments.references.get":
34017
34018type OrganizationsEnvironmentsReferencesGetCall struct {
34019	s            *Service
34020	name         string
34021	urlParams_   gensupport.URLParams
34022	ifNoneMatch_ string
34023	ctx_         context.Context
34024	header_      http.Header
34025}
34026
34027// Get: Gets a Reference resource.
34028//
34029// - name: The name of the Reference to get. Must be of the form
34030//   `organizations/{org}/environments/{env}/references/{ref}`.
34031func (r *OrganizationsEnvironmentsReferencesService) Get(name string) *OrganizationsEnvironmentsReferencesGetCall {
34032	c := &OrganizationsEnvironmentsReferencesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34033	c.name = name
34034	return c
34035}
34036
34037// Fields allows partial responses to be retrieved. See
34038// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
34039// for more information.
34040func (c *OrganizationsEnvironmentsReferencesGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsReferencesGetCall {
34041	c.urlParams_.Set("fields", googleapi.CombineFields(s))
34042	return c
34043}
34044
34045// IfNoneMatch sets the optional parameter which makes the operation
34046// fail if the object's ETag matches the given value. This is useful for
34047// getting updates only after the object has changed since the last
34048// request. Use googleapi.IsNotModified to check whether the response
34049// error from Do is the result of In-None-Match.
34050func (c *OrganizationsEnvironmentsReferencesGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsReferencesGetCall {
34051	c.ifNoneMatch_ = entityTag
34052	return c
34053}
34054
34055// Context sets the context to be used in this call's Do method. Any
34056// pending HTTP request will be aborted if the provided context is
34057// canceled.
34058func (c *OrganizationsEnvironmentsReferencesGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsReferencesGetCall {
34059	c.ctx_ = ctx
34060	return c
34061}
34062
34063// Header returns an http.Header that can be modified by the caller to
34064// add HTTP headers to the request.
34065func (c *OrganizationsEnvironmentsReferencesGetCall) Header() http.Header {
34066	if c.header_ == nil {
34067		c.header_ = make(http.Header)
34068	}
34069	return c.header_
34070}
34071
34072func (c *OrganizationsEnvironmentsReferencesGetCall) doRequest(alt string) (*http.Response, error) {
34073	reqHeaders := make(http.Header)
34074	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
34075	for k, v := range c.header_ {
34076		reqHeaders[k] = v
34077	}
34078	reqHeaders.Set("User-Agent", c.s.userAgent())
34079	if c.ifNoneMatch_ != "" {
34080		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
34081	}
34082	var body io.Reader = nil
34083	c.urlParams_.Set("alt", alt)
34084	c.urlParams_.Set("prettyPrint", "false")
34085	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
34086	urls += "?" + c.urlParams_.Encode()
34087	req, err := http.NewRequest("GET", urls, body)
34088	if err != nil {
34089		return nil, err
34090	}
34091	req.Header = reqHeaders
34092	googleapi.Expand(req.URL, map[string]string{
34093		"name": c.name,
34094	})
34095	return gensupport.SendRequest(c.ctx_, c.s.client, req)
34096}
34097
34098// Do executes the "apigee.organizations.environments.references.get" call.
34099// Exactly one of *GoogleCloudApigeeV1Reference or error will be
34100// non-nil. Any non-2xx status code is an error. Response headers are in
34101// either *GoogleCloudApigeeV1Reference.ServerResponse.Header or (if a
34102// response was returned at all) in error.(*googleapi.Error).Header. Use
34103// googleapi.IsNotModified to check whether the returned error was
34104// because http.StatusNotModified was returned.
34105func (c *OrganizationsEnvironmentsReferencesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Reference, error) {
34106	gensupport.SetOptions(c.urlParams_, opts...)
34107	res, err := c.doRequest("json")
34108	if res != nil && res.StatusCode == http.StatusNotModified {
34109		if res.Body != nil {
34110			res.Body.Close()
34111		}
34112		return nil, &googleapi.Error{
34113			Code:   res.StatusCode,
34114			Header: res.Header,
34115		}
34116	}
34117	if err != nil {
34118		return nil, err
34119	}
34120	defer googleapi.CloseBody(res)
34121	if err := googleapi.CheckResponse(res); err != nil {
34122		return nil, err
34123	}
34124	ret := &GoogleCloudApigeeV1Reference{
34125		ServerResponse: googleapi.ServerResponse{
34126			Header:         res.Header,
34127			HTTPStatusCode: res.StatusCode,
34128		},
34129	}
34130	target := &ret
34131	if err := gensupport.DecodeResponse(target, res); err != nil {
34132		return nil, err
34133	}
34134	return ret, nil
34135	// {
34136	//   "description": "Gets a Reference resource.",
34137	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/references/{referencesId}",
34138	//   "httpMethod": "GET",
34139	//   "id": "apigee.organizations.environments.references.get",
34140	//   "parameterOrder": [
34141	//     "name"
34142	//   ],
34143	//   "parameters": {
34144	//     "name": {
34145	//       "description": "Required. The name of the Reference to get. Must be of the form `organizations/{org}/environments/{env}/references/{ref}`.",
34146	//       "location": "path",
34147	//       "pattern": "^organizations/[^/]+/environments/[^/]+/references/[^/]+$",
34148	//       "required": true,
34149	//       "type": "string"
34150	//     }
34151	//   },
34152	//   "path": "v1/{+name}",
34153	//   "response": {
34154	//     "$ref": "GoogleCloudApigeeV1Reference"
34155	//   },
34156	//   "scopes": [
34157	//     "https://www.googleapis.com/auth/cloud-platform"
34158	//   ]
34159	// }
34160
34161}
34162
34163// method id "apigee.organizations.environments.references.update":
34164
34165type OrganizationsEnvironmentsReferencesUpdateCall struct {
34166	s                            *Service
34167	name                         string
34168	googlecloudapigeev1reference *GoogleCloudApigeeV1Reference
34169	urlParams_                   gensupport.URLParams
34170	ctx_                         context.Context
34171	header_                      http.Header
34172}
34173
34174// Update: Updates an existing Reference. Note that this operation has
34175// PUT semantics; it will replace the entirety of the existing Reference
34176// with the resource in the request body.
34177//
34178// - name: The name of the Reference to update. Must be of the form
34179//   `organizations/{org}/environments/{env}/references/{ref}`.
34180func (r *OrganizationsEnvironmentsReferencesService) Update(name string, googlecloudapigeev1reference *GoogleCloudApigeeV1Reference) *OrganizationsEnvironmentsReferencesUpdateCall {
34181	c := &OrganizationsEnvironmentsReferencesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34182	c.name = name
34183	c.googlecloudapigeev1reference = googlecloudapigeev1reference
34184	return c
34185}
34186
34187// Fields allows partial responses to be retrieved. See
34188// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
34189// for more information.
34190func (c *OrganizationsEnvironmentsReferencesUpdateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsReferencesUpdateCall {
34191	c.urlParams_.Set("fields", googleapi.CombineFields(s))
34192	return c
34193}
34194
34195// Context sets the context to be used in this call's Do method. Any
34196// pending HTTP request will be aborted if the provided context is
34197// canceled.
34198func (c *OrganizationsEnvironmentsReferencesUpdateCall) Context(ctx context.Context) *OrganizationsEnvironmentsReferencesUpdateCall {
34199	c.ctx_ = ctx
34200	return c
34201}
34202
34203// Header returns an http.Header that can be modified by the caller to
34204// add HTTP headers to the request.
34205func (c *OrganizationsEnvironmentsReferencesUpdateCall) Header() http.Header {
34206	if c.header_ == nil {
34207		c.header_ = make(http.Header)
34208	}
34209	return c.header_
34210}
34211
34212func (c *OrganizationsEnvironmentsReferencesUpdateCall) doRequest(alt string) (*http.Response, error) {
34213	reqHeaders := make(http.Header)
34214	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
34215	for k, v := range c.header_ {
34216		reqHeaders[k] = v
34217	}
34218	reqHeaders.Set("User-Agent", c.s.userAgent())
34219	var body io.Reader = nil
34220	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1reference)
34221	if err != nil {
34222		return nil, err
34223	}
34224	reqHeaders.Set("Content-Type", "application/json")
34225	c.urlParams_.Set("alt", alt)
34226	c.urlParams_.Set("prettyPrint", "false")
34227	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
34228	urls += "?" + c.urlParams_.Encode()
34229	req, err := http.NewRequest("PUT", urls, body)
34230	if err != nil {
34231		return nil, err
34232	}
34233	req.Header = reqHeaders
34234	googleapi.Expand(req.URL, map[string]string{
34235		"name": c.name,
34236	})
34237	return gensupport.SendRequest(c.ctx_, c.s.client, req)
34238}
34239
34240// Do executes the "apigee.organizations.environments.references.update" call.
34241// Exactly one of *GoogleCloudApigeeV1Reference or error will be
34242// non-nil. Any non-2xx status code is an error. Response headers are in
34243// either *GoogleCloudApigeeV1Reference.ServerResponse.Header or (if a
34244// response was returned at all) in error.(*googleapi.Error).Header. Use
34245// googleapi.IsNotModified to check whether the returned error was
34246// because http.StatusNotModified was returned.
34247func (c *OrganizationsEnvironmentsReferencesUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Reference, error) {
34248	gensupport.SetOptions(c.urlParams_, opts...)
34249	res, err := c.doRequest("json")
34250	if res != nil && res.StatusCode == http.StatusNotModified {
34251		if res.Body != nil {
34252			res.Body.Close()
34253		}
34254		return nil, &googleapi.Error{
34255			Code:   res.StatusCode,
34256			Header: res.Header,
34257		}
34258	}
34259	if err != nil {
34260		return nil, err
34261	}
34262	defer googleapi.CloseBody(res)
34263	if err := googleapi.CheckResponse(res); err != nil {
34264		return nil, err
34265	}
34266	ret := &GoogleCloudApigeeV1Reference{
34267		ServerResponse: googleapi.ServerResponse{
34268			Header:         res.Header,
34269			HTTPStatusCode: res.StatusCode,
34270		},
34271	}
34272	target := &ret
34273	if err := gensupport.DecodeResponse(target, res); err != nil {
34274		return nil, err
34275	}
34276	return ret, nil
34277	// {
34278	//   "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.",
34279	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/references/{referencesId}",
34280	//   "httpMethod": "PUT",
34281	//   "id": "apigee.organizations.environments.references.update",
34282	//   "parameterOrder": [
34283	//     "name"
34284	//   ],
34285	//   "parameters": {
34286	//     "name": {
34287	//       "description": "Required. The name of the Reference to update. Must be of the form `organizations/{org}/environments/{env}/references/{ref}`.",
34288	//       "location": "path",
34289	//       "pattern": "^organizations/[^/]+/environments/[^/]+/references/[^/]+$",
34290	//       "required": true,
34291	//       "type": "string"
34292	//     }
34293	//   },
34294	//   "path": "v1/{+name}",
34295	//   "request": {
34296	//     "$ref": "GoogleCloudApigeeV1Reference"
34297	//   },
34298	//   "response": {
34299	//     "$ref": "GoogleCloudApigeeV1Reference"
34300	//   },
34301	//   "scopes": [
34302	//     "https://www.googleapis.com/auth/cloud-platform"
34303	//   ]
34304	// }
34305
34306}
34307
34308// method id "apigee.organizations.environments.resourcefiles.create":
34309
34310type OrganizationsEnvironmentsResourcefilesCreateCall struct {
34311	s                 *Service
34312	parent            string
34313	googleapihttpbody *GoogleApiHttpBody
34314	urlParams_        gensupport.URLParams
34315	ctx_              context.Context
34316	header_           http.Header
34317}
34318
34319// Create: Creates a resource file. Specify the `Content-Type` as
34320// `application/octet-stream` or `multipart/form-data`. For more
34321// information about resource files, see Resource files
34322// (https://cloud.google.com/apigee/docs/api-platform/develop/resource-files).
34323//
34324// - parent: Name of the environment in which to create the resource
34325//   file in the following format:
34326//   `organizations/{org}/environments/{env}`.
34327func (r *OrganizationsEnvironmentsResourcefilesService) Create(parent string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsEnvironmentsResourcefilesCreateCall {
34328	c := &OrganizationsEnvironmentsResourcefilesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34329	c.parent = parent
34330	c.googleapihttpbody = googleapihttpbody
34331	return c
34332}
34333
34334// Name sets the optional parameter "name": Required. Name of the
34335// resource file. Must match the regular expression:
34336// [a-zA-Z0-9:/\\!@#$%^&{}\\ ()+\-=,.~'` ]{1,255}
34337func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Name(name string) *OrganizationsEnvironmentsResourcefilesCreateCall {
34338	c.urlParams_.Set("name", name)
34339	return c
34340}
34341
34342// Type sets the optional parameter "type": Required. Resource file
34343// type. {{ resource_file_type }}
34344func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Type(type_ string) *OrganizationsEnvironmentsResourcefilesCreateCall {
34345	c.urlParams_.Set("type", type_)
34346	return c
34347}
34348
34349// Fields allows partial responses to be retrieved. See
34350// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
34351// for more information.
34352func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesCreateCall {
34353	c.urlParams_.Set("fields", googleapi.CombineFields(s))
34354	return c
34355}
34356
34357// Context sets the context to be used in this call's Do method. Any
34358// pending HTTP request will be aborted if the provided context is
34359// canceled.
34360func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesCreateCall {
34361	c.ctx_ = ctx
34362	return c
34363}
34364
34365// Header returns an http.Header that can be modified by the caller to
34366// add HTTP headers to the request.
34367func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Header() http.Header {
34368	if c.header_ == nil {
34369		c.header_ = make(http.Header)
34370	}
34371	return c.header_
34372}
34373
34374func (c *OrganizationsEnvironmentsResourcefilesCreateCall) doRequest(alt string) (*http.Response, error) {
34375	reqHeaders := make(http.Header)
34376	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
34377	for k, v := range c.header_ {
34378		reqHeaders[k] = v
34379	}
34380	reqHeaders.Set("User-Agent", c.s.userAgent())
34381	var body io.Reader = nil
34382	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
34383	if err != nil {
34384		return nil, err
34385	}
34386	reqHeaders.Set("Content-Type", "application/json")
34387	c.urlParams_.Set("alt", alt)
34388	c.urlParams_.Set("prettyPrint", "false")
34389	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcefiles")
34390	urls += "?" + c.urlParams_.Encode()
34391	req, err := http.NewRequest("POST", urls, body)
34392	if err != nil {
34393		return nil, err
34394	}
34395	req.Header = reqHeaders
34396	googleapi.Expand(req.URL, map[string]string{
34397		"parent": c.parent,
34398	})
34399	return gensupport.SendRequest(c.ctx_, c.s.client, req)
34400}
34401
34402// Do executes the "apigee.organizations.environments.resourcefiles.create" call.
34403// Exactly one of *GoogleCloudApigeeV1ResourceFile or error will be
34404// non-nil. Any non-2xx status code is an error. Response headers are in
34405// either *GoogleCloudApigeeV1ResourceFile.ServerResponse.Header or (if
34406// a response was returned at all) in error.(*googleapi.Error).Header.
34407// Use googleapi.IsNotModified to check whether the returned error was
34408// because http.StatusNotModified was returned.
34409func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ResourceFile, error) {
34410	gensupport.SetOptions(c.urlParams_, opts...)
34411	res, err := c.doRequest("json")
34412	if res != nil && res.StatusCode == http.StatusNotModified {
34413		if res.Body != nil {
34414			res.Body.Close()
34415		}
34416		return nil, &googleapi.Error{
34417			Code:   res.StatusCode,
34418			Header: res.Header,
34419		}
34420	}
34421	if err != nil {
34422		return nil, err
34423	}
34424	defer googleapi.CloseBody(res)
34425	if err := googleapi.CheckResponse(res); err != nil {
34426		return nil, err
34427	}
34428	ret := &GoogleCloudApigeeV1ResourceFile{
34429		ServerResponse: googleapi.ServerResponse{
34430			Header:         res.Header,
34431			HTTPStatusCode: res.StatusCode,
34432		},
34433	}
34434	target := &ret
34435	if err := gensupport.DecodeResponse(target, res); err != nil {
34436		return nil, err
34437	}
34438	return ret, nil
34439	// {
34440	//   "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).",
34441	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/resourcefiles",
34442	//   "httpMethod": "POST",
34443	//   "id": "apigee.organizations.environments.resourcefiles.create",
34444	//   "parameterOrder": [
34445	//     "parent"
34446	//   ],
34447	//   "parameters": {
34448	//     "name": {
34449	//       "description": "Required. Name of the resource file. Must match the regular expression: [a-zA-Z0-9:/\\\\!@#$%^\u0026{}\\[\\]()+\\-=,.~'` ]{1,255}",
34450	//       "location": "query",
34451	//       "type": "string"
34452	//     },
34453	//     "parent": {
34454	//       "description": "Required. Name of the environment in which to create the resource file in the following format: `organizations/{org}/environments/{env}`.",
34455	//       "location": "path",
34456	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
34457	//       "required": true,
34458	//       "type": "string"
34459	//     },
34460	//     "type": {
34461	//       "description": "Required. Resource file type. {{ resource_file_type }}",
34462	//       "location": "query",
34463	//       "type": "string"
34464	//     }
34465	//   },
34466	//   "path": "v1/{+parent}/resourcefiles",
34467	//   "request": {
34468	//     "$ref": "GoogleApiHttpBody"
34469	//   },
34470	//   "response": {
34471	//     "$ref": "GoogleCloudApigeeV1ResourceFile"
34472	//   },
34473	//   "scopes": [
34474	//     "https://www.googleapis.com/auth/cloud-platform"
34475	//   ]
34476	// }
34477
34478}
34479
34480// method id "apigee.organizations.environments.resourcefiles.delete":
34481
34482type OrganizationsEnvironmentsResourcefilesDeleteCall struct {
34483	s          *Service
34484	parent     string
34485	type_      string
34486	name       string
34487	urlParams_ gensupport.URLParams
34488	ctx_       context.Context
34489	header_    http.Header
34490}
34491
34492// Delete: Deletes a resource file. For more information about resource
34493// files, see Resource files
34494// (https://cloud.google.com/apigee/docs/api-platform/develop/resource-files).
34495//
34496// - name: ID of the resource file to delete. Must match the regular
34497//   expression: [a-zA-Z0-9:/\\!@#$%^&{}\\ ()+\-=,.~'` ]{1,255}.
34498// - parent: Name of the environment in the following format:
34499//   `organizations/{org}/environments/{env}`.
34500// - type: Resource file type. {{ resource_file_type }}.
34501func (r *OrganizationsEnvironmentsResourcefilesService) Delete(parent string, type_ string, name string) *OrganizationsEnvironmentsResourcefilesDeleteCall {
34502	c := &OrganizationsEnvironmentsResourcefilesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34503	c.parent = parent
34504	c.type_ = type_
34505	c.name = name
34506	return c
34507}
34508
34509// Fields allows partial responses to be retrieved. See
34510// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
34511// for more information.
34512func (c *OrganizationsEnvironmentsResourcefilesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesDeleteCall {
34513	c.urlParams_.Set("fields", googleapi.CombineFields(s))
34514	return c
34515}
34516
34517// Context sets the context to be used in this call's Do method. Any
34518// pending HTTP request will be aborted if the provided context is
34519// canceled.
34520func (c *OrganizationsEnvironmentsResourcefilesDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesDeleteCall {
34521	c.ctx_ = ctx
34522	return c
34523}
34524
34525// Header returns an http.Header that can be modified by the caller to
34526// add HTTP headers to the request.
34527func (c *OrganizationsEnvironmentsResourcefilesDeleteCall) Header() http.Header {
34528	if c.header_ == nil {
34529		c.header_ = make(http.Header)
34530	}
34531	return c.header_
34532}
34533
34534func (c *OrganizationsEnvironmentsResourcefilesDeleteCall) doRequest(alt string) (*http.Response, error) {
34535	reqHeaders := make(http.Header)
34536	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
34537	for k, v := range c.header_ {
34538		reqHeaders[k] = v
34539	}
34540	reqHeaders.Set("User-Agent", c.s.userAgent())
34541	var body io.Reader = nil
34542	c.urlParams_.Set("alt", alt)
34543	c.urlParams_.Set("prettyPrint", "false")
34544	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcefiles/{type}/{name}")
34545	urls += "?" + c.urlParams_.Encode()
34546	req, err := http.NewRequest("DELETE", urls, body)
34547	if err != nil {
34548		return nil, err
34549	}
34550	req.Header = reqHeaders
34551	googleapi.Expand(req.URL, map[string]string{
34552		"parent": c.parent,
34553		"type":   c.type_,
34554		"name":   c.name,
34555	})
34556	return gensupport.SendRequest(c.ctx_, c.s.client, req)
34557}
34558
34559// Do executes the "apigee.organizations.environments.resourcefiles.delete" call.
34560// Exactly one of *GoogleCloudApigeeV1ResourceFile or error will be
34561// non-nil. Any non-2xx status code is an error. Response headers are in
34562// either *GoogleCloudApigeeV1ResourceFile.ServerResponse.Header or (if
34563// a response was returned at all) in error.(*googleapi.Error).Header.
34564// Use googleapi.IsNotModified to check whether the returned error was
34565// because http.StatusNotModified was returned.
34566func (c *OrganizationsEnvironmentsResourcefilesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ResourceFile, error) {
34567	gensupport.SetOptions(c.urlParams_, opts...)
34568	res, err := c.doRequest("json")
34569	if res != nil && res.StatusCode == http.StatusNotModified {
34570		if res.Body != nil {
34571			res.Body.Close()
34572		}
34573		return nil, &googleapi.Error{
34574			Code:   res.StatusCode,
34575			Header: res.Header,
34576		}
34577	}
34578	if err != nil {
34579		return nil, err
34580	}
34581	defer googleapi.CloseBody(res)
34582	if err := googleapi.CheckResponse(res); err != nil {
34583		return nil, err
34584	}
34585	ret := &GoogleCloudApigeeV1ResourceFile{
34586		ServerResponse: googleapi.ServerResponse{
34587			Header:         res.Header,
34588			HTTPStatusCode: res.StatusCode,
34589		},
34590	}
34591	target := &ret
34592	if err := gensupport.DecodeResponse(target, res); err != nil {
34593		return nil, err
34594	}
34595	return ret, nil
34596	// {
34597	//   "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).",
34598	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/resourcefiles/{type}/{name}",
34599	//   "httpMethod": "DELETE",
34600	//   "id": "apigee.organizations.environments.resourcefiles.delete",
34601	//   "parameterOrder": [
34602	//     "parent",
34603	//     "type",
34604	//     "name"
34605	//   ],
34606	//   "parameters": {
34607	//     "name": {
34608	//       "description": "Required. ID of the resource file to delete. Must match the regular expression: [a-zA-Z0-9:/\\\\!@#$%^\u0026{}\\[\\]()+\\-=,.~'` ]{1,255}",
34609	//       "location": "path",
34610	//       "required": true,
34611	//       "type": "string"
34612	//     },
34613	//     "parent": {
34614	//       "description": "Required. Name of the environment in the following format: `organizations/{org}/environments/{env}`.",
34615	//       "location": "path",
34616	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
34617	//       "required": true,
34618	//       "type": "string"
34619	//     },
34620	//     "type": {
34621	//       "description": "Required. Resource file type. {{ resource_file_type }}",
34622	//       "location": "path",
34623	//       "required": true,
34624	//       "type": "string"
34625	//     }
34626	//   },
34627	//   "path": "v1/{+parent}/resourcefiles/{type}/{name}",
34628	//   "response": {
34629	//     "$ref": "GoogleCloudApigeeV1ResourceFile"
34630	//   },
34631	//   "scopes": [
34632	//     "https://www.googleapis.com/auth/cloud-platform"
34633	//   ]
34634	// }
34635
34636}
34637
34638// method id "apigee.organizations.environments.resourcefiles.get":
34639
34640type OrganizationsEnvironmentsResourcefilesGetCall struct {
34641	s            *Service
34642	parent       string
34643	type_        string
34644	name         string
34645	urlParams_   gensupport.URLParams
34646	ifNoneMatch_ string
34647	ctx_         context.Context
34648	header_      http.Header
34649}
34650
34651// Get: Gets the contents of a resource file. For more information about
34652// resource files, see Resource files
34653// (https://cloud.google.com/apigee/docs/api-platform/develop/resource-files).
34654//
34655// - name: ID of the resource file. Must match the regular expression:
34656//   [a-zA-Z0-9:/\\!@#$%^&{}\\ ()+\-=,.~'` ]{1,255}.
34657// - parent: Name of the environment in the following format:
34658//   `organizations/{org}/environments/{env}`.
34659// - type: Resource file type. {{ resource_file_type }}.
34660func (r *OrganizationsEnvironmentsResourcefilesService) Get(parent string, type_ string, name string) *OrganizationsEnvironmentsResourcefilesGetCall {
34661	c := &OrganizationsEnvironmentsResourcefilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34662	c.parent = parent
34663	c.type_ = type_
34664	c.name = name
34665	return c
34666}
34667
34668// Fields allows partial responses to be retrieved. See
34669// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
34670// for more information.
34671func (c *OrganizationsEnvironmentsResourcefilesGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesGetCall {
34672	c.urlParams_.Set("fields", googleapi.CombineFields(s))
34673	return c
34674}
34675
34676// IfNoneMatch sets the optional parameter which makes the operation
34677// fail if the object's ETag matches the given value. This is useful for
34678// getting updates only after the object has changed since the last
34679// request. Use googleapi.IsNotModified to check whether the response
34680// error from Do is the result of In-None-Match.
34681func (c *OrganizationsEnvironmentsResourcefilesGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsResourcefilesGetCall {
34682	c.ifNoneMatch_ = entityTag
34683	return c
34684}
34685
34686// Context sets the context to be used in this call's Do method. Any
34687// pending HTTP request will be aborted if the provided context is
34688// canceled.
34689func (c *OrganizationsEnvironmentsResourcefilesGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesGetCall {
34690	c.ctx_ = ctx
34691	return c
34692}
34693
34694// Header returns an http.Header that can be modified by the caller to
34695// add HTTP headers to the request.
34696func (c *OrganizationsEnvironmentsResourcefilesGetCall) Header() http.Header {
34697	if c.header_ == nil {
34698		c.header_ = make(http.Header)
34699	}
34700	return c.header_
34701}
34702
34703func (c *OrganizationsEnvironmentsResourcefilesGetCall) doRequest(alt string) (*http.Response, error) {
34704	reqHeaders := make(http.Header)
34705	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
34706	for k, v := range c.header_ {
34707		reqHeaders[k] = v
34708	}
34709	reqHeaders.Set("User-Agent", c.s.userAgent())
34710	if c.ifNoneMatch_ != "" {
34711		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
34712	}
34713	var body io.Reader = nil
34714	c.urlParams_.Set("alt", alt)
34715	c.urlParams_.Set("prettyPrint", "false")
34716	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcefiles/{type}/{name}")
34717	urls += "?" + c.urlParams_.Encode()
34718	req, err := http.NewRequest("GET", urls, body)
34719	if err != nil {
34720		return nil, err
34721	}
34722	req.Header = reqHeaders
34723	googleapi.Expand(req.URL, map[string]string{
34724		"parent": c.parent,
34725		"type":   c.type_,
34726		"name":   c.name,
34727	})
34728	return gensupport.SendRequest(c.ctx_, c.s.client, req)
34729}
34730
34731// Do executes the "apigee.organizations.environments.resourcefiles.get" call.
34732// Exactly one of *GoogleApiHttpBody or error will be non-nil. Any
34733// non-2xx status code is an error. Response headers are in either
34734// *GoogleApiHttpBody.ServerResponse.Header or (if a response was
34735// returned at all) in error.(*googleapi.Error).Header. Use
34736// googleapi.IsNotModified to check whether the returned error was
34737// because http.StatusNotModified was returned.
34738func (c *OrganizationsEnvironmentsResourcefilesGetCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
34739	gensupport.SetOptions(c.urlParams_, opts...)
34740	res, err := c.doRequest("json")
34741	if res != nil && res.StatusCode == http.StatusNotModified {
34742		if res.Body != nil {
34743			res.Body.Close()
34744		}
34745		return nil, &googleapi.Error{
34746			Code:   res.StatusCode,
34747			Header: res.Header,
34748		}
34749	}
34750	if err != nil {
34751		return nil, err
34752	}
34753	defer googleapi.CloseBody(res)
34754	if err := googleapi.CheckResponse(res); err != nil {
34755		return nil, err
34756	}
34757	ret := &GoogleApiHttpBody{
34758		ServerResponse: googleapi.ServerResponse{
34759			Header:         res.Header,
34760			HTTPStatusCode: res.StatusCode,
34761		},
34762	}
34763	target := &ret
34764	if err := gensupport.DecodeResponse(target, res); err != nil {
34765		return nil, err
34766	}
34767	return ret, nil
34768	// {
34769	//   "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).",
34770	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/resourcefiles/{type}/{name}",
34771	//   "httpMethod": "GET",
34772	//   "id": "apigee.organizations.environments.resourcefiles.get",
34773	//   "parameterOrder": [
34774	//     "parent",
34775	//     "type",
34776	//     "name"
34777	//   ],
34778	//   "parameters": {
34779	//     "name": {
34780	//       "description": "Required. ID of the resource file. Must match the regular expression: [a-zA-Z0-9:/\\\\!@#$%^\u0026{}\\[\\]()+\\-=,.~'` ]{1,255}",
34781	//       "location": "path",
34782	//       "required": true,
34783	//       "type": "string"
34784	//     },
34785	//     "parent": {
34786	//       "description": "Required. Name of the environment in the following format: `organizations/{org}/environments/{env}`.",
34787	//       "location": "path",
34788	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
34789	//       "required": true,
34790	//       "type": "string"
34791	//     },
34792	//     "type": {
34793	//       "description": "Required. Resource file type. {{ resource_file_type }}",
34794	//       "location": "path",
34795	//       "required": true,
34796	//       "type": "string"
34797	//     }
34798	//   },
34799	//   "path": "v1/{+parent}/resourcefiles/{type}/{name}",
34800	//   "response": {
34801	//     "$ref": "GoogleApiHttpBody"
34802	//   },
34803	//   "scopes": [
34804	//     "https://www.googleapis.com/auth/cloud-platform"
34805	//   ]
34806	// }
34807
34808}
34809
34810// method id "apigee.organizations.environments.resourcefiles.list":
34811
34812type OrganizationsEnvironmentsResourcefilesListCall struct {
34813	s            *Service
34814	parent       string
34815	urlParams_   gensupport.URLParams
34816	ifNoneMatch_ string
34817	ctx_         context.Context
34818	header_      http.Header
34819}
34820
34821// List: Lists all resource files, optionally filtering by type. For
34822// more information about resource files, see Resource files
34823// (https://cloud.google.com/apigee/docs/api-platform/develop/resource-files).
34824//
34825// - parent: Name of the environment in which to list resource files in
34826//   the following format: `organizations/{org}/environments/{env}`.
34827func (r *OrganizationsEnvironmentsResourcefilesService) List(parent string) *OrganizationsEnvironmentsResourcefilesListCall {
34828	c := &OrganizationsEnvironmentsResourcefilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34829	c.parent = parent
34830	return c
34831}
34832
34833// Type sets the optional parameter "type": Type of resource files to
34834// list. {{ resource_file_type }}
34835func (c *OrganizationsEnvironmentsResourcefilesListCall) Type(type_ string) *OrganizationsEnvironmentsResourcefilesListCall {
34836	c.urlParams_.Set("type", type_)
34837	return c
34838}
34839
34840// Fields allows partial responses to be retrieved. See
34841// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
34842// for more information.
34843func (c *OrganizationsEnvironmentsResourcefilesListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesListCall {
34844	c.urlParams_.Set("fields", googleapi.CombineFields(s))
34845	return c
34846}
34847
34848// IfNoneMatch sets the optional parameter which makes the operation
34849// fail if the object's ETag matches the given value. This is useful for
34850// getting updates only after the object has changed since the last
34851// request. Use googleapi.IsNotModified to check whether the response
34852// error from Do is the result of In-None-Match.
34853func (c *OrganizationsEnvironmentsResourcefilesListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsResourcefilesListCall {
34854	c.ifNoneMatch_ = entityTag
34855	return c
34856}
34857
34858// Context sets the context to be used in this call's Do method. Any
34859// pending HTTP request will be aborted if the provided context is
34860// canceled.
34861func (c *OrganizationsEnvironmentsResourcefilesListCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesListCall {
34862	c.ctx_ = ctx
34863	return c
34864}
34865
34866// Header returns an http.Header that can be modified by the caller to
34867// add HTTP headers to the request.
34868func (c *OrganizationsEnvironmentsResourcefilesListCall) Header() http.Header {
34869	if c.header_ == nil {
34870		c.header_ = make(http.Header)
34871	}
34872	return c.header_
34873}
34874
34875func (c *OrganizationsEnvironmentsResourcefilesListCall) doRequest(alt string) (*http.Response, error) {
34876	reqHeaders := make(http.Header)
34877	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
34878	for k, v := range c.header_ {
34879		reqHeaders[k] = v
34880	}
34881	reqHeaders.Set("User-Agent", c.s.userAgent())
34882	if c.ifNoneMatch_ != "" {
34883		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
34884	}
34885	var body io.Reader = nil
34886	c.urlParams_.Set("alt", alt)
34887	c.urlParams_.Set("prettyPrint", "false")
34888	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcefiles")
34889	urls += "?" + c.urlParams_.Encode()
34890	req, err := http.NewRequest("GET", urls, body)
34891	if err != nil {
34892		return nil, err
34893	}
34894	req.Header = reqHeaders
34895	googleapi.Expand(req.URL, map[string]string{
34896		"parent": c.parent,
34897	})
34898	return gensupport.SendRequest(c.ctx_, c.s.client, req)
34899}
34900
34901// Do executes the "apigee.organizations.environments.resourcefiles.list" call.
34902// Exactly one of *GoogleCloudApigeeV1ListEnvironmentResourcesResponse
34903// or error will be non-nil. Any non-2xx status code is an error.
34904// Response headers are in either
34905// *GoogleCloudApigeeV1ListEnvironmentResourcesResponse.ServerResponse.He
34906// ader or (if a response was returned at all) in
34907// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
34908// whether the returned error was because http.StatusNotModified was
34909// returned.
34910func (c *OrganizationsEnvironmentsResourcefilesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListEnvironmentResourcesResponse, error) {
34911	gensupport.SetOptions(c.urlParams_, opts...)
34912	res, err := c.doRequest("json")
34913	if res != nil && res.StatusCode == http.StatusNotModified {
34914		if res.Body != nil {
34915			res.Body.Close()
34916		}
34917		return nil, &googleapi.Error{
34918			Code:   res.StatusCode,
34919			Header: res.Header,
34920		}
34921	}
34922	if err != nil {
34923		return nil, err
34924	}
34925	defer googleapi.CloseBody(res)
34926	if err := googleapi.CheckResponse(res); err != nil {
34927		return nil, err
34928	}
34929	ret := &GoogleCloudApigeeV1ListEnvironmentResourcesResponse{
34930		ServerResponse: googleapi.ServerResponse{
34931			Header:         res.Header,
34932			HTTPStatusCode: res.StatusCode,
34933		},
34934	}
34935	target := &ret
34936	if err := gensupport.DecodeResponse(target, res); err != nil {
34937		return nil, err
34938	}
34939	return ret, nil
34940	// {
34941	//   "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).",
34942	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/resourcefiles",
34943	//   "httpMethod": "GET",
34944	//   "id": "apigee.organizations.environments.resourcefiles.list",
34945	//   "parameterOrder": [
34946	//     "parent"
34947	//   ],
34948	//   "parameters": {
34949	//     "parent": {
34950	//       "description": "Required. Name of the environment in which to list resource files in the following format: `organizations/{org}/environments/{env}`.",
34951	//       "location": "path",
34952	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
34953	//       "required": true,
34954	//       "type": "string"
34955	//     },
34956	//     "type": {
34957	//       "description": "Optional. Type of resource files to list. {{ resource_file_type }}",
34958	//       "location": "query",
34959	//       "type": "string"
34960	//     }
34961	//   },
34962	//   "path": "v1/{+parent}/resourcefiles",
34963	//   "response": {
34964	//     "$ref": "GoogleCloudApigeeV1ListEnvironmentResourcesResponse"
34965	//   },
34966	//   "scopes": [
34967	//     "https://www.googleapis.com/auth/cloud-platform"
34968	//   ]
34969	// }
34970
34971}
34972
34973// method id "apigee.organizations.environments.resourcefiles.listEnvironmentResources":
34974
34975type OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall struct {
34976	s            *Service
34977	parent       string
34978	type_        string
34979	urlParams_   gensupport.URLParams
34980	ifNoneMatch_ string
34981	ctx_         context.Context
34982	header_      http.Header
34983}
34984
34985// ListEnvironmentResources: Lists all resource files, optionally
34986// filtering by type. For more information about resource files, see
34987// Resource files
34988// (https://cloud.google.com/apigee/docs/api-platform/develop/resource-files).
34989//
34990// - parent: Name of the environment in which to list resource files in
34991//   the following format: `organizations/{org}/environments/{env}`.
34992// - type: Optional. Type of resource files to list. {{
34993//   resource_file_type }}.
34994func (r *OrganizationsEnvironmentsResourcefilesService) ListEnvironmentResources(parent string, type_ string) *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall {
34995	c := &OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34996	c.parent = parent
34997	c.type_ = type_
34998	return c
34999}
35000
35001// Fields allows partial responses to be retrieved. See
35002// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
35003// for more information.
35004func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall {
35005	c.urlParams_.Set("fields", googleapi.CombineFields(s))
35006	return c
35007}
35008
35009// IfNoneMatch sets the optional parameter which makes the operation
35010// fail if the object's ETag matches the given value. This is useful for
35011// getting updates only after the object has changed since the last
35012// request. Use googleapi.IsNotModified to check whether the response
35013// error from Do is the result of In-None-Match.
35014func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall {
35015	c.ifNoneMatch_ = entityTag
35016	return c
35017}
35018
35019// Context sets the context to be used in this call's Do method. Any
35020// pending HTTP request will be aborted if the provided context is
35021// canceled.
35022func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall {
35023	c.ctx_ = ctx
35024	return c
35025}
35026
35027// Header returns an http.Header that can be modified by the caller to
35028// add HTTP headers to the request.
35029func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) Header() http.Header {
35030	if c.header_ == nil {
35031		c.header_ = make(http.Header)
35032	}
35033	return c.header_
35034}
35035
35036func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) doRequest(alt string) (*http.Response, error) {
35037	reqHeaders := make(http.Header)
35038	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
35039	for k, v := range c.header_ {
35040		reqHeaders[k] = v
35041	}
35042	reqHeaders.Set("User-Agent", c.s.userAgent())
35043	if c.ifNoneMatch_ != "" {
35044		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
35045	}
35046	var body io.Reader = nil
35047	c.urlParams_.Set("alt", alt)
35048	c.urlParams_.Set("prettyPrint", "false")
35049	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcefiles/{type}")
35050	urls += "?" + c.urlParams_.Encode()
35051	req, err := http.NewRequest("GET", urls, body)
35052	if err != nil {
35053		return nil, err
35054	}
35055	req.Header = reqHeaders
35056	googleapi.Expand(req.URL, map[string]string{
35057		"parent": c.parent,
35058		"type":   c.type_,
35059	})
35060	return gensupport.SendRequest(c.ctx_, c.s.client, req)
35061}
35062
35063// Do executes the "apigee.organizations.environments.resourcefiles.listEnvironmentResources" call.
35064// Exactly one of *GoogleCloudApigeeV1ListEnvironmentResourcesResponse
35065// or error will be non-nil. Any non-2xx status code is an error.
35066// Response headers are in either
35067// *GoogleCloudApigeeV1ListEnvironmentResourcesResponse.ServerResponse.He
35068// ader or (if a response was returned at all) in
35069// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
35070// whether the returned error was because http.StatusNotModified was
35071// returned.
35072func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListEnvironmentResourcesResponse, error) {
35073	gensupport.SetOptions(c.urlParams_, opts...)
35074	res, err := c.doRequest("json")
35075	if res != nil && res.StatusCode == http.StatusNotModified {
35076		if res.Body != nil {
35077			res.Body.Close()
35078		}
35079		return nil, &googleapi.Error{
35080			Code:   res.StatusCode,
35081			Header: res.Header,
35082		}
35083	}
35084	if err != nil {
35085		return nil, err
35086	}
35087	defer googleapi.CloseBody(res)
35088	if err := googleapi.CheckResponse(res); err != nil {
35089		return nil, err
35090	}
35091	ret := &GoogleCloudApigeeV1ListEnvironmentResourcesResponse{
35092		ServerResponse: googleapi.ServerResponse{
35093			Header:         res.Header,
35094			HTTPStatusCode: res.StatusCode,
35095		},
35096	}
35097	target := &ret
35098	if err := gensupport.DecodeResponse(target, res); err != nil {
35099		return nil, err
35100	}
35101	return ret, nil
35102	// {
35103	//   "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).",
35104	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/resourcefiles/{type}",
35105	//   "httpMethod": "GET",
35106	//   "id": "apigee.organizations.environments.resourcefiles.listEnvironmentResources",
35107	//   "parameterOrder": [
35108	//     "parent",
35109	//     "type"
35110	//   ],
35111	//   "parameters": {
35112	//     "parent": {
35113	//       "description": "Required. Name of the environment in which to list resource files in the following format: `organizations/{org}/environments/{env}`.",
35114	//       "location": "path",
35115	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
35116	//       "required": true,
35117	//       "type": "string"
35118	//     },
35119	//     "type": {
35120	//       "description": "Optional. Type of resource files to list. {{ resource_file_type }}",
35121	//       "location": "path",
35122	//       "required": true,
35123	//       "type": "string"
35124	//     }
35125	//   },
35126	//   "path": "v1/{+parent}/resourcefiles/{type}",
35127	//   "response": {
35128	//     "$ref": "GoogleCloudApigeeV1ListEnvironmentResourcesResponse"
35129	//   },
35130	//   "scopes": [
35131	//     "https://www.googleapis.com/auth/cloud-platform"
35132	//   ]
35133	// }
35134
35135}
35136
35137// method id "apigee.organizations.environments.resourcefiles.update":
35138
35139type OrganizationsEnvironmentsResourcefilesUpdateCall struct {
35140	s                 *Service
35141	parent            string
35142	type_             string
35143	name              string
35144	googleapihttpbody *GoogleApiHttpBody
35145	urlParams_        gensupport.URLParams
35146	ctx_              context.Context
35147	header_           http.Header
35148}
35149
35150// Update: Updates a resource file. Specify the `Content-Type` as
35151// `application/octet-stream` or `multipart/form-data`. For more
35152// information about resource files, see Resource files
35153// (https://cloud.google.com/apigee/docs/api-platform/develop/resource-files).
35154//
35155// - name: ID of the resource file to update. Must match the regular
35156//   expression: [a-zA-Z0-9:/\\!@#$%^&{}\\ ()+\-=,.~'` ]{1,255}.
35157// - parent: Name of the environment in the following format:
35158//   `organizations/{org}/environments/{env}`.
35159// - type: Resource file type. {{ resource_file_type }}.
35160func (r *OrganizationsEnvironmentsResourcefilesService) Update(parent string, type_ string, name string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsEnvironmentsResourcefilesUpdateCall {
35161	c := &OrganizationsEnvironmentsResourcefilesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35162	c.parent = parent
35163	c.type_ = type_
35164	c.name = name
35165	c.googleapihttpbody = googleapihttpbody
35166	return c
35167}
35168
35169// Fields allows partial responses to be retrieved. See
35170// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
35171// for more information.
35172func (c *OrganizationsEnvironmentsResourcefilesUpdateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesUpdateCall {
35173	c.urlParams_.Set("fields", googleapi.CombineFields(s))
35174	return c
35175}
35176
35177// Context sets the context to be used in this call's Do method. Any
35178// pending HTTP request will be aborted if the provided context is
35179// canceled.
35180func (c *OrganizationsEnvironmentsResourcefilesUpdateCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesUpdateCall {
35181	c.ctx_ = ctx
35182	return c
35183}
35184
35185// Header returns an http.Header that can be modified by the caller to
35186// add HTTP headers to the request.
35187func (c *OrganizationsEnvironmentsResourcefilesUpdateCall) Header() http.Header {
35188	if c.header_ == nil {
35189		c.header_ = make(http.Header)
35190	}
35191	return c.header_
35192}
35193
35194func (c *OrganizationsEnvironmentsResourcefilesUpdateCall) doRequest(alt string) (*http.Response, error) {
35195	reqHeaders := make(http.Header)
35196	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
35197	for k, v := range c.header_ {
35198		reqHeaders[k] = v
35199	}
35200	reqHeaders.Set("User-Agent", c.s.userAgent())
35201	var body io.Reader = nil
35202	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
35203	if err != nil {
35204		return nil, err
35205	}
35206	reqHeaders.Set("Content-Type", "application/json")
35207	c.urlParams_.Set("alt", alt)
35208	c.urlParams_.Set("prettyPrint", "false")
35209	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcefiles/{type}/{name}")
35210	urls += "?" + c.urlParams_.Encode()
35211	req, err := http.NewRequest("PUT", urls, body)
35212	if err != nil {
35213		return nil, err
35214	}
35215	req.Header = reqHeaders
35216	googleapi.Expand(req.URL, map[string]string{
35217		"parent": c.parent,
35218		"type":   c.type_,
35219		"name":   c.name,
35220	})
35221	return gensupport.SendRequest(c.ctx_, c.s.client, req)
35222}
35223
35224// Do executes the "apigee.organizations.environments.resourcefiles.update" call.
35225// Exactly one of *GoogleCloudApigeeV1ResourceFile or error will be
35226// non-nil. Any non-2xx status code is an error. Response headers are in
35227// either *GoogleCloudApigeeV1ResourceFile.ServerResponse.Header or (if
35228// a response was returned at all) in error.(*googleapi.Error).Header.
35229// Use googleapi.IsNotModified to check whether the returned error was
35230// because http.StatusNotModified was returned.
35231func (c *OrganizationsEnvironmentsResourcefilesUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ResourceFile, error) {
35232	gensupport.SetOptions(c.urlParams_, opts...)
35233	res, err := c.doRequest("json")
35234	if res != nil && res.StatusCode == http.StatusNotModified {
35235		if res.Body != nil {
35236			res.Body.Close()
35237		}
35238		return nil, &googleapi.Error{
35239			Code:   res.StatusCode,
35240			Header: res.Header,
35241		}
35242	}
35243	if err != nil {
35244		return nil, err
35245	}
35246	defer googleapi.CloseBody(res)
35247	if err := googleapi.CheckResponse(res); err != nil {
35248		return nil, err
35249	}
35250	ret := &GoogleCloudApigeeV1ResourceFile{
35251		ServerResponse: googleapi.ServerResponse{
35252			Header:         res.Header,
35253			HTTPStatusCode: res.StatusCode,
35254		},
35255	}
35256	target := &ret
35257	if err := gensupport.DecodeResponse(target, res); err != nil {
35258		return nil, err
35259	}
35260	return ret, nil
35261	// {
35262	//   "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).",
35263	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/resourcefiles/{type}/{name}",
35264	//   "httpMethod": "PUT",
35265	//   "id": "apigee.organizations.environments.resourcefiles.update",
35266	//   "parameterOrder": [
35267	//     "parent",
35268	//     "type",
35269	//     "name"
35270	//   ],
35271	//   "parameters": {
35272	//     "name": {
35273	//       "description": "Required. ID of the resource file to update. Must match the regular expression: [a-zA-Z0-9:/\\\\!@#$%^\u0026{}\\[\\]()+\\-=,.~'` ]{1,255}",
35274	//       "location": "path",
35275	//       "required": true,
35276	//       "type": "string"
35277	//     },
35278	//     "parent": {
35279	//       "description": "Required. Name of the environment in the following format: `organizations/{org}/environments/{env}`.",
35280	//       "location": "path",
35281	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
35282	//       "required": true,
35283	//       "type": "string"
35284	//     },
35285	//     "type": {
35286	//       "description": "Required. Resource file type. {{ resource_file_type }}",
35287	//       "location": "path",
35288	//       "required": true,
35289	//       "type": "string"
35290	//     }
35291	//   },
35292	//   "path": "v1/{+parent}/resourcefiles/{type}/{name}",
35293	//   "request": {
35294	//     "$ref": "GoogleApiHttpBody"
35295	//   },
35296	//   "response": {
35297	//     "$ref": "GoogleCloudApigeeV1ResourceFile"
35298	//   },
35299	//   "scopes": [
35300	//     "https://www.googleapis.com/auth/cloud-platform"
35301	//   ]
35302	// }
35303
35304}
35305
35306// method id "apigee.organizations.environments.sharedflows.deployments.list":
35307
35308type OrganizationsEnvironmentsSharedflowsDeploymentsListCall struct {
35309	s            *Service
35310	parent       string
35311	urlParams_   gensupport.URLParams
35312	ifNoneMatch_ string
35313	ctx_         context.Context
35314	header_      http.Header
35315}
35316
35317// List: Lists all deployments of a shared flow in an environment.
35318//
35319// - parent: Name representing a shared flow in an environment in the
35320//   following format:
35321//   `organizations/{org}/environments/{env}/sharedflows/{sharedflow}`.
35322func (r *OrganizationsEnvironmentsSharedflowsDeploymentsService) List(parent string) *OrganizationsEnvironmentsSharedflowsDeploymentsListCall {
35323	c := &OrganizationsEnvironmentsSharedflowsDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35324	c.parent = parent
35325	return c
35326}
35327
35328// Fields allows partial responses to be retrieved. See
35329// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
35330// for more information.
35331func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSharedflowsDeploymentsListCall {
35332	c.urlParams_.Set("fields", googleapi.CombineFields(s))
35333	return c
35334}
35335
35336// IfNoneMatch sets the optional parameter which makes the operation
35337// fail if the object's ETag matches the given value. This is useful for
35338// getting updates only after the object has changed since the last
35339// request. Use googleapi.IsNotModified to check whether the response
35340// error from Do is the result of In-None-Match.
35341func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsSharedflowsDeploymentsListCall {
35342	c.ifNoneMatch_ = entityTag
35343	return c
35344}
35345
35346// Context sets the context to be used in this call's Do method. Any
35347// pending HTTP request will be aborted if the provided context is
35348// canceled.
35349func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsSharedflowsDeploymentsListCall {
35350	c.ctx_ = ctx
35351	return c
35352}
35353
35354// Header returns an http.Header that can be modified by the caller to
35355// add HTTP headers to the request.
35356func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) Header() http.Header {
35357	if c.header_ == nil {
35358		c.header_ = make(http.Header)
35359	}
35360	return c.header_
35361}
35362
35363func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
35364	reqHeaders := make(http.Header)
35365	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
35366	for k, v := range c.header_ {
35367		reqHeaders[k] = v
35368	}
35369	reqHeaders.Set("User-Agent", c.s.userAgent())
35370	if c.ifNoneMatch_ != "" {
35371		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
35372	}
35373	var body io.Reader = nil
35374	c.urlParams_.Set("alt", alt)
35375	c.urlParams_.Set("prettyPrint", "false")
35376	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
35377	urls += "?" + c.urlParams_.Encode()
35378	req, err := http.NewRequest("GET", urls, body)
35379	if err != nil {
35380		return nil, err
35381	}
35382	req.Header = reqHeaders
35383	googleapi.Expand(req.URL, map[string]string{
35384		"parent": c.parent,
35385	})
35386	return gensupport.SendRequest(c.ctx_, c.s.client, req)
35387}
35388
35389// Do executes the "apigee.organizations.environments.sharedflows.deployments.list" call.
35390// Exactly one of *GoogleCloudApigeeV1ListDeploymentsResponse or error
35391// will be non-nil. Any non-2xx status code is an error. Response
35392// headers are in either
35393// *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or
35394// (if a response was returned at all) in
35395// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
35396// whether the returned error was because http.StatusNotModified was
35397// returned.
35398func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
35399	gensupport.SetOptions(c.urlParams_, opts...)
35400	res, err := c.doRequest("json")
35401	if res != nil && res.StatusCode == http.StatusNotModified {
35402		if res.Body != nil {
35403			res.Body.Close()
35404		}
35405		return nil, &googleapi.Error{
35406			Code:   res.StatusCode,
35407			Header: res.Header,
35408		}
35409	}
35410	if err != nil {
35411		return nil, err
35412	}
35413	defer googleapi.CloseBody(res)
35414	if err := googleapi.CheckResponse(res); err != nil {
35415		return nil, err
35416	}
35417	ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
35418		ServerResponse: googleapi.ServerResponse{
35419			Header:         res.Header,
35420			HTTPStatusCode: res.StatusCode,
35421		},
35422	}
35423	target := &ret
35424	if err := gensupport.DecodeResponse(target, res); err != nil {
35425		return nil, err
35426	}
35427	return ret, nil
35428	// {
35429	//   "description": "Lists all deployments of a shared flow in an environment.",
35430	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/sharedflows/{sharedflowsId}/deployments",
35431	//   "httpMethod": "GET",
35432	//   "id": "apigee.organizations.environments.sharedflows.deployments.list",
35433	//   "parameterOrder": [
35434	//     "parent"
35435	//   ],
35436	//   "parameters": {
35437	//     "parent": {
35438	//       "description": "Required. Name representing a shared flow in an environment in the following format: `organizations/{org}/environments/{env}/sharedflows/{sharedflow}`",
35439	//       "location": "path",
35440	//       "pattern": "^organizations/[^/]+/environments/[^/]+/sharedflows/[^/]+$",
35441	//       "required": true,
35442	//       "type": "string"
35443	//     }
35444	//   },
35445	//   "path": "v1/{+parent}/deployments",
35446	//   "response": {
35447	//     "$ref": "GoogleCloudApigeeV1ListDeploymentsResponse"
35448	//   },
35449	//   "scopes": [
35450	//     "https://www.googleapis.com/auth/cloud-platform"
35451	//   ]
35452	// }
35453
35454}
35455
35456// method id "apigee.organizations.environments.sharedflows.revisions.deploy":
35457
35458type OrganizationsEnvironmentsSharedflowsRevisionsDeployCall struct {
35459	s          *Service
35460	name       string
35461	urlParams_ gensupport.URLParams
35462	ctx_       context.Context
35463	header_    http.Header
35464}
35465
35466// Deploy: Deploys a revision of a shared flow. If another revision of
35467// the same shared flow is currently deployed, set the `override`
35468// parameter to `true` to have this revision replace the currently
35469// deployed revision. You cannot use a shared flow until it has been
35470// deployed to an environment. For a request path
35471// `organizations/{org}/environments/{env}/sharedflows/{sf}/revisions/{re
35472// v}/deployments`, two permissions are required: *
35473// `apigee.deployments.create` on the resource
35474// `organizations/{org}/environments/{env}` *
35475// `apigee.sharedflowrevisions.deploy` on the resource
35476// `organizations/{org}/sharedflows/{sf}/revisions/{rev}`
35477//
35478// - name: Name of the shared flow revision to deploy in the following
35479//   format:
35480//   `organizations/{org}/environments/{env}/sharedflows/{sharedflow}/rev
35481//   isions/{rev}`.
35482func (r *OrganizationsEnvironmentsSharedflowsRevisionsService) Deploy(name string) *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall {
35483	c := &OrganizationsEnvironmentsSharedflowsRevisionsDeployCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35484	c.name = name
35485	return c
35486}
35487
35488// Override sets the optional parameter "override": Flag that specifies
35489// whether the new deployment replaces other deployed revisions of the
35490// shared flow in the environment. Set `override` to `true` to replace
35491// other deployed revisions. By default, `override` is `false` and the
35492// deployment is rejected if other revisions of the shared flow are
35493// deployed in the environment.
35494func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) Override(override bool) *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall {
35495	c.urlParams_.Set("override", fmt.Sprint(override))
35496	return c
35497}
35498
35499// ServiceAccount sets the optional parameter "serviceAccount": Google
35500// Cloud IAM service account. The service account represents the
35501// identity of the deployed proxy, and determines what permissions it
35502// has. The format must be
35503// `{ACCOUNT_ID}@{PROJECT}.iam.gserviceaccount.com`.
35504func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) ServiceAccount(serviceAccount string) *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall {
35505	c.urlParams_.Set("serviceAccount", serviceAccount)
35506	return c
35507}
35508
35509// Fields allows partial responses to be retrieved. See
35510// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
35511// for more information.
35512func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall {
35513	c.urlParams_.Set("fields", googleapi.CombineFields(s))
35514	return c
35515}
35516
35517// Context sets the context to be used in this call's Do method. Any
35518// pending HTTP request will be aborted if the provided context is
35519// canceled.
35520func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) Context(ctx context.Context) *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall {
35521	c.ctx_ = ctx
35522	return c
35523}
35524
35525// Header returns an http.Header that can be modified by the caller to
35526// add HTTP headers to the request.
35527func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) Header() http.Header {
35528	if c.header_ == nil {
35529		c.header_ = make(http.Header)
35530	}
35531	return c.header_
35532}
35533
35534func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) doRequest(alt string) (*http.Response, error) {
35535	reqHeaders := make(http.Header)
35536	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
35537	for k, v := range c.header_ {
35538		reqHeaders[k] = v
35539	}
35540	reqHeaders.Set("User-Agent", c.s.userAgent())
35541	var body io.Reader = nil
35542	c.urlParams_.Set("alt", alt)
35543	c.urlParams_.Set("prettyPrint", "false")
35544	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments")
35545	urls += "?" + c.urlParams_.Encode()
35546	req, err := http.NewRequest("POST", urls, body)
35547	if err != nil {
35548		return nil, err
35549	}
35550	req.Header = reqHeaders
35551	googleapi.Expand(req.URL, map[string]string{
35552		"name": c.name,
35553	})
35554	return gensupport.SendRequest(c.ctx_, c.s.client, req)
35555}
35556
35557// Do executes the "apigee.organizations.environments.sharedflows.revisions.deploy" call.
35558// Exactly one of *GoogleCloudApigeeV1Deployment or error will be
35559// non-nil. Any non-2xx status code is an error. Response headers are in
35560// either *GoogleCloudApigeeV1Deployment.ServerResponse.Header or (if a
35561// response was returned at all) in error.(*googleapi.Error).Header. Use
35562// googleapi.IsNotModified to check whether the returned error was
35563// because http.StatusNotModified was returned.
35564func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Deployment, error) {
35565	gensupport.SetOptions(c.urlParams_, opts...)
35566	res, err := c.doRequest("json")
35567	if res != nil && res.StatusCode == http.StatusNotModified {
35568		if res.Body != nil {
35569			res.Body.Close()
35570		}
35571		return nil, &googleapi.Error{
35572			Code:   res.StatusCode,
35573			Header: res.Header,
35574		}
35575	}
35576	if err != nil {
35577		return nil, err
35578	}
35579	defer googleapi.CloseBody(res)
35580	if err := googleapi.CheckResponse(res); err != nil {
35581		return nil, err
35582	}
35583	ret := &GoogleCloudApigeeV1Deployment{
35584		ServerResponse: googleapi.ServerResponse{
35585			Header:         res.Header,
35586			HTTPStatusCode: res.StatusCode,
35587		},
35588	}
35589	target := &ret
35590	if err := gensupport.DecodeResponse(target, res); err != nil {
35591		return nil, err
35592	}
35593	return ret, nil
35594	// {
35595	//   "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}`",
35596	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/sharedflows/{sharedflowsId}/revisions/{revisionsId}/deployments",
35597	//   "httpMethod": "POST",
35598	//   "id": "apigee.organizations.environments.sharedflows.revisions.deploy",
35599	//   "parameterOrder": [
35600	//     "name"
35601	//   ],
35602	//   "parameters": {
35603	//     "name": {
35604	//       "description": "Required. Name of the shared flow revision to deploy in the following format: `organizations/{org}/environments/{env}/sharedflows/{sharedflow}/revisions/{rev}`",
35605	//       "location": "path",
35606	//       "pattern": "^organizations/[^/]+/environments/[^/]+/sharedflows/[^/]+/revisions/[^/]+$",
35607	//       "required": true,
35608	//       "type": "string"
35609	//     },
35610	//     "override": {
35611	//       "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.",
35612	//       "location": "query",
35613	//       "type": "boolean"
35614	//     },
35615	//     "serviceAccount": {
35616	//       "description": "Google Cloud IAM service account. The service account represents the identity of the deployed proxy, and determines what permissions it has. The format must be `{ACCOUNT_ID}@{PROJECT}.iam.gserviceaccount.com`.",
35617	//       "location": "query",
35618	//       "type": "string"
35619	//     }
35620	//   },
35621	//   "path": "v1/{+name}/deployments",
35622	//   "response": {
35623	//     "$ref": "GoogleCloudApigeeV1Deployment"
35624	//   },
35625	//   "scopes": [
35626	//     "https://www.googleapis.com/auth/cloud-platform"
35627	//   ]
35628	// }
35629
35630}
35631
35632// method id "apigee.organizations.environments.sharedflows.revisions.getDeployments":
35633
35634type OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall struct {
35635	s            *Service
35636	name         string
35637	urlParams_   gensupport.URLParams
35638	ifNoneMatch_ string
35639	ctx_         context.Context
35640	header_      http.Header
35641}
35642
35643// GetDeployments: Gets the deployment of a shared flow revision and
35644// actual state reported by runtime pods.
35645//
35646// - name: Name representing a shared flow in an environment in the
35647//   following format:
35648//   `organizations/{org}/environments/{env}/sharedflows/{sharedflow}/rev
35649//   isions/{rev}`.
35650func (r *OrganizationsEnvironmentsSharedflowsRevisionsService) GetDeployments(name string) *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall {
35651	c := &OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35652	c.name = name
35653	return c
35654}
35655
35656// Fields allows partial responses to be retrieved. See
35657// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
35658// for more information.
35659func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall {
35660	c.urlParams_.Set("fields", googleapi.CombineFields(s))
35661	return c
35662}
35663
35664// IfNoneMatch sets the optional parameter which makes the operation
35665// fail if the object's ETag matches the given value. This is useful for
35666// getting updates only after the object has changed since the last
35667// request. Use googleapi.IsNotModified to check whether the response
35668// error from Do is the result of In-None-Match.
35669func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall {
35670	c.ifNoneMatch_ = entityTag
35671	return c
35672}
35673
35674// Context sets the context to be used in this call's Do method. Any
35675// pending HTTP request will be aborted if the provided context is
35676// canceled.
35677func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) Context(ctx context.Context) *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall {
35678	c.ctx_ = ctx
35679	return c
35680}
35681
35682// Header returns an http.Header that can be modified by the caller to
35683// add HTTP headers to the request.
35684func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) Header() http.Header {
35685	if c.header_ == nil {
35686		c.header_ = make(http.Header)
35687	}
35688	return c.header_
35689}
35690
35691func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) doRequest(alt string) (*http.Response, error) {
35692	reqHeaders := make(http.Header)
35693	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
35694	for k, v := range c.header_ {
35695		reqHeaders[k] = v
35696	}
35697	reqHeaders.Set("User-Agent", c.s.userAgent())
35698	if c.ifNoneMatch_ != "" {
35699		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
35700	}
35701	var body io.Reader = nil
35702	c.urlParams_.Set("alt", alt)
35703	c.urlParams_.Set("prettyPrint", "false")
35704	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments")
35705	urls += "?" + c.urlParams_.Encode()
35706	req, err := http.NewRequest("GET", urls, body)
35707	if err != nil {
35708		return nil, err
35709	}
35710	req.Header = reqHeaders
35711	googleapi.Expand(req.URL, map[string]string{
35712		"name": c.name,
35713	})
35714	return gensupport.SendRequest(c.ctx_, c.s.client, req)
35715}
35716
35717// Do executes the "apigee.organizations.environments.sharedflows.revisions.getDeployments" call.
35718// Exactly one of *GoogleCloudApigeeV1Deployment or error will be
35719// non-nil. Any non-2xx status code is an error. Response headers are in
35720// either *GoogleCloudApigeeV1Deployment.ServerResponse.Header or (if a
35721// response was returned at all) in error.(*googleapi.Error).Header. Use
35722// googleapi.IsNotModified to check whether the returned error was
35723// because http.StatusNotModified was returned.
35724func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Deployment, error) {
35725	gensupport.SetOptions(c.urlParams_, opts...)
35726	res, err := c.doRequest("json")
35727	if res != nil && res.StatusCode == http.StatusNotModified {
35728		if res.Body != nil {
35729			res.Body.Close()
35730		}
35731		return nil, &googleapi.Error{
35732			Code:   res.StatusCode,
35733			Header: res.Header,
35734		}
35735	}
35736	if err != nil {
35737		return nil, err
35738	}
35739	defer googleapi.CloseBody(res)
35740	if err := googleapi.CheckResponse(res); err != nil {
35741		return nil, err
35742	}
35743	ret := &GoogleCloudApigeeV1Deployment{
35744		ServerResponse: googleapi.ServerResponse{
35745			Header:         res.Header,
35746			HTTPStatusCode: res.StatusCode,
35747		},
35748	}
35749	target := &ret
35750	if err := gensupport.DecodeResponse(target, res); err != nil {
35751		return nil, err
35752	}
35753	return ret, nil
35754	// {
35755	//   "description": "Gets the deployment of a shared flow revision and actual state reported by runtime pods.",
35756	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/sharedflows/{sharedflowsId}/revisions/{revisionsId}/deployments",
35757	//   "httpMethod": "GET",
35758	//   "id": "apigee.organizations.environments.sharedflows.revisions.getDeployments",
35759	//   "parameterOrder": [
35760	//     "name"
35761	//   ],
35762	//   "parameters": {
35763	//     "name": {
35764	//       "description": "Required. Name representing a shared flow in an environment in the following format: `organizations/{org}/environments/{env}/sharedflows/{sharedflow}/revisions/{rev}`",
35765	//       "location": "path",
35766	//       "pattern": "^organizations/[^/]+/environments/[^/]+/sharedflows/[^/]+/revisions/[^/]+$",
35767	//       "required": true,
35768	//       "type": "string"
35769	//     }
35770	//   },
35771	//   "path": "v1/{+name}/deployments",
35772	//   "response": {
35773	//     "$ref": "GoogleCloudApigeeV1Deployment"
35774	//   },
35775	//   "scopes": [
35776	//     "https://www.googleapis.com/auth/cloud-platform"
35777	//   ]
35778	// }
35779
35780}
35781
35782// method id "apigee.organizations.environments.sharedflows.revisions.undeploy":
35783
35784type OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall struct {
35785	s          *Service
35786	name       string
35787	urlParams_ gensupport.URLParams
35788	ctx_       context.Context
35789	header_    http.Header
35790}
35791
35792// Undeploy: Undeploys a shared flow revision from an environment. For a
35793// request path
35794// `organizations/{org}/environments/{env}/sharedflows/{sf}/revisions/{re
35795// v}/deployments`, two permissions are required: *
35796// `apigee.deployments.delete` on the resource
35797// `organizations/{org}/environments/{env}` *
35798// `apigee.sharedflowrevisions.undeploy` on the resource
35799// `organizations/{org}/sharedflows/{sf}/revisions/{rev}`
35800//
35801// - name: Name of the shared flow revision to undeploy in the following
35802//   format:
35803//   `organizations/{org}/environments/{env}/sharedflows/{sharedflow}/rev
35804//   isions/{rev}`.
35805func (r *OrganizationsEnvironmentsSharedflowsRevisionsService) Undeploy(name string) *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall {
35806	c := &OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35807	c.name = name
35808	return c
35809}
35810
35811// Fields allows partial responses to be retrieved. See
35812// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
35813// for more information.
35814func (c *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall {
35815	c.urlParams_.Set("fields", googleapi.CombineFields(s))
35816	return c
35817}
35818
35819// Context sets the context to be used in this call's Do method. Any
35820// pending HTTP request will be aborted if the provided context is
35821// canceled.
35822func (c *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall) Context(ctx context.Context) *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall {
35823	c.ctx_ = ctx
35824	return c
35825}
35826
35827// Header returns an http.Header that can be modified by the caller to
35828// add HTTP headers to the request.
35829func (c *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall) Header() http.Header {
35830	if c.header_ == nil {
35831		c.header_ = make(http.Header)
35832	}
35833	return c.header_
35834}
35835
35836func (c *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall) doRequest(alt string) (*http.Response, error) {
35837	reqHeaders := make(http.Header)
35838	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
35839	for k, v := range c.header_ {
35840		reqHeaders[k] = v
35841	}
35842	reqHeaders.Set("User-Agent", c.s.userAgent())
35843	var body io.Reader = nil
35844	c.urlParams_.Set("alt", alt)
35845	c.urlParams_.Set("prettyPrint", "false")
35846	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments")
35847	urls += "?" + c.urlParams_.Encode()
35848	req, err := http.NewRequest("DELETE", urls, body)
35849	if err != nil {
35850		return nil, err
35851	}
35852	req.Header = reqHeaders
35853	googleapi.Expand(req.URL, map[string]string{
35854		"name": c.name,
35855	})
35856	return gensupport.SendRequest(c.ctx_, c.s.client, req)
35857}
35858
35859// Do executes the "apigee.organizations.environments.sharedflows.revisions.undeploy" call.
35860// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
35861// non-2xx status code is an error. Response headers are in either
35862// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
35863// returned at all) in error.(*googleapi.Error).Header. Use
35864// googleapi.IsNotModified to check whether the returned error was
35865// because http.StatusNotModified was returned.
35866func (c *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
35867	gensupport.SetOptions(c.urlParams_, opts...)
35868	res, err := c.doRequest("json")
35869	if res != nil && res.StatusCode == http.StatusNotModified {
35870		if res.Body != nil {
35871			res.Body.Close()
35872		}
35873		return nil, &googleapi.Error{
35874			Code:   res.StatusCode,
35875			Header: res.Header,
35876		}
35877	}
35878	if err != nil {
35879		return nil, err
35880	}
35881	defer googleapi.CloseBody(res)
35882	if err := googleapi.CheckResponse(res); err != nil {
35883		return nil, err
35884	}
35885	ret := &GoogleProtobufEmpty{
35886		ServerResponse: googleapi.ServerResponse{
35887			Header:         res.Header,
35888			HTTPStatusCode: res.StatusCode,
35889		},
35890	}
35891	target := &ret
35892	if err := gensupport.DecodeResponse(target, res); err != nil {
35893		return nil, err
35894	}
35895	return ret, nil
35896	// {
35897	//   "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}`",
35898	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/sharedflows/{sharedflowsId}/revisions/{revisionsId}/deployments",
35899	//   "httpMethod": "DELETE",
35900	//   "id": "apigee.organizations.environments.sharedflows.revisions.undeploy",
35901	//   "parameterOrder": [
35902	//     "name"
35903	//   ],
35904	//   "parameters": {
35905	//     "name": {
35906	//       "description": "Required. Name of the shared flow revision to undeploy in the following format: `organizations/{org}/environments/{env}/sharedflows/{sharedflow}/revisions/{rev}`",
35907	//       "location": "path",
35908	//       "pattern": "^organizations/[^/]+/environments/[^/]+/sharedflows/[^/]+/revisions/[^/]+$",
35909	//       "required": true,
35910	//       "type": "string"
35911	//     }
35912	//   },
35913	//   "path": "v1/{+name}/deployments",
35914	//   "response": {
35915	//     "$ref": "GoogleProtobufEmpty"
35916	//   },
35917	//   "scopes": [
35918	//     "https://www.googleapis.com/auth/cloud-platform"
35919	//   ]
35920	// }
35921
35922}
35923
35924// method id "apigee.organizations.environments.stats.get":
35925
35926type OrganizationsEnvironmentsStatsGetCall struct {
35927	s            *Service
35928	name         string
35929	urlParams_   gensupport.URLParams
35930	ifNoneMatch_ string
35931	ctx_         context.Context
35932	header_      http.Header
35933}
35934
35935// Get: Retrieve metrics grouped by dimensions. The types of metrics you
35936// can retrieve include traffic, message counts, API call latency,
35937// response size, and cache hits and counts. Dimensions let you view
35938// metrics in meaningful groups. The stats api does accept dimensions as
35939// path params. The dimensions are optional in which case the metrics
35940// are computed on the entire data for the given timerange.
35941//
35942// - name: The resource name for which the interactive query will be
35943//   executed. Must be of the form
35944//   `organizations/{organization_id}/environments/{environment_id/stats/
35945//   {dimensions}` Dimensions let you view metrics in meaningful
35946//   groupings. E.g. apiproxy, target_host. The value of dimensions
35947//   should be comma separated list as shown below
35948//   `organizations/{org}/environments/{env}/stats/apiproxy,request_verb`.
35949func (r *OrganizationsEnvironmentsStatsService) Get(name string) *OrganizationsEnvironmentsStatsGetCall {
35950	c := &OrganizationsEnvironmentsStatsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35951	c.name = name
35952	return c
35953}
35954
35955// Accuracy sets the optional parameter "accuracy": Legacy field: not
35956// used anymore. This field is present to support UI calls which still
35957// use this parameter.
35958func (c *OrganizationsEnvironmentsStatsGetCall) Accuracy(accuracy string) *OrganizationsEnvironmentsStatsGetCall {
35959	c.urlParams_.Set("accuracy", accuracy)
35960	return c
35961}
35962
35963// AggTable sets the optional parameter "aggTable": If customers want to
35964// query custom aggregate tables, then this parameter can be used to
35965// specify the table name. If this parameter is skipped, then Edge Query
35966// will try to retrieve the data from fact tables which will be
35967// expensive.
35968func (c *OrganizationsEnvironmentsStatsGetCall) AggTable(aggTable string) *OrganizationsEnvironmentsStatsGetCall {
35969	c.urlParams_.Set("aggTable", aggTable)
35970	return c
35971}
35972
35973// Filter sets the optional parameter "filter": Enables drill-down on
35974// specific dimension values
35975func (c *OrganizationsEnvironmentsStatsGetCall) Filter(filter string) *OrganizationsEnvironmentsStatsGetCall {
35976	c.urlParams_.Set("filter", filter)
35977	return c
35978}
35979
35980// Limit sets the optional parameter "limit": This parameter is used to
35981// limit the number of result items. Default and the max value is 14400.
35982func (c *OrganizationsEnvironmentsStatsGetCall) Limit(limit string) *OrganizationsEnvironmentsStatsGetCall {
35983	c.urlParams_.Set("limit", limit)
35984	return c
35985}
35986
35987// Offset sets the optional parameter "offset": Use offset with limit to
35988// enable pagination of results. For example, to display results 11-20,
35989// set limit to '10' and offset to '10'.
35990func (c *OrganizationsEnvironmentsStatsGetCall) Offset(offset string) *OrganizationsEnvironmentsStatsGetCall {
35991	c.urlParams_.Set("offset", offset)
35992	return c
35993}
35994
35995// Realtime sets the optional parameter "realtime": Legacy field: not
35996// used anymore.
35997func (c *OrganizationsEnvironmentsStatsGetCall) Realtime(realtime bool) *OrganizationsEnvironmentsStatsGetCall {
35998	c.urlParams_.Set("realtime", fmt.Sprint(realtime))
35999	return c
36000}
36001
36002// Select sets the optional parameter "select": The select parameter
36003// contains a comma separated list of metrics. E.g.
36004// sum(message_count),sum(error_count)
36005func (c *OrganizationsEnvironmentsStatsGetCall) Select(select_ string) *OrganizationsEnvironmentsStatsGetCall {
36006	c.urlParams_.Set("select", select_)
36007	return c
36008}
36009
36010// Sonar sets the optional parameter "sonar": This parameter routes the
36011// query to api monitoring service for last hour.
36012func (c *OrganizationsEnvironmentsStatsGetCall) Sonar(sonar bool) *OrganizationsEnvironmentsStatsGetCall {
36013	c.urlParams_.Set("sonar", fmt.Sprint(sonar))
36014	return c
36015}
36016
36017// Sort sets the optional parameter "sort": This parameter specifies if
36018// the sort order should be ascending or descending Supported values are
36019// DESC and ASC.
36020func (c *OrganizationsEnvironmentsStatsGetCall) Sort(sort string) *OrganizationsEnvironmentsStatsGetCall {
36021	c.urlParams_.Set("sort", sort)
36022	return c
36023}
36024
36025// Sortby sets the optional parameter "sortby": Comma separated list of
36026// columns to sort the final result.
36027func (c *OrganizationsEnvironmentsStatsGetCall) Sortby(sortby string) *OrganizationsEnvironmentsStatsGetCall {
36028	c.urlParams_.Set("sortby", sortby)
36029	return c
36030}
36031
36032// TimeRange sets the optional parameter "timeRange": Time interval for
36033// the interactive query. Time range is specified as start~end E.g.
36034// 04/15/2017 00:00~05/15/2017 23:59
36035func (c *OrganizationsEnvironmentsStatsGetCall) TimeRange(timeRange string) *OrganizationsEnvironmentsStatsGetCall {
36036	c.urlParams_.Set("timeRange", timeRange)
36037	return c
36038}
36039
36040// TimeUnit sets the optional parameter "timeUnit": A value of second,
36041// minute, hour, day, week, month. Time Unit specifies the granularity
36042// of metrics returned.
36043func (c *OrganizationsEnvironmentsStatsGetCall) TimeUnit(timeUnit string) *OrganizationsEnvironmentsStatsGetCall {
36044	c.urlParams_.Set("timeUnit", timeUnit)
36045	return c
36046}
36047
36048// Topk sets the optional parameter "topk": Take 'top k' results from
36049// results, for example, to return the top 5 results 'topk=5'.
36050func (c *OrganizationsEnvironmentsStatsGetCall) Topk(topk string) *OrganizationsEnvironmentsStatsGetCall {
36051	c.urlParams_.Set("topk", topk)
36052	return c
36053}
36054
36055// TsAscending sets the optional parameter "tsAscending": Lists
36056// timestamps in ascending order if set to true. Recommend setting this
36057// value to true if you are using sortby with sort=DESC.
36058func (c *OrganizationsEnvironmentsStatsGetCall) TsAscending(tsAscending bool) *OrganizationsEnvironmentsStatsGetCall {
36059	c.urlParams_.Set("tsAscending", fmt.Sprint(tsAscending))
36060	return c
36061}
36062
36063// Tzo sets the optional parameter "tzo": This parameters contains the
36064// timezone offset value.
36065func (c *OrganizationsEnvironmentsStatsGetCall) Tzo(tzo string) *OrganizationsEnvironmentsStatsGetCall {
36066	c.urlParams_.Set("tzo", tzo)
36067	return c
36068}
36069
36070// Fields allows partial responses to be retrieved. See
36071// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
36072// for more information.
36073func (c *OrganizationsEnvironmentsStatsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsStatsGetCall {
36074	c.urlParams_.Set("fields", googleapi.CombineFields(s))
36075	return c
36076}
36077
36078// IfNoneMatch sets the optional parameter which makes the operation
36079// fail if the object's ETag matches the given value. This is useful for
36080// getting updates only after the object has changed since the last
36081// request. Use googleapi.IsNotModified to check whether the response
36082// error from Do is the result of In-None-Match.
36083func (c *OrganizationsEnvironmentsStatsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsStatsGetCall {
36084	c.ifNoneMatch_ = entityTag
36085	return c
36086}
36087
36088// Context sets the context to be used in this call's Do method. Any
36089// pending HTTP request will be aborted if the provided context is
36090// canceled.
36091func (c *OrganizationsEnvironmentsStatsGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsStatsGetCall {
36092	c.ctx_ = ctx
36093	return c
36094}
36095
36096// Header returns an http.Header that can be modified by the caller to
36097// add HTTP headers to the request.
36098func (c *OrganizationsEnvironmentsStatsGetCall) Header() http.Header {
36099	if c.header_ == nil {
36100		c.header_ = make(http.Header)
36101	}
36102	return c.header_
36103}
36104
36105func (c *OrganizationsEnvironmentsStatsGetCall) doRequest(alt string) (*http.Response, error) {
36106	reqHeaders := make(http.Header)
36107	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
36108	for k, v := range c.header_ {
36109		reqHeaders[k] = v
36110	}
36111	reqHeaders.Set("User-Agent", c.s.userAgent())
36112	if c.ifNoneMatch_ != "" {
36113		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
36114	}
36115	var body io.Reader = nil
36116	c.urlParams_.Set("alt", alt)
36117	c.urlParams_.Set("prettyPrint", "false")
36118	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
36119	urls += "?" + c.urlParams_.Encode()
36120	req, err := http.NewRequest("GET", urls, body)
36121	if err != nil {
36122		return nil, err
36123	}
36124	req.Header = reqHeaders
36125	googleapi.Expand(req.URL, map[string]string{
36126		"name": c.name,
36127	})
36128	return gensupport.SendRequest(c.ctx_, c.s.client, req)
36129}
36130
36131// Do executes the "apigee.organizations.environments.stats.get" call.
36132// Exactly one of *GoogleCloudApigeeV1Stats or error will be non-nil.
36133// Any non-2xx status code is an error. Response headers are in either
36134// *GoogleCloudApigeeV1Stats.ServerResponse.Header or (if a response was
36135// returned at all) in error.(*googleapi.Error).Header. Use
36136// googleapi.IsNotModified to check whether the returned error was
36137// because http.StatusNotModified was returned.
36138func (c *OrganizationsEnvironmentsStatsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Stats, error) {
36139	gensupport.SetOptions(c.urlParams_, opts...)
36140	res, err := c.doRequest("json")
36141	if res != nil && res.StatusCode == http.StatusNotModified {
36142		if res.Body != nil {
36143			res.Body.Close()
36144		}
36145		return nil, &googleapi.Error{
36146			Code:   res.StatusCode,
36147			Header: res.Header,
36148		}
36149	}
36150	if err != nil {
36151		return nil, err
36152	}
36153	defer googleapi.CloseBody(res)
36154	if err := googleapi.CheckResponse(res); err != nil {
36155		return nil, err
36156	}
36157	ret := &GoogleCloudApigeeV1Stats{
36158		ServerResponse: googleapi.ServerResponse{
36159			Header:         res.Header,
36160			HTTPStatusCode: res.StatusCode,
36161		},
36162	}
36163	target := &ret
36164	if err := gensupport.DecodeResponse(target, res); err != nil {
36165		return nil, err
36166	}
36167	return ret, nil
36168	// {
36169	//   "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.",
36170	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/stats/{statsId}",
36171	//   "httpMethod": "GET",
36172	//   "id": "apigee.organizations.environments.stats.get",
36173	//   "parameterOrder": [
36174	//     "name"
36175	//   ],
36176	//   "parameters": {
36177	//     "accuracy": {
36178	//       "description": "Legacy field: not used anymore. This field is present to support UI calls which still use this parameter.",
36179	//       "location": "query",
36180	//       "type": "string"
36181	//     },
36182	//     "aggTable": {
36183	//       "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.",
36184	//       "location": "query",
36185	//       "type": "string"
36186	//     },
36187	//     "filter": {
36188	//       "description": "Enables drill-down on specific dimension values",
36189	//       "location": "query",
36190	//       "type": "string"
36191	//     },
36192	//     "limit": {
36193	//       "description": "This parameter is used to limit the number of result items. Default and the max value is 14400.",
36194	//       "location": "query",
36195	//       "type": "string"
36196	//     },
36197	//     "name": {
36198	//       "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`",
36199	//       "location": "path",
36200	//       "pattern": "^organizations/[^/]+/environments/[^/]+/stats/.*$",
36201	//       "required": true,
36202	//       "type": "string"
36203	//     },
36204	//     "offset": {
36205	//       "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'.",
36206	//       "location": "query",
36207	//       "type": "string"
36208	//     },
36209	//     "realtime": {
36210	//       "description": "Legacy field: not used anymore.",
36211	//       "location": "query",
36212	//       "type": "boolean"
36213	//     },
36214	//     "select": {
36215	//       "description": "The select parameter contains a comma separated list of metrics. E.g. sum(message_count),sum(error_count)",
36216	//       "location": "query",
36217	//       "type": "string"
36218	//     },
36219	//     "sonar": {
36220	//       "description": "This parameter routes the query to api monitoring service for last hour.",
36221	//       "location": "query",
36222	//       "type": "boolean"
36223	//     },
36224	//     "sort": {
36225	//       "description": "This parameter specifies if the sort order should be ascending or descending Supported values are DESC and ASC.",
36226	//       "location": "query",
36227	//       "type": "string"
36228	//     },
36229	//     "sortby": {
36230	//       "description": "Comma separated list of columns to sort the final result.",
36231	//       "location": "query",
36232	//       "type": "string"
36233	//     },
36234	//     "timeRange": {
36235	//       "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",
36236	//       "location": "query",
36237	//       "type": "string"
36238	//     },
36239	//     "timeUnit": {
36240	//       "description": "A value of second, minute, hour, day, week, month. Time Unit specifies the granularity of metrics returned.",
36241	//       "location": "query",
36242	//       "type": "string"
36243	//     },
36244	//     "topk": {
36245	//       "description": "Take 'top k' results from results, for example, to return the top 5 results 'topk=5'.",
36246	//       "location": "query",
36247	//       "type": "string"
36248	//     },
36249	//     "tsAscending": {
36250	//       "description": "Lists timestamps in ascending order if set to true. Recommend setting this value to true if you are using sortby with sort=DESC.",
36251	//       "location": "query",
36252	//       "type": "boolean"
36253	//     },
36254	//     "tzo": {
36255	//       "description": "This parameters contains the timezone offset value.",
36256	//       "location": "query",
36257	//       "type": "string"
36258	//     }
36259	//   },
36260	//   "path": "v1/{+name}",
36261	//   "response": {
36262	//     "$ref": "GoogleCloudApigeeV1Stats"
36263	//   },
36264	//   "scopes": [
36265	//     "https://www.googleapis.com/auth/cloud-platform"
36266	//   ]
36267	// }
36268
36269}
36270
36271// method id "apigee.organizations.environments.targetservers.create":
36272
36273type OrganizationsEnvironmentsTargetserversCreateCall struct {
36274	s                               *Service
36275	parent                          string
36276	googlecloudapigeev1targetserver *GoogleCloudApigeeV1TargetServer
36277	urlParams_                      gensupport.URLParams
36278	ctx_                            context.Context
36279	header_                         http.Header
36280}
36281
36282// Create: Creates a TargetServer in the specified environment.
36283//
36284// - parent: The parent environment name under which the TargetServer
36285//   will be created. Must be of the form
36286//   `organizations/{org}/environments/{env}`.
36287func (r *OrganizationsEnvironmentsTargetserversService) Create(parent string, googlecloudapigeev1targetserver *GoogleCloudApigeeV1TargetServer) *OrganizationsEnvironmentsTargetserversCreateCall {
36288	c := &OrganizationsEnvironmentsTargetserversCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36289	c.parent = parent
36290	c.googlecloudapigeev1targetserver = googlecloudapigeev1targetserver
36291	return c
36292}
36293
36294// Name sets the optional parameter "name": The ID to give the
36295// TargetServer. This will overwrite the value in TargetServer.
36296func (c *OrganizationsEnvironmentsTargetserversCreateCall) Name(name string) *OrganizationsEnvironmentsTargetserversCreateCall {
36297	c.urlParams_.Set("name", name)
36298	return c
36299}
36300
36301// Fields allows partial responses to be retrieved. See
36302// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
36303// for more information.
36304func (c *OrganizationsEnvironmentsTargetserversCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTargetserversCreateCall {
36305	c.urlParams_.Set("fields", googleapi.CombineFields(s))
36306	return c
36307}
36308
36309// Context sets the context to be used in this call's Do method. Any
36310// pending HTTP request will be aborted if the provided context is
36311// canceled.
36312func (c *OrganizationsEnvironmentsTargetserversCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsTargetserversCreateCall {
36313	c.ctx_ = ctx
36314	return c
36315}
36316
36317// Header returns an http.Header that can be modified by the caller to
36318// add HTTP headers to the request.
36319func (c *OrganizationsEnvironmentsTargetserversCreateCall) Header() http.Header {
36320	if c.header_ == nil {
36321		c.header_ = make(http.Header)
36322	}
36323	return c.header_
36324}
36325
36326func (c *OrganizationsEnvironmentsTargetserversCreateCall) doRequest(alt string) (*http.Response, error) {
36327	reqHeaders := make(http.Header)
36328	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
36329	for k, v := range c.header_ {
36330		reqHeaders[k] = v
36331	}
36332	reqHeaders.Set("User-Agent", c.s.userAgent())
36333	var body io.Reader = nil
36334	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1targetserver)
36335	if err != nil {
36336		return nil, err
36337	}
36338	reqHeaders.Set("Content-Type", "application/json")
36339	c.urlParams_.Set("alt", alt)
36340	c.urlParams_.Set("prettyPrint", "false")
36341	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/targetservers")
36342	urls += "?" + c.urlParams_.Encode()
36343	req, err := http.NewRequest("POST", urls, body)
36344	if err != nil {
36345		return nil, err
36346	}
36347	req.Header = reqHeaders
36348	googleapi.Expand(req.URL, map[string]string{
36349		"parent": c.parent,
36350	})
36351	return gensupport.SendRequest(c.ctx_, c.s.client, req)
36352}
36353
36354// Do executes the "apigee.organizations.environments.targetservers.create" call.
36355// Exactly one of *GoogleCloudApigeeV1TargetServer or error will be
36356// non-nil. Any non-2xx status code is an error. Response headers are in
36357// either *GoogleCloudApigeeV1TargetServer.ServerResponse.Header or (if
36358// a response was returned at all) in error.(*googleapi.Error).Header.
36359// Use googleapi.IsNotModified to check whether the returned error was
36360// because http.StatusNotModified was returned.
36361func (c *OrganizationsEnvironmentsTargetserversCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TargetServer, error) {
36362	gensupport.SetOptions(c.urlParams_, opts...)
36363	res, err := c.doRequest("json")
36364	if res != nil && res.StatusCode == http.StatusNotModified {
36365		if res.Body != nil {
36366			res.Body.Close()
36367		}
36368		return nil, &googleapi.Error{
36369			Code:   res.StatusCode,
36370			Header: res.Header,
36371		}
36372	}
36373	if err != nil {
36374		return nil, err
36375	}
36376	defer googleapi.CloseBody(res)
36377	if err := googleapi.CheckResponse(res); err != nil {
36378		return nil, err
36379	}
36380	ret := &GoogleCloudApigeeV1TargetServer{
36381		ServerResponse: googleapi.ServerResponse{
36382			Header:         res.Header,
36383			HTTPStatusCode: res.StatusCode,
36384		},
36385	}
36386	target := &ret
36387	if err := gensupport.DecodeResponse(target, res); err != nil {
36388		return nil, err
36389	}
36390	return ret, nil
36391	// {
36392	//   "description": "Creates a TargetServer in the specified environment.",
36393	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/targetservers",
36394	//   "httpMethod": "POST",
36395	//   "id": "apigee.organizations.environments.targetservers.create",
36396	//   "parameterOrder": [
36397	//     "parent"
36398	//   ],
36399	//   "parameters": {
36400	//     "name": {
36401	//       "description": "Optional. The ID to give the TargetServer. This will overwrite the value in TargetServer.",
36402	//       "location": "query",
36403	//       "type": "string"
36404	//     },
36405	//     "parent": {
36406	//       "description": "Required. The parent environment name under which the TargetServer will be created. Must be of the form `organizations/{org}/environments/{env}`.",
36407	//       "location": "path",
36408	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
36409	//       "required": true,
36410	//       "type": "string"
36411	//     }
36412	//   },
36413	//   "path": "v1/{+parent}/targetservers",
36414	//   "request": {
36415	//     "$ref": "GoogleCloudApigeeV1TargetServer"
36416	//   },
36417	//   "response": {
36418	//     "$ref": "GoogleCloudApigeeV1TargetServer"
36419	//   },
36420	//   "scopes": [
36421	//     "https://www.googleapis.com/auth/cloud-platform"
36422	//   ]
36423	// }
36424
36425}
36426
36427// method id "apigee.organizations.environments.targetservers.delete":
36428
36429type OrganizationsEnvironmentsTargetserversDeleteCall struct {
36430	s          *Service
36431	name       string
36432	urlParams_ gensupport.URLParams
36433	ctx_       context.Context
36434	header_    http.Header
36435}
36436
36437// Delete: Deletes a TargetServer from an environment. Returns the
36438// deleted TargetServer resource.
36439//
36440// - name: The name of the TargetServer to delete. Must be of the form
36441//   `organizations/{org}/environments/{env}/targetservers/{target_server
36442//   _id}`.
36443func (r *OrganizationsEnvironmentsTargetserversService) Delete(name string) *OrganizationsEnvironmentsTargetserversDeleteCall {
36444	c := &OrganizationsEnvironmentsTargetserversDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36445	c.name = name
36446	return c
36447}
36448
36449// Fields allows partial responses to be retrieved. See
36450// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
36451// for more information.
36452func (c *OrganizationsEnvironmentsTargetserversDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTargetserversDeleteCall {
36453	c.urlParams_.Set("fields", googleapi.CombineFields(s))
36454	return c
36455}
36456
36457// Context sets the context to be used in this call's Do method. Any
36458// pending HTTP request will be aborted if the provided context is
36459// canceled.
36460func (c *OrganizationsEnvironmentsTargetserversDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsTargetserversDeleteCall {
36461	c.ctx_ = ctx
36462	return c
36463}
36464
36465// Header returns an http.Header that can be modified by the caller to
36466// add HTTP headers to the request.
36467func (c *OrganizationsEnvironmentsTargetserversDeleteCall) Header() http.Header {
36468	if c.header_ == nil {
36469		c.header_ = make(http.Header)
36470	}
36471	return c.header_
36472}
36473
36474func (c *OrganizationsEnvironmentsTargetserversDeleteCall) doRequest(alt string) (*http.Response, error) {
36475	reqHeaders := make(http.Header)
36476	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
36477	for k, v := range c.header_ {
36478		reqHeaders[k] = v
36479	}
36480	reqHeaders.Set("User-Agent", c.s.userAgent())
36481	var body io.Reader = nil
36482	c.urlParams_.Set("alt", alt)
36483	c.urlParams_.Set("prettyPrint", "false")
36484	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
36485	urls += "?" + c.urlParams_.Encode()
36486	req, err := http.NewRequest("DELETE", urls, body)
36487	if err != nil {
36488		return nil, err
36489	}
36490	req.Header = reqHeaders
36491	googleapi.Expand(req.URL, map[string]string{
36492		"name": c.name,
36493	})
36494	return gensupport.SendRequest(c.ctx_, c.s.client, req)
36495}
36496
36497// Do executes the "apigee.organizations.environments.targetservers.delete" call.
36498// Exactly one of *GoogleCloudApigeeV1TargetServer or error will be
36499// non-nil. Any non-2xx status code is an error. Response headers are in
36500// either *GoogleCloudApigeeV1TargetServer.ServerResponse.Header or (if
36501// a response was returned at all) in error.(*googleapi.Error).Header.
36502// Use googleapi.IsNotModified to check whether the returned error was
36503// because http.StatusNotModified was returned.
36504func (c *OrganizationsEnvironmentsTargetserversDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TargetServer, error) {
36505	gensupport.SetOptions(c.urlParams_, opts...)
36506	res, err := c.doRequest("json")
36507	if res != nil && res.StatusCode == http.StatusNotModified {
36508		if res.Body != nil {
36509			res.Body.Close()
36510		}
36511		return nil, &googleapi.Error{
36512			Code:   res.StatusCode,
36513			Header: res.Header,
36514		}
36515	}
36516	if err != nil {
36517		return nil, err
36518	}
36519	defer googleapi.CloseBody(res)
36520	if err := googleapi.CheckResponse(res); err != nil {
36521		return nil, err
36522	}
36523	ret := &GoogleCloudApigeeV1TargetServer{
36524		ServerResponse: googleapi.ServerResponse{
36525			Header:         res.Header,
36526			HTTPStatusCode: res.StatusCode,
36527		},
36528	}
36529	target := &ret
36530	if err := gensupport.DecodeResponse(target, res); err != nil {
36531		return nil, err
36532	}
36533	return ret, nil
36534	// {
36535	//   "description": "Deletes a TargetServer from an environment. Returns the deleted TargetServer resource.",
36536	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/targetservers/{targetserversId}",
36537	//   "httpMethod": "DELETE",
36538	//   "id": "apigee.organizations.environments.targetservers.delete",
36539	//   "parameterOrder": [
36540	//     "name"
36541	//   ],
36542	//   "parameters": {
36543	//     "name": {
36544	//       "description": "Required. The name of the TargetServer to delete. Must be of the form `organizations/{org}/environments/{env}/targetservers/{target_server_id}`.",
36545	//       "location": "path",
36546	//       "pattern": "^organizations/[^/]+/environments/[^/]+/targetservers/[^/]+$",
36547	//       "required": true,
36548	//       "type": "string"
36549	//     }
36550	//   },
36551	//   "path": "v1/{+name}",
36552	//   "response": {
36553	//     "$ref": "GoogleCloudApigeeV1TargetServer"
36554	//   },
36555	//   "scopes": [
36556	//     "https://www.googleapis.com/auth/cloud-platform"
36557	//   ]
36558	// }
36559
36560}
36561
36562// method id "apigee.organizations.environments.targetservers.get":
36563
36564type OrganizationsEnvironmentsTargetserversGetCall struct {
36565	s            *Service
36566	name         string
36567	urlParams_   gensupport.URLParams
36568	ifNoneMatch_ string
36569	ctx_         context.Context
36570	header_      http.Header
36571}
36572
36573// Get: Gets a TargetServer resource.
36574//
36575// - name: The name of the TargetServer to get. Must be of the form
36576//   `organizations/{org}/environments/{env}/targetservers/{target_server
36577//   _id}`.
36578func (r *OrganizationsEnvironmentsTargetserversService) Get(name string) *OrganizationsEnvironmentsTargetserversGetCall {
36579	c := &OrganizationsEnvironmentsTargetserversGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36580	c.name = name
36581	return c
36582}
36583
36584// Fields allows partial responses to be retrieved. See
36585// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
36586// for more information.
36587func (c *OrganizationsEnvironmentsTargetserversGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTargetserversGetCall {
36588	c.urlParams_.Set("fields", googleapi.CombineFields(s))
36589	return c
36590}
36591
36592// IfNoneMatch sets the optional parameter which makes the operation
36593// fail if the object's ETag matches the given value. This is useful for
36594// getting updates only after the object has changed since the last
36595// request. Use googleapi.IsNotModified to check whether the response
36596// error from Do is the result of In-None-Match.
36597func (c *OrganizationsEnvironmentsTargetserversGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsTargetserversGetCall {
36598	c.ifNoneMatch_ = entityTag
36599	return c
36600}
36601
36602// Context sets the context to be used in this call's Do method. Any
36603// pending HTTP request will be aborted if the provided context is
36604// canceled.
36605func (c *OrganizationsEnvironmentsTargetserversGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsTargetserversGetCall {
36606	c.ctx_ = ctx
36607	return c
36608}
36609
36610// Header returns an http.Header that can be modified by the caller to
36611// add HTTP headers to the request.
36612func (c *OrganizationsEnvironmentsTargetserversGetCall) Header() http.Header {
36613	if c.header_ == nil {
36614		c.header_ = make(http.Header)
36615	}
36616	return c.header_
36617}
36618
36619func (c *OrganizationsEnvironmentsTargetserversGetCall) doRequest(alt string) (*http.Response, error) {
36620	reqHeaders := make(http.Header)
36621	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
36622	for k, v := range c.header_ {
36623		reqHeaders[k] = v
36624	}
36625	reqHeaders.Set("User-Agent", c.s.userAgent())
36626	if c.ifNoneMatch_ != "" {
36627		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
36628	}
36629	var body io.Reader = nil
36630	c.urlParams_.Set("alt", alt)
36631	c.urlParams_.Set("prettyPrint", "false")
36632	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
36633	urls += "?" + c.urlParams_.Encode()
36634	req, err := http.NewRequest("GET", urls, body)
36635	if err != nil {
36636		return nil, err
36637	}
36638	req.Header = reqHeaders
36639	googleapi.Expand(req.URL, map[string]string{
36640		"name": c.name,
36641	})
36642	return gensupport.SendRequest(c.ctx_, c.s.client, req)
36643}
36644
36645// Do executes the "apigee.organizations.environments.targetservers.get" call.
36646// Exactly one of *GoogleCloudApigeeV1TargetServer or error will be
36647// non-nil. Any non-2xx status code is an error. Response headers are in
36648// either *GoogleCloudApigeeV1TargetServer.ServerResponse.Header or (if
36649// a response was returned at all) in error.(*googleapi.Error).Header.
36650// Use googleapi.IsNotModified to check whether the returned error was
36651// because http.StatusNotModified was returned.
36652func (c *OrganizationsEnvironmentsTargetserversGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TargetServer, error) {
36653	gensupport.SetOptions(c.urlParams_, opts...)
36654	res, err := c.doRequest("json")
36655	if res != nil && res.StatusCode == http.StatusNotModified {
36656		if res.Body != nil {
36657			res.Body.Close()
36658		}
36659		return nil, &googleapi.Error{
36660			Code:   res.StatusCode,
36661			Header: res.Header,
36662		}
36663	}
36664	if err != nil {
36665		return nil, err
36666	}
36667	defer googleapi.CloseBody(res)
36668	if err := googleapi.CheckResponse(res); err != nil {
36669		return nil, err
36670	}
36671	ret := &GoogleCloudApigeeV1TargetServer{
36672		ServerResponse: googleapi.ServerResponse{
36673			Header:         res.Header,
36674			HTTPStatusCode: res.StatusCode,
36675		},
36676	}
36677	target := &ret
36678	if err := gensupport.DecodeResponse(target, res); err != nil {
36679		return nil, err
36680	}
36681	return ret, nil
36682	// {
36683	//   "description": "Gets a TargetServer resource.",
36684	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/targetservers/{targetserversId}",
36685	//   "httpMethod": "GET",
36686	//   "id": "apigee.organizations.environments.targetservers.get",
36687	//   "parameterOrder": [
36688	//     "name"
36689	//   ],
36690	//   "parameters": {
36691	//     "name": {
36692	//       "description": "Required. The name of the TargetServer to get. Must be of the form `organizations/{org}/environments/{env}/targetservers/{target_server_id}`.",
36693	//       "location": "path",
36694	//       "pattern": "^organizations/[^/]+/environments/[^/]+/targetservers/[^/]+$",
36695	//       "required": true,
36696	//       "type": "string"
36697	//     }
36698	//   },
36699	//   "path": "v1/{+name}",
36700	//   "response": {
36701	//     "$ref": "GoogleCloudApigeeV1TargetServer"
36702	//   },
36703	//   "scopes": [
36704	//     "https://www.googleapis.com/auth/cloud-platform"
36705	//   ]
36706	// }
36707
36708}
36709
36710// method id "apigee.organizations.environments.targetservers.update":
36711
36712type OrganizationsEnvironmentsTargetserversUpdateCall struct {
36713	s                               *Service
36714	name                            string
36715	googlecloudapigeev1targetserver *GoogleCloudApigeeV1TargetServer
36716	urlParams_                      gensupport.URLParams
36717	ctx_                            context.Context
36718	header_                         http.Header
36719}
36720
36721// Update: Updates an existing TargetServer. Note that this operation
36722// has PUT semantics; it will replace the entirety of the existing
36723// TargetServer with the resource in the request body.
36724//
36725// - name: The name of the TargetServer to replace. Must be of the form
36726//   `organizations/{org}/environments/{env}/targetservers/{target_server
36727//   _id}`.
36728func (r *OrganizationsEnvironmentsTargetserversService) Update(name string, googlecloudapigeev1targetserver *GoogleCloudApigeeV1TargetServer) *OrganizationsEnvironmentsTargetserversUpdateCall {
36729	c := &OrganizationsEnvironmentsTargetserversUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36730	c.name = name
36731	c.googlecloudapigeev1targetserver = googlecloudapigeev1targetserver
36732	return c
36733}
36734
36735// Fields allows partial responses to be retrieved. See
36736// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
36737// for more information.
36738func (c *OrganizationsEnvironmentsTargetserversUpdateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTargetserversUpdateCall {
36739	c.urlParams_.Set("fields", googleapi.CombineFields(s))
36740	return c
36741}
36742
36743// Context sets the context to be used in this call's Do method. Any
36744// pending HTTP request will be aborted if the provided context is
36745// canceled.
36746func (c *OrganizationsEnvironmentsTargetserversUpdateCall) Context(ctx context.Context) *OrganizationsEnvironmentsTargetserversUpdateCall {
36747	c.ctx_ = ctx
36748	return c
36749}
36750
36751// Header returns an http.Header that can be modified by the caller to
36752// add HTTP headers to the request.
36753func (c *OrganizationsEnvironmentsTargetserversUpdateCall) Header() http.Header {
36754	if c.header_ == nil {
36755		c.header_ = make(http.Header)
36756	}
36757	return c.header_
36758}
36759
36760func (c *OrganizationsEnvironmentsTargetserversUpdateCall) doRequest(alt string) (*http.Response, error) {
36761	reqHeaders := make(http.Header)
36762	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
36763	for k, v := range c.header_ {
36764		reqHeaders[k] = v
36765	}
36766	reqHeaders.Set("User-Agent", c.s.userAgent())
36767	var body io.Reader = nil
36768	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1targetserver)
36769	if err != nil {
36770		return nil, err
36771	}
36772	reqHeaders.Set("Content-Type", "application/json")
36773	c.urlParams_.Set("alt", alt)
36774	c.urlParams_.Set("prettyPrint", "false")
36775	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
36776	urls += "?" + c.urlParams_.Encode()
36777	req, err := http.NewRequest("PUT", urls, body)
36778	if err != nil {
36779		return nil, err
36780	}
36781	req.Header = reqHeaders
36782	googleapi.Expand(req.URL, map[string]string{
36783		"name": c.name,
36784	})
36785	return gensupport.SendRequest(c.ctx_, c.s.client, req)
36786}
36787
36788// Do executes the "apigee.organizations.environments.targetservers.update" call.
36789// Exactly one of *GoogleCloudApigeeV1TargetServer or error will be
36790// non-nil. Any non-2xx status code is an error. Response headers are in
36791// either *GoogleCloudApigeeV1TargetServer.ServerResponse.Header or (if
36792// a response was returned at all) in error.(*googleapi.Error).Header.
36793// Use googleapi.IsNotModified to check whether the returned error was
36794// because http.StatusNotModified was returned.
36795func (c *OrganizationsEnvironmentsTargetserversUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TargetServer, error) {
36796	gensupport.SetOptions(c.urlParams_, opts...)
36797	res, err := c.doRequest("json")
36798	if res != nil && res.StatusCode == http.StatusNotModified {
36799		if res.Body != nil {
36800			res.Body.Close()
36801		}
36802		return nil, &googleapi.Error{
36803			Code:   res.StatusCode,
36804			Header: res.Header,
36805		}
36806	}
36807	if err != nil {
36808		return nil, err
36809	}
36810	defer googleapi.CloseBody(res)
36811	if err := googleapi.CheckResponse(res); err != nil {
36812		return nil, err
36813	}
36814	ret := &GoogleCloudApigeeV1TargetServer{
36815		ServerResponse: googleapi.ServerResponse{
36816			Header:         res.Header,
36817			HTTPStatusCode: res.StatusCode,
36818		},
36819	}
36820	target := &ret
36821	if err := gensupport.DecodeResponse(target, res); err != nil {
36822		return nil, err
36823	}
36824	return ret, nil
36825	// {
36826	//   "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.",
36827	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/targetservers/{targetserversId}",
36828	//   "httpMethod": "PUT",
36829	//   "id": "apigee.organizations.environments.targetservers.update",
36830	//   "parameterOrder": [
36831	//     "name"
36832	//   ],
36833	//   "parameters": {
36834	//     "name": {
36835	//       "description": "Required. The name of the TargetServer to replace. Must be of the form `organizations/{org}/environments/{env}/targetservers/{target_server_id}`.",
36836	//       "location": "path",
36837	//       "pattern": "^organizations/[^/]+/environments/[^/]+/targetservers/[^/]+$",
36838	//       "required": true,
36839	//       "type": "string"
36840	//     }
36841	//   },
36842	//   "path": "v1/{+name}",
36843	//   "request": {
36844	//     "$ref": "GoogleCloudApigeeV1TargetServer"
36845	//   },
36846	//   "response": {
36847	//     "$ref": "GoogleCloudApigeeV1TargetServer"
36848	//   },
36849	//   "scopes": [
36850	//     "https://www.googleapis.com/auth/cloud-platform"
36851	//   ]
36852	// }
36853
36854}
36855
36856// method id "apigee.organizations.environments.traceConfig.overrides.create":
36857
36858type OrganizationsEnvironmentsTraceConfigOverridesCreateCall struct {
36859	s                                      *Service
36860	parent                                 string
36861	googlecloudapigeev1traceconfigoverride *GoogleCloudApigeeV1TraceConfigOverride
36862	urlParams_                             gensupport.URLParams
36863	ctx_                                   context.Context
36864	header_                                http.Header
36865}
36866
36867// Create: Creates a trace configuration override. The response contains
36868// a system-generated UUID, that can be used to view, update, or delete
36869// the configuration override. Use the List API to view the existing
36870// trace configuration overrides.
36871//
36872// - parent: Parent resource of the trace configuration override. Use
36873//   the following structure in your request.
36874//   "organizations/*/environments/*/traceConfig".
36875func (r *OrganizationsEnvironmentsTraceConfigOverridesService) Create(parent string, googlecloudapigeev1traceconfigoverride *GoogleCloudApigeeV1TraceConfigOverride) *OrganizationsEnvironmentsTraceConfigOverridesCreateCall {
36876	c := &OrganizationsEnvironmentsTraceConfigOverridesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36877	c.parent = parent
36878	c.googlecloudapigeev1traceconfigoverride = googlecloudapigeev1traceconfigoverride
36879	return c
36880}
36881
36882// Fields allows partial responses to be retrieved. See
36883// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
36884// for more information.
36885func (c *OrganizationsEnvironmentsTraceConfigOverridesCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTraceConfigOverridesCreateCall {
36886	c.urlParams_.Set("fields", googleapi.CombineFields(s))
36887	return c
36888}
36889
36890// Context sets the context to be used in this call's Do method. Any
36891// pending HTTP request will be aborted if the provided context is
36892// canceled.
36893func (c *OrganizationsEnvironmentsTraceConfigOverridesCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsTraceConfigOverridesCreateCall {
36894	c.ctx_ = ctx
36895	return c
36896}
36897
36898// Header returns an http.Header that can be modified by the caller to
36899// add HTTP headers to the request.
36900func (c *OrganizationsEnvironmentsTraceConfigOverridesCreateCall) Header() http.Header {
36901	if c.header_ == nil {
36902		c.header_ = make(http.Header)
36903	}
36904	return c.header_
36905}
36906
36907func (c *OrganizationsEnvironmentsTraceConfigOverridesCreateCall) doRequest(alt string) (*http.Response, error) {
36908	reqHeaders := make(http.Header)
36909	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
36910	for k, v := range c.header_ {
36911		reqHeaders[k] = v
36912	}
36913	reqHeaders.Set("User-Agent", c.s.userAgent())
36914	var body io.Reader = nil
36915	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1traceconfigoverride)
36916	if err != nil {
36917		return nil, err
36918	}
36919	reqHeaders.Set("Content-Type", "application/json")
36920	c.urlParams_.Set("alt", alt)
36921	c.urlParams_.Set("prettyPrint", "false")
36922	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/overrides")
36923	urls += "?" + c.urlParams_.Encode()
36924	req, err := http.NewRequest("POST", urls, body)
36925	if err != nil {
36926		return nil, err
36927	}
36928	req.Header = reqHeaders
36929	googleapi.Expand(req.URL, map[string]string{
36930		"parent": c.parent,
36931	})
36932	return gensupport.SendRequest(c.ctx_, c.s.client, req)
36933}
36934
36935// Do executes the "apigee.organizations.environments.traceConfig.overrides.create" call.
36936// Exactly one of *GoogleCloudApigeeV1TraceConfigOverride or error will
36937// be non-nil. Any non-2xx status code is an error. Response headers are
36938// in either
36939// *GoogleCloudApigeeV1TraceConfigOverride.ServerResponse.Header or (if
36940// a response was returned at all) in error.(*googleapi.Error).Header.
36941// Use googleapi.IsNotModified to check whether the returned error was
36942// because http.StatusNotModified was returned.
36943func (c *OrganizationsEnvironmentsTraceConfigOverridesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TraceConfigOverride, error) {
36944	gensupport.SetOptions(c.urlParams_, opts...)
36945	res, err := c.doRequest("json")
36946	if res != nil && res.StatusCode == http.StatusNotModified {
36947		if res.Body != nil {
36948			res.Body.Close()
36949		}
36950		return nil, &googleapi.Error{
36951			Code:   res.StatusCode,
36952			Header: res.Header,
36953		}
36954	}
36955	if err != nil {
36956		return nil, err
36957	}
36958	defer googleapi.CloseBody(res)
36959	if err := googleapi.CheckResponse(res); err != nil {
36960		return nil, err
36961	}
36962	ret := &GoogleCloudApigeeV1TraceConfigOverride{
36963		ServerResponse: googleapi.ServerResponse{
36964			Header:         res.Header,
36965			HTTPStatusCode: res.StatusCode,
36966		},
36967	}
36968	target := &ret
36969	if err := gensupport.DecodeResponse(target, res); err != nil {
36970		return nil, err
36971	}
36972	return ret, nil
36973	// {
36974	//   "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.",
36975	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/traceConfig/overrides",
36976	//   "httpMethod": "POST",
36977	//   "id": "apigee.organizations.environments.traceConfig.overrides.create",
36978	//   "parameterOrder": [
36979	//     "parent"
36980	//   ],
36981	//   "parameters": {
36982	//     "parent": {
36983	//       "description": "Required. Parent resource of the trace configuration override. Use the following structure in your request. \"organizations/*/environments/*/traceConfig\".",
36984	//       "location": "path",
36985	//       "pattern": "^organizations/[^/]+/environments/[^/]+/traceConfig$",
36986	//       "required": true,
36987	//       "type": "string"
36988	//     }
36989	//   },
36990	//   "path": "v1/{+parent}/overrides",
36991	//   "request": {
36992	//     "$ref": "GoogleCloudApigeeV1TraceConfigOverride"
36993	//   },
36994	//   "response": {
36995	//     "$ref": "GoogleCloudApigeeV1TraceConfigOverride"
36996	//   },
36997	//   "scopes": [
36998	//     "https://www.googleapis.com/auth/cloud-platform"
36999	//   ]
37000	// }
37001
37002}
37003
37004// method id "apigee.organizations.environments.traceConfig.overrides.delete":
37005
37006type OrganizationsEnvironmentsTraceConfigOverridesDeleteCall struct {
37007	s          *Service
37008	name       string
37009	urlParams_ gensupport.URLParams
37010	ctx_       context.Context
37011	header_    http.Header
37012}
37013
37014// Delete: Deletes a distributed trace configuration override.
37015//
37016// - name: Name of the trace configuration override. Use the following
37017//   structure in your request:
37018//   "organizations/*/environments/*/traceConfig/overrides/*".
37019func (r *OrganizationsEnvironmentsTraceConfigOverridesService) Delete(name string) *OrganizationsEnvironmentsTraceConfigOverridesDeleteCall {
37020	c := &OrganizationsEnvironmentsTraceConfigOverridesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37021	c.name = name
37022	return c
37023}
37024
37025// Fields allows partial responses to be retrieved. See
37026// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
37027// for more information.
37028func (c *OrganizationsEnvironmentsTraceConfigOverridesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTraceConfigOverridesDeleteCall {
37029	c.urlParams_.Set("fields", googleapi.CombineFields(s))
37030	return c
37031}
37032
37033// Context sets the context to be used in this call's Do method. Any
37034// pending HTTP request will be aborted if the provided context is
37035// canceled.
37036func (c *OrganizationsEnvironmentsTraceConfigOverridesDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsTraceConfigOverridesDeleteCall {
37037	c.ctx_ = ctx
37038	return c
37039}
37040
37041// Header returns an http.Header that can be modified by the caller to
37042// add HTTP headers to the request.
37043func (c *OrganizationsEnvironmentsTraceConfigOverridesDeleteCall) Header() http.Header {
37044	if c.header_ == nil {
37045		c.header_ = make(http.Header)
37046	}
37047	return c.header_
37048}
37049
37050func (c *OrganizationsEnvironmentsTraceConfigOverridesDeleteCall) doRequest(alt string) (*http.Response, error) {
37051	reqHeaders := make(http.Header)
37052	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
37053	for k, v := range c.header_ {
37054		reqHeaders[k] = v
37055	}
37056	reqHeaders.Set("User-Agent", c.s.userAgent())
37057	var body io.Reader = nil
37058	c.urlParams_.Set("alt", alt)
37059	c.urlParams_.Set("prettyPrint", "false")
37060	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
37061	urls += "?" + c.urlParams_.Encode()
37062	req, err := http.NewRequest("DELETE", urls, body)
37063	if err != nil {
37064		return nil, err
37065	}
37066	req.Header = reqHeaders
37067	googleapi.Expand(req.URL, map[string]string{
37068		"name": c.name,
37069	})
37070	return gensupport.SendRequest(c.ctx_, c.s.client, req)
37071}
37072
37073// Do executes the "apigee.organizations.environments.traceConfig.overrides.delete" call.
37074// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
37075// non-2xx status code is an error. Response headers are in either
37076// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
37077// returned at all) in error.(*googleapi.Error).Header. Use
37078// googleapi.IsNotModified to check whether the returned error was
37079// because http.StatusNotModified was returned.
37080func (c *OrganizationsEnvironmentsTraceConfigOverridesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
37081	gensupport.SetOptions(c.urlParams_, opts...)
37082	res, err := c.doRequest("json")
37083	if res != nil && res.StatusCode == http.StatusNotModified {
37084		if res.Body != nil {
37085			res.Body.Close()
37086		}
37087		return nil, &googleapi.Error{
37088			Code:   res.StatusCode,
37089			Header: res.Header,
37090		}
37091	}
37092	if err != nil {
37093		return nil, err
37094	}
37095	defer googleapi.CloseBody(res)
37096	if err := googleapi.CheckResponse(res); err != nil {
37097		return nil, err
37098	}
37099	ret := &GoogleProtobufEmpty{
37100		ServerResponse: googleapi.ServerResponse{
37101			Header:         res.Header,
37102			HTTPStatusCode: res.StatusCode,
37103		},
37104	}
37105	target := &ret
37106	if err := gensupport.DecodeResponse(target, res); err != nil {
37107		return nil, err
37108	}
37109	return ret, nil
37110	// {
37111	//   "description": "Deletes a distributed trace configuration override.",
37112	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/traceConfig/overrides/{overridesId}",
37113	//   "httpMethod": "DELETE",
37114	//   "id": "apigee.organizations.environments.traceConfig.overrides.delete",
37115	//   "parameterOrder": [
37116	//     "name"
37117	//   ],
37118	//   "parameters": {
37119	//     "name": {
37120	//       "description": "Required. Name of the trace configuration override. Use the following structure in your request: \"organizations/*/environments/*/traceConfig/overrides/*\".",
37121	//       "location": "path",
37122	//       "pattern": "^organizations/[^/]+/environments/[^/]+/traceConfig/overrides/[^/]+$",
37123	//       "required": true,
37124	//       "type": "string"
37125	//     }
37126	//   },
37127	//   "path": "v1/{+name}",
37128	//   "response": {
37129	//     "$ref": "GoogleProtobufEmpty"
37130	//   },
37131	//   "scopes": [
37132	//     "https://www.googleapis.com/auth/cloud-platform"
37133	//   ]
37134	// }
37135
37136}
37137
37138// method id "apigee.organizations.environments.traceConfig.overrides.get":
37139
37140type OrganizationsEnvironmentsTraceConfigOverridesGetCall struct {
37141	s            *Service
37142	name         string
37143	urlParams_   gensupport.URLParams
37144	ifNoneMatch_ string
37145	ctx_         context.Context
37146	header_      http.Header
37147}
37148
37149// Get: Gets a trace configuration override.
37150//
37151// - name: Name of the trace configuration override. Use the following
37152//   structure in your request:
37153//   "organizations/*/environments/*/traceConfig/overrides/*".
37154func (r *OrganizationsEnvironmentsTraceConfigOverridesService) Get(name string) *OrganizationsEnvironmentsTraceConfigOverridesGetCall {
37155	c := &OrganizationsEnvironmentsTraceConfigOverridesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37156	c.name = name
37157	return c
37158}
37159
37160// Fields allows partial responses to be retrieved. See
37161// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
37162// for more information.
37163func (c *OrganizationsEnvironmentsTraceConfigOverridesGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTraceConfigOverridesGetCall {
37164	c.urlParams_.Set("fields", googleapi.CombineFields(s))
37165	return c
37166}
37167
37168// IfNoneMatch sets the optional parameter which makes the operation
37169// fail if the object's ETag matches the given value. This is useful for
37170// getting updates only after the object has changed since the last
37171// request. Use googleapi.IsNotModified to check whether the response
37172// error from Do is the result of In-None-Match.
37173func (c *OrganizationsEnvironmentsTraceConfigOverridesGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsTraceConfigOverridesGetCall {
37174	c.ifNoneMatch_ = entityTag
37175	return c
37176}
37177
37178// Context sets the context to be used in this call's Do method. Any
37179// pending HTTP request will be aborted if the provided context is
37180// canceled.
37181func (c *OrganizationsEnvironmentsTraceConfigOverridesGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsTraceConfigOverridesGetCall {
37182	c.ctx_ = ctx
37183	return c
37184}
37185
37186// Header returns an http.Header that can be modified by the caller to
37187// add HTTP headers to the request.
37188func (c *OrganizationsEnvironmentsTraceConfigOverridesGetCall) Header() http.Header {
37189	if c.header_ == nil {
37190		c.header_ = make(http.Header)
37191	}
37192	return c.header_
37193}
37194
37195func (c *OrganizationsEnvironmentsTraceConfigOverridesGetCall) doRequest(alt string) (*http.Response, error) {
37196	reqHeaders := make(http.Header)
37197	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
37198	for k, v := range c.header_ {
37199		reqHeaders[k] = v
37200	}
37201	reqHeaders.Set("User-Agent", c.s.userAgent())
37202	if c.ifNoneMatch_ != "" {
37203		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
37204	}
37205	var body io.Reader = nil
37206	c.urlParams_.Set("alt", alt)
37207	c.urlParams_.Set("prettyPrint", "false")
37208	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
37209	urls += "?" + c.urlParams_.Encode()
37210	req, err := http.NewRequest("GET", urls, body)
37211	if err != nil {
37212		return nil, err
37213	}
37214	req.Header = reqHeaders
37215	googleapi.Expand(req.URL, map[string]string{
37216		"name": c.name,
37217	})
37218	return gensupport.SendRequest(c.ctx_, c.s.client, req)
37219}
37220
37221// Do executes the "apigee.organizations.environments.traceConfig.overrides.get" call.
37222// Exactly one of *GoogleCloudApigeeV1TraceConfigOverride or error will
37223// be non-nil. Any non-2xx status code is an error. Response headers are
37224// in either
37225// *GoogleCloudApigeeV1TraceConfigOverride.ServerResponse.Header or (if
37226// a response was returned at all) in error.(*googleapi.Error).Header.
37227// Use googleapi.IsNotModified to check whether the returned error was
37228// because http.StatusNotModified was returned.
37229func (c *OrganizationsEnvironmentsTraceConfigOverridesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TraceConfigOverride, error) {
37230	gensupport.SetOptions(c.urlParams_, opts...)
37231	res, err := c.doRequest("json")
37232	if res != nil && res.StatusCode == http.StatusNotModified {
37233		if res.Body != nil {
37234			res.Body.Close()
37235		}
37236		return nil, &googleapi.Error{
37237			Code:   res.StatusCode,
37238			Header: res.Header,
37239		}
37240	}
37241	if err != nil {
37242		return nil, err
37243	}
37244	defer googleapi.CloseBody(res)
37245	if err := googleapi.CheckResponse(res); err != nil {
37246		return nil, err
37247	}
37248	ret := &GoogleCloudApigeeV1TraceConfigOverride{
37249		ServerResponse: googleapi.ServerResponse{
37250			Header:         res.Header,
37251			HTTPStatusCode: res.StatusCode,
37252		},
37253	}
37254	target := &ret
37255	if err := gensupport.DecodeResponse(target, res); err != nil {
37256		return nil, err
37257	}
37258	return ret, nil
37259	// {
37260	//   "description": "Gets a trace configuration override.",
37261	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/traceConfig/overrides/{overridesId}",
37262	//   "httpMethod": "GET",
37263	//   "id": "apigee.organizations.environments.traceConfig.overrides.get",
37264	//   "parameterOrder": [
37265	//     "name"
37266	//   ],
37267	//   "parameters": {
37268	//     "name": {
37269	//       "description": "Required. Name of the trace configuration override. Use the following structure in your request: \"organizations/*/environments/*/traceConfig/overrides/*\".",
37270	//       "location": "path",
37271	//       "pattern": "^organizations/[^/]+/environments/[^/]+/traceConfig/overrides/[^/]+$",
37272	//       "required": true,
37273	//       "type": "string"
37274	//     }
37275	//   },
37276	//   "path": "v1/{+name}",
37277	//   "response": {
37278	//     "$ref": "GoogleCloudApigeeV1TraceConfigOverride"
37279	//   },
37280	//   "scopes": [
37281	//     "https://www.googleapis.com/auth/cloud-platform"
37282	//   ]
37283	// }
37284
37285}
37286
37287// method id "apigee.organizations.environments.traceConfig.overrides.list":
37288
37289type OrganizationsEnvironmentsTraceConfigOverridesListCall struct {
37290	s            *Service
37291	parent       string
37292	urlParams_   gensupport.URLParams
37293	ifNoneMatch_ string
37294	ctx_         context.Context
37295	header_      http.Header
37296}
37297
37298// List: Lists all of the distributed trace configuration overrides in
37299// an environment.
37300//
37301// - parent: Parent resource of the trace configuration override. Use
37302//   the following structure in your request:
37303//   "organizations/*/environments/*/traceConfig".
37304func (r *OrganizationsEnvironmentsTraceConfigOverridesService) List(parent string) *OrganizationsEnvironmentsTraceConfigOverridesListCall {
37305	c := &OrganizationsEnvironmentsTraceConfigOverridesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37306	c.parent = parent
37307	return c
37308}
37309
37310// PageSize sets the optional parameter "pageSize": Maximum number of
37311// trace configuration overrides to return. If not specified, the
37312// maximum number returned is 25. The maximum number cannot exceed 100.
37313func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) PageSize(pageSize int64) *OrganizationsEnvironmentsTraceConfigOverridesListCall {
37314	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
37315	return c
37316}
37317
37318// PageToken sets the optional parameter "pageToken": A page token,
37319// returned from a previous `ListTraceConfigOverrides` call. Token value
37320// that can be used to retrieve the subsequent page. When paginating,
37321// all other parameters provided to `ListTraceConfigOverrides` must
37322// match those specified in the call to obtain the page token.
37323func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) PageToken(pageToken string) *OrganizationsEnvironmentsTraceConfigOverridesListCall {
37324	c.urlParams_.Set("pageToken", pageToken)
37325	return c
37326}
37327
37328// Fields allows partial responses to be retrieved. See
37329// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
37330// for more information.
37331func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTraceConfigOverridesListCall {
37332	c.urlParams_.Set("fields", googleapi.CombineFields(s))
37333	return c
37334}
37335
37336// IfNoneMatch sets the optional parameter which makes the operation
37337// fail if the object's ETag matches the given value. This is useful for
37338// getting updates only after the object has changed since the last
37339// request. Use googleapi.IsNotModified to check whether the response
37340// error from Do is the result of In-None-Match.
37341func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsTraceConfigOverridesListCall {
37342	c.ifNoneMatch_ = entityTag
37343	return c
37344}
37345
37346// Context sets the context to be used in this call's Do method. Any
37347// pending HTTP request will be aborted if the provided context is
37348// canceled.
37349func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) Context(ctx context.Context) *OrganizationsEnvironmentsTraceConfigOverridesListCall {
37350	c.ctx_ = ctx
37351	return c
37352}
37353
37354// Header returns an http.Header that can be modified by the caller to
37355// add HTTP headers to the request.
37356func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) Header() http.Header {
37357	if c.header_ == nil {
37358		c.header_ = make(http.Header)
37359	}
37360	return c.header_
37361}
37362
37363func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) doRequest(alt string) (*http.Response, error) {
37364	reqHeaders := make(http.Header)
37365	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
37366	for k, v := range c.header_ {
37367		reqHeaders[k] = v
37368	}
37369	reqHeaders.Set("User-Agent", c.s.userAgent())
37370	if c.ifNoneMatch_ != "" {
37371		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
37372	}
37373	var body io.Reader = nil
37374	c.urlParams_.Set("alt", alt)
37375	c.urlParams_.Set("prettyPrint", "false")
37376	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/overrides")
37377	urls += "?" + c.urlParams_.Encode()
37378	req, err := http.NewRequest("GET", urls, body)
37379	if err != nil {
37380		return nil, err
37381	}
37382	req.Header = reqHeaders
37383	googleapi.Expand(req.URL, map[string]string{
37384		"parent": c.parent,
37385	})
37386	return gensupport.SendRequest(c.ctx_, c.s.client, req)
37387}
37388
37389// Do executes the "apigee.organizations.environments.traceConfig.overrides.list" call.
37390// Exactly one of *GoogleCloudApigeeV1ListTraceConfigOverridesResponse
37391// or error will be non-nil. Any non-2xx status code is an error.
37392// Response headers are in either
37393// *GoogleCloudApigeeV1ListTraceConfigOverridesResponse.ServerResponse.He
37394// ader or (if a response was returned at all) in
37395// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
37396// whether the returned error was because http.StatusNotModified was
37397// returned.
37398func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListTraceConfigOverridesResponse, error) {
37399	gensupport.SetOptions(c.urlParams_, opts...)
37400	res, err := c.doRequest("json")
37401	if res != nil && res.StatusCode == http.StatusNotModified {
37402		if res.Body != nil {
37403			res.Body.Close()
37404		}
37405		return nil, &googleapi.Error{
37406			Code:   res.StatusCode,
37407			Header: res.Header,
37408		}
37409	}
37410	if err != nil {
37411		return nil, err
37412	}
37413	defer googleapi.CloseBody(res)
37414	if err := googleapi.CheckResponse(res); err != nil {
37415		return nil, err
37416	}
37417	ret := &GoogleCloudApigeeV1ListTraceConfigOverridesResponse{
37418		ServerResponse: googleapi.ServerResponse{
37419			Header:         res.Header,
37420			HTTPStatusCode: res.StatusCode,
37421		},
37422	}
37423	target := &ret
37424	if err := gensupport.DecodeResponse(target, res); err != nil {
37425		return nil, err
37426	}
37427	return ret, nil
37428	// {
37429	//   "description": "Lists all of the distributed trace configuration overrides in an environment.",
37430	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/traceConfig/overrides",
37431	//   "httpMethod": "GET",
37432	//   "id": "apigee.organizations.environments.traceConfig.overrides.list",
37433	//   "parameterOrder": [
37434	//     "parent"
37435	//   ],
37436	//   "parameters": {
37437	//     "pageSize": {
37438	//       "description": "Maximum number of trace configuration overrides to return. If not specified, the maximum number returned is 25. The maximum number cannot exceed 100.",
37439	//       "format": "int32",
37440	//       "location": "query",
37441	//       "type": "integer"
37442	//     },
37443	//     "pageToken": {
37444	//       "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.",
37445	//       "location": "query",
37446	//       "type": "string"
37447	//     },
37448	//     "parent": {
37449	//       "description": "Required. Parent resource of the trace configuration override. Use the following structure in your request: \"organizations/*/environments/*/traceConfig\".",
37450	//       "location": "path",
37451	//       "pattern": "^organizations/[^/]+/environments/[^/]+/traceConfig$",
37452	//       "required": true,
37453	//       "type": "string"
37454	//     }
37455	//   },
37456	//   "path": "v1/{+parent}/overrides",
37457	//   "response": {
37458	//     "$ref": "GoogleCloudApigeeV1ListTraceConfigOverridesResponse"
37459	//   },
37460	//   "scopes": [
37461	//     "https://www.googleapis.com/auth/cloud-platform"
37462	//   ]
37463	// }
37464
37465}
37466
37467// Pages invokes f for each page of results.
37468// A non-nil error returned from f will halt the iteration.
37469// The provided context supersedes any context provided to the Context method.
37470func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListTraceConfigOverridesResponse) error) error {
37471	c.ctx_ = ctx
37472	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
37473	for {
37474		x, err := c.Do()
37475		if err != nil {
37476			return err
37477		}
37478		if err := f(x); err != nil {
37479			return err
37480		}
37481		if x.NextPageToken == "" {
37482			return nil
37483		}
37484		c.PageToken(x.NextPageToken)
37485	}
37486}
37487
37488// method id "apigee.organizations.environments.traceConfig.overrides.patch":
37489
37490type OrganizationsEnvironmentsTraceConfigOverridesPatchCall struct {
37491	s                                      *Service
37492	name                                   string
37493	googlecloudapigeev1traceconfigoverride *GoogleCloudApigeeV1TraceConfigOverride
37494	urlParams_                             gensupport.URLParams
37495	ctx_                                   context.Context
37496	header_                                http.Header
37497}
37498
37499// Patch: Updates a distributed trace configuration override. Note that
37500// the repeated fields have replace semantics when included in the field
37501// mask and that they will be overwritten by the value of the fields in
37502// the request body.
37503//
37504// - name: Name of the trace configuration override. Use the following
37505//   structure in your request:
37506//   "organizations/*/environments/*/traceConfig/overrides/*".
37507func (r *OrganizationsEnvironmentsTraceConfigOverridesService) Patch(name string, googlecloudapigeev1traceconfigoverride *GoogleCloudApigeeV1TraceConfigOverride) *OrganizationsEnvironmentsTraceConfigOverridesPatchCall {
37508	c := &OrganizationsEnvironmentsTraceConfigOverridesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37509	c.name = name
37510	c.googlecloudapigeev1traceconfigoverride = googlecloudapigeev1traceconfigoverride
37511	return c
37512}
37513
37514// UpdateMask sets the optional parameter "updateMask": List of fields
37515// to be updated.
37516func (c *OrganizationsEnvironmentsTraceConfigOverridesPatchCall) UpdateMask(updateMask string) *OrganizationsEnvironmentsTraceConfigOverridesPatchCall {
37517	c.urlParams_.Set("updateMask", updateMask)
37518	return c
37519}
37520
37521// Fields allows partial responses to be retrieved. See
37522// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
37523// for more information.
37524func (c *OrganizationsEnvironmentsTraceConfigOverridesPatchCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTraceConfigOverridesPatchCall {
37525	c.urlParams_.Set("fields", googleapi.CombineFields(s))
37526	return c
37527}
37528
37529// Context sets the context to be used in this call's Do method. Any
37530// pending HTTP request will be aborted if the provided context is
37531// canceled.
37532func (c *OrganizationsEnvironmentsTraceConfigOverridesPatchCall) Context(ctx context.Context) *OrganizationsEnvironmentsTraceConfigOverridesPatchCall {
37533	c.ctx_ = ctx
37534	return c
37535}
37536
37537// Header returns an http.Header that can be modified by the caller to
37538// add HTTP headers to the request.
37539func (c *OrganizationsEnvironmentsTraceConfigOverridesPatchCall) Header() http.Header {
37540	if c.header_ == nil {
37541		c.header_ = make(http.Header)
37542	}
37543	return c.header_
37544}
37545
37546func (c *OrganizationsEnvironmentsTraceConfigOverridesPatchCall) doRequest(alt string) (*http.Response, error) {
37547	reqHeaders := make(http.Header)
37548	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
37549	for k, v := range c.header_ {
37550		reqHeaders[k] = v
37551	}
37552	reqHeaders.Set("User-Agent", c.s.userAgent())
37553	var body io.Reader = nil
37554	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1traceconfigoverride)
37555	if err != nil {
37556		return nil, err
37557	}
37558	reqHeaders.Set("Content-Type", "application/json")
37559	c.urlParams_.Set("alt", alt)
37560	c.urlParams_.Set("prettyPrint", "false")
37561	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
37562	urls += "?" + c.urlParams_.Encode()
37563	req, err := http.NewRequest("PATCH", urls, body)
37564	if err != nil {
37565		return nil, err
37566	}
37567	req.Header = reqHeaders
37568	googleapi.Expand(req.URL, map[string]string{
37569		"name": c.name,
37570	})
37571	return gensupport.SendRequest(c.ctx_, c.s.client, req)
37572}
37573
37574// Do executes the "apigee.organizations.environments.traceConfig.overrides.patch" call.
37575// Exactly one of *GoogleCloudApigeeV1TraceConfigOverride or error will
37576// be non-nil. Any non-2xx status code is an error. Response headers are
37577// in either
37578// *GoogleCloudApigeeV1TraceConfigOverride.ServerResponse.Header or (if
37579// a response was returned at all) in error.(*googleapi.Error).Header.
37580// Use googleapi.IsNotModified to check whether the returned error was
37581// because http.StatusNotModified was returned.
37582func (c *OrganizationsEnvironmentsTraceConfigOverridesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TraceConfigOverride, error) {
37583	gensupport.SetOptions(c.urlParams_, opts...)
37584	res, err := c.doRequest("json")
37585	if res != nil && res.StatusCode == http.StatusNotModified {
37586		if res.Body != nil {
37587			res.Body.Close()
37588		}
37589		return nil, &googleapi.Error{
37590			Code:   res.StatusCode,
37591			Header: res.Header,
37592		}
37593	}
37594	if err != nil {
37595		return nil, err
37596	}
37597	defer googleapi.CloseBody(res)
37598	if err := googleapi.CheckResponse(res); err != nil {
37599		return nil, err
37600	}
37601	ret := &GoogleCloudApigeeV1TraceConfigOverride{
37602		ServerResponse: googleapi.ServerResponse{
37603			Header:         res.Header,
37604			HTTPStatusCode: res.StatusCode,
37605		},
37606	}
37607	target := &ret
37608	if err := gensupport.DecodeResponse(target, res); err != nil {
37609		return nil, err
37610	}
37611	return ret, nil
37612	// {
37613	//   "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.",
37614	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/traceConfig/overrides/{overridesId}",
37615	//   "httpMethod": "PATCH",
37616	//   "id": "apigee.organizations.environments.traceConfig.overrides.patch",
37617	//   "parameterOrder": [
37618	//     "name"
37619	//   ],
37620	//   "parameters": {
37621	//     "name": {
37622	//       "description": "Required. Name of the trace configuration override. Use the following structure in your request: \"organizations/*/environments/*/traceConfig/overrides/*\".",
37623	//       "location": "path",
37624	//       "pattern": "^organizations/[^/]+/environments/[^/]+/traceConfig/overrides/[^/]+$",
37625	//       "required": true,
37626	//       "type": "string"
37627	//     },
37628	//     "updateMask": {
37629	//       "description": "List of fields to be updated.",
37630	//       "format": "google-fieldmask",
37631	//       "location": "query",
37632	//       "type": "string"
37633	//     }
37634	//   },
37635	//   "path": "v1/{+name}",
37636	//   "request": {
37637	//     "$ref": "GoogleCloudApigeeV1TraceConfigOverride"
37638	//   },
37639	//   "response": {
37640	//     "$ref": "GoogleCloudApigeeV1TraceConfigOverride"
37641	//   },
37642	//   "scopes": [
37643	//     "https://www.googleapis.com/auth/cloud-platform"
37644	//   ]
37645	// }
37646
37647}
37648
37649// method id "apigee.organizations.hostQueries.create":
37650
37651type OrganizationsHostQueriesCreateCall struct {
37652	s                        *Service
37653	parent                   string
37654	googlecloudapigeev1query *GoogleCloudApigeeV1Query
37655	urlParams_               gensupport.URLParams
37656	ctx_                     context.Context
37657	header_                  http.Header
37658}
37659
37660// Create: Submit a query at host level to be processed in the
37661// background. If the submission of the query succeeds, the API returns
37662// a 201 status and an ID that refer to the query. In addition to the
37663// HTTP status 201, the `state` of "enqueued" means that the request
37664// succeeded.
37665//
37666// - parent: The parent resource name. Must be of the form
37667//   `organizations/{org}`.
37668func (r *OrganizationsHostQueriesService) Create(parent string, googlecloudapigeev1query *GoogleCloudApigeeV1Query) *OrganizationsHostQueriesCreateCall {
37669	c := &OrganizationsHostQueriesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37670	c.parent = parent
37671	c.googlecloudapigeev1query = googlecloudapigeev1query
37672	return c
37673}
37674
37675// Fields allows partial responses to be retrieved. See
37676// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
37677// for more information.
37678func (c *OrganizationsHostQueriesCreateCall) Fields(s ...googleapi.Field) *OrganizationsHostQueriesCreateCall {
37679	c.urlParams_.Set("fields", googleapi.CombineFields(s))
37680	return c
37681}
37682
37683// Context sets the context to be used in this call's Do method. Any
37684// pending HTTP request will be aborted if the provided context is
37685// canceled.
37686func (c *OrganizationsHostQueriesCreateCall) Context(ctx context.Context) *OrganizationsHostQueriesCreateCall {
37687	c.ctx_ = ctx
37688	return c
37689}
37690
37691// Header returns an http.Header that can be modified by the caller to
37692// add HTTP headers to the request.
37693func (c *OrganizationsHostQueriesCreateCall) Header() http.Header {
37694	if c.header_ == nil {
37695		c.header_ = make(http.Header)
37696	}
37697	return c.header_
37698}
37699
37700func (c *OrganizationsHostQueriesCreateCall) doRequest(alt string) (*http.Response, error) {
37701	reqHeaders := make(http.Header)
37702	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
37703	for k, v := range c.header_ {
37704		reqHeaders[k] = v
37705	}
37706	reqHeaders.Set("User-Agent", c.s.userAgent())
37707	var body io.Reader = nil
37708	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1query)
37709	if err != nil {
37710		return nil, err
37711	}
37712	reqHeaders.Set("Content-Type", "application/json")
37713	c.urlParams_.Set("alt", alt)
37714	c.urlParams_.Set("prettyPrint", "false")
37715	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/hostQueries")
37716	urls += "?" + c.urlParams_.Encode()
37717	req, err := http.NewRequest("POST", urls, body)
37718	if err != nil {
37719		return nil, err
37720	}
37721	req.Header = reqHeaders
37722	googleapi.Expand(req.URL, map[string]string{
37723		"parent": c.parent,
37724	})
37725	return gensupport.SendRequest(c.ctx_, c.s.client, req)
37726}
37727
37728// Do executes the "apigee.organizations.hostQueries.create" call.
37729// Exactly one of *GoogleCloudApigeeV1AsyncQuery or error will be
37730// non-nil. Any non-2xx status code is an error. Response headers are in
37731// either *GoogleCloudApigeeV1AsyncQuery.ServerResponse.Header or (if a
37732// response was returned at all) in error.(*googleapi.Error).Header. Use
37733// googleapi.IsNotModified to check whether the returned error was
37734// because http.StatusNotModified was returned.
37735func (c *OrganizationsHostQueriesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AsyncQuery, error) {
37736	gensupport.SetOptions(c.urlParams_, opts...)
37737	res, err := c.doRequest("json")
37738	if res != nil && res.StatusCode == http.StatusNotModified {
37739		if res.Body != nil {
37740			res.Body.Close()
37741		}
37742		return nil, &googleapi.Error{
37743			Code:   res.StatusCode,
37744			Header: res.Header,
37745		}
37746	}
37747	if err != nil {
37748		return nil, err
37749	}
37750	defer googleapi.CloseBody(res)
37751	if err := googleapi.CheckResponse(res); err != nil {
37752		return nil, err
37753	}
37754	ret := &GoogleCloudApigeeV1AsyncQuery{
37755		ServerResponse: googleapi.ServerResponse{
37756			Header:         res.Header,
37757			HTTPStatusCode: res.StatusCode,
37758		},
37759	}
37760	target := &ret
37761	if err := gensupport.DecodeResponse(target, res); err != nil {
37762		return nil, err
37763	}
37764	return ret, nil
37765	// {
37766	//   "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.",
37767	//   "flatPath": "v1/organizations/{organizationsId}/hostQueries",
37768	//   "httpMethod": "POST",
37769	//   "id": "apigee.organizations.hostQueries.create",
37770	//   "parameterOrder": [
37771	//     "parent"
37772	//   ],
37773	//   "parameters": {
37774	//     "parent": {
37775	//       "description": "Required. The parent resource name. Must be of the form `organizations/{org}`.",
37776	//       "location": "path",
37777	//       "pattern": "^organizations/[^/]+$",
37778	//       "required": true,
37779	//       "type": "string"
37780	//     }
37781	//   },
37782	//   "path": "v1/{+parent}/hostQueries",
37783	//   "request": {
37784	//     "$ref": "GoogleCloudApigeeV1Query"
37785	//   },
37786	//   "response": {
37787	//     "$ref": "GoogleCloudApigeeV1AsyncQuery"
37788	//   },
37789	//   "scopes": [
37790	//     "https://www.googleapis.com/auth/cloud-platform"
37791	//   ]
37792	// }
37793
37794}
37795
37796// method id "apigee.organizations.hostQueries.get":
37797
37798type OrganizationsHostQueriesGetCall struct {
37799	s            *Service
37800	name         string
37801	urlParams_   gensupport.URLParams
37802	ifNoneMatch_ string
37803	ctx_         context.Context
37804	header_      http.Header
37805}
37806
37807// Get: Get status of a query submitted at host level. If the query is
37808// still in progress, the `state` is set to "running" After the query
37809// has completed successfully, `state` is set to "completed"
37810//
37811// - name: Name of the asynchronous query to get. Must be of the form
37812//   `organizations/{org}/queries/{queryId}`.
37813func (r *OrganizationsHostQueriesService) Get(name string) *OrganizationsHostQueriesGetCall {
37814	c := &OrganizationsHostQueriesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37815	c.name = name
37816	return c
37817}
37818
37819// Fields allows partial responses to be retrieved. See
37820// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
37821// for more information.
37822func (c *OrganizationsHostQueriesGetCall) Fields(s ...googleapi.Field) *OrganizationsHostQueriesGetCall {
37823	c.urlParams_.Set("fields", googleapi.CombineFields(s))
37824	return c
37825}
37826
37827// IfNoneMatch sets the optional parameter which makes the operation
37828// fail if the object's ETag matches the given value. This is useful for
37829// getting updates only after the object has changed since the last
37830// request. Use googleapi.IsNotModified to check whether the response
37831// error from Do is the result of In-None-Match.
37832func (c *OrganizationsHostQueriesGetCall) IfNoneMatch(entityTag string) *OrganizationsHostQueriesGetCall {
37833	c.ifNoneMatch_ = entityTag
37834	return c
37835}
37836
37837// Context sets the context to be used in this call's Do method. Any
37838// pending HTTP request will be aborted if the provided context is
37839// canceled.
37840func (c *OrganizationsHostQueriesGetCall) Context(ctx context.Context) *OrganizationsHostQueriesGetCall {
37841	c.ctx_ = ctx
37842	return c
37843}
37844
37845// Header returns an http.Header that can be modified by the caller to
37846// add HTTP headers to the request.
37847func (c *OrganizationsHostQueriesGetCall) Header() http.Header {
37848	if c.header_ == nil {
37849		c.header_ = make(http.Header)
37850	}
37851	return c.header_
37852}
37853
37854func (c *OrganizationsHostQueriesGetCall) doRequest(alt string) (*http.Response, error) {
37855	reqHeaders := make(http.Header)
37856	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
37857	for k, v := range c.header_ {
37858		reqHeaders[k] = v
37859	}
37860	reqHeaders.Set("User-Agent", c.s.userAgent())
37861	if c.ifNoneMatch_ != "" {
37862		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
37863	}
37864	var body io.Reader = nil
37865	c.urlParams_.Set("alt", alt)
37866	c.urlParams_.Set("prettyPrint", "false")
37867	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
37868	urls += "?" + c.urlParams_.Encode()
37869	req, err := http.NewRequest("GET", urls, body)
37870	if err != nil {
37871		return nil, err
37872	}
37873	req.Header = reqHeaders
37874	googleapi.Expand(req.URL, map[string]string{
37875		"name": c.name,
37876	})
37877	return gensupport.SendRequest(c.ctx_, c.s.client, req)
37878}
37879
37880// Do executes the "apigee.organizations.hostQueries.get" call.
37881// Exactly one of *GoogleCloudApigeeV1AsyncQuery or error will be
37882// non-nil. Any non-2xx status code is an error. Response headers are in
37883// either *GoogleCloudApigeeV1AsyncQuery.ServerResponse.Header or (if a
37884// response was returned at all) in error.(*googleapi.Error).Header. Use
37885// googleapi.IsNotModified to check whether the returned error was
37886// because http.StatusNotModified was returned.
37887func (c *OrganizationsHostQueriesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AsyncQuery, error) {
37888	gensupport.SetOptions(c.urlParams_, opts...)
37889	res, err := c.doRequest("json")
37890	if res != nil && res.StatusCode == http.StatusNotModified {
37891		if res.Body != nil {
37892			res.Body.Close()
37893		}
37894		return nil, &googleapi.Error{
37895			Code:   res.StatusCode,
37896			Header: res.Header,
37897		}
37898	}
37899	if err != nil {
37900		return nil, err
37901	}
37902	defer googleapi.CloseBody(res)
37903	if err := googleapi.CheckResponse(res); err != nil {
37904		return nil, err
37905	}
37906	ret := &GoogleCloudApigeeV1AsyncQuery{
37907		ServerResponse: googleapi.ServerResponse{
37908			Header:         res.Header,
37909			HTTPStatusCode: res.StatusCode,
37910		},
37911	}
37912	target := &ret
37913	if err := gensupport.DecodeResponse(target, res); err != nil {
37914		return nil, err
37915	}
37916	return ret, nil
37917	// {
37918	//   "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\"",
37919	//   "flatPath": "v1/organizations/{organizationsId}/hostQueries/{hostQueriesId}",
37920	//   "httpMethod": "GET",
37921	//   "id": "apigee.organizations.hostQueries.get",
37922	//   "parameterOrder": [
37923	//     "name"
37924	//   ],
37925	//   "parameters": {
37926	//     "name": {
37927	//       "description": "Required. Name of the asynchronous query to get. Must be of the form `organizations/{org}/queries/{queryId}`.",
37928	//       "location": "path",
37929	//       "pattern": "^organizations/[^/]+/hostQueries/[^/]+$",
37930	//       "required": true,
37931	//       "type": "string"
37932	//     }
37933	//   },
37934	//   "path": "v1/{+name}",
37935	//   "response": {
37936	//     "$ref": "GoogleCloudApigeeV1AsyncQuery"
37937	//   },
37938	//   "scopes": [
37939	//     "https://www.googleapis.com/auth/cloud-platform"
37940	//   ]
37941	// }
37942
37943}
37944
37945// method id "apigee.organizations.hostQueries.getResult":
37946
37947type OrganizationsHostQueriesGetResultCall struct {
37948	s            *Service
37949	name         string
37950	urlParams_   gensupport.URLParams
37951	ifNoneMatch_ string
37952	ctx_         context.Context
37953	header_      http.Header
37954}
37955
37956// GetResult: After the query is completed, use this API to retrieve the
37957// results. If the request succeeds, and there is a non-zero result set,
37958// the result is downloaded to the client as a zipped JSON file. The
37959// name of the downloaded file will be: OfflineQueryResult-.zip Example:
37960// `OfflineQueryResult-9cfc0d85-0f30-46d6-ae6f-318d0cb961bd.zip`
37961//
37962// - name: Name of the asynchronous query result to get. Must be of the
37963//   form `organizations/{org}/queries/{queryId}/result`.
37964func (r *OrganizationsHostQueriesService) GetResult(name string) *OrganizationsHostQueriesGetResultCall {
37965	c := &OrganizationsHostQueriesGetResultCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37966	c.name = name
37967	return c
37968}
37969
37970// Fields allows partial responses to be retrieved. See
37971// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
37972// for more information.
37973func (c *OrganizationsHostQueriesGetResultCall) Fields(s ...googleapi.Field) *OrganizationsHostQueriesGetResultCall {
37974	c.urlParams_.Set("fields", googleapi.CombineFields(s))
37975	return c
37976}
37977
37978// IfNoneMatch sets the optional parameter which makes the operation
37979// fail if the object's ETag matches the given value. This is useful for
37980// getting updates only after the object has changed since the last
37981// request. Use googleapi.IsNotModified to check whether the response
37982// error from Do is the result of In-None-Match.
37983func (c *OrganizationsHostQueriesGetResultCall) IfNoneMatch(entityTag string) *OrganizationsHostQueriesGetResultCall {
37984	c.ifNoneMatch_ = entityTag
37985	return c
37986}
37987
37988// Context sets the context to be used in this call's Do method. Any
37989// pending HTTP request will be aborted if the provided context is
37990// canceled.
37991func (c *OrganizationsHostQueriesGetResultCall) Context(ctx context.Context) *OrganizationsHostQueriesGetResultCall {
37992	c.ctx_ = ctx
37993	return c
37994}
37995
37996// Header returns an http.Header that can be modified by the caller to
37997// add HTTP headers to the request.
37998func (c *OrganizationsHostQueriesGetResultCall) Header() http.Header {
37999	if c.header_ == nil {
38000		c.header_ = make(http.Header)
38001	}
38002	return c.header_
38003}
38004
38005func (c *OrganizationsHostQueriesGetResultCall) doRequest(alt string) (*http.Response, error) {
38006	reqHeaders := make(http.Header)
38007	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
38008	for k, v := range c.header_ {
38009		reqHeaders[k] = v
38010	}
38011	reqHeaders.Set("User-Agent", c.s.userAgent())
38012	if c.ifNoneMatch_ != "" {
38013		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
38014	}
38015	var body io.Reader = nil
38016	c.urlParams_.Set("alt", alt)
38017	c.urlParams_.Set("prettyPrint", "false")
38018	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
38019	urls += "?" + c.urlParams_.Encode()
38020	req, err := http.NewRequest("GET", urls, body)
38021	if err != nil {
38022		return nil, err
38023	}
38024	req.Header = reqHeaders
38025	googleapi.Expand(req.URL, map[string]string{
38026		"name": c.name,
38027	})
38028	return gensupport.SendRequest(c.ctx_, c.s.client, req)
38029}
38030
38031// Do executes the "apigee.organizations.hostQueries.getResult" call.
38032// Exactly one of *GoogleApiHttpBody or error will be non-nil. Any
38033// non-2xx status code is an error. Response headers are in either
38034// *GoogleApiHttpBody.ServerResponse.Header or (if a response was
38035// returned at all) in error.(*googleapi.Error).Header. Use
38036// googleapi.IsNotModified to check whether the returned error was
38037// because http.StatusNotModified was returned.
38038func (c *OrganizationsHostQueriesGetResultCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
38039	gensupport.SetOptions(c.urlParams_, opts...)
38040	res, err := c.doRequest("json")
38041	if res != nil && res.StatusCode == http.StatusNotModified {
38042		if res.Body != nil {
38043			res.Body.Close()
38044		}
38045		return nil, &googleapi.Error{
38046			Code:   res.StatusCode,
38047			Header: res.Header,
38048		}
38049	}
38050	if err != nil {
38051		return nil, err
38052	}
38053	defer googleapi.CloseBody(res)
38054	if err := googleapi.CheckResponse(res); err != nil {
38055		return nil, err
38056	}
38057	ret := &GoogleApiHttpBody{
38058		ServerResponse: googleapi.ServerResponse{
38059			Header:         res.Header,
38060			HTTPStatusCode: res.StatusCode,
38061		},
38062	}
38063	target := &ret
38064	if err := gensupport.DecodeResponse(target, res); err != nil {
38065		return nil, err
38066	}
38067	return ret, nil
38068	// {
38069	//   "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`",
38070	//   "flatPath": "v1/organizations/{organizationsId}/hostQueries/{hostQueriesId}/result",
38071	//   "httpMethod": "GET",
38072	//   "id": "apigee.organizations.hostQueries.getResult",
38073	//   "parameterOrder": [
38074	//     "name"
38075	//   ],
38076	//   "parameters": {
38077	//     "name": {
38078	//       "description": "Required. Name of the asynchronous query result to get. Must be of the form `organizations/{org}/queries/{queryId}/result`.",
38079	//       "location": "path",
38080	//       "pattern": "^organizations/[^/]+/hostQueries/[^/]+/result$",
38081	//       "required": true,
38082	//       "type": "string"
38083	//     }
38084	//   },
38085	//   "path": "v1/{+name}",
38086	//   "response": {
38087	//     "$ref": "GoogleApiHttpBody"
38088	//   },
38089	//   "scopes": [
38090	//     "https://www.googleapis.com/auth/cloud-platform"
38091	//   ]
38092	// }
38093
38094}
38095
38096// method id "apigee.organizations.hostQueries.getResultView":
38097
38098type OrganizationsHostQueriesGetResultViewCall struct {
38099	s            *Service
38100	name         string
38101	urlParams_   gensupport.URLParams
38102	ifNoneMatch_ string
38103	ctx_         context.Context
38104	header_      http.Header
38105}
38106
38107// GetResultView:
38108//
38109// - name: Name of the asynchronous query result view to get. Must be of
38110//   the form `organizations/{org}/queries/{queryId}/resultView`.
38111func (r *OrganizationsHostQueriesService) GetResultView(name string) *OrganizationsHostQueriesGetResultViewCall {
38112	c := &OrganizationsHostQueriesGetResultViewCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38113	c.name = name
38114	return c
38115}
38116
38117// Fields allows partial responses to be retrieved. See
38118// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
38119// for more information.
38120func (c *OrganizationsHostQueriesGetResultViewCall) Fields(s ...googleapi.Field) *OrganizationsHostQueriesGetResultViewCall {
38121	c.urlParams_.Set("fields", googleapi.CombineFields(s))
38122	return c
38123}
38124
38125// IfNoneMatch sets the optional parameter which makes the operation
38126// fail if the object's ETag matches the given value. This is useful for
38127// getting updates only after the object has changed since the last
38128// request. Use googleapi.IsNotModified to check whether the response
38129// error from Do is the result of In-None-Match.
38130func (c *OrganizationsHostQueriesGetResultViewCall) IfNoneMatch(entityTag string) *OrganizationsHostQueriesGetResultViewCall {
38131	c.ifNoneMatch_ = entityTag
38132	return c
38133}
38134
38135// Context sets the context to be used in this call's Do method. Any
38136// pending HTTP request will be aborted if the provided context is
38137// canceled.
38138func (c *OrganizationsHostQueriesGetResultViewCall) Context(ctx context.Context) *OrganizationsHostQueriesGetResultViewCall {
38139	c.ctx_ = ctx
38140	return c
38141}
38142
38143// Header returns an http.Header that can be modified by the caller to
38144// add HTTP headers to the request.
38145func (c *OrganizationsHostQueriesGetResultViewCall) Header() http.Header {
38146	if c.header_ == nil {
38147		c.header_ = make(http.Header)
38148	}
38149	return c.header_
38150}
38151
38152func (c *OrganizationsHostQueriesGetResultViewCall) doRequest(alt string) (*http.Response, error) {
38153	reqHeaders := make(http.Header)
38154	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
38155	for k, v := range c.header_ {
38156		reqHeaders[k] = v
38157	}
38158	reqHeaders.Set("User-Agent", c.s.userAgent())
38159	if c.ifNoneMatch_ != "" {
38160		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
38161	}
38162	var body io.Reader = nil
38163	c.urlParams_.Set("alt", alt)
38164	c.urlParams_.Set("prettyPrint", "false")
38165	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
38166	urls += "?" + c.urlParams_.Encode()
38167	req, err := http.NewRequest("GET", urls, body)
38168	if err != nil {
38169		return nil, err
38170	}
38171	req.Header = reqHeaders
38172	googleapi.Expand(req.URL, map[string]string{
38173		"name": c.name,
38174	})
38175	return gensupport.SendRequest(c.ctx_, c.s.client, req)
38176}
38177
38178// Do executes the "apigee.organizations.hostQueries.getResultView" call.
38179// Exactly one of *GoogleCloudApigeeV1AsyncQueryResultView or error will
38180// be non-nil. Any non-2xx status code is an error. Response headers are
38181// in either
38182// *GoogleCloudApigeeV1AsyncQueryResultView.ServerResponse.Header or (if
38183// a response was returned at all) in error.(*googleapi.Error).Header.
38184// Use googleapi.IsNotModified to check whether the returned error was
38185// because http.StatusNotModified was returned.
38186func (c *OrganizationsHostQueriesGetResultViewCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AsyncQueryResultView, error) {
38187	gensupport.SetOptions(c.urlParams_, opts...)
38188	res, err := c.doRequest("json")
38189	if res != nil && res.StatusCode == http.StatusNotModified {
38190		if res.Body != nil {
38191			res.Body.Close()
38192		}
38193		return nil, &googleapi.Error{
38194			Code:   res.StatusCode,
38195			Header: res.Header,
38196		}
38197	}
38198	if err != nil {
38199		return nil, err
38200	}
38201	defer googleapi.CloseBody(res)
38202	if err := googleapi.CheckResponse(res); err != nil {
38203		return nil, err
38204	}
38205	ret := &GoogleCloudApigeeV1AsyncQueryResultView{
38206		ServerResponse: googleapi.ServerResponse{
38207			Header:         res.Header,
38208			HTTPStatusCode: res.StatusCode,
38209		},
38210	}
38211	target := &ret
38212	if err := gensupport.DecodeResponse(target, res); err != nil {
38213		return nil, err
38214	}
38215	return ret, nil
38216	// {
38217	//   "description": "",
38218	//   "flatPath": "v1/organizations/{organizationsId}/hostQueries/{hostQueriesId}/resultView",
38219	//   "httpMethod": "GET",
38220	//   "id": "apigee.organizations.hostQueries.getResultView",
38221	//   "parameterOrder": [
38222	//     "name"
38223	//   ],
38224	//   "parameters": {
38225	//     "name": {
38226	//       "description": "Required. Name of the asynchronous query result view to get. Must be of the form `organizations/{org}/queries/{queryId}/resultView`.",
38227	//       "location": "path",
38228	//       "pattern": "^organizations/[^/]+/hostQueries/[^/]+/resultView$",
38229	//       "required": true,
38230	//       "type": "string"
38231	//     }
38232	//   },
38233	//   "path": "v1/{+name}",
38234	//   "response": {
38235	//     "$ref": "GoogleCloudApigeeV1AsyncQueryResultView"
38236	//   },
38237	//   "scopes": [
38238	//     "https://www.googleapis.com/auth/cloud-platform"
38239	//   ]
38240	// }
38241
38242}
38243
38244// method id "apigee.organizations.hostQueries.list":
38245
38246type OrganizationsHostQueriesListCall struct {
38247	s            *Service
38248	parent       string
38249	urlParams_   gensupport.URLParams
38250	ifNoneMatch_ string
38251	ctx_         context.Context
38252	header_      http.Header
38253}
38254
38255// List: Return a list of Asynchronous Queries at host level.
38256//
38257// - parent: The parent resource name. Must be of the form
38258//   `organizations/{org}`.
38259func (r *OrganizationsHostQueriesService) List(parent string) *OrganizationsHostQueriesListCall {
38260	c := &OrganizationsHostQueriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38261	c.parent = parent
38262	return c
38263}
38264
38265// Dataset sets the optional parameter "dataset": Filter response list
38266// by dataset. Example: `api`, `mint`
38267func (c *OrganizationsHostQueriesListCall) Dataset(dataset string) *OrganizationsHostQueriesListCall {
38268	c.urlParams_.Set("dataset", dataset)
38269	return c
38270}
38271
38272// EnvgroupHostname sets the optional parameter "envgroupHostname":
38273// Required. Filter response list by hostname.
38274func (c *OrganizationsHostQueriesListCall) EnvgroupHostname(envgroupHostname string) *OrganizationsHostQueriesListCall {
38275	c.urlParams_.Set("envgroupHostname", envgroupHostname)
38276	return c
38277}
38278
38279// From sets the optional parameter "from": Filter response list by
38280// returning asynchronous queries that created after this date time.
38281// Time must be in ISO date-time format like '2011-12-03T10:15:30Z'.
38282func (c *OrganizationsHostQueriesListCall) From(from string) *OrganizationsHostQueriesListCall {
38283	c.urlParams_.Set("from", from)
38284	return c
38285}
38286
38287// InclQueriesWithoutReport sets the optional parameter
38288// "inclQueriesWithoutReport": Flag to include asynchronous queries that
38289// don't have a report denifition.
38290func (c *OrganizationsHostQueriesListCall) InclQueriesWithoutReport(inclQueriesWithoutReport string) *OrganizationsHostQueriesListCall {
38291	c.urlParams_.Set("inclQueriesWithoutReport", inclQueriesWithoutReport)
38292	return c
38293}
38294
38295// Status sets the optional parameter "status": Filter response list by
38296// asynchronous query status.
38297func (c *OrganizationsHostQueriesListCall) Status(status string) *OrganizationsHostQueriesListCall {
38298	c.urlParams_.Set("status", status)
38299	return c
38300}
38301
38302// SubmittedBy sets the optional parameter "submittedBy": Filter
38303// response list by user who submitted queries.
38304func (c *OrganizationsHostQueriesListCall) SubmittedBy(submittedBy string) *OrganizationsHostQueriesListCall {
38305	c.urlParams_.Set("submittedBy", submittedBy)
38306	return c
38307}
38308
38309// To sets the optional parameter "to": Filter response list by
38310// returning asynchronous queries that created before this date time.
38311// Time must be in ISO date-time format like '2011-12-03T10:16:30Z'.
38312func (c *OrganizationsHostQueriesListCall) To(to string) *OrganizationsHostQueriesListCall {
38313	c.urlParams_.Set("to", to)
38314	return c
38315}
38316
38317// Fields allows partial responses to be retrieved. See
38318// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
38319// for more information.
38320func (c *OrganizationsHostQueriesListCall) Fields(s ...googleapi.Field) *OrganizationsHostQueriesListCall {
38321	c.urlParams_.Set("fields", googleapi.CombineFields(s))
38322	return c
38323}
38324
38325// IfNoneMatch sets the optional parameter which makes the operation
38326// fail if the object's ETag matches the given value. This is useful for
38327// getting updates only after the object has changed since the last
38328// request. Use googleapi.IsNotModified to check whether the response
38329// error from Do is the result of In-None-Match.
38330func (c *OrganizationsHostQueriesListCall) IfNoneMatch(entityTag string) *OrganizationsHostQueriesListCall {
38331	c.ifNoneMatch_ = entityTag
38332	return c
38333}
38334
38335// Context sets the context to be used in this call's Do method. Any
38336// pending HTTP request will be aborted if the provided context is
38337// canceled.
38338func (c *OrganizationsHostQueriesListCall) Context(ctx context.Context) *OrganizationsHostQueriesListCall {
38339	c.ctx_ = ctx
38340	return c
38341}
38342
38343// Header returns an http.Header that can be modified by the caller to
38344// add HTTP headers to the request.
38345func (c *OrganizationsHostQueriesListCall) Header() http.Header {
38346	if c.header_ == nil {
38347		c.header_ = make(http.Header)
38348	}
38349	return c.header_
38350}
38351
38352func (c *OrganizationsHostQueriesListCall) doRequest(alt string) (*http.Response, error) {
38353	reqHeaders := make(http.Header)
38354	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
38355	for k, v := range c.header_ {
38356		reqHeaders[k] = v
38357	}
38358	reqHeaders.Set("User-Agent", c.s.userAgent())
38359	if c.ifNoneMatch_ != "" {
38360		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
38361	}
38362	var body io.Reader = nil
38363	c.urlParams_.Set("alt", alt)
38364	c.urlParams_.Set("prettyPrint", "false")
38365	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/hostQueries")
38366	urls += "?" + c.urlParams_.Encode()
38367	req, err := http.NewRequest("GET", urls, body)
38368	if err != nil {
38369		return nil, err
38370	}
38371	req.Header = reqHeaders
38372	googleapi.Expand(req.URL, map[string]string{
38373		"parent": c.parent,
38374	})
38375	return gensupport.SendRequest(c.ctx_, c.s.client, req)
38376}
38377
38378// Do executes the "apigee.organizations.hostQueries.list" call.
38379// Exactly one of *GoogleCloudApigeeV1ListAsyncQueriesResponse or error
38380// will be non-nil. Any non-2xx status code is an error. Response
38381// headers are in either
38382// *GoogleCloudApigeeV1ListAsyncQueriesResponse.ServerResponse.Header or
38383// (if a response was returned at all) in
38384// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
38385// whether the returned error was because http.StatusNotModified was
38386// returned.
38387func (c *OrganizationsHostQueriesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListAsyncQueriesResponse, error) {
38388	gensupport.SetOptions(c.urlParams_, opts...)
38389	res, err := c.doRequest("json")
38390	if res != nil && res.StatusCode == http.StatusNotModified {
38391		if res.Body != nil {
38392			res.Body.Close()
38393		}
38394		return nil, &googleapi.Error{
38395			Code:   res.StatusCode,
38396			Header: res.Header,
38397		}
38398	}
38399	if err != nil {
38400		return nil, err
38401	}
38402	defer googleapi.CloseBody(res)
38403	if err := googleapi.CheckResponse(res); err != nil {
38404		return nil, err
38405	}
38406	ret := &GoogleCloudApigeeV1ListAsyncQueriesResponse{
38407		ServerResponse: googleapi.ServerResponse{
38408			Header:         res.Header,
38409			HTTPStatusCode: res.StatusCode,
38410		},
38411	}
38412	target := &ret
38413	if err := gensupport.DecodeResponse(target, res); err != nil {
38414		return nil, err
38415	}
38416	return ret, nil
38417	// {
38418	//   "description": "Return a list of Asynchronous Queries at host level.",
38419	//   "flatPath": "v1/organizations/{organizationsId}/hostQueries",
38420	//   "httpMethod": "GET",
38421	//   "id": "apigee.organizations.hostQueries.list",
38422	//   "parameterOrder": [
38423	//     "parent"
38424	//   ],
38425	//   "parameters": {
38426	//     "dataset": {
38427	//       "description": "Filter response list by dataset. Example: `api`, `mint`",
38428	//       "location": "query",
38429	//       "type": "string"
38430	//     },
38431	//     "envgroupHostname": {
38432	//       "description": "Required. Filter response list by hostname.",
38433	//       "location": "query",
38434	//       "type": "string"
38435	//     },
38436	//     "from": {
38437	//       "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'.",
38438	//       "location": "query",
38439	//       "type": "string"
38440	//     },
38441	//     "inclQueriesWithoutReport": {
38442	//       "description": "Flag to include asynchronous queries that don't have a report denifition.",
38443	//       "location": "query",
38444	//       "type": "string"
38445	//     },
38446	//     "parent": {
38447	//       "description": "Required. The parent resource name. Must be of the form `organizations/{org}`.",
38448	//       "location": "path",
38449	//       "pattern": "^organizations/[^/]+$",
38450	//       "required": true,
38451	//       "type": "string"
38452	//     },
38453	//     "status": {
38454	//       "description": "Filter response list by asynchronous query status.",
38455	//       "location": "query",
38456	//       "type": "string"
38457	//     },
38458	//     "submittedBy": {
38459	//       "description": "Filter response list by user who submitted queries.",
38460	//       "location": "query",
38461	//       "type": "string"
38462	//     },
38463	//     "to": {
38464	//       "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'.",
38465	//       "location": "query",
38466	//       "type": "string"
38467	//     }
38468	//   },
38469	//   "path": "v1/{+parent}/hostQueries",
38470	//   "response": {
38471	//     "$ref": "GoogleCloudApigeeV1ListAsyncQueriesResponse"
38472	//   },
38473	//   "scopes": [
38474	//     "https://www.googleapis.com/auth/cloud-platform"
38475	//   ]
38476	// }
38477
38478}
38479
38480// method id "apigee.organizations.hostStats.get":
38481
38482type OrganizationsHostStatsGetCall struct {
38483	s            *Service
38484	name         string
38485	urlParams_   gensupport.URLParams
38486	ifNoneMatch_ string
38487	ctx_         context.Context
38488	header_      http.Header
38489}
38490
38491// Get: Retrieve metrics grouped by dimensions in host level. The types
38492// of metrics you can retrieve include traffic, message counts, API call
38493// latency, response size, and cache hits and counts. Dimensions let you
38494// view metrics in meaningful groups. The stats api does accept
38495// dimensions as path params. The dimensions are optional in which case
38496// the metrics are computed on the entire data for the given timerange.
38497//
38498// - name: The resource name for which the interactive query will be
38499//   executed. Must be of the form
38500//   `organizations/{organization_id}/hostStats/{dimensions}`.
38501//   Dimensions let you view metrics in meaningful groupings. E.g.
38502//   apiproxy, target_host. The value of dimensions should be comma
38503//   separated list as shown below
38504//   `organizations/{org}/hostStats/apiproxy,request_verb`.
38505func (r *OrganizationsHostStatsService) Get(name string) *OrganizationsHostStatsGetCall {
38506	c := &OrganizationsHostStatsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38507	c.name = name
38508	return c
38509}
38510
38511// Accuracy sets the optional parameter "accuracy": Legacy field: not
38512// used anymore.
38513func (c *OrganizationsHostStatsGetCall) Accuracy(accuracy string) *OrganizationsHostStatsGetCall {
38514	c.urlParams_.Set("accuracy", accuracy)
38515	return c
38516}
38517
38518// EnvgroupHostname sets the optional parameter "envgroupHostname":
38519// Required. The hostname for which the interactive query will be
38520// executed.
38521func (c *OrganizationsHostStatsGetCall) EnvgroupHostname(envgroupHostname string) *OrganizationsHostStatsGetCall {
38522	c.urlParams_.Set("envgroupHostname", envgroupHostname)
38523	return c
38524}
38525
38526// Filter sets the optional parameter "filter": Enables drill-down on
38527// specific dimension values.
38528func (c *OrganizationsHostStatsGetCall) Filter(filter string) *OrganizationsHostStatsGetCall {
38529	c.urlParams_.Set("filter", filter)
38530	return c
38531}
38532
38533// Limit sets the optional parameter "limit": This parameter is used to
38534// limit the number of result items. Default and the max value is 14400.
38535func (c *OrganizationsHostStatsGetCall) Limit(limit string) *OrganizationsHostStatsGetCall {
38536	c.urlParams_.Set("limit", limit)
38537	return c
38538}
38539
38540// Offset sets the optional parameter "offset": Use offset with limit to
38541// enable pagination of results. For example, to display results 11-20,
38542// set limit to '10' and offset to '10'.
38543func (c *OrganizationsHostStatsGetCall) Offset(offset string) *OrganizationsHostStatsGetCall {
38544	c.urlParams_.Set("offset", offset)
38545	return c
38546}
38547
38548// Realtime sets the optional parameter "realtime": Legacy field: not
38549// used anymore.
38550func (c *OrganizationsHostStatsGetCall) Realtime(realtime bool) *OrganizationsHostStatsGetCall {
38551	c.urlParams_.Set("realtime", fmt.Sprint(realtime))
38552	return c
38553}
38554
38555// Select sets the optional parameter "select": The select parameter
38556// contains a comma separated list of metrics. E.g.
38557// sum(message_count),sum(error_count)
38558func (c *OrganizationsHostStatsGetCall) Select(select_ string) *OrganizationsHostStatsGetCall {
38559	c.urlParams_.Set("select", select_)
38560	return c
38561}
38562
38563// Sort sets the optional parameter "sort": This parameter specifies if
38564// the sort order should be ascending or descending Supported values are
38565// DESC and ASC.
38566func (c *OrganizationsHostStatsGetCall) Sort(sort string) *OrganizationsHostStatsGetCall {
38567	c.urlParams_.Set("sort", sort)
38568	return c
38569}
38570
38571// Sortby sets the optional parameter "sortby": Comma separated list of
38572// columns to sort the final result.
38573func (c *OrganizationsHostStatsGetCall) Sortby(sortby string) *OrganizationsHostStatsGetCall {
38574	c.urlParams_.Set("sortby", sortby)
38575	return c
38576}
38577
38578// TimeRange sets the optional parameter "timeRange": Time interval for
38579// the interactive query. Time range is specified as start~end E.g.
38580// 04/15/2017 00:00~05/15/2017 23:59
38581func (c *OrganizationsHostStatsGetCall) TimeRange(timeRange string) *OrganizationsHostStatsGetCall {
38582	c.urlParams_.Set("timeRange", timeRange)
38583	return c
38584}
38585
38586// TimeUnit sets the optional parameter "timeUnit": A value of second,
38587// minute, hour, day, week, month. Time Unit specifies the granularity
38588// of metrics returned.
38589func (c *OrganizationsHostStatsGetCall) TimeUnit(timeUnit string) *OrganizationsHostStatsGetCall {
38590	c.urlParams_.Set("timeUnit", timeUnit)
38591	return c
38592}
38593
38594// Topk sets the optional parameter "topk": Take 'top k' results from
38595// results, for example, to return the top 5 results 'topk=5'.
38596func (c *OrganizationsHostStatsGetCall) Topk(topk string) *OrganizationsHostStatsGetCall {
38597	c.urlParams_.Set("topk", topk)
38598	return c
38599}
38600
38601// TsAscending sets the optional parameter "tsAscending": Lists
38602// timestamps in ascending order if set to true. Recommend setting this
38603// value to true if you are using sortby with sort=DESC.
38604func (c *OrganizationsHostStatsGetCall) TsAscending(tsAscending bool) *OrganizationsHostStatsGetCall {
38605	c.urlParams_.Set("tsAscending", fmt.Sprint(tsAscending))
38606	return c
38607}
38608
38609// Tzo sets the optional parameter "tzo": This parameters contains the
38610// timezone offset value.
38611func (c *OrganizationsHostStatsGetCall) Tzo(tzo string) *OrganizationsHostStatsGetCall {
38612	c.urlParams_.Set("tzo", tzo)
38613	return c
38614}
38615
38616// Fields allows partial responses to be retrieved. See
38617// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
38618// for more information.
38619func (c *OrganizationsHostStatsGetCall) Fields(s ...googleapi.Field) *OrganizationsHostStatsGetCall {
38620	c.urlParams_.Set("fields", googleapi.CombineFields(s))
38621	return c
38622}
38623
38624// IfNoneMatch sets the optional parameter which makes the operation
38625// fail if the object's ETag matches the given value. This is useful for
38626// getting updates only after the object has changed since the last
38627// request. Use googleapi.IsNotModified to check whether the response
38628// error from Do is the result of In-None-Match.
38629func (c *OrganizationsHostStatsGetCall) IfNoneMatch(entityTag string) *OrganizationsHostStatsGetCall {
38630	c.ifNoneMatch_ = entityTag
38631	return c
38632}
38633
38634// Context sets the context to be used in this call's Do method. Any
38635// pending HTTP request will be aborted if the provided context is
38636// canceled.
38637func (c *OrganizationsHostStatsGetCall) Context(ctx context.Context) *OrganizationsHostStatsGetCall {
38638	c.ctx_ = ctx
38639	return c
38640}
38641
38642// Header returns an http.Header that can be modified by the caller to
38643// add HTTP headers to the request.
38644func (c *OrganizationsHostStatsGetCall) Header() http.Header {
38645	if c.header_ == nil {
38646		c.header_ = make(http.Header)
38647	}
38648	return c.header_
38649}
38650
38651func (c *OrganizationsHostStatsGetCall) doRequest(alt string) (*http.Response, error) {
38652	reqHeaders := make(http.Header)
38653	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
38654	for k, v := range c.header_ {
38655		reqHeaders[k] = v
38656	}
38657	reqHeaders.Set("User-Agent", c.s.userAgent())
38658	if c.ifNoneMatch_ != "" {
38659		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
38660	}
38661	var body io.Reader = nil
38662	c.urlParams_.Set("alt", alt)
38663	c.urlParams_.Set("prettyPrint", "false")
38664	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
38665	urls += "?" + c.urlParams_.Encode()
38666	req, err := http.NewRequest("GET", urls, body)
38667	if err != nil {
38668		return nil, err
38669	}
38670	req.Header = reqHeaders
38671	googleapi.Expand(req.URL, map[string]string{
38672		"name": c.name,
38673	})
38674	return gensupport.SendRequest(c.ctx_, c.s.client, req)
38675}
38676
38677// Do executes the "apigee.organizations.hostStats.get" call.
38678// Exactly one of *GoogleCloudApigeeV1Stats or error will be non-nil.
38679// Any non-2xx status code is an error. Response headers are in either
38680// *GoogleCloudApigeeV1Stats.ServerResponse.Header or (if a response was
38681// returned at all) in error.(*googleapi.Error).Header. Use
38682// googleapi.IsNotModified to check whether the returned error was
38683// because http.StatusNotModified was returned.
38684func (c *OrganizationsHostStatsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Stats, error) {
38685	gensupport.SetOptions(c.urlParams_, opts...)
38686	res, err := c.doRequest("json")
38687	if res != nil && res.StatusCode == http.StatusNotModified {
38688		if res.Body != nil {
38689			res.Body.Close()
38690		}
38691		return nil, &googleapi.Error{
38692			Code:   res.StatusCode,
38693			Header: res.Header,
38694		}
38695	}
38696	if err != nil {
38697		return nil, err
38698	}
38699	defer googleapi.CloseBody(res)
38700	if err := googleapi.CheckResponse(res); err != nil {
38701		return nil, err
38702	}
38703	ret := &GoogleCloudApigeeV1Stats{
38704		ServerResponse: googleapi.ServerResponse{
38705			Header:         res.Header,
38706			HTTPStatusCode: res.StatusCode,
38707		},
38708	}
38709	target := &ret
38710	if err := gensupport.DecodeResponse(target, res); err != nil {
38711		return nil, err
38712	}
38713	return ret, nil
38714	// {
38715	//   "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.",
38716	//   "flatPath": "v1/organizations/{organizationsId}/hostStats/{hostStatsId}",
38717	//   "httpMethod": "GET",
38718	//   "id": "apigee.organizations.hostStats.get",
38719	//   "parameterOrder": [
38720	//     "name"
38721	//   ],
38722	//   "parameters": {
38723	//     "accuracy": {
38724	//       "description": "Legacy field: not used anymore.",
38725	//       "location": "query",
38726	//       "type": "string"
38727	//     },
38728	//     "envgroupHostname": {
38729	//       "description": "Required. The hostname for which the interactive query will be executed.",
38730	//       "location": "query",
38731	//       "type": "string"
38732	//     },
38733	//     "filter": {
38734	//       "description": "Enables drill-down on specific dimension values.",
38735	//       "location": "query",
38736	//       "type": "string"
38737	//     },
38738	//     "limit": {
38739	//       "description": "This parameter is used to limit the number of result items. Default and the max value is 14400.",
38740	//       "location": "query",
38741	//       "type": "string"
38742	//     },
38743	//     "name": {
38744	//       "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`",
38745	//       "location": "path",
38746	//       "pattern": "^organizations/[^/]+/hostStats/.*$",
38747	//       "required": true,
38748	//       "type": "string"
38749	//     },
38750	//     "offset": {
38751	//       "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'.",
38752	//       "location": "query",
38753	//       "type": "string"
38754	//     },
38755	//     "realtime": {
38756	//       "description": "Legacy field: not used anymore.",
38757	//       "location": "query",
38758	//       "type": "boolean"
38759	//     },
38760	//     "select": {
38761	//       "description": "The select parameter contains a comma separated list of metrics. E.g. sum(message_count),sum(error_count)",
38762	//       "location": "query",
38763	//       "type": "string"
38764	//     },
38765	//     "sort": {
38766	//       "description": "This parameter specifies if the sort order should be ascending or descending Supported values are DESC and ASC.",
38767	//       "location": "query",
38768	//       "type": "string"
38769	//     },
38770	//     "sortby": {
38771	//       "description": "Comma separated list of columns to sort the final result.",
38772	//       "location": "query",
38773	//       "type": "string"
38774	//     },
38775	//     "timeRange": {
38776	//       "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",
38777	//       "location": "query",
38778	//       "type": "string"
38779	//     },
38780	//     "timeUnit": {
38781	//       "description": "A value of second, minute, hour, day, week, month. Time Unit specifies the granularity of metrics returned.",
38782	//       "location": "query",
38783	//       "type": "string"
38784	//     },
38785	//     "topk": {
38786	//       "description": "Take 'top k' results from results, for example, to return the top 5 results 'topk=5'.",
38787	//       "location": "query",
38788	//       "type": "string"
38789	//     },
38790	//     "tsAscending": {
38791	//       "description": "Lists timestamps in ascending order if set to true. Recommend setting this value to true if you are using sortby with sort=DESC.",
38792	//       "location": "query",
38793	//       "type": "boolean"
38794	//     },
38795	//     "tzo": {
38796	//       "description": "This parameters contains the timezone offset value.",
38797	//       "location": "query",
38798	//       "type": "string"
38799	//     }
38800	//   },
38801	//   "path": "v1/{+name}",
38802	//   "response": {
38803	//     "$ref": "GoogleCloudApigeeV1Stats"
38804	//   },
38805	//   "scopes": [
38806	//     "https://www.googleapis.com/auth/cloud-platform"
38807	//   ]
38808	// }
38809
38810}
38811
38812// method id "apigee.organizations.instances.create":
38813
38814type OrganizationsInstancesCreateCall struct {
38815	s                           *Service
38816	parent                      string
38817	googlecloudapigeev1instance *GoogleCloudApigeeV1Instance
38818	urlParams_                  gensupport.URLParams
38819	ctx_                        context.Context
38820	header_                     http.Header
38821}
38822
38823// Create: Creates an Apigee runtime instance. The instance is
38824// accessible from the authorized network configured on the
38825// organization. **Note:** Not supported for Apigee hybrid.
38826//
38827// - parent: Name of the organization. Use the following structure in
38828//   your request: `organizations/{org}`.
38829func (r *OrganizationsInstancesService) Create(parent string, googlecloudapigeev1instance *GoogleCloudApigeeV1Instance) *OrganizationsInstancesCreateCall {
38830	c := &OrganizationsInstancesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38831	c.parent = parent
38832	c.googlecloudapigeev1instance = googlecloudapigeev1instance
38833	return c
38834}
38835
38836// Fields allows partial responses to be retrieved. See
38837// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
38838// for more information.
38839func (c *OrganizationsInstancesCreateCall) Fields(s ...googleapi.Field) *OrganizationsInstancesCreateCall {
38840	c.urlParams_.Set("fields", googleapi.CombineFields(s))
38841	return c
38842}
38843
38844// Context sets the context to be used in this call's Do method. Any
38845// pending HTTP request will be aborted if the provided context is
38846// canceled.
38847func (c *OrganizationsInstancesCreateCall) Context(ctx context.Context) *OrganizationsInstancesCreateCall {
38848	c.ctx_ = ctx
38849	return c
38850}
38851
38852// Header returns an http.Header that can be modified by the caller to
38853// add HTTP headers to the request.
38854func (c *OrganizationsInstancesCreateCall) Header() http.Header {
38855	if c.header_ == nil {
38856		c.header_ = make(http.Header)
38857	}
38858	return c.header_
38859}
38860
38861func (c *OrganizationsInstancesCreateCall) doRequest(alt string) (*http.Response, error) {
38862	reqHeaders := make(http.Header)
38863	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
38864	for k, v := range c.header_ {
38865		reqHeaders[k] = v
38866	}
38867	reqHeaders.Set("User-Agent", c.s.userAgent())
38868	var body io.Reader = nil
38869	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1instance)
38870	if err != nil {
38871		return nil, err
38872	}
38873	reqHeaders.Set("Content-Type", "application/json")
38874	c.urlParams_.Set("alt", alt)
38875	c.urlParams_.Set("prettyPrint", "false")
38876	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/instances")
38877	urls += "?" + c.urlParams_.Encode()
38878	req, err := http.NewRequest("POST", urls, body)
38879	if err != nil {
38880		return nil, err
38881	}
38882	req.Header = reqHeaders
38883	googleapi.Expand(req.URL, map[string]string{
38884		"parent": c.parent,
38885	})
38886	return gensupport.SendRequest(c.ctx_, c.s.client, req)
38887}
38888
38889// Do executes the "apigee.organizations.instances.create" call.
38890// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
38891// Any non-2xx status code is an error. Response headers are in either
38892// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
38893// was returned at all) in error.(*googleapi.Error).Header. Use
38894// googleapi.IsNotModified to check whether the returned error was
38895// because http.StatusNotModified was returned.
38896func (c *OrganizationsInstancesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
38897	gensupport.SetOptions(c.urlParams_, opts...)
38898	res, err := c.doRequest("json")
38899	if res != nil && res.StatusCode == http.StatusNotModified {
38900		if res.Body != nil {
38901			res.Body.Close()
38902		}
38903		return nil, &googleapi.Error{
38904			Code:   res.StatusCode,
38905			Header: res.Header,
38906		}
38907	}
38908	if err != nil {
38909		return nil, err
38910	}
38911	defer googleapi.CloseBody(res)
38912	if err := googleapi.CheckResponse(res); err != nil {
38913		return nil, err
38914	}
38915	ret := &GoogleLongrunningOperation{
38916		ServerResponse: googleapi.ServerResponse{
38917			Header:         res.Header,
38918			HTTPStatusCode: res.StatusCode,
38919		},
38920	}
38921	target := &ret
38922	if err := gensupport.DecodeResponse(target, res); err != nil {
38923		return nil, err
38924	}
38925	return ret, nil
38926	// {
38927	//   "description": "Creates an Apigee runtime instance. The instance is accessible from the authorized network configured on the organization. **Note:** Not supported for Apigee hybrid.",
38928	//   "flatPath": "v1/organizations/{organizationsId}/instances",
38929	//   "httpMethod": "POST",
38930	//   "id": "apigee.organizations.instances.create",
38931	//   "parameterOrder": [
38932	//     "parent"
38933	//   ],
38934	//   "parameters": {
38935	//     "parent": {
38936	//       "description": "Required. Name of the organization. Use the following structure in your request: `organizations/{org}`.",
38937	//       "location": "path",
38938	//       "pattern": "^organizations/[^/]+$",
38939	//       "required": true,
38940	//       "type": "string"
38941	//     }
38942	//   },
38943	//   "path": "v1/{+parent}/instances",
38944	//   "request": {
38945	//     "$ref": "GoogleCloudApigeeV1Instance"
38946	//   },
38947	//   "response": {
38948	//     "$ref": "GoogleLongrunningOperation"
38949	//   },
38950	//   "scopes": [
38951	//     "https://www.googleapis.com/auth/cloud-platform"
38952	//   ]
38953	// }
38954
38955}
38956
38957// method id "apigee.organizations.instances.delete":
38958
38959type OrganizationsInstancesDeleteCall struct {
38960	s          *Service
38961	name       string
38962	urlParams_ gensupport.URLParams
38963	ctx_       context.Context
38964	header_    http.Header
38965}
38966
38967// Delete: Deletes an Apigee runtime instance. The instance stops
38968// serving requests and the runtime data is deleted. **Note:** Not
38969// supported for Apigee hybrid.
38970//
38971// - name: Name of the instance. Use the following structure in your
38972//   request: `organizations/{org}/instances/{instance}`.
38973func (r *OrganizationsInstancesService) Delete(name string) *OrganizationsInstancesDeleteCall {
38974	c := &OrganizationsInstancesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38975	c.name = name
38976	return c
38977}
38978
38979// Fields allows partial responses to be retrieved. See
38980// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
38981// for more information.
38982func (c *OrganizationsInstancesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsInstancesDeleteCall {
38983	c.urlParams_.Set("fields", googleapi.CombineFields(s))
38984	return c
38985}
38986
38987// Context sets the context to be used in this call's Do method. Any
38988// pending HTTP request will be aborted if the provided context is
38989// canceled.
38990func (c *OrganizationsInstancesDeleteCall) Context(ctx context.Context) *OrganizationsInstancesDeleteCall {
38991	c.ctx_ = ctx
38992	return c
38993}
38994
38995// Header returns an http.Header that can be modified by the caller to
38996// add HTTP headers to the request.
38997func (c *OrganizationsInstancesDeleteCall) Header() http.Header {
38998	if c.header_ == nil {
38999		c.header_ = make(http.Header)
39000	}
39001	return c.header_
39002}
39003
39004func (c *OrganizationsInstancesDeleteCall) doRequest(alt string) (*http.Response, error) {
39005	reqHeaders := make(http.Header)
39006	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
39007	for k, v := range c.header_ {
39008		reqHeaders[k] = v
39009	}
39010	reqHeaders.Set("User-Agent", c.s.userAgent())
39011	var body io.Reader = nil
39012	c.urlParams_.Set("alt", alt)
39013	c.urlParams_.Set("prettyPrint", "false")
39014	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
39015	urls += "?" + c.urlParams_.Encode()
39016	req, err := http.NewRequest("DELETE", urls, body)
39017	if err != nil {
39018		return nil, err
39019	}
39020	req.Header = reqHeaders
39021	googleapi.Expand(req.URL, map[string]string{
39022		"name": c.name,
39023	})
39024	return gensupport.SendRequest(c.ctx_, c.s.client, req)
39025}
39026
39027// Do executes the "apigee.organizations.instances.delete" call.
39028// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
39029// Any non-2xx status code is an error. Response headers are in either
39030// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
39031// was returned at all) in error.(*googleapi.Error).Header. Use
39032// googleapi.IsNotModified to check whether the returned error was
39033// because http.StatusNotModified was returned.
39034func (c *OrganizationsInstancesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
39035	gensupport.SetOptions(c.urlParams_, opts...)
39036	res, err := c.doRequest("json")
39037	if res != nil && res.StatusCode == http.StatusNotModified {
39038		if res.Body != nil {
39039			res.Body.Close()
39040		}
39041		return nil, &googleapi.Error{
39042			Code:   res.StatusCode,
39043			Header: res.Header,
39044		}
39045	}
39046	if err != nil {
39047		return nil, err
39048	}
39049	defer googleapi.CloseBody(res)
39050	if err := googleapi.CheckResponse(res); err != nil {
39051		return nil, err
39052	}
39053	ret := &GoogleLongrunningOperation{
39054		ServerResponse: googleapi.ServerResponse{
39055			Header:         res.Header,
39056			HTTPStatusCode: res.StatusCode,
39057		},
39058	}
39059	target := &ret
39060	if err := gensupport.DecodeResponse(target, res); err != nil {
39061		return nil, err
39062	}
39063	return ret, nil
39064	// {
39065	//   "description": "Deletes an Apigee runtime instance. The instance stops serving requests and the runtime data is deleted. **Note:** Not supported for Apigee hybrid.",
39066	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}",
39067	//   "httpMethod": "DELETE",
39068	//   "id": "apigee.organizations.instances.delete",
39069	//   "parameterOrder": [
39070	//     "name"
39071	//   ],
39072	//   "parameters": {
39073	//     "name": {
39074	//       "description": "Required. Name of the instance. Use the following structure in your request: `organizations/{org}/instances/{instance}`.",
39075	//       "location": "path",
39076	//       "pattern": "^organizations/[^/]+/instances/[^/]+$",
39077	//       "required": true,
39078	//       "type": "string"
39079	//     }
39080	//   },
39081	//   "path": "v1/{+name}",
39082	//   "response": {
39083	//     "$ref": "GoogleLongrunningOperation"
39084	//   },
39085	//   "scopes": [
39086	//     "https://www.googleapis.com/auth/cloud-platform"
39087	//   ]
39088	// }
39089
39090}
39091
39092// method id "apigee.organizations.instances.get":
39093
39094type OrganizationsInstancesGetCall struct {
39095	s            *Service
39096	name         string
39097	urlParams_   gensupport.URLParams
39098	ifNoneMatch_ string
39099	ctx_         context.Context
39100	header_      http.Header
39101}
39102
39103// Get: Gets the details for an Apigee runtime instance. **Note:** Not
39104// supported for Apigee hybrid.
39105//
39106// - name: Name of the instance. Use the following structure in your
39107//   request: `organizations/{org}/instances/{instance}`.
39108func (r *OrganizationsInstancesService) Get(name string) *OrganizationsInstancesGetCall {
39109	c := &OrganizationsInstancesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39110	c.name = name
39111	return c
39112}
39113
39114// Fields allows partial responses to be retrieved. See
39115// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
39116// for more information.
39117func (c *OrganizationsInstancesGetCall) Fields(s ...googleapi.Field) *OrganizationsInstancesGetCall {
39118	c.urlParams_.Set("fields", googleapi.CombineFields(s))
39119	return c
39120}
39121
39122// IfNoneMatch sets the optional parameter which makes the operation
39123// fail if the object's ETag matches the given value. This is useful for
39124// getting updates only after the object has changed since the last
39125// request. Use googleapi.IsNotModified to check whether the response
39126// error from Do is the result of In-None-Match.
39127func (c *OrganizationsInstancesGetCall) IfNoneMatch(entityTag string) *OrganizationsInstancesGetCall {
39128	c.ifNoneMatch_ = entityTag
39129	return c
39130}
39131
39132// Context sets the context to be used in this call's Do method. Any
39133// pending HTTP request will be aborted if the provided context is
39134// canceled.
39135func (c *OrganizationsInstancesGetCall) Context(ctx context.Context) *OrganizationsInstancesGetCall {
39136	c.ctx_ = ctx
39137	return c
39138}
39139
39140// Header returns an http.Header that can be modified by the caller to
39141// add HTTP headers to the request.
39142func (c *OrganizationsInstancesGetCall) Header() http.Header {
39143	if c.header_ == nil {
39144		c.header_ = make(http.Header)
39145	}
39146	return c.header_
39147}
39148
39149func (c *OrganizationsInstancesGetCall) doRequest(alt string) (*http.Response, error) {
39150	reqHeaders := make(http.Header)
39151	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
39152	for k, v := range c.header_ {
39153		reqHeaders[k] = v
39154	}
39155	reqHeaders.Set("User-Agent", c.s.userAgent())
39156	if c.ifNoneMatch_ != "" {
39157		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
39158	}
39159	var body io.Reader = nil
39160	c.urlParams_.Set("alt", alt)
39161	c.urlParams_.Set("prettyPrint", "false")
39162	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
39163	urls += "?" + c.urlParams_.Encode()
39164	req, err := http.NewRequest("GET", urls, body)
39165	if err != nil {
39166		return nil, err
39167	}
39168	req.Header = reqHeaders
39169	googleapi.Expand(req.URL, map[string]string{
39170		"name": c.name,
39171	})
39172	return gensupport.SendRequest(c.ctx_, c.s.client, req)
39173}
39174
39175// Do executes the "apigee.organizations.instances.get" call.
39176// Exactly one of *GoogleCloudApigeeV1Instance or error will be non-nil.
39177// Any non-2xx status code is an error. Response headers are in either
39178// *GoogleCloudApigeeV1Instance.ServerResponse.Header or (if a response
39179// was returned at all) in error.(*googleapi.Error).Header. Use
39180// googleapi.IsNotModified to check whether the returned error was
39181// because http.StatusNotModified was returned.
39182func (c *OrganizationsInstancesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Instance, error) {
39183	gensupport.SetOptions(c.urlParams_, opts...)
39184	res, err := c.doRequest("json")
39185	if res != nil && res.StatusCode == http.StatusNotModified {
39186		if res.Body != nil {
39187			res.Body.Close()
39188		}
39189		return nil, &googleapi.Error{
39190			Code:   res.StatusCode,
39191			Header: res.Header,
39192		}
39193	}
39194	if err != nil {
39195		return nil, err
39196	}
39197	defer googleapi.CloseBody(res)
39198	if err := googleapi.CheckResponse(res); err != nil {
39199		return nil, err
39200	}
39201	ret := &GoogleCloudApigeeV1Instance{
39202		ServerResponse: googleapi.ServerResponse{
39203			Header:         res.Header,
39204			HTTPStatusCode: res.StatusCode,
39205		},
39206	}
39207	target := &ret
39208	if err := gensupport.DecodeResponse(target, res); err != nil {
39209		return nil, err
39210	}
39211	return ret, nil
39212	// {
39213	//   "description": "Gets the details for an Apigee runtime instance. **Note:** Not supported for Apigee hybrid.",
39214	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}",
39215	//   "httpMethod": "GET",
39216	//   "id": "apigee.organizations.instances.get",
39217	//   "parameterOrder": [
39218	//     "name"
39219	//   ],
39220	//   "parameters": {
39221	//     "name": {
39222	//       "description": "Required. Name of the instance. Use the following structure in your request: `organizations/{org}/instances/{instance}`.",
39223	//       "location": "path",
39224	//       "pattern": "^organizations/[^/]+/instances/[^/]+$",
39225	//       "required": true,
39226	//       "type": "string"
39227	//     }
39228	//   },
39229	//   "path": "v1/{+name}",
39230	//   "response": {
39231	//     "$ref": "GoogleCloudApigeeV1Instance"
39232	//   },
39233	//   "scopes": [
39234	//     "https://www.googleapis.com/auth/cloud-platform"
39235	//   ]
39236	// }
39237
39238}
39239
39240// method id "apigee.organizations.instances.list":
39241
39242type OrganizationsInstancesListCall struct {
39243	s            *Service
39244	parent       string
39245	urlParams_   gensupport.URLParams
39246	ifNoneMatch_ string
39247	ctx_         context.Context
39248	header_      http.Header
39249}
39250
39251// List: Lists all Apigee runtime instances for the organization.
39252// **Note:** Not supported for Apigee hybrid.
39253//
39254// - parent: Name of the organization. Use the following structure in
39255//   your request: `organizations/{org}`.
39256func (r *OrganizationsInstancesService) List(parent string) *OrganizationsInstancesListCall {
39257	c := &OrganizationsInstancesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39258	c.parent = parent
39259	return c
39260}
39261
39262// PageSize sets the optional parameter "pageSize": Maximum number of
39263// instances to return. Defaults to 25.
39264func (c *OrganizationsInstancesListCall) PageSize(pageSize int64) *OrganizationsInstancesListCall {
39265	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
39266	return c
39267}
39268
39269// PageToken sets the optional parameter "pageToken": Page token,
39270// returned from a previous ListInstances call, that you can use to
39271// retrieve the next page of content.
39272func (c *OrganizationsInstancesListCall) PageToken(pageToken string) *OrganizationsInstancesListCall {
39273	c.urlParams_.Set("pageToken", pageToken)
39274	return c
39275}
39276
39277// Fields allows partial responses to be retrieved. See
39278// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
39279// for more information.
39280func (c *OrganizationsInstancesListCall) Fields(s ...googleapi.Field) *OrganizationsInstancesListCall {
39281	c.urlParams_.Set("fields", googleapi.CombineFields(s))
39282	return c
39283}
39284
39285// IfNoneMatch sets the optional parameter which makes the operation
39286// fail if the object's ETag matches the given value. This is useful for
39287// getting updates only after the object has changed since the last
39288// request. Use googleapi.IsNotModified to check whether the response
39289// error from Do is the result of In-None-Match.
39290func (c *OrganizationsInstancesListCall) IfNoneMatch(entityTag string) *OrganizationsInstancesListCall {
39291	c.ifNoneMatch_ = entityTag
39292	return c
39293}
39294
39295// Context sets the context to be used in this call's Do method. Any
39296// pending HTTP request will be aborted if the provided context is
39297// canceled.
39298func (c *OrganizationsInstancesListCall) Context(ctx context.Context) *OrganizationsInstancesListCall {
39299	c.ctx_ = ctx
39300	return c
39301}
39302
39303// Header returns an http.Header that can be modified by the caller to
39304// add HTTP headers to the request.
39305func (c *OrganizationsInstancesListCall) Header() http.Header {
39306	if c.header_ == nil {
39307		c.header_ = make(http.Header)
39308	}
39309	return c.header_
39310}
39311
39312func (c *OrganizationsInstancesListCall) doRequest(alt string) (*http.Response, error) {
39313	reqHeaders := make(http.Header)
39314	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
39315	for k, v := range c.header_ {
39316		reqHeaders[k] = v
39317	}
39318	reqHeaders.Set("User-Agent", c.s.userAgent())
39319	if c.ifNoneMatch_ != "" {
39320		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
39321	}
39322	var body io.Reader = nil
39323	c.urlParams_.Set("alt", alt)
39324	c.urlParams_.Set("prettyPrint", "false")
39325	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/instances")
39326	urls += "?" + c.urlParams_.Encode()
39327	req, err := http.NewRequest("GET", urls, body)
39328	if err != nil {
39329		return nil, err
39330	}
39331	req.Header = reqHeaders
39332	googleapi.Expand(req.URL, map[string]string{
39333		"parent": c.parent,
39334	})
39335	return gensupport.SendRequest(c.ctx_, c.s.client, req)
39336}
39337
39338// Do executes the "apigee.organizations.instances.list" call.
39339// Exactly one of *GoogleCloudApigeeV1ListInstancesResponse or error
39340// will be non-nil. Any non-2xx status code is an error. Response
39341// headers are in either
39342// *GoogleCloudApigeeV1ListInstancesResponse.ServerResponse.Header or
39343// (if a response was returned at all) in
39344// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
39345// whether the returned error was because http.StatusNotModified was
39346// returned.
39347func (c *OrganizationsInstancesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListInstancesResponse, error) {
39348	gensupport.SetOptions(c.urlParams_, opts...)
39349	res, err := c.doRequest("json")
39350	if res != nil && res.StatusCode == http.StatusNotModified {
39351		if res.Body != nil {
39352			res.Body.Close()
39353		}
39354		return nil, &googleapi.Error{
39355			Code:   res.StatusCode,
39356			Header: res.Header,
39357		}
39358	}
39359	if err != nil {
39360		return nil, err
39361	}
39362	defer googleapi.CloseBody(res)
39363	if err := googleapi.CheckResponse(res); err != nil {
39364		return nil, err
39365	}
39366	ret := &GoogleCloudApigeeV1ListInstancesResponse{
39367		ServerResponse: googleapi.ServerResponse{
39368			Header:         res.Header,
39369			HTTPStatusCode: res.StatusCode,
39370		},
39371	}
39372	target := &ret
39373	if err := gensupport.DecodeResponse(target, res); err != nil {
39374		return nil, err
39375	}
39376	return ret, nil
39377	// {
39378	//   "description": "Lists all Apigee runtime instances for the organization. **Note:** Not supported for Apigee hybrid.",
39379	//   "flatPath": "v1/organizations/{organizationsId}/instances",
39380	//   "httpMethod": "GET",
39381	//   "id": "apigee.organizations.instances.list",
39382	//   "parameterOrder": [
39383	//     "parent"
39384	//   ],
39385	//   "parameters": {
39386	//     "pageSize": {
39387	//       "description": "Maximum number of instances to return. Defaults to 25.",
39388	//       "format": "int32",
39389	//       "location": "query",
39390	//       "type": "integer"
39391	//     },
39392	//     "pageToken": {
39393	//       "description": "Page token, returned from a previous ListInstances call, that you can use to retrieve the next page of content.",
39394	//       "location": "query",
39395	//       "type": "string"
39396	//     },
39397	//     "parent": {
39398	//       "description": "Required. Name of the organization. Use the following structure in your request: `organizations/{org}`.",
39399	//       "location": "path",
39400	//       "pattern": "^organizations/[^/]+$",
39401	//       "required": true,
39402	//       "type": "string"
39403	//     }
39404	//   },
39405	//   "path": "v1/{+parent}/instances",
39406	//   "response": {
39407	//     "$ref": "GoogleCloudApigeeV1ListInstancesResponse"
39408	//   },
39409	//   "scopes": [
39410	//     "https://www.googleapis.com/auth/cloud-platform"
39411	//   ]
39412	// }
39413
39414}
39415
39416// Pages invokes f for each page of results.
39417// A non-nil error returned from f will halt the iteration.
39418// The provided context supersedes any context provided to the Context method.
39419func (c *OrganizationsInstancesListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListInstancesResponse) error) error {
39420	c.ctx_ = ctx
39421	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
39422	for {
39423		x, err := c.Do()
39424		if err != nil {
39425			return err
39426		}
39427		if err := f(x); err != nil {
39428			return err
39429		}
39430		if x.NextPageToken == "" {
39431			return nil
39432		}
39433		c.PageToken(x.NextPageToken)
39434	}
39435}
39436
39437// method id "apigee.organizations.instances.patch":
39438
39439type OrganizationsInstancesPatchCall struct {
39440	s                           *Service
39441	name                        string
39442	googlecloudapigeev1instance *GoogleCloudApigeeV1Instance
39443	urlParams_                  gensupport.URLParams
39444	ctx_                        context.Context
39445	header_                     http.Header
39446}
39447
39448// Patch: Updates an Apigee runtime instance. You can update the fields
39449// described in NodeConfig. No other fields will be updated. **Note:**
39450// Not supported for Apigee hybrid.
39451//
39452// - name: Name of the instance. Use the following structure in your
39453//   request: `organizations/{org}/instances/{instance}`.
39454func (r *OrganizationsInstancesService) Patch(name string, googlecloudapigeev1instance *GoogleCloudApigeeV1Instance) *OrganizationsInstancesPatchCall {
39455	c := &OrganizationsInstancesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39456	c.name = name
39457	c.googlecloudapigeev1instance = googlecloudapigeev1instance
39458	return c
39459}
39460
39461// UpdateMask sets the optional parameter "updateMask": List of fields
39462// to be updated.
39463func (c *OrganizationsInstancesPatchCall) UpdateMask(updateMask string) *OrganizationsInstancesPatchCall {
39464	c.urlParams_.Set("updateMask", updateMask)
39465	return c
39466}
39467
39468// Fields allows partial responses to be retrieved. See
39469// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
39470// for more information.
39471func (c *OrganizationsInstancesPatchCall) Fields(s ...googleapi.Field) *OrganizationsInstancesPatchCall {
39472	c.urlParams_.Set("fields", googleapi.CombineFields(s))
39473	return c
39474}
39475
39476// Context sets the context to be used in this call's Do method. Any
39477// pending HTTP request will be aborted if the provided context is
39478// canceled.
39479func (c *OrganizationsInstancesPatchCall) Context(ctx context.Context) *OrganizationsInstancesPatchCall {
39480	c.ctx_ = ctx
39481	return c
39482}
39483
39484// Header returns an http.Header that can be modified by the caller to
39485// add HTTP headers to the request.
39486func (c *OrganizationsInstancesPatchCall) Header() http.Header {
39487	if c.header_ == nil {
39488		c.header_ = make(http.Header)
39489	}
39490	return c.header_
39491}
39492
39493func (c *OrganizationsInstancesPatchCall) doRequest(alt string) (*http.Response, error) {
39494	reqHeaders := make(http.Header)
39495	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
39496	for k, v := range c.header_ {
39497		reqHeaders[k] = v
39498	}
39499	reqHeaders.Set("User-Agent", c.s.userAgent())
39500	var body io.Reader = nil
39501	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1instance)
39502	if err != nil {
39503		return nil, err
39504	}
39505	reqHeaders.Set("Content-Type", "application/json")
39506	c.urlParams_.Set("alt", alt)
39507	c.urlParams_.Set("prettyPrint", "false")
39508	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
39509	urls += "?" + c.urlParams_.Encode()
39510	req, err := http.NewRequest("PATCH", urls, body)
39511	if err != nil {
39512		return nil, err
39513	}
39514	req.Header = reqHeaders
39515	googleapi.Expand(req.URL, map[string]string{
39516		"name": c.name,
39517	})
39518	return gensupport.SendRequest(c.ctx_, c.s.client, req)
39519}
39520
39521// Do executes the "apigee.organizations.instances.patch" call.
39522// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
39523// Any non-2xx status code is an error. Response headers are in either
39524// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
39525// was returned at all) in error.(*googleapi.Error).Header. Use
39526// googleapi.IsNotModified to check whether the returned error was
39527// because http.StatusNotModified was returned.
39528func (c *OrganizationsInstancesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
39529	gensupport.SetOptions(c.urlParams_, opts...)
39530	res, err := c.doRequest("json")
39531	if res != nil && res.StatusCode == http.StatusNotModified {
39532		if res.Body != nil {
39533			res.Body.Close()
39534		}
39535		return nil, &googleapi.Error{
39536			Code:   res.StatusCode,
39537			Header: res.Header,
39538		}
39539	}
39540	if err != nil {
39541		return nil, err
39542	}
39543	defer googleapi.CloseBody(res)
39544	if err := googleapi.CheckResponse(res); err != nil {
39545		return nil, err
39546	}
39547	ret := &GoogleLongrunningOperation{
39548		ServerResponse: googleapi.ServerResponse{
39549			Header:         res.Header,
39550			HTTPStatusCode: res.StatusCode,
39551		},
39552	}
39553	target := &ret
39554	if err := gensupport.DecodeResponse(target, res); err != nil {
39555		return nil, err
39556	}
39557	return ret, nil
39558	// {
39559	//   "description": "Updates an Apigee runtime instance. You can update the fields described in NodeConfig. No other fields will be updated. **Note:** Not supported for Apigee hybrid.",
39560	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}",
39561	//   "httpMethod": "PATCH",
39562	//   "id": "apigee.organizations.instances.patch",
39563	//   "parameterOrder": [
39564	//     "name"
39565	//   ],
39566	//   "parameters": {
39567	//     "name": {
39568	//       "description": "Required. Name of the instance. Use the following structure in your request: `organizations/{org}/instances/{instance}`.",
39569	//       "location": "path",
39570	//       "pattern": "^organizations/[^/]+/instances/[^/]+$",
39571	//       "required": true,
39572	//       "type": "string"
39573	//     },
39574	//     "updateMask": {
39575	//       "description": "List of fields to be updated.",
39576	//       "format": "google-fieldmask",
39577	//       "location": "query",
39578	//       "type": "string"
39579	//     }
39580	//   },
39581	//   "path": "v1/{+name}",
39582	//   "request": {
39583	//     "$ref": "GoogleCloudApigeeV1Instance"
39584	//   },
39585	//   "response": {
39586	//     "$ref": "GoogleLongrunningOperation"
39587	//   },
39588	//   "scopes": [
39589	//     "https://www.googleapis.com/auth/cloud-platform"
39590	//   ]
39591	// }
39592
39593}
39594
39595// method id "apigee.organizations.instances.reportStatus":
39596
39597type OrganizationsInstancesReportStatusCall struct {
39598	s                                              *Service
39599	instance                                       string
39600	googlecloudapigeev1reportinstancestatusrequest *GoogleCloudApigeeV1ReportInstanceStatusRequest
39601	urlParams_                                     gensupport.URLParams
39602	ctx_                                           context.Context
39603	header_                                        http.Header
39604}
39605
39606// ReportStatus: Reports the latest status for a runtime instance.
39607//
39608// - instance: The name of the instance reporting this status. For SaaS
39609//   the request will be rejected if no instance exists under this name.
39610//   Format is organizations/{org}/instances/{instance}.
39611func (r *OrganizationsInstancesService) ReportStatus(instance string, googlecloudapigeev1reportinstancestatusrequest *GoogleCloudApigeeV1ReportInstanceStatusRequest) *OrganizationsInstancesReportStatusCall {
39612	c := &OrganizationsInstancesReportStatusCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39613	c.instance = instance
39614	c.googlecloudapigeev1reportinstancestatusrequest = googlecloudapigeev1reportinstancestatusrequest
39615	return c
39616}
39617
39618// Fields allows partial responses to be retrieved. See
39619// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
39620// for more information.
39621func (c *OrganizationsInstancesReportStatusCall) Fields(s ...googleapi.Field) *OrganizationsInstancesReportStatusCall {
39622	c.urlParams_.Set("fields", googleapi.CombineFields(s))
39623	return c
39624}
39625
39626// Context sets the context to be used in this call's Do method. Any
39627// pending HTTP request will be aborted if the provided context is
39628// canceled.
39629func (c *OrganizationsInstancesReportStatusCall) Context(ctx context.Context) *OrganizationsInstancesReportStatusCall {
39630	c.ctx_ = ctx
39631	return c
39632}
39633
39634// Header returns an http.Header that can be modified by the caller to
39635// add HTTP headers to the request.
39636func (c *OrganizationsInstancesReportStatusCall) Header() http.Header {
39637	if c.header_ == nil {
39638		c.header_ = make(http.Header)
39639	}
39640	return c.header_
39641}
39642
39643func (c *OrganizationsInstancesReportStatusCall) doRequest(alt string) (*http.Response, error) {
39644	reqHeaders := make(http.Header)
39645	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
39646	for k, v := range c.header_ {
39647		reqHeaders[k] = v
39648	}
39649	reqHeaders.Set("User-Agent", c.s.userAgent())
39650	var body io.Reader = nil
39651	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1reportinstancestatusrequest)
39652	if err != nil {
39653		return nil, err
39654	}
39655	reqHeaders.Set("Content-Type", "application/json")
39656	c.urlParams_.Set("alt", alt)
39657	c.urlParams_.Set("prettyPrint", "false")
39658	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+instance}:reportStatus")
39659	urls += "?" + c.urlParams_.Encode()
39660	req, err := http.NewRequest("POST", urls, body)
39661	if err != nil {
39662		return nil, err
39663	}
39664	req.Header = reqHeaders
39665	googleapi.Expand(req.URL, map[string]string{
39666		"instance": c.instance,
39667	})
39668	return gensupport.SendRequest(c.ctx_, c.s.client, req)
39669}
39670
39671// Do executes the "apigee.organizations.instances.reportStatus" call.
39672// Exactly one of *GoogleCloudApigeeV1ReportInstanceStatusResponse or
39673// error will be non-nil. Any non-2xx status code is an error. Response
39674// headers are in either
39675// *GoogleCloudApigeeV1ReportInstanceStatusResponse.ServerResponse.Header
39676//  or (if a response was returned at all) in
39677// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
39678// whether the returned error was because http.StatusNotModified was
39679// returned.
39680func (c *OrganizationsInstancesReportStatusCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ReportInstanceStatusResponse, error) {
39681	gensupport.SetOptions(c.urlParams_, opts...)
39682	res, err := c.doRequest("json")
39683	if res != nil && res.StatusCode == http.StatusNotModified {
39684		if res.Body != nil {
39685			res.Body.Close()
39686		}
39687		return nil, &googleapi.Error{
39688			Code:   res.StatusCode,
39689			Header: res.Header,
39690		}
39691	}
39692	if err != nil {
39693		return nil, err
39694	}
39695	defer googleapi.CloseBody(res)
39696	if err := googleapi.CheckResponse(res); err != nil {
39697		return nil, err
39698	}
39699	ret := &GoogleCloudApigeeV1ReportInstanceStatusResponse{
39700		ServerResponse: googleapi.ServerResponse{
39701			Header:         res.Header,
39702			HTTPStatusCode: res.StatusCode,
39703		},
39704	}
39705	target := &ret
39706	if err := gensupport.DecodeResponse(target, res); err != nil {
39707		return nil, err
39708	}
39709	return ret, nil
39710	// {
39711	//   "description": "Reports the latest status for a runtime instance.",
39712	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}:reportStatus",
39713	//   "httpMethod": "POST",
39714	//   "id": "apigee.organizations.instances.reportStatus",
39715	//   "parameterOrder": [
39716	//     "instance"
39717	//   ],
39718	//   "parameters": {
39719	//     "instance": {
39720	//       "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}",
39721	//       "location": "path",
39722	//       "pattern": "^organizations/[^/]+/instances/[^/]+$",
39723	//       "required": true,
39724	//       "type": "string"
39725	//     }
39726	//   },
39727	//   "path": "v1/{+instance}:reportStatus",
39728	//   "request": {
39729	//     "$ref": "GoogleCloudApigeeV1ReportInstanceStatusRequest"
39730	//   },
39731	//   "response": {
39732	//     "$ref": "GoogleCloudApigeeV1ReportInstanceStatusResponse"
39733	//   },
39734	//   "scopes": [
39735	//     "https://www.googleapis.com/auth/cloud-platform"
39736	//   ]
39737	// }
39738
39739}
39740
39741// method id "apigee.organizations.instances.attachments.create":
39742
39743type OrganizationsInstancesAttachmentsCreateCall struct {
39744	s                                     *Service
39745	parent                                string
39746	googlecloudapigeev1instanceattachment *GoogleCloudApigeeV1InstanceAttachment
39747	urlParams_                            gensupport.URLParams
39748	ctx_                                  context.Context
39749	header_                               http.Header
39750}
39751
39752// Create: Creates a new attachment of an environment to an instance.
39753// **Note:** Not supported for Apigee hybrid.
39754//
39755// - parent: Name of the instance. Use the following structure in your
39756//   request: `organizations/{org}/instances/{instance}`.
39757func (r *OrganizationsInstancesAttachmentsService) Create(parent string, googlecloudapigeev1instanceattachment *GoogleCloudApigeeV1InstanceAttachment) *OrganizationsInstancesAttachmentsCreateCall {
39758	c := &OrganizationsInstancesAttachmentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39759	c.parent = parent
39760	c.googlecloudapigeev1instanceattachment = googlecloudapigeev1instanceattachment
39761	return c
39762}
39763
39764// Fields allows partial responses to be retrieved. See
39765// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
39766// for more information.
39767func (c *OrganizationsInstancesAttachmentsCreateCall) Fields(s ...googleapi.Field) *OrganizationsInstancesAttachmentsCreateCall {
39768	c.urlParams_.Set("fields", googleapi.CombineFields(s))
39769	return c
39770}
39771
39772// Context sets the context to be used in this call's Do method. Any
39773// pending HTTP request will be aborted if the provided context is
39774// canceled.
39775func (c *OrganizationsInstancesAttachmentsCreateCall) Context(ctx context.Context) *OrganizationsInstancesAttachmentsCreateCall {
39776	c.ctx_ = ctx
39777	return c
39778}
39779
39780// Header returns an http.Header that can be modified by the caller to
39781// add HTTP headers to the request.
39782func (c *OrganizationsInstancesAttachmentsCreateCall) Header() http.Header {
39783	if c.header_ == nil {
39784		c.header_ = make(http.Header)
39785	}
39786	return c.header_
39787}
39788
39789func (c *OrganizationsInstancesAttachmentsCreateCall) doRequest(alt string) (*http.Response, error) {
39790	reqHeaders := make(http.Header)
39791	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
39792	for k, v := range c.header_ {
39793		reqHeaders[k] = v
39794	}
39795	reqHeaders.Set("User-Agent", c.s.userAgent())
39796	var body io.Reader = nil
39797	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1instanceattachment)
39798	if err != nil {
39799		return nil, err
39800	}
39801	reqHeaders.Set("Content-Type", "application/json")
39802	c.urlParams_.Set("alt", alt)
39803	c.urlParams_.Set("prettyPrint", "false")
39804	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attachments")
39805	urls += "?" + c.urlParams_.Encode()
39806	req, err := http.NewRequest("POST", urls, body)
39807	if err != nil {
39808		return nil, err
39809	}
39810	req.Header = reqHeaders
39811	googleapi.Expand(req.URL, map[string]string{
39812		"parent": c.parent,
39813	})
39814	return gensupport.SendRequest(c.ctx_, c.s.client, req)
39815}
39816
39817// Do executes the "apigee.organizations.instances.attachments.create" call.
39818// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
39819// Any non-2xx status code is an error. Response headers are in either
39820// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
39821// was returned at all) in error.(*googleapi.Error).Header. Use
39822// googleapi.IsNotModified to check whether the returned error was
39823// because http.StatusNotModified was returned.
39824func (c *OrganizationsInstancesAttachmentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
39825	gensupport.SetOptions(c.urlParams_, opts...)
39826	res, err := c.doRequest("json")
39827	if res != nil && res.StatusCode == http.StatusNotModified {
39828		if res.Body != nil {
39829			res.Body.Close()
39830		}
39831		return nil, &googleapi.Error{
39832			Code:   res.StatusCode,
39833			Header: res.Header,
39834		}
39835	}
39836	if err != nil {
39837		return nil, err
39838	}
39839	defer googleapi.CloseBody(res)
39840	if err := googleapi.CheckResponse(res); err != nil {
39841		return nil, err
39842	}
39843	ret := &GoogleLongrunningOperation{
39844		ServerResponse: googleapi.ServerResponse{
39845			Header:         res.Header,
39846			HTTPStatusCode: res.StatusCode,
39847		},
39848	}
39849	target := &ret
39850	if err := gensupport.DecodeResponse(target, res); err != nil {
39851		return nil, err
39852	}
39853	return ret, nil
39854	// {
39855	//   "description": "Creates a new attachment of an environment to an instance. **Note:** Not supported for Apigee hybrid.",
39856	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/attachments",
39857	//   "httpMethod": "POST",
39858	//   "id": "apigee.organizations.instances.attachments.create",
39859	//   "parameterOrder": [
39860	//     "parent"
39861	//   ],
39862	//   "parameters": {
39863	//     "parent": {
39864	//       "description": "Required. Name of the instance. Use the following structure in your request: `organizations/{org}/instances/{instance}`.",
39865	//       "location": "path",
39866	//       "pattern": "^organizations/[^/]+/instances/[^/]+$",
39867	//       "required": true,
39868	//       "type": "string"
39869	//     }
39870	//   },
39871	//   "path": "v1/{+parent}/attachments",
39872	//   "request": {
39873	//     "$ref": "GoogleCloudApigeeV1InstanceAttachment"
39874	//   },
39875	//   "response": {
39876	//     "$ref": "GoogleLongrunningOperation"
39877	//   },
39878	//   "scopes": [
39879	//     "https://www.googleapis.com/auth/cloud-platform"
39880	//   ]
39881	// }
39882
39883}
39884
39885// method id "apigee.organizations.instances.attachments.delete":
39886
39887type OrganizationsInstancesAttachmentsDeleteCall struct {
39888	s          *Service
39889	name       string
39890	urlParams_ gensupport.URLParams
39891	ctx_       context.Context
39892	header_    http.Header
39893}
39894
39895// Delete: Deletes an attachment. **Note:** Not supported for Apigee
39896// hybrid.
39897//
39898// - name: Name of the attachment. Use the following structure in your
39899//   request:
39900//   `organizations/{org}/instances/{instance}/attachments/{attachment}`.
39901func (r *OrganizationsInstancesAttachmentsService) Delete(name string) *OrganizationsInstancesAttachmentsDeleteCall {
39902	c := &OrganizationsInstancesAttachmentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39903	c.name = name
39904	return c
39905}
39906
39907// Fields allows partial responses to be retrieved. See
39908// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
39909// for more information.
39910func (c *OrganizationsInstancesAttachmentsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsInstancesAttachmentsDeleteCall {
39911	c.urlParams_.Set("fields", googleapi.CombineFields(s))
39912	return c
39913}
39914
39915// Context sets the context to be used in this call's Do method. Any
39916// pending HTTP request will be aborted if the provided context is
39917// canceled.
39918func (c *OrganizationsInstancesAttachmentsDeleteCall) Context(ctx context.Context) *OrganizationsInstancesAttachmentsDeleteCall {
39919	c.ctx_ = ctx
39920	return c
39921}
39922
39923// Header returns an http.Header that can be modified by the caller to
39924// add HTTP headers to the request.
39925func (c *OrganizationsInstancesAttachmentsDeleteCall) Header() http.Header {
39926	if c.header_ == nil {
39927		c.header_ = make(http.Header)
39928	}
39929	return c.header_
39930}
39931
39932func (c *OrganizationsInstancesAttachmentsDeleteCall) doRequest(alt string) (*http.Response, error) {
39933	reqHeaders := make(http.Header)
39934	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
39935	for k, v := range c.header_ {
39936		reqHeaders[k] = v
39937	}
39938	reqHeaders.Set("User-Agent", c.s.userAgent())
39939	var body io.Reader = nil
39940	c.urlParams_.Set("alt", alt)
39941	c.urlParams_.Set("prettyPrint", "false")
39942	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
39943	urls += "?" + c.urlParams_.Encode()
39944	req, err := http.NewRequest("DELETE", urls, body)
39945	if err != nil {
39946		return nil, err
39947	}
39948	req.Header = reqHeaders
39949	googleapi.Expand(req.URL, map[string]string{
39950		"name": c.name,
39951	})
39952	return gensupport.SendRequest(c.ctx_, c.s.client, req)
39953}
39954
39955// Do executes the "apigee.organizations.instances.attachments.delete" call.
39956// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
39957// Any non-2xx status code is an error. Response headers are in either
39958// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
39959// was returned at all) in error.(*googleapi.Error).Header. Use
39960// googleapi.IsNotModified to check whether the returned error was
39961// because http.StatusNotModified was returned.
39962func (c *OrganizationsInstancesAttachmentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
39963	gensupport.SetOptions(c.urlParams_, opts...)
39964	res, err := c.doRequest("json")
39965	if res != nil && res.StatusCode == http.StatusNotModified {
39966		if res.Body != nil {
39967			res.Body.Close()
39968		}
39969		return nil, &googleapi.Error{
39970			Code:   res.StatusCode,
39971			Header: res.Header,
39972		}
39973	}
39974	if err != nil {
39975		return nil, err
39976	}
39977	defer googleapi.CloseBody(res)
39978	if err := googleapi.CheckResponse(res); err != nil {
39979		return nil, err
39980	}
39981	ret := &GoogleLongrunningOperation{
39982		ServerResponse: googleapi.ServerResponse{
39983			Header:         res.Header,
39984			HTTPStatusCode: res.StatusCode,
39985		},
39986	}
39987	target := &ret
39988	if err := gensupport.DecodeResponse(target, res); err != nil {
39989		return nil, err
39990	}
39991	return ret, nil
39992	// {
39993	//   "description": "Deletes an attachment. **Note:** Not supported for Apigee hybrid.",
39994	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/attachments/{attachmentsId}",
39995	//   "httpMethod": "DELETE",
39996	//   "id": "apigee.organizations.instances.attachments.delete",
39997	//   "parameterOrder": [
39998	//     "name"
39999	//   ],
40000	//   "parameters": {
40001	//     "name": {
40002	//       "description": "Required. Name of the attachment. Use the following structure in your request: `organizations/{org}/instances/{instance}/attachments/{attachment}`.",
40003	//       "location": "path",
40004	//       "pattern": "^organizations/[^/]+/instances/[^/]+/attachments/[^/]+$",
40005	//       "required": true,
40006	//       "type": "string"
40007	//     }
40008	//   },
40009	//   "path": "v1/{+name}",
40010	//   "response": {
40011	//     "$ref": "GoogleLongrunningOperation"
40012	//   },
40013	//   "scopes": [
40014	//     "https://www.googleapis.com/auth/cloud-platform"
40015	//   ]
40016	// }
40017
40018}
40019
40020// method id "apigee.organizations.instances.attachments.get":
40021
40022type OrganizationsInstancesAttachmentsGetCall struct {
40023	s            *Service
40024	name         string
40025	urlParams_   gensupport.URLParams
40026	ifNoneMatch_ string
40027	ctx_         context.Context
40028	header_      http.Header
40029}
40030
40031// Get: Gets an attachment. **Note:** Not supported for Apigee hybrid.
40032//
40033// - name: Name of the attachment. Use the following structure in your
40034//   request:
40035//   `organizations/{org}/instances/{instance}/attachments/{attachment}`.
40036func (r *OrganizationsInstancesAttachmentsService) Get(name string) *OrganizationsInstancesAttachmentsGetCall {
40037	c := &OrganizationsInstancesAttachmentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40038	c.name = name
40039	return c
40040}
40041
40042// Fields allows partial responses to be retrieved. See
40043// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
40044// for more information.
40045func (c *OrganizationsInstancesAttachmentsGetCall) Fields(s ...googleapi.Field) *OrganizationsInstancesAttachmentsGetCall {
40046	c.urlParams_.Set("fields", googleapi.CombineFields(s))
40047	return c
40048}
40049
40050// IfNoneMatch sets the optional parameter which makes the operation
40051// fail if the object's ETag matches the given value. This is useful for
40052// getting updates only after the object has changed since the last
40053// request. Use googleapi.IsNotModified to check whether the response
40054// error from Do is the result of In-None-Match.
40055func (c *OrganizationsInstancesAttachmentsGetCall) IfNoneMatch(entityTag string) *OrganizationsInstancesAttachmentsGetCall {
40056	c.ifNoneMatch_ = entityTag
40057	return c
40058}
40059
40060// Context sets the context to be used in this call's Do method. Any
40061// pending HTTP request will be aborted if the provided context is
40062// canceled.
40063func (c *OrganizationsInstancesAttachmentsGetCall) Context(ctx context.Context) *OrganizationsInstancesAttachmentsGetCall {
40064	c.ctx_ = ctx
40065	return c
40066}
40067
40068// Header returns an http.Header that can be modified by the caller to
40069// add HTTP headers to the request.
40070func (c *OrganizationsInstancesAttachmentsGetCall) Header() http.Header {
40071	if c.header_ == nil {
40072		c.header_ = make(http.Header)
40073	}
40074	return c.header_
40075}
40076
40077func (c *OrganizationsInstancesAttachmentsGetCall) doRequest(alt string) (*http.Response, error) {
40078	reqHeaders := make(http.Header)
40079	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
40080	for k, v := range c.header_ {
40081		reqHeaders[k] = v
40082	}
40083	reqHeaders.Set("User-Agent", c.s.userAgent())
40084	if c.ifNoneMatch_ != "" {
40085		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
40086	}
40087	var body io.Reader = nil
40088	c.urlParams_.Set("alt", alt)
40089	c.urlParams_.Set("prettyPrint", "false")
40090	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
40091	urls += "?" + c.urlParams_.Encode()
40092	req, err := http.NewRequest("GET", urls, body)
40093	if err != nil {
40094		return nil, err
40095	}
40096	req.Header = reqHeaders
40097	googleapi.Expand(req.URL, map[string]string{
40098		"name": c.name,
40099	})
40100	return gensupport.SendRequest(c.ctx_, c.s.client, req)
40101}
40102
40103// Do executes the "apigee.organizations.instances.attachments.get" call.
40104// Exactly one of *GoogleCloudApigeeV1InstanceAttachment or error will
40105// be non-nil. Any non-2xx status code is an error. Response headers are
40106// in either
40107// *GoogleCloudApigeeV1InstanceAttachment.ServerResponse.Header or (if a
40108// response was returned at all) in error.(*googleapi.Error).Header. Use
40109// googleapi.IsNotModified to check whether the returned error was
40110// because http.StatusNotModified was returned.
40111func (c *OrganizationsInstancesAttachmentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1InstanceAttachment, error) {
40112	gensupport.SetOptions(c.urlParams_, opts...)
40113	res, err := c.doRequest("json")
40114	if res != nil && res.StatusCode == http.StatusNotModified {
40115		if res.Body != nil {
40116			res.Body.Close()
40117		}
40118		return nil, &googleapi.Error{
40119			Code:   res.StatusCode,
40120			Header: res.Header,
40121		}
40122	}
40123	if err != nil {
40124		return nil, err
40125	}
40126	defer googleapi.CloseBody(res)
40127	if err := googleapi.CheckResponse(res); err != nil {
40128		return nil, err
40129	}
40130	ret := &GoogleCloudApigeeV1InstanceAttachment{
40131		ServerResponse: googleapi.ServerResponse{
40132			Header:         res.Header,
40133			HTTPStatusCode: res.StatusCode,
40134		},
40135	}
40136	target := &ret
40137	if err := gensupport.DecodeResponse(target, res); err != nil {
40138		return nil, err
40139	}
40140	return ret, nil
40141	// {
40142	//   "description": "Gets an attachment. **Note:** Not supported for Apigee hybrid.",
40143	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/attachments/{attachmentsId}",
40144	//   "httpMethod": "GET",
40145	//   "id": "apigee.organizations.instances.attachments.get",
40146	//   "parameterOrder": [
40147	//     "name"
40148	//   ],
40149	//   "parameters": {
40150	//     "name": {
40151	//       "description": "Required. Name of the attachment. Use the following structure in your request: `organizations/{org}/instances/{instance}/attachments/{attachment}`",
40152	//       "location": "path",
40153	//       "pattern": "^organizations/[^/]+/instances/[^/]+/attachments/[^/]+$",
40154	//       "required": true,
40155	//       "type": "string"
40156	//     }
40157	//   },
40158	//   "path": "v1/{+name}",
40159	//   "response": {
40160	//     "$ref": "GoogleCloudApigeeV1InstanceAttachment"
40161	//   },
40162	//   "scopes": [
40163	//     "https://www.googleapis.com/auth/cloud-platform"
40164	//   ]
40165	// }
40166
40167}
40168
40169// method id "apigee.organizations.instances.attachments.list":
40170
40171type OrganizationsInstancesAttachmentsListCall struct {
40172	s            *Service
40173	parent       string
40174	urlParams_   gensupport.URLParams
40175	ifNoneMatch_ string
40176	ctx_         context.Context
40177	header_      http.Header
40178}
40179
40180// List: Lists all attachments to an instance. **Note:** Not supported
40181// for Apigee hybrid.
40182//
40183// - parent: Name of the organization. Use the following structure in
40184//   your request: `organizations/{org}/instances/{instance}`.
40185func (r *OrganizationsInstancesAttachmentsService) List(parent string) *OrganizationsInstancesAttachmentsListCall {
40186	c := &OrganizationsInstancesAttachmentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40187	c.parent = parent
40188	return c
40189}
40190
40191// PageSize sets the optional parameter "pageSize": Maximum number of
40192// instance attachments to return. Defaults to 25.
40193func (c *OrganizationsInstancesAttachmentsListCall) PageSize(pageSize int64) *OrganizationsInstancesAttachmentsListCall {
40194	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
40195	return c
40196}
40197
40198// PageToken sets the optional parameter "pageToken": Page token,
40199// returned by a previous ListInstanceAttachments call, that you can use
40200// to retrieve the next page of content.
40201func (c *OrganizationsInstancesAttachmentsListCall) PageToken(pageToken string) *OrganizationsInstancesAttachmentsListCall {
40202	c.urlParams_.Set("pageToken", pageToken)
40203	return c
40204}
40205
40206// Fields allows partial responses to be retrieved. See
40207// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
40208// for more information.
40209func (c *OrganizationsInstancesAttachmentsListCall) Fields(s ...googleapi.Field) *OrganizationsInstancesAttachmentsListCall {
40210	c.urlParams_.Set("fields", googleapi.CombineFields(s))
40211	return c
40212}
40213
40214// IfNoneMatch sets the optional parameter which makes the operation
40215// fail if the object's ETag matches the given value. This is useful for
40216// getting updates only after the object has changed since the last
40217// request. Use googleapi.IsNotModified to check whether the response
40218// error from Do is the result of In-None-Match.
40219func (c *OrganizationsInstancesAttachmentsListCall) IfNoneMatch(entityTag string) *OrganizationsInstancesAttachmentsListCall {
40220	c.ifNoneMatch_ = entityTag
40221	return c
40222}
40223
40224// Context sets the context to be used in this call's Do method. Any
40225// pending HTTP request will be aborted if the provided context is
40226// canceled.
40227func (c *OrganizationsInstancesAttachmentsListCall) Context(ctx context.Context) *OrganizationsInstancesAttachmentsListCall {
40228	c.ctx_ = ctx
40229	return c
40230}
40231
40232// Header returns an http.Header that can be modified by the caller to
40233// add HTTP headers to the request.
40234func (c *OrganizationsInstancesAttachmentsListCall) Header() http.Header {
40235	if c.header_ == nil {
40236		c.header_ = make(http.Header)
40237	}
40238	return c.header_
40239}
40240
40241func (c *OrganizationsInstancesAttachmentsListCall) doRequest(alt string) (*http.Response, error) {
40242	reqHeaders := make(http.Header)
40243	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
40244	for k, v := range c.header_ {
40245		reqHeaders[k] = v
40246	}
40247	reqHeaders.Set("User-Agent", c.s.userAgent())
40248	if c.ifNoneMatch_ != "" {
40249		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
40250	}
40251	var body io.Reader = nil
40252	c.urlParams_.Set("alt", alt)
40253	c.urlParams_.Set("prettyPrint", "false")
40254	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attachments")
40255	urls += "?" + c.urlParams_.Encode()
40256	req, err := http.NewRequest("GET", urls, body)
40257	if err != nil {
40258		return nil, err
40259	}
40260	req.Header = reqHeaders
40261	googleapi.Expand(req.URL, map[string]string{
40262		"parent": c.parent,
40263	})
40264	return gensupport.SendRequest(c.ctx_, c.s.client, req)
40265}
40266
40267// Do executes the "apigee.organizations.instances.attachments.list" call.
40268// Exactly one of *GoogleCloudApigeeV1ListInstanceAttachmentsResponse or
40269// error will be non-nil. Any non-2xx status code is an error. Response
40270// headers are in either
40271// *GoogleCloudApigeeV1ListInstanceAttachmentsResponse.ServerResponse.Hea
40272// der or (if a response was returned at all) in
40273// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
40274// whether the returned error was because http.StatusNotModified was
40275// returned.
40276func (c *OrganizationsInstancesAttachmentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListInstanceAttachmentsResponse, error) {
40277	gensupport.SetOptions(c.urlParams_, opts...)
40278	res, err := c.doRequest("json")
40279	if res != nil && res.StatusCode == http.StatusNotModified {
40280		if res.Body != nil {
40281			res.Body.Close()
40282		}
40283		return nil, &googleapi.Error{
40284			Code:   res.StatusCode,
40285			Header: res.Header,
40286		}
40287	}
40288	if err != nil {
40289		return nil, err
40290	}
40291	defer googleapi.CloseBody(res)
40292	if err := googleapi.CheckResponse(res); err != nil {
40293		return nil, err
40294	}
40295	ret := &GoogleCloudApigeeV1ListInstanceAttachmentsResponse{
40296		ServerResponse: googleapi.ServerResponse{
40297			Header:         res.Header,
40298			HTTPStatusCode: res.StatusCode,
40299		},
40300	}
40301	target := &ret
40302	if err := gensupport.DecodeResponse(target, res); err != nil {
40303		return nil, err
40304	}
40305	return ret, nil
40306	// {
40307	//   "description": "Lists all attachments to an instance. **Note:** Not supported for Apigee hybrid.",
40308	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/attachments",
40309	//   "httpMethod": "GET",
40310	//   "id": "apigee.organizations.instances.attachments.list",
40311	//   "parameterOrder": [
40312	//     "parent"
40313	//   ],
40314	//   "parameters": {
40315	//     "pageSize": {
40316	//       "description": "Maximum number of instance attachments to return. Defaults to 25.",
40317	//       "format": "int32",
40318	//       "location": "query",
40319	//       "type": "integer"
40320	//     },
40321	//     "pageToken": {
40322	//       "description": "Page token, returned by a previous ListInstanceAttachments call, that you can use to retrieve the next page of content.",
40323	//       "location": "query",
40324	//       "type": "string"
40325	//     },
40326	//     "parent": {
40327	//       "description": "Required. Name of the organization. Use the following structure in your request: `organizations/{org}/instances/{instance}`",
40328	//       "location": "path",
40329	//       "pattern": "^organizations/[^/]+/instances/[^/]+$",
40330	//       "required": true,
40331	//       "type": "string"
40332	//     }
40333	//   },
40334	//   "path": "v1/{+parent}/attachments",
40335	//   "response": {
40336	//     "$ref": "GoogleCloudApigeeV1ListInstanceAttachmentsResponse"
40337	//   },
40338	//   "scopes": [
40339	//     "https://www.googleapis.com/auth/cloud-platform"
40340	//   ]
40341	// }
40342
40343}
40344
40345// Pages invokes f for each page of results.
40346// A non-nil error returned from f will halt the iteration.
40347// The provided context supersedes any context provided to the Context method.
40348func (c *OrganizationsInstancesAttachmentsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListInstanceAttachmentsResponse) error) error {
40349	c.ctx_ = ctx
40350	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
40351	for {
40352		x, err := c.Do()
40353		if err != nil {
40354			return err
40355		}
40356		if err := f(x); err != nil {
40357			return err
40358		}
40359		if x.NextPageToken == "" {
40360			return nil
40361		}
40362		c.PageToken(x.NextPageToken)
40363	}
40364}
40365
40366// method id "apigee.organizations.instances.canaryevaluations.create":
40367
40368type OrganizationsInstancesCanaryevaluationsCreateCall struct {
40369	s                                   *Service
40370	parent                              string
40371	googlecloudapigeev1canaryevaluation *GoogleCloudApigeeV1CanaryEvaluation
40372	urlParams_                          gensupport.URLParams
40373	ctx_                                context.Context
40374	header_                             http.Header
40375}
40376
40377// Create: Creates a new canary evaluation for an organization.
40378//
40379// - parent: Name of the organization. Use the following structure in
40380//   your request: `organizations/{org}/instances/{instance}`.
40381func (r *OrganizationsInstancesCanaryevaluationsService) Create(parent string, googlecloudapigeev1canaryevaluation *GoogleCloudApigeeV1CanaryEvaluation) *OrganizationsInstancesCanaryevaluationsCreateCall {
40382	c := &OrganizationsInstancesCanaryevaluationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40383	c.parent = parent
40384	c.googlecloudapigeev1canaryevaluation = googlecloudapigeev1canaryevaluation
40385	return c
40386}
40387
40388// Fields allows partial responses to be retrieved. See
40389// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
40390// for more information.
40391func (c *OrganizationsInstancesCanaryevaluationsCreateCall) Fields(s ...googleapi.Field) *OrganizationsInstancesCanaryevaluationsCreateCall {
40392	c.urlParams_.Set("fields", googleapi.CombineFields(s))
40393	return c
40394}
40395
40396// Context sets the context to be used in this call's Do method. Any
40397// pending HTTP request will be aborted if the provided context is
40398// canceled.
40399func (c *OrganizationsInstancesCanaryevaluationsCreateCall) Context(ctx context.Context) *OrganizationsInstancesCanaryevaluationsCreateCall {
40400	c.ctx_ = ctx
40401	return c
40402}
40403
40404// Header returns an http.Header that can be modified by the caller to
40405// add HTTP headers to the request.
40406func (c *OrganizationsInstancesCanaryevaluationsCreateCall) Header() http.Header {
40407	if c.header_ == nil {
40408		c.header_ = make(http.Header)
40409	}
40410	return c.header_
40411}
40412
40413func (c *OrganizationsInstancesCanaryevaluationsCreateCall) doRequest(alt string) (*http.Response, error) {
40414	reqHeaders := make(http.Header)
40415	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
40416	for k, v := range c.header_ {
40417		reqHeaders[k] = v
40418	}
40419	reqHeaders.Set("User-Agent", c.s.userAgent())
40420	var body io.Reader = nil
40421	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1canaryevaluation)
40422	if err != nil {
40423		return nil, err
40424	}
40425	reqHeaders.Set("Content-Type", "application/json")
40426	c.urlParams_.Set("alt", alt)
40427	c.urlParams_.Set("prettyPrint", "false")
40428	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/canaryevaluations")
40429	urls += "?" + c.urlParams_.Encode()
40430	req, err := http.NewRequest("POST", urls, body)
40431	if err != nil {
40432		return nil, err
40433	}
40434	req.Header = reqHeaders
40435	googleapi.Expand(req.URL, map[string]string{
40436		"parent": c.parent,
40437	})
40438	return gensupport.SendRequest(c.ctx_, c.s.client, req)
40439}
40440
40441// Do executes the "apigee.organizations.instances.canaryevaluations.create" call.
40442// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
40443// Any non-2xx status code is an error. Response headers are in either
40444// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
40445// was returned at all) in error.(*googleapi.Error).Header. Use
40446// googleapi.IsNotModified to check whether the returned error was
40447// because http.StatusNotModified was returned.
40448func (c *OrganizationsInstancesCanaryevaluationsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
40449	gensupport.SetOptions(c.urlParams_, opts...)
40450	res, err := c.doRequest("json")
40451	if res != nil && res.StatusCode == http.StatusNotModified {
40452		if res.Body != nil {
40453			res.Body.Close()
40454		}
40455		return nil, &googleapi.Error{
40456			Code:   res.StatusCode,
40457			Header: res.Header,
40458		}
40459	}
40460	if err != nil {
40461		return nil, err
40462	}
40463	defer googleapi.CloseBody(res)
40464	if err := googleapi.CheckResponse(res); err != nil {
40465		return nil, err
40466	}
40467	ret := &GoogleLongrunningOperation{
40468		ServerResponse: googleapi.ServerResponse{
40469			Header:         res.Header,
40470			HTTPStatusCode: res.StatusCode,
40471		},
40472	}
40473	target := &ret
40474	if err := gensupport.DecodeResponse(target, res); err != nil {
40475		return nil, err
40476	}
40477	return ret, nil
40478	// {
40479	//   "description": "Creates a new canary evaluation for an organization.",
40480	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/canaryevaluations",
40481	//   "httpMethod": "POST",
40482	//   "id": "apigee.organizations.instances.canaryevaluations.create",
40483	//   "parameterOrder": [
40484	//     "parent"
40485	//   ],
40486	//   "parameters": {
40487	//     "parent": {
40488	//       "description": "Required. Name of the organization. Use the following structure in your request: `organizations/{org}/instances/{instance}`.",
40489	//       "location": "path",
40490	//       "pattern": "^organizations/[^/]+/instances/[^/]+$",
40491	//       "required": true,
40492	//       "type": "string"
40493	//     }
40494	//   },
40495	//   "path": "v1/{+parent}/canaryevaluations",
40496	//   "request": {
40497	//     "$ref": "GoogleCloudApigeeV1CanaryEvaluation"
40498	//   },
40499	//   "response": {
40500	//     "$ref": "GoogleLongrunningOperation"
40501	//   },
40502	//   "scopes": [
40503	//     "https://www.googleapis.com/auth/cloud-platform"
40504	//   ]
40505	// }
40506
40507}
40508
40509// method id "apigee.organizations.instances.canaryevaluations.get":
40510
40511type OrganizationsInstancesCanaryevaluationsGetCall struct {
40512	s            *Service
40513	name         string
40514	urlParams_   gensupport.URLParams
40515	ifNoneMatch_ string
40516	ctx_         context.Context
40517	header_      http.Header
40518}
40519
40520// Get: Gets a CanaryEvaluation for an organization.
40521//
40522// - name: Name of the CanaryEvaluation. Use the following structure in
40523//   your request:
40524//   `organizations/{org}/instances/*/canaryevaluations/{evaluation}`.
40525func (r *OrganizationsInstancesCanaryevaluationsService) Get(name string) *OrganizationsInstancesCanaryevaluationsGetCall {
40526	c := &OrganizationsInstancesCanaryevaluationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40527	c.name = name
40528	return c
40529}
40530
40531// Fields allows partial responses to be retrieved. See
40532// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
40533// for more information.
40534func (c *OrganizationsInstancesCanaryevaluationsGetCall) Fields(s ...googleapi.Field) *OrganizationsInstancesCanaryevaluationsGetCall {
40535	c.urlParams_.Set("fields", googleapi.CombineFields(s))
40536	return c
40537}
40538
40539// IfNoneMatch sets the optional parameter which makes the operation
40540// fail if the object's ETag matches the given value. This is useful for
40541// getting updates only after the object has changed since the last
40542// request. Use googleapi.IsNotModified to check whether the response
40543// error from Do is the result of In-None-Match.
40544func (c *OrganizationsInstancesCanaryevaluationsGetCall) IfNoneMatch(entityTag string) *OrganizationsInstancesCanaryevaluationsGetCall {
40545	c.ifNoneMatch_ = entityTag
40546	return c
40547}
40548
40549// Context sets the context to be used in this call's Do method. Any
40550// pending HTTP request will be aborted if the provided context is
40551// canceled.
40552func (c *OrganizationsInstancesCanaryevaluationsGetCall) Context(ctx context.Context) *OrganizationsInstancesCanaryevaluationsGetCall {
40553	c.ctx_ = ctx
40554	return c
40555}
40556
40557// Header returns an http.Header that can be modified by the caller to
40558// add HTTP headers to the request.
40559func (c *OrganizationsInstancesCanaryevaluationsGetCall) Header() http.Header {
40560	if c.header_ == nil {
40561		c.header_ = make(http.Header)
40562	}
40563	return c.header_
40564}
40565
40566func (c *OrganizationsInstancesCanaryevaluationsGetCall) doRequest(alt string) (*http.Response, error) {
40567	reqHeaders := make(http.Header)
40568	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
40569	for k, v := range c.header_ {
40570		reqHeaders[k] = v
40571	}
40572	reqHeaders.Set("User-Agent", c.s.userAgent())
40573	if c.ifNoneMatch_ != "" {
40574		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
40575	}
40576	var body io.Reader = nil
40577	c.urlParams_.Set("alt", alt)
40578	c.urlParams_.Set("prettyPrint", "false")
40579	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
40580	urls += "?" + c.urlParams_.Encode()
40581	req, err := http.NewRequest("GET", urls, body)
40582	if err != nil {
40583		return nil, err
40584	}
40585	req.Header = reqHeaders
40586	googleapi.Expand(req.URL, map[string]string{
40587		"name": c.name,
40588	})
40589	return gensupport.SendRequest(c.ctx_, c.s.client, req)
40590}
40591
40592// Do executes the "apigee.organizations.instances.canaryevaluations.get" call.
40593// Exactly one of *GoogleCloudApigeeV1CanaryEvaluation or error will be
40594// non-nil. Any non-2xx status code is an error. Response headers are in
40595// either *GoogleCloudApigeeV1CanaryEvaluation.ServerResponse.Header or
40596// (if a response was returned at all) in
40597// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
40598// whether the returned error was because http.StatusNotModified was
40599// returned.
40600func (c *OrganizationsInstancesCanaryevaluationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1CanaryEvaluation, error) {
40601	gensupport.SetOptions(c.urlParams_, opts...)
40602	res, err := c.doRequest("json")
40603	if res != nil && res.StatusCode == http.StatusNotModified {
40604		if res.Body != nil {
40605			res.Body.Close()
40606		}
40607		return nil, &googleapi.Error{
40608			Code:   res.StatusCode,
40609			Header: res.Header,
40610		}
40611	}
40612	if err != nil {
40613		return nil, err
40614	}
40615	defer googleapi.CloseBody(res)
40616	if err := googleapi.CheckResponse(res); err != nil {
40617		return nil, err
40618	}
40619	ret := &GoogleCloudApigeeV1CanaryEvaluation{
40620		ServerResponse: googleapi.ServerResponse{
40621			Header:         res.Header,
40622			HTTPStatusCode: res.StatusCode,
40623		},
40624	}
40625	target := &ret
40626	if err := gensupport.DecodeResponse(target, res); err != nil {
40627		return nil, err
40628	}
40629	return ret, nil
40630	// {
40631	//   "description": "Gets a CanaryEvaluation for an organization.",
40632	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/canaryevaluations/{canaryevaluationsId}",
40633	//   "httpMethod": "GET",
40634	//   "id": "apigee.organizations.instances.canaryevaluations.get",
40635	//   "parameterOrder": [
40636	//     "name"
40637	//   ],
40638	//   "parameters": {
40639	//     "name": {
40640	//       "description": "Required. Name of the CanaryEvaluation. Use the following structure in your request: `organizations/{org}/instances/*/canaryevaluations/{evaluation}`",
40641	//       "location": "path",
40642	//       "pattern": "^organizations/[^/]+/instances/[^/]+/canaryevaluations/[^/]+$",
40643	//       "required": true,
40644	//       "type": "string"
40645	//     }
40646	//   },
40647	//   "path": "v1/{+name}",
40648	//   "response": {
40649	//     "$ref": "GoogleCloudApigeeV1CanaryEvaluation"
40650	//   },
40651	//   "scopes": [
40652	//     "https://www.googleapis.com/auth/cloud-platform"
40653	//   ]
40654	// }
40655
40656}
40657
40658// method id "apigee.organizations.instances.natAddresses.activate":
40659
40660type OrganizationsInstancesNatAddressesActivateCall struct {
40661	s                                            *Service
40662	name                                         string
40663	googlecloudapigeev1activatenataddressrequest *GoogleCloudApigeeV1ActivateNatAddressRequest
40664	urlParams_                                   gensupport.URLParams
40665	ctx_                                         context.Context
40666	header_                                      http.Header
40667}
40668
40669// Activate: Activates the NAT address. The Apigee instance can now use
40670// this for Internet egress traffic. **Note:** Not supported for Apigee
40671// hybrid.
40672//
40673// - name: Name of the nat address. Use the following structure in your
40674//   request:
40675//   `organizations/{org}/instances/{instances}/natAddresses/{nataddress}
40676//   ``.
40677func (r *OrganizationsInstancesNatAddressesService) Activate(name string, googlecloudapigeev1activatenataddressrequest *GoogleCloudApigeeV1ActivateNatAddressRequest) *OrganizationsInstancesNatAddressesActivateCall {
40678	c := &OrganizationsInstancesNatAddressesActivateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40679	c.name = name
40680	c.googlecloudapigeev1activatenataddressrequest = googlecloudapigeev1activatenataddressrequest
40681	return c
40682}
40683
40684// Fields allows partial responses to be retrieved. See
40685// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
40686// for more information.
40687func (c *OrganizationsInstancesNatAddressesActivateCall) Fields(s ...googleapi.Field) *OrganizationsInstancesNatAddressesActivateCall {
40688	c.urlParams_.Set("fields", googleapi.CombineFields(s))
40689	return c
40690}
40691
40692// Context sets the context to be used in this call's Do method. Any
40693// pending HTTP request will be aborted if the provided context is
40694// canceled.
40695func (c *OrganizationsInstancesNatAddressesActivateCall) Context(ctx context.Context) *OrganizationsInstancesNatAddressesActivateCall {
40696	c.ctx_ = ctx
40697	return c
40698}
40699
40700// Header returns an http.Header that can be modified by the caller to
40701// add HTTP headers to the request.
40702func (c *OrganizationsInstancesNatAddressesActivateCall) Header() http.Header {
40703	if c.header_ == nil {
40704		c.header_ = make(http.Header)
40705	}
40706	return c.header_
40707}
40708
40709func (c *OrganizationsInstancesNatAddressesActivateCall) doRequest(alt string) (*http.Response, error) {
40710	reqHeaders := make(http.Header)
40711	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
40712	for k, v := range c.header_ {
40713		reqHeaders[k] = v
40714	}
40715	reqHeaders.Set("User-Agent", c.s.userAgent())
40716	var body io.Reader = nil
40717	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1activatenataddressrequest)
40718	if err != nil {
40719		return nil, err
40720	}
40721	reqHeaders.Set("Content-Type", "application/json")
40722	c.urlParams_.Set("alt", alt)
40723	c.urlParams_.Set("prettyPrint", "false")
40724	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:activate")
40725	urls += "?" + c.urlParams_.Encode()
40726	req, err := http.NewRequest("POST", urls, body)
40727	if err != nil {
40728		return nil, err
40729	}
40730	req.Header = reqHeaders
40731	googleapi.Expand(req.URL, map[string]string{
40732		"name": c.name,
40733	})
40734	return gensupport.SendRequest(c.ctx_, c.s.client, req)
40735}
40736
40737// Do executes the "apigee.organizations.instances.natAddresses.activate" call.
40738// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
40739// Any non-2xx status code is an error. Response headers are in either
40740// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
40741// was returned at all) in error.(*googleapi.Error).Header. Use
40742// googleapi.IsNotModified to check whether the returned error was
40743// because http.StatusNotModified was returned.
40744func (c *OrganizationsInstancesNatAddressesActivateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
40745	gensupport.SetOptions(c.urlParams_, opts...)
40746	res, err := c.doRequest("json")
40747	if res != nil && res.StatusCode == http.StatusNotModified {
40748		if res.Body != nil {
40749			res.Body.Close()
40750		}
40751		return nil, &googleapi.Error{
40752			Code:   res.StatusCode,
40753			Header: res.Header,
40754		}
40755	}
40756	if err != nil {
40757		return nil, err
40758	}
40759	defer googleapi.CloseBody(res)
40760	if err := googleapi.CheckResponse(res); err != nil {
40761		return nil, err
40762	}
40763	ret := &GoogleLongrunningOperation{
40764		ServerResponse: googleapi.ServerResponse{
40765			Header:         res.Header,
40766			HTTPStatusCode: res.StatusCode,
40767		},
40768	}
40769	target := &ret
40770	if err := gensupport.DecodeResponse(target, res); err != nil {
40771		return nil, err
40772	}
40773	return ret, nil
40774	// {
40775	//   "description": "Activates the NAT address. The Apigee instance can now use this for Internet egress traffic. **Note:** Not supported for Apigee hybrid.",
40776	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/natAddresses/{natAddressesId}:activate",
40777	//   "httpMethod": "POST",
40778	//   "id": "apigee.organizations.instances.natAddresses.activate",
40779	//   "parameterOrder": [
40780	//     "name"
40781	//   ],
40782	//   "parameters": {
40783	//     "name": {
40784	//       "description": "Required. Name of the nat address. Use the following structure in your request: `organizations/{org}/instances/{instances}/natAddresses/{nataddress}``",
40785	//       "location": "path",
40786	//       "pattern": "^organizations/[^/]+/instances/[^/]+/natAddresses/[^/]+$",
40787	//       "required": true,
40788	//       "type": "string"
40789	//     }
40790	//   },
40791	//   "path": "v1/{+name}:activate",
40792	//   "request": {
40793	//     "$ref": "GoogleCloudApigeeV1ActivateNatAddressRequest"
40794	//   },
40795	//   "response": {
40796	//     "$ref": "GoogleLongrunningOperation"
40797	//   },
40798	//   "scopes": [
40799	//     "https://www.googleapis.com/auth/cloud-platform"
40800	//   ]
40801	// }
40802
40803}
40804
40805// method id "apigee.organizations.instances.natAddresses.create":
40806
40807type OrganizationsInstancesNatAddressesCreateCall struct {
40808	s                             *Service
40809	parent                        string
40810	googlecloudapigeev1nataddress *GoogleCloudApigeeV1NatAddress
40811	urlParams_                    gensupport.URLParams
40812	ctx_                          context.Context
40813	header_                       http.Header
40814}
40815
40816// Create: Creates a NAT address. The address is created in the RESERVED
40817// state and a static external IP address will be provisioned. At this
40818// time, the instance will not use this IP address for Internet egress
40819// traffic. The address can be activated for use once any required
40820// firewall IP whitelisting has been completed. **Note:** Not supported
40821// for Apigee hybrid.
40822//
40823// - parent: Name of the instance. Use the following structure in your
40824//   request: `organizations/{org}/instances/{instance}`.
40825func (r *OrganizationsInstancesNatAddressesService) Create(parent string, googlecloudapigeev1nataddress *GoogleCloudApigeeV1NatAddress) *OrganizationsInstancesNatAddressesCreateCall {
40826	c := &OrganizationsInstancesNatAddressesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40827	c.parent = parent
40828	c.googlecloudapigeev1nataddress = googlecloudapigeev1nataddress
40829	return c
40830}
40831
40832// Fields allows partial responses to be retrieved. See
40833// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
40834// for more information.
40835func (c *OrganizationsInstancesNatAddressesCreateCall) Fields(s ...googleapi.Field) *OrganizationsInstancesNatAddressesCreateCall {
40836	c.urlParams_.Set("fields", googleapi.CombineFields(s))
40837	return c
40838}
40839
40840// Context sets the context to be used in this call's Do method. Any
40841// pending HTTP request will be aborted if the provided context is
40842// canceled.
40843func (c *OrganizationsInstancesNatAddressesCreateCall) Context(ctx context.Context) *OrganizationsInstancesNatAddressesCreateCall {
40844	c.ctx_ = ctx
40845	return c
40846}
40847
40848// Header returns an http.Header that can be modified by the caller to
40849// add HTTP headers to the request.
40850func (c *OrganizationsInstancesNatAddressesCreateCall) Header() http.Header {
40851	if c.header_ == nil {
40852		c.header_ = make(http.Header)
40853	}
40854	return c.header_
40855}
40856
40857func (c *OrganizationsInstancesNatAddressesCreateCall) doRequest(alt string) (*http.Response, error) {
40858	reqHeaders := make(http.Header)
40859	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
40860	for k, v := range c.header_ {
40861		reqHeaders[k] = v
40862	}
40863	reqHeaders.Set("User-Agent", c.s.userAgent())
40864	var body io.Reader = nil
40865	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1nataddress)
40866	if err != nil {
40867		return nil, err
40868	}
40869	reqHeaders.Set("Content-Type", "application/json")
40870	c.urlParams_.Set("alt", alt)
40871	c.urlParams_.Set("prettyPrint", "false")
40872	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/natAddresses")
40873	urls += "?" + c.urlParams_.Encode()
40874	req, err := http.NewRequest("POST", urls, body)
40875	if err != nil {
40876		return nil, err
40877	}
40878	req.Header = reqHeaders
40879	googleapi.Expand(req.URL, map[string]string{
40880		"parent": c.parent,
40881	})
40882	return gensupport.SendRequest(c.ctx_, c.s.client, req)
40883}
40884
40885// Do executes the "apigee.organizations.instances.natAddresses.create" call.
40886// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
40887// Any non-2xx status code is an error. Response headers are in either
40888// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
40889// was returned at all) in error.(*googleapi.Error).Header. Use
40890// googleapi.IsNotModified to check whether the returned error was
40891// because http.StatusNotModified was returned.
40892func (c *OrganizationsInstancesNatAddressesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
40893	gensupport.SetOptions(c.urlParams_, opts...)
40894	res, err := c.doRequest("json")
40895	if res != nil && res.StatusCode == http.StatusNotModified {
40896		if res.Body != nil {
40897			res.Body.Close()
40898		}
40899		return nil, &googleapi.Error{
40900			Code:   res.StatusCode,
40901			Header: res.Header,
40902		}
40903	}
40904	if err != nil {
40905		return nil, err
40906	}
40907	defer googleapi.CloseBody(res)
40908	if err := googleapi.CheckResponse(res); err != nil {
40909		return nil, err
40910	}
40911	ret := &GoogleLongrunningOperation{
40912		ServerResponse: googleapi.ServerResponse{
40913			Header:         res.Header,
40914			HTTPStatusCode: res.StatusCode,
40915		},
40916	}
40917	target := &ret
40918	if err := gensupport.DecodeResponse(target, res); err != nil {
40919		return nil, err
40920	}
40921	return ret, nil
40922	// {
40923	//   "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.",
40924	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/natAddresses",
40925	//   "httpMethod": "POST",
40926	//   "id": "apigee.organizations.instances.natAddresses.create",
40927	//   "parameterOrder": [
40928	//     "parent"
40929	//   ],
40930	//   "parameters": {
40931	//     "parent": {
40932	//       "description": "Required. Name of the instance. Use the following structure in your request: `organizations/{org}/instances/{instance}`",
40933	//       "location": "path",
40934	//       "pattern": "^organizations/[^/]+/instances/[^/]+$",
40935	//       "required": true,
40936	//       "type": "string"
40937	//     }
40938	//   },
40939	//   "path": "v1/{+parent}/natAddresses",
40940	//   "request": {
40941	//     "$ref": "GoogleCloudApigeeV1NatAddress"
40942	//   },
40943	//   "response": {
40944	//     "$ref": "GoogleLongrunningOperation"
40945	//   },
40946	//   "scopes": [
40947	//     "https://www.googleapis.com/auth/cloud-platform"
40948	//   ]
40949	// }
40950
40951}
40952
40953// method id "apigee.organizations.instances.natAddresses.delete":
40954
40955type OrganizationsInstancesNatAddressesDeleteCall struct {
40956	s          *Service
40957	name       string
40958	urlParams_ gensupport.URLParams
40959	ctx_       context.Context
40960	header_    http.Header
40961}
40962
40963// Delete: Deletes the NAT address. Connections that are actively using
40964// the address are drained before it is removed. **Note:** Not supported
40965// for Apigee hybrid.
40966//
40967// - name: Name of the nat address. Use the following structure in your
40968//   request:
40969//   `organizations/{org}/instances/{instances}/natAddresses/{nataddress}
40970//   ``.
40971func (r *OrganizationsInstancesNatAddressesService) Delete(name string) *OrganizationsInstancesNatAddressesDeleteCall {
40972	c := &OrganizationsInstancesNatAddressesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40973	c.name = name
40974	return c
40975}
40976
40977// Fields allows partial responses to be retrieved. See
40978// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
40979// for more information.
40980func (c *OrganizationsInstancesNatAddressesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsInstancesNatAddressesDeleteCall {
40981	c.urlParams_.Set("fields", googleapi.CombineFields(s))
40982	return c
40983}
40984
40985// Context sets the context to be used in this call's Do method. Any
40986// pending HTTP request will be aborted if the provided context is
40987// canceled.
40988func (c *OrganizationsInstancesNatAddressesDeleteCall) Context(ctx context.Context) *OrganizationsInstancesNatAddressesDeleteCall {
40989	c.ctx_ = ctx
40990	return c
40991}
40992
40993// Header returns an http.Header that can be modified by the caller to
40994// add HTTP headers to the request.
40995func (c *OrganizationsInstancesNatAddressesDeleteCall) Header() http.Header {
40996	if c.header_ == nil {
40997		c.header_ = make(http.Header)
40998	}
40999	return c.header_
41000}
41001
41002func (c *OrganizationsInstancesNatAddressesDeleteCall) doRequest(alt string) (*http.Response, error) {
41003	reqHeaders := make(http.Header)
41004	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
41005	for k, v := range c.header_ {
41006		reqHeaders[k] = v
41007	}
41008	reqHeaders.Set("User-Agent", c.s.userAgent())
41009	var body io.Reader = nil
41010	c.urlParams_.Set("alt", alt)
41011	c.urlParams_.Set("prettyPrint", "false")
41012	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
41013	urls += "?" + c.urlParams_.Encode()
41014	req, err := http.NewRequest("DELETE", urls, body)
41015	if err != nil {
41016		return nil, err
41017	}
41018	req.Header = reqHeaders
41019	googleapi.Expand(req.URL, map[string]string{
41020		"name": c.name,
41021	})
41022	return gensupport.SendRequest(c.ctx_, c.s.client, req)
41023}
41024
41025// Do executes the "apigee.organizations.instances.natAddresses.delete" call.
41026// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
41027// Any non-2xx status code is an error. Response headers are in either
41028// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
41029// was returned at all) in error.(*googleapi.Error).Header. Use
41030// googleapi.IsNotModified to check whether the returned error was
41031// because http.StatusNotModified was returned.
41032func (c *OrganizationsInstancesNatAddressesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
41033	gensupport.SetOptions(c.urlParams_, opts...)
41034	res, err := c.doRequest("json")
41035	if res != nil && res.StatusCode == http.StatusNotModified {
41036		if res.Body != nil {
41037			res.Body.Close()
41038		}
41039		return nil, &googleapi.Error{
41040			Code:   res.StatusCode,
41041			Header: res.Header,
41042		}
41043	}
41044	if err != nil {
41045		return nil, err
41046	}
41047	defer googleapi.CloseBody(res)
41048	if err := googleapi.CheckResponse(res); err != nil {
41049		return nil, err
41050	}
41051	ret := &GoogleLongrunningOperation{
41052		ServerResponse: googleapi.ServerResponse{
41053			Header:         res.Header,
41054			HTTPStatusCode: res.StatusCode,
41055		},
41056	}
41057	target := &ret
41058	if err := gensupport.DecodeResponse(target, res); err != nil {
41059		return nil, err
41060	}
41061	return ret, nil
41062	// {
41063	//   "description": "Deletes the NAT address. Connections that are actively using the address are drained before it is removed. **Note:** Not supported for Apigee hybrid.",
41064	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/natAddresses/{natAddressesId}",
41065	//   "httpMethod": "DELETE",
41066	//   "id": "apigee.organizations.instances.natAddresses.delete",
41067	//   "parameterOrder": [
41068	//     "name"
41069	//   ],
41070	//   "parameters": {
41071	//     "name": {
41072	//       "description": "Required. Name of the nat address. Use the following structure in your request: `organizations/{org}/instances/{instances}/natAddresses/{nataddress}``",
41073	//       "location": "path",
41074	//       "pattern": "^organizations/[^/]+/instances/[^/]+/natAddresses/[^/]+$",
41075	//       "required": true,
41076	//       "type": "string"
41077	//     }
41078	//   },
41079	//   "path": "v1/{+name}",
41080	//   "response": {
41081	//     "$ref": "GoogleLongrunningOperation"
41082	//   },
41083	//   "scopes": [
41084	//     "https://www.googleapis.com/auth/cloud-platform"
41085	//   ]
41086	// }
41087
41088}
41089
41090// method id "apigee.organizations.instances.natAddresses.get":
41091
41092type OrganizationsInstancesNatAddressesGetCall struct {
41093	s            *Service
41094	name         string
41095	urlParams_   gensupport.URLParams
41096	ifNoneMatch_ string
41097	ctx_         context.Context
41098	header_      http.Header
41099}
41100
41101// Get: Gets the details of a NAT address. **Note:** Not supported for
41102// Apigee hybrid.
41103//
41104// - name: Name of the nat address. Use the following structure in your
41105//   request:
41106//   `organizations/{org}/instances/{instances}/natAddresses/{nataddress}
41107//   `.
41108func (r *OrganizationsInstancesNatAddressesService) Get(name string) *OrganizationsInstancesNatAddressesGetCall {
41109	c := &OrganizationsInstancesNatAddressesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41110	c.name = name
41111	return c
41112}
41113
41114// Fields allows partial responses to be retrieved. See
41115// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
41116// for more information.
41117func (c *OrganizationsInstancesNatAddressesGetCall) Fields(s ...googleapi.Field) *OrganizationsInstancesNatAddressesGetCall {
41118	c.urlParams_.Set("fields", googleapi.CombineFields(s))
41119	return c
41120}
41121
41122// IfNoneMatch sets the optional parameter which makes the operation
41123// fail if the object's ETag matches the given value. This is useful for
41124// getting updates only after the object has changed since the last
41125// request. Use googleapi.IsNotModified to check whether the response
41126// error from Do is the result of In-None-Match.
41127func (c *OrganizationsInstancesNatAddressesGetCall) IfNoneMatch(entityTag string) *OrganizationsInstancesNatAddressesGetCall {
41128	c.ifNoneMatch_ = entityTag
41129	return c
41130}
41131
41132// Context sets the context to be used in this call's Do method. Any
41133// pending HTTP request will be aborted if the provided context is
41134// canceled.
41135func (c *OrganizationsInstancesNatAddressesGetCall) Context(ctx context.Context) *OrganizationsInstancesNatAddressesGetCall {
41136	c.ctx_ = ctx
41137	return c
41138}
41139
41140// Header returns an http.Header that can be modified by the caller to
41141// add HTTP headers to the request.
41142func (c *OrganizationsInstancesNatAddressesGetCall) Header() http.Header {
41143	if c.header_ == nil {
41144		c.header_ = make(http.Header)
41145	}
41146	return c.header_
41147}
41148
41149func (c *OrganizationsInstancesNatAddressesGetCall) doRequest(alt string) (*http.Response, error) {
41150	reqHeaders := make(http.Header)
41151	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
41152	for k, v := range c.header_ {
41153		reqHeaders[k] = v
41154	}
41155	reqHeaders.Set("User-Agent", c.s.userAgent())
41156	if c.ifNoneMatch_ != "" {
41157		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
41158	}
41159	var body io.Reader = nil
41160	c.urlParams_.Set("alt", alt)
41161	c.urlParams_.Set("prettyPrint", "false")
41162	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
41163	urls += "?" + c.urlParams_.Encode()
41164	req, err := http.NewRequest("GET", urls, body)
41165	if err != nil {
41166		return nil, err
41167	}
41168	req.Header = reqHeaders
41169	googleapi.Expand(req.URL, map[string]string{
41170		"name": c.name,
41171	})
41172	return gensupport.SendRequest(c.ctx_, c.s.client, req)
41173}
41174
41175// Do executes the "apigee.organizations.instances.natAddresses.get" call.
41176// Exactly one of *GoogleCloudApigeeV1NatAddress or error will be
41177// non-nil. Any non-2xx status code is an error. Response headers are in
41178// either *GoogleCloudApigeeV1NatAddress.ServerResponse.Header or (if a
41179// response was returned at all) in error.(*googleapi.Error).Header. Use
41180// googleapi.IsNotModified to check whether the returned error was
41181// because http.StatusNotModified was returned.
41182func (c *OrganizationsInstancesNatAddressesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1NatAddress, error) {
41183	gensupport.SetOptions(c.urlParams_, opts...)
41184	res, err := c.doRequest("json")
41185	if res != nil && res.StatusCode == http.StatusNotModified {
41186		if res.Body != nil {
41187			res.Body.Close()
41188		}
41189		return nil, &googleapi.Error{
41190			Code:   res.StatusCode,
41191			Header: res.Header,
41192		}
41193	}
41194	if err != nil {
41195		return nil, err
41196	}
41197	defer googleapi.CloseBody(res)
41198	if err := googleapi.CheckResponse(res); err != nil {
41199		return nil, err
41200	}
41201	ret := &GoogleCloudApigeeV1NatAddress{
41202		ServerResponse: googleapi.ServerResponse{
41203			Header:         res.Header,
41204			HTTPStatusCode: res.StatusCode,
41205		},
41206	}
41207	target := &ret
41208	if err := gensupport.DecodeResponse(target, res); err != nil {
41209		return nil, err
41210	}
41211	return ret, nil
41212	// {
41213	//   "description": "Gets the details of a NAT address. **Note:** Not supported for Apigee hybrid.",
41214	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/natAddresses/{natAddressesId}",
41215	//   "httpMethod": "GET",
41216	//   "id": "apigee.organizations.instances.natAddresses.get",
41217	//   "parameterOrder": [
41218	//     "name"
41219	//   ],
41220	//   "parameters": {
41221	//     "name": {
41222	//       "description": "Required. Name of the nat address. Use the following structure in your request: `organizations/{org}/instances/{instances}/natAddresses/{nataddress}`",
41223	//       "location": "path",
41224	//       "pattern": "^organizations/[^/]+/instances/[^/]+/natAddresses/[^/]+$",
41225	//       "required": true,
41226	//       "type": "string"
41227	//     }
41228	//   },
41229	//   "path": "v1/{+name}",
41230	//   "response": {
41231	//     "$ref": "GoogleCloudApigeeV1NatAddress"
41232	//   },
41233	//   "scopes": [
41234	//     "https://www.googleapis.com/auth/cloud-platform"
41235	//   ]
41236	// }
41237
41238}
41239
41240// method id "apigee.organizations.instances.natAddresses.list":
41241
41242type OrganizationsInstancesNatAddressesListCall struct {
41243	s            *Service
41244	parent       string
41245	urlParams_   gensupport.URLParams
41246	ifNoneMatch_ string
41247	ctx_         context.Context
41248	header_      http.Header
41249}
41250
41251// List: Lists the NAT addresses for an Apigee instance. **Note:** Not
41252// supported for Apigee hybrid.
41253//
41254// - parent: Name of the instance. Use the following structure in your
41255//   request: `organizations/{org}/instances/{instance}`.
41256func (r *OrganizationsInstancesNatAddressesService) List(parent string) *OrganizationsInstancesNatAddressesListCall {
41257	c := &OrganizationsInstancesNatAddressesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41258	c.parent = parent
41259	return c
41260}
41261
41262// PageSize sets the optional parameter "pageSize": Maximum number of
41263// natAddresses to return. Defaults to 25.
41264func (c *OrganizationsInstancesNatAddressesListCall) PageSize(pageSize int64) *OrganizationsInstancesNatAddressesListCall {
41265	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
41266	return c
41267}
41268
41269// PageToken sets the optional parameter "pageToken": Page token,
41270// returned from a previous ListNatAddresses call, that you can use to
41271// retrieve the next page of content.
41272func (c *OrganizationsInstancesNatAddressesListCall) PageToken(pageToken string) *OrganizationsInstancesNatAddressesListCall {
41273	c.urlParams_.Set("pageToken", pageToken)
41274	return c
41275}
41276
41277// Fields allows partial responses to be retrieved. See
41278// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
41279// for more information.
41280func (c *OrganizationsInstancesNatAddressesListCall) Fields(s ...googleapi.Field) *OrganizationsInstancesNatAddressesListCall {
41281	c.urlParams_.Set("fields", googleapi.CombineFields(s))
41282	return c
41283}
41284
41285// IfNoneMatch sets the optional parameter which makes the operation
41286// fail if the object's ETag matches the given value. This is useful for
41287// getting updates only after the object has changed since the last
41288// request. Use googleapi.IsNotModified to check whether the response
41289// error from Do is the result of In-None-Match.
41290func (c *OrganizationsInstancesNatAddressesListCall) IfNoneMatch(entityTag string) *OrganizationsInstancesNatAddressesListCall {
41291	c.ifNoneMatch_ = entityTag
41292	return c
41293}
41294
41295// Context sets the context to be used in this call's Do method. Any
41296// pending HTTP request will be aborted if the provided context is
41297// canceled.
41298func (c *OrganizationsInstancesNatAddressesListCall) Context(ctx context.Context) *OrganizationsInstancesNatAddressesListCall {
41299	c.ctx_ = ctx
41300	return c
41301}
41302
41303// Header returns an http.Header that can be modified by the caller to
41304// add HTTP headers to the request.
41305func (c *OrganizationsInstancesNatAddressesListCall) Header() http.Header {
41306	if c.header_ == nil {
41307		c.header_ = make(http.Header)
41308	}
41309	return c.header_
41310}
41311
41312func (c *OrganizationsInstancesNatAddressesListCall) doRequest(alt string) (*http.Response, error) {
41313	reqHeaders := make(http.Header)
41314	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
41315	for k, v := range c.header_ {
41316		reqHeaders[k] = v
41317	}
41318	reqHeaders.Set("User-Agent", c.s.userAgent())
41319	if c.ifNoneMatch_ != "" {
41320		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
41321	}
41322	var body io.Reader = nil
41323	c.urlParams_.Set("alt", alt)
41324	c.urlParams_.Set("prettyPrint", "false")
41325	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/natAddresses")
41326	urls += "?" + c.urlParams_.Encode()
41327	req, err := http.NewRequest("GET", urls, body)
41328	if err != nil {
41329		return nil, err
41330	}
41331	req.Header = reqHeaders
41332	googleapi.Expand(req.URL, map[string]string{
41333		"parent": c.parent,
41334	})
41335	return gensupport.SendRequest(c.ctx_, c.s.client, req)
41336}
41337
41338// Do executes the "apigee.organizations.instances.natAddresses.list" call.
41339// Exactly one of *GoogleCloudApigeeV1ListNatAddressesResponse or error
41340// will be non-nil. Any non-2xx status code is an error. Response
41341// headers are in either
41342// *GoogleCloudApigeeV1ListNatAddressesResponse.ServerResponse.Header or
41343// (if a response was returned at all) in
41344// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
41345// whether the returned error was because http.StatusNotModified was
41346// returned.
41347func (c *OrganizationsInstancesNatAddressesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListNatAddressesResponse, error) {
41348	gensupport.SetOptions(c.urlParams_, opts...)
41349	res, err := c.doRequest("json")
41350	if res != nil && res.StatusCode == http.StatusNotModified {
41351		if res.Body != nil {
41352			res.Body.Close()
41353		}
41354		return nil, &googleapi.Error{
41355			Code:   res.StatusCode,
41356			Header: res.Header,
41357		}
41358	}
41359	if err != nil {
41360		return nil, err
41361	}
41362	defer googleapi.CloseBody(res)
41363	if err := googleapi.CheckResponse(res); err != nil {
41364		return nil, err
41365	}
41366	ret := &GoogleCloudApigeeV1ListNatAddressesResponse{
41367		ServerResponse: googleapi.ServerResponse{
41368			Header:         res.Header,
41369			HTTPStatusCode: res.StatusCode,
41370		},
41371	}
41372	target := &ret
41373	if err := gensupport.DecodeResponse(target, res); err != nil {
41374		return nil, err
41375	}
41376	return ret, nil
41377	// {
41378	//   "description": "Lists the NAT addresses for an Apigee instance. **Note:** Not supported for Apigee hybrid.",
41379	//   "flatPath": "v1/organizations/{organizationsId}/instances/{instancesId}/natAddresses",
41380	//   "httpMethod": "GET",
41381	//   "id": "apigee.organizations.instances.natAddresses.list",
41382	//   "parameterOrder": [
41383	//     "parent"
41384	//   ],
41385	//   "parameters": {
41386	//     "pageSize": {
41387	//       "description": "Maximum number of natAddresses to return. Defaults to 25.",
41388	//       "format": "int32",
41389	//       "location": "query",
41390	//       "type": "integer"
41391	//     },
41392	//     "pageToken": {
41393	//       "description": "Page token, returned from a previous ListNatAddresses call, that you can use to retrieve the next page of content.",
41394	//       "location": "query",
41395	//       "type": "string"
41396	//     },
41397	//     "parent": {
41398	//       "description": "Required. Name of the instance. Use the following structure in your request: `organizations/{org}/instances/{instance}`",
41399	//       "location": "path",
41400	//       "pattern": "^organizations/[^/]+/instances/[^/]+$",
41401	//       "required": true,
41402	//       "type": "string"
41403	//     }
41404	//   },
41405	//   "path": "v1/{+parent}/natAddresses",
41406	//   "response": {
41407	//     "$ref": "GoogleCloudApigeeV1ListNatAddressesResponse"
41408	//   },
41409	//   "scopes": [
41410	//     "https://www.googleapis.com/auth/cloud-platform"
41411	//   ]
41412	// }
41413
41414}
41415
41416// Pages invokes f for each page of results.
41417// A non-nil error returned from f will halt the iteration.
41418// The provided context supersedes any context provided to the Context method.
41419func (c *OrganizationsInstancesNatAddressesListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListNatAddressesResponse) error) error {
41420	c.ctx_ = ctx
41421	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
41422	for {
41423		x, err := c.Do()
41424		if err != nil {
41425			return err
41426		}
41427		if err := f(x); err != nil {
41428			return err
41429		}
41430		if x.NextPageToken == "" {
41431			return nil
41432		}
41433		c.PageToken(x.NextPageToken)
41434	}
41435}
41436
41437// method id "apigee.organizations.keyvaluemaps.create":
41438
41439type OrganizationsKeyvaluemapsCreateCall struct {
41440	s                              *Service
41441	parent                         string
41442	googlecloudapigeev1keyvaluemap *GoogleCloudApigeeV1KeyValueMap
41443	urlParams_                     gensupport.URLParams
41444	ctx_                           context.Context
41445	header_                        http.Header
41446}
41447
41448// Create: Creates a key value map in an organization.
41449//
41450// - parent: The name of the organization in which to create the key
41451//   value map file. Must be of the form `organizations/{organization}`.
41452func (r *OrganizationsKeyvaluemapsService) Create(parent string, googlecloudapigeev1keyvaluemap *GoogleCloudApigeeV1KeyValueMap) *OrganizationsKeyvaluemapsCreateCall {
41453	c := &OrganizationsKeyvaluemapsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41454	c.parent = parent
41455	c.googlecloudapigeev1keyvaluemap = googlecloudapigeev1keyvaluemap
41456	return c
41457}
41458
41459// Fields allows partial responses to be retrieved. See
41460// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
41461// for more information.
41462func (c *OrganizationsKeyvaluemapsCreateCall) Fields(s ...googleapi.Field) *OrganizationsKeyvaluemapsCreateCall {
41463	c.urlParams_.Set("fields", googleapi.CombineFields(s))
41464	return c
41465}
41466
41467// Context sets the context to be used in this call's Do method. Any
41468// pending HTTP request will be aborted if the provided context is
41469// canceled.
41470func (c *OrganizationsKeyvaluemapsCreateCall) Context(ctx context.Context) *OrganizationsKeyvaluemapsCreateCall {
41471	c.ctx_ = ctx
41472	return c
41473}
41474
41475// Header returns an http.Header that can be modified by the caller to
41476// add HTTP headers to the request.
41477func (c *OrganizationsKeyvaluemapsCreateCall) Header() http.Header {
41478	if c.header_ == nil {
41479		c.header_ = make(http.Header)
41480	}
41481	return c.header_
41482}
41483
41484func (c *OrganizationsKeyvaluemapsCreateCall) doRequest(alt string) (*http.Response, error) {
41485	reqHeaders := make(http.Header)
41486	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
41487	for k, v := range c.header_ {
41488		reqHeaders[k] = v
41489	}
41490	reqHeaders.Set("User-Agent", c.s.userAgent())
41491	var body io.Reader = nil
41492	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1keyvaluemap)
41493	if err != nil {
41494		return nil, err
41495	}
41496	reqHeaders.Set("Content-Type", "application/json")
41497	c.urlParams_.Set("alt", alt)
41498	c.urlParams_.Set("prettyPrint", "false")
41499	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keyvaluemaps")
41500	urls += "?" + c.urlParams_.Encode()
41501	req, err := http.NewRequest("POST", urls, body)
41502	if err != nil {
41503		return nil, err
41504	}
41505	req.Header = reqHeaders
41506	googleapi.Expand(req.URL, map[string]string{
41507		"parent": c.parent,
41508	})
41509	return gensupport.SendRequest(c.ctx_, c.s.client, req)
41510}
41511
41512// Do executes the "apigee.organizations.keyvaluemaps.create" call.
41513// Exactly one of *GoogleCloudApigeeV1KeyValueMap or error will be
41514// non-nil. Any non-2xx status code is an error. Response headers are in
41515// either *GoogleCloudApigeeV1KeyValueMap.ServerResponse.Header or (if a
41516// response was returned at all) in error.(*googleapi.Error).Header. Use
41517// googleapi.IsNotModified to check whether the returned error was
41518// because http.StatusNotModified was returned.
41519func (c *OrganizationsKeyvaluemapsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueMap, error) {
41520	gensupport.SetOptions(c.urlParams_, opts...)
41521	res, err := c.doRequest("json")
41522	if res != nil && res.StatusCode == http.StatusNotModified {
41523		if res.Body != nil {
41524			res.Body.Close()
41525		}
41526		return nil, &googleapi.Error{
41527			Code:   res.StatusCode,
41528			Header: res.Header,
41529		}
41530	}
41531	if err != nil {
41532		return nil, err
41533	}
41534	defer googleapi.CloseBody(res)
41535	if err := googleapi.CheckResponse(res); err != nil {
41536		return nil, err
41537	}
41538	ret := &GoogleCloudApigeeV1KeyValueMap{
41539		ServerResponse: googleapi.ServerResponse{
41540			Header:         res.Header,
41541			HTTPStatusCode: res.StatusCode,
41542		},
41543	}
41544	target := &ret
41545	if err := gensupport.DecodeResponse(target, res); err != nil {
41546		return nil, err
41547	}
41548	return ret, nil
41549	// {
41550	//   "description": "Creates a key value map in an organization.",
41551	//   "flatPath": "v1/organizations/{organizationsId}/keyvaluemaps",
41552	//   "httpMethod": "POST",
41553	//   "id": "apigee.organizations.keyvaluemaps.create",
41554	//   "parameterOrder": [
41555	//     "parent"
41556	//   ],
41557	//   "parameters": {
41558	//     "parent": {
41559	//       "description": "Required. The name of the organization in which to create the key value map file. Must be of the form `organizations/{organization}`.",
41560	//       "location": "path",
41561	//       "pattern": "^organizations/[^/]+$",
41562	//       "required": true,
41563	//       "type": "string"
41564	//     }
41565	//   },
41566	//   "path": "v1/{+parent}/keyvaluemaps",
41567	//   "request": {
41568	//     "$ref": "GoogleCloudApigeeV1KeyValueMap"
41569	//   },
41570	//   "response": {
41571	//     "$ref": "GoogleCloudApigeeV1KeyValueMap"
41572	//   },
41573	//   "scopes": [
41574	//     "https://www.googleapis.com/auth/cloud-platform"
41575	//   ]
41576	// }
41577
41578}
41579
41580// method id "apigee.organizations.keyvaluemaps.delete":
41581
41582type OrganizationsKeyvaluemapsDeleteCall struct {
41583	s          *Service
41584	name       string
41585	urlParams_ gensupport.URLParams
41586	ctx_       context.Context
41587	header_    http.Header
41588}
41589
41590// Delete: Delete a key value map in an organization.
41591//
41592// - name: The name of the key value map. Must be of the form
41593//   `organizations/{organization}/keyvaluemaps/{keyvaluemap}`.
41594func (r *OrganizationsKeyvaluemapsService) Delete(name string) *OrganizationsKeyvaluemapsDeleteCall {
41595	c := &OrganizationsKeyvaluemapsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41596	c.name = name
41597	return c
41598}
41599
41600// Fields allows partial responses to be retrieved. See
41601// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
41602// for more information.
41603func (c *OrganizationsKeyvaluemapsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsKeyvaluemapsDeleteCall {
41604	c.urlParams_.Set("fields", googleapi.CombineFields(s))
41605	return c
41606}
41607
41608// Context sets the context to be used in this call's Do method. Any
41609// pending HTTP request will be aborted if the provided context is
41610// canceled.
41611func (c *OrganizationsKeyvaluemapsDeleteCall) Context(ctx context.Context) *OrganizationsKeyvaluemapsDeleteCall {
41612	c.ctx_ = ctx
41613	return c
41614}
41615
41616// Header returns an http.Header that can be modified by the caller to
41617// add HTTP headers to the request.
41618func (c *OrganizationsKeyvaluemapsDeleteCall) Header() http.Header {
41619	if c.header_ == nil {
41620		c.header_ = make(http.Header)
41621	}
41622	return c.header_
41623}
41624
41625func (c *OrganizationsKeyvaluemapsDeleteCall) doRequest(alt string) (*http.Response, error) {
41626	reqHeaders := make(http.Header)
41627	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
41628	for k, v := range c.header_ {
41629		reqHeaders[k] = v
41630	}
41631	reqHeaders.Set("User-Agent", c.s.userAgent())
41632	var body io.Reader = nil
41633	c.urlParams_.Set("alt", alt)
41634	c.urlParams_.Set("prettyPrint", "false")
41635	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
41636	urls += "?" + c.urlParams_.Encode()
41637	req, err := http.NewRequest("DELETE", urls, body)
41638	if err != nil {
41639		return nil, err
41640	}
41641	req.Header = reqHeaders
41642	googleapi.Expand(req.URL, map[string]string{
41643		"name": c.name,
41644	})
41645	return gensupport.SendRequest(c.ctx_, c.s.client, req)
41646}
41647
41648// Do executes the "apigee.organizations.keyvaluemaps.delete" call.
41649// Exactly one of *GoogleCloudApigeeV1KeyValueMap or error will be
41650// non-nil. Any non-2xx status code is an error. Response headers are in
41651// either *GoogleCloudApigeeV1KeyValueMap.ServerResponse.Header or (if a
41652// response was returned at all) in error.(*googleapi.Error).Header. Use
41653// googleapi.IsNotModified to check whether the returned error was
41654// because http.StatusNotModified was returned.
41655func (c *OrganizationsKeyvaluemapsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueMap, error) {
41656	gensupport.SetOptions(c.urlParams_, opts...)
41657	res, err := c.doRequest("json")
41658	if res != nil && res.StatusCode == http.StatusNotModified {
41659		if res.Body != nil {
41660			res.Body.Close()
41661		}
41662		return nil, &googleapi.Error{
41663			Code:   res.StatusCode,
41664			Header: res.Header,
41665		}
41666	}
41667	if err != nil {
41668		return nil, err
41669	}
41670	defer googleapi.CloseBody(res)
41671	if err := googleapi.CheckResponse(res); err != nil {
41672		return nil, err
41673	}
41674	ret := &GoogleCloudApigeeV1KeyValueMap{
41675		ServerResponse: googleapi.ServerResponse{
41676			Header:         res.Header,
41677			HTTPStatusCode: res.StatusCode,
41678		},
41679	}
41680	target := &ret
41681	if err := gensupport.DecodeResponse(target, res); err != nil {
41682		return nil, err
41683	}
41684	return ret, nil
41685	// {
41686	//   "description": "Delete a key value map in an organization.",
41687	//   "flatPath": "v1/organizations/{organizationsId}/keyvaluemaps/{keyvaluemapsId}",
41688	//   "httpMethod": "DELETE",
41689	//   "id": "apigee.organizations.keyvaluemaps.delete",
41690	//   "parameterOrder": [
41691	//     "name"
41692	//   ],
41693	//   "parameters": {
41694	//     "name": {
41695	//       "description": "Required. The name of the key value map. Must be of the form `organizations/{organization}/keyvaluemaps/{keyvaluemap}`.",
41696	//       "location": "path",
41697	//       "pattern": "^organizations/[^/]+/keyvaluemaps/[^/]+$",
41698	//       "required": true,
41699	//       "type": "string"
41700	//     }
41701	//   },
41702	//   "path": "v1/{+name}",
41703	//   "response": {
41704	//     "$ref": "GoogleCloudApigeeV1KeyValueMap"
41705	//   },
41706	//   "scopes": [
41707	//     "https://www.googleapis.com/auth/cloud-platform"
41708	//   ]
41709	// }
41710
41711}
41712
41713// method id "apigee.organizations.operations.get":
41714
41715type OrganizationsOperationsGetCall struct {
41716	s            *Service
41717	name         string
41718	urlParams_   gensupport.URLParams
41719	ifNoneMatch_ string
41720	ctx_         context.Context
41721	header_      http.Header
41722}
41723
41724// Get: Gets the latest state of a long-running operation. Clients can
41725// use this method to poll the operation result at intervals as
41726// recommended by the API service.
41727//
41728// - name: The name of the operation resource.
41729func (r *OrganizationsOperationsService) Get(name string) *OrganizationsOperationsGetCall {
41730	c := &OrganizationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41731	c.name = name
41732	return c
41733}
41734
41735// Fields allows partial responses to be retrieved. See
41736// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
41737// for more information.
41738func (c *OrganizationsOperationsGetCall) Fields(s ...googleapi.Field) *OrganizationsOperationsGetCall {
41739	c.urlParams_.Set("fields", googleapi.CombineFields(s))
41740	return c
41741}
41742
41743// IfNoneMatch sets the optional parameter which makes the operation
41744// fail if the object's ETag matches the given value. This is useful for
41745// getting updates only after the object has changed since the last
41746// request. Use googleapi.IsNotModified to check whether the response
41747// error from Do is the result of In-None-Match.
41748func (c *OrganizationsOperationsGetCall) IfNoneMatch(entityTag string) *OrganizationsOperationsGetCall {
41749	c.ifNoneMatch_ = entityTag
41750	return c
41751}
41752
41753// Context sets the context to be used in this call's Do method. Any
41754// pending HTTP request will be aborted if the provided context is
41755// canceled.
41756func (c *OrganizationsOperationsGetCall) Context(ctx context.Context) *OrganizationsOperationsGetCall {
41757	c.ctx_ = ctx
41758	return c
41759}
41760
41761// Header returns an http.Header that can be modified by the caller to
41762// add HTTP headers to the request.
41763func (c *OrganizationsOperationsGetCall) Header() http.Header {
41764	if c.header_ == nil {
41765		c.header_ = make(http.Header)
41766	}
41767	return c.header_
41768}
41769
41770func (c *OrganizationsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
41771	reqHeaders := make(http.Header)
41772	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
41773	for k, v := range c.header_ {
41774		reqHeaders[k] = v
41775	}
41776	reqHeaders.Set("User-Agent", c.s.userAgent())
41777	if c.ifNoneMatch_ != "" {
41778		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
41779	}
41780	var body io.Reader = nil
41781	c.urlParams_.Set("alt", alt)
41782	c.urlParams_.Set("prettyPrint", "false")
41783	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
41784	urls += "?" + c.urlParams_.Encode()
41785	req, err := http.NewRequest("GET", urls, body)
41786	if err != nil {
41787		return nil, err
41788	}
41789	req.Header = reqHeaders
41790	googleapi.Expand(req.URL, map[string]string{
41791		"name": c.name,
41792	})
41793	return gensupport.SendRequest(c.ctx_, c.s.client, req)
41794}
41795
41796// Do executes the "apigee.organizations.operations.get" call.
41797// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
41798// Any non-2xx status code is an error. Response headers are in either
41799// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
41800// was returned at all) in error.(*googleapi.Error).Header. Use
41801// googleapi.IsNotModified to check whether the returned error was
41802// because http.StatusNotModified was returned.
41803func (c *OrganizationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
41804	gensupport.SetOptions(c.urlParams_, opts...)
41805	res, err := c.doRequest("json")
41806	if res != nil && res.StatusCode == http.StatusNotModified {
41807		if res.Body != nil {
41808			res.Body.Close()
41809		}
41810		return nil, &googleapi.Error{
41811			Code:   res.StatusCode,
41812			Header: res.Header,
41813		}
41814	}
41815	if err != nil {
41816		return nil, err
41817	}
41818	defer googleapi.CloseBody(res)
41819	if err := googleapi.CheckResponse(res); err != nil {
41820		return nil, err
41821	}
41822	ret := &GoogleLongrunningOperation{
41823		ServerResponse: googleapi.ServerResponse{
41824			Header:         res.Header,
41825			HTTPStatusCode: res.StatusCode,
41826		},
41827	}
41828	target := &ret
41829	if err := gensupport.DecodeResponse(target, res); err != nil {
41830		return nil, err
41831	}
41832	return ret, nil
41833	// {
41834	//   "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.",
41835	//   "flatPath": "v1/organizations/{organizationsId}/operations/{operationsId}",
41836	//   "httpMethod": "GET",
41837	//   "id": "apigee.organizations.operations.get",
41838	//   "parameterOrder": [
41839	//     "name"
41840	//   ],
41841	//   "parameters": {
41842	//     "name": {
41843	//       "description": "The name of the operation resource.",
41844	//       "location": "path",
41845	//       "pattern": "^organizations/[^/]+/operations/[^/]+$",
41846	//       "required": true,
41847	//       "type": "string"
41848	//     }
41849	//   },
41850	//   "path": "v1/{+name}",
41851	//   "response": {
41852	//     "$ref": "GoogleLongrunningOperation"
41853	//   },
41854	//   "scopes": [
41855	//     "https://www.googleapis.com/auth/cloud-platform"
41856	//   ]
41857	// }
41858
41859}
41860
41861// method id "apigee.organizations.operations.list":
41862
41863type OrganizationsOperationsListCall struct {
41864	s            *Service
41865	name         string
41866	urlParams_   gensupport.URLParams
41867	ifNoneMatch_ string
41868	ctx_         context.Context
41869	header_      http.Header
41870}
41871
41872// List: Lists operations that match the specified filter in the
41873// request. If the server doesn't support this method, it returns
41874// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to
41875// override the binding to use different resource name schemes, such as
41876// `users/*/operations`. To override the binding, API services can add a
41877// binding such as "/v1/{name=users/*}/operations" to their service
41878// configuration. For backwards compatibility, the default name includes
41879// the operations collection id, however overriding users must ensure
41880// the name binding is the parent resource, without the operations
41881// collection id.
41882//
41883// - name: The name of the operation's parent resource.
41884func (r *OrganizationsOperationsService) List(name string) *OrganizationsOperationsListCall {
41885	c := &OrganizationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41886	c.name = name
41887	return c
41888}
41889
41890// Filter sets the optional parameter "filter": The standard list
41891// filter.
41892func (c *OrganizationsOperationsListCall) Filter(filter string) *OrganizationsOperationsListCall {
41893	c.urlParams_.Set("filter", filter)
41894	return c
41895}
41896
41897// PageSize sets the optional parameter "pageSize": The standard list
41898// page size.
41899func (c *OrganizationsOperationsListCall) PageSize(pageSize int64) *OrganizationsOperationsListCall {
41900	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
41901	return c
41902}
41903
41904// PageToken sets the optional parameter "pageToken": The standard list
41905// page token.
41906func (c *OrganizationsOperationsListCall) PageToken(pageToken string) *OrganizationsOperationsListCall {
41907	c.urlParams_.Set("pageToken", pageToken)
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 *OrganizationsOperationsListCall) Fields(s ...googleapi.Field) *OrganizationsOperationsListCall {
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 *OrganizationsOperationsListCall) IfNoneMatch(entityTag string) *OrganizationsOperationsListCall {
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 *OrganizationsOperationsListCall) Context(ctx context.Context) *OrganizationsOperationsListCall {
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 *OrganizationsOperationsListCall) Header() http.Header {
41940	if c.header_ == nil {
41941		c.header_ = make(http.Header)
41942	}
41943	return c.header_
41944}
41945
41946func (c *OrganizationsOperationsListCall) doRequest(alt string) (*http.Response, error) {
41947	reqHeaders := make(http.Header)
41948	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
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/{+name}/operations")
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		"name": c.name,
41968	})
41969	return gensupport.SendRequest(c.ctx_, c.s.client, req)
41970}
41971
41972// Do executes the "apigee.organizations.operations.list" call.
41973// Exactly one of *GoogleLongrunningListOperationsResponse or error will
41974// be non-nil. Any non-2xx status code is an error. Response headers are
41975// in either
41976// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if
41977// a response was returned at all) in error.(*googleapi.Error).Header.
41978// Use googleapi.IsNotModified to check whether the returned error was
41979// because http.StatusNotModified was returned.
41980func (c *OrganizationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
41981	gensupport.SetOptions(c.urlParams_, opts...)
41982	res, err := c.doRequest("json")
41983	if res != nil && res.StatusCode == http.StatusNotModified {
41984		if res.Body != nil {
41985			res.Body.Close()
41986		}
41987		return nil, &googleapi.Error{
41988			Code:   res.StatusCode,
41989			Header: res.Header,
41990		}
41991	}
41992	if err != nil {
41993		return nil, err
41994	}
41995	defer googleapi.CloseBody(res)
41996	if err := googleapi.CheckResponse(res); err != nil {
41997		return nil, err
41998	}
41999	ret := &GoogleLongrunningListOperationsResponse{
42000		ServerResponse: googleapi.ServerResponse{
42001			Header:         res.Header,
42002			HTTPStatusCode: res.StatusCode,
42003		},
42004	}
42005	target := &ret
42006	if err := gensupport.DecodeResponse(target, res); err != nil {
42007		return nil, err
42008	}
42009	return ret, nil
42010	// {
42011	//   "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.",
42012	//   "flatPath": "v1/organizations/{organizationsId}/operations",
42013	//   "httpMethod": "GET",
42014	//   "id": "apigee.organizations.operations.list",
42015	//   "parameterOrder": [
42016	//     "name"
42017	//   ],
42018	//   "parameters": {
42019	//     "filter": {
42020	//       "description": "The standard list filter.",
42021	//       "location": "query",
42022	//       "type": "string"
42023	//     },
42024	//     "name": {
42025	//       "description": "The name of the operation's parent resource.",
42026	//       "location": "path",
42027	//       "pattern": "^organizations/[^/]+$",
42028	//       "required": true,
42029	//       "type": "string"
42030	//     },
42031	//     "pageSize": {
42032	//       "description": "The standard list page size.",
42033	//       "format": "int32",
42034	//       "location": "query",
42035	//       "type": "integer"
42036	//     },
42037	//     "pageToken": {
42038	//       "description": "The standard list page token.",
42039	//       "location": "query",
42040	//       "type": "string"
42041	//     }
42042	//   },
42043	//   "path": "v1/{+name}/operations",
42044	//   "response": {
42045	//     "$ref": "GoogleLongrunningListOperationsResponse"
42046	//   },
42047	//   "scopes": [
42048	//     "https://www.googleapis.com/auth/cloud-platform"
42049	//   ]
42050	// }
42051
42052}
42053
42054// Pages invokes f for each page of results.
42055// A non-nil error returned from f will halt the iteration.
42056// The provided context supersedes any context provided to the Context method.
42057func (c *OrganizationsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
42058	c.ctx_ = ctx
42059	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
42060	for {
42061		x, err := c.Do()
42062		if err != nil {
42063			return err
42064		}
42065		if err := f(x); err != nil {
42066			return err
42067		}
42068		if x.NextPageToken == "" {
42069			return nil
42070		}
42071		c.PageToken(x.NextPageToken)
42072	}
42073}
42074
42075// method id "apigee.organizations.optimizedHostStats.get":
42076
42077type OrganizationsOptimizedHostStatsGetCall struct {
42078	s            *Service
42079	name         string
42080	urlParams_   gensupport.URLParams
42081	ifNoneMatch_ string
42082	ctx_         context.Context
42083	header_      http.Header
42084}
42085
42086// Get: This api is similar to GetHostStats except that the response is
42087// less verbose.
42088//
42089// - name: The resource name for which the interactive query will be
42090//   executed. Must be of the form
42091//   `organizations/{organization_id}/optimizedHostStats/{dimensions}`.
42092//   Dimensions let you view metrics in meaningful groupings. E.g.
42093//   apiproxy, target_host. The value of dimensions should be comma
42094//   separated list as shown below
42095//   `organizations/{org}/optimizedHostStats/apiproxy,request_verb`.
42096func (r *OrganizationsOptimizedHostStatsService) Get(name string) *OrganizationsOptimizedHostStatsGetCall {
42097	c := &OrganizationsOptimizedHostStatsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42098	c.name = name
42099	return c
42100}
42101
42102// Accuracy sets the optional parameter "accuracy": Legacy field: not
42103// used anymore.
42104func (c *OrganizationsOptimizedHostStatsGetCall) Accuracy(accuracy string) *OrganizationsOptimizedHostStatsGetCall {
42105	c.urlParams_.Set("accuracy", accuracy)
42106	return c
42107}
42108
42109// EnvgroupHostname sets the optional parameter "envgroupHostname":
42110// Required. The hostname for which the interactive query will be
42111// executed.
42112func (c *OrganizationsOptimizedHostStatsGetCall) EnvgroupHostname(envgroupHostname string) *OrganizationsOptimizedHostStatsGetCall {
42113	c.urlParams_.Set("envgroupHostname", envgroupHostname)
42114	return c
42115}
42116
42117// Filter sets the optional parameter "filter": Enables drill-down on
42118// specific dimension values.
42119func (c *OrganizationsOptimizedHostStatsGetCall) Filter(filter string) *OrganizationsOptimizedHostStatsGetCall {
42120	c.urlParams_.Set("filter", filter)
42121	return c
42122}
42123
42124// Limit sets the optional parameter "limit": This parameter is used to
42125// limit the number of result items. Default and the max value is 14400.
42126func (c *OrganizationsOptimizedHostStatsGetCall) Limit(limit string) *OrganizationsOptimizedHostStatsGetCall {
42127	c.urlParams_.Set("limit", limit)
42128	return c
42129}
42130
42131// Offset sets the optional parameter "offset": Use offset with limit to
42132// enable pagination of results. For example, to display results 11-20,
42133// set limit to '10' and offset to '10'.
42134func (c *OrganizationsOptimizedHostStatsGetCall) Offset(offset string) *OrganizationsOptimizedHostStatsGetCall {
42135	c.urlParams_.Set("offset", offset)
42136	return c
42137}
42138
42139// Realtime sets the optional parameter "realtime": Legacy field: not
42140// used anymore.
42141func (c *OrganizationsOptimizedHostStatsGetCall) Realtime(realtime bool) *OrganizationsOptimizedHostStatsGetCall {
42142	c.urlParams_.Set("realtime", fmt.Sprint(realtime))
42143	return c
42144}
42145
42146// Select sets the optional parameter "select": Required. The select
42147// parameter contains a comma separated list of metrics. E.g.
42148// sum(message_count),sum(error_count)
42149func (c *OrganizationsOptimizedHostStatsGetCall) Select(select_ string) *OrganizationsOptimizedHostStatsGetCall {
42150	c.urlParams_.Set("select", select_)
42151	return c
42152}
42153
42154// Sort sets the optional parameter "sort": This parameter specifies if
42155// the sort order should be ascending or descending Supported values are
42156// DESC and ASC.
42157func (c *OrganizationsOptimizedHostStatsGetCall) Sort(sort string) *OrganizationsOptimizedHostStatsGetCall {
42158	c.urlParams_.Set("sort", sort)
42159	return c
42160}
42161
42162// Sortby sets the optional parameter "sortby": Comma separated list of
42163// columns to sort the final result.
42164func (c *OrganizationsOptimizedHostStatsGetCall) Sortby(sortby string) *OrganizationsOptimizedHostStatsGetCall {
42165	c.urlParams_.Set("sortby", sortby)
42166	return c
42167}
42168
42169// TimeRange sets the optional parameter "timeRange": Required. Time
42170// interval for the interactive query. Time range is specified as
42171// start~end. E.g 04/15/2017 00:00~05/15/2017 23:59.
42172func (c *OrganizationsOptimizedHostStatsGetCall) TimeRange(timeRange string) *OrganizationsOptimizedHostStatsGetCall {
42173	c.urlParams_.Set("timeRange", timeRange)
42174	return c
42175}
42176
42177// TimeUnit sets the optional parameter "timeUnit": A value of second,
42178// minute, hour, day, week, month. Time Unit specifies the granularity
42179// of metrics returned.
42180func (c *OrganizationsOptimizedHostStatsGetCall) TimeUnit(timeUnit string) *OrganizationsOptimizedHostStatsGetCall {
42181	c.urlParams_.Set("timeUnit", timeUnit)
42182	return c
42183}
42184
42185// Topk sets the optional parameter "topk": Take 'top k' results from
42186// results, for example, to return the top 5 results 'topk=5'.
42187func (c *OrganizationsOptimizedHostStatsGetCall) Topk(topk string) *OrganizationsOptimizedHostStatsGetCall {
42188	c.urlParams_.Set("topk", topk)
42189	return c
42190}
42191
42192// TsAscending sets the optional parameter "tsAscending": Lists
42193// timestamps in ascending order if set to true. Recommend setting this
42194// value to true if you are using sortby with sort=DESC.
42195func (c *OrganizationsOptimizedHostStatsGetCall) TsAscending(tsAscending bool) *OrganizationsOptimizedHostStatsGetCall {
42196	c.urlParams_.Set("tsAscending", fmt.Sprint(tsAscending))
42197	return c
42198}
42199
42200// Tzo sets the optional parameter "tzo": This parameters contains the
42201// timezone offset value.
42202func (c *OrganizationsOptimizedHostStatsGetCall) Tzo(tzo string) *OrganizationsOptimizedHostStatsGetCall {
42203	c.urlParams_.Set("tzo", tzo)
42204	return c
42205}
42206
42207// Fields allows partial responses to be retrieved. See
42208// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
42209// for more information.
42210func (c *OrganizationsOptimizedHostStatsGetCall) Fields(s ...googleapi.Field) *OrganizationsOptimizedHostStatsGetCall {
42211	c.urlParams_.Set("fields", googleapi.CombineFields(s))
42212	return c
42213}
42214
42215// IfNoneMatch sets the optional parameter which makes the operation
42216// fail if the object's ETag matches the given value. This is useful for
42217// getting updates only after the object has changed since the last
42218// request. Use googleapi.IsNotModified to check whether the response
42219// error from Do is the result of In-None-Match.
42220func (c *OrganizationsOptimizedHostStatsGetCall) IfNoneMatch(entityTag string) *OrganizationsOptimizedHostStatsGetCall {
42221	c.ifNoneMatch_ = entityTag
42222	return c
42223}
42224
42225// Context sets the context to be used in this call's Do method. Any
42226// pending HTTP request will be aborted if the provided context is
42227// canceled.
42228func (c *OrganizationsOptimizedHostStatsGetCall) Context(ctx context.Context) *OrganizationsOptimizedHostStatsGetCall {
42229	c.ctx_ = ctx
42230	return c
42231}
42232
42233// Header returns an http.Header that can be modified by the caller to
42234// add HTTP headers to the request.
42235func (c *OrganizationsOptimizedHostStatsGetCall) Header() http.Header {
42236	if c.header_ == nil {
42237		c.header_ = make(http.Header)
42238	}
42239	return c.header_
42240}
42241
42242func (c *OrganizationsOptimizedHostStatsGetCall) doRequest(alt string) (*http.Response, error) {
42243	reqHeaders := make(http.Header)
42244	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
42245	for k, v := range c.header_ {
42246		reqHeaders[k] = v
42247	}
42248	reqHeaders.Set("User-Agent", c.s.userAgent())
42249	if c.ifNoneMatch_ != "" {
42250		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
42251	}
42252	var body io.Reader = nil
42253	c.urlParams_.Set("alt", alt)
42254	c.urlParams_.Set("prettyPrint", "false")
42255	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
42256	urls += "?" + c.urlParams_.Encode()
42257	req, err := http.NewRequest("GET", urls, body)
42258	if err != nil {
42259		return nil, err
42260	}
42261	req.Header = reqHeaders
42262	googleapi.Expand(req.URL, map[string]string{
42263		"name": c.name,
42264	})
42265	return gensupport.SendRequest(c.ctx_, c.s.client, req)
42266}
42267
42268// Do executes the "apigee.organizations.optimizedHostStats.get" call.
42269// Exactly one of *GoogleCloudApigeeV1OptimizedStats or error will be
42270// non-nil. Any non-2xx status code is an error. Response headers are in
42271// either *GoogleCloudApigeeV1OptimizedStats.ServerResponse.Header or
42272// (if a response was returned at all) in
42273// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
42274// whether the returned error was because http.StatusNotModified was
42275// returned.
42276func (c *OrganizationsOptimizedHostStatsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1OptimizedStats, error) {
42277	gensupport.SetOptions(c.urlParams_, opts...)
42278	res, err := c.doRequest("json")
42279	if res != nil && res.StatusCode == http.StatusNotModified {
42280		if res.Body != nil {
42281			res.Body.Close()
42282		}
42283		return nil, &googleapi.Error{
42284			Code:   res.StatusCode,
42285			Header: res.Header,
42286		}
42287	}
42288	if err != nil {
42289		return nil, err
42290	}
42291	defer googleapi.CloseBody(res)
42292	if err := googleapi.CheckResponse(res); err != nil {
42293		return nil, err
42294	}
42295	ret := &GoogleCloudApigeeV1OptimizedStats{
42296		ServerResponse: googleapi.ServerResponse{
42297			Header:         res.Header,
42298			HTTPStatusCode: res.StatusCode,
42299		},
42300	}
42301	target := &ret
42302	if err := gensupport.DecodeResponse(target, res); err != nil {
42303		return nil, err
42304	}
42305	return ret, nil
42306	// {
42307	//   "description": "This api is similar to GetHostStats except that the response is less verbose.",
42308	//   "flatPath": "v1/organizations/{organizationsId}/optimizedHostStats/{optimizedHostStatsId}",
42309	//   "httpMethod": "GET",
42310	//   "id": "apigee.organizations.optimizedHostStats.get",
42311	//   "parameterOrder": [
42312	//     "name"
42313	//   ],
42314	//   "parameters": {
42315	//     "accuracy": {
42316	//       "description": "Legacy field: not used anymore.",
42317	//       "location": "query",
42318	//       "type": "string"
42319	//     },
42320	//     "envgroupHostname": {
42321	//       "description": "Required. The hostname for which the interactive query will be executed.",
42322	//       "location": "query",
42323	//       "type": "string"
42324	//     },
42325	//     "filter": {
42326	//       "description": "Enables drill-down on specific dimension values.",
42327	//       "location": "query",
42328	//       "type": "string"
42329	//     },
42330	//     "limit": {
42331	//       "description": "This parameter is used to limit the number of result items. Default and the max value is 14400.",
42332	//       "location": "query",
42333	//       "type": "string"
42334	//     },
42335	//     "name": {
42336	//       "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`",
42337	//       "location": "path",
42338	//       "pattern": "^organizations/[^/]+/optimizedHostStats/.*$",
42339	//       "required": true,
42340	//       "type": "string"
42341	//     },
42342	//     "offset": {
42343	//       "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'.",
42344	//       "location": "query",
42345	//       "type": "string"
42346	//     },
42347	//     "realtime": {
42348	//       "description": "Legacy field: not used anymore.",
42349	//       "location": "query",
42350	//       "type": "boolean"
42351	//     },
42352	//     "select": {
42353	//       "description": "Required. The select parameter contains a comma separated list of metrics. E.g. sum(message_count),sum(error_count)",
42354	//       "location": "query",
42355	//       "type": "string"
42356	//     },
42357	//     "sort": {
42358	//       "description": "This parameter specifies if the sort order should be ascending or descending Supported values are DESC and ASC.",
42359	//       "location": "query",
42360	//       "type": "string"
42361	//     },
42362	//     "sortby": {
42363	//       "description": "Comma separated list of columns to sort the final result.",
42364	//       "location": "query",
42365	//       "type": "string"
42366	//     },
42367	//     "timeRange": {
42368	//       "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.",
42369	//       "location": "query",
42370	//       "type": "string"
42371	//     },
42372	//     "timeUnit": {
42373	//       "description": "A value of second, minute, hour, day, week, month. Time Unit specifies the granularity of metrics returned.",
42374	//       "location": "query",
42375	//       "type": "string"
42376	//     },
42377	//     "topk": {
42378	//       "description": "Take 'top k' results from results, for example, to return the top 5 results 'topk=5'.",
42379	//       "location": "query",
42380	//       "type": "string"
42381	//     },
42382	//     "tsAscending": {
42383	//       "description": "Lists timestamps in ascending order if set to true. Recommend setting this value to true if you are using sortby with sort=DESC.",
42384	//       "location": "query",
42385	//       "type": "boolean"
42386	//     },
42387	//     "tzo": {
42388	//       "description": "This parameters contains the timezone offset value.",
42389	//       "location": "query",
42390	//       "type": "string"
42391	//     }
42392	//   },
42393	//   "path": "v1/{+name}",
42394	//   "response": {
42395	//     "$ref": "GoogleCloudApigeeV1OptimizedStats"
42396	//   },
42397	//   "scopes": [
42398	//     "https://www.googleapis.com/auth/cloud-platform"
42399	//   ]
42400	// }
42401
42402}
42403
42404// method id "apigee.organizations.reports.create":
42405
42406type OrganizationsReportsCreateCall struct {
42407	s                               *Service
42408	parent                          string
42409	googlecloudapigeev1customreport *GoogleCloudApigeeV1CustomReport
42410	urlParams_                      gensupport.URLParams
42411	ctx_                            context.Context
42412	header_                         http.Header
42413}
42414
42415// Create: Creates a Custom Report for an Organization. A Custom Report
42416// provides Apigee Customers to create custom dashboards in addition to
42417// the standard dashboards which are provided. The Custom Report in its
42418// simplest form contains specifications about metrics, dimensions and
42419// filters. It is important to note that the custom report by itself
42420// does not provide an executable entity. The Edge UI converts the
42421// custom report definition into an analytics query and displays the
42422// result in a chart.
42423//
42424// - parent: The parent organization name under which the Custom Report
42425//   will be created. Must be of the form:
42426//   `organizations/{organization_id}/reports`.
42427func (r *OrganizationsReportsService) Create(parent string, googlecloudapigeev1customreport *GoogleCloudApigeeV1CustomReport) *OrganizationsReportsCreateCall {
42428	c := &OrganizationsReportsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42429	c.parent = parent
42430	c.googlecloudapigeev1customreport = googlecloudapigeev1customreport
42431	return c
42432}
42433
42434// Fields allows partial responses to be retrieved. See
42435// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
42436// for more information.
42437func (c *OrganizationsReportsCreateCall) Fields(s ...googleapi.Field) *OrganizationsReportsCreateCall {
42438	c.urlParams_.Set("fields", googleapi.CombineFields(s))
42439	return c
42440}
42441
42442// Context sets the context to be used in this call's Do method. Any
42443// pending HTTP request will be aborted if the provided context is
42444// canceled.
42445func (c *OrganizationsReportsCreateCall) Context(ctx context.Context) *OrganizationsReportsCreateCall {
42446	c.ctx_ = ctx
42447	return c
42448}
42449
42450// Header returns an http.Header that can be modified by the caller to
42451// add HTTP headers to the request.
42452func (c *OrganizationsReportsCreateCall) Header() http.Header {
42453	if c.header_ == nil {
42454		c.header_ = make(http.Header)
42455	}
42456	return c.header_
42457}
42458
42459func (c *OrganizationsReportsCreateCall) doRequest(alt string) (*http.Response, error) {
42460	reqHeaders := make(http.Header)
42461	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
42462	for k, v := range c.header_ {
42463		reqHeaders[k] = v
42464	}
42465	reqHeaders.Set("User-Agent", c.s.userAgent())
42466	var body io.Reader = nil
42467	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1customreport)
42468	if err != nil {
42469		return nil, err
42470	}
42471	reqHeaders.Set("Content-Type", "application/json")
42472	c.urlParams_.Set("alt", alt)
42473	c.urlParams_.Set("prettyPrint", "false")
42474	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/reports")
42475	urls += "?" + c.urlParams_.Encode()
42476	req, err := http.NewRequest("POST", urls, body)
42477	if err != nil {
42478		return nil, err
42479	}
42480	req.Header = reqHeaders
42481	googleapi.Expand(req.URL, map[string]string{
42482		"parent": c.parent,
42483	})
42484	return gensupport.SendRequest(c.ctx_, c.s.client, req)
42485}
42486
42487// Do executes the "apigee.organizations.reports.create" call.
42488// Exactly one of *GoogleCloudApigeeV1CustomReport or error will be
42489// non-nil. Any non-2xx status code is an error. Response headers are in
42490// either *GoogleCloudApigeeV1CustomReport.ServerResponse.Header or (if
42491// a response was returned at all) in error.(*googleapi.Error).Header.
42492// Use googleapi.IsNotModified to check whether the returned error was
42493// because http.StatusNotModified was returned.
42494func (c *OrganizationsReportsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1CustomReport, error) {
42495	gensupport.SetOptions(c.urlParams_, opts...)
42496	res, err := c.doRequest("json")
42497	if res != nil && res.StatusCode == http.StatusNotModified {
42498		if res.Body != nil {
42499			res.Body.Close()
42500		}
42501		return nil, &googleapi.Error{
42502			Code:   res.StatusCode,
42503			Header: res.Header,
42504		}
42505	}
42506	if err != nil {
42507		return nil, err
42508	}
42509	defer googleapi.CloseBody(res)
42510	if err := googleapi.CheckResponse(res); err != nil {
42511		return nil, err
42512	}
42513	ret := &GoogleCloudApigeeV1CustomReport{
42514		ServerResponse: googleapi.ServerResponse{
42515			Header:         res.Header,
42516			HTTPStatusCode: res.StatusCode,
42517		},
42518	}
42519	target := &ret
42520	if err := gensupport.DecodeResponse(target, res); err != nil {
42521		return nil, err
42522	}
42523	return ret, nil
42524	// {
42525	//   "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.",
42526	//   "flatPath": "v1/organizations/{organizationsId}/reports",
42527	//   "httpMethod": "POST",
42528	//   "id": "apigee.organizations.reports.create",
42529	//   "parameterOrder": [
42530	//     "parent"
42531	//   ],
42532	//   "parameters": {
42533	//     "parent": {
42534	//       "description": "Required. The parent organization name under which the Custom Report will be created. Must be of the form: `organizations/{organization_id}/reports`",
42535	//       "location": "path",
42536	//       "pattern": "^organizations/[^/]+$",
42537	//       "required": true,
42538	//       "type": "string"
42539	//     }
42540	//   },
42541	//   "path": "v1/{+parent}/reports",
42542	//   "request": {
42543	//     "$ref": "GoogleCloudApigeeV1CustomReport"
42544	//   },
42545	//   "response": {
42546	//     "$ref": "GoogleCloudApigeeV1CustomReport"
42547	//   },
42548	//   "scopes": [
42549	//     "https://www.googleapis.com/auth/cloud-platform"
42550	//   ]
42551	// }
42552
42553}
42554
42555// method id "apigee.organizations.reports.delete":
42556
42557type OrganizationsReportsDeleteCall struct {
42558	s          *Service
42559	name       string
42560	urlParams_ gensupport.URLParams
42561	ctx_       context.Context
42562	header_    http.Header
42563}
42564
42565// Delete: Deletes an existing custom report definition
42566//
42567// - name: Custom Report name of the form:
42568//   `organizations/{organization_id}/reports/{report_name}`.
42569func (r *OrganizationsReportsService) Delete(name string) *OrganizationsReportsDeleteCall {
42570	c := &OrganizationsReportsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42571	c.name = name
42572	return c
42573}
42574
42575// Fields allows partial responses to be retrieved. See
42576// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
42577// for more information.
42578func (c *OrganizationsReportsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsReportsDeleteCall {
42579	c.urlParams_.Set("fields", googleapi.CombineFields(s))
42580	return c
42581}
42582
42583// Context sets the context to be used in this call's Do method. Any
42584// pending HTTP request will be aborted if the provided context is
42585// canceled.
42586func (c *OrganizationsReportsDeleteCall) Context(ctx context.Context) *OrganizationsReportsDeleteCall {
42587	c.ctx_ = ctx
42588	return c
42589}
42590
42591// Header returns an http.Header that can be modified by the caller to
42592// add HTTP headers to the request.
42593func (c *OrganizationsReportsDeleteCall) Header() http.Header {
42594	if c.header_ == nil {
42595		c.header_ = make(http.Header)
42596	}
42597	return c.header_
42598}
42599
42600func (c *OrganizationsReportsDeleteCall) doRequest(alt string) (*http.Response, error) {
42601	reqHeaders := make(http.Header)
42602	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
42603	for k, v := range c.header_ {
42604		reqHeaders[k] = v
42605	}
42606	reqHeaders.Set("User-Agent", c.s.userAgent())
42607	var body io.Reader = nil
42608	c.urlParams_.Set("alt", alt)
42609	c.urlParams_.Set("prettyPrint", "false")
42610	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
42611	urls += "?" + c.urlParams_.Encode()
42612	req, err := http.NewRequest("DELETE", urls, body)
42613	if err != nil {
42614		return nil, err
42615	}
42616	req.Header = reqHeaders
42617	googleapi.Expand(req.URL, map[string]string{
42618		"name": c.name,
42619	})
42620	return gensupport.SendRequest(c.ctx_, c.s.client, req)
42621}
42622
42623// Do executes the "apigee.organizations.reports.delete" call.
42624// Exactly one of *GoogleCloudApigeeV1DeleteCustomReportResponse or
42625// error will be non-nil. Any non-2xx status code is an error. Response
42626// headers are in either
42627// *GoogleCloudApigeeV1DeleteCustomReportResponse.ServerResponse.Header
42628// or (if a response was returned at all) in
42629// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
42630// whether the returned error was because http.StatusNotModified was
42631// returned.
42632func (c *OrganizationsReportsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeleteCustomReportResponse, error) {
42633	gensupport.SetOptions(c.urlParams_, opts...)
42634	res, err := c.doRequest("json")
42635	if res != nil && res.StatusCode == http.StatusNotModified {
42636		if res.Body != nil {
42637			res.Body.Close()
42638		}
42639		return nil, &googleapi.Error{
42640			Code:   res.StatusCode,
42641			Header: res.Header,
42642		}
42643	}
42644	if err != nil {
42645		return nil, err
42646	}
42647	defer googleapi.CloseBody(res)
42648	if err := googleapi.CheckResponse(res); err != nil {
42649		return nil, err
42650	}
42651	ret := &GoogleCloudApigeeV1DeleteCustomReportResponse{
42652		ServerResponse: googleapi.ServerResponse{
42653			Header:         res.Header,
42654			HTTPStatusCode: res.StatusCode,
42655		},
42656	}
42657	target := &ret
42658	if err := gensupport.DecodeResponse(target, res); err != nil {
42659		return nil, err
42660	}
42661	return ret, nil
42662	// {
42663	//   "description": "Deletes an existing custom report definition",
42664	//   "flatPath": "v1/organizations/{organizationsId}/reports/{reportsId}",
42665	//   "httpMethod": "DELETE",
42666	//   "id": "apigee.organizations.reports.delete",
42667	//   "parameterOrder": [
42668	//     "name"
42669	//   ],
42670	//   "parameters": {
42671	//     "name": {
42672	//       "description": "Required. Custom Report name of the form: `organizations/{organization_id}/reports/{report_name}`",
42673	//       "location": "path",
42674	//       "pattern": "^organizations/[^/]+/reports/[^/]+$",
42675	//       "required": true,
42676	//       "type": "string"
42677	//     }
42678	//   },
42679	//   "path": "v1/{+name}",
42680	//   "response": {
42681	//     "$ref": "GoogleCloudApigeeV1DeleteCustomReportResponse"
42682	//   },
42683	//   "scopes": [
42684	//     "https://www.googleapis.com/auth/cloud-platform"
42685	//   ]
42686	// }
42687
42688}
42689
42690// method id "apigee.organizations.reports.get":
42691
42692type OrganizationsReportsGetCall struct {
42693	s            *Service
42694	name         string
42695	urlParams_   gensupport.URLParams
42696	ifNoneMatch_ string
42697	ctx_         context.Context
42698	header_      http.Header
42699}
42700
42701// Get: Retrieve a custom report definition.
42702//
42703// - name: Custom Report name of the form:
42704//   `organizations/{organization_id}/reports/{report_name}`.
42705func (r *OrganizationsReportsService) Get(name string) *OrganizationsReportsGetCall {
42706	c := &OrganizationsReportsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42707	c.name = name
42708	return c
42709}
42710
42711// Fields allows partial responses to be retrieved. See
42712// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
42713// for more information.
42714func (c *OrganizationsReportsGetCall) Fields(s ...googleapi.Field) *OrganizationsReportsGetCall {
42715	c.urlParams_.Set("fields", googleapi.CombineFields(s))
42716	return c
42717}
42718
42719// IfNoneMatch sets the optional parameter which makes the operation
42720// fail if the object's ETag matches the given value. This is useful for
42721// getting updates only after the object has changed since the last
42722// request. Use googleapi.IsNotModified to check whether the response
42723// error from Do is the result of In-None-Match.
42724func (c *OrganizationsReportsGetCall) IfNoneMatch(entityTag string) *OrganizationsReportsGetCall {
42725	c.ifNoneMatch_ = entityTag
42726	return c
42727}
42728
42729// Context sets the context to be used in this call's Do method. Any
42730// pending HTTP request will be aborted if the provided context is
42731// canceled.
42732func (c *OrganizationsReportsGetCall) Context(ctx context.Context) *OrganizationsReportsGetCall {
42733	c.ctx_ = ctx
42734	return c
42735}
42736
42737// Header returns an http.Header that can be modified by the caller to
42738// add HTTP headers to the request.
42739func (c *OrganizationsReportsGetCall) Header() http.Header {
42740	if c.header_ == nil {
42741		c.header_ = make(http.Header)
42742	}
42743	return c.header_
42744}
42745
42746func (c *OrganizationsReportsGetCall) doRequest(alt string) (*http.Response, error) {
42747	reqHeaders := make(http.Header)
42748	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
42749	for k, v := range c.header_ {
42750		reqHeaders[k] = v
42751	}
42752	reqHeaders.Set("User-Agent", c.s.userAgent())
42753	if c.ifNoneMatch_ != "" {
42754		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
42755	}
42756	var body io.Reader = nil
42757	c.urlParams_.Set("alt", alt)
42758	c.urlParams_.Set("prettyPrint", "false")
42759	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
42760	urls += "?" + c.urlParams_.Encode()
42761	req, err := http.NewRequest("GET", urls, body)
42762	if err != nil {
42763		return nil, err
42764	}
42765	req.Header = reqHeaders
42766	googleapi.Expand(req.URL, map[string]string{
42767		"name": c.name,
42768	})
42769	return gensupport.SendRequest(c.ctx_, c.s.client, req)
42770}
42771
42772// Do executes the "apigee.organizations.reports.get" call.
42773// Exactly one of *GoogleCloudApigeeV1CustomReport or error will be
42774// non-nil. Any non-2xx status code is an error. Response headers are in
42775// either *GoogleCloudApigeeV1CustomReport.ServerResponse.Header or (if
42776// a response was returned at all) in error.(*googleapi.Error).Header.
42777// Use googleapi.IsNotModified to check whether the returned error was
42778// because http.StatusNotModified was returned.
42779func (c *OrganizationsReportsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1CustomReport, error) {
42780	gensupport.SetOptions(c.urlParams_, opts...)
42781	res, err := c.doRequest("json")
42782	if res != nil && res.StatusCode == http.StatusNotModified {
42783		if res.Body != nil {
42784			res.Body.Close()
42785		}
42786		return nil, &googleapi.Error{
42787			Code:   res.StatusCode,
42788			Header: res.Header,
42789		}
42790	}
42791	if err != nil {
42792		return nil, err
42793	}
42794	defer googleapi.CloseBody(res)
42795	if err := googleapi.CheckResponse(res); err != nil {
42796		return nil, err
42797	}
42798	ret := &GoogleCloudApigeeV1CustomReport{
42799		ServerResponse: googleapi.ServerResponse{
42800			Header:         res.Header,
42801			HTTPStatusCode: res.StatusCode,
42802		},
42803	}
42804	target := &ret
42805	if err := gensupport.DecodeResponse(target, res); err != nil {
42806		return nil, err
42807	}
42808	return ret, nil
42809	// {
42810	//   "description": "Retrieve a custom report definition.",
42811	//   "flatPath": "v1/organizations/{organizationsId}/reports/{reportsId}",
42812	//   "httpMethod": "GET",
42813	//   "id": "apigee.organizations.reports.get",
42814	//   "parameterOrder": [
42815	//     "name"
42816	//   ],
42817	//   "parameters": {
42818	//     "name": {
42819	//       "description": "Required. Custom Report name of the form: `organizations/{organization_id}/reports/{report_name}`",
42820	//       "location": "path",
42821	//       "pattern": "^organizations/[^/]+/reports/[^/]+$",
42822	//       "required": true,
42823	//       "type": "string"
42824	//     }
42825	//   },
42826	//   "path": "v1/{+name}",
42827	//   "response": {
42828	//     "$ref": "GoogleCloudApigeeV1CustomReport"
42829	//   },
42830	//   "scopes": [
42831	//     "https://www.googleapis.com/auth/cloud-platform"
42832	//   ]
42833	// }
42834
42835}
42836
42837// method id "apigee.organizations.reports.list":
42838
42839type OrganizationsReportsListCall struct {
42840	s            *Service
42841	parent       string
42842	urlParams_   gensupport.URLParams
42843	ifNoneMatch_ string
42844	ctx_         context.Context
42845	header_      http.Header
42846}
42847
42848// List: Return a list of Custom Reports
42849//
42850// - parent: The parent organization name under which the API product
42851//   will be listed `organizations/{organization_id}/reports`.
42852func (r *OrganizationsReportsService) List(parent string) *OrganizationsReportsListCall {
42853	c := &OrganizationsReportsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42854	c.parent = parent
42855	return c
42856}
42857
42858// Expand sets the optional parameter "expand": Set to 'true' to get
42859// expanded details about each custom report.
42860func (c *OrganizationsReportsListCall) Expand(expand bool) *OrganizationsReportsListCall {
42861	c.urlParams_.Set("expand", fmt.Sprint(expand))
42862	return c
42863}
42864
42865// Fields allows partial responses to be retrieved. See
42866// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
42867// for more information.
42868func (c *OrganizationsReportsListCall) Fields(s ...googleapi.Field) *OrganizationsReportsListCall {
42869	c.urlParams_.Set("fields", googleapi.CombineFields(s))
42870	return c
42871}
42872
42873// IfNoneMatch sets the optional parameter which makes the operation
42874// fail if the object's ETag matches the given value. This is useful for
42875// getting updates only after the object has changed since the last
42876// request. Use googleapi.IsNotModified to check whether the response
42877// error from Do is the result of In-None-Match.
42878func (c *OrganizationsReportsListCall) IfNoneMatch(entityTag string) *OrganizationsReportsListCall {
42879	c.ifNoneMatch_ = entityTag
42880	return c
42881}
42882
42883// Context sets the context to be used in this call's Do method. Any
42884// pending HTTP request will be aborted if the provided context is
42885// canceled.
42886func (c *OrganizationsReportsListCall) Context(ctx context.Context) *OrganizationsReportsListCall {
42887	c.ctx_ = ctx
42888	return c
42889}
42890
42891// Header returns an http.Header that can be modified by the caller to
42892// add HTTP headers to the request.
42893func (c *OrganizationsReportsListCall) Header() http.Header {
42894	if c.header_ == nil {
42895		c.header_ = make(http.Header)
42896	}
42897	return c.header_
42898}
42899
42900func (c *OrganizationsReportsListCall) doRequest(alt string) (*http.Response, error) {
42901	reqHeaders := make(http.Header)
42902	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
42903	for k, v := range c.header_ {
42904		reqHeaders[k] = v
42905	}
42906	reqHeaders.Set("User-Agent", c.s.userAgent())
42907	if c.ifNoneMatch_ != "" {
42908		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
42909	}
42910	var body io.Reader = nil
42911	c.urlParams_.Set("alt", alt)
42912	c.urlParams_.Set("prettyPrint", "false")
42913	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/reports")
42914	urls += "?" + c.urlParams_.Encode()
42915	req, err := http.NewRequest("GET", urls, body)
42916	if err != nil {
42917		return nil, err
42918	}
42919	req.Header = reqHeaders
42920	googleapi.Expand(req.URL, map[string]string{
42921		"parent": c.parent,
42922	})
42923	return gensupport.SendRequest(c.ctx_, c.s.client, req)
42924}
42925
42926// Do executes the "apigee.organizations.reports.list" call.
42927// Exactly one of *GoogleCloudApigeeV1ListCustomReportsResponse or error
42928// will be non-nil. Any non-2xx status code is an error. Response
42929// headers are in either
42930// *GoogleCloudApigeeV1ListCustomReportsResponse.ServerResponse.Header
42931// or (if a response was returned at all) in
42932// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
42933// whether the returned error was because http.StatusNotModified was
42934// returned.
42935func (c *OrganizationsReportsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListCustomReportsResponse, error) {
42936	gensupport.SetOptions(c.urlParams_, opts...)
42937	res, err := c.doRequest("json")
42938	if res != nil && res.StatusCode == http.StatusNotModified {
42939		if res.Body != nil {
42940			res.Body.Close()
42941		}
42942		return nil, &googleapi.Error{
42943			Code:   res.StatusCode,
42944			Header: res.Header,
42945		}
42946	}
42947	if err != nil {
42948		return nil, err
42949	}
42950	defer googleapi.CloseBody(res)
42951	if err := googleapi.CheckResponse(res); err != nil {
42952		return nil, err
42953	}
42954	ret := &GoogleCloudApigeeV1ListCustomReportsResponse{
42955		ServerResponse: googleapi.ServerResponse{
42956			Header:         res.Header,
42957			HTTPStatusCode: res.StatusCode,
42958		},
42959	}
42960	target := &ret
42961	if err := gensupport.DecodeResponse(target, res); err != nil {
42962		return nil, err
42963	}
42964	return ret, nil
42965	// {
42966	//   "description": "Return a list of Custom Reports",
42967	//   "flatPath": "v1/organizations/{organizationsId}/reports",
42968	//   "httpMethod": "GET",
42969	//   "id": "apigee.organizations.reports.list",
42970	//   "parameterOrder": [
42971	//     "parent"
42972	//   ],
42973	//   "parameters": {
42974	//     "expand": {
42975	//       "description": "Set to 'true' to get expanded details about each custom report.",
42976	//       "location": "query",
42977	//       "type": "boolean"
42978	//     },
42979	//     "parent": {
42980	//       "description": "Required. The parent organization name under which the API product will be listed `organizations/{organization_id}/reports`",
42981	//       "location": "path",
42982	//       "pattern": "^organizations/[^/]+$",
42983	//       "required": true,
42984	//       "type": "string"
42985	//     }
42986	//   },
42987	//   "path": "v1/{+parent}/reports",
42988	//   "response": {
42989	//     "$ref": "GoogleCloudApigeeV1ListCustomReportsResponse"
42990	//   },
42991	//   "scopes": [
42992	//     "https://www.googleapis.com/auth/cloud-platform"
42993	//   ]
42994	// }
42995
42996}
42997
42998// method id "apigee.organizations.reports.update":
42999
43000type OrganizationsReportsUpdateCall struct {
43001	s                               *Service
43002	name                            string
43003	googlecloudapigeev1customreport *GoogleCloudApigeeV1CustomReport
43004	urlParams_                      gensupport.URLParams
43005	ctx_                            context.Context
43006	header_                         http.Header
43007}
43008
43009// Update: Update an existing custom report definition
43010//
43011// - name: Custom Report name of the form:
43012//   `organizations/{organization_id}/reports/{report_name}`.
43013func (r *OrganizationsReportsService) Update(name string, googlecloudapigeev1customreport *GoogleCloudApigeeV1CustomReport) *OrganizationsReportsUpdateCall {
43014	c := &OrganizationsReportsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43015	c.name = name
43016	c.googlecloudapigeev1customreport = googlecloudapigeev1customreport
43017	return c
43018}
43019
43020// Fields allows partial responses to be retrieved. See
43021// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
43022// for more information.
43023func (c *OrganizationsReportsUpdateCall) Fields(s ...googleapi.Field) *OrganizationsReportsUpdateCall {
43024	c.urlParams_.Set("fields", googleapi.CombineFields(s))
43025	return c
43026}
43027
43028// Context sets the context to be used in this call's Do method. Any
43029// pending HTTP request will be aborted if the provided context is
43030// canceled.
43031func (c *OrganizationsReportsUpdateCall) Context(ctx context.Context) *OrganizationsReportsUpdateCall {
43032	c.ctx_ = ctx
43033	return c
43034}
43035
43036// Header returns an http.Header that can be modified by the caller to
43037// add HTTP headers to the request.
43038func (c *OrganizationsReportsUpdateCall) Header() http.Header {
43039	if c.header_ == nil {
43040		c.header_ = make(http.Header)
43041	}
43042	return c.header_
43043}
43044
43045func (c *OrganizationsReportsUpdateCall) doRequest(alt string) (*http.Response, error) {
43046	reqHeaders := make(http.Header)
43047	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
43048	for k, v := range c.header_ {
43049		reqHeaders[k] = v
43050	}
43051	reqHeaders.Set("User-Agent", c.s.userAgent())
43052	var body io.Reader = nil
43053	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1customreport)
43054	if err != nil {
43055		return nil, err
43056	}
43057	reqHeaders.Set("Content-Type", "application/json")
43058	c.urlParams_.Set("alt", alt)
43059	c.urlParams_.Set("prettyPrint", "false")
43060	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
43061	urls += "?" + c.urlParams_.Encode()
43062	req, err := http.NewRequest("PUT", urls, body)
43063	if err != nil {
43064		return nil, err
43065	}
43066	req.Header = reqHeaders
43067	googleapi.Expand(req.URL, map[string]string{
43068		"name": c.name,
43069	})
43070	return gensupport.SendRequest(c.ctx_, c.s.client, req)
43071}
43072
43073// Do executes the "apigee.organizations.reports.update" call.
43074// Exactly one of *GoogleCloudApigeeV1CustomReport or error will be
43075// non-nil. Any non-2xx status code is an error. Response headers are in
43076// either *GoogleCloudApigeeV1CustomReport.ServerResponse.Header or (if
43077// a response was returned at all) in error.(*googleapi.Error).Header.
43078// Use googleapi.IsNotModified to check whether the returned error was
43079// because http.StatusNotModified was returned.
43080func (c *OrganizationsReportsUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1CustomReport, error) {
43081	gensupport.SetOptions(c.urlParams_, opts...)
43082	res, err := c.doRequest("json")
43083	if res != nil && res.StatusCode == http.StatusNotModified {
43084		if res.Body != nil {
43085			res.Body.Close()
43086		}
43087		return nil, &googleapi.Error{
43088			Code:   res.StatusCode,
43089			Header: res.Header,
43090		}
43091	}
43092	if err != nil {
43093		return nil, err
43094	}
43095	defer googleapi.CloseBody(res)
43096	if err := googleapi.CheckResponse(res); err != nil {
43097		return nil, err
43098	}
43099	ret := &GoogleCloudApigeeV1CustomReport{
43100		ServerResponse: googleapi.ServerResponse{
43101			Header:         res.Header,
43102			HTTPStatusCode: res.StatusCode,
43103		},
43104	}
43105	target := &ret
43106	if err := gensupport.DecodeResponse(target, res); err != nil {
43107		return nil, err
43108	}
43109	return ret, nil
43110	// {
43111	//   "description": "Update an existing custom report definition",
43112	//   "flatPath": "v1/organizations/{organizationsId}/reports/{reportsId}",
43113	//   "httpMethod": "PUT",
43114	//   "id": "apigee.organizations.reports.update",
43115	//   "parameterOrder": [
43116	//     "name"
43117	//   ],
43118	//   "parameters": {
43119	//     "name": {
43120	//       "description": "Required. Custom Report name of the form: `organizations/{organization_id}/reports/{report_name}`",
43121	//       "location": "path",
43122	//       "pattern": "^organizations/[^/]+/reports/[^/]+$",
43123	//       "required": true,
43124	//       "type": "string"
43125	//     }
43126	//   },
43127	//   "path": "v1/{+name}",
43128	//   "request": {
43129	//     "$ref": "GoogleCloudApigeeV1CustomReport"
43130	//   },
43131	//   "response": {
43132	//     "$ref": "GoogleCloudApigeeV1CustomReport"
43133	//   },
43134	//   "scopes": [
43135	//     "https://www.googleapis.com/auth/cloud-platform"
43136	//   ]
43137	// }
43138
43139}
43140
43141// method id "apigee.organizations.sharedflows.create":
43142
43143type OrganizationsSharedflowsCreateCall struct {
43144	s                 *Service
43145	parent            string
43146	googleapihttpbody *GoogleApiHttpBody
43147	urlParams_        gensupport.URLParams
43148	ctx_              context.Context
43149	header_           http.Header
43150}
43151
43152// Create: Uploads a ZIP-formatted shared flow configuration bundle to
43153// an organization. If the shared flow already exists, this creates a
43154// new revision of it. If the shared flow does not exist, this creates
43155// it. Once imported, the shared flow revision must be deployed before
43156// it can be accessed at runtime. The size limit of a shared flow bundle
43157// is 15 MB.
43158//
43159// - parent: The name of the parent organization under which to create
43160//   the shared flow. Must be of the form:
43161//   `organizations/{organization_id}`.
43162func (r *OrganizationsSharedflowsService) Create(parent string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsSharedflowsCreateCall {
43163	c := &OrganizationsSharedflowsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43164	c.parent = parent
43165	c.googleapihttpbody = googleapihttpbody
43166	return c
43167}
43168
43169// Action sets the optional parameter "action": Required. Must be set to
43170// either `import` or `validate`.
43171func (c *OrganizationsSharedflowsCreateCall) Action(action string) *OrganizationsSharedflowsCreateCall {
43172	c.urlParams_.Set("action", action)
43173	return c
43174}
43175
43176// Name sets the optional parameter "name": Required. The name to give
43177// the shared flow
43178func (c *OrganizationsSharedflowsCreateCall) Name(name string) *OrganizationsSharedflowsCreateCall {
43179	c.urlParams_.Set("name", name)
43180	return c
43181}
43182
43183// Fields allows partial responses to be retrieved. See
43184// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
43185// for more information.
43186func (c *OrganizationsSharedflowsCreateCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsCreateCall {
43187	c.urlParams_.Set("fields", googleapi.CombineFields(s))
43188	return c
43189}
43190
43191// Context sets the context to be used in this call's Do method. Any
43192// pending HTTP request will be aborted if the provided context is
43193// canceled.
43194func (c *OrganizationsSharedflowsCreateCall) Context(ctx context.Context) *OrganizationsSharedflowsCreateCall {
43195	c.ctx_ = ctx
43196	return c
43197}
43198
43199// Header returns an http.Header that can be modified by the caller to
43200// add HTTP headers to the request.
43201func (c *OrganizationsSharedflowsCreateCall) Header() http.Header {
43202	if c.header_ == nil {
43203		c.header_ = make(http.Header)
43204	}
43205	return c.header_
43206}
43207
43208func (c *OrganizationsSharedflowsCreateCall) doRequest(alt string) (*http.Response, error) {
43209	reqHeaders := make(http.Header)
43210	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
43211	for k, v := range c.header_ {
43212		reqHeaders[k] = v
43213	}
43214	reqHeaders.Set("User-Agent", c.s.userAgent())
43215	var body io.Reader = nil
43216	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
43217	if err != nil {
43218		return nil, err
43219	}
43220	reqHeaders.Set("Content-Type", "application/json")
43221	c.urlParams_.Set("alt", alt)
43222	c.urlParams_.Set("prettyPrint", "false")
43223	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/sharedflows")
43224	urls += "?" + c.urlParams_.Encode()
43225	req, err := http.NewRequest("POST", urls, body)
43226	if err != nil {
43227		return nil, err
43228	}
43229	req.Header = reqHeaders
43230	googleapi.Expand(req.URL, map[string]string{
43231		"parent": c.parent,
43232	})
43233	return gensupport.SendRequest(c.ctx_, c.s.client, req)
43234}
43235
43236// Do executes the "apigee.organizations.sharedflows.create" call.
43237// Exactly one of *GoogleCloudApigeeV1SharedFlowRevision or error will
43238// be non-nil. Any non-2xx status code is an error. Response headers are
43239// in either
43240// *GoogleCloudApigeeV1SharedFlowRevision.ServerResponse.Header or (if a
43241// response was returned at all) in error.(*googleapi.Error).Header. Use
43242// googleapi.IsNotModified to check whether the returned error was
43243// because http.StatusNotModified was returned.
43244func (c *OrganizationsSharedflowsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SharedFlowRevision, error) {
43245	gensupport.SetOptions(c.urlParams_, opts...)
43246	res, err := c.doRequest("json")
43247	if res != nil && res.StatusCode == http.StatusNotModified {
43248		if res.Body != nil {
43249			res.Body.Close()
43250		}
43251		return nil, &googleapi.Error{
43252			Code:   res.StatusCode,
43253			Header: res.Header,
43254		}
43255	}
43256	if err != nil {
43257		return nil, err
43258	}
43259	defer googleapi.CloseBody(res)
43260	if err := googleapi.CheckResponse(res); err != nil {
43261		return nil, err
43262	}
43263	ret := &GoogleCloudApigeeV1SharedFlowRevision{
43264		ServerResponse: googleapi.ServerResponse{
43265			Header:         res.Header,
43266			HTTPStatusCode: res.StatusCode,
43267		},
43268	}
43269	target := &ret
43270	if err := gensupport.DecodeResponse(target, res); err != nil {
43271		return nil, err
43272	}
43273	return ret, nil
43274	// {
43275	//   "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.",
43276	//   "flatPath": "v1/organizations/{organizationsId}/sharedflows",
43277	//   "httpMethod": "POST",
43278	//   "id": "apigee.organizations.sharedflows.create",
43279	//   "parameterOrder": [
43280	//     "parent"
43281	//   ],
43282	//   "parameters": {
43283	//     "action": {
43284	//       "description": "Required. Must be set to either `import` or `validate`.",
43285	//       "location": "query",
43286	//       "type": "string"
43287	//     },
43288	//     "name": {
43289	//       "description": "Required. The name to give the shared flow",
43290	//       "location": "query",
43291	//       "type": "string"
43292	//     },
43293	//     "parent": {
43294	//       "description": "Required. The name of the parent organization under which to create the shared flow. Must be of the form: `organizations/{organization_id}`",
43295	//       "location": "path",
43296	//       "pattern": "^organizations/[^/]+$",
43297	//       "required": true,
43298	//       "type": "string"
43299	//     }
43300	//   },
43301	//   "path": "v1/{+parent}/sharedflows",
43302	//   "request": {
43303	//     "$ref": "GoogleApiHttpBody"
43304	//   },
43305	//   "response": {
43306	//     "$ref": "GoogleCloudApigeeV1SharedFlowRevision"
43307	//   },
43308	//   "scopes": [
43309	//     "https://www.googleapis.com/auth/cloud-platform"
43310	//   ]
43311	// }
43312
43313}
43314
43315// method id "apigee.organizations.sharedflows.delete":
43316
43317type OrganizationsSharedflowsDeleteCall struct {
43318	s          *Service
43319	name       string
43320	urlParams_ gensupport.URLParams
43321	ctx_       context.Context
43322	header_    http.Header
43323}
43324
43325// Delete: Deletes a shared flow and all it's revisions. The shared flow
43326// must be undeployed before you can delete it.
43327//
43328// - name: shared flow name of the form:
43329//   `organizations/{organization_id}/sharedflows/{shared_flow_id}`.
43330func (r *OrganizationsSharedflowsService) Delete(name string) *OrganizationsSharedflowsDeleteCall {
43331	c := &OrganizationsSharedflowsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43332	c.name = name
43333	return c
43334}
43335
43336// Fields allows partial responses to be retrieved. See
43337// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
43338// for more information.
43339func (c *OrganizationsSharedflowsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsDeleteCall {
43340	c.urlParams_.Set("fields", googleapi.CombineFields(s))
43341	return c
43342}
43343
43344// Context sets the context to be used in this call's Do method. Any
43345// pending HTTP request will be aborted if the provided context is
43346// canceled.
43347func (c *OrganizationsSharedflowsDeleteCall) Context(ctx context.Context) *OrganizationsSharedflowsDeleteCall {
43348	c.ctx_ = ctx
43349	return c
43350}
43351
43352// Header returns an http.Header that can be modified by the caller to
43353// add HTTP headers to the request.
43354func (c *OrganizationsSharedflowsDeleteCall) Header() http.Header {
43355	if c.header_ == nil {
43356		c.header_ = make(http.Header)
43357	}
43358	return c.header_
43359}
43360
43361func (c *OrganizationsSharedflowsDeleteCall) doRequest(alt string) (*http.Response, error) {
43362	reqHeaders := make(http.Header)
43363	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
43364	for k, v := range c.header_ {
43365		reqHeaders[k] = v
43366	}
43367	reqHeaders.Set("User-Agent", c.s.userAgent())
43368	var body io.Reader = nil
43369	c.urlParams_.Set("alt", alt)
43370	c.urlParams_.Set("prettyPrint", "false")
43371	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
43372	urls += "?" + c.urlParams_.Encode()
43373	req, err := http.NewRequest("DELETE", urls, body)
43374	if err != nil {
43375		return nil, err
43376	}
43377	req.Header = reqHeaders
43378	googleapi.Expand(req.URL, map[string]string{
43379		"name": c.name,
43380	})
43381	return gensupport.SendRequest(c.ctx_, c.s.client, req)
43382}
43383
43384// Do executes the "apigee.organizations.sharedflows.delete" call.
43385// Exactly one of *GoogleCloudApigeeV1SharedFlow or error will be
43386// non-nil. Any non-2xx status code is an error. Response headers are in
43387// either *GoogleCloudApigeeV1SharedFlow.ServerResponse.Header or (if a
43388// response was returned at all) in error.(*googleapi.Error).Header. Use
43389// googleapi.IsNotModified to check whether the returned error was
43390// because http.StatusNotModified was returned.
43391func (c *OrganizationsSharedflowsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SharedFlow, error) {
43392	gensupport.SetOptions(c.urlParams_, opts...)
43393	res, err := c.doRequest("json")
43394	if res != nil && res.StatusCode == http.StatusNotModified {
43395		if res.Body != nil {
43396			res.Body.Close()
43397		}
43398		return nil, &googleapi.Error{
43399			Code:   res.StatusCode,
43400			Header: res.Header,
43401		}
43402	}
43403	if err != nil {
43404		return nil, err
43405	}
43406	defer googleapi.CloseBody(res)
43407	if err := googleapi.CheckResponse(res); err != nil {
43408		return nil, err
43409	}
43410	ret := &GoogleCloudApigeeV1SharedFlow{
43411		ServerResponse: googleapi.ServerResponse{
43412			Header:         res.Header,
43413			HTTPStatusCode: res.StatusCode,
43414		},
43415	}
43416	target := &ret
43417	if err := gensupport.DecodeResponse(target, res); err != nil {
43418		return nil, err
43419	}
43420	return ret, nil
43421	// {
43422	//   "description": "Deletes a shared flow and all it's revisions. The shared flow must be undeployed before you can delete it.",
43423	//   "flatPath": "v1/organizations/{organizationsId}/sharedflows/{sharedflowsId}",
43424	//   "httpMethod": "DELETE",
43425	//   "id": "apigee.organizations.sharedflows.delete",
43426	//   "parameterOrder": [
43427	//     "name"
43428	//   ],
43429	//   "parameters": {
43430	//     "name": {
43431	//       "description": "Required. shared flow name of the form: `organizations/{organization_id}/sharedflows/{shared_flow_id}`",
43432	//       "location": "path",
43433	//       "pattern": "^organizations/[^/]+/sharedflows/[^/]+$",
43434	//       "required": true,
43435	//       "type": "string"
43436	//     }
43437	//   },
43438	//   "path": "v1/{+name}",
43439	//   "response": {
43440	//     "$ref": "GoogleCloudApigeeV1SharedFlow"
43441	//   },
43442	//   "scopes": [
43443	//     "https://www.googleapis.com/auth/cloud-platform"
43444	//   ]
43445	// }
43446
43447}
43448
43449// method id "apigee.organizations.sharedflows.get":
43450
43451type OrganizationsSharedflowsGetCall struct {
43452	s            *Service
43453	name         string
43454	urlParams_   gensupport.URLParams
43455	ifNoneMatch_ string
43456	ctx_         context.Context
43457	header_      http.Header
43458}
43459
43460// Get: Gets a shared flow by name, including a list of its revisions.
43461//
43462// - name: The name of the shared flow to get. Must be of the form:
43463//   `organizations/{organization_id}/sharedflows/{shared_flow_id}`.
43464func (r *OrganizationsSharedflowsService) Get(name string) *OrganizationsSharedflowsGetCall {
43465	c := &OrganizationsSharedflowsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43466	c.name = name
43467	return c
43468}
43469
43470// Fields allows partial responses to be retrieved. See
43471// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
43472// for more information.
43473func (c *OrganizationsSharedflowsGetCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsGetCall {
43474	c.urlParams_.Set("fields", googleapi.CombineFields(s))
43475	return c
43476}
43477
43478// IfNoneMatch sets the optional parameter which makes the operation
43479// fail if the object's ETag matches the given value. This is useful for
43480// getting updates only after the object has changed since the last
43481// request. Use googleapi.IsNotModified to check whether the response
43482// error from Do is the result of In-None-Match.
43483func (c *OrganizationsSharedflowsGetCall) IfNoneMatch(entityTag string) *OrganizationsSharedflowsGetCall {
43484	c.ifNoneMatch_ = entityTag
43485	return c
43486}
43487
43488// Context sets the context to be used in this call's Do method. Any
43489// pending HTTP request will be aborted if the provided context is
43490// canceled.
43491func (c *OrganizationsSharedflowsGetCall) Context(ctx context.Context) *OrganizationsSharedflowsGetCall {
43492	c.ctx_ = ctx
43493	return c
43494}
43495
43496// Header returns an http.Header that can be modified by the caller to
43497// add HTTP headers to the request.
43498func (c *OrganizationsSharedflowsGetCall) Header() http.Header {
43499	if c.header_ == nil {
43500		c.header_ = make(http.Header)
43501	}
43502	return c.header_
43503}
43504
43505func (c *OrganizationsSharedflowsGetCall) doRequest(alt string) (*http.Response, error) {
43506	reqHeaders := make(http.Header)
43507	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
43508	for k, v := range c.header_ {
43509		reqHeaders[k] = v
43510	}
43511	reqHeaders.Set("User-Agent", c.s.userAgent())
43512	if c.ifNoneMatch_ != "" {
43513		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
43514	}
43515	var body io.Reader = nil
43516	c.urlParams_.Set("alt", alt)
43517	c.urlParams_.Set("prettyPrint", "false")
43518	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
43519	urls += "?" + c.urlParams_.Encode()
43520	req, err := http.NewRequest("GET", urls, body)
43521	if err != nil {
43522		return nil, err
43523	}
43524	req.Header = reqHeaders
43525	googleapi.Expand(req.URL, map[string]string{
43526		"name": c.name,
43527	})
43528	return gensupport.SendRequest(c.ctx_, c.s.client, req)
43529}
43530
43531// Do executes the "apigee.organizations.sharedflows.get" call.
43532// Exactly one of *GoogleCloudApigeeV1SharedFlow or error will be
43533// non-nil. Any non-2xx status code is an error. Response headers are in
43534// either *GoogleCloudApigeeV1SharedFlow.ServerResponse.Header or (if a
43535// response was returned at all) in error.(*googleapi.Error).Header. Use
43536// googleapi.IsNotModified to check whether the returned error was
43537// because http.StatusNotModified was returned.
43538func (c *OrganizationsSharedflowsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SharedFlow, error) {
43539	gensupport.SetOptions(c.urlParams_, opts...)
43540	res, err := c.doRequest("json")
43541	if res != nil && res.StatusCode == http.StatusNotModified {
43542		if res.Body != nil {
43543			res.Body.Close()
43544		}
43545		return nil, &googleapi.Error{
43546			Code:   res.StatusCode,
43547			Header: res.Header,
43548		}
43549	}
43550	if err != nil {
43551		return nil, err
43552	}
43553	defer googleapi.CloseBody(res)
43554	if err := googleapi.CheckResponse(res); err != nil {
43555		return nil, err
43556	}
43557	ret := &GoogleCloudApigeeV1SharedFlow{
43558		ServerResponse: googleapi.ServerResponse{
43559			Header:         res.Header,
43560			HTTPStatusCode: res.StatusCode,
43561		},
43562	}
43563	target := &ret
43564	if err := gensupport.DecodeResponse(target, res); err != nil {
43565		return nil, err
43566	}
43567	return ret, nil
43568	// {
43569	//   "description": "Gets a shared flow by name, including a list of its revisions.",
43570	//   "flatPath": "v1/organizations/{organizationsId}/sharedflows/{sharedflowsId}",
43571	//   "httpMethod": "GET",
43572	//   "id": "apigee.organizations.sharedflows.get",
43573	//   "parameterOrder": [
43574	//     "name"
43575	//   ],
43576	//   "parameters": {
43577	//     "name": {
43578	//       "description": "Required. The name of the shared flow to get. Must be of the form: `organizations/{organization_id}/sharedflows/{shared_flow_id}`",
43579	//       "location": "path",
43580	//       "pattern": "^organizations/[^/]+/sharedflows/[^/]+$",
43581	//       "required": true,
43582	//       "type": "string"
43583	//     }
43584	//   },
43585	//   "path": "v1/{+name}",
43586	//   "response": {
43587	//     "$ref": "GoogleCloudApigeeV1SharedFlow"
43588	//   },
43589	//   "scopes": [
43590	//     "https://www.googleapis.com/auth/cloud-platform"
43591	//   ]
43592	// }
43593
43594}
43595
43596// method id "apigee.organizations.sharedflows.list":
43597
43598type OrganizationsSharedflowsListCall struct {
43599	s            *Service
43600	parent       string
43601	urlParams_   gensupport.URLParams
43602	ifNoneMatch_ string
43603	ctx_         context.Context
43604	header_      http.Header
43605}
43606
43607// List: Lists all shared flows in the organization.
43608//
43609// - parent: The name of the parent organization under which to get
43610//   shared flows. Must be of the form:
43611//   `organizations/{organization_id}`.
43612func (r *OrganizationsSharedflowsService) List(parent string) *OrganizationsSharedflowsListCall {
43613	c := &OrganizationsSharedflowsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43614	c.parent = parent
43615	return c
43616}
43617
43618// IncludeMetaData sets the optional parameter "includeMetaData":
43619// Indicates whether to include shared flow metadata in the response.
43620func (c *OrganizationsSharedflowsListCall) IncludeMetaData(includeMetaData bool) *OrganizationsSharedflowsListCall {
43621	c.urlParams_.Set("includeMetaData", fmt.Sprint(includeMetaData))
43622	return c
43623}
43624
43625// IncludeRevisions sets the optional parameter "includeRevisions":
43626// Indicates whether to include a list of revisions in the response.
43627func (c *OrganizationsSharedflowsListCall) IncludeRevisions(includeRevisions bool) *OrganizationsSharedflowsListCall {
43628	c.urlParams_.Set("includeRevisions", fmt.Sprint(includeRevisions))
43629	return c
43630}
43631
43632// Fields allows partial responses to be retrieved. See
43633// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
43634// for more information.
43635func (c *OrganizationsSharedflowsListCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsListCall {
43636	c.urlParams_.Set("fields", googleapi.CombineFields(s))
43637	return c
43638}
43639
43640// IfNoneMatch sets the optional parameter which makes the operation
43641// fail if the object's ETag matches the given value. This is useful for
43642// getting updates only after the object has changed since the last
43643// request. Use googleapi.IsNotModified to check whether the response
43644// error from Do is the result of In-None-Match.
43645func (c *OrganizationsSharedflowsListCall) IfNoneMatch(entityTag string) *OrganizationsSharedflowsListCall {
43646	c.ifNoneMatch_ = entityTag
43647	return c
43648}
43649
43650// Context sets the context to be used in this call's Do method. Any
43651// pending HTTP request will be aborted if the provided context is
43652// canceled.
43653func (c *OrganizationsSharedflowsListCall) Context(ctx context.Context) *OrganizationsSharedflowsListCall {
43654	c.ctx_ = ctx
43655	return c
43656}
43657
43658// Header returns an http.Header that can be modified by the caller to
43659// add HTTP headers to the request.
43660func (c *OrganizationsSharedflowsListCall) Header() http.Header {
43661	if c.header_ == nil {
43662		c.header_ = make(http.Header)
43663	}
43664	return c.header_
43665}
43666
43667func (c *OrganizationsSharedflowsListCall) doRequest(alt string) (*http.Response, error) {
43668	reqHeaders := make(http.Header)
43669	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
43670	for k, v := range c.header_ {
43671		reqHeaders[k] = v
43672	}
43673	reqHeaders.Set("User-Agent", c.s.userAgent())
43674	if c.ifNoneMatch_ != "" {
43675		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
43676	}
43677	var body io.Reader = nil
43678	c.urlParams_.Set("alt", alt)
43679	c.urlParams_.Set("prettyPrint", "false")
43680	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/sharedflows")
43681	urls += "?" + c.urlParams_.Encode()
43682	req, err := http.NewRequest("GET", urls, body)
43683	if err != nil {
43684		return nil, err
43685	}
43686	req.Header = reqHeaders
43687	googleapi.Expand(req.URL, map[string]string{
43688		"parent": c.parent,
43689	})
43690	return gensupport.SendRequest(c.ctx_, c.s.client, req)
43691}
43692
43693// Do executes the "apigee.organizations.sharedflows.list" call.
43694// Exactly one of *GoogleCloudApigeeV1ListSharedFlowsResponse or error
43695// will be non-nil. Any non-2xx status code is an error. Response
43696// headers are in either
43697// *GoogleCloudApigeeV1ListSharedFlowsResponse.ServerResponse.Header or
43698// (if a response was returned at all) in
43699// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
43700// whether the returned error was because http.StatusNotModified was
43701// returned.
43702func (c *OrganizationsSharedflowsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListSharedFlowsResponse, error) {
43703	gensupport.SetOptions(c.urlParams_, opts...)
43704	res, err := c.doRequest("json")
43705	if res != nil && res.StatusCode == http.StatusNotModified {
43706		if res.Body != nil {
43707			res.Body.Close()
43708		}
43709		return nil, &googleapi.Error{
43710			Code:   res.StatusCode,
43711			Header: res.Header,
43712		}
43713	}
43714	if err != nil {
43715		return nil, err
43716	}
43717	defer googleapi.CloseBody(res)
43718	if err := googleapi.CheckResponse(res); err != nil {
43719		return nil, err
43720	}
43721	ret := &GoogleCloudApigeeV1ListSharedFlowsResponse{
43722		ServerResponse: googleapi.ServerResponse{
43723			Header:         res.Header,
43724			HTTPStatusCode: res.StatusCode,
43725		},
43726	}
43727	target := &ret
43728	if err := gensupport.DecodeResponse(target, res); err != nil {
43729		return nil, err
43730	}
43731	return ret, nil
43732	// {
43733	//   "description": "Lists all shared flows in the organization.",
43734	//   "flatPath": "v1/organizations/{organizationsId}/sharedflows",
43735	//   "httpMethod": "GET",
43736	//   "id": "apigee.organizations.sharedflows.list",
43737	//   "parameterOrder": [
43738	//     "parent"
43739	//   ],
43740	//   "parameters": {
43741	//     "includeMetaData": {
43742	//       "description": "Indicates whether to include shared flow metadata in the response.",
43743	//       "location": "query",
43744	//       "type": "boolean"
43745	//     },
43746	//     "includeRevisions": {
43747	//       "description": "Indicates whether to include a list of revisions in the response.",
43748	//       "location": "query",
43749	//       "type": "boolean"
43750	//     },
43751	//     "parent": {
43752	//       "description": "Required. The name of the parent organization under which to get shared flows. Must be of the form: `organizations/{organization_id}`",
43753	//       "location": "path",
43754	//       "pattern": "^organizations/[^/]+$",
43755	//       "required": true,
43756	//       "type": "string"
43757	//     }
43758	//   },
43759	//   "path": "v1/{+parent}/sharedflows",
43760	//   "response": {
43761	//     "$ref": "GoogleCloudApigeeV1ListSharedFlowsResponse"
43762	//   },
43763	//   "scopes": [
43764	//     "https://www.googleapis.com/auth/cloud-platform"
43765	//   ]
43766	// }
43767
43768}
43769
43770// method id "apigee.organizations.sharedflows.deployments.list":
43771
43772type OrganizationsSharedflowsDeploymentsListCall struct {
43773	s            *Service
43774	parent       string
43775	urlParams_   gensupport.URLParams
43776	ifNoneMatch_ string
43777	ctx_         context.Context
43778	header_      http.Header
43779}
43780
43781// List: Lists all deployments of a shared flow.
43782//
43783// - parent: Name of the shared flow for which to return deployment
43784//   information in the following format:
43785//   `organizations/{org}/sharedflows/{sharedflow}`.
43786func (r *OrganizationsSharedflowsDeploymentsService) List(parent string) *OrganizationsSharedflowsDeploymentsListCall {
43787	c := &OrganizationsSharedflowsDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43788	c.parent = parent
43789	return c
43790}
43791
43792// Fields allows partial responses to be retrieved. See
43793// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
43794// for more information.
43795func (c *OrganizationsSharedflowsDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsDeploymentsListCall {
43796	c.urlParams_.Set("fields", googleapi.CombineFields(s))
43797	return c
43798}
43799
43800// IfNoneMatch sets the optional parameter which makes the operation
43801// fail if the object's ETag matches the given value. This is useful for
43802// getting updates only after the object has changed since the last
43803// request. Use googleapi.IsNotModified to check whether the response
43804// error from Do is the result of In-None-Match.
43805func (c *OrganizationsSharedflowsDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsSharedflowsDeploymentsListCall {
43806	c.ifNoneMatch_ = entityTag
43807	return c
43808}
43809
43810// Context sets the context to be used in this call's Do method. Any
43811// pending HTTP request will be aborted if the provided context is
43812// canceled.
43813func (c *OrganizationsSharedflowsDeploymentsListCall) Context(ctx context.Context) *OrganizationsSharedflowsDeploymentsListCall {
43814	c.ctx_ = ctx
43815	return c
43816}
43817
43818// Header returns an http.Header that can be modified by the caller to
43819// add HTTP headers to the request.
43820func (c *OrganizationsSharedflowsDeploymentsListCall) Header() http.Header {
43821	if c.header_ == nil {
43822		c.header_ = make(http.Header)
43823	}
43824	return c.header_
43825}
43826
43827func (c *OrganizationsSharedflowsDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
43828	reqHeaders := make(http.Header)
43829	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
43830	for k, v := range c.header_ {
43831		reqHeaders[k] = v
43832	}
43833	reqHeaders.Set("User-Agent", c.s.userAgent())
43834	if c.ifNoneMatch_ != "" {
43835		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
43836	}
43837	var body io.Reader = nil
43838	c.urlParams_.Set("alt", alt)
43839	c.urlParams_.Set("prettyPrint", "false")
43840	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
43841	urls += "?" + c.urlParams_.Encode()
43842	req, err := http.NewRequest("GET", urls, body)
43843	if err != nil {
43844		return nil, err
43845	}
43846	req.Header = reqHeaders
43847	googleapi.Expand(req.URL, map[string]string{
43848		"parent": c.parent,
43849	})
43850	return gensupport.SendRequest(c.ctx_, c.s.client, req)
43851}
43852
43853// Do executes the "apigee.organizations.sharedflows.deployments.list" call.
43854// Exactly one of *GoogleCloudApigeeV1ListDeploymentsResponse or error
43855// will be non-nil. Any non-2xx status code is an error. Response
43856// headers are in either
43857// *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or
43858// (if a response was returned at all) in
43859// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
43860// whether the returned error was because http.StatusNotModified was
43861// returned.
43862func (c *OrganizationsSharedflowsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
43863	gensupport.SetOptions(c.urlParams_, opts...)
43864	res, err := c.doRequest("json")
43865	if res != nil && res.StatusCode == http.StatusNotModified {
43866		if res.Body != nil {
43867			res.Body.Close()
43868		}
43869		return nil, &googleapi.Error{
43870			Code:   res.StatusCode,
43871			Header: res.Header,
43872		}
43873	}
43874	if err != nil {
43875		return nil, err
43876	}
43877	defer googleapi.CloseBody(res)
43878	if err := googleapi.CheckResponse(res); err != nil {
43879		return nil, err
43880	}
43881	ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
43882		ServerResponse: googleapi.ServerResponse{
43883			Header:         res.Header,
43884			HTTPStatusCode: res.StatusCode,
43885		},
43886	}
43887	target := &ret
43888	if err := gensupport.DecodeResponse(target, res); err != nil {
43889		return nil, err
43890	}
43891	return ret, nil
43892	// {
43893	//   "description": "Lists all deployments of a shared flow.",
43894	//   "flatPath": "v1/organizations/{organizationsId}/sharedflows/{sharedflowsId}/deployments",
43895	//   "httpMethod": "GET",
43896	//   "id": "apigee.organizations.sharedflows.deployments.list",
43897	//   "parameterOrder": [
43898	//     "parent"
43899	//   ],
43900	//   "parameters": {
43901	//     "parent": {
43902	//       "description": "Required. Name of the shared flow for which to return deployment information in the following format: `organizations/{org}/sharedflows/{sharedflow}`",
43903	//       "location": "path",
43904	//       "pattern": "^organizations/[^/]+/sharedflows/[^/]+$",
43905	//       "required": true,
43906	//       "type": "string"
43907	//     }
43908	//   },
43909	//   "path": "v1/{+parent}/deployments",
43910	//   "response": {
43911	//     "$ref": "GoogleCloudApigeeV1ListDeploymentsResponse"
43912	//   },
43913	//   "scopes": [
43914	//     "https://www.googleapis.com/auth/cloud-platform"
43915	//   ]
43916	// }
43917
43918}
43919
43920// method id "apigee.organizations.sharedflows.revisions.delete":
43921
43922type OrganizationsSharedflowsRevisionsDeleteCall struct {
43923	s          *Service
43924	name       string
43925	urlParams_ gensupport.URLParams
43926	ctx_       context.Context
43927	header_    http.Header
43928}
43929
43930// Delete: Deletes a shared flow and all associated policies, resources,
43931// and revisions. You must undeploy the shared flow before deleting it.
43932//
43933// - name: The name of the shared flow revision to delete. Must be of
43934//   the form:
43935//   `organizations/{organization_id}/sharedflows/{shared_flow_id}/revisi
43936//   ons/{revision_id}`.
43937func (r *OrganizationsSharedflowsRevisionsService) Delete(name string) *OrganizationsSharedflowsRevisionsDeleteCall {
43938	c := &OrganizationsSharedflowsRevisionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43939	c.name = name
43940	return c
43941}
43942
43943// Fields allows partial responses to be retrieved. See
43944// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
43945// for more information.
43946func (c *OrganizationsSharedflowsRevisionsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsRevisionsDeleteCall {
43947	c.urlParams_.Set("fields", googleapi.CombineFields(s))
43948	return c
43949}
43950
43951// Context sets the context to be used in this call's Do method. Any
43952// pending HTTP request will be aborted if the provided context is
43953// canceled.
43954func (c *OrganizationsSharedflowsRevisionsDeleteCall) Context(ctx context.Context) *OrganizationsSharedflowsRevisionsDeleteCall {
43955	c.ctx_ = ctx
43956	return c
43957}
43958
43959// Header returns an http.Header that can be modified by the caller to
43960// add HTTP headers to the request.
43961func (c *OrganizationsSharedflowsRevisionsDeleteCall) Header() http.Header {
43962	if c.header_ == nil {
43963		c.header_ = make(http.Header)
43964	}
43965	return c.header_
43966}
43967
43968func (c *OrganizationsSharedflowsRevisionsDeleteCall) doRequest(alt string) (*http.Response, error) {
43969	reqHeaders := make(http.Header)
43970	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
43971	for k, v := range c.header_ {
43972		reqHeaders[k] = v
43973	}
43974	reqHeaders.Set("User-Agent", c.s.userAgent())
43975	var body io.Reader = nil
43976	c.urlParams_.Set("alt", alt)
43977	c.urlParams_.Set("prettyPrint", "false")
43978	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
43979	urls += "?" + c.urlParams_.Encode()
43980	req, err := http.NewRequest("DELETE", urls, body)
43981	if err != nil {
43982		return nil, err
43983	}
43984	req.Header = reqHeaders
43985	googleapi.Expand(req.URL, map[string]string{
43986		"name": c.name,
43987	})
43988	return gensupport.SendRequest(c.ctx_, c.s.client, req)
43989}
43990
43991// Do executes the "apigee.organizations.sharedflows.revisions.delete" call.
43992// Exactly one of *GoogleCloudApigeeV1SharedFlowRevision or error will
43993// be non-nil. Any non-2xx status code is an error. Response headers are
43994// in either
43995// *GoogleCloudApigeeV1SharedFlowRevision.ServerResponse.Header or (if a
43996// response was returned at all) in error.(*googleapi.Error).Header. Use
43997// googleapi.IsNotModified to check whether the returned error was
43998// because http.StatusNotModified was returned.
43999func (c *OrganizationsSharedflowsRevisionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SharedFlowRevision, error) {
44000	gensupport.SetOptions(c.urlParams_, opts...)
44001	res, err := c.doRequest("json")
44002	if res != nil && res.StatusCode == http.StatusNotModified {
44003		if res.Body != nil {
44004			res.Body.Close()
44005		}
44006		return nil, &googleapi.Error{
44007			Code:   res.StatusCode,
44008			Header: res.Header,
44009		}
44010	}
44011	if err != nil {
44012		return nil, err
44013	}
44014	defer googleapi.CloseBody(res)
44015	if err := googleapi.CheckResponse(res); err != nil {
44016		return nil, err
44017	}
44018	ret := &GoogleCloudApigeeV1SharedFlowRevision{
44019		ServerResponse: googleapi.ServerResponse{
44020			Header:         res.Header,
44021			HTTPStatusCode: res.StatusCode,
44022		},
44023	}
44024	target := &ret
44025	if err := gensupport.DecodeResponse(target, res); err != nil {
44026		return nil, err
44027	}
44028	return ret, nil
44029	// {
44030	//   "description": "Deletes a shared flow and all associated policies, resources, and revisions. You must undeploy the shared flow before deleting it.",
44031	//   "flatPath": "v1/organizations/{organizationsId}/sharedflows/{sharedflowsId}/revisions/{revisionsId}",
44032	//   "httpMethod": "DELETE",
44033	//   "id": "apigee.organizations.sharedflows.revisions.delete",
44034	//   "parameterOrder": [
44035	//     "name"
44036	//   ],
44037	//   "parameters": {
44038	//     "name": {
44039	//       "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}`",
44040	//       "location": "path",
44041	//       "pattern": "^organizations/[^/]+/sharedflows/[^/]+/revisions/[^/]+$",
44042	//       "required": true,
44043	//       "type": "string"
44044	//     }
44045	//   },
44046	//   "path": "v1/{+name}",
44047	//   "response": {
44048	//     "$ref": "GoogleCloudApigeeV1SharedFlowRevision"
44049	//   },
44050	//   "scopes": [
44051	//     "https://www.googleapis.com/auth/cloud-platform"
44052	//   ]
44053	// }
44054
44055}
44056
44057// method id "apigee.organizations.sharedflows.revisions.get":
44058
44059type OrganizationsSharedflowsRevisionsGetCall struct {
44060	s            *Service
44061	name         string
44062	urlParams_   gensupport.URLParams
44063	ifNoneMatch_ string
44064	ctx_         context.Context
44065	header_      http.Header
44066}
44067
44068// Get: Gets a revision of a shared flow. To download the shared flow
44069// configuration bundle for the specified revision as a zip file, set
44070// the `format` query parameter to `bundle`. If you are using curl,
44071// specify `-o filename.zip` to save the output to a file; otherwise, it
44072// displays to `stdout`. Then, develop the shared flow configuration
44073// locally and upload the updated sharedFlow configuration revision, as
44074// described in updateSharedFlowRevision (updateSharedFlowRevision).
44075//
44076// - name: The name of the shared flow revision to get. Must be of the
44077//   form:
44078//   `organizations/{organization_id}/sharedflows/{shared_flow_id}/revisi
44079//   ons/{revision_id}`.
44080func (r *OrganizationsSharedflowsRevisionsService) Get(name string) *OrganizationsSharedflowsRevisionsGetCall {
44081	c := &OrganizationsSharedflowsRevisionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44082	c.name = name
44083	return c
44084}
44085
44086// Format sets the optional parameter "format": Specify `bundle` to
44087// export the contents of the shared flow bundle. Otherwise, the bundle
44088// metadata is returned.
44089func (c *OrganizationsSharedflowsRevisionsGetCall) Format(format string) *OrganizationsSharedflowsRevisionsGetCall {
44090	c.urlParams_.Set("format", format)
44091	return c
44092}
44093
44094// Fields allows partial responses to be retrieved. See
44095// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
44096// for more information.
44097func (c *OrganizationsSharedflowsRevisionsGetCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsRevisionsGetCall {
44098	c.urlParams_.Set("fields", googleapi.CombineFields(s))
44099	return c
44100}
44101
44102// IfNoneMatch sets the optional parameter which makes the operation
44103// fail if the object's ETag matches the given value. This is useful for
44104// getting updates only after the object has changed since the last
44105// request. Use googleapi.IsNotModified to check whether the response
44106// error from Do is the result of In-None-Match.
44107func (c *OrganizationsSharedflowsRevisionsGetCall) IfNoneMatch(entityTag string) *OrganizationsSharedflowsRevisionsGetCall {
44108	c.ifNoneMatch_ = entityTag
44109	return c
44110}
44111
44112// Context sets the context to be used in this call's Do method. Any
44113// pending HTTP request will be aborted if the provided context is
44114// canceled.
44115func (c *OrganizationsSharedflowsRevisionsGetCall) Context(ctx context.Context) *OrganizationsSharedflowsRevisionsGetCall {
44116	c.ctx_ = ctx
44117	return c
44118}
44119
44120// Header returns an http.Header that can be modified by the caller to
44121// add HTTP headers to the request.
44122func (c *OrganizationsSharedflowsRevisionsGetCall) Header() http.Header {
44123	if c.header_ == nil {
44124		c.header_ = make(http.Header)
44125	}
44126	return c.header_
44127}
44128
44129func (c *OrganizationsSharedflowsRevisionsGetCall) doRequest(alt string) (*http.Response, error) {
44130	reqHeaders := make(http.Header)
44131	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
44132	for k, v := range c.header_ {
44133		reqHeaders[k] = v
44134	}
44135	reqHeaders.Set("User-Agent", c.s.userAgent())
44136	if c.ifNoneMatch_ != "" {
44137		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
44138	}
44139	var body io.Reader = nil
44140	c.urlParams_.Set("alt", alt)
44141	c.urlParams_.Set("prettyPrint", "false")
44142	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
44143	urls += "?" + c.urlParams_.Encode()
44144	req, err := http.NewRequest("GET", urls, body)
44145	if err != nil {
44146		return nil, err
44147	}
44148	req.Header = reqHeaders
44149	googleapi.Expand(req.URL, map[string]string{
44150		"name": c.name,
44151	})
44152	return gensupport.SendRequest(c.ctx_, c.s.client, req)
44153}
44154
44155// Do executes the "apigee.organizations.sharedflows.revisions.get" call.
44156// Exactly one of *GoogleApiHttpBody or error will be non-nil. Any
44157// non-2xx status code is an error. Response headers are in either
44158// *GoogleApiHttpBody.ServerResponse.Header or (if a response was
44159// returned at all) in error.(*googleapi.Error).Header. Use
44160// googleapi.IsNotModified to check whether the returned error was
44161// because http.StatusNotModified was returned.
44162func (c *OrganizationsSharedflowsRevisionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
44163	gensupport.SetOptions(c.urlParams_, opts...)
44164	res, err := c.doRequest("json")
44165	if res != nil && res.StatusCode == http.StatusNotModified {
44166		if res.Body != nil {
44167			res.Body.Close()
44168		}
44169		return nil, &googleapi.Error{
44170			Code:   res.StatusCode,
44171			Header: res.Header,
44172		}
44173	}
44174	if err != nil {
44175		return nil, err
44176	}
44177	defer googleapi.CloseBody(res)
44178	if err := googleapi.CheckResponse(res); err != nil {
44179		return nil, err
44180	}
44181	ret := &GoogleApiHttpBody{
44182		ServerResponse: googleapi.ServerResponse{
44183			Header:         res.Header,
44184			HTTPStatusCode: res.StatusCode,
44185		},
44186	}
44187	target := &ret
44188	if err := gensupport.DecodeResponse(target, res); err != nil {
44189		return nil, err
44190	}
44191	return ret, nil
44192	// {
44193	//   "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).",
44194	//   "flatPath": "v1/organizations/{organizationsId}/sharedflows/{sharedflowsId}/revisions/{revisionsId}",
44195	//   "httpMethod": "GET",
44196	//   "id": "apigee.organizations.sharedflows.revisions.get",
44197	//   "parameterOrder": [
44198	//     "name"
44199	//   ],
44200	//   "parameters": {
44201	//     "format": {
44202	//       "description": "Specify `bundle` to export the contents of the shared flow bundle. Otherwise, the bundle metadata is returned.",
44203	//       "location": "query",
44204	//       "type": "string"
44205	//     },
44206	//     "name": {
44207	//       "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}`",
44208	//       "location": "path",
44209	//       "pattern": "^organizations/[^/]+/sharedflows/[^/]+/revisions/[^/]+$",
44210	//       "required": true,
44211	//       "type": "string"
44212	//     }
44213	//   },
44214	//   "path": "v1/{+name}",
44215	//   "response": {
44216	//     "$ref": "GoogleApiHttpBody"
44217	//   },
44218	//   "scopes": [
44219	//     "https://www.googleapis.com/auth/cloud-platform"
44220	//   ]
44221	// }
44222
44223}
44224
44225// method id "apigee.organizations.sharedflows.revisions.updateSharedFlowRevision":
44226
44227type OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall struct {
44228	s                 *Service
44229	name              string
44230	googleapihttpbody *GoogleApiHttpBody
44231	urlParams_        gensupport.URLParams
44232	ctx_              context.Context
44233	header_           http.Header
44234}
44235
44236// UpdateSharedFlowRevision: Updates a shared flow revision. This
44237// operation is only allowed on revisions which have never been
44238// deployed. After deployment a revision becomes immutable, even if it
44239// becomes undeployed. The payload is a ZIP-formatted shared flow.
44240// Content type must be either multipart/form-data or
44241// application/octet-stream.
44242//
44243// - name: The name of the shared flow revision to update. Must be of
44244//   the form:
44245//   `organizations/{organization_id}/sharedflows/{shared_flow_id}/revisi
44246//   ons/{revision_id}`.
44247func (r *OrganizationsSharedflowsRevisionsService) UpdateSharedFlowRevision(name string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall {
44248	c := &OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44249	c.name = name
44250	c.googleapihttpbody = googleapihttpbody
44251	return c
44252}
44253
44254// Validate sets the optional parameter "validate": Ignored. All uploads
44255// are validated regardless of the value of this field. It is kept for
44256// compatibility with existing APIs. Must be `true` or `false` if
44257// provided.
44258func (c *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall) Validate(validate bool) *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall {
44259	c.urlParams_.Set("validate", fmt.Sprint(validate))
44260	return c
44261}
44262
44263// Fields allows partial responses to be retrieved. See
44264// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
44265// for more information.
44266func (c *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall {
44267	c.urlParams_.Set("fields", googleapi.CombineFields(s))
44268	return c
44269}
44270
44271// Context sets the context to be used in this call's Do method. Any
44272// pending HTTP request will be aborted if the provided context is
44273// canceled.
44274func (c *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall) Context(ctx context.Context) *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall {
44275	c.ctx_ = ctx
44276	return c
44277}
44278
44279// Header returns an http.Header that can be modified by the caller to
44280// add HTTP headers to the request.
44281func (c *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall) Header() http.Header {
44282	if c.header_ == nil {
44283		c.header_ = make(http.Header)
44284	}
44285	return c.header_
44286}
44287
44288func (c *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall) doRequest(alt string) (*http.Response, error) {
44289	reqHeaders := make(http.Header)
44290	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
44291	for k, v := range c.header_ {
44292		reqHeaders[k] = v
44293	}
44294	reqHeaders.Set("User-Agent", c.s.userAgent())
44295	var body io.Reader = nil
44296	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
44297	if err != nil {
44298		return nil, err
44299	}
44300	reqHeaders.Set("Content-Type", "application/json")
44301	c.urlParams_.Set("alt", alt)
44302	c.urlParams_.Set("prettyPrint", "false")
44303	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
44304	urls += "?" + c.urlParams_.Encode()
44305	req, err := http.NewRequest("POST", urls, body)
44306	if err != nil {
44307		return nil, err
44308	}
44309	req.Header = reqHeaders
44310	googleapi.Expand(req.URL, map[string]string{
44311		"name": c.name,
44312	})
44313	return gensupport.SendRequest(c.ctx_, c.s.client, req)
44314}
44315
44316// Do executes the "apigee.organizations.sharedflows.revisions.updateSharedFlowRevision" call.
44317// Exactly one of *GoogleCloudApigeeV1SharedFlowRevision or error will
44318// be non-nil. Any non-2xx status code is an error. Response headers are
44319// in either
44320// *GoogleCloudApigeeV1SharedFlowRevision.ServerResponse.Header or (if a
44321// response was returned at all) in error.(*googleapi.Error).Header. Use
44322// googleapi.IsNotModified to check whether the returned error was
44323// because http.StatusNotModified was returned.
44324func (c *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SharedFlowRevision, error) {
44325	gensupport.SetOptions(c.urlParams_, opts...)
44326	res, err := c.doRequest("json")
44327	if res != nil && res.StatusCode == http.StatusNotModified {
44328		if res.Body != nil {
44329			res.Body.Close()
44330		}
44331		return nil, &googleapi.Error{
44332			Code:   res.StatusCode,
44333			Header: res.Header,
44334		}
44335	}
44336	if err != nil {
44337		return nil, err
44338	}
44339	defer googleapi.CloseBody(res)
44340	if err := googleapi.CheckResponse(res); err != nil {
44341		return nil, err
44342	}
44343	ret := &GoogleCloudApigeeV1SharedFlowRevision{
44344		ServerResponse: googleapi.ServerResponse{
44345			Header:         res.Header,
44346			HTTPStatusCode: res.StatusCode,
44347		},
44348	}
44349	target := &ret
44350	if err := gensupport.DecodeResponse(target, res); err != nil {
44351		return nil, err
44352	}
44353	return ret, nil
44354	// {
44355	//   "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.",
44356	//   "flatPath": "v1/organizations/{organizationsId}/sharedflows/{sharedflowsId}/revisions/{revisionsId}",
44357	//   "httpMethod": "POST",
44358	//   "id": "apigee.organizations.sharedflows.revisions.updateSharedFlowRevision",
44359	//   "parameterOrder": [
44360	//     "name"
44361	//   ],
44362	//   "parameters": {
44363	//     "name": {
44364	//       "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}`",
44365	//       "location": "path",
44366	//       "pattern": "^organizations/[^/]+/sharedflows/[^/]+/revisions/[^/]+$",
44367	//       "required": true,
44368	//       "type": "string"
44369	//     },
44370	//     "validate": {
44371	//       "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.",
44372	//       "location": "query",
44373	//       "type": "boolean"
44374	//     }
44375	//   },
44376	//   "path": "v1/{+name}",
44377	//   "request": {
44378	//     "$ref": "GoogleApiHttpBody"
44379	//   },
44380	//   "response": {
44381	//     "$ref": "GoogleCloudApigeeV1SharedFlowRevision"
44382	//   },
44383	//   "scopes": [
44384	//     "https://www.googleapis.com/auth/cloud-platform"
44385	//   ]
44386	// }
44387
44388}
44389
44390// method id "apigee.organizations.sharedflows.revisions.deployments.list":
44391
44392type OrganizationsSharedflowsRevisionsDeploymentsListCall struct {
44393	s            *Service
44394	parent       string
44395	urlParams_   gensupport.URLParams
44396	ifNoneMatch_ string
44397	ctx_         context.Context
44398	header_      http.Header
44399}
44400
44401// List: Lists all deployments of a shared flow revision.
44402//
44403// - parent: Name of the API proxy revision for which to return
44404//   deployment information in the following format:
44405//   `organizations/{org}/sharedflows/{sharedflow}/revisions/{rev}`.
44406func (r *OrganizationsSharedflowsRevisionsDeploymentsService) List(parent string) *OrganizationsSharedflowsRevisionsDeploymentsListCall {
44407	c := &OrganizationsSharedflowsRevisionsDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44408	c.parent = parent
44409	return c
44410}
44411
44412// Fields allows partial responses to be retrieved. See
44413// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
44414// for more information.
44415func (c *OrganizationsSharedflowsRevisionsDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsRevisionsDeploymentsListCall {
44416	c.urlParams_.Set("fields", googleapi.CombineFields(s))
44417	return c
44418}
44419
44420// IfNoneMatch sets the optional parameter which makes the operation
44421// fail if the object's ETag matches the given value. This is useful for
44422// getting updates only after the object has changed since the last
44423// request. Use googleapi.IsNotModified to check whether the response
44424// error from Do is the result of In-None-Match.
44425func (c *OrganizationsSharedflowsRevisionsDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsSharedflowsRevisionsDeploymentsListCall {
44426	c.ifNoneMatch_ = entityTag
44427	return c
44428}
44429
44430// Context sets the context to be used in this call's Do method. Any
44431// pending HTTP request will be aborted if the provided context is
44432// canceled.
44433func (c *OrganizationsSharedflowsRevisionsDeploymentsListCall) Context(ctx context.Context) *OrganizationsSharedflowsRevisionsDeploymentsListCall {
44434	c.ctx_ = ctx
44435	return c
44436}
44437
44438// Header returns an http.Header that can be modified by the caller to
44439// add HTTP headers to the request.
44440func (c *OrganizationsSharedflowsRevisionsDeploymentsListCall) Header() http.Header {
44441	if c.header_ == nil {
44442		c.header_ = make(http.Header)
44443	}
44444	return c.header_
44445}
44446
44447func (c *OrganizationsSharedflowsRevisionsDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
44448	reqHeaders := make(http.Header)
44449	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
44450	for k, v := range c.header_ {
44451		reqHeaders[k] = v
44452	}
44453	reqHeaders.Set("User-Agent", c.s.userAgent())
44454	if c.ifNoneMatch_ != "" {
44455		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
44456	}
44457	var body io.Reader = nil
44458	c.urlParams_.Set("alt", alt)
44459	c.urlParams_.Set("prettyPrint", "false")
44460	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
44461	urls += "?" + c.urlParams_.Encode()
44462	req, err := http.NewRequest("GET", urls, body)
44463	if err != nil {
44464		return nil, err
44465	}
44466	req.Header = reqHeaders
44467	googleapi.Expand(req.URL, map[string]string{
44468		"parent": c.parent,
44469	})
44470	return gensupport.SendRequest(c.ctx_, c.s.client, req)
44471}
44472
44473// Do executes the "apigee.organizations.sharedflows.revisions.deployments.list" call.
44474// Exactly one of *GoogleCloudApigeeV1ListDeploymentsResponse or error
44475// will be non-nil. Any non-2xx status code is an error. Response
44476// headers are in either
44477// *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or
44478// (if a response was returned at all) in
44479// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
44480// whether the returned error was because http.StatusNotModified was
44481// returned.
44482func (c *OrganizationsSharedflowsRevisionsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
44483	gensupport.SetOptions(c.urlParams_, opts...)
44484	res, err := c.doRequest("json")
44485	if res != nil && res.StatusCode == http.StatusNotModified {
44486		if res.Body != nil {
44487			res.Body.Close()
44488		}
44489		return nil, &googleapi.Error{
44490			Code:   res.StatusCode,
44491			Header: res.Header,
44492		}
44493	}
44494	if err != nil {
44495		return nil, err
44496	}
44497	defer googleapi.CloseBody(res)
44498	if err := googleapi.CheckResponse(res); err != nil {
44499		return nil, err
44500	}
44501	ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
44502		ServerResponse: googleapi.ServerResponse{
44503			Header:         res.Header,
44504			HTTPStatusCode: res.StatusCode,
44505		},
44506	}
44507	target := &ret
44508	if err := gensupport.DecodeResponse(target, res); err != nil {
44509		return nil, err
44510	}
44511	return ret, nil
44512	// {
44513	//   "description": "Lists all deployments of a shared flow revision.",
44514	//   "flatPath": "v1/organizations/{organizationsId}/sharedflows/{sharedflowsId}/revisions/{revisionsId}/deployments",
44515	//   "httpMethod": "GET",
44516	//   "id": "apigee.organizations.sharedflows.revisions.deployments.list",
44517	//   "parameterOrder": [
44518	//     "parent"
44519	//   ],
44520	//   "parameters": {
44521	//     "parent": {
44522	//       "description": "Required. Name of the API proxy revision for which to return deployment information in the following format: `organizations/{org}/sharedflows/{sharedflow}/revisions/{rev}`.",
44523	//       "location": "path",
44524	//       "pattern": "^organizations/[^/]+/sharedflows/[^/]+/revisions/[^/]+$",
44525	//       "required": true,
44526	//       "type": "string"
44527	//     }
44528	//   },
44529	//   "path": "v1/{+parent}/deployments",
44530	//   "response": {
44531	//     "$ref": "GoogleCloudApigeeV1ListDeploymentsResponse"
44532	//   },
44533	//   "scopes": [
44534	//     "https://www.googleapis.com/auth/cloud-platform"
44535	//   ]
44536	// }
44537
44538}
44539
44540// method id "apigee.organizations.sites.apicategories.create":
44541
44542type OrganizationsSitesApicategoriesCreateCall struct {
44543	s                                  *Service
44544	parent                             string
44545	googlecloudapigeev1apicategorydata *GoogleCloudApigeeV1ApiCategoryData
44546	urlParams_                         gensupport.URLParams
44547	ctx_                               context.Context
44548	header_                            http.Header
44549}
44550
44551// Create: Creates a new category on the portal.
44552//
44553// - parent: Name of the portal. Use the following structure in your
44554//   request: `organizations/{org}/sites/{site}`.
44555func (r *OrganizationsSitesApicategoriesService) Create(parent string, googlecloudapigeev1apicategorydata *GoogleCloudApigeeV1ApiCategoryData) *OrganizationsSitesApicategoriesCreateCall {
44556	c := &OrganizationsSitesApicategoriesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44557	c.parent = parent
44558	c.googlecloudapigeev1apicategorydata = googlecloudapigeev1apicategorydata
44559	return c
44560}
44561
44562// Fields allows partial responses to be retrieved. See
44563// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
44564// for more information.
44565func (c *OrganizationsSitesApicategoriesCreateCall) Fields(s ...googleapi.Field) *OrganizationsSitesApicategoriesCreateCall {
44566	c.urlParams_.Set("fields", googleapi.CombineFields(s))
44567	return c
44568}
44569
44570// Context sets the context to be used in this call's Do method. Any
44571// pending HTTP request will be aborted if the provided context is
44572// canceled.
44573func (c *OrganizationsSitesApicategoriesCreateCall) Context(ctx context.Context) *OrganizationsSitesApicategoriesCreateCall {
44574	c.ctx_ = ctx
44575	return c
44576}
44577
44578// Header returns an http.Header that can be modified by the caller to
44579// add HTTP headers to the request.
44580func (c *OrganizationsSitesApicategoriesCreateCall) Header() http.Header {
44581	if c.header_ == nil {
44582		c.header_ = make(http.Header)
44583	}
44584	return c.header_
44585}
44586
44587func (c *OrganizationsSitesApicategoriesCreateCall) doRequest(alt string) (*http.Response, error) {
44588	reqHeaders := make(http.Header)
44589	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
44590	for k, v := range c.header_ {
44591		reqHeaders[k] = v
44592	}
44593	reqHeaders.Set("User-Agent", c.s.userAgent())
44594	var body io.Reader = nil
44595	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1apicategorydata)
44596	if err != nil {
44597		return nil, err
44598	}
44599	reqHeaders.Set("Content-Type", "application/json")
44600	c.urlParams_.Set("alt", alt)
44601	c.urlParams_.Set("prettyPrint", "false")
44602	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apicategories")
44603	urls += "?" + c.urlParams_.Encode()
44604	req, err := http.NewRequest("POST", urls, body)
44605	if err != nil {
44606		return nil, err
44607	}
44608	req.Header = reqHeaders
44609	googleapi.Expand(req.URL, map[string]string{
44610		"parent": c.parent,
44611	})
44612	return gensupport.SendRequest(c.ctx_, c.s.client, req)
44613}
44614
44615// Do executes the "apigee.organizations.sites.apicategories.create" call.
44616// Exactly one of *GoogleCloudApigeeV1ApiCategory or error will be
44617// non-nil. Any non-2xx status code is an error. Response headers are in
44618// either *GoogleCloudApigeeV1ApiCategory.ServerResponse.Header or (if a
44619// response was returned at all) in error.(*googleapi.Error).Header. Use
44620// googleapi.IsNotModified to check whether the returned error was
44621// because http.StatusNotModified was returned.
44622func (c *OrganizationsSitesApicategoriesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiCategory, error) {
44623	gensupport.SetOptions(c.urlParams_, opts...)
44624	res, err := c.doRequest("json")
44625	if res != nil && res.StatusCode == http.StatusNotModified {
44626		if res.Body != nil {
44627			res.Body.Close()
44628		}
44629		return nil, &googleapi.Error{
44630			Code:   res.StatusCode,
44631			Header: res.Header,
44632		}
44633	}
44634	if err != nil {
44635		return nil, err
44636	}
44637	defer googleapi.CloseBody(res)
44638	if err := googleapi.CheckResponse(res); err != nil {
44639		return nil, err
44640	}
44641	ret := &GoogleCloudApigeeV1ApiCategory{
44642		ServerResponse: googleapi.ServerResponse{
44643			Header:         res.Header,
44644			HTTPStatusCode: res.StatusCode,
44645		},
44646	}
44647	target := &ret
44648	if err := gensupport.DecodeResponse(target, res); err != nil {
44649		return nil, err
44650	}
44651	return ret, nil
44652	// {
44653	//   "description": "Creates a new category on the portal.",
44654	//   "flatPath": "v1/organizations/{organizationsId}/sites/{sitesId}/apicategories",
44655	//   "httpMethod": "POST",
44656	//   "id": "apigee.organizations.sites.apicategories.create",
44657	//   "parameterOrder": [
44658	//     "parent"
44659	//   ],
44660	//   "parameters": {
44661	//     "parent": {
44662	//       "description": "Required. Name of the portal. Use the following structure in your request: `organizations/{org}/sites/{site}`",
44663	//       "location": "path",
44664	//       "pattern": "^organizations/[^/]+/sites/[^/]+$",
44665	//       "required": true,
44666	//       "type": "string"
44667	//     }
44668	//   },
44669	//   "path": "v1/{+parent}/apicategories",
44670	//   "request": {
44671	//     "$ref": "GoogleCloudApigeeV1ApiCategoryData"
44672	//   },
44673	//   "response": {
44674	//     "$ref": "GoogleCloudApigeeV1ApiCategory"
44675	//   },
44676	//   "scopes": [
44677	//     "https://www.googleapis.com/auth/cloud-platform"
44678	//   ]
44679	// }
44680
44681}
44682
44683// method id "apigee.organizations.sites.apicategories.delete":
44684
44685type OrganizationsSitesApicategoriesDeleteCall struct {
44686	s          *Service
44687	name       string
44688	urlParams_ gensupport.URLParams
44689	ctx_       context.Context
44690	header_    http.Header
44691}
44692
44693// Delete: Deletes a category from the portal.
44694//
44695// - name: Name of the category. Use the following structure in your
44696//   request:
44697//   `organizations/{org}/sites/{site}/apicategories/{apicategory}`.
44698func (r *OrganizationsSitesApicategoriesService) Delete(name string) *OrganizationsSitesApicategoriesDeleteCall {
44699	c := &OrganizationsSitesApicategoriesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44700	c.name = name
44701	return c
44702}
44703
44704// Fields allows partial responses to be retrieved. See
44705// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
44706// for more information.
44707func (c *OrganizationsSitesApicategoriesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsSitesApicategoriesDeleteCall {
44708	c.urlParams_.Set("fields", googleapi.CombineFields(s))
44709	return c
44710}
44711
44712// Context sets the context to be used in this call's Do method. Any
44713// pending HTTP request will be aborted if the provided context is
44714// canceled.
44715func (c *OrganizationsSitesApicategoriesDeleteCall) Context(ctx context.Context) *OrganizationsSitesApicategoriesDeleteCall {
44716	c.ctx_ = ctx
44717	return c
44718}
44719
44720// Header returns an http.Header that can be modified by the caller to
44721// add HTTP headers to the request.
44722func (c *OrganizationsSitesApicategoriesDeleteCall) Header() http.Header {
44723	if c.header_ == nil {
44724		c.header_ = make(http.Header)
44725	}
44726	return c.header_
44727}
44728
44729func (c *OrganizationsSitesApicategoriesDeleteCall) doRequest(alt string) (*http.Response, error) {
44730	reqHeaders := make(http.Header)
44731	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
44732	for k, v := range c.header_ {
44733		reqHeaders[k] = v
44734	}
44735	reqHeaders.Set("User-Agent", c.s.userAgent())
44736	var body io.Reader = nil
44737	c.urlParams_.Set("alt", alt)
44738	c.urlParams_.Set("prettyPrint", "false")
44739	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
44740	urls += "?" + c.urlParams_.Encode()
44741	req, err := http.NewRequest("DELETE", urls, body)
44742	if err != nil {
44743		return nil, err
44744	}
44745	req.Header = reqHeaders
44746	googleapi.Expand(req.URL, map[string]string{
44747		"name": c.name,
44748	})
44749	return gensupport.SendRequest(c.ctx_, c.s.client, req)
44750}
44751
44752// Do executes the "apigee.organizations.sites.apicategories.delete" call.
44753// Exactly one of *GoogleCloudApigeeV1ApiResponseWrapper or error will
44754// be non-nil. Any non-2xx status code is an error. Response headers are
44755// in either
44756// *GoogleCloudApigeeV1ApiResponseWrapper.ServerResponse.Header or (if a
44757// response was returned at all) in error.(*googleapi.Error).Header. Use
44758// googleapi.IsNotModified to check whether the returned error was
44759// because http.StatusNotModified was returned.
44760func (c *OrganizationsSitesApicategoriesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiResponseWrapper, error) {
44761	gensupport.SetOptions(c.urlParams_, opts...)
44762	res, err := c.doRequest("json")
44763	if res != nil && res.StatusCode == http.StatusNotModified {
44764		if res.Body != nil {
44765			res.Body.Close()
44766		}
44767		return nil, &googleapi.Error{
44768			Code:   res.StatusCode,
44769			Header: res.Header,
44770		}
44771	}
44772	if err != nil {
44773		return nil, err
44774	}
44775	defer googleapi.CloseBody(res)
44776	if err := googleapi.CheckResponse(res); err != nil {
44777		return nil, err
44778	}
44779	ret := &GoogleCloudApigeeV1ApiResponseWrapper{
44780		ServerResponse: googleapi.ServerResponse{
44781			Header:         res.Header,
44782			HTTPStatusCode: res.StatusCode,
44783		},
44784	}
44785	target := &ret
44786	if err := gensupport.DecodeResponse(target, res); err != nil {
44787		return nil, err
44788	}
44789	return ret, nil
44790	// {
44791	//   "description": "Deletes a category from the portal.",
44792	//   "flatPath": "v1/organizations/{organizationsId}/sites/{sitesId}/apicategories/{apicategoriesId}",
44793	//   "httpMethod": "DELETE",
44794	//   "id": "apigee.organizations.sites.apicategories.delete",
44795	//   "parameterOrder": [
44796	//     "name"
44797	//   ],
44798	//   "parameters": {
44799	//     "name": {
44800	//       "description": "Required. Name of the category. Use the following structure in your request: `organizations/{org}/sites/{site}/apicategories/{apicategory}`",
44801	//       "location": "path",
44802	//       "pattern": "^organizations/[^/]+/sites/[^/]+/apicategories/[^/]+$",
44803	//       "required": true,
44804	//       "type": "string"
44805	//     }
44806	//   },
44807	//   "path": "v1/{+name}",
44808	//   "response": {
44809	//     "$ref": "GoogleCloudApigeeV1ApiResponseWrapper"
44810	//   },
44811	//   "scopes": [
44812	//     "https://www.googleapis.com/auth/cloud-platform"
44813	//   ]
44814	// }
44815
44816}
44817
44818// method id "apigee.organizations.sites.apicategories.get":
44819
44820type OrganizationsSitesApicategoriesGetCall struct {
44821	s            *Service
44822	name         string
44823	urlParams_   gensupport.URLParams
44824	ifNoneMatch_ string
44825	ctx_         context.Context
44826	header_      http.Header
44827}
44828
44829// Get: Gets a category on the portal.
44830//
44831// - name: Name of the category. Use the following structure in your
44832//   request:
44833//   `organizations/{org}/sites/{site}/apicategories/{apicategory}`.
44834func (r *OrganizationsSitesApicategoriesService) Get(name string) *OrganizationsSitesApicategoriesGetCall {
44835	c := &OrganizationsSitesApicategoriesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44836	c.name = name
44837	return c
44838}
44839
44840// Fields allows partial responses to be retrieved. See
44841// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
44842// for more information.
44843func (c *OrganizationsSitesApicategoriesGetCall) Fields(s ...googleapi.Field) *OrganizationsSitesApicategoriesGetCall {
44844	c.urlParams_.Set("fields", googleapi.CombineFields(s))
44845	return c
44846}
44847
44848// IfNoneMatch sets the optional parameter which makes the operation
44849// fail if the object's ETag matches the given value. This is useful for
44850// getting updates only after the object has changed since the last
44851// request. Use googleapi.IsNotModified to check whether the response
44852// error from Do is the result of In-None-Match.
44853func (c *OrganizationsSitesApicategoriesGetCall) IfNoneMatch(entityTag string) *OrganizationsSitesApicategoriesGetCall {
44854	c.ifNoneMatch_ = entityTag
44855	return c
44856}
44857
44858// Context sets the context to be used in this call's Do method. Any
44859// pending HTTP request will be aborted if the provided context is
44860// canceled.
44861func (c *OrganizationsSitesApicategoriesGetCall) Context(ctx context.Context) *OrganizationsSitesApicategoriesGetCall {
44862	c.ctx_ = ctx
44863	return c
44864}
44865
44866// Header returns an http.Header that can be modified by the caller to
44867// add HTTP headers to the request.
44868func (c *OrganizationsSitesApicategoriesGetCall) Header() http.Header {
44869	if c.header_ == nil {
44870		c.header_ = make(http.Header)
44871	}
44872	return c.header_
44873}
44874
44875func (c *OrganizationsSitesApicategoriesGetCall) doRequest(alt string) (*http.Response, error) {
44876	reqHeaders := make(http.Header)
44877	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
44878	for k, v := range c.header_ {
44879		reqHeaders[k] = v
44880	}
44881	reqHeaders.Set("User-Agent", c.s.userAgent())
44882	if c.ifNoneMatch_ != "" {
44883		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
44884	}
44885	var body io.Reader = nil
44886	c.urlParams_.Set("alt", alt)
44887	c.urlParams_.Set("prettyPrint", "false")
44888	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
44889	urls += "?" + c.urlParams_.Encode()
44890	req, err := http.NewRequest("GET", urls, body)
44891	if err != nil {
44892		return nil, err
44893	}
44894	req.Header = reqHeaders
44895	googleapi.Expand(req.URL, map[string]string{
44896		"name": c.name,
44897	})
44898	return gensupport.SendRequest(c.ctx_, c.s.client, req)
44899}
44900
44901// Do executes the "apigee.organizations.sites.apicategories.get" call.
44902// Exactly one of *GoogleCloudApigeeV1ApiCategory or error will be
44903// non-nil. Any non-2xx status code is an error. Response headers are in
44904// either *GoogleCloudApigeeV1ApiCategory.ServerResponse.Header or (if a
44905// response was returned at all) in error.(*googleapi.Error).Header. Use
44906// googleapi.IsNotModified to check whether the returned error was
44907// because http.StatusNotModified was returned.
44908func (c *OrganizationsSitesApicategoriesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiCategory, error) {
44909	gensupport.SetOptions(c.urlParams_, opts...)
44910	res, err := c.doRequest("json")
44911	if res != nil && res.StatusCode == http.StatusNotModified {
44912		if res.Body != nil {
44913			res.Body.Close()
44914		}
44915		return nil, &googleapi.Error{
44916			Code:   res.StatusCode,
44917			Header: res.Header,
44918		}
44919	}
44920	if err != nil {
44921		return nil, err
44922	}
44923	defer googleapi.CloseBody(res)
44924	if err := googleapi.CheckResponse(res); err != nil {
44925		return nil, err
44926	}
44927	ret := &GoogleCloudApigeeV1ApiCategory{
44928		ServerResponse: googleapi.ServerResponse{
44929			Header:         res.Header,
44930			HTTPStatusCode: res.StatusCode,
44931		},
44932	}
44933	target := &ret
44934	if err := gensupport.DecodeResponse(target, res); err != nil {
44935		return nil, err
44936	}
44937	return ret, nil
44938	// {
44939	//   "description": "Gets a category on the portal.",
44940	//   "flatPath": "v1/organizations/{organizationsId}/sites/{sitesId}/apicategories/{apicategoriesId}",
44941	//   "httpMethod": "GET",
44942	//   "id": "apigee.organizations.sites.apicategories.get",
44943	//   "parameterOrder": [
44944	//     "name"
44945	//   ],
44946	//   "parameters": {
44947	//     "name": {
44948	//       "description": "Required. Name of the category. Use the following structure in your request: `organizations/{org}/sites/{site}/apicategories/{apicategory}`",
44949	//       "location": "path",
44950	//       "pattern": "^organizations/[^/]+/sites/[^/]+/apicategories/[^/]+$",
44951	//       "required": true,
44952	//       "type": "string"
44953	//     }
44954	//   },
44955	//   "path": "v1/{+name}",
44956	//   "response": {
44957	//     "$ref": "GoogleCloudApigeeV1ApiCategory"
44958	//   },
44959	//   "scopes": [
44960	//     "https://www.googleapis.com/auth/cloud-platform"
44961	//   ]
44962	// }
44963
44964}
44965
44966// method id "apigee.organizations.sites.apicategories.list":
44967
44968type OrganizationsSitesApicategoriesListCall struct {
44969	s            *Service
44970	parent       string
44971	urlParams_   gensupport.URLParams
44972	ifNoneMatch_ string
44973	ctx_         context.Context
44974	header_      http.Header
44975}
44976
44977// List: Lists the categories on the portal.
44978//
44979// - parent: Name of the portal. Use the following structure in your
44980//   request: `organizations/{org}/sites/{site}`.
44981func (r *OrganizationsSitesApicategoriesService) List(parent string) *OrganizationsSitesApicategoriesListCall {
44982	c := &OrganizationsSitesApicategoriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44983	c.parent = parent
44984	return c
44985}
44986
44987// Fields allows partial responses to be retrieved. See
44988// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
44989// for more information.
44990func (c *OrganizationsSitesApicategoriesListCall) Fields(s ...googleapi.Field) *OrganizationsSitesApicategoriesListCall {
44991	c.urlParams_.Set("fields", googleapi.CombineFields(s))
44992	return c
44993}
44994
44995// IfNoneMatch sets the optional parameter which makes the operation
44996// fail if the object's ETag matches the given value. This is useful for
44997// getting updates only after the object has changed since the last
44998// request. Use googleapi.IsNotModified to check whether the response
44999// error from Do is the result of In-None-Match.
45000func (c *OrganizationsSitesApicategoriesListCall) IfNoneMatch(entityTag string) *OrganizationsSitesApicategoriesListCall {
45001	c.ifNoneMatch_ = entityTag
45002	return c
45003}
45004
45005// Context sets the context to be used in this call's Do method. Any
45006// pending HTTP request will be aborted if the provided context is
45007// canceled.
45008func (c *OrganizationsSitesApicategoriesListCall) Context(ctx context.Context) *OrganizationsSitesApicategoriesListCall {
45009	c.ctx_ = ctx
45010	return c
45011}
45012
45013// Header returns an http.Header that can be modified by the caller to
45014// add HTTP headers to the request.
45015func (c *OrganizationsSitesApicategoriesListCall) Header() http.Header {
45016	if c.header_ == nil {
45017		c.header_ = make(http.Header)
45018	}
45019	return c.header_
45020}
45021
45022func (c *OrganizationsSitesApicategoriesListCall) doRequest(alt string) (*http.Response, error) {
45023	reqHeaders := make(http.Header)
45024	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
45025	for k, v := range c.header_ {
45026		reqHeaders[k] = v
45027	}
45028	reqHeaders.Set("User-Agent", c.s.userAgent())
45029	if c.ifNoneMatch_ != "" {
45030		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
45031	}
45032	var body io.Reader = nil
45033	c.urlParams_.Set("alt", alt)
45034	c.urlParams_.Set("prettyPrint", "false")
45035	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apicategories")
45036	urls += "?" + c.urlParams_.Encode()
45037	req, err := http.NewRequest("GET", urls, body)
45038	if err != nil {
45039		return nil, err
45040	}
45041	req.Header = reqHeaders
45042	googleapi.Expand(req.URL, map[string]string{
45043		"parent": c.parent,
45044	})
45045	return gensupport.SendRequest(c.ctx_, c.s.client, req)
45046}
45047
45048// Do executes the "apigee.organizations.sites.apicategories.list" call.
45049// Exactly one of *GoogleCloudApigeeV1ListApiCategoriesResponse or error
45050// will be non-nil. Any non-2xx status code is an error. Response
45051// headers are in either
45052// *GoogleCloudApigeeV1ListApiCategoriesResponse.ServerResponse.Header
45053// or (if a response was returned at all) in
45054// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
45055// whether the returned error was because http.StatusNotModified was
45056// returned.
45057func (c *OrganizationsSitesApicategoriesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListApiCategoriesResponse, error) {
45058	gensupport.SetOptions(c.urlParams_, opts...)
45059	res, err := c.doRequest("json")
45060	if res != nil && res.StatusCode == http.StatusNotModified {
45061		if res.Body != nil {
45062			res.Body.Close()
45063		}
45064		return nil, &googleapi.Error{
45065			Code:   res.StatusCode,
45066			Header: res.Header,
45067		}
45068	}
45069	if err != nil {
45070		return nil, err
45071	}
45072	defer googleapi.CloseBody(res)
45073	if err := googleapi.CheckResponse(res); err != nil {
45074		return nil, err
45075	}
45076	ret := &GoogleCloudApigeeV1ListApiCategoriesResponse{
45077		ServerResponse: googleapi.ServerResponse{
45078			Header:         res.Header,
45079			HTTPStatusCode: res.StatusCode,
45080		},
45081	}
45082	target := &ret
45083	if err := gensupport.DecodeResponse(target, res); err != nil {
45084		return nil, err
45085	}
45086	return ret, nil
45087	// {
45088	//   "description": "Lists the categories on the portal.",
45089	//   "flatPath": "v1/organizations/{organizationsId}/sites/{sitesId}/apicategories",
45090	//   "httpMethod": "GET",
45091	//   "id": "apigee.organizations.sites.apicategories.list",
45092	//   "parameterOrder": [
45093	//     "parent"
45094	//   ],
45095	//   "parameters": {
45096	//     "parent": {
45097	//       "description": "Required. Name of the portal. Use the following structure in your request: `organizations/{org}/sites/{site}`",
45098	//       "location": "path",
45099	//       "pattern": "^organizations/[^/]+/sites/[^/]+$",
45100	//       "required": true,
45101	//       "type": "string"
45102	//     }
45103	//   },
45104	//   "path": "v1/{+parent}/apicategories",
45105	//   "response": {
45106	//     "$ref": "GoogleCloudApigeeV1ListApiCategoriesResponse"
45107	//   },
45108	//   "scopes": [
45109	//     "https://www.googleapis.com/auth/cloud-platform"
45110	//   ]
45111	// }
45112
45113}
45114
45115// method id "apigee.organizations.sites.apicategories.patch":
45116
45117type OrganizationsSitesApicategoriesPatchCall struct {
45118	s                                  *Service
45119	name                               string
45120	googlecloudapigeev1apicategorydata *GoogleCloudApigeeV1ApiCategoryData
45121	urlParams_                         gensupport.URLParams
45122	ctx_                               context.Context
45123	header_                            http.Header
45124}
45125
45126// Patch: Updates a category on the portal.
45127//
45128// - name: Name of the category. Use the following structure in your
45129//   request:
45130//   `organizations/{org}/sites/{site}/apicategories/{apicategory}`.
45131func (r *OrganizationsSitesApicategoriesService) Patch(name string, googlecloudapigeev1apicategorydata *GoogleCloudApigeeV1ApiCategoryData) *OrganizationsSitesApicategoriesPatchCall {
45132	c := &OrganizationsSitesApicategoriesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
45133	c.name = name
45134	c.googlecloudapigeev1apicategorydata = googlecloudapigeev1apicategorydata
45135	return c
45136}
45137
45138// Fields allows partial responses to be retrieved. See
45139// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
45140// for more information.
45141func (c *OrganizationsSitesApicategoriesPatchCall) Fields(s ...googleapi.Field) *OrganizationsSitesApicategoriesPatchCall {
45142	c.urlParams_.Set("fields", googleapi.CombineFields(s))
45143	return c
45144}
45145
45146// Context sets the context to be used in this call's Do method. Any
45147// pending HTTP request will be aborted if the provided context is
45148// canceled.
45149func (c *OrganizationsSitesApicategoriesPatchCall) Context(ctx context.Context) *OrganizationsSitesApicategoriesPatchCall {
45150	c.ctx_ = ctx
45151	return c
45152}
45153
45154// Header returns an http.Header that can be modified by the caller to
45155// add HTTP headers to the request.
45156func (c *OrganizationsSitesApicategoriesPatchCall) Header() http.Header {
45157	if c.header_ == nil {
45158		c.header_ = make(http.Header)
45159	}
45160	return c.header_
45161}
45162
45163func (c *OrganizationsSitesApicategoriesPatchCall) doRequest(alt string) (*http.Response, error) {
45164	reqHeaders := make(http.Header)
45165	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
45166	for k, v := range c.header_ {
45167		reqHeaders[k] = v
45168	}
45169	reqHeaders.Set("User-Agent", c.s.userAgent())
45170	var body io.Reader = nil
45171	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1apicategorydata)
45172	if err != nil {
45173		return nil, err
45174	}
45175	reqHeaders.Set("Content-Type", "application/json")
45176	c.urlParams_.Set("alt", alt)
45177	c.urlParams_.Set("prettyPrint", "false")
45178	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
45179	urls += "?" + c.urlParams_.Encode()
45180	req, err := http.NewRequest("PATCH", urls, body)
45181	if err != nil {
45182		return nil, err
45183	}
45184	req.Header = reqHeaders
45185	googleapi.Expand(req.URL, map[string]string{
45186		"name": c.name,
45187	})
45188	return gensupport.SendRequest(c.ctx_, c.s.client, req)
45189}
45190
45191// Do executes the "apigee.organizations.sites.apicategories.patch" call.
45192// Exactly one of *GoogleCloudApigeeV1ApiCategory or error will be
45193// non-nil. Any non-2xx status code is an error. Response headers are in
45194// either *GoogleCloudApigeeV1ApiCategory.ServerResponse.Header or (if a
45195// response was returned at all) in error.(*googleapi.Error).Header. Use
45196// googleapi.IsNotModified to check whether the returned error was
45197// because http.StatusNotModified was returned.
45198func (c *OrganizationsSitesApicategoriesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiCategory, error) {
45199	gensupport.SetOptions(c.urlParams_, opts...)
45200	res, err := c.doRequest("json")
45201	if res != nil && res.StatusCode == http.StatusNotModified {
45202		if res.Body != nil {
45203			res.Body.Close()
45204		}
45205		return nil, &googleapi.Error{
45206			Code:   res.StatusCode,
45207			Header: res.Header,
45208		}
45209	}
45210	if err != nil {
45211		return nil, err
45212	}
45213	defer googleapi.CloseBody(res)
45214	if err := googleapi.CheckResponse(res); err != nil {
45215		return nil, err
45216	}
45217	ret := &GoogleCloudApigeeV1ApiCategory{
45218		ServerResponse: googleapi.ServerResponse{
45219			Header:         res.Header,
45220			HTTPStatusCode: res.StatusCode,
45221		},
45222	}
45223	target := &ret
45224	if err := gensupport.DecodeResponse(target, res); err != nil {
45225		return nil, err
45226	}
45227	return ret, nil
45228	// {
45229	//   "description": "Updates a category on the portal.",
45230	//   "flatPath": "v1/organizations/{organizationsId}/sites/{sitesId}/apicategories/{apicategoriesId}",
45231	//   "httpMethod": "PATCH",
45232	//   "id": "apigee.organizations.sites.apicategories.patch",
45233	//   "parameterOrder": [
45234	//     "name"
45235	//   ],
45236	//   "parameters": {
45237	//     "name": {
45238	//       "description": "Required. Name of the category. Use the following structure in your request: `organizations/{org}/sites/{site}/apicategories/{apicategory}`",
45239	//       "location": "path",
45240	//       "pattern": "^organizations/[^/]+/sites/[^/]+/apicategories/[^/]+$",
45241	//       "required": true,
45242	//       "type": "string"
45243	//     }
45244	//   },
45245	//   "path": "v1/{+name}",
45246	//   "request": {
45247	//     "$ref": "GoogleCloudApigeeV1ApiCategoryData"
45248	//   },
45249	//   "response": {
45250	//     "$ref": "GoogleCloudApigeeV1ApiCategory"
45251	//   },
45252	//   "scopes": [
45253	//     "https://www.googleapis.com/auth/cloud-platform"
45254	//   ]
45255	// }
45256
45257}
45258
45259// method id "apigee.projects.provisionOrganization":
45260
45261type ProjectsProvisionOrganizationCall struct {
45262	s                                               *Service
45263	project                                         string
45264	googlecloudapigeev1provisionorganizationrequest *GoogleCloudApigeeV1ProvisionOrganizationRequest
45265	urlParams_                                      gensupport.URLParams
45266	ctx_                                            context.Context
45267	header_                                         http.Header
45268}
45269
45270// ProvisionOrganization: Provisions a new Apigee organization with a
45271// functioning runtime. This is the standard way to create trial
45272// organizations for a free Apigee trial.
45273//
45274// - project: Name of the GCP project with which to associate the Apigee
45275//   organization.
45276func (r *ProjectsService) ProvisionOrganization(project string, googlecloudapigeev1provisionorganizationrequest *GoogleCloudApigeeV1ProvisionOrganizationRequest) *ProjectsProvisionOrganizationCall {
45277	c := &ProjectsProvisionOrganizationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
45278	c.project = project
45279	c.googlecloudapigeev1provisionorganizationrequest = googlecloudapigeev1provisionorganizationrequest
45280	return c
45281}
45282
45283// Fields allows partial responses to be retrieved. See
45284// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
45285// for more information.
45286func (c *ProjectsProvisionOrganizationCall) Fields(s ...googleapi.Field) *ProjectsProvisionOrganizationCall {
45287	c.urlParams_.Set("fields", googleapi.CombineFields(s))
45288	return c
45289}
45290
45291// Context sets the context to be used in this call's Do method. Any
45292// pending HTTP request will be aborted if the provided context is
45293// canceled.
45294func (c *ProjectsProvisionOrganizationCall) Context(ctx context.Context) *ProjectsProvisionOrganizationCall {
45295	c.ctx_ = ctx
45296	return c
45297}
45298
45299// Header returns an http.Header that can be modified by the caller to
45300// add HTTP headers to the request.
45301func (c *ProjectsProvisionOrganizationCall) Header() http.Header {
45302	if c.header_ == nil {
45303		c.header_ = make(http.Header)
45304	}
45305	return c.header_
45306}
45307
45308func (c *ProjectsProvisionOrganizationCall) doRequest(alt string) (*http.Response, error) {
45309	reqHeaders := make(http.Header)
45310	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210830")
45311	for k, v := range c.header_ {
45312		reqHeaders[k] = v
45313	}
45314	reqHeaders.Set("User-Agent", c.s.userAgent())
45315	var body io.Reader = nil
45316	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1provisionorganizationrequest)
45317	if err != nil {
45318		return nil, err
45319	}
45320	reqHeaders.Set("Content-Type", "application/json")
45321	c.urlParams_.Set("alt", alt)
45322	c.urlParams_.Set("prettyPrint", "false")
45323	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+project}:provisionOrganization")
45324	urls += "?" + c.urlParams_.Encode()
45325	req, err := http.NewRequest("POST", urls, body)
45326	if err != nil {
45327		return nil, err
45328	}
45329	req.Header = reqHeaders
45330	googleapi.Expand(req.URL, map[string]string{
45331		"project": c.project,
45332	})
45333	return gensupport.SendRequest(c.ctx_, c.s.client, req)
45334}
45335
45336// Do executes the "apigee.projects.provisionOrganization" call.
45337// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
45338// Any non-2xx status code is an error. Response headers are in either
45339// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
45340// was returned at all) in error.(*googleapi.Error).Header. Use
45341// googleapi.IsNotModified to check whether the returned error was
45342// because http.StatusNotModified was returned.
45343func (c *ProjectsProvisionOrganizationCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
45344	gensupport.SetOptions(c.urlParams_, opts...)
45345	res, err := c.doRequest("json")
45346	if res != nil && res.StatusCode == http.StatusNotModified {
45347		if res.Body != nil {
45348			res.Body.Close()
45349		}
45350		return nil, &googleapi.Error{
45351			Code:   res.StatusCode,
45352			Header: res.Header,
45353		}
45354	}
45355	if err != nil {
45356		return nil, err
45357	}
45358	defer googleapi.CloseBody(res)
45359	if err := googleapi.CheckResponse(res); err != nil {
45360		return nil, err
45361	}
45362	ret := &GoogleLongrunningOperation{
45363		ServerResponse: googleapi.ServerResponse{
45364			Header:         res.Header,
45365			HTTPStatusCode: res.StatusCode,
45366		},
45367	}
45368	target := &ret
45369	if err := gensupport.DecodeResponse(target, res); err != nil {
45370		return nil, err
45371	}
45372	return ret, nil
45373	// {
45374	//   "description": "Provisions a new Apigee organization with a functioning runtime. This is the standard way to create trial organizations for a free Apigee trial.",
45375	//   "flatPath": "v1/projects/{projectsId}:provisionOrganization",
45376	//   "httpMethod": "POST",
45377	//   "id": "apigee.projects.provisionOrganization",
45378	//   "parameterOrder": [
45379	//     "project"
45380	//   ],
45381	//   "parameters": {
45382	//     "project": {
45383	//       "description": "Required. Name of the GCP project with which to associate the Apigee organization.",
45384	//       "location": "path",
45385	//       "pattern": "^projects/[^/]+$",
45386	//       "required": true,
45387	//       "type": "string"
45388	//     }
45389	//   },
45390	//   "path": "v1/{+project}:provisionOrganization",
45391	//   "request": {
45392	//     "$ref": "GoogleCloudApigeeV1ProvisionOrganizationRequest"
45393	//   },
45394	//   "response": {
45395	//     "$ref": "GoogleLongrunningOperation"
45396	//   },
45397	//   "scopes": [
45398	//     "https://www.googleapis.com/auth/cloud-platform"
45399	//   ]
45400	// }
45401
45402}
45403