1// Copyright 2019 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 run provides access to the Cloud Run API.
8//
9// For product documentation, see: https://cloud.google.com/run/
10//
11// Creating a client
12//
13// Usage example:
14//
15//   import "google.golang.org/api/run/v1"
16//   ...
17//   ctx := context.Background()
18//   runService, err := run.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//   runService, err := run.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//   runService, err := run.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
36//
37// See https://godoc.org/google.golang.org/api/option/ for details on options.
38package run // import "google.golang.org/api/run/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	htransport "google.golang.org/api/transport/http"
56)
57
58// Always reference these packages, just in case the auto-generated code
59// below doesn't.
60var _ = bytes.NewBuffer
61var _ = strconv.Itoa
62var _ = fmt.Sprintf
63var _ = json.NewDecoder
64var _ = io.Copy
65var _ = url.Parse
66var _ = gensupport.MarshalJSON
67var _ = googleapi.Version
68var _ = errors.New
69var _ = strings.Replace
70var _ = context.Canceled
71
72const apiId = "run:v1"
73const apiName = "run"
74const apiVersion = "v1"
75const basePath = "https://run.googleapis.com/"
76
77// OAuth2 scopes used by this API.
78const (
79	// View and manage your data across Google Cloud Platform services
80	CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
81)
82
83// NewService creates a new APIService.
84func NewService(ctx context.Context, opts ...option.ClientOption) (*APIService, error) {
85	scopesOption := option.WithScopes(
86		"https://www.googleapis.com/auth/cloud-platform",
87	)
88	// NOTE: prepend, so we don't override user-specified scopes.
89	opts = append([]option.ClientOption{scopesOption}, opts...)
90	client, endpoint, err := htransport.NewClient(ctx, opts...)
91	if err != nil {
92		return nil, err
93	}
94	s, err := New(client)
95	if err != nil {
96		return nil, err
97	}
98	if endpoint != "" {
99		s.BasePath = endpoint
100	}
101	return s, nil
102}
103
104// New creates a new APIService. It uses the provided http.Client for requests.
105//
106// Deprecated: please use NewService instead.
107// To provide a custom HTTP client, use option.WithHTTPClient.
108// If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
109func New(client *http.Client) (*APIService, error) {
110	if client == nil {
111		return nil, errors.New("client is nil")
112	}
113	s := &APIService{client: client, BasePath: basePath}
114	s.Namespaces = NewNamespacesService(s)
115	s.Projects = NewProjectsService(s)
116	return s, nil
117}
118
119type APIService struct {
120	client    *http.Client
121	BasePath  string // API endpoint base URL
122	UserAgent string // optional additional User-Agent fragment
123
124	Namespaces *NamespacesService
125
126	Projects *ProjectsService
127}
128
129func (s *APIService) userAgent() string {
130	if s.UserAgent == "" {
131		return googleapi.UserAgent
132	}
133	return googleapi.UserAgent + " " + s.UserAgent
134}
135
136func NewNamespacesService(s *APIService) *NamespacesService {
137	rs := &NamespacesService{s: s}
138	rs.Authorizeddomains = NewNamespacesAuthorizeddomainsService(s)
139	rs.Autodomainmappings = NewNamespacesAutodomainmappingsService(s)
140	rs.Configurations = NewNamespacesConfigurationsService(s)
141	rs.Domainmappings = NewNamespacesDomainmappingsService(s)
142	rs.Revisions = NewNamespacesRevisionsService(s)
143	rs.Routes = NewNamespacesRoutesService(s)
144	rs.Services = NewNamespacesServicesService(s)
145	return rs
146}
147
148type NamespacesService struct {
149	s *APIService
150
151	Authorizeddomains *NamespacesAuthorizeddomainsService
152
153	Autodomainmappings *NamespacesAutodomainmappingsService
154
155	Configurations *NamespacesConfigurationsService
156
157	Domainmappings *NamespacesDomainmappingsService
158
159	Revisions *NamespacesRevisionsService
160
161	Routes *NamespacesRoutesService
162
163	Services *NamespacesServicesService
164}
165
166func NewNamespacesAuthorizeddomainsService(s *APIService) *NamespacesAuthorizeddomainsService {
167	rs := &NamespacesAuthorizeddomainsService{s: s}
168	return rs
169}
170
171type NamespacesAuthorizeddomainsService struct {
172	s *APIService
173}
174
175func NewNamespacesAutodomainmappingsService(s *APIService) *NamespacesAutodomainmappingsService {
176	rs := &NamespacesAutodomainmappingsService{s: s}
177	return rs
178}
179
180type NamespacesAutodomainmappingsService struct {
181	s *APIService
182}
183
184func NewNamespacesConfigurationsService(s *APIService) *NamespacesConfigurationsService {
185	rs := &NamespacesConfigurationsService{s: s}
186	return rs
187}
188
189type NamespacesConfigurationsService struct {
190	s *APIService
191}
192
193func NewNamespacesDomainmappingsService(s *APIService) *NamespacesDomainmappingsService {
194	rs := &NamespacesDomainmappingsService{s: s}
195	return rs
196}
197
198type NamespacesDomainmappingsService struct {
199	s *APIService
200}
201
202func NewNamespacesRevisionsService(s *APIService) *NamespacesRevisionsService {
203	rs := &NamespacesRevisionsService{s: s}
204	return rs
205}
206
207type NamespacesRevisionsService struct {
208	s *APIService
209}
210
211func NewNamespacesRoutesService(s *APIService) *NamespacesRoutesService {
212	rs := &NamespacesRoutesService{s: s}
213	return rs
214}
215
216type NamespacesRoutesService struct {
217	s *APIService
218}
219
220func NewNamespacesServicesService(s *APIService) *NamespacesServicesService {
221	rs := &NamespacesServicesService{s: s}
222	return rs
223}
224
225type NamespacesServicesService struct {
226	s *APIService
227}
228
229func NewProjectsService(s *APIService) *ProjectsService {
230	rs := &ProjectsService{s: s}
231	rs.Locations = NewProjectsLocationsService(s)
232	return rs
233}
234
235type ProjectsService struct {
236	s *APIService
237
238	Locations *ProjectsLocationsService
239}
240
241func NewProjectsLocationsService(s *APIService) *ProjectsLocationsService {
242	rs := &ProjectsLocationsService{s: s}
243	rs.Authorizeddomains = NewProjectsLocationsAuthorizeddomainsService(s)
244	rs.Autodomainmappings = NewProjectsLocationsAutodomainmappingsService(s)
245	rs.Configurations = NewProjectsLocationsConfigurationsService(s)
246	rs.Domainmappings = NewProjectsLocationsDomainmappingsService(s)
247	rs.Revisions = NewProjectsLocationsRevisionsService(s)
248	rs.Routes = NewProjectsLocationsRoutesService(s)
249	rs.Services = NewProjectsLocationsServicesService(s)
250	return rs
251}
252
253type ProjectsLocationsService struct {
254	s *APIService
255
256	Authorizeddomains *ProjectsLocationsAuthorizeddomainsService
257
258	Autodomainmappings *ProjectsLocationsAutodomainmappingsService
259
260	Configurations *ProjectsLocationsConfigurationsService
261
262	Domainmappings *ProjectsLocationsDomainmappingsService
263
264	Revisions *ProjectsLocationsRevisionsService
265
266	Routes *ProjectsLocationsRoutesService
267
268	Services *ProjectsLocationsServicesService
269}
270
271func NewProjectsLocationsAuthorizeddomainsService(s *APIService) *ProjectsLocationsAuthorizeddomainsService {
272	rs := &ProjectsLocationsAuthorizeddomainsService{s: s}
273	return rs
274}
275
276type ProjectsLocationsAuthorizeddomainsService struct {
277	s *APIService
278}
279
280func NewProjectsLocationsAutodomainmappingsService(s *APIService) *ProjectsLocationsAutodomainmappingsService {
281	rs := &ProjectsLocationsAutodomainmappingsService{s: s}
282	return rs
283}
284
285type ProjectsLocationsAutodomainmappingsService struct {
286	s *APIService
287}
288
289func NewProjectsLocationsConfigurationsService(s *APIService) *ProjectsLocationsConfigurationsService {
290	rs := &ProjectsLocationsConfigurationsService{s: s}
291	return rs
292}
293
294type ProjectsLocationsConfigurationsService struct {
295	s *APIService
296}
297
298func NewProjectsLocationsDomainmappingsService(s *APIService) *ProjectsLocationsDomainmappingsService {
299	rs := &ProjectsLocationsDomainmappingsService{s: s}
300	return rs
301}
302
303type ProjectsLocationsDomainmappingsService struct {
304	s *APIService
305}
306
307func NewProjectsLocationsRevisionsService(s *APIService) *ProjectsLocationsRevisionsService {
308	rs := &ProjectsLocationsRevisionsService{s: s}
309	return rs
310}
311
312type ProjectsLocationsRevisionsService struct {
313	s *APIService
314}
315
316func NewProjectsLocationsRoutesService(s *APIService) *ProjectsLocationsRoutesService {
317	rs := &ProjectsLocationsRoutesService{s: s}
318	return rs
319}
320
321type ProjectsLocationsRoutesService struct {
322	s *APIService
323}
324
325func NewProjectsLocationsServicesService(s *APIService) *ProjectsLocationsServicesService {
326	rs := &ProjectsLocationsServicesService{s: s}
327	return rs
328}
329
330type ProjectsLocationsServicesService struct {
331	s *APIService
332}
333
334// Addressable: Information for connecting over HTTP(s).
335type Addressable struct {
336	Url string `json:"url,omitempty"`
337
338	// ForceSendFields is a list of field names (e.g. "Url") to
339	// unconditionally include in API requests. By default, fields with
340	// empty values are omitted from API requests. However, any non-pointer,
341	// non-interface field appearing in ForceSendFields will be sent to the
342	// server regardless of whether the field is empty or not. This may be
343	// used to include empty fields in Patch requests.
344	ForceSendFields []string `json:"-"`
345
346	// NullFields is a list of field names (e.g. "Url") to include in API
347	// requests with the JSON null value. By default, fields with empty
348	// values are omitted from API requests. However, any field with an
349	// empty value appearing in NullFields will be sent to the server as
350	// null. It is an error if a field in this list has a non-empty value.
351	// This may be used to include null fields in Patch requests.
352	NullFields []string `json:"-"`
353}
354
355func (s *Addressable) MarshalJSON() ([]byte, error) {
356	type NoMethod Addressable
357	raw := NoMethod(*s)
358	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
359}
360
361// AuditConfig: Specifies the audit configuration for a service.
362// The configuration determines which permission types are logged, and
363// what
364// identities, if any, are exempted from logging.
365// An AuditConfig must have one or more AuditLogConfigs.
366//
367// If there are AuditConfigs for both `allServices` and a specific
368// service,
369// the union of the two AuditConfigs is used for that service: the
370// log_types
371// specified in each AuditConfig are enabled, and the exempted_members
372// in each
373// AuditLogConfig are exempted.
374//
375// Example Policy with multiple AuditConfigs:
376//
377//     {
378//       "audit_configs": [
379//         {
380//           "service": "allServices"
381//           "audit_log_configs": [
382//             {
383//               "log_type": "DATA_READ",
384//               "exempted_members": [
385//                 "user:jose@example.com"
386//               ]
387//             },
388//             {
389//               "log_type": "DATA_WRITE",
390//             },
391//             {
392//               "log_type": "ADMIN_READ",
393//             }
394//           ]
395//         },
396//         {
397//           "service": "sampleservice.googleapis.com"
398//           "audit_log_configs": [
399//             {
400//               "log_type": "DATA_READ",
401//             },
402//             {
403//               "log_type": "DATA_WRITE",
404//               "exempted_members": [
405//                 "user:aliya@example.com"
406//               ]
407//             }
408//           ]
409//         }
410//       ]
411//     }
412//
413// For sampleservice, this policy enables DATA_READ, DATA_WRITE and
414// ADMIN_READ
415// logging. It also exempts jose@example.com from DATA_READ logging,
416// and
417// aliya@example.com from DATA_WRITE logging.
418type AuditConfig struct {
419	// AuditLogConfigs: The configuration for logging of each type of
420	// permission.
421	AuditLogConfigs []*AuditLogConfig `json:"auditLogConfigs,omitempty"`
422
423	// Service: Specifies a service that will be enabled for audit
424	// logging.
425	// For example, `storage.googleapis.com`,
426	// `cloudsql.googleapis.com`.
427	// `allServices` is a special value that covers all services.
428	Service string `json:"service,omitempty"`
429
430	// ForceSendFields is a list of field names (e.g. "AuditLogConfigs") to
431	// unconditionally include in API requests. By default, fields with
432	// empty values are omitted from API requests. However, any non-pointer,
433	// non-interface field appearing in ForceSendFields will be sent to the
434	// server regardless of whether the field is empty or not. This may be
435	// used to include empty fields in Patch requests.
436	ForceSendFields []string `json:"-"`
437
438	// NullFields is a list of field names (e.g. "AuditLogConfigs") to
439	// include in API requests with the JSON null value. By default, fields
440	// with empty values are omitted from API requests. However, any field
441	// with an empty value appearing in NullFields will be sent to the
442	// server as null. It is an error if a field in this list has a
443	// non-empty value. This may be used to include null fields in Patch
444	// requests.
445	NullFields []string `json:"-"`
446}
447
448func (s *AuditConfig) MarshalJSON() ([]byte, error) {
449	type NoMethod AuditConfig
450	raw := NoMethod(*s)
451	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
452}
453
454// AuditLogConfig: Provides the configuration for logging a type of
455// permissions.
456// Example:
457//
458//     {
459//       "audit_log_configs": [
460//         {
461//           "log_type": "DATA_READ",
462//           "exempted_members": [
463//             "user:jose@example.com"
464//           ]
465//         },
466//         {
467//           "log_type": "DATA_WRITE",
468//         }
469//       ]
470//     }
471//
472// This enables 'DATA_READ' and 'DATA_WRITE' logging, while
473// exempting
474// jose@example.com from DATA_READ logging.
475type AuditLogConfig struct {
476	// ExemptedMembers: Specifies the identities that do not cause logging
477	// for this type of
478	// permission.
479	// Follows the same format of Binding.members.
480	ExemptedMembers []string `json:"exemptedMembers,omitempty"`
481
482	// LogType: The log type that this config enables.
483	//
484	// Possible values:
485	//   "LOG_TYPE_UNSPECIFIED" - Default case. Should never be this.
486	//   "ADMIN_READ" - Admin reads. Example: CloudIAM getIamPolicy
487	//   "DATA_WRITE" - Data writes. Example: CloudSQL Users create
488	//   "DATA_READ" - Data reads. Example: CloudSQL Users list
489	LogType string `json:"logType,omitempty"`
490
491	// ForceSendFields is a list of field names (e.g. "ExemptedMembers") to
492	// unconditionally include in API requests. By default, fields with
493	// empty values are omitted from API requests. However, any non-pointer,
494	// non-interface field appearing in ForceSendFields will be sent to the
495	// server regardless of whether the field is empty or not. This may be
496	// used to include empty fields in Patch requests.
497	ForceSendFields []string `json:"-"`
498
499	// NullFields is a list of field names (e.g. "ExemptedMembers") to
500	// include in API requests with the JSON null value. By default, fields
501	// with empty values are omitted from API requests. However, any field
502	// with an empty value appearing in NullFields will be sent to the
503	// server as null. It is an error if a field in this list has a
504	// non-empty value. This may be used to include null fields in Patch
505	// requests.
506	NullFields []string `json:"-"`
507}
508
509func (s *AuditLogConfig) MarshalJSON() ([]byte, error) {
510	type NoMethod AuditLogConfig
511	raw := NoMethod(*s)
512	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
513}
514
515// AuthorizedDomain: A domain that a user has been authorized to
516// administer. To authorize use
517// of a domain, verify ownership via
518// [Webmaster
519// Central](https://www.google.com/webmasters/verification/home).
520type AuthorizedDomain struct {
521	// Id: Relative name of the domain authorized for use. Example:
522	// `example.com`.
523	Id string `json:"id,omitempty"`
524
525	// Name: Read only. Full path to the `AuthorizedDomain` resource in the
526	// API.
527	// Example: `apps/myapp/authorizedDomains/example.com`.
528	Name string `json:"name,omitempty"`
529
530	// ForceSendFields is a list of field names (e.g. "Id") to
531	// unconditionally include in API requests. By default, fields with
532	// empty values are omitted from API requests. However, any non-pointer,
533	// non-interface field appearing in ForceSendFields will be sent to the
534	// server regardless of whether the field is empty or not. This may be
535	// used to include empty fields in Patch requests.
536	ForceSendFields []string `json:"-"`
537
538	// NullFields is a list of field names (e.g. "Id") to include in API
539	// requests with the JSON null value. By default, fields with empty
540	// values are omitted from API requests. However, any field with an
541	// empty value appearing in NullFields will be sent to the server as
542	// null. It is an error if a field in this list has a non-empty value.
543	// This may be used to include null fields in Patch requests.
544	NullFields []string `json:"-"`
545}
546
547func (s *AuthorizedDomain) MarshalJSON() ([]byte, error) {
548	type NoMethod AuthorizedDomain
549	raw := NoMethod(*s)
550	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
551}
552
553// AutoDomainMapping: Resource to hold the state and status of a user's
554// auto domain mapping.
555type AutoDomainMapping struct {
556	// ApiVersion: The API version for this call such as
557	// "serving.knative.dev/v1".
558	ApiVersion string `json:"apiVersion,omitempty"`
559
560	// Kind: The kind of resource, in this case "AutoDomainMapping".
561	Kind string `json:"kind,omitempty"`
562
563	// Metadata: Metadata associated with this BuildTemplate.
564	Metadata *ObjectMeta `json:"metadata,omitempty"`
565
566	// Spec: The spec for this AutoDomainMapping.
567	Spec *AutoDomainMappingSpec `json:"spec,omitempty"`
568
569	// Status: The current status of the AutoDomainMapping.
570	Status *AutoDomainMappingStatus `json:"status,omitempty"`
571
572	// ServerResponse contains the HTTP response code and headers from the
573	// server.
574	googleapi.ServerResponse `json:"-"`
575
576	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
577	// unconditionally include in API requests. By default, fields with
578	// empty values are omitted from API requests. However, any non-pointer,
579	// non-interface field appearing in ForceSendFields will be sent to the
580	// server regardless of whether the field is empty or not. This may be
581	// used to include empty fields in Patch requests.
582	ForceSendFields []string `json:"-"`
583
584	// NullFields is a list of field names (e.g. "ApiVersion") to include in
585	// API requests with the JSON null value. By default, fields with empty
586	// values are omitted from API requests. However, any field with an
587	// empty value appearing in NullFields will be sent to the server as
588	// null. It is an error if a field in this list has a non-empty value.
589	// This may be used to include null fields in Patch requests.
590	NullFields []string `json:"-"`
591}
592
593func (s *AutoDomainMapping) MarshalJSON() ([]byte, error) {
594	type NoMethod AutoDomainMapping
595	raw := NoMethod(*s)
596	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
597}
598
599// AutoDomainMappingSpec: The desired state of the Auto Domain Mapping.
600type AutoDomainMappingSpec struct {
601	// CertificateMode: The mode of the certificate.
602	//
603	// Possible values:
604	//   "CERTIFICATE_MODE_UNSPECIFIED"
605	//   "NONE" - Do not provision an HTTPS certificate.
606	//   "AUTOMATIC" - Automatically provisions an HTTPS certificate via
607	// LetsEncrypt.
608	CertificateMode string `json:"certificateMode,omitempty"`
609
610	// ExpansionType: The type of expansion for the auto auto domain
611	// mapping.
612	//
613	// Possible values:
614	//   "EXPANSION_TYPE_UNSPECIFIED"
615	//   "PREFIX"
616	ExpansionType string `json:"expansionType,omitempty"`
617
618	// ForceOverride: If set, the mapping will override any mapping set
619	// before this spec was set.
620	// It is recommended that the user leaves this empty to receive an
621	// error
622	// warning about a potential conflict and only set it once the
623	// respective UI
624	// has given such a warning.
625	ForceOverride bool `json:"forceOverride,omitempty"`
626
627	// ForceSendFields is a list of field names (e.g. "CertificateMode") to
628	// unconditionally include in API requests. By default, fields with
629	// empty values are omitted from API requests. However, any non-pointer,
630	// non-interface field appearing in ForceSendFields will be sent to the
631	// server regardless of whether the field is empty or not. This may be
632	// used to include empty fields in Patch requests.
633	ForceSendFields []string `json:"-"`
634
635	// NullFields is a list of field names (e.g. "CertificateMode") to
636	// include in API requests with the JSON null value. By default, fields
637	// with empty values are omitted from API requests. However, any field
638	// with an empty value appearing in NullFields will be sent to the
639	// server as null. It is an error if a field in this list has a
640	// non-empty value. This may be used to include null fields in Patch
641	// requests.
642	NullFields []string `json:"-"`
643}
644
645func (s *AutoDomainMappingSpec) MarshalJSON() ([]byte, error) {
646	type NoMethod AutoDomainMappingSpec
647	raw := NoMethod(*s)
648	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
649}
650
651// AutoDomainMappingStatus: The current state of the Domain Mapping.
652type AutoDomainMappingStatus struct {
653	// Conditions: Array of observed AutoDomainMappingConditions, indicating
654	// the current state
655	// of the AutoDomainMapping.
656	Conditions []*GoogleCloudRunV1Condition `json:"conditions,omitempty"`
657
658	// ObservedGeneration: ObservedGeneration is the 'Generation' of the
659	// AutoDomainMapping that
660	// was last processed by the controller.
661	//
662	// Clients polling for completed reconciliation should poll
663	// until
664	// observedGeneration = metadata.generation and the Ready condition's
665	// status
666	// is True or False.
667	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
668
669	// ResourceRecords: The resource records required to configure this
670	// domain mapping. These
671	// records must be added to the domain's DNS configuration in order
672	// to
673	// serve the application via this domain mapping.
674	ResourceRecords []*ResourceRecord `json:"resourceRecords,omitempty"`
675
676	// ForceSendFields is a list of field names (e.g. "Conditions") to
677	// unconditionally include in API requests. By default, fields with
678	// empty values are omitted from API requests. However, any non-pointer,
679	// non-interface field appearing in ForceSendFields will be sent to the
680	// server regardless of whether the field is empty or not. This may be
681	// used to include empty fields in Patch requests.
682	ForceSendFields []string `json:"-"`
683
684	// NullFields is a list of field names (e.g. "Conditions") to include in
685	// API requests with the JSON null value. By default, fields with empty
686	// values are omitted from API requests. However, any field with an
687	// empty value appearing in NullFields will be sent to the server as
688	// null. It is an error if a field in this list has a non-empty value.
689	// This may be used to include null fields in Patch requests.
690	NullFields []string `json:"-"`
691}
692
693func (s *AutoDomainMappingStatus) MarshalJSON() ([]byte, error) {
694	type NoMethod AutoDomainMappingStatus
695	raw := NoMethod(*s)
696	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
697}
698
699// Binding: Associates `members` with a `role`.
700type Binding struct {
701	// Condition: The condition that is associated with this binding.
702	// NOTE: An unsatisfied condition will not allow user access via
703	// current
704	// binding. Different bindings, including their conditions, are
705	// examined
706	// independently.
707	Condition *Expr `json:"condition,omitempty"`
708
709	// Members: Specifies the identities requesting access for a Cloud
710	// Platform resource.
711	// `members` can have the following values:
712	//
713	// * `allUsers`: A special identifier that represents anyone who is
714	//    on the internet; with or without a Google account.
715	//
716	// * `allAuthenticatedUsers`: A special identifier that represents
717	// anyone
718	//    who is authenticated with a Google account or a service
719	// account.
720	//
721	// * `user:{emailid}`: An email address that represents a specific
722	// Google
723	//    account. For example, `alice@example.com` .
724	//
725	//
726	// * `serviceAccount:{emailid}`: An email address that represents a
727	// service
728	//    account. For example,
729	// `my-other-app@appspot.gserviceaccount.com`.
730	//
731	// * `group:{emailid}`: An email address that represents a Google
732	// group.
733	//    For example, `admins@example.com`.
734	//
735	//
736	// * `domain:{domain}`: The G Suite domain (primary) that represents all
737	// the
738	//    users of that domain. For example, `google.com` or
739	// `example.com`.
740	//
741	//
742	Members []string `json:"members,omitempty"`
743
744	// Role: Role that is assigned to `members`.
745	// For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
746	Role string `json:"role,omitempty"`
747
748	// ForceSendFields is a list of field names (e.g. "Condition") to
749	// unconditionally include in API requests. By default, fields with
750	// empty values are omitted from API requests. However, any non-pointer,
751	// non-interface field appearing in ForceSendFields will be sent to the
752	// server regardless of whether the field is empty or not. This may be
753	// used to include empty fields in Patch requests.
754	ForceSendFields []string `json:"-"`
755
756	// NullFields is a list of field names (e.g. "Condition") to include in
757	// API requests with the JSON null value. By default, fields with empty
758	// values are omitted from API requests. However, any field with an
759	// empty value appearing in NullFields will be sent to the server as
760	// null. It is an error if a field in this list has a non-empty value.
761	// This may be used to include null fields in Patch requests.
762	NullFields []string `json:"-"`
763}
764
765func (s *Binding) MarshalJSON() ([]byte, error) {
766	type NoMethod Binding
767	raw := NoMethod(*s)
768	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
769}
770
771// ConfigMapEnvSource: Cloud Run fully managed: not supported
772//
773// Cloud Run for Anthos: supported
774//
775// ConfigMapEnvSource selects a ConfigMap to populate the
776// environment
777// variables with.
778//
779// The contents of the target ConfigMap's Data field will represent
780// the
781// key-value pairs as environment variables.
782type ConfigMapEnvSource struct {
783	// LocalObjectReference: This field should not be used directly as it is
784	// meant to be inlined
785	// directly into the message. Use the "name" field instead.
786	LocalObjectReference *LocalObjectReference `json:"localObjectReference,omitempty"`
787
788	// Name: Cloud Run fully managed: not supported
789	//
790	// Cloud Run for Anthos: supported
791	//
792	// The ConfigMap to select from.
793	Name string `json:"name,omitempty"`
794
795	// Optional: (Optional)
796	//
797	// Cloud Run fully managed: not supported
798	//
799	// Cloud Run for Anthos: supported
800	//
801	// Specify whether the ConfigMap must be defined
802	Optional bool `json:"optional,omitempty"`
803
804	// ForceSendFields is a list of field names (e.g.
805	// "LocalObjectReference") to unconditionally include in API requests.
806	// By default, fields with empty values are omitted from API requests.
807	// However, any non-pointer, non-interface field appearing in
808	// ForceSendFields will be sent to the server regardless of whether the
809	// field is empty or not. This may be used to include empty fields in
810	// Patch requests.
811	ForceSendFields []string `json:"-"`
812
813	// NullFields is a list of field names (e.g. "LocalObjectReference") to
814	// include in API requests with the JSON null value. By default, fields
815	// with empty values are omitted from API requests. However, any field
816	// with an empty value appearing in NullFields will be sent to the
817	// server as null. It is an error if a field in this list has a
818	// non-empty value. This may be used to include null fields in Patch
819	// requests.
820	NullFields []string `json:"-"`
821}
822
823func (s *ConfigMapEnvSource) MarshalJSON() ([]byte, error) {
824	type NoMethod ConfigMapEnvSource
825	raw := NoMethod(*s)
826	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
827}
828
829// ConfigMapKeySelector: Cloud Run fully managed: not supported
830//
831// Cloud Run for Anthos: supported
832//
833// Selects a key from a ConfigMap.
834type ConfigMapKeySelector struct {
835	// Key: Cloud Run fully managed: not supported
836	//
837	// Cloud Run for Anthos: supported
838	//
839	// The key to select.
840	Key string `json:"key,omitempty"`
841
842	// LocalObjectReference: This field should not be used directly as it is
843	// meant to be inlined
844	// directly into the message. Use the "name" field instead.
845	LocalObjectReference *LocalObjectReference `json:"localObjectReference,omitempty"`
846
847	// Name: Cloud Run fully managed: not supported
848	//
849	// Cloud Run for Anthos: supported
850	//
851	// The ConfigMap to select from.
852	Name string `json:"name,omitempty"`
853
854	// Optional: (Optional)
855	//
856	// Cloud Run fully managed: not supported
857	//
858	// Cloud Run for Anthos: supported
859	//
860	// Specify whether the ConfigMap or its key must be defined
861	Optional bool `json:"optional,omitempty"`
862
863	// ForceSendFields is a list of field names (e.g. "Key") to
864	// unconditionally include in API requests. By default, fields with
865	// empty values are omitted from API requests. However, any non-pointer,
866	// non-interface field appearing in ForceSendFields will be sent to the
867	// server regardless of whether the field is empty or not. This may be
868	// used to include empty fields in Patch requests.
869	ForceSendFields []string `json:"-"`
870
871	// NullFields is a list of field names (e.g. "Key") to include in API
872	// requests with the JSON null value. By default, fields with empty
873	// values are omitted from API requests. However, any field with an
874	// empty value appearing in NullFields will be sent to the server as
875	// null. It is an error if a field in this list has a non-empty value.
876	// This may be used to include null fields in Patch requests.
877	NullFields []string `json:"-"`
878}
879
880func (s *ConfigMapKeySelector) MarshalJSON() ([]byte, error) {
881	type NoMethod ConfigMapKeySelector
882	raw := NoMethod(*s)
883	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
884}
885
886// ConfigMapVolumeSource: Cloud Run fully managed: not supported
887//
888// Cloud Run for Anthos: supported
889//
890// Adapts a ConfigMap into a volume.
891// The contents of the target ConfigMap's Data field will be presented
892// in a
893// volume as files using the keys in the Data field as the file names,
894// unless
895// the items element is populated with specific mappings of keys to
896// paths.
897type ConfigMapVolumeSource struct {
898	// DefaultMode: (Optional)
899	//
900	// Cloud Run fully managed: not supported
901	//
902	// Cloud Run for Anthos: supported
903	//
904	// Mode bits to use on created files by default. Must be a value between
905	// 0 and
906	// 0777. Defaults to 0644. Directories within the path are not affected
907	// by
908	// this setting. This might be in conflict with other options that
909	// affect the
910	// file mode, like fsGroup, and the result can be other mode bits set.
911	DefaultMode int64 `json:"defaultMode,omitempty"`
912
913	// Items: (Optional)
914	//
915	// Cloud Run fully managed: not supported
916	//
917	// Cloud Run for Anthos: supported
918	//
919	// If unspecified, each key-value pair in the Data field of the
920	// referenced
921	// Secret will be projected into the volume as a file whose name is
922	// the
923	// key and content is the value. If specified, the listed keys will
924	// be
925	// projected into the specified paths, and unlisted keys will not
926	// be
927	// present. If a key is specified which is not present in the
928	// Secret,
929	// the volume setup will error unless it is marked optional.
930	Items []*KeyToPath `json:"items,omitempty"`
931
932	// Name: Cloud Run fully managed: not supported
933	//
934	// Cloud Run for Anthos: supported
935	//
936	// Name of the config.
937	Name string `json:"name,omitempty"`
938
939	// Optional: (Optional)
940	//
941	// Cloud Run fully managed: not supported
942	//
943	// Cloud Run for Anthos: supported
944	//
945	// Specify whether the Secret or its keys must be defined.
946	Optional bool `json:"optional,omitempty"`
947
948	// ForceSendFields is a list of field names (e.g. "DefaultMode") to
949	// unconditionally include in API requests. By default, fields with
950	// empty values are omitted from API requests. However, any non-pointer,
951	// non-interface field appearing in ForceSendFields will be sent to the
952	// server regardless of whether the field is empty or not. This may be
953	// used to include empty fields in Patch requests.
954	ForceSendFields []string `json:"-"`
955
956	// NullFields is a list of field names (e.g. "DefaultMode") to include
957	// in API requests with the JSON null value. By default, fields with
958	// empty values are omitted from API requests. However, any field with
959	// an empty value appearing in NullFields will be sent to the server as
960	// null. It is an error if a field in this list has a non-empty value.
961	// This may be used to include null fields in Patch requests.
962	NullFields []string `json:"-"`
963}
964
965func (s *ConfigMapVolumeSource) MarshalJSON() ([]byte, error) {
966	type NoMethod ConfigMapVolumeSource
967	raw := NoMethod(*s)
968	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
969}
970
971// Configuration: Configuration represents the "floating HEAD" of a
972// linear history of
973// Revisions, and optionally how the containers those revisions
974// reference are
975// built. Users create new Revisions by updating the Configuration's
976// spec. The
977// "latest created" revision's name is available under status, as is the
978// "latest
979// ready" revision's name. See
980// also:
981// https://github.com/knative/serving/blob/master/docs/spec/overvie
982// w.md#configuration
983type Configuration struct {
984	// ApiVersion: The API version for this call such as
985	// "serving.knative.dev/v1".
986	ApiVersion string `json:"apiVersion,omitempty"`
987
988	// Kind: The kind of resource, in this case always "Configuration".
989	Kind string `json:"kind,omitempty"`
990
991	// Metadata: Metadata associated with this Configuration, including
992	// name, namespace,
993	// labels, and annotations.
994	Metadata *ObjectMeta `json:"metadata,omitempty"`
995
996	// Spec: Spec holds the desired state of the Configuration (from the
997	// client).
998	Spec *ConfigurationSpec `json:"spec,omitempty"`
999
1000	// Status: Status communicates the observed state of the Configuration
1001	// (from the
1002	// controller).
1003	Status *ConfigurationStatus `json:"status,omitempty"`
1004
1005	// ServerResponse contains the HTTP response code and headers from the
1006	// server.
1007	googleapi.ServerResponse `json:"-"`
1008
1009	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
1010	// unconditionally include in API requests. By default, fields with
1011	// empty values are omitted from API requests. However, any non-pointer,
1012	// non-interface field appearing in ForceSendFields will be sent to the
1013	// server regardless of whether the field is empty or not. This may be
1014	// used to include empty fields in Patch requests.
1015	ForceSendFields []string `json:"-"`
1016
1017	// NullFields is a list of field names (e.g. "ApiVersion") to include in
1018	// API requests with the JSON null value. By default, fields with empty
1019	// values are omitted from API requests. However, any field with an
1020	// empty value appearing in NullFields will be sent to the server as
1021	// null. It is an error if a field in this list has a non-empty value.
1022	// This may be used to include null fields in Patch requests.
1023	NullFields []string `json:"-"`
1024}
1025
1026func (s *Configuration) MarshalJSON() ([]byte, error) {
1027	type NoMethod Configuration
1028	raw := NoMethod(*s)
1029	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1030}
1031
1032// ConfigurationSpec: ConfigurationSpec holds the desired state of the
1033// Configuration (from the
1034// client).
1035type ConfigurationSpec struct {
1036	// Template: Optional metadata for this Revision, including labels and
1037	// annotations. Name
1038	// will be generated by the Configuration.
1039	// To set minimum instances for this revision, use
1040	// the
1041	// "autoscaling.knative.dev/minScale" annotation key. (Cloud Run for
1042	// Anthos
1043	// only). To set maximum instances for this revision, use
1044	// the
1045	// "autoscaling.knative.dev/maxScale" annotation key.
1046	// To set Cloud SQL connections for the revision, use
1047	// the
1048	// "run.googleapis.com/cloudsql-instances" annotation key. Values should
1049	// be
1050	// comma separated.
1051	Template *RevisionTemplate `json:"template,omitempty"`
1052
1053	// ForceSendFields is a list of field names (e.g. "Template") to
1054	// unconditionally include in API requests. By default, fields with
1055	// empty values are omitted from API requests. However, any non-pointer,
1056	// non-interface field appearing in ForceSendFields will be sent to the
1057	// server regardless of whether the field is empty or not. This may be
1058	// used to include empty fields in Patch requests.
1059	ForceSendFields []string `json:"-"`
1060
1061	// NullFields is a list of field names (e.g. "Template") to include in
1062	// API requests with the JSON null value. By default, fields with empty
1063	// values are omitted from API requests. However, any field with an
1064	// empty value appearing in NullFields will be sent to the server as
1065	// null. It is an error if a field in this list has a non-empty value.
1066	// This may be used to include null fields in Patch requests.
1067	NullFields []string `json:"-"`
1068}
1069
1070func (s *ConfigurationSpec) MarshalJSON() ([]byte, error) {
1071	type NoMethod ConfigurationSpec
1072	raw := NoMethod(*s)
1073	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1074}
1075
1076// ConfigurationStatus: ConfigurationStatus communicates the observed
1077// state of the Configuration
1078// (from the controller).
1079type ConfigurationStatus struct {
1080	// Conditions: Conditions communicates information about
1081	// ongoing/complete
1082	// reconciliation processes that bring the "spec" inline with the
1083	// observed
1084	// state of the world.
1085	Conditions []*GoogleCloudRunV1Condition `json:"conditions,omitempty"`
1086
1087	// LatestCreatedRevisionName: LatestCreatedRevisionName is the last
1088	// revision that was created from this
1089	// Configuration. It might not be ready yet, for that
1090	// use
1091	// LatestReadyRevisionName.
1092	LatestCreatedRevisionName string `json:"latestCreatedRevisionName,omitempty"`
1093
1094	// LatestReadyRevisionName: LatestReadyRevisionName holds the name of
1095	// the latest Revision stamped out
1096	// from this Configuration that has had its "Ready" condition become
1097	// "True".
1098	LatestReadyRevisionName string `json:"latestReadyRevisionName,omitempty"`
1099
1100	// ObservedGeneration: ObservedGeneration is the 'Generation' of the
1101	// Configuration that
1102	// was last processed by the controller. The observed generation is
1103	// updated
1104	// even if the controller failed to process the spec and create the
1105	// Revision.
1106	//
1107	// Clients polling for completed reconciliation should poll
1108	// until
1109	// observedGeneration = metadata.generation, and the Ready condition's
1110	// status
1111	// is True or False.
1112	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
1113
1114	// ForceSendFields is a list of field names (e.g. "Conditions") to
1115	// unconditionally include in API requests. By default, fields with
1116	// empty values are omitted from API requests. However, any non-pointer,
1117	// non-interface field appearing in ForceSendFields will be sent to the
1118	// server regardless of whether the field is empty or not. This may be
1119	// used to include empty fields in Patch requests.
1120	ForceSendFields []string `json:"-"`
1121
1122	// NullFields is a list of field names (e.g. "Conditions") to include in
1123	// API requests with the JSON null value. By default, fields with empty
1124	// values are omitted from API requests. However, any field with an
1125	// empty value appearing in NullFields will be sent to the server as
1126	// null. It is an error if a field in this list has a non-empty value.
1127	// This may be used to include null fields in Patch requests.
1128	NullFields []string `json:"-"`
1129}
1130
1131func (s *ConfigurationStatus) MarshalJSON() ([]byte, error) {
1132	type NoMethod ConfigurationStatus
1133	raw := NoMethod(*s)
1134	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1135}
1136
1137// Container: A single application container.
1138// This specifies both the container to run, the command to run in the
1139// container
1140// and the arguments to supply to it.
1141// Note that additional arguments may be supplied by the system to the
1142// container
1143// at runtime.
1144type Container struct {
1145	// Args: (Optional)
1146	//
1147	// Cloud Run fully managed: supported
1148	//
1149	// Cloud Run for Anthos: supported
1150	//
1151	// Arguments to the entrypoint.
1152	// The docker image's CMD is used if this is not provided.
1153	// Variable references $(VAR_NAME) are expanded using the
1154	// container's
1155	// environment. If a variable cannot be resolved, the reference in the
1156	// input
1157	// string will be unchanged. The $(VAR_NAME) syntax can be escaped with
1158	// a
1159	// double $$, ie: $$(VAR_NAME). Escaped references will never be
1160	// expanded,
1161	// regardless of whether the variable exists or not.
1162	// Cannot be updated.
1163	// More
1164	// info:
1165	// https://kubernetes.io/docs/tasks/inject-data-application/define-
1166	// command-argument-container/#running-a-command-in-a-shell
1167	Args []string `json:"args,omitempty"`
1168
1169	Command []string `json:"command,omitempty"`
1170
1171	// Env: (Optional)
1172	//
1173	// Cloud Run fully managed: supported
1174	//
1175	// Cloud Run for Anthos: supported
1176	//
1177	// List of environment variables to set in the container.
1178	// Cannot be updated.
1179	Env []*EnvVar `json:"env,omitempty"`
1180
1181	// EnvFrom: (Optional)
1182	//
1183	// Cloud Run fully managed: not supported
1184	//
1185	// Cloud Run for Anthos: supported
1186	//
1187	// List of sources to populate environment variables in the
1188	// container.
1189	// The keys defined within a source must be a C_IDENTIFIER. All invalid
1190	// keys
1191	// will be reported as an event when the container is starting. When a
1192	// key
1193	// exists in multiple sources, the value associated with the last source
1194	// will
1195	// take precedence. Values defined by an Env with a duplicate key will
1196	// take
1197	// precedence. Cannot be updated.
1198	EnvFrom []*EnvFromSource `json:"envFrom,omitempty"`
1199
1200	// Image: Cloud Run fully managed: only supports containers from Google
1201	// Container
1202	// Registry
1203	//
1204	// Cloud Run for Anthos: supported
1205	//
1206	// URL of the Container image.
1207	// More info: https://kubernetes.io/docs/concepts/containers/images
1208	Image string `json:"image,omitempty"`
1209
1210	// ImagePullPolicy: (Optional)
1211	//
1212	// Cloud Run fully managed: not supported
1213	//
1214	// Cloud Run for Anthos: supported
1215	//
1216	// Image pull policy.
1217	// One of Always, Never, IfNotPresent.
1218	// Defaults to Always if :latest tag is specified, or IfNotPresent
1219	// otherwise.
1220	// Cannot be updated.
1221	// More
1222	// info:
1223	// https://kubernetes.io/docs/concepts/containers/images#updating-i
1224	// mages
1225	ImagePullPolicy string `json:"imagePullPolicy,omitempty"`
1226
1227	// LivenessProbe: (Optional)
1228	//
1229	// Cloud Run fully managed: not supported
1230	//
1231	// Cloud Run for Anthos: supported
1232	//
1233	// Periodic probe of container liveness.
1234	// Container will be restarted if the probe fails.
1235	// Cannot be updated.
1236	// More
1237	// info:
1238	// https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle
1239	// #container-probes
1240	LivenessProbe *Probe `json:"livenessProbe,omitempty"`
1241
1242	// Name: (Optional)
1243	//
1244	// Name of the container specified as a DNS_LABEL.
1245	Name string `json:"name,omitempty"`
1246
1247	// Ports: (Optional)
1248	//
1249	// Cloud Run fully managed: not supported
1250	//
1251	// Cloud Run for Anthos: supported
1252	//
1253	// List of ports to expose from the container. Exposing a port here
1254	// gives
1255	// the system additional information about the network connections
1256	// a
1257	// container uses, but is primarily informational. Not specifying a port
1258	// here
1259	// DOES NOT prevent that port from being exposed. Any port which
1260	// is
1261	// listening on the default "0.0.0.0" address inside a container will
1262	// be
1263	// accessible from the network.
1264	// Cannot be updated.
1265	Ports []*ContainerPort `json:"ports,omitempty"`
1266
1267	// ReadinessProbe: (Optional)
1268	//
1269	// Cloud Run fully managed: not supported
1270	//
1271	// Cloud Run for Anthos: supported
1272	//
1273	// Periodic probe of container service readiness.
1274	// Container will be removed from service endpoints if the probe
1275	// fails.
1276	// Cannot be updated.
1277	// More
1278	// info:
1279	// https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle
1280	// #container-probes
1281	ReadinessProbe *Probe `json:"readinessProbe,omitempty"`
1282
1283	// Resources: (Optional)
1284	//
1285	// Cloud Run fully managed: supported
1286	//
1287	// Cloud Run for Anthos: supported
1288	//
1289	// Compute Resources required by this container.
1290	// Cannot be updated.
1291	// More
1292	// info:
1293	// https://kubernetes.io/docs/concepts/storage/persistent-volumes#r
1294	// esources
1295	Resources *ResourceRequirements `json:"resources,omitempty"`
1296
1297	// SecurityContext: (Optional)
1298	//
1299	// Cloud Run fully managed: not supported
1300	//
1301	// Cloud Run for Anthos: supported
1302	//
1303	// Security options the pod should run with.
1304	// More info:
1305	// https://kubernetes.io/docs/concepts/policy/security-context/
1306	// More
1307	// info:
1308	// https://kubernetes.io/docs/tasks/configure-pod-container/securit
1309	// y-context/
1310	SecurityContext *SecurityContext `json:"securityContext,omitempty"`
1311
1312	// TerminationMessagePath: (Optional)
1313	//
1314	// Cloud Run fully managed: not supported
1315	//
1316	// Cloud Run for Anthos: supported
1317	//
1318	// Path at which the file to which the container's termination
1319	// message will be written is mounted into the container's filesystem.
1320	// Message
1321	// written is intended to be brief final status, such as an assertion
1322	// failure
1323	// message. Will be truncated by the node if greater than 4096 bytes.
1324	// The
1325	// total message length across all containers will be limited to
1326	// 12kb.
1327	// Defaults to /dev/termination-log.
1328	// Cannot be updated.
1329	TerminationMessagePath string `json:"terminationMessagePath,omitempty"`
1330
1331	// TerminationMessagePolicy: (Optional)
1332	//
1333	// Cloud Run fully managed: not supported
1334	//
1335	// Cloud Run for Anthos: supported
1336	//
1337	// Indicate how the termination message should be populated. File will
1338	// use the
1339	// contents of terminationMessagePath to populate the container status
1340	// message
1341	// on both success and failure. FallbackToLogsOnError will use the last
1342	// chunk
1343	// of container log output if the termination message file is empty and
1344	// the
1345	// container exited with an error. The log output is limited to 2048
1346	// bytes or
1347	// 80 lines, whichever is smaller. Defaults to File. Cannot be updated.
1348	TerminationMessagePolicy string `json:"terminationMessagePolicy,omitempty"`
1349
1350	// VolumeMounts: (Optional)
1351	//
1352	// Cloud Run fully managed: not supported
1353	//
1354	// Cloud Run for Anthos: supported
1355	//
1356	// Pod volumes to mount into the container's filesystem.
1357	// Cannot be updated.
1358	VolumeMounts []*VolumeMount `json:"volumeMounts,omitempty"`
1359
1360	// WorkingDir: (Optional)
1361	//
1362	// Cloud Run fully managed: not supported
1363	//
1364	// Cloud Run for Anthos: supported
1365	//
1366	// Container's working directory.
1367	// If not specified, the container runtime's default will be used,
1368	// which
1369	// might be configured in the container image.
1370	// Cannot be updated.
1371	WorkingDir string `json:"workingDir,omitempty"`
1372
1373	// ForceSendFields is a list of field names (e.g. "Args") to
1374	// unconditionally include in API requests. By default, fields with
1375	// empty values are omitted from API requests. However, any non-pointer,
1376	// non-interface field appearing in ForceSendFields will be sent to the
1377	// server regardless of whether the field is empty or not. This may be
1378	// used to include empty fields in Patch requests.
1379	ForceSendFields []string `json:"-"`
1380
1381	// NullFields is a list of field names (e.g. "Args") to include in API
1382	// requests with the JSON null value. By default, fields with empty
1383	// values are omitted from API requests. However, any field with an
1384	// empty value appearing in NullFields will be sent to the server as
1385	// null. It is an error if a field in this list has a non-empty value.
1386	// This may be used to include null fields in Patch requests.
1387	NullFields []string `json:"-"`
1388}
1389
1390func (s *Container) MarshalJSON() ([]byte, error) {
1391	type NoMethod Container
1392	raw := NoMethod(*s)
1393	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1394}
1395
1396// ContainerPort: Cloud Run fully managed: not supported
1397//
1398// Cloud Run for Anthos: supported
1399//
1400// ContainerPort represents a network port in a single container.
1401type ContainerPort struct {
1402	// ContainerPort: (Optional)
1403	//
1404	// Cloud Run fully managed: not supported
1405	//
1406	// Cloud Run for Anthos: supported
1407	//
1408	// Number of port to expose on the pod's IP address.
1409	// This must be a valid port number, 0 < x < 65536.
1410	ContainerPort int64 `json:"containerPort,omitempty"`
1411
1412	// Name: (Optional)
1413	//
1414	// Cloud Run fully managed: not supported
1415	//
1416	// Cloud Run for Anthos: supported
1417	//
1418	// If specified, used to specify which protocol to use.
1419	// Allowed values are "http1" and "h2c".
1420	Name string `json:"name,omitempty"`
1421
1422	// Protocol: (Optional)
1423	//
1424	// Cloud Run fully managed: not supported
1425	//
1426	// Cloud Run for Anthos: supported
1427	//
1428	// Protocol for port. Must be TCP.
1429	// Defaults to "TCP".
1430	Protocol string `json:"protocol,omitempty"`
1431
1432	// ForceSendFields is a list of field names (e.g. "ContainerPort") to
1433	// unconditionally include in API requests. By default, fields with
1434	// empty values are omitted from API requests. However, any non-pointer,
1435	// non-interface field appearing in ForceSendFields will be sent to the
1436	// server regardless of whether the field is empty or not. This may be
1437	// used to include empty fields in Patch requests.
1438	ForceSendFields []string `json:"-"`
1439
1440	// NullFields is a list of field names (e.g. "ContainerPort") to include
1441	// in API requests with the JSON null value. By default, fields with
1442	// empty values are omitted from API requests. However, any field with
1443	// an empty value appearing in NullFields will be sent to the server as
1444	// null. It is an error if a field in this list has a non-empty value.
1445	// This may be used to include null fields in Patch requests.
1446	NullFields []string `json:"-"`
1447}
1448
1449func (s *ContainerPort) MarshalJSON() ([]byte, error) {
1450	type NoMethod ContainerPort
1451	raw := NoMethod(*s)
1452	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1453}
1454
1455// DomainMapping: Resource to hold the state and status of a user's
1456// domain mapping.
1457type DomainMapping struct {
1458	// ApiVersion: The API version for this call such as
1459	// "domains.cloudrun.com/v1".
1460	ApiVersion string `json:"apiVersion,omitempty"`
1461
1462	// Kind: The kind of resource, in this case "DomainMapping".
1463	Kind string `json:"kind,omitempty"`
1464
1465	// Metadata: Metadata associated with this BuildTemplate.
1466	Metadata *ObjectMeta `json:"metadata,omitempty"`
1467
1468	// Spec: The spec for this DomainMapping.
1469	Spec *DomainMappingSpec `json:"spec,omitempty"`
1470
1471	// Status: The current status of the DomainMapping.
1472	Status *DomainMappingStatus `json:"status,omitempty"`
1473
1474	// ServerResponse contains the HTTP response code and headers from the
1475	// server.
1476	googleapi.ServerResponse `json:"-"`
1477
1478	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
1479	// unconditionally include in API requests. By default, fields with
1480	// empty values are omitted from API requests. However, any non-pointer,
1481	// non-interface field appearing in ForceSendFields will be sent to the
1482	// server regardless of whether the field is empty or not. This may be
1483	// used to include empty fields in Patch requests.
1484	ForceSendFields []string `json:"-"`
1485
1486	// NullFields is a list of field names (e.g. "ApiVersion") to include in
1487	// API requests with the JSON null value. By default, fields with empty
1488	// values are omitted from API requests. However, any field with an
1489	// empty value appearing in NullFields will be sent to the server as
1490	// null. It is an error if a field in this list has a non-empty value.
1491	// This may be used to include null fields in Patch requests.
1492	NullFields []string `json:"-"`
1493}
1494
1495func (s *DomainMapping) MarshalJSON() ([]byte, error) {
1496	type NoMethod DomainMapping
1497	raw := NoMethod(*s)
1498	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1499}
1500
1501// DomainMappingSpec: The desired state of the Domain Mapping.
1502type DomainMappingSpec struct {
1503	// CertificateMode: The mode of the certificate.
1504	//
1505	// Possible values:
1506	//   "CERTIFICATE_MODE_UNSPECIFIED"
1507	//   "NONE" - Do not provision an HTTPS certificate.
1508	//   "AUTOMATIC" - Automatically provisions an HTTPS certificate via
1509	// LetsEncrypt.
1510	CertificateMode string `json:"certificateMode,omitempty"`
1511
1512	// ForceOverride: If set, the mapping will override any mapping set
1513	// before this spec was set.
1514	// It is recommended that the user leaves this empty to receive an
1515	// error
1516	// warning about a potential conflict and only set it once the
1517	// respective UI
1518	// has given such a warning.
1519	ForceOverride bool `json:"forceOverride,omitempty"`
1520
1521	// RouteName: The name of the Knative Route that this DomainMapping
1522	// applies to.
1523	// The route must exist.
1524	RouteName string `json:"routeName,omitempty"`
1525
1526	// ForceSendFields is a list of field names (e.g. "CertificateMode") to
1527	// unconditionally include in API requests. By default, fields with
1528	// empty values are omitted from API requests. However, any non-pointer,
1529	// non-interface field appearing in ForceSendFields will be sent to the
1530	// server regardless of whether the field is empty or not. This may be
1531	// used to include empty fields in Patch requests.
1532	ForceSendFields []string `json:"-"`
1533
1534	// NullFields is a list of field names (e.g. "CertificateMode") to
1535	// include in API requests with the JSON null value. By default, fields
1536	// with empty values are omitted from API requests. However, any field
1537	// with an empty value appearing in NullFields will be sent to the
1538	// server as null. It is an error if a field in this list has a
1539	// non-empty value. This may be used to include null fields in Patch
1540	// requests.
1541	NullFields []string `json:"-"`
1542}
1543
1544func (s *DomainMappingSpec) MarshalJSON() ([]byte, error) {
1545	type NoMethod DomainMappingSpec
1546	raw := NoMethod(*s)
1547	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1548}
1549
1550// DomainMappingStatus: The current state of the Domain Mapping.
1551type DomainMappingStatus struct {
1552	// Conditions: Array of observed DomainMappingConditions, indicating the
1553	// current state
1554	// of the DomainMapping.
1555	Conditions []*GoogleCloudRunV1Condition `json:"conditions,omitempty"`
1556
1557	// MappedRouteName: The name of the route that the mapping currently
1558	// points to.
1559	MappedRouteName string `json:"mappedRouteName,omitempty"`
1560
1561	// ObservedGeneration: ObservedGeneration is the 'Generation' of the
1562	// DomainMapping that
1563	// was last processed by the controller.
1564	//
1565	// Clients polling for completed reconciliation should poll
1566	// until
1567	// observedGeneration = metadata.generation and the Ready condition's
1568	// status
1569	// is True or False.
1570	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
1571
1572	// ResourceRecords: The resource records required to configure this
1573	// domain mapping. These
1574	// records must be added to the domain's DNS configuration in order
1575	// to
1576	// serve the application via this domain mapping.
1577	ResourceRecords []*ResourceRecord `json:"resourceRecords,omitempty"`
1578
1579	// ForceSendFields is a list of field names (e.g. "Conditions") to
1580	// unconditionally include in API requests. By default, fields with
1581	// empty values are omitted from API requests. However, any non-pointer,
1582	// non-interface field appearing in ForceSendFields will be sent to the
1583	// server regardless of whether the field is empty or not. This may be
1584	// used to include empty fields in Patch requests.
1585	ForceSendFields []string `json:"-"`
1586
1587	// NullFields is a list of field names (e.g. "Conditions") to include in
1588	// API requests with the JSON null value. By default, fields with empty
1589	// values are omitted from API requests. However, any field with an
1590	// empty value appearing in NullFields will be sent to the server as
1591	// null. It is an error if a field in this list has a non-empty value.
1592	// This may be used to include null fields in Patch requests.
1593	NullFields []string `json:"-"`
1594}
1595
1596func (s *DomainMappingStatus) MarshalJSON() ([]byte, error) {
1597	type NoMethod DomainMappingStatus
1598	raw := NoMethod(*s)
1599	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1600}
1601
1602// EnvFromSource: Cloud Run fully managed: not supported
1603//
1604// Cloud Run for Anthos: supported
1605//
1606// EnvFromSource represents the source of a set of ConfigMaps
1607type EnvFromSource struct {
1608	// ConfigMapRef: (Optional)
1609	//
1610	// Cloud Run fully managed: not supported
1611	//
1612	// Cloud Run for Anthos: supported
1613	//
1614	// The ConfigMap to select from
1615	ConfigMapRef *ConfigMapEnvSource `json:"configMapRef,omitempty"`
1616
1617	// Prefix: (Optional)
1618	//
1619	// Cloud Run fully managed: not supported
1620	//
1621	// Cloud Run for Anthos: supported
1622	//
1623	// An optional identifier to prepend to each key in the ConfigMap. Must
1624	// be a
1625	// C_IDENTIFIER.
1626	Prefix string `json:"prefix,omitempty"`
1627
1628	// SecretRef: (Optional)
1629	//
1630	// Cloud Run fully managed: not supported
1631	//
1632	// Cloud Run for Anthos: supported
1633	//
1634	// The Secret to select from
1635	SecretRef *SecretEnvSource `json:"secretRef,omitempty"`
1636
1637	// ForceSendFields is a list of field names (e.g. "ConfigMapRef") to
1638	// unconditionally include in API requests. By default, fields with
1639	// empty values are omitted from API requests. However, any non-pointer,
1640	// non-interface field appearing in ForceSendFields will be sent to the
1641	// server regardless of whether the field is empty or not. This may be
1642	// used to include empty fields in Patch requests.
1643	ForceSendFields []string `json:"-"`
1644
1645	// NullFields is a list of field names (e.g. "ConfigMapRef") to include
1646	// in API requests with the JSON null value. By default, fields with
1647	// empty values are omitted from API requests. However, any field with
1648	// an empty value appearing in NullFields will be sent to the server as
1649	// null. It is an error if a field in this list has a non-empty value.
1650	// This may be used to include null fields in Patch requests.
1651	NullFields []string `json:"-"`
1652}
1653
1654func (s *EnvFromSource) MarshalJSON() ([]byte, error) {
1655	type NoMethod EnvFromSource
1656	raw := NoMethod(*s)
1657	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1658}
1659
1660// EnvVar: EnvVar represents an environment variable present in a
1661// Container.
1662type EnvVar struct {
1663	// Name: Name of the environment variable. Must be a C_IDENTIFIER.
1664	Name string `json:"name,omitempty"`
1665
1666	// Value: (Optional)
1667	//
1668	// Variable references $(VAR_NAME) are expanded
1669	// using the previous defined environment variables in the container
1670	// and
1671	// any route environment variables. If a variable cannot be
1672	// resolved,
1673	// the reference in the input string will be unchanged. The
1674	// $(VAR_NAME)
1675	// syntax can be escaped with a double $$, ie: $$(VAR_NAME).
1676	// Escaped
1677	// references will never be expanded, regardless of whether the
1678	// variable
1679	// exists or not.
1680	// Defaults to "".
1681	Value string `json:"value,omitempty"`
1682
1683	// ValueFrom: (Optional)
1684	//
1685	// Cloud Run fully managed: not supported
1686	//
1687	// Cloud Run for Anthos: supported
1688	//
1689	// Source for the environment variable's value. Cannot be used if value
1690	// is not
1691	// empty.
1692	ValueFrom *EnvVarSource `json:"valueFrom,omitempty"`
1693
1694	// ForceSendFields is a list of field names (e.g. "Name") to
1695	// unconditionally include in API requests. By default, fields with
1696	// empty values are omitted from API requests. However, any non-pointer,
1697	// non-interface field appearing in ForceSendFields will be sent to the
1698	// server regardless of whether the field is empty or not. This may be
1699	// used to include empty fields in Patch requests.
1700	ForceSendFields []string `json:"-"`
1701
1702	// NullFields is a list of field names (e.g. "Name") to include in API
1703	// requests with the JSON null value. By default, fields with empty
1704	// values are omitted from API requests. However, any field with an
1705	// empty value appearing in NullFields will be sent to the server as
1706	// null. It is an error if a field in this list has a non-empty value.
1707	// This may be used to include null fields in Patch requests.
1708	NullFields []string `json:"-"`
1709}
1710
1711func (s *EnvVar) MarshalJSON() ([]byte, error) {
1712	type NoMethod EnvVar
1713	raw := NoMethod(*s)
1714	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1715}
1716
1717// EnvVarSource: Cloud Run fully managed: not supported
1718//
1719// Cloud Run for Anthos: supported
1720//
1721// EnvVarSource represents a source for the value of an EnvVar.
1722type EnvVarSource struct {
1723	// ConfigMapKeyRef: (Optional)
1724	//
1725	// Cloud Run fully managed: not supported
1726	//
1727	// Cloud Run for Anthos: supported
1728	//
1729	// Selects a key of a ConfigMap.
1730	ConfigMapKeyRef *ConfigMapKeySelector `json:"configMapKeyRef,omitempty"`
1731
1732	// SecretKeyRef: (Optional)
1733	//
1734	// Cloud Run fully managed: not supported
1735	//
1736	// Cloud Run for Anthos: supported
1737	//
1738	// Selects a key of a secret in the pod's namespace
1739	SecretKeyRef *SecretKeySelector `json:"secretKeyRef,omitempty"`
1740
1741	// ForceSendFields is a list of field names (e.g. "ConfigMapKeyRef") to
1742	// unconditionally include in API requests. By default, fields with
1743	// empty values are omitted from API requests. However, any non-pointer,
1744	// non-interface field appearing in ForceSendFields will be sent to the
1745	// server regardless of whether the field is empty or not. This may be
1746	// used to include empty fields in Patch requests.
1747	ForceSendFields []string `json:"-"`
1748
1749	// NullFields is a list of field names (e.g. "ConfigMapKeyRef") to
1750	// include in API requests with the JSON null value. By default, fields
1751	// with empty values are omitted from API requests. However, any field
1752	// with an empty value appearing in NullFields will be sent to the
1753	// server as null. It is an error if a field in this list has a
1754	// non-empty value. This may be used to include null fields in Patch
1755	// requests.
1756	NullFields []string `json:"-"`
1757}
1758
1759func (s *EnvVarSource) MarshalJSON() ([]byte, error) {
1760	type NoMethod EnvVarSource
1761	raw := NoMethod(*s)
1762	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1763}
1764
1765// ExecAction: Cloud Run fully managed: not supported
1766//
1767// Cloud Run for Anthos: supported
1768//
1769// ExecAction describes a "run in container" action.
1770type ExecAction struct {
1771	// Command: (Optional)
1772	//
1773	// Cloud Run fully managed: not supported
1774	//
1775	// Cloud Run for Anthos: supported
1776	//
1777	// Command is the command line to execute inside the container, the
1778	// working
1779	// directory for the command  is root ('/') in the container's
1780	// filesystem. The
1781	// command is simply exec'd, it is not run inside a shell, so
1782	// traditional
1783	// shell instructions ('|', etc) won't work. To use a shell, you need
1784	// to
1785	// explicitly call out to that shell. Exit status of 0 is treated
1786	// as
1787	// live/healthy and non-zero is unhealthy.
1788	Command string `json:"command,omitempty"`
1789
1790	// ForceSendFields is a list of field names (e.g. "Command") to
1791	// unconditionally include in API requests. By default, fields with
1792	// empty values are omitted from API requests. However, any non-pointer,
1793	// non-interface field appearing in ForceSendFields will be sent to the
1794	// server regardless of whether the field is empty or not. This may be
1795	// used to include empty fields in Patch requests.
1796	ForceSendFields []string `json:"-"`
1797
1798	// NullFields is a list of field names (e.g. "Command") to include in
1799	// API requests with the JSON null value. By default, fields with empty
1800	// values are omitted from API requests. However, any field with an
1801	// empty value appearing in NullFields will be sent to the server as
1802	// null. It is an error if a field in this list has a non-empty value.
1803	// This may be used to include null fields in Patch requests.
1804	NullFields []string `json:"-"`
1805}
1806
1807func (s *ExecAction) MarshalJSON() ([]byte, error) {
1808	type NoMethod ExecAction
1809	raw := NoMethod(*s)
1810	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1811}
1812
1813// Expr: Represents an expression text. Example:
1814//
1815//     title: "User account presence"
1816//     description: "Determines whether the request has a user account"
1817//     expression: "size(request.user) > 0"
1818type Expr struct {
1819	// Description: An optional description of the expression. This is a
1820	// longer text which
1821	// describes the expression, e.g. when hovered over it in a UI.
1822	Description string `json:"description,omitempty"`
1823
1824	// Expression: Textual representation of an expression in
1825	// Common Expression Language syntax.
1826	//
1827	// The application context of the containing message determines
1828	// which
1829	// well-known feature set of CEL is supported.
1830	Expression string `json:"expression,omitempty"`
1831
1832	// Location: An optional string indicating the location of the
1833	// expression for error
1834	// reporting, e.g. a file name and a position in the file.
1835	Location string `json:"location,omitempty"`
1836
1837	// Title: An optional title for the expression, i.e. a short string
1838	// describing
1839	// its purpose. This can be used e.g. in UIs which allow to enter
1840	// the
1841	// expression.
1842	Title string `json:"title,omitempty"`
1843
1844	// ForceSendFields is a list of field names (e.g. "Description") to
1845	// unconditionally include in API requests. By default, fields with
1846	// empty values are omitted from API requests. However, any non-pointer,
1847	// non-interface field appearing in ForceSendFields will be sent to the
1848	// server regardless of whether the field is empty or not. This may be
1849	// used to include empty fields in Patch requests.
1850	ForceSendFields []string `json:"-"`
1851
1852	// NullFields is a list of field names (e.g. "Description") to include
1853	// in API requests with the JSON null value. By default, fields with
1854	// empty values are omitted from API requests. However, any field with
1855	// an empty value appearing in NullFields will be sent to the server as
1856	// null. It is an error if a field in this list has a non-empty value.
1857	// This may be used to include null fields in Patch requests.
1858	NullFields []string `json:"-"`
1859}
1860
1861func (s *Expr) MarshalJSON() ([]byte, error) {
1862	type NoMethod Expr
1863	raw := NoMethod(*s)
1864	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1865}
1866
1867// GoogleCloudRunV1Condition: Condition defines a generic condition for
1868// a Resource
1869type GoogleCloudRunV1Condition struct {
1870	// LastTransitionTime: Optional. Last time the condition transitioned
1871	// from one status to another.
1872	LastTransitionTime string `json:"lastTransitionTime,omitempty"`
1873
1874	// Message: Optional. Human readable message indicating details about
1875	// the current status.
1876	Message string `json:"message,omitempty"`
1877
1878	// Reason: Optional. One-word CamelCase reason for the condition's last
1879	// transition.
1880	Reason string `json:"reason,omitempty"`
1881
1882	// Severity: Optional. How to interpret failures of this condition, one
1883	// of Error, Warning, Info
1884	Severity string `json:"severity,omitempty"`
1885
1886	// Status: Status of the condition, one of True, False, Unknown.
1887	Status string `json:"status,omitempty"`
1888
1889	// Type: type is used to communicate the status of the reconciliation
1890	// process.
1891	// See
1892	// also:
1893	// https://github.com/knative/serving/blob/master/docs/spec/errors.
1894	// md#error-conditions-and-reporting
1895	// Types common to all resources include:
1896	// * "Ready": True when the Resource is ready.
1897	Type string `json:"type,omitempty"`
1898
1899	// ForceSendFields is a list of field names (e.g. "LastTransitionTime")
1900	// to unconditionally include in API requests. By default, fields with
1901	// empty values are omitted from API requests. However, any non-pointer,
1902	// non-interface field appearing in ForceSendFields will be sent to the
1903	// server regardless of whether the field is empty or not. This may be
1904	// used to include empty fields in Patch requests.
1905	ForceSendFields []string `json:"-"`
1906
1907	// NullFields is a list of field names (e.g. "LastTransitionTime") to
1908	// include in API requests with the JSON null value. By default, fields
1909	// with empty values are omitted from API requests. However, any field
1910	// with an empty value appearing in NullFields will be sent to the
1911	// server as null. It is an error if a field in this list has a
1912	// non-empty value. This may be used to include null fields in Patch
1913	// requests.
1914	NullFields []string `json:"-"`
1915}
1916
1917func (s *GoogleCloudRunV1Condition) MarshalJSON() ([]byte, error) {
1918	type NoMethod GoogleCloudRunV1Condition
1919	raw := NoMethod(*s)
1920	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1921}
1922
1923// HTTPGetAction: Cloud Run fully managed: not supported
1924//
1925// Cloud Run for Anthos: supported
1926//
1927// HTTPGetAction describes an action based on HTTP Get requests.
1928type HTTPGetAction struct {
1929	// Host: (Optional)
1930	//
1931	// Cloud Run fully managed: not supported
1932	//
1933	// Cloud Run for Anthos: supported
1934	//
1935	// Host name to connect to, defaults to the pod IP. You probably want to
1936	// set
1937	// "Host" in httpHeaders instead.
1938	Host string `json:"host,omitempty"`
1939
1940	// HttpHeaders: (Optional)
1941	//
1942	// Cloud Run fully managed: not supported
1943	//
1944	// Cloud Run for Anthos: supported
1945	//
1946	// Custom headers to set in the request. HTTP allows repeated headers.
1947	HttpHeaders []*HTTPHeader `json:"httpHeaders,omitempty"`
1948
1949	// Path: (Optional)
1950	//
1951	// Cloud Run fully managed: not supported
1952	//
1953	// Cloud Run for Anthos: supported
1954	//
1955	// Path to access on the HTTP server.
1956	Path string `json:"path,omitempty"`
1957
1958	// Scheme: (Optional)
1959	//
1960	// Cloud Run fully managed: not supported
1961	//
1962	// Cloud Run for Anthos: supported
1963	//
1964	// Scheme to use for connecting to the host.
1965	// Defaults to HTTP.
1966	Scheme string `json:"scheme,omitempty"`
1967
1968	// ForceSendFields is a list of field names (e.g. "Host") to
1969	// unconditionally include in API requests. By default, fields with
1970	// empty values are omitted from API requests. However, any non-pointer,
1971	// non-interface field appearing in ForceSendFields will be sent to the
1972	// server regardless of whether the field is empty or not. This may be
1973	// used to include empty fields in Patch requests.
1974	ForceSendFields []string `json:"-"`
1975
1976	// NullFields is a list of field names (e.g. "Host") to include in API
1977	// requests with the JSON null value. By default, fields with empty
1978	// values are omitted from API requests. However, any field with an
1979	// empty value appearing in NullFields will be sent to the server as
1980	// null. It is an error if a field in this list has a non-empty value.
1981	// This may be used to include null fields in Patch requests.
1982	NullFields []string `json:"-"`
1983}
1984
1985func (s *HTTPGetAction) MarshalJSON() ([]byte, error) {
1986	type NoMethod HTTPGetAction
1987	raw := NoMethod(*s)
1988	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1989}
1990
1991// HTTPHeader: Cloud Run fully managed: not supported
1992//
1993// Cloud Run for Anthos: supported
1994//
1995// HTTPHeader describes a custom header to be used in HTTP probes
1996type HTTPHeader struct {
1997	// Name: Cloud Run fully managed: not supported
1998	//
1999	// Cloud Run for Anthos: supported
2000	//
2001	// The header field name
2002	Name string `json:"name,omitempty"`
2003
2004	// Value: Cloud Run fully managed: not supported
2005	//
2006	// Cloud Run for Anthos: supported
2007	//
2008	// The header field value
2009	Value string `json:"value,omitempty"`
2010
2011	// ForceSendFields is a list of field names (e.g. "Name") to
2012	// unconditionally include in API requests. By default, fields with
2013	// empty values are omitted from API requests. However, any non-pointer,
2014	// non-interface field appearing in ForceSendFields will be sent to the
2015	// server regardless of whether the field is empty or not. This may be
2016	// used to include empty fields in Patch requests.
2017	ForceSendFields []string `json:"-"`
2018
2019	// NullFields is a list of field names (e.g. "Name") to include in API
2020	// requests with the JSON null value. By default, fields with empty
2021	// values are omitted from API requests. However, any field with an
2022	// empty value appearing in NullFields will be sent to the server as
2023	// null. It is an error if a field in this list has a non-empty value.
2024	// This may be used to include null fields in Patch requests.
2025	NullFields []string `json:"-"`
2026}
2027
2028func (s *HTTPHeader) MarshalJSON() ([]byte, error) {
2029	type NoMethod HTTPHeader
2030	raw := NoMethod(*s)
2031	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2032}
2033
2034// Handler: Cloud Run fully managed: not supported
2035//
2036// Cloud Run for Anthos: supported
2037//
2038// Handler defines a specific action that should be taken
2039type Handler struct {
2040	// Exec: (Optional)
2041	//
2042	// Cloud Run fully managed: not supported
2043	//
2044	// Cloud Run for Anthos: supported
2045	//
2046	// One and only one of the following should be specified.
2047	// Exec specifies the action to take.
2048	Exec *ExecAction `json:"exec,omitempty"`
2049
2050	// HttpGet: (Optional)
2051	//
2052	// Cloud Run fully managed: not supported
2053	//
2054	// Cloud Run for Anthos: supported
2055	//
2056	// HTTPGet specifies the http request to perform.
2057	HttpGet *HTTPGetAction `json:"httpGet,omitempty"`
2058
2059	// TcpSocket: (Optional)
2060	//
2061	// Cloud Run fully managed: not supported
2062	//
2063	// Cloud Run for Anthos: supported
2064	//
2065	// TCPSocket specifies an action involving a TCP port.
2066	// TCP hooks not yet supported
2067	TcpSocket *TCPSocketAction `json:"tcpSocket,omitempty"`
2068
2069	// ForceSendFields is a list of field names (e.g. "Exec") to
2070	// unconditionally include in API requests. By default, fields with
2071	// empty values are omitted from API requests. However, any non-pointer,
2072	// non-interface field appearing in ForceSendFields will be sent to the
2073	// server regardless of whether the field is empty or not. This may be
2074	// used to include empty fields in Patch requests.
2075	ForceSendFields []string `json:"-"`
2076
2077	// NullFields is a list of field names (e.g. "Exec") to include in API
2078	// requests with the JSON null value. By default, fields with empty
2079	// values are omitted from API requests. However, any field with an
2080	// empty value appearing in NullFields will be sent to the server as
2081	// null. It is an error if a field in this list has a non-empty value.
2082	// This may be used to include null fields in Patch requests.
2083	NullFields []string `json:"-"`
2084}
2085
2086func (s *Handler) MarshalJSON() ([]byte, error) {
2087	type NoMethod Handler
2088	raw := NoMethod(*s)
2089	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2090}
2091
2092// IntOrString: IntOrString is a type that can hold an int32 or a
2093// string.  When used in
2094// JSON or YAML marshalling and unmarshalling, it produces or consumes
2095// the
2096// inner type.  This allows you to have, for example, a JSON field that
2097// can
2098// accept a name or number.
2099type IntOrString struct {
2100	// IntVal: The int value.
2101	IntVal int64 `json:"intVal,omitempty"`
2102
2103	// StrVal: The string value.
2104	StrVal string `json:"strVal,omitempty"`
2105
2106	// Type: The type of the value.
2107	Type int64 `json:"type,omitempty"`
2108
2109	// ForceSendFields is a list of field names (e.g. "IntVal") to
2110	// unconditionally include in API requests. By default, fields with
2111	// empty values are omitted from API requests. However, any non-pointer,
2112	// non-interface field appearing in ForceSendFields will be sent to the
2113	// server regardless of whether the field is empty or not. This may be
2114	// used to include empty fields in Patch requests.
2115	ForceSendFields []string `json:"-"`
2116
2117	// NullFields is a list of field names (e.g. "IntVal") to include in API
2118	// requests with the JSON null value. By default, fields with empty
2119	// values are omitted from API requests. However, any field with an
2120	// empty value appearing in NullFields will be sent to the server as
2121	// null. It is an error if a field in this list has a non-empty value.
2122	// This may be used to include null fields in Patch requests.
2123	NullFields []string `json:"-"`
2124}
2125
2126func (s *IntOrString) MarshalJSON() ([]byte, error) {
2127	type NoMethod IntOrString
2128	raw := NoMethod(*s)
2129	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2130}
2131
2132// KeyToPath: Cloud Run fully managed: not supported
2133//
2134// Cloud Run for Anthos: supported
2135//
2136// Maps a string key to a path within a volume.
2137type KeyToPath struct {
2138	// Key: Cloud Run fully managed: not supported
2139	//
2140	// Cloud Run for Anthos: supported
2141	//
2142	// The key to project.
2143	Key string `json:"key,omitempty"`
2144
2145	// Mode: (Optional)
2146	//
2147	// Cloud Run fully managed: not supported
2148	//
2149	// Cloud Run for Anthos: supported
2150	//
2151	// Mode bits to use on this file, must be a value between 0 and 0777. If
2152	// not
2153	// specified, the volume defaultMode will be used. This might be in
2154	// conflict
2155	// with other options that affect the file mode, like fsGroup, and the
2156	// result
2157	// can be other mode bits set.
2158	Mode int64 `json:"mode,omitempty"`
2159
2160	// Path: Cloud Run fully managed: not supported
2161	//
2162	// Cloud Run for Anthos: supported
2163	//
2164	// The relative path of the file to map the key to.
2165	// May not be an absolute path.
2166	// May not contain the path element '..'.
2167	// May not start with the string '..'.
2168	Path string `json:"path,omitempty"`
2169
2170	// ForceSendFields is a list of field names (e.g. "Key") to
2171	// unconditionally include in API requests. By default, fields with
2172	// empty values are omitted from API requests. However, any non-pointer,
2173	// non-interface field appearing in ForceSendFields will be sent to the
2174	// server regardless of whether the field is empty or not. This may be
2175	// used to include empty fields in Patch requests.
2176	ForceSendFields []string `json:"-"`
2177
2178	// NullFields is a list of field names (e.g. "Key") to include in API
2179	// requests with the JSON null value. By default, fields with empty
2180	// values are omitted from API requests. However, any field with an
2181	// empty value appearing in NullFields will be sent to the server as
2182	// null. It is an error if a field in this list has a non-empty value.
2183	// This may be used to include null fields in Patch requests.
2184	NullFields []string `json:"-"`
2185}
2186
2187func (s *KeyToPath) MarshalJSON() ([]byte, error) {
2188	type NoMethod KeyToPath
2189	raw := NoMethod(*s)
2190	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2191}
2192
2193// ListAuthorizedDomainsResponse: A list of Authorized Domains.
2194type ListAuthorizedDomainsResponse struct {
2195	// Domains: The authorized domains belonging to the user.
2196	Domains []*AuthorizedDomain `json:"domains,omitempty"`
2197
2198	// NextPageToken: Continuation token for fetching the next page of
2199	// results.
2200	NextPageToken string `json:"nextPageToken,omitempty"`
2201
2202	// ServerResponse contains the HTTP response code and headers from the
2203	// server.
2204	googleapi.ServerResponse `json:"-"`
2205
2206	// ForceSendFields is a list of field names (e.g. "Domains") to
2207	// unconditionally include in API requests. By default, fields with
2208	// empty values are omitted from API requests. However, any non-pointer,
2209	// non-interface field appearing in ForceSendFields will be sent to the
2210	// server regardless of whether the field is empty or not. This may be
2211	// used to include empty fields in Patch requests.
2212	ForceSendFields []string `json:"-"`
2213
2214	// NullFields is a list of field names (e.g. "Domains") to include in
2215	// API requests with the JSON null value. By default, fields with empty
2216	// values are omitted from API requests. However, any field with an
2217	// empty value appearing in NullFields will be sent to the server as
2218	// null. It is an error if a field in this list has a non-empty value.
2219	// This may be used to include null fields in Patch requests.
2220	NullFields []string `json:"-"`
2221}
2222
2223func (s *ListAuthorizedDomainsResponse) MarshalJSON() ([]byte, error) {
2224	type NoMethod ListAuthorizedDomainsResponse
2225	raw := NoMethod(*s)
2226	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2227}
2228
2229// ListAutoDomainMappingsResponse: ListAutoDomainMappingsResponse is a
2230// list of AutoDomainMapping resources.
2231type ListAutoDomainMappingsResponse struct {
2232	// ApiVersion: The API version for this call such as
2233	// "serving.knative.dev/v1".
2234	ApiVersion string `json:"apiVersion,omitempty"`
2235
2236	// Items: List of AutoDomainMappings.
2237	Items []*AutoDomainMapping `json:"items,omitempty"`
2238
2239	// Kind: The kind of this resource, in this case
2240	// "AutoDomainMappingList".
2241	Kind string `json:"kind,omitempty"`
2242
2243	// Metadata: Metadata associated with this AutoDomainMapping list.
2244	Metadata *ListMeta `json:"metadata,omitempty"`
2245
2246	// Unreachable: Locations that could not be reached.
2247	Unreachable []string `json:"unreachable,omitempty"`
2248
2249	// ServerResponse contains the HTTP response code and headers from the
2250	// server.
2251	googleapi.ServerResponse `json:"-"`
2252
2253	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
2254	// unconditionally include in API requests. By default, fields with
2255	// empty values are omitted from API requests. However, any non-pointer,
2256	// non-interface field appearing in ForceSendFields will be sent to the
2257	// server regardless of whether the field is empty or not. This may be
2258	// used to include empty fields in Patch requests.
2259	ForceSendFields []string `json:"-"`
2260
2261	// NullFields is a list of field names (e.g. "ApiVersion") to include in
2262	// API requests with the JSON null value. By default, fields with empty
2263	// values are omitted from API requests. However, any field with an
2264	// empty value appearing in NullFields will be sent to the server as
2265	// null. It is an error if a field in this list has a non-empty value.
2266	// This may be used to include null fields in Patch requests.
2267	NullFields []string `json:"-"`
2268}
2269
2270func (s *ListAutoDomainMappingsResponse) MarshalJSON() ([]byte, error) {
2271	type NoMethod ListAutoDomainMappingsResponse
2272	raw := NoMethod(*s)
2273	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2274}
2275
2276// ListConfigurationsResponse: ListConfigurationsResponse is a list of
2277// Configuration resources.
2278type ListConfigurationsResponse struct {
2279	// ApiVersion: The API version for this call such as
2280	// "serving.knative.dev/v1".
2281	ApiVersion string `json:"apiVersion,omitempty"`
2282
2283	// Items: List of Configurations.
2284	Items []*Configuration `json:"items,omitempty"`
2285
2286	// Kind: The kind of this resource, in this case "ConfigurationList".
2287	Kind string `json:"kind,omitempty"`
2288
2289	// Metadata: Metadata associated with this Configuration list.
2290	Metadata *ListMeta `json:"metadata,omitempty"`
2291
2292	// Unreachable: Locations that could not be reached.
2293	Unreachable []string `json:"unreachable,omitempty"`
2294
2295	// ServerResponse contains the HTTP response code and headers from the
2296	// server.
2297	googleapi.ServerResponse `json:"-"`
2298
2299	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
2300	// unconditionally include in API requests. By default, fields with
2301	// empty values are omitted from API requests. However, any non-pointer,
2302	// non-interface field appearing in ForceSendFields will be sent to the
2303	// server regardless of whether the field is empty or not. This may be
2304	// used to include empty fields in Patch requests.
2305	ForceSendFields []string `json:"-"`
2306
2307	// NullFields is a list of field names (e.g. "ApiVersion") to include in
2308	// API requests with the JSON null value. By default, fields with empty
2309	// values are omitted from API requests. However, any field with an
2310	// empty value appearing in NullFields will be sent to the server as
2311	// null. It is an error if a field in this list has a non-empty value.
2312	// This may be used to include null fields in Patch requests.
2313	NullFields []string `json:"-"`
2314}
2315
2316func (s *ListConfigurationsResponse) MarshalJSON() ([]byte, error) {
2317	type NoMethod ListConfigurationsResponse
2318	raw := NoMethod(*s)
2319	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2320}
2321
2322// ListDomainMappingsResponse: ListDomainMappingsResponse is a list of
2323// DomainMapping resources.
2324type ListDomainMappingsResponse struct {
2325	// ApiVersion: The API version for this call such as
2326	// "domains.cloudrun.com/v1".
2327	ApiVersion string `json:"apiVersion,omitempty"`
2328
2329	// Items: List of DomainMappings.
2330	Items []*DomainMapping `json:"items,omitempty"`
2331
2332	// Kind: The kind of this resource, in this case "DomainMappingList".
2333	Kind string `json:"kind,omitempty"`
2334
2335	// Metadata: Metadata associated with this DomainMapping list.
2336	Metadata *ListMeta `json:"metadata,omitempty"`
2337
2338	// Unreachable: Locations that could not be reached.
2339	Unreachable []string `json:"unreachable,omitempty"`
2340
2341	// ServerResponse contains the HTTP response code and headers from the
2342	// server.
2343	googleapi.ServerResponse `json:"-"`
2344
2345	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
2346	// unconditionally include in API requests. By default, fields with
2347	// empty values are omitted from API requests. However, any non-pointer,
2348	// non-interface field appearing in ForceSendFields will be sent to the
2349	// server regardless of whether the field is empty or not. This may be
2350	// used to include empty fields in Patch requests.
2351	ForceSendFields []string `json:"-"`
2352
2353	// NullFields is a list of field names (e.g. "ApiVersion") to include in
2354	// API requests with the JSON null value. By default, fields with empty
2355	// values are omitted from API requests. However, any field with an
2356	// empty value appearing in NullFields will be sent to the server as
2357	// null. It is an error if a field in this list has a non-empty value.
2358	// This may be used to include null fields in Patch requests.
2359	NullFields []string `json:"-"`
2360}
2361
2362func (s *ListDomainMappingsResponse) MarshalJSON() ([]byte, error) {
2363	type NoMethod ListDomainMappingsResponse
2364	raw := NoMethod(*s)
2365	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2366}
2367
2368// ListLocationsResponse: The response message for
2369// Locations.ListLocations.
2370type ListLocationsResponse struct {
2371	// Locations: A list of locations that matches the specified filter in
2372	// the request.
2373	Locations []*Location `json:"locations,omitempty"`
2374
2375	// NextPageToken: The standard List next-page token.
2376	NextPageToken string `json:"nextPageToken,omitempty"`
2377
2378	// ServerResponse contains the HTTP response code and headers from the
2379	// server.
2380	googleapi.ServerResponse `json:"-"`
2381
2382	// ForceSendFields is a list of field names (e.g. "Locations") to
2383	// unconditionally include in API requests. By default, fields with
2384	// empty values are omitted from API requests. However, any non-pointer,
2385	// non-interface field appearing in ForceSendFields will be sent to the
2386	// server regardless of whether the field is empty or not. This may be
2387	// used to include empty fields in Patch requests.
2388	ForceSendFields []string `json:"-"`
2389
2390	// NullFields is a list of field names (e.g. "Locations") 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 *ListLocationsResponse) MarshalJSON() ([]byte, error) {
2400	type NoMethod ListLocationsResponse
2401	raw := NoMethod(*s)
2402	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2403}
2404
2405// ListMeta: ListMeta describes metadata that synthetic resources must
2406// have, including
2407// lists and various status objects. A resource may have only one
2408// of
2409// {ObjectMeta, ListMeta}.
2410type ListMeta struct {
2411	// Continue: continue may be set if the user set a limit on the number
2412	// of items
2413	// returned, and indicates that the server has more data available. The
2414	// value
2415	// is opaque and may be used to issue another request to the endpoint
2416	// that
2417	// served this list to retrieve the next set of available objects.
2418	// Continuing
2419	// a list may not be possible if the server configuration has changed or
2420	// more
2421	// than a few minutes have passed. The resourceVersion field returned
2422	// when
2423	// using this continue value will be identical to the value in the
2424	// first
2425	// response.
2426	Continue string `json:"continue,omitempty"`
2427
2428	// ResourceVersion: String that identifies the server's internal version
2429	// of this object that
2430	// can be used by clients to determine when objects have changed. Value
2431	// must
2432	// be treated as opaque by clients and passed unmodified back to the
2433	// server.
2434	// Populated by the system.
2435	// Read-only.
2436	// More
2437	// info:
2438	// https://git.k8s.io/community/contributors/devel/api-conventions.
2439	// md#concurrency-control-and-consistency
2440	// +optional
2441	ResourceVersion string `json:"resourceVersion,omitempty"`
2442
2443	// SelfLink: SelfLink is a URL representing this object.
2444	// Populated by the system.
2445	// Read-only.
2446	// +optional
2447	SelfLink string `json:"selfLink,omitempty"`
2448
2449	// ForceSendFields is a list of field names (e.g. "Continue") to
2450	// unconditionally include in API requests. By default, fields with
2451	// empty values are omitted from API requests. However, any non-pointer,
2452	// non-interface field appearing in ForceSendFields will be sent to the
2453	// server regardless of whether the field is empty or not. This may be
2454	// used to include empty fields in Patch requests.
2455	ForceSendFields []string `json:"-"`
2456
2457	// NullFields is a list of field names (e.g. "Continue") to include in
2458	// API requests with the JSON null value. By default, fields with empty
2459	// values are omitted from API requests. However, any field with an
2460	// empty value appearing in NullFields will be sent to the server as
2461	// null. It is an error if a field in this list has a non-empty value.
2462	// This may be used to include null fields in Patch requests.
2463	NullFields []string `json:"-"`
2464}
2465
2466func (s *ListMeta) MarshalJSON() ([]byte, error) {
2467	type NoMethod ListMeta
2468	raw := NoMethod(*s)
2469	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2470}
2471
2472// ListRevisionsResponse: ListRevisionsResponse is a list of Revision
2473// resources.
2474type ListRevisionsResponse struct {
2475	// ApiVersion: The API version for this call such as
2476	// "serving.knative.dev/v1".
2477	ApiVersion string `json:"apiVersion,omitempty"`
2478
2479	// Items: List of Revisions.
2480	Items []*Revision `json:"items,omitempty"`
2481
2482	// Kind: The kind of this resource, in this case "RevisionList".
2483	Kind string `json:"kind,omitempty"`
2484
2485	// Metadata: Metadata associated with this revision list.
2486	Metadata *ListMeta `json:"metadata,omitempty"`
2487
2488	// Unreachable: Locations that could not be reached.
2489	Unreachable []string `json:"unreachable,omitempty"`
2490
2491	// ServerResponse contains the HTTP response code and headers from the
2492	// server.
2493	googleapi.ServerResponse `json:"-"`
2494
2495	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
2496	// unconditionally include in API requests. By default, fields with
2497	// empty values are omitted from API requests. However, any non-pointer,
2498	// non-interface field appearing in ForceSendFields will be sent to the
2499	// server regardless of whether the field is empty or not. This may be
2500	// used to include empty fields in Patch requests.
2501	ForceSendFields []string `json:"-"`
2502
2503	// NullFields is a list of field names (e.g. "ApiVersion") to include in
2504	// API requests with the JSON null value. By default, fields with empty
2505	// values are omitted from API requests. However, any field with an
2506	// empty value appearing in NullFields will be sent to the server as
2507	// null. It is an error if a field in this list has a non-empty value.
2508	// This may be used to include null fields in Patch requests.
2509	NullFields []string `json:"-"`
2510}
2511
2512func (s *ListRevisionsResponse) MarshalJSON() ([]byte, error) {
2513	type NoMethod ListRevisionsResponse
2514	raw := NoMethod(*s)
2515	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2516}
2517
2518// ListRoutesResponse: ListRoutesResponse is a list of Route resources.
2519type ListRoutesResponse struct {
2520	// ApiVersion: The API version for this call such as
2521	// "serving.knative.dev/v1".
2522	ApiVersion string `json:"apiVersion,omitempty"`
2523
2524	// Items: List of Routes.
2525	Items []*Route `json:"items,omitempty"`
2526
2527	// Kind: The kind of this resource, in this case always "RouteList".
2528	Kind string `json:"kind,omitempty"`
2529
2530	// Metadata: Metadata associated with this Route list.
2531	Metadata *ListMeta `json:"metadata,omitempty"`
2532
2533	// Unreachable: Locations that could not be reached.
2534	Unreachable []string `json:"unreachable,omitempty"`
2535
2536	// ServerResponse contains the HTTP response code and headers from the
2537	// server.
2538	googleapi.ServerResponse `json:"-"`
2539
2540	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
2541	// unconditionally include in API requests. By default, fields with
2542	// empty values are omitted from API requests. However, any non-pointer,
2543	// non-interface field appearing in ForceSendFields will be sent to the
2544	// server regardless of whether the field is empty or not. This may be
2545	// used to include empty fields in Patch requests.
2546	ForceSendFields []string `json:"-"`
2547
2548	// NullFields is a list of field names (e.g. "ApiVersion") to include in
2549	// API requests with the JSON null value. By default, fields with empty
2550	// values are omitted from API requests. However, any field with an
2551	// empty value appearing in NullFields will be sent to the server as
2552	// null. It is an error if a field in this list has a non-empty value.
2553	// This may be used to include null fields in Patch requests.
2554	NullFields []string `json:"-"`
2555}
2556
2557func (s *ListRoutesResponse) MarshalJSON() ([]byte, error) {
2558	type NoMethod ListRoutesResponse
2559	raw := NoMethod(*s)
2560	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2561}
2562
2563// ListServicesResponse: A list of Service resources.
2564type ListServicesResponse struct {
2565	// ApiVersion: The API version for this call such as
2566	// "serving.knative.dev/v1".
2567	ApiVersion string `json:"apiVersion,omitempty"`
2568
2569	// Items: List of Services.
2570	Items []*Service `json:"items,omitempty"`
2571
2572	// Kind: The kind of this resource, in this case "ServiceList".
2573	Kind string `json:"kind,omitempty"`
2574
2575	// Metadata: Metadata associated with this Service list.
2576	Metadata *ListMeta `json:"metadata,omitempty"`
2577
2578	// Unreachable: Locations that could not be reached.
2579	Unreachable []string `json:"unreachable,omitempty"`
2580
2581	// ServerResponse contains the HTTP response code and headers from the
2582	// server.
2583	googleapi.ServerResponse `json:"-"`
2584
2585	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
2586	// unconditionally include in API requests. By default, fields with
2587	// empty values are omitted from API requests. However, any non-pointer,
2588	// non-interface field appearing in ForceSendFields will be sent to the
2589	// server regardless of whether the field is empty or not. This may be
2590	// used to include empty fields in Patch requests.
2591	ForceSendFields []string `json:"-"`
2592
2593	// NullFields is a list of field names (e.g. "ApiVersion") to include in
2594	// API requests with the JSON null value. By default, fields with empty
2595	// values are omitted from API requests. However, any field with an
2596	// empty value appearing in NullFields will be sent to the server as
2597	// null. It is an error if a field in this list has a non-empty value.
2598	// This may be used to include null fields in Patch requests.
2599	NullFields []string `json:"-"`
2600}
2601
2602func (s *ListServicesResponse) MarshalJSON() ([]byte, error) {
2603	type NoMethod ListServicesResponse
2604	raw := NoMethod(*s)
2605	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2606}
2607
2608// LocalObjectReference: Cloud Run fully managed: not supported
2609//
2610// Cloud Run for Anthos: supported
2611//
2612// LocalObjectReference contains enough information to let you locate
2613// the
2614// referenced object inside the same namespace.
2615type LocalObjectReference struct {
2616	// Name: (Optional)
2617	//
2618	// Cloud Run fully managed: not supported
2619	//
2620	// Cloud Run for Anthos: supported
2621	//
2622	// Name of the referent.
2623	// More
2624	// info:
2625	// https://kubernetes.io/docs/concepts/overview/working-with-object
2626	// s/names/#names
2627	Name string `json:"name,omitempty"`
2628
2629	// ForceSendFields is a list of field names (e.g. "Name") to
2630	// unconditionally include in API requests. By default, fields with
2631	// empty values are omitted from API requests. However, any non-pointer,
2632	// non-interface field appearing in ForceSendFields will be sent to the
2633	// server regardless of whether the field is empty or not. This may be
2634	// used to include empty fields in Patch requests.
2635	ForceSendFields []string `json:"-"`
2636
2637	// NullFields is a list of field names (e.g. "Name") to include in API
2638	// requests with the JSON null value. By default, fields with empty
2639	// values are omitted from API requests. However, any field with an
2640	// empty value appearing in NullFields will be sent to the server as
2641	// null. It is an error if a field in this list has a non-empty value.
2642	// This may be used to include null fields in Patch requests.
2643	NullFields []string `json:"-"`
2644}
2645
2646func (s *LocalObjectReference) MarshalJSON() ([]byte, error) {
2647	type NoMethod LocalObjectReference
2648	raw := NoMethod(*s)
2649	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2650}
2651
2652// Location: A resource that represents Google Cloud Platform location.
2653type Location struct {
2654	// DisplayName: The friendly name for this location, typically a nearby
2655	// city name.
2656	// For example, "Tokyo".
2657	DisplayName string `json:"displayName,omitempty"`
2658
2659	// Labels: Cross-service attributes for the location. For example
2660	//
2661	//     {"cloud.googleapis.com/region": "us-east1"}
2662	Labels map[string]string `json:"labels,omitempty"`
2663
2664	// LocationId: The canonical id for this location. For example:
2665	// "us-east1".
2666	LocationId string `json:"locationId,omitempty"`
2667
2668	// Metadata: Service-specific metadata. For example the available
2669	// capacity at the given
2670	// location.
2671	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
2672
2673	// Name: Resource name for the location, which may vary between
2674	// implementations.
2675	// For example: "projects/example-project/locations/us-east1"
2676	Name string `json:"name,omitempty"`
2677
2678	// ServerResponse contains the HTTP response code and headers from the
2679	// server.
2680	googleapi.ServerResponse `json:"-"`
2681
2682	// ForceSendFields is a list of field names (e.g. "DisplayName") to
2683	// unconditionally include in API requests. By default, fields with
2684	// empty values are omitted from API requests. However, any non-pointer,
2685	// non-interface field appearing in ForceSendFields will be sent to the
2686	// server regardless of whether the field is empty or not. This may be
2687	// used to include empty fields in Patch requests.
2688	ForceSendFields []string `json:"-"`
2689
2690	// NullFields is a list of field names (e.g. "DisplayName") to include
2691	// in API requests with the JSON null value. By default, fields with
2692	// empty values are omitted from API requests. However, any field with
2693	// an empty value appearing in NullFields will be sent to the server as
2694	// null. It is an error if a field in this list has a non-empty value.
2695	// This may be used to include null fields in Patch requests.
2696	NullFields []string `json:"-"`
2697}
2698
2699func (s *Location) MarshalJSON() ([]byte, error) {
2700	type NoMethod Location
2701	raw := NoMethod(*s)
2702	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2703}
2704
2705// ObjectMeta: k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is
2706// metadata that all
2707// persisted resources must have, which includes all objects users must
2708// create.
2709type ObjectMeta struct {
2710	// Annotations: (Optional)
2711	//
2712	// Annotations is an unstructured key value map stored with a resource
2713	// that
2714	// may be set by external tools to store and retrieve arbitrary
2715	// metadata. They
2716	// are not queryable and should be preserved when modifying objects.
2717	// More
2718	// info: http://kubernetes.io/docs/user-guide/annotations
2719	Annotations map[string]string `json:"annotations,omitempty"`
2720
2721	// ClusterName: (Optional)
2722	//
2723	// Cloud Run fully managed: not supported
2724	//
2725	// Cloud Run for Anthos: supported
2726	//
2727	// The name of the cluster which the object belongs to.
2728	// This is used to distinguish resources with same name and namespace
2729	// in
2730	// different clusters. This field is not set anywhere right now and
2731	// apiserver
2732	// is going to ignore it if set in create or update request.
2733	ClusterName string `json:"clusterName,omitempty"`
2734
2735	// CreationTimestamp: (Optional)
2736	//
2737	// CreationTimestamp is a timestamp representing the server time when
2738	// this
2739	// object was created. It is not guaranteed to be set in happens-before
2740	// order
2741	// across separate operations. Clients may not set this value. It
2742	// is
2743	// represented in RFC3339 form and is in UTC.
2744	//
2745	// Populated by the system.
2746	// Read-only.
2747	// Null for lists.
2748	// More
2749	// info:
2750	// https://git.k8s.io/community/contributors/devel/api-conventions.
2751	// md#metadata
2752	CreationTimestamp string `json:"creationTimestamp,omitempty"`
2753
2754	// DeletionGracePeriodSeconds: (Optional)
2755	//
2756	// Cloud Run fully managed: not supported
2757	//
2758	// Cloud Run for Anthos: supported
2759	//
2760	// Number of seconds allowed for this object to gracefully terminate
2761	// before
2762	// it will be removed from the system. Only set when deletionTimestamp
2763	// is also
2764	// set. May only be shortened. Read-only.
2765	DeletionGracePeriodSeconds int64 `json:"deletionGracePeriodSeconds,omitempty"`
2766
2767	// DeletionTimestamp: (Optional)
2768	//
2769	// Cloud Run fully managed: not supported
2770	//
2771	// Cloud Run for Anthos: supported
2772	//
2773	// DeletionTimestamp is RFC 3339 date and time at which this resource
2774	// will be
2775	// deleted. This field is set by the server when a graceful deletion
2776	// is
2777	// requested by the user, and is not directly settable by a client.
2778	// The
2779	// resource is expected to be deleted (no longer visible from resource
2780	// lists,
2781	// and not reachable by name) after the time in this field, once
2782	// the
2783	// finalizers list is empty. As long as the finalizers list contains
2784	// items,
2785	// deletion is blocked. Once the deletionTimestamp is set, this value
2786	// may not
2787	// be unset or be set further into the future, although it may be
2788	// shortened or
2789	// the resource may be deleted prior to this time. For example, a user
2790	// may
2791	// request that a pod is deleted in 30 seconds. The Kubelet will react
2792	// by
2793	// sending a graceful termination signal to the containers in the pod.
2794	// After
2795	// that 30 seconds, the Kubelet will send a hard termination signal
2796	// (SIGKILL)
2797	// to the container and after cleanup, remove the pod from the API. In
2798	// the
2799	// presence of network partitions, this object may still exist after
2800	// this
2801	// timestamp, until an administrator or automated process can determine
2802	// the
2803	// resource is fully terminated.
2804	// If not set, graceful deletion of the object has not been
2805	// requested.
2806	//
2807	// Populated by the system when a graceful deletion is
2808	// requested.
2809	// Read-only.
2810	// More
2811	// info:
2812	// https://git.k8s.io/community/contributors/devel/api-conventions.
2813	// md#metadata
2814	DeletionTimestamp string `json:"deletionTimestamp,omitempty"`
2815
2816	// Finalizers: (Optional)
2817	//
2818	// Cloud Run fully managed: not supported
2819	//
2820	// Cloud Run for Anthos: supported
2821	//
2822	// Must be empty before the object is deleted from the registry. Each
2823	// entry
2824	// is an identifier for the responsible component that will remove the
2825	// entry
2826	// from the list. If the deletionTimestamp of the object is non-nil,
2827	// entries
2828	// in this list can only be removed.
2829	// +patchStrategy=merge
2830	Finalizers []string `json:"finalizers,omitempty"`
2831
2832	// GenerateName: (Optional)
2833	//
2834	// Cloud Run fully managed: not supported
2835	//
2836	// Cloud Run for Anthos: supported
2837	//
2838	// GenerateName is an optional prefix, used by the server, to generate
2839	// a
2840	// unique name ONLY IF the Name field has not been provided. If this
2841	// field is
2842	// used, the name returned to the client will be different than the
2843	// name
2844	// passed. This value will also be combined with a unique suffix. The
2845	// provided
2846	// value has the same validation rules as the Name field, and may be
2847	// truncated
2848	// by the length of the suffix required to make the value unique on
2849	// the
2850	// server.
2851	//
2852	// If this field is specified and the generated name exists, the server
2853	// will
2854	// NOT return a 409 - instead, it will either return 201 Created or 500
2855	// with
2856	// Reason ServerTimeout indicating a unique name could not be found in
2857	// the
2858	// time allotted, and the client should retry (optionally after the
2859	// time
2860	// indicated in the Retry-After header).
2861	//
2862	// Applied only if Name is not specified.
2863	// More
2864	// info:
2865	// https://git.k8s.io/community/contributors/devel/api-conventions.
2866	// md#idempotency
2867	//  string generateName = 2;
2868	GenerateName string `json:"generateName,omitempty"`
2869
2870	// Generation: (Optional)
2871	//
2872	// A sequence number representing a specific generation of the desired
2873	// state.
2874	// Populated by the system. Read-only.
2875	Generation int64 `json:"generation,omitempty"`
2876
2877	// Labels: (Optional)
2878	//
2879	// Map of string keys and values that can be used to organize and
2880	// categorize
2881	// (scope and select) objects. May match selectors of replication
2882	// controllers
2883	// and routes.
2884	// More info: http://kubernetes.io/docs/user-guide/labels
2885	Labels map[string]string `json:"labels,omitempty"`
2886
2887	// Name: Name must be unique within a namespace, within a Cloud Run
2888	// region.
2889	// Is required when creating
2890	// resources, although some resources may allow a client to request
2891	// the
2892	// generation of an appropriate name automatically. Name is primarily
2893	// intended
2894	// for creation idempotence and configuration definition. Cannot be
2895	// updated.
2896	// More info:
2897	// http://kubernetes.io/docs/user-guide/identifiers#names
2898	// +optional
2899	Name string `json:"name,omitempty"`
2900
2901	// Namespace: Namespace defines the space within each name must be
2902	// unique, within a
2903	// Cloud Run region. In Cloud Run the namespace must be equal to either
2904	// the
2905	// project ID or project number.
2906	Namespace string `json:"namespace,omitempty"`
2907
2908	// OwnerReferences: (Optional)
2909	//
2910	// Cloud Run fully managed: not supported
2911	//
2912	// Cloud Run for Anthos: supported
2913	//
2914	// List of objects that own this object. If ALL objects in the list
2915	// have
2916	// been deleted, this object will be garbage collected.
2917	OwnerReferences []*OwnerReference `json:"ownerReferences,omitempty"`
2918
2919	// ResourceVersion: (Optional)
2920	//
2921	// An opaque value that represents the internal version of this object
2922	// that
2923	// can be used by clients to determine when objects have changed. May be
2924	// used
2925	// for optimistic concurrency, change detection, and the watch operation
2926	// on a
2927	// resource or set of resources. Clients must treat these values as
2928	// opaque and
2929	// passed unmodified back to the server. They may only be valid for
2930	// a
2931	// particular resource or set of resources.
2932	//
2933	// Populated by the system.
2934	// Read-only.
2935	// Value must be treated as opaque by clients and .
2936	// More
2937	// info:
2938	// https://git.k8s.io/community/contributors/devel/api-conventions.
2939	// md#concurrency-control-and-consistency
2940	ResourceVersion string `json:"resourceVersion,omitempty"`
2941
2942	// SelfLink: (Optional)
2943	//
2944	// SelfLink is a URL representing this object.
2945	// Populated by the system.
2946	// Read-only.
2947	//  string selfLink = 4;
2948	SelfLink string `json:"selfLink,omitempty"`
2949
2950	// Uid: (Optional)
2951	//
2952	// UID is the unique in time and space value for this object. It is
2953	// typically
2954	// generated by the server on successful creation of a resource and is
2955	// not
2956	// allowed to change on PUT operations.
2957	//
2958	// Populated by the system.
2959	// Read-only.
2960	// More info: http://kubernetes.io/docs/user-guide/identifiers#uids
2961	Uid string `json:"uid,omitempty"`
2962
2963	// ForceSendFields is a list of field names (e.g. "Annotations") to
2964	// unconditionally include in API requests. By default, fields with
2965	// empty values are omitted from API requests. However, any non-pointer,
2966	// non-interface field appearing in ForceSendFields will be sent to the
2967	// server regardless of whether the field is empty or not. This may be
2968	// used to include empty fields in Patch requests.
2969	ForceSendFields []string `json:"-"`
2970
2971	// NullFields is a list of field names (e.g. "Annotations") to include
2972	// in API requests with the JSON null value. By default, fields with
2973	// empty values are omitted from API requests. However, any field with
2974	// an empty value appearing in NullFields will be sent to the server as
2975	// null. It is an error if a field in this list has a non-empty value.
2976	// This may be used to include null fields in Patch requests.
2977	NullFields []string `json:"-"`
2978}
2979
2980func (s *ObjectMeta) MarshalJSON() ([]byte, error) {
2981	type NoMethod ObjectMeta
2982	raw := NoMethod(*s)
2983	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2984}
2985
2986// OwnerReference: OwnerReference contains enough information to let you
2987// identify an owning
2988// object. Currently, an owning object must be in the same namespace, so
2989// there
2990// is no namespace field.
2991type OwnerReference struct {
2992	// ApiVersion: API version of the referent.
2993	ApiVersion string `json:"apiVersion,omitempty"`
2994
2995	// BlockOwnerDeletion: If true, AND if the owner has the
2996	// "foregroundDeletion" finalizer, then
2997	// the owner cannot be deleted from the key-value store until
2998	// this
2999	// reference is removed.
3000	// Defaults to false.
3001	// To set this field, a user needs "delete" permission of the
3002	// owner,
3003	// otherwise 422 (Unprocessable Entity) will be returned.
3004	// +optional
3005	BlockOwnerDeletion bool `json:"blockOwnerDeletion,omitempty"`
3006
3007	// Controller: If true, this reference points to the managing
3008	// controller.
3009	// +optional
3010	Controller bool `json:"controller,omitempty"`
3011
3012	// Kind: Kind of the referent.
3013	// More
3014	// info:
3015	// https://git.k8s.io/community/contributors/devel/api-conventions.
3016	// md#types-kinds
3017	Kind string `json:"kind,omitempty"`
3018
3019	// Name: Name of the referent.
3020	// More info: http://kubernetes.io/docs/user-guide/identifiers#names
3021	Name string `json:"name,omitempty"`
3022
3023	// Uid: UID of the referent.
3024	// More info: http://kubernetes.io/docs/user-guide/identifiers#uids
3025	Uid string `json:"uid,omitempty"`
3026
3027	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
3028	// unconditionally include in API requests. By default, fields with
3029	// empty values are omitted from API requests. However, any non-pointer,
3030	// non-interface field appearing in ForceSendFields will be sent to the
3031	// server regardless of whether the field is empty or not. This may be
3032	// used to include empty fields in Patch requests.
3033	ForceSendFields []string `json:"-"`
3034
3035	// NullFields is a list of field names (e.g. "ApiVersion") to include in
3036	// API requests with the JSON null value. By default, fields with empty
3037	// values are omitted from API requests. However, any field with an
3038	// empty value appearing in NullFields will be sent to the server as
3039	// null. It is an error if a field in this list has a non-empty value.
3040	// This may be used to include null fields in Patch requests.
3041	NullFields []string `json:"-"`
3042}
3043
3044func (s *OwnerReference) MarshalJSON() ([]byte, error) {
3045	type NoMethod OwnerReference
3046	raw := NoMethod(*s)
3047	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3048}
3049
3050// Policy: Defines an Identity and Access Management (IAM) policy. It is
3051// used to
3052// specify access control policies for Cloud Platform resources.
3053//
3054//
3055// A `Policy` is a collection of `bindings`. A `binding` binds one or
3056// more
3057// `members` to a single `role`. Members can be user accounts, service
3058// accounts,
3059// Google groups, and domains (such as G Suite). A `role` is a named
3060// list of
3061// permissions (defined by IAM or configured by users). A `binding`
3062// can
3063// optionally specify a `condition`, which is a logic expression that
3064// further
3065// constrains the role binding based on attributes about the request
3066// and/or
3067// target resource.
3068//
3069// **JSON Example**
3070//
3071//     {
3072//       "bindings": [
3073//         {
3074//           "role": "roles/resourcemanager.organizationAdmin",
3075//           "members": [
3076//             "user:mike@example.com",
3077//             "group:admins@example.com",
3078//             "domain:google.com",
3079//
3080// "serviceAccount:my-project-id@appspot.gserviceaccount.com"
3081//           ]
3082//         },
3083//         {
3084//           "role": "roles/resourcemanager.organizationViewer",
3085//           "members": ["user:eve@example.com"],
3086//           "condition": {
3087//             "title": "expirable access",
3088//             "description": "Does not grant access after Sep 2020",
3089//             "expression": "request.time <
3090//             timestamp('2020-10-01T00:00:00.000Z')",
3091//           }
3092//         }
3093//       ]
3094//     }
3095//
3096// **YAML Example**
3097//
3098//     bindings:
3099//     - members:
3100//       - user:mike@example.com
3101//       - group:admins@example.com
3102//       - domain:google.com
3103//       - serviceAccount:my-project-id@appspot.gserviceaccount.com
3104//       role: roles/resourcemanager.organizationAdmin
3105//     - members:
3106//       - user:eve@example.com
3107//       role: roles/resourcemanager.organizationViewer
3108//       condition:
3109//         title: expirable access
3110//         description: Does not grant access after Sep 2020
3111//         expression: request.time <
3112// timestamp('2020-10-01T00:00:00.000Z')
3113//
3114// For a description of IAM and its features, see the
3115// [IAM developer's guide](https://cloud.google.com/iam/docs).
3116type Policy struct {
3117	// AuditConfigs: Specifies cloud audit logging configuration for this
3118	// policy.
3119	AuditConfigs []*AuditConfig `json:"auditConfigs,omitempty"`
3120
3121	// Bindings: Associates a list of `members` to a `role`. Optionally may
3122	// specify a
3123	// `condition` that determines when binding is in effect.
3124	// `bindings` with no members will result in an error.
3125	Bindings []*Binding `json:"bindings,omitempty"`
3126
3127	// Etag: `etag` is used for optimistic concurrency control as a way to
3128	// help
3129	// prevent simultaneous updates of a policy from overwriting each
3130	// other.
3131	// It is strongly suggested that systems make use of the `etag` in
3132	// the
3133	// read-modify-write cycle to perform policy updates in order to avoid
3134	// race
3135	// conditions: An `etag` is returned in the response to `getIamPolicy`,
3136	// and
3137	// systems are expected to put that etag in the request to
3138	// `setIamPolicy` to
3139	// ensure that their change will be applied to the same version of the
3140	// policy.
3141	//
3142	// If no `etag` is provided in the call to `setIamPolicy`, then the
3143	// existing
3144	// policy is overwritten. Due to blind-set semantics of an etag-less
3145	// policy,
3146	// 'setIamPolicy' will not fail even if either of incoming or stored
3147	// policy
3148	// does not meet the version requirements.
3149	Etag string `json:"etag,omitempty"`
3150
3151	// Version: Specifies the format of the policy.
3152	//
3153	// Valid values are 0, 1, and 3. Requests specifying an invalid value
3154	// will be
3155	// rejected.
3156	//
3157	// Operations affecting conditional bindings must specify version 3.
3158	// This can
3159	// be either setting a conditional policy, modifying a conditional
3160	// binding,
3161	// or removing a conditional binding from the stored conditional
3162	// policy.
3163	// Operations on non-conditional policies may specify any valid value
3164	// or
3165	// leave the field unset.
3166	//
3167	// If no etag is provided in the call to `setIamPolicy`, any
3168	// version
3169	// compliance checks on the incoming and/or stored policy is skipped.
3170	Version int64 `json:"version,omitempty"`
3171
3172	// ServerResponse contains the HTTP response code and headers from the
3173	// server.
3174	googleapi.ServerResponse `json:"-"`
3175
3176	// ForceSendFields is a list of field names (e.g. "AuditConfigs") to
3177	// unconditionally include in API requests. By default, fields with
3178	// empty values are omitted from API requests. However, any non-pointer,
3179	// non-interface field appearing in ForceSendFields will be sent to the
3180	// server regardless of whether the field is empty or not. This may be
3181	// used to include empty fields in Patch requests.
3182	ForceSendFields []string `json:"-"`
3183
3184	// NullFields is a list of field names (e.g. "AuditConfigs") to include
3185	// in API requests with the JSON null value. By default, fields with
3186	// empty values are omitted from API requests. However, any field with
3187	// an empty value appearing in NullFields will be sent to the server as
3188	// null. It is an error if a field in this list has a non-empty value.
3189	// This may be used to include null fields in Patch requests.
3190	NullFields []string `json:"-"`
3191}
3192
3193func (s *Policy) MarshalJSON() ([]byte, error) {
3194	type NoMethod Policy
3195	raw := NoMethod(*s)
3196	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3197}
3198
3199// Probe: Cloud Run fully managed: not supported
3200//
3201// Cloud Run for Anthos: supported
3202//
3203// Probe describes a health check to be performed against a container
3204// to
3205// determine whether it is alive or ready to receive traffic.
3206type Probe struct {
3207	// FailureThreshold: (Optional)
3208	//
3209	// Cloud Run fully managed: not supported
3210	//
3211	// Cloud Run for Anthos: supported
3212	//
3213	// Minimum consecutive failures for the probe to be considered failed
3214	// after
3215	// having succeeded. Defaults to 3. Minimum value is 1.
3216	FailureThreshold int64 `json:"failureThreshold,omitempty"`
3217
3218	// Handler: Cloud Run fully managed: not supported
3219	//
3220	// Cloud Run for Anthos: supported
3221	//
3222	// The action taken to determine the health of a container
3223	Handler *Handler `json:"handler,omitempty"`
3224
3225	// InitialDelaySeconds: (Optional)
3226	//
3227	// Cloud Run fully managed: not supported
3228	//
3229	// Cloud Run for Anthos: supported
3230	//
3231	// Number of seconds after the container has started before liveness
3232	// probes
3233	// are initiated. More
3234	// info:
3235	// https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle
3236	// #container-probes
3237	InitialDelaySeconds int64 `json:"initialDelaySeconds,omitempty"`
3238
3239	// PeriodSeconds: (Optional)
3240	//
3241	// Cloud Run fully managed: not supported
3242	//
3243	// Cloud Run for Anthos: supported
3244	//
3245	// How often (in seconds) to perform the probe.
3246	// Default to 10 seconds. Minimum value is 1.
3247	PeriodSeconds int64 `json:"periodSeconds,omitempty"`
3248
3249	// SuccessThreshold: (Optional)
3250	//
3251	// Cloud Run fully managed: not supported
3252	//
3253	// Cloud Run for Anthos: supported
3254	//
3255	// Minimum consecutive successes for the probe to be considered
3256	// successful
3257	// after having failed. Defaults to 1. Must be 1 for liveness. Minimum
3258	// value
3259	// is 1.
3260	SuccessThreshold int64 `json:"successThreshold,omitempty"`
3261
3262	// TimeoutSeconds: (Optional)
3263	//
3264	// Cloud Run fully managed: not supported
3265	//
3266	// Cloud Run for Anthos: supported
3267	//
3268	// Number of seconds after which the probe times out.
3269	// Defaults to 1 second. Minimum value is 1.
3270	// More
3271	// info:
3272	// https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle
3273	// #container-probes
3274	TimeoutSeconds int64 `json:"timeoutSeconds,omitempty"`
3275
3276	// ForceSendFields is a list of field names (e.g. "FailureThreshold") to
3277	// unconditionally include in API requests. By default, fields with
3278	// empty values are omitted from API requests. However, any non-pointer,
3279	// non-interface field appearing in ForceSendFields will be sent to the
3280	// server regardless of whether the field is empty or not. This may be
3281	// used to include empty fields in Patch requests.
3282	ForceSendFields []string `json:"-"`
3283
3284	// NullFields is a list of field names (e.g. "FailureThreshold") to
3285	// include in API requests with the JSON null value. By default, fields
3286	// with empty values are omitted from API requests. However, any field
3287	// with an empty value appearing in NullFields will be sent to the
3288	// server as null. It is an error if a field in this list has a
3289	// non-empty value. This may be used to include null fields in Patch
3290	// requests.
3291	NullFields []string `json:"-"`
3292}
3293
3294func (s *Probe) MarshalJSON() ([]byte, error) {
3295	type NoMethod Probe
3296	raw := NoMethod(*s)
3297	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3298}
3299
3300// ResourceRecord: A DNS resource record.
3301type ResourceRecord struct {
3302	// Name: Relative name of the object affected by this record. Only
3303	// applicable for
3304	// `CNAME` records. Example: 'www'.
3305	Name string `json:"name,omitempty"`
3306
3307	// Rrdata: Data for this record. Values vary by record type, as defined
3308	// in RFC 1035
3309	// (section 5) and RFC 1034 (section 3.6.1).
3310	Rrdata string `json:"rrdata,omitempty"`
3311
3312	// Type: Resource record type. Example: `AAAA`.
3313	//
3314	// Possible values:
3315	//   "RECORD_TYPE_UNSPECIFIED" - An unknown resource record.
3316	//   "A" - An A resource record. Data is an IPv4 address.
3317	//   "AAAA" - An AAAA resource record. Data is an IPv6 address.
3318	//   "CNAME" - A CNAME resource record. Data is a domain name to be
3319	// aliased.
3320	Type string `json:"type,omitempty"`
3321
3322	// ForceSendFields is a list of field names (e.g. "Name") to
3323	// unconditionally include in API requests. By default, fields with
3324	// empty values are omitted from API requests. However, any non-pointer,
3325	// non-interface field appearing in ForceSendFields will be sent to the
3326	// server regardless of whether the field is empty or not. This may be
3327	// used to include empty fields in Patch requests.
3328	ForceSendFields []string `json:"-"`
3329
3330	// NullFields is a list of field names (e.g. "Name") to include in API
3331	// requests with the JSON null value. By default, fields with empty
3332	// values are omitted from API requests. However, any field with an
3333	// empty value appearing in NullFields will be sent to the server as
3334	// null. It is an error if a field in this list has a non-empty value.
3335	// This may be used to include null fields in Patch requests.
3336	NullFields []string `json:"-"`
3337}
3338
3339func (s *ResourceRecord) MarshalJSON() ([]byte, error) {
3340	type NoMethod ResourceRecord
3341	raw := NoMethod(*s)
3342	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3343}
3344
3345// ResourceRequirements: ResourceRequirements describes the compute
3346// resource requirements.
3347type ResourceRequirements struct {
3348	// Limits: (Optional)
3349	//
3350	// Cloud Run fully managed: Only memory and CPU are supported. Note: The
3351	// only
3352	// supported value for CPU is '1'.
3353	//
3354	// Cloud Run for Anthos: supported
3355	//
3356	// Limits describes the maximum amount of compute resources allowed.
3357	// The values of the map is string form of the 'quantity' k8s
3358	// type:
3359	// https://github.com/kubernetes/kubernetes/blob/master/staging/src
3360	// /k8s.io/apimachinery/pkg/api/resource/quantity.go
3361	Limits map[string]string `json:"limits,omitempty"`
3362
3363	// Requests: (Optional)
3364	//
3365	// Cloud Run fully managed: Only memory and CPU are supported. Note: The
3366	// only
3367	// supported value for CPU is '1'.
3368	//
3369	// Cloud Run for Anthos: supported
3370	//
3371	// Requests describes the minimum amount of compute resources
3372	// required.
3373	// If Requests is omitted for a container, it defaults to Limits if that
3374	// is
3375	// explicitly specified, otherwise to an implementation-defined
3376	// value.
3377	// The values of the map is string form of the 'quantity' k8s
3378	// type:
3379	// https://github.com/kubernetes/kubernetes/blob/master/staging/src
3380	// /k8s.io/apimachinery/pkg/api/resource/quantity.go
3381	Requests map[string]string `json:"requests,omitempty"`
3382
3383	// ForceSendFields is a list of field names (e.g. "Limits") to
3384	// unconditionally include in API requests. By default, fields with
3385	// empty values are omitted from API requests. However, any non-pointer,
3386	// non-interface field appearing in ForceSendFields will be sent to the
3387	// server regardless of whether the field is empty or not. This may be
3388	// used to include empty fields in Patch requests.
3389	ForceSendFields []string `json:"-"`
3390
3391	// NullFields is a list of field names (e.g. "Limits") to include in API
3392	// requests with the JSON null value. By default, fields with empty
3393	// values are omitted from API requests. However, any field with an
3394	// empty value appearing in NullFields will be sent to the server as
3395	// null. It is an error if a field in this list has a non-empty value.
3396	// This may be used to include null fields in Patch requests.
3397	NullFields []string `json:"-"`
3398}
3399
3400func (s *ResourceRequirements) MarshalJSON() ([]byte, error) {
3401	type NoMethod ResourceRequirements
3402	raw := NoMethod(*s)
3403	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3404}
3405
3406// Revision: Revision is an immutable snapshot of code and
3407// configuration.  A revision
3408// references a container image. Revisions are created by updates to
3409// a
3410// Configuration.
3411//
3412// See
3413// also:
3414// https://github.com/knative/serving/blob/master/docs/spec/overvie
3415// w.md#revision
3416type Revision struct {
3417	// ApiVersion: The API version for this call such as
3418	// "serving.knative.dev/v1".
3419	ApiVersion string `json:"apiVersion,omitempty"`
3420
3421	// Kind: The kind of this resource, in this case "Revision".
3422	Kind string `json:"kind,omitempty"`
3423
3424	// Metadata: Metadata associated with this Revision, including name,
3425	// namespace, labels,
3426	// and annotations.
3427	Metadata *ObjectMeta `json:"metadata,omitempty"`
3428
3429	// Spec: Spec holds the desired state of the Revision (from the client).
3430	Spec *RevisionSpec `json:"spec,omitempty"`
3431
3432	// Status: Status communicates the observed state of the Revision (from
3433	// the
3434	// controller).
3435	Status *RevisionStatus `json:"status,omitempty"`
3436
3437	// ServerResponse contains the HTTP response code and headers from the
3438	// server.
3439	googleapi.ServerResponse `json:"-"`
3440
3441	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
3442	// unconditionally include in API requests. By default, fields with
3443	// empty values are omitted from API requests. However, any non-pointer,
3444	// non-interface field appearing in ForceSendFields will be sent to the
3445	// server regardless of whether the field is empty or not. This may be
3446	// used to include empty fields in Patch requests.
3447	ForceSendFields []string `json:"-"`
3448
3449	// NullFields is a list of field names (e.g. "ApiVersion") to include in
3450	// API requests with the JSON null value. By default, fields with empty
3451	// values are omitted from API requests. However, any field with an
3452	// empty value appearing in NullFields will be sent to the server as
3453	// null. It is an error if a field in this list has a non-empty value.
3454	// This may be used to include null fields in Patch requests.
3455	NullFields []string `json:"-"`
3456}
3457
3458func (s *Revision) MarshalJSON() ([]byte, error) {
3459	type NoMethod Revision
3460	raw := NoMethod(*s)
3461	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3462}
3463
3464// RevisionSpec: RevisionSpec holds the desired state of the Revision
3465// (from the client).
3466type RevisionSpec struct {
3467	// ContainerConcurrency: (Optional)
3468	//
3469	// ContainerConcurrency specifies the maximum allowed in-flight
3470	// (concurrent)
3471	// requests per container instance of the Revision.
3472	//
3473	// Cloud Run fully managed: supported, defaults to 80
3474	//
3475	// Cloud Run for Anthos: supported, defaults to 0, which means
3476	// concurrency
3477	// to the application is not limited, and the system decides the
3478	// target concurrency for the autoscaler.
3479	ContainerConcurrency int64 `json:"containerConcurrency,omitempty"`
3480
3481	// Containers: Containers holds the single container that defines the
3482	// unit of execution
3483	// for this Revision. In the context of a Revision, we disallow a number
3484	// of
3485	// fields on this Container, including: name and lifecycle.
3486	// In Cloud Run, only a single container may be provided.
3487	// The runtime contract is documented
3488	// here:
3489	// https://github.com/knative/serving/blob/master/docs/runtime-cont
3490	// ract.md
3491	Containers []*Container `json:"containers,omitempty"`
3492
3493	// ServiceAccountName: Email address of the IAM service account
3494	// associated with the revision
3495	// of the service. The service account represents the identity of
3496	// the
3497	// running revision, and determines what permissions the revision has.
3498	// If
3499	// not provided, the revision will use the project's default service
3500	// account.
3501	ServiceAccountName string `json:"serviceAccountName,omitempty"`
3502
3503	// TimeoutSeconds: TimeoutSeconds holds the max duration the instance is
3504	// allowed for
3505	// responding to a request.
3506	// Not currently used by Cloud Run.
3507	TimeoutSeconds int64 `json:"timeoutSeconds,omitempty"`
3508
3509	Volumes []*Volume `json:"volumes,omitempty"`
3510
3511	// ForceSendFields is a list of field names (e.g.
3512	// "ContainerConcurrency") to unconditionally include in API requests.
3513	// By default, fields with empty values are omitted from API requests.
3514	// However, any non-pointer, non-interface field appearing in
3515	// ForceSendFields will be sent to the server regardless of whether the
3516	// field is empty or not. This may be used to include empty fields in
3517	// Patch requests.
3518	ForceSendFields []string `json:"-"`
3519
3520	// NullFields is a list of field names (e.g. "ContainerConcurrency") to
3521	// include in API requests with the JSON null value. By default, fields
3522	// with empty values are omitted from API requests. However, any field
3523	// with an empty value appearing in NullFields will be sent to the
3524	// server as null. It is an error if a field in this list has a
3525	// non-empty value. This may be used to include null fields in Patch
3526	// requests.
3527	NullFields []string `json:"-"`
3528}
3529
3530func (s *RevisionSpec) MarshalJSON() ([]byte, error) {
3531	type NoMethod RevisionSpec
3532	raw := NoMethod(*s)
3533	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3534}
3535
3536// RevisionStatus: RevisionStatus communicates the observed state of the
3537// Revision (from the
3538// controller).
3539type RevisionStatus struct {
3540	// Conditions: Conditions communicates information about
3541	// ongoing/complete
3542	// reconciliation processes that bring the "spec" inline with the
3543	// observed
3544	// state of the world.
3545	//
3546	// As a Revision is being prepared, it will incrementally
3547	// update conditions. Revision-specific conditions include:
3548	// * "ResourcesAvailable": True when underlying resources have been
3549	//    provisioned.
3550	// * "ContainerHealthy": True when the Revision readiness check
3551	// completes.
3552	// * "Active": True when the Revision may receive traffic.
3553	Conditions []*GoogleCloudRunV1Condition `json:"conditions,omitempty"`
3554
3555	// ImageDigest: ImageDigest holds the resolved digest for the image
3556	// specified
3557	// within .Spec.Container.Image. The digest is resolved during the
3558	// creation
3559	// of Revision. This field holds the digest value regardless of
3560	// whether
3561	// a tag or digest was originally specified in the Container object.
3562	ImageDigest string `json:"imageDigest,omitempty"`
3563
3564	// LogUrl: Specifies the generated logging url for this particular
3565	// revision
3566	// based on the revision url template specified in the controller's
3567	// config.
3568	// +optional
3569	LogUrl string `json:"logUrl,omitempty"`
3570
3571	// ObservedGeneration: ObservedGeneration is the 'Generation' of the
3572	// Revision that
3573	// was last processed by the controller.
3574	//
3575	// Clients polling for completed reconciliation should poll
3576	// until
3577	// observedGeneration = metadata.generation, and the Ready condition's
3578	// status
3579	// is True or False.
3580	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
3581
3582	// ServiceName: Not currently used by Cloud Run.
3583	ServiceName string `json:"serviceName,omitempty"`
3584
3585	// ForceSendFields is a list of field names (e.g. "Conditions") to
3586	// unconditionally include in API requests. By default, fields with
3587	// empty values are omitted from API requests. However, any non-pointer,
3588	// non-interface field appearing in ForceSendFields will be sent to the
3589	// server regardless of whether the field is empty or not. This may be
3590	// used to include empty fields in Patch requests.
3591	ForceSendFields []string `json:"-"`
3592
3593	// NullFields is a list of field names (e.g. "Conditions") to include in
3594	// API requests with the JSON null value. By default, fields with empty
3595	// values are omitted from API requests. However, any field with an
3596	// empty value appearing in NullFields will be sent to the server as
3597	// null. It is an error if a field in this list has a non-empty value.
3598	// This may be used to include null fields in Patch requests.
3599	NullFields []string `json:"-"`
3600}
3601
3602func (s *RevisionStatus) MarshalJSON() ([]byte, error) {
3603	type NoMethod RevisionStatus
3604	raw := NoMethod(*s)
3605	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3606}
3607
3608// RevisionTemplate: RevisionTemplateSpec describes the data a revision
3609// should have when created
3610// from a template. Based
3611// on:
3612// https://github.com/kubernetes/api/blob/e771f807/core/v1/types.go#L
3613// 3179-L3190
3614type RevisionTemplate struct {
3615	// Metadata: Optional metadata for this Revision, including labels and
3616	// annotations. Name
3617	// will be generated by the Configuration.
3618	// To set minimum instances for this revision, use
3619	// the
3620	// "autoscaling.knative.dev/minScale" annotation key.
3621	// To set maximum instances for this revision, use
3622	// the
3623	// "autoscaling.knative.dev/maxScale" annotation key.
3624	// To set Cloud SQL connections for the revision, use
3625	// the
3626	// "run.googleapis.com/cloudsql-instances" annotation key.
3627	Metadata *ObjectMeta `json:"metadata,omitempty"`
3628
3629	// Spec: RevisionSpec holds the desired state of the Revision (from the
3630	// client).
3631	Spec *RevisionSpec `json:"spec,omitempty"`
3632
3633	// ForceSendFields is a list of field names (e.g. "Metadata") to
3634	// unconditionally include in API requests. By default, fields with
3635	// empty values are omitted from API requests. However, any non-pointer,
3636	// non-interface field appearing in ForceSendFields will be sent to the
3637	// server regardless of whether the field is empty or not. This may be
3638	// used to include empty fields in Patch requests.
3639	ForceSendFields []string `json:"-"`
3640
3641	// NullFields is a list of field names (e.g. "Metadata") to include in
3642	// API requests with the JSON null value. By default, fields with empty
3643	// values are omitted from API requests. However, any field with an
3644	// empty value appearing in NullFields will be sent to the server as
3645	// null. It is an error if a field in this list has a non-empty value.
3646	// This may be used to include null fields in Patch requests.
3647	NullFields []string `json:"-"`
3648}
3649
3650func (s *RevisionTemplate) MarshalJSON() ([]byte, error) {
3651	type NoMethod RevisionTemplate
3652	raw := NoMethod(*s)
3653	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3654}
3655
3656// Route: Route is responsible for configuring ingress over a collection
3657// of Revisions.
3658// Some of the Revisions a Route distributes traffic over may be
3659// specified by
3660// referencing the Configuration responsible for creating them; in these
3661// cases
3662// the Route is additionally responsible for monitoring the
3663// Configuration for
3664// "latest ready" revision changes, and smoothly rolling out latest
3665// revisions.
3666// See
3667// also:
3668// https://github.com/knative/serving/blob/master/docs/spec/overvie
3669// w.md#route
3670//
3671// Cloud Run currently supports referencing a single Configuration
3672// to
3673// automatically deploy the "latest ready" Revision from that
3674// Configuration.
3675type Route struct {
3676	// ApiVersion: The API version for this call such as
3677	// "serving.knative.dev/v1".
3678	ApiVersion string `json:"apiVersion,omitempty"`
3679
3680	// Kind: The kind of this resource, in this case always "Route".
3681	Kind string `json:"kind,omitempty"`
3682
3683	// Metadata: Metadata associated with this Route, including name,
3684	// namespace, labels,
3685	// and annotations.
3686	Metadata *ObjectMeta `json:"metadata,omitempty"`
3687
3688	// Spec: Spec holds the desired state of the Route (from the client).
3689	Spec *RouteSpec `json:"spec,omitempty"`
3690
3691	// Status: Status communicates the observed state of the Route (from the
3692	// controller).
3693	Status *RouteStatus `json:"status,omitempty"`
3694
3695	// ServerResponse contains the HTTP response code and headers from the
3696	// server.
3697	googleapi.ServerResponse `json:"-"`
3698
3699	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
3700	// unconditionally include in API requests. By default, fields with
3701	// empty values are omitted from API requests. However, any non-pointer,
3702	// non-interface field appearing in ForceSendFields will be sent to the
3703	// server regardless of whether the field is empty or not. This may be
3704	// used to include empty fields in Patch requests.
3705	ForceSendFields []string `json:"-"`
3706
3707	// NullFields is a list of field names (e.g. "ApiVersion") to include in
3708	// API requests with the JSON null value. By default, fields with empty
3709	// values are omitted from API requests. However, any field with an
3710	// empty value appearing in NullFields will be sent to the server as
3711	// null. It is an error if a field in this list has a non-empty value.
3712	// This may be used to include null fields in Patch requests.
3713	NullFields []string `json:"-"`
3714}
3715
3716func (s *Route) MarshalJSON() ([]byte, error) {
3717	type NoMethod Route
3718	raw := NoMethod(*s)
3719	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3720}
3721
3722// RouteSpec: RouteSpec holds the desired state of the Route (from the
3723// client).
3724type RouteSpec struct {
3725	// Traffic: Traffic specifies how to distribute traffic over a
3726	// collection of Knative
3727	// Revisions and Configurations.
3728	// Cloud Run currently supports a single configurationName.
3729	Traffic []*TrafficTarget `json:"traffic,omitempty"`
3730
3731	// ForceSendFields is a list of field names (e.g. "Traffic") to
3732	// unconditionally include in API requests. By default, fields with
3733	// empty values are omitted from API requests. However, any non-pointer,
3734	// non-interface field appearing in ForceSendFields will be sent to the
3735	// server regardless of whether the field is empty or not. This may be
3736	// used to include empty fields in Patch requests.
3737	ForceSendFields []string `json:"-"`
3738
3739	// NullFields is a list of field names (e.g. "Traffic") to include in
3740	// API requests with the JSON null value. By default, fields with empty
3741	// values are omitted from API requests. However, any field with an
3742	// empty value appearing in NullFields will be sent to the server as
3743	// null. It is an error if a field in this list has a non-empty value.
3744	// This may be used to include null fields in Patch requests.
3745	NullFields []string `json:"-"`
3746}
3747
3748func (s *RouteSpec) MarshalJSON() ([]byte, error) {
3749	type NoMethod RouteSpec
3750	raw := NoMethod(*s)
3751	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3752}
3753
3754// RouteStatus: RouteStatus communicates the observed state of the Route
3755// (from the
3756// controller).
3757type RouteStatus struct {
3758	// Address: Similar to url, information on where the service is
3759	// available on HTTP.
3760	Address *Addressable `json:"address,omitempty"`
3761
3762	// Conditions: Conditions communicates information about
3763	// ongoing/complete
3764	// reconciliation processes that bring the "spec" inline with the
3765	// observed
3766	// state of the world.
3767	Conditions []*GoogleCloudRunV1Condition `json:"conditions,omitempty"`
3768
3769	// ObservedGeneration: ObservedGeneration is the 'Generation' of the
3770	// Route that
3771	// was last processed by the controller.
3772	//
3773	// Clients polling for completed reconciliation should poll
3774	// until
3775	// observedGeneration = metadata.generation and the Ready condition's
3776	// status
3777	// is True or False.
3778	//
3779	// Note that providing a trafficTarget that only has a configurationName
3780	// will
3781	// result in a Route that does not increment either its
3782	// metadata.generation or
3783	// its observedGeneration, as new "latest ready" revisions from
3784	// the
3785	// Configuration are processed without an update to the Route's spec.
3786	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
3787
3788	// Traffic: Traffic holds the configured traffic distribution.
3789	// These entries will always contain RevisionName references.
3790	// When ConfigurationName appears in the spec, this will hold
3791	// the
3792	// LatestReadyRevisionName that we last observed.
3793	Traffic []*TrafficTarget `json:"traffic,omitempty"`
3794
3795	// Url: URL holds the url that will distribute traffic over the provided
3796	// traffic
3797	// targets. It generally has the
3798	// form:
3799	// https://{route-hash}-{project-hash}-{cluster-level-suffix}.a.run
3800	// .app
3801	Url string `json:"url,omitempty"`
3802
3803	// ForceSendFields is a list of field names (e.g. "Address") to
3804	// unconditionally include in API requests. By default, fields with
3805	// empty values are omitted from API requests. However, any non-pointer,
3806	// non-interface field appearing in ForceSendFields will be sent to the
3807	// server regardless of whether the field is empty or not. This may be
3808	// used to include empty fields in Patch requests.
3809	ForceSendFields []string `json:"-"`
3810
3811	// NullFields is a list of field names (e.g. "Address") to include in
3812	// API requests with the JSON null value. By default, fields with empty
3813	// values are omitted from API requests. However, any field with an
3814	// empty value appearing in NullFields will be sent to the server as
3815	// null. It is an error if a field in this list has a non-empty value.
3816	// This may be used to include null fields in Patch requests.
3817	NullFields []string `json:"-"`
3818}
3819
3820func (s *RouteStatus) MarshalJSON() ([]byte, error) {
3821	type NoMethod RouteStatus
3822	raw := NoMethod(*s)
3823	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3824}
3825
3826// SecretEnvSource: Cloud Run fully managed: not supported
3827//
3828// Cloud Run for Anthos: supported
3829//
3830// SecretEnvSource selects a Secret to populate the
3831// environment
3832// variables with.
3833//
3834// The contents of the target Secret's Data field will represent
3835// the
3836// key-value pairs as environment variables.
3837type SecretEnvSource struct {
3838	// LocalObjectReference: This field should not be used directly as it is
3839	// meant to be inlined
3840	// directly into the message. Use the "name" field instead.
3841	LocalObjectReference *LocalObjectReference `json:"localObjectReference,omitempty"`
3842
3843	// Name: Cloud Run fully managed: not supported
3844	//
3845	// Cloud Run for Anthos: supported
3846	//
3847	// The Secret to select from.
3848	Name string `json:"name,omitempty"`
3849
3850	// Optional: (Optional)
3851	//
3852	// Cloud Run fully managed: not supported
3853	//
3854	// Cloud Run for Anthos: supported
3855	//
3856	// Specify whether the Secret must be defined
3857	Optional bool `json:"optional,omitempty"`
3858
3859	// ForceSendFields is a list of field names (e.g.
3860	// "LocalObjectReference") to unconditionally include in API requests.
3861	// By default, fields with empty values are omitted from API requests.
3862	// However, any non-pointer, non-interface field appearing in
3863	// ForceSendFields will be sent to the server regardless of whether the
3864	// field is empty or not. This may be used to include empty fields in
3865	// Patch requests.
3866	ForceSendFields []string `json:"-"`
3867
3868	// NullFields is a list of field names (e.g. "LocalObjectReference") to
3869	// include in API requests with the JSON null value. By default, fields
3870	// with empty values are omitted from API requests. However, any field
3871	// with an empty value appearing in NullFields will be sent to the
3872	// server as null. It is an error if a field in this list has a
3873	// non-empty value. This may be used to include null fields in Patch
3874	// requests.
3875	NullFields []string `json:"-"`
3876}
3877
3878func (s *SecretEnvSource) MarshalJSON() ([]byte, error) {
3879	type NoMethod SecretEnvSource
3880	raw := NoMethod(*s)
3881	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3882}
3883
3884// SecretKeySelector: Cloud Run fully managed: not supported
3885//
3886// Cloud Run for Anthos: supported
3887//
3888// SecretKeySelector selects a key of a Secret.
3889type SecretKeySelector struct {
3890	// Key: Cloud Run fully managed: not supported
3891	//
3892	// Cloud Run for Anthos: supported
3893	//
3894	// The key of the secret to select from.  Must be a valid secret key.
3895	Key string `json:"key,omitempty"`
3896
3897	// LocalObjectReference: This field should not be used directly as it is
3898	// meant to be inlined
3899	// directly into the message. Use the "name" field instead.
3900	LocalObjectReference *LocalObjectReference `json:"localObjectReference,omitempty"`
3901
3902	// Name: Cloud Run fully managed: not supported
3903	//
3904	// Cloud Run for Anthos: supported
3905	//
3906	// The name of the secret in the pod's namespace to select from.
3907	Name string `json:"name,omitempty"`
3908
3909	// Optional: (Optional)
3910	//
3911	// Cloud Run fully managed: not supported
3912	//
3913	// Cloud Run for Anthos: supported
3914	//
3915	// Specify whether the Secret or its key must be defined
3916	Optional bool `json:"optional,omitempty"`
3917
3918	// ForceSendFields is a list of field names (e.g. "Key") to
3919	// unconditionally include in API requests. By default, fields with
3920	// empty values are omitted from API requests. However, any non-pointer,
3921	// non-interface field appearing in ForceSendFields will be sent to the
3922	// server regardless of whether the field is empty or not. This may be
3923	// used to include empty fields in Patch requests.
3924	ForceSendFields []string `json:"-"`
3925
3926	// NullFields is a list of field names (e.g. "Key") to include in API
3927	// requests with the JSON null value. By default, fields with empty
3928	// values are omitted from API requests. However, any field with an
3929	// empty value appearing in NullFields will be sent to the server as
3930	// null. It is an error if a field in this list has a non-empty value.
3931	// This may be used to include null fields in Patch requests.
3932	NullFields []string `json:"-"`
3933}
3934
3935func (s *SecretKeySelector) MarshalJSON() ([]byte, error) {
3936	type NoMethod SecretKeySelector
3937	raw := NoMethod(*s)
3938	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3939}
3940
3941// SecretVolumeSource: Cloud Run fully managed: not supported
3942//
3943// Cloud Run for Anthos: supported
3944//
3945// The contents of the target Secret's Data field will be presented in a
3946// volume
3947// as files using the keys in the Data field as the file names.
3948type SecretVolumeSource struct {
3949	// DefaultMode: (Optional)
3950	//
3951	// Cloud Run fully managed: not supported
3952	//
3953	// Cloud Run for Anthos: supported
3954	//
3955	// Mode bits to use on created files by default. Must be a value between
3956	// 0 and
3957	// 0777. Defaults to 0644. Directories within the path are not affected
3958	// by
3959	// this setting. This might be in conflict with other options that
3960	// affect the
3961	// file mode, like fsGroup, and the result can be other mode bits set.
3962	DefaultMode int64 `json:"defaultMode,omitempty"`
3963
3964	// Items: (Optional)
3965	//
3966	// Cloud Run fully managed: not supported
3967	//
3968	// Cloud Run for Anthos: supported
3969	//
3970	// If unspecified, each key-value pair in the Data field of the
3971	// referenced
3972	// Secret will be projected into the volume as a file whose name is
3973	// the
3974	// key and content is the value. If specified, the listed keys will
3975	// be
3976	// projected into the specified paths, and unlisted keys will not
3977	// be
3978	// present. If a key is specified which is not present in the
3979	// Secret,
3980	// the volume setup will error unless it is marked optional.
3981	Items []*KeyToPath `json:"items,omitempty"`
3982
3983	// Optional: (Optional)
3984	//
3985	// Cloud Run fully managed: not supported
3986	//
3987	// Cloud Run for Anthos: supported
3988	//
3989	// Specify whether the Secret or its keys must be defined.
3990	Optional bool `json:"optional,omitempty"`
3991
3992	// SecretName: Cloud Run fully managed: not supported
3993	//
3994	// Cloud Run for Anthos: supported
3995	//
3996	// Name of the secret in the container's namespace to use.
3997	SecretName string `json:"secretName,omitempty"`
3998
3999	// ForceSendFields is a list of field names (e.g. "DefaultMode") to
4000	// unconditionally include in API requests. By default, fields with
4001	// empty values are omitted from API requests. However, any non-pointer,
4002	// non-interface field appearing in ForceSendFields will be sent to the
4003	// server regardless of whether the field is empty or not. This may be
4004	// used to include empty fields in Patch requests.
4005	ForceSendFields []string `json:"-"`
4006
4007	// NullFields is a list of field names (e.g. "DefaultMode") to include
4008	// in API requests with the JSON null value. By default, fields with
4009	// empty values are omitted from API requests. However, any field with
4010	// an empty value appearing in NullFields will be sent to the server as
4011	// null. It is an error if a field in this list has a non-empty value.
4012	// This may be used to include null fields in Patch requests.
4013	NullFields []string `json:"-"`
4014}
4015
4016func (s *SecretVolumeSource) MarshalJSON() ([]byte, error) {
4017	type NoMethod SecretVolumeSource
4018	raw := NoMethod(*s)
4019	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4020}
4021
4022// SecurityContext: Cloud Run fully managed: not supported
4023//
4024// Cloud Run for Anthos: supported
4025//
4026// SecurityContext holds security configuration that will be applied to
4027// a
4028// container. Some fields are present in both SecurityContext
4029// and
4030// PodSecurityContext.  When both are set, the values in SecurityContext
4031// take
4032// precedence.
4033type SecurityContext struct {
4034	// RunAsUser: (Optional)
4035	//
4036	// Cloud Run fully managed: not supported
4037	//
4038	// Cloud Run for Anthos: supported
4039	//
4040	// The UID to run the entrypoint of the container process.
4041	// Defaults to user specified in image metadata if unspecified.
4042	// May also be set in PodSecurityContext.  If set in both
4043	// SecurityContext and
4044	// PodSecurityContext, the value specified in SecurityContext
4045	// takes
4046	// precedence.
4047	RunAsUser int64 `json:"runAsUser,omitempty"`
4048
4049	// ForceSendFields is a list of field names (e.g. "RunAsUser") to
4050	// unconditionally include in API requests. By default, fields with
4051	// empty values are omitted from API requests. However, any non-pointer,
4052	// non-interface field appearing in ForceSendFields will be sent to the
4053	// server regardless of whether the field is empty or not. This may be
4054	// used to include empty fields in Patch requests.
4055	ForceSendFields []string `json:"-"`
4056
4057	// NullFields is a list of field names (e.g. "RunAsUser") to include in
4058	// API requests with the JSON null value. By default, fields with empty
4059	// values are omitted from API requests. However, any field with an
4060	// empty value appearing in NullFields will be sent to the server as
4061	// null. It is an error if a field in this list has a non-empty value.
4062	// This may be used to include null fields in Patch requests.
4063	NullFields []string `json:"-"`
4064}
4065
4066func (s *SecurityContext) MarshalJSON() ([]byte, error) {
4067	type NoMethod SecurityContext
4068	raw := NoMethod(*s)
4069	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4070}
4071
4072// Service: Service acts as a top-level container that manages a set of
4073// Routes and
4074// Configurations which implement a network service. Service exists to
4075// provide a
4076// singular abstraction which can be access controlled, reasoned about,
4077// and
4078// which encapsulates software lifecycle decisions such as rollout
4079// policy and
4080// team resource ownership. Service acts only as an orchestrator of
4081// the
4082// underlying Routes and Configurations (much as a kubernetes
4083// Deployment
4084// orchestrates ReplicaSets).
4085//
4086// The Service's controller will track the statuses of its owned
4087// Configuration
4088// and Route, reflecting their statuses and conditions as its own.
4089//
4090// See
4091// also:
4092// https://github.com/knative/serving/blob/master/docs/spec/overvie
4093// w.md#service
4094type Service struct {
4095	// ApiVersion: The API version for this call such as
4096	// "serving.knative.dev/v1".
4097	ApiVersion string `json:"apiVersion,omitempty"`
4098
4099	// Kind: The kind of resource, in this case "Service".
4100	Kind string `json:"kind,omitempty"`
4101
4102	// Metadata: Metadata associated with this Service, including name,
4103	// namespace, labels,
4104	// and annotations.
4105	Metadata *ObjectMeta `json:"metadata,omitempty"`
4106
4107	// Spec: Spec holds the desired state of the Service (from the client).
4108	Spec *ServiceSpec `json:"spec,omitempty"`
4109
4110	// Status: Status communicates the observed state of the Service (from
4111	// the
4112	// controller).
4113	Status *ServiceStatus `json:"status,omitempty"`
4114
4115	// ServerResponse contains the HTTP response code and headers from the
4116	// server.
4117	googleapi.ServerResponse `json:"-"`
4118
4119	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
4120	// unconditionally include in API requests. By default, fields with
4121	// empty values are omitted from API requests. However, any non-pointer,
4122	// non-interface field appearing in ForceSendFields will be sent to the
4123	// server regardless of whether the field is empty or not. This may be
4124	// used to include empty fields in Patch requests.
4125	ForceSendFields []string `json:"-"`
4126
4127	// NullFields is a list of field names (e.g. "ApiVersion") to include in
4128	// API requests with the JSON null value. By default, fields with empty
4129	// values are omitted from API requests. However, any field with an
4130	// empty value appearing in NullFields will be sent to the server as
4131	// null. It is an error if a field in this list has a non-empty value.
4132	// This may be used to include null fields in Patch requests.
4133	NullFields []string `json:"-"`
4134}
4135
4136func (s *Service) MarshalJSON() ([]byte, error) {
4137	type NoMethod Service
4138	raw := NoMethod(*s)
4139	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4140}
4141
4142// ServiceSpec: ServiceSpec holds the desired state of the Route (from
4143// the client), which
4144// is used to manipulate the underlying Route and Configuration(s).
4145type ServiceSpec struct {
4146	// Template: Template holds the latest specification for the Revision
4147	// to
4148	// be stamped out.
4149	Template *RevisionTemplate `json:"template,omitempty"`
4150
4151	// Traffic: Traffic specifies how to distribute traffic over a
4152	// collection of Knative
4153	// Revisions and Configurations.
4154	Traffic []*TrafficTarget `json:"traffic,omitempty"`
4155
4156	// ForceSendFields is a list of field names (e.g. "Template") to
4157	// unconditionally include in API requests. By default, fields with
4158	// empty values are omitted from API requests. However, any non-pointer,
4159	// non-interface field appearing in ForceSendFields will be sent to the
4160	// server regardless of whether the field is empty or not. This may be
4161	// used to include empty fields in Patch requests.
4162	ForceSendFields []string `json:"-"`
4163
4164	// NullFields is a list of field names (e.g. "Template") to include in
4165	// API requests with the JSON null value. By default, fields with empty
4166	// values are omitted from API requests. However, any field with an
4167	// empty value appearing in NullFields will be sent to the server as
4168	// null. It is an error if a field in this list has a non-empty value.
4169	// This may be used to include null fields in Patch requests.
4170	NullFields []string `json:"-"`
4171}
4172
4173func (s *ServiceSpec) MarshalJSON() ([]byte, error) {
4174	type NoMethod ServiceSpec
4175	raw := NoMethod(*s)
4176	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4177}
4178
4179// ServiceStatus: The current state of the Service. Output only.
4180type ServiceStatus struct {
4181	// Address: From RouteStatus.
4182	// Similar to url, information on where the service is available on
4183	// HTTP.
4184	Address *Addressable `json:"address,omitempty"`
4185
4186	// Conditions: Conditions communicates information about
4187	// ongoing/complete
4188	// reconciliation processes that bring the "spec" inline with the
4189	// observed
4190	// state of the world.
4191	// Service-specific conditions include:
4192	// * "ConfigurationsReady": true when the underlying Configuration is
4193	// ready.
4194	// * "RoutesReady": true when the underlying Route is ready.
4195	// * "Ready": true when both the underlying Route and Configuration
4196	// are
4197	// ready.
4198	Conditions []*GoogleCloudRunV1Condition `json:"conditions,omitempty"`
4199
4200	// LatestCreatedRevisionName: From
4201	// ConfigurationStatus.
4202	// LatestCreatedRevisionName is the last revision that was created from
4203	// this
4204	// Service's Configuration. It might not be ready yet, for that
4205	// use
4206	// LatestReadyRevisionName.
4207	LatestCreatedRevisionName string `json:"latestCreatedRevisionName,omitempty"`
4208
4209	// LatestReadyRevisionName: From
4210	// ConfigurationStatus.
4211	// LatestReadyRevisionName holds the name of the latest Revision stamped
4212	// out
4213	// from this Service's Configuration that has had its "Ready" condition
4214	// become
4215	// "True".
4216	LatestReadyRevisionName string `json:"latestReadyRevisionName,omitempty"`
4217
4218	// ObservedGeneration: ObservedGeneration is the 'Generation' of the
4219	// Route that
4220	// was last processed by the controller.
4221	//
4222	// Clients polling for completed reconciliation should poll
4223	// until
4224	// observedGeneration = metadata.generation and the Ready condition's
4225	// status
4226	// is True or False.
4227	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
4228
4229	// Traffic: From RouteStatus.
4230	// Traffic holds the configured traffic distribution.
4231	// These entries will always contain RevisionName references.
4232	// When ConfigurationName appears in the spec, this will hold
4233	// the
4234	// LatestReadyRevisionName that we last observed.
4235	Traffic []*TrafficTarget `json:"traffic,omitempty"`
4236
4237	// Url: From RouteStatus.
4238	// URL holds the url that will distribute traffic over the provided
4239	// traffic
4240	// targets. It generally has the
4241	// form
4242	// https://{route-hash}-{project-hash}-{cluster-level-suffix}.a.run.
4243	// app
4244	Url string `json:"url,omitempty"`
4245
4246	// ForceSendFields is a list of field names (e.g. "Address") to
4247	// unconditionally include in API requests. By default, fields with
4248	// empty values are omitted from API requests. However, any non-pointer,
4249	// non-interface field appearing in ForceSendFields will be sent to the
4250	// server regardless of whether the field is empty or not. This may be
4251	// used to include empty fields in Patch requests.
4252	ForceSendFields []string `json:"-"`
4253
4254	// NullFields is a list of field names (e.g. "Address") to include in
4255	// API requests with the JSON null value. By default, fields with empty
4256	// values are omitted from API requests. However, any field with an
4257	// empty value appearing in NullFields will be sent to the server as
4258	// null. It is an error if a field in this list has a non-empty value.
4259	// This may be used to include null fields in Patch requests.
4260	NullFields []string `json:"-"`
4261}
4262
4263func (s *ServiceStatus) MarshalJSON() ([]byte, error) {
4264	type NoMethod ServiceStatus
4265	raw := NoMethod(*s)
4266	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4267}
4268
4269// SetIamPolicyRequest: Request message for `SetIamPolicy` method.
4270type SetIamPolicyRequest struct {
4271	// Policy: REQUIRED: The complete policy to be applied to the
4272	// `resource`. The size of
4273	// the policy is limited to a few 10s of KB. An empty policy is a
4274	// valid policy but certain Cloud Platform services (such as
4275	// Projects)
4276	// might reject them.
4277	Policy *Policy `json:"policy,omitempty"`
4278
4279	// UpdateMask: OPTIONAL: A FieldMask specifying which fields of the
4280	// policy to modify. Only
4281	// the fields in the mask will be modified. If no mask is provided,
4282	// the
4283	// following default mask is used:
4284	// paths: "bindings, etag"
4285	// This field is only used by Cloud IAM.
4286	UpdateMask string `json:"updateMask,omitempty"`
4287
4288	// ForceSendFields is a list of field names (e.g. "Policy") to
4289	// unconditionally include in API requests. By default, fields with
4290	// empty values are omitted from API requests. However, any non-pointer,
4291	// non-interface field appearing in ForceSendFields will be sent to the
4292	// server regardless of whether the field is empty or not. This may be
4293	// used to include empty fields in Patch requests.
4294	ForceSendFields []string `json:"-"`
4295
4296	// NullFields is a list of field names (e.g. "Policy") to include in API
4297	// requests with the JSON null value. By default, fields with empty
4298	// values are omitted from API requests. However, any field with an
4299	// empty value appearing in NullFields will be sent to the server as
4300	// null. It is an error if a field in this list has a non-empty value.
4301	// This may be used to include null fields in Patch requests.
4302	NullFields []string `json:"-"`
4303}
4304
4305func (s *SetIamPolicyRequest) MarshalJSON() ([]byte, error) {
4306	type NoMethod SetIamPolicyRequest
4307	raw := NoMethod(*s)
4308	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4309}
4310
4311// Status: Status is a return value for calls that don't return other
4312// objects
4313type Status struct {
4314	// Code: Suggested HTTP return code for this status, 0 if not
4315	// set.
4316	// +optional
4317	Code int64 `json:"code,omitempty"`
4318
4319	// Details: Extended data associated with the reason.  Each reason may
4320	// define its
4321	// own extended details. This field is optional and the data returned
4322	// is not guaranteed to conform to any schema except that defined by
4323	// the reason type.
4324	// +optional
4325	Details *StatusDetails `json:"details,omitempty"`
4326
4327	// Message: A human-readable description of the status of this
4328	// operation.
4329	// +optional
4330	Message string `json:"message,omitempty"`
4331
4332	// Metadata: Standard list metadata.
4333	// More
4334	// info:
4335	// https://git.k8s.io/community/contributors/devel/api-conventions.
4336	// md#types-kinds
4337	// +optional
4338	Metadata *ListMeta `json:"metadata,omitempty"`
4339
4340	// Reason: A machine-readable description of why this operation is in
4341	// the
4342	// "Failure" status. If this value is empty there
4343	// is no information available. A Reason clarifies an HTTP status
4344	// code but does not override it.
4345	// +optional
4346	Reason string `json:"reason,omitempty"`
4347
4348	// Status: Status of the operation.
4349	// One of: "Success" or "Failure".
4350	// More
4351	// info:
4352	// https://git.k8s.io/community/contributors/devel/api-conventions.
4353	// md#spec-and-status
4354	// +optional
4355	Status string `json:"status,omitempty"`
4356
4357	// ServerResponse contains the HTTP response code and headers from the
4358	// server.
4359	googleapi.ServerResponse `json:"-"`
4360
4361	// ForceSendFields is a list of field names (e.g. "Code") to
4362	// unconditionally include in API requests. By default, fields with
4363	// empty values are omitted from API requests. However, any non-pointer,
4364	// non-interface field appearing in ForceSendFields will be sent to the
4365	// server regardless of whether the field is empty or not. This may be
4366	// used to include empty fields in Patch requests.
4367	ForceSendFields []string `json:"-"`
4368
4369	// NullFields is a list of field names (e.g. "Code") to include in API
4370	// requests with the JSON null value. By default, fields with empty
4371	// values are omitted from API requests. However, any field with an
4372	// empty value appearing in NullFields will be sent to the server as
4373	// null. It is an error if a field in this list has a non-empty value.
4374	// This may be used to include null fields in Patch requests.
4375	NullFields []string `json:"-"`
4376}
4377
4378func (s *Status) MarshalJSON() ([]byte, error) {
4379	type NoMethod Status
4380	raw := NoMethod(*s)
4381	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4382}
4383
4384// StatusCause: StatusCause provides more information about an
4385// api.Status failure, including
4386// cases when multiple errors are encountered.
4387type StatusCause struct {
4388	// Field: The field of the resource that has caused this error, as named
4389	// by its JSON
4390	// serialization. May include dot and postfix notation for nested
4391	// attributes.
4392	// Arrays are zero-indexed.  Fields may appear more than once in an
4393	// array of
4394	// causes due to fields having multiple errors.
4395	// Optional.
4396	//
4397	// Examples:
4398	//   "name" - the field "name" on the current resource
4399	//   "items[0].name" - the field "name" on the first array entry in
4400	// "items"
4401	// +optional
4402	Field string `json:"field,omitempty"`
4403
4404	// Message: A human-readable description of the cause of the error.
4405	// This field may be
4406	// presented as-is to a reader.
4407	// +optional
4408	Message string `json:"message,omitempty"`
4409
4410	// Reason: A machine-readable description of the cause of the error. If
4411	// this value is
4412	// empty there is no information available.
4413	// +optional
4414	Reason string `json:"reason,omitempty"`
4415
4416	// ForceSendFields is a list of field names (e.g. "Field") to
4417	// unconditionally include in API requests. By default, fields with
4418	// empty values are omitted from API requests. However, any non-pointer,
4419	// non-interface field appearing in ForceSendFields will be sent to the
4420	// server regardless of whether the field is empty or not. This may be
4421	// used to include empty fields in Patch requests.
4422	ForceSendFields []string `json:"-"`
4423
4424	// NullFields is a list of field names (e.g. "Field") to include in API
4425	// requests with the JSON null value. By default, fields with empty
4426	// values are omitted from API requests. However, any field with an
4427	// empty value appearing in NullFields will be sent to the server as
4428	// null. It is an error if a field in this list has a non-empty value.
4429	// This may be used to include null fields in Patch requests.
4430	NullFields []string `json:"-"`
4431}
4432
4433func (s *StatusCause) MarshalJSON() ([]byte, error) {
4434	type NoMethod StatusCause
4435	raw := NoMethod(*s)
4436	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4437}
4438
4439// StatusDetails: StatusDetails is a set of additional properties that
4440// MAY be set by the
4441// server to provide additional information about a response. The
4442// Reason
4443// field of a Status object defines what attributes will be set.
4444// Clients
4445// must ignore fields that do not match the defined type of each
4446// attribute,
4447// and should assume that any attribute may be empty, invalid, or
4448// under
4449// defined.
4450type StatusDetails struct {
4451	// Causes: The Causes array includes more details associated with the
4452	// StatusReason
4453	// failure. Not all StatusReasons may provide detailed causes.
4454	// +optional
4455	Causes []*StatusCause `json:"causes,omitempty"`
4456
4457	// Group: The group attribute of the resource associated with the
4458	// status
4459	// StatusReason. +optional
4460	Group string `json:"group,omitempty"`
4461
4462	// Kind: The kind attribute of the resource associated with the status
4463	// StatusReason.
4464	// On some operations may differ from the requested resource Kind.
4465	// More
4466	// info:
4467	// https://git.k8s.io/community/contributors/devel/api-conventions.
4468	// md#types-kinds
4469	// +optional
4470	Kind string `json:"kind,omitempty"`
4471
4472	// Name: The name attribute of the resource associated with the status
4473	// StatusReason
4474	// (when there is a single name which can be described).
4475	// +optional
4476	Name string `json:"name,omitempty"`
4477
4478	// RetryAfterSeconds: If specified, the time in seconds before the
4479	// operation should be retried.
4480	// Some errors may indicate the client must take an alternate action -
4481	// for
4482	// those errors this field may indicate how long to wait before taking
4483	// the
4484	// alternate action. +optional
4485	RetryAfterSeconds int64 `json:"retryAfterSeconds,omitempty"`
4486
4487	// Uid: UID of the resource.
4488	// (when there is a single resource which can be described).
4489	// More info:
4490	// http://kubernetes.io/docs/user-guide/identifiers#uids
4491	// +optional
4492	Uid string `json:"uid,omitempty"`
4493
4494	// ForceSendFields is a list of field names (e.g. "Causes") to
4495	// unconditionally include in API requests. By default, fields with
4496	// empty values are omitted from API requests. However, any non-pointer,
4497	// non-interface field appearing in ForceSendFields will be sent to the
4498	// server regardless of whether the field is empty or not. This may be
4499	// used to include empty fields in Patch requests.
4500	ForceSendFields []string `json:"-"`
4501
4502	// NullFields is a list of field names (e.g. "Causes") to include in API
4503	// requests with the JSON null value. By default, fields with empty
4504	// values are omitted from API requests. However, any field with an
4505	// empty value appearing in NullFields will be sent to the server as
4506	// null. It is an error if a field in this list has a non-empty value.
4507	// This may be used to include null fields in Patch requests.
4508	NullFields []string `json:"-"`
4509}
4510
4511func (s *StatusDetails) MarshalJSON() ([]byte, error) {
4512	type NoMethod StatusDetails
4513	raw := NoMethod(*s)
4514	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4515}
4516
4517// TCPSocketAction: Cloud Run fully managed: not supported
4518//
4519// Cloud Run for Anthos: supported
4520//
4521// TCPSocketAction describes an action based on opening a socket
4522type TCPSocketAction struct {
4523	// Host: (Optional)
4524	//
4525	// Cloud Run fully managed: not supported
4526	//
4527	// Cloud Run for Anthos: supported
4528	//
4529	// Optional: Host name to connect to, defaults to the pod IP.
4530	Host string `json:"host,omitempty"`
4531
4532	// Port: Cloud Run fully managed: not supported
4533	//
4534	// Cloud Run for Anthos: supported
4535	//
4536	// Number or name of the port to access on the container.
4537	// Number must be in the range 1 to 65535.
4538	// Name must be an IANA_SVC_NAME.
4539	Port *IntOrString `json:"port,omitempty"`
4540
4541	// ForceSendFields is a list of field names (e.g. "Host") to
4542	// unconditionally include in API requests. By default, fields with
4543	// empty values are omitted from API requests. However, any non-pointer,
4544	// non-interface field appearing in ForceSendFields will be sent to the
4545	// server regardless of whether the field is empty or not. This may be
4546	// used to include empty fields in Patch requests.
4547	ForceSendFields []string `json:"-"`
4548
4549	// NullFields is a list of field names (e.g. "Host") to include in API
4550	// requests with the JSON null value. By default, fields with empty
4551	// values are omitted from API requests. However, any field with an
4552	// empty value appearing in NullFields will be sent to the server as
4553	// null. It is an error if a field in this list has a non-empty value.
4554	// This may be used to include null fields in Patch requests.
4555	NullFields []string `json:"-"`
4556}
4557
4558func (s *TCPSocketAction) MarshalJSON() ([]byte, error) {
4559	type NoMethod TCPSocketAction
4560	raw := NoMethod(*s)
4561	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4562}
4563
4564// TestIamPermissionsRequest: Request message for `TestIamPermissions`
4565// method.
4566type TestIamPermissionsRequest struct {
4567	// Permissions: The set of permissions to check for the `resource`.
4568	// Permissions with
4569	// wildcards (such as '*' or 'storage.*') are not allowed. For
4570	// more
4571	// information see
4572	// [IAM
4573	// Overview](https://cloud.google.com/iam/docs/overview#permissions).
4574	Permissions []string `json:"permissions,omitempty"`
4575
4576	// ForceSendFields is a list of field names (e.g. "Permissions") to
4577	// unconditionally include in API requests. By default, fields with
4578	// empty values are omitted from API requests. However, any non-pointer,
4579	// non-interface field appearing in ForceSendFields will be sent to the
4580	// server regardless of whether the field is empty or not. This may be
4581	// used to include empty fields in Patch requests.
4582	ForceSendFields []string `json:"-"`
4583
4584	// NullFields is a list of field names (e.g. "Permissions") to include
4585	// in API requests with the JSON null value. By default, fields with
4586	// empty values are omitted from API requests. However, any field with
4587	// an empty value appearing in NullFields will be sent to the server as
4588	// null. It is an error if a field in this list has a non-empty value.
4589	// This may be used to include null fields in Patch requests.
4590	NullFields []string `json:"-"`
4591}
4592
4593func (s *TestIamPermissionsRequest) MarshalJSON() ([]byte, error) {
4594	type NoMethod TestIamPermissionsRequest
4595	raw := NoMethod(*s)
4596	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4597}
4598
4599// TestIamPermissionsResponse: Response message for `TestIamPermissions`
4600// method.
4601type TestIamPermissionsResponse struct {
4602	// Permissions: A subset of `TestPermissionsRequest.permissions` that
4603	// the caller is
4604	// allowed.
4605	Permissions []string `json:"permissions,omitempty"`
4606
4607	// ServerResponse contains the HTTP response code and headers from the
4608	// server.
4609	googleapi.ServerResponse `json:"-"`
4610
4611	// ForceSendFields is a list of field names (e.g. "Permissions") to
4612	// unconditionally include in API requests. By default, fields with
4613	// empty values are omitted from API requests. However, any non-pointer,
4614	// non-interface field appearing in ForceSendFields will be sent to the
4615	// server regardless of whether the field is empty or not. This may be
4616	// used to include empty fields in Patch requests.
4617	ForceSendFields []string `json:"-"`
4618
4619	// NullFields is a list of field names (e.g. "Permissions") to include
4620	// in API requests with the JSON null value. By default, fields with
4621	// empty values are omitted from API requests. However, any field with
4622	// an empty value appearing in NullFields will be sent to the server as
4623	// null. It is an error if a field in this list has a non-empty value.
4624	// This may be used to include null fields in Patch requests.
4625	NullFields []string `json:"-"`
4626}
4627
4628func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) {
4629	type NoMethod TestIamPermissionsResponse
4630	raw := NoMethod(*s)
4631	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4632}
4633
4634// TrafficTarget: TrafficTarget holds a single entry of the routing
4635// table for a Route.
4636type TrafficTarget struct {
4637	// ConfigurationName: ConfigurationName of a configuration to whose
4638	// latest revision we will
4639	// send this portion of traffic. When the
4640	// "status.latestReadyRevisionName"
4641	// of the referenced configuration changes, we will automatically
4642	// migrate
4643	// traffic from the prior "latest ready" revision to the new one. This
4644	// field
4645	// is never set in Route's status, only its spec. This is mutually
4646	// exclusive
4647	// with RevisionName.
4648	//
4649	// Cloud Run currently supports a single ConfigurationName.
4650	ConfigurationName string `json:"configurationName,omitempty"`
4651
4652	// LatestRevision: LatestRevision may be optionally provided to indicate
4653	// that the latest
4654	// ready Revision of the Configuration should be used for this
4655	// traffic
4656	// target. When provided LatestRevision must be true if RevisionName
4657	// is
4658	// empty; it must be false when RevisionName is non-empty.
4659	//
4660	// +optional
4661	LatestRevision bool `json:"latestRevision,omitempty"`
4662
4663	// Percent: Percent specifies percent of the traffic to this Revision or
4664	// Configuration.
4665	// This defaults to zero if unspecified.
4666	//
4667	// Cloud Run currently requires 100 percent for a single
4668	// ConfigurationName
4669	// TrafficTarget entry.
4670	Percent int64 `json:"percent,omitempty"`
4671
4672	// RevisionName: RevisionName of a specific revision to which to send
4673	// this portion of
4674	// traffic. This is mutually exclusive with
4675	// ConfigurationName.
4676	//
4677	// Providing RevisionName in spec is not currently supported by Cloud
4678	// Run.
4679	RevisionName string `json:"revisionName,omitempty"`
4680
4681	// Tag: Tag is optionally used to expose a dedicated url for
4682	// referencing
4683	// this target exclusively.
4684	//
4685	// Not currently supported in Cloud Run.
4686	// +optional
4687	Tag string `json:"tag,omitempty"`
4688
4689	// Url: Output only. URL displays the URL for accessing tagged traffic
4690	// targets. URL
4691	// is displayed in status, and is disallowed on spec. URL must contain
4692	// a
4693	// scheme (e.g. http://) and a hostname, but may not contain anything
4694	// else
4695	// (e.g. basic auth, url path, etc.
4696	//
4697	// Not currently supported in Cloud Run.
4698	Url string `json:"url,omitempty"`
4699
4700	// ForceSendFields is a list of field names (e.g. "ConfigurationName")
4701	// to unconditionally include in API requests. By default, fields with
4702	// empty values are omitted from API requests. However, any non-pointer,
4703	// non-interface field appearing in ForceSendFields will be sent to the
4704	// server regardless of whether the field is empty or not. This may be
4705	// used to include empty fields in Patch requests.
4706	ForceSendFields []string `json:"-"`
4707
4708	// NullFields is a list of field names (e.g. "ConfigurationName") to
4709	// include in API requests with the JSON null value. By default, fields
4710	// with empty values are omitted from API requests. However, any field
4711	// with an empty value appearing in NullFields will be sent to the
4712	// server as null. It is an error if a field in this list has a
4713	// non-empty value. This may be used to include null fields in Patch
4714	// requests.
4715	NullFields []string `json:"-"`
4716}
4717
4718func (s *TrafficTarget) MarshalJSON() ([]byte, error) {
4719	type NoMethod TrafficTarget
4720	raw := NoMethod(*s)
4721	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4722}
4723
4724// Volume: Cloud Run fully managed: not supported
4725//
4726// Cloud Run for Anthos: supported
4727//
4728// Volume represents a named volume in a container.
4729type Volume struct {
4730	// ConfigMap: Cloud Run fully managed: not supported
4731	//
4732	// Cloud Run for Anthos: supported
4733	ConfigMap *ConfigMapVolumeSource `json:"configMap,omitempty"`
4734
4735	// Name: Cloud Run fully managed: not supported
4736	//
4737	// Cloud Run for Anthos: supported
4738	//
4739	// Volume's name.
4740	Name string `json:"name,omitempty"`
4741
4742	// Secret: Cloud Run fully managed: not supported
4743	//
4744	// Cloud Run for Anthos: supported
4745	Secret *SecretVolumeSource `json:"secret,omitempty"`
4746
4747	// ForceSendFields is a list of field names (e.g. "ConfigMap") to
4748	// unconditionally include in API requests. By default, fields with
4749	// empty values are omitted from API requests. However, any non-pointer,
4750	// non-interface field appearing in ForceSendFields will be sent to the
4751	// server regardless of whether the field is empty or not. This may be
4752	// used to include empty fields in Patch requests.
4753	ForceSendFields []string `json:"-"`
4754
4755	// NullFields is a list of field names (e.g. "ConfigMap") to include in
4756	// API requests with the JSON null value. By default, fields with empty
4757	// values are omitted from API requests. However, any field with an
4758	// empty value appearing in NullFields will be sent to the server as
4759	// null. It is an error if a field in this list has a non-empty value.
4760	// This may be used to include null fields in Patch requests.
4761	NullFields []string `json:"-"`
4762}
4763
4764func (s *Volume) MarshalJSON() ([]byte, error) {
4765	type NoMethod Volume
4766	raw := NoMethod(*s)
4767	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4768}
4769
4770// VolumeMount: Cloud Run fully managed: not supported
4771//
4772// Cloud Run for Anthos: supported
4773//
4774// VolumeMount describes a mounting of a Volume within a container.
4775type VolumeMount struct {
4776	// MountPath: Cloud Run fully managed: not supported
4777	//
4778	// Cloud Run for Anthos: supported
4779	//
4780	// Path within the container at which the volume should be mounted.
4781	// Must
4782	// not contain ':'.
4783	MountPath string `json:"mountPath,omitempty"`
4784
4785	// Name: Cloud Run fully managed: not supported
4786	//
4787	// Cloud Run for Anthos: supported
4788	//
4789	// This must match the Name of a Volume.
4790	Name string `json:"name,omitempty"`
4791
4792	// ReadOnly: (Optional)
4793	//
4794	// Cloud Run fully managed: not supported
4795	//
4796	// Cloud Run for Anthos: supported
4797	//
4798	// Only true is accepted.
4799	// Defaults to true.
4800	ReadOnly bool `json:"readOnly,omitempty"`
4801
4802	// SubPath: (Optional)
4803	//
4804	// Cloud Run fully managed: not supported
4805	//
4806	// Cloud Run for Anthos: supported
4807	//
4808	// Path within the volume from which the container's volume should be
4809	// mounted.
4810	// Defaults to "" (volume's root).
4811	SubPath string `json:"subPath,omitempty"`
4812
4813	// ForceSendFields is a list of field names (e.g. "MountPath") to
4814	// unconditionally include in API requests. By default, fields with
4815	// empty values are omitted from API requests. However, any non-pointer,
4816	// non-interface field appearing in ForceSendFields will be sent to the
4817	// server regardless of whether the field is empty or not. This may be
4818	// used to include empty fields in Patch requests.
4819	ForceSendFields []string `json:"-"`
4820
4821	// NullFields is a list of field names (e.g. "MountPath") to include in
4822	// API requests with the JSON null value. By default, fields with empty
4823	// values are omitted from API requests. However, any field with an
4824	// empty value appearing in NullFields will be sent to the server as
4825	// null. It is an error if a field in this list has a non-empty value.
4826	// This may be used to include null fields in Patch requests.
4827	NullFields []string `json:"-"`
4828}
4829
4830func (s *VolumeMount) MarshalJSON() ([]byte, error) {
4831	type NoMethod VolumeMount
4832	raw := NoMethod(*s)
4833	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4834}
4835
4836// method id "run.namespaces.authorizeddomains.list":
4837
4838type NamespacesAuthorizeddomainsListCall struct {
4839	s            *APIService
4840	parent       string
4841	urlParams_   gensupport.URLParams
4842	ifNoneMatch_ string
4843	ctx_         context.Context
4844	header_      http.Header
4845}
4846
4847// List: List authorized domains.
4848func (r *NamespacesAuthorizeddomainsService) List(parent string) *NamespacesAuthorizeddomainsListCall {
4849	c := &NamespacesAuthorizeddomainsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4850	c.parent = parent
4851	return c
4852}
4853
4854// PageSize sets the optional parameter "pageSize": Maximum results to
4855// return per page.
4856func (c *NamespacesAuthorizeddomainsListCall) PageSize(pageSize int64) *NamespacesAuthorizeddomainsListCall {
4857	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
4858	return c
4859}
4860
4861// PageToken sets the optional parameter "pageToken": Continuation token
4862// for fetching the next page of results.
4863func (c *NamespacesAuthorizeddomainsListCall) PageToken(pageToken string) *NamespacesAuthorizeddomainsListCall {
4864	c.urlParams_.Set("pageToken", pageToken)
4865	return c
4866}
4867
4868// Fields allows partial responses to be retrieved. See
4869// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
4870// for more information.
4871func (c *NamespacesAuthorizeddomainsListCall) Fields(s ...googleapi.Field) *NamespacesAuthorizeddomainsListCall {
4872	c.urlParams_.Set("fields", googleapi.CombineFields(s))
4873	return c
4874}
4875
4876// IfNoneMatch sets the optional parameter which makes the operation
4877// fail if the object's ETag matches the given value. This is useful for
4878// getting updates only after the object has changed since the last
4879// request. Use googleapi.IsNotModified to check whether the response
4880// error from Do is the result of In-None-Match.
4881func (c *NamespacesAuthorizeddomainsListCall) IfNoneMatch(entityTag string) *NamespacesAuthorizeddomainsListCall {
4882	c.ifNoneMatch_ = entityTag
4883	return c
4884}
4885
4886// Context sets the context to be used in this call's Do method. Any
4887// pending HTTP request will be aborted if the provided context is
4888// canceled.
4889func (c *NamespacesAuthorizeddomainsListCall) Context(ctx context.Context) *NamespacesAuthorizeddomainsListCall {
4890	c.ctx_ = ctx
4891	return c
4892}
4893
4894// Header returns an http.Header that can be modified by the caller to
4895// add HTTP headers to the request.
4896func (c *NamespacesAuthorizeddomainsListCall) Header() http.Header {
4897	if c.header_ == nil {
4898		c.header_ = make(http.Header)
4899	}
4900	return c.header_
4901}
4902
4903func (c *NamespacesAuthorizeddomainsListCall) doRequest(alt string) (*http.Response, error) {
4904	reqHeaders := make(http.Header)
4905	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
4906	for k, v := range c.header_ {
4907		reqHeaders[k] = v
4908	}
4909	reqHeaders.Set("User-Agent", c.s.userAgent())
4910	if c.ifNoneMatch_ != "" {
4911		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
4912	}
4913	var body io.Reader = nil
4914	c.urlParams_.Set("alt", alt)
4915	c.urlParams_.Set("prettyPrint", "false")
4916	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/domains.cloudrun.com/v1/{+parent}/authorizeddomains")
4917	urls += "?" + c.urlParams_.Encode()
4918	req, err := http.NewRequest("GET", urls, body)
4919	if err != nil {
4920		return nil, err
4921	}
4922	req.Header = reqHeaders
4923	googleapi.Expand(req.URL, map[string]string{
4924		"parent": c.parent,
4925	})
4926	return gensupport.SendRequest(c.ctx_, c.s.client, req)
4927}
4928
4929// Do executes the "run.namespaces.authorizeddomains.list" call.
4930// Exactly one of *ListAuthorizedDomainsResponse or error will be
4931// non-nil. Any non-2xx status code is an error. Response headers are in
4932// either *ListAuthorizedDomainsResponse.ServerResponse.Header or (if a
4933// response was returned at all) in error.(*googleapi.Error).Header. Use
4934// googleapi.IsNotModified to check whether the returned error was
4935// because http.StatusNotModified was returned.
4936func (c *NamespacesAuthorizeddomainsListCall) Do(opts ...googleapi.CallOption) (*ListAuthorizedDomainsResponse, error) {
4937	gensupport.SetOptions(c.urlParams_, opts...)
4938	res, err := c.doRequest("json")
4939	if res != nil && res.StatusCode == http.StatusNotModified {
4940		if res.Body != nil {
4941			res.Body.Close()
4942		}
4943		return nil, &googleapi.Error{
4944			Code:   res.StatusCode,
4945			Header: res.Header,
4946		}
4947	}
4948	if err != nil {
4949		return nil, err
4950	}
4951	defer googleapi.CloseBody(res)
4952	if err := googleapi.CheckResponse(res); err != nil {
4953		return nil, err
4954	}
4955	ret := &ListAuthorizedDomainsResponse{
4956		ServerResponse: googleapi.ServerResponse{
4957			Header:         res.Header,
4958			HTTPStatusCode: res.StatusCode,
4959		},
4960	}
4961	target := &ret
4962	if err := gensupport.DecodeResponse(target, res); err != nil {
4963		return nil, err
4964	}
4965	return ret, nil
4966	// {
4967	//   "description": "List authorized domains.",
4968	//   "flatPath": "apis/domains.cloudrun.com/v1/namespaces/{namespacesId}/authorizeddomains",
4969	//   "httpMethod": "GET",
4970	//   "id": "run.namespaces.authorizeddomains.list",
4971	//   "parameterOrder": [
4972	//     "parent"
4973	//   ],
4974	//   "parameters": {
4975	//     "pageSize": {
4976	//       "description": "Maximum results to return per page.",
4977	//       "format": "int32",
4978	//       "location": "query",
4979	//       "type": "integer"
4980	//     },
4981	//     "pageToken": {
4982	//       "description": "Continuation token for fetching the next page of results.",
4983	//       "location": "query",
4984	//       "type": "string"
4985	//     },
4986	//     "parent": {
4987	//       "description": "Name of the parent Application resource. Example: `apps/myapp`.",
4988	//       "location": "path",
4989	//       "pattern": "^namespaces/[^/]+$",
4990	//       "required": true,
4991	//       "type": "string"
4992	//     }
4993	//   },
4994	//   "path": "apis/domains.cloudrun.com/v1/{+parent}/authorizeddomains",
4995	//   "response": {
4996	//     "$ref": "ListAuthorizedDomainsResponse"
4997	//   },
4998	//   "scopes": [
4999	//     "https://www.googleapis.com/auth/cloud-platform"
5000	//   ]
5001	// }
5002
5003}
5004
5005// Pages invokes f for each page of results.
5006// A non-nil error returned from f will halt the iteration.
5007// The provided context supersedes any context provided to the Context method.
5008func (c *NamespacesAuthorizeddomainsListCall) Pages(ctx context.Context, f func(*ListAuthorizedDomainsResponse) error) error {
5009	c.ctx_ = ctx
5010	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
5011	for {
5012		x, err := c.Do()
5013		if err != nil {
5014			return err
5015		}
5016		if err := f(x); err != nil {
5017			return err
5018		}
5019		if x.NextPageToken == "" {
5020			return nil
5021		}
5022		c.PageToken(x.NextPageToken)
5023	}
5024}
5025
5026// method id "run.namespaces.autodomainmappings.create":
5027
5028type NamespacesAutodomainmappingsCreateCall struct {
5029	s                 *APIService
5030	parent            string
5031	autodomainmapping *AutoDomainMapping
5032	urlParams_        gensupport.URLParams
5033	ctx_              context.Context
5034	header_           http.Header
5035}
5036
5037// Create: Creates a new auto domain mapping.
5038func (r *NamespacesAutodomainmappingsService) Create(parent string, autodomainmapping *AutoDomainMapping) *NamespacesAutodomainmappingsCreateCall {
5039	c := &NamespacesAutodomainmappingsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5040	c.parent = parent
5041	c.autodomainmapping = autodomainmapping
5042	return c
5043}
5044
5045// Fields allows partial responses to be retrieved. See
5046// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
5047// for more information.
5048func (c *NamespacesAutodomainmappingsCreateCall) Fields(s ...googleapi.Field) *NamespacesAutodomainmappingsCreateCall {
5049	c.urlParams_.Set("fields", googleapi.CombineFields(s))
5050	return c
5051}
5052
5053// Context sets the context to be used in this call's Do method. Any
5054// pending HTTP request will be aborted if the provided context is
5055// canceled.
5056func (c *NamespacesAutodomainmappingsCreateCall) Context(ctx context.Context) *NamespacesAutodomainmappingsCreateCall {
5057	c.ctx_ = ctx
5058	return c
5059}
5060
5061// Header returns an http.Header that can be modified by the caller to
5062// add HTTP headers to the request.
5063func (c *NamespacesAutodomainmappingsCreateCall) Header() http.Header {
5064	if c.header_ == nil {
5065		c.header_ = make(http.Header)
5066	}
5067	return c.header_
5068}
5069
5070func (c *NamespacesAutodomainmappingsCreateCall) doRequest(alt string) (*http.Response, error) {
5071	reqHeaders := make(http.Header)
5072	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
5073	for k, v := range c.header_ {
5074		reqHeaders[k] = v
5075	}
5076	reqHeaders.Set("User-Agent", c.s.userAgent())
5077	var body io.Reader = nil
5078	body, err := googleapi.WithoutDataWrapper.JSONReader(c.autodomainmapping)
5079	if err != nil {
5080		return nil, err
5081	}
5082	reqHeaders.Set("Content-Type", "application/json")
5083	c.urlParams_.Set("alt", alt)
5084	c.urlParams_.Set("prettyPrint", "false")
5085	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/domains.cloudrun.com/v1/{+parent}/autodomainmappings")
5086	urls += "?" + c.urlParams_.Encode()
5087	req, err := http.NewRequest("POST", urls, body)
5088	if err != nil {
5089		return nil, err
5090	}
5091	req.Header = reqHeaders
5092	googleapi.Expand(req.URL, map[string]string{
5093		"parent": c.parent,
5094	})
5095	return gensupport.SendRequest(c.ctx_, c.s.client, req)
5096}
5097
5098// Do executes the "run.namespaces.autodomainmappings.create" call.
5099// Exactly one of *AutoDomainMapping or error will be non-nil. Any
5100// non-2xx status code is an error. Response headers are in either
5101// *AutoDomainMapping.ServerResponse.Header or (if a response was
5102// returned at all) in error.(*googleapi.Error).Header. Use
5103// googleapi.IsNotModified to check whether the returned error was
5104// because http.StatusNotModified was returned.
5105func (c *NamespacesAutodomainmappingsCreateCall) Do(opts ...googleapi.CallOption) (*AutoDomainMapping, error) {
5106	gensupport.SetOptions(c.urlParams_, opts...)
5107	res, err := c.doRequest("json")
5108	if res != nil && res.StatusCode == http.StatusNotModified {
5109		if res.Body != nil {
5110			res.Body.Close()
5111		}
5112		return nil, &googleapi.Error{
5113			Code:   res.StatusCode,
5114			Header: res.Header,
5115		}
5116	}
5117	if err != nil {
5118		return nil, err
5119	}
5120	defer googleapi.CloseBody(res)
5121	if err := googleapi.CheckResponse(res); err != nil {
5122		return nil, err
5123	}
5124	ret := &AutoDomainMapping{
5125		ServerResponse: googleapi.ServerResponse{
5126			Header:         res.Header,
5127			HTTPStatusCode: res.StatusCode,
5128		},
5129	}
5130	target := &ret
5131	if err := gensupport.DecodeResponse(target, res); err != nil {
5132		return nil, err
5133	}
5134	return ret, nil
5135	// {
5136	//   "description": "Creates a new auto domain mapping.",
5137	//   "flatPath": "apis/domains.cloudrun.com/v1/namespaces/{namespacesId}/autodomainmappings",
5138	//   "httpMethod": "POST",
5139	//   "id": "run.namespaces.autodomainmappings.create",
5140	//   "parameterOrder": [
5141	//     "parent"
5142	//   ],
5143	//   "parameters": {
5144	//     "parent": {
5145	//       "description": "The project ID or project number in which this auto domain mapping should\nbe created.",
5146	//       "location": "path",
5147	//       "pattern": "^namespaces/[^/]+$",
5148	//       "required": true,
5149	//       "type": "string"
5150	//     }
5151	//   },
5152	//   "path": "apis/domains.cloudrun.com/v1/{+parent}/autodomainmappings",
5153	//   "request": {
5154	//     "$ref": "AutoDomainMapping"
5155	//   },
5156	//   "response": {
5157	//     "$ref": "AutoDomainMapping"
5158	//   },
5159	//   "scopes": [
5160	//     "https://www.googleapis.com/auth/cloud-platform"
5161	//   ]
5162	// }
5163
5164}
5165
5166// method id "run.namespaces.autodomainmappings.delete":
5167
5168type NamespacesAutodomainmappingsDeleteCall struct {
5169	s          *APIService
5170	name       string
5171	urlParams_ gensupport.URLParams
5172	ctx_       context.Context
5173	header_    http.Header
5174}
5175
5176// Delete: Delete an auto domain mapping.
5177func (r *NamespacesAutodomainmappingsService) Delete(name string) *NamespacesAutodomainmappingsDeleteCall {
5178	c := &NamespacesAutodomainmappingsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5179	c.name = name
5180	return c
5181}
5182
5183// ApiVersion sets the optional parameter "apiVersion": Cloud Run
5184// currently ignores this parameter.
5185func (c *NamespacesAutodomainmappingsDeleteCall) ApiVersion(apiVersion string) *NamespacesAutodomainmappingsDeleteCall {
5186	c.urlParams_.Set("apiVersion", apiVersion)
5187	return c
5188}
5189
5190// Kind sets the optional parameter "kind": Cloud Run currently ignores
5191// this parameter.
5192func (c *NamespacesAutodomainmappingsDeleteCall) Kind(kind string) *NamespacesAutodomainmappingsDeleteCall {
5193	c.urlParams_.Set("kind", kind)
5194	return c
5195}
5196
5197// PropagationPolicy sets the optional parameter "propagationPolicy":
5198// Specifies the propagation policy of delete. Cloud Run currently
5199// ignores
5200// this setting, and deletes in the background. Please
5201// see
5202// kubernetes.io/docs/concepts/workloads/controllers/garbage-collecti
5203// on/ for
5204// more information.
5205func (c *NamespacesAutodomainmappingsDeleteCall) PropagationPolicy(propagationPolicy string) *NamespacesAutodomainmappingsDeleteCall {
5206	c.urlParams_.Set("propagationPolicy", propagationPolicy)
5207	return c
5208}
5209
5210// Fields allows partial responses to be retrieved. See
5211// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
5212// for more information.
5213func (c *NamespacesAutodomainmappingsDeleteCall) Fields(s ...googleapi.Field) *NamespacesAutodomainmappingsDeleteCall {
5214	c.urlParams_.Set("fields", googleapi.CombineFields(s))
5215	return c
5216}
5217
5218// Context sets the context to be used in this call's Do method. Any
5219// pending HTTP request will be aborted if the provided context is
5220// canceled.
5221func (c *NamespacesAutodomainmappingsDeleteCall) Context(ctx context.Context) *NamespacesAutodomainmappingsDeleteCall {
5222	c.ctx_ = ctx
5223	return c
5224}
5225
5226// Header returns an http.Header that can be modified by the caller to
5227// add HTTP headers to the request.
5228func (c *NamespacesAutodomainmappingsDeleteCall) Header() http.Header {
5229	if c.header_ == nil {
5230		c.header_ = make(http.Header)
5231	}
5232	return c.header_
5233}
5234
5235func (c *NamespacesAutodomainmappingsDeleteCall) doRequest(alt string) (*http.Response, error) {
5236	reqHeaders := make(http.Header)
5237	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
5238	for k, v := range c.header_ {
5239		reqHeaders[k] = v
5240	}
5241	reqHeaders.Set("User-Agent", c.s.userAgent())
5242	var body io.Reader = nil
5243	c.urlParams_.Set("alt", alt)
5244	c.urlParams_.Set("prettyPrint", "false")
5245	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/domains.cloudrun.com/v1/{+name}")
5246	urls += "?" + c.urlParams_.Encode()
5247	req, err := http.NewRequest("DELETE", urls, body)
5248	if err != nil {
5249		return nil, err
5250	}
5251	req.Header = reqHeaders
5252	googleapi.Expand(req.URL, map[string]string{
5253		"name": c.name,
5254	})
5255	return gensupport.SendRequest(c.ctx_, c.s.client, req)
5256}
5257
5258// Do executes the "run.namespaces.autodomainmappings.delete" call.
5259// Exactly one of *Status or error will be non-nil. Any non-2xx status
5260// code is an error. Response headers are in either
5261// *Status.ServerResponse.Header or (if a response was returned at all)
5262// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
5263// check whether the returned error was because http.StatusNotModified
5264// was returned.
5265func (c *NamespacesAutodomainmappingsDeleteCall) Do(opts ...googleapi.CallOption) (*Status, error) {
5266	gensupport.SetOptions(c.urlParams_, opts...)
5267	res, err := c.doRequest("json")
5268	if res != nil && res.StatusCode == http.StatusNotModified {
5269		if res.Body != nil {
5270			res.Body.Close()
5271		}
5272		return nil, &googleapi.Error{
5273			Code:   res.StatusCode,
5274			Header: res.Header,
5275		}
5276	}
5277	if err != nil {
5278		return nil, err
5279	}
5280	defer googleapi.CloseBody(res)
5281	if err := googleapi.CheckResponse(res); err != nil {
5282		return nil, err
5283	}
5284	ret := &Status{
5285		ServerResponse: googleapi.ServerResponse{
5286			Header:         res.Header,
5287			HTTPStatusCode: res.StatusCode,
5288		},
5289	}
5290	target := &ret
5291	if err := gensupport.DecodeResponse(target, res); err != nil {
5292		return nil, err
5293	}
5294	return ret, nil
5295	// {
5296	//   "description": "Delete an auto domain mapping.",
5297	//   "flatPath": "apis/domains.cloudrun.com/v1/namespaces/{namespacesId}/autodomainmappings/{autodomainmappingsId}",
5298	//   "httpMethod": "DELETE",
5299	//   "id": "run.namespaces.autodomainmappings.delete",
5300	//   "parameterOrder": [
5301	//     "name"
5302	//   ],
5303	//   "parameters": {
5304	//     "apiVersion": {
5305	//       "description": "Cloud Run currently ignores this parameter.",
5306	//       "location": "query",
5307	//       "type": "string"
5308	//     },
5309	//     "kind": {
5310	//       "description": "Cloud Run currently ignores this parameter.",
5311	//       "location": "query",
5312	//       "type": "string"
5313	//     },
5314	//     "name": {
5315	//       "description": "The name of the auto domain mapping being deleted. If needed, replace\n{namespace_id} with the project ID.",
5316	//       "location": "path",
5317	//       "pattern": "^namespaces/[^/]+/autodomainmappings/[^/]+$",
5318	//       "required": true,
5319	//       "type": "string"
5320	//     },
5321	//     "propagationPolicy": {
5322	//       "description": "Specifies the propagation policy of delete. Cloud Run currently ignores\nthis setting, and deletes in the background. Please see\nkubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for\nmore information.",
5323	//       "location": "query",
5324	//       "type": "string"
5325	//     }
5326	//   },
5327	//   "path": "apis/domains.cloudrun.com/v1/{+name}",
5328	//   "response": {
5329	//     "$ref": "Status"
5330	//   },
5331	//   "scopes": [
5332	//     "https://www.googleapis.com/auth/cloud-platform"
5333	//   ]
5334	// }
5335
5336}
5337
5338// method id "run.namespaces.autodomainmappings.get":
5339
5340type NamespacesAutodomainmappingsGetCall struct {
5341	s            *APIService
5342	name         string
5343	urlParams_   gensupport.URLParams
5344	ifNoneMatch_ string
5345	ctx_         context.Context
5346	header_      http.Header
5347}
5348
5349// Get: Get information about an auto domain mapping.
5350func (r *NamespacesAutodomainmappingsService) Get(name string) *NamespacesAutodomainmappingsGetCall {
5351	c := &NamespacesAutodomainmappingsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5352	c.name = name
5353	return c
5354}
5355
5356// Fields allows partial responses to be retrieved. See
5357// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
5358// for more information.
5359func (c *NamespacesAutodomainmappingsGetCall) Fields(s ...googleapi.Field) *NamespacesAutodomainmappingsGetCall {
5360	c.urlParams_.Set("fields", googleapi.CombineFields(s))
5361	return c
5362}
5363
5364// IfNoneMatch sets the optional parameter which makes the operation
5365// fail if the object's ETag matches the given value. This is useful for
5366// getting updates only after the object has changed since the last
5367// request. Use googleapi.IsNotModified to check whether the response
5368// error from Do is the result of In-None-Match.
5369func (c *NamespacesAutodomainmappingsGetCall) IfNoneMatch(entityTag string) *NamespacesAutodomainmappingsGetCall {
5370	c.ifNoneMatch_ = entityTag
5371	return c
5372}
5373
5374// Context sets the context to be used in this call's Do method. Any
5375// pending HTTP request will be aborted if the provided context is
5376// canceled.
5377func (c *NamespacesAutodomainmappingsGetCall) Context(ctx context.Context) *NamespacesAutodomainmappingsGetCall {
5378	c.ctx_ = ctx
5379	return c
5380}
5381
5382// Header returns an http.Header that can be modified by the caller to
5383// add HTTP headers to the request.
5384func (c *NamespacesAutodomainmappingsGetCall) Header() http.Header {
5385	if c.header_ == nil {
5386		c.header_ = make(http.Header)
5387	}
5388	return c.header_
5389}
5390
5391func (c *NamespacesAutodomainmappingsGetCall) doRequest(alt string) (*http.Response, error) {
5392	reqHeaders := make(http.Header)
5393	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
5394	for k, v := range c.header_ {
5395		reqHeaders[k] = v
5396	}
5397	reqHeaders.Set("User-Agent", c.s.userAgent())
5398	if c.ifNoneMatch_ != "" {
5399		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
5400	}
5401	var body io.Reader = nil
5402	c.urlParams_.Set("alt", alt)
5403	c.urlParams_.Set("prettyPrint", "false")
5404	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/domains.cloudrun.com/v1/{+name}")
5405	urls += "?" + c.urlParams_.Encode()
5406	req, err := http.NewRequest("GET", urls, body)
5407	if err != nil {
5408		return nil, err
5409	}
5410	req.Header = reqHeaders
5411	googleapi.Expand(req.URL, map[string]string{
5412		"name": c.name,
5413	})
5414	return gensupport.SendRequest(c.ctx_, c.s.client, req)
5415}
5416
5417// Do executes the "run.namespaces.autodomainmappings.get" call.
5418// Exactly one of *AutoDomainMapping or error will be non-nil. Any
5419// non-2xx status code is an error. Response headers are in either
5420// *AutoDomainMapping.ServerResponse.Header or (if a response was
5421// returned at all) in error.(*googleapi.Error).Header. Use
5422// googleapi.IsNotModified to check whether the returned error was
5423// because http.StatusNotModified was returned.
5424func (c *NamespacesAutodomainmappingsGetCall) Do(opts ...googleapi.CallOption) (*AutoDomainMapping, error) {
5425	gensupport.SetOptions(c.urlParams_, opts...)
5426	res, err := c.doRequest("json")
5427	if res != nil && res.StatusCode == http.StatusNotModified {
5428		if res.Body != nil {
5429			res.Body.Close()
5430		}
5431		return nil, &googleapi.Error{
5432			Code:   res.StatusCode,
5433			Header: res.Header,
5434		}
5435	}
5436	if err != nil {
5437		return nil, err
5438	}
5439	defer googleapi.CloseBody(res)
5440	if err := googleapi.CheckResponse(res); err != nil {
5441		return nil, err
5442	}
5443	ret := &AutoDomainMapping{
5444		ServerResponse: googleapi.ServerResponse{
5445			Header:         res.Header,
5446			HTTPStatusCode: res.StatusCode,
5447		},
5448	}
5449	target := &ret
5450	if err := gensupport.DecodeResponse(target, res); err != nil {
5451		return nil, err
5452	}
5453	return ret, nil
5454	// {
5455	//   "description": "Get information about an auto domain mapping.",
5456	//   "flatPath": "apis/domains.cloudrun.com/v1/namespaces/{namespacesId}/autodomainmappings/{autodomainmappingsId}",
5457	//   "httpMethod": "GET",
5458	//   "id": "run.namespaces.autodomainmappings.get",
5459	//   "parameterOrder": [
5460	//     "name"
5461	//   ],
5462	//   "parameters": {
5463	//     "name": {
5464	//       "description": "The name of the auto domain mapping being retrieved. If needed, replace\n{namespace_id} with the project ID.",
5465	//       "location": "path",
5466	//       "pattern": "^namespaces/[^/]+/autodomainmappings/[^/]+$",
5467	//       "required": true,
5468	//       "type": "string"
5469	//     }
5470	//   },
5471	//   "path": "apis/domains.cloudrun.com/v1/{+name}",
5472	//   "response": {
5473	//     "$ref": "AutoDomainMapping"
5474	//   },
5475	//   "scopes": [
5476	//     "https://www.googleapis.com/auth/cloud-platform"
5477	//   ]
5478	// }
5479
5480}
5481
5482// method id "run.namespaces.autodomainmappings.list":
5483
5484type NamespacesAutodomainmappingsListCall struct {
5485	s            *APIService
5486	parent       string
5487	urlParams_   gensupport.URLParams
5488	ifNoneMatch_ string
5489	ctx_         context.Context
5490	header_      http.Header
5491}
5492
5493// List: List auto domain mappings.
5494func (r *NamespacesAutodomainmappingsService) List(parent string) *NamespacesAutodomainmappingsListCall {
5495	c := &NamespacesAutodomainmappingsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5496	c.parent = parent
5497	return c
5498}
5499
5500// Continue sets the optional parameter "continue": Optional encoded
5501// string to continue paging.
5502func (c *NamespacesAutodomainmappingsListCall) Continue(continue_ string) *NamespacesAutodomainmappingsListCall {
5503	c.urlParams_.Set("continue", continue_)
5504	return c
5505}
5506
5507// FieldSelector sets the optional parameter "fieldSelector": Allows to
5508// filter resources based on a specific value for a field name.
5509// Send this in a query string format. i.e. 'metadata.name%3Dlorem'.
5510// Not currently used by Cloud Run.
5511func (c *NamespacesAutodomainmappingsListCall) FieldSelector(fieldSelector string) *NamespacesAutodomainmappingsListCall {
5512	c.urlParams_.Set("fieldSelector", fieldSelector)
5513	return c
5514}
5515
5516// IncludeUninitialized sets the optional parameter
5517// "includeUninitialized": Not currently used by Cloud Run.
5518func (c *NamespacesAutodomainmappingsListCall) IncludeUninitialized(includeUninitialized bool) *NamespacesAutodomainmappingsListCall {
5519	c.urlParams_.Set("includeUninitialized", fmt.Sprint(includeUninitialized))
5520	return c
5521}
5522
5523// LabelSelector sets the optional parameter "labelSelector": Allows to
5524// filter resources based on a label. Supported operations are
5525// =, !=, exists, in, and notIn.
5526func (c *NamespacesAutodomainmappingsListCall) LabelSelector(labelSelector string) *NamespacesAutodomainmappingsListCall {
5527	c.urlParams_.Set("labelSelector", labelSelector)
5528	return c
5529}
5530
5531// Limit sets the optional parameter "limit": The maximum number of
5532// records that should be returned.
5533func (c *NamespacesAutodomainmappingsListCall) Limit(limit int64) *NamespacesAutodomainmappingsListCall {
5534	c.urlParams_.Set("limit", fmt.Sprint(limit))
5535	return c
5536}
5537
5538// ResourceVersion sets the optional parameter "resourceVersion": The
5539// baseline resource version from which the list or watch operation
5540// should
5541// start. Not currently used by Cloud Run.
5542func (c *NamespacesAutodomainmappingsListCall) ResourceVersion(resourceVersion string) *NamespacesAutodomainmappingsListCall {
5543	c.urlParams_.Set("resourceVersion", resourceVersion)
5544	return c
5545}
5546
5547// Watch sets the optional parameter "watch": Flag that indicates that
5548// the client expects to watch this resource as well.
5549// Not currently used by Cloud Run.
5550func (c *NamespacesAutodomainmappingsListCall) Watch(watch bool) *NamespacesAutodomainmappingsListCall {
5551	c.urlParams_.Set("watch", fmt.Sprint(watch))
5552	return c
5553}
5554
5555// Fields allows partial responses to be retrieved. See
5556// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
5557// for more information.
5558func (c *NamespacesAutodomainmappingsListCall) Fields(s ...googleapi.Field) *NamespacesAutodomainmappingsListCall {
5559	c.urlParams_.Set("fields", googleapi.CombineFields(s))
5560	return c
5561}
5562
5563// IfNoneMatch sets the optional parameter which makes the operation
5564// fail if the object's ETag matches the given value. This is useful for
5565// getting updates only after the object has changed since the last
5566// request. Use googleapi.IsNotModified to check whether the response
5567// error from Do is the result of In-None-Match.
5568func (c *NamespacesAutodomainmappingsListCall) IfNoneMatch(entityTag string) *NamespacesAutodomainmappingsListCall {
5569	c.ifNoneMatch_ = entityTag
5570	return c
5571}
5572
5573// Context sets the context to be used in this call's Do method. Any
5574// pending HTTP request will be aborted if the provided context is
5575// canceled.
5576func (c *NamespacesAutodomainmappingsListCall) Context(ctx context.Context) *NamespacesAutodomainmappingsListCall {
5577	c.ctx_ = ctx
5578	return c
5579}
5580
5581// Header returns an http.Header that can be modified by the caller to
5582// add HTTP headers to the request.
5583func (c *NamespacesAutodomainmappingsListCall) Header() http.Header {
5584	if c.header_ == nil {
5585		c.header_ = make(http.Header)
5586	}
5587	return c.header_
5588}
5589
5590func (c *NamespacesAutodomainmappingsListCall) doRequest(alt string) (*http.Response, error) {
5591	reqHeaders := make(http.Header)
5592	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
5593	for k, v := range c.header_ {
5594		reqHeaders[k] = v
5595	}
5596	reqHeaders.Set("User-Agent", c.s.userAgent())
5597	if c.ifNoneMatch_ != "" {
5598		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
5599	}
5600	var body io.Reader = nil
5601	c.urlParams_.Set("alt", alt)
5602	c.urlParams_.Set("prettyPrint", "false")
5603	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/domains.cloudrun.com/v1/{+parent}/autodomainmappings")
5604	urls += "?" + c.urlParams_.Encode()
5605	req, err := http.NewRequest("GET", urls, body)
5606	if err != nil {
5607		return nil, err
5608	}
5609	req.Header = reqHeaders
5610	googleapi.Expand(req.URL, map[string]string{
5611		"parent": c.parent,
5612	})
5613	return gensupport.SendRequest(c.ctx_, c.s.client, req)
5614}
5615
5616// Do executes the "run.namespaces.autodomainmappings.list" call.
5617// Exactly one of *ListAutoDomainMappingsResponse or error will be
5618// non-nil. Any non-2xx status code is an error. Response headers are in
5619// either *ListAutoDomainMappingsResponse.ServerResponse.Header or (if a
5620// response was returned at all) in error.(*googleapi.Error).Header. Use
5621// googleapi.IsNotModified to check whether the returned error was
5622// because http.StatusNotModified was returned.
5623func (c *NamespacesAutodomainmappingsListCall) Do(opts ...googleapi.CallOption) (*ListAutoDomainMappingsResponse, error) {
5624	gensupport.SetOptions(c.urlParams_, opts...)
5625	res, err := c.doRequest("json")
5626	if res != nil && res.StatusCode == http.StatusNotModified {
5627		if res.Body != nil {
5628			res.Body.Close()
5629		}
5630		return nil, &googleapi.Error{
5631			Code:   res.StatusCode,
5632			Header: res.Header,
5633		}
5634	}
5635	if err != nil {
5636		return nil, err
5637	}
5638	defer googleapi.CloseBody(res)
5639	if err := googleapi.CheckResponse(res); err != nil {
5640		return nil, err
5641	}
5642	ret := &ListAutoDomainMappingsResponse{
5643		ServerResponse: googleapi.ServerResponse{
5644			Header:         res.Header,
5645			HTTPStatusCode: res.StatusCode,
5646		},
5647	}
5648	target := &ret
5649	if err := gensupport.DecodeResponse(target, res); err != nil {
5650		return nil, err
5651	}
5652	return ret, nil
5653	// {
5654	//   "description": "List auto domain mappings.",
5655	//   "flatPath": "apis/domains.cloudrun.com/v1/namespaces/{namespacesId}/autodomainmappings",
5656	//   "httpMethod": "GET",
5657	//   "id": "run.namespaces.autodomainmappings.list",
5658	//   "parameterOrder": [
5659	//     "parent"
5660	//   ],
5661	//   "parameters": {
5662	//     "continue": {
5663	//       "description": "Optional encoded string to continue paging.",
5664	//       "location": "query",
5665	//       "type": "string"
5666	//     },
5667	//     "fieldSelector": {
5668	//       "description": "Allows to filter resources based on a specific value for a field name.\nSend this in a query string format. i.e. 'metadata.name%3Dlorem'.\nNot currently used by Cloud Run.",
5669	//       "location": "query",
5670	//       "type": "string"
5671	//     },
5672	//     "includeUninitialized": {
5673	//       "description": "Not currently used by Cloud Run.",
5674	//       "location": "query",
5675	//       "type": "boolean"
5676	//     },
5677	//     "labelSelector": {
5678	//       "description": "Allows to filter resources based on a label. Supported operations are\n=, !=, exists, in, and notIn.",
5679	//       "location": "query",
5680	//       "type": "string"
5681	//     },
5682	//     "limit": {
5683	//       "description": "The maximum number of records that should be returned.",
5684	//       "format": "int32",
5685	//       "location": "query",
5686	//       "type": "integer"
5687	//     },
5688	//     "parent": {
5689	//       "description": "The project ID or project number from which the auto domain mappings should\nbe listed.",
5690	//       "location": "path",
5691	//       "pattern": "^namespaces/[^/]+$",
5692	//       "required": true,
5693	//       "type": "string"
5694	//     },
5695	//     "resourceVersion": {
5696	//       "description": "The baseline resource version from which the list or watch operation should\nstart. Not currently used by Cloud Run.",
5697	//       "location": "query",
5698	//       "type": "string"
5699	//     },
5700	//     "watch": {
5701	//       "description": "Flag that indicates that the client expects to watch this resource as well.\nNot currently used by Cloud Run.",
5702	//       "location": "query",
5703	//       "type": "boolean"
5704	//     }
5705	//   },
5706	//   "path": "apis/domains.cloudrun.com/v1/{+parent}/autodomainmappings",
5707	//   "response": {
5708	//     "$ref": "ListAutoDomainMappingsResponse"
5709	//   },
5710	//   "scopes": [
5711	//     "https://www.googleapis.com/auth/cloud-platform"
5712	//   ]
5713	// }
5714
5715}
5716
5717// method id "run.namespaces.autodomainmappings.replaceAutoDomainMapping":
5718
5719type NamespacesAutodomainmappingsReplaceAutoDomainMappingCall struct {
5720	s                 *APIService
5721	name              string
5722	autodomainmapping *AutoDomainMapping
5723	urlParams_        gensupport.URLParams
5724	ctx_              context.Context
5725	header_           http.Header
5726}
5727
5728// ReplaceAutoDomainMapping: Replace an auto domain mapping.
5729//
5730// Only the spec and metadata labels and annotations are modifiable.
5731// After
5732// the Update request, Cloud Run will work to make the 'status'
5733// match the requested 'spec'.
5734//
5735// May provide metadata.resourceVersion to enforce update from last read
5736// for
5737// optimistic concurrency control.
5738func (r *NamespacesAutodomainmappingsService) ReplaceAutoDomainMapping(name string, autodomainmapping *AutoDomainMapping) *NamespacesAutodomainmappingsReplaceAutoDomainMappingCall {
5739	c := &NamespacesAutodomainmappingsReplaceAutoDomainMappingCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5740	c.name = name
5741	c.autodomainmapping = autodomainmapping
5742	return c
5743}
5744
5745// Fields allows partial responses to be retrieved. See
5746// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
5747// for more information.
5748func (c *NamespacesAutodomainmappingsReplaceAutoDomainMappingCall) Fields(s ...googleapi.Field) *NamespacesAutodomainmappingsReplaceAutoDomainMappingCall {
5749	c.urlParams_.Set("fields", googleapi.CombineFields(s))
5750	return c
5751}
5752
5753// Context sets the context to be used in this call's Do method. Any
5754// pending HTTP request will be aborted if the provided context is
5755// canceled.
5756func (c *NamespacesAutodomainmappingsReplaceAutoDomainMappingCall) Context(ctx context.Context) *NamespacesAutodomainmappingsReplaceAutoDomainMappingCall {
5757	c.ctx_ = ctx
5758	return c
5759}
5760
5761// Header returns an http.Header that can be modified by the caller to
5762// add HTTP headers to the request.
5763func (c *NamespacesAutodomainmappingsReplaceAutoDomainMappingCall) Header() http.Header {
5764	if c.header_ == nil {
5765		c.header_ = make(http.Header)
5766	}
5767	return c.header_
5768}
5769
5770func (c *NamespacesAutodomainmappingsReplaceAutoDomainMappingCall) doRequest(alt string) (*http.Response, error) {
5771	reqHeaders := make(http.Header)
5772	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
5773	for k, v := range c.header_ {
5774		reqHeaders[k] = v
5775	}
5776	reqHeaders.Set("User-Agent", c.s.userAgent())
5777	var body io.Reader = nil
5778	body, err := googleapi.WithoutDataWrapper.JSONReader(c.autodomainmapping)
5779	if err != nil {
5780		return nil, err
5781	}
5782	reqHeaders.Set("Content-Type", "application/json")
5783	c.urlParams_.Set("alt", alt)
5784	c.urlParams_.Set("prettyPrint", "false")
5785	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/domains.cloudrun.com/v1/{+name}")
5786	urls += "?" + c.urlParams_.Encode()
5787	req, err := http.NewRequest("PUT", urls, body)
5788	if err != nil {
5789		return nil, err
5790	}
5791	req.Header = reqHeaders
5792	googleapi.Expand(req.URL, map[string]string{
5793		"name": c.name,
5794	})
5795	return gensupport.SendRequest(c.ctx_, c.s.client, req)
5796}
5797
5798// Do executes the "run.namespaces.autodomainmappings.replaceAutoDomainMapping" call.
5799// Exactly one of *AutoDomainMapping or error will be non-nil. Any
5800// non-2xx status code is an error. Response headers are in either
5801// *AutoDomainMapping.ServerResponse.Header or (if a response was
5802// returned at all) in error.(*googleapi.Error).Header. Use
5803// googleapi.IsNotModified to check whether the returned error was
5804// because http.StatusNotModified was returned.
5805func (c *NamespacesAutodomainmappingsReplaceAutoDomainMappingCall) Do(opts ...googleapi.CallOption) (*AutoDomainMapping, error) {
5806	gensupport.SetOptions(c.urlParams_, opts...)
5807	res, err := c.doRequest("json")
5808	if res != nil && res.StatusCode == http.StatusNotModified {
5809		if res.Body != nil {
5810			res.Body.Close()
5811		}
5812		return nil, &googleapi.Error{
5813			Code:   res.StatusCode,
5814			Header: res.Header,
5815		}
5816	}
5817	if err != nil {
5818		return nil, err
5819	}
5820	defer googleapi.CloseBody(res)
5821	if err := googleapi.CheckResponse(res); err != nil {
5822		return nil, err
5823	}
5824	ret := &AutoDomainMapping{
5825		ServerResponse: googleapi.ServerResponse{
5826			Header:         res.Header,
5827			HTTPStatusCode: res.StatusCode,
5828		},
5829	}
5830	target := &ret
5831	if err := gensupport.DecodeResponse(target, res); err != nil {
5832		return nil, err
5833	}
5834	return ret, nil
5835	// {
5836	//   "description": "Replace an auto domain mapping.\n\nOnly the spec and metadata labels and annotations are modifiable. After\nthe Update request, Cloud Run will work to make the 'status'\nmatch the requested 'spec'.\n\nMay provide metadata.resourceVersion to enforce update from last read for\noptimistic concurrency control.",
5837	//   "flatPath": "apis/domains.cloudrun.com/v1/namespaces/{namespacesId}/autodomainmappings/{autodomainmappingsId}",
5838	//   "httpMethod": "PUT",
5839	//   "id": "run.namespaces.autodomainmappings.replaceAutoDomainMapping",
5840	//   "parameterOrder": [
5841	//     "name"
5842	//   ],
5843	//   "parameters": {
5844	//     "name": {
5845	//       "description": "The name of the auto domain mapping being retrieved. If needed, replace\n{namespace_id} with the project ID.",
5846	//       "location": "path",
5847	//       "pattern": "^namespaces/[^/]+/autodomainmappings/[^/]+$",
5848	//       "required": true,
5849	//       "type": "string"
5850	//     }
5851	//   },
5852	//   "path": "apis/domains.cloudrun.com/v1/{+name}",
5853	//   "request": {
5854	//     "$ref": "AutoDomainMapping"
5855	//   },
5856	//   "response": {
5857	//     "$ref": "AutoDomainMapping"
5858	//   },
5859	//   "scopes": [
5860	//     "https://www.googleapis.com/auth/cloud-platform"
5861	//   ]
5862	// }
5863
5864}
5865
5866// method id "run.namespaces.configurations.create":
5867
5868type NamespacesConfigurationsCreateCall struct {
5869	s             *APIService
5870	parent        string
5871	configuration *Configuration
5872	urlParams_    gensupport.URLParams
5873	ctx_          context.Context
5874	header_       http.Header
5875}
5876
5877// Create: Create a configuration.
5878func (r *NamespacesConfigurationsService) Create(parent string, configuration *Configuration) *NamespacesConfigurationsCreateCall {
5879	c := &NamespacesConfigurationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5880	c.parent = parent
5881	c.configuration = configuration
5882	return c
5883}
5884
5885// Fields allows partial responses to be retrieved. See
5886// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
5887// for more information.
5888func (c *NamespacesConfigurationsCreateCall) Fields(s ...googleapi.Field) *NamespacesConfigurationsCreateCall {
5889	c.urlParams_.Set("fields", googleapi.CombineFields(s))
5890	return c
5891}
5892
5893// Context sets the context to be used in this call's Do method. Any
5894// pending HTTP request will be aborted if the provided context is
5895// canceled.
5896func (c *NamespacesConfigurationsCreateCall) Context(ctx context.Context) *NamespacesConfigurationsCreateCall {
5897	c.ctx_ = ctx
5898	return c
5899}
5900
5901// Header returns an http.Header that can be modified by the caller to
5902// add HTTP headers to the request.
5903func (c *NamespacesConfigurationsCreateCall) Header() http.Header {
5904	if c.header_ == nil {
5905		c.header_ = make(http.Header)
5906	}
5907	return c.header_
5908}
5909
5910func (c *NamespacesConfigurationsCreateCall) doRequest(alt string) (*http.Response, error) {
5911	reqHeaders := make(http.Header)
5912	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
5913	for k, v := range c.header_ {
5914		reqHeaders[k] = v
5915	}
5916	reqHeaders.Set("User-Agent", c.s.userAgent())
5917	var body io.Reader = nil
5918	body, err := googleapi.WithoutDataWrapper.JSONReader(c.configuration)
5919	if err != nil {
5920		return nil, err
5921	}
5922	reqHeaders.Set("Content-Type", "application/json")
5923	c.urlParams_.Set("alt", alt)
5924	c.urlParams_.Set("prettyPrint", "false")
5925	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/serving.knative.dev/v1/{+parent}/configurations")
5926	urls += "?" + c.urlParams_.Encode()
5927	req, err := http.NewRequest("POST", urls, body)
5928	if err != nil {
5929		return nil, err
5930	}
5931	req.Header = reqHeaders
5932	googleapi.Expand(req.URL, map[string]string{
5933		"parent": c.parent,
5934	})
5935	return gensupport.SendRequest(c.ctx_, c.s.client, req)
5936}
5937
5938// Do executes the "run.namespaces.configurations.create" call.
5939// Exactly one of *Configuration or error will be non-nil. Any non-2xx
5940// status code is an error. Response headers are in either
5941// *Configuration.ServerResponse.Header or (if a response was returned
5942// at all) in error.(*googleapi.Error).Header. Use
5943// googleapi.IsNotModified to check whether the returned error was
5944// because http.StatusNotModified was returned.
5945func (c *NamespacesConfigurationsCreateCall) Do(opts ...googleapi.CallOption) (*Configuration, error) {
5946	gensupport.SetOptions(c.urlParams_, opts...)
5947	res, err := c.doRequest("json")
5948	if res != nil && res.StatusCode == http.StatusNotModified {
5949		if res.Body != nil {
5950			res.Body.Close()
5951		}
5952		return nil, &googleapi.Error{
5953			Code:   res.StatusCode,
5954			Header: res.Header,
5955		}
5956	}
5957	if err != nil {
5958		return nil, err
5959	}
5960	defer googleapi.CloseBody(res)
5961	if err := googleapi.CheckResponse(res); err != nil {
5962		return nil, err
5963	}
5964	ret := &Configuration{
5965		ServerResponse: googleapi.ServerResponse{
5966			Header:         res.Header,
5967			HTTPStatusCode: res.StatusCode,
5968		},
5969	}
5970	target := &ret
5971	if err := gensupport.DecodeResponse(target, res); err != nil {
5972		return nil, err
5973	}
5974	return ret, nil
5975	// {
5976	//   "description": "Create a configuration.",
5977	//   "flatPath": "apis/serving.knative.dev/v1/namespaces/{namespacesId}/configurations",
5978	//   "httpMethod": "POST",
5979	//   "id": "run.namespaces.configurations.create",
5980	//   "parameterOrder": [
5981	//     "parent"
5982	//   ],
5983	//   "parameters": {
5984	//     "parent": {
5985	//       "description": "The project ID or project number in which this configuration should be\ncreated.",
5986	//       "location": "path",
5987	//       "pattern": "^namespaces/[^/]+$",
5988	//       "required": true,
5989	//       "type": "string"
5990	//     }
5991	//   },
5992	//   "path": "apis/serving.knative.dev/v1/{+parent}/configurations",
5993	//   "request": {
5994	//     "$ref": "Configuration"
5995	//   },
5996	//   "response": {
5997	//     "$ref": "Configuration"
5998	//   },
5999	//   "scopes": [
6000	//     "https://www.googleapis.com/auth/cloud-platform"
6001	//   ]
6002	// }
6003
6004}
6005
6006// method id "run.namespaces.configurations.delete":
6007
6008type NamespacesConfigurationsDeleteCall struct {
6009	s          *APIService
6010	name       string
6011	urlParams_ gensupport.URLParams
6012	ctx_       context.Context
6013	header_    http.Header
6014}
6015
6016// Delete: delete a configuration.
6017// This will cause the configuration to delete all child revisions.
6018// Prior to
6019// calling this, any route referencing the configuration (or
6020// revision
6021// from the configuration) must be deleted.
6022func (r *NamespacesConfigurationsService) Delete(name string) *NamespacesConfigurationsDeleteCall {
6023	c := &NamespacesConfigurationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6024	c.name = name
6025	return c
6026}
6027
6028// ApiVersion sets the optional parameter "apiVersion": Cloud Run
6029// currently ignores this parameter.
6030func (c *NamespacesConfigurationsDeleteCall) ApiVersion(apiVersion string) *NamespacesConfigurationsDeleteCall {
6031	c.urlParams_.Set("apiVersion", apiVersion)
6032	return c
6033}
6034
6035// Kind sets the optional parameter "kind": Cloud Run currently ignores
6036// this parameter.
6037func (c *NamespacesConfigurationsDeleteCall) Kind(kind string) *NamespacesConfigurationsDeleteCall {
6038	c.urlParams_.Set("kind", kind)
6039	return c
6040}
6041
6042// PropagationPolicy sets the optional parameter "propagationPolicy":
6043// Specifies the propagation policy of delete. Cloud Run currently
6044// ignores
6045// this setting, and deletes in the background. Please
6046// see
6047// kubernetes.io/docs/concepts/workloads/controllers/garbage-collecti
6048// on/ for
6049// more information.
6050func (c *NamespacesConfigurationsDeleteCall) PropagationPolicy(propagationPolicy string) *NamespacesConfigurationsDeleteCall {
6051	c.urlParams_.Set("propagationPolicy", propagationPolicy)
6052	return c
6053}
6054
6055// Fields allows partial responses to be retrieved. See
6056// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
6057// for more information.
6058func (c *NamespacesConfigurationsDeleteCall) Fields(s ...googleapi.Field) *NamespacesConfigurationsDeleteCall {
6059	c.urlParams_.Set("fields", googleapi.CombineFields(s))
6060	return c
6061}
6062
6063// Context sets the context to be used in this call's Do method. Any
6064// pending HTTP request will be aborted if the provided context is
6065// canceled.
6066func (c *NamespacesConfigurationsDeleteCall) Context(ctx context.Context) *NamespacesConfigurationsDeleteCall {
6067	c.ctx_ = ctx
6068	return c
6069}
6070
6071// Header returns an http.Header that can be modified by the caller to
6072// add HTTP headers to the request.
6073func (c *NamespacesConfigurationsDeleteCall) Header() http.Header {
6074	if c.header_ == nil {
6075		c.header_ = make(http.Header)
6076	}
6077	return c.header_
6078}
6079
6080func (c *NamespacesConfigurationsDeleteCall) doRequest(alt string) (*http.Response, error) {
6081	reqHeaders := make(http.Header)
6082	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
6083	for k, v := range c.header_ {
6084		reqHeaders[k] = v
6085	}
6086	reqHeaders.Set("User-Agent", c.s.userAgent())
6087	var body io.Reader = nil
6088	c.urlParams_.Set("alt", alt)
6089	c.urlParams_.Set("prettyPrint", "false")
6090	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/serving.knative.dev/v1/{+name}")
6091	urls += "?" + c.urlParams_.Encode()
6092	req, err := http.NewRequest("DELETE", urls, body)
6093	if err != nil {
6094		return nil, err
6095	}
6096	req.Header = reqHeaders
6097	googleapi.Expand(req.URL, map[string]string{
6098		"name": c.name,
6099	})
6100	return gensupport.SendRequest(c.ctx_, c.s.client, req)
6101}
6102
6103// Do executes the "run.namespaces.configurations.delete" call.
6104// Exactly one of *Status or error will be non-nil. Any non-2xx status
6105// code is an error. Response headers are in either
6106// *Status.ServerResponse.Header or (if a response was returned at all)
6107// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
6108// check whether the returned error was because http.StatusNotModified
6109// was returned.
6110func (c *NamespacesConfigurationsDeleteCall) Do(opts ...googleapi.CallOption) (*Status, error) {
6111	gensupport.SetOptions(c.urlParams_, opts...)
6112	res, err := c.doRequest("json")
6113	if res != nil && res.StatusCode == http.StatusNotModified {
6114		if res.Body != nil {
6115			res.Body.Close()
6116		}
6117		return nil, &googleapi.Error{
6118			Code:   res.StatusCode,
6119			Header: res.Header,
6120		}
6121	}
6122	if err != nil {
6123		return nil, err
6124	}
6125	defer googleapi.CloseBody(res)
6126	if err := googleapi.CheckResponse(res); err != nil {
6127		return nil, err
6128	}
6129	ret := &Status{
6130		ServerResponse: googleapi.ServerResponse{
6131			Header:         res.Header,
6132			HTTPStatusCode: res.StatusCode,
6133		},
6134	}
6135	target := &ret
6136	if err := gensupport.DecodeResponse(target, res); err != nil {
6137		return nil, err
6138	}
6139	return ret, nil
6140	// {
6141	//   "description": "delete a configuration.\nThis will cause the configuration to delete all child revisions. Prior to\ncalling this, any route referencing the configuration (or revision\nfrom the configuration) must be deleted.",
6142	//   "flatPath": "apis/serving.knative.dev/v1/namespaces/{namespacesId}/configurations/{configurationsId}",
6143	//   "httpMethod": "DELETE",
6144	//   "id": "run.namespaces.configurations.delete",
6145	//   "parameterOrder": [
6146	//     "name"
6147	//   ],
6148	//   "parameters": {
6149	//     "apiVersion": {
6150	//       "description": "Cloud Run currently ignores this parameter.",
6151	//       "location": "query",
6152	//       "type": "string"
6153	//     },
6154	//     "kind": {
6155	//       "description": "Cloud Run currently ignores this parameter.",
6156	//       "location": "query",
6157	//       "type": "string"
6158	//     },
6159	//     "name": {
6160	//       "description": "The name of the configuration being deleted. If needed, replace\n{namespace_id} with the project ID.",
6161	//       "location": "path",
6162	//       "pattern": "^namespaces/[^/]+/configurations/[^/]+$",
6163	//       "required": true,
6164	//       "type": "string"
6165	//     },
6166	//     "propagationPolicy": {
6167	//       "description": "Specifies the propagation policy of delete. Cloud Run currently ignores\nthis setting, and deletes in the background. Please see\nkubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for\nmore information.",
6168	//       "location": "query",
6169	//       "type": "string"
6170	//     }
6171	//   },
6172	//   "path": "apis/serving.knative.dev/v1/{+name}",
6173	//   "response": {
6174	//     "$ref": "Status"
6175	//   },
6176	//   "scopes": [
6177	//     "https://www.googleapis.com/auth/cloud-platform"
6178	//   ]
6179	// }
6180
6181}
6182
6183// method id "run.namespaces.configurations.get":
6184
6185type NamespacesConfigurationsGetCall struct {
6186	s            *APIService
6187	name         string
6188	urlParams_   gensupport.URLParams
6189	ifNoneMatch_ string
6190	ctx_         context.Context
6191	header_      http.Header
6192}
6193
6194// Get: Get information about a configuration.
6195func (r *NamespacesConfigurationsService) Get(name string) *NamespacesConfigurationsGetCall {
6196	c := &NamespacesConfigurationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6197	c.name = name
6198	return c
6199}
6200
6201// Fields allows partial responses to be retrieved. See
6202// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
6203// for more information.
6204func (c *NamespacesConfigurationsGetCall) Fields(s ...googleapi.Field) *NamespacesConfigurationsGetCall {
6205	c.urlParams_.Set("fields", googleapi.CombineFields(s))
6206	return c
6207}
6208
6209// IfNoneMatch sets the optional parameter which makes the operation
6210// fail if the object's ETag matches the given value. This is useful for
6211// getting updates only after the object has changed since the last
6212// request. Use googleapi.IsNotModified to check whether the response
6213// error from Do is the result of In-None-Match.
6214func (c *NamespacesConfigurationsGetCall) IfNoneMatch(entityTag string) *NamespacesConfigurationsGetCall {
6215	c.ifNoneMatch_ = entityTag
6216	return c
6217}
6218
6219// Context sets the context to be used in this call's Do method. Any
6220// pending HTTP request will be aborted if the provided context is
6221// canceled.
6222func (c *NamespacesConfigurationsGetCall) Context(ctx context.Context) *NamespacesConfigurationsGetCall {
6223	c.ctx_ = ctx
6224	return c
6225}
6226
6227// Header returns an http.Header that can be modified by the caller to
6228// add HTTP headers to the request.
6229func (c *NamespacesConfigurationsGetCall) Header() http.Header {
6230	if c.header_ == nil {
6231		c.header_ = make(http.Header)
6232	}
6233	return c.header_
6234}
6235
6236func (c *NamespacesConfigurationsGetCall) doRequest(alt string) (*http.Response, error) {
6237	reqHeaders := make(http.Header)
6238	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
6239	for k, v := range c.header_ {
6240		reqHeaders[k] = v
6241	}
6242	reqHeaders.Set("User-Agent", c.s.userAgent())
6243	if c.ifNoneMatch_ != "" {
6244		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
6245	}
6246	var body io.Reader = nil
6247	c.urlParams_.Set("alt", alt)
6248	c.urlParams_.Set("prettyPrint", "false")
6249	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/serving.knative.dev/v1/{+name}")
6250	urls += "?" + c.urlParams_.Encode()
6251	req, err := http.NewRequest("GET", urls, body)
6252	if err != nil {
6253		return nil, err
6254	}
6255	req.Header = reqHeaders
6256	googleapi.Expand(req.URL, map[string]string{
6257		"name": c.name,
6258	})
6259	return gensupport.SendRequest(c.ctx_, c.s.client, req)
6260}
6261
6262// Do executes the "run.namespaces.configurations.get" call.
6263// Exactly one of *Configuration or error will be non-nil. Any non-2xx
6264// status code is an error. Response headers are in either
6265// *Configuration.ServerResponse.Header or (if a response was returned
6266// at all) in error.(*googleapi.Error).Header. Use
6267// googleapi.IsNotModified to check whether the returned error was
6268// because http.StatusNotModified was returned.
6269func (c *NamespacesConfigurationsGetCall) Do(opts ...googleapi.CallOption) (*Configuration, error) {
6270	gensupport.SetOptions(c.urlParams_, opts...)
6271	res, err := c.doRequest("json")
6272	if res != nil && res.StatusCode == http.StatusNotModified {
6273		if res.Body != nil {
6274			res.Body.Close()
6275		}
6276		return nil, &googleapi.Error{
6277			Code:   res.StatusCode,
6278			Header: res.Header,
6279		}
6280	}
6281	if err != nil {
6282		return nil, err
6283	}
6284	defer googleapi.CloseBody(res)
6285	if err := googleapi.CheckResponse(res); err != nil {
6286		return nil, err
6287	}
6288	ret := &Configuration{
6289		ServerResponse: googleapi.ServerResponse{
6290			Header:         res.Header,
6291			HTTPStatusCode: res.StatusCode,
6292		},
6293	}
6294	target := &ret
6295	if err := gensupport.DecodeResponse(target, res); err != nil {
6296		return nil, err
6297	}
6298	return ret, nil
6299	// {
6300	//   "description": "Get information about a configuration.",
6301	//   "flatPath": "apis/serving.knative.dev/v1/namespaces/{namespacesId}/configurations/{configurationsId}",
6302	//   "httpMethod": "GET",
6303	//   "id": "run.namespaces.configurations.get",
6304	//   "parameterOrder": [
6305	//     "name"
6306	//   ],
6307	//   "parameters": {
6308	//     "name": {
6309	//       "description": "The name of the configuration being retrieved. If needed, replace\n{namespace_id} with the project ID.",
6310	//       "location": "path",
6311	//       "pattern": "^namespaces/[^/]+/configurations/[^/]+$",
6312	//       "required": true,
6313	//       "type": "string"
6314	//     }
6315	//   },
6316	//   "path": "apis/serving.knative.dev/v1/{+name}",
6317	//   "response": {
6318	//     "$ref": "Configuration"
6319	//   },
6320	//   "scopes": [
6321	//     "https://www.googleapis.com/auth/cloud-platform"
6322	//   ]
6323	// }
6324
6325}
6326
6327// method id "run.namespaces.configurations.list":
6328
6329type NamespacesConfigurationsListCall struct {
6330	s            *APIService
6331	parent       string
6332	urlParams_   gensupport.URLParams
6333	ifNoneMatch_ string
6334	ctx_         context.Context
6335	header_      http.Header
6336}
6337
6338// List: List configurations.
6339func (r *NamespacesConfigurationsService) List(parent string) *NamespacesConfigurationsListCall {
6340	c := &NamespacesConfigurationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6341	c.parent = parent
6342	return c
6343}
6344
6345// Continue sets the optional parameter "continue": Optional encoded
6346// string to continue paging.
6347func (c *NamespacesConfigurationsListCall) Continue(continue_ string) *NamespacesConfigurationsListCall {
6348	c.urlParams_.Set("continue", continue_)
6349	return c
6350}
6351
6352// FieldSelector sets the optional parameter "fieldSelector": Allows to
6353// filter resources based on a specific value for a field name.
6354// Send this in a query string format. i.e. 'metadata.name%3Dlorem'.
6355// Not currently used by Cloud Run.
6356func (c *NamespacesConfigurationsListCall) FieldSelector(fieldSelector string) *NamespacesConfigurationsListCall {
6357	c.urlParams_.Set("fieldSelector", fieldSelector)
6358	return c
6359}
6360
6361// IncludeUninitialized sets the optional parameter
6362// "includeUninitialized": Not currently used by Cloud Run.
6363func (c *NamespacesConfigurationsListCall) IncludeUninitialized(includeUninitialized bool) *NamespacesConfigurationsListCall {
6364	c.urlParams_.Set("includeUninitialized", fmt.Sprint(includeUninitialized))
6365	return c
6366}
6367
6368// LabelSelector sets the optional parameter "labelSelector": Allows to
6369// filter resources based on a label. Supported operations are
6370// =, !=, exists, in, and notIn.
6371func (c *NamespacesConfigurationsListCall) LabelSelector(labelSelector string) *NamespacesConfigurationsListCall {
6372	c.urlParams_.Set("labelSelector", labelSelector)
6373	return c
6374}
6375
6376// Limit sets the optional parameter "limit": The maximum number of
6377// records that should be returned.
6378func (c *NamespacesConfigurationsListCall) Limit(limit int64) *NamespacesConfigurationsListCall {
6379	c.urlParams_.Set("limit", fmt.Sprint(limit))
6380	return c
6381}
6382
6383// ResourceVersion sets the optional parameter "resourceVersion": The
6384// baseline resource version from which the list or watch operation
6385// should
6386// start. Not currently used by Cloud Run.
6387func (c *NamespacesConfigurationsListCall) ResourceVersion(resourceVersion string) *NamespacesConfigurationsListCall {
6388	c.urlParams_.Set("resourceVersion", resourceVersion)
6389	return c
6390}
6391
6392// Watch sets the optional parameter "watch": Flag that indicates that
6393// the client expects to watch this resource as well.
6394// Not currently used by Cloud Run.
6395func (c *NamespacesConfigurationsListCall) Watch(watch bool) *NamespacesConfigurationsListCall {
6396	c.urlParams_.Set("watch", fmt.Sprint(watch))
6397	return c
6398}
6399
6400// Fields allows partial responses to be retrieved. See
6401// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
6402// for more information.
6403func (c *NamespacesConfigurationsListCall) Fields(s ...googleapi.Field) *NamespacesConfigurationsListCall {
6404	c.urlParams_.Set("fields", googleapi.CombineFields(s))
6405	return c
6406}
6407
6408// IfNoneMatch sets the optional parameter which makes the operation
6409// fail if the object's ETag matches the given value. This is useful for
6410// getting updates only after the object has changed since the last
6411// request. Use googleapi.IsNotModified to check whether the response
6412// error from Do is the result of In-None-Match.
6413func (c *NamespacesConfigurationsListCall) IfNoneMatch(entityTag string) *NamespacesConfigurationsListCall {
6414	c.ifNoneMatch_ = entityTag
6415	return c
6416}
6417
6418// Context sets the context to be used in this call's Do method. Any
6419// pending HTTP request will be aborted if the provided context is
6420// canceled.
6421func (c *NamespacesConfigurationsListCall) Context(ctx context.Context) *NamespacesConfigurationsListCall {
6422	c.ctx_ = ctx
6423	return c
6424}
6425
6426// Header returns an http.Header that can be modified by the caller to
6427// add HTTP headers to the request.
6428func (c *NamespacesConfigurationsListCall) Header() http.Header {
6429	if c.header_ == nil {
6430		c.header_ = make(http.Header)
6431	}
6432	return c.header_
6433}
6434
6435func (c *NamespacesConfigurationsListCall) doRequest(alt string) (*http.Response, error) {
6436	reqHeaders := make(http.Header)
6437	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
6438	for k, v := range c.header_ {
6439		reqHeaders[k] = v
6440	}
6441	reqHeaders.Set("User-Agent", c.s.userAgent())
6442	if c.ifNoneMatch_ != "" {
6443		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
6444	}
6445	var body io.Reader = nil
6446	c.urlParams_.Set("alt", alt)
6447	c.urlParams_.Set("prettyPrint", "false")
6448	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/serving.knative.dev/v1/{+parent}/configurations")
6449	urls += "?" + c.urlParams_.Encode()
6450	req, err := http.NewRequest("GET", urls, body)
6451	if err != nil {
6452		return nil, err
6453	}
6454	req.Header = reqHeaders
6455	googleapi.Expand(req.URL, map[string]string{
6456		"parent": c.parent,
6457	})
6458	return gensupport.SendRequest(c.ctx_, c.s.client, req)
6459}
6460
6461// Do executes the "run.namespaces.configurations.list" call.
6462// Exactly one of *ListConfigurationsResponse or error will be non-nil.
6463// Any non-2xx status code is an error. Response headers are in either
6464// *ListConfigurationsResponse.ServerResponse.Header or (if a response
6465// was returned at all) in error.(*googleapi.Error).Header. Use
6466// googleapi.IsNotModified to check whether the returned error was
6467// because http.StatusNotModified was returned.
6468func (c *NamespacesConfigurationsListCall) Do(opts ...googleapi.CallOption) (*ListConfigurationsResponse, error) {
6469	gensupport.SetOptions(c.urlParams_, opts...)
6470	res, err := c.doRequest("json")
6471	if res != nil && res.StatusCode == http.StatusNotModified {
6472		if res.Body != nil {
6473			res.Body.Close()
6474		}
6475		return nil, &googleapi.Error{
6476			Code:   res.StatusCode,
6477			Header: res.Header,
6478		}
6479	}
6480	if err != nil {
6481		return nil, err
6482	}
6483	defer googleapi.CloseBody(res)
6484	if err := googleapi.CheckResponse(res); err != nil {
6485		return nil, err
6486	}
6487	ret := &ListConfigurationsResponse{
6488		ServerResponse: googleapi.ServerResponse{
6489			Header:         res.Header,
6490			HTTPStatusCode: res.StatusCode,
6491		},
6492	}
6493	target := &ret
6494	if err := gensupport.DecodeResponse(target, res); err != nil {
6495		return nil, err
6496	}
6497	return ret, nil
6498	// {
6499	//   "description": "List configurations.",
6500	//   "flatPath": "apis/serving.knative.dev/v1/namespaces/{namespacesId}/configurations",
6501	//   "httpMethod": "GET",
6502	//   "id": "run.namespaces.configurations.list",
6503	//   "parameterOrder": [
6504	//     "parent"
6505	//   ],
6506	//   "parameters": {
6507	//     "continue": {
6508	//       "description": "Optional encoded string to continue paging.",
6509	//       "location": "query",
6510	//       "type": "string"
6511	//     },
6512	//     "fieldSelector": {
6513	//       "description": "Allows to filter resources based on a specific value for a field name.\nSend this in a query string format. i.e. 'metadata.name%3Dlorem'.\nNot currently used by Cloud Run.",
6514	//       "location": "query",
6515	//       "type": "string"
6516	//     },
6517	//     "includeUninitialized": {
6518	//       "description": "Not currently used by Cloud Run.",
6519	//       "location": "query",
6520	//       "type": "boolean"
6521	//     },
6522	//     "labelSelector": {
6523	//       "description": "Allows to filter resources based on a label. Supported operations are\n=, !=, exists, in, and notIn.",
6524	//       "location": "query",
6525	//       "type": "string"
6526	//     },
6527	//     "limit": {
6528	//       "description": "The maximum number of records that should be returned.",
6529	//       "format": "int32",
6530	//       "location": "query",
6531	//       "type": "integer"
6532	//     },
6533	//     "parent": {
6534	//       "description": "The project ID or project number from which the configurations should be\nlisted.",
6535	//       "location": "path",
6536	//       "pattern": "^namespaces/[^/]+$",
6537	//       "required": true,
6538	//       "type": "string"
6539	//     },
6540	//     "resourceVersion": {
6541	//       "description": "The baseline resource version from which the list or watch operation should\nstart. Not currently used by Cloud Run.",
6542	//       "location": "query",
6543	//       "type": "string"
6544	//     },
6545	//     "watch": {
6546	//       "description": "Flag that indicates that the client expects to watch this resource as well.\nNot currently used by Cloud Run.",
6547	//       "location": "query",
6548	//       "type": "boolean"
6549	//     }
6550	//   },
6551	//   "path": "apis/serving.knative.dev/v1/{+parent}/configurations",
6552	//   "response": {
6553	//     "$ref": "ListConfigurationsResponse"
6554	//   },
6555	//   "scopes": [
6556	//     "https://www.googleapis.com/auth/cloud-platform"
6557	//   ]
6558	// }
6559
6560}
6561
6562// method id "run.namespaces.configurations.replaceConfiguration":
6563
6564type NamespacesConfigurationsReplaceConfigurationCall struct {
6565	s             *APIService
6566	name          string
6567	configuration *Configuration
6568	urlParams_    gensupport.URLParams
6569	ctx_          context.Context
6570	header_       http.Header
6571}
6572
6573// ReplaceConfiguration: Replace a configuration.
6574//
6575// Only the spec and metadata labels and annotations are modifiable.
6576// After
6577// the Update request, Cloud Run will work to make the 'status'
6578// match the requested 'spec'.
6579//
6580// May provide metadata.resourceVersion to enforce update from last read
6581// for
6582// optimistic concurrency control.
6583func (r *NamespacesConfigurationsService) ReplaceConfiguration(name string, configuration *Configuration) *NamespacesConfigurationsReplaceConfigurationCall {
6584	c := &NamespacesConfigurationsReplaceConfigurationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6585	c.name = name
6586	c.configuration = configuration
6587	return c
6588}
6589
6590// Fields allows partial responses to be retrieved. See
6591// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
6592// for more information.
6593func (c *NamespacesConfigurationsReplaceConfigurationCall) Fields(s ...googleapi.Field) *NamespacesConfigurationsReplaceConfigurationCall {
6594	c.urlParams_.Set("fields", googleapi.CombineFields(s))
6595	return c
6596}
6597
6598// Context sets the context to be used in this call's Do method. Any
6599// pending HTTP request will be aborted if the provided context is
6600// canceled.
6601func (c *NamespacesConfigurationsReplaceConfigurationCall) Context(ctx context.Context) *NamespacesConfigurationsReplaceConfigurationCall {
6602	c.ctx_ = ctx
6603	return c
6604}
6605
6606// Header returns an http.Header that can be modified by the caller to
6607// add HTTP headers to the request.
6608func (c *NamespacesConfigurationsReplaceConfigurationCall) Header() http.Header {
6609	if c.header_ == nil {
6610		c.header_ = make(http.Header)
6611	}
6612	return c.header_
6613}
6614
6615func (c *NamespacesConfigurationsReplaceConfigurationCall) doRequest(alt string) (*http.Response, error) {
6616	reqHeaders := make(http.Header)
6617	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
6618	for k, v := range c.header_ {
6619		reqHeaders[k] = v
6620	}
6621	reqHeaders.Set("User-Agent", c.s.userAgent())
6622	var body io.Reader = nil
6623	body, err := googleapi.WithoutDataWrapper.JSONReader(c.configuration)
6624	if err != nil {
6625		return nil, err
6626	}
6627	reqHeaders.Set("Content-Type", "application/json")
6628	c.urlParams_.Set("alt", alt)
6629	c.urlParams_.Set("prettyPrint", "false")
6630	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/serving.knative.dev/v1/{+name}")
6631	urls += "?" + c.urlParams_.Encode()
6632	req, err := http.NewRequest("PUT", urls, body)
6633	if err != nil {
6634		return nil, err
6635	}
6636	req.Header = reqHeaders
6637	googleapi.Expand(req.URL, map[string]string{
6638		"name": c.name,
6639	})
6640	return gensupport.SendRequest(c.ctx_, c.s.client, req)
6641}
6642
6643// Do executes the "run.namespaces.configurations.replaceConfiguration" call.
6644// Exactly one of *Configuration or error will be non-nil. Any non-2xx
6645// status code is an error. Response headers are in either
6646// *Configuration.ServerResponse.Header or (if a response was returned
6647// at all) in error.(*googleapi.Error).Header. Use
6648// googleapi.IsNotModified to check whether the returned error was
6649// because http.StatusNotModified was returned.
6650func (c *NamespacesConfigurationsReplaceConfigurationCall) Do(opts ...googleapi.CallOption) (*Configuration, error) {
6651	gensupport.SetOptions(c.urlParams_, opts...)
6652	res, err := c.doRequest("json")
6653	if res != nil && res.StatusCode == http.StatusNotModified {
6654		if res.Body != nil {
6655			res.Body.Close()
6656		}
6657		return nil, &googleapi.Error{
6658			Code:   res.StatusCode,
6659			Header: res.Header,
6660		}
6661	}
6662	if err != nil {
6663		return nil, err
6664	}
6665	defer googleapi.CloseBody(res)
6666	if err := googleapi.CheckResponse(res); err != nil {
6667		return nil, err
6668	}
6669	ret := &Configuration{
6670		ServerResponse: googleapi.ServerResponse{
6671			Header:         res.Header,
6672			HTTPStatusCode: res.StatusCode,
6673		},
6674	}
6675	target := &ret
6676	if err := gensupport.DecodeResponse(target, res); err != nil {
6677		return nil, err
6678	}
6679	return ret, nil
6680	// {
6681	//   "description": "Replace a configuration.\n\nOnly the spec and metadata labels and annotations are modifiable. After\nthe Update request, Cloud Run will work to make the 'status'\nmatch the requested 'spec'.\n\nMay provide metadata.resourceVersion to enforce update from last read for\noptimistic concurrency control.",
6682	//   "flatPath": "apis/serving.knative.dev/v1/namespaces/{namespacesId}/configurations/{configurationsId}",
6683	//   "httpMethod": "PUT",
6684	//   "id": "run.namespaces.configurations.replaceConfiguration",
6685	//   "parameterOrder": [
6686	//     "name"
6687	//   ],
6688	//   "parameters": {
6689	//     "name": {
6690	//       "description": "The name of the configuration being retrieved. If needed, replace\n{namespace_id} with the project ID.",
6691	//       "location": "path",
6692	//       "pattern": "^namespaces/[^/]+/configurations/[^/]+$",
6693	//       "required": true,
6694	//       "type": "string"
6695	//     }
6696	//   },
6697	//   "path": "apis/serving.knative.dev/v1/{+name}",
6698	//   "request": {
6699	//     "$ref": "Configuration"
6700	//   },
6701	//   "response": {
6702	//     "$ref": "Configuration"
6703	//   },
6704	//   "scopes": [
6705	//     "https://www.googleapis.com/auth/cloud-platform"
6706	//   ]
6707	// }
6708
6709}
6710
6711// method id "run.namespaces.domainmappings.create":
6712
6713type NamespacesDomainmappingsCreateCall struct {
6714	s             *APIService
6715	parent        string
6716	domainmapping *DomainMapping
6717	urlParams_    gensupport.URLParams
6718	ctx_          context.Context
6719	header_       http.Header
6720}
6721
6722// Create: Create a new domain mapping.
6723func (r *NamespacesDomainmappingsService) Create(parent string, domainmapping *DomainMapping) *NamespacesDomainmappingsCreateCall {
6724	c := &NamespacesDomainmappingsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6725	c.parent = parent
6726	c.domainmapping = domainmapping
6727	return c
6728}
6729
6730// Fields allows partial responses to be retrieved. See
6731// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
6732// for more information.
6733func (c *NamespacesDomainmappingsCreateCall) Fields(s ...googleapi.Field) *NamespacesDomainmappingsCreateCall {
6734	c.urlParams_.Set("fields", googleapi.CombineFields(s))
6735	return c
6736}
6737
6738// Context sets the context to be used in this call's Do method. Any
6739// pending HTTP request will be aborted if the provided context is
6740// canceled.
6741func (c *NamespacesDomainmappingsCreateCall) Context(ctx context.Context) *NamespacesDomainmappingsCreateCall {
6742	c.ctx_ = ctx
6743	return c
6744}
6745
6746// Header returns an http.Header that can be modified by the caller to
6747// add HTTP headers to the request.
6748func (c *NamespacesDomainmappingsCreateCall) Header() http.Header {
6749	if c.header_ == nil {
6750		c.header_ = make(http.Header)
6751	}
6752	return c.header_
6753}
6754
6755func (c *NamespacesDomainmappingsCreateCall) doRequest(alt string) (*http.Response, error) {
6756	reqHeaders := make(http.Header)
6757	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
6758	for k, v := range c.header_ {
6759		reqHeaders[k] = v
6760	}
6761	reqHeaders.Set("User-Agent", c.s.userAgent())
6762	var body io.Reader = nil
6763	body, err := googleapi.WithoutDataWrapper.JSONReader(c.domainmapping)
6764	if err != nil {
6765		return nil, err
6766	}
6767	reqHeaders.Set("Content-Type", "application/json")
6768	c.urlParams_.Set("alt", alt)
6769	c.urlParams_.Set("prettyPrint", "false")
6770	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/domains.cloudrun.com/v1/{+parent}/domainmappings")
6771	urls += "?" + c.urlParams_.Encode()
6772	req, err := http.NewRequest("POST", urls, body)
6773	if err != nil {
6774		return nil, err
6775	}
6776	req.Header = reqHeaders
6777	googleapi.Expand(req.URL, map[string]string{
6778		"parent": c.parent,
6779	})
6780	return gensupport.SendRequest(c.ctx_, c.s.client, req)
6781}
6782
6783// Do executes the "run.namespaces.domainmappings.create" call.
6784// Exactly one of *DomainMapping or error will be non-nil. Any non-2xx
6785// status code is an error. Response headers are in either
6786// *DomainMapping.ServerResponse.Header or (if a response was returned
6787// at all) in error.(*googleapi.Error).Header. Use
6788// googleapi.IsNotModified to check whether the returned error was
6789// because http.StatusNotModified was returned.
6790func (c *NamespacesDomainmappingsCreateCall) Do(opts ...googleapi.CallOption) (*DomainMapping, error) {
6791	gensupport.SetOptions(c.urlParams_, opts...)
6792	res, err := c.doRequest("json")
6793	if res != nil && res.StatusCode == http.StatusNotModified {
6794		if res.Body != nil {
6795			res.Body.Close()
6796		}
6797		return nil, &googleapi.Error{
6798			Code:   res.StatusCode,
6799			Header: res.Header,
6800		}
6801	}
6802	if err != nil {
6803		return nil, err
6804	}
6805	defer googleapi.CloseBody(res)
6806	if err := googleapi.CheckResponse(res); err != nil {
6807		return nil, err
6808	}
6809	ret := &DomainMapping{
6810		ServerResponse: googleapi.ServerResponse{
6811			Header:         res.Header,
6812			HTTPStatusCode: res.StatusCode,
6813		},
6814	}
6815	target := &ret
6816	if err := gensupport.DecodeResponse(target, res); err != nil {
6817		return nil, err
6818	}
6819	return ret, nil
6820	// {
6821	//   "description": "Create a new domain mapping.",
6822	//   "flatPath": "apis/domains.cloudrun.com/v1/namespaces/{namespacesId}/domainmappings",
6823	//   "httpMethod": "POST",
6824	//   "id": "run.namespaces.domainmappings.create",
6825	//   "parameterOrder": [
6826	//     "parent"
6827	//   ],
6828	//   "parameters": {
6829	//     "parent": {
6830	//       "description": "The project ID or project number in which this domain mapping should be\ncreated.",
6831	//       "location": "path",
6832	//       "pattern": "^namespaces/[^/]+$",
6833	//       "required": true,
6834	//       "type": "string"
6835	//     }
6836	//   },
6837	//   "path": "apis/domains.cloudrun.com/v1/{+parent}/domainmappings",
6838	//   "request": {
6839	//     "$ref": "DomainMapping"
6840	//   },
6841	//   "response": {
6842	//     "$ref": "DomainMapping"
6843	//   },
6844	//   "scopes": [
6845	//     "https://www.googleapis.com/auth/cloud-platform"
6846	//   ]
6847	// }
6848
6849}
6850
6851// method id "run.namespaces.domainmappings.delete":
6852
6853type NamespacesDomainmappingsDeleteCall struct {
6854	s          *APIService
6855	name       string
6856	urlParams_ gensupport.URLParams
6857	ctx_       context.Context
6858	header_    http.Header
6859}
6860
6861// Delete: Delete a domain mapping.
6862func (r *NamespacesDomainmappingsService) Delete(name string) *NamespacesDomainmappingsDeleteCall {
6863	c := &NamespacesDomainmappingsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6864	c.name = name
6865	return c
6866}
6867
6868// ApiVersion sets the optional parameter "apiVersion": Cloud Run
6869// currently ignores this parameter.
6870func (c *NamespacesDomainmappingsDeleteCall) ApiVersion(apiVersion string) *NamespacesDomainmappingsDeleteCall {
6871	c.urlParams_.Set("apiVersion", apiVersion)
6872	return c
6873}
6874
6875// Kind sets the optional parameter "kind": Cloud Run currently ignores
6876// this parameter.
6877func (c *NamespacesDomainmappingsDeleteCall) Kind(kind string) *NamespacesDomainmappingsDeleteCall {
6878	c.urlParams_.Set("kind", kind)
6879	return c
6880}
6881
6882// PropagationPolicy sets the optional parameter "propagationPolicy":
6883// Specifies the propagation policy of delete. Cloud Run currently
6884// ignores
6885// this setting, and deletes in the background. Please
6886// see
6887// kubernetes.io/docs/concepts/workloads/controllers/garbage-collecti
6888// on/ for
6889// more information.
6890func (c *NamespacesDomainmappingsDeleteCall) PropagationPolicy(propagationPolicy string) *NamespacesDomainmappingsDeleteCall {
6891	c.urlParams_.Set("propagationPolicy", propagationPolicy)
6892	return c
6893}
6894
6895// Fields allows partial responses to be retrieved. See
6896// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
6897// for more information.
6898func (c *NamespacesDomainmappingsDeleteCall) Fields(s ...googleapi.Field) *NamespacesDomainmappingsDeleteCall {
6899	c.urlParams_.Set("fields", googleapi.CombineFields(s))
6900	return c
6901}
6902
6903// Context sets the context to be used in this call's Do method. Any
6904// pending HTTP request will be aborted if the provided context is
6905// canceled.
6906func (c *NamespacesDomainmappingsDeleteCall) Context(ctx context.Context) *NamespacesDomainmappingsDeleteCall {
6907	c.ctx_ = ctx
6908	return c
6909}
6910
6911// Header returns an http.Header that can be modified by the caller to
6912// add HTTP headers to the request.
6913func (c *NamespacesDomainmappingsDeleteCall) Header() http.Header {
6914	if c.header_ == nil {
6915		c.header_ = make(http.Header)
6916	}
6917	return c.header_
6918}
6919
6920func (c *NamespacesDomainmappingsDeleteCall) doRequest(alt string) (*http.Response, error) {
6921	reqHeaders := make(http.Header)
6922	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
6923	for k, v := range c.header_ {
6924		reqHeaders[k] = v
6925	}
6926	reqHeaders.Set("User-Agent", c.s.userAgent())
6927	var body io.Reader = nil
6928	c.urlParams_.Set("alt", alt)
6929	c.urlParams_.Set("prettyPrint", "false")
6930	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/domains.cloudrun.com/v1/{+name}")
6931	urls += "?" + c.urlParams_.Encode()
6932	req, err := http.NewRequest("DELETE", urls, body)
6933	if err != nil {
6934		return nil, err
6935	}
6936	req.Header = reqHeaders
6937	googleapi.Expand(req.URL, map[string]string{
6938		"name": c.name,
6939	})
6940	return gensupport.SendRequest(c.ctx_, c.s.client, req)
6941}
6942
6943// Do executes the "run.namespaces.domainmappings.delete" call.
6944// Exactly one of *Status or error will be non-nil. Any non-2xx status
6945// code is an error. Response headers are in either
6946// *Status.ServerResponse.Header or (if a response was returned at all)
6947// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
6948// check whether the returned error was because http.StatusNotModified
6949// was returned.
6950func (c *NamespacesDomainmappingsDeleteCall) Do(opts ...googleapi.CallOption) (*Status, error) {
6951	gensupport.SetOptions(c.urlParams_, opts...)
6952	res, err := c.doRequest("json")
6953	if res != nil && res.StatusCode == http.StatusNotModified {
6954		if res.Body != nil {
6955			res.Body.Close()
6956		}
6957		return nil, &googleapi.Error{
6958			Code:   res.StatusCode,
6959			Header: res.Header,
6960		}
6961	}
6962	if err != nil {
6963		return nil, err
6964	}
6965	defer googleapi.CloseBody(res)
6966	if err := googleapi.CheckResponse(res); err != nil {
6967		return nil, err
6968	}
6969	ret := &Status{
6970		ServerResponse: googleapi.ServerResponse{
6971			Header:         res.Header,
6972			HTTPStatusCode: res.StatusCode,
6973		},
6974	}
6975	target := &ret
6976	if err := gensupport.DecodeResponse(target, res); err != nil {
6977		return nil, err
6978	}
6979	return ret, nil
6980	// {
6981	//   "description": "Delete a domain mapping.",
6982	//   "flatPath": "apis/domains.cloudrun.com/v1/namespaces/{namespacesId}/domainmappings/{domainmappingsId}",
6983	//   "httpMethod": "DELETE",
6984	//   "id": "run.namespaces.domainmappings.delete",
6985	//   "parameterOrder": [
6986	//     "name"
6987	//   ],
6988	//   "parameters": {
6989	//     "apiVersion": {
6990	//       "description": "Cloud Run currently ignores this parameter.",
6991	//       "location": "query",
6992	//       "type": "string"
6993	//     },
6994	//     "kind": {
6995	//       "description": "Cloud Run currently ignores this parameter.",
6996	//       "location": "query",
6997	//       "type": "string"
6998	//     },
6999	//     "name": {
7000	//       "description": "The name of the domain mapping being deleted. If needed, replace\n{namespace_id} with the project ID.",
7001	//       "location": "path",
7002	//       "pattern": "^namespaces/[^/]+/domainmappings/[^/]+$",
7003	//       "required": true,
7004	//       "type": "string"
7005	//     },
7006	//     "propagationPolicy": {
7007	//       "description": "Specifies the propagation policy of delete. Cloud Run currently ignores\nthis setting, and deletes in the background. Please see\nkubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for\nmore information.",
7008	//       "location": "query",
7009	//       "type": "string"
7010	//     }
7011	//   },
7012	//   "path": "apis/domains.cloudrun.com/v1/{+name}",
7013	//   "response": {
7014	//     "$ref": "Status"
7015	//   },
7016	//   "scopes": [
7017	//     "https://www.googleapis.com/auth/cloud-platform"
7018	//   ]
7019	// }
7020
7021}
7022
7023// method id "run.namespaces.domainmappings.get":
7024
7025type NamespacesDomainmappingsGetCall struct {
7026	s            *APIService
7027	name         string
7028	urlParams_   gensupport.URLParams
7029	ifNoneMatch_ string
7030	ctx_         context.Context
7031	header_      http.Header
7032}
7033
7034// Get: Get information about a domain mapping.
7035func (r *NamespacesDomainmappingsService) Get(name string) *NamespacesDomainmappingsGetCall {
7036	c := &NamespacesDomainmappingsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7037	c.name = name
7038	return c
7039}
7040
7041// Fields allows partial responses to be retrieved. See
7042// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
7043// for more information.
7044func (c *NamespacesDomainmappingsGetCall) Fields(s ...googleapi.Field) *NamespacesDomainmappingsGetCall {
7045	c.urlParams_.Set("fields", googleapi.CombineFields(s))
7046	return c
7047}
7048
7049// IfNoneMatch sets the optional parameter which makes the operation
7050// fail if the object's ETag matches the given value. This is useful for
7051// getting updates only after the object has changed since the last
7052// request. Use googleapi.IsNotModified to check whether the response
7053// error from Do is the result of In-None-Match.
7054func (c *NamespacesDomainmappingsGetCall) IfNoneMatch(entityTag string) *NamespacesDomainmappingsGetCall {
7055	c.ifNoneMatch_ = entityTag
7056	return c
7057}
7058
7059// Context sets the context to be used in this call's Do method. Any
7060// pending HTTP request will be aborted if the provided context is
7061// canceled.
7062func (c *NamespacesDomainmappingsGetCall) Context(ctx context.Context) *NamespacesDomainmappingsGetCall {
7063	c.ctx_ = ctx
7064	return c
7065}
7066
7067// Header returns an http.Header that can be modified by the caller to
7068// add HTTP headers to the request.
7069func (c *NamespacesDomainmappingsGetCall) Header() http.Header {
7070	if c.header_ == nil {
7071		c.header_ = make(http.Header)
7072	}
7073	return c.header_
7074}
7075
7076func (c *NamespacesDomainmappingsGetCall) doRequest(alt string) (*http.Response, error) {
7077	reqHeaders := make(http.Header)
7078	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
7079	for k, v := range c.header_ {
7080		reqHeaders[k] = v
7081	}
7082	reqHeaders.Set("User-Agent", c.s.userAgent())
7083	if c.ifNoneMatch_ != "" {
7084		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7085	}
7086	var body io.Reader = nil
7087	c.urlParams_.Set("alt", alt)
7088	c.urlParams_.Set("prettyPrint", "false")
7089	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/domains.cloudrun.com/v1/{+name}")
7090	urls += "?" + c.urlParams_.Encode()
7091	req, err := http.NewRequest("GET", urls, body)
7092	if err != nil {
7093		return nil, err
7094	}
7095	req.Header = reqHeaders
7096	googleapi.Expand(req.URL, map[string]string{
7097		"name": c.name,
7098	})
7099	return gensupport.SendRequest(c.ctx_, c.s.client, req)
7100}
7101
7102// Do executes the "run.namespaces.domainmappings.get" call.
7103// Exactly one of *DomainMapping or error will be non-nil. Any non-2xx
7104// status code is an error. Response headers are in either
7105// *DomainMapping.ServerResponse.Header or (if a response was returned
7106// at all) in error.(*googleapi.Error).Header. Use
7107// googleapi.IsNotModified to check whether the returned error was
7108// because http.StatusNotModified was returned.
7109func (c *NamespacesDomainmappingsGetCall) Do(opts ...googleapi.CallOption) (*DomainMapping, error) {
7110	gensupport.SetOptions(c.urlParams_, opts...)
7111	res, err := c.doRequest("json")
7112	if res != nil && res.StatusCode == http.StatusNotModified {
7113		if res.Body != nil {
7114			res.Body.Close()
7115		}
7116		return nil, &googleapi.Error{
7117			Code:   res.StatusCode,
7118			Header: res.Header,
7119		}
7120	}
7121	if err != nil {
7122		return nil, err
7123	}
7124	defer googleapi.CloseBody(res)
7125	if err := googleapi.CheckResponse(res); err != nil {
7126		return nil, err
7127	}
7128	ret := &DomainMapping{
7129		ServerResponse: googleapi.ServerResponse{
7130			Header:         res.Header,
7131			HTTPStatusCode: res.StatusCode,
7132		},
7133	}
7134	target := &ret
7135	if err := gensupport.DecodeResponse(target, res); err != nil {
7136		return nil, err
7137	}
7138	return ret, nil
7139	// {
7140	//   "description": "Get information about a domain mapping.",
7141	//   "flatPath": "apis/domains.cloudrun.com/v1/namespaces/{namespacesId}/domainmappings/{domainmappingsId}",
7142	//   "httpMethod": "GET",
7143	//   "id": "run.namespaces.domainmappings.get",
7144	//   "parameterOrder": [
7145	//     "name"
7146	//   ],
7147	//   "parameters": {
7148	//     "name": {
7149	//       "description": "The name of the domain mapping being retrieved. If needed, replace\n{namespace_id} with the project ID.",
7150	//       "location": "path",
7151	//       "pattern": "^namespaces/[^/]+/domainmappings/[^/]+$",
7152	//       "required": true,
7153	//       "type": "string"
7154	//     }
7155	//   },
7156	//   "path": "apis/domains.cloudrun.com/v1/{+name}",
7157	//   "response": {
7158	//     "$ref": "DomainMapping"
7159	//   },
7160	//   "scopes": [
7161	//     "https://www.googleapis.com/auth/cloud-platform"
7162	//   ]
7163	// }
7164
7165}
7166
7167// method id "run.namespaces.domainmappings.list":
7168
7169type NamespacesDomainmappingsListCall struct {
7170	s            *APIService
7171	parent       string
7172	urlParams_   gensupport.URLParams
7173	ifNoneMatch_ string
7174	ctx_         context.Context
7175	header_      http.Header
7176}
7177
7178// List: List domain mappings.
7179func (r *NamespacesDomainmappingsService) List(parent string) *NamespacesDomainmappingsListCall {
7180	c := &NamespacesDomainmappingsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7181	c.parent = parent
7182	return c
7183}
7184
7185// Continue sets the optional parameter "continue": Optional encoded
7186// string to continue paging.
7187func (c *NamespacesDomainmappingsListCall) Continue(continue_ string) *NamespacesDomainmappingsListCall {
7188	c.urlParams_.Set("continue", continue_)
7189	return c
7190}
7191
7192// FieldSelector sets the optional parameter "fieldSelector": Allows to
7193// filter resources based on a specific value for a field name.
7194// Send this in a query string format. i.e. 'metadata.name%3Dlorem'.
7195// Not currently used by Cloud Run.
7196func (c *NamespacesDomainmappingsListCall) FieldSelector(fieldSelector string) *NamespacesDomainmappingsListCall {
7197	c.urlParams_.Set("fieldSelector", fieldSelector)
7198	return c
7199}
7200
7201// IncludeUninitialized sets the optional parameter
7202// "includeUninitialized": Not currently used by Cloud Run.
7203func (c *NamespacesDomainmappingsListCall) IncludeUninitialized(includeUninitialized bool) *NamespacesDomainmappingsListCall {
7204	c.urlParams_.Set("includeUninitialized", fmt.Sprint(includeUninitialized))
7205	return c
7206}
7207
7208// LabelSelector sets the optional parameter "labelSelector": Allows to
7209// filter resources based on a label. Supported operations are
7210// =, !=, exists, in, and notIn.
7211func (c *NamespacesDomainmappingsListCall) LabelSelector(labelSelector string) *NamespacesDomainmappingsListCall {
7212	c.urlParams_.Set("labelSelector", labelSelector)
7213	return c
7214}
7215
7216// Limit sets the optional parameter "limit": The maximum number of
7217// records that should be returned.
7218func (c *NamespacesDomainmappingsListCall) Limit(limit int64) *NamespacesDomainmappingsListCall {
7219	c.urlParams_.Set("limit", fmt.Sprint(limit))
7220	return c
7221}
7222
7223// ResourceVersion sets the optional parameter "resourceVersion": The
7224// baseline resource version from which the list or watch operation
7225// should
7226// start. Not currently used by Cloud Run.
7227func (c *NamespacesDomainmappingsListCall) ResourceVersion(resourceVersion string) *NamespacesDomainmappingsListCall {
7228	c.urlParams_.Set("resourceVersion", resourceVersion)
7229	return c
7230}
7231
7232// Watch sets the optional parameter "watch": Flag that indicates that
7233// the client expects to watch this resource as well.
7234// Not currently used by Cloud Run.
7235func (c *NamespacesDomainmappingsListCall) Watch(watch bool) *NamespacesDomainmappingsListCall {
7236	c.urlParams_.Set("watch", fmt.Sprint(watch))
7237	return c
7238}
7239
7240// Fields allows partial responses to be retrieved. See
7241// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
7242// for more information.
7243func (c *NamespacesDomainmappingsListCall) Fields(s ...googleapi.Field) *NamespacesDomainmappingsListCall {
7244	c.urlParams_.Set("fields", googleapi.CombineFields(s))
7245	return c
7246}
7247
7248// IfNoneMatch sets the optional parameter which makes the operation
7249// fail if the object's ETag matches the given value. This is useful for
7250// getting updates only after the object has changed since the last
7251// request. Use googleapi.IsNotModified to check whether the response
7252// error from Do is the result of In-None-Match.
7253func (c *NamespacesDomainmappingsListCall) IfNoneMatch(entityTag string) *NamespacesDomainmappingsListCall {
7254	c.ifNoneMatch_ = entityTag
7255	return c
7256}
7257
7258// Context sets the context to be used in this call's Do method. Any
7259// pending HTTP request will be aborted if the provided context is
7260// canceled.
7261func (c *NamespacesDomainmappingsListCall) Context(ctx context.Context) *NamespacesDomainmappingsListCall {
7262	c.ctx_ = ctx
7263	return c
7264}
7265
7266// Header returns an http.Header that can be modified by the caller to
7267// add HTTP headers to the request.
7268func (c *NamespacesDomainmappingsListCall) Header() http.Header {
7269	if c.header_ == nil {
7270		c.header_ = make(http.Header)
7271	}
7272	return c.header_
7273}
7274
7275func (c *NamespacesDomainmappingsListCall) doRequest(alt string) (*http.Response, error) {
7276	reqHeaders := make(http.Header)
7277	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
7278	for k, v := range c.header_ {
7279		reqHeaders[k] = v
7280	}
7281	reqHeaders.Set("User-Agent", c.s.userAgent())
7282	if c.ifNoneMatch_ != "" {
7283		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7284	}
7285	var body io.Reader = nil
7286	c.urlParams_.Set("alt", alt)
7287	c.urlParams_.Set("prettyPrint", "false")
7288	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/domains.cloudrun.com/v1/{+parent}/domainmappings")
7289	urls += "?" + c.urlParams_.Encode()
7290	req, err := http.NewRequest("GET", urls, body)
7291	if err != nil {
7292		return nil, err
7293	}
7294	req.Header = reqHeaders
7295	googleapi.Expand(req.URL, map[string]string{
7296		"parent": c.parent,
7297	})
7298	return gensupport.SendRequest(c.ctx_, c.s.client, req)
7299}
7300
7301// Do executes the "run.namespaces.domainmappings.list" call.
7302// Exactly one of *ListDomainMappingsResponse or error will be non-nil.
7303// Any non-2xx status code is an error. Response headers are in either
7304// *ListDomainMappingsResponse.ServerResponse.Header or (if a response
7305// was returned at all) in error.(*googleapi.Error).Header. Use
7306// googleapi.IsNotModified to check whether the returned error was
7307// because http.StatusNotModified was returned.
7308func (c *NamespacesDomainmappingsListCall) Do(opts ...googleapi.CallOption) (*ListDomainMappingsResponse, error) {
7309	gensupport.SetOptions(c.urlParams_, opts...)
7310	res, err := c.doRequest("json")
7311	if res != nil && res.StatusCode == http.StatusNotModified {
7312		if res.Body != nil {
7313			res.Body.Close()
7314		}
7315		return nil, &googleapi.Error{
7316			Code:   res.StatusCode,
7317			Header: res.Header,
7318		}
7319	}
7320	if err != nil {
7321		return nil, err
7322	}
7323	defer googleapi.CloseBody(res)
7324	if err := googleapi.CheckResponse(res); err != nil {
7325		return nil, err
7326	}
7327	ret := &ListDomainMappingsResponse{
7328		ServerResponse: googleapi.ServerResponse{
7329			Header:         res.Header,
7330			HTTPStatusCode: res.StatusCode,
7331		},
7332	}
7333	target := &ret
7334	if err := gensupport.DecodeResponse(target, res); err != nil {
7335		return nil, err
7336	}
7337	return ret, nil
7338	// {
7339	//   "description": "List domain mappings.",
7340	//   "flatPath": "apis/domains.cloudrun.com/v1/namespaces/{namespacesId}/domainmappings",
7341	//   "httpMethod": "GET",
7342	//   "id": "run.namespaces.domainmappings.list",
7343	//   "parameterOrder": [
7344	//     "parent"
7345	//   ],
7346	//   "parameters": {
7347	//     "continue": {
7348	//       "description": "Optional encoded string to continue paging.",
7349	//       "location": "query",
7350	//       "type": "string"
7351	//     },
7352	//     "fieldSelector": {
7353	//       "description": "Allows to filter resources based on a specific value for a field name.\nSend this in a query string format. i.e. 'metadata.name%3Dlorem'.\nNot currently used by Cloud Run.",
7354	//       "location": "query",
7355	//       "type": "string"
7356	//     },
7357	//     "includeUninitialized": {
7358	//       "description": "Not currently used by Cloud Run.",
7359	//       "location": "query",
7360	//       "type": "boolean"
7361	//     },
7362	//     "labelSelector": {
7363	//       "description": "Allows to filter resources based on a label. Supported operations are\n=, !=, exists, in, and notIn.",
7364	//       "location": "query",
7365	//       "type": "string"
7366	//     },
7367	//     "limit": {
7368	//       "description": "The maximum number of records that should be returned.",
7369	//       "format": "int32",
7370	//       "location": "query",
7371	//       "type": "integer"
7372	//     },
7373	//     "parent": {
7374	//       "description": "The project ID or project number from which the domain mappings should be\nlisted.",
7375	//       "location": "path",
7376	//       "pattern": "^namespaces/[^/]+$",
7377	//       "required": true,
7378	//       "type": "string"
7379	//     },
7380	//     "resourceVersion": {
7381	//       "description": "The baseline resource version from which the list or watch operation should\nstart. Not currently used by Cloud Run.",
7382	//       "location": "query",
7383	//       "type": "string"
7384	//     },
7385	//     "watch": {
7386	//       "description": "Flag that indicates that the client expects to watch this resource as well.\nNot currently used by Cloud Run.",
7387	//       "location": "query",
7388	//       "type": "boolean"
7389	//     }
7390	//   },
7391	//   "path": "apis/domains.cloudrun.com/v1/{+parent}/domainmappings",
7392	//   "response": {
7393	//     "$ref": "ListDomainMappingsResponse"
7394	//   },
7395	//   "scopes": [
7396	//     "https://www.googleapis.com/auth/cloud-platform"
7397	//   ]
7398	// }
7399
7400}
7401
7402// method id "run.namespaces.domainmappings.replaceDomainMapping":
7403
7404type NamespacesDomainmappingsReplaceDomainMappingCall struct {
7405	s             *APIService
7406	name          string
7407	domainmapping *DomainMapping
7408	urlParams_    gensupport.URLParams
7409	ctx_          context.Context
7410	header_       http.Header
7411}
7412
7413// ReplaceDomainMapping: Replace a domain mapping.
7414//
7415// Only the spec and metadata labels and annotations are modifiable.
7416// After
7417// the Update request, Cloud Run will work to make the 'status'
7418// match the requested 'spec'.
7419//
7420// May provide metadata.resourceVersion to enforce update from last read
7421// for
7422// optimistic concurrency control.
7423func (r *NamespacesDomainmappingsService) ReplaceDomainMapping(name string, domainmapping *DomainMapping) *NamespacesDomainmappingsReplaceDomainMappingCall {
7424	c := &NamespacesDomainmappingsReplaceDomainMappingCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7425	c.name = name
7426	c.domainmapping = domainmapping
7427	return c
7428}
7429
7430// Fields allows partial responses to be retrieved. See
7431// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
7432// for more information.
7433func (c *NamespacesDomainmappingsReplaceDomainMappingCall) Fields(s ...googleapi.Field) *NamespacesDomainmappingsReplaceDomainMappingCall {
7434	c.urlParams_.Set("fields", googleapi.CombineFields(s))
7435	return c
7436}
7437
7438// Context sets the context to be used in this call's Do method. Any
7439// pending HTTP request will be aborted if the provided context is
7440// canceled.
7441func (c *NamespacesDomainmappingsReplaceDomainMappingCall) Context(ctx context.Context) *NamespacesDomainmappingsReplaceDomainMappingCall {
7442	c.ctx_ = ctx
7443	return c
7444}
7445
7446// Header returns an http.Header that can be modified by the caller to
7447// add HTTP headers to the request.
7448func (c *NamespacesDomainmappingsReplaceDomainMappingCall) Header() http.Header {
7449	if c.header_ == nil {
7450		c.header_ = make(http.Header)
7451	}
7452	return c.header_
7453}
7454
7455func (c *NamespacesDomainmappingsReplaceDomainMappingCall) doRequest(alt string) (*http.Response, error) {
7456	reqHeaders := make(http.Header)
7457	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
7458	for k, v := range c.header_ {
7459		reqHeaders[k] = v
7460	}
7461	reqHeaders.Set("User-Agent", c.s.userAgent())
7462	var body io.Reader = nil
7463	body, err := googleapi.WithoutDataWrapper.JSONReader(c.domainmapping)
7464	if err != nil {
7465		return nil, err
7466	}
7467	reqHeaders.Set("Content-Type", "application/json")
7468	c.urlParams_.Set("alt", alt)
7469	c.urlParams_.Set("prettyPrint", "false")
7470	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/domains.cloudrun.com/v1/{+name}")
7471	urls += "?" + c.urlParams_.Encode()
7472	req, err := http.NewRequest("PUT", urls, body)
7473	if err != nil {
7474		return nil, err
7475	}
7476	req.Header = reqHeaders
7477	googleapi.Expand(req.URL, map[string]string{
7478		"name": c.name,
7479	})
7480	return gensupport.SendRequest(c.ctx_, c.s.client, req)
7481}
7482
7483// Do executes the "run.namespaces.domainmappings.replaceDomainMapping" call.
7484// Exactly one of *DomainMapping or error will be non-nil. Any non-2xx
7485// status code is an error. Response headers are in either
7486// *DomainMapping.ServerResponse.Header or (if a response was returned
7487// at all) in error.(*googleapi.Error).Header. Use
7488// googleapi.IsNotModified to check whether the returned error was
7489// because http.StatusNotModified was returned.
7490func (c *NamespacesDomainmappingsReplaceDomainMappingCall) Do(opts ...googleapi.CallOption) (*DomainMapping, error) {
7491	gensupport.SetOptions(c.urlParams_, opts...)
7492	res, err := c.doRequest("json")
7493	if res != nil && res.StatusCode == http.StatusNotModified {
7494		if res.Body != nil {
7495			res.Body.Close()
7496		}
7497		return nil, &googleapi.Error{
7498			Code:   res.StatusCode,
7499			Header: res.Header,
7500		}
7501	}
7502	if err != nil {
7503		return nil, err
7504	}
7505	defer googleapi.CloseBody(res)
7506	if err := googleapi.CheckResponse(res); err != nil {
7507		return nil, err
7508	}
7509	ret := &DomainMapping{
7510		ServerResponse: googleapi.ServerResponse{
7511			Header:         res.Header,
7512			HTTPStatusCode: res.StatusCode,
7513		},
7514	}
7515	target := &ret
7516	if err := gensupport.DecodeResponse(target, res); err != nil {
7517		return nil, err
7518	}
7519	return ret, nil
7520	// {
7521	//   "description": "Replace a domain mapping.\n\nOnly the spec and metadata labels and annotations are modifiable. After\nthe Update request, Cloud Run will work to make the 'status'\nmatch the requested 'spec'.\n\nMay provide metadata.resourceVersion to enforce update from last read for\noptimistic concurrency control.",
7522	//   "flatPath": "apis/domains.cloudrun.com/v1/namespaces/{namespacesId}/domainmappings/{domainmappingsId}",
7523	//   "httpMethod": "PUT",
7524	//   "id": "run.namespaces.domainmappings.replaceDomainMapping",
7525	//   "parameterOrder": [
7526	//     "name"
7527	//   ],
7528	//   "parameters": {
7529	//     "name": {
7530	//       "description": "The name of the domain mapping being retrieved. If needed, replace\n{namespace_id} with the project ID.",
7531	//       "location": "path",
7532	//       "pattern": "^namespaces/[^/]+/domainmappings/[^/]+$",
7533	//       "required": true,
7534	//       "type": "string"
7535	//     }
7536	//   },
7537	//   "path": "apis/domains.cloudrun.com/v1/{+name}",
7538	//   "request": {
7539	//     "$ref": "DomainMapping"
7540	//   },
7541	//   "response": {
7542	//     "$ref": "DomainMapping"
7543	//   },
7544	//   "scopes": [
7545	//     "https://www.googleapis.com/auth/cloud-platform"
7546	//   ]
7547	// }
7548
7549}
7550
7551// method id "run.namespaces.revisions.delete":
7552
7553type NamespacesRevisionsDeleteCall struct {
7554	s          *APIService
7555	name       string
7556	urlParams_ gensupport.URLParams
7557	ctx_       context.Context
7558	header_    http.Header
7559}
7560
7561// Delete: Delete a revision.
7562func (r *NamespacesRevisionsService) Delete(name string) *NamespacesRevisionsDeleteCall {
7563	c := &NamespacesRevisionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7564	c.name = name
7565	return c
7566}
7567
7568// ApiVersion sets the optional parameter "apiVersion": Cloud Run
7569// currently ignores this parameter.
7570func (c *NamespacesRevisionsDeleteCall) ApiVersion(apiVersion string) *NamespacesRevisionsDeleteCall {
7571	c.urlParams_.Set("apiVersion", apiVersion)
7572	return c
7573}
7574
7575// Kind sets the optional parameter "kind": Cloud Run currently ignores
7576// this parameter.
7577func (c *NamespacesRevisionsDeleteCall) Kind(kind string) *NamespacesRevisionsDeleteCall {
7578	c.urlParams_.Set("kind", kind)
7579	return c
7580}
7581
7582// PropagationPolicy sets the optional parameter "propagationPolicy":
7583// Specifies the propagation policy of delete. Cloud Run currently
7584// ignores
7585// this setting, and deletes in the background. Please
7586// see
7587// kubernetes.io/docs/concepts/workloads/controllers/garbage-collecti
7588// on/ for
7589// more information.
7590func (c *NamespacesRevisionsDeleteCall) PropagationPolicy(propagationPolicy string) *NamespacesRevisionsDeleteCall {
7591	c.urlParams_.Set("propagationPolicy", propagationPolicy)
7592	return c
7593}
7594
7595// Fields allows partial responses to be retrieved. See
7596// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
7597// for more information.
7598func (c *NamespacesRevisionsDeleteCall) Fields(s ...googleapi.Field) *NamespacesRevisionsDeleteCall {
7599	c.urlParams_.Set("fields", googleapi.CombineFields(s))
7600	return c
7601}
7602
7603// Context sets the context to be used in this call's Do method. Any
7604// pending HTTP request will be aborted if the provided context is
7605// canceled.
7606func (c *NamespacesRevisionsDeleteCall) Context(ctx context.Context) *NamespacesRevisionsDeleteCall {
7607	c.ctx_ = ctx
7608	return c
7609}
7610
7611// Header returns an http.Header that can be modified by the caller to
7612// add HTTP headers to the request.
7613func (c *NamespacesRevisionsDeleteCall) Header() http.Header {
7614	if c.header_ == nil {
7615		c.header_ = make(http.Header)
7616	}
7617	return c.header_
7618}
7619
7620func (c *NamespacesRevisionsDeleteCall) doRequest(alt string) (*http.Response, error) {
7621	reqHeaders := make(http.Header)
7622	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
7623	for k, v := range c.header_ {
7624		reqHeaders[k] = v
7625	}
7626	reqHeaders.Set("User-Agent", c.s.userAgent())
7627	var body io.Reader = nil
7628	c.urlParams_.Set("alt", alt)
7629	c.urlParams_.Set("prettyPrint", "false")
7630	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/serving.knative.dev/v1/{+name}")
7631	urls += "?" + c.urlParams_.Encode()
7632	req, err := http.NewRequest("DELETE", urls, body)
7633	if err != nil {
7634		return nil, err
7635	}
7636	req.Header = reqHeaders
7637	googleapi.Expand(req.URL, map[string]string{
7638		"name": c.name,
7639	})
7640	return gensupport.SendRequest(c.ctx_, c.s.client, req)
7641}
7642
7643// Do executes the "run.namespaces.revisions.delete" call.
7644// Exactly one of *Status or error will be non-nil. Any non-2xx status
7645// code is an error. Response headers are in either
7646// *Status.ServerResponse.Header or (if a response was returned at all)
7647// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
7648// check whether the returned error was because http.StatusNotModified
7649// was returned.
7650func (c *NamespacesRevisionsDeleteCall) Do(opts ...googleapi.CallOption) (*Status, error) {
7651	gensupport.SetOptions(c.urlParams_, opts...)
7652	res, err := c.doRequest("json")
7653	if res != nil && res.StatusCode == http.StatusNotModified {
7654		if res.Body != nil {
7655			res.Body.Close()
7656		}
7657		return nil, &googleapi.Error{
7658			Code:   res.StatusCode,
7659			Header: res.Header,
7660		}
7661	}
7662	if err != nil {
7663		return nil, err
7664	}
7665	defer googleapi.CloseBody(res)
7666	if err := googleapi.CheckResponse(res); err != nil {
7667		return nil, err
7668	}
7669	ret := &Status{
7670		ServerResponse: googleapi.ServerResponse{
7671			Header:         res.Header,
7672			HTTPStatusCode: res.StatusCode,
7673		},
7674	}
7675	target := &ret
7676	if err := gensupport.DecodeResponse(target, res); err != nil {
7677		return nil, err
7678	}
7679	return ret, nil
7680	// {
7681	//   "description": "Delete a revision.",
7682	//   "flatPath": "apis/serving.knative.dev/v1/namespaces/{namespacesId}/revisions/{revisionsId}",
7683	//   "httpMethod": "DELETE",
7684	//   "id": "run.namespaces.revisions.delete",
7685	//   "parameterOrder": [
7686	//     "name"
7687	//   ],
7688	//   "parameters": {
7689	//     "apiVersion": {
7690	//       "description": "Cloud Run currently ignores this parameter.",
7691	//       "location": "query",
7692	//       "type": "string"
7693	//     },
7694	//     "kind": {
7695	//       "description": "Cloud Run currently ignores this parameter.",
7696	//       "location": "query",
7697	//       "type": "string"
7698	//     },
7699	//     "name": {
7700	//       "description": "The name of the revision being deleted. If needed, replace\n{namespace_id} with the project ID.",
7701	//       "location": "path",
7702	//       "pattern": "^namespaces/[^/]+/revisions/[^/]+$",
7703	//       "required": true,
7704	//       "type": "string"
7705	//     },
7706	//     "propagationPolicy": {
7707	//       "description": "Specifies the propagation policy of delete. Cloud Run currently ignores\nthis setting, and deletes in the background. Please see\nkubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for\nmore information.",
7708	//       "location": "query",
7709	//       "type": "string"
7710	//     }
7711	//   },
7712	//   "path": "apis/serving.knative.dev/v1/{+name}",
7713	//   "response": {
7714	//     "$ref": "Status"
7715	//   },
7716	//   "scopes": [
7717	//     "https://www.googleapis.com/auth/cloud-platform"
7718	//   ]
7719	// }
7720
7721}
7722
7723// method id "run.namespaces.revisions.get":
7724
7725type NamespacesRevisionsGetCall struct {
7726	s            *APIService
7727	name         string
7728	urlParams_   gensupport.URLParams
7729	ifNoneMatch_ string
7730	ctx_         context.Context
7731	header_      http.Header
7732}
7733
7734// Get: Get information about a revision.
7735func (r *NamespacesRevisionsService) Get(name string) *NamespacesRevisionsGetCall {
7736	c := &NamespacesRevisionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7737	c.name = name
7738	return c
7739}
7740
7741// Fields allows partial responses to be retrieved. See
7742// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
7743// for more information.
7744func (c *NamespacesRevisionsGetCall) Fields(s ...googleapi.Field) *NamespacesRevisionsGetCall {
7745	c.urlParams_.Set("fields", googleapi.CombineFields(s))
7746	return c
7747}
7748
7749// IfNoneMatch sets the optional parameter which makes the operation
7750// fail if the object's ETag matches the given value. This is useful for
7751// getting updates only after the object has changed since the last
7752// request. Use googleapi.IsNotModified to check whether the response
7753// error from Do is the result of In-None-Match.
7754func (c *NamespacesRevisionsGetCall) IfNoneMatch(entityTag string) *NamespacesRevisionsGetCall {
7755	c.ifNoneMatch_ = entityTag
7756	return c
7757}
7758
7759// Context sets the context to be used in this call's Do method. Any
7760// pending HTTP request will be aborted if the provided context is
7761// canceled.
7762func (c *NamespacesRevisionsGetCall) Context(ctx context.Context) *NamespacesRevisionsGetCall {
7763	c.ctx_ = ctx
7764	return c
7765}
7766
7767// Header returns an http.Header that can be modified by the caller to
7768// add HTTP headers to the request.
7769func (c *NamespacesRevisionsGetCall) Header() http.Header {
7770	if c.header_ == nil {
7771		c.header_ = make(http.Header)
7772	}
7773	return c.header_
7774}
7775
7776func (c *NamespacesRevisionsGetCall) doRequest(alt string) (*http.Response, error) {
7777	reqHeaders := make(http.Header)
7778	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
7779	for k, v := range c.header_ {
7780		reqHeaders[k] = v
7781	}
7782	reqHeaders.Set("User-Agent", c.s.userAgent())
7783	if c.ifNoneMatch_ != "" {
7784		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7785	}
7786	var body io.Reader = nil
7787	c.urlParams_.Set("alt", alt)
7788	c.urlParams_.Set("prettyPrint", "false")
7789	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/serving.knative.dev/v1/{+name}")
7790	urls += "?" + c.urlParams_.Encode()
7791	req, err := http.NewRequest("GET", urls, body)
7792	if err != nil {
7793		return nil, err
7794	}
7795	req.Header = reqHeaders
7796	googleapi.Expand(req.URL, map[string]string{
7797		"name": c.name,
7798	})
7799	return gensupport.SendRequest(c.ctx_, c.s.client, req)
7800}
7801
7802// Do executes the "run.namespaces.revisions.get" call.
7803// Exactly one of *Revision or error will be non-nil. Any non-2xx status
7804// code is an error. Response headers are in either
7805// *Revision.ServerResponse.Header or (if a response was returned at
7806// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
7807// to check whether the returned error was because
7808// http.StatusNotModified was returned.
7809func (c *NamespacesRevisionsGetCall) Do(opts ...googleapi.CallOption) (*Revision, error) {
7810	gensupport.SetOptions(c.urlParams_, opts...)
7811	res, err := c.doRequest("json")
7812	if res != nil && res.StatusCode == http.StatusNotModified {
7813		if res.Body != nil {
7814			res.Body.Close()
7815		}
7816		return nil, &googleapi.Error{
7817			Code:   res.StatusCode,
7818			Header: res.Header,
7819		}
7820	}
7821	if err != nil {
7822		return nil, err
7823	}
7824	defer googleapi.CloseBody(res)
7825	if err := googleapi.CheckResponse(res); err != nil {
7826		return nil, err
7827	}
7828	ret := &Revision{
7829		ServerResponse: googleapi.ServerResponse{
7830			Header:         res.Header,
7831			HTTPStatusCode: res.StatusCode,
7832		},
7833	}
7834	target := &ret
7835	if err := gensupport.DecodeResponse(target, res); err != nil {
7836		return nil, err
7837	}
7838	return ret, nil
7839	// {
7840	//   "description": "Get information about a revision.",
7841	//   "flatPath": "apis/serving.knative.dev/v1/namespaces/{namespacesId}/revisions/{revisionsId}",
7842	//   "httpMethod": "GET",
7843	//   "id": "run.namespaces.revisions.get",
7844	//   "parameterOrder": [
7845	//     "name"
7846	//   ],
7847	//   "parameters": {
7848	//     "name": {
7849	//       "description": "The name of the revision being retrieved. If needed, replace\n{namespace_id} with the project ID.",
7850	//       "location": "path",
7851	//       "pattern": "^namespaces/[^/]+/revisions/[^/]+$",
7852	//       "required": true,
7853	//       "type": "string"
7854	//     }
7855	//   },
7856	//   "path": "apis/serving.knative.dev/v1/{+name}",
7857	//   "response": {
7858	//     "$ref": "Revision"
7859	//   },
7860	//   "scopes": [
7861	//     "https://www.googleapis.com/auth/cloud-platform"
7862	//   ]
7863	// }
7864
7865}
7866
7867// method id "run.namespaces.revisions.list":
7868
7869type NamespacesRevisionsListCall struct {
7870	s            *APIService
7871	parent       string
7872	urlParams_   gensupport.URLParams
7873	ifNoneMatch_ string
7874	ctx_         context.Context
7875	header_      http.Header
7876}
7877
7878// List: List revisions.
7879func (r *NamespacesRevisionsService) List(parent string) *NamespacesRevisionsListCall {
7880	c := &NamespacesRevisionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7881	c.parent = parent
7882	return c
7883}
7884
7885// Continue sets the optional parameter "continue": Optional encoded
7886// string to continue paging.
7887func (c *NamespacesRevisionsListCall) Continue(continue_ string) *NamespacesRevisionsListCall {
7888	c.urlParams_.Set("continue", continue_)
7889	return c
7890}
7891
7892// FieldSelector sets the optional parameter "fieldSelector": Allows to
7893// filter resources based on a specific value for a field name.
7894// Send this in a query string format. i.e. 'metadata.name%3Dlorem'.
7895// Not currently used by Cloud Run.
7896func (c *NamespacesRevisionsListCall) FieldSelector(fieldSelector string) *NamespacesRevisionsListCall {
7897	c.urlParams_.Set("fieldSelector", fieldSelector)
7898	return c
7899}
7900
7901// IncludeUninitialized sets the optional parameter
7902// "includeUninitialized": Not currently used by Cloud Run.
7903func (c *NamespacesRevisionsListCall) IncludeUninitialized(includeUninitialized bool) *NamespacesRevisionsListCall {
7904	c.urlParams_.Set("includeUninitialized", fmt.Sprint(includeUninitialized))
7905	return c
7906}
7907
7908// LabelSelector sets the optional parameter "labelSelector": Allows to
7909// filter resources based on a label. Supported operations are
7910// =, !=, exists, in, and notIn.
7911func (c *NamespacesRevisionsListCall) LabelSelector(labelSelector string) *NamespacesRevisionsListCall {
7912	c.urlParams_.Set("labelSelector", labelSelector)
7913	return c
7914}
7915
7916// Limit sets the optional parameter "limit": The maximum number of
7917// records that should be returned.
7918func (c *NamespacesRevisionsListCall) Limit(limit int64) *NamespacesRevisionsListCall {
7919	c.urlParams_.Set("limit", fmt.Sprint(limit))
7920	return c
7921}
7922
7923// ResourceVersion sets the optional parameter "resourceVersion": The
7924// baseline resource version from which the list or watch operation
7925// should
7926// start. Not currently used by Cloud Run.
7927func (c *NamespacesRevisionsListCall) ResourceVersion(resourceVersion string) *NamespacesRevisionsListCall {
7928	c.urlParams_.Set("resourceVersion", resourceVersion)
7929	return c
7930}
7931
7932// Watch sets the optional parameter "watch": Flag that indicates that
7933// the client expects to watch this resource as well.
7934// Not currently used by Cloud Run.
7935func (c *NamespacesRevisionsListCall) Watch(watch bool) *NamespacesRevisionsListCall {
7936	c.urlParams_.Set("watch", fmt.Sprint(watch))
7937	return c
7938}
7939
7940// Fields allows partial responses to be retrieved. See
7941// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
7942// for more information.
7943func (c *NamespacesRevisionsListCall) Fields(s ...googleapi.Field) *NamespacesRevisionsListCall {
7944	c.urlParams_.Set("fields", googleapi.CombineFields(s))
7945	return c
7946}
7947
7948// IfNoneMatch sets the optional parameter which makes the operation
7949// fail if the object's ETag matches the given value. This is useful for
7950// getting updates only after the object has changed since the last
7951// request. Use googleapi.IsNotModified to check whether the response
7952// error from Do is the result of In-None-Match.
7953func (c *NamespacesRevisionsListCall) IfNoneMatch(entityTag string) *NamespacesRevisionsListCall {
7954	c.ifNoneMatch_ = entityTag
7955	return c
7956}
7957
7958// Context sets the context to be used in this call's Do method. Any
7959// pending HTTP request will be aborted if the provided context is
7960// canceled.
7961func (c *NamespacesRevisionsListCall) Context(ctx context.Context) *NamespacesRevisionsListCall {
7962	c.ctx_ = ctx
7963	return c
7964}
7965
7966// Header returns an http.Header that can be modified by the caller to
7967// add HTTP headers to the request.
7968func (c *NamespacesRevisionsListCall) Header() http.Header {
7969	if c.header_ == nil {
7970		c.header_ = make(http.Header)
7971	}
7972	return c.header_
7973}
7974
7975func (c *NamespacesRevisionsListCall) doRequest(alt string) (*http.Response, error) {
7976	reqHeaders := make(http.Header)
7977	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
7978	for k, v := range c.header_ {
7979		reqHeaders[k] = v
7980	}
7981	reqHeaders.Set("User-Agent", c.s.userAgent())
7982	if c.ifNoneMatch_ != "" {
7983		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7984	}
7985	var body io.Reader = nil
7986	c.urlParams_.Set("alt", alt)
7987	c.urlParams_.Set("prettyPrint", "false")
7988	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/serving.knative.dev/v1/{+parent}/revisions")
7989	urls += "?" + c.urlParams_.Encode()
7990	req, err := http.NewRequest("GET", urls, body)
7991	if err != nil {
7992		return nil, err
7993	}
7994	req.Header = reqHeaders
7995	googleapi.Expand(req.URL, map[string]string{
7996		"parent": c.parent,
7997	})
7998	return gensupport.SendRequest(c.ctx_, c.s.client, req)
7999}
8000
8001// Do executes the "run.namespaces.revisions.list" call.
8002// Exactly one of *ListRevisionsResponse or error will be non-nil. Any
8003// non-2xx status code is an error. Response headers are in either
8004// *ListRevisionsResponse.ServerResponse.Header or (if a response was
8005// returned at all) in error.(*googleapi.Error).Header. Use
8006// googleapi.IsNotModified to check whether the returned error was
8007// because http.StatusNotModified was returned.
8008func (c *NamespacesRevisionsListCall) Do(opts ...googleapi.CallOption) (*ListRevisionsResponse, error) {
8009	gensupport.SetOptions(c.urlParams_, opts...)
8010	res, err := c.doRequest("json")
8011	if res != nil && res.StatusCode == http.StatusNotModified {
8012		if res.Body != nil {
8013			res.Body.Close()
8014		}
8015		return nil, &googleapi.Error{
8016			Code:   res.StatusCode,
8017			Header: res.Header,
8018		}
8019	}
8020	if err != nil {
8021		return nil, err
8022	}
8023	defer googleapi.CloseBody(res)
8024	if err := googleapi.CheckResponse(res); err != nil {
8025		return nil, err
8026	}
8027	ret := &ListRevisionsResponse{
8028		ServerResponse: googleapi.ServerResponse{
8029			Header:         res.Header,
8030			HTTPStatusCode: res.StatusCode,
8031		},
8032	}
8033	target := &ret
8034	if err := gensupport.DecodeResponse(target, res); err != nil {
8035		return nil, err
8036	}
8037	return ret, nil
8038	// {
8039	//   "description": "List revisions.",
8040	//   "flatPath": "apis/serving.knative.dev/v1/namespaces/{namespacesId}/revisions",
8041	//   "httpMethod": "GET",
8042	//   "id": "run.namespaces.revisions.list",
8043	//   "parameterOrder": [
8044	//     "parent"
8045	//   ],
8046	//   "parameters": {
8047	//     "continue": {
8048	//       "description": "Optional encoded string to continue paging.",
8049	//       "location": "query",
8050	//       "type": "string"
8051	//     },
8052	//     "fieldSelector": {
8053	//       "description": "Allows to filter resources based on a specific value for a field name.\nSend this in a query string format. i.e. 'metadata.name%3Dlorem'.\nNot currently used by Cloud Run.",
8054	//       "location": "query",
8055	//       "type": "string"
8056	//     },
8057	//     "includeUninitialized": {
8058	//       "description": "Not currently used by Cloud Run.",
8059	//       "location": "query",
8060	//       "type": "boolean"
8061	//     },
8062	//     "labelSelector": {
8063	//       "description": "Allows to filter resources based on a label. Supported operations are\n=, !=, exists, in, and notIn.",
8064	//       "location": "query",
8065	//       "type": "string"
8066	//     },
8067	//     "limit": {
8068	//       "description": "The maximum number of records that should be returned.",
8069	//       "format": "int32",
8070	//       "location": "query",
8071	//       "type": "integer"
8072	//     },
8073	//     "parent": {
8074	//       "description": "The project ID or project number from which the revisions should be listed.",
8075	//       "location": "path",
8076	//       "pattern": "^namespaces/[^/]+$",
8077	//       "required": true,
8078	//       "type": "string"
8079	//     },
8080	//     "resourceVersion": {
8081	//       "description": "The baseline resource version from which the list or watch operation should\nstart. Not currently used by Cloud Run.",
8082	//       "location": "query",
8083	//       "type": "string"
8084	//     },
8085	//     "watch": {
8086	//       "description": "Flag that indicates that the client expects to watch this resource as well.\nNot currently used by Cloud Run.",
8087	//       "location": "query",
8088	//       "type": "boolean"
8089	//     }
8090	//   },
8091	//   "path": "apis/serving.knative.dev/v1/{+parent}/revisions",
8092	//   "response": {
8093	//     "$ref": "ListRevisionsResponse"
8094	//   },
8095	//   "scopes": [
8096	//     "https://www.googleapis.com/auth/cloud-platform"
8097	//   ]
8098	// }
8099
8100}
8101
8102// method id "run.namespaces.routes.create":
8103
8104type NamespacesRoutesCreateCall struct {
8105	s          *APIService
8106	parent     string
8107	route      *Route
8108	urlParams_ gensupport.URLParams
8109	ctx_       context.Context
8110	header_    http.Header
8111}
8112
8113// Create: Create a route.
8114func (r *NamespacesRoutesService) Create(parent string, route *Route) *NamespacesRoutesCreateCall {
8115	c := &NamespacesRoutesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8116	c.parent = parent
8117	c.route = route
8118	return c
8119}
8120
8121// Fields allows partial responses to be retrieved. See
8122// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
8123// for more information.
8124func (c *NamespacesRoutesCreateCall) Fields(s ...googleapi.Field) *NamespacesRoutesCreateCall {
8125	c.urlParams_.Set("fields", googleapi.CombineFields(s))
8126	return c
8127}
8128
8129// Context sets the context to be used in this call's Do method. Any
8130// pending HTTP request will be aborted if the provided context is
8131// canceled.
8132func (c *NamespacesRoutesCreateCall) Context(ctx context.Context) *NamespacesRoutesCreateCall {
8133	c.ctx_ = ctx
8134	return c
8135}
8136
8137// Header returns an http.Header that can be modified by the caller to
8138// add HTTP headers to the request.
8139func (c *NamespacesRoutesCreateCall) Header() http.Header {
8140	if c.header_ == nil {
8141		c.header_ = make(http.Header)
8142	}
8143	return c.header_
8144}
8145
8146func (c *NamespacesRoutesCreateCall) doRequest(alt string) (*http.Response, error) {
8147	reqHeaders := make(http.Header)
8148	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
8149	for k, v := range c.header_ {
8150		reqHeaders[k] = v
8151	}
8152	reqHeaders.Set("User-Agent", c.s.userAgent())
8153	var body io.Reader = nil
8154	body, err := googleapi.WithoutDataWrapper.JSONReader(c.route)
8155	if err != nil {
8156		return nil, err
8157	}
8158	reqHeaders.Set("Content-Type", "application/json")
8159	c.urlParams_.Set("alt", alt)
8160	c.urlParams_.Set("prettyPrint", "false")
8161	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/serving.knative.dev/v1/{+parent}/routes")
8162	urls += "?" + c.urlParams_.Encode()
8163	req, err := http.NewRequest("POST", urls, body)
8164	if err != nil {
8165		return nil, err
8166	}
8167	req.Header = reqHeaders
8168	googleapi.Expand(req.URL, map[string]string{
8169		"parent": c.parent,
8170	})
8171	return gensupport.SendRequest(c.ctx_, c.s.client, req)
8172}
8173
8174// Do executes the "run.namespaces.routes.create" call.
8175// Exactly one of *Route or error will be non-nil. Any non-2xx status
8176// code is an error. Response headers are in either
8177// *Route.ServerResponse.Header or (if a response was returned at all)
8178// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
8179// check whether the returned error was because http.StatusNotModified
8180// was returned.
8181func (c *NamespacesRoutesCreateCall) Do(opts ...googleapi.CallOption) (*Route, error) {
8182	gensupport.SetOptions(c.urlParams_, opts...)
8183	res, err := c.doRequest("json")
8184	if res != nil && res.StatusCode == http.StatusNotModified {
8185		if res.Body != nil {
8186			res.Body.Close()
8187		}
8188		return nil, &googleapi.Error{
8189			Code:   res.StatusCode,
8190			Header: res.Header,
8191		}
8192	}
8193	if err != nil {
8194		return nil, err
8195	}
8196	defer googleapi.CloseBody(res)
8197	if err := googleapi.CheckResponse(res); err != nil {
8198		return nil, err
8199	}
8200	ret := &Route{
8201		ServerResponse: googleapi.ServerResponse{
8202			Header:         res.Header,
8203			HTTPStatusCode: res.StatusCode,
8204		},
8205	}
8206	target := &ret
8207	if err := gensupport.DecodeResponse(target, res); err != nil {
8208		return nil, err
8209	}
8210	return ret, nil
8211	// {
8212	//   "description": "Create a route.",
8213	//   "flatPath": "apis/serving.knative.dev/v1/namespaces/{namespacesId}/routes",
8214	//   "httpMethod": "POST",
8215	//   "id": "run.namespaces.routes.create",
8216	//   "parameterOrder": [
8217	//     "parent"
8218	//   ],
8219	//   "parameters": {
8220	//     "parent": {
8221	//       "description": "The project ID or project number in which this route should be created.",
8222	//       "location": "path",
8223	//       "pattern": "^namespaces/[^/]+$",
8224	//       "required": true,
8225	//       "type": "string"
8226	//     }
8227	//   },
8228	//   "path": "apis/serving.knative.dev/v1/{+parent}/routes",
8229	//   "request": {
8230	//     "$ref": "Route"
8231	//   },
8232	//   "response": {
8233	//     "$ref": "Route"
8234	//   },
8235	//   "scopes": [
8236	//     "https://www.googleapis.com/auth/cloud-platform"
8237	//   ]
8238	// }
8239
8240}
8241
8242// method id "run.namespaces.routes.delete":
8243
8244type NamespacesRoutesDeleteCall struct {
8245	s          *APIService
8246	name       string
8247	urlParams_ gensupport.URLParams
8248	ctx_       context.Context
8249	header_    http.Header
8250}
8251
8252// Delete: Delete a route.
8253// This will cause the route to stop serving traffic.
8254func (r *NamespacesRoutesService) Delete(name string) *NamespacesRoutesDeleteCall {
8255	c := &NamespacesRoutesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8256	c.name = name
8257	return c
8258}
8259
8260// ApiVersion sets the optional parameter "apiVersion": Cloud Run
8261// currently ignores this parameter.
8262func (c *NamespacesRoutesDeleteCall) ApiVersion(apiVersion string) *NamespacesRoutesDeleteCall {
8263	c.urlParams_.Set("apiVersion", apiVersion)
8264	return c
8265}
8266
8267// Kind sets the optional parameter "kind": Cloud Run currently ignores
8268// this parameter.
8269func (c *NamespacesRoutesDeleteCall) Kind(kind string) *NamespacesRoutesDeleteCall {
8270	c.urlParams_.Set("kind", kind)
8271	return c
8272}
8273
8274// PropagationPolicy sets the optional parameter "propagationPolicy":
8275// Specifies the propagation policy of delete. Cloud Run currently
8276// ignores
8277// this setting, and deletes in the background. Please
8278// see
8279// kubernetes.io/docs/concepts/workloads/controllers/garbage-collecti
8280// on/ for
8281// more information.
8282func (c *NamespacesRoutesDeleteCall) PropagationPolicy(propagationPolicy string) *NamespacesRoutesDeleteCall {
8283	c.urlParams_.Set("propagationPolicy", propagationPolicy)
8284	return c
8285}
8286
8287// Fields allows partial responses to be retrieved. See
8288// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
8289// for more information.
8290func (c *NamespacesRoutesDeleteCall) Fields(s ...googleapi.Field) *NamespacesRoutesDeleteCall {
8291	c.urlParams_.Set("fields", googleapi.CombineFields(s))
8292	return c
8293}
8294
8295// Context sets the context to be used in this call's Do method. Any
8296// pending HTTP request will be aborted if the provided context is
8297// canceled.
8298func (c *NamespacesRoutesDeleteCall) Context(ctx context.Context) *NamespacesRoutesDeleteCall {
8299	c.ctx_ = ctx
8300	return c
8301}
8302
8303// Header returns an http.Header that can be modified by the caller to
8304// add HTTP headers to the request.
8305func (c *NamespacesRoutesDeleteCall) Header() http.Header {
8306	if c.header_ == nil {
8307		c.header_ = make(http.Header)
8308	}
8309	return c.header_
8310}
8311
8312func (c *NamespacesRoutesDeleteCall) doRequest(alt string) (*http.Response, error) {
8313	reqHeaders := make(http.Header)
8314	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
8315	for k, v := range c.header_ {
8316		reqHeaders[k] = v
8317	}
8318	reqHeaders.Set("User-Agent", c.s.userAgent())
8319	var body io.Reader = nil
8320	c.urlParams_.Set("alt", alt)
8321	c.urlParams_.Set("prettyPrint", "false")
8322	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/serving.knative.dev/v1/{+name}")
8323	urls += "?" + c.urlParams_.Encode()
8324	req, err := http.NewRequest("DELETE", urls, body)
8325	if err != nil {
8326		return nil, err
8327	}
8328	req.Header = reqHeaders
8329	googleapi.Expand(req.URL, map[string]string{
8330		"name": c.name,
8331	})
8332	return gensupport.SendRequest(c.ctx_, c.s.client, req)
8333}
8334
8335// Do executes the "run.namespaces.routes.delete" call.
8336// Exactly one of *Status or error will be non-nil. Any non-2xx status
8337// code is an error. Response headers are in either
8338// *Status.ServerResponse.Header or (if a response was returned at all)
8339// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
8340// check whether the returned error was because http.StatusNotModified
8341// was returned.
8342func (c *NamespacesRoutesDeleteCall) Do(opts ...googleapi.CallOption) (*Status, error) {
8343	gensupport.SetOptions(c.urlParams_, opts...)
8344	res, err := c.doRequest("json")
8345	if res != nil && res.StatusCode == http.StatusNotModified {
8346		if res.Body != nil {
8347			res.Body.Close()
8348		}
8349		return nil, &googleapi.Error{
8350			Code:   res.StatusCode,
8351			Header: res.Header,
8352		}
8353	}
8354	if err != nil {
8355		return nil, err
8356	}
8357	defer googleapi.CloseBody(res)
8358	if err := googleapi.CheckResponse(res); err != nil {
8359		return nil, err
8360	}
8361	ret := &Status{
8362		ServerResponse: googleapi.ServerResponse{
8363			Header:         res.Header,
8364			HTTPStatusCode: res.StatusCode,
8365		},
8366	}
8367	target := &ret
8368	if err := gensupport.DecodeResponse(target, res); err != nil {
8369		return nil, err
8370	}
8371	return ret, nil
8372	// {
8373	//   "description": "Delete a route.\nThis will cause the route to stop serving traffic.",
8374	//   "flatPath": "apis/serving.knative.dev/v1/namespaces/{namespacesId}/routes/{routesId}",
8375	//   "httpMethod": "DELETE",
8376	//   "id": "run.namespaces.routes.delete",
8377	//   "parameterOrder": [
8378	//     "name"
8379	//   ],
8380	//   "parameters": {
8381	//     "apiVersion": {
8382	//       "description": "Cloud Run currently ignores this parameter.",
8383	//       "location": "query",
8384	//       "type": "string"
8385	//     },
8386	//     "kind": {
8387	//       "description": "Cloud Run currently ignores this parameter.",
8388	//       "location": "query",
8389	//       "type": "string"
8390	//     },
8391	//     "name": {
8392	//       "description": "The name of the route being deleted. If needed, replace\n{namespace_id} with the project ID.",
8393	//       "location": "path",
8394	//       "pattern": "^namespaces/[^/]+/routes/[^/]+$",
8395	//       "required": true,
8396	//       "type": "string"
8397	//     },
8398	//     "propagationPolicy": {
8399	//       "description": "Specifies the propagation policy of delete. Cloud Run currently ignores\nthis setting, and deletes in the background. Please see\nkubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for\nmore information.",
8400	//       "location": "query",
8401	//       "type": "string"
8402	//     }
8403	//   },
8404	//   "path": "apis/serving.knative.dev/v1/{+name}",
8405	//   "response": {
8406	//     "$ref": "Status"
8407	//   },
8408	//   "scopes": [
8409	//     "https://www.googleapis.com/auth/cloud-platform"
8410	//   ]
8411	// }
8412
8413}
8414
8415// method id "run.namespaces.routes.get":
8416
8417type NamespacesRoutesGetCall struct {
8418	s            *APIService
8419	name         string
8420	urlParams_   gensupport.URLParams
8421	ifNoneMatch_ string
8422	ctx_         context.Context
8423	header_      http.Header
8424}
8425
8426// Get: Get information about a route.
8427func (r *NamespacesRoutesService) Get(name string) *NamespacesRoutesGetCall {
8428	c := &NamespacesRoutesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8429	c.name = name
8430	return c
8431}
8432
8433// Fields allows partial responses to be retrieved. See
8434// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
8435// for more information.
8436func (c *NamespacesRoutesGetCall) Fields(s ...googleapi.Field) *NamespacesRoutesGetCall {
8437	c.urlParams_.Set("fields", googleapi.CombineFields(s))
8438	return c
8439}
8440
8441// IfNoneMatch sets the optional parameter which makes the operation
8442// fail if the object's ETag matches the given value. This is useful for
8443// getting updates only after the object has changed since the last
8444// request. Use googleapi.IsNotModified to check whether the response
8445// error from Do is the result of In-None-Match.
8446func (c *NamespacesRoutesGetCall) IfNoneMatch(entityTag string) *NamespacesRoutesGetCall {
8447	c.ifNoneMatch_ = entityTag
8448	return c
8449}
8450
8451// Context sets the context to be used in this call's Do method. Any
8452// pending HTTP request will be aborted if the provided context is
8453// canceled.
8454func (c *NamespacesRoutesGetCall) Context(ctx context.Context) *NamespacesRoutesGetCall {
8455	c.ctx_ = ctx
8456	return c
8457}
8458
8459// Header returns an http.Header that can be modified by the caller to
8460// add HTTP headers to the request.
8461func (c *NamespacesRoutesGetCall) Header() http.Header {
8462	if c.header_ == nil {
8463		c.header_ = make(http.Header)
8464	}
8465	return c.header_
8466}
8467
8468func (c *NamespacesRoutesGetCall) doRequest(alt string) (*http.Response, error) {
8469	reqHeaders := make(http.Header)
8470	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
8471	for k, v := range c.header_ {
8472		reqHeaders[k] = v
8473	}
8474	reqHeaders.Set("User-Agent", c.s.userAgent())
8475	if c.ifNoneMatch_ != "" {
8476		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8477	}
8478	var body io.Reader = nil
8479	c.urlParams_.Set("alt", alt)
8480	c.urlParams_.Set("prettyPrint", "false")
8481	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/serving.knative.dev/v1/{+name}")
8482	urls += "?" + c.urlParams_.Encode()
8483	req, err := http.NewRequest("GET", urls, body)
8484	if err != nil {
8485		return nil, err
8486	}
8487	req.Header = reqHeaders
8488	googleapi.Expand(req.URL, map[string]string{
8489		"name": c.name,
8490	})
8491	return gensupport.SendRequest(c.ctx_, c.s.client, req)
8492}
8493
8494// Do executes the "run.namespaces.routes.get" call.
8495// Exactly one of *Route or error will be non-nil. Any non-2xx status
8496// code is an error. Response headers are in either
8497// *Route.ServerResponse.Header or (if a response was returned at all)
8498// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
8499// check whether the returned error was because http.StatusNotModified
8500// was returned.
8501func (c *NamespacesRoutesGetCall) Do(opts ...googleapi.CallOption) (*Route, error) {
8502	gensupport.SetOptions(c.urlParams_, opts...)
8503	res, err := c.doRequest("json")
8504	if res != nil && res.StatusCode == http.StatusNotModified {
8505		if res.Body != nil {
8506			res.Body.Close()
8507		}
8508		return nil, &googleapi.Error{
8509			Code:   res.StatusCode,
8510			Header: res.Header,
8511		}
8512	}
8513	if err != nil {
8514		return nil, err
8515	}
8516	defer googleapi.CloseBody(res)
8517	if err := googleapi.CheckResponse(res); err != nil {
8518		return nil, err
8519	}
8520	ret := &Route{
8521		ServerResponse: googleapi.ServerResponse{
8522			Header:         res.Header,
8523			HTTPStatusCode: res.StatusCode,
8524		},
8525	}
8526	target := &ret
8527	if err := gensupport.DecodeResponse(target, res); err != nil {
8528		return nil, err
8529	}
8530	return ret, nil
8531	// {
8532	//   "description": "Get information about a route.",
8533	//   "flatPath": "apis/serving.knative.dev/v1/namespaces/{namespacesId}/routes/{routesId}",
8534	//   "httpMethod": "GET",
8535	//   "id": "run.namespaces.routes.get",
8536	//   "parameterOrder": [
8537	//     "name"
8538	//   ],
8539	//   "parameters": {
8540	//     "name": {
8541	//       "description": "The name of the route being retrieved. If needed, replace\n{namespace_id} with the project ID.",
8542	//       "location": "path",
8543	//       "pattern": "^namespaces/[^/]+/routes/[^/]+$",
8544	//       "required": true,
8545	//       "type": "string"
8546	//     }
8547	//   },
8548	//   "path": "apis/serving.knative.dev/v1/{+name}",
8549	//   "response": {
8550	//     "$ref": "Route"
8551	//   },
8552	//   "scopes": [
8553	//     "https://www.googleapis.com/auth/cloud-platform"
8554	//   ]
8555	// }
8556
8557}
8558
8559// method id "run.namespaces.routes.list":
8560
8561type NamespacesRoutesListCall struct {
8562	s            *APIService
8563	parent       string
8564	urlParams_   gensupport.URLParams
8565	ifNoneMatch_ string
8566	ctx_         context.Context
8567	header_      http.Header
8568}
8569
8570// List: List routes.
8571func (r *NamespacesRoutesService) List(parent string) *NamespacesRoutesListCall {
8572	c := &NamespacesRoutesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8573	c.parent = parent
8574	return c
8575}
8576
8577// Continue sets the optional parameter "continue": Optional encoded
8578// string to continue paging.
8579func (c *NamespacesRoutesListCall) Continue(continue_ string) *NamespacesRoutesListCall {
8580	c.urlParams_.Set("continue", continue_)
8581	return c
8582}
8583
8584// FieldSelector sets the optional parameter "fieldSelector": Allows to
8585// filter resources based on a specific value for a field name.
8586// Send this in a query string format. i.e. 'metadata.name%3Dlorem'.
8587// Not currently used by Cloud Run.
8588func (c *NamespacesRoutesListCall) FieldSelector(fieldSelector string) *NamespacesRoutesListCall {
8589	c.urlParams_.Set("fieldSelector", fieldSelector)
8590	return c
8591}
8592
8593// IncludeUninitialized sets the optional parameter
8594// "includeUninitialized": Not currently used by Cloud Run.
8595func (c *NamespacesRoutesListCall) IncludeUninitialized(includeUninitialized bool) *NamespacesRoutesListCall {
8596	c.urlParams_.Set("includeUninitialized", fmt.Sprint(includeUninitialized))
8597	return c
8598}
8599
8600// LabelSelector sets the optional parameter "labelSelector": Allows to
8601// filter resources based on a label. Supported operations are
8602// =, !=, exists, in, and notIn.
8603func (c *NamespacesRoutesListCall) LabelSelector(labelSelector string) *NamespacesRoutesListCall {
8604	c.urlParams_.Set("labelSelector", labelSelector)
8605	return c
8606}
8607
8608// Limit sets the optional parameter "limit": The maximum number of
8609// records that should be returned.
8610func (c *NamespacesRoutesListCall) Limit(limit int64) *NamespacesRoutesListCall {
8611	c.urlParams_.Set("limit", fmt.Sprint(limit))
8612	return c
8613}
8614
8615// ResourceVersion sets the optional parameter "resourceVersion": The
8616// baseline resource version from which the list or watch operation
8617// should
8618// start. Not currently used by Cloud Run.
8619func (c *NamespacesRoutesListCall) ResourceVersion(resourceVersion string) *NamespacesRoutesListCall {
8620	c.urlParams_.Set("resourceVersion", resourceVersion)
8621	return c
8622}
8623
8624// Watch sets the optional parameter "watch": Flag that indicates that
8625// the client expects to watch this resource as well.
8626// Not currently used by Cloud Run.
8627func (c *NamespacesRoutesListCall) Watch(watch bool) *NamespacesRoutesListCall {
8628	c.urlParams_.Set("watch", fmt.Sprint(watch))
8629	return c
8630}
8631
8632// Fields allows partial responses to be retrieved. See
8633// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
8634// for more information.
8635func (c *NamespacesRoutesListCall) Fields(s ...googleapi.Field) *NamespacesRoutesListCall {
8636	c.urlParams_.Set("fields", googleapi.CombineFields(s))
8637	return c
8638}
8639
8640// IfNoneMatch sets the optional parameter which makes the operation
8641// fail if the object's ETag matches the given value. This is useful for
8642// getting updates only after the object has changed since the last
8643// request. Use googleapi.IsNotModified to check whether the response
8644// error from Do is the result of In-None-Match.
8645func (c *NamespacesRoutesListCall) IfNoneMatch(entityTag string) *NamespacesRoutesListCall {
8646	c.ifNoneMatch_ = entityTag
8647	return c
8648}
8649
8650// Context sets the context to be used in this call's Do method. Any
8651// pending HTTP request will be aborted if the provided context is
8652// canceled.
8653func (c *NamespacesRoutesListCall) Context(ctx context.Context) *NamespacesRoutesListCall {
8654	c.ctx_ = ctx
8655	return c
8656}
8657
8658// Header returns an http.Header that can be modified by the caller to
8659// add HTTP headers to the request.
8660func (c *NamespacesRoutesListCall) Header() http.Header {
8661	if c.header_ == nil {
8662		c.header_ = make(http.Header)
8663	}
8664	return c.header_
8665}
8666
8667func (c *NamespacesRoutesListCall) doRequest(alt string) (*http.Response, error) {
8668	reqHeaders := make(http.Header)
8669	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
8670	for k, v := range c.header_ {
8671		reqHeaders[k] = v
8672	}
8673	reqHeaders.Set("User-Agent", c.s.userAgent())
8674	if c.ifNoneMatch_ != "" {
8675		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8676	}
8677	var body io.Reader = nil
8678	c.urlParams_.Set("alt", alt)
8679	c.urlParams_.Set("prettyPrint", "false")
8680	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/serving.knative.dev/v1/{+parent}/routes")
8681	urls += "?" + c.urlParams_.Encode()
8682	req, err := http.NewRequest("GET", urls, body)
8683	if err != nil {
8684		return nil, err
8685	}
8686	req.Header = reqHeaders
8687	googleapi.Expand(req.URL, map[string]string{
8688		"parent": c.parent,
8689	})
8690	return gensupport.SendRequest(c.ctx_, c.s.client, req)
8691}
8692
8693// Do executes the "run.namespaces.routes.list" call.
8694// Exactly one of *ListRoutesResponse or error will be non-nil. Any
8695// non-2xx status code is an error. Response headers are in either
8696// *ListRoutesResponse.ServerResponse.Header or (if a response was
8697// returned at all) in error.(*googleapi.Error).Header. Use
8698// googleapi.IsNotModified to check whether the returned error was
8699// because http.StatusNotModified was returned.
8700func (c *NamespacesRoutesListCall) Do(opts ...googleapi.CallOption) (*ListRoutesResponse, error) {
8701	gensupport.SetOptions(c.urlParams_, opts...)
8702	res, err := c.doRequest("json")
8703	if res != nil && res.StatusCode == http.StatusNotModified {
8704		if res.Body != nil {
8705			res.Body.Close()
8706		}
8707		return nil, &googleapi.Error{
8708			Code:   res.StatusCode,
8709			Header: res.Header,
8710		}
8711	}
8712	if err != nil {
8713		return nil, err
8714	}
8715	defer googleapi.CloseBody(res)
8716	if err := googleapi.CheckResponse(res); err != nil {
8717		return nil, err
8718	}
8719	ret := &ListRoutesResponse{
8720		ServerResponse: googleapi.ServerResponse{
8721			Header:         res.Header,
8722			HTTPStatusCode: res.StatusCode,
8723		},
8724	}
8725	target := &ret
8726	if err := gensupport.DecodeResponse(target, res); err != nil {
8727		return nil, err
8728	}
8729	return ret, nil
8730	// {
8731	//   "description": "List routes.",
8732	//   "flatPath": "apis/serving.knative.dev/v1/namespaces/{namespacesId}/routes",
8733	//   "httpMethod": "GET",
8734	//   "id": "run.namespaces.routes.list",
8735	//   "parameterOrder": [
8736	//     "parent"
8737	//   ],
8738	//   "parameters": {
8739	//     "continue": {
8740	//       "description": "Optional encoded string to continue paging.",
8741	//       "location": "query",
8742	//       "type": "string"
8743	//     },
8744	//     "fieldSelector": {
8745	//       "description": "Allows to filter resources based on a specific value for a field name.\nSend this in a query string format. i.e. 'metadata.name%3Dlorem'.\nNot currently used by Cloud Run.",
8746	//       "location": "query",
8747	//       "type": "string"
8748	//     },
8749	//     "includeUninitialized": {
8750	//       "description": "Not currently used by Cloud Run.",
8751	//       "location": "query",
8752	//       "type": "boolean"
8753	//     },
8754	//     "labelSelector": {
8755	//       "description": "Allows to filter resources based on a label. Supported operations are\n=, !=, exists, in, and notIn.",
8756	//       "location": "query",
8757	//       "type": "string"
8758	//     },
8759	//     "limit": {
8760	//       "description": "The maximum number of records that should be returned.",
8761	//       "format": "int32",
8762	//       "location": "query",
8763	//       "type": "integer"
8764	//     },
8765	//     "parent": {
8766	//       "description": "The project ID or project number from which the routes should be listed.",
8767	//       "location": "path",
8768	//       "pattern": "^namespaces/[^/]+$",
8769	//       "required": true,
8770	//       "type": "string"
8771	//     },
8772	//     "resourceVersion": {
8773	//       "description": "The baseline resource version from which the list or watch operation should\nstart. Not currently used by Cloud Run.",
8774	//       "location": "query",
8775	//       "type": "string"
8776	//     },
8777	//     "watch": {
8778	//       "description": "Flag that indicates that the client expects to watch this resource as well.\nNot currently used by Cloud Run.",
8779	//       "location": "query",
8780	//       "type": "boolean"
8781	//     }
8782	//   },
8783	//   "path": "apis/serving.knative.dev/v1/{+parent}/routes",
8784	//   "response": {
8785	//     "$ref": "ListRoutesResponse"
8786	//   },
8787	//   "scopes": [
8788	//     "https://www.googleapis.com/auth/cloud-platform"
8789	//   ]
8790	// }
8791
8792}
8793
8794// method id "run.namespaces.routes.replaceRoute":
8795
8796type NamespacesRoutesReplaceRouteCall struct {
8797	s          *APIService
8798	name       string
8799	route      *Route
8800	urlParams_ gensupport.URLParams
8801	ctx_       context.Context
8802	header_    http.Header
8803}
8804
8805// ReplaceRoute: Replace a route.
8806//
8807// Only the spec and metadata labels and annotations are modifiable.
8808// After
8809// the Update request, Cloud Run will work to make the 'status'
8810// match the requested 'spec'.
8811//
8812// May provide metadata.resourceVersion to enforce update from last read
8813// for
8814// optimistic concurrency control.
8815func (r *NamespacesRoutesService) ReplaceRoute(name string, route *Route) *NamespacesRoutesReplaceRouteCall {
8816	c := &NamespacesRoutesReplaceRouteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8817	c.name = name
8818	c.route = route
8819	return c
8820}
8821
8822// Fields allows partial responses to be retrieved. See
8823// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
8824// for more information.
8825func (c *NamespacesRoutesReplaceRouteCall) Fields(s ...googleapi.Field) *NamespacesRoutesReplaceRouteCall {
8826	c.urlParams_.Set("fields", googleapi.CombineFields(s))
8827	return c
8828}
8829
8830// Context sets the context to be used in this call's Do method. Any
8831// pending HTTP request will be aborted if the provided context is
8832// canceled.
8833func (c *NamespacesRoutesReplaceRouteCall) Context(ctx context.Context) *NamespacesRoutesReplaceRouteCall {
8834	c.ctx_ = ctx
8835	return c
8836}
8837
8838// Header returns an http.Header that can be modified by the caller to
8839// add HTTP headers to the request.
8840func (c *NamespacesRoutesReplaceRouteCall) Header() http.Header {
8841	if c.header_ == nil {
8842		c.header_ = make(http.Header)
8843	}
8844	return c.header_
8845}
8846
8847func (c *NamespacesRoutesReplaceRouteCall) doRequest(alt string) (*http.Response, error) {
8848	reqHeaders := make(http.Header)
8849	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
8850	for k, v := range c.header_ {
8851		reqHeaders[k] = v
8852	}
8853	reqHeaders.Set("User-Agent", c.s.userAgent())
8854	var body io.Reader = nil
8855	body, err := googleapi.WithoutDataWrapper.JSONReader(c.route)
8856	if err != nil {
8857		return nil, err
8858	}
8859	reqHeaders.Set("Content-Type", "application/json")
8860	c.urlParams_.Set("alt", alt)
8861	c.urlParams_.Set("prettyPrint", "false")
8862	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/serving.knative.dev/v1/{+name}")
8863	urls += "?" + c.urlParams_.Encode()
8864	req, err := http.NewRequest("PUT", urls, body)
8865	if err != nil {
8866		return nil, err
8867	}
8868	req.Header = reqHeaders
8869	googleapi.Expand(req.URL, map[string]string{
8870		"name": c.name,
8871	})
8872	return gensupport.SendRequest(c.ctx_, c.s.client, req)
8873}
8874
8875// Do executes the "run.namespaces.routes.replaceRoute" call.
8876// Exactly one of *Route or error will be non-nil. Any non-2xx status
8877// code is an error. Response headers are in either
8878// *Route.ServerResponse.Header or (if a response was returned at all)
8879// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
8880// check whether the returned error was because http.StatusNotModified
8881// was returned.
8882func (c *NamespacesRoutesReplaceRouteCall) Do(opts ...googleapi.CallOption) (*Route, error) {
8883	gensupport.SetOptions(c.urlParams_, opts...)
8884	res, err := c.doRequest("json")
8885	if res != nil && res.StatusCode == http.StatusNotModified {
8886		if res.Body != nil {
8887			res.Body.Close()
8888		}
8889		return nil, &googleapi.Error{
8890			Code:   res.StatusCode,
8891			Header: res.Header,
8892		}
8893	}
8894	if err != nil {
8895		return nil, err
8896	}
8897	defer googleapi.CloseBody(res)
8898	if err := googleapi.CheckResponse(res); err != nil {
8899		return nil, err
8900	}
8901	ret := &Route{
8902		ServerResponse: googleapi.ServerResponse{
8903			Header:         res.Header,
8904			HTTPStatusCode: res.StatusCode,
8905		},
8906	}
8907	target := &ret
8908	if err := gensupport.DecodeResponse(target, res); err != nil {
8909		return nil, err
8910	}
8911	return ret, nil
8912	// {
8913	//   "description": "Replace a route.\n\nOnly the spec and metadata labels and annotations are modifiable. After\nthe Update request, Cloud Run will work to make the 'status'\nmatch the requested 'spec'.\n\nMay provide metadata.resourceVersion to enforce update from last read for\noptimistic concurrency control.",
8914	//   "flatPath": "apis/serving.knative.dev/v1/namespaces/{namespacesId}/routes/{routesId}",
8915	//   "httpMethod": "PUT",
8916	//   "id": "run.namespaces.routes.replaceRoute",
8917	//   "parameterOrder": [
8918	//     "name"
8919	//   ],
8920	//   "parameters": {
8921	//     "name": {
8922	//       "description": "The name of the route being replaced. If needed, replace\n{namespace_id} with the project ID.",
8923	//       "location": "path",
8924	//       "pattern": "^namespaces/[^/]+/routes/[^/]+$",
8925	//       "required": true,
8926	//       "type": "string"
8927	//     }
8928	//   },
8929	//   "path": "apis/serving.knative.dev/v1/{+name}",
8930	//   "request": {
8931	//     "$ref": "Route"
8932	//   },
8933	//   "response": {
8934	//     "$ref": "Route"
8935	//   },
8936	//   "scopes": [
8937	//     "https://www.googleapis.com/auth/cloud-platform"
8938	//   ]
8939	// }
8940
8941}
8942
8943// method id "run.namespaces.services.create":
8944
8945type NamespacesServicesCreateCall struct {
8946	s          *APIService
8947	parent     string
8948	service    *Service
8949	urlParams_ gensupport.URLParams
8950	ctx_       context.Context
8951	header_    http.Header
8952}
8953
8954// Create: Create a service.
8955func (r *NamespacesServicesService) Create(parent string, service *Service) *NamespacesServicesCreateCall {
8956	c := &NamespacesServicesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8957	c.parent = parent
8958	c.service = service
8959	return c
8960}
8961
8962// Fields allows partial responses to be retrieved. See
8963// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
8964// for more information.
8965func (c *NamespacesServicesCreateCall) Fields(s ...googleapi.Field) *NamespacesServicesCreateCall {
8966	c.urlParams_.Set("fields", googleapi.CombineFields(s))
8967	return c
8968}
8969
8970// Context sets the context to be used in this call's Do method. Any
8971// pending HTTP request will be aborted if the provided context is
8972// canceled.
8973func (c *NamespacesServicesCreateCall) Context(ctx context.Context) *NamespacesServicesCreateCall {
8974	c.ctx_ = ctx
8975	return c
8976}
8977
8978// Header returns an http.Header that can be modified by the caller to
8979// add HTTP headers to the request.
8980func (c *NamespacesServicesCreateCall) Header() http.Header {
8981	if c.header_ == nil {
8982		c.header_ = make(http.Header)
8983	}
8984	return c.header_
8985}
8986
8987func (c *NamespacesServicesCreateCall) doRequest(alt string) (*http.Response, error) {
8988	reqHeaders := make(http.Header)
8989	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
8990	for k, v := range c.header_ {
8991		reqHeaders[k] = v
8992	}
8993	reqHeaders.Set("User-Agent", c.s.userAgent())
8994	var body io.Reader = nil
8995	body, err := googleapi.WithoutDataWrapper.JSONReader(c.service)
8996	if err != nil {
8997		return nil, err
8998	}
8999	reqHeaders.Set("Content-Type", "application/json")
9000	c.urlParams_.Set("alt", alt)
9001	c.urlParams_.Set("prettyPrint", "false")
9002	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/serving.knative.dev/v1/{+parent}/services")
9003	urls += "?" + c.urlParams_.Encode()
9004	req, err := http.NewRequest("POST", urls, body)
9005	if err != nil {
9006		return nil, err
9007	}
9008	req.Header = reqHeaders
9009	googleapi.Expand(req.URL, map[string]string{
9010		"parent": c.parent,
9011	})
9012	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9013}
9014
9015// Do executes the "run.namespaces.services.create" call.
9016// Exactly one of *Service or error will be non-nil. Any non-2xx status
9017// code is an error. Response headers are in either
9018// *Service.ServerResponse.Header or (if a response was returned at all)
9019// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
9020// check whether the returned error was because http.StatusNotModified
9021// was returned.
9022func (c *NamespacesServicesCreateCall) Do(opts ...googleapi.CallOption) (*Service, error) {
9023	gensupport.SetOptions(c.urlParams_, opts...)
9024	res, err := c.doRequest("json")
9025	if res != nil && res.StatusCode == http.StatusNotModified {
9026		if res.Body != nil {
9027			res.Body.Close()
9028		}
9029		return nil, &googleapi.Error{
9030			Code:   res.StatusCode,
9031			Header: res.Header,
9032		}
9033	}
9034	if err != nil {
9035		return nil, err
9036	}
9037	defer googleapi.CloseBody(res)
9038	if err := googleapi.CheckResponse(res); err != nil {
9039		return nil, err
9040	}
9041	ret := &Service{
9042		ServerResponse: googleapi.ServerResponse{
9043			Header:         res.Header,
9044			HTTPStatusCode: res.StatusCode,
9045		},
9046	}
9047	target := &ret
9048	if err := gensupport.DecodeResponse(target, res); err != nil {
9049		return nil, err
9050	}
9051	return ret, nil
9052	// {
9053	//   "description": "Create a service.",
9054	//   "flatPath": "apis/serving.knative.dev/v1/namespaces/{namespacesId}/services",
9055	//   "httpMethod": "POST",
9056	//   "id": "run.namespaces.services.create",
9057	//   "parameterOrder": [
9058	//     "parent"
9059	//   ],
9060	//   "parameters": {
9061	//     "parent": {
9062	//       "description": "The project ID or project number in which this service should be created.",
9063	//       "location": "path",
9064	//       "pattern": "^namespaces/[^/]+$",
9065	//       "required": true,
9066	//       "type": "string"
9067	//     }
9068	//   },
9069	//   "path": "apis/serving.knative.dev/v1/{+parent}/services",
9070	//   "request": {
9071	//     "$ref": "Service"
9072	//   },
9073	//   "response": {
9074	//     "$ref": "Service"
9075	//   },
9076	//   "scopes": [
9077	//     "https://www.googleapis.com/auth/cloud-platform"
9078	//   ]
9079	// }
9080
9081}
9082
9083// method id "run.namespaces.services.delete":
9084
9085type NamespacesServicesDeleteCall struct {
9086	s          *APIService
9087	name       string
9088	urlParams_ gensupport.URLParams
9089	ctx_       context.Context
9090	header_    http.Header
9091}
9092
9093// Delete: Delete a service.
9094// This will cause the Service to stop serving traffic and will delete
9095// the
9096// child entities like Routes, Configurations and Revisions.
9097func (r *NamespacesServicesService) Delete(name string) *NamespacesServicesDeleteCall {
9098	c := &NamespacesServicesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9099	c.name = name
9100	return c
9101}
9102
9103// ApiVersion sets the optional parameter "apiVersion": Cloud Run
9104// currently ignores this parameter.
9105func (c *NamespacesServicesDeleteCall) ApiVersion(apiVersion string) *NamespacesServicesDeleteCall {
9106	c.urlParams_.Set("apiVersion", apiVersion)
9107	return c
9108}
9109
9110// Kind sets the optional parameter "kind": Cloud Run currently ignores
9111// this parameter.
9112func (c *NamespacesServicesDeleteCall) Kind(kind string) *NamespacesServicesDeleteCall {
9113	c.urlParams_.Set("kind", kind)
9114	return c
9115}
9116
9117// PropagationPolicy sets the optional parameter "propagationPolicy":
9118// Specifies the propagation policy of delete. Cloud Run currently
9119// ignores
9120// this setting, and deletes in the background. Please
9121// see
9122// kubernetes.io/docs/concepts/workloads/controllers/garbage-collecti
9123// on/ for
9124// more information.
9125func (c *NamespacesServicesDeleteCall) PropagationPolicy(propagationPolicy string) *NamespacesServicesDeleteCall {
9126	c.urlParams_.Set("propagationPolicy", propagationPolicy)
9127	return c
9128}
9129
9130// Fields allows partial responses to be retrieved. See
9131// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9132// for more information.
9133func (c *NamespacesServicesDeleteCall) Fields(s ...googleapi.Field) *NamespacesServicesDeleteCall {
9134	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9135	return c
9136}
9137
9138// Context sets the context to be used in this call's Do method. Any
9139// pending HTTP request will be aborted if the provided context is
9140// canceled.
9141func (c *NamespacesServicesDeleteCall) Context(ctx context.Context) *NamespacesServicesDeleteCall {
9142	c.ctx_ = ctx
9143	return c
9144}
9145
9146// Header returns an http.Header that can be modified by the caller to
9147// add HTTP headers to the request.
9148func (c *NamespacesServicesDeleteCall) Header() http.Header {
9149	if c.header_ == nil {
9150		c.header_ = make(http.Header)
9151	}
9152	return c.header_
9153}
9154
9155func (c *NamespacesServicesDeleteCall) doRequest(alt string) (*http.Response, error) {
9156	reqHeaders := make(http.Header)
9157	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
9158	for k, v := range c.header_ {
9159		reqHeaders[k] = v
9160	}
9161	reqHeaders.Set("User-Agent", c.s.userAgent())
9162	var body io.Reader = nil
9163	c.urlParams_.Set("alt", alt)
9164	c.urlParams_.Set("prettyPrint", "false")
9165	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/serving.knative.dev/v1/{+name}")
9166	urls += "?" + c.urlParams_.Encode()
9167	req, err := http.NewRequest("DELETE", urls, body)
9168	if err != nil {
9169		return nil, err
9170	}
9171	req.Header = reqHeaders
9172	googleapi.Expand(req.URL, map[string]string{
9173		"name": c.name,
9174	})
9175	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9176}
9177
9178// Do executes the "run.namespaces.services.delete" call.
9179// Exactly one of *Status or error will be non-nil. Any non-2xx status
9180// code is an error. Response headers are in either
9181// *Status.ServerResponse.Header or (if a response was returned at all)
9182// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
9183// check whether the returned error was because http.StatusNotModified
9184// was returned.
9185func (c *NamespacesServicesDeleteCall) Do(opts ...googleapi.CallOption) (*Status, error) {
9186	gensupport.SetOptions(c.urlParams_, opts...)
9187	res, err := c.doRequest("json")
9188	if res != nil && res.StatusCode == http.StatusNotModified {
9189		if res.Body != nil {
9190			res.Body.Close()
9191		}
9192		return nil, &googleapi.Error{
9193			Code:   res.StatusCode,
9194			Header: res.Header,
9195		}
9196	}
9197	if err != nil {
9198		return nil, err
9199	}
9200	defer googleapi.CloseBody(res)
9201	if err := googleapi.CheckResponse(res); err != nil {
9202		return nil, err
9203	}
9204	ret := &Status{
9205		ServerResponse: googleapi.ServerResponse{
9206			Header:         res.Header,
9207			HTTPStatusCode: res.StatusCode,
9208		},
9209	}
9210	target := &ret
9211	if err := gensupport.DecodeResponse(target, res); err != nil {
9212		return nil, err
9213	}
9214	return ret, nil
9215	// {
9216	//   "description": "Delete a service.\nThis will cause the Service to stop serving traffic and will delete the\nchild entities like Routes, Configurations and Revisions.",
9217	//   "flatPath": "apis/serving.knative.dev/v1/namespaces/{namespacesId}/services/{servicesId}",
9218	//   "httpMethod": "DELETE",
9219	//   "id": "run.namespaces.services.delete",
9220	//   "parameterOrder": [
9221	//     "name"
9222	//   ],
9223	//   "parameters": {
9224	//     "apiVersion": {
9225	//       "description": "Cloud Run currently ignores this parameter.",
9226	//       "location": "query",
9227	//       "type": "string"
9228	//     },
9229	//     "kind": {
9230	//       "description": "Cloud Run currently ignores this parameter.",
9231	//       "location": "query",
9232	//       "type": "string"
9233	//     },
9234	//     "name": {
9235	//       "description": "The name of the service being deleted. If needed, replace\n{namespace_id} with the project ID.",
9236	//       "location": "path",
9237	//       "pattern": "^namespaces/[^/]+/services/[^/]+$",
9238	//       "required": true,
9239	//       "type": "string"
9240	//     },
9241	//     "propagationPolicy": {
9242	//       "description": "Specifies the propagation policy of delete. Cloud Run currently ignores\nthis setting, and deletes in the background. Please see\nkubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for\nmore information.",
9243	//       "location": "query",
9244	//       "type": "string"
9245	//     }
9246	//   },
9247	//   "path": "apis/serving.knative.dev/v1/{+name}",
9248	//   "response": {
9249	//     "$ref": "Status"
9250	//   },
9251	//   "scopes": [
9252	//     "https://www.googleapis.com/auth/cloud-platform"
9253	//   ]
9254	// }
9255
9256}
9257
9258// method id "run.namespaces.services.get":
9259
9260type NamespacesServicesGetCall struct {
9261	s            *APIService
9262	name         string
9263	urlParams_   gensupport.URLParams
9264	ifNoneMatch_ string
9265	ctx_         context.Context
9266	header_      http.Header
9267}
9268
9269// Get: Get information about a service.
9270func (r *NamespacesServicesService) Get(name string) *NamespacesServicesGetCall {
9271	c := &NamespacesServicesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9272	c.name = name
9273	return c
9274}
9275
9276// Fields allows partial responses to be retrieved. See
9277// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9278// for more information.
9279func (c *NamespacesServicesGetCall) Fields(s ...googleapi.Field) *NamespacesServicesGetCall {
9280	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9281	return c
9282}
9283
9284// IfNoneMatch sets the optional parameter which makes the operation
9285// fail if the object's ETag matches the given value. This is useful for
9286// getting updates only after the object has changed since the last
9287// request. Use googleapi.IsNotModified to check whether the response
9288// error from Do is the result of In-None-Match.
9289func (c *NamespacesServicesGetCall) IfNoneMatch(entityTag string) *NamespacesServicesGetCall {
9290	c.ifNoneMatch_ = entityTag
9291	return c
9292}
9293
9294// Context sets the context to be used in this call's Do method. Any
9295// pending HTTP request will be aborted if the provided context is
9296// canceled.
9297func (c *NamespacesServicesGetCall) Context(ctx context.Context) *NamespacesServicesGetCall {
9298	c.ctx_ = ctx
9299	return c
9300}
9301
9302// Header returns an http.Header that can be modified by the caller to
9303// add HTTP headers to the request.
9304func (c *NamespacesServicesGetCall) Header() http.Header {
9305	if c.header_ == nil {
9306		c.header_ = make(http.Header)
9307	}
9308	return c.header_
9309}
9310
9311func (c *NamespacesServicesGetCall) doRequest(alt string) (*http.Response, error) {
9312	reqHeaders := make(http.Header)
9313	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
9314	for k, v := range c.header_ {
9315		reqHeaders[k] = v
9316	}
9317	reqHeaders.Set("User-Agent", c.s.userAgent())
9318	if c.ifNoneMatch_ != "" {
9319		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9320	}
9321	var body io.Reader = nil
9322	c.urlParams_.Set("alt", alt)
9323	c.urlParams_.Set("prettyPrint", "false")
9324	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/serving.knative.dev/v1/{+name}")
9325	urls += "?" + c.urlParams_.Encode()
9326	req, err := http.NewRequest("GET", urls, body)
9327	if err != nil {
9328		return nil, err
9329	}
9330	req.Header = reqHeaders
9331	googleapi.Expand(req.URL, map[string]string{
9332		"name": c.name,
9333	})
9334	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9335}
9336
9337// Do executes the "run.namespaces.services.get" call.
9338// Exactly one of *Service or error will be non-nil. Any non-2xx status
9339// code is an error. Response headers are in either
9340// *Service.ServerResponse.Header or (if a response was returned at all)
9341// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
9342// check whether the returned error was because http.StatusNotModified
9343// was returned.
9344func (c *NamespacesServicesGetCall) Do(opts ...googleapi.CallOption) (*Service, error) {
9345	gensupport.SetOptions(c.urlParams_, opts...)
9346	res, err := c.doRequest("json")
9347	if res != nil && res.StatusCode == http.StatusNotModified {
9348		if res.Body != nil {
9349			res.Body.Close()
9350		}
9351		return nil, &googleapi.Error{
9352			Code:   res.StatusCode,
9353			Header: res.Header,
9354		}
9355	}
9356	if err != nil {
9357		return nil, err
9358	}
9359	defer googleapi.CloseBody(res)
9360	if err := googleapi.CheckResponse(res); err != nil {
9361		return nil, err
9362	}
9363	ret := &Service{
9364		ServerResponse: googleapi.ServerResponse{
9365			Header:         res.Header,
9366			HTTPStatusCode: res.StatusCode,
9367		},
9368	}
9369	target := &ret
9370	if err := gensupport.DecodeResponse(target, res); err != nil {
9371		return nil, err
9372	}
9373	return ret, nil
9374	// {
9375	//   "description": "Get information about a service.",
9376	//   "flatPath": "apis/serving.knative.dev/v1/namespaces/{namespacesId}/services/{servicesId}",
9377	//   "httpMethod": "GET",
9378	//   "id": "run.namespaces.services.get",
9379	//   "parameterOrder": [
9380	//     "name"
9381	//   ],
9382	//   "parameters": {
9383	//     "name": {
9384	//       "description": "The name of the service being retrieved. If needed, replace\n{namespace_id} with the project ID.",
9385	//       "location": "path",
9386	//       "pattern": "^namespaces/[^/]+/services/[^/]+$",
9387	//       "required": true,
9388	//       "type": "string"
9389	//     }
9390	//   },
9391	//   "path": "apis/serving.knative.dev/v1/{+name}",
9392	//   "response": {
9393	//     "$ref": "Service"
9394	//   },
9395	//   "scopes": [
9396	//     "https://www.googleapis.com/auth/cloud-platform"
9397	//   ]
9398	// }
9399
9400}
9401
9402// method id "run.namespaces.services.list":
9403
9404type NamespacesServicesListCall struct {
9405	s            *APIService
9406	parent       string
9407	urlParams_   gensupport.URLParams
9408	ifNoneMatch_ string
9409	ctx_         context.Context
9410	header_      http.Header
9411}
9412
9413// List: List services.
9414func (r *NamespacesServicesService) List(parent string) *NamespacesServicesListCall {
9415	c := &NamespacesServicesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9416	c.parent = parent
9417	return c
9418}
9419
9420// Continue sets the optional parameter "continue": Optional encoded
9421// string to continue paging.
9422func (c *NamespacesServicesListCall) Continue(continue_ string) *NamespacesServicesListCall {
9423	c.urlParams_.Set("continue", continue_)
9424	return c
9425}
9426
9427// FieldSelector sets the optional parameter "fieldSelector": Allows to
9428// filter resources based on a specific value for a field name.
9429// Send this in a query string format. i.e. 'metadata.name%3Dlorem'.
9430// Not currently used by Cloud Run.
9431func (c *NamespacesServicesListCall) FieldSelector(fieldSelector string) *NamespacesServicesListCall {
9432	c.urlParams_.Set("fieldSelector", fieldSelector)
9433	return c
9434}
9435
9436// IncludeUninitialized sets the optional parameter
9437// "includeUninitialized": Not currently used by Cloud Run.
9438func (c *NamespacesServicesListCall) IncludeUninitialized(includeUninitialized bool) *NamespacesServicesListCall {
9439	c.urlParams_.Set("includeUninitialized", fmt.Sprint(includeUninitialized))
9440	return c
9441}
9442
9443// LabelSelector sets the optional parameter "labelSelector": Allows to
9444// filter resources based on a label. Supported operations are
9445// =, !=, exists, in, and notIn.
9446func (c *NamespacesServicesListCall) LabelSelector(labelSelector string) *NamespacesServicesListCall {
9447	c.urlParams_.Set("labelSelector", labelSelector)
9448	return c
9449}
9450
9451// Limit sets the optional parameter "limit": The maximum number of
9452// records that should be returned.
9453func (c *NamespacesServicesListCall) Limit(limit int64) *NamespacesServicesListCall {
9454	c.urlParams_.Set("limit", fmt.Sprint(limit))
9455	return c
9456}
9457
9458// ResourceVersion sets the optional parameter "resourceVersion": The
9459// baseline resource version from which the list or watch operation
9460// should
9461// start. Not currently used by Cloud Run.
9462func (c *NamespacesServicesListCall) ResourceVersion(resourceVersion string) *NamespacesServicesListCall {
9463	c.urlParams_.Set("resourceVersion", resourceVersion)
9464	return c
9465}
9466
9467// Watch sets the optional parameter "watch": Flag that indicates that
9468// the client expects to watch this resource as well.
9469// Not currently used by Cloud Run.
9470func (c *NamespacesServicesListCall) Watch(watch bool) *NamespacesServicesListCall {
9471	c.urlParams_.Set("watch", fmt.Sprint(watch))
9472	return c
9473}
9474
9475// Fields allows partial responses to be retrieved. See
9476// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9477// for more information.
9478func (c *NamespacesServicesListCall) Fields(s ...googleapi.Field) *NamespacesServicesListCall {
9479	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9480	return c
9481}
9482
9483// IfNoneMatch sets the optional parameter which makes the operation
9484// fail if the object's ETag matches the given value. This is useful for
9485// getting updates only after the object has changed since the last
9486// request. Use googleapi.IsNotModified to check whether the response
9487// error from Do is the result of In-None-Match.
9488func (c *NamespacesServicesListCall) IfNoneMatch(entityTag string) *NamespacesServicesListCall {
9489	c.ifNoneMatch_ = entityTag
9490	return c
9491}
9492
9493// Context sets the context to be used in this call's Do method. Any
9494// pending HTTP request will be aborted if the provided context is
9495// canceled.
9496func (c *NamespacesServicesListCall) Context(ctx context.Context) *NamespacesServicesListCall {
9497	c.ctx_ = ctx
9498	return c
9499}
9500
9501// Header returns an http.Header that can be modified by the caller to
9502// add HTTP headers to the request.
9503func (c *NamespacesServicesListCall) Header() http.Header {
9504	if c.header_ == nil {
9505		c.header_ = make(http.Header)
9506	}
9507	return c.header_
9508}
9509
9510func (c *NamespacesServicesListCall) doRequest(alt string) (*http.Response, error) {
9511	reqHeaders := make(http.Header)
9512	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
9513	for k, v := range c.header_ {
9514		reqHeaders[k] = v
9515	}
9516	reqHeaders.Set("User-Agent", c.s.userAgent())
9517	if c.ifNoneMatch_ != "" {
9518		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9519	}
9520	var body io.Reader = nil
9521	c.urlParams_.Set("alt", alt)
9522	c.urlParams_.Set("prettyPrint", "false")
9523	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/serving.knative.dev/v1/{+parent}/services")
9524	urls += "?" + c.urlParams_.Encode()
9525	req, err := http.NewRequest("GET", urls, body)
9526	if err != nil {
9527		return nil, err
9528	}
9529	req.Header = reqHeaders
9530	googleapi.Expand(req.URL, map[string]string{
9531		"parent": c.parent,
9532	})
9533	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9534}
9535
9536// Do executes the "run.namespaces.services.list" call.
9537// Exactly one of *ListServicesResponse or error will be non-nil. Any
9538// non-2xx status code is an error. Response headers are in either
9539// *ListServicesResponse.ServerResponse.Header or (if a response was
9540// returned at all) in error.(*googleapi.Error).Header. Use
9541// googleapi.IsNotModified to check whether the returned error was
9542// because http.StatusNotModified was returned.
9543func (c *NamespacesServicesListCall) Do(opts ...googleapi.CallOption) (*ListServicesResponse, error) {
9544	gensupport.SetOptions(c.urlParams_, opts...)
9545	res, err := c.doRequest("json")
9546	if res != nil && res.StatusCode == http.StatusNotModified {
9547		if res.Body != nil {
9548			res.Body.Close()
9549		}
9550		return nil, &googleapi.Error{
9551			Code:   res.StatusCode,
9552			Header: res.Header,
9553		}
9554	}
9555	if err != nil {
9556		return nil, err
9557	}
9558	defer googleapi.CloseBody(res)
9559	if err := googleapi.CheckResponse(res); err != nil {
9560		return nil, err
9561	}
9562	ret := &ListServicesResponse{
9563		ServerResponse: googleapi.ServerResponse{
9564			Header:         res.Header,
9565			HTTPStatusCode: res.StatusCode,
9566		},
9567	}
9568	target := &ret
9569	if err := gensupport.DecodeResponse(target, res); err != nil {
9570		return nil, err
9571	}
9572	return ret, nil
9573	// {
9574	//   "description": "List services.",
9575	//   "flatPath": "apis/serving.knative.dev/v1/namespaces/{namespacesId}/services",
9576	//   "httpMethod": "GET",
9577	//   "id": "run.namespaces.services.list",
9578	//   "parameterOrder": [
9579	//     "parent"
9580	//   ],
9581	//   "parameters": {
9582	//     "continue": {
9583	//       "description": "Optional encoded string to continue paging.",
9584	//       "location": "query",
9585	//       "type": "string"
9586	//     },
9587	//     "fieldSelector": {
9588	//       "description": "Allows to filter resources based on a specific value for a field name.\nSend this in a query string format. i.e. 'metadata.name%3Dlorem'.\nNot currently used by Cloud Run.",
9589	//       "location": "query",
9590	//       "type": "string"
9591	//     },
9592	//     "includeUninitialized": {
9593	//       "description": "Not currently used by Cloud Run.",
9594	//       "location": "query",
9595	//       "type": "boolean"
9596	//     },
9597	//     "labelSelector": {
9598	//       "description": "Allows to filter resources based on a label. Supported operations are\n=, !=, exists, in, and notIn.",
9599	//       "location": "query",
9600	//       "type": "string"
9601	//     },
9602	//     "limit": {
9603	//       "description": "The maximum number of records that should be returned.",
9604	//       "format": "int32",
9605	//       "location": "query",
9606	//       "type": "integer"
9607	//     },
9608	//     "parent": {
9609	//       "description": "The project ID or project number from which the services should be listed.",
9610	//       "location": "path",
9611	//       "pattern": "^namespaces/[^/]+$",
9612	//       "required": true,
9613	//       "type": "string"
9614	//     },
9615	//     "resourceVersion": {
9616	//       "description": "The baseline resource version from which the list or watch operation should\nstart. Not currently used by Cloud Run.",
9617	//       "location": "query",
9618	//       "type": "string"
9619	//     },
9620	//     "watch": {
9621	//       "description": "Flag that indicates that the client expects to watch this resource as well.\nNot currently used by Cloud Run.",
9622	//       "location": "query",
9623	//       "type": "boolean"
9624	//     }
9625	//   },
9626	//   "path": "apis/serving.knative.dev/v1/{+parent}/services",
9627	//   "response": {
9628	//     "$ref": "ListServicesResponse"
9629	//   },
9630	//   "scopes": [
9631	//     "https://www.googleapis.com/auth/cloud-platform"
9632	//   ]
9633	// }
9634
9635}
9636
9637// method id "run.namespaces.services.replaceService":
9638
9639type NamespacesServicesReplaceServiceCall struct {
9640	s          *APIService
9641	name       string
9642	service    *Service
9643	urlParams_ gensupport.URLParams
9644	ctx_       context.Context
9645	header_    http.Header
9646}
9647
9648// ReplaceService: Replace a service.
9649//
9650// Only the spec and metadata labels and annotations are modifiable.
9651// After
9652// the Update request, Cloud Run will work to make the 'status'
9653// match the requested 'spec'.
9654//
9655// May provide metadata.resourceVersion to enforce update from last read
9656// for
9657// optimistic concurrency control.
9658func (r *NamespacesServicesService) ReplaceService(name string, service *Service) *NamespacesServicesReplaceServiceCall {
9659	c := &NamespacesServicesReplaceServiceCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9660	c.name = name
9661	c.service = service
9662	return c
9663}
9664
9665// Fields allows partial responses to be retrieved. See
9666// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9667// for more information.
9668func (c *NamespacesServicesReplaceServiceCall) Fields(s ...googleapi.Field) *NamespacesServicesReplaceServiceCall {
9669	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9670	return c
9671}
9672
9673// Context sets the context to be used in this call's Do method. Any
9674// pending HTTP request will be aborted if the provided context is
9675// canceled.
9676func (c *NamespacesServicesReplaceServiceCall) Context(ctx context.Context) *NamespacesServicesReplaceServiceCall {
9677	c.ctx_ = ctx
9678	return c
9679}
9680
9681// Header returns an http.Header that can be modified by the caller to
9682// add HTTP headers to the request.
9683func (c *NamespacesServicesReplaceServiceCall) Header() http.Header {
9684	if c.header_ == nil {
9685		c.header_ = make(http.Header)
9686	}
9687	return c.header_
9688}
9689
9690func (c *NamespacesServicesReplaceServiceCall) doRequest(alt string) (*http.Response, error) {
9691	reqHeaders := make(http.Header)
9692	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
9693	for k, v := range c.header_ {
9694		reqHeaders[k] = v
9695	}
9696	reqHeaders.Set("User-Agent", c.s.userAgent())
9697	var body io.Reader = nil
9698	body, err := googleapi.WithoutDataWrapper.JSONReader(c.service)
9699	if err != nil {
9700		return nil, err
9701	}
9702	reqHeaders.Set("Content-Type", "application/json")
9703	c.urlParams_.Set("alt", alt)
9704	c.urlParams_.Set("prettyPrint", "false")
9705	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/serving.knative.dev/v1/{+name}")
9706	urls += "?" + c.urlParams_.Encode()
9707	req, err := http.NewRequest("PUT", urls, body)
9708	if err != nil {
9709		return nil, err
9710	}
9711	req.Header = reqHeaders
9712	googleapi.Expand(req.URL, map[string]string{
9713		"name": c.name,
9714	})
9715	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9716}
9717
9718// Do executes the "run.namespaces.services.replaceService" call.
9719// Exactly one of *Service or error will be non-nil. Any non-2xx status
9720// code is an error. Response headers are in either
9721// *Service.ServerResponse.Header or (if a response was returned at all)
9722// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
9723// check whether the returned error was because http.StatusNotModified
9724// was returned.
9725func (c *NamespacesServicesReplaceServiceCall) Do(opts ...googleapi.CallOption) (*Service, error) {
9726	gensupport.SetOptions(c.urlParams_, opts...)
9727	res, err := c.doRequest("json")
9728	if res != nil && res.StatusCode == http.StatusNotModified {
9729		if res.Body != nil {
9730			res.Body.Close()
9731		}
9732		return nil, &googleapi.Error{
9733			Code:   res.StatusCode,
9734			Header: res.Header,
9735		}
9736	}
9737	if err != nil {
9738		return nil, err
9739	}
9740	defer googleapi.CloseBody(res)
9741	if err := googleapi.CheckResponse(res); err != nil {
9742		return nil, err
9743	}
9744	ret := &Service{
9745		ServerResponse: googleapi.ServerResponse{
9746			Header:         res.Header,
9747			HTTPStatusCode: res.StatusCode,
9748		},
9749	}
9750	target := &ret
9751	if err := gensupport.DecodeResponse(target, res); err != nil {
9752		return nil, err
9753	}
9754	return ret, nil
9755	// {
9756	//   "description": "Replace a service.\n\nOnly the spec and metadata labels and annotations are modifiable. After\nthe Update request, Cloud Run will work to make the 'status'\nmatch the requested 'spec'.\n\nMay provide metadata.resourceVersion to enforce update from last read for\noptimistic concurrency control.",
9757	//   "flatPath": "apis/serving.knative.dev/v1/namespaces/{namespacesId}/services/{servicesId}",
9758	//   "httpMethod": "PUT",
9759	//   "id": "run.namespaces.services.replaceService",
9760	//   "parameterOrder": [
9761	//     "name"
9762	//   ],
9763	//   "parameters": {
9764	//     "name": {
9765	//       "description": "The name of the service being replaced. If needed, replace\n{namespace_id} with the project ID.",
9766	//       "location": "path",
9767	//       "pattern": "^namespaces/[^/]+/services/[^/]+$",
9768	//       "required": true,
9769	//       "type": "string"
9770	//     }
9771	//   },
9772	//   "path": "apis/serving.knative.dev/v1/{+name}",
9773	//   "request": {
9774	//     "$ref": "Service"
9775	//   },
9776	//   "response": {
9777	//     "$ref": "Service"
9778	//   },
9779	//   "scopes": [
9780	//     "https://www.googleapis.com/auth/cloud-platform"
9781	//   ]
9782	// }
9783
9784}
9785
9786// method id "run.projects.locations.get":
9787
9788type ProjectsLocationsGetCall struct {
9789	s            *APIService
9790	name         string
9791	urlParams_   gensupport.URLParams
9792	ifNoneMatch_ string
9793	ctx_         context.Context
9794	header_      http.Header
9795}
9796
9797// Get: Gets information about a location.
9798func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall {
9799	c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9800	c.name = name
9801	return c
9802}
9803
9804// Fields allows partial responses to be retrieved. See
9805// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9806// for more information.
9807func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall {
9808	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9809	return c
9810}
9811
9812// IfNoneMatch sets the optional parameter which makes the operation
9813// fail if the object's ETag matches the given value. This is useful for
9814// getting updates only after the object has changed since the last
9815// request. Use googleapi.IsNotModified to check whether the response
9816// error from Do is the result of In-None-Match.
9817func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall {
9818	c.ifNoneMatch_ = entityTag
9819	return c
9820}
9821
9822// Context sets the context to be used in this call's Do method. Any
9823// pending HTTP request will be aborted if the provided context is
9824// canceled.
9825func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall {
9826	c.ctx_ = ctx
9827	return c
9828}
9829
9830// Header returns an http.Header that can be modified by the caller to
9831// add HTTP headers to the request.
9832func (c *ProjectsLocationsGetCall) Header() http.Header {
9833	if c.header_ == nil {
9834		c.header_ = make(http.Header)
9835	}
9836	return c.header_
9837}
9838
9839func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) {
9840	reqHeaders := make(http.Header)
9841	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
9842	for k, v := range c.header_ {
9843		reqHeaders[k] = v
9844	}
9845	reqHeaders.Set("User-Agent", c.s.userAgent())
9846	if c.ifNoneMatch_ != "" {
9847		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9848	}
9849	var body io.Reader = nil
9850	c.urlParams_.Set("alt", alt)
9851	c.urlParams_.Set("prettyPrint", "false")
9852	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
9853	urls += "?" + c.urlParams_.Encode()
9854	req, err := http.NewRequest("GET", urls, body)
9855	if err != nil {
9856		return nil, err
9857	}
9858	req.Header = reqHeaders
9859	googleapi.Expand(req.URL, map[string]string{
9860		"name": c.name,
9861	})
9862	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9863}
9864
9865// Do executes the "run.projects.locations.get" call.
9866// Exactly one of *Location or error will be non-nil. Any non-2xx status
9867// code is an error. Response headers are in either
9868// *Location.ServerResponse.Header or (if a response was returned at
9869// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
9870// to check whether the returned error was because
9871// http.StatusNotModified was returned.
9872func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) {
9873	gensupport.SetOptions(c.urlParams_, opts...)
9874	res, err := c.doRequest("json")
9875	if res != nil && res.StatusCode == http.StatusNotModified {
9876		if res.Body != nil {
9877			res.Body.Close()
9878		}
9879		return nil, &googleapi.Error{
9880			Code:   res.StatusCode,
9881			Header: res.Header,
9882		}
9883	}
9884	if err != nil {
9885		return nil, err
9886	}
9887	defer googleapi.CloseBody(res)
9888	if err := googleapi.CheckResponse(res); err != nil {
9889		return nil, err
9890	}
9891	ret := &Location{
9892		ServerResponse: googleapi.ServerResponse{
9893			Header:         res.Header,
9894			HTTPStatusCode: res.StatusCode,
9895		},
9896	}
9897	target := &ret
9898	if err := gensupport.DecodeResponse(target, res); err != nil {
9899		return nil, err
9900	}
9901	return ret, nil
9902	// {
9903	//   "description": "Gets information about a location.",
9904	//   "flatPath": "v1/projects/{projectsId}/locations/{locationsId}",
9905	//   "httpMethod": "GET",
9906	//   "id": "run.projects.locations.get",
9907	//   "parameterOrder": [
9908	//     "name"
9909	//   ],
9910	//   "parameters": {
9911	//     "name": {
9912	//       "description": "Resource name for the location.",
9913	//       "location": "path",
9914	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
9915	//       "required": true,
9916	//       "type": "string"
9917	//     }
9918	//   },
9919	//   "path": "v1/{+name}",
9920	//   "response": {
9921	//     "$ref": "Location"
9922	//   },
9923	//   "scopes": [
9924	//     "https://www.googleapis.com/auth/cloud-platform"
9925	//   ]
9926	// }
9927
9928}
9929
9930// method id "run.projects.locations.list":
9931
9932type ProjectsLocationsListCall struct {
9933	s            *APIService
9934	name         string
9935	urlParams_   gensupport.URLParams
9936	ifNoneMatch_ string
9937	ctx_         context.Context
9938	header_      http.Header
9939}
9940
9941// List: Lists information about the supported locations for this
9942// service.
9943func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall {
9944	c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9945	c.name = name
9946	return c
9947}
9948
9949// Filter sets the optional parameter "filter": The standard list
9950// filter.
9951func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall {
9952	c.urlParams_.Set("filter", filter)
9953	return c
9954}
9955
9956// PageSize sets the optional parameter "pageSize": The standard list
9957// page size.
9958func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall {
9959	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
9960	return c
9961}
9962
9963// PageToken sets the optional parameter "pageToken": The standard list
9964// page token.
9965func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall {
9966	c.urlParams_.Set("pageToken", pageToken)
9967	return c
9968}
9969
9970// Fields allows partial responses to be retrieved. See
9971// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9972// for more information.
9973func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall {
9974	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9975	return c
9976}
9977
9978// IfNoneMatch sets the optional parameter which makes the operation
9979// fail if the object's ETag matches the given value. This is useful for
9980// getting updates only after the object has changed since the last
9981// request. Use googleapi.IsNotModified to check whether the response
9982// error from Do is the result of In-None-Match.
9983func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall {
9984	c.ifNoneMatch_ = entityTag
9985	return c
9986}
9987
9988// Context sets the context to be used in this call's Do method. Any
9989// pending HTTP request will be aborted if the provided context is
9990// canceled.
9991func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall {
9992	c.ctx_ = ctx
9993	return c
9994}
9995
9996// Header returns an http.Header that can be modified by the caller to
9997// add HTTP headers to the request.
9998func (c *ProjectsLocationsListCall) Header() http.Header {
9999	if c.header_ == nil {
10000		c.header_ = make(http.Header)
10001	}
10002	return c.header_
10003}
10004
10005func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) {
10006	reqHeaders := make(http.Header)
10007	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
10008	for k, v := range c.header_ {
10009		reqHeaders[k] = v
10010	}
10011	reqHeaders.Set("User-Agent", c.s.userAgent())
10012	if c.ifNoneMatch_ != "" {
10013		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10014	}
10015	var body io.Reader = nil
10016	c.urlParams_.Set("alt", alt)
10017	c.urlParams_.Set("prettyPrint", "false")
10018	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/locations")
10019	urls += "?" + c.urlParams_.Encode()
10020	req, err := http.NewRequest("GET", urls, body)
10021	if err != nil {
10022		return nil, err
10023	}
10024	req.Header = reqHeaders
10025	googleapi.Expand(req.URL, map[string]string{
10026		"name": c.name,
10027	})
10028	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10029}
10030
10031// Do executes the "run.projects.locations.list" call.
10032// Exactly one of *ListLocationsResponse or error will be non-nil. Any
10033// non-2xx status code is an error. Response headers are in either
10034// *ListLocationsResponse.ServerResponse.Header or (if a response was
10035// returned at all) in error.(*googleapi.Error).Header. Use
10036// googleapi.IsNotModified to check whether the returned error was
10037// because http.StatusNotModified was returned.
10038func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error) {
10039	gensupport.SetOptions(c.urlParams_, opts...)
10040	res, err := c.doRequest("json")
10041	if res != nil && res.StatusCode == http.StatusNotModified {
10042		if res.Body != nil {
10043			res.Body.Close()
10044		}
10045		return nil, &googleapi.Error{
10046			Code:   res.StatusCode,
10047			Header: res.Header,
10048		}
10049	}
10050	if err != nil {
10051		return nil, err
10052	}
10053	defer googleapi.CloseBody(res)
10054	if err := googleapi.CheckResponse(res); err != nil {
10055		return nil, err
10056	}
10057	ret := &ListLocationsResponse{
10058		ServerResponse: googleapi.ServerResponse{
10059			Header:         res.Header,
10060			HTTPStatusCode: res.StatusCode,
10061		},
10062	}
10063	target := &ret
10064	if err := gensupport.DecodeResponse(target, res); err != nil {
10065		return nil, err
10066	}
10067	return ret, nil
10068	// {
10069	//   "description": "Lists information about the supported locations for this service.",
10070	//   "flatPath": "v1/projects/{projectsId}/locations",
10071	//   "httpMethod": "GET",
10072	//   "id": "run.projects.locations.list",
10073	//   "parameterOrder": [
10074	//     "name"
10075	//   ],
10076	//   "parameters": {
10077	//     "filter": {
10078	//       "description": "The standard list filter.",
10079	//       "location": "query",
10080	//       "type": "string"
10081	//     },
10082	//     "name": {
10083	//       "description": "The resource that owns the locations collection, if applicable.",
10084	//       "location": "path",
10085	//       "pattern": "^projects/[^/]+$",
10086	//       "required": true,
10087	//       "type": "string"
10088	//     },
10089	//     "pageSize": {
10090	//       "description": "The standard list page size.",
10091	//       "format": "int32",
10092	//       "location": "query",
10093	//       "type": "integer"
10094	//     },
10095	//     "pageToken": {
10096	//       "description": "The standard list page token.",
10097	//       "location": "query",
10098	//       "type": "string"
10099	//     }
10100	//   },
10101	//   "path": "v1/{+name}/locations",
10102	//   "response": {
10103	//     "$ref": "ListLocationsResponse"
10104	//   },
10105	//   "scopes": [
10106	//     "https://www.googleapis.com/auth/cloud-platform"
10107	//   ]
10108	// }
10109
10110}
10111
10112// Pages invokes f for each page of results.
10113// A non-nil error returned from f will halt the iteration.
10114// The provided context supersedes any context provided to the Context method.
10115func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error {
10116	c.ctx_ = ctx
10117	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
10118	for {
10119		x, err := c.Do()
10120		if err != nil {
10121			return err
10122		}
10123		if err := f(x); err != nil {
10124			return err
10125		}
10126		if x.NextPageToken == "" {
10127			return nil
10128		}
10129		c.PageToken(x.NextPageToken)
10130	}
10131}
10132
10133// method id "run.projects.locations.authorizeddomains.list":
10134
10135type ProjectsLocationsAuthorizeddomainsListCall struct {
10136	s            *APIService
10137	parent       string
10138	urlParams_   gensupport.URLParams
10139	ifNoneMatch_ string
10140	ctx_         context.Context
10141	header_      http.Header
10142}
10143
10144// List: List authorized domains.
10145func (r *ProjectsLocationsAuthorizeddomainsService) List(parent string) *ProjectsLocationsAuthorizeddomainsListCall {
10146	c := &ProjectsLocationsAuthorizeddomainsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10147	c.parent = parent
10148	return c
10149}
10150
10151// PageSize sets the optional parameter "pageSize": Maximum results to
10152// return per page.
10153func (c *ProjectsLocationsAuthorizeddomainsListCall) PageSize(pageSize int64) *ProjectsLocationsAuthorizeddomainsListCall {
10154	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
10155	return c
10156}
10157
10158// PageToken sets the optional parameter "pageToken": Continuation token
10159// for fetching the next page of results.
10160func (c *ProjectsLocationsAuthorizeddomainsListCall) PageToken(pageToken string) *ProjectsLocationsAuthorizeddomainsListCall {
10161	c.urlParams_.Set("pageToken", pageToken)
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 *ProjectsLocationsAuthorizeddomainsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizeddomainsListCall {
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 *ProjectsLocationsAuthorizeddomainsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAuthorizeddomainsListCall {
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 *ProjectsLocationsAuthorizeddomainsListCall) Context(ctx context.Context) *ProjectsLocationsAuthorizeddomainsListCall {
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 *ProjectsLocationsAuthorizeddomainsListCall) Header() http.Header {
10194	if c.header_ == nil {
10195		c.header_ = make(http.Header)
10196	}
10197	return c.header_
10198}
10199
10200func (c *ProjectsLocationsAuthorizeddomainsListCall) doRequest(alt string) (*http.Response, error) {
10201	reqHeaders := make(http.Header)
10202	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
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/{+parent}/authorizeddomains")
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		"parent": c.parent,
10222	})
10223	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10224}
10225
10226// Do executes the "run.projects.locations.authorizeddomains.list" call.
10227// Exactly one of *ListAuthorizedDomainsResponse or error will be
10228// non-nil. Any non-2xx status code is an error. Response headers are in
10229// either *ListAuthorizedDomainsResponse.ServerResponse.Header or (if a
10230// response was returned at all) in error.(*googleapi.Error).Header. Use
10231// googleapi.IsNotModified to check whether the returned error was
10232// because http.StatusNotModified was returned.
10233func (c *ProjectsLocationsAuthorizeddomainsListCall) Do(opts ...googleapi.CallOption) (*ListAuthorizedDomainsResponse, 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 := &ListAuthorizedDomainsResponse{
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": "List authorized domains.",
10265	//   "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authorizeddomains",
10266	//   "httpMethod": "GET",
10267	//   "id": "run.projects.locations.authorizeddomains.list",
10268	//   "parameterOrder": [
10269	//     "parent"
10270	//   ],
10271	//   "parameters": {
10272	//     "pageSize": {
10273	//       "description": "Maximum results to return per page.",
10274	//       "format": "int32",
10275	//       "location": "query",
10276	//       "type": "integer"
10277	//     },
10278	//     "pageToken": {
10279	//       "description": "Continuation token for fetching the next page of results.",
10280	//       "location": "query",
10281	//       "type": "string"
10282	//     },
10283	//     "parent": {
10284	//       "description": "Name of the parent Application resource. Example: `apps/myapp`.",
10285	//       "location": "path",
10286	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
10287	//       "required": true,
10288	//       "type": "string"
10289	//     }
10290	//   },
10291	//   "path": "v1/{+parent}/authorizeddomains",
10292	//   "response": {
10293	//     "$ref": "ListAuthorizedDomainsResponse"
10294	//   },
10295	//   "scopes": [
10296	//     "https://www.googleapis.com/auth/cloud-platform"
10297	//   ]
10298	// }
10299
10300}
10301
10302// Pages invokes f for each page of results.
10303// A non-nil error returned from f will halt the iteration.
10304// The provided context supersedes any context provided to the Context method.
10305func (c *ProjectsLocationsAuthorizeddomainsListCall) Pages(ctx context.Context, f func(*ListAuthorizedDomainsResponse) error) error {
10306	c.ctx_ = ctx
10307	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
10308	for {
10309		x, err := c.Do()
10310		if err != nil {
10311			return err
10312		}
10313		if err := f(x); err != nil {
10314			return err
10315		}
10316		if x.NextPageToken == "" {
10317			return nil
10318		}
10319		c.PageToken(x.NextPageToken)
10320	}
10321}
10322
10323// method id "run.projects.locations.autodomainmappings.create":
10324
10325type ProjectsLocationsAutodomainmappingsCreateCall struct {
10326	s                 *APIService
10327	parent            string
10328	autodomainmapping *AutoDomainMapping
10329	urlParams_        gensupport.URLParams
10330	ctx_              context.Context
10331	header_           http.Header
10332}
10333
10334// Create: Creates a new auto domain mapping.
10335func (r *ProjectsLocationsAutodomainmappingsService) Create(parent string, autodomainmapping *AutoDomainMapping) *ProjectsLocationsAutodomainmappingsCreateCall {
10336	c := &ProjectsLocationsAutodomainmappingsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10337	c.parent = parent
10338	c.autodomainmapping = autodomainmapping
10339	return c
10340}
10341
10342// Fields allows partial responses to be retrieved. See
10343// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10344// for more information.
10345func (c *ProjectsLocationsAutodomainmappingsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutodomainmappingsCreateCall {
10346	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10347	return c
10348}
10349
10350// Context sets the context to be used in this call's Do method. Any
10351// pending HTTP request will be aborted if the provided context is
10352// canceled.
10353func (c *ProjectsLocationsAutodomainmappingsCreateCall) Context(ctx context.Context) *ProjectsLocationsAutodomainmappingsCreateCall {
10354	c.ctx_ = ctx
10355	return c
10356}
10357
10358// Header returns an http.Header that can be modified by the caller to
10359// add HTTP headers to the request.
10360func (c *ProjectsLocationsAutodomainmappingsCreateCall) Header() http.Header {
10361	if c.header_ == nil {
10362		c.header_ = make(http.Header)
10363	}
10364	return c.header_
10365}
10366
10367func (c *ProjectsLocationsAutodomainmappingsCreateCall) doRequest(alt string) (*http.Response, error) {
10368	reqHeaders := make(http.Header)
10369	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
10370	for k, v := range c.header_ {
10371		reqHeaders[k] = v
10372	}
10373	reqHeaders.Set("User-Agent", c.s.userAgent())
10374	var body io.Reader = nil
10375	body, err := googleapi.WithoutDataWrapper.JSONReader(c.autodomainmapping)
10376	if err != nil {
10377		return nil, err
10378	}
10379	reqHeaders.Set("Content-Type", "application/json")
10380	c.urlParams_.Set("alt", alt)
10381	c.urlParams_.Set("prettyPrint", "false")
10382	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/autodomainmappings")
10383	urls += "?" + c.urlParams_.Encode()
10384	req, err := http.NewRequest("POST", urls, body)
10385	if err != nil {
10386		return nil, err
10387	}
10388	req.Header = reqHeaders
10389	googleapi.Expand(req.URL, map[string]string{
10390		"parent": c.parent,
10391	})
10392	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10393}
10394
10395// Do executes the "run.projects.locations.autodomainmappings.create" call.
10396// Exactly one of *AutoDomainMapping or error will be non-nil. Any
10397// non-2xx status code is an error. Response headers are in either
10398// *AutoDomainMapping.ServerResponse.Header or (if a response was
10399// returned at all) in error.(*googleapi.Error).Header. Use
10400// googleapi.IsNotModified to check whether the returned error was
10401// because http.StatusNotModified was returned.
10402func (c *ProjectsLocationsAutodomainmappingsCreateCall) Do(opts ...googleapi.CallOption) (*AutoDomainMapping, error) {
10403	gensupport.SetOptions(c.urlParams_, opts...)
10404	res, err := c.doRequest("json")
10405	if res != nil && res.StatusCode == http.StatusNotModified {
10406		if res.Body != nil {
10407			res.Body.Close()
10408		}
10409		return nil, &googleapi.Error{
10410			Code:   res.StatusCode,
10411			Header: res.Header,
10412		}
10413	}
10414	if err != nil {
10415		return nil, err
10416	}
10417	defer googleapi.CloseBody(res)
10418	if err := googleapi.CheckResponse(res); err != nil {
10419		return nil, err
10420	}
10421	ret := &AutoDomainMapping{
10422		ServerResponse: googleapi.ServerResponse{
10423			Header:         res.Header,
10424			HTTPStatusCode: res.StatusCode,
10425		},
10426	}
10427	target := &ret
10428	if err := gensupport.DecodeResponse(target, res); err != nil {
10429		return nil, err
10430	}
10431	return ret, nil
10432	// {
10433	//   "description": "Creates a new auto domain mapping.",
10434	//   "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/autodomainmappings",
10435	//   "httpMethod": "POST",
10436	//   "id": "run.projects.locations.autodomainmappings.create",
10437	//   "parameterOrder": [
10438	//     "parent"
10439	//   ],
10440	//   "parameters": {
10441	//     "parent": {
10442	//       "description": "The project ID or project number in which this auto domain mapping should\nbe created.",
10443	//       "location": "path",
10444	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
10445	//       "required": true,
10446	//       "type": "string"
10447	//     }
10448	//   },
10449	//   "path": "v1/{+parent}/autodomainmappings",
10450	//   "request": {
10451	//     "$ref": "AutoDomainMapping"
10452	//   },
10453	//   "response": {
10454	//     "$ref": "AutoDomainMapping"
10455	//   },
10456	//   "scopes": [
10457	//     "https://www.googleapis.com/auth/cloud-platform"
10458	//   ]
10459	// }
10460
10461}
10462
10463// method id "run.projects.locations.autodomainmappings.delete":
10464
10465type ProjectsLocationsAutodomainmappingsDeleteCall struct {
10466	s          *APIService
10467	name       string
10468	urlParams_ gensupport.URLParams
10469	ctx_       context.Context
10470	header_    http.Header
10471}
10472
10473// Delete: Delete an auto domain mapping.
10474func (r *ProjectsLocationsAutodomainmappingsService) Delete(name string) *ProjectsLocationsAutodomainmappingsDeleteCall {
10475	c := &ProjectsLocationsAutodomainmappingsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10476	c.name = name
10477	return c
10478}
10479
10480// ApiVersion sets the optional parameter "apiVersion": Cloud Run
10481// currently ignores this parameter.
10482func (c *ProjectsLocationsAutodomainmappingsDeleteCall) ApiVersion(apiVersion string) *ProjectsLocationsAutodomainmappingsDeleteCall {
10483	c.urlParams_.Set("apiVersion", apiVersion)
10484	return c
10485}
10486
10487// Kind sets the optional parameter "kind": Cloud Run currently ignores
10488// this parameter.
10489func (c *ProjectsLocationsAutodomainmappingsDeleteCall) Kind(kind string) *ProjectsLocationsAutodomainmappingsDeleteCall {
10490	c.urlParams_.Set("kind", kind)
10491	return c
10492}
10493
10494// PropagationPolicy sets the optional parameter "propagationPolicy":
10495// Specifies the propagation policy of delete. Cloud Run currently
10496// ignores
10497// this setting, and deletes in the background. Please
10498// see
10499// kubernetes.io/docs/concepts/workloads/controllers/garbage-collecti
10500// on/ for
10501// more information.
10502func (c *ProjectsLocationsAutodomainmappingsDeleteCall) PropagationPolicy(propagationPolicy string) *ProjectsLocationsAutodomainmappingsDeleteCall {
10503	c.urlParams_.Set("propagationPolicy", propagationPolicy)
10504	return c
10505}
10506
10507// Fields allows partial responses to be retrieved. See
10508// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10509// for more information.
10510func (c *ProjectsLocationsAutodomainmappingsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutodomainmappingsDeleteCall {
10511	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10512	return c
10513}
10514
10515// Context sets the context to be used in this call's Do method. Any
10516// pending HTTP request will be aborted if the provided context is
10517// canceled.
10518func (c *ProjectsLocationsAutodomainmappingsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAutodomainmappingsDeleteCall {
10519	c.ctx_ = ctx
10520	return c
10521}
10522
10523// Header returns an http.Header that can be modified by the caller to
10524// add HTTP headers to the request.
10525func (c *ProjectsLocationsAutodomainmappingsDeleteCall) Header() http.Header {
10526	if c.header_ == nil {
10527		c.header_ = make(http.Header)
10528	}
10529	return c.header_
10530}
10531
10532func (c *ProjectsLocationsAutodomainmappingsDeleteCall) doRequest(alt string) (*http.Response, error) {
10533	reqHeaders := make(http.Header)
10534	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
10535	for k, v := range c.header_ {
10536		reqHeaders[k] = v
10537	}
10538	reqHeaders.Set("User-Agent", c.s.userAgent())
10539	var body io.Reader = nil
10540	c.urlParams_.Set("alt", alt)
10541	c.urlParams_.Set("prettyPrint", "false")
10542	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
10543	urls += "?" + c.urlParams_.Encode()
10544	req, err := http.NewRequest("DELETE", urls, body)
10545	if err != nil {
10546		return nil, err
10547	}
10548	req.Header = reqHeaders
10549	googleapi.Expand(req.URL, map[string]string{
10550		"name": c.name,
10551	})
10552	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10553}
10554
10555// Do executes the "run.projects.locations.autodomainmappings.delete" call.
10556// Exactly one of *Status or error will be non-nil. Any non-2xx status
10557// code is an error. Response headers are in either
10558// *Status.ServerResponse.Header or (if a response was returned at all)
10559// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
10560// check whether the returned error was because http.StatusNotModified
10561// was returned.
10562func (c *ProjectsLocationsAutodomainmappingsDeleteCall) Do(opts ...googleapi.CallOption) (*Status, error) {
10563	gensupport.SetOptions(c.urlParams_, opts...)
10564	res, err := c.doRequest("json")
10565	if res != nil && res.StatusCode == http.StatusNotModified {
10566		if res.Body != nil {
10567			res.Body.Close()
10568		}
10569		return nil, &googleapi.Error{
10570			Code:   res.StatusCode,
10571			Header: res.Header,
10572		}
10573	}
10574	if err != nil {
10575		return nil, err
10576	}
10577	defer googleapi.CloseBody(res)
10578	if err := googleapi.CheckResponse(res); err != nil {
10579		return nil, err
10580	}
10581	ret := &Status{
10582		ServerResponse: googleapi.ServerResponse{
10583			Header:         res.Header,
10584			HTTPStatusCode: res.StatusCode,
10585		},
10586	}
10587	target := &ret
10588	if err := gensupport.DecodeResponse(target, res); err != nil {
10589		return nil, err
10590	}
10591	return ret, nil
10592	// {
10593	//   "description": "Delete an auto domain mapping.",
10594	//   "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/autodomainmappings/{autodomainmappingsId}",
10595	//   "httpMethod": "DELETE",
10596	//   "id": "run.projects.locations.autodomainmappings.delete",
10597	//   "parameterOrder": [
10598	//     "name"
10599	//   ],
10600	//   "parameters": {
10601	//     "apiVersion": {
10602	//       "description": "Cloud Run currently ignores this parameter.",
10603	//       "location": "query",
10604	//       "type": "string"
10605	//     },
10606	//     "kind": {
10607	//       "description": "Cloud Run currently ignores this parameter.",
10608	//       "location": "query",
10609	//       "type": "string"
10610	//     },
10611	//     "name": {
10612	//       "description": "The name of the auto domain mapping being deleted. If needed, replace\n{namespace_id} with the project ID.",
10613	//       "location": "path",
10614	//       "pattern": "^projects/[^/]+/locations/[^/]+/autodomainmappings/[^/]+$",
10615	//       "required": true,
10616	//       "type": "string"
10617	//     },
10618	//     "propagationPolicy": {
10619	//       "description": "Specifies the propagation policy of delete. Cloud Run currently ignores\nthis setting, and deletes in the background. Please see\nkubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for\nmore information.",
10620	//       "location": "query",
10621	//       "type": "string"
10622	//     }
10623	//   },
10624	//   "path": "v1/{+name}",
10625	//   "response": {
10626	//     "$ref": "Status"
10627	//   },
10628	//   "scopes": [
10629	//     "https://www.googleapis.com/auth/cloud-platform"
10630	//   ]
10631	// }
10632
10633}
10634
10635// method id "run.projects.locations.autodomainmappings.get":
10636
10637type ProjectsLocationsAutodomainmappingsGetCall struct {
10638	s            *APIService
10639	name         string
10640	urlParams_   gensupport.URLParams
10641	ifNoneMatch_ string
10642	ctx_         context.Context
10643	header_      http.Header
10644}
10645
10646// Get: Get information about an auto domain mapping.
10647func (r *ProjectsLocationsAutodomainmappingsService) Get(name string) *ProjectsLocationsAutodomainmappingsGetCall {
10648	c := &ProjectsLocationsAutodomainmappingsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10649	c.name = name
10650	return c
10651}
10652
10653// Fields allows partial responses to be retrieved. See
10654// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10655// for more information.
10656func (c *ProjectsLocationsAutodomainmappingsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutodomainmappingsGetCall {
10657	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10658	return c
10659}
10660
10661// IfNoneMatch sets the optional parameter which makes the operation
10662// fail if the object's ETag matches the given value. This is useful for
10663// getting updates only after the object has changed since the last
10664// request. Use googleapi.IsNotModified to check whether the response
10665// error from Do is the result of In-None-Match.
10666func (c *ProjectsLocationsAutodomainmappingsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAutodomainmappingsGetCall {
10667	c.ifNoneMatch_ = entityTag
10668	return c
10669}
10670
10671// Context sets the context to be used in this call's Do method. Any
10672// pending HTTP request will be aborted if the provided context is
10673// canceled.
10674func (c *ProjectsLocationsAutodomainmappingsGetCall) Context(ctx context.Context) *ProjectsLocationsAutodomainmappingsGetCall {
10675	c.ctx_ = ctx
10676	return c
10677}
10678
10679// Header returns an http.Header that can be modified by the caller to
10680// add HTTP headers to the request.
10681func (c *ProjectsLocationsAutodomainmappingsGetCall) Header() http.Header {
10682	if c.header_ == nil {
10683		c.header_ = make(http.Header)
10684	}
10685	return c.header_
10686}
10687
10688func (c *ProjectsLocationsAutodomainmappingsGetCall) doRequest(alt string) (*http.Response, error) {
10689	reqHeaders := make(http.Header)
10690	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
10691	for k, v := range c.header_ {
10692		reqHeaders[k] = v
10693	}
10694	reqHeaders.Set("User-Agent", c.s.userAgent())
10695	if c.ifNoneMatch_ != "" {
10696		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10697	}
10698	var body io.Reader = nil
10699	c.urlParams_.Set("alt", alt)
10700	c.urlParams_.Set("prettyPrint", "false")
10701	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
10702	urls += "?" + c.urlParams_.Encode()
10703	req, err := http.NewRequest("GET", urls, body)
10704	if err != nil {
10705		return nil, err
10706	}
10707	req.Header = reqHeaders
10708	googleapi.Expand(req.URL, map[string]string{
10709		"name": c.name,
10710	})
10711	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10712}
10713
10714// Do executes the "run.projects.locations.autodomainmappings.get" call.
10715// Exactly one of *AutoDomainMapping or error will be non-nil. Any
10716// non-2xx status code is an error. Response headers are in either
10717// *AutoDomainMapping.ServerResponse.Header or (if a response was
10718// returned at all) in error.(*googleapi.Error).Header. Use
10719// googleapi.IsNotModified to check whether the returned error was
10720// because http.StatusNotModified was returned.
10721func (c *ProjectsLocationsAutodomainmappingsGetCall) Do(opts ...googleapi.CallOption) (*AutoDomainMapping, error) {
10722	gensupport.SetOptions(c.urlParams_, opts...)
10723	res, err := c.doRequest("json")
10724	if res != nil && res.StatusCode == http.StatusNotModified {
10725		if res.Body != nil {
10726			res.Body.Close()
10727		}
10728		return nil, &googleapi.Error{
10729			Code:   res.StatusCode,
10730			Header: res.Header,
10731		}
10732	}
10733	if err != nil {
10734		return nil, err
10735	}
10736	defer googleapi.CloseBody(res)
10737	if err := googleapi.CheckResponse(res); err != nil {
10738		return nil, err
10739	}
10740	ret := &AutoDomainMapping{
10741		ServerResponse: googleapi.ServerResponse{
10742			Header:         res.Header,
10743			HTTPStatusCode: res.StatusCode,
10744		},
10745	}
10746	target := &ret
10747	if err := gensupport.DecodeResponse(target, res); err != nil {
10748		return nil, err
10749	}
10750	return ret, nil
10751	// {
10752	//   "description": "Get information about an auto domain mapping.",
10753	//   "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/autodomainmappings/{autodomainmappingsId}",
10754	//   "httpMethod": "GET",
10755	//   "id": "run.projects.locations.autodomainmappings.get",
10756	//   "parameterOrder": [
10757	//     "name"
10758	//   ],
10759	//   "parameters": {
10760	//     "name": {
10761	//       "description": "The name of the auto domain mapping being retrieved. If needed, replace\n{namespace_id} with the project ID.",
10762	//       "location": "path",
10763	//       "pattern": "^projects/[^/]+/locations/[^/]+/autodomainmappings/[^/]+$",
10764	//       "required": true,
10765	//       "type": "string"
10766	//     }
10767	//   },
10768	//   "path": "v1/{+name}",
10769	//   "response": {
10770	//     "$ref": "AutoDomainMapping"
10771	//   },
10772	//   "scopes": [
10773	//     "https://www.googleapis.com/auth/cloud-platform"
10774	//   ]
10775	// }
10776
10777}
10778
10779// method id "run.projects.locations.autodomainmappings.list":
10780
10781type ProjectsLocationsAutodomainmappingsListCall struct {
10782	s            *APIService
10783	parent       string
10784	urlParams_   gensupport.URLParams
10785	ifNoneMatch_ string
10786	ctx_         context.Context
10787	header_      http.Header
10788}
10789
10790// List: List auto domain mappings.
10791func (r *ProjectsLocationsAutodomainmappingsService) List(parent string) *ProjectsLocationsAutodomainmappingsListCall {
10792	c := &ProjectsLocationsAutodomainmappingsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10793	c.parent = parent
10794	return c
10795}
10796
10797// Continue sets the optional parameter "continue": Optional encoded
10798// string to continue paging.
10799func (c *ProjectsLocationsAutodomainmappingsListCall) Continue(continue_ string) *ProjectsLocationsAutodomainmappingsListCall {
10800	c.urlParams_.Set("continue", continue_)
10801	return c
10802}
10803
10804// FieldSelector sets the optional parameter "fieldSelector": Allows to
10805// filter resources based on a specific value for a field name.
10806// Send this in a query string format. i.e. 'metadata.name%3Dlorem'.
10807// Not currently used by Cloud Run.
10808func (c *ProjectsLocationsAutodomainmappingsListCall) FieldSelector(fieldSelector string) *ProjectsLocationsAutodomainmappingsListCall {
10809	c.urlParams_.Set("fieldSelector", fieldSelector)
10810	return c
10811}
10812
10813// IncludeUninitialized sets the optional parameter
10814// "includeUninitialized": Not currently used by Cloud Run.
10815func (c *ProjectsLocationsAutodomainmappingsListCall) IncludeUninitialized(includeUninitialized bool) *ProjectsLocationsAutodomainmappingsListCall {
10816	c.urlParams_.Set("includeUninitialized", fmt.Sprint(includeUninitialized))
10817	return c
10818}
10819
10820// LabelSelector sets the optional parameter "labelSelector": Allows to
10821// filter resources based on a label. Supported operations are
10822// =, !=, exists, in, and notIn.
10823func (c *ProjectsLocationsAutodomainmappingsListCall) LabelSelector(labelSelector string) *ProjectsLocationsAutodomainmappingsListCall {
10824	c.urlParams_.Set("labelSelector", labelSelector)
10825	return c
10826}
10827
10828// Limit sets the optional parameter "limit": The maximum number of
10829// records that should be returned.
10830func (c *ProjectsLocationsAutodomainmappingsListCall) Limit(limit int64) *ProjectsLocationsAutodomainmappingsListCall {
10831	c.urlParams_.Set("limit", fmt.Sprint(limit))
10832	return c
10833}
10834
10835// ResourceVersion sets the optional parameter "resourceVersion": The
10836// baseline resource version from which the list or watch operation
10837// should
10838// start. Not currently used by Cloud Run.
10839func (c *ProjectsLocationsAutodomainmappingsListCall) ResourceVersion(resourceVersion string) *ProjectsLocationsAutodomainmappingsListCall {
10840	c.urlParams_.Set("resourceVersion", resourceVersion)
10841	return c
10842}
10843
10844// Watch sets the optional parameter "watch": Flag that indicates that
10845// the client expects to watch this resource as well.
10846// Not currently used by Cloud Run.
10847func (c *ProjectsLocationsAutodomainmappingsListCall) Watch(watch bool) *ProjectsLocationsAutodomainmappingsListCall {
10848	c.urlParams_.Set("watch", fmt.Sprint(watch))
10849	return c
10850}
10851
10852// Fields allows partial responses to be retrieved. See
10853// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10854// for more information.
10855func (c *ProjectsLocationsAutodomainmappingsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutodomainmappingsListCall {
10856	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10857	return c
10858}
10859
10860// IfNoneMatch sets the optional parameter which makes the operation
10861// fail if the object's ETag matches the given value. This is useful for
10862// getting updates only after the object has changed since the last
10863// request. Use googleapi.IsNotModified to check whether the response
10864// error from Do is the result of In-None-Match.
10865func (c *ProjectsLocationsAutodomainmappingsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAutodomainmappingsListCall {
10866	c.ifNoneMatch_ = entityTag
10867	return c
10868}
10869
10870// Context sets the context to be used in this call's Do method. Any
10871// pending HTTP request will be aborted if the provided context is
10872// canceled.
10873func (c *ProjectsLocationsAutodomainmappingsListCall) Context(ctx context.Context) *ProjectsLocationsAutodomainmappingsListCall {
10874	c.ctx_ = ctx
10875	return c
10876}
10877
10878// Header returns an http.Header that can be modified by the caller to
10879// add HTTP headers to the request.
10880func (c *ProjectsLocationsAutodomainmappingsListCall) Header() http.Header {
10881	if c.header_ == nil {
10882		c.header_ = make(http.Header)
10883	}
10884	return c.header_
10885}
10886
10887func (c *ProjectsLocationsAutodomainmappingsListCall) doRequest(alt string) (*http.Response, error) {
10888	reqHeaders := make(http.Header)
10889	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
10890	for k, v := range c.header_ {
10891		reqHeaders[k] = v
10892	}
10893	reqHeaders.Set("User-Agent", c.s.userAgent())
10894	if c.ifNoneMatch_ != "" {
10895		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10896	}
10897	var body io.Reader = nil
10898	c.urlParams_.Set("alt", alt)
10899	c.urlParams_.Set("prettyPrint", "false")
10900	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/autodomainmappings")
10901	urls += "?" + c.urlParams_.Encode()
10902	req, err := http.NewRequest("GET", urls, body)
10903	if err != nil {
10904		return nil, err
10905	}
10906	req.Header = reqHeaders
10907	googleapi.Expand(req.URL, map[string]string{
10908		"parent": c.parent,
10909	})
10910	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10911}
10912
10913// Do executes the "run.projects.locations.autodomainmappings.list" call.
10914// Exactly one of *ListAutoDomainMappingsResponse or error will be
10915// non-nil. Any non-2xx status code is an error. Response headers are in
10916// either *ListAutoDomainMappingsResponse.ServerResponse.Header or (if a
10917// response was returned at all) in error.(*googleapi.Error).Header. Use
10918// googleapi.IsNotModified to check whether the returned error was
10919// because http.StatusNotModified was returned.
10920func (c *ProjectsLocationsAutodomainmappingsListCall) Do(opts ...googleapi.CallOption) (*ListAutoDomainMappingsResponse, error) {
10921	gensupport.SetOptions(c.urlParams_, opts...)
10922	res, err := c.doRequest("json")
10923	if res != nil && res.StatusCode == http.StatusNotModified {
10924		if res.Body != nil {
10925			res.Body.Close()
10926		}
10927		return nil, &googleapi.Error{
10928			Code:   res.StatusCode,
10929			Header: res.Header,
10930		}
10931	}
10932	if err != nil {
10933		return nil, err
10934	}
10935	defer googleapi.CloseBody(res)
10936	if err := googleapi.CheckResponse(res); err != nil {
10937		return nil, err
10938	}
10939	ret := &ListAutoDomainMappingsResponse{
10940		ServerResponse: googleapi.ServerResponse{
10941			Header:         res.Header,
10942			HTTPStatusCode: res.StatusCode,
10943		},
10944	}
10945	target := &ret
10946	if err := gensupport.DecodeResponse(target, res); err != nil {
10947		return nil, err
10948	}
10949	return ret, nil
10950	// {
10951	//   "description": "List auto domain mappings.",
10952	//   "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/autodomainmappings",
10953	//   "httpMethod": "GET",
10954	//   "id": "run.projects.locations.autodomainmappings.list",
10955	//   "parameterOrder": [
10956	//     "parent"
10957	//   ],
10958	//   "parameters": {
10959	//     "continue": {
10960	//       "description": "Optional encoded string to continue paging.",
10961	//       "location": "query",
10962	//       "type": "string"
10963	//     },
10964	//     "fieldSelector": {
10965	//       "description": "Allows to filter resources based on a specific value for a field name.\nSend this in a query string format. i.e. 'metadata.name%3Dlorem'.\nNot currently used by Cloud Run.",
10966	//       "location": "query",
10967	//       "type": "string"
10968	//     },
10969	//     "includeUninitialized": {
10970	//       "description": "Not currently used by Cloud Run.",
10971	//       "location": "query",
10972	//       "type": "boolean"
10973	//     },
10974	//     "labelSelector": {
10975	//       "description": "Allows to filter resources based on a label. Supported operations are\n=, !=, exists, in, and notIn.",
10976	//       "location": "query",
10977	//       "type": "string"
10978	//     },
10979	//     "limit": {
10980	//       "description": "The maximum number of records that should be returned.",
10981	//       "format": "int32",
10982	//       "location": "query",
10983	//       "type": "integer"
10984	//     },
10985	//     "parent": {
10986	//       "description": "The project ID or project number from which the auto domain mappings should\nbe listed.",
10987	//       "location": "path",
10988	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
10989	//       "required": true,
10990	//       "type": "string"
10991	//     },
10992	//     "resourceVersion": {
10993	//       "description": "The baseline resource version from which the list or watch operation should\nstart. Not currently used by Cloud Run.",
10994	//       "location": "query",
10995	//       "type": "string"
10996	//     },
10997	//     "watch": {
10998	//       "description": "Flag that indicates that the client expects to watch this resource as well.\nNot currently used by Cloud Run.",
10999	//       "location": "query",
11000	//       "type": "boolean"
11001	//     }
11002	//   },
11003	//   "path": "v1/{+parent}/autodomainmappings",
11004	//   "response": {
11005	//     "$ref": "ListAutoDomainMappingsResponse"
11006	//   },
11007	//   "scopes": [
11008	//     "https://www.googleapis.com/auth/cloud-platform"
11009	//   ]
11010	// }
11011
11012}
11013
11014// method id "run.projects.locations.autodomainmappings.replaceAutoDomainMapping":
11015
11016type ProjectsLocationsAutodomainmappingsReplaceAutoDomainMappingCall struct {
11017	s                 *APIService
11018	name              string
11019	autodomainmapping *AutoDomainMapping
11020	urlParams_        gensupport.URLParams
11021	ctx_              context.Context
11022	header_           http.Header
11023}
11024
11025// ReplaceAutoDomainMapping: Replace an auto domain mapping.
11026//
11027// Only the spec and metadata labels and annotations are modifiable.
11028// After
11029// the Update request, Cloud Run will work to make the 'status'
11030// match the requested 'spec'.
11031//
11032// May provide metadata.resourceVersion to enforce update from last read
11033// for
11034// optimistic concurrency control.
11035func (r *ProjectsLocationsAutodomainmappingsService) ReplaceAutoDomainMapping(name string, autodomainmapping *AutoDomainMapping) *ProjectsLocationsAutodomainmappingsReplaceAutoDomainMappingCall {
11036	c := &ProjectsLocationsAutodomainmappingsReplaceAutoDomainMappingCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11037	c.name = name
11038	c.autodomainmapping = autodomainmapping
11039	return c
11040}
11041
11042// Fields allows partial responses to be retrieved. See
11043// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11044// for more information.
11045func (c *ProjectsLocationsAutodomainmappingsReplaceAutoDomainMappingCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutodomainmappingsReplaceAutoDomainMappingCall {
11046	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11047	return c
11048}
11049
11050// Context sets the context to be used in this call's Do method. Any
11051// pending HTTP request will be aborted if the provided context is
11052// canceled.
11053func (c *ProjectsLocationsAutodomainmappingsReplaceAutoDomainMappingCall) Context(ctx context.Context) *ProjectsLocationsAutodomainmappingsReplaceAutoDomainMappingCall {
11054	c.ctx_ = ctx
11055	return c
11056}
11057
11058// Header returns an http.Header that can be modified by the caller to
11059// add HTTP headers to the request.
11060func (c *ProjectsLocationsAutodomainmappingsReplaceAutoDomainMappingCall) Header() http.Header {
11061	if c.header_ == nil {
11062		c.header_ = make(http.Header)
11063	}
11064	return c.header_
11065}
11066
11067func (c *ProjectsLocationsAutodomainmappingsReplaceAutoDomainMappingCall) doRequest(alt string) (*http.Response, error) {
11068	reqHeaders := make(http.Header)
11069	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
11070	for k, v := range c.header_ {
11071		reqHeaders[k] = v
11072	}
11073	reqHeaders.Set("User-Agent", c.s.userAgent())
11074	var body io.Reader = nil
11075	body, err := googleapi.WithoutDataWrapper.JSONReader(c.autodomainmapping)
11076	if err != nil {
11077		return nil, err
11078	}
11079	reqHeaders.Set("Content-Type", "application/json")
11080	c.urlParams_.Set("alt", alt)
11081	c.urlParams_.Set("prettyPrint", "false")
11082	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
11083	urls += "?" + c.urlParams_.Encode()
11084	req, err := http.NewRequest("PUT", urls, body)
11085	if err != nil {
11086		return nil, err
11087	}
11088	req.Header = reqHeaders
11089	googleapi.Expand(req.URL, map[string]string{
11090		"name": c.name,
11091	})
11092	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11093}
11094
11095// Do executes the "run.projects.locations.autodomainmappings.replaceAutoDomainMapping" call.
11096// Exactly one of *AutoDomainMapping or error will be non-nil. Any
11097// non-2xx status code is an error. Response headers are in either
11098// *AutoDomainMapping.ServerResponse.Header or (if a response was
11099// returned at all) in error.(*googleapi.Error).Header. Use
11100// googleapi.IsNotModified to check whether the returned error was
11101// because http.StatusNotModified was returned.
11102func (c *ProjectsLocationsAutodomainmappingsReplaceAutoDomainMappingCall) Do(opts ...googleapi.CallOption) (*AutoDomainMapping, error) {
11103	gensupport.SetOptions(c.urlParams_, opts...)
11104	res, err := c.doRequest("json")
11105	if res != nil && res.StatusCode == http.StatusNotModified {
11106		if res.Body != nil {
11107			res.Body.Close()
11108		}
11109		return nil, &googleapi.Error{
11110			Code:   res.StatusCode,
11111			Header: res.Header,
11112		}
11113	}
11114	if err != nil {
11115		return nil, err
11116	}
11117	defer googleapi.CloseBody(res)
11118	if err := googleapi.CheckResponse(res); err != nil {
11119		return nil, err
11120	}
11121	ret := &AutoDomainMapping{
11122		ServerResponse: googleapi.ServerResponse{
11123			Header:         res.Header,
11124			HTTPStatusCode: res.StatusCode,
11125		},
11126	}
11127	target := &ret
11128	if err := gensupport.DecodeResponse(target, res); err != nil {
11129		return nil, err
11130	}
11131	return ret, nil
11132	// {
11133	//   "description": "Replace an auto domain mapping.\n\nOnly the spec and metadata labels and annotations are modifiable. After\nthe Update request, Cloud Run will work to make the 'status'\nmatch the requested 'spec'.\n\nMay provide metadata.resourceVersion to enforce update from last read for\noptimistic concurrency control.",
11134	//   "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/autodomainmappings/{autodomainmappingsId}",
11135	//   "httpMethod": "PUT",
11136	//   "id": "run.projects.locations.autodomainmappings.replaceAutoDomainMapping",
11137	//   "parameterOrder": [
11138	//     "name"
11139	//   ],
11140	//   "parameters": {
11141	//     "name": {
11142	//       "description": "The name of the auto domain mapping being retrieved. If needed, replace\n{namespace_id} with the project ID.",
11143	//       "location": "path",
11144	//       "pattern": "^projects/[^/]+/locations/[^/]+/autodomainmappings/[^/]+$",
11145	//       "required": true,
11146	//       "type": "string"
11147	//     }
11148	//   },
11149	//   "path": "v1/{+name}",
11150	//   "request": {
11151	//     "$ref": "AutoDomainMapping"
11152	//   },
11153	//   "response": {
11154	//     "$ref": "AutoDomainMapping"
11155	//   },
11156	//   "scopes": [
11157	//     "https://www.googleapis.com/auth/cloud-platform"
11158	//   ]
11159	// }
11160
11161}
11162
11163// method id "run.projects.locations.configurations.create":
11164
11165type ProjectsLocationsConfigurationsCreateCall struct {
11166	s             *APIService
11167	parent        string
11168	configuration *Configuration
11169	urlParams_    gensupport.URLParams
11170	ctx_          context.Context
11171	header_       http.Header
11172}
11173
11174// Create: Create a configuration.
11175func (r *ProjectsLocationsConfigurationsService) Create(parent string, configuration *Configuration) *ProjectsLocationsConfigurationsCreateCall {
11176	c := &ProjectsLocationsConfigurationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11177	c.parent = parent
11178	c.configuration = configuration
11179	return c
11180}
11181
11182// Fields allows partial responses to be retrieved. See
11183// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11184// for more information.
11185func (c *ProjectsLocationsConfigurationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConfigurationsCreateCall {
11186	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11187	return c
11188}
11189
11190// Context sets the context to be used in this call's Do method. Any
11191// pending HTTP request will be aborted if the provided context is
11192// canceled.
11193func (c *ProjectsLocationsConfigurationsCreateCall) Context(ctx context.Context) *ProjectsLocationsConfigurationsCreateCall {
11194	c.ctx_ = ctx
11195	return c
11196}
11197
11198// Header returns an http.Header that can be modified by the caller to
11199// add HTTP headers to the request.
11200func (c *ProjectsLocationsConfigurationsCreateCall) Header() http.Header {
11201	if c.header_ == nil {
11202		c.header_ = make(http.Header)
11203	}
11204	return c.header_
11205}
11206
11207func (c *ProjectsLocationsConfigurationsCreateCall) doRequest(alt string) (*http.Response, error) {
11208	reqHeaders := make(http.Header)
11209	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
11210	for k, v := range c.header_ {
11211		reqHeaders[k] = v
11212	}
11213	reqHeaders.Set("User-Agent", c.s.userAgent())
11214	var body io.Reader = nil
11215	body, err := googleapi.WithoutDataWrapper.JSONReader(c.configuration)
11216	if err != nil {
11217		return nil, err
11218	}
11219	reqHeaders.Set("Content-Type", "application/json")
11220	c.urlParams_.Set("alt", alt)
11221	c.urlParams_.Set("prettyPrint", "false")
11222	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/configurations")
11223	urls += "?" + c.urlParams_.Encode()
11224	req, err := http.NewRequest("POST", urls, body)
11225	if err != nil {
11226		return nil, err
11227	}
11228	req.Header = reqHeaders
11229	googleapi.Expand(req.URL, map[string]string{
11230		"parent": c.parent,
11231	})
11232	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11233}
11234
11235// Do executes the "run.projects.locations.configurations.create" call.
11236// Exactly one of *Configuration or error will be non-nil. Any non-2xx
11237// status code is an error. Response headers are in either
11238// *Configuration.ServerResponse.Header or (if a response was returned
11239// at all) in error.(*googleapi.Error).Header. Use
11240// googleapi.IsNotModified to check whether the returned error was
11241// because http.StatusNotModified was returned.
11242func (c *ProjectsLocationsConfigurationsCreateCall) Do(opts ...googleapi.CallOption) (*Configuration, error) {
11243	gensupport.SetOptions(c.urlParams_, opts...)
11244	res, err := c.doRequest("json")
11245	if res != nil && res.StatusCode == http.StatusNotModified {
11246		if res.Body != nil {
11247			res.Body.Close()
11248		}
11249		return nil, &googleapi.Error{
11250			Code:   res.StatusCode,
11251			Header: res.Header,
11252		}
11253	}
11254	if err != nil {
11255		return nil, err
11256	}
11257	defer googleapi.CloseBody(res)
11258	if err := googleapi.CheckResponse(res); err != nil {
11259		return nil, err
11260	}
11261	ret := &Configuration{
11262		ServerResponse: googleapi.ServerResponse{
11263			Header:         res.Header,
11264			HTTPStatusCode: res.StatusCode,
11265		},
11266	}
11267	target := &ret
11268	if err := gensupport.DecodeResponse(target, res); err != nil {
11269		return nil, err
11270	}
11271	return ret, nil
11272	// {
11273	//   "description": "Create a configuration.",
11274	//   "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/configurations",
11275	//   "httpMethod": "POST",
11276	//   "id": "run.projects.locations.configurations.create",
11277	//   "parameterOrder": [
11278	//     "parent"
11279	//   ],
11280	//   "parameters": {
11281	//     "parent": {
11282	//       "description": "The project ID or project number in which this configuration should be\ncreated.",
11283	//       "location": "path",
11284	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
11285	//       "required": true,
11286	//       "type": "string"
11287	//     }
11288	//   },
11289	//   "path": "v1/{+parent}/configurations",
11290	//   "request": {
11291	//     "$ref": "Configuration"
11292	//   },
11293	//   "response": {
11294	//     "$ref": "Configuration"
11295	//   },
11296	//   "scopes": [
11297	//     "https://www.googleapis.com/auth/cloud-platform"
11298	//   ]
11299	// }
11300
11301}
11302
11303// method id "run.projects.locations.configurations.delete":
11304
11305type ProjectsLocationsConfigurationsDeleteCall struct {
11306	s          *APIService
11307	name       string
11308	urlParams_ gensupport.URLParams
11309	ctx_       context.Context
11310	header_    http.Header
11311}
11312
11313// Delete: delete a configuration.
11314// This will cause the configuration to delete all child revisions.
11315// Prior to
11316// calling this, any route referencing the configuration (or
11317// revision
11318// from the configuration) must be deleted.
11319func (r *ProjectsLocationsConfigurationsService) Delete(name string) *ProjectsLocationsConfigurationsDeleteCall {
11320	c := &ProjectsLocationsConfigurationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11321	c.name = name
11322	return c
11323}
11324
11325// ApiVersion sets the optional parameter "apiVersion": Cloud Run
11326// currently ignores this parameter.
11327func (c *ProjectsLocationsConfigurationsDeleteCall) ApiVersion(apiVersion string) *ProjectsLocationsConfigurationsDeleteCall {
11328	c.urlParams_.Set("apiVersion", apiVersion)
11329	return c
11330}
11331
11332// Kind sets the optional parameter "kind": Cloud Run currently ignores
11333// this parameter.
11334func (c *ProjectsLocationsConfigurationsDeleteCall) Kind(kind string) *ProjectsLocationsConfigurationsDeleteCall {
11335	c.urlParams_.Set("kind", kind)
11336	return c
11337}
11338
11339// PropagationPolicy sets the optional parameter "propagationPolicy":
11340// Specifies the propagation policy of delete. Cloud Run currently
11341// ignores
11342// this setting, and deletes in the background. Please
11343// see
11344// kubernetes.io/docs/concepts/workloads/controllers/garbage-collecti
11345// on/ for
11346// more information.
11347func (c *ProjectsLocationsConfigurationsDeleteCall) PropagationPolicy(propagationPolicy string) *ProjectsLocationsConfigurationsDeleteCall {
11348	c.urlParams_.Set("propagationPolicy", propagationPolicy)
11349	return c
11350}
11351
11352// Fields allows partial responses to be retrieved. See
11353// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11354// for more information.
11355func (c *ProjectsLocationsConfigurationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsConfigurationsDeleteCall {
11356	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11357	return c
11358}
11359
11360// Context sets the context to be used in this call's Do method. Any
11361// pending HTTP request will be aborted if the provided context is
11362// canceled.
11363func (c *ProjectsLocationsConfigurationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsConfigurationsDeleteCall {
11364	c.ctx_ = ctx
11365	return c
11366}
11367
11368// Header returns an http.Header that can be modified by the caller to
11369// add HTTP headers to the request.
11370func (c *ProjectsLocationsConfigurationsDeleteCall) Header() http.Header {
11371	if c.header_ == nil {
11372		c.header_ = make(http.Header)
11373	}
11374	return c.header_
11375}
11376
11377func (c *ProjectsLocationsConfigurationsDeleteCall) doRequest(alt string) (*http.Response, error) {
11378	reqHeaders := make(http.Header)
11379	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
11380	for k, v := range c.header_ {
11381		reqHeaders[k] = v
11382	}
11383	reqHeaders.Set("User-Agent", c.s.userAgent())
11384	var body io.Reader = nil
11385	c.urlParams_.Set("alt", alt)
11386	c.urlParams_.Set("prettyPrint", "false")
11387	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
11388	urls += "?" + c.urlParams_.Encode()
11389	req, err := http.NewRequest("DELETE", urls, body)
11390	if err != nil {
11391		return nil, err
11392	}
11393	req.Header = reqHeaders
11394	googleapi.Expand(req.URL, map[string]string{
11395		"name": c.name,
11396	})
11397	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11398}
11399
11400// Do executes the "run.projects.locations.configurations.delete" call.
11401// Exactly one of *Status or error will be non-nil. Any non-2xx status
11402// code is an error. Response headers are in either
11403// *Status.ServerResponse.Header or (if a response was returned at all)
11404// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
11405// check whether the returned error was because http.StatusNotModified
11406// was returned.
11407func (c *ProjectsLocationsConfigurationsDeleteCall) Do(opts ...googleapi.CallOption) (*Status, error) {
11408	gensupport.SetOptions(c.urlParams_, opts...)
11409	res, err := c.doRequest("json")
11410	if res != nil && res.StatusCode == http.StatusNotModified {
11411		if res.Body != nil {
11412			res.Body.Close()
11413		}
11414		return nil, &googleapi.Error{
11415			Code:   res.StatusCode,
11416			Header: res.Header,
11417		}
11418	}
11419	if err != nil {
11420		return nil, err
11421	}
11422	defer googleapi.CloseBody(res)
11423	if err := googleapi.CheckResponse(res); err != nil {
11424		return nil, err
11425	}
11426	ret := &Status{
11427		ServerResponse: googleapi.ServerResponse{
11428			Header:         res.Header,
11429			HTTPStatusCode: res.StatusCode,
11430		},
11431	}
11432	target := &ret
11433	if err := gensupport.DecodeResponse(target, res); err != nil {
11434		return nil, err
11435	}
11436	return ret, nil
11437	// {
11438	//   "description": "delete a configuration.\nThis will cause the configuration to delete all child revisions. Prior to\ncalling this, any route referencing the configuration (or revision\nfrom the configuration) must be deleted.",
11439	//   "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/configurations/{configurationsId}",
11440	//   "httpMethod": "DELETE",
11441	//   "id": "run.projects.locations.configurations.delete",
11442	//   "parameterOrder": [
11443	//     "name"
11444	//   ],
11445	//   "parameters": {
11446	//     "apiVersion": {
11447	//       "description": "Cloud Run currently ignores this parameter.",
11448	//       "location": "query",
11449	//       "type": "string"
11450	//     },
11451	//     "kind": {
11452	//       "description": "Cloud Run currently ignores this parameter.",
11453	//       "location": "query",
11454	//       "type": "string"
11455	//     },
11456	//     "name": {
11457	//       "description": "The name of the configuration being deleted. If needed, replace\n{namespace_id} with the project ID.",
11458	//       "location": "path",
11459	//       "pattern": "^projects/[^/]+/locations/[^/]+/configurations/[^/]+$",
11460	//       "required": true,
11461	//       "type": "string"
11462	//     },
11463	//     "propagationPolicy": {
11464	//       "description": "Specifies the propagation policy of delete. Cloud Run currently ignores\nthis setting, and deletes in the background. Please see\nkubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for\nmore information.",
11465	//       "location": "query",
11466	//       "type": "string"
11467	//     }
11468	//   },
11469	//   "path": "v1/{+name}",
11470	//   "response": {
11471	//     "$ref": "Status"
11472	//   },
11473	//   "scopes": [
11474	//     "https://www.googleapis.com/auth/cloud-platform"
11475	//   ]
11476	// }
11477
11478}
11479
11480// method id "run.projects.locations.configurations.get":
11481
11482type ProjectsLocationsConfigurationsGetCall struct {
11483	s            *APIService
11484	name         string
11485	urlParams_   gensupport.URLParams
11486	ifNoneMatch_ string
11487	ctx_         context.Context
11488	header_      http.Header
11489}
11490
11491// Get: Get information about a configuration.
11492func (r *ProjectsLocationsConfigurationsService) Get(name string) *ProjectsLocationsConfigurationsGetCall {
11493	c := &ProjectsLocationsConfigurationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11494	c.name = name
11495	return c
11496}
11497
11498// Fields allows partial responses to be retrieved. See
11499// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11500// for more information.
11501func (c *ProjectsLocationsConfigurationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConfigurationsGetCall {
11502	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11503	return c
11504}
11505
11506// IfNoneMatch sets the optional parameter which makes the operation
11507// fail if the object's ETag matches the given value. This is useful for
11508// getting updates only after the object has changed since the last
11509// request. Use googleapi.IsNotModified to check whether the response
11510// error from Do is the result of In-None-Match.
11511func (c *ProjectsLocationsConfigurationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConfigurationsGetCall {
11512	c.ifNoneMatch_ = entityTag
11513	return c
11514}
11515
11516// Context sets the context to be used in this call's Do method. Any
11517// pending HTTP request will be aborted if the provided context is
11518// canceled.
11519func (c *ProjectsLocationsConfigurationsGetCall) Context(ctx context.Context) *ProjectsLocationsConfigurationsGetCall {
11520	c.ctx_ = ctx
11521	return c
11522}
11523
11524// Header returns an http.Header that can be modified by the caller to
11525// add HTTP headers to the request.
11526func (c *ProjectsLocationsConfigurationsGetCall) Header() http.Header {
11527	if c.header_ == nil {
11528		c.header_ = make(http.Header)
11529	}
11530	return c.header_
11531}
11532
11533func (c *ProjectsLocationsConfigurationsGetCall) doRequest(alt string) (*http.Response, error) {
11534	reqHeaders := make(http.Header)
11535	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
11536	for k, v := range c.header_ {
11537		reqHeaders[k] = v
11538	}
11539	reqHeaders.Set("User-Agent", c.s.userAgent())
11540	if c.ifNoneMatch_ != "" {
11541		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11542	}
11543	var body io.Reader = nil
11544	c.urlParams_.Set("alt", alt)
11545	c.urlParams_.Set("prettyPrint", "false")
11546	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
11547	urls += "?" + c.urlParams_.Encode()
11548	req, err := http.NewRequest("GET", urls, body)
11549	if err != nil {
11550		return nil, err
11551	}
11552	req.Header = reqHeaders
11553	googleapi.Expand(req.URL, map[string]string{
11554		"name": c.name,
11555	})
11556	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11557}
11558
11559// Do executes the "run.projects.locations.configurations.get" call.
11560// Exactly one of *Configuration or error will be non-nil. Any non-2xx
11561// status code is an error. Response headers are in either
11562// *Configuration.ServerResponse.Header or (if a response was returned
11563// at all) in error.(*googleapi.Error).Header. Use
11564// googleapi.IsNotModified to check whether the returned error was
11565// because http.StatusNotModified was returned.
11566func (c *ProjectsLocationsConfigurationsGetCall) Do(opts ...googleapi.CallOption) (*Configuration, error) {
11567	gensupport.SetOptions(c.urlParams_, opts...)
11568	res, err := c.doRequest("json")
11569	if res != nil && res.StatusCode == http.StatusNotModified {
11570		if res.Body != nil {
11571			res.Body.Close()
11572		}
11573		return nil, &googleapi.Error{
11574			Code:   res.StatusCode,
11575			Header: res.Header,
11576		}
11577	}
11578	if err != nil {
11579		return nil, err
11580	}
11581	defer googleapi.CloseBody(res)
11582	if err := googleapi.CheckResponse(res); err != nil {
11583		return nil, err
11584	}
11585	ret := &Configuration{
11586		ServerResponse: googleapi.ServerResponse{
11587			Header:         res.Header,
11588			HTTPStatusCode: res.StatusCode,
11589		},
11590	}
11591	target := &ret
11592	if err := gensupport.DecodeResponse(target, res); err != nil {
11593		return nil, err
11594	}
11595	return ret, nil
11596	// {
11597	//   "description": "Get information about a configuration.",
11598	//   "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/configurations/{configurationsId}",
11599	//   "httpMethod": "GET",
11600	//   "id": "run.projects.locations.configurations.get",
11601	//   "parameterOrder": [
11602	//     "name"
11603	//   ],
11604	//   "parameters": {
11605	//     "name": {
11606	//       "description": "The name of the configuration being retrieved. If needed, replace\n{namespace_id} with the project ID.",
11607	//       "location": "path",
11608	//       "pattern": "^projects/[^/]+/locations/[^/]+/configurations/[^/]+$",
11609	//       "required": true,
11610	//       "type": "string"
11611	//     }
11612	//   },
11613	//   "path": "v1/{+name}",
11614	//   "response": {
11615	//     "$ref": "Configuration"
11616	//   },
11617	//   "scopes": [
11618	//     "https://www.googleapis.com/auth/cloud-platform"
11619	//   ]
11620	// }
11621
11622}
11623
11624// method id "run.projects.locations.configurations.list":
11625
11626type ProjectsLocationsConfigurationsListCall struct {
11627	s            *APIService
11628	parent       string
11629	urlParams_   gensupport.URLParams
11630	ifNoneMatch_ string
11631	ctx_         context.Context
11632	header_      http.Header
11633}
11634
11635// List: List configurations.
11636func (r *ProjectsLocationsConfigurationsService) List(parent string) *ProjectsLocationsConfigurationsListCall {
11637	c := &ProjectsLocationsConfigurationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11638	c.parent = parent
11639	return c
11640}
11641
11642// Continue sets the optional parameter "continue": Optional encoded
11643// string to continue paging.
11644func (c *ProjectsLocationsConfigurationsListCall) Continue(continue_ string) *ProjectsLocationsConfigurationsListCall {
11645	c.urlParams_.Set("continue", continue_)
11646	return c
11647}
11648
11649// FieldSelector sets the optional parameter "fieldSelector": Allows to
11650// filter resources based on a specific value for a field name.
11651// Send this in a query string format. i.e. 'metadata.name%3Dlorem'.
11652// Not currently used by Cloud Run.
11653func (c *ProjectsLocationsConfigurationsListCall) FieldSelector(fieldSelector string) *ProjectsLocationsConfigurationsListCall {
11654	c.urlParams_.Set("fieldSelector", fieldSelector)
11655	return c
11656}
11657
11658// IncludeUninitialized sets the optional parameter
11659// "includeUninitialized": Not currently used by Cloud Run.
11660func (c *ProjectsLocationsConfigurationsListCall) IncludeUninitialized(includeUninitialized bool) *ProjectsLocationsConfigurationsListCall {
11661	c.urlParams_.Set("includeUninitialized", fmt.Sprint(includeUninitialized))
11662	return c
11663}
11664
11665// LabelSelector sets the optional parameter "labelSelector": Allows to
11666// filter resources based on a label. Supported operations are
11667// =, !=, exists, in, and notIn.
11668func (c *ProjectsLocationsConfigurationsListCall) LabelSelector(labelSelector string) *ProjectsLocationsConfigurationsListCall {
11669	c.urlParams_.Set("labelSelector", labelSelector)
11670	return c
11671}
11672
11673// Limit sets the optional parameter "limit": The maximum number of
11674// records that should be returned.
11675func (c *ProjectsLocationsConfigurationsListCall) Limit(limit int64) *ProjectsLocationsConfigurationsListCall {
11676	c.urlParams_.Set("limit", fmt.Sprint(limit))
11677	return c
11678}
11679
11680// ResourceVersion sets the optional parameter "resourceVersion": The
11681// baseline resource version from which the list or watch operation
11682// should
11683// start. Not currently used by Cloud Run.
11684func (c *ProjectsLocationsConfigurationsListCall) ResourceVersion(resourceVersion string) *ProjectsLocationsConfigurationsListCall {
11685	c.urlParams_.Set("resourceVersion", resourceVersion)
11686	return c
11687}
11688
11689// Watch sets the optional parameter "watch": Flag that indicates that
11690// the client expects to watch this resource as well.
11691// Not currently used by Cloud Run.
11692func (c *ProjectsLocationsConfigurationsListCall) Watch(watch bool) *ProjectsLocationsConfigurationsListCall {
11693	c.urlParams_.Set("watch", fmt.Sprint(watch))
11694	return c
11695}
11696
11697// Fields allows partial responses to be retrieved. See
11698// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11699// for more information.
11700func (c *ProjectsLocationsConfigurationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConfigurationsListCall {
11701	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11702	return c
11703}
11704
11705// IfNoneMatch sets the optional parameter which makes the operation
11706// fail if the object's ETag matches the given value. This is useful for
11707// getting updates only after the object has changed since the last
11708// request. Use googleapi.IsNotModified to check whether the response
11709// error from Do is the result of In-None-Match.
11710func (c *ProjectsLocationsConfigurationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConfigurationsListCall {
11711	c.ifNoneMatch_ = entityTag
11712	return c
11713}
11714
11715// Context sets the context to be used in this call's Do method. Any
11716// pending HTTP request will be aborted if the provided context is
11717// canceled.
11718func (c *ProjectsLocationsConfigurationsListCall) Context(ctx context.Context) *ProjectsLocationsConfigurationsListCall {
11719	c.ctx_ = ctx
11720	return c
11721}
11722
11723// Header returns an http.Header that can be modified by the caller to
11724// add HTTP headers to the request.
11725func (c *ProjectsLocationsConfigurationsListCall) Header() http.Header {
11726	if c.header_ == nil {
11727		c.header_ = make(http.Header)
11728	}
11729	return c.header_
11730}
11731
11732func (c *ProjectsLocationsConfigurationsListCall) doRequest(alt string) (*http.Response, error) {
11733	reqHeaders := make(http.Header)
11734	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
11735	for k, v := range c.header_ {
11736		reqHeaders[k] = v
11737	}
11738	reqHeaders.Set("User-Agent", c.s.userAgent())
11739	if c.ifNoneMatch_ != "" {
11740		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11741	}
11742	var body io.Reader = nil
11743	c.urlParams_.Set("alt", alt)
11744	c.urlParams_.Set("prettyPrint", "false")
11745	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/configurations")
11746	urls += "?" + c.urlParams_.Encode()
11747	req, err := http.NewRequest("GET", urls, body)
11748	if err != nil {
11749		return nil, err
11750	}
11751	req.Header = reqHeaders
11752	googleapi.Expand(req.URL, map[string]string{
11753		"parent": c.parent,
11754	})
11755	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11756}
11757
11758// Do executes the "run.projects.locations.configurations.list" call.
11759// Exactly one of *ListConfigurationsResponse or error will be non-nil.
11760// Any non-2xx status code is an error. Response headers are in either
11761// *ListConfigurationsResponse.ServerResponse.Header or (if a response
11762// was returned at all) in error.(*googleapi.Error).Header. Use
11763// googleapi.IsNotModified to check whether the returned error was
11764// because http.StatusNotModified was returned.
11765func (c *ProjectsLocationsConfigurationsListCall) Do(opts ...googleapi.CallOption) (*ListConfigurationsResponse, error) {
11766	gensupport.SetOptions(c.urlParams_, opts...)
11767	res, err := c.doRequest("json")
11768	if res != nil && res.StatusCode == http.StatusNotModified {
11769		if res.Body != nil {
11770			res.Body.Close()
11771		}
11772		return nil, &googleapi.Error{
11773			Code:   res.StatusCode,
11774			Header: res.Header,
11775		}
11776	}
11777	if err != nil {
11778		return nil, err
11779	}
11780	defer googleapi.CloseBody(res)
11781	if err := googleapi.CheckResponse(res); err != nil {
11782		return nil, err
11783	}
11784	ret := &ListConfigurationsResponse{
11785		ServerResponse: googleapi.ServerResponse{
11786			Header:         res.Header,
11787			HTTPStatusCode: res.StatusCode,
11788		},
11789	}
11790	target := &ret
11791	if err := gensupport.DecodeResponse(target, res); err != nil {
11792		return nil, err
11793	}
11794	return ret, nil
11795	// {
11796	//   "description": "List configurations.",
11797	//   "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/configurations",
11798	//   "httpMethod": "GET",
11799	//   "id": "run.projects.locations.configurations.list",
11800	//   "parameterOrder": [
11801	//     "parent"
11802	//   ],
11803	//   "parameters": {
11804	//     "continue": {
11805	//       "description": "Optional encoded string to continue paging.",
11806	//       "location": "query",
11807	//       "type": "string"
11808	//     },
11809	//     "fieldSelector": {
11810	//       "description": "Allows to filter resources based on a specific value for a field name.\nSend this in a query string format. i.e. 'metadata.name%3Dlorem'.\nNot currently used by Cloud Run.",
11811	//       "location": "query",
11812	//       "type": "string"
11813	//     },
11814	//     "includeUninitialized": {
11815	//       "description": "Not currently used by Cloud Run.",
11816	//       "location": "query",
11817	//       "type": "boolean"
11818	//     },
11819	//     "labelSelector": {
11820	//       "description": "Allows to filter resources based on a label. Supported operations are\n=, !=, exists, in, and notIn.",
11821	//       "location": "query",
11822	//       "type": "string"
11823	//     },
11824	//     "limit": {
11825	//       "description": "The maximum number of records that should be returned.",
11826	//       "format": "int32",
11827	//       "location": "query",
11828	//       "type": "integer"
11829	//     },
11830	//     "parent": {
11831	//       "description": "The project ID or project number from which the configurations should be\nlisted.",
11832	//       "location": "path",
11833	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
11834	//       "required": true,
11835	//       "type": "string"
11836	//     },
11837	//     "resourceVersion": {
11838	//       "description": "The baseline resource version from which the list or watch operation should\nstart. Not currently used by Cloud Run.",
11839	//       "location": "query",
11840	//       "type": "string"
11841	//     },
11842	//     "watch": {
11843	//       "description": "Flag that indicates that the client expects to watch this resource as well.\nNot currently used by Cloud Run.",
11844	//       "location": "query",
11845	//       "type": "boolean"
11846	//     }
11847	//   },
11848	//   "path": "v1/{+parent}/configurations",
11849	//   "response": {
11850	//     "$ref": "ListConfigurationsResponse"
11851	//   },
11852	//   "scopes": [
11853	//     "https://www.googleapis.com/auth/cloud-platform"
11854	//   ]
11855	// }
11856
11857}
11858
11859// method id "run.projects.locations.configurations.replaceConfiguration":
11860
11861type ProjectsLocationsConfigurationsReplaceConfigurationCall struct {
11862	s             *APIService
11863	name          string
11864	configuration *Configuration
11865	urlParams_    gensupport.URLParams
11866	ctx_          context.Context
11867	header_       http.Header
11868}
11869
11870// ReplaceConfiguration: Replace a configuration.
11871//
11872// Only the spec and metadata labels and annotations are modifiable.
11873// After
11874// the Update request, Cloud Run will work to make the 'status'
11875// match the requested 'spec'.
11876//
11877// May provide metadata.resourceVersion to enforce update from last read
11878// for
11879// optimistic concurrency control.
11880func (r *ProjectsLocationsConfigurationsService) ReplaceConfiguration(name string, configuration *Configuration) *ProjectsLocationsConfigurationsReplaceConfigurationCall {
11881	c := &ProjectsLocationsConfigurationsReplaceConfigurationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11882	c.name = name
11883	c.configuration = configuration
11884	return c
11885}
11886
11887// Fields allows partial responses to be retrieved. See
11888// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11889// for more information.
11890func (c *ProjectsLocationsConfigurationsReplaceConfigurationCall) Fields(s ...googleapi.Field) *ProjectsLocationsConfigurationsReplaceConfigurationCall {
11891	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11892	return c
11893}
11894
11895// Context sets the context to be used in this call's Do method. Any
11896// pending HTTP request will be aborted if the provided context is
11897// canceled.
11898func (c *ProjectsLocationsConfigurationsReplaceConfigurationCall) Context(ctx context.Context) *ProjectsLocationsConfigurationsReplaceConfigurationCall {
11899	c.ctx_ = ctx
11900	return c
11901}
11902
11903// Header returns an http.Header that can be modified by the caller to
11904// add HTTP headers to the request.
11905func (c *ProjectsLocationsConfigurationsReplaceConfigurationCall) Header() http.Header {
11906	if c.header_ == nil {
11907		c.header_ = make(http.Header)
11908	}
11909	return c.header_
11910}
11911
11912func (c *ProjectsLocationsConfigurationsReplaceConfigurationCall) doRequest(alt string) (*http.Response, error) {
11913	reqHeaders := make(http.Header)
11914	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
11915	for k, v := range c.header_ {
11916		reqHeaders[k] = v
11917	}
11918	reqHeaders.Set("User-Agent", c.s.userAgent())
11919	var body io.Reader = nil
11920	body, err := googleapi.WithoutDataWrapper.JSONReader(c.configuration)
11921	if err != nil {
11922		return nil, err
11923	}
11924	reqHeaders.Set("Content-Type", "application/json")
11925	c.urlParams_.Set("alt", alt)
11926	c.urlParams_.Set("prettyPrint", "false")
11927	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
11928	urls += "?" + c.urlParams_.Encode()
11929	req, err := http.NewRequest("PUT", urls, body)
11930	if err != nil {
11931		return nil, err
11932	}
11933	req.Header = reqHeaders
11934	googleapi.Expand(req.URL, map[string]string{
11935		"name": c.name,
11936	})
11937	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11938}
11939
11940// Do executes the "run.projects.locations.configurations.replaceConfiguration" call.
11941// Exactly one of *Configuration or error will be non-nil. Any non-2xx
11942// status code is an error. Response headers are in either
11943// *Configuration.ServerResponse.Header or (if a response was returned
11944// at all) in error.(*googleapi.Error).Header. Use
11945// googleapi.IsNotModified to check whether the returned error was
11946// because http.StatusNotModified was returned.
11947func (c *ProjectsLocationsConfigurationsReplaceConfigurationCall) Do(opts ...googleapi.CallOption) (*Configuration, error) {
11948	gensupport.SetOptions(c.urlParams_, opts...)
11949	res, err := c.doRequest("json")
11950	if res != nil && res.StatusCode == http.StatusNotModified {
11951		if res.Body != nil {
11952			res.Body.Close()
11953		}
11954		return nil, &googleapi.Error{
11955			Code:   res.StatusCode,
11956			Header: res.Header,
11957		}
11958	}
11959	if err != nil {
11960		return nil, err
11961	}
11962	defer googleapi.CloseBody(res)
11963	if err := googleapi.CheckResponse(res); err != nil {
11964		return nil, err
11965	}
11966	ret := &Configuration{
11967		ServerResponse: googleapi.ServerResponse{
11968			Header:         res.Header,
11969			HTTPStatusCode: res.StatusCode,
11970		},
11971	}
11972	target := &ret
11973	if err := gensupport.DecodeResponse(target, res); err != nil {
11974		return nil, err
11975	}
11976	return ret, nil
11977	// {
11978	//   "description": "Replace a configuration.\n\nOnly the spec and metadata labels and annotations are modifiable. After\nthe Update request, Cloud Run will work to make the 'status'\nmatch the requested 'spec'.\n\nMay provide metadata.resourceVersion to enforce update from last read for\noptimistic concurrency control.",
11979	//   "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/configurations/{configurationsId}",
11980	//   "httpMethod": "PUT",
11981	//   "id": "run.projects.locations.configurations.replaceConfiguration",
11982	//   "parameterOrder": [
11983	//     "name"
11984	//   ],
11985	//   "parameters": {
11986	//     "name": {
11987	//       "description": "The name of the configuration being retrieved. If needed, replace\n{namespace_id} with the project ID.",
11988	//       "location": "path",
11989	//       "pattern": "^projects/[^/]+/locations/[^/]+/configurations/[^/]+$",
11990	//       "required": true,
11991	//       "type": "string"
11992	//     }
11993	//   },
11994	//   "path": "v1/{+name}",
11995	//   "request": {
11996	//     "$ref": "Configuration"
11997	//   },
11998	//   "response": {
11999	//     "$ref": "Configuration"
12000	//   },
12001	//   "scopes": [
12002	//     "https://www.googleapis.com/auth/cloud-platform"
12003	//   ]
12004	// }
12005
12006}
12007
12008// method id "run.projects.locations.domainmappings.create":
12009
12010type ProjectsLocationsDomainmappingsCreateCall struct {
12011	s             *APIService
12012	parent        string
12013	domainmapping *DomainMapping
12014	urlParams_    gensupport.URLParams
12015	ctx_          context.Context
12016	header_       http.Header
12017}
12018
12019// Create: Create a new domain mapping.
12020func (r *ProjectsLocationsDomainmappingsService) Create(parent string, domainmapping *DomainMapping) *ProjectsLocationsDomainmappingsCreateCall {
12021	c := &ProjectsLocationsDomainmappingsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12022	c.parent = parent
12023	c.domainmapping = domainmapping
12024	return c
12025}
12026
12027// Fields allows partial responses to be retrieved. See
12028// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12029// for more information.
12030func (c *ProjectsLocationsDomainmappingsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDomainmappingsCreateCall {
12031	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12032	return c
12033}
12034
12035// Context sets the context to be used in this call's Do method. Any
12036// pending HTTP request will be aborted if the provided context is
12037// canceled.
12038func (c *ProjectsLocationsDomainmappingsCreateCall) Context(ctx context.Context) *ProjectsLocationsDomainmappingsCreateCall {
12039	c.ctx_ = ctx
12040	return c
12041}
12042
12043// Header returns an http.Header that can be modified by the caller to
12044// add HTTP headers to the request.
12045func (c *ProjectsLocationsDomainmappingsCreateCall) Header() http.Header {
12046	if c.header_ == nil {
12047		c.header_ = make(http.Header)
12048	}
12049	return c.header_
12050}
12051
12052func (c *ProjectsLocationsDomainmappingsCreateCall) doRequest(alt string) (*http.Response, error) {
12053	reqHeaders := make(http.Header)
12054	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
12055	for k, v := range c.header_ {
12056		reqHeaders[k] = v
12057	}
12058	reqHeaders.Set("User-Agent", c.s.userAgent())
12059	var body io.Reader = nil
12060	body, err := googleapi.WithoutDataWrapper.JSONReader(c.domainmapping)
12061	if err != nil {
12062		return nil, err
12063	}
12064	reqHeaders.Set("Content-Type", "application/json")
12065	c.urlParams_.Set("alt", alt)
12066	c.urlParams_.Set("prettyPrint", "false")
12067	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/domainmappings")
12068	urls += "?" + c.urlParams_.Encode()
12069	req, err := http.NewRequest("POST", urls, body)
12070	if err != nil {
12071		return nil, err
12072	}
12073	req.Header = reqHeaders
12074	googleapi.Expand(req.URL, map[string]string{
12075		"parent": c.parent,
12076	})
12077	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12078}
12079
12080// Do executes the "run.projects.locations.domainmappings.create" call.
12081// Exactly one of *DomainMapping or error will be non-nil. Any non-2xx
12082// status code is an error. Response headers are in either
12083// *DomainMapping.ServerResponse.Header or (if a response was returned
12084// at all) in error.(*googleapi.Error).Header. Use
12085// googleapi.IsNotModified to check whether the returned error was
12086// because http.StatusNotModified was returned.
12087func (c *ProjectsLocationsDomainmappingsCreateCall) Do(opts ...googleapi.CallOption) (*DomainMapping, error) {
12088	gensupport.SetOptions(c.urlParams_, opts...)
12089	res, err := c.doRequest("json")
12090	if res != nil && res.StatusCode == http.StatusNotModified {
12091		if res.Body != nil {
12092			res.Body.Close()
12093		}
12094		return nil, &googleapi.Error{
12095			Code:   res.StatusCode,
12096			Header: res.Header,
12097		}
12098	}
12099	if err != nil {
12100		return nil, err
12101	}
12102	defer googleapi.CloseBody(res)
12103	if err := googleapi.CheckResponse(res); err != nil {
12104		return nil, err
12105	}
12106	ret := &DomainMapping{
12107		ServerResponse: googleapi.ServerResponse{
12108			Header:         res.Header,
12109			HTTPStatusCode: res.StatusCode,
12110		},
12111	}
12112	target := &ret
12113	if err := gensupport.DecodeResponse(target, res); err != nil {
12114		return nil, err
12115	}
12116	return ret, nil
12117	// {
12118	//   "description": "Create a new domain mapping.",
12119	//   "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/domainmappings",
12120	//   "httpMethod": "POST",
12121	//   "id": "run.projects.locations.domainmappings.create",
12122	//   "parameterOrder": [
12123	//     "parent"
12124	//   ],
12125	//   "parameters": {
12126	//     "parent": {
12127	//       "description": "The project ID or project number in which this domain mapping should be\ncreated.",
12128	//       "location": "path",
12129	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
12130	//       "required": true,
12131	//       "type": "string"
12132	//     }
12133	//   },
12134	//   "path": "v1/{+parent}/domainmappings",
12135	//   "request": {
12136	//     "$ref": "DomainMapping"
12137	//   },
12138	//   "response": {
12139	//     "$ref": "DomainMapping"
12140	//   },
12141	//   "scopes": [
12142	//     "https://www.googleapis.com/auth/cloud-platform"
12143	//   ]
12144	// }
12145
12146}
12147
12148// method id "run.projects.locations.domainmappings.delete":
12149
12150type ProjectsLocationsDomainmappingsDeleteCall struct {
12151	s          *APIService
12152	name       string
12153	urlParams_ gensupport.URLParams
12154	ctx_       context.Context
12155	header_    http.Header
12156}
12157
12158// Delete: Delete a domain mapping.
12159func (r *ProjectsLocationsDomainmappingsService) Delete(name string) *ProjectsLocationsDomainmappingsDeleteCall {
12160	c := &ProjectsLocationsDomainmappingsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12161	c.name = name
12162	return c
12163}
12164
12165// ApiVersion sets the optional parameter "apiVersion": Cloud Run
12166// currently ignores this parameter.
12167func (c *ProjectsLocationsDomainmappingsDeleteCall) ApiVersion(apiVersion string) *ProjectsLocationsDomainmappingsDeleteCall {
12168	c.urlParams_.Set("apiVersion", apiVersion)
12169	return c
12170}
12171
12172// Kind sets the optional parameter "kind": Cloud Run currently ignores
12173// this parameter.
12174func (c *ProjectsLocationsDomainmappingsDeleteCall) Kind(kind string) *ProjectsLocationsDomainmappingsDeleteCall {
12175	c.urlParams_.Set("kind", kind)
12176	return c
12177}
12178
12179// PropagationPolicy sets the optional parameter "propagationPolicy":
12180// Specifies the propagation policy of delete. Cloud Run currently
12181// ignores
12182// this setting, and deletes in the background. Please
12183// see
12184// kubernetes.io/docs/concepts/workloads/controllers/garbage-collecti
12185// on/ for
12186// more information.
12187func (c *ProjectsLocationsDomainmappingsDeleteCall) PropagationPolicy(propagationPolicy string) *ProjectsLocationsDomainmappingsDeleteCall {
12188	c.urlParams_.Set("propagationPolicy", propagationPolicy)
12189	return c
12190}
12191
12192// Fields allows partial responses to be retrieved. See
12193// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12194// for more information.
12195func (c *ProjectsLocationsDomainmappingsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDomainmappingsDeleteCall {
12196	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12197	return c
12198}
12199
12200// Context sets the context to be used in this call's Do method. Any
12201// pending HTTP request will be aborted if the provided context is
12202// canceled.
12203func (c *ProjectsLocationsDomainmappingsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDomainmappingsDeleteCall {
12204	c.ctx_ = ctx
12205	return c
12206}
12207
12208// Header returns an http.Header that can be modified by the caller to
12209// add HTTP headers to the request.
12210func (c *ProjectsLocationsDomainmappingsDeleteCall) Header() http.Header {
12211	if c.header_ == nil {
12212		c.header_ = make(http.Header)
12213	}
12214	return c.header_
12215}
12216
12217func (c *ProjectsLocationsDomainmappingsDeleteCall) doRequest(alt string) (*http.Response, error) {
12218	reqHeaders := make(http.Header)
12219	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
12220	for k, v := range c.header_ {
12221		reqHeaders[k] = v
12222	}
12223	reqHeaders.Set("User-Agent", c.s.userAgent())
12224	var body io.Reader = nil
12225	c.urlParams_.Set("alt", alt)
12226	c.urlParams_.Set("prettyPrint", "false")
12227	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
12228	urls += "?" + c.urlParams_.Encode()
12229	req, err := http.NewRequest("DELETE", urls, body)
12230	if err != nil {
12231		return nil, err
12232	}
12233	req.Header = reqHeaders
12234	googleapi.Expand(req.URL, map[string]string{
12235		"name": c.name,
12236	})
12237	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12238}
12239
12240// Do executes the "run.projects.locations.domainmappings.delete" call.
12241// Exactly one of *Status or error will be non-nil. Any non-2xx status
12242// code is an error. Response headers are in either
12243// *Status.ServerResponse.Header or (if a response was returned at all)
12244// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
12245// check whether the returned error was because http.StatusNotModified
12246// was returned.
12247func (c *ProjectsLocationsDomainmappingsDeleteCall) Do(opts ...googleapi.CallOption) (*Status, error) {
12248	gensupport.SetOptions(c.urlParams_, opts...)
12249	res, err := c.doRequest("json")
12250	if res != nil && res.StatusCode == http.StatusNotModified {
12251		if res.Body != nil {
12252			res.Body.Close()
12253		}
12254		return nil, &googleapi.Error{
12255			Code:   res.StatusCode,
12256			Header: res.Header,
12257		}
12258	}
12259	if err != nil {
12260		return nil, err
12261	}
12262	defer googleapi.CloseBody(res)
12263	if err := googleapi.CheckResponse(res); err != nil {
12264		return nil, err
12265	}
12266	ret := &Status{
12267		ServerResponse: googleapi.ServerResponse{
12268			Header:         res.Header,
12269			HTTPStatusCode: res.StatusCode,
12270		},
12271	}
12272	target := &ret
12273	if err := gensupport.DecodeResponse(target, res); err != nil {
12274		return nil, err
12275	}
12276	return ret, nil
12277	// {
12278	//   "description": "Delete a domain mapping.",
12279	//   "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/domainmappings/{domainmappingsId}",
12280	//   "httpMethod": "DELETE",
12281	//   "id": "run.projects.locations.domainmappings.delete",
12282	//   "parameterOrder": [
12283	//     "name"
12284	//   ],
12285	//   "parameters": {
12286	//     "apiVersion": {
12287	//       "description": "Cloud Run currently ignores this parameter.",
12288	//       "location": "query",
12289	//       "type": "string"
12290	//     },
12291	//     "kind": {
12292	//       "description": "Cloud Run currently ignores this parameter.",
12293	//       "location": "query",
12294	//       "type": "string"
12295	//     },
12296	//     "name": {
12297	//       "description": "The name of the domain mapping being deleted. If needed, replace\n{namespace_id} with the project ID.",
12298	//       "location": "path",
12299	//       "pattern": "^projects/[^/]+/locations/[^/]+/domainmappings/[^/]+$",
12300	//       "required": true,
12301	//       "type": "string"
12302	//     },
12303	//     "propagationPolicy": {
12304	//       "description": "Specifies the propagation policy of delete. Cloud Run currently ignores\nthis setting, and deletes in the background. Please see\nkubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for\nmore information.",
12305	//       "location": "query",
12306	//       "type": "string"
12307	//     }
12308	//   },
12309	//   "path": "v1/{+name}",
12310	//   "response": {
12311	//     "$ref": "Status"
12312	//   },
12313	//   "scopes": [
12314	//     "https://www.googleapis.com/auth/cloud-platform"
12315	//   ]
12316	// }
12317
12318}
12319
12320// method id "run.projects.locations.domainmappings.get":
12321
12322type ProjectsLocationsDomainmappingsGetCall struct {
12323	s            *APIService
12324	name         string
12325	urlParams_   gensupport.URLParams
12326	ifNoneMatch_ string
12327	ctx_         context.Context
12328	header_      http.Header
12329}
12330
12331// Get: Get information about a domain mapping.
12332func (r *ProjectsLocationsDomainmappingsService) Get(name string) *ProjectsLocationsDomainmappingsGetCall {
12333	c := &ProjectsLocationsDomainmappingsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12334	c.name = name
12335	return c
12336}
12337
12338// Fields allows partial responses to be retrieved. See
12339// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12340// for more information.
12341func (c *ProjectsLocationsDomainmappingsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDomainmappingsGetCall {
12342	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12343	return c
12344}
12345
12346// IfNoneMatch sets the optional parameter which makes the operation
12347// fail if the object's ETag matches the given value. This is useful for
12348// getting updates only after the object has changed since the last
12349// request. Use googleapi.IsNotModified to check whether the response
12350// error from Do is the result of In-None-Match.
12351func (c *ProjectsLocationsDomainmappingsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDomainmappingsGetCall {
12352	c.ifNoneMatch_ = entityTag
12353	return c
12354}
12355
12356// Context sets the context to be used in this call's Do method. Any
12357// pending HTTP request will be aborted if the provided context is
12358// canceled.
12359func (c *ProjectsLocationsDomainmappingsGetCall) Context(ctx context.Context) *ProjectsLocationsDomainmappingsGetCall {
12360	c.ctx_ = ctx
12361	return c
12362}
12363
12364// Header returns an http.Header that can be modified by the caller to
12365// add HTTP headers to the request.
12366func (c *ProjectsLocationsDomainmappingsGetCall) Header() http.Header {
12367	if c.header_ == nil {
12368		c.header_ = make(http.Header)
12369	}
12370	return c.header_
12371}
12372
12373func (c *ProjectsLocationsDomainmappingsGetCall) doRequest(alt string) (*http.Response, error) {
12374	reqHeaders := make(http.Header)
12375	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
12376	for k, v := range c.header_ {
12377		reqHeaders[k] = v
12378	}
12379	reqHeaders.Set("User-Agent", c.s.userAgent())
12380	if c.ifNoneMatch_ != "" {
12381		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12382	}
12383	var body io.Reader = nil
12384	c.urlParams_.Set("alt", alt)
12385	c.urlParams_.Set("prettyPrint", "false")
12386	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
12387	urls += "?" + c.urlParams_.Encode()
12388	req, err := http.NewRequest("GET", urls, body)
12389	if err != nil {
12390		return nil, err
12391	}
12392	req.Header = reqHeaders
12393	googleapi.Expand(req.URL, map[string]string{
12394		"name": c.name,
12395	})
12396	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12397}
12398
12399// Do executes the "run.projects.locations.domainmappings.get" call.
12400// Exactly one of *DomainMapping or error will be non-nil. Any non-2xx
12401// status code is an error. Response headers are in either
12402// *DomainMapping.ServerResponse.Header or (if a response was returned
12403// at all) in error.(*googleapi.Error).Header. Use
12404// googleapi.IsNotModified to check whether the returned error was
12405// because http.StatusNotModified was returned.
12406func (c *ProjectsLocationsDomainmappingsGetCall) Do(opts ...googleapi.CallOption) (*DomainMapping, error) {
12407	gensupport.SetOptions(c.urlParams_, opts...)
12408	res, err := c.doRequest("json")
12409	if res != nil && res.StatusCode == http.StatusNotModified {
12410		if res.Body != nil {
12411			res.Body.Close()
12412		}
12413		return nil, &googleapi.Error{
12414			Code:   res.StatusCode,
12415			Header: res.Header,
12416		}
12417	}
12418	if err != nil {
12419		return nil, err
12420	}
12421	defer googleapi.CloseBody(res)
12422	if err := googleapi.CheckResponse(res); err != nil {
12423		return nil, err
12424	}
12425	ret := &DomainMapping{
12426		ServerResponse: googleapi.ServerResponse{
12427			Header:         res.Header,
12428			HTTPStatusCode: res.StatusCode,
12429		},
12430	}
12431	target := &ret
12432	if err := gensupport.DecodeResponse(target, res); err != nil {
12433		return nil, err
12434	}
12435	return ret, nil
12436	// {
12437	//   "description": "Get information about a domain mapping.",
12438	//   "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/domainmappings/{domainmappingsId}",
12439	//   "httpMethod": "GET",
12440	//   "id": "run.projects.locations.domainmappings.get",
12441	//   "parameterOrder": [
12442	//     "name"
12443	//   ],
12444	//   "parameters": {
12445	//     "name": {
12446	//       "description": "The name of the domain mapping being retrieved. If needed, replace\n{namespace_id} with the project ID.",
12447	//       "location": "path",
12448	//       "pattern": "^projects/[^/]+/locations/[^/]+/domainmappings/[^/]+$",
12449	//       "required": true,
12450	//       "type": "string"
12451	//     }
12452	//   },
12453	//   "path": "v1/{+name}",
12454	//   "response": {
12455	//     "$ref": "DomainMapping"
12456	//   },
12457	//   "scopes": [
12458	//     "https://www.googleapis.com/auth/cloud-platform"
12459	//   ]
12460	// }
12461
12462}
12463
12464// method id "run.projects.locations.domainmappings.list":
12465
12466type ProjectsLocationsDomainmappingsListCall struct {
12467	s            *APIService
12468	parent       string
12469	urlParams_   gensupport.URLParams
12470	ifNoneMatch_ string
12471	ctx_         context.Context
12472	header_      http.Header
12473}
12474
12475// List: List domain mappings.
12476func (r *ProjectsLocationsDomainmappingsService) List(parent string) *ProjectsLocationsDomainmappingsListCall {
12477	c := &ProjectsLocationsDomainmappingsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12478	c.parent = parent
12479	return c
12480}
12481
12482// Continue sets the optional parameter "continue": Optional encoded
12483// string to continue paging.
12484func (c *ProjectsLocationsDomainmappingsListCall) Continue(continue_ string) *ProjectsLocationsDomainmappingsListCall {
12485	c.urlParams_.Set("continue", continue_)
12486	return c
12487}
12488
12489// FieldSelector sets the optional parameter "fieldSelector": Allows to
12490// filter resources based on a specific value for a field name.
12491// Send this in a query string format. i.e. 'metadata.name%3Dlorem'.
12492// Not currently used by Cloud Run.
12493func (c *ProjectsLocationsDomainmappingsListCall) FieldSelector(fieldSelector string) *ProjectsLocationsDomainmappingsListCall {
12494	c.urlParams_.Set("fieldSelector", fieldSelector)
12495	return c
12496}
12497
12498// IncludeUninitialized sets the optional parameter
12499// "includeUninitialized": Not currently used by Cloud Run.
12500func (c *ProjectsLocationsDomainmappingsListCall) IncludeUninitialized(includeUninitialized bool) *ProjectsLocationsDomainmappingsListCall {
12501	c.urlParams_.Set("includeUninitialized", fmt.Sprint(includeUninitialized))
12502	return c
12503}
12504
12505// LabelSelector sets the optional parameter "labelSelector": Allows to
12506// filter resources based on a label. Supported operations are
12507// =, !=, exists, in, and notIn.
12508func (c *ProjectsLocationsDomainmappingsListCall) LabelSelector(labelSelector string) *ProjectsLocationsDomainmappingsListCall {
12509	c.urlParams_.Set("labelSelector", labelSelector)
12510	return c
12511}
12512
12513// Limit sets the optional parameter "limit": The maximum number of
12514// records that should be returned.
12515func (c *ProjectsLocationsDomainmappingsListCall) Limit(limit int64) *ProjectsLocationsDomainmappingsListCall {
12516	c.urlParams_.Set("limit", fmt.Sprint(limit))
12517	return c
12518}
12519
12520// ResourceVersion sets the optional parameter "resourceVersion": The
12521// baseline resource version from which the list or watch operation
12522// should
12523// start. Not currently used by Cloud Run.
12524func (c *ProjectsLocationsDomainmappingsListCall) ResourceVersion(resourceVersion string) *ProjectsLocationsDomainmappingsListCall {
12525	c.urlParams_.Set("resourceVersion", resourceVersion)
12526	return c
12527}
12528
12529// Watch sets the optional parameter "watch": Flag that indicates that
12530// the client expects to watch this resource as well.
12531// Not currently used by Cloud Run.
12532func (c *ProjectsLocationsDomainmappingsListCall) Watch(watch bool) *ProjectsLocationsDomainmappingsListCall {
12533	c.urlParams_.Set("watch", fmt.Sprint(watch))
12534	return c
12535}
12536
12537// Fields allows partial responses to be retrieved. See
12538// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12539// for more information.
12540func (c *ProjectsLocationsDomainmappingsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDomainmappingsListCall {
12541	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12542	return c
12543}
12544
12545// IfNoneMatch sets the optional parameter which makes the operation
12546// fail if the object's ETag matches the given value. This is useful for
12547// getting updates only after the object has changed since the last
12548// request. Use googleapi.IsNotModified to check whether the response
12549// error from Do is the result of In-None-Match.
12550func (c *ProjectsLocationsDomainmappingsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDomainmappingsListCall {
12551	c.ifNoneMatch_ = entityTag
12552	return c
12553}
12554
12555// Context sets the context to be used in this call's Do method. Any
12556// pending HTTP request will be aborted if the provided context is
12557// canceled.
12558func (c *ProjectsLocationsDomainmappingsListCall) Context(ctx context.Context) *ProjectsLocationsDomainmappingsListCall {
12559	c.ctx_ = ctx
12560	return c
12561}
12562
12563// Header returns an http.Header that can be modified by the caller to
12564// add HTTP headers to the request.
12565func (c *ProjectsLocationsDomainmappingsListCall) Header() http.Header {
12566	if c.header_ == nil {
12567		c.header_ = make(http.Header)
12568	}
12569	return c.header_
12570}
12571
12572func (c *ProjectsLocationsDomainmappingsListCall) doRequest(alt string) (*http.Response, error) {
12573	reqHeaders := make(http.Header)
12574	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
12575	for k, v := range c.header_ {
12576		reqHeaders[k] = v
12577	}
12578	reqHeaders.Set("User-Agent", c.s.userAgent())
12579	if c.ifNoneMatch_ != "" {
12580		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12581	}
12582	var body io.Reader = nil
12583	c.urlParams_.Set("alt", alt)
12584	c.urlParams_.Set("prettyPrint", "false")
12585	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/domainmappings")
12586	urls += "?" + c.urlParams_.Encode()
12587	req, err := http.NewRequest("GET", urls, body)
12588	if err != nil {
12589		return nil, err
12590	}
12591	req.Header = reqHeaders
12592	googleapi.Expand(req.URL, map[string]string{
12593		"parent": c.parent,
12594	})
12595	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12596}
12597
12598// Do executes the "run.projects.locations.domainmappings.list" call.
12599// Exactly one of *ListDomainMappingsResponse or error will be non-nil.
12600// Any non-2xx status code is an error. Response headers are in either
12601// *ListDomainMappingsResponse.ServerResponse.Header or (if a response
12602// was returned at all) in error.(*googleapi.Error).Header. Use
12603// googleapi.IsNotModified to check whether the returned error was
12604// because http.StatusNotModified was returned.
12605func (c *ProjectsLocationsDomainmappingsListCall) Do(opts ...googleapi.CallOption) (*ListDomainMappingsResponse, error) {
12606	gensupport.SetOptions(c.urlParams_, opts...)
12607	res, err := c.doRequest("json")
12608	if res != nil && res.StatusCode == http.StatusNotModified {
12609		if res.Body != nil {
12610			res.Body.Close()
12611		}
12612		return nil, &googleapi.Error{
12613			Code:   res.StatusCode,
12614			Header: res.Header,
12615		}
12616	}
12617	if err != nil {
12618		return nil, err
12619	}
12620	defer googleapi.CloseBody(res)
12621	if err := googleapi.CheckResponse(res); err != nil {
12622		return nil, err
12623	}
12624	ret := &ListDomainMappingsResponse{
12625		ServerResponse: googleapi.ServerResponse{
12626			Header:         res.Header,
12627			HTTPStatusCode: res.StatusCode,
12628		},
12629	}
12630	target := &ret
12631	if err := gensupport.DecodeResponse(target, res); err != nil {
12632		return nil, err
12633	}
12634	return ret, nil
12635	// {
12636	//   "description": "List domain mappings.",
12637	//   "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/domainmappings",
12638	//   "httpMethod": "GET",
12639	//   "id": "run.projects.locations.domainmappings.list",
12640	//   "parameterOrder": [
12641	//     "parent"
12642	//   ],
12643	//   "parameters": {
12644	//     "continue": {
12645	//       "description": "Optional encoded string to continue paging.",
12646	//       "location": "query",
12647	//       "type": "string"
12648	//     },
12649	//     "fieldSelector": {
12650	//       "description": "Allows to filter resources based on a specific value for a field name.\nSend this in a query string format. i.e. 'metadata.name%3Dlorem'.\nNot currently used by Cloud Run.",
12651	//       "location": "query",
12652	//       "type": "string"
12653	//     },
12654	//     "includeUninitialized": {
12655	//       "description": "Not currently used by Cloud Run.",
12656	//       "location": "query",
12657	//       "type": "boolean"
12658	//     },
12659	//     "labelSelector": {
12660	//       "description": "Allows to filter resources based on a label. Supported operations are\n=, !=, exists, in, and notIn.",
12661	//       "location": "query",
12662	//       "type": "string"
12663	//     },
12664	//     "limit": {
12665	//       "description": "The maximum number of records that should be returned.",
12666	//       "format": "int32",
12667	//       "location": "query",
12668	//       "type": "integer"
12669	//     },
12670	//     "parent": {
12671	//       "description": "The project ID or project number from which the domain mappings should be\nlisted.",
12672	//       "location": "path",
12673	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
12674	//       "required": true,
12675	//       "type": "string"
12676	//     },
12677	//     "resourceVersion": {
12678	//       "description": "The baseline resource version from which the list or watch operation should\nstart. Not currently used by Cloud Run.",
12679	//       "location": "query",
12680	//       "type": "string"
12681	//     },
12682	//     "watch": {
12683	//       "description": "Flag that indicates that the client expects to watch this resource as well.\nNot currently used by Cloud Run.",
12684	//       "location": "query",
12685	//       "type": "boolean"
12686	//     }
12687	//   },
12688	//   "path": "v1/{+parent}/domainmappings",
12689	//   "response": {
12690	//     "$ref": "ListDomainMappingsResponse"
12691	//   },
12692	//   "scopes": [
12693	//     "https://www.googleapis.com/auth/cloud-platform"
12694	//   ]
12695	// }
12696
12697}
12698
12699// method id "run.projects.locations.domainmappings.replaceDomainMapping":
12700
12701type ProjectsLocationsDomainmappingsReplaceDomainMappingCall struct {
12702	s             *APIService
12703	name          string
12704	domainmapping *DomainMapping
12705	urlParams_    gensupport.URLParams
12706	ctx_          context.Context
12707	header_       http.Header
12708}
12709
12710// ReplaceDomainMapping: Replace a domain mapping.
12711//
12712// Only the spec and metadata labels and annotations are modifiable.
12713// After
12714// the Update request, Cloud Run will work to make the 'status'
12715// match the requested 'spec'.
12716//
12717// May provide metadata.resourceVersion to enforce update from last read
12718// for
12719// optimistic concurrency control.
12720func (r *ProjectsLocationsDomainmappingsService) ReplaceDomainMapping(name string, domainmapping *DomainMapping) *ProjectsLocationsDomainmappingsReplaceDomainMappingCall {
12721	c := &ProjectsLocationsDomainmappingsReplaceDomainMappingCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12722	c.name = name
12723	c.domainmapping = domainmapping
12724	return c
12725}
12726
12727// Fields allows partial responses to be retrieved. See
12728// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12729// for more information.
12730func (c *ProjectsLocationsDomainmappingsReplaceDomainMappingCall) Fields(s ...googleapi.Field) *ProjectsLocationsDomainmappingsReplaceDomainMappingCall {
12731	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12732	return c
12733}
12734
12735// Context sets the context to be used in this call's Do method. Any
12736// pending HTTP request will be aborted if the provided context is
12737// canceled.
12738func (c *ProjectsLocationsDomainmappingsReplaceDomainMappingCall) Context(ctx context.Context) *ProjectsLocationsDomainmappingsReplaceDomainMappingCall {
12739	c.ctx_ = ctx
12740	return c
12741}
12742
12743// Header returns an http.Header that can be modified by the caller to
12744// add HTTP headers to the request.
12745func (c *ProjectsLocationsDomainmappingsReplaceDomainMappingCall) Header() http.Header {
12746	if c.header_ == nil {
12747		c.header_ = make(http.Header)
12748	}
12749	return c.header_
12750}
12751
12752func (c *ProjectsLocationsDomainmappingsReplaceDomainMappingCall) doRequest(alt string) (*http.Response, error) {
12753	reqHeaders := make(http.Header)
12754	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
12755	for k, v := range c.header_ {
12756		reqHeaders[k] = v
12757	}
12758	reqHeaders.Set("User-Agent", c.s.userAgent())
12759	var body io.Reader = nil
12760	body, err := googleapi.WithoutDataWrapper.JSONReader(c.domainmapping)
12761	if err != nil {
12762		return nil, err
12763	}
12764	reqHeaders.Set("Content-Type", "application/json")
12765	c.urlParams_.Set("alt", alt)
12766	c.urlParams_.Set("prettyPrint", "false")
12767	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
12768	urls += "?" + c.urlParams_.Encode()
12769	req, err := http.NewRequest("PUT", urls, body)
12770	if err != nil {
12771		return nil, err
12772	}
12773	req.Header = reqHeaders
12774	googleapi.Expand(req.URL, map[string]string{
12775		"name": c.name,
12776	})
12777	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12778}
12779
12780// Do executes the "run.projects.locations.domainmappings.replaceDomainMapping" call.
12781// Exactly one of *DomainMapping or error will be non-nil. Any non-2xx
12782// status code is an error. Response headers are in either
12783// *DomainMapping.ServerResponse.Header or (if a response was returned
12784// at all) in error.(*googleapi.Error).Header. Use
12785// googleapi.IsNotModified to check whether the returned error was
12786// because http.StatusNotModified was returned.
12787func (c *ProjectsLocationsDomainmappingsReplaceDomainMappingCall) Do(opts ...googleapi.CallOption) (*DomainMapping, error) {
12788	gensupport.SetOptions(c.urlParams_, opts...)
12789	res, err := c.doRequest("json")
12790	if res != nil && res.StatusCode == http.StatusNotModified {
12791		if res.Body != nil {
12792			res.Body.Close()
12793		}
12794		return nil, &googleapi.Error{
12795			Code:   res.StatusCode,
12796			Header: res.Header,
12797		}
12798	}
12799	if err != nil {
12800		return nil, err
12801	}
12802	defer googleapi.CloseBody(res)
12803	if err := googleapi.CheckResponse(res); err != nil {
12804		return nil, err
12805	}
12806	ret := &DomainMapping{
12807		ServerResponse: googleapi.ServerResponse{
12808			Header:         res.Header,
12809			HTTPStatusCode: res.StatusCode,
12810		},
12811	}
12812	target := &ret
12813	if err := gensupport.DecodeResponse(target, res); err != nil {
12814		return nil, err
12815	}
12816	return ret, nil
12817	// {
12818	//   "description": "Replace a domain mapping.\n\nOnly the spec and metadata labels and annotations are modifiable. After\nthe Update request, Cloud Run will work to make the 'status'\nmatch the requested 'spec'.\n\nMay provide metadata.resourceVersion to enforce update from last read for\noptimistic concurrency control.",
12819	//   "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/domainmappings/{domainmappingsId}",
12820	//   "httpMethod": "PUT",
12821	//   "id": "run.projects.locations.domainmappings.replaceDomainMapping",
12822	//   "parameterOrder": [
12823	//     "name"
12824	//   ],
12825	//   "parameters": {
12826	//     "name": {
12827	//       "description": "The name of the domain mapping being retrieved. If needed, replace\n{namespace_id} with the project ID.",
12828	//       "location": "path",
12829	//       "pattern": "^projects/[^/]+/locations/[^/]+/domainmappings/[^/]+$",
12830	//       "required": true,
12831	//       "type": "string"
12832	//     }
12833	//   },
12834	//   "path": "v1/{+name}",
12835	//   "request": {
12836	//     "$ref": "DomainMapping"
12837	//   },
12838	//   "response": {
12839	//     "$ref": "DomainMapping"
12840	//   },
12841	//   "scopes": [
12842	//     "https://www.googleapis.com/auth/cloud-platform"
12843	//   ]
12844	// }
12845
12846}
12847
12848// method id "run.projects.locations.revisions.delete":
12849
12850type ProjectsLocationsRevisionsDeleteCall struct {
12851	s          *APIService
12852	name       string
12853	urlParams_ gensupport.URLParams
12854	ctx_       context.Context
12855	header_    http.Header
12856}
12857
12858// Delete: Delete a revision.
12859func (r *ProjectsLocationsRevisionsService) Delete(name string) *ProjectsLocationsRevisionsDeleteCall {
12860	c := &ProjectsLocationsRevisionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12861	c.name = name
12862	return c
12863}
12864
12865// ApiVersion sets the optional parameter "apiVersion": Cloud Run
12866// currently ignores this parameter.
12867func (c *ProjectsLocationsRevisionsDeleteCall) ApiVersion(apiVersion string) *ProjectsLocationsRevisionsDeleteCall {
12868	c.urlParams_.Set("apiVersion", apiVersion)
12869	return c
12870}
12871
12872// Kind sets the optional parameter "kind": Cloud Run currently ignores
12873// this parameter.
12874func (c *ProjectsLocationsRevisionsDeleteCall) Kind(kind string) *ProjectsLocationsRevisionsDeleteCall {
12875	c.urlParams_.Set("kind", kind)
12876	return c
12877}
12878
12879// PropagationPolicy sets the optional parameter "propagationPolicy":
12880// Specifies the propagation policy of delete. Cloud Run currently
12881// ignores
12882// this setting, and deletes in the background. Please
12883// see
12884// kubernetes.io/docs/concepts/workloads/controllers/garbage-collecti
12885// on/ for
12886// more information.
12887func (c *ProjectsLocationsRevisionsDeleteCall) PropagationPolicy(propagationPolicy string) *ProjectsLocationsRevisionsDeleteCall {
12888	c.urlParams_.Set("propagationPolicy", propagationPolicy)
12889	return c
12890}
12891
12892// Fields allows partial responses to be retrieved. See
12893// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12894// for more information.
12895func (c *ProjectsLocationsRevisionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsRevisionsDeleteCall {
12896	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12897	return c
12898}
12899
12900// Context sets the context to be used in this call's Do method. Any
12901// pending HTTP request will be aborted if the provided context is
12902// canceled.
12903func (c *ProjectsLocationsRevisionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsRevisionsDeleteCall {
12904	c.ctx_ = ctx
12905	return c
12906}
12907
12908// Header returns an http.Header that can be modified by the caller to
12909// add HTTP headers to the request.
12910func (c *ProjectsLocationsRevisionsDeleteCall) Header() http.Header {
12911	if c.header_ == nil {
12912		c.header_ = make(http.Header)
12913	}
12914	return c.header_
12915}
12916
12917func (c *ProjectsLocationsRevisionsDeleteCall) doRequest(alt string) (*http.Response, error) {
12918	reqHeaders := make(http.Header)
12919	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
12920	for k, v := range c.header_ {
12921		reqHeaders[k] = v
12922	}
12923	reqHeaders.Set("User-Agent", c.s.userAgent())
12924	var body io.Reader = nil
12925	c.urlParams_.Set("alt", alt)
12926	c.urlParams_.Set("prettyPrint", "false")
12927	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
12928	urls += "?" + c.urlParams_.Encode()
12929	req, err := http.NewRequest("DELETE", urls, body)
12930	if err != nil {
12931		return nil, err
12932	}
12933	req.Header = reqHeaders
12934	googleapi.Expand(req.URL, map[string]string{
12935		"name": c.name,
12936	})
12937	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12938}
12939
12940// Do executes the "run.projects.locations.revisions.delete" call.
12941// Exactly one of *Status or error will be non-nil. Any non-2xx status
12942// code is an error. Response headers are in either
12943// *Status.ServerResponse.Header or (if a response was returned at all)
12944// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
12945// check whether the returned error was because http.StatusNotModified
12946// was returned.
12947func (c *ProjectsLocationsRevisionsDeleteCall) Do(opts ...googleapi.CallOption) (*Status, error) {
12948	gensupport.SetOptions(c.urlParams_, opts...)
12949	res, err := c.doRequest("json")
12950	if res != nil && res.StatusCode == http.StatusNotModified {
12951		if res.Body != nil {
12952			res.Body.Close()
12953		}
12954		return nil, &googleapi.Error{
12955			Code:   res.StatusCode,
12956			Header: res.Header,
12957		}
12958	}
12959	if err != nil {
12960		return nil, err
12961	}
12962	defer googleapi.CloseBody(res)
12963	if err := googleapi.CheckResponse(res); err != nil {
12964		return nil, err
12965	}
12966	ret := &Status{
12967		ServerResponse: googleapi.ServerResponse{
12968			Header:         res.Header,
12969			HTTPStatusCode: res.StatusCode,
12970		},
12971	}
12972	target := &ret
12973	if err := gensupport.DecodeResponse(target, res); err != nil {
12974		return nil, err
12975	}
12976	return ret, nil
12977	// {
12978	//   "description": "Delete a revision.",
12979	//   "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/revisions/{revisionsId}",
12980	//   "httpMethod": "DELETE",
12981	//   "id": "run.projects.locations.revisions.delete",
12982	//   "parameterOrder": [
12983	//     "name"
12984	//   ],
12985	//   "parameters": {
12986	//     "apiVersion": {
12987	//       "description": "Cloud Run currently ignores this parameter.",
12988	//       "location": "query",
12989	//       "type": "string"
12990	//     },
12991	//     "kind": {
12992	//       "description": "Cloud Run currently ignores this parameter.",
12993	//       "location": "query",
12994	//       "type": "string"
12995	//     },
12996	//     "name": {
12997	//       "description": "The name of the revision being deleted. If needed, replace\n{namespace_id} with the project ID.",
12998	//       "location": "path",
12999	//       "pattern": "^projects/[^/]+/locations/[^/]+/revisions/[^/]+$",
13000	//       "required": true,
13001	//       "type": "string"
13002	//     },
13003	//     "propagationPolicy": {
13004	//       "description": "Specifies the propagation policy of delete. Cloud Run currently ignores\nthis setting, and deletes in the background. Please see\nkubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for\nmore information.",
13005	//       "location": "query",
13006	//       "type": "string"
13007	//     }
13008	//   },
13009	//   "path": "v1/{+name}",
13010	//   "response": {
13011	//     "$ref": "Status"
13012	//   },
13013	//   "scopes": [
13014	//     "https://www.googleapis.com/auth/cloud-platform"
13015	//   ]
13016	// }
13017
13018}
13019
13020// method id "run.projects.locations.revisions.get":
13021
13022type ProjectsLocationsRevisionsGetCall struct {
13023	s            *APIService
13024	name         string
13025	urlParams_   gensupport.URLParams
13026	ifNoneMatch_ string
13027	ctx_         context.Context
13028	header_      http.Header
13029}
13030
13031// Get: Get information about a revision.
13032func (r *ProjectsLocationsRevisionsService) Get(name string) *ProjectsLocationsRevisionsGetCall {
13033	c := &ProjectsLocationsRevisionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13034	c.name = name
13035	return c
13036}
13037
13038// Fields allows partial responses to be retrieved. See
13039// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13040// for more information.
13041func (c *ProjectsLocationsRevisionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRevisionsGetCall {
13042	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13043	return c
13044}
13045
13046// IfNoneMatch sets the optional parameter which makes the operation
13047// fail if the object's ETag matches the given value. This is useful for
13048// getting updates only after the object has changed since the last
13049// request. Use googleapi.IsNotModified to check whether the response
13050// error from Do is the result of In-None-Match.
13051func (c *ProjectsLocationsRevisionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRevisionsGetCall {
13052	c.ifNoneMatch_ = entityTag
13053	return c
13054}
13055
13056// Context sets the context to be used in this call's Do method. Any
13057// pending HTTP request will be aborted if the provided context is
13058// canceled.
13059func (c *ProjectsLocationsRevisionsGetCall) Context(ctx context.Context) *ProjectsLocationsRevisionsGetCall {
13060	c.ctx_ = ctx
13061	return c
13062}
13063
13064// Header returns an http.Header that can be modified by the caller to
13065// add HTTP headers to the request.
13066func (c *ProjectsLocationsRevisionsGetCall) Header() http.Header {
13067	if c.header_ == nil {
13068		c.header_ = make(http.Header)
13069	}
13070	return c.header_
13071}
13072
13073func (c *ProjectsLocationsRevisionsGetCall) doRequest(alt string) (*http.Response, error) {
13074	reqHeaders := make(http.Header)
13075	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
13076	for k, v := range c.header_ {
13077		reqHeaders[k] = v
13078	}
13079	reqHeaders.Set("User-Agent", c.s.userAgent())
13080	if c.ifNoneMatch_ != "" {
13081		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13082	}
13083	var body io.Reader = nil
13084	c.urlParams_.Set("alt", alt)
13085	c.urlParams_.Set("prettyPrint", "false")
13086	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
13087	urls += "?" + c.urlParams_.Encode()
13088	req, err := http.NewRequest("GET", urls, body)
13089	if err != nil {
13090		return nil, err
13091	}
13092	req.Header = reqHeaders
13093	googleapi.Expand(req.URL, map[string]string{
13094		"name": c.name,
13095	})
13096	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13097}
13098
13099// Do executes the "run.projects.locations.revisions.get" call.
13100// Exactly one of *Revision or error will be non-nil. Any non-2xx status
13101// code is an error. Response headers are in either
13102// *Revision.ServerResponse.Header or (if a response was returned at
13103// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
13104// to check whether the returned error was because
13105// http.StatusNotModified was returned.
13106func (c *ProjectsLocationsRevisionsGetCall) Do(opts ...googleapi.CallOption) (*Revision, error) {
13107	gensupport.SetOptions(c.urlParams_, opts...)
13108	res, err := c.doRequest("json")
13109	if res != nil && res.StatusCode == http.StatusNotModified {
13110		if res.Body != nil {
13111			res.Body.Close()
13112		}
13113		return nil, &googleapi.Error{
13114			Code:   res.StatusCode,
13115			Header: res.Header,
13116		}
13117	}
13118	if err != nil {
13119		return nil, err
13120	}
13121	defer googleapi.CloseBody(res)
13122	if err := googleapi.CheckResponse(res); err != nil {
13123		return nil, err
13124	}
13125	ret := &Revision{
13126		ServerResponse: googleapi.ServerResponse{
13127			Header:         res.Header,
13128			HTTPStatusCode: res.StatusCode,
13129		},
13130	}
13131	target := &ret
13132	if err := gensupport.DecodeResponse(target, res); err != nil {
13133		return nil, err
13134	}
13135	return ret, nil
13136	// {
13137	//   "description": "Get information about a revision.",
13138	//   "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/revisions/{revisionsId}",
13139	//   "httpMethod": "GET",
13140	//   "id": "run.projects.locations.revisions.get",
13141	//   "parameterOrder": [
13142	//     "name"
13143	//   ],
13144	//   "parameters": {
13145	//     "name": {
13146	//       "description": "The name of the revision being retrieved. If needed, replace\n{namespace_id} with the project ID.",
13147	//       "location": "path",
13148	//       "pattern": "^projects/[^/]+/locations/[^/]+/revisions/[^/]+$",
13149	//       "required": true,
13150	//       "type": "string"
13151	//     }
13152	//   },
13153	//   "path": "v1/{+name}",
13154	//   "response": {
13155	//     "$ref": "Revision"
13156	//   },
13157	//   "scopes": [
13158	//     "https://www.googleapis.com/auth/cloud-platform"
13159	//   ]
13160	// }
13161
13162}
13163
13164// method id "run.projects.locations.revisions.list":
13165
13166type ProjectsLocationsRevisionsListCall struct {
13167	s            *APIService
13168	parent       string
13169	urlParams_   gensupport.URLParams
13170	ifNoneMatch_ string
13171	ctx_         context.Context
13172	header_      http.Header
13173}
13174
13175// List: List revisions.
13176func (r *ProjectsLocationsRevisionsService) List(parent string) *ProjectsLocationsRevisionsListCall {
13177	c := &ProjectsLocationsRevisionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13178	c.parent = parent
13179	return c
13180}
13181
13182// Continue sets the optional parameter "continue": Optional encoded
13183// string to continue paging.
13184func (c *ProjectsLocationsRevisionsListCall) Continue(continue_ string) *ProjectsLocationsRevisionsListCall {
13185	c.urlParams_.Set("continue", continue_)
13186	return c
13187}
13188
13189// FieldSelector sets the optional parameter "fieldSelector": Allows to
13190// filter resources based on a specific value for a field name.
13191// Send this in a query string format. i.e. 'metadata.name%3Dlorem'.
13192// Not currently used by Cloud Run.
13193func (c *ProjectsLocationsRevisionsListCall) FieldSelector(fieldSelector string) *ProjectsLocationsRevisionsListCall {
13194	c.urlParams_.Set("fieldSelector", fieldSelector)
13195	return c
13196}
13197
13198// IncludeUninitialized sets the optional parameter
13199// "includeUninitialized": Not currently used by Cloud Run.
13200func (c *ProjectsLocationsRevisionsListCall) IncludeUninitialized(includeUninitialized bool) *ProjectsLocationsRevisionsListCall {
13201	c.urlParams_.Set("includeUninitialized", fmt.Sprint(includeUninitialized))
13202	return c
13203}
13204
13205// LabelSelector sets the optional parameter "labelSelector": Allows to
13206// filter resources based on a label. Supported operations are
13207// =, !=, exists, in, and notIn.
13208func (c *ProjectsLocationsRevisionsListCall) LabelSelector(labelSelector string) *ProjectsLocationsRevisionsListCall {
13209	c.urlParams_.Set("labelSelector", labelSelector)
13210	return c
13211}
13212
13213// Limit sets the optional parameter "limit": The maximum number of
13214// records that should be returned.
13215func (c *ProjectsLocationsRevisionsListCall) Limit(limit int64) *ProjectsLocationsRevisionsListCall {
13216	c.urlParams_.Set("limit", fmt.Sprint(limit))
13217	return c
13218}
13219
13220// ResourceVersion sets the optional parameter "resourceVersion": The
13221// baseline resource version from which the list or watch operation
13222// should
13223// start. Not currently used by Cloud Run.
13224func (c *ProjectsLocationsRevisionsListCall) ResourceVersion(resourceVersion string) *ProjectsLocationsRevisionsListCall {
13225	c.urlParams_.Set("resourceVersion", resourceVersion)
13226	return c
13227}
13228
13229// Watch sets the optional parameter "watch": Flag that indicates that
13230// the client expects to watch this resource as well.
13231// Not currently used by Cloud Run.
13232func (c *ProjectsLocationsRevisionsListCall) Watch(watch bool) *ProjectsLocationsRevisionsListCall {
13233	c.urlParams_.Set("watch", fmt.Sprint(watch))
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 *ProjectsLocationsRevisionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRevisionsListCall {
13241	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13242	return c
13243}
13244
13245// IfNoneMatch sets the optional parameter which makes the operation
13246// fail if the object's ETag matches the given value. This is useful for
13247// getting updates only after the object has changed since the last
13248// request. Use googleapi.IsNotModified to check whether the response
13249// error from Do is the result of In-None-Match.
13250func (c *ProjectsLocationsRevisionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRevisionsListCall {
13251	c.ifNoneMatch_ = entityTag
13252	return c
13253}
13254
13255// Context sets the context to be used in this call's Do method. Any
13256// pending HTTP request will be aborted if the provided context is
13257// canceled.
13258func (c *ProjectsLocationsRevisionsListCall) Context(ctx context.Context) *ProjectsLocationsRevisionsListCall {
13259	c.ctx_ = ctx
13260	return c
13261}
13262
13263// Header returns an http.Header that can be modified by the caller to
13264// add HTTP headers to the request.
13265func (c *ProjectsLocationsRevisionsListCall) Header() http.Header {
13266	if c.header_ == nil {
13267		c.header_ = make(http.Header)
13268	}
13269	return c.header_
13270}
13271
13272func (c *ProjectsLocationsRevisionsListCall) doRequest(alt string) (*http.Response, error) {
13273	reqHeaders := make(http.Header)
13274	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
13275	for k, v := range c.header_ {
13276		reqHeaders[k] = v
13277	}
13278	reqHeaders.Set("User-Agent", c.s.userAgent())
13279	if c.ifNoneMatch_ != "" {
13280		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13281	}
13282	var body io.Reader = nil
13283	c.urlParams_.Set("alt", alt)
13284	c.urlParams_.Set("prettyPrint", "false")
13285	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/revisions")
13286	urls += "?" + c.urlParams_.Encode()
13287	req, err := http.NewRequest("GET", urls, body)
13288	if err != nil {
13289		return nil, err
13290	}
13291	req.Header = reqHeaders
13292	googleapi.Expand(req.URL, map[string]string{
13293		"parent": c.parent,
13294	})
13295	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13296}
13297
13298// Do executes the "run.projects.locations.revisions.list" call.
13299// Exactly one of *ListRevisionsResponse or error will be non-nil. Any
13300// non-2xx status code is an error. Response headers are in either
13301// *ListRevisionsResponse.ServerResponse.Header or (if a response was
13302// returned at all) in error.(*googleapi.Error).Header. Use
13303// googleapi.IsNotModified to check whether the returned error was
13304// because http.StatusNotModified was returned.
13305func (c *ProjectsLocationsRevisionsListCall) Do(opts ...googleapi.CallOption) (*ListRevisionsResponse, error) {
13306	gensupport.SetOptions(c.urlParams_, opts...)
13307	res, err := c.doRequest("json")
13308	if res != nil && res.StatusCode == http.StatusNotModified {
13309		if res.Body != nil {
13310			res.Body.Close()
13311		}
13312		return nil, &googleapi.Error{
13313			Code:   res.StatusCode,
13314			Header: res.Header,
13315		}
13316	}
13317	if err != nil {
13318		return nil, err
13319	}
13320	defer googleapi.CloseBody(res)
13321	if err := googleapi.CheckResponse(res); err != nil {
13322		return nil, err
13323	}
13324	ret := &ListRevisionsResponse{
13325		ServerResponse: googleapi.ServerResponse{
13326			Header:         res.Header,
13327			HTTPStatusCode: res.StatusCode,
13328		},
13329	}
13330	target := &ret
13331	if err := gensupport.DecodeResponse(target, res); err != nil {
13332		return nil, err
13333	}
13334	return ret, nil
13335	// {
13336	//   "description": "List revisions.",
13337	//   "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/revisions",
13338	//   "httpMethod": "GET",
13339	//   "id": "run.projects.locations.revisions.list",
13340	//   "parameterOrder": [
13341	//     "parent"
13342	//   ],
13343	//   "parameters": {
13344	//     "continue": {
13345	//       "description": "Optional encoded string to continue paging.",
13346	//       "location": "query",
13347	//       "type": "string"
13348	//     },
13349	//     "fieldSelector": {
13350	//       "description": "Allows to filter resources based on a specific value for a field name.\nSend this in a query string format. i.e. 'metadata.name%3Dlorem'.\nNot currently used by Cloud Run.",
13351	//       "location": "query",
13352	//       "type": "string"
13353	//     },
13354	//     "includeUninitialized": {
13355	//       "description": "Not currently used by Cloud Run.",
13356	//       "location": "query",
13357	//       "type": "boolean"
13358	//     },
13359	//     "labelSelector": {
13360	//       "description": "Allows to filter resources based on a label. Supported operations are\n=, !=, exists, in, and notIn.",
13361	//       "location": "query",
13362	//       "type": "string"
13363	//     },
13364	//     "limit": {
13365	//       "description": "The maximum number of records that should be returned.",
13366	//       "format": "int32",
13367	//       "location": "query",
13368	//       "type": "integer"
13369	//     },
13370	//     "parent": {
13371	//       "description": "The project ID or project number from which the revisions should be listed.",
13372	//       "location": "path",
13373	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
13374	//       "required": true,
13375	//       "type": "string"
13376	//     },
13377	//     "resourceVersion": {
13378	//       "description": "The baseline resource version from which the list or watch operation should\nstart. Not currently used by Cloud Run.",
13379	//       "location": "query",
13380	//       "type": "string"
13381	//     },
13382	//     "watch": {
13383	//       "description": "Flag that indicates that the client expects to watch this resource as well.\nNot currently used by Cloud Run.",
13384	//       "location": "query",
13385	//       "type": "boolean"
13386	//     }
13387	//   },
13388	//   "path": "v1/{+parent}/revisions",
13389	//   "response": {
13390	//     "$ref": "ListRevisionsResponse"
13391	//   },
13392	//   "scopes": [
13393	//     "https://www.googleapis.com/auth/cloud-platform"
13394	//   ]
13395	// }
13396
13397}
13398
13399// method id "run.projects.locations.routes.create":
13400
13401type ProjectsLocationsRoutesCreateCall struct {
13402	s          *APIService
13403	parent     string
13404	route      *Route
13405	urlParams_ gensupport.URLParams
13406	ctx_       context.Context
13407	header_    http.Header
13408}
13409
13410// Create: Create a route.
13411func (r *ProjectsLocationsRoutesService) Create(parent string, route *Route) *ProjectsLocationsRoutesCreateCall {
13412	c := &ProjectsLocationsRoutesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13413	c.parent = parent
13414	c.route = route
13415	return c
13416}
13417
13418// Fields allows partial responses to be retrieved. See
13419// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13420// for more information.
13421func (c *ProjectsLocationsRoutesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsRoutesCreateCall {
13422	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13423	return c
13424}
13425
13426// Context sets the context to be used in this call's Do method. Any
13427// pending HTTP request will be aborted if the provided context is
13428// canceled.
13429func (c *ProjectsLocationsRoutesCreateCall) Context(ctx context.Context) *ProjectsLocationsRoutesCreateCall {
13430	c.ctx_ = ctx
13431	return c
13432}
13433
13434// Header returns an http.Header that can be modified by the caller to
13435// add HTTP headers to the request.
13436func (c *ProjectsLocationsRoutesCreateCall) Header() http.Header {
13437	if c.header_ == nil {
13438		c.header_ = make(http.Header)
13439	}
13440	return c.header_
13441}
13442
13443func (c *ProjectsLocationsRoutesCreateCall) doRequest(alt string) (*http.Response, error) {
13444	reqHeaders := make(http.Header)
13445	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
13446	for k, v := range c.header_ {
13447		reqHeaders[k] = v
13448	}
13449	reqHeaders.Set("User-Agent", c.s.userAgent())
13450	var body io.Reader = nil
13451	body, err := googleapi.WithoutDataWrapper.JSONReader(c.route)
13452	if err != nil {
13453		return nil, err
13454	}
13455	reqHeaders.Set("Content-Type", "application/json")
13456	c.urlParams_.Set("alt", alt)
13457	c.urlParams_.Set("prettyPrint", "false")
13458	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/routes")
13459	urls += "?" + c.urlParams_.Encode()
13460	req, err := http.NewRequest("POST", urls, body)
13461	if err != nil {
13462		return nil, err
13463	}
13464	req.Header = reqHeaders
13465	googleapi.Expand(req.URL, map[string]string{
13466		"parent": c.parent,
13467	})
13468	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13469}
13470
13471// Do executes the "run.projects.locations.routes.create" call.
13472// Exactly one of *Route or error will be non-nil. Any non-2xx status
13473// code is an error. Response headers are in either
13474// *Route.ServerResponse.Header or (if a response was returned at all)
13475// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
13476// check whether the returned error was because http.StatusNotModified
13477// was returned.
13478func (c *ProjectsLocationsRoutesCreateCall) Do(opts ...googleapi.CallOption) (*Route, error) {
13479	gensupport.SetOptions(c.urlParams_, opts...)
13480	res, err := c.doRequest("json")
13481	if res != nil && res.StatusCode == http.StatusNotModified {
13482		if res.Body != nil {
13483			res.Body.Close()
13484		}
13485		return nil, &googleapi.Error{
13486			Code:   res.StatusCode,
13487			Header: res.Header,
13488		}
13489	}
13490	if err != nil {
13491		return nil, err
13492	}
13493	defer googleapi.CloseBody(res)
13494	if err := googleapi.CheckResponse(res); err != nil {
13495		return nil, err
13496	}
13497	ret := &Route{
13498		ServerResponse: googleapi.ServerResponse{
13499			Header:         res.Header,
13500			HTTPStatusCode: res.StatusCode,
13501		},
13502	}
13503	target := &ret
13504	if err := gensupport.DecodeResponse(target, res); err != nil {
13505		return nil, err
13506	}
13507	return ret, nil
13508	// {
13509	//   "description": "Create a route.",
13510	//   "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/routes",
13511	//   "httpMethod": "POST",
13512	//   "id": "run.projects.locations.routes.create",
13513	//   "parameterOrder": [
13514	//     "parent"
13515	//   ],
13516	//   "parameters": {
13517	//     "parent": {
13518	//       "description": "The project ID or project number in which this route should be created.",
13519	//       "location": "path",
13520	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
13521	//       "required": true,
13522	//       "type": "string"
13523	//     }
13524	//   },
13525	//   "path": "v1/{+parent}/routes",
13526	//   "request": {
13527	//     "$ref": "Route"
13528	//   },
13529	//   "response": {
13530	//     "$ref": "Route"
13531	//   },
13532	//   "scopes": [
13533	//     "https://www.googleapis.com/auth/cloud-platform"
13534	//   ]
13535	// }
13536
13537}
13538
13539// method id "run.projects.locations.routes.delete":
13540
13541type ProjectsLocationsRoutesDeleteCall struct {
13542	s          *APIService
13543	name       string
13544	urlParams_ gensupport.URLParams
13545	ctx_       context.Context
13546	header_    http.Header
13547}
13548
13549// Delete: Delete a route.
13550// This will cause the route to stop serving traffic.
13551func (r *ProjectsLocationsRoutesService) Delete(name string) *ProjectsLocationsRoutesDeleteCall {
13552	c := &ProjectsLocationsRoutesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13553	c.name = name
13554	return c
13555}
13556
13557// ApiVersion sets the optional parameter "apiVersion": Cloud Run
13558// currently ignores this parameter.
13559func (c *ProjectsLocationsRoutesDeleteCall) ApiVersion(apiVersion string) *ProjectsLocationsRoutesDeleteCall {
13560	c.urlParams_.Set("apiVersion", apiVersion)
13561	return c
13562}
13563
13564// Kind sets the optional parameter "kind": Cloud Run currently ignores
13565// this parameter.
13566func (c *ProjectsLocationsRoutesDeleteCall) Kind(kind string) *ProjectsLocationsRoutesDeleteCall {
13567	c.urlParams_.Set("kind", kind)
13568	return c
13569}
13570
13571// PropagationPolicy sets the optional parameter "propagationPolicy":
13572// Specifies the propagation policy of delete. Cloud Run currently
13573// ignores
13574// this setting, and deletes in the background. Please
13575// see
13576// kubernetes.io/docs/concepts/workloads/controllers/garbage-collecti
13577// on/ for
13578// more information.
13579func (c *ProjectsLocationsRoutesDeleteCall) PropagationPolicy(propagationPolicy string) *ProjectsLocationsRoutesDeleteCall {
13580	c.urlParams_.Set("propagationPolicy", propagationPolicy)
13581	return c
13582}
13583
13584// Fields allows partial responses to be retrieved. See
13585// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13586// for more information.
13587func (c *ProjectsLocationsRoutesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsRoutesDeleteCall {
13588	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13589	return c
13590}
13591
13592// Context sets the context to be used in this call's Do method. Any
13593// pending HTTP request will be aborted if the provided context is
13594// canceled.
13595func (c *ProjectsLocationsRoutesDeleteCall) Context(ctx context.Context) *ProjectsLocationsRoutesDeleteCall {
13596	c.ctx_ = ctx
13597	return c
13598}
13599
13600// Header returns an http.Header that can be modified by the caller to
13601// add HTTP headers to the request.
13602func (c *ProjectsLocationsRoutesDeleteCall) Header() http.Header {
13603	if c.header_ == nil {
13604		c.header_ = make(http.Header)
13605	}
13606	return c.header_
13607}
13608
13609func (c *ProjectsLocationsRoutesDeleteCall) doRequest(alt string) (*http.Response, error) {
13610	reqHeaders := make(http.Header)
13611	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
13612	for k, v := range c.header_ {
13613		reqHeaders[k] = v
13614	}
13615	reqHeaders.Set("User-Agent", c.s.userAgent())
13616	var body io.Reader = nil
13617	c.urlParams_.Set("alt", alt)
13618	c.urlParams_.Set("prettyPrint", "false")
13619	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
13620	urls += "?" + c.urlParams_.Encode()
13621	req, err := http.NewRequest("DELETE", urls, body)
13622	if err != nil {
13623		return nil, err
13624	}
13625	req.Header = reqHeaders
13626	googleapi.Expand(req.URL, map[string]string{
13627		"name": c.name,
13628	})
13629	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13630}
13631
13632// Do executes the "run.projects.locations.routes.delete" call.
13633// Exactly one of *Status or error will be non-nil. Any non-2xx status
13634// code is an error. Response headers are in either
13635// *Status.ServerResponse.Header or (if a response was returned at all)
13636// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
13637// check whether the returned error was because http.StatusNotModified
13638// was returned.
13639func (c *ProjectsLocationsRoutesDeleteCall) Do(opts ...googleapi.CallOption) (*Status, error) {
13640	gensupport.SetOptions(c.urlParams_, opts...)
13641	res, err := c.doRequest("json")
13642	if res != nil && res.StatusCode == http.StatusNotModified {
13643		if res.Body != nil {
13644			res.Body.Close()
13645		}
13646		return nil, &googleapi.Error{
13647			Code:   res.StatusCode,
13648			Header: res.Header,
13649		}
13650	}
13651	if err != nil {
13652		return nil, err
13653	}
13654	defer googleapi.CloseBody(res)
13655	if err := googleapi.CheckResponse(res); err != nil {
13656		return nil, err
13657	}
13658	ret := &Status{
13659		ServerResponse: googleapi.ServerResponse{
13660			Header:         res.Header,
13661			HTTPStatusCode: res.StatusCode,
13662		},
13663	}
13664	target := &ret
13665	if err := gensupport.DecodeResponse(target, res); err != nil {
13666		return nil, err
13667	}
13668	return ret, nil
13669	// {
13670	//   "description": "Delete a route.\nThis will cause the route to stop serving traffic.",
13671	//   "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/routes/{routesId}",
13672	//   "httpMethod": "DELETE",
13673	//   "id": "run.projects.locations.routes.delete",
13674	//   "parameterOrder": [
13675	//     "name"
13676	//   ],
13677	//   "parameters": {
13678	//     "apiVersion": {
13679	//       "description": "Cloud Run currently ignores this parameter.",
13680	//       "location": "query",
13681	//       "type": "string"
13682	//     },
13683	//     "kind": {
13684	//       "description": "Cloud Run currently ignores this parameter.",
13685	//       "location": "query",
13686	//       "type": "string"
13687	//     },
13688	//     "name": {
13689	//       "description": "The name of the route being deleted. If needed, replace\n{namespace_id} with the project ID.",
13690	//       "location": "path",
13691	//       "pattern": "^projects/[^/]+/locations/[^/]+/routes/[^/]+$",
13692	//       "required": true,
13693	//       "type": "string"
13694	//     },
13695	//     "propagationPolicy": {
13696	//       "description": "Specifies the propagation policy of delete. Cloud Run currently ignores\nthis setting, and deletes in the background. Please see\nkubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for\nmore information.",
13697	//       "location": "query",
13698	//       "type": "string"
13699	//     }
13700	//   },
13701	//   "path": "v1/{+name}",
13702	//   "response": {
13703	//     "$ref": "Status"
13704	//   },
13705	//   "scopes": [
13706	//     "https://www.googleapis.com/auth/cloud-platform"
13707	//   ]
13708	// }
13709
13710}
13711
13712// method id "run.projects.locations.routes.get":
13713
13714type ProjectsLocationsRoutesGetCall struct {
13715	s            *APIService
13716	name         string
13717	urlParams_   gensupport.URLParams
13718	ifNoneMatch_ string
13719	ctx_         context.Context
13720	header_      http.Header
13721}
13722
13723// Get: Get information about a route.
13724func (r *ProjectsLocationsRoutesService) Get(name string) *ProjectsLocationsRoutesGetCall {
13725	c := &ProjectsLocationsRoutesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13726	c.name = name
13727	return c
13728}
13729
13730// Fields allows partial responses to be retrieved. See
13731// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13732// for more information.
13733func (c *ProjectsLocationsRoutesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRoutesGetCall {
13734	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13735	return c
13736}
13737
13738// IfNoneMatch sets the optional parameter which makes the operation
13739// fail if the object's ETag matches the given value. This is useful for
13740// getting updates only after the object has changed since the last
13741// request. Use googleapi.IsNotModified to check whether the response
13742// error from Do is the result of In-None-Match.
13743func (c *ProjectsLocationsRoutesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRoutesGetCall {
13744	c.ifNoneMatch_ = entityTag
13745	return c
13746}
13747
13748// Context sets the context to be used in this call's Do method. Any
13749// pending HTTP request will be aborted if the provided context is
13750// canceled.
13751func (c *ProjectsLocationsRoutesGetCall) Context(ctx context.Context) *ProjectsLocationsRoutesGetCall {
13752	c.ctx_ = ctx
13753	return c
13754}
13755
13756// Header returns an http.Header that can be modified by the caller to
13757// add HTTP headers to the request.
13758func (c *ProjectsLocationsRoutesGetCall) Header() http.Header {
13759	if c.header_ == nil {
13760		c.header_ = make(http.Header)
13761	}
13762	return c.header_
13763}
13764
13765func (c *ProjectsLocationsRoutesGetCall) doRequest(alt string) (*http.Response, error) {
13766	reqHeaders := make(http.Header)
13767	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
13768	for k, v := range c.header_ {
13769		reqHeaders[k] = v
13770	}
13771	reqHeaders.Set("User-Agent", c.s.userAgent())
13772	if c.ifNoneMatch_ != "" {
13773		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13774	}
13775	var body io.Reader = nil
13776	c.urlParams_.Set("alt", alt)
13777	c.urlParams_.Set("prettyPrint", "false")
13778	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
13779	urls += "?" + c.urlParams_.Encode()
13780	req, err := http.NewRequest("GET", urls, body)
13781	if err != nil {
13782		return nil, err
13783	}
13784	req.Header = reqHeaders
13785	googleapi.Expand(req.URL, map[string]string{
13786		"name": c.name,
13787	})
13788	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13789}
13790
13791// Do executes the "run.projects.locations.routes.get" call.
13792// Exactly one of *Route or error will be non-nil. Any non-2xx status
13793// code is an error. Response headers are in either
13794// *Route.ServerResponse.Header or (if a response was returned at all)
13795// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
13796// check whether the returned error was because http.StatusNotModified
13797// was returned.
13798func (c *ProjectsLocationsRoutesGetCall) Do(opts ...googleapi.CallOption) (*Route, error) {
13799	gensupport.SetOptions(c.urlParams_, opts...)
13800	res, err := c.doRequest("json")
13801	if res != nil && res.StatusCode == http.StatusNotModified {
13802		if res.Body != nil {
13803			res.Body.Close()
13804		}
13805		return nil, &googleapi.Error{
13806			Code:   res.StatusCode,
13807			Header: res.Header,
13808		}
13809	}
13810	if err != nil {
13811		return nil, err
13812	}
13813	defer googleapi.CloseBody(res)
13814	if err := googleapi.CheckResponse(res); err != nil {
13815		return nil, err
13816	}
13817	ret := &Route{
13818		ServerResponse: googleapi.ServerResponse{
13819			Header:         res.Header,
13820			HTTPStatusCode: res.StatusCode,
13821		},
13822	}
13823	target := &ret
13824	if err := gensupport.DecodeResponse(target, res); err != nil {
13825		return nil, err
13826	}
13827	return ret, nil
13828	// {
13829	//   "description": "Get information about a route.",
13830	//   "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/routes/{routesId}",
13831	//   "httpMethod": "GET",
13832	//   "id": "run.projects.locations.routes.get",
13833	//   "parameterOrder": [
13834	//     "name"
13835	//   ],
13836	//   "parameters": {
13837	//     "name": {
13838	//       "description": "The name of the route being retrieved. If needed, replace\n{namespace_id} with the project ID.",
13839	//       "location": "path",
13840	//       "pattern": "^projects/[^/]+/locations/[^/]+/routes/[^/]+$",
13841	//       "required": true,
13842	//       "type": "string"
13843	//     }
13844	//   },
13845	//   "path": "v1/{+name}",
13846	//   "response": {
13847	//     "$ref": "Route"
13848	//   },
13849	//   "scopes": [
13850	//     "https://www.googleapis.com/auth/cloud-platform"
13851	//   ]
13852	// }
13853
13854}
13855
13856// method id "run.projects.locations.routes.list":
13857
13858type ProjectsLocationsRoutesListCall struct {
13859	s            *APIService
13860	parent       string
13861	urlParams_   gensupport.URLParams
13862	ifNoneMatch_ string
13863	ctx_         context.Context
13864	header_      http.Header
13865}
13866
13867// List: List routes.
13868func (r *ProjectsLocationsRoutesService) List(parent string) *ProjectsLocationsRoutesListCall {
13869	c := &ProjectsLocationsRoutesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13870	c.parent = parent
13871	return c
13872}
13873
13874// Continue sets the optional parameter "continue": Optional encoded
13875// string to continue paging.
13876func (c *ProjectsLocationsRoutesListCall) Continue(continue_ string) *ProjectsLocationsRoutesListCall {
13877	c.urlParams_.Set("continue", continue_)
13878	return c
13879}
13880
13881// FieldSelector sets the optional parameter "fieldSelector": Allows to
13882// filter resources based on a specific value for a field name.
13883// Send this in a query string format. i.e. 'metadata.name%3Dlorem'.
13884// Not currently used by Cloud Run.
13885func (c *ProjectsLocationsRoutesListCall) FieldSelector(fieldSelector string) *ProjectsLocationsRoutesListCall {
13886	c.urlParams_.Set("fieldSelector", fieldSelector)
13887	return c
13888}
13889
13890// IncludeUninitialized sets the optional parameter
13891// "includeUninitialized": Not currently used by Cloud Run.
13892func (c *ProjectsLocationsRoutesListCall) IncludeUninitialized(includeUninitialized bool) *ProjectsLocationsRoutesListCall {
13893	c.urlParams_.Set("includeUninitialized", fmt.Sprint(includeUninitialized))
13894	return c
13895}
13896
13897// LabelSelector sets the optional parameter "labelSelector": Allows to
13898// filter resources based on a label. Supported operations are
13899// =, !=, exists, in, and notIn.
13900func (c *ProjectsLocationsRoutesListCall) LabelSelector(labelSelector string) *ProjectsLocationsRoutesListCall {
13901	c.urlParams_.Set("labelSelector", labelSelector)
13902	return c
13903}
13904
13905// Limit sets the optional parameter "limit": The maximum number of
13906// records that should be returned.
13907func (c *ProjectsLocationsRoutesListCall) Limit(limit int64) *ProjectsLocationsRoutesListCall {
13908	c.urlParams_.Set("limit", fmt.Sprint(limit))
13909	return c
13910}
13911
13912// ResourceVersion sets the optional parameter "resourceVersion": The
13913// baseline resource version from which the list or watch operation
13914// should
13915// start. Not currently used by Cloud Run.
13916func (c *ProjectsLocationsRoutesListCall) ResourceVersion(resourceVersion string) *ProjectsLocationsRoutesListCall {
13917	c.urlParams_.Set("resourceVersion", resourceVersion)
13918	return c
13919}
13920
13921// Watch sets the optional parameter "watch": Flag that indicates that
13922// the client expects to watch this resource as well.
13923// Not currently used by Cloud Run.
13924func (c *ProjectsLocationsRoutesListCall) Watch(watch bool) *ProjectsLocationsRoutesListCall {
13925	c.urlParams_.Set("watch", fmt.Sprint(watch))
13926	return c
13927}
13928
13929// Fields allows partial responses to be retrieved. See
13930// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13931// for more information.
13932func (c *ProjectsLocationsRoutesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRoutesListCall {
13933	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13934	return c
13935}
13936
13937// IfNoneMatch sets the optional parameter which makes the operation
13938// fail if the object's ETag matches the given value. This is useful for
13939// getting updates only after the object has changed since the last
13940// request. Use googleapi.IsNotModified to check whether the response
13941// error from Do is the result of In-None-Match.
13942func (c *ProjectsLocationsRoutesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRoutesListCall {
13943	c.ifNoneMatch_ = entityTag
13944	return c
13945}
13946
13947// Context sets the context to be used in this call's Do method. Any
13948// pending HTTP request will be aborted if the provided context is
13949// canceled.
13950func (c *ProjectsLocationsRoutesListCall) Context(ctx context.Context) *ProjectsLocationsRoutesListCall {
13951	c.ctx_ = ctx
13952	return c
13953}
13954
13955// Header returns an http.Header that can be modified by the caller to
13956// add HTTP headers to the request.
13957func (c *ProjectsLocationsRoutesListCall) Header() http.Header {
13958	if c.header_ == nil {
13959		c.header_ = make(http.Header)
13960	}
13961	return c.header_
13962}
13963
13964func (c *ProjectsLocationsRoutesListCall) doRequest(alt string) (*http.Response, error) {
13965	reqHeaders := make(http.Header)
13966	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
13967	for k, v := range c.header_ {
13968		reqHeaders[k] = v
13969	}
13970	reqHeaders.Set("User-Agent", c.s.userAgent())
13971	if c.ifNoneMatch_ != "" {
13972		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13973	}
13974	var body io.Reader = nil
13975	c.urlParams_.Set("alt", alt)
13976	c.urlParams_.Set("prettyPrint", "false")
13977	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/routes")
13978	urls += "?" + c.urlParams_.Encode()
13979	req, err := http.NewRequest("GET", urls, body)
13980	if err != nil {
13981		return nil, err
13982	}
13983	req.Header = reqHeaders
13984	googleapi.Expand(req.URL, map[string]string{
13985		"parent": c.parent,
13986	})
13987	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13988}
13989
13990// Do executes the "run.projects.locations.routes.list" call.
13991// Exactly one of *ListRoutesResponse or error will be non-nil. Any
13992// non-2xx status code is an error. Response headers are in either
13993// *ListRoutesResponse.ServerResponse.Header or (if a response was
13994// returned at all) in error.(*googleapi.Error).Header. Use
13995// googleapi.IsNotModified to check whether the returned error was
13996// because http.StatusNotModified was returned.
13997func (c *ProjectsLocationsRoutesListCall) Do(opts ...googleapi.CallOption) (*ListRoutesResponse, error) {
13998	gensupport.SetOptions(c.urlParams_, opts...)
13999	res, err := c.doRequest("json")
14000	if res != nil && res.StatusCode == http.StatusNotModified {
14001		if res.Body != nil {
14002			res.Body.Close()
14003		}
14004		return nil, &googleapi.Error{
14005			Code:   res.StatusCode,
14006			Header: res.Header,
14007		}
14008	}
14009	if err != nil {
14010		return nil, err
14011	}
14012	defer googleapi.CloseBody(res)
14013	if err := googleapi.CheckResponse(res); err != nil {
14014		return nil, err
14015	}
14016	ret := &ListRoutesResponse{
14017		ServerResponse: googleapi.ServerResponse{
14018			Header:         res.Header,
14019			HTTPStatusCode: res.StatusCode,
14020		},
14021	}
14022	target := &ret
14023	if err := gensupport.DecodeResponse(target, res); err != nil {
14024		return nil, err
14025	}
14026	return ret, nil
14027	// {
14028	//   "description": "List routes.",
14029	//   "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/routes",
14030	//   "httpMethod": "GET",
14031	//   "id": "run.projects.locations.routes.list",
14032	//   "parameterOrder": [
14033	//     "parent"
14034	//   ],
14035	//   "parameters": {
14036	//     "continue": {
14037	//       "description": "Optional encoded string to continue paging.",
14038	//       "location": "query",
14039	//       "type": "string"
14040	//     },
14041	//     "fieldSelector": {
14042	//       "description": "Allows to filter resources based on a specific value for a field name.\nSend this in a query string format. i.e. 'metadata.name%3Dlorem'.\nNot currently used by Cloud Run.",
14043	//       "location": "query",
14044	//       "type": "string"
14045	//     },
14046	//     "includeUninitialized": {
14047	//       "description": "Not currently used by Cloud Run.",
14048	//       "location": "query",
14049	//       "type": "boolean"
14050	//     },
14051	//     "labelSelector": {
14052	//       "description": "Allows to filter resources based on a label. Supported operations are\n=, !=, exists, in, and notIn.",
14053	//       "location": "query",
14054	//       "type": "string"
14055	//     },
14056	//     "limit": {
14057	//       "description": "The maximum number of records that should be returned.",
14058	//       "format": "int32",
14059	//       "location": "query",
14060	//       "type": "integer"
14061	//     },
14062	//     "parent": {
14063	//       "description": "The project ID or project number from which the routes should be listed.",
14064	//       "location": "path",
14065	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
14066	//       "required": true,
14067	//       "type": "string"
14068	//     },
14069	//     "resourceVersion": {
14070	//       "description": "The baseline resource version from which the list or watch operation should\nstart. Not currently used by Cloud Run.",
14071	//       "location": "query",
14072	//       "type": "string"
14073	//     },
14074	//     "watch": {
14075	//       "description": "Flag that indicates that the client expects to watch this resource as well.\nNot currently used by Cloud Run.",
14076	//       "location": "query",
14077	//       "type": "boolean"
14078	//     }
14079	//   },
14080	//   "path": "v1/{+parent}/routes",
14081	//   "response": {
14082	//     "$ref": "ListRoutesResponse"
14083	//   },
14084	//   "scopes": [
14085	//     "https://www.googleapis.com/auth/cloud-platform"
14086	//   ]
14087	// }
14088
14089}
14090
14091// method id "run.projects.locations.routes.replaceRoute":
14092
14093type ProjectsLocationsRoutesReplaceRouteCall struct {
14094	s          *APIService
14095	name       string
14096	route      *Route
14097	urlParams_ gensupport.URLParams
14098	ctx_       context.Context
14099	header_    http.Header
14100}
14101
14102// ReplaceRoute: Replace a route.
14103//
14104// Only the spec and metadata labels and annotations are modifiable.
14105// After
14106// the Update request, Cloud Run will work to make the 'status'
14107// match the requested 'spec'.
14108//
14109// May provide metadata.resourceVersion to enforce update from last read
14110// for
14111// optimistic concurrency control.
14112func (r *ProjectsLocationsRoutesService) ReplaceRoute(name string, route *Route) *ProjectsLocationsRoutesReplaceRouteCall {
14113	c := &ProjectsLocationsRoutesReplaceRouteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14114	c.name = name
14115	c.route = route
14116	return c
14117}
14118
14119// Fields allows partial responses to be retrieved. See
14120// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
14121// for more information.
14122func (c *ProjectsLocationsRoutesReplaceRouteCall) Fields(s ...googleapi.Field) *ProjectsLocationsRoutesReplaceRouteCall {
14123	c.urlParams_.Set("fields", googleapi.CombineFields(s))
14124	return c
14125}
14126
14127// Context sets the context to be used in this call's Do method. Any
14128// pending HTTP request will be aborted if the provided context is
14129// canceled.
14130func (c *ProjectsLocationsRoutesReplaceRouteCall) Context(ctx context.Context) *ProjectsLocationsRoutesReplaceRouteCall {
14131	c.ctx_ = ctx
14132	return c
14133}
14134
14135// Header returns an http.Header that can be modified by the caller to
14136// add HTTP headers to the request.
14137func (c *ProjectsLocationsRoutesReplaceRouteCall) Header() http.Header {
14138	if c.header_ == nil {
14139		c.header_ = make(http.Header)
14140	}
14141	return c.header_
14142}
14143
14144func (c *ProjectsLocationsRoutesReplaceRouteCall) doRequest(alt string) (*http.Response, error) {
14145	reqHeaders := make(http.Header)
14146	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
14147	for k, v := range c.header_ {
14148		reqHeaders[k] = v
14149	}
14150	reqHeaders.Set("User-Agent", c.s.userAgent())
14151	var body io.Reader = nil
14152	body, err := googleapi.WithoutDataWrapper.JSONReader(c.route)
14153	if err != nil {
14154		return nil, err
14155	}
14156	reqHeaders.Set("Content-Type", "application/json")
14157	c.urlParams_.Set("alt", alt)
14158	c.urlParams_.Set("prettyPrint", "false")
14159	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
14160	urls += "?" + c.urlParams_.Encode()
14161	req, err := http.NewRequest("PUT", urls, body)
14162	if err != nil {
14163		return nil, err
14164	}
14165	req.Header = reqHeaders
14166	googleapi.Expand(req.URL, map[string]string{
14167		"name": c.name,
14168	})
14169	return gensupport.SendRequest(c.ctx_, c.s.client, req)
14170}
14171
14172// Do executes the "run.projects.locations.routes.replaceRoute" call.
14173// Exactly one of *Route or error will be non-nil. Any non-2xx status
14174// code is an error. Response headers are in either
14175// *Route.ServerResponse.Header or (if a response was returned at all)
14176// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
14177// check whether the returned error was because http.StatusNotModified
14178// was returned.
14179func (c *ProjectsLocationsRoutesReplaceRouteCall) Do(opts ...googleapi.CallOption) (*Route, error) {
14180	gensupport.SetOptions(c.urlParams_, opts...)
14181	res, err := c.doRequest("json")
14182	if res != nil && res.StatusCode == http.StatusNotModified {
14183		if res.Body != nil {
14184			res.Body.Close()
14185		}
14186		return nil, &googleapi.Error{
14187			Code:   res.StatusCode,
14188			Header: res.Header,
14189		}
14190	}
14191	if err != nil {
14192		return nil, err
14193	}
14194	defer googleapi.CloseBody(res)
14195	if err := googleapi.CheckResponse(res); err != nil {
14196		return nil, err
14197	}
14198	ret := &Route{
14199		ServerResponse: googleapi.ServerResponse{
14200			Header:         res.Header,
14201			HTTPStatusCode: res.StatusCode,
14202		},
14203	}
14204	target := &ret
14205	if err := gensupport.DecodeResponse(target, res); err != nil {
14206		return nil, err
14207	}
14208	return ret, nil
14209	// {
14210	//   "description": "Replace a route.\n\nOnly the spec and metadata labels and annotations are modifiable. After\nthe Update request, Cloud Run will work to make the 'status'\nmatch the requested 'spec'.\n\nMay provide metadata.resourceVersion to enforce update from last read for\noptimistic concurrency control.",
14211	//   "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/routes/{routesId}",
14212	//   "httpMethod": "PUT",
14213	//   "id": "run.projects.locations.routes.replaceRoute",
14214	//   "parameterOrder": [
14215	//     "name"
14216	//   ],
14217	//   "parameters": {
14218	//     "name": {
14219	//       "description": "The name of the route being replaced. If needed, replace\n{namespace_id} with the project ID.",
14220	//       "location": "path",
14221	//       "pattern": "^projects/[^/]+/locations/[^/]+/routes/[^/]+$",
14222	//       "required": true,
14223	//       "type": "string"
14224	//     }
14225	//   },
14226	//   "path": "v1/{+name}",
14227	//   "request": {
14228	//     "$ref": "Route"
14229	//   },
14230	//   "response": {
14231	//     "$ref": "Route"
14232	//   },
14233	//   "scopes": [
14234	//     "https://www.googleapis.com/auth/cloud-platform"
14235	//   ]
14236	// }
14237
14238}
14239
14240// method id "run.projects.locations.services.create":
14241
14242type ProjectsLocationsServicesCreateCall struct {
14243	s          *APIService
14244	parent     string
14245	service    *Service
14246	urlParams_ gensupport.URLParams
14247	ctx_       context.Context
14248	header_    http.Header
14249}
14250
14251// Create: Create a service.
14252func (r *ProjectsLocationsServicesService) Create(parent string, service *Service) *ProjectsLocationsServicesCreateCall {
14253	c := &ProjectsLocationsServicesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14254	c.parent = parent
14255	c.service = service
14256	return c
14257}
14258
14259// Fields allows partial responses to be retrieved. See
14260// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
14261// for more information.
14262func (c *ProjectsLocationsServicesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsServicesCreateCall {
14263	c.urlParams_.Set("fields", googleapi.CombineFields(s))
14264	return c
14265}
14266
14267// Context sets the context to be used in this call's Do method. Any
14268// pending HTTP request will be aborted if the provided context is
14269// canceled.
14270func (c *ProjectsLocationsServicesCreateCall) Context(ctx context.Context) *ProjectsLocationsServicesCreateCall {
14271	c.ctx_ = ctx
14272	return c
14273}
14274
14275// Header returns an http.Header that can be modified by the caller to
14276// add HTTP headers to the request.
14277func (c *ProjectsLocationsServicesCreateCall) Header() http.Header {
14278	if c.header_ == nil {
14279		c.header_ = make(http.Header)
14280	}
14281	return c.header_
14282}
14283
14284func (c *ProjectsLocationsServicesCreateCall) doRequest(alt string) (*http.Response, error) {
14285	reqHeaders := make(http.Header)
14286	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
14287	for k, v := range c.header_ {
14288		reqHeaders[k] = v
14289	}
14290	reqHeaders.Set("User-Agent", c.s.userAgent())
14291	var body io.Reader = nil
14292	body, err := googleapi.WithoutDataWrapper.JSONReader(c.service)
14293	if err != nil {
14294		return nil, err
14295	}
14296	reqHeaders.Set("Content-Type", "application/json")
14297	c.urlParams_.Set("alt", alt)
14298	c.urlParams_.Set("prettyPrint", "false")
14299	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/services")
14300	urls += "?" + c.urlParams_.Encode()
14301	req, err := http.NewRequest("POST", urls, body)
14302	if err != nil {
14303		return nil, err
14304	}
14305	req.Header = reqHeaders
14306	googleapi.Expand(req.URL, map[string]string{
14307		"parent": c.parent,
14308	})
14309	return gensupport.SendRequest(c.ctx_, c.s.client, req)
14310}
14311
14312// Do executes the "run.projects.locations.services.create" call.
14313// Exactly one of *Service or error will be non-nil. Any non-2xx status
14314// code is an error. Response headers are in either
14315// *Service.ServerResponse.Header or (if a response was returned at all)
14316// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
14317// check whether the returned error was because http.StatusNotModified
14318// was returned.
14319func (c *ProjectsLocationsServicesCreateCall) Do(opts ...googleapi.CallOption) (*Service, error) {
14320	gensupport.SetOptions(c.urlParams_, opts...)
14321	res, err := c.doRequest("json")
14322	if res != nil && res.StatusCode == http.StatusNotModified {
14323		if res.Body != nil {
14324			res.Body.Close()
14325		}
14326		return nil, &googleapi.Error{
14327			Code:   res.StatusCode,
14328			Header: res.Header,
14329		}
14330	}
14331	if err != nil {
14332		return nil, err
14333	}
14334	defer googleapi.CloseBody(res)
14335	if err := googleapi.CheckResponse(res); err != nil {
14336		return nil, err
14337	}
14338	ret := &Service{
14339		ServerResponse: googleapi.ServerResponse{
14340			Header:         res.Header,
14341			HTTPStatusCode: res.StatusCode,
14342		},
14343	}
14344	target := &ret
14345	if err := gensupport.DecodeResponse(target, res); err != nil {
14346		return nil, err
14347	}
14348	return ret, nil
14349	// {
14350	//   "description": "Create a service.",
14351	//   "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/services",
14352	//   "httpMethod": "POST",
14353	//   "id": "run.projects.locations.services.create",
14354	//   "parameterOrder": [
14355	//     "parent"
14356	//   ],
14357	//   "parameters": {
14358	//     "parent": {
14359	//       "description": "The project ID or project number in which this service should be created.",
14360	//       "location": "path",
14361	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
14362	//       "required": true,
14363	//       "type": "string"
14364	//     }
14365	//   },
14366	//   "path": "v1/{+parent}/services",
14367	//   "request": {
14368	//     "$ref": "Service"
14369	//   },
14370	//   "response": {
14371	//     "$ref": "Service"
14372	//   },
14373	//   "scopes": [
14374	//     "https://www.googleapis.com/auth/cloud-platform"
14375	//   ]
14376	// }
14377
14378}
14379
14380// method id "run.projects.locations.services.delete":
14381
14382type ProjectsLocationsServicesDeleteCall struct {
14383	s          *APIService
14384	name       string
14385	urlParams_ gensupport.URLParams
14386	ctx_       context.Context
14387	header_    http.Header
14388}
14389
14390// Delete: Delete a service.
14391// This will cause the Service to stop serving traffic and will delete
14392// the
14393// child entities like Routes, Configurations and Revisions.
14394func (r *ProjectsLocationsServicesService) Delete(name string) *ProjectsLocationsServicesDeleteCall {
14395	c := &ProjectsLocationsServicesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14396	c.name = name
14397	return c
14398}
14399
14400// ApiVersion sets the optional parameter "apiVersion": Cloud Run
14401// currently ignores this parameter.
14402func (c *ProjectsLocationsServicesDeleteCall) ApiVersion(apiVersion string) *ProjectsLocationsServicesDeleteCall {
14403	c.urlParams_.Set("apiVersion", apiVersion)
14404	return c
14405}
14406
14407// Kind sets the optional parameter "kind": Cloud Run currently ignores
14408// this parameter.
14409func (c *ProjectsLocationsServicesDeleteCall) Kind(kind string) *ProjectsLocationsServicesDeleteCall {
14410	c.urlParams_.Set("kind", kind)
14411	return c
14412}
14413
14414// PropagationPolicy sets the optional parameter "propagationPolicy":
14415// Specifies the propagation policy of delete. Cloud Run currently
14416// ignores
14417// this setting, and deletes in the background. Please
14418// see
14419// kubernetes.io/docs/concepts/workloads/controllers/garbage-collecti
14420// on/ for
14421// more information.
14422func (c *ProjectsLocationsServicesDeleteCall) PropagationPolicy(propagationPolicy string) *ProjectsLocationsServicesDeleteCall {
14423	c.urlParams_.Set("propagationPolicy", propagationPolicy)
14424	return c
14425}
14426
14427// Fields allows partial responses to be retrieved. See
14428// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
14429// for more information.
14430func (c *ProjectsLocationsServicesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsServicesDeleteCall {
14431	c.urlParams_.Set("fields", googleapi.CombineFields(s))
14432	return c
14433}
14434
14435// Context sets the context to be used in this call's Do method. Any
14436// pending HTTP request will be aborted if the provided context is
14437// canceled.
14438func (c *ProjectsLocationsServicesDeleteCall) Context(ctx context.Context) *ProjectsLocationsServicesDeleteCall {
14439	c.ctx_ = ctx
14440	return c
14441}
14442
14443// Header returns an http.Header that can be modified by the caller to
14444// add HTTP headers to the request.
14445func (c *ProjectsLocationsServicesDeleteCall) Header() http.Header {
14446	if c.header_ == nil {
14447		c.header_ = make(http.Header)
14448	}
14449	return c.header_
14450}
14451
14452func (c *ProjectsLocationsServicesDeleteCall) doRequest(alt string) (*http.Response, error) {
14453	reqHeaders := make(http.Header)
14454	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
14455	for k, v := range c.header_ {
14456		reqHeaders[k] = v
14457	}
14458	reqHeaders.Set("User-Agent", c.s.userAgent())
14459	var body io.Reader = nil
14460	c.urlParams_.Set("alt", alt)
14461	c.urlParams_.Set("prettyPrint", "false")
14462	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
14463	urls += "?" + c.urlParams_.Encode()
14464	req, err := http.NewRequest("DELETE", urls, body)
14465	if err != nil {
14466		return nil, err
14467	}
14468	req.Header = reqHeaders
14469	googleapi.Expand(req.URL, map[string]string{
14470		"name": c.name,
14471	})
14472	return gensupport.SendRequest(c.ctx_, c.s.client, req)
14473}
14474
14475// Do executes the "run.projects.locations.services.delete" call.
14476// Exactly one of *Status or error will be non-nil. Any non-2xx status
14477// code is an error. Response headers are in either
14478// *Status.ServerResponse.Header or (if a response was returned at all)
14479// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
14480// check whether the returned error was because http.StatusNotModified
14481// was returned.
14482func (c *ProjectsLocationsServicesDeleteCall) Do(opts ...googleapi.CallOption) (*Status, error) {
14483	gensupport.SetOptions(c.urlParams_, opts...)
14484	res, err := c.doRequest("json")
14485	if res != nil && res.StatusCode == http.StatusNotModified {
14486		if res.Body != nil {
14487			res.Body.Close()
14488		}
14489		return nil, &googleapi.Error{
14490			Code:   res.StatusCode,
14491			Header: res.Header,
14492		}
14493	}
14494	if err != nil {
14495		return nil, err
14496	}
14497	defer googleapi.CloseBody(res)
14498	if err := googleapi.CheckResponse(res); err != nil {
14499		return nil, err
14500	}
14501	ret := &Status{
14502		ServerResponse: googleapi.ServerResponse{
14503			Header:         res.Header,
14504			HTTPStatusCode: res.StatusCode,
14505		},
14506	}
14507	target := &ret
14508	if err := gensupport.DecodeResponse(target, res); err != nil {
14509		return nil, err
14510	}
14511	return ret, nil
14512	// {
14513	//   "description": "Delete a service.\nThis will cause the Service to stop serving traffic and will delete the\nchild entities like Routes, Configurations and Revisions.",
14514	//   "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/services/{servicesId}",
14515	//   "httpMethod": "DELETE",
14516	//   "id": "run.projects.locations.services.delete",
14517	//   "parameterOrder": [
14518	//     "name"
14519	//   ],
14520	//   "parameters": {
14521	//     "apiVersion": {
14522	//       "description": "Cloud Run currently ignores this parameter.",
14523	//       "location": "query",
14524	//       "type": "string"
14525	//     },
14526	//     "kind": {
14527	//       "description": "Cloud Run currently ignores this parameter.",
14528	//       "location": "query",
14529	//       "type": "string"
14530	//     },
14531	//     "name": {
14532	//       "description": "The name of the service being deleted. If needed, replace\n{namespace_id} with the project ID.",
14533	//       "location": "path",
14534	//       "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+$",
14535	//       "required": true,
14536	//       "type": "string"
14537	//     },
14538	//     "propagationPolicy": {
14539	//       "description": "Specifies the propagation policy of delete. Cloud Run currently ignores\nthis setting, and deletes in the background. Please see\nkubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for\nmore information.",
14540	//       "location": "query",
14541	//       "type": "string"
14542	//     }
14543	//   },
14544	//   "path": "v1/{+name}",
14545	//   "response": {
14546	//     "$ref": "Status"
14547	//   },
14548	//   "scopes": [
14549	//     "https://www.googleapis.com/auth/cloud-platform"
14550	//   ]
14551	// }
14552
14553}
14554
14555// method id "run.projects.locations.services.get":
14556
14557type ProjectsLocationsServicesGetCall struct {
14558	s            *APIService
14559	name         string
14560	urlParams_   gensupport.URLParams
14561	ifNoneMatch_ string
14562	ctx_         context.Context
14563	header_      http.Header
14564}
14565
14566// Get: Get information about a service.
14567func (r *ProjectsLocationsServicesService) Get(name string) *ProjectsLocationsServicesGetCall {
14568	c := &ProjectsLocationsServicesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14569	c.name = name
14570	return c
14571}
14572
14573// Fields allows partial responses to be retrieved. See
14574// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
14575// for more information.
14576func (c *ProjectsLocationsServicesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsServicesGetCall {
14577	c.urlParams_.Set("fields", googleapi.CombineFields(s))
14578	return c
14579}
14580
14581// IfNoneMatch sets the optional parameter which makes the operation
14582// fail if the object's ETag matches the given value. This is useful for
14583// getting updates only after the object has changed since the last
14584// request. Use googleapi.IsNotModified to check whether the response
14585// error from Do is the result of In-None-Match.
14586func (c *ProjectsLocationsServicesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsServicesGetCall {
14587	c.ifNoneMatch_ = entityTag
14588	return c
14589}
14590
14591// Context sets the context to be used in this call's Do method. Any
14592// pending HTTP request will be aborted if the provided context is
14593// canceled.
14594func (c *ProjectsLocationsServicesGetCall) Context(ctx context.Context) *ProjectsLocationsServicesGetCall {
14595	c.ctx_ = ctx
14596	return c
14597}
14598
14599// Header returns an http.Header that can be modified by the caller to
14600// add HTTP headers to the request.
14601func (c *ProjectsLocationsServicesGetCall) Header() http.Header {
14602	if c.header_ == nil {
14603		c.header_ = make(http.Header)
14604	}
14605	return c.header_
14606}
14607
14608func (c *ProjectsLocationsServicesGetCall) doRequest(alt string) (*http.Response, error) {
14609	reqHeaders := make(http.Header)
14610	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
14611	for k, v := range c.header_ {
14612		reqHeaders[k] = v
14613	}
14614	reqHeaders.Set("User-Agent", c.s.userAgent())
14615	if c.ifNoneMatch_ != "" {
14616		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14617	}
14618	var body io.Reader = nil
14619	c.urlParams_.Set("alt", alt)
14620	c.urlParams_.Set("prettyPrint", "false")
14621	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
14622	urls += "?" + c.urlParams_.Encode()
14623	req, err := http.NewRequest("GET", urls, body)
14624	if err != nil {
14625		return nil, err
14626	}
14627	req.Header = reqHeaders
14628	googleapi.Expand(req.URL, map[string]string{
14629		"name": c.name,
14630	})
14631	return gensupport.SendRequest(c.ctx_, c.s.client, req)
14632}
14633
14634// Do executes the "run.projects.locations.services.get" call.
14635// Exactly one of *Service or error will be non-nil. Any non-2xx status
14636// code is an error. Response headers are in either
14637// *Service.ServerResponse.Header or (if a response was returned at all)
14638// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
14639// check whether the returned error was because http.StatusNotModified
14640// was returned.
14641func (c *ProjectsLocationsServicesGetCall) Do(opts ...googleapi.CallOption) (*Service, error) {
14642	gensupport.SetOptions(c.urlParams_, opts...)
14643	res, err := c.doRequest("json")
14644	if res != nil && res.StatusCode == http.StatusNotModified {
14645		if res.Body != nil {
14646			res.Body.Close()
14647		}
14648		return nil, &googleapi.Error{
14649			Code:   res.StatusCode,
14650			Header: res.Header,
14651		}
14652	}
14653	if err != nil {
14654		return nil, err
14655	}
14656	defer googleapi.CloseBody(res)
14657	if err := googleapi.CheckResponse(res); err != nil {
14658		return nil, err
14659	}
14660	ret := &Service{
14661		ServerResponse: googleapi.ServerResponse{
14662			Header:         res.Header,
14663			HTTPStatusCode: res.StatusCode,
14664		},
14665	}
14666	target := &ret
14667	if err := gensupport.DecodeResponse(target, res); err != nil {
14668		return nil, err
14669	}
14670	return ret, nil
14671	// {
14672	//   "description": "Get information about a service.",
14673	//   "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/services/{servicesId}",
14674	//   "httpMethod": "GET",
14675	//   "id": "run.projects.locations.services.get",
14676	//   "parameterOrder": [
14677	//     "name"
14678	//   ],
14679	//   "parameters": {
14680	//     "name": {
14681	//       "description": "The name of the service being retrieved. If needed, replace\n{namespace_id} with the project ID.",
14682	//       "location": "path",
14683	//       "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+$",
14684	//       "required": true,
14685	//       "type": "string"
14686	//     }
14687	//   },
14688	//   "path": "v1/{+name}",
14689	//   "response": {
14690	//     "$ref": "Service"
14691	//   },
14692	//   "scopes": [
14693	//     "https://www.googleapis.com/auth/cloud-platform"
14694	//   ]
14695	// }
14696
14697}
14698
14699// method id "run.projects.locations.services.getIamPolicy":
14700
14701type ProjectsLocationsServicesGetIamPolicyCall struct {
14702	s            *APIService
14703	resource     string
14704	urlParams_   gensupport.URLParams
14705	ifNoneMatch_ string
14706	ctx_         context.Context
14707	header_      http.Header
14708}
14709
14710// GetIamPolicy: Get the IAM Access Control policy currently in effect
14711// for the given
14712// Cloud Run service. This result does not include any inherited
14713// policies.
14714func (r *ProjectsLocationsServicesService) GetIamPolicy(resource string) *ProjectsLocationsServicesGetIamPolicyCall {
14715	c := &ProjectsLocationsServicesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14716	c.resource = resource
14717	return c
14718}
14719
14720// OptionsRequestedPolicyVersion sets the optional parameter
14721// "options.requestedPolicyVersion": The policy format version to be
14722// returned.
14723//
14724// Valid values are 0, 1, and 3. Requests specifying an invalid value
14725// will be
14726// rejected.
14727//
14728// Requests for policies with any conditional bindings must specify
14729// version 3.
14730// Policies without any conditional bindings may specify any valid value
14731// or
14732// leave the field unset.
14733func (c *ProjectsLocationsServicesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsServicesGetIamPolicyCall {
14734	c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
14735	return c
14736}
14737
14738// Fields allows partial responses to be retrieved. See
14739// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
14740// for more information.
14741func (c *ProjectsLocationsServicesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsServicesGetIamPolicyCall {
14742	c.urlParams_.Set("fields", googleapi.CombineFields(s))
14743	return c
14744}
14745
14746// IfNoneMatch sets the optional parameter which makes the operation
14747// fail if the object's ETag matches the given value. This is useful for
14748// getting updates only after the object has changed since the last
14749// request. Use googleapi.IsNotModified to check whether the response
14750// error from Do is the result of In-None-Match.
14751func (c *ProjectsLocationsServicesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsServicesGetIamPolicyCall {
14752	c.ifNoneMatch_ = entityTag
14753	return c
14754}
14755
14756// Context sets the context to be used in this call's Do method. Any
14757// pending HTTP request will be aborted if the provided context is
14758// canceled.
14759func (c *ProjectsLocationsServicesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsServicesGetIamPolicyCall {
14760	c.ctx_ = ctx
14761	return c
14762}
14763
14764// Header returns an http.Header that can be modified by the caller to
14765// add HTTP headers to the request.
14766func (c *ProjectsLocationsServicesGetIamPolicyCall) Header() http.Header {
14767	if c.header_ == nil {
14768		c.header_ = make(http.Header)
14769	}
14770	return c.header_
14771}
14772
14773func (c *ProjectsLocationsServicesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
14774	reqHeaders := make(http.Header)
14775	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
14776	for k, v := range c.header_ {
14777		reqHeaders[k] = v
14778	}
14779	reqHeaders.Set("User-Agent", c.s.userAgent())
14780	if c.ifNoneMatch_ != "" {
14781		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14782	}
14783	var body io.Reader = nil
14784	c.urlParams_.Set("alt", alt)
14785	c.urlParams_.Set("prettyPrint", "false")
14786	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
14787	urls += "?" + c.urlParams_.Encode()
14788	req, err := http.NewRequest("GET", urls, body)
14789	if err != nil {
14790		return nil, err
14791	}
14792	req.Header = reqHeaders
14793	googleapi.Expand(req.URL, map[string]string{
14794		"resource": c.resource,
14795	})
14796	return gensupport.SendRequest(c.ctx_, c.s.client, req)
14797}
14798
14799// Do executes the "run.projects.locations.services.getIamPolicy" call.
14800// Exactly one of *Policy or error will be non-nil. Any non-2xx status
14801// code is an error. Response headers are in either
14802// *Policy.ServerResponse.Header or (if a response was returned at all)
14803// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
14804// check whether the returned error was because http.StatusNotModified
14805// was returned.
14806func (c *ProjectsLocationsServicesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
14807	gensupport.SetOptions(c.urlParams_, opts...)
14808	res, err := c.doRequest("json")
14809	if res != nil && res.StatusCode == http.StatusNotModified {
14810		if res.Body != nil {
14811			res.Body.Close()
14812		}
14813		return nil, &googleapi.Error{
14814			Code:   res.StatusCode,
14815			Header: res.Header,
14816		}
14817	}
14818	if err != nil {
14819		return nil, err
14820	}
14821	defer googleapi.CloseBody(res)
14822	if err := googleapi.CheckResponse(res); err != nil {
14823		return nil, err
14824	}
14825	ret := &Policy{
14826		ServerResponse: googleapi.ServerResponse{
14827			Header:         res.Header,
14828			HTTPStatusCode: res.StatusCode,
14829		},
14830	}
14831	target := &ret
14832	if err := gensupport.DecodeResponse(target, res); err != nil {
14833		return nil, err
14834	}
14835	return ret, nil
14836	// {
14837	//   "description": "Get the IAM Access Control policy currently in effect for the given\nCloud Run service. This result does not include any inherited policies.",
14838	//   "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/services/{servicesId}:getIamPolicy",
14839	//   "httpMethod": "GET",
14840	//   "id": "run.projects.locations.services.getIamPolicy",
14841	//   "parameterOrder": [
14842	//     "resource"
14843	//   ],
14844	//   "parameters": {
14845	//     "options.requestedPolicyVersion": {
14846	//       "description": "Optional. The policy format version to be returned.\n\nValid values are 0, 1, and 3. Requests specifying an invalid value will be\nrejected.\n\nRequests for policies with any conditional bindings must specify version 3.\nPolicies without any conditional bindings may specify any valid value or\nleave the field unset.",
14847	//       "format": "int32",
14848	//       "location": "query",
14849	//       "type": "integer"
14850	//     },
14851	//     "resource": {
14852	//       "description": "REQUIRED: The resource for which the policy is being requested.\nSee the operation documentation for the appropriate value for this field.",
14853	//       "location": "path",
14854	//       "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+$",
14855	//       "required": true,
14856	//       "type": "string"
14857	//     }
14858	//   },
14859	//   "path": "v1/{+resource}:getIamPolicy",
14860	//   "response": {
14861	//     "$ref": "Policy"
14862	//   },
14863	//   "scopes": [
14864	//     "https://www.googleapis.com/auth/cloud-platform"
14865	//   ]
14866	// }
14867
14868}
14869
14870// method id "run.projects.locations.services.list":
14871
14872type ProjectsLocationsServicesListCall struct {
14873	s            *APIService
14874	parent       string
14875	urlParams_   gensupport.URLParams
14876	ifNoneMatch_ string
14877	ctx_         context.Context
14878	header_      http.Header
14879}
14880
14881// List: List services.
14882func (r *ProjectsLocationsServicesService) List(parent string) *ProjectsLocationsServicesListCall {
14883	c := &ProjectsLocationsServicesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14884	c.parent = parent
14885	return c
14886}
14887
14888// Continue sets the optional parameter "continue": Optional encoded
14889// string to continue paging.
14890func (c *ProjectsLocationsServicesListCall) Continue(continue_ string) *ProjectsLocationsServicesListCall {
14891	c.urlParams_.Set("continue", continue_)
14892	return c
14893}
14894
14895// FieldSelector sets the optional parameter "fieldSelector": Allows to
14896// filter resources based on a specific value for a field name.
14897// Send this in a query string format. i.e. 'metadata.name%3Dlorem'.
14898// Not currently used by Cloud Run.
14899func (c *ProjectsLocationsServicesListCall) FieldSelector(fieldSelector string) *ProjectsLocationsServicesListCall {
14900	c.urlParams_.Set("fieldSelector", fieldSelector)
14901	return c
14902}
14903
14904// IncludeUninitialized sets the optional parameter
14905// "includeUninitialized": Not currently used by Cloud Run.
14906func (c *ProjectsLocationsServicesListCall) IncludeUninitialized(includeUninitialized bool) *ProjectsLocationsServicesListCall {
14907	c.urlParams_.Set("includeUninitialized", fmt.Sprint(includeUninitialized))
14908	return c
14909}
14910
14911// LabelSelector sets the optional parameter "labelSelector": Allows to
14912// filter resources based on a label. Supported operations are
14913// =, !=, exists, in, and notIn.
14914func (c *ProjectsLocationsServicesListCall) LabelSelector(labelSelector string) *ProjectsLocationsServicesListCall {
14915	c.urlParams_.Set("labelSelector", labelSelector)
14916	return c
14917}
14918
14919// Limit sets the optional parameter "limit": The maximum number of
14920// records that should be returned.
14921func (c *ProjectsLocationsServicesListCall) Limit(limit int64) *ProjectsLocationsServicesListCall {
14922	c.urlParams_.Set("limit", fmt.Sprint(limit))
14923	return c
14924}
14925
14926// ResourceVersion sets the optional parameter "resourceVersion": The
14927// baseline resource version from which the list or watch operation
14928// should
14929// start. Not currently used by Cloud Run.
14930func (c *ProjectsLocationsServicesListCall) ResourceVersion(resourceVersion string) *ProjectsLocationsServicesListCall {
14931	c.urlParams_.Set("resourceVersion", resourceVersion)
14932	return c
14933}
14934
14935// Watch sets the optional parameter "watch": Flag that indicates that
14936// the client expects to watch this resource as well.
14937// Not currently used by Cloud Run.
14938func (c *ProjectsLocationsServicesListCall) Watch(watch bool) *ProjectsLocationsServicesListCall {
14939	c.urlParams_.Set("watch", fmt.Sprint(watch))
14940	return c
14941}
14942
14943// Fields allows partial responses to be retrieved. See
14944// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
14945// for more information.
14946func (c *ProjectsLocationsServicesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsServicesListCall {
14947	c.urlParams_.Set("fields", googleapi.CombineFields(s))
14948	return c
14949}
14950
14951// IfNoneMatch sets the optional parameter which makes the operation
14952// fail if the object's ETag matches the given value. This is useful for
14953// getting updates only after the object has changed since the last
14954// request. Use googleapi.IsNotModified to check whether the response
14955// error from Do is the result of In-None-Match.
14956func (c *ProjectsLocationsServicesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsServicesListCall {
14957	c.ifNoneMatch_ = entityTag
14958	return c
14959}
14960
14961// Context sets the context to be used in this call's Do method. Any
14962// pending HTTP request will be aborted if the provided context is
14963// canceled.
14964func (c *ProjectsLocationsServicesListCall) Context(ctx context.Context) *ProjectsLocationsServicesListCall {
14965	c.ctx_ = ctx
14966	return c
14967}
14968
14969// Header returns an http.Header that can be modified by the caller to
14970// add HTTP headers to the request.
14971func (c *ProjectsLocationsServicesListCall) Header() http.Header {
14972	if c.header_ == nil {
14973		c.header_ = make(http.Header)
14974	}
14975	return c.header_
14976}
14977
14978func (c *ProjectsLocationsServicesListCall) doRequest(alt string) (*http.Response, error) {
14979	reqHeaders := make(http.Header)
14980	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
14981	for k, v := range c.header_ {
14982		reqHeaders[k] = v
14983	}
14984	reqHeaders.Set("User-Agent", c.s.userAgent())
14985	if c.ifNoneMatch_ != "" {
14986		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14987	}
14988	var body io.Reader = nil
14989	c.urlParams_.Set("alt", alt)
14990	c.urlParams_.Set("prettyPrint", "false")
14991	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/services")
14992	urls += "?" + c.urlParams_.Encode()
14993	req, err := http.NewRequest("GET", urls, body)
14994	if err != nil {
14995		return nil, err
14996	}
14997	req.Header = reqHeaders
14998	googleapi.Expand(req.URL, map[string]string{
14999		"parent": c.parent,
15000	})
15001	return gensupport.SendRequest(c.ctx_, c.s.client, req)
15002}
15003
15004// Do executes the "run.projects.locations.services.list" call.
15005// Exactly one of *ListServicesResponse or error will be non-nil. Any
15006// non-2xx status code is an error. Response headers are in either
15007// *ListServicesResponse.ServerResponse.Header or (if a response was
15008// returned at all) in error.(*googleapi.Error).Header. Use
15009// googleapi.IsNotModified to check whether the returned error was
15010// because http.StatusNotModified was returned.
15011func (c *ProjectsLocationsServicesListCall) Do(opts ...googleapi.CallOption) (*ListServicesResponse, error) {
15012	gensupport.SetOptions(c.urlParams_, opts...)
15013	res, err := c.doRequest("json")
15014	if res != nil && res.StatusCode == http.StatusNotModified {
15015		if res.Body != nil {
15016			res.Body.Close()
15017		}
15018		return nil, &googleapi.Error{
15019			Code:   res.StatusCode,
15020			Header: res.Header,
15021		}
15022	}
15023	if err != nil {
15024		return nil, err
15025	}
15026	defer googleapi.CloseBody(res)
15027	if err := googleapi.CheckResponse(res); err != nil {
15028		return nil, err
15029	}
15030	ret := &ListServicesResponse{
15031		ServerResponse: googleapi.ServerResponse{
15032			Header:         res.Header,
15033			HTTPStatusCode: res.StatusCode,
15034		},
15035	}
15036	target := &ret
15037	if err := gensupport.DecodeResponse(target, res); err != nil {
15038		return nil, err
15039	}
15040	return ret, nil
15041	// {
15042	//   "description": "List services.",
15043	//   "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/services",
15044	//   "httpMethod": "GET",
15045	//   "id": "run.projects.locations.services.list",
15046	//   "parameterOrder": [
15047	//     "parent"
15048	//   ],
15049	//   "parameters": {
15050	//     "continue": {
15051	//       "description": "Optional encoded string to continue paging.",
15052	//       "location": "query",
15053	//       "type": "string"
15054	//     },
15055	//     "fieldSelector": {
15056	//       "description": "Allows to filter resources based on a specific value for a field name.\nSend this in a query string format. i.e. 'metadata.name%3Dlorem'.\nNot currently used by Cloud Run.",
15057	//       "location": "query",
15058	//       "type": "string"
15059	//     },
15060	//     "includeUninitialized": {
15061	//       "description": "Not currently used by Cloud Run.",
15062	//       "location": "query",
15063	//       "type": "boolean"
15064	//     },
15065	//     "labelSelector": {
15066	//       "description": "Allows to filter resources based on a label. Supported operations are\n=, !=, exists, in, and notIn.",
15067	//       "location": "query",
15068	//       "type": "string"
15069	//     },
15070	//     "limit": {
15071	//       "description": "The maximum number of records that should be returned.",
15072	//       "format": "int32",
15073	//       "location": "query",
15074	//       "type": "integer"
15075	//     },
15076	//     "parent": {
15077	//       "description": "The project ID or project number from which the services should be listed.",
15078	//       "location": "path",
15079	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
15080	//       "required": true,
15081	//       "type": "string"
15082	//     },
15083	//     "resourceVersion": {
15084	//       "description": "The baseline resource version from which the list or watch operation should\nstart. Not currently used by Cloud Run.",
15085	//       "location": "query",
15086	//       "type": "string"
15087	//     },
15088	//     "watch": {
15089	//       "description": "Flag that indicates that the client expects to watch this resource as well.\nNot currently used by Cloud Run.",
15090	//       "location": "query",
15091	//       "type": "boolean"
15092	//     }
15093	//   },
15094	//   "path": "v1/{+parent}/services",
15095	//   "response": {
15096	//     "$ref": "ListServicesResponse"
15097	//   },
15098	//   "scopes": [
15099	//     "https://www.googleapis.com/auth/cloud-platform"
15100	//   ]
15101	// }
15102
15103}
15104
15105// method id "run.projects.locations.services.replaceService":
15106
15107type ProjectsLocationsServicesReplaceServiceCall struct {
15108	s          *APIService
15109	name       string
15110	service    *Service
15111	urlParams_ gensupport.URLParams
15112	ctx_       context.Context
15113	header_    http.Header
15114}
15115
15116// ReplaceService: Replace a service.
15117//
15118// Only the spec and metadata labels and annotations are modifiable.
15119// After
15120// the Update request, Cloud Run will work to make the 'status'
15121// match the requested 'spec'.
15122//
15123// May provide metadata.resourceVersion to enforce update from last read
15124// for
15125// optimistic concurrency control.
15126func (r *ProjectsLocationsServicesService) ReplaceService(name string, service *Service) *ProjectsLocationsServicesReplaceServiceCall {
15127	c := &ProjectsLocationsServicesReplaceServiceCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15128	c.name = name
15129	c.service = service
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 *ProjectsLocationsServicesReplaceServiceCall) Fields(s ...googleapi.Field) *ProjectsLocationsServicesReplaceServiceCall {
15137	c.urlParams_.Set("fields", googleapi.CombineFields(s))
15138	return c
15139}
15140
15141// Context sets the context to be used in this call's Do method. Any
15142// pending HTTP request will be aborted if the provided context is
15143// canceled.
15144func (c *ProjectsLocationsServicesReplaceServiceCall) Context(ctx context.Context) *ProjectsLocationsServicesReplaceServiceCall {
15145	c.ctx_ = ctx
15146	return c
15147}
15148
15149// Header returns an http.Header that can be modified by the caller to
15150// add HTTP headers to the request.
15151func (c *ProjectsLocationsServicesReplaceServiceCall) Header() http.Header {
15152	if c.header_ == nil {
15153		c.header_ = make(http.Header)
15154	}
15155	return c.header_
15156}
15157
15158func (c *ProjectsLocationsServicesReplaceServiceCall) doRequest(alt string) (*http.Response, error) {
15159	reqHeaders := make(http.Header)
15160	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
15161	for k, v := range c.header_ {
15162		reqHeaders[k] = v
15163	}
15164	reqHeaders.Set("User-Agent", c.s.userAgent())
15165	var body io.Reader = nil
15166	body, err := googleapi.WithoutDataWrapper.JSONReader(c.service)
15167	if err != nil {
15168		return nil, err
15169	}
15170	reqHeaders.Set("Content-Type", "application/json")
15171	c.urlParams_.Set("alt", alt)
15172	c.urlParams_.Set("prettyPrint", "false")
15173	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
15174	urls += "?" + c.urlParams_.Encode()
15175	req, err := http.NewRequest("PUT", urls, body)
15176	if err != nil {
15177		return nil, err
15178	}
15179	req.Header = reqHeaders
15180	googleapi.Expand(req.URL, map[string]string{
15181		"name": c.name,
15182	})
15183	return gensupport.SendRequest(c.ctx_, c.s.client, req)
15184}
15185
15186// Do executes the "run.projects.locations.services.replaceService" call.
15187// Exactly one of *Service or error will be non-nil. Any non-2xx status
15188// code is an error. Response headers are in either
15189// *Service.ServerResponse.Header or (if a response was returned at all)
15190// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
15191// check whether the returned error was because http.StatusNotModified
15192// was returned.
15193func (c *ProjectsLocationsServicesReplaceServiceCall) Do(opts ...googleapi.CallOption) (*Service, error) {
15194	gensupport.SetOptions(c.urlParams_, opts...)
15195	res, err := c.doRequest("json")
15196	if res != nil && res.StatusCode == http.StatusNotModified {
15197		if res.Body != nil {
15198			res.Body.Close()
15199		}
15200		return nil, &googleapi.Error{
15201			Code:   res.StatusCode,
15202			Header: res.Header,
15203		}
15204	}
15205	if err != nil {
15206		return nil, err
15207	}
15208	defer googleapi.CloseBody(res)
15209	if err := googleapi.CheckResponse(res); err != nil {
15210		return nil, err
15211	}
15212	ret := &Service{
15213		ServerResponse: googleapi.ServerResponse{
15214			Header:         res.Header,
15215			HTTPStatusCode: res.StatusCode,
15216		},
15217	}
15218	target := &ret
15219	if err := gensupport.DecodeResponse(target, res); err != nil {
15220		return nil, err
15221	}
15222	return ret, nil
15223	// {
15224	//   "description": "Replace a service.\n\nOnly the spec and metadata labels and annotations are modifiable. After\nthe Update request, Cloud Run will work to make the 'status'\nmatch the requested 'spec'.\n\nMay provide metadata.resourceVersion to enforce update from last read for\noptimistic concurrency control.",
15225	//   "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/services/{servicesId}",
15226	//   "httpMethod": "PUT",
15227	//   "id": "run.projects.locations.services.replaceService",
15228	//   "parameterOrder": [
15229	//     "name"
15230	//   ],
15231	//   "parameters": {
15232	//     "name": {
15233	//       "description": "The name of the service being replaced. If needed, replace\n{namespace_id} with the project ID.",
15234	//       "location": "path",
15235	//       "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+$",
15236	//       "required": true,
15237	//       "type": "string"
15238	//     }
15239	//   },
15240	//   "path": "v1/{+name}",
15241	//   "request": {
15242	//     "$ref": "Service"
15243	//   },
15244	//   "response": {
15245	//     "$ref": "Service"
15246	//   },
15247	//   "scopes": [
15248	//     "https://www.googleapis.com/auth/cloud-platform"
15249	//   ]
15250	// }
15251
15252}
15253
15254// method id "run.projects.locations.services.setIamPolicy":
15255
15256type ProjectsLocationsServicesSetIamPolicyCall struct {
15257	s                   *APIService
15258	resource            string
15259	setiampolicyrequest *SetIamPolicyRequest
15260	urlParams_          gensupport.URLParams
15261	ctx_                context.Context
15262	header_             http.Header
15263}
15264
15265// SetIamPolicy: Sets the IAM Access control policy for the specified
15266// Service. Overwrites
15267// any existing policy.
15268func (r *ProjectsLocationsServicesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsServicesSetIamPolicyCall {
15269	c := &ProjectsLocationsServicesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15270	c.resource = resource
15271	c.setiampolicyrequest = setiampolicyrequest
15272	return c
15273}
15274
15275// Fields allows partial responses to be retrieved. See
15276// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
15277// for more information.
15278func (c *ProjectsLocationsServicesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsServicesSetIamPolicyCall {
15279	c.urlParams_.Set("fields", googleapi.CombineFields(s))
15280	return c
15281}
15282
15283// Context sets the context to be used in this call's Do method. Any
15284// pending HTTP request will be aborted if the provided context is
15285// canceled.
15286func (c *ProjectsLocationsServicesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsServicesSetIamPolicyCall {
15287	c.ctx_ = ctx
15288	return c
15289}
15290
15291// Header returns an http.Header that can be modified by the caller to
15292// add HTTP headers to the request.
15293func (c *ProjectsLocationsServicesSetIamPolicyCall) Header() http.Header {
15294	if c.header_ == nil {
15295		c.header_ = make(http.Header)
15296	}
15297	return c.header_
15298}
15299
15300func (c *ProjectsLocationsServicesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
15301	reqHeaders := make(http.Header)
15302	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
15303	for k, v := range c.header_ {
15304		reqHeaders[k] = v
15305	}
15306	reqHeaders.Set("User-Agent", c.s.userAgent())
15307	var body io.Reader = nil
15308	body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest)
15309	if err != nil {
15310		return nil, err
15311	}
15312	reqHeaders.Set("Content-Type", "application/json")
15313	c.urlParams_.Set("alt", alt)
15314	c.urlParams_.Set("prettyPrint", "false")
15315	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
15316	urls += "?" + c.urlParams_.Encode()
15317	req, err := http.NewRequest("POST", urls, body)
15318	if err != nil {
15319		return nil, err
15320	}
15321	req.Header = reqHeaders
15322	googleapi.Expand(req.URL, map[string]string{
15323		"resource": c.resource,
15324	})
15325	return gensupport.SendRequest(c.ctx_, c.s.client, req)
15326}
15327
15328// Do executes the "run.projects.locations.services.setIamPolicy" call.
15329// Exactly one of *Policy or error will be non-nil. Any non-2xx status
15330// code is an error. Response headers are in either
15331// *Policy.ServerResponse.Header or (if a response was returned at all)
15332// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
15333// check whether the returned error was because http.StatusNotModified
15334// was returned.
15335func (c *ProjectsLocationsServicesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
15336	gensupport.SetOptions(c.urlParams_, opts...)
15337	res, err := c.doRequest("json")
15338	if res != nil && res.StatusCode == http.StatusNotModified {
15339		if res.Body != nil {
15340			res.Body.Close()
15341		}
15342		return nil, &googleapi.Error{
15343			Code:   res.StatusCode,
15344			Header: res.Header,
15345		}
15346	}
15347	if err != nil {
15348		return nil, err
15349	}
15350	defer googleapi.CloseBody(res)
15351	if err := googleapi.CheckResponse(res); err != nil {
15352		return nil, err
15353	}
15354	ret := &Policy{
15355		ServerResponse: googleapi.ServerResponse{
15356			Header:         res.Header,
15357			HTTPStatusCode: res.StatusCode,
15358		},
15359	}
15360	target := &ret
15361	if err := gensupport.DecodeResponse(target, res); err != nil {
15362		return nil, err
15363	}
15364	return ret, nil
15365	// {
15366	//   "description": "Sets the IAM Access control policy for the specified Service. Overwrites\nany existing policy.",
15367	//   "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/services/{servicesId}:setIamPolicy",
15368	//   "httpMethod": "POST",
15369	//   "id": "run.projects.locations.services.setIamPolicy",
15370	//   "parameterOrder": [
15371	//     "resource"
15372	//   ],
15373	//   "parameters": {
15374	//     "resource": {
15375	//       "description": "REQUIRED: The resource for which the policy is being specified.\nSee the operation documentation for the appropriate value for this field.",
15376	//       "location": "path",
15377	//       "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+$",
15378	//       "required": true,
15379	//       "type": "string"
15380	//     }
15381	//   },
15382	//   "path": "v1/{+resource}:setIamPolicy",
15383	//   "request": {
15384	//     "$ref": "SetIamPolicyRequest"
15385	//   },
15386	//   "response": {
15387	//     "$ref": "Policy"
15388	//   },
15389	//   "scopes": [
15390	//     "https://www.googleapis.com/auth/cloud-platform"
15391	//   ]
15392	// }
15393
15394}
15395
15396// method id "run.projects.locations.services.testIamPermissions":
15397
15398type ProjectsLocationsServicesTestIamPermissionsCall struct {
15399	s                         *APIService
15400	resource                  string
15401	testiampermissionsrequest *TestIamPermissionsRequest
15402	urlParams_                gensupport.URLParams
15403	ctx_                      context.Context
15404	header_                   http.Header
15405}
15406
15407// TestIamPermissions: Returns permissions that a caller has on the
15408// specified Project.
15409//
15410// There are no permissions required for making this API call.
15411func (r *ProjectsLocationsServicesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsServicesTestIamPermissionsCall {
15412	c := &ProjectsLocationsServicesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15413	c.resource = resource
15414	c.testiampermissionsrequest = testiampermissionsrequest
15415	return c
15416}
15417
15418// Fields allows partial responses to be retrieved. See
15419// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
15420// for more information.
15421func (c *ProjectsLocationsServicesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsServicesTestIamPermissionsCall {
15422	c.urlParams_.Set("fields", googleapi.CombineFields(s))
15423	return c
15424}
15425
15426// Context sets the context to be used in this call's Do method. Any
15427// pending HTTP request will be aborted if the provided context is
15428// canceled.
15429func (c *ProjectsLocationsServicesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsServicesTestIamPermissionsCall {
15430	c.ctx_ = ctx
15431	return c
15432}
15433
15434// Header returns an http.Header that can be modified by the caller to
15435// add HTTP headers to the request.
15436func (c *ProjectsLocationsServicesTestIamPermissionsCall) Header() http.Header {
15437	if c.header_ == nil {
15438		c.header_ = make(http.Header)
15439	}
15440	return c.header_
15441}
15442
15443func (c *ProjectsLocationsServicesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
15444	reqHeaders := make(http.Header)
15445	reqHeaders.Set("x-goog-api-client", "gl-go/1.11.0 gdcl/20190926")
15446	for k, v := range c.header_ {
15447		reqHeaders[k] = v
15448	}
15449	reqHeaders.Set("User-Agent", c.s.userAgent())
15450	var body io.Reader = nil
15451	body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest)
15452	if err != nil {
15453		return nil, err
15454	}
15455	reqHeaders.Set("Content-Type", "application/json")
15456	c.urlParams_.Set("alt", alt)
15457	c.urlParams_.Set("prettyPrint", "false")
15458	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
15459	urls += "?" + c.urlParams_.Encode()
15460	req, err := http.NewRequest("POST", urls, body)
15461	if err != nil {
15462		return nil, err
15463	}
15464	req.Header = reqHeaders
15465	googleapi.Expand(req.URL, map[string]string{
15466		"resource": c.resource,
15467	})
15468	return gensupport.SendRequest(c.ctx_, c.s.client, req)
15469}
15470
15471// Do executes the "run.projects.locations.services.testIamPermissions" call.
15472// Exactly one of *TestIamPermissionsResponse or error will be non-nil.
15473// Any non-2xx status code is an error. Response headers are in either
15474// *TestIamPermissionsResponse.ServerResponse.Header or (if a response
15475// was returned at all) in error.(*googleapi.Error).Header. Use
15476// googleapi.IsNotModified to check whether the returned error was
15477// because http.StatusNotModified was returned.
15478func (c *ProjectsLocationsServicesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) {
15479	gensupport.SetOptions(c.urlParams_, opts...)
15480	res, err := c.doRequest("json")
15481	if res != nil && res.StatusCode == http.StatusNotModified {
15482		if res.Body != nil {
15483			res.Body.Close()
15484		}
15485		return nil, &googleapi.Error{
15486			Code:   res.StatusCode,
15487			Header: res.Header,
15488		}
15489	}
15490	if err != nil {
15491		return nil, err
15492	}
15493	defer googleapi.CloseBody(res)
15494	if err := googleapi.CheckResponse(res); err != nil {
15495		return nil, err
15496	}
15497	ret := &TestIamPermissionsResponse{
15498		ServerResponse: googleapi.ServerResponse{
15499			Header:         res.Header,
15500			HTTPStatusCode: res.StatusCode,
15501		},
15502	}
15503	target := &ret
15504	if err := gensupport.DecodeResponse(target, res); err != nil {
15505		return nil, err
15506	}
15507	return ret, nil
15508	// {
15509	//   "description": "Returns permissions that a caller has on the specified Project.\n\nThere are no permissions required for making this API call.",
15510	//   "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/services/{servicesId}:testIamPermissions",
15511	//   "httpMethod": "POST",
15512	//   "id": "run.projects.locations.services.testIamPermissions",
15513	//   "parameterOrder": [
15514	//     "resource"
15515	//   ],
15516	//   "parameters": {
15517	//     "resource": {
15518	//       "description": "REQUIRED: The resource for which the policy detail is being requested.\nSee the operation documentation for the appropriate value for this field.",
15519	//       "location": "path",
15520	//       "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+$",
15521	//       "required": true,
15522	//       "type": "string"
15523	//     }
15524	//   },
15525	//   "path": "v1/{+resource}:testIamPermissions",
15526	//   "request": {
15527	//     "$ref": "TestIamPermissionsRequest"
15528	//   },
15529	//   "response": {
15530	//     "$ref": "TestIamPermissionsResponse"
15531	//   },
15532	//   "scopes": [
15533	//     "https://www.googleapis.com/auth/cloud-platform"
15534	//   ]
15535	// }
15536
15537}
15538